# betterdocs/3.8.10/assets/admin/js/dashboard.js

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 3.8.10. 1 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/3.8.10/code/assets/admin/js/dashboard.js
- Raw: https://pluginprobe.com/plugins/betterdocs/3.8.10/raw/assets/admin/js/dashboard.js
- Modified: 2025-02-03T05:35:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/3.8.10/code/assets/admin/js/dashboard.js#L10-L20`.

```javascript
(()=>{var e={2096:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,a=String.fromCharCode,i=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function f(e){return e.length}function h(e,t){return t.push(e),e}var m=1,g=1,y=0,v=0,b=0,w="";function E(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:m,column:g,length:i,return:""}}function x(e,t){return i(E("",null,null,"",null,null,0),e,{length:-e.length},t)}function C(){return b=v>0?u(w,--v):0,g--,10===b&&(g=1,m--),b}function _(){return b=v<y?u(w,v++):0,g++,10===b&&(g=1,m++),b}function S(){return u(w,v)}function O(){return v}function k(e,t){return d(w,e,t)}function N(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function M(e){return m=g=1,y=p(w=e),v=0,[]}function A(e){return w="",e}function D(e){return s(k(v-1,T(91===e?e+2:40===e?e+1:e)))}function I(e){for(;(b=S())&&b<33;)_();return N(e)>2||N(b)>3?"":" "}function j(e,t){for(;--t&&_()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return k(e,O()+(t<6&&32==S()&&32==_()))}function T(e){for(;_();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&T(b);break;case 40:41===e&&T(e);break;case 92:_()}return v}function L(e,t){for(;_()&&e+b!==57&&(e+b!==84||47!==S()););return"/*"+k(t,v-1)+"*"+a(47===e?e:_())}function P(e){for(;!N(S());)_();return k(e,v)}var R="-ms-",F="-moz-",B="-webkit-",z="comm",q="rule",U="decl",H="@keyframes";function V(e,t){for(var n="",r=f(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function K(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case U:return e.return=e.return||e.value;case z:return"";case H:return e.return=e.value+"{"+V(e.children,r)+"}";case q:e.value=e.props.join(",")}return p(n=V(e.children,r))?e.return=e.value+"{"+n+"}":""}function G(e){return A(W("",null,null,null,[""],e=M(e),0,[0],e))}function W(e,t,n,r,o,i,s,d,f){for(var m=0,g=0,y=s,v=0,b=0,w=0,E=1,x=1,k=1,N=0,M="",A=o,T=i,R=r,F=M;x;)switch(w=N,N=_()){case 40:if(108!=w&&58==u(F,y-1)){-1!=c(F+=l(D(N),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:F+=D(N);break;case 9:case 10:case 13:case 32:F+=I(w);break;case 92:F+=j(O()-1,7);continue;case 47:switch(S()){case 42:case 47:h(Q(L(_(),O()),t,n),f);break;default:F+="/"}break;case 123*E:d[m++]=p(F)*k;case 125*E:case 59:case 0:switch(N){case 0:case 125:x=0;case 59+g:-1==k&&(F=l(F,/\f/g,"")),b>0&&p(F)-y&&h(b>32?$(F+";",r,n,y-1):$(l(F," ","")+";",r,n,y-2),f);break;case 59:F+=";";default:if(h(R=Y(F,t,n,m,g,o,d,M,A=[],T=[],y),i),123===N)if(0===g)W(F,t,R,R,A,i,y,d,T);else switch(99===v&&110===u(F,3)?100:v){case 100:case 108:case 109:case 115:W(e,R,R,r&&h(Y(e,R,R,0,0,o,d,M,o,A=[],y),T),o,T,y,d,r?A:T);break;default:W(F,R,R,R,[""],T,0,d,T)}}m=g=b=0,E=k=1,M=F="",y=s;break;case 58:y=1+p(F),b=w;default:if(E<1)if(123==N)--E;else if(125==N&&0==E++&&125==C())continue;switch(F+=a(N),N*E){case 38:k=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(p(F)-1)*k,k=1;break;case 64:45===S()&&(F+=D(_())),v=S(),g=y=p(M=F+=P(O())),N++;break;case 45:45===w&&2==p(F)&&(E=0)}}return i}function Y(e,t,n,r,a,i,c,u,p,h,m){for(var g=a-1,y=0===a?i:[""],v=f(y),b=0,w=0,x=0;b<r;++b)for(var C=0,_=d(e,g+1,g=o(w=c[b])),S=e;C<v;++C)(S=s(w>0?y[C]+" "+_:l(_,/&\f/g,y[C])))&&(p[x++]=S);return E(e,t,n,0===a?q:u,p,h,m)}function Q(e,t,n){return E(e,t,n,z,a(b),d(e,2,-2),0)}function $(e,t,n,r){return E(e,t,n,U,d(e,0,r),d(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,o=0;r=o,o=S(),38===r&&12===o&&(t[n]=1),!N(o);)_();return k(e,v)},J=new WeakMap,X=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=function(e,t){return A(function(e,t){var n=-1,r=44;do{switch(N(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=Z(v-1,t,n);break;case 2:e[n]+=D(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=_());return e}(M(e),t))}(t,o),s=n.props,l=0,c=0;l<i.length;l++)for(var u=0;u<s.length;u++,c++)e.props[c]=o[l]?i[l].replace(/&\f/g,s[u]):s[u]+" "+i[l]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+F+e+R+e+e;case 6828:case 4268:return B+e+R+e+e;case 6165:return B+e+R+"flex-"+e+e;case 5187:return B+e+l(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+R+"flex-$1$2")+e;case 5443:return B+e+R+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return B+e+R+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+R+l(e,"shrink","negative")+e;case 5292:return B+e+R+l(e,"basis","preferred-size")+e;case 6060:return B+"box-"+l(e,"-grow","")+B+e+R+l(e,"grow","positive")+e;case 4554:return B+l(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+R+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+R+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+R+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+R+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+R+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+R+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=te(e.value,e.length);break;case H:return V([x(e,{value:l(e.value,"@","@"+B)})],r);case q:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return V([x(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([x(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,R+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,a,i=e.stylisPlugins||ne,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d,p,h=[K,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],m=(u=[X,ee].concat(i,h),d=f(u),function(e,t,n,r){for(var o="",a=0;a<d;a++)o+=u[a](e,t,n,r)||"";return o});a=function(e,t,n,r){c=n,V(G(e?e+"{"+t.styles+"}":t.styles),m),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return g.sheet.hydrate(l),g}},2588:(e,t,n)=>{"use strict";n.d(t,{AH:()=>I,Y:()=>D,i7:()=>j});var r=n(1609),o=n(2096),a=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function s(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var l=!1,c=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,d=function(e){return 45===e.charCodeAt(1)},p=function(e){return null!=e&&"boolean"!=typeof e},f=s((function(e){return d(e)?e:e.replace(c,"-$&").toLowerCase()})),h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(u,(function(e,t,n){return y={name:t,styles:n,next:y},t}))}return 1===i[e]||d(e)||"number"!=typeof t||0===t?t:t+"px"},m="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function g(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return y={name:o.name,styles:o.styles,next:y},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)y={name:i.name,styles:i.styles,next:y},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=g(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":p(s)&&(r+=f(a)+":"+h(a,s)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&l)throw new Error(m);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var c=g(e,t,i);switch(a){case"animation":case"animationName":r+=f(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}else for(var u=0;u<i.length;u++)p(i[u])&&(r+=f(a)+":"+h(a,i[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=y,c=n(e);return y=s,g(e,t,c)}}var u=n;if(null==t)return u;var d=t[u];return void 0!==d?d:u}var y,v=/label:\s*([^\s;{]+)\s*(;|$)/g;function b(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";y=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=g(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=g(n,t,e[i]),r&&(o+=a[i]);v.lastIndex=0;for(var s,l="";null!==(s=v.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:y}}var w,E,x=!!r.useInsertionEffect&&r.useInsertionEffect,C=x||function(e){return e()},_=(x||r.useLayoutEffect,r.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null)),S=(_.Provider,function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(_);return e(t,o,n)}))}),O=r.createContext({}),k={}.hasOwnProperty,N="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",M=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return a(t,n,r),C((function(){return function(e,t,n){a(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},A=S((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[N],i=[o],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var l=b(i,void 0,r.useContext(O));s+=t.key+"-"+l.name;var c={};for(var u in e)k.call(e,u)&&"css"!==u&&u!==N&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),r.createElement(r.Fragment,null,r.createElement(M,{cache:t,serialized:l,isStringTag:"string"==typeof a}),r.createElement(a,c))})),D=(n(1035),function(e,t){var n=arguments;if(null==t||!k.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=A,a[1]=function(e,t){var n={};for(var r in t)k.call(t,r)&&(n[r]=t[r]);return n[N]=e,n}(e,t);for(var i=2;i<o;i++)a[i]=n[i];return r.createElement.apply(null,a)});function I(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b(t)}function j(){var e=I.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}w=D||(D={}),E||(E=w.JSX||(w.JSX={}))},339:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o,a;function i(e,t){if(!1===e||null==e)throw new Error(t)}function s(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function l(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function c(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function u(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let o=_(("string"==typeof t?c(t):t).pathname||"/",n);if(null==o)return null;let a=d(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=C(o);i=E(a[e],t,r)}return i}(e,t,n,!1)}function d(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,a)=>{let s={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(i(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let l=N([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(i(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),d(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:w(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of p(e.path))o(e,t,n);else o(e,t)})),t}function p(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=p(r.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}n.d(t,{AO:()=>l,Gh:()=>k,HS:()=>N,Oi:()=>i,Rr:()=>c,pX:()=>j,pb:()=>_,rc:()=>o,tH:()=>I,ue:()=>u,yD:()=>O}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(a||(a={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const f=/^:[\w-]+$/,h=3,m=2,g=1,y=10,v=-2,b=e=>"*"===e;function w(e,t){let n=e.split("/"),r=n.length;return n.some(b)&&(r+=v),t&&(r+=m),n.filter((e=>!b(e))).reduce(((e,t)=>e+(f.test(t)?h:""===t?g:y)),r)}function E(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===a?t:t.slice(a.length)||"/",u=x({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=x({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:N([a,u.pathname]),pathnameBase:M(N([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=N([a,u.pathnameBase]))}return i}function x(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),s("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=l[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[n];return e[r]=o&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function C(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function _(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function S(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function O(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function k(e,t,n,o){let a;void 0===o&&(o=!1),"string"==typeof e?a=c(e):(a=r({},e),i(!a.pathname||!a.pathname.includes("?"),S("?","pathname","search",a)),i(!a.pathname||!a.pathname.includes("#"),S("#","pathname","hash",a)),i(!a.search||!a.search.includes("#"),S("#","search","hash",a)));let s,l=""===e||""===a.pathname,u=l?"/":a.pathname;if(null==u)s=n;else{let e=t.length-1;if(!o&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}s=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?c(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:A(r),hash:D(o)}}(a,s),p=u&&"/"!==u&&u.endsWith("/"),f=(l||"."===u)&&n.endsWith("/");return d.pathname.endsWith("/")||!p&&!f||(d.pathname+="/"),d}const N=e=>e.join("/").replace(/\/\/+/g,"/"),M=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),A=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",D=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class I extends Error{}function j(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const T=["post","put","patch","delete"],L=(new Set(T),["get",...T]);new Set(L),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},8378:(e,t,n)=>{"use strict";n.d(t,{K:()=>a,t:()=>o});var r=n(1609);const o=(0,r.createContext)(),a=({children:e})=>{const[t,n]=(0,r.useState)(!1);return(0,r.createElement)(o.Provider,{value:{showGlossaryModal:t,setShowGlossaryModal:n}},e)}},1955:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,g:()=>i});var r=n(1609);const o=(0,r.createContext)(),a=({children:e})=>{const[t,n]=(0,r.useState)([]),[a,i]=(0,r.useState)((()=>()=>{}));return(0,r.createElement)(o.Provider,{value:{categories:t,setCategories:n,reFetchCategories:a,setReFetchCategories:i}},e)},i=()=>(0,r.useContext)(o)},8120:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r,o=n(1609),a=n(7723),i=n(8537),s=n(1419),l=n.n(s),c=n(1890),u=n(933),d=n.n(u),p=n(537),f=n(5786),h=n(4456);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}const g=e=>o.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 492 492"},e),r||(r=o.createElement("path",{d:"M300.188 246 484.14 62.04c5.06-5.064 7.852-11.82 7.86-19.024 0-7.208-2.792-13.972-7.86-19.028L468.02 7.872C462.952 2.796 456.196.016 448.984.016c-7.2 0-13.956 2.78-19.024 7.856L246.008 191.82 62.048 7.872C56.988 2.796 50.228.016 43.02.016c-7.2 0-13.96 2.78-19.02 7.856L7.872 23.988c-10.496 10.496-10.496 27.568 0 38.052L191.828 246 7.872 429.952C2.808 435.024.02 441.78.02 448.984s2.788 13.96 7.852 19.028l16.124 16.116c5.06 5.072 11.824 7.856 19.02 7.856 7.208 0 13.968-2.784 19.028-7.856l183.96-183.952 183.952 183.952c5.068 5.072 11.824 7.856 19.024 7.856h.008c7.204 0 13.96-2.784 19.028-7.856l16.12-16.116c5.06-5.064 7.852-11.824 7.852-19.028s-2.792-13.96-7.852-19.028z"}))),y={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(35, 40, 45, 0.5)",zIndex:9990,padding:50,paddingTop:70,display:"flex",flexDirection:"column",overflow:"auto"},content:{width:"40rem",maxWidth:"90%",position:"static",height:"auto",overflow:"initial",margin:"auto"}},v=({open:e,reFetchCategories:t,setShowCategoryModal:n,updateCategory:r,setUpdateCategory:s})=>{const[u,m]=(0,o.useState)({title:"",icon:""}),[v,b]=(0,o.useState)({title:""});(0,o.useEffect)((()=>{null!==r?m({...u,title:(0,i.decodeEntities)(r?.name),icon:r?.meta?.faq_group_icon[0]||""}):w()}),[e,r]);const w=()=>{m({title:"",icon:""})},E=()=>{b({title:""})},x=()=>{E(),n(!1),s(null)},C=()=>{(0,h.O$)(((e,t)=>{m({...u,icon:e})}))};return(0,o.createElement)(d(),{isOpen:e,className:"bd-faq-ctg-modal",onRequestClose:()=>x(),style:y},(0,o.createElement)("form",{onSubmit:e=>{e.preventDefault();const o=(0,f.q)(u,{title:{required:{value:!0,message:(0,a.__)("Please Insert FAQ Group Title.","betterdocs")}}});if(!o.valid)return void b(o.errors);const i={title:u?.title,icon:u?.icon};null!==r?(0,h.KK)({...i,term_id:r?.id}).then((e=>{e&&(E(),t(),l().fire({text:(0,a.__)("FAQ Group Updated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{c.oR.error(e?.message||(0,a.__)("Something went wrong!","betterdocs"))})).finally((()=>{n(!1),s(null)})):(0,h.rg)(i).then((e=>{e&&(E(),t(),l().fire({text:(0,a.__)("FAQ Group Created Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{c.oR.error(e?.message||(0,a.__)("Something went wrong!","betterdocs"))})).finally((()=>{n(!1)}))}},(0,o.createElement)("div",{className:"bd-faq-ctg-header"},(0,o.createElement)("h3",{className:"bd-faq-ctg-title"},r?(0,a.__)("Update FAQ Group","betterdocs"):(0,a.__)("Create New FAQ Group","betterdocs")),(0,o.createElement)("button",{type:"button",className:"bd-faq-modal-close-button",onClick:()=>x()},(0,o.createElement)(g,null))),(0,o.createElement)("div",{className:"bd-faq-ctg-body"},(0,o.createElement)("div",{className:"bd-faq-cgt-field"},(0,o.createElement)("label",{className:"bd-faq-label"},(0,a.__)("FAQ Group Title","betterdocs")),(0,o.createElement)("input",{type:"text",className:"bd-faq-input",value:u?.title,onChange:e=>m({...u,title:e.target.value.replace(/^\s+/,"")}),placeholder:(0,a.__)("FAQ Group Title...","betterdocs")}),(0,o.createElement)(p.A,{error:v.title})),(0,o.createElement)("div",{className:"bd-faq-cgt-field bd-faq-icon-field"},(0,o.createElement)("label",{className:"bd-faq-label"},(0,a.__)("FAQ Group Icon","betterdocs")),u.icon?(0,o.createElement)("div",{className:"bd-faq-control bd-faq-media"},(0,o.createElement)("div",{className:"bd-faq-image-preview"},(0,o.createElement)("img",{src:u.icon,alt:"Selected Icon"})),(0,o.createElement)("div",{className:"bd-faq-image-uploader uploaded"},(0,o.createElement)("div",{className:"bd-faq_image_overlay"},(0,o.createElement)("button",{type:"button",className:"bd-faq-btn bd-faq-image-change-btn",onClick:C},(0,o.createElement)("i",{className:"btd-icon btd-upload"})),(0,o.createElement)("button",{type:"button",className:"bd-faq-btn bd-faq-image-remove-btn",onClick:()=>{m({...u,icon:""})}},(0,o.createElement)("i",{className:"btd-icon btd-delete"}))))):(0,o.createElement)("div",{className:"bd-faq-control bd-faq-media"},(0,o.createElement)("div",{className:"bd-faq-image-uploader"},(0,o.createElement)("button",{type:"button",className:"bd-faq-btn bd-faq-image-upload-btn",onClick:C},(0,o.createElement)("span",{className:"icon"},(0,o.createElement)("i",{className:"btd-icon btd-upload"})),(0,o.createElement)("span",{className:"title"},(0,a.__)("Click to upload","betterdocs")),(0,o.createElement)("span",{className:"info"},(0,a.__)("SVG, PNG, JPG or GIF","betterdocs"))))))),(0,o.createElement)("div",{className:"bd-faq-ctg-footer"},(0,o.createElement)("button",{type:"button",className:"bd-faq-button button-danger",onClick:()=>x()},(0,o.createElement)("span",{className:"bd-faq-text"},(0,a.__)("Cancel","betterdocs"))),(0,o.createElement)("button",{type:"submit",className:"bd-faq-button button-success"},(0,o.createElement)("span",{className:"bd-faq-text"},r?(0,a.__)("Update FAQ Group","betterdocs"):(0,a.__)("Create FAQ Group","betterdocs"))))))}},301:(e,t,n)=>{"use strict";n.d(t,{A:()=>Ze});var r=n(1609),o=n.n(r),a=n(5849),i=n(8401),s=n(933),l=n.n(s),c=n(1890),u=n(7867),d=n(9045),p=(n(9386),n(7517));const f=e=>(0,r.createElement)(p.Ay,{speed:2,width:"100%",viewBox:"0 0 600 160",backgroundColor:"#e5e5e5",foregroundColor:"#c5c5c5",...e},(0,r.createElement)("rect",{x:"0",y:"35",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"55",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"35",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"35",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"42",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"41",rx:"0",ry:"0",width:"150",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"39",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"46",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"40",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"42",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"42",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"60",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"80",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"60",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"60",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"67",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"66",rx:"0",ry:"0",width:"120",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"64",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"71",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"65",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"67",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"67",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"85",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"105",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"85",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"85",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"92",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"91",rx:"0",ry:"0",width:"145",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"89",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"96",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"90",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"92",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"92",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"110",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"130",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"110",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"109",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"117",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"116",rx:"0",ry:"0",width:"130",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"114",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"121",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"115",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"117",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"117",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"135",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"155",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"135",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"134",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"142",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"141",rx:"0",ry:"0",width:"155",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"139",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"146",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"140",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"142",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"142",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"0",rx:"1",ry:"1",width:"600",height:"5"}),(0,r.createElement)("rect",{x:"0",y:"23",rx:"1",ry:"1",width:"600",height:"5"}),(0,r.createElement)("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"585",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"170",y:"0",rx:"0",ry:"0",width:"346",height:"28"}),(0,r.createElement)("rect",{x:"35",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"50",y:"0",rx:"0",ry:"0",width:"120",height:"9"}),(0,r.createElement)("rect",{x:"50",y:"19",rx:"0",ry:"0",width:"120",height:"9"}));var h,m,g,y=n(4456),v=n(7723),b=n(1419),w=n.n(b);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(null,arguments)}const x=e=>r.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 134 134"},e),h||(h=r.createElement("circle",{cx:67,cy:67,r:67,fill:"#E5EBF7"})),r.createElement("mask",{id:"empty-faq_svg__a",width:134,height:134,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},m||(m=r.createElement("circle",{cx:67,cy:67,r:67,fill:"#E5EBF7"}))),g||(g=r.createElement("g",{mask:"url(#empty-faq_svg__a)"},r.createElement("path",{fill:"#B4C3DF",d:"m106.448 69.059-.227 61.295c-.005 1.598-1.36 2.887-3.025 2.881l-74.044-.276c-1.665-.006-3.02-1.306-3.014-2.904l.26-70.05c.005-1.599 1.366-2.899 3.036-2.888l16.632.061c1.05.006 2.019.537 2.56 1.388l3.812 6.002c.542.862 1.515 1.388 2.56 1.388l48.441.182c1.671.011 3.015 1.317 3.009 2.92"}),r.createElement("path",{fill:"#fff",d:"m107.56 50.873-.271 71.925a2.886 2.886 0 0 1-2.887 2.866l-66.024-.249a2.886 2.886 0 0 1-2.865-2.888l.315-83.662A2.885 2.885 0 0 1 38.715 36l54.282.205 4.685 4.718 5.005 5.044z"}),r.createElement("path",{fill:"#3A7EC1",d:"M93.55 49.695c.248.254.58 2.406 14.004 3.053l.005-1.88z",opacity:.2}),r.createElement("path",{fill:"#fff",d:"M92.958 47.942a2.885 2.885 0 0 0 2.865 2.887l11.742.044-14.563-14.668z"}),r.createElement("path",{fill:"#EE9811",d:"m97.493 94.109-51.959-.194a1.2 1.2 0 0 1-1.195-1.205 1.2 1.2 0 0 1 1.206-1.195l51.959.194a1.2 1.2 0 1 1-.011 2.4M97.582 101.979l-45.117-.171a1.2 1.2 0 1 1 .011-2.4l45.117.171a1.2 1.2 0 1 1-.011 2.4M97.554 109.85l-52.075-.193a1.2 1.2 0 1 1 .011-2.401l52.075.194c.658 0 1.2.542 1.194 1.205a1.21 1.21 0 0 1-1.205 1.195"}),r.createElement("path",{fill:"#F9C067",d:"m113.887 76.902-6.632 54.608a3.966 3.966 0 0 1-3.954 3.49l-74.304-.277a3.965 3.965 0 0 1-3.927-3.517L19.926 86.1a3.967 3.967 0 0 1 3.96-4.42l16.991.061a3.98 3.98 0 0 0 3.656-2.383l2.063-4.74a3.96 3.96 0 0 1 3.656-2.384l59.713.22c2.368.006 4.204 2.086 3.922 4.448"}))));var C,_,S;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(null,arguments)}const k=e=>r.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),C||(C=r.createElement("path",{d:"M314.17 7.01v103.01h102.48z"})),_||(_=r.createElement("path",{d:"M294.16 395.58c0-64.19 52.23-116.42 116.42-116.42 5.08 0 10.09.33 15 .97V140.02H299.17c-8.28 0-15-6.71-15-15V0H30c-8.28 0-15 6.72-15 15v482c0 8.28 6.72 15 15 15h380.58c-64.19 0-116.42-52.23-116.42-116.42M330.58 182c8.28 0 15 6.72 15 15s-6.72 15-15 15H203.36c-8.28 0-15-6.72-15-15s6.72-15 15-15zM80 122h160.86c8.28 0 15 6.72 15 15s-6.72 15-15 15H80c-8.28 0-15-6.72-15-15s6.72-15 15-15m0 60h64.3c8.28 0 15 6.72 15 15s-6.72 15-15 15H80c-8.28 0-15-6.72-15-15s6.72-15 15-15m0 60h114.3c8.28 0 15 6.72 15 15s-6.72 15-15 15H80c-8.28 0-15-6.72-15-15s6.72-15 15-15m160.86 150H80c-8.28 0-15-6.72-15-15s6.72-15 15-15h160.86c8.28 0 15 6.72 15 15s-6.72 15-15 15m0-60H80c-8.28 0-15-6.72-15-15s6.72-15 15-15h160.86c8.28 0 15 6.72 15 15s-6.72 15-15 15"})),S||(S=r.createElement("path",{d:"M410.58 309.16c-47.65 0-86.42 38.77-86.42 86.42S362.93 482 410.58 482 497 443.23 497 395.58s-38.77-86.42-86.42-86.42M452 410.58h-26.42V437c0 8.28-6.72 15-15 15s-15-6.72-15-15v-26.42h-26.42c-8.28 0-15-6.72-15-15 0-8.29 6.72-15 15-15h26.42v-26.42c0-8.28 6.72-15 15-15s15 6.72 15 15v26.42H452c8.28 0 15 6.71 15 15 0 8.28-6.72 15-15 15"})));var N;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(null,arguments)}const A=e=>r.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 173 173"},e),N||(N=r.createElement("path",{d:"M86.58.16C38.93.16.16 38.93.16 86.58S38.93 173 86.58 173 173 134.23 173 86.58 134.23.16 86.58.16M128 101.58h-26.42V128c0 8.28-6.72 15-15 15s-15-6.72-15-15v-26.42H45.16c-8.28 0-15-6.72-15-15 0-8.29 6.72-15 15-15h26.42V45.16c0-8.28 6.72-15 15-15s15 6.72 15 15v26.42H128c8.28 0 15 6.71 15 15 0 8.28-6.72 15-15 15"}))),D=({reFetchCategories:e,setShowCategoryModal:t,showNewFaqText:n=!0,showFaqActionButtons:o=!0})=>(0,r.createElement)("div",{className:"bd-faq-empty-dashboard"},(0,r.createElement)("div",{className:"bd-faq-empty-icon"},(0,r.createElement)(x,null)),(0,r.createElement)("h2",{className:"bd-faq-empty-dashboard-title"},(0,v.__)("No FAQ Found!","betterdocs")),n&&(0,r.createElement)("p",{className:"bd-faq-empty-dashboard-desc"},(0,v.__)("Please Create a New FAQ Group to get started.","betterdocs")),o&&(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success",onClick:()=>t(!0)},(0,r.createElement)("span",{className:"bd-faq-icon"},(0,r.createElement)(A,null)),(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Create a New FAQ Group","betterdocs"))),(0,r.createElement)("button",{type:"button",className:"bd-faq-button",onClick:()=>{(0,y.Az)().then((()=>{w().fire({text:(0,v.__)("Sample Data Generated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}),e()})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}},(0,r.createElement)("span",{className:"bd-faq-icon"},(0,r.createElement)(k,null)),(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Generate Sample FAQs","betterdocs")))));var I=n(309);const j=(e,t)=>{const n=e.source.index,r=e.destination.index;let o=[...t],[a]=o.splice(n,1);return o.splice(r,0,a),o};var T=n(8537),L=n(1330),P=n(4417),R=n(6253),F=n.n(R),B=n(3622),z=n.n(B);const q={options:["inline","blockType","textAlign","colorPicker","link","list","emoji"],inline:{options:["bold","italic","underline","strikethrough","monospace"]},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0},list:{options:["unordered","ordered"]},emoji:{className:void 0,component:void 0,popupClassName:void 0,emojis:["😃","😄","😁","😆","😅","😂","🤣","😊","🙂","😉","😍","🥰","😋","😎","🥳","😏","😒","😕","☹️","😣","😢","😭","😤","😡","🤬","🤯","🥵","🥶","😱","😨","🤔","🤫","😶","😐","😑","🙄","😮","👽","👾","🤖","🎃","😺","😸","😹","🙀","🤑","😈","💩","👻","💀","🙌","👏","🤝","👍","👊","✌️","🤞","👌","👈","👉","☝️","✋","🤚","🖐","🖖","🙏","👀","👓","☠️","🙈","🙉","🙊","🐞","🕷️","🌿","🍀","🌵","🍃","🍄","🥀","🌻","🌛","🌚","🌕","🌎","🌍","🌏","🪐","💫","⚡","☄️","💥","🔥","🌪️","🌈","🌥️","⛈️","❄️","☃️","💦","☔","🌊","🍏","🍌","🍉","🍇","🍍","🥭","🍞","🧀","🥚","🍗","🍔","🍕","🥘","🍙","🎂","🍰","☕","🍼","🍯","🍺","🍻","🥂","🍷","🍸","🥄","🍴","🍽️","⚽","🏀","🏈","⚾","🎾","🏐","🎱","🏓","⛳","🚗","🚕","🚌","🏎️","🚓","🚑","🚒","🚛","🚜","🚲","🏍️","✈️","🚁","🚀","🛸","⛵","🚢","⚓","🚧","🚥","🗽","🗼","🎡","🏝️","🏖️","🗻","📸","⏳","💡","🕯️","💸","💰","💎","🔪","🗡️","💊","💉","🩸","🦠","🧸","📧","💌","📌","📍","🖊️","🔎","🔒","🔓","❤️","🧡","💛","💚","💙","💜","🖤","💔","❣️","💕","💞","💓","💖","💘","💝","☮️","☢️","❌","⭕","⛔","🚫","💯","❗","❕","❓","❔","‼️","⁉️","✅","🌐","💤","🏳️","🏴","🏁","🚩","🏴‍☠️"]}},U=({aiValue:e=null,value:t,onChange:n,placeholder:o})=>{const[a,i]=(0,r.useState)(L.EditorState.createEmpty());return(0,r.useEffect)((()=>{if(t){const{contentBlocks:e,entityMap:n}=z()(t),r=L.ContentState.createFromBlockArray(e,n),o=L.EditorState.createWithContent(r);i(o)}}),[]),(0,r.useEffect)((()=>{if(e){const{contentBlocks:t,entityMap:n}=z()(e),r=L.ContentState.createFromBlockArray(t,n),o=L.EditorState.createWithContent(r);i(o)}}),[e]),(0,r.useEffect)((()=>{let e=F()((0,L.convertToRaw)(a.getCurrentContent()));n(e)}),[a]),(0,r.createElement)(P.Editor,{editorState:a,onEditorStateChange:i,wrapperClassName:"bd-faq-editor",toolbarClassName:"bd-faq-editor-toolbar",editorClassName:"bd-faq-editor-main",placeholder:o,toolbar:q})};var H,V,K=n(537),G=n(5786);function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}const Y=e=>r.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 16 16"},e),H||(H=r.createElement("g",{fill:"#fff",clipPath:"url(#betterdocs-icon-white_svg__a)"},r.createElement("path",{d:"M7.608 6.345h4.012a.72.72 0 0 0 .709-.732.72.72 0 0 0-.71-.73H7.609a.72.72 0 0 0-.71.73.716.716 0 0 0 .71.732M5.995 9.193h4.011c.392 0 .71-.327.71-.73a.72.72 0 0 0-.71-.732H5.995a.72.72 0 0 0-.71.731c0 .404.318.731.71.731M9.077 11.37a.72.72 0 0 0-.71-.731H4.356a.72.72 0 0 0-.71.73c0 .404.318.732.71.732h4.011c.392 0 .71-.328.71-.731"}),r.createElement("path",{d:"M14.58 8.008c-.025-.058-.057-.1-.09-.15l1.068-1.9a3.34 3.34 0 0 0 .008-3.303C14.988 1.622 13.952 1 12.786 1H7.943c-1.134 0-2.194.63-2.773 1.647L.441 11.042a3.34 3.34 0 0 0-.008 3.303C1.013 15.378 2.048 16 3.213 16h8.293c1.476 0 2.83-.773 3.612-2.059a4.5 4.5 0 0 0 .236-4.252zM4.437 14.445H3.214c-.62 0-1.166-.327-1.476-.882a1.78 1.78 0 0 1 .008-1.756l4.73-8.395a1.7 1.7 0 0 1 1.475-.874h4.843c.62 0 1.166.328 1.476.882.31.546.302 1.202-.008 1.756l-4.737 8.395a1.69 1.69 0 0 1-1.468.874zm9.417-1.336a2.74 2.74 0 0 1-2.34 1.336h-.742c.016-.033.04-.058.057-.092l2.764-4.9.424.9c.4.89.343 1.924-.163 2.756"}))),V||(V=r.createElement("defs",null,r.createElement("clipPath",{id:"betterdocs-icon-white_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 1h16v15H0z"})))));var Q,$;function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z.apply(null,arguments)}const J=e=>r.createElement("svg",Z({xmlns:"http://www.w3.org/2000/svg",width:21,height:20,fill:"none"},e),Q||(Q=r.createElement("g",{clipPath:"url(#ai-icon-white_svg__a)"},r.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.429,d:"m10.396 18.86-4.286.372.371-4.285 8.915-8.858a1.43 1.43 0 0 1 2.043 0l1.814 1.829a1.43 1.43 0 0 1 0 2.029zM1.704 5.676c-.501-.087-.501-.807 0-.894a4.54 4.54 0 0 0 3.654-3.5l.03-.139c.109-.494.815-.498.93-.003l.035.16a4.56 4.56 0 0 0 3.663 3.48c.504.086.504.81 0 .899A4.56 4.56 0 0 0 6.35 9.156l-.037.162c-.113.494-.818.491-.927-.004l-.029-.139a4.54 4.54 0 0 0-3.657-3.5z"}))),$||($=r.createElement("defs",null,r.createElement("clipPath",{id:"ai-icon-white_svg__a"},r.createElement("path",{fill:"#fff",d:"M.5 0h20v20H.5z"})))));var X,ee;function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(null,arguments)}const ne=e=>r.createElement("svg",te({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),X||(X=r.createElement("g",{clipPath:"url(#ai-icon-color_svg__a)"},r.createElement("path",{stroke:"#344054",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.429,d:"m9.895 18.861-4.286.371.371-4.286 8.915-8.857a1.43 1.43 0 0 1 2.043 0l1.814 1.829a1.43 1.43 0 0 1 0 2.029zM1.204 5.674c-.501-.088-.501-.807 0-.894a4.54 4.54 0 0 0 3.654-3.5l.03-.139c.109-.494.814-.499.929-.003l.036.16a4.56 4.56 0 0 0 3.663 3.48c.504.086.504.81 0 .899a4.56 4.56 0 0 0-3.664 3.479l-.037.161c-.112.494-.818.491-.926-.004l-.029-.139a4.54 4.54 0 0 0-3.658-3.5h.003Z"}))),ee||(ee=r.createElement("defs",null,r.createElement("clipPath",{id:"ai-icon-color_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))))),re={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(35, 40, 45, 0.5)",zIndex:9990,padding:50,paddingTop:70,display:"flex",flexDirection:"column",overflow:"auto"},content:{width:"40rem",maxWidth:"90%",position:"static",height:"auto",overflow:"initial",margin:"auto"}},oe=({open:e,setShowFaqAIModalForm:t,setFormFields:n,formFields:o})=>{const[a,i]=(0,r.useState)(o),[s,c]=(0,r.useState)(null),[u,d]=(0,r.useState)(null),[p,f]=(0,r.useState)(!1),[h,m]=(0,r.useState)(!1),[g,b]=(0,r.useState)(null);(0,r.useEffect)((()=>{(0,y.uF)().then((e=>{b(e)})).catch((function(e){console.log(e)}))}),[]);const w=()=>{d({title:""}),t(!1)},E=e=>e&&e.ai_autowrite_api_key?e.ai_autowrite_api_key:"";return(0,r.createElement)(l(),{isOpen:e,className:"bd-faq-ctg-modal",onRequestClose:()=>w(),style:re},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-container","data-new-doc-page":"true"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-content"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-top-part"},(0,r.createElement)("div",{className:"autowrite-heading"},(0,r.createElement)("span",{className:"autowrite-icon"},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32",fill:"none"},(0,r.createElement)("g",{clipPath:"url(#clip0_2453_20882)"},(0,r.createElement)("path",{d:"M15.8322 30.1765L8.97508 30.7708L9.56936 23.9136L23.8322 9.74219C24.0451 9.52448 24.2993 9.3515 24.58 9.23341C24.8606 9.11531 25.162 9.05447 25.4665 9.05447C25.771 9.05447 26.0724 9.11531 26.3531 9.23341C26.6337 9.3515 26.8879 9.52448 27.1008 9.74219L30.0037 12.6679C30.2176 12.8805 30.3874 13.1334 30.5033 13.4119C30.6192 13.6904 30.6788 13.9891 30.6788 14.2908C30.6788 14.5924 30.6192 14.8911 30.5033 15.1696C30.3874 15.4481 30.2176 15.701 30.0037 15.9136L15.8322 30.1765ZM1.92593 9.07933C1.12365 8.9399 1.12365 7.7879 1.92593 7.64848C3.34647 7.40124 4.6612 6.73658 5.70251 5.73923C6.74382 4.74188 7.46455 3.45703 7.77279 2.04848L7.82079 1.82676C7.99451 1.03591 9.12365 1.02905 9.30651 1.82219L9.36365 2.07819C9.68319 3.48048 10.4099 4.75709 11.4526 5.74772C12.4953 6.73834 13.8074 7.39881 15.2242 7.64619C16.0311 7.78333 16.0311 8.94219 15.2242 9.0839C13.8073 9.33071 12.4949 9.99066 11.4518 10.9809C10.4087 11.9711 9.68146 13.2474 9.36136 14.6496L9.30193 14.9079C9.12136 15.6988 7.99222 15.6942 7.81851 14.901L7.77279 14.6793C7.46424 13.2702 6.74284 11.9849 5.70064 10.9874C4.65845 9.99003 3.34273 9.32574 1.92136 9.07933H1.92593Z",stroke:"#E31B54",strokeWidth:"2.28571",strokeLinecap:"round",strokeLinejoin:"round"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_2453_20882"},(0,r.createElement)("rect",{width:32,height:32,fill:"white"}))))),(0,r.createElement)("h1",null,(0,v.__)("Write FAQ with BetterDocs AI","betterdocs"))),(0,r.createElement)("div",{className:"autowrite-subheadding"},(0,r.createElement)("p",null,(0,v.__)("Generate FAQs effortlessly with BetterDocs AI. Simply input your question & relevant keywords and let the system automatically generate FAQs tailored to your needs.","betterdocs"))),g&&!E(g)&&(0,r.createElement)("div",{id:"betterdocs-ai-message"},(0,r.createElement)("div",{className:"warning-message"},(0,r.createElement)("span",{className:"dashicons dashicons-warning"}),(0,r.createElement)("div",null,(0,v.__)("Please insert your","betterdocs")," ",(0,r.createElement)("a",{target:"_blank",href:"/wp-admin/admin.php?page=betterdocs-settings&tab=tab-ai-autowrite"},(0,v.__)("OpenAI API Key","betterdocs"))," ",(0,v.__)('to use this "Write with AI" feature.',"betterdocs")))),u&&(0,r.createElement)("div",{className:"form-group"},(0,r.createElement)("div",{id:"betterdocs-ai-error-message"},(0,r.createElement)("div",{className:"warning-message"},(0,r.createElement)("span",{className:"dashicons dashicons-warning"}),(0,r.createElement)("div",{className:"footer-message"},u))))),(0,r.createElement)("form",{id:"betterdocs-ai-form",className:g&&!E(g)&&"disabled-input-field",onSubmit:async e=>{e.preventDefault();const t=document.getElementById("betterdocs-ai-title").value,n=`Generate an FAQ answer for the question related to ${document.getElementById("betterdocs-ai-keyword").value}. The question: ${t}`;try{let{response:e,error:r}=await(async e=>{try{f(!0);const t="https://api.openai.com/v1/chat/completions",n={method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${E(g)}`},body:JSON.stringify({model:"gpt-3.5-turbo",messages:[{role:"system",content:"You are a helpful assistant."},{role:"user",content:e}],max_tokens:100})},r=await fetch(t,n),o=await r.json();if(!r.ok)throw new Error(`${o?.error?.message}`);return o.error?(f(!1),m(!1),{response:null,error:o.error}):(f(!1),m(!0),{response:o.choices[0].message.content,error:null})}catch(e){throw f(!1),m(!1),new Error(`${e.message}`)}})(n);e=((e,t)=>{if("string"!=typeof t)return t;const n=new RegExp(`(<[^>]*>${e}<[^>]*>)|(${e})`,"gi");return t.replace(n,"")})("Answer:",e),e=e.replace(/^\s*\?/,""),r?d(r):(i((n=>({...n,question:t,aiAnswer:e}))),c(e))}catch(e){d(`${e.message}`)}}},(0,r.createElement)("div",{className:"form-inner-content"},(0,r.createElement)("div",{className:"form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-ai-title"},(0,v.__)("Question:","betterdocs")),(0,r.createElement)("input",{type:"text",placeholder:(0,v.__)("Insert your question to generate a relevant response.","betterdocs"),id:"betterdocs-ai-title",name:"betterdocs-ai-title",required:!0,value:o?.question,onChange:e=>n((t=>({...t,question:e.target.value.replace(/^\s+/,"")})))})),(0,r.createElement)("div",{className:"form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-ai-keyword"},(0,v.__)("Keywords:","betterdocs")),(0,r.createElement)("input",{type:"text",placeholder:(0,v.__)("Add keywords to generate precise & relevant FAQs (comma-separated).","betterdocs"),id:"betterdocs-ai-keyword",name:"betterdocs-ai-keyword",required:!0})),s&&(0,r.createElement)("div",{className:"form-group generated-answer"},(0,r.createElement)("label",{htmlFor:"betterdocs-ai-keyword"},(0,v.__)("Generated FAQ:","betterdocs")),(0,r.createElement)("div",{className:"betterdocs-ai-content-wrapper"},(0,r.createElement)("p",{className:"betterdocs-ai-content",dangerouslySetInnerHTML:{__html:s}})))),(0,r.createElement)("div",{className:"generate-button-container"},(0,r.createElement)("button",{type:"submit",className:h?"generate-btn regenerate-btn":"generate-btn",disabled:p},p&&!h?(0,r.createElement)(J,null):h?(0,r.createElement)(ne,null):(0,r.createElement)(J,null),(0,r.createElement)("span",null,p?"Generating...":h?"Regenerate FAQ":"Generate FAQ")),h&&(0,r.createElement)("button",{type:"button",className:"keep-btn",onClick:()=>(n(a),void w())},(0,v.__)("Keep","betterdocs"))))),(0,r.createElement)("div",{className:"bd-close-button",onClick:()=>w()},"✕")))},ae=({reFetchFaqList:e,createFaqAt:t,setCreateFaqAt:n,reFetchCategories:o})=>{var a,i;const[s,l]=(0,r.useState)(!1),[u,d]=(0,r.useState)({question:"",answer:"",aiAnswer:null}),[p,f]=(0,r.useState)({question:"",answer:""}),[h,m]=(0,r.useState)(null);return(0,r.useEffect)((()=>{(0,y.uF)().then((e=>{m(e)})).catch((function(e){console.log(e)}))}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq-create-new"},(0,r.createElement)("form",{onSubmit:r=>{r.preventDefault();const a=(0,G.q)(u,{question:{required:{value:!0,message:(0,v.__)("Please insert your question here.","betterdocs")}},answer:{minLength:{value:9,message:(0,v.__)("Answer must not be Empty.","betterdocs")}}});a.valid?a.valid&&(f({question:"",answer:""}),(0,y.Dc)({term_id:t,post_title:u?.question,post_content:u?.answer}).then((t=>{e(),o(),t&&w().fire({text:(0,v.__)("FAQ Created Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})).finally((()=>{n(null)}))):f(a.errors)}},(0,r.createElement)("div",{className:"bd-faq-create-new-body"},(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,v.__)("Question","betterdocs")),(0,r.createElement)("div",{className:"bd-faq-cgt-field-wrapper"},(0,r.createElement)("input",{type:"text",className:"bd-faq-input",name:"faq-question",value:u?.question,onChange:e=>d({...u,question:e.target.value.replace(/^\s+/,"")}),placeholder:(0,v.__)("Add New Question","betterdocs")}),h&&(null===(a=h?.enable_faq_write_with_ai)||void 0===a||a)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success bd-write-with-ai-button",onClick:e=>{l(!0)}},(0,r.createElement)(Y,null),(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Write With AI","betterdocs")))),(0,r.createElement)(K.A,{error:p.question})),(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,v.__)("Answer","betterdocs")),(0,r.createElement)(U,{value:u?.answer,aiValue:u?.aiAnswer,onChange:e=>{d({...u,answer:e})},placeholder:(0,v.__)("Write your Answer here.","betterdocs")}),(0,r.createElement)(K.A,{error:p.answer}))),(0,r.createElement)("div",{className:"bd-faq-create-new-footer"},(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-danger",onClick:()=>{n(null)}},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Cancel","betterdocs"))),(0,r.createElement)("button",{type:"submit",className:"bd-faq-button button-success"},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Create","betterdocs"))))))),s&&h&&(null===(i=h?.enable_faq_write_with_ai)||void 0===i||i)&&(0,r.createElement)(oe,{open:!0,setFormFields:d,formFields:u,setShowFaqAIModalForm:l}))};var ie;function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se.apply(null,arguments)}const le=e=>r.createElement("svg",se({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),ie||(ie=r.createElement("path",{d:"m30 16-4.788 4.788A.71.71 0 0 1 24 20.286V17.5h-6.5V24h2.786a.71.71 0 0 1 .502 1.212L16 30l-4.788-4.788A.71.71 0 0 1 11.714 24H14.5v-6.5H8v2.786a.71.71 0 0 1-1.212.502L2 16l4.788-4.788A.71.71 0 0 1 8 11.714V14.5h6.5V8h-2.786a.71.71 0 0 1-.502-1.212L16 2l4.788 4.788A.71.71 0 0 1 20.286 8H17.5v6.5H24v-2.786a.71.71 0 0 1 1.212-.502z"})));var ce;function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(null,arguments)}const de=e=>r.createElement("svg",ue({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),ce||(ce=r.createElement("path",{d:"M424 64h-88V48c0-26.51-21.49-48-48-48h-64c-26.51 0-48 21.49-48 48v16H88c-22.091 0-40 17.909-40 40v32c0 8.837 7.163 16 16 16h384c8.837 0 16-7.163 16-16v-32c0-22.091-17.909-40-40-40M208 48c0-8.82 7.18-16 16-16h64c8.82 0 16 7.18 16 16v16h-96zM78.364 184a5 5 0 0 0-4.994 5.238l13.2 277.042c1.22 25.64 22.28 45.72 47.94 45.72h242.98c25.66 0 46.72-20.08 47.94-45.72l13.2-277.042a5 5 0 0 0-4.994-5.238zM320 224c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16zm-80 0c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16zm-80 0c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16z"})));var pe;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe.apply(null,arguments)}const he=e=>r.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 491.996 491.996"},e),pe||(pe=r.createElement("path",{d:"m484.132 124.986-16.116-16.228c-5.072-5.068-11.82-7.86-19.032-7.86-7.208 0-13.964 2.792-19.036 7.86l-183.84 183.848L62.056 108.554c-5.064-5.068-11.82-7.856-19.028-7.856s-13.968 2.788-19.036 7.856l-16.12 16.128c-10.496 10.488-10.496 27.572 0 38.06l219.136 219.924c5.064 5.064 11.812 8.632 19.084 8.632h.084c7.212 0 13.96-3.572 19.024-8.632l218.932-219.328c5.072-5.064 7.856-12.016 7.864-19.224 0-7.212-2.792-14.068-7.864-19.128"})));var me,ge,ye;function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ve.apply(null,arguments)}const be=e=>r.createElement("svg",ve({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 512 512"},e),me||(me=r.createElement("path",{d:"M352.459 220c0-11.046-8.954-20-20-20h-206c-11.046 0-20 8.954-20 20s8.954 20 20 20h206c11.046 0 20-8.954 20-20M126.459 280c-11.046 0-20 8.954-20 20s8.954 20 20 20H251.57c11.046 0 20-8.954 20-20s-8.954-20-20-20z"})),ge||(ge=r.createElement("path",{d:"M173.459 472H106.57c-22.056 0-40-17.944-40-40V80c0-22.056 17.944-40 40-40h245.889c22.056 0 40 17.944 40 40v123c0 11.046 8.954 20 20 20s20-8.954 20-20V80c0-44.112-35.888-80-80-80H106.57c-44.112 0-80 35.888-80 80v352c0 44.112 35.888 80 80 80h66.889c11.046 0 20-8.954 20-20s-8.954-20-20-20"})),ye||(ye=r.createElement("path",{d:"M467.884 289.572c-23.394-23.394-61.458-23.395-84.837-.016l-109.803 109.56a20 20 0 0 0-5.01 8.345l-23.913 78.725a20 20 0 0 0 24.476 25.087l80.725-22.361a20 20 0 0 0 8.79-5.119l109.573-109.367c23.394-23.394 23.394-61.458-.001-84.854M333.776 451.768l-40.612 11.25 11.885-39.129 74.089-73.925 28.29 28.29zM439.615 346.13l-3.875 3.867-28.285-28.285 3.862-3.854c7.798-7.798 20.486-7.798 28.284 0s7.798 20.486.014 28.272M332.459 120h-206c-11.046 0-20 8.954-20 20s8.954 20 20 20h206c11.046 0 20-8.954 20-20s-8.954-20-20-20"}))),we=()=>(0,r.createElement)("div",{className:"bd-empty-faq-category"},(0,r.createElement)("div",{className:"bd-faq-empty-icon"},(0,r.createElement)(x,null)),(0,r.createElement)("h2",{className:"bd-faq-empty-title"},(0,v.__)("No FAQ Found!","betterdocs")));var Ee,xe;function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ce.apply(null,arguments)}const _e=e=>r.createElement("svg",Ce({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:800,height:800,viewBox:"0 0 97.541 97.54"},e),Ee||(Ee=r.createElement("path",{d:"M70.063 27.182a7.784 7.784 0 0 0 10.97-.961c2.76-3.289 2.329-8.211-.96-10.973a7.8 7.8 0 0 0-5-1.822 7.78 7.78 0 0 0-5.971 2.782c-2.761 3.29-2.329 8.211.961 10.974M88.445 36.096a8.4 8.4 0 0 0-1.448.127c-4.485.791-7.493 5.086-6.702 9.573a8.24 8.24 0 0 0 8.119 6.825 8.5 8.5 0 0 0 1.451-.126c4.485-.792 7.492-5.086 6.701-9.571a8.24 8.24 0 0 0-8.121-6.828M88.158 63.113a8.7 8.7 0 0 0-4.354-1.172 8.78 8.78 0 0 0-7.579 4.371c-1.165 2.019-1.477 4.371-.872 6.625s2.052 4.139 4.069 5.304a8.7 8.7 0 0 0 4.357 1.174 8.77 8.77 0 0 0 7.576-4.369c2.406-4.172.972-9.525-3.197-11.933M63.316 78.646c-1.07 0-2.13.188-3.15.558a9.15 9.15 0 0 0-5.193 4.761 9.15 9.15 0 0 0-.308 7.04 9.24 9.24 0 0 0 8.654 6.063c1.07 0 2.13-.188 3.147-.559a9.14 9.14 0 0 0 5.191-4.764 9.15 9.15 0 0 0 .312-7.037 9.24 9.24 0 0 0-8.653-6.062M39.903 78.757a9.7 9.7 0 0 0-3.31-.588 9.71 9.71 0 0 0-9.097 6.375 9.6 9.6 0 0 0 .322 7.403 9.6 9.6 0 0 0 5.462 5.006 9.6 9.6 0 0 0 3.312.587 9.71 9.71 0 0 0 9.097-6.372 9.6 9.6 0 0 0-.326-7.4 9.62 9.62 0 0 0-5.46-5.011M24.916 65.6a10.2 10.2 0 0 0-8.805-5.078c-1.771 0-3.522.472-5.067 1.361a10.1 10.1 0 0 0-4.731 6.166 10.08 10.08 0 0 0 1.014 7.706 10.2 10.2 0 0 0 8.806 5.08c1.77 0 3.521-.472 5.065-1.362 4.848-2.799 6.516-9.023 3.718-13.873M11.495 54.991c5.158 0 9.555-3.695 10.453-8.786a10.55 10.55 0 0 0-1.762-7.94 10.56 10.56 0 0 0-6.861-4.372 10.607 10.607 0 0 0-12.313 8.622 10.56 10.56 0 0 0 1.762 7.941 10.56 10.56 0 0 0 6.861 4.371c.617.109 1.243.164 1.86.164M24.849 32.319c2.599 0 5.131-.923 7.13-2.598a11.03 11.03 0 0 0 3.918-7.538 11.02 11.02 0 0 0-2.551-8.104 11.08 11.08 0 0 0-8.511-3.965 11.1 11.1 0 0 0-7.131 2.597 11.03 11.03 0 0 0-3.923 7.537 11.03 11.03 0 0 0 2.555 8.104 11.09 11.09 0 0 0 8.513 3.967"})),xe||(xe=r.createElement("circle",{cx:49.955,cy:12.076,r:12.076}))),Se=()=>(0,r.createElement)("div",{className:"bd-faq-loader"},(0,r.createElement)(_e,null),(0,r.createElement)("h3",{className:"bd-title"},"Loading..."));var Oe=n(5798);const ke=({categoriesLoading:e,allFaqCategories:t,reFetchCategories:n,reFetchFaqList:o,faq:a,faqExpanded:i,setFaqExpanded:s,setReFetchFaqForCategory:l,showFaqAIModalForm:u,setShowFaqAIModalForm:d,settings:p})=>{var f,h;const[m,g]=(0,r.useState)({question:(0,T.decodeEntities)(a?.title?.rendered?a?.title?.rendered:a?.post_title?a?.post_title:""),answer:a?.content?.rendered?a?.content?.rendered:a?.post_content?a?.post_content:"",aiAnswer:null}),[b,E]=(0,r.useState)({default:{value:null,label:"Uncategorized"},cats:[]}),[x,C]=(0,r.useState)("not-set"),[_,S]=(0,r.useState)(!1),[O,k]=(0,r.useState)(""!=a?.meta?.faq_open_by_default);(0,r.useEffect)((()=>{i==(a?.id||a?.ID)&&g({question:(0,T.decodeEntities)(a?.title?.rendered?a?.title?.rendered:a?.post_title?a?.post_title:""),answer:a?.content?.rendered?a?.content?.rendered:a?.post_content?a?.post_content:""})}),[i]),(0,r.useEffect)((()=>{if(t?.length){let e;if(a?.betterdocs_faq_category){let n=t?.find((e=>e?.id==a?.betterdocs_faq_category[0]||e?.term_id==a?.betterdocs_faq_category[0]));e={value:n?.id||n?.term_id,label:(0,T.decodeEntities)(n?.name)}}else e={value:null,label:"Uncategorized"};let n=t?.map((e=>({value:e?.id||e?.term_id,label:(0,T.decodeEntities)(e?.name)})));E({default:e,cats:[...n]})}}),[t,a]);const[N,M]=(0,r.useState)({question:"",answer:""}),A=()=>{M({question:"",answer:""})},D=(e,t)=>{!_&&e?(S(!0),window.lastRequest=null,(0,y.pk)(e).then((e=>{t(e?.map((e=>({value:e?.id,label:e?.name}))))})).catch((e=>t([]))).finally((()=>{if(S(!1),window.lastRequest){const e=window.lastRequest;window.lastRequest=null,D(...e)}}))):window.lastRequest=[e,t]};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq-create-new"},(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault();const t=(0,G.q)(m,{question:{required:{value:!0,message:(0,v.__)("Please insert your question here.","betterdocs")}},answer:{minLength:{value:9,message:(0,v.__)("Answer must not be Empty.","betterdocs")}}});t.valid?t.valid&&(A(),(0,y.g1)(x&&"not-set"!=x?{post_id:a?.id||a?.ID,post_title:m?.question,post_content:m?.answer,term_id:x}:{post_id:a?.id||a?.ID,post_title:m?.question,post_content:m?.answer}).then((e=>{e&&w().fire({text:(0,v.__)("FAQ Updated Successfully","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})).finally((()=>{s(void 0),n(),o(),x&&"not-set"!=x&&l(x)}))):M(t.errors)}},(0,r.createElement)("div",{className:"bd-faq-create-new-body"},b?.cats?.length?(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label"},(0,v.__)("FAQ Group","betterdocs")),(0,r.createElement)(Oe.A,{cacheOptions:!0,className:"bd-faq-select",classNamePrefix:"bd-faq-select",defaultOptions:b?.cats,defaultValue:b?.default,isLoading:e,isClearable:!1,isSearchable:!0,name:"category",loadOptions:D,onChange:e=>(e=>{C(null==e?"not-set":e?.value)})(e),noOptionsMessage:()=>"No FAQ Group Found!"})):"",(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,v.__)("Question","betterdocs")),(0,r.createElement)("div",{className:"bd-faq-cgt-field-wrapper"},(0,r.createElement)("input",{type:"text",className:"bd-faq-input",name:"faq-question",value:m?.question,onChange:e=>g({...m,question:e.target.value.replace(/^\s+/,"")}),placeholder:(0,v.__)("Add New Question","betterdocs")}),p&&(null===(f=p?.enable_faq_write_with_ai)||void 0===f||f)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success bd-write-with-ai-button",onClick:e=>{d(!0)}},(0,r.createElement)(Y,null),(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Write With AI","betterdocs")))),(0,r.createElement)(K.A,{error:N.question})),(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,v.__)("Answer","betterdocs")),(0,r.createElement)(U,{value:m?.answer,aiValue:m?.aiAnswer,onChange:e=>{g({...m,answer:e.replace(/^\s+/,"")})},placeholder:(0,v.__)("Write your Answer here.","betterdocs")}),(0,r.createElement)(K.A,{error:N.answer}))),(0,r.createElement)("div",{className:"bd-faq-create-new-footer"},(0,r.createElement)("div",{className:"bd-toggle-switcher-group"},(0,r.createElement)("p",null,(0,v.__)("Keep It Open By default","betterdocs")),(0,r.createElement)("label",{className:"bd-faq-toggler"},(0,r.createElement)("input",{type:"checkbox",checked:O,onChange:()=>{(e=>{k(!O),(0,y.i4)(e?.id,!O)})(a)},className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"}))),(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-danger",onClick:()=>(s(void 0),g({question:"",answer:""}),A(),void C("not-set"))},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Cancel","betterdocs"))),(0,r.createElement)("button",{type:"submit",className:"bd-faq-button button-success"},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Update","betterdocs"))))))),u&&p&&(null===(h=p?.enable_faq_write_with_ai)||void 0===h||h)&&(0,r.createElement)(oe,{open:!0,setFormFields:g,formFields:m,setShowFaqAIModalForm:d}))};var Ne;function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Me.apply(null,arguments)}const Ae=e=>r.createElement("svg",Me({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 352.8 352.8"},e),Ne||(Ne=r.createElement("path",{d:"M318.54 57.28h-47.65V15c0-8.28-6.72-15-15-15H34.26c-8.28 0-15 6.72-15 15v265.52c0 8.28 6.72 15 15 15h47.65v42.28c0 8.28 6.72 15 15 15h221.63c8.28 0 15-6.72 15-15V72.28c0-8.28-6.72-15-15-15M49.26 265.52V30h191.62v27.28H96.92c-8.28 0-15 6.72-15 15v193.24zm254.28 57.28H111.92V87.28h191.62z"})));var De,Ie;function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je.apply(null,arguments)}const Te=e=>r.createElement("svg",je({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),De||(De=r.createElement("g",{clipPath:"url(#magic_svg__a)"},r.createElement("path",{stroke:"#A0A8B2",strokeLinecap:"round",strokeLinejoin:"round",d:"m6.927 13.202-3 .26.26-2.999 6.24-6.201a1 1 0 0 1 1.43 0l1.27 1.28a1 1 0 0 1 0 1.42zM.843 3.973c-.351-.061-.351-.565 0-.626A3.18 3.18 0 0 0 3.401.897L3.422.8c.076-.346.57-.349.651-.002l.025.112a3.19 3.19 0 0 0 2.564 2.436c.353.06.353.567 0 .629a3.19 3.19 0 0 0-2.567 2.434l-.026.113c-.079.346-.573.344-.649-.003l-.02-.097a3.18 3.18 0 0 0-2.56-2.45z"}))),Ie||(Ie=r.createElement("defs",null,r.createElement("clipPath",{id:"magic_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Le=({data:e,index:t,category:n,categoriesLoading:o,allFaqCategories:a,reFetchCategories:i,reFetchFaqList:s,setCreateFaqAt:l,faqExpanded:u,setFaqExpanded:d,setReFetchFaqForCategory:p,settings:f})=>{const[h,m]=(0,r.useState)(e?.status),[g,b]=(0,r.useState)(!1);(0,r.useEffect)((()=>{m(e?.status)}),[e]),(0,r.useEffect)((()=>{void 0!==u&&l(null)}),[u]);const E=e=>{d(e?.id)},x=e=>{d(u===e?.id?void 0:e?.id)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(I.sx,{key:e?.id,draggableId:e?.id.toString(),index:t},((t,l)=>{var C,_,S;return(0,r.createElement)("div",{className:"bd-faq",ref:t.innerRef,...t.draggableProps,style:(_=l.isDragging,S=t.draggableProps.style,{boxShadow:_&&"0 0 5px rgba(0, 0, 0, 0.5)",...S})},(0,r.createElement)("div",{className:"bd-faq-head"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-drag-button",...t.dragHandleProps},(0,r.createElement)(le,null)),(0,r.createElement)("h3",{className:"bd-faq-title",onClick:()=>x(e)},(0,T.decodeEntities)(e?.title?.rendered)),(0,r.createElement)("label",{className:"bd-faq-toggler"},(0,r.createElement)("input",{type:"checkbox",checked:"publish"===h,onChange:()=>{return t=e?.id,void(0,y.t6)(t,"publish"===h?"draft":"publish").then((()=>{m("publish"===h?"draft":"publish"),"publish"===h?c.oR.error((0,v.__)("FAQ Disabled.","betterdocs")):c.oR.success((0,v.__)("FAQ Enabled.","betterdocs"))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}));var t},className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>E(e)},(0,r.createElement)(be,null)),f&&(null===(C=f?.enable_faq_write_with_ai)||void 0===C||C)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button magic-icon",onClick:()=>{E(e),b(!0)}},(0,r.createElement)(Te,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{w().fire({title:(0,v.__)("Duplicate this FAQ?","betterdocs"),icon:"info",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,v.__)("Yes","betterdocs"),cancelButtonText:(0,v.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t.isConfirmed&&(0,y.Dc)({term_id:n,post_title:"Copy "+e?.title?.rendered,post_content:e?.content?.rendered}).then((e=>{e&&(s(),i(),w().fire({text:(0,v.__)("FAQ Duplicated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}))}},(0,r.createElement)(Ae,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return t=e?.id,void w().fire({title:(0,v.__)("Delete this FAQ?","betterdocs"),text:(0,v.__)("You won’t be able to revert this!","betterdocs"),icon:"warning",showCancelButton:!0,confirmButtonText:(0,v.__)("Yes, delete it!","betterdocs"),cancelButtonText:(0,v.__)("Cancel","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e.isConfirmed&&(0,y.md)(t).then((()=>{s(),i(),w().fire({text:(0,v.__)("FAQ Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}));var t}},(0,r.createElement)(de,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(u===e?.id?"active":""),onClick:()=>x(e)},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-body "+(u===e?.id?"active":"")},(0,r.createElement)("div",{className:"bd-faq-body-inner"},(0,r.createElement)(ke,{categoriesLoading:o,allFaqCategories:a,reFetchCategories:i,faq:e,reFetchFaqList:s,faqExpanded:u,setFaqExpanded:d,setReFetchFaqForCategory:p,showFaqAIModalForm:g,setShowFaqAIModalForm:b,settings:f}))))})))},Pe=({category:e,allFaqCategories:t,changeFaqSort:n,reFetchFaqForCategory:o,createFaqAt:a,categoriesLoading:i,reFetchCategories:s,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:d,setReFetchFaqForCategory:p,setChangeFaqSort:f,setReFetchData:h})=>{const{isLoading:m,data:g,refetch:v}=(0,u.I)(["allFaqList",e?.id],y.Ws),[b,w]=(0,r.useState)([]);return(0,r.useEffect)((()=>{v()}),[t]),(0,r.useEffect)((()=>{h({func:v})}),[g]),(0,r.useEffect)((()=>{let t=[];if(e?.meta?._betterdocs_faq_order[0]&&(t=e?.meta?._betterdocs_faq_order[0].split(",").map((e=>Number(e)))),g?.length)if(t.length){let e=[];t.forEach((t=>{let n=g?.find((e=>e?.id===t));n&&e.push(n)})),w(e)}else w(g);else w([])}),[g,e?.meta?._betterdocs_faq_order[0]]),(0,r.useEffect)((()=>{if(n?.destination?.droppableId==e?.id){let t=j(n,b);w(t),(0,y.qK)(e?.id,t?.map((e=>e?.id))?.toString()).then((()=>{s()})),f({})}}),[n]),(0,r.useEffect)((()=>{o&&o==e?.id&&(v(),p(null))}),[o]),(0,r.createElement)(I.gL,{droppableId:e?.id.toString(),type:"FAQ"},(n=>(0,r.createElement)("div",{...n.droppableProps,ref:n.innerRef,className:"bd-faq-list-droppable"},m?(0,r.createElement)(Se,null):b?.length>0?b?.map(((n,o)=>(0,r.createElement)(Le,{key:n?.id,data:n,index:o,reFetchFaqList:v,category:e?.id,categoriesLoading:i,allFaqCategories:t,reFetchCategories:s,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:d,setReFetchFaqForCategory:p,settings:betterdocsFaq?.betterdocs_settings}))):a!==e?.id&&(0,r.createElement)(we,null),n.placeholder)))},Re=({index:e,category:t,categoriesLoading:n,allFaqCategories:o,reFetchCategories:a,setFetchUncategorizedFaq:i,setUpdateCategory:s,categoryExpanded:l,setCategoryExpanded:u,setCreateFaqAt:d,createFaqAt:p,faqExpanded:f,setFaqExpanded:h,changeFaqSort:m,setChangeFaqSort:g,reFetchFaqForCategory:b,setReFetchFaqForCategory:E,setShowFaqAIModalForm:x})=>{const[C,_]=(0,r.useState)(),[S,O]=(0,r.useState)(!0),k=(0,r.useRef)(!1);(0,r.useEffect)((()=>{l!==p&&d(null)}),[l,p]),(0,r.useEffect)((()=>{O(t?.meta?.status[0])}),[t?.meta?.status[0]]);const N=e=>{l==e?(u(void 0),h(void 0),d(null)):u(e)},M=e=>{k.current||(k.current=!0,(0,y.Bp)(e,"1"===S?"0":"1").then((()=>{"1"===S?c.oR.error((0,v.__)("FAQ Group Disabled.","betterdocs")):c.oR.success((0,v.__)("FAQ Group Enabled.","betterdocs")),a()})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})).finally((()=>{k.current=!1})))};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(I.sx,{key:t?.id,draggableId:t?.id.toString(),index:e},((e,O)=>{return(0,r.createElement)("div",{className:"bd-faq-ctg",ref:e.innerRef,...e.draggableProps,style:(k=O.isDragging,A=e.draggableProps.style,{boxShadow:k&&"0 0 5px rgba(0, 0, 0, 0.5)",...A})},(0,r.createElement)("div",{className:"bd-faq-ctg-head"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-ctg-drag-button",...e.dragHandleProps},(0,r.createElement)(le,null)),(0,r.createElement)("h3",{className:"bd-faq-ctg-title",onClick:()=>N(t?.id)},(0,T.decodeEntities)(t?.name)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success",onClick:()=>{return e=t?.id,d(e),h(void 0),void u(e);var e}},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Add a New FAQ","betterdocs"))),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>s(t)},(0,r.createElement)(be,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return e=t?.id,void w().fire({text:(0,v.__)("Delete this FAQ Group?","betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,v.__)("Yes","betterdocs"),cancelButtonText:(0,v.__)("No","betterdocs"),input:"checkbox",inputValue:0,inputPlaceholder:(0,v.__)("Also delete all FAQs inside this FAQ Group","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t?.isConfirmed&&(0==t?.value?(0,y.IE)(e,!1).then((()=>{a(),i(!0),w().fire({text:(0,v.__)("FAQ Group Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})):(0,y.IE)(e,!0).then((()=>{a(),i(!0),w().fire({text:(0,v.__)("FAQ Group Deleted Successfully With All FAQs.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})))}));var e}},(0,r.createElement)(de,null)),(0,r.createElement)("label",{className:"bd-faq-toggler",onClick:()=>M(t?.id)},(0,r.createElement)("input",{type:"checkbox",checked:"1"===S,onChange:()=>M(t?.id),className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(l==t?.id?"active":""),onClick:()=>N(t?.id)},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-category-body "+(l==t?.id?"active":"")},(0,r.createElement)("div",{style:{overflow:"hidden"}},(0,r.createElement)("div",{className:"bd-faq-category-body-inner"},p===t?.id&&(0,r.createElement)(ae,{reFetchFaqList:C?.func,createFaqAt:p,setCreateFaqAt:d,reFetchCategories:a,setShowFaqAIModalForm:x}),l==t?.id?(0,r.createElement)(Pe,{category:t,allFaqCategories:o,changeFaqSort:m,reFetchFaqForCategory:b,createFaqAt:p,categoriesLoading:n,reFetchCategories:a,setCreateFaqAt:d,faqExpanded:f,setFaqExpanded:h,setReFetchFaqForCategory:E,setChangeFaqSort:g,setReFetchData:_}):""))));var k,A})))},Fe=({data:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,reFetchFaqList:a,setCreateFaqAt:i,faqExpanded:s,setFaqExpanded:l,setReFetchFaqForCategory:u,settings:d})=>{var p;const[f,h]=(0,r.useState)(e?.post_status),[m,g]=(0,r.useState)(!1);(0,r.useEffect)((()=>{void 0!==s&&i(null)}),[s]);const b=e=>{l(e?.ID)},E=e=>{l(s===e?.ID?void 0:e?.ID)};return(0,r.createElement)("div",{className:"bd-faq"},(0,r.createElement)("div",{className:"bd-faq-head"},(0,r.createElement)("h3",{className:"bd-faq-title",onClick:()=>E(e)},e?.post_title),(0,r.createElement)("label",{className:"bd-faq-toggler",onClick:()=>{return t=e?.ID,void(0,y.t6)(t,"publish"===f?"draft":"publish").then((()=>{h("publish"===f?"draft":"publish"),"publish"===f?c.oR.error((0,v.__)("FAQ Disabled.","betterdocs")):c.oR.success((0,v.__)("FAQ Enabled.","betterdocs"))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}));var t}},(0,r.createElement)("input",{type:"checkbox",checked:"publish"===f,className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>b(e)},(0,r.createElement)(be,null)),d&&(null===(p=d?.enable_faq_write_with_ai)||void 0===p||p)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button magic-icon",onClick:()=>{b(e),g(!0)}},(0,r.createElement)(Te,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{w().fire({title:(0,v.__)("Duplicate this FAQ?","betterdocs"),icon:"info",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,v.__)("Yes","betterdocs"),cancelButtonText:(0,v.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t.isConfirmed&&(0,y.Dc)({term_id:null,post_title:"Copy "+e?.post_title,post_content:e?.post_content}).then((e=>{e&&w().fire({text:(0,v.__)("FAQ Duplicated Successfully","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}).then((()=>a()))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}))}},(0,r.createElement)(Ae,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return t=e?.ID,void w().fire({title:(0,v.__)("Delete this FAQ?","betterdocs"),text:(0,v.__)("You won’t be able to revert this!","betterdocs"),icon:"warning",showCancelButton:!0,confirmButtonText:(0,v.__)("Yes, delete it!","betterdocs"),cancelButtonText:(0,v.__)("Cancel","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e.isConfirmed&&(0,y.md)(t).then((()=>{w().fire({text:(0,v.__)("FAQ Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}).then((()=>a()))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}));var t}},(0,r.createElement)(de,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(s===e?.ID?"active":""),onClick:()=>{E(e)}},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-body "+(s===e?.ID?"active":"")},(0,r.createElement)("div",{className:"bd-faq-body-inner"},(0,r.createElement)(ke,{faq:e,reFetchFaqList:a,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,faqExpanded:s,setFaqExpanded:l,setReFetchFaqForCategory:u,showFaqAIModalForm:m,setShowFaqAIModalForm:g,settings:d}))))},Be=({categoriesLoading:e,allFaqCategories:t,reFetchCategories:n,allUncategorizedFaq:o,setFetchUncategorizedFaq:a,categoryExpanded:i,setCategoryExpanded:s,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:u,setReFetchFaqForCategory:d})=>{const p=()=>{s("uncategorized"==i?void 0:"uncategorized")};return(0,r.createElement)("div",{className:"bd-faq-ctg"},(0,r.createElement)("div",{className:"bd-faq-ctg-head"},(0,r.createElement)("h3",{className:"bd-faq-ctg-title",onClick:()=>p()},(0,v.__)("Uncategorized","betterdocs")),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+("uncategorized"==i?"active":""),onClick:()=>p()},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-category-body "+("uncategorized"==i?"active":"")},(0,r.createElement)("div",{style:{overflow:"hidden"}},(0,r.createElement)("div",{className:"bd-faq-category-body-inner"},"uncategorized"==i&&o?.map((o=>(0,r.createElement)(Fe,{key:Math.random(),data:o,reFetchFaqList:a,categoriesLoading:e,allFaqCategories:t,reFetchCategories:n,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:u,setReFetchFaqForCategory:d,settings:betterdocsFaq?.betterdocs_settings})))))))},ze=o().memo((({isLoading:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,setUpdateCategory:a,setUncategorizedLoading:i,setUncategorizedEmpty:s,setShowFaqAIModalForm:l,perPage:c,currentPage:d})=>{const{isLoading:p,data:f,refetch:h}=(0,u.I)(["uncategorizedFaq"],y.sh),[m,g]=(0,r.useState)(null),[v,b]=(0,r.useState)(void 0),[w,E]=(0,r.useState)(void 0),[x,C]=(0,r.useState)([]),[_,S]=(0,r.useState)({}),[O,k]=(0,r.useState)(null);return(0,r.useEffect)((()=>{C(n?.length?n.sort((function(e,t){return e?.meta?.order[0]-t?.meta?.order[0]})):[])}),[n]),(0,r.useEffect)((()=>{s(!f?.length)}),[f]),(0,r.useEffect)((()=>{i(p)}),[p]),(0,r.createElement)(r.Fragment,null,e?"":(0,r.createElement)(I.JY,{onDragEnd:e=>{if(e.destination)if("category"==e.type){const t=((e,t,n,r)=>{const o=t.map((e=>({id:e?.id,current_position:e?.meta?.order[0]})));let a=[],i=1!=n?r*n+1-10:n;o?.splice(e?.destination?.index,0,...o?.splice(e?.source?.index,1));for(let e=0;e<o?.length;e++)a.push({...o[e],updated_position:i.toString()}),i++;return a})(e,x,d,c);(0,y.mG)(t),E(void 0),C(x.map((e=>({...e,meta:{...e?.meta,order:[t.find((t=>t?.id===e?.id))?.updated_position]}}))).sort((function(e,t){return e?.meta?.order[0]-t?.meta?.order[0]})))}else S(e)}},(0,r.createElement)("div",{className:"bd-faq-ctg-list"},(0,r.createElement)(I.gL,{droppableId:"bdCategoryList",type:"category"},(e=>(0,r.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"bd-faq-ctg-list-droppable"},t?"loading":x?.map(((e,i)=>(0,r.createElement)(Re,{key:e.id,index:i,category:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,createFaqAt:m,setFetchUncategorizedFaq:h,setUpdateCategory:a,categoryExpanded:w,setCategoryExpanded:E,setCreateFaqAt:g,faqExpanded:v,setFaqExpanded:b,changeFaqSort:_,setChangeFaqSort:S,reFetchFaqForCategory:O,setReFetchFaqForCategory:k,setShowFaqAIModalForm:l}))),e.placeholder))),f?.length?(0,r.createElement)(Be,{categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,allUncategorizedFaq:f,setFetchUncategorizedFaq:h,categoryExpanded:w,setCategoryExpanded:E,setCreateFaqAt:g,faqExpanded:v,setFaqExpanded:b,setReFetchFaqForCategory:k}):"")))}));var qe=n(8120),Ue=n(1955),He=n(5387);const Ve=({data:e,index:t,category:n,categoriesLoading:o,allFaqCategories:a,reFetchCategories:i,reFetchFaqList:s,setCreateFaqAt:l,faqExpanded:u,setFaqExpanded:d,setReFetchFaqForCategory:p,settings:f})=>{var h;const[m,g]=(0,r.useState)(e?.status),[b,E]=(0,r.useState)(!1);(0,r.useEffect)((()=>{g(e?.status)}),[e]),(0,r.useEffect)((()=>{void 0!==u&&l(null)}),[u]);const x=e=>{d(e?.id)},C=e=>{d(u===e?.id?void 0:e?.id)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq"},(0,r.createElement)("div",{className:"bd-faq-head"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-drag-button"},(0,r.createElement)(le,null)),(0,r.createElement)("h3",{className:"bd-faq-title",onClick:()=>C(e)},(0,T.decodeEntities)(e?.title?.rendered)),(0,r.createElement)("label",{className:"bd-faq-toggler"},(0,r.createElement)("input",{type:"checkbox",checked:"publish"===m,onChange:()=>{return t=e?.id,void(0,y.t6)(t,"publish"===m?"draft":"publish").then((()=>{g("publish"===m?"draft":"publish"),"publish"===m?c.oR.error((0,v.__)("FAQ Disabled.","betterdocs")):c.oR.success((0,v.__)("FAQ Enabled.","betterdocs"))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}));var t},className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>x(e)},(0,r.createElement)(be,null)),f&&(null===(h=f?.enable_faq_write_with_ai)||void 0===h||h)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button magic-icon",onClick:()=>{x(e),E(!0)}},(0,r.createElement)(Te,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{w().fire({title:(0,v.__)("Duplicate this FAQ?","betterdocs"),icon:"info",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,v.__)("Yes","betterdocs"),cancelButtonText:(0,v.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t.isConfirmed&&(0,y.Dc)({term_id:n,post_title:"Copy "+e?.title?.rendered,post_content:e?.content?.rendered}).then((e=>{e&&(s(),i(),w().fire({text:(0,v.__)("FAQ Duplicated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}))}},(0,r.createElement)(Ae,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return t=e?.id,void w().fire({title:(0,v.__)("Delete this FAQ?","betterdocs"),text:(0,v.__)("You won’t be able to revert this!","betterdocs"),icon:"warning",showCancelButton:!0,confirmButtonText:(0,v.__)("Yes, delete it!","betterdocs"),cancelButtonText:(0,v.__)("Cancel","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e.isConfirmed&&(0,y.md)(t).then((()=>{s(),i(),w().fire({text:(0,v.__)("FAQ Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}));var t}},(0,r.createElement)(de,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(u===e?.id?"active":""),onClick:()=>C(e)},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-body "+(u===e?.id?"active":"")},(0,r.createElement)("div",{className:"bd-faq-body-inner"},(0,r.createElement)(ke,{categoriesLoading:o,allFaqCategories:a,reFetchCategories:i,faq:e,reFetchFaqList:s,faqExpanded:u,setFaqExpanded:d,setReFetchFaqForCategory:p,showFaqAIModalForm:b,setShowFaqAIModalForm:E,settings:f})))))},Ke=({category:e,allFaqCategories:t,changeFaqSort:n,reFetchFaqForCategory:o,createFaqAt:a,categoriesLoading:i,reFetchCategories:s,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:d,setReFetchFaqForCategory:p,setChangeFaqSort:f,setReFetchData:h})=>{const{isLoading:m,data:g,refetch:v}=(0,u.I)(["allFaqList",e?.term_id],y.Ws),[b,w]=(0,r.useState)([]);return(0,r.useEffect)((()=>{v()}),[t]),(0,r.useEffect)((()=>{h({func:v})}),[g]),(0,r.useEffect)((()=>{let t=[];if(e?.meta?._betterdocs_faq_order[0]&&(t=e?.meta?._betterdocs_faq_order[0].split(",").map((e=>Number(e)))),g?.length)if(t.length){let e=[];t.forEach((t=>{let n=g?.find((e=>e?.id===t));n&&e.push(n)})),w(e)}else w(g);else w([])}),[g,e?.meta?._betterdocs_faq_order[0]]),(0,r.useEffect)((()=>{if(n?.destination?.droppableId==e?.term_id){let t=j(n,b);w(t),(0,y.qK)(e?.term_id,t?.map((e=>e?.id))?.toString()).then((()=>{s()})),f({})}}),[n]),(0,r.useEffect)((()=>{o&&o==e?.term_id&&(v(),p(null))}),[o]),(0,r.createElement)("div",{className:"bd-faq-list-droppable"},m?(0,r.createElement)(Se,null):b?.length>0?b?.map(((n,o)=>(0,r.createElement)(Ve,{key:n?.id,data:n,index:o,reFetchFaqList:v,category:e?.term_id,categoriesLoading:i,allFaqCategories:t,reFetchCategories:s,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:d,setReFetchFaqForCategory:p,settings:betterdocsFaq?.betterdocs_settings}))):a!==e?.term_id&&(0,r.createElement)(we,null))},Ge=({category:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,setFetchUncategorizedFaq:a,setUpdateCategory:i,categoryExpanded:s,setCategoryExpanded:l,setCreateFaqAt:u,createFaqAt:d,faqExpanded:p,setFaqExpanded:f,changeFaqSort:h,setChangeFaqSort:m,reFetchFaqForCategory:g,setReFetchFaqForCategory:b,setShowFaqAIModalForm:E})=>{const[x,C]=(0,r.useState)(),[_,S]=(0,r.useState)(!0),O=(0,r.useRef)(!1);(0,r.useEffect)((()=>{s!==d&&u(null)}),[s,d]),(0,r.useEffect)((()=>{S(e?.meta?.status[0])}),[e?.meta?.status[0]]);const k=e=>{s==e?(l(void 0),f(void 0),u(null)):l(e)},N=e=>{O.current||(O.current=!0,(0,y.Bp)(e,"1"===_?"0":"1").then((()=>{"1"===_?c.oR.error((0,v.__)("FAQ Group Disabled.","betterdocs")):c.oR.success((0,v.__)("FAQ Group Enabled.","betterdocs")),o()})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})).finally((()=>{O.current=!1})))};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq-ctg"},(0,r.createElement)("div",{className:"bd-faq-ctg-head"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-ctg-drag-button"},(0,r.createElement)(le,null)),(0,r.createElement)("h3",{className:"bd-faq-ctg-title",onClick:()=>k(e?.term_id)},(0,T.decodeEntities)(e?.name)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success",onClick:()=>{return t=e?.term_id,u(t),f(void 0),void l(t);var t}},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Add a New FAQ","betterdocs"))),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>i(e)},(0,r.createElement)(be,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return t=e?.term_id,void w().fire({text:(0,v.__)("Delete this FAQ Group?","betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,v.__)("Yes","betterdocs"),cancelButtonText:(0,v.__)("No","betterdocs"),input:"checkbox",inputValue:0,inputPlaceholder:(0,v.__)("Also delete all FAQs inside this FAQ Group","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e?.isConfirmed&&(0==e?.value?(0,y.IE)(t,!1).then((()=>{o(),w().fire({text:(0,v.__)("FAQ Group Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})):(0,y.IE)(t,!0).then((()=>{o(),w().fire({text:(0,v.__)("FAQ Group Deleted Successfully With All FAQs.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})))}));var t}},(0,r.createElement)(de,null)),(0,r.createElement)("label",{className:"bd-faq-toggler",onClick:()=>N(e?.term_id)},(0,r.createElement)("input",{type:"checkbox",checked:"1"===_,onChange:()=>N(e?.term_id),className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(s==e?.term_id?"active":""),onClick:()=>k(e?.term_id)},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-category-body "+(s==e?.term_id?"active":"")},(0,r.createElement)("div",{style:{overflow:"hidden"}},(0,r.createElement)("div",{className:"bd-faq-category-body-inner"},d===e?.term_id&&(0,r.createElement)(ae,{reFetchFaqList:x?.func,createFaqAt:d,setCreateFaqAt:u,reFetchCategories:o,setShowFaqAIModalForm:E}),s==e?.term_id?(0,r.createElement)(Ke,{category:e,allFaqCategories:n,changeFaqSort:h,reFetchFaqForCategory:g,createFaqAt:d,categoriesLoading:t,reFetchCategories:o,setCreateFaqAt:u,faqExpanded:p,setFaqExpanded:f,setReFetchFaqForCategory:b,setChangeFaqSort:m,setReFetchData:C}):"")))))},We=o().memo((({isLoading:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,setUpdateCategory:a,setShowFaqAIModalForm:i})=>{const[s,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(void 0),[d,p]=(0,r.useState)(void 0),[f,h]=(0,r.useState)([]),[m,g]=(0,r.useState)({}),[y,v]=(0,r.useState)(null);return(0,r.useEffect)((()=>{n?.length?h(n.sort((function(e,t){return e?.meta?.order[0]-t?.meta?.order[0]})),33):h([])}),[n]),(0,r.createElement)(r.Fragment,null,e?"":(0,r.createElement)("div",{className:"bd-faq-ctg-list"},(0,r.createElement)("div",{className:"bd-faq-ctg-list-droppable"},t?"loading":f?.map(((e,f)=>(0,r.createElement)(Ge,{key:e?.term_id,index:f,category:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,createFaqAt:s,setUpdateCategory:a,categoryExpanded:d,setCategoryExpanded:p,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:u,changeFaqSort:m,setChangeFaqSort:g,reFetchFaqForCategory:y,setReFetchFaqForCategory:v,setShowFaqAIModalForm:i}))))))})),Ye=()=>{const{categories:e,setCategories:t,reFetchCategories:n,setReFetchCategories:o}=(0,Ue.g)(),[a,i]=(0,r.useState)(10),[s,l]=(0,r.useState)(1),[,,,c]=(0,He.KC)(),p=c?.length>0,{isLoading:h,data:m,refetch:g}=(0,u.I)(["allFaqCategories",a,s],y.QU,{keepPreviousData:!0,enabled:!p}),{isLoading:v,data:b,isRefetching:w,refetch:E}=(0,u.I)(["allFaqSearchedData",c],y.Yq,{keepPreviousData:!0,enabled:!!p});(0,r.useEffect)((()=>{o((()=>g))}),[g]),(0,r.useEffect)((()=>{m?.data&&t(m.data)}),[m]);const[x,C]=(0,r.useState)(!0),[_,S]=(0,r.useState)(!1),[O,k]=(0,r.useState)(!0),[N,M]=(0,r.useState)(!0),[A,I]=(0,r.useState)(!1),[j,T]=(0,r.useState)(null);(0,r.useEffect)((()=>{C(!(!h&&!O))}),[h,O]),(0,r.useEffect)((()=>{e.length||!N?S(!1):S(!0)}),[e,N]);let L=[];for(let e=1;e<=10;e++)L?.push(10*e);return(0,r.createElement)(r.Fragment,null,(p&&v||p&&w)&&(0,r.createElement)(f,null),p&&!v&&!w&&(0,r.createElement)(We,{isLoading:v,categoriesLoading:v,allFaqCategories:b,reFetchCategories:E,setUpdateCategory:T,setIsEmptyDashboard:S,setUncategorizedLoading:k,setUncategorizedEmpty:M}),p&&!v&&!w&&0==b?.length&&(0,r.createElement)(D,{reFetchCategories:g,setShowCategoryModal:I,showFaqActionButtons:!1,showNewFaqText:!1}),!p&&x?(0,r.createElement)(f,null):(0,r.createElement)(r.Fragment,null,!p&&_?(0,r.createElement)(D,{reFetchCategories:g,setShowCategoryModal:I}):""),!p&&(0,r.createElement)(ze,{isLoading:x,categoriesLoading:h,allFaqCategories:e,reFetchCategories:g,setUpdateCategory:T,setIsEmptyDashboard:S,setUncategorizedLoading:k,setUncategorizedEmpty:M,perPage:a,currentPage:s}),(0,r.createElement)("div",{className:"btd-faq-pagination-wrapper"},(0,r.createElement)("select",{name:"per_page",id:"bdt-faq-per-page",value:a,onChange:e=>{i(e?.target?.value)}},L?.map(((e,t)=>(0,r.createElement)("option",{value:e},e)))),m?.total>a&&!p?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(d.A,{pageSize:a,current:s,onChange:(e,t)=>{l(e),i(t)},total:m?.total})):""),A||null!==j?(0,r.createElement)(qe.A,{open:!0,reFetchCategories:g,setShowCategoryModal:I,updateCategory:j,setUpdateCategory:T}):"")},Qe=()=>(0,r.createElement)("div",{className:"betterdocs-faq-wrapper betterdocs-dashboard-container"},(0,r.createElement)(Ye,null)),$e=new a.E,Ze=()=>((0,r.useEffect)((()=>{l().setAppElement("#betterdocs-faq-builder-wrapper")}),[]),(0,r.createElement)("div",{id:"betterdocs-faq-builder-wrapper",className:"betterdocs-faq-builder-wrapper"},(0,r.createElement)(i.Ht,{client:$e},(0,r.createElement)(c.N9,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"colored",limit:4}),(0,r.createElement)(Qe,null))))},537:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),o=n(886);const a=({error:e})=>e&&e.length&&(0,r.createElement)("p",{className:"bd-error-message"},(0,o.decode)(e))||""},4456:(e,t,n)=>{"use strict";n.d(t,{Bp:()=>p,Dc:()=>g,rg:()=>c,md:()=>v,IE:()=>d,t6:()=>b,Az:()=>E,QU:()=>i,Ws:()=>h,sh:()=>m,Yq:()=>s,uF:()=>C,i4:()=>x,O$:()=>_,mG:()=>f,qK:()=>w,pk:()=>l,g1:()=>y,KK:()=>u});var r=n(1455),o=n.n(r);const a=JSON.parse('{"Orders":{"posts":[{"post_title":"What are my payment options?","post_content":"We accept all the popular payment methods such as PayPal, Visa, MasterCard, Discover, Amazon Pay, American Express and Google Pay."},{"post_title":"How to track my order?","post_content":"You will receive an email from us after you have placed the order. You’ll get confirmation in your email when you purchase and we’ll let you know when your order is on the move. You will be able to track your order through your preferred shipping partner."},{"post_title":"How do I cancel or change my order?","post_content":"Unfortunately, it’s not possible to make any changes to an order or cancel it once it has been placed. However, you could ask for a refund."}]},"Shipping & Delivery":{"posts":[{"post_title":"How long does the delivery take?","post_content":"We usually take 3-5 business days for your order to be shipped & delivered."},{"post_title":"Do you offer free shipping?","post_content":"Yes, free shipping is available for all the orders that\'s placed inside the United States. We charge shipping fees for overseas orders."},{"post_title":"Do you ship overseas?","post_content":"Yes, we ship all over the world. Please note that additional shipping costs will be applied based on your delivery location."}]},"Refund & Exchange":{"posts":[{"post_title":"What is your Refund & Exchange Policy?","post_content":"You can ask for a refund within 30 days of your purchase. Returned items must be in the exact same condition as they were received."},{"post_title":"How do I track my Refund?","post_content":"To track the status of your refund, kindly refer to your confirmation email that you have received from us."},{"post_title":"How long does it take to get the Refund?","post_content":"Once we receive your return, please allow us 3-5 business days for your refund to process. Refund amount will be automatically debited to the same form of payment originally used for purchase."}]}}');n(1609);const i=({queryKey:e})=>{const[t,n,r]=e;o().use(o().createNonceMiddleware(betterdocs_admin.nonce));let a=o()({path:`wp/v2/betterdocs_faq_category?per_page=${n}&page=${r}`,method:"GET",parse:!1}),i=0,s=0;return a.then((e=>(s=e?.headers?.get("X-WP-TotalPages"),i=e?.headers?.get("X-WP-Total"),e.json()))).then((e=>({data:e,totalPages:s,total:i})))},s=({queryKey:e})=>{const[t,n]=e;return o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:`betterdocs/v1/faq-terms-by-keyword-search?search=${n}`,method:"GET",parse:!1}).then((e=>e.json())).then((e=>e))},l=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:`betterdocs/faq/category_search/?title=${e}`,method:"GET"})),c=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/create_category",method:"POST",data:{title:e?.title,group_icon_url:e?.icon,slug:null,description:null,nonce:betterdocs_admin.nonce}})),u=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/update_category",method:"POST",data:{term_id:e?.term_id,title:e?.title,group_icon_url:e?.icon,slug:null,description:null,nonce:betterdocs_admin.nonce}})),d=(e,t)=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/delete_category",method:"POST",data:{term_id:e,with_all_post:t,nonce:betterdocs_admin.nonce}})),p=(e,t)=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/category_status",method:"POST",data:{term_id:e,status:t,nonce:betterdocs_admin.nonce}})),f=e=>{o().use(o().createNonceMiddleware(betterdocs_admin.nonce));const t=JSON.stringify(e);return o()({path:"betterdocs/faq/category_order",method:"POST",data:{faq_category_order:t,nonce:betterdocs_admin.nonce}})},h=async({queryKey:e})=>{const[t,n]=e;return o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:`wp/v2/betterdocs_faq?betterdocs_faq_category=${n}&status=publish,draft&posts_per_page=-1`,method:"GET"})},m=async({queryKey:e})=>{const[t]=e;return o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/uncategorised?status=publish,draft",method:"GET"})},g=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/create_post",method:"POST",data:{post_title:e?.post_title,post_content:e?.post_content,term_id:e?.term_id?e?.term_id:null,nonce:betterdocs_admin.nonce}})),y=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/update_post",method:"POST",data:{post_id:e?.post_id,post_title:e?.post_title,post_content:e?.post_content,term_id:e?.term_id,nonce:betterdocs_admin.nonce}})),v=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/delete_post",method:"POST",data:{post_id:e,nonce:betterdocs_admin.nonce}})),b=(e,t)=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:`wp/v2/betterdocs_faq/${e}`,method:"POST",data:{status:t,nonce:betterdocs_admin.nonce}})),w=(e,t)=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:`betterdocs/faq/update_order_by_category?term_id=${e}&posts=${t}`,method:"POST",data:{nonce:betterdocs_admin.nonce}})),E=()=>{const e=JSON.stringify(a);return o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/sample_data",method:"POST",data:{sample_data:e,nonce:betterdocs_admin.nonce}})},x=(e,t)=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/v1/faq-accordion-toggle",method:"POST",body:JSON.stringify({faq_id:e,nonce:betterdocs_admin.nonce,toggle:t})})),C=async()=>{try{o().use(o().createNonceMiddleware(betterdocs_admin.nonce));const e=await o()({path:"betterdocs/v1/settings"});if(!e||e.error)throw new Error("Failed to fetch settings data");return e}catch(e){throw console.error("Error fetching settings data:",e),e}},_=e=>{if("undefined"==typeof wp||void 0===wp.media)return void console.error("WordPress Media Library is not loaded.");const t=wp.media({title:"Select or Upload Media",button:{text:"Use this media"},multiple:!1});t.on("select",(()=>{const n=t.state().get("selection").first().toJSON();e&&"function"==typeof e&&e(n.url,n.id)})),t.open()}},5786:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});const r=(e,t)=>{const n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];let a="";if(e.hasOwnProperty(r)&&(a="object"!=typeof e[r]?e[r]:e[r].value),o.hasOwnProperty("required")){let e=!0;if("boolean"==typeof a&&(a||(e=!1)),a.length||(e=!1),!e){"object"!=typeof o.required?n[r]=`${ucFirst(r)} is required`:n[r]=o.required.message;continue}}if(o.hasOwnProperty("email")&&(new RegExp(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/).test(e[r])||("object"!=typeof o.email?n[r]=`${ucFirst(r)} must be a valid email`:n[r]=o.email.message)),o.hasOwnProperty("username")&&(new RegExp(/^\S+$/).test(e[r])||("object"!=typeof o.username?n[r]=`${ucFirst(r)} must be a valid username`:n[r]=o.username.message)),o.hasOwnProperty("minLength")&&e[r].length<o.minLength.value&&("object"!=typeof o.minLength?n[r]=`The length of ${ucFirst(r)} must be more ${o.minLength.value} character`:n[r]=o.minLength.message),o.hasOwnProperty("maxLength")&&e[r].length>o.maxLength.value&&("object"!=typeof o.maxLength?n[r]=`The length of ${ucFirst(r)} must be under ${o.maxLength.value} character`:n[r]=o.maxLength.message),o.hasOwnProperty("match")){const t="object"!=typeof o.match?o.match:o.match.value,a=e[t];a&&a!==e[r]&&("object"!=typeof o.match?n[r]=`The ${ucFirst(r)} must match with ${ucFirst(t)}`:n[r]=o.match.message)}}return Object.keys(n).length?{valid:!1,errors:n}:{valid:!0,errors:void 0}}},5878:(e,t,n)=>{"use strict";n.d(t,{A:()=>Be});var r=n(1609),o=n.n(r),a=(n(5795),n(1890)),i=n(5849),s=n(8401),l=n(7867),c=n(9045),u=n(7517);const d=e=>(0,r.createElement)(u.Ay,{speed:2,width:"100%",viewBox:"0 0 600 160",backgroundColor:"#e5e5e5",foregroundColor:"#c5c5c5",...e},(0,r.createElement)("rect",{x:"0",y:"35",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"55",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"35",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"35",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"42",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"41",rx:"0",ry:"0",width:"150",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"39",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"46",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"40",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"42",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"42",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"60",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"80",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"60",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"60",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"67",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"66",rx:"0",ry:"0",width:"120",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"64",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"71",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"65",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"67",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"67",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"85",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"105",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"85",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"85",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"92",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"91",rx:"0",ry:"0",width:"145",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"89",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"96",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"90",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"92",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"92",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"110",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"130",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"110",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"109",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"117",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"116",rx:"0",ry:"0",width:"130",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"114",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"121",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"115",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"117",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"117",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"135",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"155",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"135",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"134",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"142",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"141",rx:"0",ry:"0",width:"155",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"139",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"146",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"140",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"142",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"142",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"0",rx:"1",ry:"1",width:"600",height:"5"}),(0,r.createElement)("rect",{x:"0",y:"23",rx:"1",ry:"1",width:"600",height:"5"}),(0,r.createElement)("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"585",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"170",y:"0",rx:"0",ry:"0",width:"346",height:"28"}),(0,r.createElement)("rect",{x:"35",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"50",y:"0",rx:"0",ry:"0",width:"120",height:"9"}),(0,r.createElement)("rect",{x:"50",y:"19",rx:"0",ry:"0",width:"120",height:"9"}));var p=n(7723),f=n(1419),h=n.n(f),m=n(1455),g=n.n(m);const y=({queryKey:e})=>{const[t,n,r,o]=e;g().use(g().createNonceMiddleware(betterdocs.nonce));let a="";a=o?`&search=${encodeURIComponent(o)}`:`per_page=${n}&page=${r}`;let i=g()({path:`wp/v2/glossaries?${a}`,method:"GET",parse:!1}),s=0,l=0;return i.then((e=>(l=e?.headers?.get("X-WP-TotalPages"),s=e?.headers?.get("X-WP-Total"),e.json()))).then((e=>({data:e.map((e=>({...e,glossary_term_description:e.glossary_term_description}))),totalPages:l,total:s})))},v=e=>(g().use(g().createNonceMiddleware(betterdocs.nonce)),g()({path:"betterdocs/glossary/create_glossary",method:"POST",data:{title:e?.title,slug:e?.slug,description:e?.description||"undefined",nonce:e?.nonce||betterdocs.nonce}})),b=e=>(g().use(g().createNonceMiddleware(betterdocs.nonce)),g()({path:"betterdocs/glossary/update_glossary",method:"POST",data:{term_id:e?.term_id,title:e?.title,slug:e?.slug,description:e?.description||"undefined",nonce:e?.nonce||betterdocs.nonce}})),w=(e,t)=>(g().use(g().createNonceMiddleware(betterdocs.nonce)),g()({path:"betterdocs/glossary/delete_glossary",method:"POST",data:{term_id:e,with_all_post:t,nonce:betterdocs.nonce}})),E=async()=>{try{g().use(g().createNonceMiddleware(betterdocs.nonce));const e=await g()({path:"betterdocs/v1/settings"});if(!e||e.error)throw new Error("Failed to fetch settings data");return e}catch(e){throw console.error("Error fetching settings data:",e),e}},x=async()=>{try{g().use(g().createNonceMiddleware(betterdocs.nonce));const e=await g()({path:"betterdocs/glossary/glossary_count",method:"GET"});if(!e||e.error)throw new Error("Failed to fetch settings data");return e}catch(e){throw console.error("Error fetching settings data:",e),e}};var C,_,S;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(null,arguments)}const k=e=>r.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 134 134"},e),C||(C=r.createElement("circle",{cx:67,cy:67,r:67,fill:"#E5EBF7"})),r.createElement("mask",{id:"empty-faq_svg__a",width:134,height:134,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},_||(_=r.createElement("circle",{cx:67,cy:67,r:67,fill:"#E5EBF7"}))),S||(S=r.createElement("g",{mask:"url(#empty-faq_svg__a)"},r.createElement("path",{fill:"#B4C3DF",d:"m106.448 69.059-.227 61.295c-.005 1.598-1.36 2.887-3.025 2.881l-74.044-.276c-1.665-.006-3.02-1.306-3.014-2.904l.26-70.05c.005-1.599 1.366-2.899 3.036-2.888l16.632.061c1.05.006 2.019.537 2.56 1.388l3.812 6.002c.542.862 1.515 1.388 2.56 1.388l48.441.182c1.671.011 3.015 1.317 3.009 2.92"}),r.createElement("path",{fill:"#fff",d:"m107.56 50.873-.271 71.925a2.886 2.886 0 0 1-2.887 2.866l-66.024-.249a2.886 2.886 0 0 1-2.865-2.888l.315-83.662A2.885 2.885 0 0 1 38.715 36l54.282.205 4.685 4.718 5.005 5.044z"}),r.createElement("path",{fill:"#3A7EC1",d:"M93.55 49.695c.248.254.58 2.406 14.004 3.053l.005-1.88z",opacity:.2}),r.createElement("path",{fill:"#fff",d:"M92.958 47.942a2.885 2.885 0 0 0 2.865 2.887l11.742.044-14.563-14.668z"}),r.createElement("path",{fill:"#EE9811",d:"m97.493 94.109-51.959-.194a1.2 1.2 0 0 1-1.195-1.205 1.2 1.2 0 0 1 1.206-1.195l51.959.194a1.2 1.2 0 1 1-.011 2.4M97.582 101.979l-45.117-.171a1.2 1.2 0 1 1 .011-2.4l45.117.171a1.2 1.2 0 1 1-.011 2.4M97.554 109.85l-52.075-.193a1.2 1.2 0 1 1 .011-2.401l52.075.194c.658 0 1.2.542 1.194 1.205a1.21 1.21 0 0 1-1.205 1.195"}),r.createElement("path",{fill:"#F9C067",d:"m113.887 76.902-6.632 54.608a3.966 3.966 0 0 1-3.954 3.49l-74.304-.277a3.965 3.965 0 0 1-3.927-3.517L19.926 86.1a3.967 3.967 0 0 1 3.96-4.42l16.991.061a3.98 3.98 0 0 0 3.656-2.383l2.063-4.74a3.96 3.96 0 0 1 3.656-2.384l59.713.22c2.368.006 4.204 2.086 3.922 4.448"}))));var N;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(null,arguments)}const A=e=>r.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 173 173"},e),N||(N=r.createElement("path",{d:"M86.58.16C38.93.16.16 38.93.16 86.58S38.93 173 86.58 173 173 134.23 173 86.58 134.23.16 86.58.16M128 101.58h-26.42V128c0 8.28-6.72 15-15 15s-15-6.72-15-15v-26.42H45.16c-8.28 0-15-6.72-15-15 0-8.29 6.72-15 15-15h26.42V45.16c0-8.28 6.72-15 15-15s15 6.72 15 15v26.42H128c8.28 0 15 6.71 15 15 0 8.28-6.72 15-15 15"}))),D=({reFetchGlossaries:e,setShowGlossaryModal:t})=>(0,r.createElement)("div",{className:"bd-faq-empty-dashboard"},(0,r.createElement)("div",{className:"bd-faq-empty-icon"},(0,r.createElement)(k,null)),(0,r.createElement)("h2",{className:"bd-faq-empty-dashboard-title"},(0,p.__)("No Glossary Found!","betterdocs")),(0,r.createElement)("p",{className:"bd-faq-empty-dashboard-desc"},(0,p.__)("Please Create a New Glossary to get started.","betterdocs")),(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success",onClick:()=>t(!0)},(0,r.createElement)("span",{className:"bd-faq-icon"},(0,r.createElement)(A,null)),(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Create a New Glossary","betterdocs")))));var I=n(309),j=n(8537),T=n(1330),L=n(4417),P=n(6253),R=n.n(P),F=n(3622),B=n.n(F);const z={options:["inline","blockType","textAlign","colorPicker","link","list","emoji"],inline:{options:["bold","italic","underline","strikethrough","monospace"]},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0},list:{options:["unordered","ordered"]},emoji:{className:void 0,component:void 0,popupClassName:void 0,emojis:["😃","😄","😁","😆","😅","😂","🤣","😊","🙂","😉","😍","🥰","😋","😎","🥳","😏","😒","😕","☹️","😣","😢","😭","😤","😡","🤬","🤯","🥵","🥶","😱","😨","🤔","🤫","😶","😐","😑","🙄","😮","👽","👾","🤖","🎃","😺","😸","😹","🙀","🤑","😈","💩","👻","💀","🙌","👏","🤝","👍","👊","✌️","🤞","👌","👈","👉","☝️","✋","🤚","🖐","🖖","🙏","👀","👓","☠️","🙈","🙉","🙊","🐞","🕷️","🌿","🍀","🌵","🍃","🍄","🥀","🌻","🌛","🌚","🌕","🌎","🌍","🌏","🪐","💫","⚡","☄️","💥","🔥","🌪️","🌈","🌥️","⛈️","❄️","☃️","💦","☔","🌊","🍏","🍌","🍉","🍇","🍍","🥭","🍞","🧀","🥚","🍗","🍔","🍕","🥘","🍙","🎂","🍰","☕","🍼","🍯","🍺","🍻","🥂","🍷","🍸","🥄","🍴","🍽️","⚽","🏀","🏈","⚾","🎾","🏐","🎱","🏓","⛳","🚗","🚕","🚌","🏎️","🚓","🚑","🚒","🚛","🚜","🚲","🏍️","✈️","🚁","🚀","🛸","⛵","🚢","⚓","🚧","🚥","🗽","🗼","🎡","🏝️","🏖️","🗻","📸","⏳","💡","🕯️","💸","💰","💎","🔪","🗡️","💊","💉","🩸","🦠","🧸","📧","💌","📌","📍","🖊️","🔎","🔒","🔓","❤️","🧡","💛","💚","💙","💜","🖤","💔","❣️","💕","💞","💓","💖","💘","💝","☮️","☢️","❌","⭕","⛔","🚫","💯","❗","❕","❓","❔","‼️","⁉️","✅","🌐","💤","🏳️","🏴","🏁","🚩","🏴‍☠️"]}},q=({aiValue:e=null,value:t,onChange:n,placeholder:o})=>{const[a,i]=(0,r.useState)(T.EditorState.createEmpty());return(0,r.useEffect)((()=>{if(t){const{contentBlocks:e,entityMap:n}=B()(t),r=T.ContentState.createFromBlockArray(e,n),o=T.EditorState.createWithContent(r);i(o)}}),[]),(0,r.useEffect)((()=>{if(e){const{contentBlocks:t,entityMap:n}=B()(e),r=T.ContentState.createFromBlockArray(t,n),o=T.EditorState.createWithContent(r);i(o)}}),[e]),(0,r.useEffect)((()=>{let e=R()((0,T.convertToRaw)(a.getCurrentContent()));n(e)}),[a]),(0,r.createElement)(L.Editor,{editorState:a,onEditorStateChange:i,wrapperClassName:"bd-faq-editor",toolbarClassName:"bd-faq-editor-toolbar",editorClassName:"bd-faq-editor-main",placeholder:o,toolbar:z})};var U=n(886);const H=({error:e})=>e&&e.length&&(0,r.createElement)("p",{className:"bd-error-message"},(0,U.decode)(e))||"",V=(e,t)=>{const n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];let a="";if(e.hasOwnProperty(r)&&(a="object"!=typeof e[r]?e[r]:e[r].value),o.hasOwnProperty("required")){let e=!0;if("boolean"==typeof a&&(a||(e=!1)),a?.length||(e=!1),!e){"object"!=typeof o.required?n[r]=`${ucFirst(r)} is required`:n[r]=o.required.message;continue}}if(o.hasOwnProperty("email")&&(new RegExp(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/).test(e[r])||("object"!=typeof o.email?n[r]=`${ucFirst(r)} must be a valid email`:n[r]=o.email.message)),o.hasOwnProperty("username")&&(new RegExp(/^\S+$/).test(e[r])||("object"!=typeof o.username?n[r]=`${ucFirst(r)} must be a valid username`:n[r]=o.username.message)),o.hasOwnProperty("minLength")&&e[r]?.length<o.minLength.value&&("object"!=typeof o.minLength?n[r]=`The length of ${ucFirst(r)} must be more ${o.minLength.value} character`:n[r]=o.minLength.message),o.hasOwnProperty("maxLength")&&e[r]?.length>o.maxLength.value&&("object"!=typeof o.maxLength?n[r]=`The length of ${ucFirst(r)} must be under ${o.maxLength.value} character`:n[r]=o.maxLength.message),o.hasOwnProperty("match")){const t="object"!=typeof o.match?o.match:o.match.value,a=e[t];a&&a!==e[r]&&("object"!=typeof o.match?n[r]=`The ${ucFirst(r)} must match with ${ucFirst(t)}`:n[r]=o.match.message)}}return Object.keys(n)?.length?{valid:!1,errors:n}:{valid:!0,errors:void 0}};var K,G;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}const Y=e=>r.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 16 16"},e),K||(K=r.createElement("g",{fill:"#fff",clipPath:"url(#betterdocs-icon-white_svg__a)"},r.createElement("path",{d:"M7.608 6.345h4.012a.72.72 0 0 0 .709-.732.72.72 0 0 0-.71-.73H7.609a.72.72 0 0 0-.71.73.716.716 0 0 0 .71.732M5.995 9.193h4.011c.392 0 .71-.327.71-.73a.72.72 0 0 0-.71-.732H5.995a.72.72 0 0 0-.71.731c0 .404.318.731.71.731M9.077 11.37a.72.72 0 0 0-.71-.731H4.356a.72.72 0 0 0-.71.73c0 .404.318.732.71.732h4.011c.392 0 .71-.328.71-.731"}),r.createElement("path",{d:"M14.58 8.008c-.025-.058-.057-.1-.09-.15l1.068-1.9a3.34 3.34 0 0 0 .008-3.303C14.988 1.622 13.952 1 12.786 1H7.943c-1.134 0-2.194.63-2.773 1.647L.441 11.042a3.34 3.34 0 0 0-.008 3.303C1.013 15.378 2.048 16 3.213 16h8.293c1.476 0 2.83-.773 3.612-2.059a4.5 4.5 0 0 0 .236-4.252zM4.437 14.445H3.214c-.62 0-1.166-.327-1.476-.882a1.78 1.78 0 0 1 .008-1.756l4.73-8.395a1.7 1.7 0 0 1 1.475-.874h4.843c.62 0 1.166.328 1.476.882.31.546.302 1.202-.008 1.756l-4.737 8.395a1.69 1.69 0 0 1-1.468.874zm9.417-1.336a2.74 2.74 0 0 1-2.34 1.336h-.742c.016-.033.04-.058.057-.092l2.764-4.9.424.9c.4.89.343 1.924-.163 2.756"}))),G||(G=r.createElement("defs",null,r.createElement("clipPath",{id:"betterdocs-icon-white_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 1h16v15H0z"})))));var Q,$,Z=n(933),J=n.n(Z);function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(null,arguments)}const ee=e=>r.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",width:21,height:20,fill:"none"},e),Q||(Q=r.createElement("g",{clipPath:"url(#ai-icon-white_svg__a)"},r.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.429,d:"m10.396 18.86-4.286.372.371-4.285 8.915-8.858a1.43 1.43 0 0 1 2.043 0l1.814 1.829a1.43 1.43 0 0 1 0 2.029zM1.704 5.676c-.501-.087-.501-.807 0-.894a4.54 4.54 0 0 0 3.654-3.5l.03-.139c.109-.494.815-.498.93-.003l.035.16a4.56 4.56 0 0 0 3.663 3.48c.504.086.504.81 0 .899A4.56 4.56 0 0 0 6.35 9.156l-.037.162c-.113.494-.818.491-.927-.004l-.029-.139a4.54 4.54 0 0 0-3.657-3.5z"}))),$||($=r.createElement("defs",null,r.createElement("clipPath",{id:"ai-icon-white_svg__a"},r.createElement("path",{fill:"#fff",d:"M.5 0h20v20H.5z"})))));var te,ne;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(null,arguments)}const oe=e=>r.createElement("svg",re({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),te||(te=r.createElement("g",{clipPath:"url(#ai-icon-color_svg__a)"},r.createElement("path",{stroke:"#344054",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.429,d:"m9.895 18.861-4.286.371.371-4.286 8.915-8.857a1.43 1.43 0 0 1 2.043 0l1.814 1.829a1.43 1.43 0 0 1 0 2.029zM1.204 5.674c-.501-.088-.501-.807 0-.894a4.54 4.54 0 0 0 3.654-3.5l.03-.139c.109-.494.814-.499.929-.003l.036.16a4.56 4.56 0 0 0 3.663 3.48c.504.086.504.81 0 .899a4.56 4.56 0 0 0-3.664 3.479l-.037.161c-.112.494-.818.491-.926-.004l-.029-.139a4.54 4.54 0 0 0-3.658-3.5h.003Z"}))),ne||(ne=r.createElement("defs",null,r.createElement("clipPath",{id:"ai-icon-color_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))))),ae={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(35, 40, 45, 0.5)",zIndex:9990,padding:50,paddingTop:70,display:"flex",flexDirection:"column",overflow:"auto"},content:{width:"40rem",maxWidth:"90%",position:"static",height:"auto",overflow:"initial",margin:"auto"}},ie=({open:e,setShowGlossaryAIModalForm:t,setFormFields:n,formFields:o,setGlossaryExpand:a})=>{const[i,s]=(0,r.useState)(o),[l,c]=(0,r.useState)(null),[u,d]=(0,r.useState)(null),[f,h]=(0,r.useState)(!1),[m,g]=(0,r.useState)(!1),[y,v]=(0,r.useState)(null);(0,r.useEffect)((()=>{E().then((e=>{v(e)})).catch((function(e){console.log(e)}))}),[]);const b=()=>{d({title:""}),t(!1)},w=e=>e&&e.ai_autowrite_api_key?e.ai_autowrite_api_key:"";return(0,r.createElement)(J(),{isOpen:e,className:"bd-faq-ctg-modal",onRequestClose:()=>b(),style:ae},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-container","data-new-doc-page":"true"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-content"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-top-part"},(0,r.createElement)("div",{className:"autowrite-heading"},(0,r.createElement)("span",{className:"autowrite-icon"},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32",fill:"none"},(0,r.createElement)("g",{clipPath:"url(#clip0_2453_20882)"},(0,r.createElement)("path",{d:"M15.8322 30.1765L8.97508 30.7708L9.56936 23.9136L23.8322 9.74219C24.0451 9.52448 24.2993 9.3515 24.58 9.23341C24.8606 9.11531 25.162 9.05447 25.4665 9.05447C25.771 9.05447 26.0724 9.11531 26.3531 9.23341C26.6337 9.3515 26.8879 9.52448 27.1008 9.74219L30.0037 12.6679C30.2176 12.8805 30.3874 13.1334 30.5033 13.4119C30.6192 13.6904 30.6788 13.9891 30.6788 14.2908C30.6788 14.5924 30.6192 14.8911 30.5033 15.1696C30.3874 15.4481 30.2176 15.701 30.0037 15.9136L15.8322 30.1765ZM1.92593 9.07933C1.12365 8.9399 1.12365 7.7879 1.92593 7.64848C3.34647 7.40124 4.6612 6.73658 5.70251 5.73923C6.74382 4.74188 7.46455 3.45703 7.77279 2.04848L7.82079 1.82676C7.99451 1.03591 9.12365 1.02905 9.30651 1.82219L9.36365 2.07819C9.68319 3.48048 10.4099 4.75709 11.4526 5.74772C12.4953 6.73834 13.8074 7.39881 15.2242 7.64619C16.0311 7.78333 16.0311 8.94219 15.2242 9.0839C13.8073 9.33071 12.4949 9.99066 11.4518 10.9809C10.4087 11.9711 9.68146 13.2474 9.36136 14.6496L9.30193 14.9079C9.12136 15.6988 7.99222 15.6942 7.81851 14.901L7.77279 14.6793C7.46424 13.2702 6.74284 11.9849 5.70064 10.9874C4.65845 9.99003 3.34273 9.32574 1.92136 9.07933H1.92593Z",stroke:"#E31B54",strokeWidth:"2.28571",strokeLinecap:"round",strokeLinejoin:"round"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_2453_20882"},(0,r.createElement)("rect",{width:32,height:32,fill:"white"}))))),(0,r.createElement)("h1",null,(0,p.__)("Write Glossary Term with BetterDocs AI","betterdocs"))),(0,r.createElement)("div",{className:"autowrite-subheadding"},(0,r.createElement)("p",null,(0,p.__)("Generate Glossaries effortlessly with BetterDocs AI. Simply input your glossary term and let the system automatically generate Glossaries tailored to your needs.","betterdocs"))),y&&!w(y)&&(0,r.createElement)("div",{id:"betterdocs-ai-message"},(0,r.createElement)("div",{className:"warning-message"},(0,r.createElement)("span",{className:"dashicons dashicons-warning"}),(0,r.createElement)("div",null,(0,p.__)("Please insert your","betterdocs")," ",(0,r.createElement)("a",{target:"_blank",href:"/wp-admin/admin.php?page=betterdocs-settings&tab=tab-ai-autowrite"},(0,p.__)("OpenAI API Key","betterdocs"))," ",(0,p.__)('to use this "Write with AI" feature.',"betterdocs")))),u&&(0,r.createElement)("div",{className:"form-group"},(0,r.createElement)("div",{id:"betterdocs-ai-error-message"},(0,r.createElement)("div",{className:"warning-message"},(0,r.createElement)("span",{className:"dashicons dashicons-warning"}),(0,r.createElement)("div",{className:"footer-message"},u))))),(0,r.createElement)("form",{id:"betterdocs-ai-form",className:y&&!w(y)&&"disabled-input-field",onSubmit:async e=>{e.preventDefault();const t=document.getElementById("betterdocs-ai-title").value,n=`Generate a Glossary term for the text. The glossary term: ${t}`;try{let{response:e,error:r}=await(async e=>{try{h(!0);const t="https://api.openai.com/v1/chat/completions",n={method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${w(y)}`},body:JSON.stringify({model:"gpt-3.5-turbo",messages:[{role:"system",content:"You are a helpful assistant."},{role:"user",content:e}],max_tokens:100})},r=await fetch(t,n),o=await r.json();if(!r.ok)throw new Error(`${o?.error?.message}`);return o.error?(h(!1),g(!1),{response:null,error:o.error}):(h(!1),g(!0),{response:o.choices[0].message.content,error:null})}catch(e){throw h(!1),g(!1),new Error(`${e.message}`)}})(n);e=((e,t)=>{if("string"!=typeof t)return t;const n=new RegExp(`(<[^>]*>${e}<[^>]*>)|(${e})`,"gi");return t.replace(n,"")})("Glossary term:",e),e=e.replace(/^\s*\?/,""),r?d(r):(s((n=>({...n,title:t,description:e,aiAnswer:e}))),c(e))}catch(e){d(`${e.message}`)}}},(0,r.createElement)("div",{className:"form-inner-content"},(0,r.createElement)("div",{className:"form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-ai-title"},(0,p.__)("Glossary Term:","betterdocs")),(0,r.createElement)("input",{type:"text",placeholder:(0,p.__)("Insert your term to generate a relevant response.","betterdocs"),id:"betterdocs-ai-title",name:"betterdocs-ai-title",required:!0,value:o?.title,onChange:e=>{n((t=>({...t,title:e.target.value.replace(/^\s+/,""),glossary:e.target.value.replace(/^\s+/,"")})))}})),l&&(0,r.createElement)("div",{className:"form-group generated-answer"},(0,r.createElement)("label",{htmlFor:"betterdocs-ai-keyword"},(0,p.__)("Generated Glossary:","betterdocs")),(0,r.createElement)("div",{className:"betterdocs-ai-content-wrapper"},(0,r.createElement)("p",{className:"betterdocs-ai-content",dangerouslySetInnerHTML:{__html:l}})))),(0,r.createElement)("div",{className:"generate-button-container"},(0,r.createElement)("button",{type:"submit",className:m?"generate-btn regenerate-btn":"generate-btn",disabled:f},f&&!m?(0,r.createElement)(ee,null):m?(0,r.createElement)(oe,null):(0,r.createElement)(ee,null),(0,r.createElement)("span",null,f?"Generating...":m?"Regenerate Glossary":"Generate Glossary")),m&&(0,r.createElement)("button",{type:"button",className:"keep-btn",onClick:()=>(n(i),void b())},(0,p.__)("Keep","betterdocs"))))),(0,r.createElement)("div",{className:"bd-close-button",onClick:()=>b()},"✕")))},se=({reFetchFaqList:e,createFaqAt:t,setCreateGlossaryAt:n,open:o,reFetchGlossaries:i,setShowGlossaryModal:s,updateGlossary:l,setUpdateGlossary:c,glossary:u,showGlossaryAIModalForm:d,setShowGlossaryAIModalForm:f})=>{var m,g;const[y,b]=(0,r.useState)(null);(0,r.useEffect)((()=>{E().then((e=>{b(e)})).catch((function(e){console.log(e)}))}),[]);const[w,x]=(0,r.useState)({title:"",slug:"",description:""}),[C,_]=(0,r.useState)({title:"",slug:"",description:""});(0,r.useEffect)((()=>{null!==l?x({...w,title:(0,j.decodeEntities)(l?.name),slug:l?.slug,description:(0,j.decodeEntities)(l?.description)}):S()}),[o]);const S=()=>{x({title:"",slug:"",description:""})},O=()=>{_({title:"",slug:"",description:""})},[k,N]=(0,r.useState)({default:{value:null,label:"Uncategorized"},cats:[]}),[M,A]=(0,r.useState)("not-set"),[D,I]=(0,r.useState)(!1);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq-create-new"},(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault();const t=V(w,{title:{required:{value:!0,message:(0,p.__)("Please Insert Glossary Term is Title.","betterdocs")}},slug:{},description:{}});t.valid?t.valid&&(null!==l?l({term_id:l?.id||l?.term_id,title:w?.title,slug:w?.slug,description:w?.description}).then((e=>{e&&(O(),i(),h().fire({text:(0,p.__)("Glossary Term is Updated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})).finally((()=>{s(!1),c(null)})):v({title:w?.title,slug:w?.slug,description:w?.description}).then((e=>{e&&(O(),i(),h().fire({text:(0,p.__)("Glossary Term is Created Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})).finally((()=>{s(!1)}))):_(t.errors)}},(0,r.createElement)("div",{className:"bd-faq-create-new-body"},(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,p.__)("Glossary Term","betterdocs")),(0,r.createElement)("div",{className:"bd-faq-cgt-field-wrapper"},(0,r.createElement)("input",{type:"text",className:"bd-faq-input",name:"faq-question",value:w?.title,onChange:e=>x({...w,title:e.target.value.replace(/^\s+/,"")}),placeholder:(0,p.__)("Write your Glossary Term here.","betterdocs")}),y&&(null===(m=y?.enable_faq_write_with_ai)||void 0===m||m)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success bd-write-with-ai-button",onClick:e=>{f(!0)}},(0,r.createElement)(Y,null),(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Write With AI","betterdocs")))),(0,r.createElement)(H,{error:C.title})),(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,p.__)("Glossary Term Description","betterdocs")),(0,r.createElement)(q,{value:w?.answer,aiValue:w?.aiAnswer,onChange:e=>{x({...w,description:e.replace(/^\s+/,"")})},placeholder:(0,p.__)("Write your Glossary Term description here.","betterdocs")}),(0,r.createElement)(H,{error:C.answer}))),(0,r.createElement)("div",{className:"bd-faq-create-new-footer"},(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-danger",onClick:()=>(O(),s(!1),void c(null))},(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Cancel","betterdocs"))),(0,r.createElement)("button",{type:"submit",className:"bd-faq-button button-success"},(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Create","betterdocs"))))))),d&&y&&(null===(g=y?.enable_faq_write_with_ai)||void 0===g||g)&&(0,r.createElement)(ie,{open:!0,setFormFields:x,formFields:w,setShowGlossaryAIModalForm:f}))};var le;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(null,arguments)}const ue=e=>r.createElement("svg",ce({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),le||(le=r.createElement("path",{d:"m30 16-4.788 4.788A.71.71 0 0 1 24 20.286V17.5h-6.5V24h2.786a.71.71 0 0 1 .502 1.212L16 30l-4.788-4.788A.71.71 0 0 1 11.714 24H14.5v-6.5H8v2.786a.71.71 0 0 1-1.212.502L2 16l4.788-4.788A.71.71 0 0 1 8 11.714V14.5h6.5V8h-2.786a.71.71 0 0 1-.502-1.212L16 2l4.788 4.788A.71.71 0 0 1 20.286 8H17.5v6.5H24v-2.786a.71.71 0 0 1 1.212-.502z"})));var de;function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(null,arguments)}const fe=e=>r.createElement("svg",pe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),de||(de=r.createElement("path",{d:"M424 64h-88V48c0-26.51-21.49-48-48-48h-64c-26.51 0-48 21.49-48 48v16H88c-22.091 0-40 17.909-40 40v32c0 8.837 7.163 16 16 16h384c8.837 0 16-7.163 16-16v-32c0-22.091-17.909-40-40-40M208 48c0-8.82 7.18-16 16-16h64c8.82 0 16 7.18 16 16v16h-96zM78.364 184a5 5 0 0 0-4.994 5.238l13.2 277.042c1.22 25.64 22.28 45.72 47.94 45.72h242.98c25.66 0 46.72-20.08 47.94-45.72l13.2-277.042a5 5 0 0 0-4.994-5.238zM320 224c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16zm-80 0c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16zm-80 0c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16z"})));var he;function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},me.apply(null,arguments)}const ge=e=>r.createElement("svg",me({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 491.996 491.996"},e),he||(he=r.createElement("path",{d:"m484.132 124.986-16.116-16.228c-5.072-5.068-11.82-7.86-19.032-7.86-7.208 0-13.964 2.792-19.036 7.86l-183.84 183.848L62.056 108.554c-5.064-5.068-11.82-7.856-19.028-7.856s-13.968 2.788-19.036 7.856l-16.12 16.128c-10.496 10.488-10.496 27.572 0 38.06l219.136 219.924c5.064 5.064 11.812 8.632 19.084 8.632h.084c7.212 0 13.96-3.572 19.024-8.632l218.932-219.328c5.072-5.064 7.856-12.016 7.864-19.224 0-7.212-2.792-14.068-7.864-19.128"})));var ye,ve,be;function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(null,arguments)}const Ee=e=>r.createElement("svg",we({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 512 512"},e),ye||(ye=r.createElement("path",{d:"M352.459 220c0-11.046-8.954-20-20-20h-206c-11.046 0-20 8.954-20 20s8.954 20 20 20h206c11.046 0 20-8.954 20-20M126.459 280c-11.046 0-20 8.954-20 20s8.954 20 20 20H251.57c11.046 0 20-8.954 20-20s-8.954-20-20-20z"})),ve||(ve=r.createElement("path",{d:"M173.459 472H106.57c-22.056 0-40-17.944-40-40V80c0-22.056 17.944-40 40-40h245.889c22.056 0 40 17.944 40 40v123c0 11.046 8.954 20 20 20s20-8.954 20-20V80c0-44.112-35.888-80-80-80H106.57c-44.112 0-80 35.888-80 80v352c0 44.112 35.888 80 80 80h66.889c11.046 0 20-8.954 20-20s-8.954-20-20-20"})),be||(be=r.createElement("path",{d:"M467.884 289.572c-23.394-23.394-61.458-23.395-84.837-.016l-109.803 109.56a20 20 0 0 0-5.01 8.345l-23.913 78.725a20 20 0 0 0 24.476 25.087l80.725-22.361a20 20 0 0 0 8.79-5.119l109.573-109.367c23.394-23.394 23.394-61.458-.001-84.854M333.776 451.768l-40.612 11.25 11.885-39.129 74.089-73.925 28.29 28.29zM439.615 346.13l-3.875 3.867-28.285-28.285 3.862-3.854c7.798-7.798 20.486-7.798 28.284 0s7.798 20.486.014 28.272M332.459 120h-206c-11.046 0-20 8.954-20 20s8.954 20 20 20h206c11.046 0 20-8.954 20-20s-8.954-20-20-20"})));var xe,Ce;function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_e.apply(null,arguments)}const Se=e=>r.createElement("svg",_e({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),xe||(xe=r.createElement("g",{clipPath:"url(#magic_svg__a)"},r.createElement("path",{stroke:"#A0A8B2",strokeLinecap:"round",strokeLinejoin:"round",d:"m6.927 13.202-3 .26.26-2.999 6.24-6.201a1 1 0 0 1 1.43 0l1.27 1.28a1 1 0 0 1 0 1.42zM.843 3.973c-.351-.061-.351-.565 0-.626A3.18 3.18 0 0 0 3.401.897L3.422.8c.076-.346.57-.349.651-.002l.025.112a3.19 3.19 0 0 0 2.564 2.436c.353.06.353.567 0 .629a3.19 3.19 0 0 0-2.567 2.434l-.026.113c-.079.346-.573.344-.649-.003l-.02-.097a3.18 3.18 0 0 0-2.56-2.45z"}))),Ce||(Ce=r.createElement("defs",null,r.createElement("clipPath",{id:"magic_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"})))));var Oe,ke;function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ne.apply(null,arguments)}n(5798);const Me=e=>r.createElement("svg",Ne({xmlns:"http://www.w3.org/2000/svg",width:15,height:14.118,fill:"none"},e),r.createElement("mask",{id:"sort_svg__a",width:17,height:16,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Oe||(Oe=r.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M3.838 8.952a.44.44 0 0 1 .624 0l3.217 3.218 3.218-3.218a.441.441 0 0 1 .624.625l-3.529 3.529a.44.44 0 0 1-.624 0L3.839 9.577a.44.44 0 0 1 0-.625m0-3.787a.44.44 0 0 0 .624 0L7.68 1.947l3.218 3.218a.441.441 0 1 0 .624-.625L7.993 1.011a.44.44 0 0 0-.624 0L3.84 4.54a.44.44 0 0 0 0 .625M1.503 7.059a.44.44 0 0 1 .441-.441h11.471a.441.441 0 1 1 0 .882H1.944a.44.44 0 0 1-.441-.441",clipRule:"evenodd"}))),ke||(ke=r.createElement("g",{mask:"url(#sort_svg__a)"},r.createElement("path",{fill:"#98A2B3",d:"M.62 0h14.118v14.118H.62z"})))),Ae={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(35, 40, 45, 0.5)",zIndex:9990,padding:50,paddingTop:70,display:"flex",flexDirection:"column",overflow:"auto"},content:{width:"40rem",maxWidth:"90%",position:"static",height:"auto",overflow:"initial",margin:"auto"}},De=({open:e,showGlossaryCounter:t,setShowGlossaryCounter:n,setGlossaryExpand:o,glossary:a})=>{const[i,s]=(0,r.useState)(null),[l,c]=(0,r.useState)({}),[u,d]=(0,r.useState)(!1),[f,h]=(0,r.useState)(!1);(0,r.useEffect)((()=>{E().then((e=>{s(e)})).catch((function(e){console.log(e)}))}),[]),(0,r.useEffect)((()=>{x().then((e=>{if(e){const t=[...e[a.name]];t.sort(((e,t)=>u?e.count-t.count:t.count-e.count));const n={...e,[a.name]:t};c(n)}})).catch((function(e){console.log(e)}))}),[u]);const m=()=>{n(!1),o(!1)},g=l[a.name];return(0,r.createElement)(J(),{isOpen:e,className:"bd-faq-ctg-modal",onRequestClose:()=>m(),style:Ae},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-container glossary-counter-container","data-new-doc-page":"true"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-content"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-top-part"},(0,r.createElement)("div",{className:"autowrite-heading"},(0,r.createElement)("h3",null,(0,p.__)(`${a.name}`,"betterdocs"))),(0,r.createElement)("div",{className:"autowrite-subheadding"},(0,r.createElement)("p",null,`${(0,p.__)("Total used in ","betterdocs")}`,(0,r.createElement)("span",null,g?g.length:0),1===g?.length?(0,p.__)(" doc.","betterdocs"):(0,p.__)(" docs.","betterdocs"))),(0,r.createElement)("div",{className:"BtdDataTableWrapper"},(0,r.createElement)("table",{className:"BtdDataTable"},(0,r.createElement)("thead",null,(0,r.createElement)("tr",null,(0,r.createElement)("th",null,(0,p.__)("Title","betterdocs-pro")),(0,r.createElement)("th",{className:"text-center"},(0,r.createElement)("div",{className:"sorting-icon",onClick:()=>{d(!u)}},(0,p.__)("Count","betterdocs-pro"),(0,r.createElement)("span",null,(0,r.createElement)(Me,null)))))),(0,r.createElement)("tbody",null,g?.map(((e,t)=>(0,r.createElement)("tr",{key:e.id},(0,r.createElement)("td",null,(0,r.createElement)("span",{className:"BtdTableItemTitleWrap"},(0,r.createElement)("a",{href:e.permalink,target:"_blank",dangerouslySetInnerHTML:{__html:e.post_title}}))),(0,r.createElement)("td",{className:"text-center"},(0,r.createElement)("p",{dangerouslySetInnerHTML:{__html:e.count}})))))))))),(0,r.createElement)("div",{className:"bd-close-button",onClick:()=>m()},"✕")))},Ie=({categoriesLoading:e,allGlossaryGlossaries:t,reFetchGlossaryList:n,faq:o,glossaryExpand:i,setGlossaryExpand:s,setReFetchGlossaryForGlossary:l,showGlossaryAIModalForm:c,setShowGlossaryAIModalForm:u,settings:d,glossary:f,open:m,reFetchGlossaries:g,setShowGlossaryModal:y,setUpdateGlossary:w,showGlossaryCounter:E,setShowGlossaryCounter:x})=>{var C,_,S;const[O,k]=(0,r.useState)({title:"",slug:"",description:""}),[N,M]=(0,r.useState)({title:"",slug:"",description:""});(0,r.useEffect)((()=>{null!==b?k({...O,title:(0,j.decodeEntities)(f?.name),slug:f?.slug,description:(0,j.decodeEntities)(f?.glossary_term_description||f?.description)}):A()}),[m]);const A=()=>{k({title:"",slug:"",description:""})},D=()=>{M({title:"",slug:"",description:""})},[I,T]=(0,r.useState)({default:{value:null,label:"Uncategorized"},cats:[]}),[L,P]=(0,r.useState)("not-set"),[R,F]=(0,r.useState)(!1);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq-create-new"},(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault();const t=V(O,{title:{required:{value:!0,message:(0,p.__)("Please Insert Glossary Term is Title.","betterdocs")}},slug:{},description:{}});t.valid?t.valid&&(null!==f?b({term_id:f?.id||null,title:O?.title,slug:O?.slug,description:O?.description}).then((e=>{e&&(D(),g(),h().fire({text:(0,p.__)("Glossary Term is Updated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})).finally((()=>{y(!1),w(null)})):v({title:O?.title,slug:O?.slug,description:O?.description}).then((e=>{e&&(D(),g(),h().fire({text:(0,p.__)("Glossary Term is Created Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})).finally((()=>{y(!1)}))):M(t.errors)}},(0,r.createElement)("div",{className:"bd-faq-create-new-body"},(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,p.__)("Glossary Term","betterdocs")),(0,r.createElement)("div",{className:"bd-faq-cgt-field-wrapper"},(0,r.createElement)("input",{type:"text",className:"bd-faq-input",name:"faq-question",value:O?.title,onChange:e=>k({...O,title:e.target.value.replace(/^\s+/,"")}),placeholder:(0,p.__)("Write your Glossary Term here.","betterdocs")}),d&&(null===(C=d?.enable_faq_write_with_ai)||void 0===C||C)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success bd-write-with-ai-button",onClick:e=>{u(!0)}},(0,r.createElement)(Y,null),(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Write With AI","betterdocs")))),(0,r.createElement)(H,{error:N.title})),(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,p.__)("Glossary Term Description","betterdocs")),(0,r.createElement)(q,{value:f?.glossary_term_description||f?.description,aiValue:O?.aiAnswer,onChange:e=>{k({...O,description:e.replace(/^\s+/,"")})},placeholder:(0,p.__)("Write your Glossary Term description here.","betterdocs")}),(0,r.createElement)(H,{error:N.description}))),(0,r.createElement)("div",{className:"bd-faq-create-new-footer"},(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-danger",onClick:()=>{return e=f.id,void s(i==e?void 0:e);var e}},(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Cancel","betterdocs"))),(0,r.createElement)("button",{type:"submit",className:"bd-faq-button button-success"},(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Update","betterdocs"))))))),c&&d&&(null===(_=d?.enable_faq_write_with_ai)||void 0===_||_)&&(0,r.createElement)(ie,{open:!0,setFormFields:k,formFields:O,showGlossaryAIModalForm:c,setShowGlossaryAIModalForm:u,setGlossaryExpand:s}),E&&d&&(null===(S=d?.enable_faq_write_with_ai)||void 0===S||S)&&(0,r.createElement)(De,{open:!0,showGlossaryCounter:E,setShowGlossaryCounter:x,setGlossaryExpand:s,glossary:f}))},je=({index:e,data:t,glossary:n,categoriesLoading:o,allFaqGlossaries:i,reFetchGlossaries:s,setFetchUncategorizedFaq:l,setUpdateGlossary:c,glossaryExpand:u,setGlossaryExpand:d,setCreateGlossaryAt:f,createFaqAt:m,changeFaqSort:y,setChangeFaqSort:v,reFetchFaqForGlossary:b,setReFetchFaqForGlossary:E,showGlossaryAIModalForm:C,setShowGlossaryAIModalForm:_,setShowGlossaryModal:S,showGlossaryCounter:O,setShowGlossaryCounter:k,glossariesKeyword:N,settings:M})=>{const[A,D]=(0,r.useState)(),[T,L]=(0,r.useState)(!1),[P,R]=(0,r.useState)(0);(0,r.useEffect)((()=>{u!==m&&f(null)}),[u,m]),(0,r.useEffect)((()=>{L("1"===n?.meta?.status?.[0])}),[n]);const F=e=>{d(void 0),d(e)},B=e=>{u==e?(d(void 0),f(null)):d(e)};return(0,r.useEffect)((()=>{x().then((e=>{e&&R(e[n?.name])})).catch((function(e){console.log(e)}))}),[N]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(I.sx,{key:n?.id,draggableId:n?.id.toString(),index:e},((e,y)=>{var v,b,x;return(0,r.createElement)("div",{className:"bd-faq-ctg",ref:e.innerRef,...e.draggableProps,style:(b=y.isDragging,x=e.draggableProps.style,{boxShadow:b&&"0 0 5px rgba(0, 0, 0, 0.5)",...x})},(0,r.createElement)("div",{className:"bd-faq-ctg-head"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-ctg-drag-button",...e.dragHandleProps},(0,r.createElement)(ue,null)),(0,r.createElement)("h3",{className:"bd-faq-ctg-title",onClick:()=>B(n?.id)},(0,j.decodeEntities)(n?.name),P?.length>0&&(0,r.createElement)("span",{onClick:()=>{F(n?.id),k(!0)}},(0,p.__)(`Available in ${P?.length||0} ${1===P?.length?"doc":"docs"}`,"betterdocs"))),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>B(n?.id)},(0,r.createElement)(Ee,null)),M&&(null===(v=M?.enable_faq_write_with_ai)||void 0===v||v)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button magic-icon",onClick:()=>{F(n?.id),_(!0)}},(0,r.createElement)(Se,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return e=n?.id,void h().fire({text:(0,p.__)("Delete this Glossary?","betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,p.__)("Yes","betterdocs"),cancelButtonText:(0,p.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t?.isConfirmed&&(0==t?.value?w(e,!1).then((()=>{s(),l(!0),h().fire({text:(0,p.__)("Glossary Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})):w(e,!0).then((()=>{s(),l(!0),h().fire({text:(0,p.__)("Glossary Deleted Successfully With All Glossaries.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})))}));var e}},(0,r.createElement)(fe,null)),(0,r.createElement)("label",{className:"bd-faq-toggler",onClick:()=>{return e=n?.id,void((e,t)=>(g().use(g().createNonceMiddleware(betterdocs.nonce)),g()({path:"betterdocs/glossary/glossary_status",method:"POST",data:{term_id:e,status:t,nonce:betterdocs.nonce}})))(e,T?"0":"1").then((e=>{L(e),T?a.oR.success((0,p.__)("Glossary Enabled.","betterdocs")):a.oR.error((0,p.__)("Glossary Disabled.","betterdocs")),s()})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)}));var e}},(0,r.createElement)("input",{type:"checkbox",checked:"1"==T,className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(u==n?.id?"active":""),onClick:()=>B(n?.id)},(0,r.createElement)(ge,null))),(0,r.createElement)("div",{className:"bd-faq-glossary-body "+(u==n?.id?"active":"")},(0,r.createElement)("div",{style:{overflow:"hidden"}},(0,r.createElement)("div",{className:"bd-faq-glossary-body-inner"},m===n?.id&&(0,r.createElement)(se,{glossary:n,createFaqAt:m,setCreateGlossaryAt:f,reFetchGlossaries:s,showGlossaryAIModalForm:C,setShowGlossaryAIModalForm:_}),u==n?.id?(0,r.createElement)(Ie,{glossary:n,categoriesLoading:o,allFaqGlossaries:i,reFetchGlossaries:s,faq:t,glossaryExpand:u,setGlossaryExpand:d,setReFetchFaqForGlossary:E,settings:M,open,setShowGlossaryModal:S,updateGlossary:F,setUpdateGlossary:c,showGlossaryAIModalForm:C,setShowGlossaryAIModalForm:_,showGlossaryCounter:O,setShowGlossaryCounter:k}):""))))})))},Te=o().memo((({isLoading:e,categoriesLoading:t,allFaqGlossaries:n,reFetchGlossaries:o,setUpdateGlossary:a,showGlossaryAIModalForm:i,setShowGlossaryAIModalForm:s,showGlossaryCounter:l,setShowGlossaryCounter:c,setShowGlossaryModal:u,glossariesKeyword:d})=>{const[p,f]=(0,r.useState)(null),[h,m]=(0,r.useState)(void 0),[y,v]=(0,r.useState)(void 0),[b,w]=(0,r.useState)([]),[E,x]=(0,r.useState)({}),[C,_]=(0,r.useState)(null);return(0,r.useEffect)((()=>{w(n?.length?n.sort((function(e,t){return(e?.meta?.order?e.meta.order[0]:0)-(t?.meta?.order?t.meta.order[0]:0)})):[])}),[n]),(0,r.createElement)(r.Fragment,null,e?"":(0,r.createElement)(I.JY,{onDragEnd:e=>{if(e.destination)if("glossary"==e.type){const t=((e,t)=>{const n=t.map((e=>({id:e?.id,current_position:e?.meta?.order[0]})));let r=[];for(var o=0;o<n?.length;o++){let t;e?.source?.index<e?.destination?.index&&(t=o<e?.source?.index||o>e?.destination?.index?n[o]?.current_position:o==e?.source?.index?n[e?.destination?.index]?.current_position:n[o-1]?.current_position),e?.source?.index>e?.destination?.index&&(t=o>e?.source?.index||o<e?.destination?.index?n[o]?.current_position:o==e?.source?.index?n[e?.destination?.index]?.current_position:n[o+1]?.current_position),r.push({...n[o],updated_position:t})}return r})(e,b);(e=>{g().use(g().createNonceMiddleware(betterdocs.nonce));const t=JSON.stringify(e);g()({path:"betterdocs/glossary/glossary_order",method:"POST",data:{glossaries_order:t,nonce:betterdocs.nonce}})})(t),w(b.map((e=>({...e,meta:{...e?.meta,order:[t.find((t=>t?.id===e?.id))?.updated_position]}}))).sort((function(e,t){return e?.meta?.order[0]-t?.meta?.order[0]})))}else x(e)}},(0,r.createElement)("div",{className:"bd-faq-ctg-list"},(0,r.createElement)(I.gL,{droppableId:"bdGlossaryList",type:"glossary"},(e=>(0,r.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"bd-faq-ctg-list-droppable"},t?"loading":b?.map(((e,g)=>(0,r.createElement)(je,{index:g,glossary:e,categoriesLoading:t,allFaqGlossaries:n,reFetchGlossaries:o,createFaqAt:p,setUpdateGlossary:a,glossaryExpand:y,setGlossaryExpand:v,setCreateGlossaryAt:f,faqExpanded:h,setFaqExpanded:m,changeFaqSort:E,setChangeFaqSort:x,reFetchFaqForGlossary:C,setReFetchFaqForGlossary:_,showGlossaryAIModalForm:i,setShowGlossaryAIModalForm:s,setShowGlossaryModal:u,settings:betterdocsGlossary?.betterdocs_settings,showGlossaryCounter:l,setShowGlossaryCounter:c,glossariesKeyword:d}))),e.placeholder))))))}));n(9386),n(2619);var Le=n(8378),Pe=n(5387);const Re=()=>{const[e,t]=(0,r.useState)(10),[n,o]=(0,r.useState)(1),[,,a]=(0,Pe.KC)(),{isLoading:i,data:s,refetch:u}=(0,l.I)(["allFaqGlossaries",e,n,a],y,{cacheTime:0}),[p,f]=(0,r.useState)(!0),[h,m]=(0,r.useState)(!1),{showGlossaryModal:g,setShowGlossaryModal:v}=(0,r.useContext)(Le.t),[b,w]=(0,r.useState)(!1),[E,x]=(0,r.useState)(null),[C,_]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{let e;return i?f(!0):e=setTimeout((()=>f(!1)),800),()=>clearTimeout(e)}),[i]),(0,r.useEffect)((()=>{m(!s?.data?.length)}),[s]),(0,r.createElement)(r.Fragment,null,p?(0,r.createElement)(d,null):(0,r.createElement)(r.Fragment,null,h?(0,r.createElement)(D,{reFetchGlossaries:u,setShowGlossaryModal:v}):""),g||null!==E?(0,r.createElement)(se,{open:!0,reFetchGlossaries:u,setShowGlossaryModal:v,updateGlossary:E,setUpdateGlossary:x,showGlossaryAIModalForm:b,setShowGlossaryAIModalForm:w}):"",(0,r.createElement)(Te,{isLoading:p,categoriesLoading:i,allFaqGlossaries:s?.data,reFetchGlossaries:u,setUpdateGlossary:x,setIsEmptyDashboard:m,showGlossaryAIModalForm:b,setShowGlossaryAIModalForm:w,setShowGlossaryModal:v,showGlossaryCounter:C,setShowGlossaryCounter:_,glossariesKeyword:a}),s?.total>e?(0,r.createElement)("div",{style:{marginTop:20},className:"btd-pagination-wrapper"},(0,r.createElement)(c.A,{pageSize:e,defaultCurrent:n,onChange:(e,n)=>{o(e),t(n)},total:s?.total})):"")},Fe=new i.E,Be=()=>(0,r.createElement)("div",{id:"betterdocsGlossaries",className:"betterdocs-faq-builder-wrapper"},(0,r.createElement)(s.Ht,{client:Fe},(0,r.createElement)("div",{className:"betterdocs-faq-wrapper betterdocs-dashboard-container"},(0,r.createElement)(Re,null))))},8061:(e,t,n)=>{"use strict";n.d(t,{A:()=>Wt});var r=n(1609),o=n.n(r),a=n(5849),i=n(8401),s=n(2619),l=n(1890),c=n(7723);const u=e=>(0,r.createElement)("div",null,e.title),d=e=>(0,r.createElement)("div",{className:"wprf-control-wrapper wpfr-section-html",dangerouslySetInnerHTML:{__html:e.html}});var p=n(668);const f=e=>{const t=(0,p.validFieldProps)(e,["is_pro","visible","trigger","copyOnClick","disable","parentIndex","context","badge","popup","tags"]),n=(0,r.useCallback)((n=>t.onChange(n,{popup:e?.popup,isPro:!!e.is_pro})),[t?.value]);if(e.tags){let a=Object.values(e.tags);Boolean(e?.context?.is_pro_active)&&e?.context?.values?.multiple_kb||(a=a.filter((e=>"%knowledge_base%"!==e.value)));let i=e.value.length>0?e.value.split("/"):[];const s=o().useRef(null),l=(t,r)=>{var o;const a=s.current,l=null!==(o=a?.selectionStart)&&void 0!==o?o:0;r&&null!=i.find((e=>e===t.value))&&(i=i.filter((e=>e!==t.value)));let c=i.join("/");if(!r){let e=c.indexOf("/",l);if(-1!==e){let n=c.slice(0,e),r=c.slice(e);c=`${n}${n.endsWith("/")?"":"/"}${t.value}${r}`}else c=`${c}${c.endsWith("/")?"":"/"}${t.value}`}n({target:{type:"button",name:e.name,value:c}})};return(0,r.createElement)(r.Fragment,null,o().createElement("input",{...t,onChange:n,ref:s,type:"text"}),(0,r.createElement)("div",{className:"wprf-tags-wrapper"},a.map(((e,t)=>{let n=i.includes(e.value);return(0,r.createElement)(o().Fragment,{key:t},(0,r.createElement)("span",{className:"button button-secondary "+(n?"active":""),title:e.label,onClick:t=>l(e,n)},e.value))}))))}return o().createElement("input",{...t,onChange:n})},h=(o().memo(f),(0,p.withLabel)(o().memo(f))),m=e=>{var t;return(0,r.createElement)("div",{className:"wprf-image-wrapper"},null!=e?.media?.url&&(0,r.createElement)("img",{src:e.media.url,alt:null!==(t=e?.media?.alt)&&void 0!==t?t:""}))};var g=n(1455),y=n.n(g);const v=e=>{var t;const n=(0,p.validFieldProps)(e,["is_pro","visible","trigger","disable","parentIndex","context","copyOnClick","description","label","help","style"]),[o,a]=(0,r.useState)(null),[i,s]=(0,r.useState)(!1),[l,u]=(0,r.useState)([]),[d,f]=(0,r.useState)("ignore");let{label:h,label_subtitle:m,id:g,name:v,type:b,style:w,is_pro:E,badge:x,value:C,enable_disable_text_active:_=!1,...S}=e;null==g&&(g=v);const O={description:{position:"right"},...w},k=(...e)=>e.filter(Boolean).join(" "),N=k({[`wprf-style-${O?.type}`]:O?.type||!1,"wprf-label-none":void 0===h||""===h||0===h.length,[`wprf-${O?.label?.position||"inline"}-label`]:(null===(t=O?.label?.position)||void 0===t||t)&&null!=h});if("hidden"===b)return(0,r.createElement)(WrappedComponent,{...e,id:g});const M=k("wprf-control-wrapper",`wprf-type-${b}`,N,e?.classes,{[`wprf-name-${v}`]:v}),A=e=>{f(e.target.value)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:M},(0,r.createElement)("div",{className:"wprf-control-label"},h&&(0,r.createElement)("label",{htmlFor:g},h),m&&(0,r.createElement)("p",{className:"wprf-label-subtitle",dangerouslySetInnerHTML:{__html:m}})),(0,r.createElement)("div",{className:"wprf-control-field wprf-importer-upload-field"},(0,r.createElement)("span",{className:"wprf-json-uploader"},null===o?(0,r.createElement)("label",{className:"wprf-importer-upload-button"},(0,r.createElement)("span",{className:"icon"},(0,r.createElement)("i",{className:"btd-icon btd-upload"})),(0,r.createElement)("span",null,(0,c.__)("Click to upload","betterdocs")),(0,r.createElement)("input",{type:"file",accept:e.file_type,onChange:t=>{if(!t.target.files.length)return;const n=t.target.files[0];if(0!=n?.size)if("application/json"===n?.type||"text/json"===n?.type||"application/xml"===n?.type||"text/xml"===n?.type||"text/csv"===n?.type||"application/csv"===n?.type||"application/vnd.ms-excel"===n?.type)if(a(n),"application/xml"===n.type||"text/xml"===n.type){let e=new FileReader;e.onload=function(e){const t=e.target.result,n=(new DOMParser).parseFromString(t,"text/xml");let r={};const o=[],a=n.evaluate("//wp:post_name",n,(e=>"wp"===e?"http://wordpress.org/export/1.2/":null),XPathResult.ANY_TYPE,null);let i=a.iterateNext();for(;i;)o.push(i.textContent),i=a.iterateNext();o&&(r.posts=o),y()({path:"/betterdocs/v1/parse-xml",method:"POST",data:r}).then((e=>{"success"===e.status&&e.data&&u(Object.values(e.data))})).catch((e=>{console.log(e)}))},e.readAsText(n)}else"text/csv"!==n.type&&"application/csv"!==n.type&&"application/vnd.ms-excel"!==n.type||(e=>{const t=new FormData;t.append("file",e),y()({path:"/betterdocs/v1/parse-csv",method:"POST",body:t}).then((e=>{"success"===e.status&&e.data&&u(Object.values(e.data))})).catch((e=>{console.log(e)}))})(n);else e.context.alerts.toast("error",(0,c.__)("Invalid file type.","betterdocs"));else e.context.alerts.toast("error",(0,c.__)("File can't be empty.","betterdocs"))}})):o.name&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"wpfr-json-file-name-wrapper"},(0,r.createElement)("span",{className:"wpfr-json-file-name"},o.name.length>20?`${o.name.substr(0,9)}...${o.name.substr(o.name.length-7)}`:o.name),(0,r.createElement)("span",{className:"wprf-json-file-delete-button",onClick:()=>{a(null),e.onChange({target:{type:"importerupload",name:e.name,value:null}})}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)("mask",{id:"mask0_2475_21238","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},(0,r.createElement)("rect",{width:"24",height:"24",fill:"#D9D9D9"})),(0,r.createElement)("g",{mask:"url(#mask0_2475_21238)"},(0,r.createElement)("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"#475467"}))))),l.length>0&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"data-exists"},(0,r.createElement)("input",{type:"hidden",name:"existing_slug",id:"existing_slug"}),(0,r.createElement)("div",{className:"error"},e?.text?.exists_notice&&(0,r.createElement)("p",{className:"exists-notice"},e?.text?.exists_notice),(0,r.createElement)("label",{htmlFor:"ignore-radio"},(0,r.createElement)("input",{type:"radio",name:"action",value:"ignore",id:"ignore-radio",checked:"ignore"===d,onChange:A}),(0,c.__)("Ignore","betterdocs")),(0,r.createElement)("label",{htmlFor:"keepboth-radio"},(0,r.createElement)("input",{type:"radio",name:"action",value:"keepboth",id:"keepboth-radio",checked:"keepboth"===d,onChange:A}),(0,c.__)("Keep Both","betterdocs")),(0,r.createElement)("label",{htmlFor:"replace-radio"},(0,r.createElement)("input",{type:"radio",name:"action",value:"replace",id:"replace-radio",checked:"replace"===d,onChange:A}),(0,c.__)("Replace","betterdocs"))))))))),o&&(0,r.createElement)("div",{className:"wprf-submit wprf-importer-submit"},(0,r.createElement)("button",{...n,type:"submit",disabled:i,onClick:()=>{s(!0);const t=new FormData;t.append("file",o),l.length>0&&t.append("existing_slug",l.join(","));const n=document.querySelector('input[name="action"]:checked');n&&t.append("action",n.value),y()({path:e.ajax.api,method:"POST",body:t}).then((t=>{if(s(!1),"failed"===t.status)throw new Error;if("success"===t.status){if(a(null),!e.ajax?.hideSwal){const t=e.ajax?.swal?.icon||"success",n=e.ajax?.swal?.text||"Complete";e.context.alerts.toast(t,n,{autoClose:e.ajax?.swal?.autoClose})}e.ajax?.reload&&setTimeout((()=>window.location.reload()),1e3)}})).catch((t=>{s(!0),e.ajax?.hideSwal||e.context.alerts.toast("error",t?.message||(0,c.__)("Something went wrong.","betterdocs"))}))},className:"wprf-submit-button"},(0,p.isObject)(e?.text)&&e?.ajax?i?e?.text?.loading:e.value?e?.text?.saved:e?.text?.normal:e?.text)))},b=(0,p.withLabel)(o().memo((e=>{(0,p.validFieldProps)(e,["is_pro","visible","trigger","disable","parentIndex","context","copyOnClick"]);const[t,n]=(0,r.useState)(null);return(0,r.useEffect)((()=>{e?.value||n(null)}),[e?.value]),(0,r.createElement)("div",{className:"wprf-control-field wprf-importer-upload-field"},(0,r.createElement)("span",{className:"wprf-json-uploader"},!t&&(0,r.createElement)("label",{className:"wprf-importer-upload-button"},(0,r.createElement)("span",{className:"icon"},(0,r.createElement)("i",{className:"btd-icon btd-upload"})),(0,r.createElement)("span",null,(0,c.__)("Click to upload","betterdocs")),(0,r.createElement)("input",{type:"file",accept:"application/JSON",onChange:t=>{(t=>{if(!t.target.files.length)return;const r=t.target.files[0];if(0==r?.size)return void e.context.alerts.toast("error",(0,c.__)("File can't be empty.","betterdocs"));if("application/json"!=r?.type&&"text/json"!=r?.type)return void e.context.alerts.toast("error",(0,c.__)("Invalid file type.","betterdocs"));n(r);let o=new FileReader;o.onload=t=>{const n=t?.target?.result;e.onChange({target:{type:"jsonuploader",name:e.name,value:n}})},o.readAsText(r)})(t)}})),t&&t?.name&&(0,r.createElement)("span",{className:"wpfr-json-file-name-wrapper"},(0,r.createElement)("span",{className:"wpfr-json-file-name"},t?.name.length>20?`${t?.name.substr(0,9)}...${t?.name.substr(t?.name.length-7)}`:t?.name),(0,r.createElement)("span",{className:"wprf-json-file-delete-button",onClick:()=>{n(null),e.onChange({target:{type:"jsonuploader",name:e.name,value:null}})}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)("mask",{id:"mask0_2475_21238","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},(0,r.createElement)("rect",{width:"24",height:"24",fill:"#D9D9D9"})),(0,r.createElement)("g",{mask:"url(#mask0_2475_21238)"},(0,r.createElement)("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"#475467"})))))))})));var w=n(7500),E=n.n(w);const x=(0,p.withLabel)((function(e){const t=E()("wprf-checkbox-wrap wprf-name-migration_step",e?.classes);return(0,r.createElement)("div",{className:t},(0,r.createElement)(p.GenericInput,{...e,type:"checkbox"}),(0,r.createElement)("label",{htmlFor:e.id},e.label))})),C=e=>(0,r.createElement)("div",{className:`wprf-control-wrapper wprf-settings-section-header wprf-section-header wprf-direction-${e?.direction}`},e?.icon?(0,r.createElement)("div",{className:"wprf-icon header-icon",dangerouslySetInnerHTML:{__html:e?.icon}}):"",(0,r.createElement)("div",{className:"wprf-content"},(0,r.createElement)("h4",{className:"wprf-title",dangerouslySetInnerHTML:{__html:e.title}}),(0,r.createElement)("p",{className:"wprf-description",dangerouslySetInnerHTML:{__html:e.description}})),e?.links?(0,r.createElement)("div",{className:"wprf-link-wrapper"},e?.links?.map((e=>(0,r.createElement)("a",{href:e?.url,target:"_blank",dangerouslySetInnerHTML:{__html:e?.label}})))):"");var _=n(8552),S=n(1419),O=n.n(S);function k(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function N(e){return e instanceof k(e).Element||e instanceof Element}function M(e){return e instanceof k(e).HTMLElement||e instanceof HTMLElement}function A(e){return"undefined"!=typeof ShadowRoot&&(e instanceof k(e).ShadowRoot||e instanceof ShadowRoot)}var D=Math.max,I=Math.min,j=Math.round;function T(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function L(){return!/^((?!chrome|android).)*safari/i.test(T())}function P(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&M(e)&&(o=e.offsetWidth>0&&j(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&j(r.height)/e.offsetHeight||1);var i=(N(e)?k(e):window).visualViewport,s=!L()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/o,c=(r.top+(s&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function R(e){var t=k(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function F(e){return e?(e.nodeName||"").toLowerCase():null}function B(e){return((N(e)?e.ownerDocument:e.document)||window.document).documentElement}function z(e){return P(B(e)).left+R(e).scrollLeft}function q(e){return k(e).getComputedStyle(e)}function U(e){var t=q(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function H(e,t,n){void 0===n&&(n=!1);var r,o,a=M(t),i=M(t)&&function(e){var t=e.getBoundingClientRect(),n=j(t.width)/e.offsetWidth||1,r=j(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=B(t),l=P(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==F(t)||U(s))&&(c=(r=t)!==k(r)&&M(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:R(r)),M(t)?((u=P(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=z(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function V(e){var t=P(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 K(e){return"html"===F(e)?e:e.assignedSlot||e.parentNode||(A(e)?e.host:null)||B(e)}function G(e){return["html","body","#document"].indexOf(F(e))>=0?e.ownerDocument.body:M(e)&&U(e)?e:G(K(e))}function W(e,t){var n;void 0===t&&(t=[]);var r=G(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=k(r),i=o?[a].concat(a.visualViewport||[],U(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(W(K(i)))}function Y(e){return["table","td","th"].indexOf(F(e))>=0}function Q(e){return M(e)&&"fixed"!==q(e).position?e.offsetParent:null}function $(e){for(var t=k(e),n=Q(e);n&&Y(n)&&"static"===q(n).position;)n=Q(n);return n&&("html"===F(n)||"body"===F(n)&&"static"===q(n).position)?t:n||function(e){var t=/firefox/i.test(T());if(/Trident/i.test(T())&&M(e)&&"fixed"===q(e).position)return null;var n=K(e);for(A(n)&&(n=n.host);M(n)&&["html","body"].indexOf(F(n))<0;){var r=q(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 Z="top",J="bottom",X="right",ee="left",te="auto",ne=[Z,J,X,ee],re="start",oe="end",ae="viewport",ie="popper",se=ne.reduce((function(e,t){return e.concat([t+"-"+re,t+"-"+oe])}),[]),le=[].concat(ne,[te]).reduce((function(e,t){return e.concat([t,t+"-"+re,t+"-"+oe])}),[]),ce=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ue(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var de={placement:"bottom",modifiers:[],strategy:"absolute"};function pe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function fe(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?de:o;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},de,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:N(e)?W(e):e.contextElement?W(e.contextElement):[],popper:W(t)};var i,c,p=function(e){var t=ue(e);return ce.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,s.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=p.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:u,options:r});l.push(a||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(pe(t,n)){s.rects={reference:H(t,$(n),"fixed"===s.options.strategy),popper:V(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,l=void 0===i?{}:i,d=o.name;"function"==typeof a&&(s=a({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!pe(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var he={passive:!0};function me(e){return e.split("-")[0]}function ge(e){return e.split("-")[1]}function ye(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ve(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?me(o):null,i=o?ge(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case Z:t={x:s,y:n.y-r.height};break;case J:t={x:s,y:n.y+n.height};break;case X:t={x:n.x+n.width,y:l};break;case ee:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?ye(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case re:t[c]=t[c]-(n[u]/2-r[u]/2);break;case oe:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var be={top:"auto",right:"auto",bottom:"auto",left:"auto"};function we(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var y=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),b=ee,w=Z,E=window;if(c){var x=$(n),C="clientHeight",_="clientWidth";x===k(n)&&"static"!==q(x=B(n)).position&&"absolute"===s&&(C="scrollHeight",_="scrollWidth"),(o===Z||(o===ee||o===X)&&a===oe)&&(w=J,m-=(d&&x===E&&E.visualViewport?E.visualViewport.height:x[C])-r.height,m*=l?1:-1),o!==ee&&(o!==Z&&o!==J||a!==oe)||(b=X,f-=(d&&x===E&&E.visualViewport?E.visualViewport.width:x[_])-r.width,f*=l?1:-1)}var S,O=Object.assign({position:s},c&&be),N=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:j(n*o)/o||0,y:j(r*o)/o||0}}({x:f,y:m},k(n)):{x:f,y:m};return f=N.x,m=N.y,l?Object.assign({},O,((S={})[w]=v?"0":"",S[b]=y?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",S)):Object.assign({},O,((t={})[w]=v?m+"px":"",t[b]=y?f+"px":"",t.transform="",t))}const Ee={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]||{},o=t.elements[e];M(o)&&F(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.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],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});M(r)&&F(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var xe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ce(e){return e.replace(/left|right|bottom|top/g,(function(e){return xe[e]}))}var _e={start:"end",end:"start"};function Se(e){return e.replace(/start|end/g,(function(e){return _e[e]}))}function Oe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&A(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ke(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ne(e,t,n){return t===ae?ke(function(e,t){var n=k(e),r=B(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=L();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+z(e),y:l}}(e,n)):N(t)?function(e,t){var n=P(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):ke(function(e){var t,n=B(e),r=R(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=D(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=D(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+z(e),l=-r.scrollTop;return"rtl"===q(o||n).direction&&(s+=D(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(B(e)))}function Me(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ae(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function De(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?ae:c,d=n.elementContext,p=void 0===d?ie:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,y=Me("number"!=typeof g?g:Ae(g,ne)),v=p===ie?"reference":ie,b=e.rects.popper,w=e.elements[h?v:p],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=W(K(e)),n=["absolute","fixed"].indexOf(q(e).position)>=0&&M(e)?$(e):e;return N(n)?t.filter((function(e){return N(e)&&Oe(e,n)&&"body"!==F(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=Ne(e,n,r);return t.top=D(o.top,t.top),t.right=I(o.right,t.right),t.bottom=I(o.bottom,t.bottom),t.left=D(o.left,t.left),t}),Ne(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(N(w)?w:w.contextElement||B(e.elements.popper),l,u,i),x=P(e.elements.reference),C=ve({reference:x,element:b,strategy:"absolute",placement:o}),_=ke(Object.assign({},b,C)),S=p===ie?_:x,O={top:E.top-S.top+y.top,bottom:S.bottom-E.bottom+y.bottom,left:E.left-S.left+y.left,right:S.right-E.right+y.right},k=e.modifiersData.offset;if(p===ie&&k){var A=k[o];Object.keys(O).forEach((function(e){var t=[X,J].indexOf(e)>=0?1:-1,n=[Z,J].indexOf(e)>=0?"y":"x";O[e]+=A[n]*t}))}return O}function Ie(e,t,n){return D(e,I(t,n))}function je(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 Te(e){return[Z,X,J,ee].some((function(t){return e[t]>=0}))}var Le=fe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=k(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,he)})),s&&l.addEventListener("resize",n.update,he),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,he)})),s&&l.removeEventListener("resize",n.update,he)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:me(t.placement),variation:ge(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,we(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,we(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ee,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=le.reduce((function(e,n){return e[n]=function(e,t,n){var r=me(e),o=[ee,Z].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[ee,X].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},{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 o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,y=me(g),v=l||(y!==g&&h?function(e){if(me(e)===te)return[];var t=Ce(e);return[Se(e),t,Se(t)]}(g):[Ce(g)]),b=[g].concat(v).reduce((function(e,n){return e.concat(me(n)===te?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?le:l,u=ge(r),d=u?s?se:se.filter((function(e){return ge(e)===u})):ne,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=De(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[me(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,E=t.rects.popper,x=new Map,C=!0,_=b[0],S=0;S<b.length;S++){var O=b[S],k=me(O),N=ge(O)===re,M=[Z,J].indexOf(k)>=0,A=M?"width":"height",D=De(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),I=M?N?X:ee:N?J:Z;w[A]>E[A]&&(I=Ce(I));var j=Ce(I),T=[];if(a&&T.push(D[k]<=0),s&&T.push(D[I]<=0,D[j]<=0),T.every((function(e){return e}))){_=O,C=!1;break}x.set(O,T)}if(C)for(var L=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},P=h?3:1;P>0&&"break"!==L(P);P--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=De(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=me(t.placement),v=ge(t.placement),b=!v,w=ye(y),E="x"===w?"y":"x",x=t.modifiersData.popperOffsets,C=t.rects.reference,_=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(x){if(a){var M,A="y"===w?Z:ee,j="y"===w?J:X,T="y"===w?"height":"width",L=x[w],P=L+g[A],R=L-g[j],F=f?-_[T]/2:0,B=v===re?C[T]:_[T],z=v===re?-_[T]:-C[T],q=t.elements.arrow,U=f&&q?V(q):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=H[A],G=H[j],W=Ie(0,C[T],U[T]),Y=b?C[T]/2-F-W-K-O.mainAxis:B-W-K-O.mainAxis,Q=b?-C[T]/2+F+W+G+O.mainAxis:z+W+G+O.mainAxis,te=t.elements.arrow&&$(t.elements.arrow),ne=te?"y"===w?te.clientTop||0:te.clientLeft||0:0,oe=null!=(M=null==k?void 0:k[w])?M:0,ae=L+Q-oe,ie=Ie(f?I(P,L+Y-oe-ne):P,L,f?D(R,ae):R);x[w]=ie,N[w]=ie-L}if(s){var se,le="x"===w?Z:ee,ce="x"===w?J:X,ue=x[E],de="y"===E?"height":"width",pe=ue+g[le],fe=ue-g[ce],he=-1!==[Z,ee].indexOf(y),ve=null!=(se=null==k?void 0:k[E])?se:0,be=he?pe:ue-C[de]-_[de]-ve+O.altAxis,we=he?ue+C[de]+_[de]-ve-O.altAxis:fe,Ee=f&&he?function(e,t,n){var r=Ie(e,t,n);return r>n?n:r}(be,ue,we):Ie(f?be:pe,ue,f?we:fe);x[E]=Ee,N[E]=Ee-ue}t.modifiersData[r]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=me(n.placement),l=ye(s),c=[ee,X].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Me("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ae(e,ne))}(o.padding,n),d=V(a),p="y"===l?Z:ee,f="y"===l?J:X,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],g=$(a),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,b=u[p],w=y-d[c]-u[f],E=y/2-d[c]/2+v,x=Ie(b,E,w),C=l;n.modifiersData[r]=((t={})[C]=x,t.centerOffset=x-E,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)))&&Oe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=De(t,{elementContext:"reference"}),s=De(t,{altBoundary:!0}),l=je(i,r),c=je(s,o,a),u=Te(l),d=Te(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Pe="tippy-content",Re="tippy-arrow",Fe="tippy-svg-arrow",Be={passive:!0,capture:!0},ze=function(){return document.body};function qe(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ue(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function He(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Ve(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Ke(e){return[].concat(e)}function Ge(e,t){-1===e.indexOf(t)&&e.push(t)}function We(e){return[].slice.call(e)}function Ye(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Qe(){return document.createElement("div")}function $e(e){return["Element","Fragment"].some((function(t){return Ue(e,t)}))}function Ze(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Je(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Xe(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function et(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 tt={isTouch:!1},nt=0;function rt(){tt.isTouch||(tt.isTouch=!0,window.performance&&document.addEventListener("mousemove",ot))}function ot(){var e=performance.now();e-nt<20&&(tt.isTouch=!1,document.removeEventListener("mousemove",ot)),nt=e}function at(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var it=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),st=Object.assign({appendTo:ze,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},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),lt=Object.keys(st);function ct(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,a=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=st[o])?r:a),t}),{});return Object.assign({},e,t)}function ut(e,t){var n=Object.assign({},t,{content:He(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ct(Object.assign({},st,{plugins:t}))):lt).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}),{})}(e,t.plugins));return n.aria=Object.assign({},st.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}function dt(e,t){e.innerHTML=t}function pt(e){var t=Qe();return!0===e?t.className=Re:(t.className=Fe,$e(e)?t.appendChild(e):dt(t,e)),t}function ft(e,t){$e(t.content)?(dt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?dt(e,t.content):e.textContent=t.content)}function ht(e){var t=e.firstElementChild,n=We(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Pe)})),arrow:n.find((function(e){return e.classList.contains(Re)||e.classList.contains(Fe)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function mt(e){var t=Qe(),n=Qe();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Qe();function o(n,r){var o=ht(t),a=o.box,i=o.content,s=o.arrow;r.theme?a.setAttribute("data-theme",r.theme):a.removeAttribute("data-theme"),"string"==typeof r.animation?a.setAttribute("data-animation",r.animation):a.removeAttribute("data-animation"),r.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?a.setAttribute("role",r.role):a.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||ft(i,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(pt(r.arrow))):a.appendChild(pt(r.arrow)):s&&a.removeChild(s)}return r.className=Pe,r.setAttribute("data-state","hidden"),ft(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}mt.$$tippy=!0;var gt=1,yt=[],vt=[];function bt(e,t){var n,r,o,a,i,s,l,c,u=ut(e,Object.assign({},st,ct(Ye(t)))),d=!1,p=!1,f=!1,h=!1,m=[],g=Ve(W,u.interactiveDebounce),y=gt++,v=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:y,reference:e,popper:Qe(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){if(!b.state.isDestroyed){j("onBeforeUpdate",[b,t]),K();var n=b.props,r=ut(e,Object.assign({},n,Ye(t),{ignoreAttributes:!0}));b.props=r,V(),n.interactiveDebounce!==r.interactiveDebounce&&(P(),g=Ve(W,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?Ke(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),L(),I(),x&&x(n,r),b.popperInstance&&(Z(),X().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),j("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=tt.isTouch&&!b.props.touch,o=qe(b.props.duration,0,st.duration);if(!(e||t||n||r||N().hasAttribute("disabled")||(j("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,k()&&(E.style.visibility="visible"),I(),z(),b.state.isMounted||(E.style.transition="none"),k()){var a=A();Ze([a.box,a.content],0)}var i,l,c;s=function(){var e;if(b.state.isVisible&&!h){if(h=!0,E.offsetHeight,E.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=A(),n=t.box,r=t.content;Ze([n,r],o),Je([n,r],"visible")}T(),L(),Ge(vt,b),null==(e=b.popperInstance)||e.forceUpdate(),j("onMount",[b]),b.props.animation&&k()&&function(e){U(e,(function(){b.state.isShown=!0,j("onShown",[b])}))}(o)}},l=b.props.appendTo,c=N(),(i=b.props.interactive&&l===ze||"parent"===l?c.parentNode:He(l,[c])).contains(E)||i.appendChild(E),b.state.isMounted=!0,Z()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=qe(b.props.duration,1,st.duration);if(!(e||t||n)&&(j("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,h=!1,d=!1,k()&&(E.style.visibility="hidden"),P(),q(),I(!0),k()){var o=A(),a=o.box,i=o.content;b.props.animation&&(Ze([a,i],r),Je([a,i],"hidden"))}T(),L(),b.props.animation?k()&&function(e,t){U(e,(function(){!b.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&t()}))}(r,b.unmount):b.unmount()}},hideWithInteractivity:function(e){M().addEventListener("mousemove",g),Ge(yt,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(J(),X().forEach((function(e){e._tippy.unmount()})),E.parentNode&&E.parentNode.removeChild(E),vt=vt.filter((function(e){return e!==b})),b.state.isMounted=!1,j("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),K(),delete e._tippy,b.state.isDestroyed=!0,j("onDestroy",[b]))}};if(!u.render)return b;var w=u.render(b),E=w.popper,x=w.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+b.id,b.popper=E,e._tippy=b,E._tippy=b;var C=v.map((function(e){return e.fn(b)})),_=e.hasAttribute("aria-expanded");return V(),L(),I(),j("onCreate",[b]),u.showOnCreate&&ee(),E.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),E.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&M().addEventListener("mousemove",g)})),b;function S(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function O(){return"hold"===S()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function N(){return l||e}function M(){var e,t,n=N().parentNode;return n?null!=(t=Ke(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function A(){return ht(E)}function D(e){return b.state.isMounted&&!b.state.isVisible||tt.isTouch||a&&"focus"===a.type?0:qe(b.props.delay,e?0:1,st.delay)}function I(e){void 0===e&&(e=!1),E.style.pointerEvents=b.props.interactive&&!e?"":"none",E.style.zIndex=""+b.props.zIndex}function j(e,t,n){var r;void 0===n&&(n=!0),C.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=b.props)[e].apply(r,t)}function T(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=E.id;Ke(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function L(){!_&&b.props.aria.expanded&&Ke(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===N()?"true":"false"):e.removeAttribute("aria-expanded")}))}function P(){M().removeEventListener("mousemove",g),yt=yt.filter((function(e){return e!==g}))}function R(t){if(!tt.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!et(E,n)){if(Ke(b.props.triggerTarget||e).some((function(e){return et(e,n)}))){if(tt.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout((function(){p=!1})),b.state.isMounted||q())}}}function F(){f=!0}function B(){f=!1}function z(){var e=M();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Be),e.addEventListener("touchstart",B,Be),e.addEventListener("touchmove",F,Be)}function q(){var e=M();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Be),e.removeEventListener("touchstart",B,Be),e.removeEventListener("touchmove",F,Be)}function U(e,t){var n=A().box;function r(e){e.target===n&&(Xe(n,"remove",r),t())}if(0===e)return t();Xe(n,"remove",i),Xe(n,"add",r),i=r}function H(t,n,r){void 0===r&&(r=!1),Ke(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function V(){var e;O()&&(H("touchstart",G,{passive:!0}),H("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,G),e){case"mouseenter":H("mouseleave",Y);break;case"focus":H(it?"focusout":"blur",Q);break;case"focusin":H("focusout",Q)}}))}function K(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function G(e){var t,n=!1;if(b.state.isEnabled&&!$(e)&&!p){var r="focus"===(null==(t=a)?void 0:t.type);a=e,l=e.currentTarget,L(),!b.state.isVisible&&Ue(e,"MouseEvent")&&yt.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!r&&te(e)}}function W(e){var t=e.target,n=N().contains(t)||E.contains(t);if("mousemove"!==e.type||!n){var r=X().concat(E).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,a=e.props.interactiveBorder,i=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,u="right"===i?s.left.x:0,d="left"===i?s.right.x:0,p=t.top-r+l>a,f=r-t.bottom-c>a,h=t.left-n+u>a,m=n-t.right-d>a;return p||f||h||m}))})(r,e)&&(P(),te(e))}}function Y(e){$(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Q(e){b.props.trigger.indexOf("focusin")<0&&e.target!==N()||b.props.interactive&&e.relatedTarget&&E.contains(e.relatedTarget)||te(e)}function $(e){return!!tt.isTouch&&O()!==e.type.indexOf("touch")>=0}function Z(){J();var t=b.props,n=t.popperOptions,r=t.placement,o=t.offset,a=t.getReferenceClientRect,i=t.moveTransition,l=k()?ht(E).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||N()}:e,u=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=A().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={}}}}];k()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),b.popperInstance=Le(c,E,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:u}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function X(){return We(E.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&j("onTrigger",[b,e]),z();var t=D(!0),r=S(),o=r[0],a=r[1];tt.isTouch&&"hold"===o&&a&&(t=a),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),j("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=D(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):o=requestAnimationFrame((function(){b.hide()}))}}else q()}}function wt(e,t){void 0===t&&(t={});var n=st.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",rt,Be),window.addEventListener("blur",at);var r,o=Object.assign({},t,{plugins:n}),a=(r=e,$e(r)?[r]:function(e){return Ue(e,"NodeList")}(r)?We(r):Array.isArray(r)?r:We(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&bt(t,o);return n&&e.push(n),e}),[]);return $e(e)?a[0]:a}wt.defaultProps=st,wt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){st[t]=e[t]}))},wt.currentInput=tt,Object.assign({},Ee,{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)}}),wt.setDefaultProps({render:mt});const Et=wt;var xt=n(5795);function Ct(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var _t="undefined"!=typeof window&&"undefined"!=typeof document;function St(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Ot(){return _t&&document.createElement("div")}function kt(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(!kt(e[n],t[n]))return!1}return!0}return!1}function Nt(e){var t=[];return e.forEach((function(e){t.find((function(t){return kt(e,t)}))||t.push(e)})),t}var Mt=_t?r.useLayoutEffect:r.useEffect;function At(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Dt={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()||At(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&At(t,"remove",e.props.className)},onAfterUpdate:r}}};function It(e){return function(t){var n,a,i=t.children,s=t.content,l=t.visible,c=t.singleton,u=t.render,d=t.reference,p=t.disabled,f=void 0!==p&&p,h=t.ignoreAttributes,m=void 0===h||h,g=(t.__source,t.__self,Ct(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),y=void 0!==l,v=void 0!==c,b=(0,r.useState)(!1),w=b[0],E=b[1],x=(0,r.useState)({}),C=x[0],_=x[1],S=(0,r.useState)(),O=S[0],k=S[1],N=(n=function(){return{container:Ot(),renders:1}},(a=(0,r.useRef)()).current||(a.current="function"==typeof n?n():n),a.current),M=Object.assign({ignoreAttributes:m},g,{content:N.container});y&&(M.trigger="manual",M.hideOnClick=!1),v&&(f=!0);var A=M,D=M.plugins||[];u&&(A=Object.assign({},M,{plugins:v&&null!=c.data?[].concat(D,[{fn:function(){return{onTrigger:function(e,t){var n=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,k(n.content)}}}}]):D,render:function(){return{popper:N.container}}}));var I=[d].concat(i?[i.type]:[]);return Mt((function(){var t=d;d&&d.hasOwnProperty("current")&&(t=d.current);var n=e(t||N.ref||Ot(),Object.assign({},A,{plugins:[Dt].concat(M.plugins||[])}));return N.instance=n,f&&n.disable(),l&&n.show(),v&&c.hook({instance:n,content:s,props:A,setSingletonContent:k}),E(!0),function(){n.destroy(),null==c||c.cleanup(n)}}),I),Mt((function(){var e,t,n,r,o;if(1!==N.renders){var a=N.instance;a.setProps((t=a.props,n=A,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:Nt([].concat((null==(r=t.popperOptions)?void 0:r.modifiers)||[],(null==(o=n.popperOptions)?void 0:o.modifiers)||[]))})}))),null==(e=a.popperInstance)||e.forceUpdate(),f?a.disable():a.enable(),y&&(l?a.show():a.hide()),v&&c.hook({instance:a,content:s,props:A,setSingletonContent:k})}else N.renders++})),Mt((function(){var e;if(u){var t=N.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;C.placement===n.placement&&C.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&C.escaped===(null==r?void 0:r.hasPopperEscaped)||_({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[C.placement,C.referenceHidden,C.escaped].concat(I)),o().createElement(o().Fragment,null,i?(0,r.cloneElement)(i,{ref:function(e){N.ref=e,St(i.ref,e)}}):null,w&&(0,xt.createPortal)(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(C),O,N.instance):s,N.container))}}var jt=function(e,t){return(0,r.forwardRef)((function(n,a){var i=n.children,s=Ct(n,["children"]);return o().createElement(e,Object.assign({},t,s),i?(0,r.cloneElement)(i,{ref:function(e){St(a,e),St(i.ref,e)}}):null)}))};const Tt=jt(It(Et)),Lt=e=>{const{data:t,innerRef:n,innerProps:o,isFocused:a,isSelected:i,selectProps:s}=e,l=`${s.classNamePrefix||"react-select"}__option`,c=a?`${l}--is-focused`:"",u=i?`${l}--is-selected`:"";return(0,r.createElement)("div",{ref:n,...o,className:`${l} ${c} ${u} custom-option`,style:{cursor:"pointer"}},(0,r.createElement)("span",null,t.label),t.tooltip&&(0,r.createElement)(Tt,{content:t.tooltip,placement:"right"},(0,r.createElement)("span",{className:"tooltip-icon",style:{marginLeft:"0px"}},(0,r.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M6.33203 10.332H7.66536V6.33203H6.33203V10.332ZM6.9987 4.9987C7.18759 4.9987 7.34592 4.93481 7.4737 4.80703C7.60148 4.67925 7.66536 4.52092 7.66536 4.33203C7.66536 4.14314 7.60148 3.98481 7.4737 3.85703C7.34592 3.72925 7.18759 3.66536 6.9987 3.66536C6.80981 3.66536 6.65148 3.72925 6.5237 3.85703C6.39592 3.98481 6.33203 4.14314 6.33203 4.33203C6.33203 4.52092 6.39592 4.67925 6.5237 4.80703C6.65148 4.93481 6.80981 4.9987 6.9987 4.9987ZM6.9987 13.6654C6.07648 13.6654 5.20981 13.4904 4.3987 13.1404C3.58759 12.7904 2.88203 12.3154 2.28203 11.7154C1.68203 11.1154 1.20703 10.4098 0.857031 9.5987C0.507031 8.78759 0.332031 7.92092 0.332031 6.9987C0.332031 6.07648 0.507031 5.20981 0.857031 4.3987C1.20703 3.58759 1.68203 2.88203 2.28203 2.28203C2.88203 1.68203 3.58759 1.20703 4.3987 0.857031C5.20981 0.507031 6.07648 0.332031 6.9987 0.332031C7.92092 0.332031 8.78759 0.507031 9.5987 0.857031C10.4098 1.20703 11.1154 1.68203 11.7154 2.28203C12.3154 2.88203 12.7904 3.58759 13.1404 4.3987C13.4904 5.20981 13.6654 6.07648 13.6654 6.9987C13.6654 7.92092 13.4904 8.78759 13.1404 9.5987C12.7904 10.4098 12.3154 11.1154 11.7154 11.7154C11.1154 12.3154 10.4098 12.7904 9.5987 13.1404C8.78759 13.4904 7.92092 13.6654 6.9987 13.6654ZM6.9987 12.332C8.48759 12.332 9.7487 11.8154 10.782 10.782C11.8154 9.7487 12.332 8.48759 12.332 6.9987C12.332 5.50981 11.8154 4.2487 10.782 3.21536C9.7487 2.18203 8.48759 1.66536 6.9987 1.66536C5.50981 1.66536 4.2487 2.18203 3.21536 3.21536C2.18203 4.2487 1.66536 5.50981 1.66536 6.9987C1.66536 8.48759 2.18203 9.7487 3.21536 10.782C4.2487 11.8154 5.50981 12.332 6.9987 12.332Z",fill:"#667085"})))))},Pt=(0,p.withLabel)((e=>{const t=(0,p.useBuilderContext)();let{id:n,name:o,multiple:a,placeholder:i,search:s=!1,onChange:l,parentIndex:u}=e;const{options:d,selectedOption:f,setOptions:h,setData:m}=(0,p.useOptions)(e,"options"),[g,y]=(0,r.useState)(null),[v,b]=(0,r.useState)(!1),[w,E]=(0,r.useState)(!1),[x,C]=(0,r.useState)(betterdocs_admin.disabled_embed_model_option),S=()=>{if(e.ajax&&(!e.ajax.rules||(0,p.when)(e.ajax.rules,t.values))){b(!0);let n={};if(Object.keys(e?.ajax.data).map((r=>{if(e?.ajax.data[r].indexOf("@")>-1){let o=e?.ajax.data[r].substr(1);n[r]=t.values?.[o]}else n[r]=e?.ajax.data[r]})),!w)return(0,p.wpFetch)({path:e?.ajax.api,data:n}).then((n=>{b(!1);const r=(0,p.merge)(e.options,n,"value");return t.setFormField([...u,"options"],r),m({options:r,parentIndex:[...u,"options"]}),n}))}};(0,r.useEffect)((()=>{!(0,p.isArray)(g)&&(0,p.isObject)(g)&&l({target:{type:"select",name:o,value:g.value,options:d,multiple:a}}),(0,p.isArray)(g)&&l({target:{type:"select",name:o,value:g.map((e=>e.value)),options:d,multiple:a}})}),[g]),(0,r.useEffect)((()=>{S()}),[]),(0,r.useEffect)((()=>{e?.menuOpen&&S()}),[e?.menuOpen]);const k=(0,r.useCallback)((t=>{if((0,p.isArray)(t)&&e?.filterValue?.length>0){var n;const r=t;let o=r,a=null!==(n=e?.filterValue)&&void 0!==n?n:["all"];(0,p.isArray)(a)||(a=[a]),r?.length>1&&(0,p.valueExists)(r.map((e=>e.value)),a)&&(o=r.filter((e=>!a.includes(e?.value)))),t=o}y(t)}),[o,n,u]),N=e.options_tooltip?{Option:Lt}:void 0;return(0,r.createElement)("div",{className:"wprf-select-wrapper"},(0,r.createElement)(_.Ay,{isDisabled:e?.disable,className:"wprf-select "+(0==x?"disabled-option":""),classNamePrefix:"wprf-select",isSearchable:null!=s&&s,id:n,name:o,isMulti:null!=a&&a,placeholder:i,isLoading:v,options:d,value:f,onMenuOpen:S,onMenuClose:()=>{b(!1)},isOptionDisabled:e=>e?.disabled,onChange:k,disabled:"disabled",components:N}),0==x&&(0,r.createElement)("div",{className:"model-wrapper"},betterdocs_admin?.count_new_docs>0&&(0,r.createElement)("div",{className:"sync-docs-wrapper"},(0,r.createElement)("a",{href:`?page=betterdocs-settings&sync-new-docs=1&_nonce=${betterdocs_admin?.sync_nonce}`},"Sync new docs(",betterdocs_admin?.count_new_docs,")")),(0,r.createElement)("div",{className:"change-model-wrapper",onClick:()=>{O().mixin({customClass:{container:"betterdocs-model-change-alert-container",popup:"betterdocs-model-change-alert-popup",closeButton:"betterdocs-model-change-alert-close-button",htmlContainer:"betterdocs-model-change-alert-html"},showCloseButton:!0,closeButtonHtml:'\n        <svg class="betterdocs-close-button" xmlns="http://www.w3.org/2000/svg" width="15" height="14" viewBox="0 0 15 14" fill="none">\n          <path d="M1.69687 14L0.296875 12.6L5.89687 7L0.296875 1.4L1.69687 0L7.29688 5.6L12.8969 0L14.2969 1.4L8.69688 7L14.2969 12.6L12.8969 14L7.29688 8.4L1.69687 14Z" fill="#475467"/>\n        </svg>',html:'\n        <div class="icon">\n          <svg width="28" height="24" viewBox="0 0 28 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.634 24q-.366 0-.666-.183a1.3 1.3 0 0 1-.467-.484 1.46 1.46 0 0 1-.183-.65Q.3 22.334.5 22L12.834.667a1.3 1.3 0 0 1 .517-.5 1.4 1.4 0 0 1 .65-.167q.333 0 .65.167.316.165.517.5L27.5 22q.2.333.183.683-.016.35-.183.65a1.3 1.3 0 0 1-1.133.667zm2.3-2.667h20.134L14 4zM14.001 20q.567 0 .95-.383a1.3 1.3 0 0 0 .383-.95 1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95q0 .566.383.95.383.383.95.383m0-4q.567 0 .95-.383a1.3 1.3 0 0 0 .383-.95v-4a1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95v4q0 .566.383.95.383.383.95.383" fill="#F79009"/></svg>\n        </div>\n        <h3 class="title">Are you sure you want to change the model?</h3>\n        <p class="description">We do not recommend changing the model. Please confirm if you wish to proceed.</p>\n        <div class="footer">\n          <button id="cancelButton" class="btn btn-cancel">Cancel</button>\n          <button id="confirmButton" class="btn btn-confirm">Ok</button>\n\n        </div>',showConfirmButton:!1,icon:!1}).fire(),document.getElementById("confirmButton").addEventListener("click",(()=>{C(!0),O().close()})),document.getElementById("cancelButton").addEventListener("click",(()=>{C(!1),O().close()}))}},(0,c.__)("Change Model","betterdocs"))))}));n(4259);const Rt=new class{namespace="/betterdocs";version="v1";getPath=e=>`${this.namespace}/${this.version}/${e}`;post=(e,t={},n={})=>(n={path:this.getPath(e),method:"POST",data:t,...n},y()(n).then((e=>e)).catch((e=>e)));delete=(e,t={},n={})=>(n={path:this.getPath(e),method:"DELETE",data:t,...n},y()(n).then((e=>e)).catch((e=>console.error(e))));get=(e,t={})=>(t={path:this.getPath(e),method:"GET",...t},y()(t).then((e=>e)).catch((e=>console.error(e))));useQuery=e=>new URLSearchParams(e);getParam=(e,t=null)=>this.useQuery(location.search).get(e)||t},Ft=(e={})=>{var t,n,r,o,a;return O().mixin({target:null!==(t=e?.target)&&void 0!==t?t:"#betterdocsQuickBuilder",html:e?.html,title:null!==(n=e?.title)&&void 0!==n?n:(0,c.__)("Title Goes Here: title","betterdocs"),text:null!==(r=e?.text)&&void 0!==r?r:(0,c.__)("Text Goes Here: text","betterdocs"),icon:null!==(o=e?.icon)&&void 0!==o?o:e?.type||"success",timer:null!==(a=e?.timer)&&void 0!==a?a:null,...e})},Bt=(e=null)=>{let t={};null===e&&(e=sprintf(`<div class="icon">\n                <i class="btd-icon btd-crown"></i>\n            </div>\n            <h3 class="title">${(0,c.__)("License Not Activated","betterdocs")}</h3>\n            <p class="description">${(0,c.__)("To access this feature, simply upgrade to BetterDocs PRO for premium access.","betterdocs")}</p>\n            <div class="features">\n                <h5 class="feature-title">${(0,c.__)("Here’s what’s inside BetterDocs Pro.","betterdocs")}</h5>\n                <ul class="feature-list">\n                    <li class="list-item">${(0,c.__)("Multiple Knowledge Bases","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("Internal Knowledge Base","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("Instant Answer","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("Advanced Live Search","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("Insightful Analytics Report","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("User Role Management","betterdocs")}</li>\n                </ul>\n            </div>\n            <div class="footer">\n                <a href='%s' target='_blank'>${(0,c.__)("Upgrade Now","betterdocs")}</a>\n            </div>`,"https://betterdocs.co/upgrade")),(0,p.isObject)(e)&&(t=e,e=e.message||e.html);let n={showConfirmButton:!1,showDenyButton:!1,icon:!1,title:!1,showCloseButton:!0,closeButtonHtml:'<svg class="betterdocs-close-button" xmlns="http://www.w3.org/2000/svg" width="15" height="14" viewBox="0 0 15 14" fill="none">\n                            <path d="M1.69687 14L0.296875 12.6L5.89687 7L0.296875 1.4L1.69687 0L7.29688 5.6L12.8969 0L14.2969 1.4L8.69688 7L14.2969 12.6L12.8969 14L7.29688 8.4L1.69687 14Z" fill="#475467"/>\n                          </svg>',customClass:{container:"betterdocs-pro-alert-container",popup:"betterdocs-pro-alert-popup",closeButton:"betterdocs-pro-alert-close-button",htmlContainer:"betterdocs-pro-alert-html"},...t,html:e};return Ft(n)},zt=(e=null)=>{const t=document.querySelector("li.wprf-tab-nav-item.wprf-active-nav")?.getAttribute("data-key");let n="Upgrade to BetterDocs PRO",r="To access this feature, simply upgrade to BetterDocs PRO for premium access.";"tab-ai-chatbot"===t&&(n="Upgrade To BetterDocs PRO & Get BetterDocs AI Chatbot Addon",r="To access this feature, simply upgrade to BetterDocs PRO, get the BetterDocs AI chatbot Addon, and activate the license keys.");let o={};null===e&&(e=sprintf(`<div class="icon">\n                <i class="btd-icon btd-crown"></i>\n            </div>\n            <h3 class="title">${(0,c.__)(`${n}`,"betterdocs")}</h3>\n            <p class="description">${(0,c.__)(`${r}`,"betterdocs")}</p>\n            <div class="features">\n                <h5 class="feature-title">${(0,c.__)("Here’s what’s inside BetterDocs Pro.","betterdocs")}</h5>\n                <ul class="feature-list">\n                    <li class="list-item">${(0,c.__)("Multiple Knowledge Bases","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("Internal Knowledge Base","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("Instant Answer","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("Advanced Live Search","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("Insightful Analytics Report","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("User Role Management","betterdocs")}</li>\n                    <li class="list-item">${(0,c.__)("Glossaries & Encyclopedia","betterdocs")}</li>\n            <li class="list-item">${(0,c.__)("AI-Powered Chatbot","betterdocs")}</li>\n                </ul>\n            </div>\n            <div class="footer">\n                <a href='%s' target='_blank'>${(0,c.__)("Upgrade Now","betterdocs")}</a>\n            </div>`,"https://betterdocs.co/upgrade")),(0,p.isObject)(e)&&(o=e,e=e.message||e.html);let a={showConfirmButton:!1,showDenyButton:!1,icon:!1,type:"warning",title:!1,showCloseButton:!0,closeButtonHtml:'<svg class="betterdocs-close-button" xmlns="http://www.w3.org/2000/svg" width="15" height="14" viewBox="0 0 15 14" fill="none">\n                            <path d="M1.69687 14L0.296875 12.6L5.89687 7L0.296875 1.4L1.69687 0L7.29688 5.6L12.8969 0L14.2969 1.4L8.69688 7L14.2969 12.6L12.8969 14L7.29688 8.4L1.69687 14Z" fill="#475467"/>\n                          </svg>',customClass:{container:"betterdocs-pro-alert-container",popup:"betterdocs-pro-alert-popup",closeButton:"betterdocs-pro-alert-close-button",htmlContainer:"betterdocs-pro-alert-html"},...o,html:e};return Ft(a)},qt={position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,icon:!1},Ut=(e,t,n)=>(e=e||null,t=t||null,new Promise(((r,o)=>{n=n||{};const a={...qt,...n,onClose:r};"success"==e&&l.oR.success(t,a),"error"==e&&l.oR.error(t,a),"info"==e&&l.oR.info(t,a),"warning"==e&&l.oR.warning(t,a),e||o()}))),Ht=e=>{const t=(0,p.useBuilderContext)();return(0,r.useEffect)((()=>{t.registerAlert("pro_alert",zt),t.registerAlert("toast",Ut),t.registerAlert("licenseInactiveAlert",Bt)}),[]),t.submit.onSubmit=(0,r.useCallback)(((e,t)=>{t?.isSubmitting||(t.setSubmitting(!0),(({builtin_doc_page:e,docs_slug:t,docs_page:n})=>{let r=document.querySelector("#wp-admin-bar-view-docs .ab-item");if(null==r){let e=document.querySelector("#wp-admin-bar-site-name");if(null==e)return;{let t=document.createElement("li");t.id="wp-admin-bar-view-docs",r=document.createElement("a"),r.classList.add("ab-item"),r.textContent="Visit Documentation";let n=new URL(window.location.href);r.href=n.origin,t.append(r),e.querySelector("#wp-admin-bar-site-name-default").append(t)}}let o=new URL(r.href),a=t?.length>0?t:"docs";e?o.searchParams.delete("page_id"):!e&&n>0&&(a="",o.searchParams.set("page_id",n)),o.pathname=a,r.href=o.toString()})(t.values),(0,s.doAction)("betterdocs_settings_saved",t),Rt.post("settings",t.values).then((e=>{var t;e?.success?Ut("success",(0,c.__)("Changes Saved Successfully.","betterdocs")):Ut("nothing_changed"===e?.code?"info":"error",(0,c.__)(null!==(t=e?.message)&&void 0!==t?t:"Something went wrong.","betterdocs"))})).catch((e=>{Ut("error",(0,c.__)("Something went wrong.","betterdocs"))})).finally((()=>{t.setSubmitting(!1)})))}),[]),(0,r.createElement)("div",{className:"betterdocs-quick-builder-wrapper"},(0,r.createElement)(p.FormBuilder,{...t}))},Vt=e=>{const t=(0,p.useBuilder)(betterdocsAdminSettings),[n,o]=(0,r.useState)(!0);t.values.is_pro_active=betterdocsAdminSettings?.is_pro_active,(0,r.useEffect)((()=>{0==t.values.enable_disable&&(t.values.ia_enable_preview=!1),betterdocsAdminSettings.values=t.values}),[t.values]);return(0,r.useEffect)((()=>{const e=((e,t=null)=>{var n;return(n=location.search,new URLSearchParams(n)).get(e)||t})("tab");e&&t.setActiveTab(e)}),[]),(0,r.useEffect)((()=>{o(!1)}),[]),(0,r.createElement)(p.BuilderProvider,{value:{...t,isLoading:n,setIsLoading:o}},(0,r.createElement)(Ht,{isLoading:n}))};(0,s.addFilter)("betterdocs_settings_gutenberg_link","BetterDocs",((e,t)=>(0,r.createElement)("div",{className:"betterdocs-settings-customizer-link design-gutenberg"},(0,r.createElement)("div",{className:"betterdocs-card-content"},(0,r.createElement)("h2",null,(0,c.__)("Full Site Editing in Gutenberg","betterdocs")),(0,r.createElement)("p",null,(0,c.__)("Effortlessly design and customize your docs category archive, single docs, ready patterns & more with full site editing (FSE) compatibility in Gutenberg.","betterdocs")),(0,r.createElement)("a",{className:"betterdocs-customize-button",href:t.url},t.button)),(0,r.createElement)("div",{className:"betterdocs-card-icon"},(0,r.createElement)("img",{src:t.customizer_img,alt:"betterdocs-documentation"}))))),(0,s.addFilter)("betterdocs_settings_elementor_link","BetterDocs",((e,t)=>(0,r.createElement)("div",{className:"betterdocs-settings-customizer-link design-elementor"},(0,r.createElement)("div",{className:"betterdocs-card-content"},(0,r.createElement)("h2",null,(0,c.__)("Instant Design in Elementor","betterdocs")),(0,r.createElement)("p",null,(0,c.__)("Easily design and customize your single docs, category archive page, FAQ builder &  more using pre-made templates and widgets for Elementor & see changes in real time.","betterdocs")),(0,r.createElement)("a",{className:"betterdocs-customize-button",href:t.url},t.button)),(0,r.createElement)("div",{className:"betterdocs-card-icon"},(0,r.createElement)("img",{src:t.customizer_img,alt:"betterdocs-documentation"}))))),(0,s.addFilter)("betterdocs_settings_customizer_link","BetterDocs",((e,t)=>(0,r.createElement)("div",{className:"betterdocs-settings-customizer-link design-customizer"},(0,r.createElement)("div",{className:"betterdocs-card-content"},(0,r.createElement)("h2",null,(0,c.__)("Legacy Customizer","betterdocs")),(0,r.createElement)("p",null,(0,c.__)("Create and personalize your templates and pages effortlessly with the live customizer. Make your adjustments the way you want and see the changes in action.","betterdocs")),(0,r.createElement)("a",{className:"betterdocs-customize-button",href:t.url},t.button)),(0,r.createElement)("div",{className:"betterdocs-card-icon"},(0,r.createElement)("img",{src:t.customizer_img,alt:"betterdocs-documentation"}))))),(0,s.addFilter)("custom_field","BetterDocs",((e,t,n)=>{switch(t){case"title":return(0,r.createElement)(u,{...n});case"image":return(0,r.createElement)(m,{...n});case"html":return(0,r.createElement)(d,{...n});case"permalink_structure":return(0,r.createElement)(h,{...n});case"importerupload":return(0,r.createElement)(v,{...n});case"settingsuploader":return(0,r.createElement)(b,{...n});case"migration":return(0,r.createElement)(x,{...n});case"header":return(0,r.createElement)(C,{...n});case"embed_model_select":return(0,r.createElement)(Pt,{...n});default:return(0,r.createElement)(r.Fragment,null)}}));const Kt=()=>(0,r.createElement)("div",{className:"betterdocs-settings-wrapper"},(0,r.createElement)(Vt,null)),Gt=new a.E,Wt=()=>(0,r.createElement)("div",{className:"betterdocs-settings-wrap"},(0,s.doAction)("betterdocs_settings_header","settings"),(0,r.createElement)("div",{className:"betterdocs-left-right-settings"},(0,s.doAction)("betterdocs_before_settings_left"),(0,r.createElement)("div",{className:"betterdocs-settings"},(0,r.createElement)("div",{className:"betterdocs-settings-content"},(0,r.createElement)("div",{className:"betterdocs-dashboard-container betterdocs-settings-form-wrapper"},(0,r.createElement)("div",{id:"betterdocsQuickBuilder"},(0,r.createElement)(i.Ht,{client:Gt},(0,r.createElement)(l.N9,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"colored",limit:4}),(0,r.createElement)(Kt,null))))),(0,s.doAction)("betterdocs_settings_footer")),(0,s.doAction)("betterdocs_after_settings_left")))},9386:(e,t,n)=>{"use strict";n.d(t,{YY:()=>b,IX:()=>S,_v:()=>g,i:()=>v,gz:()=>k,xV:()=>u,bB:()=>_,wb:()=>E,Wj:()=>f,GI:()=>p,Ut:()=>i,uM:()=>s,l0:()=>c,QC:()=>C,j3:()=>M,Yj:()=>d,qu:()=>m,uI:()=>O,rH:()=>N,C0:()=>h,IS:()=>x,CK:()=>w,mT:()=>l,vg:()=>y,gu:()=>o,uK:()=>a,cA:()=>A});var r=n(1609);const o=e=>(0,r.createElement)("svg",{width:"220",viewBox:"0 0 366 85",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M63.0434 32.6229H44.0487C42.1891 32.6229 40.6796 31.1131 40.6796 29.2531C40.6796 27.3931 42.1891 25.8832 44.0487 25.8832H63.0434C64.903 25.8832 66.4125 27.3931 66.4125 29.2531C66.4125 31.1131 64.903 32.6229 63.0434 32.6229Z",fill:"#00B682"}),(0,r.createElement)("path",{d:"M55.3974 45.7358H36.4026C34.5431 45.7358 33.0336 44.226 33.0336 42.366C33.0336 40.506 34.5431 38.9961 36.4026 38.9961H55.3974C57.2569 38.9961 58.7665 40.506 58.7665 42.366C58.7665 44.226 57.2569 45.7358 55.3974 45.7358Z",fill:"#00B682"}),(0,r.createElement)("path",{d:"M47.6529 59.1058H28.6472C26.7877 59.1058 25.2781 57.596 25.2781 55.736C25.2781 53.876 26.7877 52.3661 28.6472 52.3661H47.6529C49.5125 52.3661 51.022 53.876 51.022 55.736C51.022 57.596 49.5125 59.1058 47.6529 59.1058Z",fill:"#00B682"}),(0,r.createElement)("path",{d:"M46.1598 77H23.2162C17.7141 77 12.7863 74.1498 10.0462 69.3795C7.30613 64.6147 7.31707 58.9308 10.0845 54.1769L32.5085 15.5658C35.2322 10.8994 40.2639 8 45.6402 8H68.5838C74.0859 8 79.0137 10.8502 81.7538 15.6205C84.4939 20.3853 84.4829 26.0692 81.7155 30.8231L59.2915 69.4342C56.6006 74.1006 51.5634 77 46.1598 77ZM45.6402 15.1227C42.7853 15.1227 40.1108 16.6653 38.6669 19.149L16.2429 57.7601C14.7771 60.282 14.7662 63.2963 16.221 65.8291C17.6759 68.362 20.2902 69.8773 23.2162 69.8773H46.1598C49.0312 69.8773 51.7002 68.3401 53.1276 65.8674L75.5571 27.2454C77.0229 24.7235 77.0338 21.7092 75.579 19.1763C74.1241 16.6435 71.5098 15.1281 68.5838 15.1281H45.6402V15.1227Z",fill:"#00B682"}),(0,r.createElement)("path",{d:"M62.5512 77H29.0246C27.0557 77 25.4641 75.4026 25.4641 73.4387C25.4641 71.4748 27.0611 69.8774 29.0246 69.8774H62.5512C67.0852 69.8774 71.2364 67.5852 73.6483 63.7449C76.0658 59.8991 76.3337 55.1616 74.3648 51.0587L70.6567 43.3343C69.8034 41.5618 70.5527 39.4338 72.3248 38.5804C74.0968 37.727 76.2244 38.4764 77.0776 40.2489L80.7803 47.9733C83.8157 54.2918 83.4 61.6059 79.67 67.536C75.9454 73.4606 69.5409 77 62.5403 77H62.5512Z",fill:"#00B682"}),(0,r.createElement)("path",{d:"M124.384 42.1533C125.82 41.4325 126.913 40.4279 127.65 39.1338C128.387 37.8397 128.758 36.3819 128.758 34.7657C128.758 33.5044 128.534 32.3359 128.081 31.2603C127.633 30.1791 126.929 29.2455 125.979 28.4537C125.023 27.662 123.822 27.045 122.364 26.5918C120.906 26.1441 119.17 25.9148 117.155 25.9148H104.433C104.127 25.9148 103.882 26.1605 103.882 26.4662V59.4183C103.882 59.6749 104.056 59.8988 104.302 59.9534C105.672 60.2646 107.212 60.5212 108.927 60.7178C110.816 60.9362 112.82 61.0399 114.944 61.0399C117.641 61.0399 119.951 60.7997 121.878 60.3137C123.8 59.8278 125.378 59.1343 126.601 58.2389C127.824 57.3379 128.725 56.235 129.299 54.9191C129.872 53.6087 130.161 52.1399 130.161 50.5237C130.161 48.4707 129.659 46.7398 128.649 45.3147C127.639 43.895 126.219 42.8412 124.384 42.1587V42.1533ZM110.516 31.9209C110.516 31.6152 110.767 31.364 111.073 31.364H116.129C118.214 31.3312 119.732 31.708 120.688 32.4997C121.638 33.2914 122.118 34.3725 122.118 35.7376C122.118 37.1791 121.643 38.2984 120.688 39.112C119.732 39.9201 118.231 40.3241 116.183 40.3241H111.078C110.772 40.3241 110.521 40.0729 110.521 39.7672V31.9264L110.516 31.9209ZM121.605 54.4004C120.328 55.2631 118.269 55.6944 115.43 55.6944C114.387 55.6944 113.486 55.6671 112.732 55.6125C112.126 55.5689 111.531 55.487 110.952 55.3614C110.701 55.3068 110.521 55.0774 110.521 54.8208V46.0464C110.521 45.7406 110.767 45.4949 111.073 45.4949H116.669C119.006 45.4949 120.732 45.9426 121.851 46.8435C122.965 47.7445 123.522 48.9839 123.522 50.5674C123.522 52.26 122.883 53.5322 121.605 54.4004Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M273.916 31.2275C272.278 29.715 270.302 28.5466 267.981 27.7221C265.66 26.8976 263.078 26.4826 260.239 26.4826H250.612C250.312 26.4826 250.066 26.7283 250.066 27.0287V60.5213C250.066 60.8216 250.312 61.0673 250.612 61.0673H260.239C263.078 61.0673 265.66 60.6523 267.981 59.8278C270.302 59.0033 272.278 57.8239 273.916 56.2951C275.554 54.7662 276.821 52.9426 277.722 50.8186C278.623 48.6946 279.071 46.3412 279.071 43.7531C279.071 41.165 278.623 38.8062 277.722 36.6877C276.821 34.5637 275.554 32.7509 273.916 31.2384V31.2275ZM271.541 48.5471C270.984 49.9504 270.176 51.1571 269.111 52.1617C268.052 53.1719 266.747 53.9527 265.202 54.5096C263.657 55.0666 261.877 55.345 259.862 55.345H257.257C256.952 55.345 256.706 55.0993 256.706 54.7935V32.7564C256.706 32.4506 256.952 32.2049 257.257 32.2049H259.862C261.877 32.2049 263.657 32.4833 265.202 33.0403C266.747 33.5972 268.052 34.3889 269.111 35.4155C270.171 36.442 270.979 37.6705 271.541 39.112C272.098 40.5535 272.376 42.1314 272.376 43.8623C272.376 45.5932 272.098 47.1548 271.541 48.558V48.5471Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M305.798 38.7516C304.581 37.5995 303.172 36.7095 301.567 36.0816C299.961 35.4537 298.225 35.137 296.358 35.137C294.49 35.137 292.797 35.4591 291.176 36.1089C289.554 36.7586 288.14 37.665 286.944 38.8335C285.743 40.002 284.793 41.3779 284.089 42.9614C283.384 44.5448 283.029 46.2538 283.029 48.0885C283.029 50.0323 283.373 51.7959 284.061 53.3739C284.749 54.9573 285.699 56.3224 286.917 57.4745C288.135 58.6266 289.554 59.5166 291.176 60.1445C292.797 60.7724 294.528 61.0891 296.358 61.0891C298.187 61.0891 299.912 60.7669 301.517 60.1172C303.123 59.4674 304.531 58.572 305.749 57.4199C306.967 56.2678 307.928 54.8918 308.632 53.292C309.336 51.6922 309.691 49.9558 309.691 48.083C309.691 46.2102 309.347 44.4301 308.659 42.8467C307.971 41.2633 307.021 39.8982 305.804 38.7461L305.798 38.7516ZM302.675 50.8895C302.342 51.7522 301.861 52.5057 301.244 53.1555C300.627 53.8052 299.901 54.3076 299.077 54.6679C298.247 55.0283 297.34 55.2085 296.352 55.2085C295.364 55.2085 294.457 55.0283 293.627 54.6679C292.798 54.3076 292.077 53.8052 291.46 53.1555C290.843 52.5057 290.368 51.7522 290.029 50.8895C289.696 50.0268 289.527 49.0931 289.527 48.083C289.527 47.0729 289.696 46.1392 290.029 45.2765C290.362 44.4138 290.843 43.6603 291.46 43.0105C292.077 42.3608 292.798 41.8584 293.627 41.498C294.457 41.1377 295.364 40.9575 296.352 40.9575C297.34 40.9575 298.247 41.1377 299.077 41.498C299.907 41.8584 300.627 42.3608 301.244 43.0105C301.861 43.6603 302.336 44.4138 302.675 45.2765C303.008 46.1392 303.177 47.0729 303.177 48.083C303.177 49.0931 303.008 50.0268 302.675 50.8895Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M331.603 54.7226C330.576 55.0447 329.31 55.2085 327.797 55.2085C326.683 55.2085 325.657 55.0283 324.723 54.668C323.789 54.3076 322.976 53.8162 322.293 53.1828C321.611 52.5549 321.081 51.7959 320.699 50.9168C320.322 50.0377 320.131 49.0931 320.131 48.083C320.131 47.0729 320.322 46.0791 320.699 45.1946C321.076 44.3155 321.605 43.5565 322.293 42.9286C322.976 42.3007 323.795 41.8038 324.75 41.4434C325.7 41.0831 326.754 40.9029 327.906 40.9029C329.31 40.9029 330.522 41.0722 331.548 41.4161C331.92 41.5417 332.264 41.6728 332.586 41.8147C332.952 41.9731 333.356 41.7165 333.356 41.3179V36.5402C333.356 36.3109 333.214 36.1034 333.001 36.027C332.264 35.7649 331.461 35.5574 330.582 35.4045C329.555 35.2243 328.414 35.137 327.158 35.137C325.253 35.137 323.473 35.47 321.818 36.1362C320.164 36.8023 318.733 37.7196 317.527 38.8881C316.32 40.0566 315.37 41.4216 314.665 42.9887C313.967 44.5557 313.612 46.2539 313.612 48.0885C313.612 49.9231 313.945 51.5775 314.611 53.161C315.277 54.7444 316.205 56.1204 317.39 57.2888C318.575 58.4573 320 59.3855 321.654 60.0681C323.309 60.7506 325.144 61.0946 327.158 61.0946C328.594 61.0946 329.79 60.9799 330.746 60.7451C331.537 60.5486 332.285 60.3356 332.99 60.1063C333.214 60.0353 333.361 59.8224 333.361 59.5876V54.8754C333.361 54.4878 332.968 54.2257 332.608 54.3731C332.296 54.4987 331.963 54.6188 331.608 54.728L331.603 54.7226Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M245.299 35.137H244.382C242.438 35.137 240.8 35.5956 239.473 36.5129C238.141 37.4303 237.207 38.5714 236.667 39.9365L236.334 35.7376C236.312 35.4373 236.044 35.208 235.739 35.2353L230.884 35.6775C230.59 35.7048 230.371 35.9615 230.388 36.2563L230.835 42.9013V60.5049C230.835 60.8106 231.081 61.0564 231.387 61.0564H236.76C237.065 61.0564 237.311 60.8106 237.311 60.5049V48.4052C237.311 46.2812 237.884 44.5558 239.036 43.2235C240.189 41.8912 241.805 41.2251 243.891 41.2251C244.338 41.2251 244.77 41.2469 245.174 41.296C245.501 41.3343 245.78 41.0776 245.78 40.75V35.4919C245.78 35.4919 245.758 35.1261 245.294 35.1261L245.299 35.137Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M223.481 54.0236C222.907 54.3458 222.296 54.6188 221.646 54.8317C220.996 55.0501 220.281 55.2194 219.489 55.345C218.698 55.4706 217.819 55.5361 216.847 55.5361C214.362 55.5361 212.424 54.9682 211.021 53.838C209.617 52.7023 208.809 51.2226 208.591 49.388C209.132 50.0377 209.978 50.5401 211.124 50.9004C212.277 51.2608 213.609 51.441 215.116 51.441C218.496 51.4082 221.111 50.6656 222.968 49.2296C224.819 47.7936 225.747 45.757 225.747 43.1306C225.747 40.8264 224.911 38.9209 223.241 37.4138C221.57 35.9014 219.113 35.1479 215.875 35.1479C213.898 35.1479 212.064 35.4919 210.371 36.1744C208.678 36.8569 207.215 37.8015 205.976 39.0082C204.736 40.2149 203.77 41.6345 203.087 43.2726C202.405 44.9106 202.061 46.6961 202.061 48.6399C202.061 50.5837 202.394 52.2709 203.06 53.8216C203.726 55.3668 204.654 56.6827 205.839 57.7584C207.024 58.8395 208.449 59.664 210.103 60.2427C211.758 60.8161 213.576 61.1054 215.553 61.1054C217.709 61.1054 219.544 60.8816 221.056 60.4284C222.422 60.0243 223.519 59.5657 224.354 59.0579C224.518 58.9596 224.606 58.7849 224.606 58.5938V54.3294C224.606 53.909 224.147 53.6414 223.781 53.8598C223.683 53.9199 223.579 53.9799 223.481 54.0345V54.0236ZM211.07 42.2898C212.435 41.1213 214.035 40.5371 215.869 40.5371C216.95 40.5371 217.813 40.7773 218.457 41.2633C219.107 41.7492 219.429 42.4426 219.429 43.3381C219.429 43.9879 219.238 44.5612 218.862 45.0635C218.485 45.5659 217.873 45.9808 217.027 46.303C216.181 46.6251 215.067 46.8599 213.68 47.0019C212.293 47.1438 210.595 47.1821 208.58 47.1111C208.869 45.0635 209.694 43.4528 211.064 42.2843L211.07 42.2898Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M355.655 48.225C354.393 46.9855 352.253 46.0409 349.234 45.3912C348.049 45.14 347.077 44.9161 346.318 44.7141C345.564 44.5175 344.975 44.3101 344.565 44.0917C344.15 43.8732 343.866 43.6494 343.702 43.4146C343.539 43.1798 343.462 42.9013 343.462 42.5792C343.462 41.105 344.975 40.3678 347.994 40.3678C349.359 40.3678 350.719 40.5316 352.067 40.8538C352.974 41.0722 353.858 41.3834 354.721 41.782C355.081 41.9458 355.491 41.6783 355.491 41.2797V36.846C355.491 36.6222 355.36 36.4201 355.158 36.3328C354.202 35.9396 353.165 35.6448 352.04 35.4537C350.779 35.2353 349.43 35.1315 347.994 35.1315C346.378 35.1315 344.909 35.3117 343.599 35.6721C342.283 36.0325 341.153 36.5457 340.197 37.2119C339.242 37.878 338.515 38.6861 338.013 39.6416C337.511 40.5972 337.26 41.6455 337.26 42.7976C337.26 44.8506 337.909 46.4777 339.203 47.679C340.497 48.8857 342.55 49.7757 345.351 50.349C346.575 50.5674 347.574 50.7803 348.344 50.9987C349.119 51.2171 349.731 51.4465 350.178 51.6976C350.626 51.9488 350.932 52.2218 351.096 52.5057C351.259 52.7951 351.336 53.1337 351.336 53.5323C351.336 55.0775 349.698 55.8528 346.427 55.8528C344.811 55.8528 343.178 55.6017 341.546 55.0993C340.465 54.7662 339.433 54.3076 338.455 53.7343C338.089 53.5213 337.636 53.7834 337.636 54.2093V58.6976C337.636 58.905 337.751 59.1016 337.937 59.1944C339.209 59.8333 340.53 60.3028 341.895 60.6031C343.369 60.9253 345.007 61.0891 346.804 61.0891C350.042 61.0891 352.641 60.3957 354.601 59.0142C356.561 57.6274 357.544 55.7327 357.544 53.3193C357.544 51.1625 356.916 49.459 355.655 48.2195V48.225Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M196.158 54.941C195.405 55.2304 194.433 55.3723 193.242 55.3723C192.052 55.3723 190.987 55.0229 190.141 54.3185C189.295 53.6196 188.874 52.402 188.874 50.6766V41.1814H196.961C197.261 41.1814 197.507 40.9357 197.507 40.6354V36.2236C197.507 35.9232 197.261 35.6775 196.961 35.6775H188.874V28.421C188.874 28.0934 188.585 27.8368 188.257 27.875L182.934 28.5466C182.661 28.5793 182.453 28.8141 182.453 29.0871L182.399 51.7522C182.399 54.8809 183.245 57.2179 184.932 58.7685C186.625 60.3138 188.869 61.0891 191.675 61.0891C193.04 61.0891 194.203 60.9635 195.154 60.7124C196.104 60.4612 196.89 60.1554 197.501 59.7951V59.7732V55.1921C197.501 54.7935 197.092 54.5315 196.732 54.6953C196.551 54.7772 196.36 54.8591 196.153 54.941H196.158Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M176.212 54.941C175.459 55.2304 174.487 55.3723 173.297 55.3723C172.106 55.3723 171.041 55.0229 170.195 54.3185C169.349 53.6196 168.928 52.402 168.928 50.6766V41.1814H176.993C177.293 41.1814 177.539 40.9357 177.539 40.6354V36.229C177.539 35.9287 177.293 35.683 176.993 35.683H168.928V28.4264C168.928 28.0988 168.639 27.8422 168.311 27.8804L162.988 28.552C162.715 28.5848 162.507 28.8196 162.507 29.0926L162.453 51.7577C162.453 54.8864 163.299 57.2233 164.986 58.774C166.679 60.3192 168.923 61.0946 171.729 61.0946C173.094 61.0946 174.257 60.969 175.208 60.7178C176.005 60.5103 176.682 60.2592 177.239 59.9752C177.419 59.8824 177.523 59.6913 177.523 59.4893V55.214C177.523 54.8154 177.113 54.5478 176.747 54.7171C176.578 54.7935 176.392 54.87 176.201 54.9464L176.212 54.941Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M155.819 54.0236C155.245 54.3458 154.634 54.6188 153.984 54.8317C153.334 55.0501 152.619 55.2194 151.827 55.345C151.035 55.4706 150.156 55.5361 149.184 55.5361C146.7 55.5361 144.762 54.9682 143.358 53.838C141.955 52.7023 141.147 51.2226 140.929 49.388C141.469 50.0377 142.316 50.5401 143.462 50.9004C144.614 51.2608 145.947 51.441 147.454 51.441C150.833 51.4082 153.449 50.6656 155.305 49.2296C157.156 47.7936 158.085 45.757 158.085 43.1306C158.085 40.8264 157.249 38.9209 155.578 37.4138C153.908 35.9014 151.45 35.1479 148.213 35.1479C146.236 35.1479 144.401 35.4919 142.709 36.1744C141.016 36.8569 139.553 37.8015 138.313 39.0082C137.074 40.2149 136.107 41.6345 135.425 43.2726C134.742 44.9106 134.398 46.6961 134.398 48.6399C134.398 50.5837 134.731 52.2709 135.398 53.8216C136.064 55.3668 136.992 56.6827 138.177 57.7584C139.362 58.8395 140.787 59.664 142.441 60.2427C144.096 60.8161 145.914 61.1054 147.89 61.1054C150.047 61.1054 151.882 60.8816 153.394 60.4284C154.765 60.0189 155.868 59.5602 156.703 59.0524C156.861 58.9541 156.954 58.7794 156.954 58.5883V54.3185C156.954 53.898 156.496 53.6305 156.135 53.8489C156.032 53.9144 155.928 53.9745 155.824 54.0345L155.819 54.0236ZM143.408 42.2898C144.773 41.1213 146.372 40.5371 148.207 40.5371C149.288 40.5371 150.151 40.7773 150.795 41.2633C151.445 41.7492 151.767 42.4426 151.767 43.3381C151.767 43.9879 151.576 44.5612 151.199 45.0635C150.823 45.5659 150.211 45.9808 149.365 46.303C148.518 46.6251 147.404 46.8599 146.018 47.0019C144.631 47.1438 142.933 47.1821 140.918 47.1111C141.207 45.0635 142.032 43.4528 143.402 42.2843L143.408 42.2898Z",fill:"#16342F"})),a=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:104,height:119,fill:"none",...e},(0,r.createElement)("path",{fill:"#E8E8E8",d:"M85.814 5.774 31.448.024C27.9-.35 24.72 2.229 24.346 5.783L14.693 97.45c-.375 3.554 2.198 6.74 5.745 7.116l67.8 7.17c3.546.376 6.725-2.203 7.1-5.757l8.237-78.206-17.76-21.998-.001-.001Z"}),(0,r.createElement)("path",{fill:"#051735",d:"M85.383 23.406c.42.585 4.788 6.998 17.769 8.37l.423-4.004-18.192-4.366Z",opacity:.25,style:{mixBlendMode:"multiply"}}),(0,r.createElement)("path",{fill:"#DDD",d:"M84.4 19.235c-.375 3.555 2.197 6.74 5.745 7.116l13.433 1.42-17.76-21.998-1.417 13.462H84.4Z"}),(0,r.createElement)("path",{fill:"#DDD",d:"M89.332 33.209 71.346 13.203H16.678c-3.567 0-6.745 2.898-7.099 6.472L.466 111.852c-.354 3.575 2.252 6.472 5.819 6.472H74.46c3.567 0 6.746-2.897 7.098-6.472l7.378-74.616.398-4.025v-.003h-.003Z",opacity:.5}),(0,r.createElement)("path",{fill:"#F7F7F7",d:"M61.56 13.203H6.892c-3.567 0-6.458 2.898-6.458 6.472v92.177c0 3.575 2.89 6.472 6.458 6.472h68.176c3.568 0 6.459-2.897 6.459-6.472v-78.64L61.56 13.203Z"}),(0,r.createElement)("path",{fill:"#051735",d:"M62.984 30.781c.48.538 5.495 6.455 18.549 6.455V33.21L62.984 30.78Z",opacity:.25,style:{mixBlendMode:"multiply"}}),(0,r.createElement)("path",{fill:"#E8E8E8",d:"M61.555 26.74c0 3.574 2.891 6.472 6.458 6.472h13.508L61.555 13.203V26.74Z"})),i=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("path",{stroke:"#475467",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 3H3v7h7V3zM21 3h-7v7h7V3zM21 14h-7v7h7v-7zM10 14H3v7h7v-7z"})),s=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("path",{stroke:"#475467",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12h18M3 6h18M3 18h18"})),l=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("g",{clipPath:"url(#clip0_3860_17242)"},(0,r.createElement)("path",{stroke:"#475467",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 1v2m0 18v2M4.22 4.22l1.42 1.42m12.72 12.72l1.42 1.42M1 12h2m18 0h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42M17 12a5 5 0 11-10 0 5 5 0 0110 0z"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_3860_17242"},(0,r.createElement)("path",{fill:"#fff",d:"M0 0H24V24H0z"})))),c=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",...e},(0,r.createElement)("path",{d:"M21.0009 12.79C20.8436 14.4922 20.2047 16.1144 19.1591 17.4668C18.1135 18.8192 16.7044 19.8458 15.0966 20.4265C13.4888 21.0073 11.7489 21.1181 10.0804 20.7461C8.4119 20.3741 6.88387 19.5345 5.6751 18.3258C4.46633 17.117 3.62682 15.589 3.25479 13.9205C2.88275 12.252 2.99359 10.5121 3.57434 8.9043C4.15508 7.29651 5.18171 5.88737 6.53409 4.84175C7.88647 3.79614 9.50867 3.15731 11.2109 3C10.2143 4.34827 9.73473 6.00945 9.85941 7.68141C9.98409 9.35338 10.7047 10.9251 11.8903 12.1106C13.0758 13.2961 14.6475 14.0168 16.3195 14.1415C17.9914 14.2662 19.6526 13.7866 21.0009 12.79Z",stroke:"#FFFFFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),u=e=>(0,r.createElement)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M1.5 3.9987H2.83333M2.83333 3.9987H13.5M2.83333 3.9987V13.332C2.83333 13.6857 2.97381 14.0248 3.22386 14.2748C3.47391 14.5249 3.81304 14.6654 4.16667 14.6654H10.8333C11.187 14.6654 11.5261 14.5249 11.7761 14.2748C12.0262 14.0248 12.1667 13.6857 12.1667 13.332V3.9987H2.83333ZM4.83333 3.9987V2.66536C4.83333 2.31174 4.97381 1.9726 5.22386 1.72256C5.47391 1.47251 5.81304 1.33203 6.16667 1.33203H8.83333C9.18696 1.33203 9.52609 1.47251 9.77614 1.72256C10.0262 1.9726 10.1667 2.31174 10.1667 2.66536V3.9987M6.16667 7.33203V11.332M8.83333 7.33203V11.332",stroke:"#475467",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})),d=e=>(0,r.createElement)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11.5 7.66667V11.6667C11.5 12.0203 11.3595 12.3594 11.1095 12.6095C10.8594 12.8595 10.5203 13 10.1667 13H2.83333C2.47971 13 2.14057 12.8595 1.89052 12.6095C1.64048 12.3594 1.5 12.0203 1.5 11.6667V4.33333C1.5 3.97971 1.64048 3.64057 1.89052 3.39052C2.14057 3.14048 2.47971 3 2.83333 3H6.83333M9.5 1H13.5M13.5 1V5M13.5 1L6.16667 8.33333",stroke:"#475467",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})),p=e=>(0,r.createElement)("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M7.5 12.3322H13.5M10.5 1.33218C10.7652 1.06697 11.1249 0.917969 11.5 0.917969C11.6857 0.917969 11.8696 0.954548 12.0412 1.02562C12.2128 1.09669 12.3687 1.20086 12.5 1.33218C12.6313 1.4635 12.7355 1.61941 12.8066 1.79099C12.8776 1.96257 12.9142 2.14647 12.9142 2.33218C12.9142 2.5179 12.8776 2.7018 12.8066 2.87338C12.7355 3.04496 12.6313 3.20086 12.5 3.33218L4.16667 11.6655L1.5 12.3322L2.16667 9.66552L10.5 1.33218Z",stroke:"#475467",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})),f=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("mask",{id:"mask0_3860_17252",style:{maskType:"alpha"},width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0 0H24V24H0z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17252)"},(0,r.createElement)("path",{fill:"#475467",d:"M9 20c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 017 18c0-.55.196-1.02.588-1.413A1.926 1.926 0 019 16c.55 0 1.02.196 1.412.587.392.392.588.863.588 1.413s-.196 1.02-.588 1.413A1.926 1.926 0 019 20zm6 0c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0113 18c0-.55.196-1.02.588-1.413A1.926 1.926 0 0115 16c.55 0 1.02.196 1.413.587.391.392.587.863.587 1.413s-.196 1.02-.587 1.413A1.926 1.926 0 0115 20zm-6-6c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 017 12c0-.55.196-1.02.588-1.412A1.926 1.926 0 019 10c.55 0 1.02.196 1.412.588.392.391.588.862.588 1.412 0 .55-.196 1.02-.588 1.412A1.926 1.926 0 019 14zm6 0c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 0113 12c0-.55.196-1.02.588-1.412A1.926 1.926 0 0115 10c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412 0 .55-.196 1.02-.587 1.412A1.926 1.926 0 0115 14zM9 8c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 017 6c0-.55.196-1.02.588-1.412A1.926 1.926 0 019 4c.55 0 1.02.196 1.412.588.392.391.588.862.588 1.412 0 .55-.196 1.02-.588 1.412A1.926 1.926 0 019 8zm6 0c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 0113 6c0-.55.196-1.02.588-1.412A1.926 1.926 0 0115 4c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412 0 .55-.196 1.02-.587 1.412A1.926 1.926 0 0115 8z"}))),h=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("path",{stroke:"#4A5568",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M11 19a8 8 0 100-16 8 8 0 000 16zM20.998 21.002l-4.35-4.35"})),m=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25"},(0,r.createElement)("mask",{id:"mask0_3860_17259",style:{maskType:"alpha"},width:"25",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0.031 0.75H24.031V24.75H0.031z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17259)"},(0,r.createElement)("path",{fill:"#475467",d:"M12.023 22.75l-6-6 1.425-1.425 4.575 4.575 4.575-4.575 1.425 1.425-6 6zm-4.55-12.6l-1.45-1.4 6-6 6 6-1.45 1.4-4.55-4.55-4.55 4.55z"}))),g=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25"},(0,r.createElement)("mask",{id:"mask0_3860_17265",style:{maskType:"alpha"},width:"25",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0.688 0.945H24.688V24.945H0.688z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17265)"},(0,r.createElement)("path",{fill:"#475467",d:"M5.695 22.945c-.55 0-1.02-.195-1.412-.587a1.926 1.926 0 01-.588-1.413v-14c0-.55.196-1.02.588-1.412a1.926 1.926 0 011.412-.588h1v-2h2v2h8v-2h2v2h1c.55 0 1.021.196 1.413.588.392.391.587.862.587 1.412v14c0 .55-.195 1.021-.587 1.413a1.926 1.926 0 01-1.413.587h-14zm0-2h14v-10h-14v10zm0-12h14v-2h-14v2zm7 6a.968.968 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.968.968 0 01.712-.288c.284 0 .521.096.713.288.192.191.287.429.287.712 0 .284-.095.521-.287.713a.968.968 0 01-.713.287zm-4 0a.967.967 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.967.967 0 01.712-.288c.284 0 .521.096.713.288.191.191.287.429.287.712 0 .284-.096.521-.287.713a.967.967 0 01-.713.287zm8 0a.968.968 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.968.968 0 01.712-.288c.284 0 .521.096.713.288.191.191.287.429.287.712 0 .284-.096.521-.287.713a.968.968 0 01-.713.287zm-4 4a.968.968 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.968.968 0 01.712-.288c.284 0 .521.096.713.288.192.191.287.429.287.712 0 .284-.095.521-.287.713a.968.968 0 01-.713.287zm-4 0a.967.967 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.967.967 0 01.712-.288c.284 0 .521.096.713.288.191.191.287.429.287.712 0 .284-.096.521-.287.713a.967.967 0 01-.713.287zm8 0a.968.968 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.968.968 0 01.712-.288c.284 0 .521.096.713.288.191.191.287.429.287.712 0 .284-.096.521-.287.713a.968.968 0 01-.713.287z"}))),y=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25"},(0,r.createElement)("mask",{id:"mask0_3860_17268",style:{maskType:"alpha"},width:"25",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0.672 0.766H24.672V24.766H0.672z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17268)"},(0,r.createElement)("path",{fill:"#475467",d:"M6.514 17.866c.85-.65 1.8-1.163 2.85-1.538a9.738 9.738 0 013.3-.562c1.15 0 2.25.187 3.3.562 1.05.375 2 .888 2.85 1.538a7.73 7.73 0 001.363-2.325 7.838 7.838 0 00.487-2.775c0-2.217-.78-4.105-2.337-5.663-1.559-1.558-3.446-2.337-5.663-2.337s-4.104.779-5.662 2.337c-1.559 1.558-2.338 3.446-2.338 5.663 0 .983.163 1.908.488 2.775.325.866.779 1.641 1.362 2.325zm6.15-4.1c-.983 0-1.812-.338-2.487-1.013-.675-.675-1.013-1.504-1.013-2.487 0-.984.338-1.813 1.013-2.488.675-.675 1.504-1.012 2.487-1.012.983 0 1.813.337 2.488 1.012s1.012 1.504 1.012 2.488c0 .983-.337 1.812-1.012 2.487s-1.505 1.013-2.488 1.013zm0 9a9.738 9.738 0 01-3.9-.788 10.099 10.099 0 01-3.175-2.137c-.9-.9-1.612-1.959-2.137-3.175a9.737 9.737 0 01-.788-3.9c0-1.384.263-2.684.788-3.9A10.099 10.099 0 015.589 5.69c.9-.9 1.958-1.613 3.175-2.138a9.738 9.738 0 013.9-.787c1.383 0 2.683.262 3.9.787a10.1 10.1 0 013.175 2.138c.9.9 1.613 1.958 2.138 3.175a9.738 9.738 0 01.787 3.9 9.737 9.737 0 01-.787 3.9 10.098 10.098 0 01-2.138 3.175 10.1 10.1 0 01-3.175 2.137 9.738 9.738 0 01-3.9.788zm0-2a7.93 7.93 0 002.5-.388c.783-.258 1.5-.629 2.15-1.112a7.533 7.533 0 00-2.15-1.113 7.934 7.934 0 00-2.5-.387c-.883 0-1.717.129-2.5.387-.783.259-1.5.63-2.15 1.113.65.483 1.367.854 2.15 1.112a7.93 7.93 0 002.5.388zm0-9c.433 0 .792-.142 1.075-.425.283-.284.425-.642.425-1.075 0-.434-.142-.792-.425-1.075-.283-.284-.642-.425-1.075-.425-.433 0-.792.141-1.075.425-.283.283-.425.641-.425 1.075 0 .433.142.791.425 1.075.283.283.642.425 1.075.425z"}))),v=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25"},(0,r.createElement)("mask",{id:"mask0_3860_17271",style:{maskType:"alpha"},width:"25",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0.305 0.766H24.305V24.766H0.305z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17271)"},(0,r.createElement)("path",{fill:"#475467",d:"M6.813 11.766l5.5-9 5.5 9h-11zm11 11c-1.25 0-2.313-.438-3.188-1.313s-1.313-1.937-1.313-3.187c0-1.25.438-2.313 1.313-3.188s1.938-1.312 3.188-1.312c1.25 0 2.312.437 3.187 1.312s1.313 1.938 1.313 3.188c0 1.25-.438 2.312-1.313 3.187s-1.938 1.313-3.188 1.313zm-14.5-.5v-8h8v8h-8zm14.5-1.5c.7 0 1.291-.242 1.774-.725.484-.484.726-1.075.726-1.775s-.242-1.292-.726-1.775c-.483-.484-1.075-.725-1.774-.725-.7 0-1.292.241-1.775.725-.484.483-.726 1.075-.726 1.775s.242 1.291.726 1.775c.483.483 1.075.725 1.774.725zm-12.5-.5h4v-4h-4v4zm5.05-10.5h3.9l-1.95-3.15-1.95 3.15z"}))),b=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25"},(0,r.createElement)("mask",{id:"mask0_3860_17274",style:{maskType:"alpha"},width:"25",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0.875 0.789H24.875V24.789H0.875z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17274)"},(0,r.createElement)("path",{fill:"#475467",d:"M7.883 17.785h7v-2h-7v2zm0-4h10v-2h-10v2zm0-4h10v-2h-10v2zm-2 12c-.55 0-1.021-.196-1.413-.587a1.926 1.926 0 01-.587-1.413v-14c0-.55.196-1.02.587-1.412a1.926 1.926 0 011.413-.588h14c.55 0 1.02.196 1.412.588.392.391.588.862.588 1.412v14c0 .55-.196 1.021-.588 1.413a1.926 1.926 0 01-1.412.587h-14zm0-2h14v-14h-14v14z"}))),w=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("mask",{id:"mask0_3920_17295",style:{maskType:"alpha"},width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#000",fillRule:"evenodd",d:"M5.47 15.22a.75.75 0 011.06 0L12 20.69l5.47-5.47a.75.75 0 111.06 1.06l-6 6a.75.75 0 01-1.06 0l-6-6a.75.75 0 010-1.06zM5.47 8.78a.75.75 0 001.06 0L12 3.31l5.47 5.47a.75.75 0 101.06-1.06l-6-6a.75.75 0 00-1.06 0l-6 6a.75.75 0 000 1.06zM1.5 12a.75.75 0 01.75-.75h19.5a.75.75 0 010 1.5H2.25A.75.75 0 011.5 12z",clipRule:"evenodd"})),(0,r.createElement)("g",{mask:"url(#mask0_3920_17295)"},(0,r.createElement)("path",{fill:"#475467",d:"M0 0H24V24H0z"}))),E=function(){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fill:"#475467",fillRule:"evenodd",d:"M7 12a2 2 0 10-4 0 2 2 0 004 0zM14 12a2 2 0 10-4 0 2 2 0 004 0zM21 12a2 2 0 10-4 0 2 2 0 004 0z",clipRule:"evenodd"}))},x=function(){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},(0,r.createElement)("path",{fill:"url(#paint0_radial_4425_15936)",d:"M7.999 15.998C4.151 15.998 0 13.494 0 7.999 0 2.504 4.151 0 7.999 0c2.138 0 4.11.73 5.572 2.06C15.157 3.52 15.998 5.58 15.998 8c0 2.418-.841 4.465-2.427 5.924-1.462 1.33-3.448 2.075-5.572 2.075z"}),(0,r.createElement)("path",{fill:"#EB8F00",d:"M14.607 3.246c.735 1.23 1.119 2.696 1.119 4.326 0 2.418-.842 4.464-2.428 5.924-1.461 1.33-3.447 2.075-5.571 2.075-2.491 0-5.109-1.052-6.645-3.283C2.566 14.815 5.356 16 8.002 16c2.124 0 4.11-.744 5.572-2.075 1.586-1.46 2.428-3.506 2.428-5.924 0-1.823-.479-3.443-1.395-4.755z"}),(0,r.createElement)("path",{fill:"url(#paint1_radial_4425_15936)",d:"M2.984 11.782c1.333 0 2.413-1.121 2.413-2.504s-1.08-2.505-2.413-2.505C1.65 6.773.57 7.895.57 9.278c0 1.383 1.08 2.504 2.414 2.504z",opacity:"0.8"}),(0,r.createElement)("path",{fill:"url(#paint2_radial_4425_15936)",d:"M13.12 11.782c1.334 0 2.414-1.121 2.414-2.504s-1.08-2.505-2.414-2.505c-1.332 0-2.413 1.122-2.413 2.505 0 1.383 1.08 2.504 2.413 2.504z",opacity:"0.8"}),(0,r.createElement)("path",{fill:"#422B0D",d:"M5.978 7.139l-.022-.029a12.547 12.547 0 00-.058-.077l-.074-.082c-.03-.034-.065-.07-.1-.107-.038-.036-.077-.073-.117-.103-.038-.033-.081-.057-.116-.077-.035-.023-.069-.029-.09-.036-.01-.004-.02-.004-.028-.006-.004.002-.008-.001-.013 0l-.005.002H5.35c.016 0-.038.001.037-.002l-.076.003c-.02 0-.007.002-.005.002.004 0 .006 0 .01-.002.01-.004 0 0-.004 0a.035.035 0 00-.015.004c-.022.008-.055.013-.09.036-.034.02-.077.045-.115.078a1.94 1.94 0 00-.295.301l-.07.086-.032.039a.57.57 0 01-.775.087.516.516 0 01-.203-.498s.01-.058.037-.16a1.905 1.905 0 01.639-.966 1.552 1.552 0 01.546-.279c.045-.011.081-.024.143-.033l.086-.013.07-.007.076-.006.043-.001h.012l.018.001h.033l.07.005c.047.004.093.013.138.02a1.528 1.528 0 01.68.31c.233.182.371.38.466.55.049.084.085.164.11.234.03.068.05.14.067.192.015.052.015.079.022.103l.005.036a.532.532 0 01-.456.61.565.565 0 01-.545-.215zM11.429 7.139l-.022-.029a10.632 10.632 0 00-.058-.077 11.77 11.77 0 00-.075-.082c-.029-.034-.064-.07-.1-.107a1.306 1.306 0 00-.116-.103c-.039-.033-.082-.057-.116-.077-.036-.023-.069-.029-.09-.036-.01-.004-.02-.004-.029-.006-.004.002-.008-.001-.012 0l-.005.002H10.8l.037-.002-.076.003c-.019 0-.007.002-.005.002.004 0 .007 0 .01-.002.01-.004 0 0-.003 0a.036.036 0 00-.015.004c-.022.008-.056.013-.09.036-.035.02-.077.045-.116.078a1.934 1.934 0 00-.295.301l-.07.086-.032.039a.57.57 0 01-.775.087.516.516 0 01-.203-.498s.01-.058.037-.16a1.905 1.905 0 01.639-.966 1.552 1.552 0 01.546-.279c.046-.011.081-.024.143-.033l.086-.013.07-.007.076-.006.043-.001h.012l.018.001h.033l.07.005c.048.004.093.013.139.02a1.528 1.528 0 01.68.31c.232.182.37.38.466.55.048.084.084.164.11.234.029.068.05.14.066.192.015.052.015.079.022.103a.532.532 0 01-.451.645.562.562 0 01-.543-.214zM8.058 12.446c-1.734 0-3.105-.851-3.86-1.762a.305.305 0 01-.046-.322.295.295 0 01.266-.182c.051 0 .103.014.149.041.78.467 2.088 1.043 3.486 1.043h.022c1.4 0 2.708-.578 3.487-1.043a.283.283 0 01.149-.041c.113 0 .218.071.266.181a.308.308 0 01-.046.322c-.755.91-2.127 1.763-3.86 1.763"}),(0,r.createElement)("defs",null,(0,r.createElement)("radialGradient",{id:"paint0_radial_4425_15936",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(7.85555 0 0 8.15064 7.999 7.999)",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{offset:"0.5",stopColor:"#FDE030"}),(0,r.createElement)("stop",{offset:"0.919",stopColor:"#F7C02B"}),(0,r.createElement)("stop",{offset:"1",stopColor:"#F4A223"})),(0,r.createElement)("radialGradient",{id:"paint1_radial_4425_15936",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(2.62561 0 0 2.5879 2.984 9.277)",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{stopColor:"#ED7770"}),(0,r.createElement)("stop",{offset:"0.9",stopColor:"#ED7770",stopOpacity:"0"})),(0,r.createElement)("radialGradient",{id:"paint2_radial_4425_15936",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(2.62561 0 0 2.5879 13.12 9.277)",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{stopColor:"#ED7770"}),(0,r.createElement)("stop",{offset:"0.9",stopColor:"#ED7770",stopOpacity:"0"}))))},C=function(){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},(0,r.createElement)("path",{fill:"url(#paint0_radial_4420_18224)",d:"M8 16c-3.848 0-8-2.505-8-8 0-5.496 4.152-8 8-8 2.137 0 4.11.73 5.572 2.06 1.586 1.46 2.427 3.521 2.427 5.94 0 2.419-.841 4.465-2.427 5.925C12.11 15.255 10.124 16 8 16z"}),(0,r.createElement)("path",{fill:"#EB8F00",d:"M14.608 3.246c.736 1.23 1.119 2.696 1.119 4.326 0 2.419-.841 4.465-2.428 5.925-1.461 1.331-3.448 2.075-5.572 2.075-2.49 0-5.103-1.051-6.645-3.283 1.484 2.528 4.276 3.713 6.921 3.713 2.124 0 4.11-.744 5.572-2.075 1.587-1.46 2.428-3.507 2.428-5.925 0-1.824-.479-3.444-1.395-4.756z"}),(0,r.createElement)("path",{fill:"#422B0D",d:"M11.503 11.594H4.606a.562.562 0 01-.551-.572c0-.317.247-.573.551-.573h6.897c.304 0 .551.256.551.573a.562.562 0 01-.551.572zM5.389 5.574c-.578 0-1.104.507-1.104 1.348 0 .842.526 1.347 1.104 1.347.577 0 1.103-.507 1.103-1.347s-.526-1.348-1.103-1.348z"}),(0,r.createElement)("path",{fill:"#896024",d:"M5.335 6.138a.39.39 0 00-.527.192.422.422 0 00.083.472.39.39 0 00.527-.192.422.422 0 00-.083-.472z"}),(0,r.createElement)("path",{fill:"#422B0D",d:"M10.678 5.574c-.578 0-1.104.507-1.104 1.348 0 .842.526 1.347 1.104 1.347.577 0 1.103-.507 1.103-1.347s-.523-1.348-1.103-1.348z"}),(0,r.createElement)("path",{fill:"#896024",d:"M10.624 6.138a.39.39 0 00-.527.192.422.422 0 00.083.472.39.39 0 00.527-.192.422.422 0 00-.083-.472z"}),(0,r.createElement)("defs",null,(0,r.createElement)("radialGradient",{id:"paint0_radial_4420_18224",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(7.8562 0 0 8.15162 8 8)",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{offset:"0.5",stopColor:"#FDE030"}),(0,r.createElement)("stop",{offset:"0.92",stopColor:"#F7C02B"}),(0,r.createElement)("stop",{offset:"1",stopColor:"#F4A223"}))))},_=function(){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},(0,r.createElement)("path",{fill:"url(#paint0_radial_4420_18232)",d:"M8 16c-3.848 0-8-2.505-8-8 0-5.496 4.152-8 8-8 2.137 0 4.11.73 5.572 2.06 1.586 1.46 2.427 3.521 2.427 5.94 0 2.419-.841 4.465-2.427 5.925C12.11 15.255 10.124 16 8 16z"}),(0,r.createElement)("path",{fill:"#EB8F00",d:"M14.604 3.246c.736 1.23 1.12 2.696 1.12 4.326 0 2.419-.842 4.465-2.428 5.925-1.462 1.331-3.449 2.075-5.573 2.075-2.49 0-5.103-1.051-6.645-3.283C2.562 14.817 5.354 16.002 8 16.002c2.124 0 4.11-.744 5.572-2.075C15.158 12.467 16 10.42 16 8.002c0-1.824-.479-3.444-1.395-4.756z"}),(0,r.createElement)("path",{fill:"#422B0D",d:"M8.057 11.477c1.49 0 2.455 1.13 2.717 1.66.097.2.097.372.014.443a.265.265 0 01-.29 0 .602.602 0 01-.124-.071 3.943 3.943 0 00-2.317-.787 4.046 4.046 0 00-2.317.772.597.597 0 01-.124.072.266.266 0 01-.29 0c-.083-.086-.083-.243.014-.444.262-.515 1.227-1.645 2.717-1.645zM9.492 8.685a.49.49 0 00.069.759c.403.31.855.543 1.338.686.487.126.99.165 1.49.115a.481.481 0 00.44-.615.553.553 0 00-.565-.387c-.37.037-.742.015-1.103-.071a3.31 3.31 0 01-.993-.516.525.525 0 00-.676.03zM6.622 8.685a.49.49 0 01-.069.759c-.403.31-.855.543-1.338.686a4.25 4.25 0 01-1.49.115.466.466 0 01-.448-.482.535.535 0 01.021-.133.553.553 0 01.566-.387c.37.037.742.015 1.103-.071.356-.113.692-.288.993-.516a.506.506 0 01.662.03z"}),(0,r.createElement)("defs",null,(0,r.createElement)("radialGradient",{id:"paint0_radial_4420_18232",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(7.85619 0 0 8.15162 8 8)",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{offset:"0.5",stopColor:"#FDE030"}),(0,r.createElement)("stop",{offset:"0.92",stopColor:"#F7C02B"}),(0,r.createElement)("stop",{offset:"1",stopColor:"#F4A223"}))))},S=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e},(0,r.createElement)("mask",{id:"a",width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0 0h16v16H0z"})),(0,r.createElement)("g",{mask:"url(#a)"},(0,r.createElement)("path",{fill:"#475467",d:"M3.401 10.701a5.5 5.5 0 0 1-.55-1.3 5.13 5.13 0 0 1-.183-1.366c0-1.49.517-2.756 1.55-3.8C5.251 3.19 6.512 2.668 8.001 2.668h.117L7.051 1.601l.934-.933 2.666 2.667L7.985 6l-.934-.933 1.067-1.067h-.117c-1.11 0-2.055.392-2.833 1.175-.778.784-1.167 1.736-1.167 2.859 0 .289.034.572.1.85.067.277.167.55.3.816l-1 1Zm4.617 4.634-2.667-2.667 2.667-2.667.933.934L7.885 12H8c1.111 0 2.056-.391 2.834-1.175C11.612 10.043 12 9.09 12 7.968c0-.289-.033-.572-.1-.85a3.815 3.815 0 0 0-.3-.817l1-1c.245.423.428.856.55 1.3.123.445.184.9.184 1.367 0 1.489-.517 2.755-1.55 3.8C10.75 12.812 9.49 13.335 8 13.335h-.116L8.95 14.4l-.933.934Z"}))),O=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},(0,r.createElement)("path",{fill:"#fff",d:"M9.168 9.168v-5h1.667v5h5v1.667h-5v5H9.168v-5h-5V9.168h5Z"})),k=function(){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("mask",{id:"mask0_4912_21972",style:{maskType:"alpha"},width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0 0H24V24H0z"})),(0,r.createElement)("g",{mask:"url(#mask0_4912_21972)"},(0,r.createElement)("path",{fill:"#475467",d:"M6.4 19L5 17.6l5.6-5.6L5 6.4 6.4 5l5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19z"})))},N=()=>(0,r.createElement)("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M7.5013 12.9128L1.66797 7.07943L7.5013 1.24609",stroke:"#00B884",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),M=()=>(0,r.createElement)("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M1.4987 12.9128L7.33203 7.07943L1.4987 1.24609",stroke:"#00B884",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),A=()=>(0,r.createElement)("svg",{width:"300",height:"300",viewBox:"0 0 300 300",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("mask",{id:"mask0_6843_25662",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"300",height:"300"},(0,r.createElement)("path",{d:"M300 0H0V300H300V0Z",fill:"white"})),(0,r.createElement)("g",{mask:"url(#mask0_6843_25662)"},(0,r.createElement)("path",{d:"M150 269C216.274 269 270 215.274 270 149C270 82.726 216.274 29 150 29C83.726 29 30 82.726 30 149C30 215.274 83.726 269 150 269Z",fill:"#F2F4F7"}),(0,r.createElement)("path",{d:"M105 63.5547H197.537C206.374 63.5547 213.537 70.7177 213.537 79.5547V202.584C213.537 211.421 206.374 218.584 197.537 218.584H105C96.163 218.584 89 211.421 89 202.584V79.5547C89 70.7177 96.163 63.5547 105 63.5547Z",fill:"url(#paint0_linear_6843_25662)"}),(0,r.createElement)("path",{d:"M104.9 83.5547H145.1C147.806 83.5547 150 85.7487 150 88.4547C150 91.1607 147.806 93.3547 145.1 93.3547H104.9C102.194 93.3547 100 91.1607 100 88.4547C100 85.7487 102.194 83.5547 104.9 83.5547Z",fill:"#344054"}),(0,r.createElement)("path",{d:"M104.9 111.355H195.1C197.806 111.355 200 113.549 200 116.255C200 118.961 197.806 121.155 195.1 121.155H104.9C102.194 121.155 100 118.961 100 116.255C100 113.549 102.194 111.355 104.9 111.355Z",fill:"#DCEAE9"}),(0,r.createElement)("path",{d:"M104.9 139.156H195.1C197.806 139.156 200 141.35 200 144.056C200 146.762 197.806 148.956 195.1 148.956H104.9C102.194 148.956 100 146.762 100 144.056C100 141.35 102.194 139.156 104.9 139.156Z",fill:"#DCEAE9"}),(0,r.createElement)("path",{d:"M104.9 166.957H195.1C197.806 166.957 200 169.151 200 171.857C200 174.563 197.806 176.757 195.1 176.757H104.9C102.194 176.757 100 174.563 100 171.857C100 169.151 102.194 166.957 104.9 166.957Z",fill:"#DCEAE9"}),(0,r.createElement)("path",{d:"M104.9 194.758H195.1C197.806 194.758 200 196.952 200 199.658C200 202.364 197.806 204.558 195.1 204.558H104.9C102.194 204.558 100 202.364 100 199.658C100 196.952 102.194 194.758 104.9 194.758Z",fill:"#DCEAE9"}),(0,r.createElement)("path",{d:"M288.15 46.4258H228.069C225.27 46.4258 223 48.8138 223 51.7608V81.4798C223 84.4258 225.27 86.8148 228.069 86.8148H288.15C290.95 86.8148 293.219 84.4258 293.219 81.4798V51.7608C293.219 48.8138 290.95 46.4258 288.15 46.4258Z",fill:"white"}),(0,r.createElement)("path",{d:"M238 73C241.314 73 244 70.314 244 67C244 63.686 241.314 61 238 61C234.686 61 232 63.686 232 67C232 70.314 234.686 73 238 73Z",fill:"#C5D8D3"}),(0,r.createElement)("path",{d:"M258 61H278C281.314 61 284 63.686 284 67C284 70.314 281.314 73 278 73H258C254.686 73 252 70.314 252 67C252 63.686 254.686 61 258 61Z",fill:"#DCEAE9"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M185.109 225.562C197.988 225.562 209.958 221.667 219.904 214.989L260.603 253.84L275.364 236.715L236.091 199.226C243.344 189.018 247.609 176.538 247.609 163.062C247.609 128.546 219.626 100.562 185.109 100.562C150.591 100.562 122.609 128.546 122.609 163.062C122.609 197.581 150.591 225.562 185.109 225.562ZM238.418 163.062C238.418 192.286 214.727 215.976 185.504 215.976C156.281 215.976 132.591 192.286 132.591 163.062C132.591 133.84 156.281 110.149 185.504 110.149C214.727 110.149 238.418 133.84 238.418 163.062Z",fill:"#90B8B1"}),(0,r.createElement)("path",{d:"M185.5 217C215.6 217 240 192.823 240 163C240 133.177 215.6 109 185.5 109C155.4 109 131 133.177 131 163C131 192.823 155.4 217 185.5 217Z",fill:"white",fillOpacity:"0.3"}),(0,r.createElement)("path",{d:"M194.923 163L208.112 149.862C209.348 148.562 210.025 146.835 209.999 145.047C209.974 143.259 209.248 141.552 207.976 140.287C206.704 139.023 204.986 138.301 203.187 138.276C201.388 138.251 199.65 138.923 198.342 140.151L185.124 153.289L171.935 140.151C171.3 139.484 170.537 138.95 169.691 138.58C168.845 138.211 167.933 138.014 167.009 138.001C166.085 137.988 165.168 138.159 164.312 138.504C163.456 138.85 162.678 139.362 162.024 140.012C161.371 140.661 160.855 141.434 160.508 142.285C160.16 143.136 159.988 144.048 160.001 144.967C160.014 145.885 160.212 146.791 160.584 147.632C160.955 148.473 161.493 149.231 162.165 149.862L175.376 163L162.165 176.138C161.493 176.769 160.955 177.527 160.584 178.368C160.212 179.209 160.014 180.115 160.001 181.033C159.988 181.952 160.16 182.864 160.508 183.715C160.855 184.566 161.371 185.339 162.024 185.988C162.678 186.638 163.456 187.15 164.312 187.496C165.168 187.841 166.085 188.012 167.009 187.999C167.933 187.986 168.845 187.789 169.691 187.42C170.537 187.05 171.3 186.516 171.935 185.849L185.124 172.711L198.342 185.849C199.65 187.077 201.388 187.749 203.187 187.724C204.986 187.699 206.704 186.977 207.976 185.713C209.248 184.448 209.974 182.741 209.999 180.953C210.025 179.165 209.348 177.438 208.112 176.138L194.923 163Z",fill:"#90B8B1"})),(0,r.createElement)("defs",null,(0,r.createElement)("linearGradient",{id:"paint0_linear_6843_25662",x1:"89",y1:"63.5547",x2:"214.988",y2:"218.584",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{stopColor:"white"}),(0,r.createElement)("stop",{offset:"1",stopColor:"#F2F4F7"}))))},337:(e,t,n)=>{"use strict";var r=n(3583),o=n(7987),a=n(4151),i=n(8960);e.exports=i||r.call(a,o)},7987:e=>{"use strict";e.exports=Function.prototype.apply},4151:e=>{"use strict";e.exports=Function.prototype.call},8467:(e,t,n)=>{"use strict";var r=n(3583),o=n(7379),a=n(4151),i=n(337);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return i(r,a,e)}},8960:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},9459:(e,t,n)=>{"use strict";var r=n(211),o=n(8467),a=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o([n]):n}},6265:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8835:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},3042:(e,t,n)=>{"use strict";var r=n(5664),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),i()}return u}},8994:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},2095:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(8994),i=n(2399);o(n(2399),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new i.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},2399:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var i=n(8994),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),x(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=i.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=o,a}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,i.isTag)(e)}function y(e){return e.type===i.ElementType.CDATA}function v(e){return e.type===i.ElementType.Text}function b(e){return e.type===i.ElementType.Comment}function w(e){return e.type===i.ElementType.Directive}function E(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?C(e.children):[],o=new m(e.name,a({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=o}else if(y(e)){r=t?C(e.children):[];var i=new f(r);r.forEach((function(e){return e.parent=i})),n=i}else if(E(e)){r=t?C(e.children):[];var s=new h(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function C(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=y,t.isText=v,t.isComment=b,t.isDirective=w,t.isDocument=E,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=x},154:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(9185),i=n(1559),s=n(3219),l=n(7479),c=n(6651),u=n(2643),d=n(298),p=n(811),f=n(3112),h=n(4446),m=p("draft_tree_data_support"),g=m?l:s,y=f.List,v=f.Repeat,b={insertAtomicBlock:function(e,t,n){var o=e.getCurrentContent(),s=e.getSelection(),l=c.removeRange(o,s,"backward"),p=l.getSelectionAfter(),f=c.splitBlock(l,p),h=f.getSelectionAfter(),b=c.setBlockType(f,h,"atomic"),w=i.create({entity:t}),E={key:d(),type:"atomic",text:n,characterList:y(v(w,n.length))},x={key:d(),type:"unstyled"};m&&(E=r({},E,{nextSibling:x.key}),x=r({},x,{prevSibling:E.key}));var C=[new g(E),new g(x)],_=a.createFromArray(C),S=c.replaceWithFragment(b,h,_),O=S.merge({selectionBefore:s,selectionAfter:S.getSelectionAfter().set("hasFocus",!0)});return u.push(e,O,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,a=e.getCurrentContent(),i=e.getSelection();if("before"===r||"after"===r){var s=a.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=h(a,t,s,r)}else{var l=c.removeRange(a,n,"backward"),d=l.getSelectionAfter(),p=l.getBlockForKey(d.getFocusKey());if(0===d.getStartOffset())o=h(l,t,p,"before");else if(d.getEndOffset()===p.getLength())o=h(l,t,p,"after");else{var f=c.splitBlock(l,d),m=f.getSelectionAfter(),g=f.getBlockForKey(m.getFocusKey());o=h(f,t,g,"before")}}var y=o.merge({selectionBefore:i,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return u.push(e,y,"move-block")}};e.exports=b},9185:(e,t,n)=>{"use strict";var r=n(3112).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},4920:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(4814),a=n(6784),i=n(3112),s=i.List,l=i.Repeat,c=i.Record,u=function(){return!0},d=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),f={generate:function(e,t,n){var r=t.getLength();if(!r)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new d({start:0,end:0}))}));var a=[],i=n?n.getDecorations(t,e):s(l(null,r)),c=t.getCharacterList();return o(i,h,u,(function(e,t){var n,r,l,f;a.push(new p({start:e,end:t,decoratorKey:i.get(e),leaves:(n=c.slice(e,t).toList(),r=e,l=[],f=n.map((function(e){return e.getStyle()})).toList(),o(f,h,u,(function(e,t){l.push(new d({start:e+r,end:t+r}))})),s(l))}))})),s(a)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new p(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n,{leaves:null!=t?s(Array.isArray(t)?t:a(t)).map((function(e){return d(e)})):null}))}};function h(e,t){return e===t}e.exports=f},1559:(e,t,n)=>{"use strict";var r=n(3112),o=r.Map,a=r.OrderedSet,i=r.Record,s=a(),l={style:s,entity:null},c=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getStyle=function(){return this.get("style")},i.getEntity=function(){return this.get("entity")},i.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return u;var t=o({style:s,entity:null}).merge(e),n=d.get(t);if(n)return n;var a=new r(t);return d=d.set(t,a),a},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?a(t):t,entity:Array.isArray(n)?a(n):n})},r}(i(l)),u=new c,d=o([[o(l),u]]);c.EMPTY=u,e.exports=c},2014:(e,t,n)=>{"use strict";var r=n(3112).List,o=function(){function e(e){var t,n;n=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var a=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+a),a++)}),t)})),r(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},3219:(e,t,n)=>{"use strict";var r=n(1559),o=n(4814),a=n(3112),i=a.List,s=a.Map,l=a.OrderedSet,c=a.Record,u=a.Repeat,d=l(),p=function(e){var t,n;function a(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=i(u(r.EMPTY,n.length))),e}(t))||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,t){o(this.getCharacterList(),f,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},a}(c({key:"",type:"unstyled",text:"",characterList:i(),depth:0,data:s()}));function f(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=p},7479:(e,t,n)=>{"use strict";var r=n(1559),o=n(4814),a=n(3112),i=a.List,s=a.Map,l=a.OrderedSet,c=a.Record,u=a.Repeat,d=l(),p={parent:null,characterList:i(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:i(),prevSibling:null,nextSibling:null},f=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},m=function(e){var t,n;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=i(u(r.EMPTY,n.length))),e}(t))||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){o(this.getCharacterList(),f,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},a}(c(p));e.exports=m},6515:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(9185),i=n(1559),s=n(3219),l=n(7479),c=n(7785),u=n(7746),d=n(298),p=n(6784),f=n(811),h=n(3112),m=n(1088),g=h.List,y=h.Record,v=h.Repeat,b=h.Map,w=h.OrderedMap,E=y({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),x=f("draft_tree_data_support")?l:s,C=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.getEntityMap=function(){return c},s.getBlockMap=function(){return this.get("blockMap")},s.getSelectionBefore=function(){return this.get("selectionBefore")},s.getSelectionAfter=function(){return this.get("selectionAfter")},s.getBlockForKey=function(e){return this.getBlockMap().get(e)},s.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},s.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},s.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},s.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},s.getBlocksAsArray=function(){return this.getBlockMap().toArray()},s.getFirstBlock=function(){return this.getBlockMap().first()},s.getLastBlock=function(){return this.getBlockMap().last()},s.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},s.getLastCreatedEntityKey=function(){return c.__getLastCreatedEntityKey()},s.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,n){return c.__create(e,t,n),this},s.mergeEntityData=function(e,t){return c.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return c.__replaceData(e,t),this},s.addEntity=function(e){return c.__add(e),this},s.getEntity=function(e){return c.__get(e)},s.getAllEntities=function(){return c.__getAll()},s.loadWithEntities=function(e){return c.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=a.createFromArray(n),i=r.isEmpty()?new u:u.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:t||c,selectionBefore:i,selectionAfter:i})},o.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=m(e),new x({key:d(),text:e,type:"unstyled",characterList:g(v(i.EMPTY,e.length))})}));return o.createFromBlockArray(n)},o.fromJS=function(e){return new o(r({},e,{blockMap:w(e.blockMap).map(o.createContentBlockFromJS),selectionBefore:new u(e.selectionBefore),selectionAfter:new u(e.selectionAfter)}))},o.createContentBlockFromJS=function(e){var t=e.characterList;return new x(r({},e,{data:b(e.data),characterList:null!=t?g((Array.isArray(t)?t:p(t)).map((function(e){return i.fromJS(e)}))):void 0}))},o}(E);e.exports=C},7389:(e,t,n)=>{"use strict";var r=n(1559),o=n(3112).Map,a={add:function(e,t,n){return i(e,t,n,!0)},remove:function(e,t,n){return i(e,t,n,!1)}};function i(e,t,n,a){var i=e.getBlockMap(),s=t.getStartKey(),l=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),d=i.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===c})).concat(o([[c,i.get(c)]])).map((function(e,t){var o,i;s===c?(o=l,i=u):(o=t===s?l:0,i=t===c?u:e.getLength());for(var d,p=e.getCharacterList();o<i;)d=p.get(o),p=p.set(o,a?r.applyStyle(d,n):r.removeStyle(d,n)),o++;return e.set("characterList",p)}));return e.merge({blockMap:i.merge(d),selectionBefore:t,selectionAfter:t})}e.exports=a},5879:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(2211),a=n(8101),i=n(5162),s=n(3112),l=n(6835),c=n(1799),u=s.Map,d={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),f=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=u();var n=i(e);n.MutationObserver&&!p?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||l(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,d):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=u(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=c(a(e.target));this.mutations=this.mutations.set(n,t)}},e}();e.exports=f},1472:(e,t,n)=>{"use strict";var r=n(1609),o=n(2668),a=(0,n(3112).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},9095:e=>{"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},1330:(e,t,n)=>{"use strict";var r=n(154),o=n(9185),a=n(1559),i=n(2014),s=n(3219),l=n(6515),c=n(1472),u=n(9095),d=n(9642),p=n(511),f=n(7785),h=n(6651),m=n(1010),g=n(2643),y=n(9861),v=n(6670),b=n(353),w=n(7746),E=n(9101),x=n(2999),C=n(298),_=n(5532),S=n(1539),O={Editor:d,EditorBlock:p,EditorState:g,CompositeDecorator:i,Entity:f,EntityInstance:m,BlockMapBuilder:o,CharacterMetadata:a,ContentBlock:s,ContentState:l,RawDraftContentState:v,SelectionState:w,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:u,convertFromHTML:n(835),convertFromRaw:x,convertToRaw:E,genKey:C,getDefaultKeyBinding:_,getVisibleSelectionRect:S};e.exports=O},9642:(e,t,n)=>{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var c=n(1472),u=n(9095),d=n(1649),p=n(7364),f=n(5825),h=n(7339),m=n(4183),g=n(7651),y=n(4978),v=n(2643),b=n(1609),w=n(4654),E=n(2394),x=n(2211),C=n(2668),_=n(298),S=n(5532),O=n(1489),k=n(811),N=n(6835),M=n(1214),A=n(1799),D=x.isBrowser("IE"),I=!D,j={edit:h,composite:d,drag:f,cut:null,render:null},T=!1,L=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(b.Component),P=function(e){function t(t){var n;return s(i(n=e.call(this,t)||this),"_blockSelectEvents",void 0),s(i(n),"_clipboard",void 0),s(i(n),"_handler",void 0),s(i(n),"_dragCount",void 0),s(i(n),"_internalDrag",void 0),s(i(n),"_editorKey",void 0),s(i(n),"_placeholderAccessibilityID",void 0),s(i(n),"_latestEditorState",void 0),s(i(n),"_latestCommittedEditorState",void 0),s(i(n),"_pendingStateFromBeforeInput",void 0),s(i(n),"_onBeforeInput",void 0),s(i(n),"_onBlur",void 0),s(i(n),"_onCharacterData",void 0),s(i(n),"_onCompositionEnd",void 0),s(i(n),"_onCompositionStart",void 0),s(i(n),"_onCopy",void 0),s(i(n),"_onCut",void 0),s(i(n),"_onDragEnd",void 0),s(i(n),"_onDragOver",void 0),s(i(n),"_onDragStart",void 0),s(i(n),"_onDrop",void 0),s(i(n),"_onInput",void 0),s(i(n),"_onFocus",void 0),s(i(n),"_onKeyDown",void 0),s(i(n),"_onKeyPress",void 0),s(i(n),"_onKeyUp",void 0),s(i(n),"_onMouseDown",void 0),s(i(n),"_onMouseUp",void 0),s(i(n),"_onPaste",void 0),s(i(n),"_onSelect",void 0),s(i(n),"editor",void 0),s(i(n),"editorContainer",void 0),s(i(n),"focus",void 0),s(i(n),"blur",void 0),s(i(n),"setMode",void 0),s(i(n),"exitCurrentMode",void 0),s(i(n),"restoreEditorDOM",void 0),s(i(n),"setClipboard",void 0),s(i(n),"getClipboard",void 0),s(i(n),"getEditorKey",void 0),s(i(n),"update",void 0),s(i(n),"onDragEnter",void 0),s(i(n),"onDragLeave",void 0),s(i(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),s(i(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var a=E.getScrollParent(o),i=e||O(a),s=i.x,l=i.y;M(o)||N(!1),o.focus(),a===window?window.scrollTo(s,l):w.setTop(a,l),r||n.update(v.forceSelection(t,t.getSelection()))}})),s(i(n),"blur",(function(){var e=n.editor;e&&(M(e)||N(!1),e.blur())})),s(i(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,s=a({},j.edit);r&&(s.onPaste=r),o&&(s.onCut=o),i&&(s.onCopy=i);var l=a({},j,{edit:s});n._handler=l[e]})),s(i(n),"exitCurrentMode",(function(){n.setMode("edit")})),s(i(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),s(i(n),"setClipboard",(function(e){n._clipboard=e})),s(i(n),"getClipboard",(function(){return n._clipboard})),s(i(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),s(i(n),"onDragEnter",(function(){n._dragCount++})),s(i(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||_(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}l(t,e);var r=t.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(m?m((function(){return r(t,n)})):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:A(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(g,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,i=e.customStyleFn,s=e.customStyleMap,l=e.editorState,c=e.preventScroll,d=e.readOnly,f=e.textAlignment,h=e.textDirectionality,m=C({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===f,"DraftEditor/alignRight":"right"===f,"DraftEditor/alignCenter":"center"===f}),g=this.props.role||"textbox",y="combobox"===g?!!this.props.ariaExpanded:null,v={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:a({},u,s),customStyleFn:i,editorKey:this._editorKey,editorState:l,preventScroll:c,textDirectionality:h};return b.createElement("div",{className:m},this._renderPlaceholder(),b.createElement("div",{className:C("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":d?null:this.props.ariaActiveDescendantID,"aria-autocomplete":d?null:this.props.ariaAutoComplete,"aria-controls":d?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":d?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":d?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:C({notranslate:!d,"public/DraftEditor/content":!0}),contentEditable:!d,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:d?null:g,spellCheck:I&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(L,{editor:this,editorState:l}),b.createElement(p,o({},v,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!T&&k("draft_ods_enabled")&&(T=!0,y.initODS()),this.setMode("edit"),D&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):n.g.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(b.Component);s(P,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:c,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:S,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=P},511:(e,t,n)=>{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var a=n(3546),i=n(1446),s=n(1609),l=n(4654),c=n(2394),u=n(8106),d=n(7329),p=n(2668),f=n(5384),h=n(1489),m=n(2400),g=n(6835),y=n(1214),v=n(1799),b=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},w=function(e){var t,n;function r(){for(var t,n,r,o,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return o=void 0,(r="_node")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(i))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var w=r.prototype;return w.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection},w.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=c.getScrollParent(n),a=h(o);if(o===window){var i=f(n);(r=i.y+i.height-m().height)>0&&window.scrollTo(a.x,a.y+r+10)}else y(n)||g(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+a.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}}},w._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),l=this.props.tree.size-1,c=b(this.props.selection,n);return this.props.tree.map((function(p,f){var h=p.get("leaves");if(0===h.size)return null;var m=h.size-1,g=h.map((function(o,u){var d=i.encode(n,f,u),p=o.get("start"),h=o.get("end");return s.createElement(a,{key:d,offsetKey:d,block:t,start:p,selection:c?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(p,h),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===l&&u===m})})).toArray(),y=p.get("decoratorKey");if(null==y)return g;if(!e.props.decorator)return g;var b=v(e.props.decorator),w=b.getComponentForKey(y);if(!w)return g;var E=b.getPropsForKey(y),x=i.encode(n,f,0),C=h.first().get("start"),_=h.last().get("end"),S=r.slice(C,_),O=t.getEntityAt(p.get("start")),k=d.getHTMLDirIfDifferent(u.getDirection(S),e.props.direction),N={contentState:e.props.contentState,decoratedText:S,dir:k,start:C,end:_,blockKey:n,entityKey:O,offsetKey:x};return s.createElement(w,o({},E,N,{key:x}),g)})).toArray()},w.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return s.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(s.Component);e.exports=w},7815:(e,t,n)=>{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(8438),l=n(1446),c=n(1609),u=n(4654),d=n(2394),p=n(5384),f=n(1489),h=n(2400),m=n(3112),g=n(6835),y=n(1214),v=(m.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),b=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},w=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},E=function(e,t,n,r,o,i){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:i},l=r(e);return l&&(s.className=l),void 0!==o.customEditable&&(s=a({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},x=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return i(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",c.createRef()),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var m=r.prototype;return m.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,a=!n.getChildKeys().isEmpty(),i=n!==e.block||o!==e.tree||r!==e.direction||v(e.selection,e.block.getKey())&&e.forceSelection;return a||i},m.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=d.getScrollParent(n),a=f(o);if(o===window){var i=p(n);(r=i.y+i.height-h().height)>0&&window.scrollTo(a.x,a.y+r+10)}else{y(n)||g(!1);var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+a.y))>0&&u.setTop(o,u.getTop(o)+r+10)}}}},m.render=function(){var e=this,t=this.props,n=t.block,i=t.blockRenderMap,u=t.blockRendererFn,d=t.blockStyleFn,p=t.contentState,f=t.decorator,h=t.editorKey,m=t.editorState,g=t.customStyleFn,y=t.customStyleMap,x=t.direction,C=t.forceSelection,_=t.selection,S=t.tree,O=null;n.children.size&&(O=n.children.reduce((function(t,n){var o=l.encode(n,0,0),s=p.getBlockForKey(n),f=w(s,u),g=f.CustomComponent||r,y=b(s,i),v=y.Element,x=y.wrapperTemplate,C=E(s,h,o,d,f,null),_=a({},e.props,{tree:m.getBlockTree(n),blockProps:f.customProps,offsetKey:o,block:s});return t.push(c.createElement(v,C,c.createElement(g,_))),!x||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(s,p)||function(e,t,n){var r=[],o=!0,a=!1,i=void 0;try{for(var s,u=n.reverse()[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var d=s.value;if(d.type!==t)break;r.push(d)}}catch(e){a=!0,i=e}finally{try{o||null==u.return||u.return()}finally{if(a)throw i}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),f=p[0].key;n.push(c.cloneElement(e,{key:"".concat(f,"-wrap"),"data-offset-key":l.encode(f,0,0)},p))}(x,v,t),t}),[]));var k=n.getKey(),N=l.encode(k,0,0),M=w(n,u),A=M.CustomComponent,D=null!=A?c.createElement(A,o({},this.props,{tree:m.getBlockTree(k),blockProps:M.customProps,offsetKey:N,block:n})):c.createElement(s,{block:n,children:O,contentState:p,customStyleFn:g,customStyleMap:y,decorator:f,direction:x,forceSelection:C,hasSelection:v(_,k),selection:_,tree:S});if(n.getParentKey())return D;var I=b(n,i).Element,j=E(n,h,N,d,M,this.wrapperRef);return c.createElement(I,j,D)},r}(c.Component);e.exports=x},1649:(e,t,n)=>{"use strict";var r=n(5879),o=n(6651),a=n(1446),i=n(2643),s=n(559),l=n(2211),c=n(7684),u=n(6389),d=n(8265),p=n(5396),f=n(1799),h=l.isBrowser("IE"),m=!1,g=!1,y=null,v={onCompositionStart:function(e){g=!0,function(e){y||(y=new r(u(e))).start()}(e)},onCompositionEnd:function(e){m=!1,g=!1,setTimeout((function(){m||v.resolveComposition(e)}),20)},onSelect:c,onKeyDown:function(e,t){if(!g)return v.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!g){var t=f(y).stopAndFlushMutations();y=null,m=!0;var n=i.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var s=a.decode(t),l=s.blockKey,c=s.decoratorKey,u=s.leafKey,d=n.getBlockTree(l).getIn([c,"leaves",u]),f=d.start,h=d.end,m=n.getSelection().merge({anchorKey:l,focusKey:l,anchorOffset:f,focusOffset:h,isBackward:!1}),g=p(r,m),y=r.getBlockForKey(l).getInlineStyleAt(f);r=o.replaceText(r,m,e,y,g),n=i.set(n,{currentContent:r})}));var s=d(n,u(e)).selectionState;e.restoreEditorDOM();var l=h?i.forceSelection(n,s):i.acceptSelection(n,s);e.update(i.push(l,r,"insert-characters"))}else e.update(n)}}};e.exports=v},952:(e,t,n)=>{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(511),l=n(1446),c=n(1609),u=n(2668),d=n(5463),p=n(1799),f=function(e,t,n,r){return u({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),a=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&a)return!1;var i=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),c=n.getDecorator();return o!==a||i!==s||l!==c||n.mustForceSelection()},i.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,i=e.customStyleMap,u=e.customStyleFn,h=e.editorState,m=e.editorKey,g=e.preventScroll,y=e.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),E=h.getDecorator(),x=p(h.getDirectionMap()),C=v.getBlocksAsArray(),_=[],S=null,O=null,k=0;k<C.length;k++){var N=C[k],M=N.getKey(),A=N.getType(),D=n(N),I=void 0,j=void 0,T=void 0;D&&(I=D.component,j=D.props,T=D.editable);var L=y||x.get(M),P=l.encode(M,0,0),R={contentState:v,block:N,blockProps:j,blockStyleFn:r,customStyleMap:i,customStyleFn:u,decorator:E,direction:L,forceSelection:w,offsetKey:P,preventScroll:g,selection:b,tree:h.getBlockTree(M)},F=t.get(A)||t.get("unstyled"),B=F.wrapper,z=F.element||t.get("unstyled").element,q=N.getDepth(),U="";r&&(U=r(N)),"li"===z&&(U=d(U,f(A,q,O!==B||null===S||q>S,L)));var H=I||s,V={className:U,"data-block":!0,"data-editor":m,"data-offset-key":P,key:M};void 0!==T&&(V=a({},V,{contentEditable:T,suppressContentEditableWarning:!0}));var K=c.createElement(z,V,c.createElement(H,o({},R,{key:M})));_.push({block:K,wrapperTemplate:B,key:M,offsetKey:P}),S=B?N.getDepth():null,O=B}for(var G=[],W=0;W<_.length;){var Y=_[W];if(Y.wrapperTemplate){var Q=[];do{Q.push(_[W].block),W++}while(W<_.length&&_[W].wrapperTemplate===Y.wrapperTemplate);var $=c.cloneElement(Y.wrapperTemplate,{key:Y.key+"-wrap","data-offset-key":Y.offsetKey},Q);G.push($)}else G.push(Y.block),W++}return c.createElement("div",{"data-contents":"true"},G)},r}(c.Component);e.exports=h},7364:(e,t,n)=>{"use strict";var r=n(811)("draft_tree_data_support");e.exports=n(r?282:952)},282:(e,t,n)=>{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var a=n(7815),i=n(1446),s=n(1609),l=n(1799),c=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=r.prototype;return c.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),a=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&a)return!1;var i=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),c=n.getDecorator();return o!==a||i!==s||l!==c||n.mustForceSelection()},c.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,c=e.customStyleMap,u=e.customStyleFn,d=e.editorState,p=e.editorKey,f=e.textDirectionality,h=d.getCurrentContent(),m=d.getSelection(),g=d.mustForceSelection(),y=d.getDecorator(),v=l(d.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var E=w.getKey(),x={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:h,customStyleFn:u,customStyleMap:c,decorator:y,editorKey:p,editorState:d,forceSelection:g,selection:m,block:w,direction:f||v.get(E),tree:d.getBlockTree(E)},C=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:s.createElement(a,o({key:E},x)),wrapperTemplate:C,key:E,offsetKey:i.encode(E,0,0)});var _=w.getNextSiblingKey();w=_?h.getBlockForKey(_):null}for(var S=[],O=0;O<b.length;){var k=b[O];if(k.wrapperTemplate){var N=[];do{N.push(b[O].block),O++}while(O<b.length&&b[O].wrapperTemplate===k.wrapperTemplate);var M=s.cloneElement(k.wrapperTemplate,{key:k.key+"-wrap","data-offset-key":k.offsetKey},N);S.push(M)}else S.push(k.block),O++}return s.createElement("div",{"data-contents":"true"},S)},r}(s.Component);e.exports=c},4603:(e,t,n)=>{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var a=n(1446),i=n(1609),s=n(8106),l=n(7329),c=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,c=e.decorator,u=e.decoratorKey,d=e.direction,p=e.leafSet,f=e.text,h=t.getKey(),m=p.get("leaves"),g=c.getComponentForKey(u),y=c.getPropsForKey(u),v=a.encode(h,parseInt(u,10),0),b=f.slice(m.first().get("start"),m.last().get("end")),w=l.getHTMLDirIfDifferent(s.getDirection(b),d);return i.createElement(g,o({},y,{contentState:r,decoratedText:b,dir:w,key:v,entityKey:t.getEntityAt(p.get("start")),offsetKey:v}),n)},r}(i.Component);e.exports=c},5825:(e,t,n)=>{"use strict";var r=n(6148),o=n(6651),a=n(2643),i=n(8101),s=n(4878),l=n(7146),c=n(2069),u=n(5162),d=n(8959),p=n(1799),f={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),u=e._latestEditorState,f=function(e,t){var n=null,r=null,o=s(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var a=o.caretRangeFromPoint(e.x,e.y);n=a.startContainer,r=a.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=p(n),r=p(r);var l=p(i(n));return c(t,l,r,l,r)}(t.nativeEvent,u);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=f){var g=n.getFiles();if(g.length>0){if(e.props.handleDroppedFiles&&d(e.props.handleDroppedFiles(f,g)))return;l(g,(function(t){t&&e.update(m(u,f,t))}))}else{var y=e._internalDrag?"internal":"external";e.props.handleDrop&&d(e.props.handleDrop(f,n,y))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(u,f)):e.update(m(u,f,n.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:u(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function m(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return a.push(e,r,"insert-fragment")}e.exports=f},7339:(e,t,n)=>{"use strict";var r=n(2211),o=n(6475),a=n(4053),i=n(3734),s=n(2233),l=n(1158),c=n(3124),u=n(9220),d=n(1250),p=n(5926),f=n(9393),h=n(3781),m=n(7684),g=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),v=g||y?m:function(e){},b={onBeforeInput:o,onBlur:a,onCompositionStart:i,onCopy:s,onCut:l,onDragOver:c,onDragStart:u,onFocus:d,onInput:p,onKeyDown:f,onPaste:h,onSelect:m,onMouseUp:v,onKeyUp:v};e.exports=b},4183:(e,t,n)=>{"use strict";var r=n(5795).unstable_flushControlled;e.exports=r},3546:(e,t,n)=>{"use strict";var r=n(4059),o=n(1525),a=n(1609),i=n(6835),s=n(2574),l=n(3605).setDraftEditorSelection,c=function(e){var t,n;function c(){for(var t,n,r,o,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return o=void 0,(r="leaf")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(i))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=c.prototype;return u._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,a=n.getKey(),c=r+o.length;if(e.hasEdgeWithin(a,r,c)){var u=this.leaf;u||i(!1);var d,p=u.firstChild;p||i(!1),p.nodeType===Node.TEXT_NODE?d=p:s(p)?d=u:(d=p.firstChild)||i(!1),l(e,d,a,r,c)}}},u.shouldComponentUpdate=function(e){var t=this.leaf;return t||i(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},u.componentDidUpdate=function(){this._setSelection()},u.componentDidMount=function(){this._setSelection()},u.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var i=this.props,s=i.customStyleMap,l=i.customStyleFn,c=i.offsetKey,u=i.styleSet,d=u.reduce((function(e,t){var n={},o=s[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)}),{});if(l){var p=l(u,t);d=r(d,p)}return a.createElement("span",{"data-offset-key":c,ref:function(t){return e.leaf=t},style:d},a.createElement(o,null,n))},c}(a.Component);e.exports=c},8438:(e,t,n)=>{"use strict";var r=n(4603),o=n(3546),a=n(1446),i=n(3112),s=n(1609),l=n(2668),c=(i.List,function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,i=e.customStyleFn,c=e.customStyleMap,u=e.decorator,d=e.direction,p=e.forceSelection,f=e.hasSelection,h=e.selection,m=e.tree,g=t.getKey(),y=t.getText(),v=m.size-1,b=this.props.children||m.map((function(e,l){var m=e.get("decoratorKey"),b=e.get("leaves"),w=b.size-1,E=b.map((function(e,n){var r=a.encode(g,l,n),u=e.get("start"),d=e.get("end");return s.createElement(o,{key:r,offsetKey:r,block:t,start:u,selection:f?h:null,forceSelection:p,text:y.slice(u,d),styleSet:t.getInlineStyleAt(u),customStyleMap:c,customStyleFn:i,isLast:m===v&&n===w})})).toArray();return m&&u?s.createElement(r,{block:t,children:E,contentState:n,decorator:u,decoratorKey:m,direction:d,leafSet:e,text:y,key:l}):E})).toArray();return s.createElement("div",{"data-offset-key":a.encode(g,0,0),className:l({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===d,"public/DraftStyleDefault/rtl":"RTL"===d})},b)},i}(s.Component));e.exports=c},7651:(e,t,n)=>{"use strict";var r=n(1609),o=n(2668),a=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=a.prototype;return i.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},i.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},a}(r.Component);e.exports=a},1525:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(1609),i=n(2211),s=n(6835),l=n(9345),c=i.isBrowser("IE <= 11"),u=function(e){var t,n;function i(t){var n;return o(r(n=e.call(this,t)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=i.prototype;return u.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;l(t)||s(!1);var r=t;return n?!function(e){return c?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},u.componentDidMount=function(){this._forceFlag=!this._forceFlag},u.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},u.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},c?a.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):a.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return c?a.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):a.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):a.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},i}(a.Component);e.exports=u},4978:e=>{"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},7785:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(1010),a=n(3112),i=n(6835),s=n(638),l=(0,a.Map)(),c=s();function u(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var d={getLastCreatedEntityKey:function(){return u("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),d.__getLastCreatedEntityKey()},create:function(e,t,n){return u("DraftEntity.create","contentState.createEntity"),d.__create(e,t,n)},add:function(e){return u("DraftEntity.add","contentState.addEntity"),d.__add(e)},get:function(e){return u("DraftEntity.get","contentState.getEntity"),d.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,c=s()},mergeData:function(e,t){return u("DraftEntity.mergeData","contentState.mergeEntityData"),d.__mergeData(e,t)},replaceData:function(e,t){return u("DraftEntity.replaceData","contentState.replaceEntityData"),d.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return c},__create:function(e,t,n){return d.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return c=s(),l=l.set(c,e),c},__get:function(e){var t=l.get(e);return t||i(!1),t},__mergeData:function(e,t){var n=d.__get(e),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n.getData(),t),a=n.set("data",o);return l=l.set(e,a),a},__replaceData:function(e,t){var n=d.__get(e).set("data",t);return l=l.set(e,n),n}};e.exports=d},1010:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,n(3112).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},6419:e=>{"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var a=n.split(" ");a=a.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<a.length-1)return e+" ";return e}));for(var i,s=r,l=null,c=null,u=0;u<a.length;u++){if(e<(i=s+a[u].length)&&s<t)null!==l||(l=s),c=i;else if(null!==l)break;s=i}var d=r+n.length,p=l===r,f=c===d;return(!p&&f||p&&!f)&&("forward"===o?c!==d&&c++:l!==r&&l--),{start:l,end:c}}}},7565:e=>{"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},6651:(e,t,n)=>{"use strict";var r=n(1559),o=n(7389),a=n(505),i=n(9887),s=n(175),l=n(3112),c=n(4976),u=n(5415),d=n(6835),p=n(5053),f=n(9585),h=n(9214),m=n(3765),g=l.OrderedSet,y={replaceText:function(e,t,n,o,a){var i=f(e,t),s=h(i,t),l=r.create({style:o||g(),entity:a||null});return u(s,s.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||d(!1),y.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=s(e,t),o=y.removeRange(e,t,"backward");return y.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=f(e,t),a=h(o,t);return c(a,a.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,a,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(r),s=e.getBlockForKey(o);var l=t.getStartOffset(),c=t.getEndOffset(),u=a.getEntityAt(l),d=s.getEntityAt(c-1);if(r===o&&u&&u===d){var p=i(e.getEntityMap(),a,s,t,n);return h(e,p)}var m=f(e,t);return h(m,t)},splitBlock:function(e,t){var n=f(e,t),r=h(n,t);return m(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=f(e,t);return a(r,t,n)}};e.exports=y},1446:e=>{"use strict";var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};e.exports=n},5335:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(3219),a=n(7479),i=n(835),s=n(298),l=n(7037),c=n(811),u=n(3112),d=n(1088),p=u.List,f=u.Repeat,h=c("draft_tree_data_support"),m=h?a:o,g={processHTML:function(e,t){return i(e,l,t)},processText:function(e,t,n){return e.reduce((function(e,o,a){o=d(o);var i=s(),l={key:i,type:n,text:o,characterList:p(f(t,o.length))};if(h&&0!==a){var c=a-1;l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},l,{prevSibling:(e[c]=e[c].merge({nextSibling:i})).getKey()})}return e.push(new m(l)),e}),[])}};e.exports=g},8937:(e,t,n)=>{"use strict";var r="['‘’]",o="\\s|(?![_])"+n(5310).getPunctuation(),a=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),i=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function s(e,t){var n=t?i.exec(e):a.exec(e);return n?n[0]:e}var l={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=l},9808:e=>{"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},5815:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(298),i=n(6835),s=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},l={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||i(!1),Array.isArray(t)&&t.length?(function(e){for(var t=[].concat(e).reverse();t.length;){var o=t.pop();c=void 0,c=r({},l=o),s(l)&&(c.depth=c.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(l),null!=l.children&&l.children.length>0)||(delete c.children,n.push(c));var a=o.children;Array.isArray(a)||i(!1),t=t.concat([].concat(a.reverse()))}var l,c}(t),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=s(e),i=e.depth||0,l=r({},e,{children:[]});if(o){var c=n[0];if(null==c&&0===i)t.push(l);else if(null==c||c.depth<i-1){var u={key:a(),text:"",depth:i-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(u),1===i?t.push(u):null!=c&&c.children.push(u),u.children.push(l)}else if(c.depth===i-1)c.children.push(l);else{for(;null!=c&&c.depth>=i;)n.shift(),c=n[0];i>0?c.children.push(l):t.push(l)}}else t.push(l)})),r({},e,{blocks:t})}};e.exports=l},6564:(e,t,n)=>{"use strict";n(2775),e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var a=e.getNextSiblingKey();return(null==a||t.get(a).getPrevSiblingKey()===n)&&!(null!==a&&null!==o&&o===a||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var a=e.get(r),i=a.getChildKeys(),s=a.getNextSiblingKey();if(i.size>0){null!=s&&o.unshift(s);var l=i.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return!1;r=l.getKey()}else r=null!=a.getNextSiblingKey()?a.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},9243:(e,t,n)=>{"use strict";var r,o=n(8559),a=n(3112),i=n(1799),s=a.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),l=n.valueSeq().map((function(e){return i(r).getDirection(e.getText())})),c=s(n.keySeq().zip(l));return null!=t&&a.is(t,c)?t:c}};e.exports=l},2643:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(4920),i=n(6515),s=n(9243),l=n(7746),c=n(3112),u=c.OrderedSet,d=c.Record,p=c.Stack,f=c.OrderedMap,h=c.List,m=d({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),g=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(i.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:p(),redoStack:p(),decorator:n||null,selection:l.createEmpty(r)})},t.create=function(e){var n=e.currentContent,o=r({},e,{treeMap:v(n,e.decorator),directionMap:s.getDirectionMap(n)});return new t(new m(o))},t.fromJS=function(e){return new t(new m(r({},e,{directionMap:null!=e.directionMap?f(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?u(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?i.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?p(e.redoStack.map((function(e){return i.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new l(e.selection):e.selection,treeMap:null!=e.treeMap?f(e.treeMap).map((function(e){return h(e).map((function(e){return a.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?p(e.undoStack.map((function(e){return i.fromJS(e)}))):e.undoStack,currentContent:i.fromJS(e.currentContent)})))},t.set=function(e,n){return new t(e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var s,l=t.get("treeMap");return s=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return a.generate(e,t,r)})))}(i,i.getBlockMap(),l,o,r):v(i,o),void t.merge({decorator:o,treeMap:s,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return a.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)})))};var e=t.prototype;function t(e){o(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return y(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),y(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new l({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var a=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var i=e.getSelection(),l=e.getCurrentContent(),c=e.getUndoStack(),u=n;i!==l.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(c=c.push(l),u=u.set("selectionBefore",i)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",l.getSelectionBefore()));var d=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(d=null);var f={currentContent:u,directionMap:a,undoStack:c,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:d};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),a=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),a=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:a,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function y(e,t,n){return g.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function v(e,t){return e.getBlockMap().map((function(n){return a.generate(e,n,t)})).toOrderedMap()}function b(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}e.exports=g},9861:(e,t,n)=>{"use strict";var r=n(2211),o=n(5269),a=r.isPlatform("Mac OS X"),i={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return a&&e.altKey},usesMacOSHeuristics:function(){return a},hasCommandModifier:function(e){return a?!!e.metaKey&&!e.altKey:i.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=i},6670:()=>{},353:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(5763),i=n(1799),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var i=n.getBlockMap().delete(a.getKey()),l=n.merge({blockMap:i,selectionAfter:t});if(l!==n)return o.push(e,l,"remove-range")}var c=s.tryToRemoveBlockStyle(e);return c?o.push(e,c,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),a=t.getStartKey(),i=n.getBlockForKey(a).getLength();if(t.getStartOffset()<i)return null;var s=n.getBlockAfter(a);if(!s||"atomic"!==s.getType())return null;var l=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),c=r.removeRange(n,l,"forward");return c!==n?o.push(e,c,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),i=r.getAnchorKey();if(i!==r.getFocusKey())return t;var s=t.getCurrentContent(),l=s.getBlockForKey(i),c=l.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return t;e.preventDefault();var u=l.getDepth();if(!e.shiftKey&&u===n)return t;var d=a(s,r,e.shiftKey?-1:1,n);return o.push(t,d,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),a=n.getStartKey(),s=n.getEndKey(),l=e.getCurrentContent(),c=n;if(a!==s&&0===n.getEndOffset()){var u=i(l.getBlockBefore(s));s=u.getKey(),c=c.merge({anchorKey:a,anchorOffset:n.getStartOffset(),focusKey:s,focusOffset:u.getLength(),isBackward:!1})}if(l.getBlockMap().skipWhile((function(e,t){return t!==a})).reverse().skipWhile((function(e,t){return t!==s})).some((function(e){return"atomic"===e.getType()})))return e;var d=l.getBlockForKey(a).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(l,c,d),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?s.toggleBlockType(e,"code-block"):s.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),a=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,a.has(t)?a.remove(t):a.add(t));var i,s=e.getCurrentContent();return i=a.has(t)?r.removeInlineStyle(s,n,t):r.applyInlineStyle(s,n,t),o.push(e,i,"change-inline-style")},toggleLink:function(e,t,n){var a=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,a,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),a=e.getCurrentContent(),i=a.getBlockForKey(o).getType(),s=a.getBlockBefore(o);if("code-block"===i&&s&&"code-block"===s.getType()&&0!==s.getLength())return null;if("unstyled"!==i)return r.setBlockType(a,t,"unstyled")}return null}};e.exports=s},9213:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(175),i=n(1799),s=null,l={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),l=null;if(n.isCollapsed()){var c=n.getAnchorKey(),u=t.getBlockForKey(c).getLength();if(u===n.getAnchorOffset()){var d=t.getKeyAfter(c);if(null==d)return e;l=n.set("focusKey",d).set("focusOffset",0)}else l=n.set("focusOffset",u)}else l=n;l=i(l),s=a(t,l);var p=r.removeRange(t,l,"forward");return p===t?e:o.push(e,p,"remove-range")},paste:function(e){if(!s)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=l},7746:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var a=this.getStartOffset(),i=this.getEndOffset();return t<=a&&a<=n||t<=i&&i<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(3112).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},5763:e=>{"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),a=t.getEndKey(),i=e.getBlockMap(),s=i.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).concat([[a,i.get(a)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return i=i.merge(s),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t})}},3557:(e,t,n)=>{"use strict";var r=n(1559);e.exports=function(e,t,n,o){for(var a=t,i=e.getCharacterList();a<n;)i=i.set(a,r.applyEntity(i.get(a),o)),a++;return e.set("characterList",i)}},505:(e,t,n)=>{"use strict";var r=n(3557),o=n(3112);e.exports=function(e,t,n){var a=e.getBlockMap(),i=t.getStartKey(),s=t.getStartOffset(),l=t.getEndKey(),c=t.getEndOffset(),u=a.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===l})).toOrderedMap().merge(o.OrderedMap([[l,a.get(l)]])).map((function(e,t){var o=t===i?s:0,a=t===l?c:e.getLength();return r(e,o,a,n)}));return e.merge({blockMap:a.merge(u),selectionBefore:t,selectionAfter:t})}},9101:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(3219),a=n(7479),i=n(9808),s=n(130),l=n(2007),c=n(6835),u=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:l(e),entityRanges:s(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,s=[],l={},d={},p=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=i.stringify(r);d[o]||(d[o]=r,n[o]="".concat(p),p++)})),function(e,t,n,i){if(e instanceof o)n.push(u(e,t));else{e instanceof a||c(!1);var s=e.getParentKey(),l=i[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},u(e,t),{children:[]});s?i[s].children.push(l):n.push(l)}}(e,n,s,l)})),{blocks:s,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(i.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t}},835:(e,t,n)=>{"use strict";var r;function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(1559),s=n(3219),l=n(7479),c=n(1472),u=n(7785),d=n(8673),p=n(2668),f=n(298),h=n(7037),m=n(811),g=n(3112),y=g.List,v=g.Map,b=g.OrderedSet,w=n(3213),E=n(2574),x=n(1214),C=n(5175),_=m("draft_tree_data_support"),S=new RegExp("\r","g"),O=new RegExp("\n","g"),k=new RegExp("^\n","g"),N=new RegExp("&nbsp;","g"),M=new RegExp("&#13;?","g"),A=new RegExp("&#8203;?","g"),D=["bold","bolder","500","600","700","800","900"],I=["light","lighter","normal","100","200","300","400"],j=["className","href","rel","target","title"],T=["alt","className","height","src","width"],L=(a(r={},p("public/DraftStyleDefault/depth0"),0),a(r,p("public/DraftStyleDefault/depth1"),1),a(r,p("public/DraftStyleDefault/depth2"),2),a(r,p("public/DraftStyleDefault/depth3"),3),a(r,p("public/DraftStyleDefault/depth4"),4),r),P=v({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),R=function(e){return x(e)&&e.style.fontFamily.includes("monospace")?"CODE":null},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(L).some((function(n){e.classList.contains(n)&&(t=L[n])})),t},B=function(e){if(!w(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new d(t.href),!0}catch(e){return!1}},z=function(e){if(!C(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},q=function(e,t){if(!x(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations((function(e){D.indexOf(r)>=0?e.add("BOLD"):I.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===a&&e.add("UNDERLINE"),"line-through"===a&&e.add("STRIKETHROUGH"),"none"===a&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},U=function(e){return"ul"===e||"ol"===e},H=function(){function e(e,t){a(this,"characterList",y()),a(this,"currentBlockType","unstyled"),a(this,"currentDepth",0),a(this,"currentEntity",null),a(this,"currentText",""),a(this,"wrapper",null),a(this,"blockConfigs",[]),a(this,"contentBlocks",[]),a(this,"entityMap",u),a(this,"blockTypeMap",void 0),a(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=u,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(_?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o({key:e.key||f(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],a=o.nodeName.toLowerCase();if("body"===a||U(a)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var i=this.currentDepth,s=this.wrapper;U(a)&&(this.wrapper=a,U(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=i,this.wrapper=s}else{var l=this.blockTypeMap.get(a);if(void 0===l)if("#text"!==a)if("br"!==a)if(z(o))this._addImgNode(o,t);else if(B(o))this._addAnchorNode(o,n,t);else{var c=t;P.has(a)&&(c=c.add(P.get(a))),c=q(o,c);var u=R(o);null!=u&&(c=c.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),c))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var d=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===a?"pre":this.wrapper,"string"!=typeof l&&(l=this.disambiguate(a,this.wrapper)||l[0]||"unstyled"),!_&&x(o)&&("unordered-list-item"===l||"ordered-list-item"===l)){var h=o;this.currentDepth=F(h,this.currentDepth)}var m=f(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:m,childConfigs:g,type:l})),this.currentDepth=d,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=i.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(k,"")).replace(O," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){E(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(C(e)){var n=e,r={};T.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),m("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(w(e)){var r=e,o={};j.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new d(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var a=e[r];a.parent=t,a.prevSibling=r>0?e[r-1].key:null,a.nextSibling=r<n?e[r+1].key:null,a.children=y(a.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new l(o({},a))),this._toContentBlocks(a.childConfigs,a.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return y(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,a=n.characterList;t.contentBlocks.push(new s(o({},e,{text:e.text+r,characterList:e.characterList.concat(a)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=y(),o=0;o<=t;o++){var a=e[o];n+=a.text,r=r.concat(a.characterList),""!==n&&"unstyled"!==a.type&&(n+="\n",r=r.push(r.last()));var i=this._extractTextFromBlockConfigs(a.childConfigs);n+=i.text,r=r.concat(i.characterList)}return{text:n,characterList:r}},e}();e.exports=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(e=e.trim().replace(S,"").replace(N," ").replace(M,"").replace(A,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),v(t)}(t);return new H(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},2999:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(3219),i=n(7479),s=n(6515),l=n(7785),c=n(5815),u=(n(6564),n(7746)),d=n(9334),p=n(9390),f=n(5059),h=n(298),m=n(811),g=n(3112),y=n(6835),v=m("draft_tree_data_support"),b=g.List,w=g.Map,E=g.OrderedMap,x=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||h(),data:w(o),characterList:C(e,t)}},C=function(e,t){var n=e.text,o=e.entityRanges,a=e.inlineStyleRanges,i=o||[];return d(f(n,a||[]),p(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},_=function(e){return r({},e,{key:e.key||h()})},S=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,a=r.mutability,i=r.data;n[e]=l.__create(o,a,i||{})})),n}(e),n=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),o=v&&!n?c.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!v)return function(e,t){return E(e.map((function(e){var n=new a(x(e,t));return[n.getKey(),n]})))}(n?c.fromRawTreeStateToRawState(e).blocks:o,t);var s=function(e,t){return e.map(_).reduce((function(n,o,a){Array.isArray(o.children)||y(!1);var s=o.children.map(_),l=new i(r({},x(o,t),{prevSibling:0===a?null:e[a-1].key,nextSibling:a===e.length-1?null:e[a+1].key,children:b(s.map((function(e){return e.key})))}));n=n.set(l.getKey(),l);for(var c=S([],s,l);c.length>0;){var u=c.pop(),d=u.parentRef,p=d.getChildKeys(),f=p.indexOf(u.key),h=Array.isArray(u.children);if(!h){h||y(!1);break}var m=u.children.map(_),g=new i(r({},x(u,t),{parent:d.getKey(),children:b(m.map((function(e){return e.key}))),prevSibling:0===f?null:p.get(f-1),nextSibling:f===p.size-1?null:p.get(f+1)}));n=n.set(g.getKey(),g),c=S(c,m,g)}return n}),E())}(o,t);return s}(e,t),o=n.isEmpty()?new u:u.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:t,selectionBefore:o,selectionAfter:o})}},9334:(e,t,n)=>{"use strict";var r=n(1559),o=n(3112).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},9390:(e,t,n)=>{"use strict";var r=n(9031).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,a=o+r(e,t.offset,t.length).length,i=o;i<a;i++)n[i]=t.key})),n}},5059:(e,t,n)=>{"use strict";var r=n(9031),o=n(3112).OrderedSet,a=r.substr,i=o();e.exports=function(e,t){var n=Array(e.length).fill(i);return t&&t.forEach((function(t){for(var r=a(e,0,t.offset).length,o=r+a(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n}},2542:e=>{"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},6475:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(2211),i=n(5396),s=n(8959),l=n(6500),c=n(1799),u=n(5258),d=a.isBrowser("Firefox");function p(e,t,n,a,i){var s=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,a);return o.push(e,s,"insert-characters",i)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var a=n.getSelection(),f=a.getStartOffset(),h=a.getAnchorKey();if(!a.isCollapsed())return t.preventDefault(),void e.update(p(n,r,n.getCurrentInlineStyle(),i(n.getCurrentContent(),n.getSelection()),!0));var m,g=p(n,r,n.getCurrentInlineStyle(),i(n.getCurrentContent(),n.getSelection()),!1),y=!1;if(y||(y=l(e._latestCommittedEditorState)),!y){var v=n.getBlockTree(h),b=g.getBlockTree(h);y=v.size!==b.size||v.zip(b).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=f?r.length:0),i=t.get("end"),s=i+(i>=f?r.length:0),l=n.get("start"),c=n.get("end"),u=n.get("decoratorKey");return t.get("decoratorKey")!==u||t.get("leaves").size!==n.get("leaves").size||a!==l||s!==c||null!=u&&c-l!=i-o}))}if(y||(m=r,y=d&&("'"==m||"/"==m)),y||(y=c(g.getDirectionMap()).get(h)!==c(n.getDirectionMap()).get(h)),y)return t.preventDefault(),g=o.set(g,{forceSelection:!0}),void e.update(g);g=o.set(g,{nativelyRenderedContent:g.getCurrentContent()}),e._pendingStateFromBeforeInput=g,u((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},4053:(e,t,n)=>{"use strict";var r=n(2643),o=n(2462),a=n(2533);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&a(n)===n.body){var i=n.defaultView.getSelection(),s=e.editor;1===i.rangeCount&&o(s,i.anchorNode)&&o(s,i.focusNode)&&i.removeAllRanges()}var l=e._latestEditorState,c=l.getSelection();if(c.getHasFocus()){var u=c.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(l,u))}}},3734:(e,t,n)=>{"use strict";var r=n(2643);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},2233:(e,t,n)=>{"use strict";var r=n(9659);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},1158:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(2394),i=n(9659),s=n(1489),l=n(1879);e.exports=function(e,t){var n,c=e._latestEditorState,u=c.getSelection(),d=t.target;if(u.isCollapsed())t.preventDefault();else{if(l(d)){var p=d;n=s(a.getScrollParent(p))}var f=i(c);e.setClipboard(f),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(c))}),0)}}},3124:e=>{"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},9220:e=>{"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},1250:(e,t,n)=>{"use strict";var r=n(2643),o=n(2211);e.exports=function(e,t){var n=e._latestEditorState,a=n.getSelection();if(!a.getHasFocus()){var i=a.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,i)):e.update(r.acceptSelection(n,i))}}},5926:(e,t,n)=>{"use strict";var r=n(6651),o=n(1446),a=n(2643),i=n(2211),s=n(2542).notEmptyKey,l=n(8101),c=n(1274),u=n(1799),d=i.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),i=n.anchorNode,p=n.isCollapsed,f=(null==i?void 0:i.nodeType)!==Node.TEXT_NODE&&(null==i?void 0:i.nodeType)!==Node.ELEMENT_NODE;if(null!=i&&!f){if(i.nodeType===Node.TEXT_NODE&&(null!==i.previousSibling||null!==i.nextSibling)){var h=i.parentNode;if(null==h)return;i.nodeValue=h.textContent;for(var m=h.firstChild;null!=m;m=m.nextSibling)m!==i&&h.removeChild(m)}var g=i.textContent,y=e._latestEditorState,v=u(l(i)),b=o.decode(v),w=b.blockKey,E=b.decoratorKey,x=b.leafKey,C=y.getBlockTree(w).getIn([E,"leaves",x]),_=C.start,S=C.end,O=y.getCurrentContent(),k=O.getBlockForKey(w),N=k.getText().slice(_,S);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==N){var M,A,D,I,j=y.getSelection(),T=j.merge({anchorOffset:_,focusOffset:S,isBackward:!1}),L=k.getEntityAt(_),P=s(L)?O.getEntity(L):null,R="MUTABLE"===(null!=P?P.getMutability():null),F=R?"spellcheck-change":"apply-entity",B=r.replaceText(O,T,g,k.getInlineStyleAt(_),R?k.getEntityAt(_):null);if(d)M=n.anchorOffset,A=n.focusOffset,I=(D=_+Math.min(M,A))+Math.abs(M-A),M=D,A=I;else{var z=g.length-N.length;D=j.getStartOffset(),I=j.getEndOffset(),M=p?I+z:D,A=I+z}var q=B.merge({selectionBefore:O.getSelectionAfter(),selectionAfter:j.merge({anchorOffset:M,focusOffset:A})});e.update(a.push(y,q,F))}else{var U=t.nativeEvent.inputType;if(U){var H=function(e,t){return"deleteContentBackward"===e?c(t):t}(U,y);if(H!==y)return e.restoreEditorDOM(),void e.update(H)}}}}},9393:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(9861),i=n(559),s=n(9213),l=n(2211),c=n(8959),u=n(9792),d=n(8238),p=n(3690),f=n(7950),h=n(7084),m=n(2267),g=n(1274),y=n(3918),v=n(8578),b=n(6947),w=a.isOptionKeyCommand,E=l.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,a=e._latestEditorState;function l(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case i.RETURN:if(t.preventDefault(),e.props.handleReturn&&c(e.props.handleReturn(t,a)))return;break;case i.ESC:if(t.preventDefault(),l("onEscape"))return;break;case i.TAB:if(l("onTab"))return;break;case i.UP:if(l("onUpArrow"))return;break;case i.RIGHT:if(l("onRightArrow"))return;break;case i.DOWN:if(l("onDownArrow"))return;break;case i.LEFT:if(l("onLeftArrow"))return;break;case i.SPACE:E&&w(t)&&t.preventDefault()}var x=e.props.keyBindingFn(t);if(null!=x&&""!==x)if("undo"!==x){if(t.preventDefault(),!e.props.handleKeyCommand||!c(e.props.handleKeyCommand(x,a,t.timeStamp))){var C=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return p(t);case"backspace":return g(t);case"backspace-word":return d(t);case"backspace-to-start-of-line":return u(t,n);case"split-block":return f(t);case"transpose-characters":return v(t);case"move-selection-to-start-of-block":return m(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(x,a,t);C!==a&&e.update(C)}}else b(t,a,e.update);else if(n===i.SPACE&&E&&w(t)){var _=r.replaceText(a.getCurrentContent(),a.getSelection()," ");e.update(o.push(a,_,"insert-characters"))}}},3781:(e,t,n)=>{"use strict";var r=n(9185),o=n(1559),a=n(6148),i=n(6651),s=n(5335),l=n(2643),c=n(353),u=n(5396),d=n(7146),p=n(8959),f=n(7137);function h(e,t,n){var r=i.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new a(t.clipboardData);if(!n.isRichText()){var m=n.getFiles(),g=n.getText();if(m.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(m)))return;return void d(m,(function(t){if(t=t||g){var n=e._latestEditorState,a=f(t),d=o.create({style:n.getCurrentInlineStyle(),entity:u(n.getCurrentContent(),n.getSelection())}),p=c.getCurrentBlockType(n),h=s.processText(a,d,p),m=r.createFromArray(h),y=i.replaceWithFragment(n.getCurrentContent(),n.getSelection(),m);e.update(l.push(n,y,"insert-fragment"))}}))}}var y=[],v=n.getText(),b=n.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var E=e.props.formatPastedText(v,b);v=E.text,b=E.html}if(!e.props.handlePastedText||!p(e.props.handlePastedText(v,b,w))){if(v&&(y=f(v)),!e.props.stripPastedStyles){var x,C=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&C){if(-1!==(null===(x=b)||void 0===x?void 0:x.indexOf(e.getEditorKey()))||1===y.length&&1===C.size&&C.first().getText()===v)return void e.update(h(e._latestEditorState,C))}else if(C&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(y,C))return void e.update(h(e._latestEditorState,C));if(b){var _=s.processHTML(b,e.props.blockRenderMap);if(_){var S=_.contentBlocks,O=_.entityMap;if(S){var k=r.createFromArray(S);return void e.update(h(e._latestEditorState,k,O))}}}e.setClipboard(null)}if(y.length){var N=o.create({style:w.getCurrentInlineStyle(),entity:u(w.getCurrentContent(),w.getSelection())}),M=c.getCurrentBlockType(w),A=s.processText(y,N,M),D=r.createFromArray(A);e.update(h(e._latestEditorState,D))}}}},7684:(e,t,n)=>{"use strict";var r=n(7565),o=n(2643),a=n(6389),i=n(8265);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,s=i(n,a(e)),l=s.selectionState;l!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,l):o.acceptSelection(n,l),e.update(n))}}},130:(e,t,n)=>{"use strict";var r=n(9808),o=n(9031).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(a,i){var s=e.getText(),l=e.getEntityAt(a);n.push({offset:o(s.slice(0,a)),length:o(s.slice(a,i)),key:Number(t[r.stringify(l)])})})),n}},2007:(e,t,n)=>{"use strict";var r=n(9031),o=n(4814),a=function(e,t){return e===t},i=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var s=[],l=t.map((function(e){return e.has(n)})).toList();return o(l,a,i,(function(t,o){var a=e.getText();s.push({offset:r.strlen(a.slice(0,t)),length:r.strlen(a.slice(t,o)),style:n})})),s}(e,t,n)}));return Array.prototype.concat.apply(s,n.toJS())}},1374:(e,t,n)=>{"use strict";var r=n(9031),o=n(4878),a=n(5488),i=n(6835);function s(e,t){for(var n=1/0,r=1/0,o=-1/0,a=-1/0,i=0;i<e.length;i++){var s=e[i];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),a=Math.max(a,s.bottom))}return o<=r&&o-n<t&&a-r<t}function l(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||i(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=o(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var a=n.body;a||i(!1),a.appendChild(r);var s=r.getBoundingClientRect();return a.removeChild(r),s.height}(t),c=e.endContainer,u=e.endOffset;for(e.setStart(e.startContainer,0);s(a(e),n)&&(c=e.startContainer,u=e.startOffset,c.parentNode||i(!1),e.setStartBefore(c),1!==c.nodeType||"inline"===getComputedStyle(c).display););for(var d=c,p=u-1;;){for(var f=d.nodeValue,h=p;h>=0;h--)if(!(null!=f&&h>0&&r.isSurrogatePair(f,h-1))){if(e.setStart(d,h),!s(a(e),n))break;c=d,u=h}if(-1===h||0===d.childNodes.length)break;p=l(d=d.childNodes[h])}return e.setStart(c,u),e}},8101:(e,t,n)=>{"use strict";var r=n(4878),o=n(2626);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},4814:e=>{"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,a,i){return t(e,a)||(n(e)&&r(o,i),o=i),a})),n(e.last())&&r(o,e.count())}}},298:e=>{"use strict";var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},9887:(e,t,n)=>{"use strict";var r=n(6419),o=n(8258),a=n(6835);function i(e,t,n,i,s,l,c){var u=n.getStartOffset(),d=n.getEndOffset(),p=e.__get(s).getMutability(),f=c?u:d;if("MUTABLE"===p)return n;var h=o(t,s).filter((function(e){return f<=e.end&&f>=e.start}));1!=h.length&&a(!1);var m=h[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});l||(c?d=m.end:u=m.start);var g=r.getRemovalRange(u,d,t.getText().slice(m.start,m.end),m.start,i);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var a=r.getStartOffset(),s=r.getEndOffset(),l=t.getEntityAt(a),c=n.getEntityAt(s-1);if(!l&&!c)return r;var u=r;if(l&&l===c)u=i(e,t,u,o,l,!0,!0);else if(l&&c){var d=i(e,t,u,o,l,!1,!0),p=i(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:d.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(l){var f=i(e,t,u,o,l,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(c){var h=i(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return u}},6389:(e,t,n)=>{"use strict";var r=n(6835),o=n(1214);e.exports=function(e){var t=e.editorContainer;return t||r(!1),o(t.firstChild)||r(!1),t.firstChild}},175:(e,t,n)=>{"use strict";var r=n(1199),o=n(9585);e.exports=function(e,t){var n=t.getStartKey(),a=t.getStartOffset(),i=t.getEndKey(),s=t.getEndOffset(),l=o(e,t).getBlockMap(),c=l.keySeq(),u=c.indexOf(n),d=c.indexOf(i)+1;return r(l.slice(u,d).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===i?e.merge({text:r.slice(a,s),characterList:o.slice(a,s)}):t===n?e.merge({text:r.slice(a),characterList:o.slice(a)}):t===i?e.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):e})))}},4878:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},5532:(e,t,n)=>{"use strict";var r=n(9861),o=n(559),a=n(2211),i=a.isPlatform("Mac OS X"),s=i&&a.isBrowser("Firefox < 29"),l=r.hasCommandModifier,c=r.isCtrlKeyCommand;function u(e){return i&&e.altKey||c(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return c(e)?"delete":null;case 72:return c(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return i&&c(e)?"secondary-cut":null;case 77:case 79:return c(e)?"split-block":null;case 84:return i&&c(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return i&&c(e)?"backspace-word":null;case 89:return c(e)?i?"secondary-paste":"redo":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!i&&e.shiftKey?null:u(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&i?"backspace-to-start-of-line":u(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},8265:(e,t,n)=>{"use strict";var r=n(8564);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),o=n.anchorNode,a=n.anchorOffset,i=n.focusNode,s=n.focusOffset;return 0===n.rangeCount||null==o||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,a,i,s)}},8564:(e,t,n)=>{"use strict";var r=n(8101),o=n(2626),a=n(2069),i=n(6835),s=n(9345),l=n(1799);function c(e,t,n){var a=t,c=r(a);if(null!=c||e&&(e===a||e.firstChild===a)||i(!1),e===a&&(a=a.firstChild,s(a)||i(!1),"true"!==a.getAttribute("data-contents")&&i(!1),n>0&&(n=a.childNodes.length)),0===n){var d=null;if(null!=c)d=c;else{var p=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(a);d=l(o(p))}return{key:d,offset:0}}var f=a.childNodes[n-1],h=null,m=null;if(o(f)){var g=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(f);h=l(o(g)),m=u(g)}else h=l(c),m=u(f);return{key:h,offset:m}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,i,s){var u=n.nodeType===Node.TEXT_NODE,d=i.nodeType===Node.TEXT_NODE;if(u&&d)return{selectionState:a(e,l(r(n)),o,l(r(i)),s),needsRecovery:!1};var p=null,f=null,h=!0;return u?(p={key:l(r(n)),offset:o},f=c(t,i,s)):d?(f={key:l(r(i)),offset:s},p=c(t,n,o)):(p=c(t,n,o),f=c(t,i,s),n===i&&o===s&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:a(e,p.key,p.offset,f.key,f.offset),needsRecovery:h}}},5396:(e,t,n)=>{"use strict";var r=n(2542).notEmptyKey;function o(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(n=e.getBlockForKey(r).getEntityAt(a-1))!==e.getBlockForKey(r).getEntityAt(a)?null:o(e.getEntityMap(),n):null}var i=t.getStartKey(),s=t.getStartOffset(),l=e.getBlockForKey(i);return n=s===l.getLength()?null:l.getEntityAt(s),o(e.getEntityMap(),n)}},9659:(e,t,n)=>{"use strict";var r=n(175);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},967:(e,t,n)=>{"use strict";var r=n(7479);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var a=t.get(o);a&&!a.getNextSiblingKey();){var i=a.getParentKey();a=i?t.get(i):null}return a?a.getNextSiblingKey():null}},6784:e=>{"use strict";e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},8366:(e,t,n)=>{"use strict";var r=n(5488);e.exports=function(e){var t=r(e),n=0,o=0,a=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,a=s.bottom,i=s.left}else{var l=t[0];n=l.top,o=l.right,a=l.bottom,i=l.left}for(var c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),o=Math.max(o,u.right),a=Math.max(a,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:o,bottom:a,left:i,width:o-i,height:a-n}}},5488:(e,t,n)=>{"use strict";var r=n(2211),o=n(6835),a=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var a=r===e.commonAncestorContainer;a?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,s=Array.from(t.getClientRects());if(n.push(s),a)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=a},8258:(e,t,n)=>{"use strict";var r=n(6835);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},7037:(e,t,n)=>{"use strict";var r=n(2211),o=n(6835),a=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!a&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},2626:(e,t,n)=>{"use strict";var r=n(9345);e.exports=function e(t){if(r(t)){var n=t,o=n.getAttribute("data-offset-key");if(o)return o;for(var a=0;a<n.childNodes.length;a++){var i=e(n.childNodes[a]);if(i)return i}}return null}},7146:(e,t,n)=>{"use strict";var r=n(6835),o=/\.textClipping$/,a={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var i=0,s=[];e.forEach((function(l){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in a))t("");else{if(""===e.type){var i="";return o.test(e.name)&&(i=e.name.replace(o,"")),void t(i)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!=typeof e&&r(!1),t(e)},s.onerror=function(){t("")},s.readAsText(e)}}(l,(function(n){i++,n&&s.push(n.slice(0,5e3)),i==e.length&&t(s.join("\r"))}))}))}},2069:(e,t,n)=>{"use strict";var r=n(1446),o=n(1799);e.exports=function(e,t,n,a,i){var s=o(e.getSelection());if(!t||!a)return s;var l=r.decode(t),c=l.blockKey,u=e.getBlockTree(c),d=u&&u.getIn([l.decoratorKey,"leaves",l.leafKey]),p=r.decode(a),f=p.blockKey,h=e.getBlockTree(f),m=h&&h.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!d||!m)return s;var g=d.get("start"),y=m.get("start"),v=d?g+n:null,b=m?y+i:null;if(s.getAnchorKey()===c&&s.getAnchorOffset()===v&&s.getFocusKey()===f&&s.getFocusOffset()===b)return s;var w=!1;if(c===f){var E=d.get("end"),x=m.get("end");w=y===g&&x===E?i<n:y<g}else w=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===c||e===f})).first()===f;return s.merge({anchorKey:c,anchorOffset:v,focusKey:f,focusOffset:b,isBackward:w})}},1539:(e,t,n)=>{"use strict";var r=n(8366);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),a=o.top,i=o.right,s=o.bottom,l=o.left;return 0===a&&0===i&&0===s&&0===l?null:o}},5162:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},811:e=>{"use strict";e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}},4976:(e,t,n)=>{"use strict";var r=n(9185),o=n(7479),a=n(3112),i=n(3686),s=n(6835),l=n(1199),c=a.List;e.exports=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var u=e.getBlockMap(),d=l(n),p=t.getStartKey(),f=t.getStartOffset(),h=u.get(p);return h instanceof o&&(h.getChildKeys().isEmpty()||s(!1)),1===d.size?function(e,t,n,r,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",l=n.get(o),c=l.getText(),u=l.getCharacterList(),d=o,p=a+r.getText().length,f=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":f=r.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":f=r.getData()}var h=l.getType();c&&"unstyled"===h&&(h=r.getType());var m=l.merge({text:c.slice(0,a)+r.getText()+c.slice(a),characterList:i(u,r.getCharacterList(),a),type:h,data:f});return e.merge({blockMap:n.set(o,m),selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})}(e,t,u,d.first(),p,f,a):function(e,t,n,a,i,s){var l=n.first()instanceof o,u=[],d=a.size,p=n.get(i),f=a.first(),h=a.last(),m=h.getLength(),g=h.getKey(),y=l&&(!p.getChildKeys().isEmpty()||!f.getChildKeys().isEmpty());n.forEach((function(e,t){t===i?(y?u.push(e):u.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),a=r.slice(0,t),i=o.slice(0,t),s=n.first();return e.merge({text:a+s.getText(),characterList:i.concat(s.getCharacterList()),type:a?e.getType():s.getType(),data:s.getData()})}(e,s,a)),a.slice(y?0:1,d-1).forEach((function(e){return u.push(e)})),u.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),a=r.length,i=r.slice(t,a),s=o.slice(t,a),l=n.last();return l.merge({text:l.getText()+i,characterList:l.getCharacterList().concat(s),data:l.getData()})}(e,s,a))):u.push(e)}));var v=r.createFromArray(u);return l&&(v=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),a=r.getKey(),i=n.getNextSiblingKey(),s=n.getParentKey(),l=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var a=r.getNextSiblingKey();if(!a)break;o.push(a),r=t.get(a)}return o}(r,e),u=l[l.length-1];if(t.get(a)?(t.setIn([o,"nextSibling"],a),t.setIn([a,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],i),i&&t.setIn([i,"prevSibling"],u),l.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var d=e.get(s).getChildKeys(),p=d.indexOf(o)+1,f=d.toArray();f.splice.apply(f,[p,0].concat(l)),t.setIn([s,"children"],c(f))}}))}(v,0,p,f)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:m,focusKey:g,focusOffset:m,isBackward:!1})})}(e,t,u,d,p,f)}},3686:e=>{"use strict";e.exports=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),a=r.slice(n);r=o.concat(t,a).toList()}return r}},5415:(e,t,n)=>{"use strict";var r=n(3112),o=n(3686),a=n(6835),i=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||a(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return e;var l=e.getBlockMap(),c=t.getStartKey(),u=t.getStartOffset(),d=l.get(c),p=d.getText(),f=d.merge({text:p.slice(0,u)+n+p.slice(u,d.getLength()),characterList:o(d.getCharacterList(),i(r,s).toList(),u)}),h=u+s;return e.merge({blockMap:l.set(c,f),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},9345:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},8959:e=>{"use strict";e.exports=function(e){return"handled"===e||!0===e}},3213:(e,t,n)=>{"use strict";var r=n(9345);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"A"===e.nodeName}},2574:(e,t,n)=>{"use strict";var r=n(9345);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"BR"===e.nodeName}},1214:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},5175:(e,t,n)=>{"use strict";var r=n(9345);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"IMG"===e.nodeName}},1879:e=>{"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},6500:e=>{"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),a=!1;return r.some((function(e){return o===e.get("start")?(a=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(a=!0,!0)}))})),a}},5269:(e,t,n)=>{"use strict";var r=n(559);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},9792:(e,t,n)=>{"use strict";var r=n(2643),o=n(1374),a=n(8564),i=n(9097),s=n(4191);e.exports=function(e,t){var n=s(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return i(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),a(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}},8238:(e,t,n)=>{"use strict";var r=n(8937),o=n(2643),a=n(9097),i=n(4191);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return a(e,1);var o=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(i);return a(e,s.length||1)}),"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},3690:(e,t,n)=>{"use strict";var r=n(8937),o=n(2643),a=n(7831),i=n(4191);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(i);return a(e,s.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},7950:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},7084:(e,t,n)=>{"use strict";var r=n(2643);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},2267:(e,t,n)=>{"use strict";var r=n(2643);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},1274:(e,t,n)=>{"use strict";var r=n(2643),o=n(9031),a=n(9097),i=n(4191);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[i-1];return a(e,s?o.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},3918:(e,t,n)=>{"use strict";var r=n(2643),o=n(9031),a=n(7831),i=n(4191);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[i];return a(e,s?o.getUTF16Length(s,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},8578:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(175);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var i,s,l=t.getAnchorKey(),c=e.getCurrentContent(),u=c.getBlockForKey(l).getLength();if(u<=1)return e;n===u?(i=t.set("anchorOffset",n-1),s=t):s=(i=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var d=a(c,i),p=r.removeRange(c,i,"backward"),f=p.getSelectionAfter(),h=f.getAnchorOffset()-1,m=f.merge({anchorOffset:h,focusOffset:h}),g=r.replaceWithFragment(p,m,d),y=o.push(e,g,"insert-fragment");return o.acceptSelection(y,s)}},6947:(e,t,n)=>{"use strict";var r=n(2643);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var a=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:a}))}}},5053:(e,t,n)=>{"use strict";var r=n(3112).Map;e.exports=function(e,t,n){var o=t.getStartKey(),a=t.getEndKey(),i=e.getBlockMap(),s=i.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).concat(r([[a,i.get(a)]])).map(n);return e.merge({blockMap:i.merge(s),selectionBefore:t,selectionAfter:t})}},4446:(e,t,n)=>{"use strict";var r=n(7479),o=n(967),a=n(3112),i=n(6835),s=a.OrderedMap,l=a.List,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},u=function(e,t,n,r,o){if(!o)return e;var a="after"===r,i=t.getKey(),s=n.getKey(),u=t.getParentKey(),d=t.getNextSiblingKey(),p=t.getPrevSiblingKey(),f=n.getParentKey(),h=a?n.getNextSiblingKey():s,m=a?s:n.getPrevSiblingKey();return e.withMutations((function(e){c(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(i))})})),c(p,e,(function(e){return e.merge({nextSibling:d})})),c(d,e,(function(e){return e.merge({prevSibling:p})})),c(h,e,(function(e){return e.merge({prevSibling:i})})),c(m,e,(function(e){return e.merge({nextSibling:i})})),c(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=a?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,i),e.merge({children:l(o)})})),c(i,e,(function(e){return e.merge({nextSibling:h,prevSibling:m,parent:f})}))}))};e.exports=function(e,t,n,a){"replace"===a&&i(!1);var l=n.getKey(),c=t.getKey();c===l&&i(!1);var d=e.getBlockMap(),p=t instanceof r,f=[t],h=d.delete(c);p&&(f=[],h=d.withMutations((function(e){var n=t.getNextSiblingKey(),r=o(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===c})).takeWhile((function(e){var t=e.getKey(),o=t===c,a=n&&t!==n,i=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||i)})).forEach((function(t){f.push(t),e.delete(t.getKey())}))})));var m=h.toSeq().takeUntil((function(e){return e===n})),g=h.toSeq().skipUntil((function(e){return e===n})).skip(1),y=f.map((function(e){return[e.getKey(),e]})),v=s();if("before"===a){var b=e.getBlockBefore(l);b&&b.getKey()===t.getKey()&&i(!1),v=m.concat([].concat(y,[[l,n]]),g).toOrderedMap()}else if("after"===a){var w=e.getBlockAfter(l);w&&w.getKey()===c&&i(!1),v=m.concat([[l,n]].concat(y),g).toOrderedMap()}return e.merge({blockMap:u(v,t,n,a,p),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},9097:(e,t,n)=>{"use strict";n(2775),e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),a=n.getStartOffset(),i=o,s=0;if(t>a){var l=r.getKeyBefore(o);null==l?i=o:(i=l,s=r.getBlockForKey(l).getText().length)}else s=a-t;return n.merge({focusKey:i,focusOffset:s,isBackward:!0})}},7831:(e,t,n)=>{"use strict";n(2775),e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),a=r.getStartOffset(),i=e.getCurrentContent(),s=o;return t>i.getBlockForKey(o).getText().length-a?(s=i.getKeyAfter(o),n=0):n=a+t,r.merge({focusKey:s,focusOffset:n})}},1199:(e,t,n)=>{"use strict";var r=n(7479),o=n(298),a=n(3112).OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return a(e.withMutations((function(e){e.forEach((function(r,a){var i=r.getKey(),s=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),d=o();if(n[i]=d,s&&(e.get(s)?e.setIn([s,"prevSibling"],d):e.setIn([i,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"nextSibling"],d):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var p=e.get(u).getChildKeys();e.setIn([u,"children"],p.set(p.indexOf(r.getKey()),d))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],d),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return a(e.toArray().map((function(e){var t=o();return[t,e.set("key",t)]})))}(e)}},9585:(e,t,n)=>{"use strict";var r=n(1559),o=n(4814),a=n(6835);function i(e,t,n){var i=t.getCharacterList(),s=n>0?i.get(n-1):void 0,l=n<i.count()?i.get(n):void 0,c=s?s.getEntity():void 0,u=l?l.getEntity():void 0;if(u&&u===c&&"MUTABLE"!==e.__get(u).getMutability()){for(var d,p=function(e,t,n){var r;return o(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&a(!1),r}(i,u,n),f=p.start,h=p.end;f<h;)d=i.get(f),i=i.set(f,r.applyEntity(d,null)),f++;return t.set("characterList",i)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},a=t.getStartKey(),s=t.getStartOffset(),l=n.get(a),c=i(r,l,s);c!==l&&(o[a]=c);var u=t.getEndKey(),d=t.getEndOffset(),p=n.get(u);a===u&&(p=c);var f=i(r,p,d);return f!==p&&(o[u]=f),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},9214:(e,t,n)=>{"use strict";var r=n(7479),o=n(967),a=n(3112),i=(a.List,a.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},c=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};e.exports=function(e,t){if(t.isCollapsed())return e;var n,a=e.getBlockMap(),d=t.getStartKey(),p=t.getStartOffset(),f=t.getEndKey(),h=t.getEndOffset(),m=a.get(d),g=a.get(f),y=m instanceof r,v=[];if(y){var b=g.getChildKeys(),w=l(f,a);g.getNextSiblingKey()&&(v=v.concat(w)),b.isEmpty()||(v=v.concat(w.concat([f]))),v=v.concat(l(o(g,a),a))}n=m===g?function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}(m.getCharacterList(),p,h):m.getCharacterList().slice(0,p).concat(g.getCharacterList().slice(h));var E=m.merge({text:m.getText().slice(0,p)+g.getText().slice(h),characterList:n}),x=y&&0===p&&0===h&&g.getParentKey()===d&&null==g.getPrevSiblingKey()?i([[d,null]]):a.toSeq().skipUntil((function(e,t){return t===d})).takeUntil((function(e,t){return t===f})).filter((function(e,t){return-1===v.indexOf(t)})).concat(i([[f,null]])).map((function(e,t){return t===d?E:null})),C=a.merge(x).filter((function(e){return!!e}));return y&&m!==g&&(C=function(e,t,n,r){return e.withMutations((function(a){if(s(t.getKey(),a,(function(e){return e.merge({nextSibling:c(e,a,r),prevSibling:u(e,a,r)})})),s(n.getKey(),a,(function(e){return e.merge({nextSibling:c(e,a,r),prevSibling:u(e,a,r)})})),l(t.getKey(),r).forEach((function(e){return s(e,a,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return a.get(e)})),nextSibling:c(e,a,r),prevSibling:u(e,a,r)})}))})),s(t.getNextSiblingKey(),a,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),s(t.getPrevSiblingKey(),a,(function(e){return e.merge({nextSibling:c(e,a,r)})})),s(n.getNextSiblingKey(),a,(function(e){return e.merge({prevSibling:u(e,a,r)})})),s(n.getPrevSiblingKey(),a,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),l(n.getKey(),r).forEach((function(e){s(e,a,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return a.get(e)})),nextSibling:c(e,a,r),prevSibling:u(e,a,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=o(e,t);r&&t.get(r);){var a=t.get(r);n.push(r),r=a.getParentKey()?o(a,t):null}return n}(n,r).forEach((function(e){return s(e,a,(function(e){return e.merge({nextSibling:c(e,a,r),prevSibling:u(e,a,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();s(n.getKey(),a,(function(e){return e.merge({prevSibling:i})})),s(i,a,(function(e){return e.merge({nextSibling:n.getKey()})}));var d=i?e.get(i):null,p=d?d.getParentKey():null;if(t.getChildKeys().forEach((function(e){s(e,a,(function(e){return e.merge({parent:p})}))})),null!=p){var f=e.get(p);s(p,a,(function(e){return e.merge({children:f.getChildKeys().concat(t.getChildKeys())})}))}s(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),a,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))}(C,m,g,a)),e.merge({blockMap:C,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})}},4191:(e,t,n)=>{"use strict";var r=n(6651),o=n(811)("draft_tree_data_support");e.exports=function(e,t,n){var a=e.getSelection(),i=e.getCurrentContent(),s=a,l=a.getAnchorKey(),c=a.getFocusKey(),u=i.getBlockForKey(l);if(o&&"forward"===n&&l!==c)return i;if(a.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i;if(o&&a.getAnchorOffset()===i.getBlockForKey(l).getLength()){var d=i.getBlockForKey(u.nextSibling);if(!d||0===d.getLength())return i}}else if(e.isSelectionAtStartOfContent())return i;if((s=t(e))===a)return i}return r.removeRange(i,s,n)}},1088:e=>{"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},3605:(e,t,n)=>{"use strict";var r=n(4978),o=n(7565),a=n(2211),i=n(2462),s=n(2533),l=n(4878),c=n(6835),u=n(9345),d=a.isBrowser("IE");function p(e,t){if(!e)return"[empty]";var n=f(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(u(n)||c(!1),n.outerHTML)}function f(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return l(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var a=e.childNodes,i=0;i<a.length;i++)o.appendChild(f(a[i],t));return o}function h(e,t){for(var n=e,r=n;n;){if(u(n)&&r.hasAttribute("contenteditable"))return p(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function m(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function g(e,t,n,r){var a=s();if(e.extend&&null!=t&&i(a,t)){n>m(t)&&o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var l=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(i){throw o.logSelectionStateFailure({anonymizedDom:h(t,(function(t){var n=[];return t===a&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:a?a.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:l,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:i?""+i:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),i}}else if(t&&e.rangeCount>0){var c=e.getRangeAt(0);c.setEnd(t,n),e.addRange(c.cloneRange())}}function y(e,t,n,a){var i=l(t).createRange();if(n>m(t)&&(o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(a.toJS())}),r.handleExtensionCausedError()),i.setStart(t,n),d)try{e.addRange(i)}catch(e){}else e.addRange(i)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var a=l(t);if(i(a.documentElement,t)){var s=a.defaultView.getSelection(),c=e.getAnchorKey(),u=e.getAnchorOffset(),d=e.getFocusKey(),p=e.getFocusOffset(),f=e.getIsBackward();if(!s.extend&&f){var h=c,m=u;c=d,u=p,d=h,p=m,f=!1}var v=c===n&&r<=u&&o>=u,b=d===n&&r<=p&&o>=p;if(v&&b)return s.removeAllRanges(),y(s,t,u-r,e),void g(s,t,p-r,e);if(f){if(b&&(s.removeAllRanges(),y(s,t,p-r,e)),v){var w=s.focusNode,E=s.focusOffset;s.removeAllRanges(),y(s,t,u-r,e),g(s,w,E,e)}}else v&&(s.removeAllRanges(),y(s,t,u-r,e)),b&&g(s,t,p-r,e)}},addFocusToSelection:g}},3765:(e,t,n)=>{"use strict";var r=n(7479),o=n(298),a=n(3112),i=n(6835),s=n(5053),l=a.List,c=a.Map,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||i(!1);var n=t.getAnchorKey(),a=e.getBlockMap(),d=a.get(n),p=d.getText();if(!p){var f=d.getType();if("unordered-list-item"===f||"ordered-list-item"===f)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),m=d.getCharacterList(),g=o(),y=d instanceof r,v=d.merge({text:p.slice(0,h),characterList:m.slice(0,h)}),b=v.merge({key:g,text:p.slice(h),characterList:m.slice(h),data:c()}),w=a.toSeq().takeUntil((function(e){return e===d})),E=a.toSeq().skipUntil((function(e){return e===d})).rest(),x=w.concat([[n,v],[g,b]],E).toOrderedMap();return y&&(d.getChildKeys().isEmpty()||i(!1),x=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();u(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,a=t.toArray();return a.splice(n,0,o),e.merge({children:l(a)})})),u(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),u(r,e,(function(e){return e.merge({nextSibling:o})})),u(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(x,v,b)),e.merge({blockMap:x,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},7137:e=>{"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},638:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},6253:function(e){e.exports=function(){"use strict";function e(e,t){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&t(n,e[n])}var t={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function n(e){return e&&t[e]}function r(t){var n="";return e(t,(function(e,t){t&&(n+="".concat(e,":").concat(t,";"))})),n}function o(e,t){var n={};return e.COLOR[t]&&(n.COLOR=e.COLOR[t]),e.BGCOLOR[t]&&(n.BGCOLOR=e.BGCOLOR[t]),e.FONTSIZE[t]&&(n.FONTSIZE=e.FONTSIZE[t]),e.FONTFAMILY[t]&&(n.FONTFAMILY=e.FONTFAMILY[t]),e.UNDERLINE[t]&&(n.UNDERLINE=!0),e.ITALIC[t]&&(n.ITALIC=!0),e.BOLD[t]&&(n.BOLD=!0),e.STRIKETHROUGH[t]&&(n.STRIKETHROUGH=!0),e.CODE[t]&&(n.CODE=!0),e.SUBSCRIPT[t]&&(n.SUBSCRIPT=!0),e.SUPERSCRIPT[t]&&(n.SUPERSCRIPT=!0),n}function a(e,t,n){var r=!0;return n>0&&n<e.length?t.forEach((function(t){r=r&&e[t][n]===e[t][n-1]})):r=!1,r}function i(e,t,n,r){var o=e[t];if("function"==typeof r){var a=r(o,n);if(a)return a}if("MENTION"===o.type)return'<a href="'.concat(o.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(o.data.value,'">').concat(n,"</a>");if("LINK"===o.type){var i=o.data.targetOption||"_self";return'<a href="'.concat(o.data.url,'" target="').concat(i,'">').concat(n,"</a>")}if("IMAGE"===o.type){var s=o.data.alignment;return s&&s.length?'<div style="text-align:'.concat(s,';"><img src="').concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/></div>'):'<img src="'.concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/>')}return"EMBEDDED_LINK"===o.type?'<iframe width="'.concat(o.data.width,'" height="').concat(o.data.height,'" src="').concat(o.data.src,'" frameBorder="0"></iframe>'):n}function s(e,t,n,r){var i=[],s=Array.from(e.text);if(s.length>0)for(var l,c=function(e){var t=e.text,n=e.inlineStyleRanges,r={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};return n&&n.length>0&&n.forEach((function(e){for(var t=e.offset,n=t+e.length,o=t;o<n;o+=1)0===e.style.indexOf("color-")?r.COLOR[o]=e.style.substring(6):0===e.style.indexOf("bgcolor-")?r.BGCOLOR[o]=e.style.substring(8):0===e.style.indexOf("fontsize-")?r.FONTSIZE[o]=e.style.substring(9):0===e.style.indexOf("fontfamily-")?r.FONTFAMILY[o]=e.style.substring(11):r[e.style]&&(r[e.style][o]=!0)})),r}(e),u=n;u<r;u+=1)u!==n&&a(c,t,u)?(l.text.push(s[u]),l.end=u+1):(l={styles:o(c,u),text:[s[u]],start:u,end:u+1},i.push(l));return i}function l(t,n){var r=s(t,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],n.start,n.end),o="";return r.forEach((function(t){o+=function(t){var n,r=t.styles,o=(n=t.text)&&n.length>0?n.map((function(e){switch(e){case"\n":return"<br>";case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";default:return e}})).join(""):"";return e(r,(function(e,t){o=function(e,t){return"BOLD"===e?"<strong>".concat(t,"</strong>"):"ITALIC"===e?"<em>".concat(t,"</em>"):"UNDERLINE"===e?"<ins>".concat(t,"</ins>"):"STRIKETHROUGH"===e?"<del>".concat(t,"</del>"):"CODE"===e?"<code>".concat(t,"</code>"):"SUPERSCRIPT"===e?"<sup>".concat(t,"</sup>"):"SUBSCRIPT"===e?"<sub>".concat(t,"</sub>"):t}(e,o)})),o}(t)})),o=function(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';return e.COLOR&&(n+="color: ".concat(e.COLOR,";")),e.BGCOLOR&&(n+="background-color: ".concat(e.BGCOLOR,";")),e.FONTSIZE&&(n+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";")),e.FONTFAMILY&&(n+="font-family: ".concat(e.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(t,"</span>")}return t}(n.styles,o)}function c(e,t,n,r){var o=[],a=function(e,t){var n=[],r=0,o=e.entityRanges.map((function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}}));return(o=(o=o.concat(function(e,t){var n=[];if(t)for(var r=0,o=0,a=e,i=t.trigger||"#",s=t.separator||" ";a.length>0&&o>=0;)if(a[0]===i?(o=0,r=0,a=a.substr(i.length)):(o=a.indexOf(s+i))>=0&&(a=a.substr(o+(s+i).length),r+=o+s.length),o>=0){var l=a.indexOf(s)>=0?a.indexOf(s):a.length,c=a.substr(0,l);c&&c.length>0&&n.push({offset:r,length:c.length+i.length,type:"HASHTAG"}),r+=i.length}return n}(e.text,t))).sort((function(e,t){return e.offset-t.offset}))).forEach((function(e){e.offset>r&&n.push({start:r,end:e.offset}),n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),r=e.offset+e.length})),r<e.text.length&&n.push({start:r,end:e.text.length}),n}(e,n);return a.forEach((function(n,c){var u=function(e,t,n,r){var o=[];s(e,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach((function(t){o.push(l(e,t))}));var a=o.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(a=i(t,n.entityKey,a,r)):"HASHTAG"===n.type&&(a='<a href="'.concat(a,'" class="wysiwyg-hashtag">').concat(a,"</a>")),a}(e,t,n,r);0===c&&(u=function(e){if(e){for(var t=e,n=0;n<t.length&&" "===e[n];n+=1)t=t.replace(" ","&nbsp;");return t}return e}(u)),c===a.length-1&&(u=function(e){if(e){for(var t=e,n=t.length-1;n>=0&&" "===t[n];n-=1)t="".concat(t.substring(0,n),"&nbsp;").concat(t.substring(n+1));return t}return e}(u)),o.push(u)})),o.join("")}function u(e,t,o,a,i){var s,l=[],d=[];return e.forEach((function(e){var p=!1;if(s?s.type!==e.type?(l.push("</".concat(n(s.type),">\n")),l.push("<".concat(n(e.type),">\n"))):s.depth===e.depth?d&&d.length>0&&(l.push(u(d,t,o,a,i)),d=[]):(p=!0,d.push(e)):l.push("<".concat(n(e.type),">\n")),!p){l.push("<li");var f=r(e.data);f&&l.push(' style="'.concat(f,'"')),a&&l.push(' dir = "auto"'),l.push(">"),l.push(c(e,t,o,i)),l.push("</li>\n"),s=e}})),d&&d.length>0&&l.push(u(d,t,o,a,i)),l.push("</".concat(n(s.type),">\n")),l.join("")}return function(e,t,o,a){var s=[];if(e){var l=e.blocks,d=e.entityMap;if(l&&l.length>0){var p=[];if(l.forEach((function(e){if("unordered-list-item"===(h=e.type)||"ordered-list-item"===h)p.push(e);else{if(p.length>0){var l=u(p,d,t,a);s.push(l),p=[]}var f=function(e,t,o,a,s){var l=[];if(function(e){return!(!(e.entityRanges.length>0)||(t=e.text,null!=t&&0!==t.length&&0!==t.trim().length&&"atomic"!==e.type));var t}(e))l.push(i(t,e.entityRanges[0].key,void 0,s));else{var u=n(e.type);if(u){l.push("<".concat(u));var d=r(e.data);d&&l.push(' style="'.concat(d,'"')),a&&l.push(' dir = "auto"'),l.push(">"),l.push(c(e,t,o,s)),l.push("</".concat(u,">"))}}return l.push("\n"),l.join("")}(e,d,t,o,a);s.push(f)}var h})),p.length>0){var f=u(p,d,t,o,a);s.push(f),p=[]}}}return s.join("")}}()},1449:(e,t,n)=>{"use strict";var r,o=n(8467),a=n(3492);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var i=!!r&&a&&a(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=i&&"function"==typeof i.get?o([i.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},9173:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},3482:e=>{"use strict";e.exports=EvalError},9183:e=>{"use strict";e.exports=Error},7570:e=>{"use strict";e.exports=RangeError},9898:e=>{"use strict";e.exports=ReferenceError},7388:e=>{"use strict";e.exports=SyntaxError},7379:e=>{"use strict";e.exports=TypeError},4585:e=>{"use strict";e.exports=URIError},2430:e=>{"use strict";e.exports=Object},3092:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},6148:(e,t,n)=>{"use strict";var r=n(7066),o=n(4655),a=n(7546),i=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function l(e){if("file"==e.kind)return e.getAsFile()}var c=function(){function e(e){this.data=e,this.types=e.types?o(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(i,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var o=t[n].type;if(!r.isImage(o))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(l).filter(a.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=c},559:e=>{"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},7066:e=>{"use strict";var t={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var r=n(e);return t.isImage(e)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(e){return e.split("/")}e.exports=t},4654:e=>{"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n={getTop:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollTop=r.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:e.scrollLeft=n}};e.exports=n},2394:(e,t,n)=>{"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(7367),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},5310:e=>{"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟：-？！-／［-｀｛-･⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},8673:e=>{"use strict";var t=function(){function e(e){var t,n;n=void 0,(t="_uri")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},8106:(e,t,n)=>{"use strict";var r=n(7329),o=n(6835),a="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",i="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃǄ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ﬀ-ﬆﬓ-ﬗＡ-Ｚａ-ｚｦ-ｯｰｱ-ﾝﾞ-ﾟﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ"+a+i+"]"),l=new RegExp("["+a+i+"]");function c(e){var t=s.exec(e);return null==t?null:t[0]}function u(e){var t=c(e);return null==t?r.NEUTRAL:l.exec(t)?r.RTL:r.LTR}function d(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=u(e);return n===r.NEUTRAL?t:n}function p(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),d(e,t)}var f={firstStrongChar:c,firstStrongCharDir:u,resolveBlockDir:d,getDirection:p,isDirectionLTR:function(e,t){return p(e,t)===r.LTR},isDirectionRTL:function(e,t){return p(e,t)===r.RTL}};e.exports=f},7329:(e,t,n)=>{"use strict";var r=n(6835),o="LTR",a=null;function i(e){return e===o||"RTL"===e}function s(e){return i(e)||r(!1),e===o?"ltr":"rtl"}function l(e){a=e}var c={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:i,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return i(e)||r(!1),i(t)||r(!1),e===t?null:s(e)},setGlobalDir:l,initGlobalDir:function(){l(o)},getGlobalDir:function(){return a||this.initGlobalDir(),a||r(!1),a}};e.exports=c},8559:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8106),a=n(7329),i=n(6835),s=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?a.isStrong(e)||i(!1):e=a.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},9031:(e,t,n)=>{"use strict";var r=n(6835),o=/[\uD800-\uDFFF]/;function a(e){return 55296<=e&&e<=57343}function i(e){return o.test(e)}function s(e,t){return 1+a(e.charCodeAt(t))}function l(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!i(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=s(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=s(e,o-1);o<0&&(o=0)}var a=r;if(n<r)for(a=o;n>0&&a<r;n--)a+=s(e,a);return e.substring(o,a)}var c={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=s(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:s,hasSurrogateUnit:i,isCodeUnitInSurrogateRange:a,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||r(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),o=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!i(e))return e.length;for(var t=0,n=0;n<e.length;n+=s(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return l(e,t=t<n?t:n,r)},substr:l};e.exports=c},2211:(e,t,n)=>{"use strict";var r=n(6267),o=n(4462),a=n(9194),i=n(8824);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var a=n.slice(e.length);return!!t&&(a=r?r(a):a,o.contains(a,t))}function l(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var c={isBrowser:function(e){return s(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(r.browserArchitecture,null,e)},isDevice:function(e){return s(r.deviceName,null,e)},isEngine:function(e){return s(r.engineName,r.engineVersion,e)},isPlatform:function(e){return s(r.platformName,r.platformFullVersion,e,l)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=a(c,i)},6267:(e,t,n)=>{"use strict";var r,o="Unknown",a=(new(n(2603))).getResult(),i=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),s={browserArchitecture:a.cpu.architecture||o,browserFullVersion:a.browser.version||o,browserMinorVersion:i.minor||o,browserName:a.browser.name||o,browserVersion:a.browser.major||o,deviceName:a.device.model||o,engineName:a.engine.name||o,engineVersion:a.engine.version||o,platformArchitecture:a.cpu.architecture||o,platformName:(r=a.os.name,{"Mac OS":"Mac OS X"}[r]||r||o),platformVersion:a.os.version||o,platformFullVersion:a.os.version||o};e.exports=s},4462:(e,t,n)=>{"use strict";var r=n(6835),o=/\./,a=/\|\|/,i=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,l=/^(\d*)(.*)/;function c(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),a=p(e),i=a.modifier,s=a.rangeComponents;switch(i){case"<":return u(r,s);case"<=":return-1===(n=v(r,s))||0===n;case">=":return d(r,s);case">":return 1===v(r,s);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,a=parseInt(r[o],10);return f(a)&&(r[o]=a+1+""),d(e,n)&&u(e,r)}(r,s);default:return function(e,t){return 0===v(e,t)}(r,s)}}function u(e,t){return-1===v(e,t)}function d(e,t){var n=v(e,t);return 1===n||0===n}function p(e){var t=e.split(o),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function f(e){return!isNaN(e)&&isFinite(e)}function h(e){return!p(e).modifier}function m(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function g(e,t){var n=e.match(l)[1],r=t.match(l)[1],o=parseInt(n,10),a=parseInt(r,10);return f(o)&&f(a)&&o!==a?y(o,a):y(e,t)}function y(e,t){return typeof e!=typeof t&&r(!1),e>t?1:e<t?-1:0}function v(e,t){for(var n=function(e,t){m(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return m(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],a=0;a<o.length;a++){var i=g(r[a],o[a]);if(i)return i}return 0}var b={contains:function(e,t){return function(e,t){var n=e.split(a);return n.length>1?n.some((function(e){return b.contains(e,t)})):function(e,t){var n=e.split(i);if(n.length>0&&n.length<=2||r(!1),1===n.length)return c(n[0],t);var o=n[0],a=n[1];return h(o)&&h(a)||r(!1),c(">="+o,t)&&c("<="+a,t)}(e=n[0].trim(),t)}(e.trim(),t.trim())}};e.exports=b},227:e=>{"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,(function(e,t){return t.toUpperCase()}))}},2462:(e,t,n)=>{"use strict";var r=n(2832);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},4655:(e,t,n)=>{"use strict";var r=n(6835);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}(e):[e]}},2668:e=>{"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},7546:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},2533:e=>{"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},6503:e=>{"use strict";var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},5384:(e,t,n)=>{"use strict";var r=n(9385);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},9385:(e,t,n)=>{"use strict";var r=n(2462);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},1489:(e,t,n)=>{"use strict";var r=n(6503),o=n(3001);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),a=e===t?e.ownerDocument.documentElement:e,i=e.scrollWidth-a.clientWidth,s=e.scrollHeight-a.clientHeight;return n.x=Math.max(0,Math.min(n.x,i)),n.y=Math.max(0,Math.min(n.y,s)),n}},7367:(e,t,n)=>{"use strict";var r=n(227),o=n(2439);function a(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return a(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return a(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?a("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):a(e.style&&e.style[r(t)])}},3001:e=>{"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},2400:e=>{"use strict";function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function n(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function r(){return{width:window.innerWidth||t(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:t(),height:n()}},e.exports=r},2439:e=>{"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},6835:e=>{"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(a=new Error(t.replace(/%s/g,(function(){return String(r[i++])})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},5807:e=>{"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},2832:(e,t,n)=>{"use strict";var r=n(5807);e.exports=function(e){return r(e)&&3==e.nodeType}},5463:e=>{"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}},9194:e=>{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,n,r){if(!e)return null;var o={};for(var a in e)t.call(e,a)&&(o[a]=n.call(r,e[a],a,e));return o}},8824:e=>{"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},1799:e=>{"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},5258:(e,t,n)=>{"use strict";n(6080),e.exports=n.g.setImmediate},2775:(e,t,n)=>{"use strict";var r=n(7546);e.exports=r},1777:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,o.length-i.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(a=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof a){var t=o.apply(this,r(i,arguments));return Object(t)===t?t:this}return o.apply(e,r(i,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,a.prototype=new u,u.prototype=null}return a}},3583:(e,t,n)=>{"use strict";var r=n(1777);e.exports=Function.prototype.bind||r},211:(e,t,n)=>{"use strict";var r,o=n(2430),a=n(9183),i=n(3482),s=n(7570),l=n(9898),c=n(7388),u=n(7379),d=n(4585),p=n(2276),f=n(2153),h=n(457),m=n(1179),g=n(5985),y=Function,v=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},b=n(3492),w=n(9173),E=function(){throw new u},x=b?function(){try{return E}catch(e){try{return b(arguments,"callee").get}catch(e){return E}}}():E,C=n(7657)(),_=n(1449),S="function"==typeof Reflect&&Reflect.getPrototypeOf||o.getPrototypeOf||_,O=n(7987),k=n(4151),N={},M="undefined"!=typeof Uint8Array&&S?S(Uint8Array):r,A={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&S?S([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":N,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&S?S(S([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&S?S((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&S?S((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&S?S(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":x,"%TypedArray%":M,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":w,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g};if(S)try{null.error}catch(e){var D=S(S(e));A["%Error.prototype%"]=D}var I=function e(t){var n;if("%AsyncFunction%"===t)n=v("async function () {}");else if("%GeneratorFunction%"===t)n=v("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=v("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&S&&(n=S(o.prototype))}return A[t]=n,n},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(3583),L=n(9914),P=T.call(k,Array.prototype.concat),R=T.call(O,Array.prototype.splice),F=T.call(k,String.prototype.replace),B=T.call(k,String.prototype.slice),z=T.call(k,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,H=function(e,t){var n,r=e;if(L(j,r)&&(r="%"+(n=j[r])[0]+"%"),L(A,r)){var o=A[r];if(o===N&&(o=I(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return F(e,q,(function(e,t,n,o){r[r.length]=n?F(o,U,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=H("%"+r+"%",t),a=o.name,i=o.value,s=!1,l=o.alias;l&&(r=l[0],R(n,P([0,1],l)));for(var d=1,p=!0;d<n.length;d+=1){var f=n[d],h=B(f,0,1),m=B(f,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==f&&p||(s=!0),L(A,a="%"+(r+="."+f)+"%"))i=A[a];else if(null!=i){if(!(f in i)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(b&&d+1>=n.length){var g=b(i,f);i=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:i[f]}else p=L(i,f),i=i[f];p&&!s&&(A[a]=i)}}return i}},668:(e,t,n)=>{"use strict";e.exports=n(6497),e.exports=n(4680)},4680:(e,t,n)=>{"use strict";n.d(t,{BuilderProvider:()=>Ne,FormBuilder:()=>Ho,GenericInput:()=>jt,isArray:()=>te,isObject:()=>ne,merge:()=>pe,useBuilder:()=>Re,useBuilderContext:()=>Me,useOptions:()=>Ae,validFieldProps:()=>ue,valueExists:()=>re,when:()=>be,withLabel:()=>Ze,wpFetch:()=>Z});var r=n(1609),o=n.n(r);const a=window.wp.data;var i=n(7723),s=n(3867),l=n.n(s),c=n(1455),u=n.n(c);const d=window.lodash,p=window.wp.date,f=window.moment;var h=n.n(f),m=n(2619),g=n(7500),y=n.n(g),v=(n(1419),n(8552)),b=n(6427),w=n(3042),E=n.n(w),x=n(4417),C=n(1330),_=n(6253),S=n.n(_),O=n(3622),k=n.n(O);const N=window.wp.mediaUtils;var M,A=n(3291),D=n.n(A),I=n(1336),j=new Uint8Array(16);function T(){if(!M&&!(M="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return M(j)}const L=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var P=[],R=0;R<256;++R)P.push((R+256).toString(16).substr(1));const F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(P[e[t+0]]+P[e[t+1]]+P[e[t+2]]+P[e[t+3]]+"-"+P[e[t+4]]+P[e[t+5]]+"-"+P[e[t+6]]+P[e[t+7]]+"-"+P[e[t+8]]+P[e[t+9]]+"-"+P[e[t+10]]+P[e[t+11]]+P[e[t+12]]+P[e[t+13]]+P[e[t+14]]+P[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&L.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},B=function(e,t,n){var r=(e=e||{}).random||(e.rng||T)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return F(r)};var z=n(726);z.domToReact,z.htmlToDOM,z.attributesToProps,z.Comment,z.Element,z.ProcessingInstruction,z.Text;const q=z;var U=n(5798),H=n(5795);function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t,n){return(t=function(e){return e=function(e){if("object"!=V(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=V(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),"symbol"==V(e)?e:e+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){var n;if(e)return"string"==typeof e?G(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}function Y(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||W(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z=function(e){return e=$($({},e),{},{method:"POST"}),u()(e)},J=function(e){return null!==e&&"string"==typeof e},X=function(e){return String(Math.floor(Number(e)))===e},ee=function(e){return null!==e&&"function"==typeof e},te=function(e){return null!==e&&"object"===V(e)&&Array.isArray(e)},ne=function(e){return null!==e&&"object"===V(e)&&!te(e)},re=function(e,t){return te(t)?e.some((function(e){return t.includes(e)})):e.includes(t)},oe=function(e,t){return null==t||!t.rules||null==t.name||(t=be(t.rules,e),Boolean(t))},ae=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},ie=function(e,t,n,r){void 0===r&&(r=0);for(var o=(0,d.toPath)(t);e&&r<o.length;)e=e[o[r++]];return void 0===e?n:e},se=function(e){return[].concat(e).sort((function(e,t){return null==e.priority||null==t.priority?0:e.priority>t.priority?1:-1}))},le=function(e,t){var n=t,r=e;if(!J(e)){e.persist&&e.persist();var o=(e=e.target||e.currentTarget).type,a=e.value,i=e.checked,s=e.multiple;switch(n=t||e.name,o){case"number":case"range":r=parseFloat(a);break;case"checkbox":r=s?a:i;break;default:r=a}}return{field:n,val:r}},ce=function(e,t,n){for(var r=(0,d.clone)(e),o=r,a=0,i=(0,d.toPath)(t);a<i.length-1;a++){var s=i[a],l=ie(e,i.slice(0,a+1));o=l&&(ne(l)||Array.isArray(l))?o[s]=(0,d.clone)(l):(l=i[a+1],o[s]=X(l)&&0<=Number(l)?[]:{})}return(0===a?e:o)[i[a]]===n?e:(void 0===n?delete o[i[a]]:o[i[a]]=n,0===a&&void 0===n&&delete r[i[a]],r)},ue=function(e){var t=e.type,n=["validation_rules","default","rules","meta","switch"].concat(Y(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]));return"select"!==t&&"checkbox-select"!==t&&"select-async"!==t&&"radio-card"!==t&&"checkbox"!==t&&"toggle"!==t&&e.multiple&&n.push("options"),"tab"!==t&&"group"!==t&&"repeater"!==t&&"section"!==t&&"button"!==t&&n.push("fields"),t=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),a=0;a<o.length;a++)n=o[a],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,n),null==e||!e.label||null!=e&&e.placeholder||(t.placeholder=e.label),t},de=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=(0,p.__experimentalGetSettings)();return h().utc(e||void 0).utcOffset(+(null==n||null==(e=n.timezone)?void 0:e.offset),t)},pe=function(e,t,n){var r=Y(e);return e=t.filter((function(e){return r.findIndex((function(t){return t[n]===e[n]}))<=-1})),[].concat(Y(r),Y(e))},fe=function(e){return"function"==typeof Symbol&&"symbol"===V(Symbol.iterator)||!e||"function"!=typeof Symbol||e.constructor!==Symbol||e===Symbol.prototype?V(e):"symbol"},he=function(e,t){var n=!(2<(arguments.length<=2?0:arguments.length-2)&&void 0!==(arguments.length<=4?void 0:arguments[4]))||arguments.length<=4?void 0:arguments[4];return String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((function(e,t){return e&&Object.hasOwnProperty.call(e,t)?e[t]:n}),e)},me={is:function(e,t,n){return he(n,e)==t},"!is":function(e,t,n){return!me.is(e,t,n)},includes:function(e,t,n){if(!ae(n)&&(n=he(n,e),"function"!=fe(n))){if(te(t)&&te(n))return null==(e=l()(n,t))?void 0:e.length;if(te(t)&&"string"==fe(n))return t.includes(n);if(te(n)&&"string"==fe(t))return n.includes(t)}return!1},"!includes":function(e,t,n){return!me.includes(e,t,n)},isOfType:function(e,t,n){return fe(he(n,e))===t},"!isOfType":function(e,t,n){return!me.isOfType(e,t,n)},allOf:function(e,t,n){var r;if(Array.isArray(t))return r=he(n,e),t.every((function(e){return r.includes(e)}));throw Error((0,i.__)('"allOf" condition requires an array as #3 argument',"betterdocs"))},anyOf:function(e,t,n){if(Array.isArray(t))return n=he(n,e),t.includes(n);throw Error((0,i.__)('"anyOf" condition requires an array as #3 argument',"betterdocs"))},gt:function(e,t,n){return he(n,e)>t},gte:function(e,t,n){return he(n,e)>=t},lt:function(e,t,n){return he(n,e)<t},lte:function(e,t,n){return he(n,e)<=t}},ge={and:function(e){return!e.includes(!1)},or:function(e){return e.includes(!0)},not:function(e){if(1!==e.length)throw Error((0,i.__)('"not" can have only one comparison rule, multiple rules given',"betterdocs"));return!e[0]}},ye=function(e){return!!(Array.isArray(e)&&Array.isArray(e[1])&&e[0]&&ge[e[0].toLowerCase()])},ve=function(e,t){var n=e[0],r=e[1];if(e=e[2],"string"!=typeof n||void 0===me[n])throw Error((0,i.sprintf)((0,i.__)("Invalid comparison rule %s.","betterdocs"),n));return me[n](r,e,t)},be=function(e,t){return"function"==typeof e?Promise.resolve(e(t)):function(e,t){return ye(e)?function(e,t){return ge[e.toLowerCase()](t)}(e.slice(0,1)[0],e.slice(1).map((function(e,n){return(ye(e)?be:ve)(e,t)}))):ve(e,t)}(e,t)};function we(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xe={savedValues:{type:"conversions",source:"edd"},values:{},touched:{},errors:{}},Ce={reducer:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:xe,t=1<arguments.length?arguments[1]:void 0;switch(t.type){case"SET_SAVED_VALUES":var n=Ee({},e);return Ee(Ee({},n),{},{values:t.payload,savedValues:t.payload});case"FIELD_VALUE":n=Ee({},e);var r=t.payload;return Ee(Ee({},n),{},{values:Ee(Ee({},null==n?void 0:n.values),r)});case"REMOVE_FIELD_VALUE":return n=Ee({},e),r=t.payload,null!=(o=n.values)&&o[r]&&delete n.values[r],n;case"RESET_FIELD_VALUE":var o=Ee({},e);return null!=(r=o.values)&&r[t.payload]&&(delete o.values[t.payload],null!=(n=o.savedValues))&&n[t.payload]&&(o.values[t.payload]=o.savedValues[t.payload]),o;case"FIELD_ERROR":return Ee(Ee({},e),{},{errors:Ee(Ee({},e.errors),t.payload)});case"REMOVE_FIELD_ERROR":return delete(r=Ee({},e)).errors[t.payload],r;case"FIELD_TOUCHED":return Ee(Ee({},e),{},{touched:Ee(Ee({},e.touched),t.payload)})}return e},actions:{setSavedValues:function(e){return{type:"SET_SAVED_VALUES",payload:e}},setFieldValue:function(e){return{type:"FIELD_VALUE",name:e.name,payload:e.value}},removeFieldValue:function(e){return{type:"REMOVE_FIELD_VALUE",payload:e}},resetFieldValue:function(e){return{type:"RESET_FIELD_VALUE",payload:e}},setFieldTouched:function(e){return{type:"FIELD_TOUCHED",payload:e}},setError:function(e){return{type:"FIELD_ERROR",payload:e}},removeError:function(e){return{type:"REMOVE_FIELD_ERROR",payload:e}}},selectors:{getValues:function(e){return e.values},getFieldValue:function(e,t){return null==(e=e.values)?void 0:e[t]},getSavedFieldValue:function(e,t,n){var r;return(null===n||(null==(r=e.savedValues)?void 0:r[n])===(null==(r=e.values)?void 0:r[n]))&&(null==(r=e.savedValues)?void 0:r[t])},isTouched:function(e,t){return null==(e=e.touched)?void 0:e[t]},getError:function(e,t){return null==(e=e.errors)?void 0:e[t]},isVisible:function(e,t){return!t.rules||null==t.name||(t=be(t.rules,e.values),Boolean(t))}}};function _e(){return(_e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)!{}.hasOwnProperty.call(r,n)||(e[n]=r[n])}return e}).apply(null,arguments)}function Se(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,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||W(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};var n,r={};for(n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}var ke=(0,r.createContext)(void 0),Ne=(ke.displayName="Anonymous",ke.Provider);function Me(){return(0,r.useContext)(ke)}ke.Consumer;var Ae=function(e){var t,n,o,a,i,s,l,c,u,d,p,f,h,m,g=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"fields";if(null!=e&&e[g])return t=e.value,n=e.multiple,o=Me(),u=Se((0,r.useState)(e[g]),2),a=u[0],i=u[1],u=Se((0,r.useState)([]),2),s=u[0],l=u[1],u=Se((0,r.useState)({options:null,parentIndex:null}),2),c=u[0],u=u[1],f=Se((0,r.useState)(null),2),d=f[0],p=f[1],f=Se((0,r.useState)(null),2),h=f[0],m=f[1],(0,r.useEffect)((function(){var r=e.ajax&&(null==(r=o.getTabFields(null==e?void 0:e.parentIndex))?void 0:r[g])||a;l(o.eligibleOptions(r)),p(o.eligibleOption(r,t,null!=n&&n))}),[t,a]),(0,r.useEffect)((function(){i(e[g]),l(o.eligibleOptions(e[g]))}),[e]),(0,r.useEffect)((function(){l(o.eligibleOptions(a))}),[a]),(0,r.useEffect)((function(){null!=c.options&&i(c.options)}),[c]),(0,r.useEffect)((function(){var e;null!=d&&(e=n?te(d)&&d.map((function(e){return e.value}))||t:d.value||t,m(e))}),[d]),(0,r.useEffect)((function(){var e;0===s.filter((function(e){return e.value===h})).length&&(e=se(s),m((null==e||null==(e=e[0])?void 0:e.value)||t))}),[h,s]),{options:se(s),option:h,selectedOption:d,setOptions:l,setData:u,setSelectedOption:p};throw new Error("#options param need to set in order to use useOptions hook.")};function De(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(Object.assign||function(e){for(var n=1;n<t.length;n++){var r,o=t[n];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,t)}function Ie(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=function(e,t){switch(t.type){case"SET_CONTEXT":return De({},e,ce(e,t.payload.field,t.payload.value));case"SET_ACTIVE_TAB":return je(je({},e),{},{config:je(je({},e.config),{},{active:t.payload})});case"SET_REDIRECT":return je(je({},e),{},{redirect:je(je({},e.redirect),t.payload)});case"SET_VALUES":return De({},e,ce(e,"values",t.payload));case"SET_SAVED_VALUES":return De({},e,ce(e,"savedValues",t.payload));case"SET_FIELD_VALUE":return De({},e,{values:ce(e.values,t.payload.field,t.payload.value)});case"SET_TOUCHED":return De({},e,{touched:t.payload});case"SET_ERRORS":return De({},e,{errors:t.payload});case"SET_STATUS":return De({},e,{status:t.payload});case"SET_ISSUBMITTING":return je(je({},e),{},{isSubmitting:t.payload});case"SET_ISVALIDATING":return De({},e,{isValidating:t.payload});case"SET_FIELD_TOUCHED":return je(je({},e),{},{touched:je(je({},e.touched),{},K({},t.payload.field,t.payload.value))});case"SET_FIELD_ERROR":case"RESET_FORM":return De({},e,t.payload);case"SUBMIT_ATTEMPT":return De({},e,{isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return De({},e,{isSubmitting:!1});case"SET_FORM_FIELD":return null===t.payload.field?De({},e,ce(e,"tabs",t.payload.value)):De({},e,{tabs:ce(e.tabs,t.payload.field,t.payload.value)});case"SET_ICONS":return De({},e,{icons:ce(e.icons,t.payload.name,t.payload.icons)});case"SET_ALERTS":return De({},e,{alerts:ce(e.alerts,t.payload.name,t.payload.value)});case"SET_COMMONS":return De({},e,{common:ce(e.common,t.payload.name,t.payload.value)});default:return e}};function Le(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Re=function(e){var t=(0,r.useRef)(!1);(0,r.useEffect)((function(){return t.current=!0,function(){t.current=!1}}),[]);var n=(a=Se((0,r.useReducer)(Te,Pe(Pe({},e),{},{savedValues:e.savedValues||{},values:e.values||{},errors:e.initialErrors||{},touched:e.initialTouched||{},icons:e.initialIcons||{},common:{},alerts:{},tabs:se(e.tabs)})),2))[0],o=a[1],a=Be((function(e,t,n){o({type:"SET_CONTEXT",payload:{field:e,value:t}})})),i=Be((function(e,t){return e="function"==typeof e?e(n.values):e,o({type:"SET_VALUES",payload:e}),void 0!==t&&t?e:Promise.resolve()})),s=Be((function(e,t){return e="function"==typeof e?e(n.values):e,o({type:"SET_SAVED_VALUES",payload:e}),void 0!==t&&t?e:Promise.resolve()})),l=Be((function(e,t,n){o({type:"SET_FIELD_VALUE",payload:{field:e,value:t}})})),c=Be((function(e,t){o({type:"SET_FORM_FIELD",payload:{field:e,value:t}})})),u=(0,r.useCallback)((function(e){return ie(n.values,e)}),[n]),d=Be((function(e,t,n){o({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t=t||!0}})})),p=(0,r.useCallback)((function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=(e.persist&&e.persist(),e=e.target).name;d(t||n||e.id,!0)}),[d]),f=Be((function(e){if("string"==typeof e)return function(t){return p(t,e)};p(e)})),h=(0,r.useCallback)((function(e,t,r){null!=r&&r.isPro&&!1===Boolean(n.is_pro_active)||(t=(e=le(e,t)).field,e=e.val,t&&(l(t,(0,m.applyFilters)("quickBuilder_fieldValue",e,t)),(0,m.doAction)("quickBuilder_setFieldValue",t,e,r)))}),[l,n.values]),g=Be((function(e,t){var r;if(null!=t&&t.isPro&&!1===Boolean(n.is_pro_active)&&null!=(r=n.alerts)&&null!=(r=r.pro_alert(null==t?void 0:t.popup))&&r.fire(),null==t||!t.isLicenseActive||!1!==Boolean(n.is_license_active))return"string"==typeof e?function(n){return h(e,n,t)}:void h(e,null,t);null!=(r=n.alerts)&&null!=(r=r.licenseInactiveAlert(null==t?void 0:t.popup))&&r.fire()})),y=(0,r.useCallback)((function(e){var t=Pe({},e),r=ue(t),o=r.name,a=r.type,i=r.parent,s=r.parenttype,l=(null!=t&&t.is_pro&&(r.is_pro=!(null!=t&&t.is_pro&&!0===Boolean(n.is_pro_active))),i=i&&"group"===s?null!=(l=null==(l=null!=(l=ie(n.values,i))?l:{})?void 0:l[o])?l:null==t?void 0:t.default:i&&"repeater"===s?null!=(l=null==(s=null!=(l=ie(n.values,i))?l:[])||null==(i=s[r.index])?void 0:i[o])?l:null==t?void 0:t.default:null!=(s=ie(n.values,o))?s:null==t?void 0:t.default,r.onChange=g,r.onBlur=f,r.value);return"checkbox"!==a||r.multiple?"radio"===a?(r.checked=i===l,r.value=l):r.value="date"===a&&null==i?de():i:(r.checked=!!i,r.value=!!i,J(i)&&"0"===i?(r.checked=!1,r.value=!1):(r.checked=Boolean(i),r.value=Boolean(i))),r.visible=oe(n.values,e),r}),[f,g,n.values]),v=(0,r.useCallback)((function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return r=null!==r?null==(r=ie(n.values,r))?void 0:r[e]:ie(n.values,e)||(null==(r=t.meta)?void 0:r.default),Pe(Pe({},t.meta),{},{value:r,error:ie(n.errors,e),touched:!!ie(n.touched,e),visible:oe(n.values,t),initialValue:"",initialTouched:"",initialError:""})}),[n.errors,n.touched,n.values]),b=(0,r.useCallback)((function(e){return 0<e.length?e.filter((function(e){return null!=e&&e.rules?be(e.rules,n.values):e})):e}),[n.errors,n.touched,n.values]),w=(0,r.useCallback)((function(e,t){var n;return e.length?(n=[],2<arguments.length&&void 0!==arguments[2]&&arguments[2]&&te(t)?e.filter((function(e){return t.includes(e.value)})):0<(n=e.filter((function(e){return e.value==t}))).length?n[0]:""):e}),[n.errors,n.touched,n.values]),E=(0,r.useCallback)((function(){return{setValue:function(e,t){return l(e,t)},getValue:function(e){return ie(n.values,e)},getValueForDefault:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return(null===t||ie(n.savedValues,t)===ie(n.values,t))&&ie(n.savedValues,e)}}}),[n.errors,n.touched,n.values,n.savedValues]),x=(0,r.useCallback)((function(e){return ie(n.tabs,e)}),[n]),C=Be((function(e){o({type:"SET_ISSUBMITTING",payload:e})})),_=Be((function(e){o({type:"SET_ACTIVE_TAB",payload:e})})),S=Be((function(e){o({type:"SET_REDIRECT",payload:e})})),O=Be((function(e,t){o({type:"SET_ICONS",payload:{name:e,icons:t}})})),k=Be((function(e,t){o({type:"SET_COMMONS",payload:{name:e,value:t}})})),N=Be((function(e,t){o({type:"SET_ALERTS",payload:{name:e,value:t}})}));return Pe(Pe(Pe({},e),n),{},{setContext:a,values:n.values,savedValues:n.savedValues,errors:n.errors,touched:n.touched,isSubmitting:null!=(e=null==n?void 0:n.isSubmitting)&&e,setActiveTab:_,setRedirect:S,setSubmitting:C,setValues:i,setSavedValues:s,setFieldValue:l,getFieldValue:u,handleBlur:f,handleChange:g,getFieldProps:y,getFieldMeta:v,getFieldHelpers:E,eligibleOptions:b,eligibleOption:w,getTabFields:x,setFormField:c,registerIcons:O,registerCommon:k,registerAlert:N})},Fe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Be=function(e){var t=(0,r.useRef)(e);return Fe((function(){t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o=arguments.length,a=(n=new Array(o),0);a<o;a++)n[a]=arguments[a];return t.current.apply(void 0,n)}),[])},ze=function(e){var t=y()("wprf-row clearfix wprf-flex",null==e?void 0:e.className);return(0,r.createElement)("div",{className:t},null==e?void 0:e.children)},qe=function(e){var t=y()("wprf-column",null==e?void 0:e.className,K(K({},"wprf-column-".concat(12/(null==e?void 0:e.column)),(null==e?void 0:e.column)&&12!==e.column),"wprf-column-12",12===e.column));return(0,r.createElement)("div",{className:t},null==e?void 0:e.children)},Ue=function(e){var t=y()("wprf-input-label",null==e?void 0:e.className);return(0,r.createElement)("label",{htmlFor:null==e?void 0:e.htmlFor,className:t},(null==e||null==(t=e.badge)?void 0:t.value)&&(0,r.createElement)("div",{className:"wprf-badge"},(0,r.createElement)("sup",{className:y()("wprf-badge-item",{"wprf-badge-active":null==e||null==(t=e.badge)?void 0:t.active})},null==e||null==(t=e.badge)?void 0:t.label)),!(null!=e&&e.src)&&(null==e?void 0:e.children),(null==e?void 0:e.src)&&(0,r.createElement)(He,{className:"wprf-label-image",src:e.src,alt:null==e?void 0:e.label}))},He=function(e){var t;return null!=e&&e.src?(t=y()(["wprf-input-image",null==e?void 0:e.className]),(0,r.createElement)("img",{className:t,src:null==e?void 0:e.src,alt:null==e?void 0:e.alt})):(0,r.createElement)("p",null,"No Source( src ) Defined")},Ve=function(e){var t=e.componentClasses;return e=e.label,(0,r.createElement)("div",{className:"wprf-badge"},(0,r.createElement)("span",{className:"wprf-badge-icon"},(0,r.createElement)("i",{className:"btd-icon btd-crown"})),(0,r.createElement)("span",{className:t},e))},Ke=function(e){var t=Me(),n=e.label,o=void 0===(o=e.position)?"right":o,a=e.renderLabel,i=e.renderComponent,s=void 0!==(s=e.disabled)&&s,l=(void 0===n&&(n="Pro"),y()("wprf-badge-item",{"wprf-badge-active":e.active})),c={};return t.is_pro_active||(c={onClick:function(n){n.preventDefault(),t.alerts.pro_alert(null==e?void 0:e.popup).fire()}}),(0,r.createElement)("div",_e({className:y()("wprf-badge-wrapper",{"pro-deactivated":!t.is_pro_active||s})},c),"left"===o&&0<n.length&&(0,r.createElement)(r.Fragment,null,a((0,r.createElement)(Ve,{componentClasses:l,label:n}),"left")),"right"===o&&0<n.length&&(0,r.createElement)(r.Fragment,null,a((0,r.createElement)(Ve,{componentClasses:l,label:n}),"right")),i())},Ge=["id","label","badge","badgePosition","context"],We=function(e){var t=e.id,n=e.label,o=e.badge,a=e.badgePosition,i=e.context;return e=Oe(e,Ge),n&&0<n.length?(0,r.createElement)("div",{className:"wprf-control-label"},o?(0,r.createElement)("div",{className:"wprf-label-with-badge"},"left"==a&&o,(0,r.createElement)("label",{htmlFor:t},n),"right"==a&&o):(0,r.createElement)("label",{htmlFor:t},n),(null==e?void 0:e.label_subtitle)&&(0,r.createElement)("p",{className:"wprf-label-subtitle",dangerouslySetInnerHTML:{__html:null==e?void 0:e.label_subtitle}}),(null==e?void 0:e.link)&&(0,r.createElement)("a",{rel:"nofollow",target:"_blank",href:e.link},null==i||null==(a=i.icons)?void 0:a.link)):null},Ye=function(e){var t=e.position,n=e.description,o=e.renderComponent,a=e.help,s=void 0!==(u=e.enableDisableActive)&&u,l=void 0===(u=e.type)?void 0:u,c=void 0!==(u=e.value)&&u,u=(e=Se((0,r.useState)(n),2))[0],d=e[1];return(0,r.useEffect)((function(){"toggle"===l&&s&&d((0,i.sprintf)((0,i.__)(c?"Enabled %s":"Disabled %s","betterdocs"),null!=n?n:""))}),[c]),(0,r.createElement)("div",{className:"wprf-control-field"},"left"===t&&u&&(0,r.createElement)("p",{className:"wprf-description",dangerouslySetInnerHTML:{__html:u}}),o(),"right"===t&&u&&(0,r.createElement)("p",{className:"wprf-description",dangerouslySetInnerHTML:{__html:u}}),a&&(0,r.createElement)("p",{className:"wprf-help",dangerouslySetInnerHTML:{__html:a}}))},Qe=["label","id","name","type","style","is_pro","badge","value","disabled","enable_disable_text_active"];function $e(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}var Ze=function(e){return function(t){var n,o=t.label,a=t.id,i=t.name,s=t.type,l=t.style,c=t.is_pro,u=t.badge,d=t.value,p=void 0!==(p=t.disabled)&&p,f=t.enable_disable_text_active,h=void 0!==f&&f,m=Oe(t,Qe),g=(null==a&&(a=i),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({description:{position:"right"}},l));return l=y()(K(K(K({},"wprf-style-".concat(null==g?void 0:g.type),(null==g?void 0:g.type)||!1),"wprf-label-none",void 0===o||""===o||0===o.length),"wprf-".concat((null==g||null==(f=g.label)?void 0:f.position)||"inline","-label"),(null==(f=null==g||null==(l=g.label)?void 0:l.position)||f)&&null!=o)),"hidden"===s?(0,r.createElement)(e,_e({},t,{id:a})):(n=ue(t,["description","label","help","style","disabled"]),f=y()("wprf-control-wrapper","wprf-type-".concat(s),l,null==t?void 0:t.classes,K({},"wprf-name-".concat(i),i)),(0,r.createElement)("div",{className:f},(1==c||1==p)&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Ke,_e({},u,m,{disabled:p,renderLabel:function(e,t){return(0,r.createElement)(We,_e({},n,{context:null==m?void 0:m.context,id:a,label:o,badge:e,badgePosition:t}))},renderComponent:function(){var o;return(0,r.createElement)(Ye,{help:null,description:null==t?void 0:t.description,position:null==g||null==(o=g.description)?void 0:o.position,type:s,value:d,enableDisableActive:h,renderComponent:function(){return(0,r.createElement)(e,_e({},n,{disable:!0,id:a}))}})}})),(null==t?void 0:t.help)&&(0,r.createElement)("div",{className:"wprf-badge-wrapper"},(0,r.createElement)("div",{className:"wprf-control-label"}),(0,r.createElement)("div",{className:"wprf-control-field"},(0,r.createElement)("p",{className:"wprf-help",dangerouslySetInnerHTML:{__html:t.help}})))),(0==c||null==c)&&0==p&&(0,r.createElement)(r.Fragment,null,o&&0<o.length&&(0,r.createElement)(We,_e({},n,{context:null==m?void 0:m.context,label:o,id:a})),(0,r.createElement)(Ye,{help:null==t?void 0:t.help,description:null==t?void 0:t.description,position:null==g||null==(l=g.description)?void 0:l.position,type:s,value:d,enableDisableActive:h,renderComponent:function(){return(0,r.createElement)(e,_e({},n,{id:a}))}}))))}},Je=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return function(n){var o=Me(),a=n.trigger,i=o.getFieldProps(n),s=o.getFieldMeta(i.name,n),l=o.getFieldHelpers(),c=(null!=o&&o.quickBuilder&&null!=o&&o.show&&(o.show.includes(n.name)||(i.classes=null!=i&&i.classes?i.classes+" hidden":" hidden")),null!=n&&n.parentIndex?Y(n.parentIndex):[]),u=(i.parentIndex=c,i.context=o,ee(n.onChange)&&(i.onChange=n.onChange),ee(n.onBlur)&&(i.onBlur=n.onBlur),(0,r.useRef)({}));return(0,r.useEffect)((function(){return u.current[n.name]=!0,function(){u.current[n.name]=!1}}),[]),(0,r.useEffect)((function(){var e,r;s.visible&&u.current[n.name]&&(t||"group"===i.type?(e=null==n?void 0:n.parent,r=null==n?void 0:n.parenttype,e&&"group"===r&&i.value&&l.setValue([e,i.name],i.value)):l.setValue(i.name,i.value))}),[s.visible]),(0,r.useEffect)((function(){u.current[n.name]&&ne(a)&&!ae(a)&&function(e,t,n,r){if(null!=r&&null!=(null==r?void 0:r.defaults)&&!ae(r.defaults)){var o=r.defaults;if(null!=o&&!ae(o)){var a={};if(null!=o&&o[n]&&J(null==o?void 0:o[n])){r=o[n].indexOf("@");var i,s=o[n].indexOf(":");0===r&&0<s&&(r=o[n].substr(1,s-1),s=o[n].substr(s+1),i=t.getValueForDefault(r,e),""!=r)&&""!=s&&(s="false"!==s&&s,a[r]=i||s,t.setValue(r,i||s))}else if(null!=o&&o[n]&&(te(o[n])||ne(o[n])))for(var l in o[n]){var c,u,d=o[n][l];d&&(te(d)||ne(d))?(c=t.getValueForDefault(l,e),""!=l&&""!=d&&(d="false"!==d&&d,a[l]=c||d,t.setValue(l,c||d))):d&&(l=d.indexOf("@"),c=d.indexOf(":"),0===l)&&0<c&&(l=d.substr(1,c-1),u=d.substr(c+1),-1<d.indexOf(".")&&(l=l.split(".")),d=t.getValueForDefault(l,e),""!=l)&&""!=u&&(u="false"!==u&&u,a[l]=d||u,t.setValue(l,d||u))}}}}(i.name,l,i.value,a)}),[i.value,s.visible]),s.visible?(0,r.createElement)(e,i):(0,r.createElement)(r.Fragment,null)}},Xe=function(e){return(0,r.createElement)(r.Fragment,null,(0,m.applyFilters)(e.action,"",e))},et=Ze((function(e){var t,n,o,a;if(null!=e&&e.text||!0===(null==e?void 0:e.group))return t=ue(e,["is_pro","visible","disable","parentIndex","context","onBlur","value","ajax","text"]),n=(a=Se((0,r.useState)(!1),2))[0],o=a[1],null!=e&&e.href?(0,r.createElement)("a",{href:-1===(null==e?void 0:e.href)?null==e?void 0:e.value:null==e?void 0:e.href,target:null==e?void 0:e.target,className:y()("wprf-control wprf-button wprf-href-btn",null==e?void 0:e.classes)},null==e?void 0:e.text):null!=e&&e.group?(a=e.fields.map((function(t,n){return n=[].concat(Y(e.parentIndex),["fields",n]),(0,r.createElement)(kt,_e({key:t.name},t,{parentIndex:n}))})),(0,r.createElement)("div",{className:"wprf-control wprf-button-group wprf-flex"},a)):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("button",_e({},t,{name:e.name,disabled:n,onClick:function(t){null!=e&&e.ajax&&(o(!0),function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if(null!==t&&e){var n,r=!0;if(r=null!=e&&e.rules?be(null==e?void 0:e.rules,t.values):r)return n={},Object.keys(e.data).map((function(r){var o,a;-1<(null==(a=(o=e.data[r]).indexOf)?void 0:a.call(o,"@"))?(a=e.data[r].substr(1),n[r]=null==(o=t.values)?void 0:o[a]):n[r]=e.data[r]})),Z({path:e.api,data:n}).then((function(n){"success"==(null==n?void 0:n.status)&&null!=n&&n.redirect&&(window.location=null==n?void 0:n.redirect);var r,o,a,i=null!=n&&null!=(r=n.data)&&r.context?n.data.context:!(null==n||!n.context)&&n.context;return i&&ne(i)&&Object.keys(i).map((function(e){t.setFieldValue(e,i[e])})),null!=n&&null!=(r=n.data)&&r.download&&(r=n.data.filename||"export.json",o=n.data.filetype||"text/json",function(e){var t=e.data,n=e.fileName;t=new Blob([t],{type:e.fileType}),(e=document.createElement("a")).download=n,e.href=window.URL.createObjectURL(t),n=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}),e.dispatchEvent(n),e.remove()}({data:a=n.data.filetype?n.data.download:JSON.stringify(n.data.download),fileName:r,fileType:o})),null!=e&&e.trigger&&J(null==e?void 0:e.trigger)&&(a=e.trigger.indexOf("@"),r=e.trigger.indexOf(":"),0===a)&&0<r&&(o=e.trigger.substr(1,r-1),"true"==(a=e.trigger.substr(r+1))?a=!0:"false"==a&&(a=!1),t.setFieldValue(o,a)),n}))}return Promise.reject(!1)}(e.ajax,e.context).then((function(t){var n;if(o(!1),"error"==(null==t?void 0:t.status))throw new Error(null==t?void 0:t.message);e.onChange({target:{type:"button",name:e.name,value:!0}}),null!=(t=e.ajax)&&t.hideSwal||(t=(null==(t=e.ajax)||null==(t=t.swal)?void 0:t.icon)||"success",n=(null==(n=e.ajax)||null==(n=n.swal)?void 0:n.text)||"Complete",e.context.alerts.toast(t,n,{autoClose:null==(t=e.ajax)||null==(t=t.swal)?void 0:t.autoClose})),null!=(n=e.ajax)&&n.reload&&("boolean"==typeof e.ajax.reload&&e.ajax.reload?setTimeout((function(){return window.location.reload()}),1e3):"string"==typeof e.ajax.reload&&(window.location.href=e.ajax.reload))})).catch((function(t){var n;console.error("Error In Button Called",e.name,t),o(!1),e.onChange({target:{type:"button",name:e.name,value:!1}}),null!=(n=e.ajax)&&n.hideSwal||e.context.alerts.toast("error",(null==t?void 0:t.message)||(0,i.__)("Something went wrong.","betterdocs"))}))),null!=e&&e.onClick?null!=e&&e.onClick(t):function(e){var t=e.context;null!=e&&e.trigger&&te(null==e?void 0:e.trigger)&&null!=e&&e.trigger.map((function(e){var n=(null==e?void 0:e.type)||"setFieldValue";if(null!=e&&e.action&&ne(null==e?void 0:e.action))for(var r in null==e?void 0:e.action){var o=r;-1<o.indexOf(".")&&(o=o.split(".")),r=null==e?void 0:e.action[r],""!=o&&t[n](o,r)}}))}(e)},className:y()("wprf-control wprf-button wprf-btn",null==e?void 0:e.classes)}),ne(null==e?void 0:e.text)&&null!=e&&e.ajax?n?null==e||null==(a=e.text)?void 0:a.loading:e.value?null==e||null==(t=e.text)?void 0:t.saved:null==e||null==(n=e.text)?void 0:n.normal:null==e?void 0:e.text));throw new Error((0,i.__)("Button has a required params #text.","betterdocs"))})),tt=Ze((function(e){function t(){if(e.ajax&&(!e.ajax.rules||be(e.ajax.rules,n.values))){b(!0);var t={};if(Object.keys(null==e?void 0:e.ajax.data).map((function(r){var o,a;-1<(null==e?void 0:e.ajax.data[r].indexOf("@"))?(a=null==e?void 0:e.ajax.data[r].substr(1),t[r]=null==(o=n.values)?void 0:o[a]):t[r]=null==e?void 0:e.ajax.data[r]})),!w)return Z({path:null==e?void 0:e.ajax.api,data:t}).then((function(t){b(!1);var r=pe(e.options,t,"value");return n.setFormField([].concat(Y(u),["options"]),r),f({options:r,parentIndex:[].concat(Y(u),["options"])}),t}))}}var n=Me(),o=e.id,a=e.name,i=e.multiple,s=e.placeholder,l=void 0!==(l=e.search)&&l,c=e.onChange,u=e.parentIndex,d=(E=Ae(e,"options")).options,p=E.selectedOption,f=E.setData,h=E.setSelectedOption,m=(E=Se((0,r.useState)(null),2))[0],g=E[1],y=(E=Se((0,r.useState)(!1),2))[0],b=E[1],w=(E=Se((0,r.useState)(!1),2))[0],E=((0,r.useEffect)((function(){!te(m)&&ne(m)&&c({target:{type:"select",name:a,value:m.value,options:d,multiple:i}}),te(m)&&c({target:{type:"select",name:a,value:m.map((function(e){return e.value})),options:d,multiple:i}})}),[m]),(0,r.useEffect)((function(){t()}),[]),(0,r.useEffect)((function(){null!=e&&e.menuOpen&&t()}),[null==e?void 0:e.menuOpen]),(0,r.useCallback)((function(t){var n,r,o,a;te(t)&&0<(null==e||null==(r=e.filterValue)?void 0:r.length)&&(o=r=t,a=null!=(n=null==e?void 0:e.filterValue)?n:["all"],te(a)||(a=[a]),t=o=1<(null==r?void 0:r.length)&&re(r.map((function(e){return e.value})),a)?r.filter((function(e){return!a.includes(null==e?void 0:e.value)})):o),g(t),h(t)}),[a,o,u]));return(0,r.createElement)("div",{className:"wprf-checkbox-select-wrapper"},(0,r.createElement)(v.Ay,{isDisabled:null==e?void 0:e.disable,className:"wprf-checkbox-select",classNamePrefix:"wprf-checkbox-select",isSearchable:null!=l&&l,id:o,isClearable:!1,name:a,isMulti:null!=i&&i,placeholder:s,isLoading:y,options:d,value:p,onMenuOpen:t,onMenuClose:function(){b(!1)},isOptionDisabled:function(e){return null==e?void 0:e.disabled},onChange:E,closeMenuOnSelect:!1,hideSelectedOptions:!1,autoFocus:!1,controlShouldRenderValue:!1}),null!=p&&p.length?(0,r.createElement)("ul",{className:"wprf-selected-options"},null==p?void 0:p.map((function(e,t){return(0,r.createElement)("li",{key:null==e?void 0:e.label,className:"wprf-selected-option wprf-selected-option-".concat(t%6+1)},null==e?void 0:e.label,(0,r.createElement)("button",{type:"button",className:"wprf-remove-button",onClick:function(){return t=e,n=p.filter((function(e){return(null==e?void 0:e.value)!=(null==t?void 0:t.value)})),g(n),void h(n);var t,n}},(0,r.createElement)("i",{className:"btd-icon btd-close-fill"})))}))):"")}));function nt(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}var rt=o().memo((function(e){var t=ue(e,["is_pro","visible","trigger","disable","parentIndex","context","copyOnClick"]),n=Se((0,r.useState)(!1),2),a=n[0],i=n[1];return(0,r.useEffect)((function(){var e;return a&&(e=setTimeout((function(){i(!1)}),1e3)),function(){return e&&clearTimeout(e)}}),[a]),(0,r.createElement)("span",{className:"wprf-code-viewer"},(0,r.createElement)("span",{className:"wprf-code-viewer-header"},null==e?void 0:e.label),(0,r.createElement)("span",{className:"wprf-code-viewer-body"},o().createElement("pre",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t),null!=(n=null==e?void 0:e.code)?n:(null==e?void 0:e.default)||(null==e?void 0:e.value)),(0,r.createElement)("span",{className:"wprf-clipboard-tooltip ".concat(a?"active":"")},(0,r.createElement)("span",{className:"wprf-clipboard-tooltip-text"},(0,r.createElement)("span",null,"Copied")),(0,r.createElement)(b.Button,{className:"wprf-copy-icon",onClick:function(){var t;E()(null!=(t=null==e?void 0:e.code)?t:(null==e?void 0:e.default)||(null==e?void 0:e.value),{format:"text/plain",onCopy:function(){i(!0)}})}},(0,r.createElement)("i",{className:"btd-icon btd-duplicate"})))))})),ot=Ze((function(e){var t,n=e.value,o=e.name,a=e.id,s=e.onChange,l=(h=Se((0,r.useState)(!1),2))[0],c=h[1],u=(h=Se((0,r.useState)(n||null),2))[0],d=h[1],p=(h=Se((0,r.useState)(n||null),2))[0],f=h[1],h=(0,r.useRef)(null);return(0,r.useEffect)((function(){f(n||"#ffffff00")}),[]),(0,r.useEffect)((function(){s({target:{type:"colorpicker",name:o,value:u}})}),[u]),(0,r.useEffect)((function(){function e(e){t.current&&!t.current.contains(e.target)&&c(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[t=h]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"wprf-colorpicker-wrap",ref:h},(0,r.createElement)("div",{className:"wprf-colorpicker-screen",onClick:function(){return c(!l)}},(0,r.createElement)("input",{type:"hidden",value:n,name:o,id:a}),(0,r.createElement)("span",{className:"wprf-picker-code"},n||p),(0,r.createElement)("span",{className:"wprf-picker-display",style:{backgroundColor:n}})),l&&(0,r.createElement)("div",{className:"wprf-colorpicker"},(0,r.createElement)(b.ColorPicker,{color:n||p,onChangeComplete:function(e){return d(e.hex)}}),(0,r.createElement)("div",{className:"wprf-colorpicker-reset-wrap"},(0,r.createElement)("button",{className:"wprf-colorpicker-reset",onClick:function(e){e.preventDefault(),d(p),c(!1)}},null!=(h=null==e?void 0:e.reset_text)?h:(0,i.__)("Reset","betterdocs"))))))}));function at(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var st=o().memo((function(e){var t,n=ue(e,["is_pro","visible","trigger","descriptionCopyable","disable","parentIndex","context","badge","popup","type","descriptionLabel"]),a=(0,r.useCallback)((function(t){return n.onChange(t,{popup:null==e?void 0:e.popup,isPro:!!e.is_pro,originProps:e})}),[null==n?void 0:n.value]),i=(t=Se((0,r.useState)(!1),2))[0],s=t[1],l=(t=Se((0,r.useState)(!1),2))[0],c=t[1];return(0,r.useEffect)((function(){var e;return i&&(e=setTimeout((function(){s(!1)}),300)),function(){return e&&clearTimeout(e)}}),[i]),(0,r.useEffect)((function(){var e;return l&&(e=setTimeout((function(){c(!1)}),300)),function(){return e&&clearTimeout(e)}}),[l]),(0,r.createElement)("span",{className:"wprf-copy-to-clipboard-wrapper"},(0,r.createElement)("div",{className:"wprf-copy-to-clipboard-header"},(0,r.createElement)(We,e),(0,r.createElement)("span",{className:"wprf-clipboard-tooltip ".concat(i?"active":"")},(0,r.createElement)("span",{className:"wprf-clipboard-tooltip-text"},(0,r.createElement)("span",null,"Copied")),(0,r.createElement)(b.Button,{className:"wprf-copy-icon",onClick:function(){E()(e.value,{format:"text/plain",onCopy:function(){s(!0)}})}},(0,r.createElement)("i",{className:"btd-icon btd-copy"})))),(0,r.createElement)("div",{className:"wprf-copy-to-clipboard-body"},o().createElement("input",it(it({},n),{},{type:"text",onChange:a,disabled:!0}))),(0,r.createElement)("div",{className:"wprf-copy-to-clipboard-footer"},(null==e?void 0:e.description)&&(null==e?void 0:e.descriptionLabel)&&(0,r.createElement)("i",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.descriptionLabel}}),null!=e&&e.description?null!=e&&e.descriptionCopyable?(0,r.createElement)("div",{className:"wprf-clipboard-tooltip ".concat(l?"active":"")},(0,r.createElement)("span",{className:"wprf-clipboard-tooltip-text"},(0,r.createElement)("span",null,"Copied")),(0,r.createElement)("p",{className:"wprf-description",onClick:function(){E()(e.description,{format:"text/plain",onCopy:function(){c(!0)}})},dangerouslySetInnerHTML:{__html:null==e?void 0:e.description}})):(0,r.createElement)("p",{className:"wprf-description",dangerouslySetInnerHTML:{__html:null==e?void 0:e.description}}):""))})),lt=Ze((function(e){var t=e.name,n=e.value,o=e.onChange,a=e.position,i=(0,p.__experimentalGetSettings)(),s=null!=(e=null==e?void 0:e.format)?e:i.formats.datetime,l=de(n),c=/a(?!\\)/i.test(i.formats.datetime.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,r.useEffect)((function(){o({target:{type:"date",name:t,value:l}})}),[]),(0,r.createElement)(b.Dropdown,{className:"wprf-control-datetime",contentClassName:"wprf-control-datetime-content",position:a||"bottom right",renderToggle:function(e){return e.isOpen,(0,r.createElement)(b.Button,{isTertiary:!0,onClick:e.onToggle},(0,p.date)(s,l,-(new Date).getTimezoneOffset()))},renderContent:function(){return(0,r.createElement)(b.DateTimePicker,{__nextRemoveHelpButton:!0,__nextRemoveResetButton:!0,currentDate:de(l).toDate().toString(),onChange:function(e){o({target:{type:"date",name:t,value:h()(e).utc().format()}})},is12Hour:c})}})}));let ct=new WeakMap;function ut(e,t,n){return(0,r.useMemo)((()=>{var r;return n||(r=function(e){var t=ct.get(e)||0;return ct.set(e,t+1),t}(e),t?t+"-"+r:r)}),[e])}var dt=function(e){var t=Me(),n=e.fields,o=e.onChange,a=e.index,i=e.parent,s=(u=Se((0,r.useState)(e.isCollapsed),2))[0],l=u[1],c=ut(dt),u=(u=(null==(u=null==(u=t.values)||null==(u=u[i])?void 0:u[a])?void 0:u.title)||(null==u?void 0:u.post_title)||(null==u?void 0:u.username)||(null==u?void 0:u.plugin_theme_name))?u.length<40?u:u.substr(0,40)+"...":"";return(0,r.useEffect)((function(){t.setFieldValue([i,a,"isCollapsed"],s)}),[s]),(0,r.createElement)("div",{className:"wprf-repeater-field"},(0,r.createElement)("div",{className:"wprf-repeater-field-title",onClick:function(){return l(!s)}},(0,r.createElement)("h4",null,(0,r.createElement)(b.Icon,{icon:"move"}),e.index+1,": ",u),(0,r.createElement)("div",{className:"wprf-repeater-field-controls"},(0,r.createElement)(b.Icon,{onClick:function(t){null!=t&&t.stopPropagation(),e.clone(e.index)},icon:"admin-page"}),(0,r.createElement)(b.Icon,{onClick:function(t){null!=t&&t.stopPropagation(),e.remove(e.index)},icon:"trash"}))),!s&&(0,r.createElement)("div",{className:"wprf-repeater-inner-field"},n.map((function(e,t){return(0,r.createElement)(Ot,_e({key:"field-".concat(a,"-").concat(t)},e,{id:"field-".concat(c,"-").concat(a,"-").concat(t),index:a,parenttype:"repeater",parent:i,onChange:function(e){return o(e,a)}}))}))))};function pt(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ht=Ze((function(e){var t=ft({type:"",label:{position:"right"},column:4},e.style),n=(0,r.useMemo)((function(){var t=!1;return null!=e&&e.checked&&ne(e.checked)&&J(null==e?void 0:e.value)?t=e.checked[e.value]:J(e.value)||(t=e.value),t}),[null==e?void 0:e.checked,e.value]);return t=y()("wprf-toggle-wrap",K(K(K({},"wprf-".concat(null==t?void 0:t.type),0<(null==t?void 0:t.type.length)),"wprf-checked",Boolean(n)),"wprf-label-position-".concat(null==t||null==(n=t.label)?void 0:n.position),null==t||null==(n=t.label)?void 0:n.position),null==e?void 0:e.classes),(0,r.createElement)("div",{className:t},(0,r.createElement)(jt,ft(ft({},e),{},{type:"checkbox",placeholder:void 0})),(0,r.createElement)(Ue,{htmlFor:e.id}))})),mt=function(e){var t=e.isLoading,n=Se((0,r.useState)([]),2),o=n[0],a=n[1];return(0,r.useEffect)((function(){var t=se(e.body.fields).map((function(t,n){return n=[].concat(Y(e.parentIndex),["fields",n]),(0,r.createElement)(kt,_e({key:t.name},t,{parentIndex:n}))}));a(t)}),[]),(0,r.createElement)("div",{className:"wprf-modal-body"},t&&(0,r.createElement)(yt,null),!t&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"wprf-modal-content"},0<o.length&&o),(0,r.createElement)("div",{className:"wprf-modal-footer clearfix"},(0,r.createElement)("div",{className:"wprf-modal-footer-left"},(null==(n=e.body)?void 0:n.footer)&&J(e.body.footer)&&(0,r.createElement)("p",null,e.body.footer),(0,r.createElement)(Ot,_e({type:"button"},null==e?void 0:e.confirm_button))))))},gt=function(e){return e=e.content,(0,r.createElement)("div",{className:"wprf-modal-header"},e&&J(e)&&(0,r.createElement)("h3",null,e))},yt=function(e){return(0,r.createElement)("p",null,(0,i.__)("Loading...","betterdocs"))},vt={options:["inline","blockType","textAlign","colorPicker","link"],inline:{options:["bold","italic","underline","strikethrough","monospace"]},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0}},bt=Ze((function(e){var t=Se((0,r.useState)(C.EditorState.createEmpty()),2),n=t[0],o=t[1];return(0,r.useEffect)((function(){var t,n;e.value&&(t=(n=k()(e.value)).contentBlocks,t=C.ContentState.createFromBlockArray(t,n.entityMap),n=C.EditorState.createWithContent(t),o(n))}),[]),(0,r.useEffect)((function(){var t=S()((0,C.convertToRaw)(n.getCurrentContent()));e.onChange({target:{type:"editor",value:t,name:e.name}})}),[n]),(0,r.createElement)(x.Editor,{placeholder:null==e?void 0:e.placeholder,toolbar:vt,editorState:n,toolbarClassName:"wprf-editor-toolbar",wrapperClassName:"wprf-editor wprf-control",editorClassName:"wprf-editor-main",onEditorStateChange:o})}));function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Et(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ct(e){var t=xt({type:"",label:{position:"right"},column:4},e.style),n=(0,r.useMemo)((function(){var t=!1;return null!=e&&e.checked&&ne(e.checked)&&J(null==e?void 0:e.value)?t=e.checked[e.value]:J(e.value)||(t=e.value),t}),[null==e?void 0:e.checked,e.value]);return t=y()("wprf-checkbox-wrap",K(K(K({},"wprf-".concat(null==t?void 0:t.type),0<(null==t?void 0:t.type.length)),"wprf-checked",Boolean(n)),"wprf-label-position-".concat(null==t||null==(n=t.label)?void 0:n.position),null==t||null==(n=t.label)?void 0:n.position),null==e?void 0:e.classes),(0,r.createElement)("div",{className:t},(0,r.createElement)(jt,xt(xt({},e),{},{type:"checkbox"})),(0,r.createElement)("label",{htmlFor:e.id},e.label))}var _t=Ze((function(e){var t,n,o,a=e.options,i=e.value,s=e.multiple,l=e.style,c=se(a),u=xt({column:4},l);return s?(a=Se((0,r.useState)({}),2),t=a[0],n=a[1],o=function(e){var t=e.target||e.currentTarget;n((function(e){return xt(xt({},e),{},K({},t.value,t.checked))}))},(0,r.useEffect)((function(){e.onChange({target:{type:"checkbox",name:e.name,value:t,multiple:!0}})}),[t]),(0,r.useEffect)((function(){if(ne(i))n(i);else{var e,t={},r=function(e,t){var n,r,o,a,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return o=!(r=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(i=function(e,t){var n;if(e)return"string"==typeof e?wt(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wt(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(c);try{for(r.s();!(e=r.n()).done;)t[e.value.value]=i}catch(e){r.e(e)}finally{r.f()}n(t)}}),[]),(0,r.createElement)("div",{className:"wprf-checkbox-wrapper wprf-control"},(0,r.createElement)(ze,null,c.map((function(n){return(0,r.createElement)(qe,{key:n.value,column:u.column},(0,r.createElement)(Ct,xt(xt({},n),{},{context:null==e?void 0:e.context,id:n.value,checked:void 0===t[n.value]||(null!=t&&t[n.value]?i:!(null==t||!t[n.value])),type:"checkbox",onChange:o,style:u})))}))))):(0,r.createElement)(jt,xt(xt({},e),{},{type:"checkbox"}))})),St=function(e){if(!e.type||0===e.type.length)throw console.error(e),new Error((0,i.__)("Field must have a #type. see documentation.","betterdocs"));switch(e.type){case"text":case"radio":case"email":case"range":case"number":case"hidden":return(0,r.createElement)(Tt,e);case"checkbox":return(0,r.createElement)(_t,e);case"textarea":return(0,r.createElement)(Do,e);case"codeviewer":return(0,r.createElement)(rt,e);case"copy-to-clipboard":return(0,r.createElement)(st,e);case"message":return(0,r.createElement)(Rt,e);case"select":return(0,r.createElement)(Oo,e);case"checkbox-select":return(0,r.createElement)(tt,e);case"select-async":return(0,r.createElement)(ko,e);case"slider":return(0,r.createElement)(No,e);case"group":return(0,r.createElement)(Mt,e);case"radio-card":return(0,r.createElement)(Ut,e);case"section":return(0,r.createElement)(Xt,e);case"date":return(0,r.createElement)(lt,e);case"toggle":return(0,r.createElement)(Lo,e);case"colorpicker":return(0,r.createElement)(ot,e);case"jsonuploader":return(0,r.createElement)(Lt,e);case"repeater":return(0,r.createElement)(Kt,e);case"media":return(0,r.createElement)(Pt,e);case"editor":return(0,r.createElement)(bt,e);case"action":return(0,r.createElement)(Xe,e);case"button":return(0,r.createElement)(et,e);case"modal":return(0,r.createElement)(Ft,e);case"tab":return(0,r.createElement)(zo,e);case"responsive-number":return(0,r.createElement)(Qt,e);default:var t=(0,m.applyFilters)("custom_field","",e.type,e);return(0,r.createElement)(r.Fragment,null,t)}},Ot=Je(St,!0),kt=Je(St),Nt=["name","fields"],Mt=Ze((function(e){var t,n,o,a,s=e.name,l=e.fields,c=Oe(e,Nt);if(l&&te(l)&&0!==l.length)return t=Me(),n=(0,r.useCallback)((function(e){e.persist&&e.persist();var n=(e=le(e)).field;t.setFieldValue([s,n],e.val)}),[e.value]),o=se(l),(0,r.useEffect)((function(){t.setFormField([].concat(Y(e.parentIndex),["fields"]),o)}),[]),l=o.map((function(t,o){return o=[].concat(Y(e.parentIndex),["fields",o]),(0,r.createElement)(Ot,_e({},c,{key:t.name,index:e.index,onChange:n},t,{parenttype:"group",parent:s,parentIndex:o}))})),a=y()("wprf-group-control-inner",{"wprf-display-inline":"inline"===(null==e?void 0:e.display)}),(0,r.createElement)("div",{className:"wprf-group-control"},(0,r.createElement)("div",{className:a},l));throw new Error((0,i.__)("You should give a #fields arguments to a group field.","betterdocs"))}));function At(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var It=function(e){var t=ue(e,["is_license_active","is_pro","visible","trigger","copyOnClick","disable","parentIndex","context","badge","popup","enable_disable_text_active"]),n=(0,r.useCallback)((function(n){return t.onChange(n,{popup:null==e?void 0:e.popup,isPro:!!e.is_pro,isLicenseActive:!!e.is_license_active,originProps:e})}),[null==t?void 0:t.value]);"checkbox"===t.type&&null!=t&&t.name&&(t.checked=(null==t?void 0:t.checked)||(null==t?void 0:t.value));var a,i=Se((0,r.useState)(!1),2),s=i[0],l=i[1];return(0,r.useEffect)((function(){var e;return s&&(e=setTimeout((function(){l(!1)}),2e3)),function(){return e&&clearTimeout(e)}}),[s]),!e.is_pro&&null!=e&&e.copyOnClick&&null!=e&&e.value?(i=(null==e?void 0:e.copyMessage)||"Click To Copy!",a=(null==e?void 0:e.copiedMessage)||"Copied!",(0,r.createElement)("span",{className:"wprf-clipboard-wrapper"},o().createElement("input",Dt(Dt({},t),{},{onChange:n})),(0,r.createElement)("span",{className:"wprf-clipboard-tooltip"},(0,r.createElement)("span",{className:"wprf-clipboard-tooltip-text"},s?a:i),(0,r.createElement)(b.Button,{className:"wprf-copy-icon",onClick:function(){E()(e.value,{format:"text/plain",onCopy:function(){l(!0)}})}},"Copy")))):o().createElement("input",Dt(Dt({},t),{},{onChange:n,disabled:(null==e?void 0:e.is_pro)||!1}))},jt=o().memo(It),Tt=Ze(o().memo(It)),Lt=Ze(o().memo((function(e){ue(e,["is_pro","visible","trigger","disable","parentIndex","context","copyOnClick"]);var t=Se((0,r.useState)(),2),n=t[0],o=t[1];return(0,r.useEffect)((function(){null!=e&&e.value||o(null)}),[null==e?void 0:e.value]),(0,r.createElement)("span",{className:"wprf-json-uploader"},!n&&(0,r.createElement)("label",{className:"wprf-json-uploaderButton"},(0,r.createElement)("span",null,(0,i.__)("Upload")),(0,r.createElement)("input",{type:"file",accept:"application/JSON",onChange:function(t){var n;t.target.files.length&&(0==(null==(t=t.target.files[0])?void 0:t.size)?e.context.alerts.toast("error",(0,i.__)("File can't be empty.","betterdocs")):"application/json"!=(null==t?void 0:t.type)&&"text/json"!=(null==t?void 0:t.type)?e.context.alerts.toast("error",(0,i.__)("Invalid file type.","betterdocs")):(o(t),(n=new FileReader).onload=function(t){t=null==t||null==(t=t.target)?void 0:t.result,e.onChange({target:{type:"jsonuploader",name:e.name,value:t}})},n.readAsText(t)))}})),n&&(null==n?void 0:n.name)&&(0,r.createElement)("span",{className:"wpfr-json-file-name-wrapper"},(0,r.createElement)("span",{className:"wpfr-json-file-name"},20<(null==n?void 0:n.name.length)?"".concat(null==n?void 0:n.name.substr(0,9),"...").concat(null==n?void 0:n.name.substr((null==n?void 0:n.name.length)-7)):null==n?void 0:n.name),(0,r.createElement)("span",{className:"wprf-json-file-delete-button",onClick:function(){o(null),e.onChange({target:{type:"jsonuploader",name:e.name,value:null}})}},"x")))}))),Pt=Ze((function(e){var t=Se((0,r.useState)(null!=(t=e.value)&&t.url?e.value:null),2),n=t[0],o=t[1];return(0,r.useEffect)((function(){e.onChange({target:{type:"media",name:e.name,value:n}})}),[n]),(0,r.createElement)("div",{className:"wprf-control wprf-media"},null!=n&&!(null!=e&&e.notImage)&&(0,r.createElement)("div",{className:"wprf-image-preview"},null!=n&&(null==n?void 0:n.url)&&(0,r.createElement)("img",{src:n.url,alt:n.title})),(0,r.createElement)("div",{className:"wprf-image-uploader ".concat(null==n||null!=e&&e.notImage?"":"uploaded")},(0,r.createElement)(N.MediaUpload,{onSelect:function(e){o({id:e.id,title:e.title,url:e.url})},multiple:!1,allowedTypes:["image"],value:n,render:function(t){return t=t.open,(0,r.createElement)(r.Fragment,null,null!=n?(0,r.createElement)("div",{className:"wprf_image_overlay"},(0,r.createElement)("button",{className:"wprf-btn wprf-image-change-btn",onClick:t},(0,r.createElement)("i",{className:"btd-icon btd-upload"})),(0,r.createElement)("button",{className:"wprf-btn wprf-image-remove-btn",onClick:function(){return o(null)}},(null==e?void 0:e.remove)||(0,r.createElement)("i",{className:"btd-icon btd-delete"}))):(0,r.createElement)("button",{className:"wprf-btn wprf-image-upload-btn",onClick:t},(0,r.createElement)("span",{className:"icon"},(0,r.createElement)("i",{className:"btd-icon btd-upload"})),(0,r.createElement)("span",{className:"title"},(0,i.__)("Click to upload","betterdocs")),(0,r.createElement)("span",{className:"info"},(0,i.__)("SVG, PNG, JPG or GIF (max.800x400px)","betterdocs"))))}})))})),Rt=function(e){var t=function(e){if(null!=e&&e.messages)for(var t in e.messages)if(t=e.messages[t],be(t.rules,e.context.values))return t;return{message:null==e?void 0:e.message,html:null==e?void 0:e.html,type:"normal"}}(e),n=t.html,o=t.message;return t=t.type,o?(0,r.createElement)("div",{className:y()("wprf-control","wprf-message","wprf-".concat(void 0===t?"warning":t,"-message"),"wprf-".concat(e.name,"-message"),null==e?void 0:e.classes)},n&&(0,r.createElement)("p",{dangerouslySetInnerHTML:{__html:o}}),!n&&(0,r.createElement)("p",null,o)):(0,r.createElement)(r.Fragment,null)},Ft=function(e){if(null==(null==e?void 0:e.body)||null==(null==e?void 0:e.button))throw new Error((0,i.__)("Modal needs button/body with it.","betterdocs"));function t(){return o(!1)}var n=(a=Se((0,r.useState)(!1),2))[0],o=a[1],a=(a=Se((0,r.useState)(!1),2))[0],s=(0,r.useCallback)((function(){}),[]);return(0,r.createElement)("div",{className:"wprf-control wprf-modal",id:"wprf-modal-".concat(e.name)},(0,r.createElement)(Ot,_e({type:"button"},null==e?void 0:e.button,{onClick:function(){return o(!0)}})),n&&(0,r.createElement)(D(),{customClass:"wprf-modal-inner",style:{maxWidth:"900px",width:"100%",overflowY:"scroll",margin:"50px auto"},closeBtnStyle:{top:"5px",right:"5px",color:"#f78c8c",fontSize:"18px",border:"1px solid #f78c8c",borderRadius:"50%",width:"30px",height:"30px",display:"inline-flex",alignItems:"center",justifyContent:"center"},title:(0,r.createElement)(gt,{content:null==e||null==(n=e.body)?void 0:n.header}),onConfirm:s,showConfirm:!1,showCloseButton:!0,closeOnClickOutside:!0,onCancel:t,afterUpdate:function(){var n;null!=e&&e.cancel&&null!=(n=e.context.values)&&n[e.cancel]&&t()}},(0,r.createElement)(mt,_e({},e,{isLoading:a,closeModal:t,context:e.context,onConfirm:s}))))},Bt=["label","value","icon","is_pro"];function zt(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}var qt=function(e){var t,n,o,a=Me(),s=Ae(e,"options"),l=s.options,c=s.option;if(l)return t=ut(qt),s=y()(["wprf-control","wprf-radio-card","wprf-input-radio-set-wrap",null==e?void 0:e.className]),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},null==e?void 0:e.style),o=ue(e,["options","placeholder","style","trigger"]),(0,r.useEffect)((function(){c&&e.onChange({target:{type:"radio-card",name:e.name,value:c}})}),[c]),(0,r.createElement)("div",{className:s},(0,r.createElement)(ze,null,l.map((function(e,i){var s,l=e.label,u=e.value,d=e.icon,p=e.is_pro;return e=Oe(e,Bt),(0,r.createElement)(qe,{column:+(null==e?void 0:e.column)||4,key:i},(0,r.createElement)("div",{className:y()("wprf-input-radio-option",{"wprf-option-has-image":null!=d&&d,"wprf-option-selected":u==c})},(0,r.createElement)(Ue,{className:y()(K({"wprf-label-has-image":null!=d&&d},"wprf-size-".concat(n.size),null!=(s=d&&(null==n?void 0:n.size))&&s)),htmlFor:"wprf-input-radio-".concat(t,"-").concat(i),src:d,badge:{label:p?"Pro":"Free",value:p,active:Boolean(a.is_pro_active)}},l),(0,r.createElement)(jt,_e({},e,o,{is_pro:p,type:"radio",value:u,checked:u===c,id:"wprf-input-radio-".concat(t,"-").concat(i)}))))}))));throw new Error((0,i.__)("#options is a required arguments for RadioCard field.","betterdocs"))},Ut=Ze(qt);function Ht(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt=function(e){var t=e.name,n=e.button,o=e.fields,a=Me(),i=(e=Se((0,r.useState)(null==(e=a.values)?void 0:e[t]),2))[0],s=e[1],l=((0,r.useEffect)((function(){var e;null!=(null==(e=a.values)?void 0:e[t])&&s(null==(e=a.values)?void 0:e[t])}),[null==(e=a.values)?void 0:e[t]]),(0,r.useCallback)((function(e){var n=Y(i);n.splice(e,1),a.setFieldValue(t,n)}),[i])),c=(0,r.useCallback)((function(e){var n=Y(i);0<n.length&&(null!=(e=n=null!=(e=n=null!=(e=n=null!=(e=n=(null==n?void 0:n[e])||{})&&e.title?Vt(Vt({},n),{},{title:n.title+" - Copy"}):n)&&e.post_title?Vt(Vt({},n),{},{post_title:n.post_title+" - Copy"}):n)&&e.username?Vt(Vt({},n),{},{username:n.username+" - Copy"}):n)&&e.plugin_theme_name&&(n=Vt(Vt({},n),{},{plugin_theme_name:n.plugin_theme_name+" - Copy"})),n=Vt(Vt({},n),{},{index:B(),isCollapsed:!1}),a.setFieldValue([t,i.length],n))}),[i]);return(0,r.useEffect)((function(){s(null==i||""==i?[{index:B()}]:function(e){return e.map((function(e){return Vt(Vt({},e),{},{index:B()})}))})}),[]),(0,r.createElement)("div",{className:"wprf-repeater-control"},i&&0<(null==i?void 0:i.length)&&(0,r.createElement)(I.ReactSortable,{className:"wprf-repeater-content",list:i,setList:function(e){a.setFieldValue(t,e)},handle:".wprf-repeater-field-title",filter:".wprf-repeater-field-controls",forceFallback:!0},i.map((function(e,n){return(0,r.createElement)(dt,{isCollapsed:null==e?void 0:e.isCollapsed,key:(null==e?void 0:e.index)||n,fields:o,index:n,parent:t,clone:c,remove:l,onChange:function(e){var r,o;r=n,e.persist&&e.persist(),o=(e=le(e)).field,a.setFieldValue([t,r,o],e.val)}})}))),(0,r.createElement)("div",{className:"wprf-repeater-label"},(0,r.createElement)("button",{className:"wprf-repeater-button",onClick:function(){return a.setFieldValue(t,[].concat(Y(i),[{index:B()}]))}},null==n?void 0:n.label)))};function Gt(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yt=function(e){var t=ue(e,["is_pro","visible","trigger","disable","parentIndex","context","badge","popup"]),n=(i=Se((0,r.useState)(Object.keys(e.controls)[0]),2))[0],a=i[1],i=t.value;ne(t.value)||Object.keys(e.controls).reduce((function(e,n){return Wt(Wt({},e),{},K({},n,t.value))}),{});var s=(i=Se((0,r.useState)(i),2))[0],l=i[1];return(0,r.useEffect)((function(){t.onChange({target:{type:"input",name:t.name,value:s,checked:null,multiple:null}})}),[s]),(0,r.createElement)("div",{style:{display:"flex",alignItems:"center",rowGap:5,columnGap:10,flexWrap:"wrap"}},o().createElement("input",Wt(Wt({},t),{},{type:"number",value:null==s?void 0:s[n],onChange:function(e){l(Wt(Wt({},s),{},K({},n,e.target.value)))}})),(0,r.createElement)("div",{style:{display:"flex",alignItems:"center"}},null==(i=Object.keys(e.controls))?void 0:i.map((function(t){return(0,r.createElement)("button",{type:"button",key:t,className:"responsive-button ".concat(n===t?"active":""),onClick:function(){return a(t)}},(0,r.createElement)("img",{src:e.controls[t].icon,alt:"desktop",style:{width:e.controls[t].size}}))}))))},Qt=(Yt.defaultProps={type:"number"},Ze(o().memo(Yt)));function $t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Zt=o().memo((function(e){function t(t){var n,r=e.fields.map((function(e){return e.id})),o=r.findIndex((function(t){return t===e.active}));"start"===t?(a.setFieldValue("isStartClicked",!0),n=r[o+1]):"next"===t||"skip"===t?n=r[o+1]:"prev"!==t||u||(n=r[o-1]),n&&e.setActive(n)}var n,a=Me(),i=(n=Se((0,r.useState)(void 0),2))[0],s=n[1],l=(n=Se((0,r.useState)(void 0),2))[0],c=n[1],u=(n=Se((0,r.useState)(!1),2))[0],d=n[1],p=null!=(n=a.getFieldValue("isStartClicked"))&&n;return(0,r.useEffect)((function(){var t=(-1!==(n=(t=e.fields.map((function(e){return e.id}))).findIndex((function(t){return t===e.active})))&&c(t[n-1]),n<=t.length&&s(t[n+1]),"setup-page"===t[n]),n="1"==(e=>{var t,n=function(e,t){var n,r,o,a,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return o=!(r=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(i=function(e,t){var n;if(e)return"string"==typeof e?$t(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(document.cookie.split("; "));try{for(n.s();!(t=n.n()).done;){var r=Se(t.value.split("="),2);if("betterdocs_insights_allowed"===r[0])return decodeURIComponent(r[1])}}catch(e){n.e(e)}finally{n.f()}return null})("betterdocs_insights_allowed");d(t&&(p||n))}),[e.active,e.fields,p]),(0,r.useEffect)((function(){var e;a.setFieldValue("active_tab",null==a||null==(e=a.config)?void 0:e.active)}),[e.active]),(0,r.createElement)("div",{className:"wprf-stepped-button"},e.config.buttons&&Object.keys(e.config.buttons).map((function(n,a){return(0,r.createElement)(o().Fragment,{key:"button_".concat(n,"_").concat(a)},"skip"===n&&void 0!==i&&(0,r.createElement)(b.Button,{className:"wprf-btn wprf-step-btn-".concat(n),onClick:function(){return t(n)}},null==(a=e.config.buttons)?void 0:a[n]),"start"===n&&void 0===l&&(0,r.createElement)("div",{className:"wprf-btn wprf-step-btn-next"},(0,r.createElement)(kt,{type:"button",ajax:null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.ajax,name:"step-button",onClick:function(){return t(n)},text:"object"===V(null==(a=e.config.buttons)?void 0:a[n])?(null==e?void 0:e.active)===(null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.condition)?null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.customName:null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.name:null==(a=e.config.buttons)?void 0:a[n]})),("next"===n&&void 0!==i&&void 0!==l||"prev"===n&&void 0!==l)&&(0,r.createElement)("div",{className:"wprf-btn wprf-step-btn-".concat(n," ").concat("prev"===n&&u?"disabled":"")},(0,r.createElement)(kt,{type:"button",ajax:null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.ajax,name:"step-button",disabled:"prev"===n&&u,onClick:function(){return t(n)},text:"object"===V(null==(a=e.config.buttons)?void 0:a[n])?(null==e?void 0:e.active)===(null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.condition)?null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.customName:null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.name:null==(a=e.config.buttons)?void 0:a[n]})),void 0===i&&(null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.type)&&(0,r.createElement)(kt,null==(a=e.config.buttons)?void 0:a[n]))})))})),Jt=function(e){e=_e({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));var t=Me(),n=(null==e?void 0:e.label)||(0,i.__)("Save Changes","betterdocs");return t.isSubmitting&&(n=null!=(e=null==e?void 0:e.loadingLabel)?e:"Saving..."),e=(0,r.useCallback)((function(e){var n;null!=(n=t.submit)&&n.onSubmit&&t.submit.onSubmit(e,t)}),[t]),(0,r.createElement)("div",{className:"wprf-submit wprf-control"},(0,r.createElement)(b.Button,{disabled:null==t?void 0:t.isSubmitting,className:"wprf-submit-button",onClick:e},n))},Xt=o().memo((function(e){var t=void 0!==(t=e.searchable)&&t,n=e.searchNotFoundMessage,o=void 0===(o=e.searchPlaceholder)?"Search...":o,a=Me(),i=(h=Se((0,r.useState)(null!=(h=e.collapsed)&&h),2))[0],s=h[1],l=(h=Se((0,r.useState)([]),2))[0],c=h[1],u=(h=Se((0,r.useState)([]),2))[0],d=h[1],p=(h=Se((0,r.useState)(""),2))[0],f=h[1],h=((0,r.useEffect)((function(){var t=se(e.fields);a.setFormField([].concat(Y(e.parentIndex),["fields"]),t),t=t.map((function(t,n){return n=[].concat(Y(e.parentIndex),["fields",n]),(0,r.createElement)(kt,_e({key:t.name},t,{parentIndex:n}))})),c(t),d(t)}),[]),(0,r.useEffect)((function(){var e;p?(e=l.filter((function(e){return null==e||null==(e=e.props)||null==(e=e.label)||null==(e=e.toLowerCase())?void 0:e.includes(p.toLowerCase())})),d(e)):d(l)}),[p,l]),y()("wprf-control-section",null==e?void 0:e.classes,null==e?void 0:e.name,{"wprf-section-collapsed":(null==e?void 0:e.collapsible)&&i}));return(0,r.createElement)("div",{id:null==e?void 0:e.name,className:h},e.placeholder&&(0,r.createElement)("div",{className:"wprf-section-title"},(0,r.createElement)("h4",null,e.placeholder),e.collapsible&&(0,r.createElement)("button",{onClick:function(){return s(!i)}},"Icon")),t?(0,r.createElement)("div",{className:"wprf-section-fields"},(0,r.createElement)("div",{className:"wprf-section-search-form"},(0,r.createElement)("span",{className:"wprf-section-search"},(0,r.createElement)("input",{type:"text",name:"",id:"",placeholder:o,onChange:function(e){f(null==e||null==(e=e.target)?void 0:e.value)},value:p}))),(0,r.createElement)("div",{className:"wprf-section-search-results"},null!=u&&u.length?u:(0,r.createElement)("div",{className:"wprf-result-not-found",dangerouslySetInnerHTML:{__html:null!=n?n:"Not found!"}}))):(0,r.createElement)("div",{className:"wprf-section-fields"},u),e.showSubmit&&(0,r.createElement)(Jt,a.submit),e.showSteps&&(0,r.createElement)(Zt,{fields:a.tabs,active:a.config.active,setActive:a.setActiveTab,config:null!=(h=a.config.step)?h:{show:!1}}))})),en="top",tn="bottom",nn="right",rn="left",on="auto",an=[en,tn,nn,rn],sn="start",ln="end",cn="viewport",un="popper",dn=an.reduce((function(e,t){return e.concat([t+"-"+sn,t+"-"+ln])}),[]),pn=[].concat(an,[on]).reduce((function(e,t){return e.concat([t,t+"-"+sn,t+"-"+ln])}),[]),fn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function hn(e){return e?(e.nodeName||"").toLowerCase():null}function mn(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function gn(e){return e instanceof mn(e).Element||e instanceof Element}function yn(e){return e instanceof mn(e).HTMLElement||e instanceof HTMLElement}function vn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof mn(e).ShadowRoot||e instanceof ShadowRoot)}var bn={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]||{},o=t.elements[e];yn(o)&&hn(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.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],o=t.attributes[e]||{};e=Object.keys((t.styles.hasOwnProperty(e)?t.styles:n)[e]).reduce((function(e,t){return e[t]="",e}),{}),yn(r)&&hn(r)&&(Object.assign(r.style,e),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var En=Math.max,xn=Math.min,Cn=Math.round;function Sn(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function On(){return!/^((?!chrome|android).)*safari/i.test(Sn())}function kn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;return t&&yn(e)&&(o=0<e.offsetWidth&&Cn(r.width)/e.offsetWidth||1,a=0<e.offsetHeight&&Cn(r.height)/e.offsetHeight||1),t=(gn(e)?mn(e):window).visualViewport,e=!On()&&n,n=(r.left+(e&&t?t.offsetLeft:0))/o,e=(r.top+(e&&t?t.offsetTop:0))/a,{width:t=r.width/o,height:o=r.height/a,top:e,right:n+t,bottom:e+o,left:n,x:n,y:e}}function Nn(e){var t=kn(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 Mn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0}while(r=r.parentNode||r.host)}return!1}function An(e){return mn(e).getComputedStyle(e)}function Dn(e){return 0<=["table","td","th"].indexOf(hn(e))}function In(e){return((gn(e)?e.ownerDocument:e.document)||window.document).documentElement}function jn(e){return"html"===hn(e)?e:e.assignedSlot||e.parentNode||(vn(e)?e.host:null)||In(e)}function Tn(e){return yn(e)&&"fixed"!==An(e).position?e.offsetParent:null}function Ln(e){for(var t=mn(e),n=Tn(e);n&&Dn(n)&&"static"===An(n).position;)n=Tn(n);return(!n||"html"!==hn(n)&&("body"!==hn(n)||"static"!==An(n).position))&&(n||function(e){var t=/firefox/i.test(Sn());if(/Trident/i.test(Sn())&&yn(e)&&"fixed"===An(e).position)return null;var n=jn(e);for(vn(n)&&(n=n.host);yn(n)&&["html","body"].indexOf(hn(n))<0;){var r=An(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}function Pn(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function Rn(e,t,n){return En(e,xn(t,n))}function Fn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Bn(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var zn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r,o,a=e.state,i=e.name,s=(e=e.options,a.elements.arrow),l=a.modifiersData.popperOffsets,c=Pn(u=wn(a.placement)),u=0<=[rn,nn].indexOf(u)?"height":"width";s&&l&&(e=function(e,t){return Fn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Bn(e,an))}(e.padding,a),t=Nn(s),o="y"===c?en:rn,r="y"===c?tn:nn,n=a.rects.reference[u]+a.rects.reference[c]-l[c]-a.rects.popper[u],l=l[c]-a.rects.reference[c],s=(s=Ln(s))?"y"===c?s.clientHeight||0:s.clientWidth||0:0,o=e[o],e=s-t[u]-e[r],o=Rn(o,r=s/2-t[u]/2+(n/2-l/2),e),a.modifiersData[i]=((s={})[c]=o,s.centerOffset=o-r,s))},effect:function(e){var t=e.state;null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&Mn(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qn(e){return e.split("-")[1]}var Un={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hn(e){var t,n,r=e.popper,o=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=(e=e.isFixed,void 0===(p=s.x)?0:p),f=void 0===(f=s.y)?0:f,h=(p=(h="function"==typeof d?d({x:p,y:f}):{x:p,y:f}).x,f=h.y,s.hasOwnProperty("x")),m=(s=s.hasOwnProperty("y"),rn),g=en,y=window,v=(u&&(v="clientHeight",n="clientWidth",(t=Ln(r))===mn(r)&&"static"!==An(t=In(r)).position&&"absolute"===l&&(v="scrollHeight",n="scrollWidth"),a!==en&&(a!==rn&&a!==nn||i!==ln)||(g=tn,f=(f-((e&&t===y&&y.visualViewport?y.visualViewport.height:t[v])-o.height))*(c?1:-1)),a!==rn&&(a!==en&&a!==tn||i!==ln)||(m=nn,p=(p-((e&&t===y&&y.visualViewport?y.visualViewport.width:t[n])-o.width))*(c?1:-1))),Object.assign({position:l},u&&Un));return a=!0===d?function(e,t){var n=e.x;return e=e.y,t=t.devicePixelRatio||1,{x:Cn(n*t)/t||0,y:Cn(e*t)/t||0}}({x:p,y:f},mn(r)):{x:p,y:f},p=a.x,f=a.y,c?Object.assign({},v,((i={})[g]=s?"0":"",i[m]=h?"0":"",i.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",i)):Object.assign({},v,((e={})[g]=s?f+"px":"",e[m]=h?p+"px":"",e.transform="",e))}var Vn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=void 0===(n=(e=e.options).gpuAcceleration)||n,r=void 0===(r=e.adaptive)||r;e=void 0===(e=e.roundOffsets)||e,n={placement:wn(t.placement),variation:qn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy},null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Hn(Object.assign({},n,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hn(Object.assign({},n,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Kn={passive:!0},Gn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t,n=e.state,r=e.instance,o=void 0===(t=(e=e.options).scroll)||t,a=void 0===(t=e.resize)||t,i=mn(n.elements.popper),s=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&s.forEach((function(e){e.addEventListener("scroll",r.update,Kn)})),a&&i.addEventListener("resize",r.update,Kn),function(){o&&s.forEach((function(e){e.removeEventListener("scroll",r.update,Kn)})),a&&i.removeEventListener("resize",r.update,Kn)}},data:{}},Wn={left:"right",right:"left",bottom:"top",top:"bottom"};function Yn(e){return e.replace(/left|right|bottom|top/g,(function(e){return Wn[e]}))}var Qn={start:"end",end:"start"};function $n(e){return e.replace(/start|end/g,(function(e){return Qn[e]}))}function Zn(e){return{scrollLeft:(e=mn(e)).pageXOffset,scrollTop:e.pageYOffset}}function Jn(e){return kn(In(e)).left+Zn(e).scrollLeft}function Xn(e){var t=(e=An(e)).overflow;return/auto|scroll|overlay|hidden/.test(t+e.overflowY+e.overflowX)}function er(e){return 0<=["html","body","#document"].indexOf(hn(e))?e.ownerDocument.body:yn(e)&&Xn(e)?e:er(jn(e))}function tr(e,t){void 0===t&&(t=[]),e=(r=er(e))===(null==(e=e.ownerDocument)?void 0:e.body);var n=mn(r),r=(n=e?[n].concat(n.visualViewport||[],Xn(r)?r:[]):r,t.concat(n));return e?r:r.concat(tr(jn(n)))}function nr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rr(e,t,n){return t===cn?nr(function(e,t){var n,r=mn(e),o=In(e),a=(r=r.visualViewport,o.clientWidth),i=(o=o.clientHeight,0),s=0;return r&&(a=r.width,o=r.height,(n=On())||!n&&"fixed"===t)&&(i=r.offsetLeft,s=r.offsetTop),{width:a,height:o,x:i+Jn(e),y:s}}(e,n)):gn(t)?function(e,t){return(t=kn(e,!1,"fixed"===t)).top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t,n):nr(function(e){var t=In(e),n=Zn(e),r=null==(r=e.ownerDocument)?void 0:r.body,o=En(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=En(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);return e=-n.scrollLeft+Jn(e),n=-n.scrollTop,"rtl"===An(r||t).direction&&(e+=En(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:e,y:n}}(In(e)))}function or(e){var t,n=e.reference,r=e.element,o=(e=e.placement)?wn(e):null,a=(e=e?qn(e):null,n.x+n.width/2-r.width/2),i=n.y+n.height/2-r.height/2;switch(o){case en:t={x:a,y:n.y-r.height};break;case tn:t={x:a,y:n.y+n.height};break;case nn:t={x:n.x+n.width,y:i};break;case rn:t={x:n.x-r.width,y:i};break;default:t={x:n.x,y:n.y}}var s=o?Pn(o):null;if(null!=s){var l="y"===s?"height":"width";switch(e){case sn:t[s]=t[s]-(n[l]/2-r[l]/2);break;case ln:t[s]=t[s]+(n[l]/2-r[l]/2)}}return t}function ar(e,t){var n,r=void 0===(r=(t=t=void 0===t?{}:t).placement)?e.placement:r,o=void 0===(o=t.strategy)?e.strategy:o,a=void 0===(a=t.boundary)?"clippingParents":a,i=void 0===(i=t.rootBoundary)?cn:i,s=void 0===(s=t.elementContext)?un:s,l=void 0!==(l=t.altBoundary)&&l,c=(t=Fn("number"!=typeof(t=void 0===(t=t.padding)?0:t)?t:Bn(t,an)),e.rects.popper),u=(l=function(e,t,n,r){return t="clippingParents"===t?function(e){var t=tr(jn(e)),n=0<=["absolute","fixed"].indexOf(An(e).position)&&yn(e)?Ln(e):e;return gn(n)?t.filter((function(e){return gn(e)&&Mn(e,n)&&"body"!==hn(e)})):[]}(e):[].concat(t),n=(t=[].concat(t,[n]))[0],t=t.reduce((function(t,n){return n=rr(e,n,r),t.top=En(n.top,t.top),t.right=xn(n.right,t.right),t.bottom=xn(n.bottom,t.bottom),t.left=En(n.left,t.left),t}),rr(e,n,r)),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}(gn(l=e.elements[l?s===un?"reference":un:s])?l:l.contextElement||In(e.elements.popper),a,i,o),i=or({reference:a=kn(e.elements.reference),element:c,strategy:"absolute",placement:r}),o=nr(Object.assign({},c,i)),c=s===un?o:a,{top:l.top-c.top+t.top,bottom:c.bottom-l.bottom+t.bottom,left:l.left-c.left+t.left,right:c.right-l.right+t.right});return i=e.modifiersData.offset,s===un&&i&&(n=i[r],Object.keys(u).forEach((function(e){var t=0<=[nn,tn].indexOf(e)?1:-1,r=0<=[en,tn].indexOf(e)?"y":"x";u[e]+=n[r]*t}))),u}var ir={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;if(e=e.name,!t.modifiersData[e]._skip){for(var r,o=void 0===(i=n.mainAxis)||i,a=void 0===(i=n.altAxis)||i,i=n.fallbackPlacements,s=n.padding,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=void 0===(r=n.flipVariations)||r,p=n.allowedAutoPlacements,f=(n=wn(r=t.options.placement),i=i||(n!==r&&d?function(e){var t;return wn(e)===on?[]:(t=Yn(e),[$n(e),t,$n(t)])}(r):[Yn(r)]),[r].concat(i).reduce((function(e,n){return e.concat(wn(n)===on?function(e,t){var n=(t=t=void 0===t?{}:t).placement,r=t.boundary,o=t.rootBoundary,a=t.padding,i=t.flipVariations,s=void 0===(t=t.allowedAutoPlacements)?pn:t,l=qn(n),c=(n=0===(n=(t=l?i?dn:dn.filter((function(e){return qn(e)===l})):an).filter((function(e){return 0<=s.indexOf(e)}))).length?t:n).reduce((function(t,n){return t[n]=ar(e,{placement:n,boundary:r,rootBoundary:o,padding:a})[wn(n)],t}),{});return Object.keys(c).sort((function(e,t){return c[e]-c[t]}))}(t,{placement:n,boundary:l,rootBoundary:c,padding:s,flipVariations:d,allowedAutoPlacements:p}):n)}),[])),h=t.rects.reference,m=t.rects.popper,g=new Map,y=!0,v=f[0],b=0;b<f.length;b++){var w=f[b],E=wn(w),x=qn(w)===sn,C=(S=0<=[en,tn].indexOf(E))?"width":"height",_=ar(t,{placement:w,boundary:l,rootBoundary:c,altBoundary:u,padding:s}),S=S?x?nn:rn:x?tn:en;if(h[C]>m[C]&&(S=Yn(S)),x=Yn(S),C=[],o&&C.push(_[E]<=0),a&&C.push(_[S]<=0,_[x]<=0),C.every((function(e){return e}))){v=w,y=!1;break}g.set(w,C)}if(y)for(var O=d?3:1;0<O&&"break"!==(e=>{var t=f.find((function(t){if(t=g.get(t))return t.slice(0,e).every((function(e){return e}))}));if(t)return v=t,"break"})(O);O--);t.placement!==v&&(t.modifiersData[e]._skip=!0,t.placement=v,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sr(e,t,n){return{top:e.top-t.height-(n=void 0===n?{x:0,y:0}:n).y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lr(e){return[en,nn,tn,rn].some((function(t){return 0<=e[t]}))}var cr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=(e=e.name,t.rects.reference),r=t.rects.popper,o=t.modifiersData.preventOverflow,a=ar(t,{elementContext:"reference"}),i=ar(t,{altBoundary:!0});a=sr(a,n),n=sr(i,r,o),i=lr(a),r=lr(n),t.modifiersData[e]={referenceClippingOffsets:a,popperEscapeOffsets:n,isReferenceHidden:i,hasPopperEscaped:r},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":i,"data-popper-escaped":r})}},ur={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=void 0===(e=e.options.offset)?[0,0]:e,o=(e=pn.reduce((function(e,n){return e[n]=function(e,t,n){var r=wn(e),o=0<=[rn,en].indexOf(r)?-1:1;return e=(t="function"==typeof n?n(Object.assign({},t,{placement:e})):n)[0]||0,n=(t[1]||0)*o,0<=[rn,nn].indexOf(r)?{x:n,y:e}:{x:e,y:n}}(n,t.rects,r),e}),{}),(a=e[t.placement]).x),a=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=o,t.modifiersData.popperOffsets.y+=a),t.modifiersData[n]=e}},dr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=or({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},pr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,n,r,o,a,i,s,l,c,u=e.state,d=e.options,p=(e=e.name,void 0===(p=d.mainAxis)||p),f=void 0!==(f=d.altAxis)&&f,h=void 0===(h=d.tether)||h,m=void 0===(m=d.tetherOffset)?0:m,g=(d=ar(u,{boundary:d.boundary,rootBoundary:d.rootBoundary,padding:d.padding,altBoundary:d.altBoundary}),wn(u.placement)),y=qn(u.placement),v=!y,b=Pn(g),w=function(e){return"x"===e?"y":"x"}(b),E=u.modifiersData.popperOffsets,x=u.rects.reference,C=u.rects.popper,_=(m="number"==typeof(m="function"==typeof m?m(Object.assign({},u.rects,{placement:u.placement})):m)?{mainAxis:m,altAxis:m}:Object.assign({mainAxis:0,altAxis:0},m),u.modifiersData.offset?u.modifiersData.offset[u.placement]:null),S={x:0,y:0};E&&(p&&(p="y"===b?"height":"width",l=(t=E[b])+d[o="y"===b?en:rn],c=t-d[n="y"===b?tn:nn],r=h?-C[p]/2:0,i=(y===sn?x:C)[p],y=y===sn?-C[p]:-x[p],s=u.elements.arrow,s=h&&s?Nn(s):{width:0,height:0},o=(a=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0})[o],a=a[n],n=Rn(0,x[p],s[p]),s=v?x[p]/2-r-n-o-m.mainAxis:i-n-o-m.mainAxis,i=v?-x[p]/2+r+n+a+m.mainAxis:y+n+a+m.mainAxis,v=(o=u.elements.arrow&&Ln(u.elements.arrow))?"y"===b?o.clientTop||0:o.clientLeft||0:0,y=t+i-(r=null!=(p=null==_?void 0:_[b])?p:0),n=Rn(h?xn(l,t+s-r-v):l,t,h?En(c,y):c),E[b]=n,S[b]=n-t),f&&(a="y"===w?"height":"width",i=(o=E[w])+d["x"===b?en:rn],p=o-d["x"===b?tn:nn],s=-1!==[en,rn].indexOf(g),v=null!=(r=null==_?void 0:_[w])?r:0,l=s?i:o-x[a]-C[a]-v+m.altAxis,y=s?o+x[a]+C[a]-v-m.altAxis:p,c=h&&s?function(e,t,n){return n<(e=Rn(e,t,n))?n:e}(l,o,y):Rn(h?l:i,o,h?y:p),E[w]=c,S[w]=c-o),u.modifiersData[e]=S)},requiresIfExists:["offset"]};function fr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hr(e,t,n){void 0===n&&(n=!1);var r=yn(t),o=yn(t)&&function(e){var t=e.getBoundingClientRect(),n=Cn(t.width)/e.offsetWidth||1;return t=Cn(t.height)/e.offsetHeight||1,1!==n||1!==t}(t),a=In(t),i=(e=kn(e,o,n),o={scrollLeft:0,scrollTop:0},{x:0,y:0});return!r&&n||("body"===hn(t)&&!Xn(a)||(o=function(e){return(e!==mn(e)&&yn(e)?fr:Zn)(e)}(t)),yn(t)?((i=kn(t,!0)).x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=Jn(a))),{x:e.left+o.scrollLeft-i.x,y:e.top+o.scrollTop-i.y,width:e.width,height:e.height}}function mr(e){var t;return function(){return t=t||new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))}}var gr={placement:"bottom",modifiers:[],strategy:"absolute"};function yr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var vr,br,wr,Er,xr=(wr=void 0===(br=(vr=vr=void 0===(vr={defaultModifiers:[Gn,dr,Vn,bn,ur,ir,pr,zn,cr]})?{}:vr).defaultModifiers)?[]:br,Er=void 0===(br=vr.defaultOptions)?gr:br,function(e,t,n){void 0===n&&(n=Er);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},gr,Er),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],a=!1,i={state:r,setOptions:function(n){return n="function"==typeof n?n(r.options):n,s(),r.options=Object.assign({},Er,r.options,n),r.scrollParents={reference:gn(e)?tr(e):e.contextElement?tr(e.contextElement):[],popper:tr(t)},n=function(e){var t=function(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){n.has(r)||(r=t.get(r))&&e(r)})),r.push(o)}(e)})),r}(e);return fn.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(wr,r.options.modifiers))),r.orderedModifiers=n.filter((function(e){return e.enabled})),r.orderedModifiers.forEach((function(e){var t=e.name,n=e.options;"function"==typeof(e=e.effect)&&(e=e({state:r,name:t,instance:i,options:void 0===n?{}:n}),o.push(e||function(){}))})),i.update()},forceUpdate:function(){if(!a){var e,t=(e=r.elements).reference;if(yr(t,e=e.popper)){r.rects={reference:hr(t,Ln(e),"fixed"===r.options.strategy),popper:Nn(e)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var n,o,s,l=0;l<r.orderedModifiers.length;l++)!0===r.reset?(r.reset=!1,l=-1):(o=(n=r.orderedModifiers[l]).fn,s=n.options,"function"==typeof o&&(r=o({state:r,options:void 0===s?{}:s,name:n.name,instance:i})||r))}}},update:mr((function(){return new Promise((function(e){i.forceUpdate(),e(r)}))})),destroy:function(){s(),a=!0}};return yr(e,t)&&i.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),i;function s(){o.forEach((function(e){return e()})),o=[]}}),Cr="tippy-content",_r="tippy-arrow",Sr="tippy-svg-arrow",Or={passive:!0,capture:!0},kr=function(){return document.body};function Nr(e,t,n){var r;return Array.isArray(e)?null==(r=e[t])?Array.isArray(n)?n[t]:n:r:e}function Mr(e,t){return 0===(e={}.toString.call(e)).indexOf("[object")&&-1<e.indexOf(t+"]")}function Ar(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Dr(e,t){var n;return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)}}function Ir(e){return[].concat(e)}function jr(e,t){-1===e.indexOf(t)&&e.push(t)}function Tr(e){return[].slice.call(e)}function Lr(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Pr(){return document.createElement("div")}function Rr(e){return["Element","Fragment"].some((function(t){return Mr(e,t)}))}function Fr(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Br(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function zr(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function qr(e,t){for(var n,r=t;r;){if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var Ur={isTouch:!1},Hr=0;function Vr(){Ur.isTouch||(Ur.isTouch=!0,window.performance&&document.addEventListener("mousemove",Kr))}function Kr(){var e=performance.now();e-Hr<20&&(Ur.isTouch=!1,document.removeEventListener("mousemove",Kr)),Hr=e}function Gr(){var e,t=document.activeElement;(function(e){return!(!e||!e._tippy||e._tippy.reference!==e)})(t)&&(e=t._tippy,t.blur)&&!e.state.isVisible&&t.blur()}var Wr,Yr=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto);function Qr(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function $r(e){return Qr("\n  %ctippy.js\n\n  %c"+Qr(e)+"\n\n  %c👷‍ This is a development-only message. It will be removed in production.\n  ")}function Zr(e,t){e&&!Wr.has(t)&&(Wr.add(t),(e=console).warn.apply(e,function(e){return[$r(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}(t)))}var Jr=Object.assign({appendTo:kr,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},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Xr=Object.keys(Jr);function eo(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name;return r&&(t[r]=void 0!==e[r]?e[r]:null!=(r=Jr[r])?r:n.defaultValue),t}),{});return Object.assign({},e,t)}function to(e,t){return e=Object.assign({},t,{content:Ar(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(eo(Object.assign({},Jr,{plugins:t}))):Xr).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(r)if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins)),e.aria=Object.assign({},Jr.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function no(e,t){e.innerHTML=t}function ro(e){var t=Pr();return!0===e?t.className=_r:(t.className=Sr,Rr(e)?t.appendChild(e):no(t,e)),t}function oo(e,t){Rr(t.content)?(no(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?no(e,t.content):e.textContent=t.content)}function ao(e){var t=Tr((e=e.firstElementChild).children);return{box:e,content:t.find((function(e){return e.classList.contains(Cr)})),arrow:t.find((function(e){return e.classList.contains(_r)||e.classList.contains(Sr)})),backdrop:t.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function io(e){var t=Pr(),n=Pr(),r=(n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1"),Pr());function o(n,r){var o=(i=ao(t)).box,a=i.content,i=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||oo(a,e.props),r.arrow?i?n.arrow!==r.arrow&&(o.removeChild(i),o.appendChild(ro(r.arrow))):o.appendChild(ro(r.arrow)):i&&o.removeChild(i)}return r.className=Cr,r.setAttribute("data-state","hidden"),oo(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}io.$$tippy=!0;var so=1,lo=[],co=[];function uo(e,t){var n=Jr.plugins.concat((t=void 0===t?{}:t).plugins||[]),r=(document.addEventListener("touchstart",Vr,Or),window.addEventListener("blur",Gr),Object.assign({},t,{plugins:n}));return n=(t=function(e){return Rr(e)?[e]:function(e){return Mr(e,"NodeList")}(e)?Tr(e):Array.isArray(e)?e:Tr(document.querySelectorAll(e))}(e)).reduce((function(e,t){return(t=t&&function(e,t){var n,r,o,a,i,s,l,c,u,d,p,f=to(e,Object.assign({},Jr,eo(Lr(t)))),h=!1,m=!1,g=!1,y=!1,v=[],b=Dr(V,f.interactiveDebounce),w=(t=so++,function(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}(f.plugins)),E={id:t,reference:e,popper:Pr(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:w,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){var n,r;E.state.isDestroyed||(A("onBeforeUpdate",[E,t]),U(),n=E.props,r=to(e,Object.assign({},n,Lr(t),{ignoreAttributes:!0})),E.props=r,q(),n.interactiveDebounce!==r.interactiveDebounce&&(j(),b=Dr(V,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?Ir(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),I(),M(),u&&u(n,r),E.popperInstance&&(Y(),$().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),A("onAfterUpdate",[E,t]))},setContent:function(e){E.setProps({content:e})},show:function(){var e=E.state.isVisible,t=E.state.isDestroyed,n=!E.state.isEnabled,r=Ur.isTouch&&!E.props.touch,o=Nr(E.props.duration,0,Jr.duration);e||t||n||r||S().hasAttribute("disabled")||(A("onShow",[E],!1),!1!==E.props.onShow(E)&&(E.state.isVisible=!0,_()&&(c.style.visibility="visible"),M(),R(),E.state.isMounted||(c.style.transition="none"),_()&&Fr([(e=k()).box,e.content],0),s=function(){var e,t;E.state.isVisible&&!y&&(y=!0,c.offsetHeight,c.style.transition=E.props.moveTransition,_()&&E.props.animation&&(Fr([e=(t=k()).box,t=t.content],o),Br([e,t],"visible")),D(),I(),jr(co,E),null!=(e=E.popperInstance)&&e.forceUpdate(),A("onMount",[E]),E.props.animation)&&_()&&B(o,(function(){E.state.isShown=!0,A("onShown",[E])}))},t=E.props.appendTo,n=S(),(r=E.props.interactive&&t===kr||"parent"===t?n.parentNode:Ar(t,[n])).contains(c)||r.appendChild(c),E.state.isMounted=!0,Y(),0)&&Zr(E.props.interactive&&t===Jr.appendTo&&n.nextElementSibling!==c,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" ")))},hide:function(){var e,t=!E.state.isVisible,n=E.state.isDestroyed,r=!E.state.isEnabled,o=Nr(E.props.duration,1,Jr.duration);t||n||r||(A("onHide",[E],!1),!1!==E.props.onHide(E)&&(E.state.isVisible=!1,E.state.isShown=!1,h=y=!1,_()&&(c.style.visibility="hidden"),j(),F(),M(!0),_()&&(n=(t=k()).box,r=t.content,E.props.animation)&&(Fr([n,r],o),Br([n,r],"hidden")),D(),I(),E.props.animation?_()&&(e=E.unmount,B(o,(function(){!E.state.isVisible&&c.parentNode&&c.parentNode.contains(c)&&e()}))):E.unmount()))},hideWithInteractivity:function(e){O().addEventListener("mousemove",b),jr(lo,b),b(e)},enable:function(){E.state.isEnabled=!0},disable:function(){E.hide(),E.state.isEnabled=!1},unmount:function(){E.state.isVisible&&E.hide(),E.state.isMounted&&(Q(),$().forEach((function(e){e._tippy.unmount()})),c.parentNode&&c.parentNode.removeChild(c),co=co.filter((function(e){return e!==E})),E.state.isMounted=!1,A("onHidden",[E]))},destroy:function(){E.state.isDestroyed||(E.clearDelayTimeouts(),E.unmount(),U(),delete e._tippy,E.state.isDestroyed=!0,A("onDestroy",[E]))}};return!!f.render&&(t=f.render(E),c=t.popper,u=t.onUpdate,c.setAttribute("data-tippy-root",""),c.id="tippy-"+E.id,E.popper=c,e._tippy=E,c._tippy=E,d=w.map((function(e){return e.fn(E)})),p=e.hasAttribute("aria-expanded"),q(),I(),M(),A("onCreate",[E]),f.showOnCreate&&Z(),c.addEventListener("mouseenter",(function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()})),c.addEventListener("mouseleave",(function(){E.props.interactive&&0<=E.props.trigger.indexOf("mouseenter")&&O().addEventListener("mousemove",b)}))),E;function x(){var e=E.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===x()[0]}function _(){var e;return null!=(e=E.props.render)&&e.$$tippy}function S(){return l||e}function O(){var e=S().parentNode;return e?function(e){var t;return null!=(e=Ir(e)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document}(e):document}function k(){return ao(c)}function N(e){return E.state.isMounted&&!E.state.isVisible||Ur.isTouch||a&&"focus"===a.type?0:Nr(E.props.delay,e?0:1,Jr.delay)}function M(e){void 0===e&&(e=!1),c.style.pointerEvents=E.props.interactive&&!e?"":"none",c.style.zIndex=""+E.props.zIndex}function A(e,t,n){void 0===n&&(n=!0),d.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(n=E.props)[e].apply(n,t)}function D(){var t,n,r=E.props.aria;r.content&&(t="aria-"+r.content,n=c.id,Ir(E.props.triggerTarget||e).forEach((function(e){var r=e.getAttribute(t);E.state.isVisible?e.setAttribute(t,r?r+" "+n:n):(r=r&&r.replace(n,"").trim())?e.setAttribute(t,r):e.removeAttribute(t)})))}function I(){!p&&E.props.aria.expanded&&Ir(E.props.triggerTarget||e).forEach((function(e){E.props.interactive?e.setAttribute("aria-expanded",E.state.isVisible&&e===S()?"true":"false"):e.removeAttribute("aria-expanded")}))}function j(){O().removeEventListener("mousemove",b),lo=lo.filter((function(e){return e!==b}))}function T(t){if(!Ur.isTouch||!g&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!E.props.interactive||!qr(c,n)){if(Ir(E.props.triggerTarget||e).some((function(e){return qr(e,n)}))){if(Ur.isTouch)return;if(E.state.isVisible&&0<=E.props.trigger.indexOf("click"))return}else A("onClickOutside",[E,t]);!0===E.props.hideOnClick&&(E.clearDelayTimeouts(),E.hide(),m=!0,setTimeout((function(){m=!1})),E.state.isMounted||F())}}}function L(){g=!0}function P(){g=!1}function R(){var e=O();e.addEventListener("mousedown",T,!0),e.addEventListener("touchend",T,Or),e.addEventListener("touchstart",P,Or),e.addEventListener("touchmove",L,Or)}function F(){var e=O();e.removeEventListener("mousedown",T,!0),e.removeEventListener("touchend",T,Or),e.removeEventListener("touchstart",P,Or),e.removeEventListener("touchmove",L,Or)}function B(e,t){var n=k().box;function r(e){e.target===n&&(zr(n,"remove",r),t())}if(0===e)return t();zr(n,"remove",i),zr(n,"add",r),i=r}function z(t,n,r){void 0===r&&(r=!1),Ir(E.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),v.push({node:e,eventType:t,handler:n,options:r})}))}function q(){C()&&(z("touchstart",H,{passive:!0}),z("touchend",K,{passive:!0})),function(e){return e.split(/\s+/).filter(Boolean)}(E.props.trigger).forEach((function(e){if("manual"!==e)switch(z(e,H),e){case"mouseenter":z("mouseleave",K);break;case"focus":z(Yr?"focusout":"blur",G);break;case"focusin":z("focusout",G)}}))}function U(){v.forEach((function(e){e.node.removeEventListener(e.eventType,e.handler,e.options)})),v=[]}function H(e){var t,n=!1;!E.state.isEnabled||W(e)||m||(t="focus"===(null==a?void 0:a.type),l=(a=e).currentTarget,I(),!E.state.isVisible&&function(e){return Mr(e,"MouseEvent")}(e)&&lo.forEach((function(t){return t(e)})),"click"===e.type&&(E.props.trigger.indexOf("mouseenter")<0||h)&&!1!==E.props.hideOnClick&&E.state.isVisible?n=!0:Z(e),"click"===e.type&&(h=!n),n&&!t&&J(e))}function V(e){var t=e.target;t=S().contains(t)||c.contains(t),"mousemove"===e.type&&t||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t,o,a,i=e.popperRect,s=e.popperState,l=(e=e.props.interactiveBorder,function(e){return e.split("-")[0]}(s.placement));return!(s=s.modifiersData.offset)||(t="bottom"===l?s.top.y:0,o="top"===l?s.bottom.y:0,a="right"===l?s.left.x:0,l="left"===l?s.right.x:0,s=i.top-r+t>e,t=r-i.bottom-o>e,o=i.left-n+a>e,a=n-i.right-l>e,s)||t||o||a}))}($().concat(c).map((function(e){var t=null==(t=e._tippy.popperInstance)?void 0:t.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:f}:null})).filter(Boolean),e)&&(j(),J(e))}function K(e){W(e)||0<=E.props.trigger.indexOf("click")&&h||(E.props.interactive?E.hideWithInteractivity(e):J(e))}function G(e){E.props.trigger.indexOf("focusin")<0&&e.target!==S()||E.props.interactive&&e.relatedTarget&&c.contains(e.relatedTarget)||J(e)}function W(e){return!!Ur.isTouch&&C()!==0<=e.type.indexOf("touch")}function Y(){Q();var t=(a=E.props).popperOptions,n=a.placement,r=a.offset,o=a.getReferenceClientRect,a=a.moveTransition,i=_()?ao(c).arrow:null;o=o?{getBoundingClientRect:o,contextElement:o.contextElement||S()}:e,r=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state;_()&&(t=k().box,["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?t.setAttribute("data-placement",n.placement):n.attributes.popper["data-popper-"+e]?t.setAttribute("data-"+e,""):t.removeAttribute("data-"+e)})),n.attributes.popper={})}}],_()&&i&&r.push({name:"arrow",options:{element:i,padding:3}}),r.push.apply(r,(null==t?void 0:t.modifiers)||[]),E.popperInstance=xr(o,c,Object.assign({},t,{placement:n,onFirstUpdate:s,modifiers:r}))}function Q(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function $(){return Tr(c.querySelectorAll("[data-tippy-root]"))}function Z(e){E.clearDelayTimeouts(),e&&A("onTrigger",[E,e]),R(),e=N(!0);var t=(r=x())[0],r=r[1];(e=Ur.isTouch&&"hold"===t&&r?r:e)?n=setTimeout((function(){E.show()}),e):E.show()}function J(e){E.clearDelayTimeouts(),A("onUntrigger",[E,e]),E.state.isVisible?0<=E.props.trigger.indexOf("mouseenter")&&0<=E.props.trigger.indexOf("click")&&0<=["mouseleave","mousemove"].indexOf(e.type)&&h||((e=N(!1))?r=setTimeout((function(){E.state.isVisible&&E.hide()}),e):o=requestAnimationFrame((function(){E.hide()}))):F()}}(t,r))&&e.push(t),e}),[]),Rr(e)?n[0]:n}function po(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),a=0;a<o.length;a++)n=o[a],0<=t.indexOf(n)||(r[n]=e[n]);return r}uo.defaultProps=Jr,uo.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Jr[t]=e[t]}))},uo.currentInput=Ur,Object.assign({},bn,{effect:function(e){var t={popper:{position:(e=e.state).options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow)}}),uo.setDefaultProps({render:io});var fo="undefined"!=typeof window&&"undefined"!=typeof document;function ho(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current"))&&(e.current=t)}function mo(){return fo&&document.createElement("div")}function go(e,t){if(e!==t){if("object"!=typeof e||null==e||"object"!=typeof t||null==t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!go(e[n],t[n]))return!1}}return!0}function yo(e){var t=[];return e.forEach((function(e){t.find((function(t){return go(e,t)}))||t.push(e)})),t}var vo=fo?r.useLayoutEffect:r.useEffect;function bo(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var wo,Eo,xo={name:"className",defaultValue:"",fn:function(e){function t(){var t;return!(null==(t=e.props.render)||!t.$$tippy)}var n=e.popper.firstElementChild;function r(){(!e.props.className||t())&&bo(n,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){t()&&bo(n,"remove",e.props.className)},onAfterUpdate:r}}},Co=(Eo=uo,wo=function(e){var t=e.children,n=e.content,a=e.visible,i=e.singleton,s=e.render,l=e.reference,c=void 0!==(u=e.disabled)&&u,u=void 0===(u=e.ignoreAttributes)||u,d=(e=po(e,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),void 0!==a),p=void 0!==i,f=(x=(0,r.useState)(!1))[0],h=x[1],m=(x=(0,r.useState)({}))[0],g=x[1],y=(x=(0,r.useState)())[0],v=x[1],b=function(e){var t=(0,r.useRef)();return t.current||(t.current=e()),t.current}((function(){return{container:mo(),renders:1}})),w=Object.assign({ignoreAttributes:u},e,{content:b.container}),E=(d&&(w.trigger="manual",w.hideOnClick=!1),p&&(c=!0),w),x=w.plugins||[];return s&&(E=Object.assign({},w,{plugins:p&&null!=i.data?[].concat(x,[{fn:function(){return{onTrigger:function(e,t){var n=i.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,v(n.content)}}}}]):x,render:function(){return{popper:b.container}}})),u=[l].concat(t?[t.type]:[]),vo((function(){var e=l,t=(l&&l.hasOwnProperty("current")&&(e=l.current),Eo(e||b.ref||mo(),Object.assign({},E,{plugins:[xo].concat(w.plugins||[])})));return b.instance=t,c&&t.disable(),a&&t.show(),p&&i.hook({instance:t,content:n,props:E,setSingletonContent:v}),h(!0),function(){t.destroy(),null!=i&&i.cleanup(t)}}),u),vo((function(){var e,t;1===b.renders?b.renders++:((t=b.instance).setProps(function(e,t){return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:yo([].concat((null==(e=e.popperOptions)?void 0:e.modifiers)||[],(null==(e=t.popperOptions)?void 0:e.modifiers)||[]))})})}(t.props,E)),null!=(e=t.popperInstance)&&e.forceUpdate(),c?t.disable():t.enable(),d&&(a?t.show():t.hide()),p&&i.hook({instance:t,content:n,props:E,setSingletonContent:v}))})),vo((function(){var e;s&&(e=b.instance).setProps({popperOptions:Object.assign({},e.props.popperOptions,{modifiers:[].concat(((null==(e=e.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=null==(t=(e=e.state).modifiersData)?void 0:t.hide;m.placement===e.placement&&m.referenceHidden===(null==t?void 0:t.isReferenceHidden)&&m.escaped===(null==t?void 0:t.hasPopperEscaped)||g({placement:e.placement,referenceHidden:null==t?void 0:t.isReferenceHidden,escaped:null==t?void 0:t.hasPopperEscaped}),e.attributes.popper={}}}])})})}),[m.placement,m.referenceHidden,m.escaped].concat(u)),o().createElement(o().Fragment,null,t?(0,r.cloneElement)(t,{ref:function(e){b.ref=e,ho(t.ref,e)}}):null,f&&(0,H.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(m),y,b.instance):n,b.container))},(0,r.forwardRef)((function(e,t){var n=e.children;return e=po(e,["children"]),o().createElement(wo,Object.assign({},undefined,e),n?(0,r.cloneElement)(n,{ref:function(e){ho(t,e),ho(n.ref,e)}}):null)}))),_o=Co,So=function(e){var t=e.data,n=e.innerRef,o=e.innerProps,a=e.isFocused,i=e.isSelected,s=(e=e.selectProps.classNamePrefix||"react-select",e="".concat(e,"__option"),a?"".concat(e,"--is-focused"):"");return i=i?"".concat(e,"--is-selected"):"",(0,r.createElement)("div",_e({ref:n},o,{className:"".concat(e," ").concat(s," ").concat(i," custom-option"),style:{padding:"10px",backgroundColor:a?"#f0f0f0":"white",cursor:"pointer"}}),(0,r.createElement)("span",null,t.label),t.tooltip&&(0,r.createElement)(_o,{content:t.tooltip},(0,r.createElement)("span",{className:"tooltip-icon",style:{marginLeft:"10px"}},(0,r.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M6.33203 10.332H7.66536V6.33203H6.33203V10.332ZM6.9987 4.9987C7.18759 4.9987 7.34592 4.93481 7.4737 4.80703C7.60148 4.67925 7.66536 4.52092 7.66536 4.33203C7.66536 4.14314 7.60148 3.98481 7.4737 3.85703C7.34592 3.72925 7.18759 3.66536 6.9987 3.66536C6.80981 3.66536 6.65148 3.72925 6.5237 3.85703C6.39592 3.98481 6.33203 4.14314 6.33203 4.33203C6.33203 4.52092 6.39592 4.67925 6.5237 4.80703C6.65148 4.93481 6.80981 4.9987 6.9987 4.9987ZM6.9987 13.6654C6.07648 13.6654 5.20981 13.4904 4.3987 13.1404C3.58759 12.7904 2.88203 12.3154 2.28203 11.7154C1.68203 11.1154 1.20703 10.4098 0.857031 9.5987C0.507031 8.78759 0.332031 7.92092 0.332031 6.9987C0.332031 6.07648 0.507031 5.20981 0.857031 4.3987C1.20703 3.58759 1.68203 2.88203 2.28203 2.28203C2.88203 1.68203 3.58759 1.20703 4.3987 0.857031C5.20981 0.507031 6.07648 0.332031 6.9987 0.332031C7.92092 0.332031 8.78759 0.507031 9.5987 0.857031C10.4098 1.20703 11.1154 1.68203 11.7154 2.28203C12.3154 2.88203 12.7904 3.58759 13.1404 4.3987C13.4904 5.20981 13.6654 6.07648 13.6654 6.9987C13.6654 7.92092 13.4904 8.78759 13.1404 9.5987C12.7904 10.4098 12.3154 11.1154 11.7154 11.7154C11.1154 12.3154 10.4098 12.7904 9.5987 13.1404C8.78759 13.4904 7.92092 13.6654 6.9987 13.6654ZM6.9987 12.332C8.48759 12.332 9.7487 11.8154 10.782 10.782C11.8154 9.7487 12.332 8.48759 12.332 6.9987C12.332 5.50981 11.8154 4.2487 10.782 3.21536C9.7487 2.18203 8.48759 1.66536 6.9987 1.66536C5.50981 1.66536 4.2487 2.18203 3.21536 3.21536C2.18203 4.2487 1.66536 5.50981 1.66536 6.9987C1.66536 8.48759 2.18203 9.7487 3.21536 10.782C4.2487 11.8154 5.50981 12.332 6.9987 12.332Z",fill:"#667085"})))))},Oo=Ze((function(e){function t(){if(e.ajax&&(!e.ajax.rules||be(e.ajax.rules,n.values))){g(!0);var t={};if(Object.keys(null==e?void 0:e.ajax.data).map((function(r){var o,a;-1<(null==e?void 0:e.ajax.data[r].indexOf("@"))?(a=null==e?void 0:e.ajax.data[r].substr(1),t[r]=null==(o=n.values)?void 0:o[a]):t[r]=null==e?void 0:e.ajax.data[r]})),!y)return Z({path:null==e?void 0:e.ajax.api,data:t}).then((function(t){g(!1);var r=pe(e.options,t,"value");return n.setFormField([].concat(Y(u),["options"]),r),f({options:r,parentIndex:[].concat(Y(u),["options"])}),t}))}}var n=Me(),o=e.id,a=e.name,i=e.multiple,s=e.placeholder,l=void 0!==(l=e.search)&&l,c=e.onChange,u=e.parentIndex,d=(b=Ae(e,"options")).options,p=b.selectedOption,f=b.setData,h=((b=Se((0,r.useState)(null),2))[0],b[1]),m=(b=Se((0,r.useState)(!1),2))[0],g=b[1],y=(b=Se((0,r.useState)(!1),2))[0],b=(0,r.useCallback)((function(e){h(e),te(e)?c({target:{type:"select",name:a,value:null==e?void 0:e.map((function(e){return e.value})),options:d,multiple:i}}):c({target:{type:"select",name:a,value:null==e?void 0:e.value,options:d,multiple:i}})}),[a,d,c,i]),w=((0,r.useEffect)((function(){t()}),[]),e.options_tooltip?{Option:So}:void 0);return(0,r.createElement)("div",{className:"wprf-select-wrapper"},(0,r.createElement)(v.Ay,{isDisabled:null==e?void 0:e.disable,className:"wprf-select",classNamePrefix:"wprf-select",isSearchable:null!=l&&l,id:o,name:a,menuIsOpen:e.menuIsOpen,isMulti:null!=i&&i,placeholder:s,isLoading:m,options:d,value:p,onMenuOpen:t,components:w,onChange:b}))})),ko=Ze((function(e){var t,n=Me(),o=e.id,a=e.name,s=e.multiple,l=e.placeholder,c=e.onChange,u=(t=Se((0,r.useState)(n.eligibleOptions(e.options)),2))[0],d=t[1],p=(t=Se((0,r.useState)(null==e?void 0:e.value),2))[0],f=t[1],h=(t=Se((0,r.useState)(!1),2))[0],m=t[1];return(0,r.useEffect)((function(){d(n.eligibleOptions(e.options))}),[n.values.source]),(0,r.useEffect)((function(){c({target:{type:"select",name:a,value:p,multiple:s}})}),[p]),(0,r.createElement)("div",{className:"wprf-async-select-wrapper"},(0,r.createElement)(U.A,{cacheOptions:!0,loadOptions:function t(r,o){var a;if(e.ajax&&(!e.ajax.rules||be(e.ajax.rules,n.values)))if(r)if(r.length<3)o([{label:(0,i.__)("Please input a minimum of 3 characters."),value:null,disabled:!0}]);else{var s={inputValue:r};if(null!=(a=Object.keys(e.ajax.data))&&a.map((function(t){var r,o;-1<e.ajax.data[t].indexOf("@")?(o=e.ajax.data[t].substr(1),s[t]=null==(r=n.values)?void 0:r[o]):s[t]=e.ajax.data[t]})),!h&&r)return m(!0),window.lastRequest=null,Z({path:e.ajax.api,data:s}).then((function(e){return o(e),e})).finally((function(){var e;m(!1),window.lastRequest&&(e=window.lastRequest,window.lastRequest=null,t.apply(void 0,Y(e))),window.lastCompleteRequest=r}));window.lastRequest=[r,o]}else o(u)},defaultOptions:u,isDisabled:null==e?void 0:e.disable,isMulti:null!=s&&s,classNamePrefix:"wprf-async-select",id:o,name:a,placeholder:l,formatOptionLabel:function(e,t){var n,o;return null!=t&&null!=(n=t.inputValue)&&n.length&&e.name&&e.name.toLowerCase().includes(null==t||null==(n=t.inputValue)?void 0:n.toLowerCase())?(null!=e&&e.name,n=new RegExp("(".concat(null==t?void 0:t.inputValue,")"),"gi"),t=null==(t=e.name)?void 0:t.replace(n,"<strong style={font-weight: 900}>$1</strong>"),o=null==(o=e.address)?void 0:o.replace(n,"<strong style={font-weight: 900}>$1</strong>"),(0,r.createElement)(r.Fragment,null,q(t||"")," ",(0,r.createElement)("small",null,q(o||"")))):(0,r.createElement)(r.Fragment,null,e.name?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("b",null,e.name)," "):(0,r.createElement)(r.Fragment,null,e.label," "),e.address&&(0,r.createElement)("small",null,e.address))},value:p,isClearable:!0,isOptionDisabled:function(e){return null==e?void 0:e.disabled},onChange:function(e){return f(e)}}))})),No=function(e){var t,n=e.name,o=e.id,a=e.label,i=e.units,s=e.min,l=e.max,c=e.unit,u=e.reset,d=(t=Se((0,r.useState)(e.value||0),2))[0],p=t[1],f=(t=Se((0,r.useState)(c),2))[0],h=t[1];return(0,r.useEffect)((function(){var t;d&&(function(e){return null!==e&&"number"==typeof e}(d)?t=f?"".concat(d).concat(f):"".concat(d):J(d)&&(t=-1<d.indexOf(f)?"".concat(d):"".concat(d).concat(f)),e.onChange({target:{type:"slider",name:n,value:t}}))}),[d,f]),(0,r.createElement)("div",{className:"wprf-slider-wrap"},(0,r.createElement)("div",{className:"wprf-slider-control-head"},(0,r.createElement)(Ue,{htmlFor:o||n},a),te(i)&&0<i.length&&(0,r.createElement)("div",{className:"wprf-slider-units"},i.map((function(e,t){return(0,r.createElement)(b.Button,{key:t,isSmall:!0,isPrimary:!0,onClick:function(){return h(e)},className:e==f?"unit-active":""},e)})))),(0,r.createElement)("div",{className:"wprf-slider-control"},(0,r.createElement)(b.RangeControl,{allowReset:null==u||u,value:parseInt(d),min:s,max:l,onChange:function(e){return p(e)}})))};function Mo(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Do=Ze(o().memo((function(e){var t=ue(e,["is_pro","visible","trigger","disable","parentIndex","context"]),n=(0,r.useCallback)((function(n){return t.onChange(n,{isPro:!!e.is_pro})}),[null==t?void 0:t.value]);return o().createElement("textarea",Ao(Ao({},t),{},{onChange:n,rows:2}))})));function Io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jo(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lo=function(e){var t,n,o,a=e.options,i=e.value,s=e.multiple,l=e.style,c=se(a),u=To({column:4},l);return s?(a=Se((0,r.useState)({}),2),t=a[0],n=a[1],o=function(e){var t=e.target||e.currentTarget;n((function(e){return To(To({},e),{},K({},t.value,t.checked))}))},(0,r.useEffect)((function(){e.onChange({target:{type:"toggle",name:e.name,value:t}})}),[t]),(0,r.useEffect)((function(){if(ne(i))n(i);else{var e,t={},r=function(e,t){var n,r,o,a,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return o=!(r=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(i=function(e,t){var n;if(e)return"string"==typeof e?Io(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(c);try{for(r.s();!(e=r.n()).done;)t[e.value.value]=i}catch(e){r.e(e)}finally{r.f()}n(t)}}),[]),(0,r.createElement)("div",{className:"wprf-toggle-wrapper wprf-control"},(0,r.createElement)(ze,null,c.map((function(n){return(0,r.createElement)(qe,{key:n.value,column:u.column},(0,r.createElement)(ht,To(To({},n),{},{context:null==e?void 0:e.context,id:n.value,checked:void 0===t[n.value]||(null!=t&&t[n.value]?i:!(null==t||!t[n.value])),type:"checkbox",onChange:o,style:u})))}))))):(0,r.createElement)(ht,e)},Po=function(e){var t=e.fields,n=e.parentIndex,o=e.context,a=(e=Se((0,r.useState)([]),2))[0],i=e[1],s=(e=Se((0,r.useState)([]),2))[0],l=e[1];return(0,r.useEffect)((function(){var e=se(t);o.setFormField([n,"fields"],e),i(e)}),[]),(0,r.useEffect)((function(){var e;te(a)&&0<a.length&&(e=a.map((function(e,t){var o=[].concat(Y(n),["fields",t]);return"section"===(null==e?void 0:e.type)?(0,r.createElement)(Ot,_e({key:"input-".concat(e.name,"-").concat(t)},e,{parentIndex:o})):e?(0,r.createElement)(kt,_e({key:"input-".concat(e.name,"-").concat(t)},e,{parentIndex:o})):(0,r.createElement)(r.Fragment,null)})),l(e))}),[a]),(0,r.createElement)(r.Fragment,null,s)},Ro=["fields","active","setActive","submit"],Fo=function(e){var t=e.fields,n=e.active,a=e.setActive,s=e.submit,l=Oe(e,Ro);if(void 0===t)throw new Error((0,i.__)("There are no #tabs args defined in props.","betterdocs"));var c,u,d=Me(),p=l.parentIndex||[];if(te(t))return c=(e=Se((0,r.useState)([]),2))[0],u=e[1],(0,r.useEffect)((function(){var e=t.filter((function(e){return oe(null==d?void 0:d.values,e)}));u(e)}),[t,null==d||null==(e=d.values)?void 0:e.source]),(0,r.createElement)("div",{className:y()("wprf-tab-content-wrapper",null==d||null==(e=d.values)?void 0:e.source,null==d||null==(e=d.values)?void 0:e.themes)},(0,r.createElement)("div",{className:"wprf-tab-flex"},(0,r.createElement)("div",{className:"wprf-tab-contents"},t.map((function(e,t){var a;return oe(null==d?void 0:d.values,e)?(a=y()("wprf-tab-content","wprf-tab-".concat(null==e?void 0:e.id),{"wprf-active":n===e.id}),(0,r.createElement)("div",{id:null==e?void 0:e.id,className:a,key:null==e?void 0:e.id},(0,r.createElement)("div",{className:"wprf-tab-heading-wrapper"},(null==e?void 0:e.label)&&(null==(a=null==l?void 0:l.title)||a)&&(0,r.createElement)("h4",null,e.label),(0,r.createElement)("div",null,(null==l?void 0:l.content_heading)&&Object.keys(l.content_heading).map((function(e,t){return(0,r.createElement)(o().Fragment,{key:"button_".concat(e,"_").concat(t)},(0,r.createElement)(kt,l.content_heading[e]))})))),(0,r.createElement)(Po,{context:d,fields:null==e?void 0:e.fields,parentIndex:[].concat(Y(p),[t])}))):""}))),(0,m.applyFilters)("wprf_tab_content","",l)),(null==l||null==(e=l.step)?void 0:e.show)&&(null==l||null==(e=l.step)||!e.rules||be(null==l||null==(e=l.step)?void 0:e.rules,{rest:l,config:{active:n}}))&&(0,r.createElement)(Zt,_e({fields:c,active:n,setActive:a,config:null!=(e=l.step)?e:{show:!1}},l)),(null==(c=null==s?void 0:s.show)||c)&&(null==s||!s.rules||be(null==s?void 0:s.rules,{rest:l,config:{active:n}}))&&(0,r.createElement)(Jt,s));throw new Error((0,i.__)("Not an array.","betterdocs"))},Bo=function(e){if(void 0===e.fields)throw new Error((0,i.__)("There are no tabs defined!","betterdocs"));var t=e.active,n=e.setActive,o=e.fields,a=e.context,s=(c=Se((0,r.useState)([]),2))[0],l=c[1],c=((0,r.useEffect)((function(){var e=o.filter((function(e){return oe(null==a?void 0:a.values,e)}));l(e)}),[o,null==a||null==(c=a.values)?void 0:c.source]),y()("wprf-tab-menu-wrapper",null==e?void 0:e.className,{"wprf-tab-menu-sidebar":null==e?void 0:e.sidebar},null==a||null==(c=a.values)?void 0:c.source)),u=s.findIndex((function(e){return e.id===t}));return(0,r.createElement)("div",{className:c},(0,r.createElement)("ul",{className:"wprf-tab-nav"},s.map((function(o,i){var s;return(0,r.createElement)("li",{className:y()("wprf-tab-nav-item",K(K(K({},"".concat(o.classes),o.classes),"wprf-active-nav",t===o.id),"wprf-tab-complete",!(null==e||!e.completionTrack)&&i<=u)),"data-key":o.id,key:o.id,onClick:function(){var t;return(null==(t=null==e?void 0:e.clickable)||t)&&n(o.id)}},null!=e&&e.tab_number?(0,r.createElement)("span",{className:"icon"},(0,r.createElement)("span",{className:"count"},i+1)):"",(null==o?void 0:o.icon)&&(J(o.icon)&&!ne(o.icon)?(0,r.createElement)("img",{src:o.icon,alt:null==o?void 0:o.label}):ne(o.icon)?null==a||null==(i=a.icons)||null==(i=i[null==o||null==(s=o.icon)?void 0:s.type])?void 0:i[null==o||null==(s=o.icon)?void 0:s.name]:""),(0,r.createElement)("span",null,o.label),null!=o&&o.is_pro?(0,r.createElement)(Ve,{componentClasses:"wprf-badge-item",label:"Pro"}):(0,r.createElement)(r.Fragment,null))}))))},zo=function(e){var t=Me(),n=(i=Se((0,r.useState)((null==e?void 0:e.value)||(null==e?void 0:e.active)),2))[0],o=i[1],a=((0,r.useEffect)((function(){var t;null!=e&&e.save_locally&&(t=null!=(t=localStorage.getItem("quickbuilder_active_tab"))?t:null)&&o(JSON.parse(t))}),[]),null==(i=null==e?void 0:e.save)||i),i=y()("wp-react-form wprf-tabs-wrapper",null==e?void 0:e.className,{"wprf-tab-menu-as-sidebar":null==e?void 0:e.sidebar});return(0,r.useEffect)((function(){var t=null!=(t=e.value)?t:e.active;t!=n&&o(t)}),[null==e?void 0:e.value]),(0,r.useEffect)((function(){null!=e&&e.save_locally&&localStorage.setItem("quickbuilder_active_tab",JSON.stringify(n))}),[n]),(0,r.useEffect)((function(){e.value!==n&&a&&e.onChange({target:{type:"button",name:e.name,value:n}})}),[n]),(0,r.createElement)("div",{className:i},(0,r.createElement)(Bo,_e({},e,{active:n,setActive:function(e){return o(e)},fields:e.fields,context:t})),(0,r.createElement)(Fo,_e({},e,{fields:e.fields,active:n,setActive:function(e){return o(e)},submit:null==e?void 0:e.submit})))};function qo(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,a.registerStore)("formbuilder",Ce);var Ho=function(e){var t,n=Me(),o=e.tabs;return null!=(t=o)&&t.type||(o=Uo(Uo({},e.config),{},{value:null==e||null==(t=e.config)?void 0:t.active,fields:e.tabs,tabs:void 0,submit:null==e?void 0:e.submit,onChange:function(e){n.setActiveTab(null==e||null==(e=e.target)?void 0:e.value)}})),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(zo,o))}},4656:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},3492:(e,t,n)=>{"use strict";var r=n(4656);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},7657:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(8123);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},8123:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},9914:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n(3583);e.exports=a.call(r,o)},1035:(e,t,n)=>{"use strict";var r=n(5959),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<i.length;++g){var y=i[g];if(!(a[y]||r&&r[y]||m&&m[y]||s&&s[y])){var v=p(n,y);try{c(t,y,v)}catch(e){}}}}return t}},4523:(e,t)=>{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},8593:e=>{var t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,a=/<head[^]*>/i,i=/<body[^]*>/i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;s=l=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();s=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,f="object"==typeof document?document.createElement("template"):{};f.content&&(p=function(e){return f.innerHTML=e,f.content.childNodes}),e.exports=function(e){var c,u,d,f,h=e.match(o);switch(h&&h[1]&&(c=h[1].toLowerCase()),c){case t:return u=l(e),a.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),i.test(e)||(d=u.querySelector(r))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case n:case r:return f=(u=s(e)).querySelectorAll(c),i.test(e)&&a.test(e)?f[0].parentNode.childNodes:f;default:return p?p(e):(d=s(e,r).querySelector(r)).childNodes}}},6374:(e,t,n)=>{var r=n(8593),o=n(7310).formatDOM,a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(a);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},7310:(e,t,n)=>{for(var r,o=n(2095),a=n(4523).CASE_SENSITIVE_TAG_NAMES,i=o.Comment,s=o.Element,l=o.ProcessingInstruction,c=o.Text,u={},d=0,p=a.length;d<p;d++)r=a[d],u[r.toLowerCase()]=r;function f(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function h(e){return function(e){return u[e]}(e=e.toLowerCase())||e}t.formatAttributes=f,t.formatDOM=function e(t,n,r){n=n||null;for(var o,a=[],u=0,d=t.length;u<d;u++){var p,m=t[u];switch(m.nodeType){case 1:o=h(m.nodeName),(p=new s(o,f(m.attributes))).children=e("template"===o?m.content.childNodes:m.childNodes,p);break;case 3:p=new c(m.nodeValue);break;case 8:p=new i(m.nodeValue);break;default:continue}var g=a[u-1]||null;g&&(g.next=p),p.parent=n,p.prev=g,p.next=null,a.push(p)}return r&&((p=new l(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=a[0]||null,p.parent=n,a.unshift(p),a[1]&&(a[1].prev=a[0])),a}},886:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(7350),a=n(7588),i=n(8744),s=r(r({},o.namedReferences),{all:o.namedReferences.html5});function l(e,t,n){t.lastIndex=0;var r,o=t.exec(e);if(o){r="";var a=0;do{a!==o.index&&(r+=e.substring(a,o.index));var i=o[0];r+=n(i),a=o.index+i.length}while(o=t.exec(e));a!==e.length&&(r+=e.substring(a))}else r=e;return r}var c={specialChars:/[<>'"&]/g,nonAscii:/[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintable:/[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintableOnly:/[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,extensive:/[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g},u={mode:"specialChars",level:"all",numeric:"decimal"};t.encode=function(e,t){var n=void 0===t?u:t,r=n.mode,o=void 0===r?"specialChars":r,a=n.numeric,d=void 0===a?"decimal":a,p=n.level;if(!e)return"";var f=c[o],h=s[void 0===p?"all":p].characters,m="hexadecimal"===d;return l(e,f,(function(e){var t=h[e];if(!t){var n=e.length>1?i.getCodePoint(e,0):e.charCodeAt(0);t=(m?"&#x"+n.toString(16):"&#"+n)+";"}return t}))};var d={scope:"body",level:"all"},p=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,f=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,h={xml:{strict:p,attribute:f,body:o.bodyRegExps.xml},html4:{strict:p,attribute:f,body:o.bodyRegExps.html4},html5:{strict:p,attribute:f,body:o.bodyRegExps.html5}},m=r(r({},h),{all:h.html5}),g=String.fromCharCode,y=g(65533),v={level:"all"};function b(e,t,n,r){var o=e,s=e[e.length-1];if(n&&"="===s)o=e;else if(r&&";"!==s)o=e;else{var l=t[e];if(l)o=l;else if("&"===e[0]&&"#"===e[1]){var c=e[2],u="x"==c||"X"==c?parseInt(e.substr(3),16):parseInt(e.substr(2));o=u>=1114111?y:u>65535?i.fromCodePoint(u):g(a.numericUnicodeMap[u]||u)}}return o}t.decodeEntity=function(e,t){var n=(void 0===t?v:t).level;return e?b(e,s[void 0===n?"all":n].entities,!1,!1):""},t.decode=function(e,t){var n=void 0===t?d:t,r=n.level,o=void 0===r?"all":r,a=n.scope,i=void 0===a?"xml"===o?"strict":"body":a;if(!e)return"";var c=m[o][i],u=s[o].entities,p="attribute"===i,f="strict"===i;return l(e,c,(function(e){return b(e,u,p,f)}))}},7350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyRegExps={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/&notin;|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/&centerdot;|&copysr;|&divideontimes;|&gtcc;|&gtcir;|&gtdot;|&gtlPar;|&gtquest;|&gtrapprox;|&gtrarr;|&gtrdot;|&gtreqless;|&gtreqqless;|&gtrless;|&gtrsim;|&ltcc;|&ltcir;|&ltdot;|&lthree;|&ltimes;|&ltlarr;|&ltquest;|&ltrPar;|&ltri;|&ltrie;|&ltrif;|&notin;|&notinE;|&notindot;|&notinva;|&notinvb;|&notinvc;|&notni;|&notniva;|&notnivb;|&notnivc;|&parallel;|&timesb;|&timesbar;|&timesd;|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},t.namedReferences={xml:{entities:{"&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&amp;":"&"},characters:{"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","&":"&amp;"}},html4:{entities:{"&apos;":"'","&nbsp":" ","&nbsp;":" ","&iexcl":"¡","&iexcl;":"¡","&cent":"¢","&cent;":"¢","&pound":"£","&pound;":"£","&curren":"¤","&curren;":"¤","&yen":"¥","&yen;":"¥","&brvbar":"¦","&brvbar;":"¦","&sect":"§","&sect;":"§","&uml":"¨","&uml;":"¨","&copy":"©","&copy;":"©","&ordf":"ª","&ordf;":"ª","&laquo":"«","&laquo;":"«","&not":"¬","&not;":"¬","&shy":"­","&shy;":"­","&reg":"®","&reg;":"®","&macr":"¯","&macr;":"¯","&deg":"°","&deg;":"°","&plusmn":"±","&plusmn;":"±","&sup2":"²","&sup2;":"²","&sup3":"³","&sup3;":"³","&acute":"´","&acute;":"´","&micro":"µ","&micro;":"µ","&para":"¶","&para;":"¶","&middot":"·","&middot;":"·","&cedil":"¸","&cedil;":"¸","&sup1":"¹","&sup1;":"¹","&ordm":"º","&ordm;":"º","&raquo":"»","&raquo;":"»","&frac14":"¼","&frac14;":"¼","&frac12":"½","&frac12;":"½","&frac34":"¾","&frac34;":"¾","&iquest":"¿","&iquest;":"¿","&Agrave":"À","&Agrave;":"À","&Aacute":"Á","&Aacute;":"Á","&Acirc":"Â","&Acirc;":"Â","&Atilde":"Ã","&Atilde;":"Ã","&Auml":"Ä","&Auml;":"Ä","&Aring":"Å","&Aring;":"Å","&AElig":"Æ","&AElig;":"Æ","&Ccedil":"Ç","&Ccedil;":"Ç","&Egrave":"È","&Egrave;":"È","&Eacute":"É","&Eacute;":"É","&Ecirc":"Ê","&Ecirc;":"Ê","&Euml":"Ë","&Euml;":"Ë","&Igrave":"Ì","&Igrave;":"Ì","&Iacute":"Í","&Iacute;":"Í","&Icirc":"Î","&Icirc;":"Î","&Iuml":"Ï","&Iuml;":"Ï","&ETH":"Ð","&ETH;":"Ð","&Ntilde":"Ñ","&Ntilde;":"Ñ","&Ograve":"Ò","&Ograve;":"Ò","&Oacute":"Ó","&Oacute;":"Ó","&Ocirc":"Ô","&Ocirc;":"Ô","&Otilde":"Õ","&Otilde;":"Õ","&Ouml":"Ö","&Ouml;":"Ö","&times":"×","&times;":"×","&Oslash":"Ø","&Oslash;":"Ø","&Ugrave":"Ù","&Ugrave;":"Ù","&Uacute":"Ú","&Uacute;":"Ú","&Ucirc":"Û","&Ucirc;":"Û","&Uuml":"Ü","&Uuml;":"Ü","&Yacute":"Ý","&Yacute;":"Ý","&THORN":"Þ","&THORN;":"Þ","&szlig":"ß","&szlig;":"ß","&agrave":"à","&agrave;":"à","&aacute":"á","&aacute;":"á","&acirc":"â","&acirc;":"â","&atilde":"ã","&atilde;":"ã","&auml":"ä","&auml;":"ä","&aring":"å","&aring;":"å","&aelig":"æ","&aelig;":"æ","&ccedil":"ç","&ccedil;":"ç","&egrave":"è","&egrave;":"è","&eacute":"é","&eacute;":"é","&ecirc":"ê","&ecirc;":"ê","&euml":"ë","&euml;":"ë","&igrave":"ì","&igrave;":"ì","&iacute":"í","&iacute;":"í","&icirc":"î","&icirc;":"î","&iuml":"ï","&iuml;":"ï","&eth":"ð","&eth;":"ð","&ntilde":"ñ","&ntilde;":"ñ","&ograve":"ò","&ograve;":"ò","&oacute":"ó","&oacute;":"ó","&ocirc":"ô","&ocirc;":"ô","&otilde":"õ","&otilde;":"õ","&ouml":"ö","&ouml;":"ö","&divide":"÷","&divide;":"÷","&oslash":"ø","&oslash;":"ø","&ugrave":"ù","&ugrave;":"ù","&uacute":"ú","&uacute;":"ú","&ucirc":"û","&ucirc;":"û","&uuml":"ü","&uuml;":"ü","&yacute":"ý","&yacute;":"ý","&thorn":"þ","&thorn;":"þ","&yuml":"ÿ","&yuml;":"ÿ","&quot":'"',"&quot;":'"',"&amp":"&","&amp;":"&","&lt":"<","&lt;":"<","&gt":">","&gt;":">","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&circ;":"ˆ","&tilde;":"˜","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&zwnj;":"‌","&zwj;":"‍","&lrm;":"‎","&rlm;":"‏","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&permil;":"‰","&lsaquo;":"‹","&rsaquo;":"›","&euro;":"€","&fnof;":"ƒ","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigmaf;":"ς","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&thetasym;":"ϑ","&upsih;":"ϒ","&piv;":"ϖ","&bull;":"•","&hellip;":"…","&prime;":"′","&Prime;":"″","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&trade;":"™","&alefsym;":"ℵ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&forall;":"∀","&part;":"∂","&exist;":"∃","&empty;":"∅","&nabla;":"∇","&isin;":"∈","&notin;":"∉","&ni;":"∋","&prod;":"∏","&sum;":"∑","&minus;":"−","&lowast;":"∗","&radic;":"√","&prop;":"∝","&infin;":"∞","&ang;":"∠","&and;":"∧","&or;":"∨","&cap;":"∩","&cup;":"∪","&int;":"∫","&there4;":"∴","&sim;":"∼","&cong;":"≅","&asymp;":"≈","&ne;":"≠","&equiv;":"≡","&le;":"≤","&ge;":"≥","&sub;":"⊂","&sup;":"⊃","&nsub;":"⊄","&sube;":"⊆","&supe;":"⊇","&oplus;":"⊕","&otimes;":"⊗","&perp;":"⊥","&sdot;":"⋅","&lceil;":"⌈","&rceil;":"⌉","&lfloor;":"⌊","&rfloor;":"⌋","&lang;":"〈","&rang;":"〉","&loz;":"◊","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦"},characters:{"'":"&apos;"," ":"&nbsp;","¡":"&iexcl;","¢":"&cent;","£":"&pound;","¤":"&curren;","¥":"&yen;","¦":"&brvbar;","§":"&sect;","¨":"&uml;","©":"&copy;",ª:"&ordf;","«":"&laquo;","¬":"&not;","­":"&shy;","®":"&reg;","¯":"&macr;","°":"&deg;","±":"&plusmn;","²":"&sup2;","³":"&sup3;","´":"&acute;",µ:"&micro;","¶":"&para;","·":"&middot;","¸":"&cedil;","¹":"&sup1;",º:"&ordm;","»":"&raquo;","¼":"&frac14;","½":"&frac12;","¾":"&frac34;","¿":"&iquest;",À:"&Agrave;",Á:"&Aacute;",Â:"&Acirc;",Ã:"&Atilde;",Ä:"&Auml;",Å:"&Aring;",Æ:"&AElig;",Ç:"&Ccedil;",È:"&Egrave;",É:"&Eacute;",Ê:"&Ecirc;",Ë:"&Euml;",Ì:"&Igrave;",Í:"&Iacute;",Î:"&Icirc;",Ï:"&Iuml;",Ð:"&ETH;",Ñ:"&Ntilde;",Ò:"&Ograve;",Ó:"&Oacute;",Ô:"&Ocirc;",Õ:"&Otilde;",Ö:"&Ouml;","×":"&times;",Ø:"&Oslash;",Ù:"&Ugrave;",Ú:"&Uacute;",Û:"&Ucirc;",Ü:"&Uuml;",Ý:"&Yacute;",Þ:"&THORN;",ß:"&szlig;",à:"&agrave;",á:"&aacute;",â:"&acirc;",ã:"&atilde;",ä:"&auml;",å:"&aring;",æ:"&aelig;",ç:"&ccedil;",è:"&egrave;",é:"&eacute;",ê:"&ecirc;",ë:"&euml;",ì:"&igrave;",í:"&iacute;",î:"&icirc;",ï:"&iuml;",ð:"&eth;",ñ:"&ntilde;",ò:"&ograve;",ó:"&oacute;",ô:"&ocirc;",õ:"&otilde;",ö:"&ouml;","÷":"&divide;",ø:"&oslash;",ù:"&ugrave;",ú:"&uacute;",û:"&ucirc;",ü:"&uuml;",ý:"&yacute;",þ:"&thorn;",ÿ:"&yuml;",'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;",Œ:"&OElig;",œ:"&oelig;",Š:"&Scaron;",š:"&scaron;",Ÿ:"&Yuml;",ˆ:"&circ;","˜":"&tilde;"," ":"&ensp;"," ":"&emsp;"," ":"&thinsp;","‌":"&zwnj;","‍":"&zwj;","‎":"&lrm;","‏":"&rlm;","–":"&ndash;","—":"&mdash;","‘":"&lsquo;","’":"&rsquo;","‚":"&sbquo;","“":"&ldquo;","”":"&rdquo;","„":"&bdquo;","†":"&dagger;","‡":"&Dagger;","‰":"&permil;","‹":"&lsaquo;","›":"&rsaquo;","€":"&euro;",ƒ:"&fnof;",Α:"&Alpha;",Β:"&Beta;",Γ:"&Gamma;",Δ:"&Delta;",Ε:"&Epsilon;",Ζ:"&Zeta;",Η:"&Eta;",Θ:"&Theta;",Ι:"&Iota;",Κ:"&Kappa;",Λ:"&Lambda;",Μ:"&Mu;",Ν:"&Nu;",Ξ:"&Xi;",Ο:"&Omicron;",Π:"&Pi;",Ρ:"&Rho;",Σ:"&Sigma;",Τ:"&Tau;",Υ:"&Upsilon;",Φ:"&Phi;",Χ:"&Chi;",Ψ:"&Psi;",Ω:"&Omega;",α:"&alpha;",β:"&beta;",γ:"&gamma;",δ:"&delta;",ε:"&epsilon;",ζ:"&zeta;",η:"&eta;",θ:"&theta;",ι:"&iota;",κ:"&kappa;",λ:"&lambda;",μ:"&mu;",ν:"&nu;",ξ:"&xi;",ο:"&omicron;",π:"&pi;",ρ:"&rho;",ς:"&sigmaf;",σ:"&sigma;",τ:"&tau;",υ:"&upsilon;",φ:"&phi;",χ:"&chi;",ψ:"&psi;",ω:"&omega;",ϑ:"&thetasym;",ϒ:"&upsih;",ϖ:"&piv;","•":"&bull;","…":"&hellip;","′":"&prime;","″":"&Prime;","‾":"&oline;","⁄":"&frasl;",℘:"&weierp;",ℑ:"&image;",ℜ:"&real;","™":"&trade;",ℵ:"&alefsym;","←":"&larr;","↑":"&uarr;","→":"&rarr;","↓":"&darr;","↔":"&harr;","↵":"&crarr;","⇐":"&lArr;","⇑":"&uArr;","⇒":"&rArr;","⇓":"&dArr;","⇔":"&hArr;","∀":"&forall;","∂":"&part;","∃":"&exist;","∅":"&empty;","∇":"&nabla;","∈":"&isin;","∉":"&notin;","∋":"&ni;","∏":"&prod;","∑":"&sum;","−":"&minus;","∗":"&lowast;","√":"&radic;","∝":"&prop;","∞":"&infin;","∠":"&ang;","∧":"&and;","∨":"&or;","∩":"&cap;","∪":"&cup;","∫":"&int;","∴":"&there4;","∼":"&sim;","≅":"&cong;","≈":"&asymp;","≠":"&ne;","≡":"&equiv;","≤":"&le;","≥":"&ge;","⊂":"&sub;","⊃":"&sup;","⊄":"&nsub;","⊆":"&sube;","⊇":"&supe;","⊕":"&oplus;","⊗":"&otimes;","⊥":"&perp;","⋅":"&sdot;","⌈":"&lceil;","⌉":"&rceil;","⌊":"&lfloor;","⌋":"&rfloor;","〈":"&lang;","〉":"&rang;","◊":"&loz;","♠":"&spades;","♣":"&clubs;","♥":"&hearts;","♦":"&diams;"}},html5:{entities:{"&AElig":"Æ","&AElig;":"Æ","&AMP":"&","&AMP;":"&","&Aacute":"Á","&Aacute;":"Á","&Abreve;":"Ă","&Acirc":"Â","&Acirc;":"Â","&Acy;":"А","&Afr;":"𝔄","&Agrave":"À","&Agrave;":"À","&Alpha;":"Α","&Amacr;":"Ā","&And;":"⩓","&Aogon;":"Ą","&Aopf;":"𝔸","&ApplyFunction;":"⁡","&Aring":"Å","&Aring;":"Å","&Ascr;":"𝒜","&Assign;":"≔","&Atilde":"Ã","&Atilde;":"Ã","&Auml":"Ä","&Auml;":"Ä","&Backslash;":"∖","&Barv;":"⫧","&Barwed;":"⌆","&Bcy;":"Б","&Because;":"∵","&Bernoullis;":"ℬ","&Beta;":"Β","&Bfr;":"𝔅","&Bopf;":"𝔹","&Breve;":"˘","&Bscr;":"ℬ","&Bumpeq;":"≎","&CHcy;":"Ч","&COPY":"©","&COPY;":"©","&Cacute;":"Ć","&Cap;":"⋒","&CapitalDifferentialD;":"ⅅ","&Cayleys;":"ℭ","&Ccaron;":"Č","&Ccedil":"Ç","&Ccedil;":"Ç","&Ccirc;":"Ĉ","&Cconint;":"∰","&Cdot;":"Ċ","&Cedilla;":"¸","&CenterDot;":"·","&Cfr;":"ℭ","&Chi;":"Χ","&CircleDot;":"⊙","&CircleMinus;":"⊖","&CirclePlus;":"⊕","&CircleTimes;":"⊗","&ClockwiseContourIntegral;":"∲","&CloseCurlyDoubleQuote;":"”","&CloseCurlyQuote;":"’","&Colon;":"∷","&Colone;":"⩴","&Congruent;":"≡","&Conint;":"∯","&ContourIntegral;":"∮","&Copf;":"ℂ","&Coproduct;":"∐","&CounterClockwiseContourIntegral;":"∳","&Cross;":"⨯","&Cscr;":"𝒞","&Cup;":"⋓","&CupCap;":"≍","&DD;":"ⅅ","&DDotrahd;":"⤑","&DJcy;":"Ђ","&DScy;":"Ѕ","&DZcy;":"Џ","&Dagger;":"‡","&Darr;":"↡","&Dashv;":"⫤","&Dcaron;":"Ď","&Dcy;":"Д","&Del;":"∇","&Delta;":"Δ","&Dfr;":"𝔇","&DiacriticalAcute;":"´","&DiacriticalDot;":"˙","&DiacriticalDoubleAcute;":"˝","&DiacriticalGrave;":"`","&DiacriticalTilde;":"˜","&Diamond;":"⋄","&DifferentialD;":"ⅆ","&Dopf;":"𝔻","&Dot;":"¨","&DotDot;":"⃜","&DotEqual;":"≐","&DoubleContourIntegral;":"∯","&DoubleDot;":"¨","&DoubleDownArrow;":"⇓","&DoubleLeftArrow;":"⇐","&DoubleLeftRightArrow;":"⇔","&DoubleLeftTee;":"⫤","&DoubleLongLeftArrow;":"⟸","&DoubleLongLeftRightArrow;":"⟺","&DoubleLongRightArrow;":"⟹","&DoubleRightArrow;":"⇒","&DoubleRightTee;":"⊨","&DoubleUpArrow;":"⇑","&DoubleUpDownArrow;":"⇕","&DoubleVerticalBar;":"∥","&DownArrow;":"↓","&DownArrowBar;":"⤓","&DownArrowUpArrow;":"⇵","&DownBreve;":"̑","&DownLeftRightVector;":"⥐","&DownLeftTeeVector;":"⥞","&DownLeftVector;":"↽","&DownLeftVectorBar;":"⥖","&DownRightTeeVector;":"⥟","&DownRightVector;":"⇁","&DownRightVectorBar;":"⥗","&DownTee;":"⊤","&DownTeeArrow;":"↧","&Downarrow;":"⇓","&Dscr;":"𝒟","&Dstrok;":"Đ","&ENG;":"Ŋ","&ETH":"Ð","&ETH;":"Ð","&Eacute":"É","&Eacute;":"É","&Ecaron;":"Ě","&Ecirc":"Ê","&Ecirc;":"Ê","&Ecy;":"Э","&Edot;":"Ė","&Efr;":"𝔈","&Egrave":"È","&Egrave;":"È","&Element;":"∈","&Emacr;":"Ē","&EmptySmallSquare;":"◻","&EmptyVerySmallSquare;":"▫","&Eogon;":"Ę","&Eopf;":"𝔼","&Epsilon;":"Ε","&Equal;":"⩵","&EqualTilde;":"≂","&Equilibrium;":"⇌","&Escr;":"ℰ","&Esim;":"⩳","&Eta;":"Η","&Euml":"Ë","&Euml;":"Ë","&Exists;":"∃","&ExponentialE;":"ⅇ","&Fcy;":"Ф","&Ffr;":"𝔉","&FilledSmallSquare;":"◼","&FilledVerySmallSquare;":"▪","&Fopf;":"𝔽","&ForAll;":"∀","&Fouriertrf;":"ℱ","&Fscr;":"ℱ","&GJcy;":"Ѓ","&GT":">","&GT;":">","&Gamma;":"Γ","&Gammad;":"Ϝ","&Gbreve;":"Ğ","&Gcedil;":"Ģ","&Gcirc;":"Ĝ","&Gcy;":"Г","&Gdot;":"Ġ","&Gfr;":"𝔊","&Gg;":"⋙","&Gopf;":"𝔾","&GreaterEqual;":"≥","&GreaterEqualLess;":"⋛","&GreaterFullEqual;":"≧","&GreaterGreater;":"⪢","&GreaterLess;":"≷","&GreaterSlantEqual;":"⩾","&GreaterTilde;":"≳","&Gscr;":"𝒢","&Gt;":"≫","&HARDcy;":"Ъ","&Hacek;":"ˇ","&Hat;":"^","&Hcirc;":"Ĥ","&Hfr;":"ℌ","&HilbertSpace;":"ℋ","&Hopf;":"ℍ","&HorizontalLine;":"─","&Hscr;":"ℋ","&Hstrok;":"Ħ","&HumpDownHump;":"≎","&HumpEqual;":"≏","&IEcy;":"Е","&IJlig;":"Ĳ","&IOcy;":"Ё","&Iacute":"Í","&Iacute;":"Í","&Icirc":"Î","&Icirc;":"Î","&Icy;":"И","&Idot;":"İ","&Ifr;":"ℑ","&Igrave":"Ì","&Igrave;":"Ì","&Im;":"ℑ","&Imacr;":"Ī","&ImaginaryI;":"ⅈ","&Implies;":"⇒","&Int;":"∬","&Integral;":"∫","&Intersection;":"⋂","&InvisibleComma;":"⁣","&InvisibleTimes;":"⁢","&Iogon;":"Į","&Iopf;":"𝕀","&Iota;":"Ι","&Iscr;":"ℐ","&Itilde;":"Ĩ","&Iukcy;":"І","&Iuml":"Ï","&Iuml;":"Ï","&Jcirc;":"Ĵ","&Jcy;":"Й","&Jfr;":"𝔍","&Jopf;":"𝕁","&Jscr;":"𝒥","&Jsercy;":"Ј","&Jukcy;":"Є","&KHcy;":"Х","&KJcy;":"Ќ","&Kappa;":"Κ","&Kcedil;":"Ķ","&Kcy;":"К","&Kfr;":"𝔎","&Kopf;":"𝕂","&Kscr;":"𝒦","&LJcy;":"Љ","&LT":"<","&LT;":"<","&Lacute;":"Ĺ","&Lambda;":"Λ","&Lang;":"⟪","&Laplacetrf;":"ℒ","&Larr;":"↞","&Lcaron;":"Ľ","&Lcedil;":"Ļ","&Lcy;":"Л","&LeftAngleBracket;":"⟨","&LeftArrow;":"←","&LeftArrowBar;":"⇤","&LeftArrowRightArrow;":"⇆","&LeftCeiling;":"⌈","&LeftDoubleBracket;":"⟦","&LeftDownTeeVector;":"⥡","&LeftDownVector;":"⇃","&LeftDownVectorBar;":"⥙","&LeftFloor;":"⌊","&LeftRightArrow;":"↔","&LeftRightVector;":"⥎","&LeftTee;":"⊣","&LeftTeeArrow;":"↤","&LeftTeeVector;":"⥚","&LeftTriangle;":"⊲","&LeftTriangleBar;":"⧏","&LeftTriangleEqual;":"⊴","&LeftUpDownVector;":"⥑","&LeftUpTeeVector;":"⥠","&LeftUpVector;":"↿","&LeftUpVectorBar;":"⥘","&LeftVector;":"↼","&LeftVectorBar;":"⥒","&Leftarrow;":"⇐","&Leftrightarrow;":"⇔","&LessEqualGreater;":"⋚","&LessFullEqual;":"≦","&LessGreater;":"≶","&LessLess;":"⪡","&LessSlantEqual;":"⩽","&LessTilde;":"≲","&Lfr;":"𝔏","&Ll;":"⋘","&Lleftarrow;":"⇚","&Lmidot;":"Ŀ","&LongLeftArrow;":"⟵","&LongLeftRightArrow;":"⟷","&LongRightArrow;":"⟶","&Longleftarrow;":"⟸","&Longleftrightarrow;":"⟺","&Longrightarrow;":"⟹","&Lopf;":"𝕃","&LowerLeftArrow;":"↙","&LowerRightArrow;":"↘","&Lscr;":"ℒ","&Lsh;":"↰","&Lstrok;":"Ł","&Lt;":"≪","&Map;":"⤅","&Mcy;":"М","&MediumSpace;":" ","&Mellintrf;":"ℳ","&Mfr;":"𝔐","&MinusPlus;":"∓","&Mopf;":"𝕄","&Mscr;":"ℳ","&Mu;":"Μ","&NJcy;":"Њ","&Nacute;":"Ń","&Ncaron;":"Ň","&Ncedil;":"Ņ","&Ncy;":"Н","&NegativeMediumSpace;":"​","&NegativeThickSpace;":"​","&NegativeThinSpace;":"​","&NegativeVeryThinSpace;":"​","&NestedGreaterGreater;":"≫","&NestedLessLess;":"≪","&NewLine;":"\n","&Nfr;":"𝔑","&NoBreak;":"⁠","&NonBreakingSpace;":" ","&Nopf;":"ℕ","&Not;":"⫬","&NotCongruent;":"≢","&NotCupCap;":"≭","&NotDoubleVerticalBar;":"∦","&NotElement;":"∉","&NotEqual;":"≠","&NotEqualTilde;":"≂̸","&NotExists;":"∄","&NotGreater;":"≯","&NotGreaterEqual;":"≱","&NotGreaterFullEqual;":"≧̸","&NotGreaterGreater;":"≫̸","&NotGreaterLess;":"≹","&NotGreaterSlantEqual;":"⩾̸","&NotGreaterTilde;":"≵","&NotHumpDownHump;":"≎̸","&NotHumpEqual;":"≏̸","&NotLeftTriangle;":"⋪","&NotLeftTriangleBar;":"⧏̸","&NotLeftTriangleEqual;":"⋬","&NotLess;":"≮","&NotLessEqual;":"≰","&NotLessGreater;":"≸","&NotLessLess;":"≪̸","&NotLessSlantEqual;":"⩽̸","&NotLessTilde;":"≴","&NotNestedGreaterGreater;":"⪢̸","&NotNestedLessLess;":"⪡̸","&NotPrecedes;":"⊀","&NotPrecedesEqual;":"⪯̸","&NotPrecedesSlantEqual;":"⋠","&NotReverseElement;":"∌","&NotRightTriangle;":"⋫","&NotRightTriangleBar;":"⧐̸","&NotRightTriangleEqual;":"⋭","&NotSquareSubset;":"⊏̸","&NotSquareSubsetEqual;":"⋢","&NotSquareSuperset;":"⊐̸","&NotSquareSupersetEqual;":"⋣","&NotSubset;":"⊂⃒","&NotSubsetEqual;":"⊈","&NotSucceeds;":"⊁","&NotSucceedsEqual;":"⪰̸","&NotSucceedsSlantEqual;":"⋡","&NotSucceedsTilde;":"≿̸","&NotSuperset;":"⊃⃒","&NotSupersetEqual;":"⊉","&NotTilde;":"≁","&NotTildeEqual;":"≄","&NotTildeFullEqual;":"≇","&NotTildeTilde;":"≉","&NotVerticalBar;":"∤","&Nscr;":"𝒩","&Ntilde":"Ñ","&Ntilde;":"Ñ","&Nu;":"Ν","&OElig;":"Œ","&Oacute":"Ó","&Oacute;":"Ó","&Ocirc":"Ô","&Ocirc;":"Ô","&Ocy;":"О","&Odblac;":"Ő","&Ofr;":"𝔒","&Ograve":"Ò","&Ograve;":"Ò","&Omacr;":"Ō","&Omega;":"Ω","&Omicron;":"Ο","&Oopf;":"𝕆","&OpenCurlyDoubleQuote;":"“","&OpenCurlyQuote;":"‘","&Or;":"⩔","&Oscr;":"𝒪","&Oslash":"Ø","&Oslash;":"Ø","&Otilde":"Õ","&Otilde;":"Õ","&Otimes;":"⨷","&Ouml":"Ö","&Ouml;":"Ö","&OverBar;":"‾","&OverBrace;":"⏞","&OverBracket;":"⎴","&OverParenthesis;":"⏜","&PartialD;":"∂","&Pcy;":"П","&Pfr;":"𝔓","&Phi;":"Φ","&Pi;":"Π","&PlusMinus;":"±","&Poincareplane;":"ℌ","&Popf;":"ℙ","&Pr;":"⪻","&Precedes;":"≺","&PrecedesEqual;":"⪯","&PrecedesSlantEqual;":"≼","&PrecedesTilde;":"≾","&Prime;":"″","&Product;":"∏","&Proportion;":"∷","&Proportional;":"∝","&Pscr;":"𝒫","&Psi;":"Ψ","&QUOT":'"',"&QUOT;":'"',"&Qfr;":"𝔔","&Qopf;":"ℚ","&Qscr;":"𝒬","&RBarr;":"⤐","&REG":"®","&REG;":"®","&Racute;":"Ŕ","&Rang;":"⟫","&Rarr;":"↠","&Rarrtl;":"⤖","&Rcaron;":"Ř","&Rcedil;":"Ŗ","&Rcy;":"Р","&Re;":"ℜ","&ReverseElement;":"∋","&ReverseEquilibrium;":"⇋","&ReverseUpEquilibrium;":"⥯","&Rfr;":"ℜ","&Rho;":"Ρ","&RightAngleBracket;":"⟩","&RightArrow;":"→","&RightArrowBar;":"⇥","&RightArrowLeftArrow;":"⇄","&RightCeiling;":"⌉","&RightDoubleBracket;":"⟧","&RightDownTeeVector;":"⥝","&RightDownVector;":"⇂","&RightDownVectorBar;":"⥕","&RightFloor;":"⌋","&RightTee;":"⊢","&RightTeeArrow;":"↦","&RightTeeVector;":"⥛","&RightTriangle;":"⊳","&RightTriangleBar;":"⧐","&RightTriangleEqual;":"⊵","&RightUpDownVector;":"⥏","&RightUpTeeVector;":"⥜","&RightUpVector;":"↾","&RightUpVectorBar;":"⥔","&RightVector;":"⇀","&RightVectorBar;":"⥓","&Rightarrow;":"⇒","&Ropf;":"ℝ","&RoundImplies;":"⥰","&Rrightarrow;":"⇛","&Rscr;":"ℛ","&Rsh;":"↱","&RuleDelayed;":"⧴","&SHCHcy;":"Щ","&SHcy;":"Ш","&SOFTcy;":"Ь","&Sacute;":"Ś","&Sc;":"⪼","&Scaron;":"Š","&Scedil;":"Ş","&Scirc;":"Ŝ","&Scy;":"С","&Sfr;":"𝔖","&ShortDownArrow;":"↓","&ShortLeftArrow;":"←","&ShortRightArrow;":"→","&ShortUpArrow;":"↑","&Sigma;":"Σ","&SmallCircle;":"∘","&Sopf;":"𝕊","&Sqrt;":"√","&Square;":"□","&SquareIntersection;":"⊓","&SquareSubset;":"⊏","&SquareSubsetEqual;":"⊑","&SquareSuperset;":"⊐","&SquareSupersetEqual;":"⊒","&SquareUnion;":"⊔","&Sscr;":"𝒮","&Star;":"⋆","&Sub;":"⋐","&Subset;":"⋐","&SubsetEqual;":"⊆","&Succeeds;":"≻","&SucceedsEqual;":"⪰","&SucceedsSlantEqual;":"≽","&SucceedsTilde;":"≿","&SuchThat;":"∋","&Sum;":"∑","&Sup;":"⋑","&Superset;":"⊃","&SupersetEqual;":"⊇","&Supset;":"⋑","&THORN":"Þ","&THORN;":"Þ","&TRADE;":"™","&TSHcy;":"Ћ","&TScy;":"Ц","&Tab;":"\t","&Tau;":"Τ","&Tcaron;":"Ť","&Tcedil;":"Ţ","&Tcy;":"Т","&Tfr;":"𝔗","&Therefore;":"∴","&Theta;":"Θ","&ThickSpace;":"  ","&ThinSpace;":" ","&Tilde;":"∼","&TildeEqual;":"≃","&TildeFullEqual;":"≅","&TildeTilde;":"≈","&Topf;":"𝕋","&TripleDot;":"⃛","&Tscr;":"𝒯","&Tstrok;":"Ŧ","&Uacute":"Ú","&Uacute;":"Ú","&Uarr;":"↟","&Uarrocir;":"⥉","&Ubrcy;":"Ў","&Ubreve;":"Ŭ","&Ucirc":"Û","&Ucirc;":"Û","&Ucy;":"У","&Udblac;":"Ű","&Ufr;":"𝔘","&Ugrave":"Ù","&Ugrave;":"Ù","&Umacr;":"Ū","&UnderBar;":"_","&UnderBrace;":"⏟","&UnderBracket;":"⎵","&UnderParenthesis;":"⏝","&Union;":"⋃","&UnionPlus;":"⊎","&Uogon;":"Ų","&Uopf;":"𝕌","&UpArrow;":"↑","&UpArrowBar;":"⤒","&UpArrowDownArrow;":"⇅","&UpDownArrow;":"↕","&UpEquilibrium;":"⥮","&UpTee;":"⊥","&UpTeeArrow;":"↥","&Uparrow;":"⇑","&Updownarrow;":"⇕","&UpperLeftArrow;":"↖","&UpperRightArrow;":"↗","&Upsi;":"ϒ","&Upsilon;":"Υ","&Uring;":"Ů","&Uscr;":"𝒰","&Utilde;":"Ũ","&Uuml":"Ü","&Uuml;":"Ü","&VDash;":"⊫","&Vbar;":"⫫","&Vcy;":"В","&Vdash;":"⊩","&Vdashl;":"⫦","&Vee;":"⋁","&Verbar;":"‖","&Vert;":"‖","&VerticalBar;":"∣","&VerticalLine;":"|","&VerticalSeparator;":"❘","&VerticalTilde;":"≀","&VeryThinSpace;":" ","&Vfr;":"𝔙","&Vopf;":"𝕍","&Vscr;":"𝒱","&Vvdash;":"⊪","&Wcirc;":"Ŵ","&Wedge;":"⋀","&Wfr;":"𝔚","&Wopf;":"𝕎","&Wscr;":"𝒲","&Xfr;":"𝔛","&Xi;":"Ξ","&Xopf;":"𝕏","&Xscr;":"𝒳","&YAcy;":"Я","&YIcy;":"Ї","&YUcy;":"Ю","&Yacute":"Ý","&Yacute;":"Ý","&Ycirc;":"Ŷ","&Ycy;":"Ы","&Yfr;":"𝔜","&Yopf;":"𝕐","&Yscr;":"𝒴","&Yuml;":"Ÿ","&ZHcy;":"Ж","&Zacute;":"Ź","&Zcaron;":"Ž","&Zcy;":"З","&Zdot;":"Ż","&ZeroWidthSpace;":"​","&Zeta;":"Ζ","&Zfr;":"ℨ","&Zopf;":"ℤ","&Zscr;":"𝒵","&aacute":"á","&aacute;":"á","&abreve;":"ă","&ac;":"∾","&acE;":"∾̳","&acd;":"∿","&acirc":"â","&acirc;":"â","&acute":"´","&acute;":"´","&acy;":"а","&aelig":"æ","&aelig;":"æ","&af;":"⁡","&afr;":"𝔞","&agrave":"à","&agrave;":"à","&alefsym;":"ℵ","&aleph;":"ℵ","&alpha;":"α","&amacr;":"ā","&amalg;":"⨿","&amp":"&","&amp;":"&","&and;":"∧","&andand;":"⩕","&andd;":"⩜","&andslope;":"⩘","&andv;":"⩚","&ang;":"∠","&ange;":"⦤","&angle;":"∠","&angmsd;":"∡","&angmsdaa;":"⦨","&angmsdab;":"⦩","&angmsdac;":"⦪","&angmsdad;":"⦫","&angmsdae;":"⦬","&angmsdaf;":"⦭","&angmsdag;":"⦮","&angmsdah;":"⦯","&angrt;":"∟","&angrtvb;":"⊾","&angrtvbd;":"⦝","&angsph;":"∢","&angst;":"Å","&angzarr;":"⍼","&aogon;":"ą","&aopf;":"𝕒","&ap;":"≈","&apE;":"⩰","&apacir;":"⩯","&ape;":"≊","&apid;":"≋","&apos;":"'","&approx;":"≈","&approxeq;":"≊","&aring":"å","&aring;":"å","&ascr;":"𝒶","&ast;":"*","&asymp;":"≈","&asympeq;":"≍","&atilde":"ã","&atilde;":"ã","&auml":"ä","&auml;":"ä","&awconint;":"∳","&awint;":"⨑","&bNot;":"⫭","&backcong;":"≌","&backepsilon;":"϶","&backprime;":"‵","&backsim;":"∽","&backsimeq;":"⋍","&barvee;":"⊽","&barwed;":"⌅","&barwedge;":"⌅","&bbrk;":"⎵","&bbrktbrk;":"⎶","&bcong;":"≌","&bcy;":"б","&bdquo;":"„","&becaus;":"∵","&because;":"∵","&bemptyv;":"⦰","&bepsi;":"϶","&bernou;":"ℬ","&beta;":"β","&beth;":"ℶ","&between;":"≬","&bfr;":"𝔟","&bigcap;":"⋂","&bigcirc;":"◯","&bigcup;":"⋃","&bigodot;":"⨀","&bigoplus;":"⨁","&bigotimes;":"⨂","&bigsqcup;":"⨆","&bigstar;":"★","&bigtriangledown;":"▽","&bigtriangleup;":"△","&biguplus;":"⨄","&bigvee;":"⋁","&bigwedge;":"⋀","&bkarow;":"⤍","&blacklozenge;":"⧫","&blacksquare;":"▪","&blacktriangle;":"▴","&blacktriangledown;":"▾","&blacktriangleleft;":"◂","&blacktriangleright;":"▸","&blank;":"␣","&blk12;":"▒","&blk14;":"░","&blk34;":"▓","&block;":"█","&bne;":"=⃥","&bnequiv;":"≡⃥","&bnot;":"⌐","&bopf;":"𝕓","&bot;":"⊥","&bottom;":"⊥","&bowtie;":"⋈","&boxDL;":"╗","&boxDR;":"╔","&boxDl;":"╖","&boxDr;":"╓","&boxH;":"═","&boxHD;":"╦","&boxHU;":"╩","&boxHd;":"╤","&boxHu;":"╧","&boxUL;":"╝","&boxUR;":"╚","&boxUl;":"╜","&boxUr;":"╙","&boxV;":"║","&boxVH;":"╬","&boxVL;":"╣","&boxVR;":"╠","&boxVh;":"╫","&boxVl;":"╢","&boxVr;":"╟","&boxbox;":"⧉","&boxdL;":"╕","&boxdR;":"╒","&boxdl;":"┐","&boxdr;":"┌","&boxh;":"─","&boxhD;":"╥","&boxhU;":"╨","&boxhd;":"┬","&boxhu;":"┴","&boxminus;":"⊟","&boxplus;":"⊞","&boxtimes;":"⊠","&boxuL;":"╛","&boxuR;":"╘","&boxul;":"┘","&boxur;":"└","&boxv;":"│","&boxvH;":"╪","&boxvL;":"╡","&boxvR;":"╞","&boxvh;":"┼","&boxvl;":"┤","&boxvr;":"├","&bprime;":"‵","&breve;":"˘","&brvbar":"¦","&brvbar;":"¦","&bscr;":"𝒷","&bsemi;":"⁏","&bsim;":"∽","&bsime;":"⋍","&bsol;":"\\","&bsolb;":"⧅","&bsolhsub;":"⟈","&bull;":"•","&bullet;":"•","&bump;":"≎","&bumpE;":"⪮","&bumpe;":"≏","&bumpeq;":"≏","&cacute;":"ć","&cap;":"∩","&capand;":"⩄","&capbrcup;":"⩉","&capcap;":"⩋","&capcup;":"⩇","&capdot;":"⩀","&caps;":"∩︀","&caret;":"⁁","&caron;":"ˇ","&ccaps;":"⩍","&ccaron;":"č","&ccedil":"ç","&ccedil;":"ç","&ccirc;":"ĉ","&ccups;":"⩌","&ccupssm;":"⩐","&cdot;":"ċ","&cedil":"¸","&cedil;":"¸","&cemptyv;":"⦲","&cent":"¢","&cent;":"¢","&centerdot;":"·","&cfr;":"𝔠","&chcy;":"ч","&check;":"✓","&checkmark;":"✓","&chi;":"χ","&cir;":"○","&cirE;":"⧃","&circ;":"ˆ","&circeq;":"≗","&circlearrowleft;":"↺","&circlearrowright;":"↻","&circledR;":"®","&circledS;":"Ⓢ","&circledast;":"⊛","&circledcirc;":"⊚","&circleddash;":"⊝","&cire;":"≗","&cirfnint;":"⨐","&cirmid;":"⫯","&cirscir;":"⧂","&clubs;":"♣","&clubsuit;":"♣","&colon;":":","&colone;":"≔","&coloneq;":"≔","&comma;":",","&commat;":"@","&comp;":"∁","&compfn;":"∘","&complement;":"∁","&complexes;":"ℂ","&cong;":"≅","&congdot;":"⩭","&conint;":"∮","&copf;":"𝕔","&coprod;":"∐","&copy":"©","&copy;":"©","&copysr;":"℗","&crarr;":"↵","&cross;":"✗","&cscr;":"𝒸","&csub;":"⫏","&csube;":"⫑","&csup;":"⫐","&csupe;":"⫒","&ctdot;":"⋯","&cudarrl;":"⤸","&cudarrr;":"⤵","&cuepr;":"⋞","&cuesc;":"⋟","&cularr;":"↶","&cularrp;":"⤽","&cup;":"∪","&cupbrcap;":"⩈","&cupcap;":"⩆","&cupcup;":"⩊","&cupdot;":"⊍","&cupor;":"⩅","&cups;":"∪︀","&curarr;":"↷","&curarrm;":"⤼","&curlyeqprec;":"⋞","&curlyeqsucc;":"⋟","&curlyvee;":"⋎","&curlywedge;":"⋏","&curren":"¤","&curren;":"¤","&curvearrowleft;":"↶","&curvearrowright;":"↷","&cuvee;":"⋎","&cuwed;":"⋏","&cwconint;":"∲","&cwint;":"∱","&cylcty;":"⌭","&dArr;":"⇓","&dHar;":"⥥","&dagger;":"†","&daleth;":"ℸ","&darr;":"↓","&dash;":"‐","&dashv;":"⊣","&dbkarow;":"⤏","&dblac;":"˝","&dcaron;":"ď","&dcy;":"д","&dd;":"ⅆ","&ddagger;":"‡","&ddarr;":"⇊","&ddotseq;":"⩷","&deg":"°","&deg;":"°","&delta;":"δ","&demptyv;":"⦱","&dfisht;":"⥿","&dfr;":"𝔡","&dharl;":"⇃","&dharr;":"⇂","&diam;":"⋄","&diamond;":"⋄","&diamondsuit;":"♦","&diams;":"♦","&die;":"¨","&digamma;":"ϝ","&disin;":"⋲","&div;":"÷","&divide":"÷","&divide;":"÷","&divideontimes;":"⋇","&divonx;":"⋇","&djcy;":"ђ","&dlcorn;":"⌞","&dlcrop;":"⌍","&dollar;":"$","&dopf;":"𝕕","&dot;":"˙","&doteq;":"≐","&doteqdot;":"≑","&dotminus;":"∸","&dotplus;":"∔","&dotsquare;":"⊡","&doublebarwedge;":"⌆","&downarrow;":"↓","&downdownarrows;":"⇊","&downharpoonleft;":"⇃","&downharpoonright;":"⇂","&drbkarow;":"⤐","&drcorn;":"⌟","&drcrop;":"⌌","&dscr;":"𝒹","&dscy;":"ѕ","&dsol;":"⧶","&dstrok;":"đ","&dtdot;":"⋱","&dtri;":"▿","&dtrif;":"▾","&duarr;":"⇵","&duhar;":"⥯","&dwangle;":"⦦","&dzcy;":"џ","&dzigrarr;":"⟿","&eDDot;":"⩷","&eDot;":"≑","&eacute":"é","&eacute;":"é","&easter;":"⩮","&ecaron;":"ě","&ecir;":"≖","&ecirc":"ê","&ecirc;":"ê","&ecolon;":"≕","&ecy;":"э","&edot;":"ė","&ee;":"ⅇ","&efDot;":"≒","&efr;":"𝔢","&eg;":"⪚","&egrave":"è","&egrave;":"è","&egs;":"⪖","&egsdot;":"⪘","&el;":"⪙","&elinters;":"⏧","&ell;":"ℓ","&els;":"⪕","&elsdot;":"⪗","&emacr;":"ē","&empty;":"∅","&emptyset;":"∅","&emptyv;":"∅","&emsp13;":" ","&emsp14;":" ","&emsp;":" ","&eng;":"ŋ","&ensp;":" ","&eogon;":"ę","&eopf;":"𝕖","&epar;":"⋕","&eparsl;":"⧣","&eplus;":"⩱","&epsi;":"ε","&epsilon;":"ε","&epsiv;":"ϵ","&eqcirc;":"≖","&eqcolon;":"≕","&eqsim;":"≂","&eqslantgtr;":"⪖","&eqslantless;":"⪕","&equals;":"=","&equest;":"≟","&equiv;":"≡","&equivDD;":"⩸","&eqvparsl;":"⧥","&erDot;":"≓","&erarr;":"⥱","&escr;":"ℯ","&esdot;":"≐","&esim;":"≂","&eta;":"η","&eth":"ð","&eth;":"ð","&euml":"ë","&euml;":"ë","&euro;":"€","&excl;":"!","&exist;":"∃","&expectation;":"ℰ","&exponentiale;":"ⅇ","&fallingdotseq;":"≒","&fcy;":"ф","&female;":"♀","&ffilig;":"ﬃ","&fflig;":"ﬀ","&ffllig;":"ﬄ","&ffr;":"𝔣","&filig;":"ﬁ","&fjlig;":"fj","&flat;":"♭","&fllig;":"ﬂ","&fltns;":"▱","&fnof;":"ƒ","&fopf;":"𝕗","&forall;":"∀","&fork;":"⋔","&forkv;":"⫙","&fpartint;":"⨍","&frac12":"½","&frac12;":"½","&frac13;":"⅓","&frac14":"¼","&frac14;":"¼","&frac15;":"⅕","&frac16;":"⅙","&frac18;":"⅛","&frac23;":"⅔","&frac25;":"⅖","&frac34":"¾","&frac34;":"¾","&frac35;":"⅗","&frac38;":"⅜","&frac45;":"⅘","&frac56;":"⅚","&frac58;":"⅝","&frac78;":"⅞","&frasl;":"⁄","&frown;":"⌢","&fscr;":"𝒻","&gE;":"≧","&gEl;":"⪌","&gacute;":"ǵ","&gamma;":"γ","&gammad;":"ϝ","&gap;":"⪆","&gbreve;":"ğ","&gcirc;":"ĝ","&gcy;":"г","&gdot;":"ġ","&ge;":"≥","&gel;":"⋛","&geq;":"≥","&geqq;":"≧","&geqslant;":"⩾","&ges;":"⩾","&gescc;":"⪩","&gesdot;":"⪀","&gesdoto;":"⪂","&gesdotol;":"⪄","&gesl;":"⋛︀","&gesles;":"⪔","&gfr;":"𝔤","&gg;":"≫","&ggg;":"⋙","&gimel;":"ℷ","&gjcy;":"ѓ","&gl;":"≷","&glE;":"⪒","&gla;":"⪥","&glj;":"⪤","&gnE;":"≩","&gnap;":"⪊","&gnapprox;":"⪊","&gne;":"⪈","&gneq;":"⪈","&gneqq;":"≩","&gnsim;":"⋧","&gopf;":"𝕘","&grave;":"`","&gscr;":"ℊ","&gsim;":"≳","&gsime;":"⪎","&gsiml;":"⪐","&gt":">","&gt;":">","&gtcc;":"⪧","&gtcir;":"⩺","&gtdot;":"⋗","&gtlPar;":"⦕","&gtquest;":"⩼","&gtrapprox;":"⪆","&gtrarr;":"⥸","&gtrdot;":"⋗","&gtreqless;":"⋛","&gtreqqless;":"⪌","&gtrless;":"≷","&gtrsim;":"≳","&gvertneqq;":"≩︀","&gvnE;":"≩︀","&hArr;":"⇔","&hairsp;":" ","&half;":"½","&hamilt;":"ℋ","&hardcy;":"ъ","&harr;":"↔","&harrcir;":"⥈","&harrw;":"↭","&hbar;":"ℏ","&hcirc;":"ĥ","&hearts;":"♥","&heartsuit;":"♥","&hellip;":"…","&hercon;":"⊹","&hfr;":"𝔥","&hksearow;":"⤥","&hkswarow;":"⤦","&hoarr;":"⇿","&homtht;":"∻","&hookleftarrow;":"↩","&hookrightarrow;":"↪","&hopf;":"𝕙","&horbar;":"―","&hscr;":"𝒽","&hslash;":"ℏ","&hstrok;":"ħ","&hybull;":"⁃","&hyphen;":"‐","&iacute":"í","&iacute;":"í","&ic;":"⁣","&icirc":"î","&icirc;":"î","&icy;":"и","&iecy;":"е","&iexcl":"¡","&iexcl;":"¡","&iff;":"⇔","&ifr;":"𝔦","&igrave":"ì","&igrave;":"ì","&ii;":"ⅈ","&iiiint;":"⨌","&iiint;":"∭","&iinfin;":"⧜","&iiota;":"℩","&ijlig;":"ĳ","&imacr;":"ī","&image;":"ℑ","&imagline;":"ℐ","&imagpart;":"ℑ","&imath;":"ı","&imof;":"⊷","&imped;":"Ƶ","&in;":"∈","&incare;":"℅","&infin;":"∞","&infintie;":"⧝","&inodot;":"ı","&int;":"∫","&intcal;":"⊺","&integers;":"ℤ","&intercal;":"⊺","&intlarhk;":"⨗","&intprod;":"⨼","&iocy;":"ё","&iogon;":"į","&iopf;":"𝕚","&iota;":"ι","&iprod;":"⨼","&iquest":"¿","&iquest;":"¿","&iscr;":"𝒾","&isin;":"∈","&isinE;":"⋹","&isindot;":"⋵","&isins;":"⋴","&isinsv;":"⋳","&isinv;":"∈","&it;":"⁢","&itilde;":"ĩ","&iukcy;":"і","&iuml":"ï","&iuml;":"ï","&jcirc;":"ĵ","&jcy;":"й","&jfr;":"𝔧","&jmath;":"ȷ","&jopf;":"𝕛","&jscr;":"𝒿","&jsercy;":"ј","&jukcy;":"є","&kappa;":"κ","&kappav;":"ϰ","&kcedil;":"ķ","&kcy;":"к","&kfr;":"𝔨","&kgreen;":"ĸ","&khcy;":"х","&kjcy;":"ќ","&kopf;":"𝕜","&kscr;":"𝓀","&lAarr;":"⇚","&lArr;":"⇐","&lAtail;":"⤛","&lBarr;":"⤎","&lE;":"≦","&lEg;":"⪋","&lHar;":"⥢","&lacute;":"ĺ","&laemptyv;":"⦴","&lagran;":"ℒ","&lambda;":"λ","&lang;":"⟨","&langd;":"⦑","&langle;":"⟨","&lap;":"⪅","&laquo":"«","&laquo;":"«","&larr;":"←","&larrb;":"⇤","&larrbfs;":"⤟","&larrfs;":"⤝","&larrhk;":"↩","&larrlp;":"↫","&larrpl;":"⤹","&larrsim;":"⥳","&larrtl;":"↢","&lat;":"⪫","&latail;":"⤙","&late;":"⪭","&lates;":"⪭︀","&lbarr;":"⤌","&lbbrk;":"❲","&lbrace;":"{","&lbrack;":"[","&lbrke;":"⦋","&lbrksld;":"⦏","&lbrkslu;":"⦍","&lcaron;":"ľ","&lcedil;":"ļ","&lceil;":"⌈","&lcub;":"{","&lcy;":"л","&ldca;":"⤶","&ldquo;":"“","&ldquor;":"„","&ldrdhar;":"⥧","&ldrushar;":"⥋","&ldsh;":"↲","&le;":"≤","&leftarrow;":"←","&leftarrowtail;":"↢","&leftharpoondown;":"↽","&leftharpoonup;":"↼","&leftleftarrows;":"⇇","&leftrightarrow;":"↔","&leftrightarrows;":"⇆","&leftrightharpoons;":"⇋","&leftrightsquigarrow;":"↭","&leftthreetimes;":"⋋","&leg;":"⋚","&leq;":"≤","&leqq;":"≦","&leqslant;":"⩽","&les;":"⩽","&lescc;":"⪨","&lesdot;":"⩿","&lesdoto;":"⪁","&lesdotor;":"⪃","&lesg;":"⋚︀","&lesges;":"⪓","&lessapprox;":"⪅","&lessdot;":"⋖","&lesseqgtr;":"⋚","&lesseqqgtr;":"⪋","&lessgtr;":"≶","&lesssim;":"≲","&lfisht;":"⥼","&lfloor;":"⌊","&lfr;":"𝔩","&lg;":"≶","&lgE;":"⪑","&lhard;":"↽","&lharu;":"↼","&lharul;":"⥪","&lhblk;":"▄","&ljcy;":"љ","&ll;":"≪","&llarr;":"⇇","&llcorner;":"⌞","&llhard;":"⥫","&lltri;":"◺","&lmidot;":"ŀ","&lmoust;":"⎰","&lmoustache;":"⎰","&lnE;":"≨","&lnap;":"⪉","&lnapprox;":"⪉","&lne;":"⪇","&lneq;":"⪇","&lneqq;":"≨","&lnsim;":"⋦","&loang;":"⟬","&loarr;":"⇽","&lobrk;":"⟦","&longleftarrow;":"⟵","&longleftrightarrow;":"⟷","&longmapsto;":"⟼","&longrightarrow;":"⟶","&looparrowleft;":"↫","&looparrowright;":"↬","&lopar;":"⦅","&lopf;":"𝕝","&loplus;":"⨭","&lotimes;":"⨴","&lowast;":"∗","&lowbar;":"_","&loz;":"◊","&lozenge;":"◊","&lozf;":"⧫","&lpar;":"(","&lparlt;":"⦓","&lrarr;":"⇆","&lrcorner;":"⌟","&lrhar;":"⇋","&lrhard;":"⥭","&lrm;":"‎","&lrtri;":"⊿","&lsaquo;":"‹","&lscr;":"𝓁","&lsh;":"↰","&lsim;":"≲","&lsime;":"⪍","&lsimg;":"⪏","&lsqb;":"[","&lsquo;":"‘","&lsquor;":"‚","&lstrok;":"ł","&lt":"<","&lt;":"<","&ltcc;":"⪦","&ltcir;":"⩹","&ltdot;":"⋖","&lthree;":"⋋","&ltimes;":"⋉","&ltlarr;":"⥶","&ltquest;":"⩻","&ltrPar;":"⦖","&ltri;":"◃","&ltrie;":"⊴","&ltrif;":"◂","&lurdshar;":"⥊","&luruhar;":"⥦","&lvertneqq;":"≨︀","&lvnE;":"≨︀","&mDDot;":"∺","&macr":"¯","&macr;":"¯","&male;":"♂","&malt;":"✠","&maltese;":"✠","&map;":"↦","&mapsto;":"↦","&mapstodown;":"↧","&mapstoleft;":"↤","&mapstoup;":"↥","&marker;":"▮","&mcomma;":"⨩","&mcy;":"м","&mdash;":"—","&measuredangle;":"∡","&mfr;":"𝔪","&mho;":"℧","&micro":"µ","&micro;":"µ","&mid;":"∣","&midast;":"*","&midcir;":"⫰","&middot":"·","&middot;":"·","&minus;":"−","&minusb;":"⊟","&minusd;":"∸","&minusdu;":"⨪","&mlcp;":"⫛","&mldr;":"…","&mnplus;":"∓","&models;":"⊧","&mopf;":"𝕞","&mp;":"∓","&mscr;":"𝓂","&mstpos;":"∾","&mu;":"μ","&multimap;":"⊸","&mumap;":"⊸","&nGg;":"⋙̸","&nGt;":"≫⃒","&nGtv;":"≫̸","&nLeftarrow;":"⇍","&nLeftrightarrow;":"⇎","&nLl;":"⋘̸","&nLt;":"≪⃒","&nLtv;":"≪̸","&nRightarrow;":"⇏","&nVDash;":"⊯","&nVdash;":"⊮","&nabla;":"∇","&nacute;":"ń","&nang;":"∠⃒","&nap;":"≉","&napE;":"⩰̸","&napid;":"≋̸","&napos;":"ŉ","&napprox;":"≉","&natur;":"♮","&natural;":"♮","&naturals;":"ℕ","&nbsp":" ","&nbsp;":" ","&nbump;":"≎̸","&nbumpe;":"≏̸","&ncap;":"⩃","&ncaron;":"ň","&ncedil;":"ņ","&ncong;":"≇","&ncongdot;":"⩭̸","&ncup;":"⩂","&ncy;":"н","&ndash;":"–","&ne;":"≠","&neArr;":"⇗","&nearhk;":"⤤","&nearr;":"↗","&nearrow;":"↗","&nedot;":"≐̸","&nequiv;":"≢","&nesear;":"⤨","&nesim;":"≂̸","&nexist;":"∄","&nexists;":"∄","&nfr;":"𝔫","&ngE;":"≧̸","&nge;":"≱","&ngeq;":"≱","&ngeqq;":"≧̸","&ngeqslant;":"⩾̸","&nges;":"⩾̸","&ngsim;":"≵","&ngt;":"≯","&ngtr;":"≯","&nhArr;":"⇎","&nharr;":"↮","&nhpar;":"⫲","&ni;":"∋","&nis;":"⋼","&nisd;":"⋺","&niv;":"∋","&njcy;":"њ","&nlArr;":"⇍","&nlE;":"≦̸","&nlarr;":"↚","&nldr;":"‥","&nle;":"≰","&nleftarrow;":"↚","&nleftrightarrow;":"↮","&nleq;":"≰","&nleqq;":"≦̸","&nleqslant;":"⩽̸","&nles;":"⩽̸","&nless;":"≮","&nlsim;":"≴","&nlt;":"≮","&nltri;":"⋪","&nltrie;":"⋬","&nmid;":"∤","&nopf;":"𝕟","&not":"¬","&not;":"¬","&notin;":"∉","&notinE;":"⋹̸","&notindot;":"⋵̸","&notinva;":"∉","&notinvb;":"⋷","&notinvc;":"⋶","&notni;":"∌","&notniva;":"∌","&notnivb;":"⋾","&notnivc;":"⋽","&npar;":"∦","&nparallel;":"∦","&nparsl;":"⫽⃥","&npart;":"∂̸","&npolint;":"⨔","&npr;":"⊀","&nprcue;":"⋠","&npre;":"⪯̸","&nprec;":"⊀","&npreceq;":"⪯̸","&nrArr;":"⇏","&nrarr;":"↛","&nrarrc;":"⤳̸","&nrarrw;":"↝̸","&nrightarrow;":"↛","&nrtri;":"⋫","&nrtrie;":"⋭","&nsc;":"⊁","&nsccue;":"⋡","&nsce;":"⪰̸","&nscr;":"𝓃","&nshortmid;":"∤","&nshortparallel;":"∦","&nsim;":"≁","&nsime;":"≄","&nsimeq;":"≄","&nsmid;":"∤","&nspar;":"∦","&nsqsube;":"⋢","&nsqsupe;":"⋣","&nsub;":"⊄","&nsubE;":"⫅̸","&nsube;":"⊈","&nsubset;":"⊂⃒","&nsubseteq;":"⊈","&nsubseteqq;":"⫅̸","&nsucc;":"⊁","&nsucceq;":"⪰̸","&nsup;":"⊅","&nsupE;":"⫆̸","&nsupe;":"⊉","&nsupset;":"⊃⃒","&nsupseteq;":"⊉","&nsupseteqq;":"⫆̸","&ntgl;":"≹","&ntilde":"ñ","&ntilde;":"ñ","&ntlg;":"≸","&ntriangleleft;":"⋪","&ntrianglelefteq;":"⋬","&ntriangleright;":"⋫","&ntrianglerighteq;":"⋭","&nu;":"ν","&num;":"#","&numero;":"№","&numsp;":" ","&nvDash;":"⊭","&nvHarr;":"⤄","&nvap;":"≍⃒","&nvdash;":"⊬","&nvge;":"≥⃒","&nvgt;":">⃒","&nvinfin;":"⧞","&nvlArr;":"⤂","&nvle;":"≤⃒","&nvlt;":"<⃒","&nvltrie;":"⊴⃒","&nvrArr;":"⤃","&nvrtrie;":"⊵⃒","&nvsim;":"∼⃒","&nwArr;":"⇖","&nwarhk;":"⤣","&nwarr;":"↖","&nwarrow;":"↖","&nwnear;":"⤧","&oS;":"Ⓢ","&oacute":"ó","&oacute;":"ó","&oast;":"⊛","&ocir;":"⊚","&ocirc":"ô","&ocirc;":"ô","&ocy;":"о","&odash;":"⊝","&odblac;":"ő","&odiv;":"⨸","&odot;":"⊙","&odsold;":"⦼","&oelig;":"œ","&ofcir;":"⦿","&ofr;":"𝔬","&ogon;":"˛","&ograve":"ò","&ograve;":"ò","&ogt;":"⧁","&ohbar;":"⦵","&ohm;":"Ω","&oint;":"∮","&olarr;":"↺","&olcir;":"⦾","&olcross;":"⦻","&oline;":"‾","&olt;":"⧀","&omacr;":"ō","&omega;":"ω","&omicron;":"ο","&omid;":"⦶","&ominus;":"⊖","&oopf;":"𝕠","&opar;":"⦷","&operp;":"⦹","&oplus;":"⊕","&or;":"∨","&orarr;":"↻","&ord;":"⩝","&order;":"ℴ","&orderof;":"ℴ","&ordf":"ª","&ordf;":"ª","&ordm":"º","&ordm;":"º","&origof;":"⊶","&oror;":"⩖","&orslope;":"⩗","&orv;":"⩛","&oscr;":"ℴ","&oslash":"ø","&oslash;":"ø","&osol;":"⊘","&otilde":"õ","&otilde;":"õ","&otimes;":"⊗","&otimesas;":"⨶","&ouml":"ö","&ouml;":"ö","&ovbar;":"⌽","&par;":"∥","&para":"¶","&para;":"¶","&parallel;":"∥","&parsim;":"⫳","&parsl;":"⫽","&part;":"∂","&pcy;":"п","&percnt;":"%","&period;":".","&permil;":"‰","&perp;":"⊥","&pertenk;":"‱","&pfr;":"𝔭","&phi;":"φ","&phiv;":"ϕ","&phmmat;":"ℳ","&phone;":"☎","&pi;":"π","&pitchfork;":"⋔","&piv;":"ϖ","&planck;":"ℏ","&planckh;":"ℎ","&plankv;":"ℏ","&plus;":"+","&plusacir;":"⨣","&plusb;":"⊞","&pluscir;":"⨢","&plusdo;":"∔","&plusdu;":"⨥","&pluse;":"⩲","&plusmn":"±","&plusmn;":"±","&plussim;":"⨦","&plustwo;":"⨧","&pm;":"±","&pointint;":"⨕","&popf;":"𝕡","&pound":"£","&pound;":"£","&pr;":"≺","&prE;":"⪳","&prap;":"⪷","&prcue;":"≼","&pre;":"⪯","&prec;":"≺","&precapprox;":"⪷","&preccurlyeq;":"≼","&preceq;":"⪯","&precnapprox;":"⪹","&precneqq;":"⪵","&precnsim;":"⋨","&precsim;":"≾","&prime;":"′","&primes;":"ℙ","&prnE;":"⪵","&prnap;":"⪹","&prnsim;":"⋨","&prod;":"∏","&profalar;":"⌮","&profline;":"⌒","&profsurf;":"⌓","&prop;":"∝","&propto;":"∝","&prsim;":"≾","&prurel;":"⊰","&pscr;":"𝓅","&psi;":"ψ","&puncsp;":" ","&qfr;":"𝔮","&qint;":"⨌","&qopf;":"𝕢","&qprime;":"⁗","&qscr;":"𝓆","&quaternions;":"ℍ","&quatint;":"⨖","&quest;":"?","&questeq;":"≟","&quot":'"',"&quot;":'"',"&rAarr;":"⇛","&rArr;":"⇒","&rAtail;":"⤜","&rBarr;":"⤏","&rHar;":"⥤","&race;":"∽̱","&racute;":"ŕ","&radic;":"√","&raemptyv;":"⦳","&rang;":"⟩","&rangd;":"⦒","&range;":"⦥","&rangle;":"⟩","&raquo":"»","&raquo;":"»","&rarr;":"→","&rarrap;":"⥵","&rarrb;":"⇥","&rarrbfs;":"⤠","&rarrc;":"⤳","&rarrfs;":"⤞","&rarrhk;":"↪","&rarrlp;":"↬","&rarrpl;":"⥅","&rarrsim;":"⥴","&rarrtl;":"↣","&rarrw;":"↝","&ratail;":"⤚","&ratio;":"∶","&rationals;":"ℚ","&rbarr;":"⤍","&rbbrk;":"❳","&rbrace;":"}","&rbrack;":"]","&rbrke;":"⦌","&rbrksld;":"⦎","&rbrkslu;":"⦐","&rcaron;":"ř","&rcedil;":"ŗ","&rceil;":"⌉","&rcub;":"}","&rcy;":"р","&rdca;":"⤷","&rdldhar;":"⥩","&rdquo;":"”","&rdquor;":"”","&rdsh;":"↳","&real;":"ℜ","&realine;":"ℛ","&realpart;":"ℜ","&reals;":"ℝ","&rect;":"▭","&reg":"®","&reg;":"®","&rfisht;":"⥽","&rfloor;":"⌋","&rfr;":"𝔯","&rhard;":"⇁","&rharu;":"⇀","&rharul;":"⥬","&rho;":"ρ","&rhov;":"ϱ","&rightarrow;":"→","&rightarrowtail;":"↣","&rightharpoondown;":"⇁","&rightharpoonup;":"⇀","&rightleftarrows;":"⇄","&rightleftharpoons;":"⇌","&rightrightarrows;":"⇉","&rightsquigarrow;":"↝","&rightthreetimes;":"⋌","&ring;":"˚","&risingdotseq;":"≓","&rlarr;":"⇄","&rlhar;":"⇌","&rlm;":"‏","&rmoust;":"⎱","&rmoustache;":"⎱","&rnmid;":"⫮","&roang;":"⟭","&roarr;":"⇾","&robrk;":"⟧","&ropar;":"⦆","&ropf;":"𝕣","&roplus;":"⨮","&rotimes;":"⨵","&rpar;":")","&rpargt;":"⦔","&rppolint;":"⨒","&rrarr;":"⇉","&rsaquo;":"›","&rscr;":"𝓇","&rsh;":"↱","&rsqb;":"]","&rsquo;":"’","&rsquor;":"’","&rthree;":"⋌","&rtimes;":"⋊","&rtri;":"▹","&rtrie;":"⊵","&rtrif;":"▸","&rtriltri;":"⧎","&ruluhar;":"⥨","&rx;":"℞","&sacute;":"ś","&sbquo;":"‚","&sc;":"≻","&scE;":"⪴","&scap;":"⪸","&scaron;":"š","&sccue;":"≽","&sce;":"⪰","&scedil;":"ş","&scirc;":"ŝ","&scnE;":"⪶","&scnap;":"⪺","&scnsim;":"⋩","&scpolint;":"⨓","&scsim;":"≿","&scy;":"с","&sdot;":"⋅","&sdotb;":"⊡","&sdote;":"⩦","&seArr;":"⇘","&searhk;":"⤥","&searr;":"↘","&searrow;":"↘","&sect":"§","&sect;":"§","&semi;":";","&seswar;":"⤩","&setminus;":"∖","&setmn;":"∖","&sext;":"✶","&sfr;":"𝔰","&sfrown;":"⌢","&sharp;":"♯","&shchcy;":"щ","&shcy;":"ш","&shortmid;":"∣","&shortparallel;":"∥","&shy":"­","&shy;":"­","&sigma;":"σ","&sigmaf;":"ς","&sigmav;":"ς","&sim;":"∼","&simdot;":"⩪","&sime;":"≃","&simeq;":"≃","&simg;":"⪞","&simgE;":"⪠","&siml;":"⪝","&simlE;":"⪟","&simne;":"≆","&simplus;":"⨤","&simrarr;":"⥲","&slarr;":"←","&smallsetminus;":"∖","&smashp;":"⨳","&smeparsl;":"⧤","&smid;":"∣","&smile;":"⌣","&smt;":"⪪","&smte;":"⪬","&smtes;":"⪬︀","&softcy;":"ь","&sol;":"/","&solb;":"⧄","&solbar;":"⌿","&sopf;":"𝕤","&spades;":"♠","&spadesuit;":"♠","&spar;":"∥","&sqcap;":"⊓","&sqcaps;":"⊓︀","&sqcup;":"⊔","&sqcups;":"⊔︀","&sqsub;":"⊏","&sqsube;":"⊑","&sqsubset;":"⊏","&sqsubseteq;":"⊑","&sqsup;":"⊐","&sqsupe;":"⊒","&sqsupset;":"⊐","&sqsupseteq;":"⊒","&squ;":"□","&square;":"□","&squarf;":"▪","&squf;":"▪","&srarr;":"→","&sscr;":"𝓈","&ssetmn;":"∖","&ssmile;":"⌣","&sstarf;":"⋆","&star;":"☆","&starf;":"★","&straightepsilon;":"ϵ","&straightphi;":"ϕ","&strns;":"¯","&sub;":"⊂","&subE;":"⫅","&subdot;":"⪽","&sube;":"⊆","&subedot;":"⫃","&submult;":"⫁","&subnE;":"⫋","&subne;":"⊊","&subplus;":"⪿","&subrarr;":"⥹","&subset;":"⊂","&subseteq;":"⊆","&subseteqq;":"⫅","&subsetneq;":"⊊","&subsetneqq;":"⫋","&subsim;":"⫇","&subsub;":"⫕","&subsup;":"⫓","&succ;":"≻","&succapprox;":"⪸","&succcurlyeq;":"≽","&succeq;":"⪰","&succnapprox;":"⪺","&succneqq;":"⪶","&succnsim;":"⋩","&succsim;":"≿","&sum;":"∑","&sung;":"♪","&sup1":"¹","&sup1;":"¹","&sup2":"²","&sup2;":"²","&sup3":"³","&sup3;":"³","&sup;":"⊃","&supE;":"⫆","&supdot;":"⪾","&supdsub;":"⫘","&supe;":"⊇","&supedot;":"⫄","&suphsol;":"⟉","&suphsub;":"⫗","&suplarr;":"⥻","&supmult;":"⫂","&supnE;":"⫌","&supne;":"⊋","&supplus;":"⫀","&supset;":"⊃","&supseteq;":"⊇","&supseteqq;":"⫆","&supsetneq;":"⊋","&supsetneqq;":"⫌","&supsim;":"⫈","&supsub;":"⫔","&supsup;":"⫖","&swArr;":"⇙","&swarhk;":"⤦","&swarr;":"↙","&swarrow;":"↙","&swnwar;":"⤪","&szlig":"ß","&szlig;":"ß","&target;":"⌖","&tau;":"τ","&tbrk;":"⎴","&tcaron;":"ť","&tcedil;":"ţ","&tcy;":"т","&tdot;":"⃛","&telrec;":"⌕","&tfr;":"𝔱","&there4;":"∴","&therefore;":"∴","&theta;":"θ","&thetasym;":"ϑ","&thetav;":"ϑ","&thickapprox;":"≈","&thicksim;":"∼","&thinsp;":" ","&thkap;":"≈","&thksim;":"∼","&thorn":"þ","&thorn;":"þ","&tilde;":"˜","&times":"×","&times;":"×","&timesb;":"⊠","&timesbar;":"⨱","&timesd;":"⨰","&tint;":"∭","&toea;":"⤨","&top;":"⊤","&topbot;":"⌶","&topcir;":"⫱","&topf;":"𝕥","&topfork;":"⫚","&tosa;":"⤩","&tprime;":"‴","&trade;":"™","&triangle;":"▵","&triangledown;":"▿","&triangleleft;":"◃","&trianglelefteq;":"⊴","&triangleq;":"≜","&triangleright;":"▹","&trianglerighteq;":"⊵","&tridot;":"◬","&trie;":"≜","&triminus;":"⨺","&triplus;":"⨹","&trisb;":"⧍","&tritime;":"⨻","&trpezium;":"⏢","&tscr;":"𝓉","&tscy;":"ц","&tshcy;":"ћ","&tstrok;":"ŧ","&twixt;":"≬","&twoheadleftarrow;":"↞","&twoheadrightarrow;":"↠","&uArr;":"⇑","&uHar;":"⥣","&uacute":"ú","&uacute;":"ú","&uarr;":"↑","&ubrcy;":"ў","&ubreve;":"ŭ","&ucirc":"û","&ucirc;":"û","&ucy;":"у","&udarr;":"⇅","&udblac;":"ű","&udhar;":"⥮","&ufisht;":"⥾","&ufr;":"𝔲","&ugrave":"ù","&ugrave;":"ù","&uharl;":"↿","&uharr;":"↾","&uhblk;":"▀","&ulcorn;":"⌜","&ulcorner;":"⌜","&ulcrop;":"⌏","&ultri;":"◸","&umacr;":"ū","&uml":"¨","&uml;":"¨","&uogon;":"ų","&uopf;":"𝕦","&uparrow;":"↑","&updownarrow;":"↕","&upharpoonleft;":"↿","&upharpoonright;":"↾","&uplus;":"⊎","&upsi;":"υ","&upsih;":"ϒ","&upsilon;":"υ","&upuparrows;":"⇈","&urcorn;":"⌝","&urcorner;":"⌝","&urcrop;":"⌎","&uring;":"ů","&urtri;":"◹","&uscr;":"𝓊","&utdot;":"⋰","&utilde;":"ũ","&utri;":"▵","&utrif;":"▴","&uuarr;":"⇈","&uuml":"ü","&uuml;":"ü","&uwangle;":"⦧","&vArr;":"⇕","&vBar;":"⫨","&vBarv;":"⫩","&vDash;":"⊨","&vangrt;":"⦜","&varepsilon;":"ϵ","&varkappa;":"ϰ","&varnothing;":"∅","&varphi;":"ϕ","&varpi;":"ϖ","&varpropto;":"∝","&varr;":"↕","&varrho;":"ϱ","&varsigma;":"ς","&varsubsetneq;":"⊊︀","&varsubsetneqq;":"⫋︀","&varsupsetneq;":"⊋︀","&varsupsetneqq;":"⫌︀","&vartheta;":"ϑ","&vartriangleleft;":"⊲","&vartriangleright;":"⊳","&vcy;":"в","&vdash;":"⊢","&vee;":"∨","&veebar;":"⊻","&veeeq;":"≚","&vellip;":"⋮","&verbar;":"|","&vert;":"|","&vfr;":"𝔳","&vltri;":"⊲","&vnsub;":"⊂⃒","&vnsup;":"⊃⃒","&vopf;":"𝕧","&vprop;":"∝","&vrtri;":"⊳","&vscr;":"𝓋","&vsubnE;":"⫋︀","&vsubne;":"⊊︀","&vsupnE;":"⫌︀","&vsupne;":"⊋︀","&vzigzag;":"⦚","&wcirc;":"ŵ","&wedbar;":"⩟","&wedge;":"∧","&wedgeq;":"≙","&weierp;":"℘","&wfr;":"𝔴","&wopf;":"𝕨","&wp;":"℘","&wr;":"≀","&wreath;":"≀","&wscr;":"𝓌","&xcap;":"⋂","&xcirc;":"◯","&xcup;":"⋃","&xdtri;":"▽","&xfr;":"𝔵","&xhArr;":"⟺","&xharr;":"⟷","&xi;":"ξ","&xlArr;":"⟸","&xlarr;":"⟵","&xmap;":"⟼","&xnis;":"⋻","&xodot;":"⨀","&xopf;":"𝕩","&xoplus;":"⨁","&xotime;":"⨂","&xrArr;":"⟹","&xrarr;":"⟶","&xscr;":"𝓍","&xsqcup;":"⨆","&xuplus;":"⨄","&xutri;":"△","&xvee;":"⋁","&xwedge;":"⋀","&yacute":"ý","&yacute;":"ý","&yacy;":"я","&ycirc;":"ŷ","&ycy;":"ы","&yen":"¥","&yen;":"¥","&yfr;":"𝔶","&yicy;":"ї","&yopf;":"𝕪","&yscr;":"𝓎","&yucy;":"ю","&yuml":"ÿ","&yuml;":"ÿ","&zacute;":"ź","&zcaron;":"ž","&zcy;":"з","&zdot;":"ż","&zeetrf;":"ℨ","&zeta;":"ζ","&zfr;":"𝔷","&zhcy;":"ж","&zigrarr;":"⇝","&zopf;":"𝕫","&zscr;":"𝓏","&zwj;":"‍","&zwnj;":"‌"},characters:{Æ:"&AElig;","&":"&amp;",Á:"&Aacute;",Ă:"&Abreve;",Â:"&Acirc;",А:"&Acy;",𝔄:"&Afr;",À:"&Agrave;",Α:"&Alpha;",Ā:"&Amacr;","⩓":"&And;",Ą:"&Aogon;",𝔸:"&Aopf;","⁡":"&af;",Å:"&angst;",𝒜:"&Ascr;","≔":"&coloneq;",Ã:"&Atilde;",Ä:"&Auml;","∖":"&ssetmn;","⫧":"&Barv;","⌆":"&doublebarwedge;",Б:"&Bcy;","∵":"&because;",ℬ:"&bernou;",Β:"&Beta;",𝔅:"&Bfr;",𝔹:"&Bopf;","˘":"&breve;","≎":"&bump;",Ч:"&CHcy;","©":"&copy;",Ć:"&Cacute;","⋒":"&Cap;",ⅅ:"&DD;",ℭ:"&Cfr;",Č:"&Ccaron;",Ç:"&Ccedil;",Ĉ:"&Ccirc;","∰":"&Cconint;",Ċ:"&Cdot;","¸":"&cedil;","·":"&middot;",Χ:"&Chi;","⊙":"&odot;","⊖":"&ominus;","⊕":"&oplus;","⊗":"&otimes;","∲":"&cwconint;","”":"&rdquor;","’":"&rsquor;","∷":"&Proportion;","⩴":"&Colone;","≡":"&equiv;","∯":"&DoubleContourIntegral;","∮":"&oint;",ℂ:"&complexes;","∐":"&coprod;","∳":"&awconint;","⨯":"&Cross;",𝒞:"&Cscr;","⋓":"&Cup;","≍":"&asympeq;","⤑":"&DDotrahd;",Ђ:"&DJcy;",Ѕ:"&DScy;",Џ:"&DZcy;","‡":"&ddagger;","↡":"&Darr;","⫤":"&DoubleLeftTee;",Ď:"&Dcaron;",Д:"&Dcy;","∇":"&nabla;",Δ:"&Delta;",𝔇:"&Dfr;","´":"&acute;","˙":"&dot;","˝":"&dblac;","`":"&grave;","˜":"&tilde;","⋄":"&diamond;",ⅆ:"&dd;",𝔻:"&Dopf;","¨":"&uml;","⃜":"&DotDot;","≐":"&esdot;","⇓":"&dArr;","⇐":"&lArr;","⇔":"&iff;","⟸":"&xlArr;","⟺":"&xhArr;","⟹":"&xrArr;","⇒":"&rArr;","⊨":"&vDash;","⇑":"&uArr;","⇕":"&vArr;","∥":"&spar;","↓":"&downarrow;","⤓":"&DownArrowBar;","⇵":"&duarr;","̑":"&DownBreve;","⥐":"&DownLeftRightVector;","⥞":"&DownLeftTeeVector;","↽":"&lhard;","⥖":"&DownLeftVectorBar;","⥟":"&DownRightTeeVector;","⇁":"&rightharpoondown;","⥗":"&DownRightVectorBar;","⊤":"&top;","↧":"&mapstodown;",𝒟:"&Dscr;",Đ:"&Dstrok;",Ŋ:"&ENG;",Ð:"&ETH;",É:"&Eacute;",Ě:"&Ecaron;",Ê:"&Ecirc;",Э:"&Ecy;",Ė:"&Edot;",𝔈:"&Efr;",È:"&Egrave;","∈":"&isinv;",Ē:"&Emacr;","◻":"&EmptySmallSquare;","▫":"&EmptyVerySmallSquare;",Ę:"&Eogon;",𝔼:"&Eopf;",Ε:"&Epsilon;","⩵":"&Equal;","≂":"&esim;","⇌":"&rlhar;",ℰ:"&expectation;","⩳":"&Esim;",Η:"&Eta;",Ë:"&Euml;","∃":"&exist;",ⅇ:"&exponentiale;",Ф:"&Fcy;",𝔉:"&Ffr;","◼":"&FilledSmallSquare;","▪":"&squf;",𝔽:"&Fopf;","∀":"&forall;",ℱ:"&Fscr;",Ѓ:"&GJcy;",">":"&gt;",Γ:"&Gamma;",Ϝ:"&Gammad;",Ğ:"&Gbreve;",Ģ:"&Gcedil;",Ĝ:"&Gcirc;",Г:"&Gcy;",Ġ:"&Gdot;",𝔊:"&Gfr;","⋙":"&ggg;",𝔾:"&Gopf;","≥":"&geq;","⋛":"&gtreqless;","≧":"&geqq;","⪢":"&GreaterGreater;","≷":"&gtrless;","⩾":"&ges;","≳":"&gtrsim;",𝒢:"&Gscr;","≫":"&gg;",Ъ:"&HARDcy;",ˇ:"&caron;","^":"&Hat;",Ĥ:"&Hcirc;",ℌ:"&Poincareplane;",ℋ:"&hamilt;",ℍ:"&quaternions;","─":"&boxh;",Ħ:"&Hstrok;","≏":"&bumpeq;",Е:"&IEcy;",Ĳ:"&IJlig;",Ё:"&IOcy;",Í:"&Iacute;",Î:"&Icirc;",И:"&Icy;",İ:"&Idot;",ℑ:"&imagpart;",Ì:"&Igrave;",Ī:"&Imacr;",ⅈ:"&ii;","∬":"&Int;","∫":"&int;","⋂":"&xcap;","⁣":"&ic;","⁢":"&it;",Į:"&Iogon;",𝕀:"&Iopf;",Ι:"&Iota;",ℐ:"&imagline;",Ĩ:"&Itilde;",І:"&Iukcy;",Ï:"&Iuml;",Ĵ:"&Jcirc;",Й:"&Jcy;",𝔍:"&Jfr;",𝕁:"&Jopf;",𝒥:"&Jscr;",Ј:"&Jsercy;",Є:"&Jukcy;",Х:"&KHcy;",Ќ:"&KJcy;",Κ:"&Kappa;",Ķ:"&Kcedil;",К:"&Kcy;",𝔎:"&Kfr;",𝕂:"&Kopf;",𝒦:"&Kscr;",Љ:"&LJcy;","<":"&lt;",Ĺ:"&Lacute;",Λ:"&Lambda;","⟪":"&Lang;",ℒ:"&lagran;","↞":"&twoheadleftarrow;",Ľ:"&Lcaron;",Ļ:"&Lcedil;",Л:"&Lcy;","⟨":"&langle;","←":"&slarr;","⇤":"&larrb;","⇆":"&lrarr;","⌈":"&lceil;","⟦":"&lobrk;","⥡":"&LeftDownTeeVector;","⇃":"&downharpoonleft;","⥙":"&LeftDownVectorBar;","⌊":"&lfloor;","↔":"&leftrightarrow;","⥎":"&LeftRightVector;","⊣":"&dashv;","↤":"&mapstoleft;","⥚":"&LeftTeeVector;","⊲":"&vltri;","⧏":"&LeftTriangleBar;","⊴":"&trianglelefteq;","⥑":"&LeftUpDownVector;","⥠":"&LeftUpTeeVector;","↿":"&upharpoonleft;","⥘":"&LeftUpVectorBar;","↼":"&lharu;","⥒":"&LeftVectorBar;","⋚":"&lesseqgtr;","≦":"&leqq;","≶":"&lg;","⪡":"&LessLess;","⩽":"&les;","≲":"&lsim;",𝔏:"&Lfr;","⋘":"&Ll;","⇚":"&lAarr;",Ŀ:"&Lmidot;","⟵":"&xlarr;","⟷":"&xharr;","⟶":"&xrarr;",𝕃:"&Lopf;","↙":"&swarrow;","↘":"&searrow;","↰":"&lsh;",Ł:"&Lstrok;","≪":"&ll;","⤅":"&Map;",М:"&Mcy;"," ":"&MediumSpace;",ℳ:"&phmmat;",𝔐:"&Mfr;","∓":"&mp;",𝕄:"&Mopf;",Μ:"&Mu;",Њ:"&NJcy;",Ń:"&Nacute;",Ň:"&Ncaron;",Ņ:"&Ncedil;",Н:"&Ncy;","​":"&ZeroWidthSpace;","\n":"&NewLine;",𝔑:"&Nfr;","⁠":"&NoBreak;"," ":"&nbsp;",ℕ:"&naturals;","⫬":"&Not;","≢":"&nequiv;","≭":"&NotCupCap;","∦":"&nspar;","∉":"&notinva;","≠":"&ne;","≂̸":"&nesim;","∄":"&nexists;","≯":"&ngtr;","≱":"&ngeq;","≧̸":"&ngeqq;","≫̸":"&nGtv;","≹":"&ntgl;","⩾̸":"&nges;","≵":"&ngsim;","≎̸":"&nbump;","≏̸":"&nbumpe;","⋪":"&ntriangleleft;","⧏̸":"&NotLeftTriangleBar;","⋬":"&ntrianglelefteq;","≮":"&nlt;","≰":"&nleq;","≸":"&ntlg;","≪̸":"&nLtv;","⩽̸":"&nles;","≴":"&nlsim;","⪢̸":"&NotNestedGreaterGreater;","⪡̸":"&NotNestedLessLess;","⊀":"&nprec;","⪯̸":"&npreceq;","⋠":"&nprcue;","∌":"&notniva;","⋫":"&ntriangleright;","⧐̸":"&NotRightTriangleBar;","⋭":"&ntrianglerighteq;","⊏̸":"&NotSquareSubset;","⋢":"&nsqsube;","⊐̸":"&NotSquareSuperset;","⋣":"&nsqsupe;","⊂⃒":"&vnsub;","⊈":"&nsubseteq;","⊁":"&nsucc;","⪰̸":"&nsucceq;","⋡":"&nsccue;","≿̸":"&NotSucceedsTilde;","⊃⃒":"&vnsup;","⊉":"&nsupseteq;","≁":"&nsim;","≄":"&nsimeq;","≇":"&ncong;","≉":"&napprox;","∤":"&nsmid;",𝒩:"&Nscr;",Ñ:"&Ntilde;",Ν:"&Nu;",Œ:"&OElig;",Ó:"&Oacute;",Ô:"&Ocirc;",О:"&Ocy;",Ő:"&Odblac;",𝔒:"&Ofr;",Ò:"&Ograve;",Ō:"&Omacr;",Ω:"&ohm;",Ο:"&Omicron;",𝕆:"&Oopf;","“":"&ldquo;","‘":"&lsquo;","⩔":"&Or;",𝒪:"&Oscr;",Ø:"&Oslash;",Õ:"&Otilde;","⨷":"&Otimes;",Ö:"&Ouml;","‾":"&oline;","⏞":"&OverBrace;","⎴":"&tbrk;","⏜":"&OverParenthesis;","∂":"&part;",П:"&Pcy;",𝔓:"&Pfr;",Φ:"&Phi;",Π:"&Pi;","±":"&pm;",ℙ:"&primes;","⪻":"&Pr;","≺":"&prec;","⪯":"&preceq;","≼":"&preccurlyeq;","≾":"&prsim;","″":"&Prime;","∏":"&prod;","∝":"&vprop;",𝒫:"&Pscr;",Ψ:"&Psi;",'"':"&quot;",𝔔:"&Qfr;",ℚ:"&rationals;",𝒬:"&Qscr;","⤐":"&drbkarow;","®":"&reg;",Ŕ:"&Racute;","⟫":"&Rang;","↠":"&twoheadrightarrow;","⤖":"&Rarrtl;",Ř:"&Rcaron;",Ŗ:"&Rcedil;",Р:"&Rcy;",ℜ:"&realpart;","∋":"&niv;","⇋":"&lrhar;","⥯":"&duhar;",Ρ:"&Rho;","⟩":"&rangle;","→":"&srarr;","⇥":"&rarrb;","⇄":"&rlarr;","⌉":"&rceil;","⟧":"&robrk;","⥝":"&RightDownTeeVector;","⇂":"&downharpoonright;","⥕":"&RightDownVectorBar;","⌋":"&rfloor;","⊢":"&vdash;","↦":"&mapsto;","⥛":"&RightTeeVector;","⊳":"&vrtri;","⧐":"&RightTriangleBar;","⊵":"&trianglerighteq;","⥏":"&RightUpDownVector;","⥜":"&RightUpTeeVector;","↾":"&upharpoonright;","⥔":"&RightUpVectorBar;","⇀":"&rightharpoonup;","⥓":"&RightVectorBar;",ℝ:"&reals;","⥰":"&RoundImplies;","⇛":"&rAarr;",ℛ:"&realine;","↱":"&rsh;","⧴":"&RuleDelayed;",Щ:"&SHCHcy;",Ш:"&SHcy;",Ь:"&SOFTcy;",Ś:"&Sacute;","⪼":"&Sc;",Š:"&Scaron;",Ş:"&Scedil;",Ŝ:"&Scirc;",С:"&Scy;",𝔖:"&Sfr;","↑":"&uparrow;",Σ:"&Sigma;","∘":"&compfn;",𝕊:"&Sopf;","√":"&radic;","□":"&square;","⊓":"&sqcap;","⊏":"&sqsubset;","⊑":"&sqsubseteq;","⊐":"&sqsupset;","⊒":"&sqsupseteq;","⊔":"&sqcup;",𝒮:"&Sscr;","⋆":"&sstarf;","⋐":"&Subset;","⊆":"&subseteq;","≻":"&succ;","⪰":"&succeq;","≽":"&succcurlyeq;","≿":"&succsim;","∑":"&sum;","⋑":"&Supset;","⊃":"&supset;","⊇":"&supseteq;",Þ:"&THORN;","™":"&trade;",Ћ:"&TSHcy;",Ц:"&TScy;","\t":"&Tab;",Τ:"&Tau;",Ť:"&Tcaron;",Ţ:"&Tcedil;",Т:"&Tcy;",𝔗:"&Tfr;","∴":"&therefore;",Θ:"&Theta;","  ":"&ThickSpace;"," ":"&thinsp;","∼":"&thksim;","≃":"&simeq;","≅":"&cong;","≈":"&thkap;",𝕋:"&Topf;","⃛":"&tdot;",𝒯:"&Tscr;",Ŧ:"&Tstrok;",Ú:"&Uacute;","↟":"&Uarr;","⥉":"&Uarrocir;",Ў:"&Ubrcy;",Ŭ:"&Ubreve;",Û:"&Ucirc;",У:"&Ucy;",Ű:"&Udblac;",𝔘:"&Ufr;",Ù:"&Ugrave;",Ū:"&Umacr;",_:"&lowbar;","⏟":"&UnderBrace;","⎵":"&bbrk;","⏝":"&UnderParenthesis;","⋃":"&xcup;","⊎":"&uplus;",Ų:"&Uogon;",𝕌:"&Uopf;","⤒":"&UpArrowBar;","⇅":"&udarr;","↕":"&varr;","⥮":"&udhar;","⊥":"&perp;","↥":"&mapstoup;","↖":"&nwarrow;","↗":"&nearrow;",ϒ:"&upsih;",Υ:"&Upsilon;",Ů:"&Uring;",𝒰:"&Uscr;",Ũ:"&Utilde;",Ü:"&Uuml;","⊫":"&VDash;","⫫":"&Vbar;",В:"&Vcy;","⊩":"&Vdash;","⫦":"&Vdashl;","⋁":"&xvee;","‖":"&Vert;","∣":"&smid;","|":"&vert;","❘":"&VerticalSeparator;","≀":"&wreath;"," ":"&hairsp;",𝔙:"&Vfr;",𝕍:"&Vopf;",𝒱:"&Vscr;","⊪":"&Vvdash;",Ŵ:"&Wcirc;","⋀":"&xwedge;",𝔚:"&Wfr;",𝕎:"&Wopf;",𝒲:"&Wscr;",𝔛:"&Xfr;",Ξ:"&Xi;",𝕏:"&Xopf;",𝒳:"&Xscr;",Я:"&YAcy;",Ї:"&YIcy;",Ю:"&YUcy;",Ý:"&Yacute;",Ŷ:"&Ycirc;",Ы:"&Ycy;",𝔜:"&Yfr;",𝕐:"&Yopf;",𝒴:"&Yscr;",Ÿ:"&Yuml;",Ж:"&ZHcy;",Ź:"&Zacute;",Ž:"&Zcaron;",З:"&Zcy;",Ż:"&Zdot;",Ζ:"&Zeta;",ℨ:"&zeetrf;",ℤ:"&integers;",𝒵:"&Zscr;",á:"&aacute;",ă:"&abreve;","∾":"&mstpos;","∾̳":"&acE;","∿":"&acd;",â:"&acirc;",а:"&acy;",æ:"&aelig;",𝔞:"&afr;",à:"&agrave;",ℵ:"&aleph;",α:"&alpha;",ā:"&amacr;","⨿":"&amalg;","∧":"&wedge;","⩕":"&andand;","⩜":"&andd;","⩘":"&andslope;","⩚":"&andv;","∠":"&angle;","⦤":"&ange;","∡":"&measuredangle;","⦨":"&angmsdaa;","⦩":"&angmsdab;","⦪":"&angmsdac;","⦫":"&angmsdad;","⦬":"&angmsdae;","⦭":"&angmsdaf;","⦮":"&angmsdag;","⦯":"&angmsdah;","∟":"&angrt;","⊾":"&angrtvb;","⦝":"&angrtvbd;","∢":"&angsph;","⍼":"&angzarr;",ą:"&aogon;",𝕒:"&aopf;","⩰":"&apE;","⩯":"&apacir;","≊":"&approxeq;","≋":"&apid;","'":"&apos;",å:"&aring;",𝒶:"&ascr;","*":"&midast;",ã:"&atilde;",ä:"&auml;","⨑":"&awint;","⫭":"&bNot;","≌":"&bcong;","϶":"&bepsi;","‵":"&bprime;","∽":"&bsim;","⋍":"&bsime;","⊽":"&barvee;","⌅":"&barwedge;","⎶":"&bbrktbrk;",б:"&bcy;","„":"&ldquor;","⦰":"&bemptyv;",β:"&beta;",ℶ:"&beth;","≬":"&twixt;",𝔟:"&bfr;","◯":"&xcirc;","⨀":"&xodot;","⨁":"&xoplus;","⨂":"&xotime;","⨆":"&xsqcup;","★":"&starf;","▽":"&xdtri;","△":"&xutri;","⨄":"&xuplus;","⤍":"&rbarr;","⧫":"&lozf;","▴":"&utrif;","▾":"&dtrif;","◂":"&ltrif;","▸":"&rtrif;","␣":"&blank;","▒":"&blk12;","░":"&blk14;","▓":"&blk34;","█":"&block;","=⃥":"&bne;","≡⃥":"&bnequiv;","⌐":"&bnot;",𝕓:"&bopf;","⋈":"&bowtie;","╗":"&boxDL;","╔":"&boxDR;","╖":"&boxDl;","╓":"&boxDr;","═":"&boxH;","╦":"&boxHD;","╩":"&boxHU;","╤":"&boxHd;","╧":"&boxHu;","╝":"&boxUL;","╚":"&boxUR;","╜":"&boxUl;","╙":"&boxUr;","║":"&boxV;","╬":"&boxVH;","╣":"&boxVL;","╠":"&boxVR;","╫":"&boxVh;","╢":"&boxVl;","╟":"&boxVr;","⧉":"&boxbox;","╕":"&boxdL;","╒":"&boxdR;","┐":"&boxdl;","┌":"&boxdr;","╥":"&boxhD;","╨":"&boxhU;","┬":"&boxhd;","┴":"&boxhu;","⊟":"&minusb;","⊞":"&plusb;","⊠":"&timesb;","╛":"&boxuL;","╘":"&boxuR;","┘":"&boxul;","└":"&boxur;","│":"&boxv;","╪":"&boxvH;","╡":"&boxvL;","╞":"&boxvR;","┼":"&boxvh;","┤":"&boxvl;","├":"&boxvr;","¦":"&brvbar;",𝒷:"&bscr;","⁏":"&bsemi;","\\":"&bsol;","⧅":"&bsolb;","⟈":"&bsolhsub;","•":"&bullet;","⪮":"&bumpE;",ć:"&cacute;","∩":"&cap;","⩄":"&capand;","⩉":"&capbrcup;","⩋":"&capcap;","⩇":"&capcup;","⩀":"&capdot;","∩︀":"&caps;","⁁":"&caret;","⩍":"&ccaps;",č:"&ccaron;",ç:"&ccedil;",ĉ:"&ccirc;","⩌":"&ccups;","⩐":"&ccupssm;",ċ:"&cdot;","⦲":"&cemptyv;","¢":"&cent;",𝔠:"&cfr;",ч:"&chcy;","✓":"&checkmark;",χ:"&chi;","○":"&cir;","⧃":"&cirE;",ˆ:"&circ;","≗":"&cire;","↺":"&olarr;","↻":"&orarr;","Ⓢ":"&oS;","⊛":"&oast;","⊚":"&ocir;","⊝":"&odash;","⨐":"&cirfnint;","⫯":"&cirmid;","⧂":"&cirscir;","♣":"&clubsuit;",":":"&colon;",",":"&comma;","@":"&commat;","∁":"&complement;","⩭":"&congdot;",𝕔:"&copf;","℗":"&copysr;","↵":"&crarr;","✗":"&cross;",𝒸:"&cscr;","⫏":"&csub;","⫑":"&csube;","⫐":"&csup;","⫒":"&csupe;","⋯":"&ctdot;","⤸":"&cudarrl;","⤵":"&cudarrr;","⋞":"&curlyeqprec;","⋟":"&curlyeqsucc;","↶":"&curvearrowleft;","⤽":"&cularrp;","∪":"&cup;","⩈":"&cupbrcap;","⩆":"&cupcap;","⩊":"&cupcup;","⊍":"&cupdot;","⩅":"&cupor;","∪︀":"&cups;","↷":"&curvearrowright;","⤼":"&curarrm;","⋎":"&cuvee;","⋏":"&cuwed;","¤":"&curren;","∱":"&cwint;","⌭":"&cylcty;","⥥":"&dHar;","†":"&dagger;",ℸ:"&daleth;","‐":"&hyphen;","⤏":"&rBarr;",ď:"&dcaron;",д:"&dcy;","⇊":"&downdownarrows;","⩷":"&eDDot;","°":"&deg;",δ:"&delta;","⦱":"&demptyv;","⥿":"&dfisht;",𝔡:"&dfr;","♦":"&diams;",ϝ:"&gammad;","⋲":"&disin;","÷":"&divide;","⋇":"&divonx;",ђ:"&djcy;","⌞":"&llcorner;","⌍":"&dlcrop;",$:"&dollar;",𝕕:"&dopf;","≑":"&eDot;","∸":"&minusd;","∔":"&plusdo;","⊡":"&sdotb;","⌟":"&lrcorner;","⌌":"&drcrop;",𝒹:"&dscr;",ѕ:"&dscy;","⧶":"&dsol;",đ:"&dstrok;","⋱":"&dtdot;","▿":"&triangledown;","⦦":"&dwangle;",џ:"&dzcy;","⟿":"&dzigrarr;",é:"&eacute;","⩮":"&easter;",ě:"&ecaron;","≖":"&eqcirc;",ê:"&ecirc;","≕":"&eqcolon;",э:"&ecy;",ė:"&edot;","≒":"&fallingdotseq;",𝔢:"&efr;","⪚":"&eg;",è:"&egrave;","⪖":"&eqslantgtr;","⪘":"&egsdot;","⪙":"&el;","⏧":"&elinters;",ℓ:"&ell;","⪕":"&eqslantless;","⪗":"&elsdot;",ē:"&emacr;","∅":"&varnothing;"," ":"&emsp13;"," ":"&emsp14;"," ":"&emsp;",ŋ:"&eng;"," ":"&ensp;",ę:"&eogon;",𝕖:"&eopf;","⋕":"&epar;","⧣":"&eparsl;","⩱":"&eplus;",ε:"&epsilon;",ϵ:"&varepsilon;","=":"&equals;","≟":"&questeq;","⩸":"&equivDD;","⧥":"&eqvparsl;","≓":"&risingdotseq;","⥱":"&erarr;",ℯ:"&escr;",η:"&eta;",ð:"&eth;",ë:"&euml;","€":"&euro;","!":"&excl;",ф:"&fcy;","♀":"&female;",ﬃ:"&ffilig;",ﬀ:"&fflig;",ﬄ:"&ffllig;",𝔣:"&ffr;",ﬁ:"&filig;",fj:"&fjlig;","♭":"&flat;",ﬂ:"&fllig;","▱":"&fltns;",ƒ:"&fnof;",𝕗:"&fopf;","⋔":"&pitchfork;","⫙":"&forkv;","⨍":"&fpartint;","½":"&half;","⅓":"&frac13;","¼":"&frac14;","⅕":"&frac15;","⅙":"&frac16;","⅛":"&frac18;","⅔":"&frac23;","⅖":"&frac25;","¾":"&frac34;","⅗":"&frac35;","⅜":"&frac38;","⅘":"&frac45;","⅚":"&frac56;","⅝":"&frac58;","⅞":"&frac78;","⁄":"&frasl;","⌢":"&sfrown;",𝒻:"&fscr;","⪌":"&gtreqqless;",ǵ:"&gacute;",γ:"&gamma;","⪆":"&gtrapprox;",ğ:"&gbreve;",ĝ:"&gcirc;",г:"&gcy;",ġ:"&gdot;","⪩":"&gescc;","⪀":"&gesdot;","⪂":"&gesdoto;","⪄":"&gesdotol;","⋛︀":"&gesl;","⪔":"&gesles;",𝔤:"&gfr;",ℷ:"&gimel;",ѓ:"&gjcy;","⪒":"&glE;","⪥":"&gla;","⪤":"&glj;","≩":"&gneqq;","⪊":"&gnapprox;","⪈":"&gneq;","⋧":"&gnsim;",𝕘:"&gopf;",ℊ:"&gscr;","⪎":"&gsime;","⪐":"&gsiml;","⪧":"&gtcc;","⩺":"&gtcir;","⋗":"&gtrdot;","⦕":"&gtlPar;","⩼":"&gtquest;","⥸":"&gtrarr;","≩︀":"&gvnE;",ъ:"&hardcy;","⥈":"&harrcir;","↭":"&leftrightsquigarrow;",ℏ:"&plankv;",ĥ:"&hcirc;","♥":"&heartsuit;","…":"&mldr;","⊹":"&hercon;",𝔥:"&hfr;","⤥":"&searhk;","⤦":"&swarhk;","⇿":"&hoarr;","∻":"&homtht;","↩":"&larrhk;","↪":"&rarrhk;",𝕙:"&hopf;","―":"&horbar;",𝒽:"&hscr;",ħ:"&hstrok;","⁃":"&hybull;",í:"&iacute;",î:"&icirc;",и:"&icy;",е:"&iecy;","¡":"&iexcl;",𝔦:"&ifr;",ì:"&igrave;","⨌":"&qint;","∭":"&tint;","⧜":"&iinfin;","℩":"&iiota;",ĳ:"&ijlig;",ī:"&imacr;",ı:"&inodot;","⊷":"&imof;",Ƶ:"&imped;","℅":"&incare;","∞":"&infin;","⧝":"&infintie;","⊺":"&intercal;","⨗":"&intlarhk;","⨼":"&iprod;",ё:"&iocy;",į:"&iogon;",𝕚:"&iopf;",ι:"&iota;","¿":"&iquest;",𝒾:"&iscr;","⋹":"&isinE;","⋵":"&isindot;","⋴":"&isins;","⋳":"&isinsv;",ĩ:"&itilde;",і:"&iukcy;",ï:"&iuml;",ĵ:"&jcirc;",й:"&jcy;",𝔧:"&jfr;",ȷ:"&jmath;",𝕛:"&jopf;",𝒿:"&jscr;",ј:"&jsercy;",є:"&jukcy;",κ:"&kappa;",ϰ:"&varkappa;",ķ:"&kcedil;",к:"&kcy;",𝔨:"&kfr;",ĸ:"&kgreen;",х:"&khcy;",ќ:"&kjcy;",𝕜:"&kopf;",𝓀:"&kscr;","⤛":"&lAtail;","⤎":"&lBarr;","⪋":"&lesseqqgtr;","⥢":"&lHar;",ĺ:"&lacute;","⦴":"&laemptyv;",λ:"&lambda;","⦑":"&langd;","⪅":"&lessapprox;","«":"&laquo;","⤟":"&larrbfs;","⤝":"&larrfs;","↫":"&looparrowleft;","⤹":"&larrpl;","⥳":"&larrsim;","↢":"&leftarrowtail;","⪫":"&lat;","⤙":"&latail;","⪭":"&late;","⪭︀":"&lates;","⤌":"&lbarr;","❲":"&lbbrk;","{":"&lcub;","[":"&lsqb;","⦋":"&lbrke;","⦏":"&lbrksld;","⦍":"&lbrkslu;",ľ:"&lcaron;",ļ:"&lcedil;",л:"&lcy;","⤶":"&ldca;","⥧":"&ldrdhar;","⥋":"&ldrushar;","↲":"&ldsh;","≤":"&leq;","⇇":"&llarr;","⋋":"&lthree;","⪨":"&lescc;","⩿":"&lesdot;","⪁":"&lesdoto;","⪃":"&lesdotor;","⋚︀":"&lesg;","⪓":"&lesges;","⋖":"&ltdot;","⥼":"&lfisht;",𝔩:"&lfr;","⪑":"&lgE;","⥪":"&lharul;","▄":"&lhblk;",љ:"&ljcy;","⥫":"&llhard;","◺":"&lltri;",ŀ:"&lmidot;","⎰":"&lmoustache;","≨":"&lneqq;","⪉":"&lnapprox;","⪇":"&lneq;","⋦":"&lnsim;","⟬":"&loang;","⇽":"&loarr;","⟼":"&xmap;","↬":"&rarrlp;","⦅":"&lopar;",𝕝:"&lopf;","⨭":"&loplus;","⨴":"&lotimes;","∗":"&lowast;","◊":"&lozenge;","(":"&lpar;","⦓":"&lparlt;","⥭":"&lrhard;","‎":"&lrm;","⊿":"&lrtri;","‹":"&lsaquo;",𝓁:"&lscr;","⪍":"&lsime;","⪏":"&lsimg;","‚":"&sbquo;",ł:"&lstrok;","⪦":"&ltcc;","⩹":"&ltcir;","⋉":"&ltimes;","⥶":"&ltlarr;","⩻":"&ltquest;","⦖":"&ltrPar;","◃":"&triangleleft;","⥊":"&lurdshar;","⥦":"&luruhar;","≨︀":"&lvnE;","∺":"&mDDot;","¯":"&strns;","♂":"&male;","✠":"&maltese;","▮":"&marker;","⨩":"&mcomma;",м:"&mcy;","—":"&mdash;",𝔪:"&mfr;","℧":"&mho;",µ:"&micro;","⫰":"&midcir;","−":"&minus;","⨪":"&minusdu;","⫛":"&mlcp;","⊧":"&models;",𝕞:"&mopf;",𝓂:"&mscr;",μ:"&mu;","⊸":"&mumap;","⋙̸":"&nGg;","≫⃒":"&nGt;","⇍":"&nlArr;","⇎":"&nhArr;","⋘̸":"&nLl;","≪⃒":"&nLt;","⇏":"&nrArr;","⊯":"&nVDash;","⊮":"&nVdash;",ń:"&nacute;","∠⃒":"&nang;","⩰̸":"&napE;","≋̸":"&napid;",ŉ:"&napos;","♮":"&natural;","⩃":"&ncap;",ň:"&ncaron;",ņ:"&ncedil;","⩭̸":"&ncongdot;","⩂":"&ncup;",н:"&ncy;","–":"&ndash;","⇗":"&neArr;","⤤":"&nearhk;","≐̸":"&nedot;","⤨":"&toea;",𝔫:"&nfr;","↮":"&nleftrightarrow;","⫲":"&nhpar;","⋼":"&nis;","⋺":"&nisd;",њ:"&njcy;","≦̸":"&nleqq;","↚":"&nleftarrow;","‥":"&nldr;",𝕟:"&nopf;","¬":"&not;","⋹̸":"&notinE;","⋵̸":"&notindot;","⋷":"&notinvb;","⋶":"&notinvc;","⋾":"&notnivb;","⋽":"&notnivc;","⫽⃥":"&nparsl;","∂̸":"&npart;","⨔":"&npolint;","↛":"&nrightarrow;","⤳̸":"&nrarrc;","↝̸":"&nrarrw;",𝓃:"&nscr;","⊄":"&nsub;","⫅̸":"&nsubseteqq;","⊅":"&nsup;","⫆̸":"&nsupseteqq;",ñ:"&ntilde;",ν:"&nu;","#":"&num;","№":"&numero;"," ":"&numsp;","⊭":"&nvDash;","⤄":"&nvHarr;","≍⃒":"&nvap;","⊬":"&nvdash;","≥⃒":"&nvge;",">⃒":"&nvgt;","⧞":"&nvinfin;","⤂":"&nvlArr;","≤⃒":"&nvle;","<⃒":"&nvlt;","⊴⃒":"&nvltrie;","⤃":"&nvrArr;","⊵⃒":"&nvrtrie;","∼⃒":"&nvsim;","⇖":"&nwArr;","⤣":"&nwarhk;","⤧":"&nwnear;",ó:"&oacute;",ô:"&ocirc;",о:"&ocy;",ő:"&odblac;","⨸":"&odiv;","⦼":"&odsold;",œ:"&oelig;","⦿":"&ofcir;",𝔬:"&ofr;","˛":"&ogon;",ò:"&ograve;","⧁":"&ogt;","⦵":"&ohbar;","⦾":"&olcir;","⦻":"&olcross;","⧀":"&olt;",ō:"&omacr;",ω:"&omega;",ο:"&omicron;","⦶":"&omid;",𝕠:"&oopf;","⦷":"&opar;","⦹":"&operp;","∨":"&vee;","⩝":"&ord;",ℴ:"&oscr;",ª:"&ordf;",º:"&ordm;","⊶":"&origof;","⩖":"&oror;","⩗":"&orslope;","⩛":"&orv;",ø:"&oslash;","⊘":"&osol;",õ:"&otilde;","⨶":"&otimesas;",ö:"&ouml;","⌽":"&ovbar;","¶":"&para;","⫳":"&parsim;","⫽":"&parsl;",п:"&pcy;","%":"&percnt;",".":"&period;","‰":"&permil;","‱":"&pertenk;",𝔭:"&pfr;",φ:"&phi;",ϕ:"&varphi;","☎":"&phone;",π:"&pi;",ϖ:"&varpi;",ℎ:"&planckh;","+":"&plus;","⨣":"&plusacir;","⨢":"&pluscir;","⨥":"&plusdu;","⩲":"&pluse;","⨦":"&plussim;","⨧":"&plustwo;","⨕":"&pointint;",𝕡:"&popf;","£":"&pound;","⪳":"&prE;","⪷":"&precapprox;","⪹":"&prnap;","⪵":"&prnE;","⋨":"&prnsim;","′":"&prime;","⌮":"&profalar;","⌒":"&profline;","⌓":"&profsurf;","⊰":"&prurel;",𝓅:"&pscr;",ψ:"&psi;"," ":"&puncsp;",𝔮:"&qfr;",𝕢:"&qopf;","⁗":"&qprime;",𝓆:"&qscr;","⨖":"&quatint;","?":"&quest;","⤜":"&rAtail;","⥤":"&rHar;","∽̱":"&race;",ŕ:"&racute;","⦳":"&raemptyv;","⦒":"&rangd;","⦥":"&range;","»":"&raquo;","⥵":"&rarrap;","⤠":"&rarrbfs;","⤳":"&rarrc;","⤞":"&rarrfs;","⥅":"&rarrpl;","⥴":"&rarrsim;","↣":"&rightarrowtail;","↝":"&rightsquigarrow;","⤚":"&ratail;","∶":"&ratio;","❳":"&rbbrk;","}":"&rcub;","]":"&rsqb;","⦌":"&rbrke;","⦎":"&rbrksld;","⦐":"&rbrkslu;",ř:"&rcaron;",ŗ:"&rcedil;",р:"&rcy;","⤷":"&rdca;","⥩":"&rdldhar;","↳":"&rdsh;","▭":"&rect;","⥽":"&rfisht;",𝔯:"&rfr;","⥬":"&rharul;",ρ:"&rho;",ϱ:"&varrho;","⇉":"&rrarr;","⋌":"&rthree;","˚":"&ring;","‏":"&rlm;","⎱":"&rmoustache;","⫮":"&rnmid;","⟭":"&roang;","⇾":"&roarr;","⦆":"&ropar;",𝕣:"&ropf;","⨮":"&roplus;","⨵":"&rotimes;",")":"&rpar;","⦔":"&rpargt;","⨒":"&rppolint;","›":"&rsaquo;",𝓇:"&rscr;","⋊":"&rtimes;","▹":"&triangleright;","⧎":"&rtriltri;","⥨":"&ruluhar;","℞":"&rx;",ś:"&sacute;","⪴":"&scE;","⪸":"&succapprox;",š:"&scaron;",ş:"&scedil;",ŝ:"&scirc;","⪶":"&succneqq;","⪺":"&succnapprox;","⋩":"&succnsim;","⨓":"&scpolint;",с:"&scy;","⋅":"&sdot;","⩦":"&sdote;","⇘":"&seArr;","§":"&sect;",";":"&semi;","⤩":"&tosa;","✶":"&sext;",𝔰:"&sfr;","♯":"&sharp;",щ:"&shchcy;",ш:"&shcy;","­":"&shy;",σ:"&sigma;",ς:"&varsigma;","⩪":"&simdot;","⪞":"&simg;","⪠":"&simgE;","⪝":"&siml;","⪟":"&simlE;","≆":"&simne;","⨤":"&simplus;","⥲":"&simrarr;","⨳":"&smashp;","⧤":"&smeparsl;","⌣":"&ssmile;","⪪":"&smt;","⪬":"&smte;","⪬︀":"&smtes;",ь:"&softcy;","/":"&sol;","⧄":"&solb;","⌿":"&solbar;",𝕤:"&sopf;","♠":"&spadesuit;","⊓︀":"&sqcaps;","⊔︀":"&sqcups;",𝓈:"&sscr;","☆":"&star;","⊂":"&subset;","⫅":"&subseteqq;","⪽":"&subdot;","⫃":"&subedot;","⫁":"&submult;","⫋":"&subsetneqq;","⊊":"&subsetneq;","⪿":"&subplus;","⥹":"&subrarr;","⫇":"&subsim;","⫕":"&subsub;","⫓":"&subsup;","♪":"&sung;","¹":"&sup1;","²":"&sup2;","³":"&sup3;","⫆":"&supseteqq;","⪾":"&supdot;","⫘":"&supdsub;","⫄":"&supedot;","⟉":"&suphsol;","⫗":"&suphsub;","⥻":"&suplarr;","⫂":"&supmult;","⫌":"&supsetneqq;","⊋":"&supsetneq;","⫀":"&supplus;","⫈":"&supsim;","⫔":"&supsub;","⫖":"&supsup;","⇙":"&swArr;","⤪":"&swnwar;",ß:"&szlig;","⌖":"&target;",τ:"&tau;",ť:"&tcaron;",ţ:"&tcedil;",т:"&tcy;","⌕":"&telrec;",𝔱:"&tfr;",θ:"&theta;",ϑ:"&vartheta;",þ:"&thorn;","×":"&times;","⨱":"&timesbar;","⨰":"&timesd;","⌶":"&topbot;","⫱":"&topcir;",𝕥:"&topf;","⫚":"&topfork;","‴":"&tprime;","▵":"&utri;","≜":"&trie;","◬":"&tridot;","⨺":"&triminus;","⨹":"&triplus;","⧍":"&trisb;","⨻":"&tritime;","⏢":"&trpezium;",𝓉:"&tscr;",ц:"&tscy;",ћ:"&tshcy;",ŧ:"&tstrok;","⥣":"&uHar;",ú:"&uacute;",ў:"&ubrcy;",ŭ:"&ubreve;",û:"&ucirc;",у:"&ucy;",ű:"&udblac;","⥾":"&ufisht;",𝔲:"&ufr;",ù:"&ugrave;","▀":"&uhblk;","⌜":"&ulcorner;","⌏":"&ulcrop;","◸":"&ultri;",ū:"&umacr;",ų:"&uogon;",𝕦:"&uopf;",υ:"&upsilon;","⇈":"&uuarr;","⌝":"&urcorner;","⌎":"&urcrop;",ů:"&uring;","◹":"&urtri;",𝓊:"&uscr;","⋰":"&utdot;",ũ:"&utilde;",ü:"&uuml;","⦧":"&uwangle;","⫨":"&vBar;","⫩":"&vBarv;","⦜":"&vangrt;","⊊︀":"&vsubne;","⫋︀":"&vsubnE;","⊋︀":"&vsupne;","⫌︀":"&vsupnE;",в:"&vcy;","⊻":"&veebar;","≚":"&veeeq;","⋮":"&vellip;",𝔳:"&vfr;",𝕧:"&vopf;",𝓋:"&vscr;","⦚":"&vzigzag;",ŵ:"&wcirc;","⩟":"&wedbar;","≙":"&wedgeq;",℘:"&wp;",𝔴:"&wfr;",𝕨:"&wopf;",𝓌:"&wscr;",𝔵:"&xfr;",ξ:"&xi;","⋻":"&xnis;",𝕩:"&xopf;",𝓍:"&xscr;",ý:"&yacute;",я:"&yacy;",ŷ:"&ycirc;",ы:"&ycy;","¥":"&yen;",𝔶:"&yfr;",ї:"&yicy;",𝕪:"&yopf;",𝓎:"&yscr;",ю:"&yucy;",ÿ:"&yuml;",ź:"&zacute;",ž:"&zcaron;",з:"&zcy;",ż:"&zdot;",ζ:"&zeta;",𝔷:"&zfr;",ж:"&zhcy;","⇝":"&zigrarr;",𝕫:"&zopf;",𝓏:"&zscr;","‍":"&zwj;","‌":"&zwnj;"}}}},7588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numericUnicodeMap={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},8744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCodePoint=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)},t.getCodePoint=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536},t.highSurrogateFrom=55296,t.highSurrogateTo=56319},726:(e,t,n)=>{var r=n(2095),o=n(6374),a=n(2520),i=n(2868);o="function"==typeof o.default?o.default:o;var s={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:i(o(e,(t=t||{}).htmlparser2||s),t)}l.domToReact=i,l.htmlToDOM=o,l.attributesToProps=a,l.Comment=r.Comment,l.Element=r.Element,l.ProcessingInstruction=r.ProcessingInstruction,l.Text=r.Text,e.exports=l,l.default=l},2520:(e,t,n)=>{var r=n(7159),o=n(9774),a=["checked","value"],i=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,c,u,d,p,f={},h=(e=e||{}).type&&s[e.type];for(n in e)if(u=e[n],r.isCustomAttribute(n))f[n]=u;else if(d=l(c=n.toLowerCase()))switch(p=r.getPropertyInfo(d),-1===a.indexOf(d)||-1===i.indexOf(t)||h||(d=l("default"+c)),f[d]=u,p&&p.type){case r.BOOLEAN:f[d]=!0;break;case r.OVERLOADED_BOOLEAN:""===u&&(f[d]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(f[n]=u);return o.setStyleProp(e.style,f),f}},2868:(e,t,n)=>{var r=n(1609),o=n(2520),a=n(9774),i=a.setStyleProp,s=a.canTextBeChildOfNode;function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&a.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var a,c,u,d,p,f=(n=n||{}).library||r,h=f.cloneElement,m=f.createElement,g=f.isValidElement,y=[],v="function"==typeof n.replace,b=n.trim,w=0,E=t.length;w<E;w++)if(a=t[w],v&&g(u=n.replace(a)))E>1&&(u=h(u,{key:u.key||w})),y.push(u);else if("text"!==a.type){switch(d=a.attribs,l(a)?i(d.style,d):d&&(d=o(d,a.name)),p=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(p=e(a.children,n));break;default:continue}E>1&&(d.key=w),y.push(m(a.name,d,p))}else{if((c=!a.data.trim().length)&&a.parent&&!s(a.parent))continue;if(b&&c)continue;y.push(a.data)}return 1===y.length?y[0]:y}},9774:(e,t,n)=>{var r=n(1609),o=n(7545).default,a={reactCompat:!0},i=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:i,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,a={},i={};for(n in e)r=e[n],o&&(a=t(n,r))&&2===a.length?i[a[0]]=a[1]:"string"==typeof r&&(i[r]=n);return i},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,a)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},3622:(e,t,n)=>{window,e.exports=function(e,t){return o={},n.m=r=[function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=function(e,t,n){var r,a=e.textContent;return""===a.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:a,inlines:Array(a.length).fill(t),entities:Array(a.length).fill(n),blocks:[]}}},i=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},l=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},c=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},u=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},d=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),p={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function f(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var h=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return b}));var m=" ",g=new RegExp("&nbsp;","g"),y=!0;function v(e,t,n,o,m,g){var b=e.nodeName.toLowerCase();if(g){var w=g(b,e);if(w){var E=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:c(E)}}}if("#text"===b&&"\n"!==e.textContent)return a(e,t,m);if("br"===b)return{chunk:i()};if("img"===b&&e instanceof HTMLImageElement){var x={};x.src=e.getAttribute&&e.getAttribute("src")||e.src,x.alt=e.alt,x.height=e.style.height,x.width=e.style.width,e.style.float&&(x.alignment=e.style.float);var C=r.Entity.__create("IMAGE","MUTABLE",x);return{chunk:c(C)}}if("video"===b&&e instanceof HTMLVideoElement){var _={};_.src=e.getAttribute&&e.getAttribute("src")||e.src,_.alt=e.alt,_.height=e.style.height,_.width=e.style.width,e.style.float&&(_.alignment=e.style.float);var S=r.Entity.__create("VIDEO","MUTABLE",_);return{chunk:c(S)}}if("iframe"===b&&e instanceof HTMLIFrameElement){var O={};O.src=e.getAttribute&&e.getAttribute("src")||e.src,O.height=e.height,O.width=e.width;var k=r.Entity.__create("EMBEDDED_LINK","MUTABLE",O);return{chunk:c(k)}}var N,M=function(e,t){var n=d.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,o);M&&("ul"===b||"ol"===b?(o=b,n+=1):("unordered-list-item"!==M&&"ordered-list-item"!==M&&(o="",n=-1),y?(N=s(M,f(e)),y=!1):N=l(M,n,f(e)))),N=N||{text:"",inlines:[],entities:[],blocks:[]},t=function(e,t,n){var r,o=p[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var a=t;r=(r=n).withMutations((function(e){var t=a.style.color,n=a.style.backgroundColor,r=a.style.fontSize,o=a.style.fontFamily.replace(/^"|"$/g,""),i=a.style.fontWeight,s=a.style.textDecoration,l=a.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===i&&e.add(p.strong),"underline"===s&&e.add(p.ins),"italic"===l&&e.add(p.em)})).toOrderedSet()}return r}(b,e,t);for(var A=e.firstChild;A;){var D=v(A,t,n,o,h(A)||m,g).chunk;N=u(N,D),A=A.nextSibling}return{chunk:N}}function b(e,t){var n,a,i=(n=t,(a=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(g,m)))?(y=!0,{chunk:v(a,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(i){var s=i.chunk,l=new o.OrderedMap({});s.entities&&s.entities.forEach((function(e){e&&(l=l.set(e,r.Entity.__get(e)))}));var c=0;return{contentBlocks:s.text.split("\r").map((function(e,t){var n=c+e.length,a=s&&s.inlines.slice(c,n),i=s&&s.entities.slice(c,n),l=new o.List(a.map((function(e,t){var n={style:e,entity:null};return i[t]&&(n.entity=i[t]),r.CharacterMetadata.create(n)})));return c=n,new r.ContentBlock({key:Object(r.genKey)(),type:s&&s.blocks[t]&&s.blocks[t].type||"unstyled",depth:s&&s.blocks[t]&&s.blocks[t].depth,data:s&&s.blocks[t]&&s.blocks[t].data||new o.Map({}),text:e,characterList:l})})),entityMap:l}}return null}}],n.c=o,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2);function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var r,o}(n(1814),n(1330))},3112:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return i(e)?e:H(e)}function r(e){return s(e)?e:V(e)}function o(e){return l(e)?e:K(e)}function a(e){return i(e)&&!c(e)?e:G(e)}function i(e){return!(!e||!e[d])}function s(e){return!(!e||!e[p])}function l(e){return!(!e||!e[f])}function c(e){return s(e)||l(e)}function u(e){return!(!e||!e[h])}t(r,n),t(o,n),t(a,n),n.isIterable=i,n.isKeyed=s,n.isIndexed=l,n.isAssociative=c,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=a;var d="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",m="delete",g=32,y=31,v={},b={value:!1},w={value:!1};function E(e){return e.value=!1,e}function x(e){e&&(e.value=!0)}function C(){}function _(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function S(e){return void 0===e.size&&(e.size=e.__iterate(k)),e.size}function O(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?S(e)+t:t}function k(){return!0}function N(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function M(e,t){return D(e,t,0)}function A(e,t){return D(e,t,t)}function D(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var I="function"==typeof Symbol&&Symbol.iterator,j="@@iterator",T=I||j;function L(e){this.next=e}function P(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function R(){return{value:void 0,done:!0}}function F(e){return!!q(e)}function B(e){return e&&"function"==typeof e.next}function z(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(I&&e[I]||e[j]);if("function"==typeof t)return t}function U(e){return e&&"number"==typeof e.length}function H(e){return null==e?ne():i(e)?e.toSeq():function(e){var t=ae(e)||"object"==typeof e&&new J(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function V(e){return null==e?ne().toKeyedSeq():i(e)?s(e)?e.toSeq():e.fromEntrySeq():re(e)}function K(e){return null==e?ne():i(e)?s(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function G(e){return(null==e?ne():i(e)?s(e)?e.entrySeq():e:oe(e)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=0,L.VALUES=1,L.ENTRIES=2,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[T]=function(){return this},t(H,n),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(e,t){return ie(this,e,t,!0)},H.prototype.__iterator=function(e,t){return se(this,e,t,!0)},t(V,H),V.prototype.toKeyedSeq=function(){return this},t(K,H),K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(e,t){return ie(this,e,t,!1)},K.prototype.__iterator=function(e,t){return se(this,e,t,!1)},t(G,H),G.of=function(){return G(arguments)},G.prototype.toSetSeq=function(){return this},H.isSeq=te,H.Keyed=V,H.Set=G,H.Indexed=K;var W,Y,Q,$="@@__IMMUTABLE_SEQ__@@";function Z(e){this._array=e,this.size=e.length}function J(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function X(e){this._iterable=e,this.size=e.length||e.size}function ee(e){this._iterator=e,this._iteratorCache=[]}function te(e){return!(!e||!e[$])}function ne(){return W||(W=new Z([]))}function re(e){var t=Array.isArray(e)?new Z(e).fromEntrySeq():B(e)?new ee(e).fromEntrySeq():F(e)?new X(e).fromEntrySeq():"object"==typeof e?new J(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=ae(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ae(e){return U(e)?new Z(e):B(e)?new ee(e):F(e)?new X(e):void 0}function ie(e,t,n,r){var o=e._cache;if(o){for(var a=o.length-1,i=0;i<=a;i++){var s=o[n?a-i:i];if(!1===t(s[1],r?s[0]:i,e))return i+1}return i}return e.__iterateUncached(t,n)}function se(e,t,n,r){var o=e._cache;if(o){var a=o.length-1,i=0;return new L((function(){var e=o[n?a-i:i];return i++>a?{value:void 0,done:!0}:P(t,r?e[0]:i-1,e[1])}))}return e.__iteratorUncached(t,n)}function le(e,t){return t?ce(t,e,"",{"":e}):ue(e)}function ce(e,t,n,r){return Array.isArray(t)?e.call(r,n,K(t).map((function(n,r){return ce(e,n,r,t)}))):de(t)?e.call(r,n,V(t).map((function(n,r){return ce(e,n,r,t)}))):t}function ue(e){return Array.isArray(e)?K(e).map(ue).toList():de(e)?V(e).map(ue).toMap():e}function de(e){return e&&(e.constructor===Object||void 0===e.constructor)}function pe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function fe(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&pe(o[1],e)&&(n||pe(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var d=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!pe(t,e.get(r,v)):!pe(e.get(r,v),t))return d=!1,!1}));return d&&e.size===p}function he(e,t){if(!(this instanceof he))return new he(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Y)return Y;Y=this}}function me(e,t){if(!e)throw new Error(t)}function ge(e,t,n){if(!(this instanceof ge))return new ge(e,t,n);if(me(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function ye(){throw TypeError("Abstract")}function ve(){}function be(){}function we(){}H.prototype[$]=!0,t(Z,K),Z.prototype.get=function(e,t){return this.has(e)?this._array[O(this,e)]:t},Z.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},Z.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new L((function(){return o>r?{value:void 0,done:!0}:P(e,o,n[t?r-o++:o++])}))},t(J,V),J.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},J.prototype.has=function(e){return this._object.hasOwnProperty(e)},J.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,a=0;a<=o;a++){var i=r[t?o-a:a];if(!1===e(n[i],i,this))return a+1}return a},J.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,a=0;return new L((function(){var i=r[t?o-a:a];return a++>o?{value:void 0,done:!0}:P(e,i,n[i])}))},J.prototype[h]=!0,t(X,K),X.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=z(this._iterable),r=0;if(B(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},X.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=z(this._iterable);if(!B(n))return new L(R);var r=0;return new L((function(){var t=n.next();return t.done?t:P(e,r++,t.value)}))},t(ee,K),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,a=0;a<o.length;)if(!1===e(o[a],a++,this))return a;for(;!(n=r.next()).done;){var i=n.value;if(o[a]=i,!1===e(i,a++,this))break}return a},ee.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new L((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return P(e,o,r[o++])}))},t(he,K),he.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},he.prototype.get=function(e,t){return this.has(e)?this._value:t},he.prototype.includes=function(e){return pe(this._value,e)},he.prototype.slice=function(e,t){var n=this.size;return N(e,t,n)?this:new he(this._value,A(t,n)-M(e,n))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return pe(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return pe(this._value,e)?this.size:-1},he.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},he.prototype.__iterator=function(e,t){var n=this,r=0;return new L((function(){return r<n.size?P(e,r++,n._value):{value:void 0,done:!0}}))},he.prototype.equals=function(e){return e instanceof he?pe(this._value,e._value):fe(e)},t(ge,K),ge.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},ge.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t},ge.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ge.prototype.slice=function(e,t){return N(e,t,this.size)?this:(e=M(e,this.size),(t=A(t,this.size))<=e?new ge(0,0):new ge(this.get(e,this._end),this.get(t,this._end),this._step))},ge.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},ge.prototype.lastIndexOf=function(e){return this.indexOf(e)},ge.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,a=0;a<=n;a++){if(!1===e(o,a,this))return a+1;o+=t?-r:r}return a},ge.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,a=0;return new L((function(){var i=o;return o+=t?-r:r,a>n?{value:void 0,done:!0}:P(e,a++,i)}))},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:fe(this,e)},t(ye,n),t(ve,ye),t(be,ye),t(we,ye),ye.Keyed=ve,ye.Indexed=be,ye.Set=we;var Ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function Ce(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return xe(n)}if("string"===t)return e.length>De?function(e){var t=Te[e];return void 0===t&&(t=_e(e),je===Ie&&(je=0,Te={}),je++,Te[e]=t),t}(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ne&&void 0!==(t=ke.get(e)))return t;if(void 0!==(t=e[Ae]))return t;if(!Oe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ae]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Me,1073741824&Me&&(Me=0),Ne)ke.set(e,t);else{if(void 0!==Se&&!1===Se(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Oe)Object.defineProperty(e,Ae,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ae]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ae]=t}}return t}(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function _e(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return xe(t)}var Se=Object.isExtensible,Oe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var ke,Ne="function"==typeof WeakMap;Ne&&(ke=new WeakMap);var Me=0,Ae="__immutablehash__";"function"==typeof Symbol&&(Ae=Symbol(Ae));var De=16,Ie=255,je=0,Te={};function Le(e){me(e!==1/0,"Cannot perform this action with an infinite size.")}function Pe(e){return null==e?$e():Re(e)&&!u(e)?e:$e().withMutations((function(t){var n=r(e);Le(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Re(e){return!(!e||!e[Be])}t(Pe,ve),Pe.prototype.toString=function(){return this.__toString("Map {","}")},Pe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Pe.prototype.set=function(e,t){return Ze(this,e,t)},Pe.prototype.setIn=function(e,t){return this.updateIn(e,v,(function(){return t}))},Pe.prototype.remove=function(e){return Ze(this,e,v)},Pe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return v}))},Pe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Pe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=at(this,tn(e),t,n);return r===v?void 0:r},Pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):$e()},Pe.prototype.merge=function(){return tt(this,void 0,arguments)},Pe.prototype.mergeWith=function(t){return tt(this,t,e.call(arguments,1))},Pe.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,$e(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Pe.prototype.mergeDeep=function(){return tt(this,nt,arguments)},Pe.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return tt(this,rt(t),n)},Pe.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,$e(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Pe.prototype.sort=function(e){return Nt(Vt(this,e))},Pe.prototype.sortBy=function(e,t){return Nt(Vt(this,t,e))},Pe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Pe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new C)},Pe.prototype.asImmutable=function(){return this.__ensureOwner()},Pe.prototype.wasAltered=function(){return this.__altered},Pe.prototype.__iterator=function(e,t){return new Ge(this,e,t)},Pe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Pe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Qe(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Pe.isMap=Re;var Fe,Be="@@__IMMUTABLE_MAP__@@",ze=Pe.prototype;function qe(e,t){this.ownerID=e,this.entries=t}function Ue(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function He(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ke(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Ge(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ye(e._root)}function We(e,t){return P(e,t[0],t[1])}function Ye(e,t){return{node:e,index:0,__prev:t}}function Qe(e,t,n,r){var o=Object.create(ze);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function $e(){return Fe||(Fe=Qe(0))}function Ze(e,t,n){var r,o;if(e._root){var a=E(b),i=E(w);if(r=Je(e._root,e.__ownerID,0,void 0,t,n,a,i),!i.value)return e;o=e.size+(a.value?n===v?-1:1:0)}else{if(n===v)return e;o=1,r=new qe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Qe(o,r):$e()}function Je(e,t,n,r,o,a,i,s){return e?e.update(t,n,r,o,a,i,s):a===v?e:(x(s),x(i),new Ke(t,r,[o,a]))}function Xe(e){return e.constructor===Ke||e.constructor===Ve}function et(e,t,n,r,o){if(e.keyHash===r)return new Ve(t,r,[e.entry,o]);var a,i=(0===n?e.keyHash:e.keyHash>>>n)&y,s=(0===n?r:r>>>n)&y;return new Ue(t,1<<i|1<<s,i===s?[et(e,t,n+5,r,o)]:(a=new Ke(t,r,o),i<s?[e,a]:[a,e]))}function tt(e,t,n){for(var o=[],a=0;a<n.length;a++){var s=n[a],l=r(s);i(s)||(l=l.map((function(e){return le(e)}))),o.push(l)}return ot(e,t,o)}function nt(e,t,n){return e&&e.mergeDeep&&i(t)?e.mergeDeep(t):pe(e,t)?e:t}function rt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&i(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return pe(t,o)?t:o}}function ot(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,v,(function(e){return e===v?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function at(e,t,n,r){var o=e===v,a=t.next();if(a.done){var i=o?n:e,s=r(i);return s===i?e:s}me(o||e&&e.set,"invalid keyPath");var l=a.value,c=o?v:e.get(l,v),u=at(c,t,n,r);return u===c?e:u===v?e.remove(l):(o?$e():e).set(l,u)}function it(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function st(e,t,n,r){var o=r?e:_(e);return o[t]=n,o}ze[Be]=!0,ze[m]=ze.remove,ze.removeIn=ze.deleteIn,qe.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a<i;a++)if(pe(n,o[a][0]))return o[a][1];return r},qe.prototype.update=function(e,t,n,r,o,a,i){for(var s=o===v,l=this.entries,c=0,u=l.length;c<u&&!pe(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===o:s)return this;if(x(i),(s||!d)&&x(a),!s||1!==l.length){if(!d&&!s&&l.length>=lt)return function(e,t,n,r){e||(e=new C);for(var o=new Ke(e,Ce(n),[n,r]),a=0;a<t.length;a++){var i=t[a];o=o.update(e,0,void 0,i[0],i[1])}return o}(e,l,r,o);var p=e&&e===this.ownerID,f=p?l:_(l);return d?s?c===u-1?f.pop():f[c]=f.pop():f[c]=[r,o]:f.push([r,o]),p?(this.entries=f,this):new qe(e,f)}},Ue.prototype.get=function(e,t,n,r){void 0===t&&(t=Ce(n));var o=1<<((0===e?t:t>>>e)&y),a=this.bitmap;return a&o?this.nodes[it(a&o-1)].get(e+5,t,n,r):r},Ue.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=Ce(r));var s=(0===t?n:n>>>t)&y,l=1<<s,c=this.bitmap,u=!!(c&l);if(!u&&o===v)return this;var d=it(c&l-1),p=this.nodes,f=u?p[d]:void 0,h=Je(f,e,t+5,n,r,o,a,i);if(h===f)return this;if(!u&&h&&p.length>=ct)return function(e,t,n,r,o){for(var a=0,i=new Array(g),s=0;0!==n;s++,n>>>=1)i[s]=1&n?t[a++]:void 0;return i[r]=o,new He(e,a+1,i)}(e,p,c,s,h);if(u&&!h&&2===p.length&&Xe(p[1^d]))return p[1^d];if(u&&h&&1===p.length&&Xe(h))return h;var m=e&&e===this.ownerID,b=u?h?c:c^l:c|l,w=u?h?st(p,d,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i<r;i++)i===t&&(a=1),o[i]=e[i+a];return o}(p,d,m):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var a=new Array(o),i=0,s=0;s<o;s++)s===t?(a[s]=n,i=-1):a[s]=e[s+i];return a}(p,d,h,m);return m?(this.bitmap=b,this.nodes=w,this):new Ue(e,b,w)},He.prototype.get=function(e,t,n,r){void 0===t&&(t=Ce(n));var o=(0===e?t:t>>>e)&y,a=this.nodes[o];return a?a.get(e+5,t,n,r):r},He.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=Ce(r));var s=(0===t?n:n>>>t)&y,l=o===v,c=this.nodes,u=c[s];if(l&&!u)return this;var d=Je(u,e,t+5,n,r,o,a,i);if(d===u)return this;var p=this.count;if(u){if(!d&&--p<ut)return function(e,t,n,r){for(var o=0,a=0,i=new Array(n),s=0,l=1,c=t.length;s<c;s++,l<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=l,i[a++]=u)}return new Ue(e,o,i)}(e,c,p,s)}else p++;var f=e&&e===this.ownerID,h=st(c,s,d,f);return f?(this.count=p,this.nodes=h,this):new He(e,p,h)},Ve.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a<i;a++)if(pe(n,o[a][0]))return o[a][1];return r},Ve.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=Ce(r));var s=o===v;if(n!==this.keyHash)return s?this:(x(i),x(a),et(this,e,t,n,[r,o]));for(var l=this.entries,c=0,u=l.length;c<u&&!pe(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===o:s)return this;if(x(i),(s||!d)&&x(a),s&&2===u)return new Ke(e,this.keyHash,l[1^c]);var p=e&&e===this.ownerID,f=p?l:_(l);return d?s?c===u-1?f.pop():f[c]=f.pop():f[c]=[r,o]:f.push([r,o]),p?(this.entries=f,this):new Ve(e,this.keyHash,f)},Ke.prototype.get=function(e,t,n,r){return pe(n,this.entry[0])?this.entry[1]:r},Ke.prototype.update=function(e,t,n,r,o,a,i){var s=o===v,l=pe(r,this.entry[0]);return(l?o===this.entry[1]:s)?this:(x(i),s?void x(a):l?e&&e===this.ownerID?(this.entry[1]=o,this):new Ke(e,this.keyHash,[r,o]):(x(a),et(this,e,t,Ce(r),[r,o])))},qe.prototype.iterate=Ve.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ue.prototype.iterate=He.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var a=n[t?o-r:r];if(a&&!1===a.iterate(e,t))return!1}},Ke.prototype.iterate=function(e,t){return e(this.entry)},t(Ge,L),Ge.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return We(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return We(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var a=r.nodes[this._reverse?n-o:o];if(a){if(a.entry)return We(e,a.entry);t=this._stack=Ye(a,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var lt=8,ct=16,ut=8;function dt(e){var t=Et();if(null==e)return t;if(pt(e))return e;var n=o(e),r=n.size;return 0===r?t:(Le(r),r>0&&r<g?wt(0,r,5,null,new mt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function pt(e){return!(!e||!e[ft])}t(dt,be),dt.of=function(){return this(arguments)},dt.prototype.toString=function(){return this.__toString("List [","]")},dt.prototype.get=function(e,t){if((e=O(this,e))>=0&&e<this.size){var n=_t(this,e+=this._origin);return n&&n.array[e&y]}return t},dt.prototype.set=function(e,t){return function(e,t,n){if((t=O(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?St(e,t).set(0,n):St(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,a=E(w);return t>=kt(e._capacity)?r=xt(r,e.__ownerID,0,t,n,a):o=xt(o,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):wt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Et()},dt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){St(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},dt.prototype.pop=function(){return St(this,0,-1)},dt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){St(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},dt.prototype.shift=function(){return St(this,1)},dt.prototype.merge=function(){return Ot(this,void 0,arguments)},dt.prototype.mergeWith=function(t){return Ot(this,t,e.call(arguments,1))},dt.prototype.mergeDeep=function(){return Ot(this,nt,arguments)},dt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ot(this,rt(t),n)},dt.prototype.setSize=function(e){return St(this,0,e)},dt.prototype.slice=function(e,t){var n=this.size;return N(e,t,n)?this:St(this,M(e,n),A(t,n))},dt.prototype.__iterator=function(e,t){var n=0,r=bt(this,t);return new L((function(){var t=r();return t===vt?{value:void 0,done:!0}:P(e,n++,t)}))},dt.prototype.__iterate=function(e,t){for(var n,r=0,o=bt(this,t);(n=o())!==vt&&!1!==e(n,r++,this););return r},dt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?wt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},dt.isList=pt;var ft="@@__IMMUTABLE_LIST__@@",ht=dt.prototype;function mt(e,t){this.array=e,this.ownerID=t}ht[ft]=!0,ht[m]=ht.remove,ht.setIn=ze.setIn,ht.deleteIn=ht.removeIn=ze.removeIn,ht.update=ze.update,ht.updateIn=ze.updateIn,ht.mergeIn=ze.mergeIn,ht.mergeDeepIn=ze.mergeDeepIn,ht.withMutations=ze.withMutations,ht.asMutable=ze.asMutable,ht.asImmutable=ze.asImmutable,ht.wasAltered=ze.wasAltered,mt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&y;if(r>=this.array.length)return new mt([],e);var o,a=0===r;if(t>0){var i=this.array[r];if((o=i&&i.removeBefore(e,t-5,n))===i&&a)return this}if(a&&!o)return this;var s=Ct(this,e);if(!a)for(var l=0;l<r;l++)s.array[l]=void 0;return o&&(s.array[r]=o),s},mt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&y;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-5,n))===a&&o===this.array.length-1)return this}var i=Ct(this,e);return i.array.splice(o+1),r&&(i.array[o]=r),i};var gt,yt,vt={};function bt(e,t){var n=e._origin,r=e._capacity,o=kt(r),a=e._tail;return i(e._root,e._level,0);function i(e,s,l){return 0===s?function(e,i){var s=i===o?a&&a.array:e&&e.array,l=i>n?0:n-i,c=r-i;return c>g&&(c=g),function(){if(l===c)return vt;var e=t?--c:l++;return s&&s[e]}}(e,l):function(e,o,a){var s,l=e&&e.array,c=a>n?0:n-a>>o,u=1+(r-a>>o);return u>g&&(u=g),function(){for(;;){if(s){var e=s();if(e!==vt)return e;s=null}if(c===u)return vt;var n=t?--u:c++;s=i(l&&l[n],o-5,a+(n<<o))}}}(e,s,l)}}function wt(e,t,n,r,o,a,i){var s=Object.create(ht);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=a,s.__hash=i,s.__altered=!1,s}function Et(){return gt||(gt=wt(0,0,5))}function xt(e,t,n,r,o,a){var i,s=r>>>n&y,l=e&&s<e.array.length;if(!l&&void 0===o)return e;if(n>0){var c=e&&e.array[s],u=xt(c,t,n-5,r,o,a);return u===c?e:((i=Ct(e,t)).array[s]=u,i)}return l&&e.array[s]===o?e:(x(a),i=Ct(e,t),void 0===o&&s===i.array.length-1?i.array.pop():i.array[s]=o,i)}function Ct(e,t){return t&&e&&t===e.ownerID?e:new mt(e?e.array.slice():[],t)}function _t(e,t){if(t>=kt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&y],r-=5;return n}}function St(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new C,o=e._origin,a=e._capacity,i=o+t,s=void 0===n?a:n<0?a+n:o+n;if(i===o&&s===a)return e;if(i>=s)return e.clear();for(var l=e._level,c=e._root,u=0;i+u<0;)c=new mt(c&&c.array.length?[void 0,c]:[],r),u+=1<<(l+=5);u&&(i+=u,o+=u,s+=u,a+=u);for(var d=kt(a),p=kt(s);p>=1<<l+5;)c=new mt(c&&c.array.length?[c]:[],r),l+=5;var f=e._tail,h=p<d?_t(e,s-1):p>d?new mt([],r):f;if(f&&p>d&&i<a&&f.array.length){for(var m=c=Ct(c,r),g=l;g>5;g-=5){var v=d>>>g&y;m=m.array[v]=Ct(m.array[v],r)}m.array[d>>>5&y]=f}if(s<a&&(h=h&&h.removeAfter(r,0,s)),i>=p)i-=p,s-=p,l=5,c=null,h=h&&h.removeBefore(r,0,i);else if(i>o||p<d){for(u=0;c;){var b=i>>>l&y;if(b!==p>>>l&y)break;b&&(u+=(1<<l)*b),l-=5,c=c.array[b]}c&&i>o&&(c=c.removeBefore(r,l,i-u)),c&&p<d&&(c=c.removeAfter(r,l,p-u)),u&&(i-=u,s-=u)}return e.__ownerID?(e.size=s-i,e._origin=i,e._capacity=s,e._level=l,e._root=c,e._tail=h,e.__hash=void 0,e.__altered=!0,e):wt(i,s,l,c,h)}function Ot(e,t,n){for(var r=[],a=0,s=0;s<n.length;s++){var l=n[s],c=o(l);c.size>a&&(a=c.size),i(l)||(c=c.map((function(e){return le(e)}))),r.push(c)}return a>e.size&&(e=e.setSize(a)),ot(e,t,r)}function kt(e){return e<g?0:e-1>>>5<<5}function Nt(e){return null==e?Dt():Mt(e)?e:Dt().withMutations((function(t){var n=r(e);Le(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Mt(e){return Re(e)&&u(e)}function At(e,t,n,r){var o=Object.create(Nt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Dt(){return yt||(yt=At($e(),Et()))}function It(e,t,n){var r,o,a=e._map,i=e._list,s=a.get(t),l=void 0!==s;if(n===v){if(!l)return e;i.size>=g&&i.size>=2*a.size?(r=(o=i.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=a.remove(t),o=s===i.size-1?i.pop():i.set(s,void 0))}else if(l){if(n===i.get(s)[1])return e;r=a,o=i.set(s,[t,n])}else r=a.set(t,i.size),o=i.set(i.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):At(r,o)}function jt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Tt(e){this._iter=e,this.size=e.size}function Lt(e){this._iter=e,this.size=e.size}function Pt(e){this._iter=e,this.size=e.size}function Rt(e){var t=Jt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Xt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new L((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Ft(e,t,n){var r=Jt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,v);return a===v?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate((function(e,o,i){return!1!==r(t.call(n,e,o,i),o,a)}),o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(2,o);return new L((function(){var o=a.next();if(o.done)return o;var i=o.value,s=i[0];return P(r,s,t.call(n,i[1],s,e),o)}))},r}function Bt(e,t){var n=Jt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Rt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Xt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function zt(e,t,n,r){var o=Jt(e);return r&&(o.has=function(r){var o=e.get(r,v);return o!==v&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,v);return a!==v&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,o(e,r?a:s-1,i)}),a),s},o.__iteratorUncached=function(o,a){var i=e.__iterator(2,a),s=0;return new L((function(){for(;;){var a=i.next();if(a.done)return a;var l=a.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return P(o,r?c:s++,u,a)}}))},o}function qt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),N(t,n,o))return e;var a=M(t,o),i=A(n,o);if(a!=a||i!=i)return qt(e.toSeq().cacheResult(),t,n,r);var s,l=i-a;l==l&&(s=l<0?0:l);var c=Jt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&te(e)&&s>=0&&(c.get=function(t,n){return(t=O(this,t))>=0&&t<s?e.get(t+a,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var i=0,l=!0,c=0;return e.__iterate((function(e,n){if(!l||!(l=i++<a))return c++,!1!==t(e,r?n:c-1,o)&&c!==s})),c},c.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),i=0,l=0;return new L((function(){for(;i++<a;)o.next();if(++l>s)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:P(t,l-1,0===t?void 0:e.value[1],e)}))},c}function Ut(e,t,n,r){var o=Jt(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var s=!0,l=0;return e.__iterate((function(e,a,c){if(!s||!(s=t.call(n,e,a,c)))return l++,o(e,r?a:l-1,i)})),l},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var s=e.__iterator(2,a),l=!0,c=0;return new L((function(){var e,a,u;do{if((e=s.next()).done)return r||1===o?e:P(o,c++,0===o?void 0:e.value[1],e);var d=e.value;a=d[0],u=d[1],l&&(l=t.call(n,u,a,i))}while(l);return 2===o?e:P(o,a,u,e)}))},o}function Ht(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(l,c){var u=this;l.__iterate((function(o,l){return(!t||c<t)&&i(o)?e(o,c+1):!1===r(o,n?l:a++,u)&&(s=!0),!s}),o)}(e,0),a},r.__iteratorUncached=function(r,o){var a=e.__iterator(r,o),s=[],l=0;return new L((function(){for(;a;){var e=a.next();if(!1===e.done){var c=e.value;if(2===r&&(c=c[1]),t&&!(s.length<t)||!i(c))return n?e:P(r,l++,c,e);s.push(a),a=c.__iterator(r,o)}else a=s.pop()}return{value:void 0,done:!0}}))},r}function Vt(e,t,n){t||(t=en);var r=s(e),o=0,a=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?V(a):l(e)?K(a):G(a)}function Kt(e,t,n){if(t||(t=en),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Gt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Gt(t,e,n)?n:e}))}function Gt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Wt(e,t,r){var o=Jt(e);return o.size=new Z(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var a=r.map((function(e){return e=n(e),z(o?e.reverse():e)})),i=0,s=!1;return new L((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:P(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Yt(e,t){return te(e)?t:e.constructor(t)}function Qt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function $t(e){return Le(e.size),S(e)}function Zt(e){return s(e)?r:l(e)?o:a}function Jt(e){return Object.create((s(e)?V:l(e)?K:G).prototype)}function Xt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function en(e,t){return e>t?1:e<t?-1:0}function tn(e){var t=z(e);if(!t){if(!U(e))throw new TypeError("Expected iterable or array-like: "+e);t=z(n(e))}return t}function nn(e,t){var n,r=function(a){if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var i=Object.keys(e);(function(e,t){try{t.forEach(sn.bind(void 0,e))}catch(e){}})(o,i),o.size=i.length,o._name=t,o._keys=i,o._defaultValues=e}this._map=Pe(a)},o=r.prototype=Object.create(rn);return o.constructor=r,r}t(Nt,Pe),Nt.of=function(){return this(arguments)},Nt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Nt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Nt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Dt()},Nt.prototype.set=function(e,t){return It(this,e,t)},Nt.prototype.remove=function(e){return It(this,e,v)},Nt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Nt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Nt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Nt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?At(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Nt.isOrderedMap=Mt,Nt.prototype[h]=!0,Nt.prototype[m]=Nt.prototype.remove,t(jt,V),jt.prototype.get=function(e,t){return this._iter.get(e,t)},jt.prototype.has=function(e){return this._iter.has(e)},jt.prototype.valueSeq=function(){return this._iter.valueSeq()},jt.prototype.reverse=function(){var e=this,t=Bt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},jt.prototype.map=function(e,t){var n=this,r=Ft(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},jt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?$t(this):0,function(o){return e(o,t?--n:n++,r)}),t)},jt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),r=t?$t(this):0;return new L((function(){var o=n.next();return o.done?o:P(e,t?--r:r++,o.value,o)}))},jt.prototype[h]=!0,t(Tt,K),Tt.prototype.includes=function(e){return this._iter.includes(e)},Tt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Tt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t),r=0;return new L((function(){var t=n.next();return t.done?t:P(e,r++,t.value,t)}))},t(Lt,G),Lt.prototype.has=function(e){return this._iter.includes(e)},Lt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Lt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new L((function(){var t=n.next();return t.done?t:P(e,t.value,t.value,t)}))},t(Pt,V),Pt.prototype.entrySeq=function(){return this._iter.toSeq()},Pt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Qt(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Pt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new L((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Qt(r);var o=i(r);return P(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Tt.prototype.cacheResult=jt.prototype.cacheResult=Lt.prototype.cacheResult=Pt.prototype.cacheResult=Xt,t(nn,ve),nn.prototype.toString=function(){return this.__toString(an(this)+" {","}")},nn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},nn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},nn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=on(this,$e()))},nn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+an(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:on(this,n)},nn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:on(this,t)},nn.prototype.wasAltered=function(){return this._map.wasAltered()},nn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},nn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},nn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?on(this,t,e):(this.__ownerID=e,this._map=t,this)};var rn=nn.prototype;function on(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function an(e){return e._name||e.constructor.name||"Record"}function sn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){me(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function ln(e){return null==e?mn():cn(e)&&!u(e)?e:mn().withMutations((function(t){var n=a(e);Le(n.size),n.forEach((function(e){return t.add(e)}))}))}function cn(e){return!(!e||!e[dn])}rn[m]=rn.remove,rn.deleteIn=rn.removeIn=ze.removeIn,rn.merge=ze.merge,rn.mergeWith=ze.mergeWith,rn.mergeIn=ze.mergeIn,rn.mergeDeep=ze.mergeDeep,rn.mergeDeepWith=ze.mergeDeepWith,rn.mergeDeepIn=ze.mergeDeepIn,rn.setIn=ze.setIn,rn.update=ze.update,rn.updateIn=ze.updateIn,rn.withMutations=ze.withMutations,rn.asMutable=ze.asMutable,rn.asImmutable=ze.asImmutable,t(ln,we),ln.of=function(){return this(arguments)},ln.fromKeys=function(e){return this(r(e).keySeq())},ln.prototype.toString=function(){return this.__toString("Set {","}")},ln.prototype.has=function(e){return this._map.has(e)},ln.prototype.add=function(e){return fn(this,this._map.set(e,!0))},ln.prototype.remove=function(e){return fn(this,this._map.remove(e))},ln.prototype.clear=function(){return fn(this,this._map.clear())},ln.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},ln.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},ln.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},ln.prototype.merge=function(){return this.union.apply(this,arguments)},ln.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},ln.prototype.sort=function(e){return gn(Vt(this,e))},ln.prototype.sortBy=function(e,t){return gn(Vt(this,t,e))},ln.prototype.wasAltered=function(){return this._map.wasAltered()},ln.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},ln.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},ln.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},ln.isSet=cn;var un,dn="@@__IMMUTABLE_SET__@@",pn=ln.prototype;function fn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function hn(e,t){var n=Object.create(pn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function mn(){return un||(un=hn($e()))}function gn(e){return null==e?En():yn(e)?e:En().withMutations((function(t){var n=a(e);Le(n.size),n.forEach((function(e){return t.add(e)}))}))}function yn(e){return cn(e)&&u(e)}pn[dn]=!0,pn[m]=pn.remove,pn.mergeDeep=pn.merge,pn.mergeDeepWith=pn.mergeWith,pn.withMutations=ze.withMutations,pn.asMutable=ze.asMutable,pn.asImmutable=ze.asImmutable,pn.__empty=mn,pn.__make=hn,t(gn,ln),gn.of=function(){return this(arguments)},gn.fromKeys=function(e){return this(r(e).keySeq())},gn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},gn.isOrderedSet=yn;var vn,bn=gn.prototype;function wn(e,t){var n=Object.create(bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function En(){return vn||(vn=wn(Dt()))}function xn(e){return null==e?Mn():Cn(e)?e:Mn().unshiftAll(e)}function Cn(e){return!(!e||!e[On])}bn[h]=!0,bn.__empty=En,bn.__make=wn,t(xn,be),xn.of=function(){return this(arguments)},xn.prototype.toString=function(){return this.__toString("Stack [","]")},xn.prototype.get=function(e,t){var n=this._head;for(e=O(this,e);n&&e--;)n=n.next;return n?n.value:t},xn.prototype.peek=function(){return this._head&&this._head.value},xn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Nn(e,t)},xn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Le(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Nn(t,n)},xn.prototype.pop=function(){return this.slice(1)},xn.prototype.unshift=function(){return this.push.apply(this,arguments)},xn.prototype.unshiftAll=function(e){return this.pushAll(e)},xn.prototype.shift=function(){return this.pop.apply(this,arguments)},xn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Mn()},xn.prototype.slice=function(e,t){if(N(e,t,this.size))return this;var n=M(e,this.size);if(A(t,this.size)!==this.size)return be.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Nn(r,o)},xn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Nn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new L((function(){if(r){var t=r.value;return r=r.next,P(e,n++,t)}return{value:void 0,done:!0}}))},xn.isStack=Cn;var Sn,On="@@__IMMUTABLE_STACK__@@",kn=xn.prototype;function Nn(e,t,n,r){var o=Object.create(kn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Mn(){return Sn||(Sn=Nn(0))}function An(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}kn[On]=!0,kn.withMutations=ze.withMutations,kn.asMutable=ze.asMutable,kn.asImmutable=ze.asImmutable,kn.wasAltered=ze.wasAltered,n.Iterator=L,An(n,{toArray:function(){Le(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Tt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new jt(this,!0)},toMap:function(){return Pe(this.toKeyedSeq())},toObject:function(){Le(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Nt(this.toKeyedSeq())},toOrderedSet:function(){return gn(s(this)?this.valueSeq():this)},toSet:function(){return ln(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Lt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xn(s(this)?this.valueSeq():this)},toList:function(){return dt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Yt(this,function(e,t){var n=s(e),o=[e].concat(t).map((function(e){return i(e)?n&&(e=r(e)):e=n?re(e):oe(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var a=o[0];if(a===e||n&&s(a)||l(e)&&l(a))return a}var c=new Z(o);return n?c=c.toKeyedSeq():l(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return pe(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Le(this.size);var n=!0;return this.__iterate((function(r,o,a){if(!e.call(t,r,o,a))return n=!1,!1})),n},filter:function(e,t){return Yt(this,zt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,a){if(e.call(t,r,o,a))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Le(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Le(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Yt(this,Ft(this,e,t))},reduce:function(e,t,n){var r,o;return Le(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,a,i){o?(o=!1,r=t):r=e.call(n,r,t,a,i)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Yt(this,Bt(this,!0))},slice:function(e,t){return Yt(this,qt(this,e,t,!0))},some:function(e,t){return!this.every(Ln(e),t)},sort:function(e){return Yt(this,Vt(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return S(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Pe().asMutable();return e.__iterate((function(o,a){r.update(t.call(n,o,a,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return fe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Z(e._cache);var t=e.toSeq().map(Tn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Ln(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(k)},flatMap:function(e,t){return Yt(this,function(e,t,n){var r=Zt(e);return e.toSeq().map((function(o,a){return r(t.call(n,o,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Yt(this,Ht(this,e,!0))},fromEntrySeq:function(){return new Pt(this)},get:function(e,t){return this.find((function(t,n){return pe(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=tn(e);!(n=o.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,v):v)===v)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(u(e)?Nt():Pe()).asMutable();e.__iterate((function(a,i){o.update(t.call(n,a,i,e),(function(e){return(e=e||[]).push(r?[i,a]:a),e}))}));var a=Zt(e);return o.map((function(t){return Yt(e,a(t))}))}(this,e,t)},has:function(e){return this.get(e,v)!==v},hasIn:function(e){return this.getIn(e,v)!==v},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(jn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Kt(this,e)},maxBy:function(e,t){return Kt(this,t,e)},min:function(e){return Kt(this,e?Pn(e):Bn)},minBy:function(e,t){return Kt(this,t?Pn(t):Bn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Yt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Yt(this,Ut(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Ln(e),t)},sortBy:function(e,t){return Yt(this,Vt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Yt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Yt(this,function(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++i&&r(e,o,a)})),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(2,o),s=!0;return new L((function(){if(!s)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var o=e.value,l=o[0],c=o[1];return t.call(n,c,l,a)?2===r?e:P(r,l,c,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Ln(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0;return function(e,t){return t=Ee(t,3432918353),t=Ee(t<<15|t>>>-15,461845907),t=Ee(t<<13|t>>>-13,5),t=Ee((t=t+3864292196^e)^t>>>16,2246822507),xe((t=Ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+zn(Ce(e),Ce(t))|0}:function(e,t){r=r+zn(Ce(e),Ce(t))|0}:t?function(e){r=31*r+Ce(e)|0}:function(e){r=r+Ce(e)|0}),r)}(this))}});var Dn=n.prototype;Dn[d]=!0,Dn[T]=Dn.values,Dn.__toJS=Dn.toArray,Dn.__toStringMapper=Rn,Dn.inspect=Dn.toSource=function(){return this.toString()},Dn.chain=Dn.flatMap,Dn.contains=Dn.includes,function(){try{Object.defineProperty(Dn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),An(r,{flip:function(){return Yt(this,Rt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return pe(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return pe(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Yt(this,this.toSeq().map((function(o,a){return e.call(t,[a,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Yt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var In=r.prototype;function jn(e,t){return t}function Tn(e,t){return[t,e]}function Ln(e){return function(){return!e.apply(this,arguments)}}function Pn(e){return function(){return-e.apply(this,arguments)}}function Rn(e){return"string"==typeof e?JSON.stringify(e):e}function Fn(){return _(arguments)}function Bn(e,t){return e<t?1:e>t?-1:0}function zn(e,t){return e^t+2654435769+(e<<6)+(e>>2)}return In[p]=!0,In[T]=Dn.entries,In.__toJS=Dn.toObject,In.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Rn(e)},An(o,{toKeyedSeq:function(){return new jt(this,!1)},filter:function(e,t){return Yt(this,zt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Yt(this,Bt(this,!1))},slice:function(e,t){return Yt(this,qt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=M(e,e<0?this.count():this.size);var r=this.slice(0,e);return Yt(this,1===n?r:r.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Yt(this,Ht(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Yt(this,function(e,t){var n=Jt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,a=0;return e.__iterate((function(e,r){return(!a||!1!==n(t,a++,o))&&!1!==n(e,a++,o)}),r),a},n.__iteratorUncached=function(n,r){var o,a=e.__iterator(1,r),i=0;return new L((function(){return(!o||i%2)&&(o=a.next()).done?o:i%2?P(n,i++,t):P(n,i++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(_(arguments)),t=Wt(this.toSeq(),K.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Yt(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Yt(this,Ut(this,e,t,!1))},zip:function(){return Yt(this,Wt(this,Fn,[this].concat(_(arguments))))},zipWith:function(e){var t=_(arguments);return t[0]=this,Yt(this,Wt(this,e,t))}}),o.prototype[f]=!0,o.prototype[h]=!0,An(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=Dn.includes,An(V,r.prototype),An(K,o.prototype),An(G,a.prototype),An(ve,r.prototype),An(be,o.prototype),An(we,a.prototype),{Iterable:n,Seq:H,Collection:ye,Map:Pe,OrderedMap:Nt,List:dt,Stack:xn,Set:ln,OrderedSet:gn,Record:nn,Range:ge,Repeat:he,is:pe,fromJS:le}}()},1814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Collection:()=>_,Iterable:()=>Sr,List:()=>on,Map:()=>Tt,OrderedMap:()=>bn,OrderedSet:()=>sr,PairSorting:()=>pr,Range:()=>Vn,Record:()=>fr,Repeat:()=>wr,Seq:()=>W,Set:()=>Rn,Stack:()=>On,default:()=>Or,fromJS:()=>Er,get:()=>ot,getIn:()=>Kn,has:()=>rt,hasIn:()=>Wn,hash:()=>fe,is:()=>ce,isAssociative:()=>C,isCollection:()=>v,isImmutable:()=>I,isIndexed:()=>x,isKeyed:()=>w,isList:()=>rn,isMap:()=>ie,isOrdered:()=>T,isOrderedMap:()=>se,isOrderedSet:()=>jn,isPlainObject:()=>et,isRecord:()=>D,isSeq:()=>M,isSet:()=>In,isStack:()=>Sn,isValueObject:()=>le,merge:()=>wt,mergeDeep:()=>xt,mergeDeepWith:()=>Ct,mergeWith:()=>Et,remove:()=>it,removeIn:()=>pt,set:()=>st,setIn:()=>ut,update:()=>ht,updateIn:()=>lt,version:()=>_r});var r="delete",o=32,a=31,i={};function s(e){e&&(e.value=!0)}function l(){}function c(e){return void 0===e.size&&(e.size=e.__iterate(d)),e.size}function u(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?c(e)+t:t}function d(){return!0}function p(e,t,n){return(0===e&&!g(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function f(e,t){return m(e,t,0)}function h(e,t){return m(e,t,t)}function m(e,t,n){return void 0===e?n:g(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function g(e){return e<0||0===e&&1/e==-1/0}var y="@@__IMMUTABLE_ITERABLE__@@";function v(e){return Boolean(e&&e[y])}var b="@@__IMMUTABLE_KEYED__@@";function w(e){return Boolean(e&&e[b])}var E="@@__IMMUTABLE_INDEXED__@@";function x(e){return Boolean(e&&e[E])}function C(e){return w(e)||x(e)}var _=function(e){return v(e)?e:W(e)},S=function(e){function t(e){return w(e)?e:Y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_),O=function(e){function t(e){return x(e)?e:Q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_),k=function(e){function t(e){return v(e)&&!C(e)?e:$(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_);_.Keyed=S,_.Indexed=O,_.Set=k;var N="@@__IMMUTABLE_SEQ__@@";function M(e){return Boolean(e&&e[N])}var A="@@__IMMUTABLE_RECORD__@@";function D(e){return Boolean(e&&e[A])}function I(e){return v(e)||D(e)}var j="@@__IMMUTABLE_ORDERED__@@";function T(e){return Boolean(e&&e[j])}var L="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",R=L||P,F=function(e){this.next=e};function B(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function z(){return{value:void 0,done:!0}}function q(e){return!!Array.isArray(e)||!!V(e)}function U(e){return e&&"function"==typeof e.next}function H(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(L&&e[L]||e[P]);if("function"==typeof t)return t}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=0,F.VALUES=1,F.ENTRIES=2,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[R]=function(){return this};var K=Object.prototype.hasOwnProperty;function G(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var W=function(e){function t(e){return null==e?te():I(e)?e.toSeq():function(e){var t,n,r=oe(e);if(r)return(n=V(t=e))&&n===t.entries?r.fromEntrySeq():function(e){var t=V(e);return t&&t===e.keys}(e)?r.toSetSeq():r;if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var a=n[t?r-++o:o++];if(!1===e(a[1],a[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new F((function(){if(o===r)return{value:void 0,done:!0};var a=n[t?r-++o:o++];return B(e,a[0],a[1])}))}return this.__iteratorUncached(e,t)},t}(_),Y=function(e){function t(e){return null==e?te().toKeyedSeq():v(e)?w(e)?e.toSeq():e.fromEntrySeq():D(e)?e.toSeq():ne(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(W),Q=function(e){function t(e){return null==e?te():v(e)?w(e)?e.entrySeq():e.toIndexedSeq():D(e)?e.toSeq().entrySeq():re(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(W),$=function(e){function t(e){return(v(e)&&!C(e)?e:Q(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(W);W.isSeq=M,W.Keyed=Y,W.Set=$,W.Indexed=Q,W.prototype[N]=!0;var Z=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[u(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var a=t?r-++o:o++;if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new F((function(){if(o===r)return{value:void 0,done:!0};var a=t?r-++o:o++;return B(e,a,n[a])}))},t}(Q),J=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return K.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,a=0;a!==o;){var i=r[t?o-++a:a++];if(!1===e(n[i],i,this))break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,a=0;return new F((function(){if(a===o)return{value:void 0,done:!0};var i=r[t?o-++a:a++];return B(e,i,n[i])}))},t}(Y);J.prototype[j]=!0;var X,ee=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._collection),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._collection);if(!U(n))return new F(z);var r=0;return new F((function(){var t=n.next();return t.done?t:B(e,r++,t.value)}))},t}(Q);function te(){return X||(X=new Z([]))}function ne(e){var t=oe(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function re(e){var t=oe(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function oe(e){return G(e)?new Z(e):q(e)?new ee(e):void 0}var ae="@@__IMMUTABLE_MAP__@@";function ie(e){return Boolean(e&&e[ae])}function se(e){return ie(e)&&T(e)}function le(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function ce(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(le(e)&&le(t)&&e.equals(t))}var ue="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function de(e){return e>>>1&1073741824|3221225471&e}var pe=Object.prototype.valueOf;function fe(e){if(null==e)return he(e);if("function"==typeof e.hashCode)return de(e.hashCode(e));var t,n,r,o=(t=e).valueOf!==pe&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==o)return he(o);switch(typeof o){case"boolean":return o?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return de(t)}(o);case"string":return o.length>_e?(void 0===(r=ke[n=o])&&(r=me(n),Oe===Se&&(Oe=0,ke={}),Oe++,ke[n]=r),r):me(o);case"object":case"function":return function(e){var t;if(we&&void 0!==(t=be.get(e)))return t;if(void 0!==(t=e[Ce]))return t;if(!ye){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ce]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ve(),we)be.set(e,t);else{if(void 0!==ge&&!1===ge(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ye)Object.defineProperty(e,Ce,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ce]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ce]=t}}return t}(o);case"symbol":return function(e){var t=Ee[e];return void 0!==t||(t=ve(),Ee[e]=t),t}(o);default:if("function"==typeof o.toString)return me(o.toString());throw new Error("Value type "+typeof o+" cannot be hashed.")}}function he(e){return null===e?1108378658:1108378659}function me(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return de(t)}var ge=Object.isExtensible,ye=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ve(){var e=++xe;return 1073741824&xe&&(xe=0),e}var be,we="function"==typeof WeakMap;we&&(be=new WeakMap);var Ee=Object.create(null),xe=0,Ce="__immutablehash__";"function"==typeof Symbol&&(Ce=Symbol(Ce));var _e=16,Se=255,Oe=0,ke={},Ne=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Te(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=je(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Y);Ne.prototype[j]=!0;var Me=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&c(this),this._iter.__iterate((function(o){return e(o,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),o=0;return t&&c(this),new F((function(){var a=r.next();return a.done?a:B(e,t?n.size-++o:o++,a.value,a)}))},t}(Q),Ae=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new F((function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)}))},t}($),De=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ve(t);var r=v(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ve(r);var o=v(r);return B(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(Y);function Ie(e){var t=Ge(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=We,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function je(e,t,n){var r=Ge(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,i);return a===i?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate((function(e,o,i){return!1!==r(t.call(n,e,o,i),o,a)}),o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(2,o);return new F((function(){var o=a.next();if(o.done)return o;var i=o.value,s=i[0];return B(r,s,t.call(n,i[1],s,e),o)}))},r}function Te(e,t){var n=this,r=Ge(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Ie(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=We,r.__iterate=function(n,r){var o=this,a=0;return r&&c(e),e.__iterate((function(e,i){return n(e,t?i:r?o.size-++a:a++,o)}),!r)},r.__iterator=function(r,o){var a=0;o&&c(e);var i=e.__iterator(2,!o);return new F((function(){var e=i.next();if(e.done)return e;var s=e.value;return B(r,t?s[0]:o?n.size-++a:a++,s[1],e)}))},r}function Le(e,t,n,r){var o=Ge(e);return r&&(o.has=function(r){var o=e.get(r,i);return o!==i&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,i);return a!==i&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,o(e,r?a:s-1,i)}),a),s},o.__iteratorUncached=function(o,a){var i=e.__iterator(2,a),s=0;return new F((function(){for(;;){var a=i.next();if(a.done)return a;var l=a.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return B(o,r?c:s++,u,a)}}))},o}function Pe(e,t,n,r){var o=e.size;if(p(t,n,o))return e;if(void 0===o&&(t<0||n<0))return Pe(e.toSeq().cacheResult(),t,n,r);var a,i=f(t,o),s=h(n,o)-i;s==s&&(a=s<0?0:s);var l=Ge(e);return l.size=0===a?a:e.size&&a||void 0,!r&&M(e)&&a>=0&&(l.get=function(t,n){return(t=u(this,t))>=0&&t<a?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(t,n);var s=0,l=!0,c=0;return e.__iterate((function(e,n){if(!l||!(l=s++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==a})),c},l.__iteratorUncached=function(t,n){if(0!==a&&n)return this.cacheResult().__iterator(t,n);if(0===a)return new F(z);var o=e.__iterator(t,n),s=0,l=0;return new F((function(){for(;s++<i;)o.next();if(++l>a)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:B(t,l-1,0===t?void 0:e.value[1],e)}))},l}function Re(e,t,n,r){var o=Ge(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var s=!0,l=0;return e.__iterate((function(e,a,c){if(!s||!(s=t.call(n,e,a,c)))return l++,o(e,r?a:l-1,i)})),l},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var s=e.__iterator(2,a),l=!0,c=0;return new F((function(){var e,a,u;do{if((e=s.next()).done)return r||1===o?e:B(o,c++,0===o?void 0:e.value[1],e);var d=e.value;a=d[0],u=d[1],l&&(l=t.call(n,u,a,i))}while(l);return 2===o?e:B(o,a,u,e)}))},o}function Fe(e,t,n){var r=Ge(e);return r.__iterateUncached=function(o,a){if(a)return this.cacheResult().__iterate(o,a);var i=0,s=!1;return function e(l,c){l.__iterate((function(a,l){return(!t||c<t)&&v(a)?e(a,c+1):(i++,!1===o(a,n?l:i-1,r)&&(s=!0)),!s}),a)}(e,0),i},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(r,o),i=[],s=0;return new F((function(){for(;a;){var e=a.next();if(!1===e.done){var l=e.value;if(2===r&&(l=l[1]),t&&!(i.length<t)||!v(l))return n?e:B(r,s++,l,e);i.push(a),a=l.__iterator(r,o)}else a=i.pop()}return{value:void 0,done:!0}}))},r}function Be(e,t,n){t||(t=Ye);var r=w(e),o=0,a=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).valueSeq().toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?Y(a):x(e)?Q(a):$(a)}function ze(e,t,n){if(t||(t=Ye),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return qe(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return qe(t,e,n)?n:e}))}function qe(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Ue(e,t,n,r){var o=Ge(e),a=new Z(n).map((function(e){return e.size}));return o.size=r?a.max():a.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var a=n.map((function(e){return e=_(e),H(o?e.reverse():e)})),i=0,s=!1;return new F((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:B(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function He(e,t){return e===t?e:M(e)?t:e.constructor(t)}function Ve(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ke(e){return w(e)?S:x(e)?O:k}function Ge(e){return Object.create((w(e)?Y:x(e)?Q:$).prototype)}function We(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):W.prototype.cacheResult.call(this)}function Ye(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Qe(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function $e(e,t){if(!e)throw new Error(t)}function Ze(e){$e(e!==1/0,"Cannot perform this action with an infinite size.")}function Je(e){if(G(e)&&"string"!=typeof e)return e;if(T(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Me.prototype.cacheResult=Ne.prototype.cacheResult=Ae.prototype.cacheResult=De.prototype.cacheResult=We;var Xe=Object.prototype.toString;function et(e){if(!e||"object"!=typeof e||"[object Object]"!==Xe.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function tt(e){return"object"==typeof e&&(I(e)||Array.isArray(e)||et(e))}function nt(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function rt(e,t){return I(e)?e.has(t):tt(e)&&K.call(e,t)}function ot(e,t,n){return I(e)?e.get(t,n):rt(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function at(e){if(Array.isArray(e))return Qe(e);var t={};for(var n in e)K.call(e,n)&&(t[n]=e[n]);return t}function it(e,t){if(!tt(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(I(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!K.call(e,t))return e;var n=at(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function st(e,t,n){if(!tt(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(I(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(K.call(e,t)&&n===e[t])return e;var r=at(e);return r[t]=n,r}function lt(e,t,n,r){r||(r=n,n=void 0);var o=ct(I(e),e,Je(t),0,n,r);return o===i?n:o}function ct(e,t,n,r,o,a){var s=t===i;if(r===n.length){var l=s?o:t,c=a(l);return c===l?t:c}if(!s&&!tt(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(nt)+"]: "+t);var u=n[r],d=s?i:ot(t,u,i),p=ct(d===i?e:I(d),d,n,r+1,o,a);return p===d?t:p===i?it(t,u):st(s?e?Gt():{}:t,u,p)}function ut(e,t,n){return lt(e,t,i,(function(){return n}))}function dt(e,t){return ut(this,e,t)}function pt(e,t){return lt(e,t,(function(){return i}))}function ft(e){return pt(this,e)}function ht(e,t,n,r){return lt(e,[t],n,r)}function mt(e,t,n){return 1===arguments.length?e(this):ht(this,e,t,n)}function gt(e,t,n){return lt(this,e,t,n)}function yt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return bt(this,e)}function vt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return bt(this,t,e)}function bt(e,t,n){for(var r=[],o=0;o<t.length;o++){var a=S(t[o]);0!==a.size&&r.push(a)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){ht(e,r,i,(function(e){return e===i?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},o=0;o<r.length;o++)r[o].forEach(t)})):e.constructor(r[0])}function wt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return St(e,t)}function Et(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return St(t,n,e)}function xt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return _t(e,t)}function Ct(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return _t(t,n,e)}function _t(e,t,n){return St(e,t,function(e){return function t(n,r,o){return tt(n)&&tt(r)&&(a=r,i=W(n),s=W(a),x(i)===x(s)&&w(i)===w(s))?St(n,[r],t):e?e(n,r,o):r;var a,i,s}}(n))}function St(e,t,n){if(!tt(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(I(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,a=r?O:S,i=r?function(t){o===e&&(o=at(o)),o.push(t)}:function(t,r){var a=K.call(o,r),i=a&&n?n(o[r],t,r):t;a&&i===o[r]||(o===e&&(o=at(o)),o[r]=i)},s=0;s<t.length;s++)a(t[s]).forEach(i);return o}function Ot(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return _t(this,e)}function kt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return _t(this,t,e)}function Nt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lt(this,e,Gt(),(function(e){return St(e,t)}))}function Mt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lt(this,e,Gt(),(function(e){return _t(e,t)}))}function At(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Dt(){return this.__ownerID?this:this.__ensureOwner(new l)}function It(){return this.__ensureOwner()}function jt(){return this.__altered}var Tt=function(e){function t(t){return null==t?Gt():ie(t)&&!T(t)?t:Gt().withMutations((function(n){var r=e(t);Ze(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Gt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Wt(this,e,t)},t.prototype.remove=function(e){return Wt(this,e,i)},t.prototype.deleteAll=function(e){var t=_(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Gt()},t.prototype.sort=function(e){return bn(Be(this,e))},t.prototype.sortBy=function(e,t){return bn(Be(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(o,a){r.set(a,e.call(t,o,a,n))}))}))},t.prototype.__iterator=function(e,t){return new Ut(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kt(this.size,this._root,e,this.__hash):0===this.size?Gt():(this.__ownerID=e,this.__altered=!1,this)},t}(S);Tt.isMap=ie;var Lt=Tt.prototype;Lt[ae]=!0,Lt[r]=Lt.remove,Lt.removeAll=Lt.deleteAll,Lt.setIn=dt,Lt.removeIn=Lt.deleteIn=ft,Lt.update=mt,Lt.updateIn=gt,Lt.merge=Lt.concat=yt,Lt.mergeWith=vt,Lt.mergeDeep=Ot,Lt.mergeDeepWith=kt,Lt.mergeIn=Nt,Lt.mergeDeepIn=Mt,Lt.withMutations=At,Lt.wasAltered=jt,Lt.asImmutable=It,Lt["@@transducer/init"]=Lt.asMutable=Dt,Lt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Lt["@@transducer/result"]=function(e){return e.asImmutable()};var Pt=function(e,t){this.ownerID=e,this.entries=t};Pt.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a<i;a++)if(ce(n,o[a][0]))return o[a][1];return r},Pt.prototype.update=function(e,t,n,r,o,a,c){for(var u=o===i,d=this.entries,p=0,f=d.length;p<f&&!ce(r,d[p][0]);p++);var h=p<f;if(h?d[p][1]===o:u)return this;if(s(c),(u||!h)&&s(a),!u||1!==d.length){if(!h&&!u&&d.length>=Xt)return function(e,t,n,r){e||(e=new l);for(var o=new zt(e,fe(n),[n,r]),a=0;a<t.length;a++){var i=t[a];o=o.update(e,0,void 0,i[0],i[1])}return o}(e,d,r,o);var m=e&&e===this.ownerID,g=m?d:Qe(d);return h?u?p===f-1?g.pop():g[p]=g.pop():g[p]=[r,o]:g.push([r,o]),m?(this.entries=g,this):new Pt(e,g)}};var Rt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Rt.prototype.get=function(e,t,n,r){void 0===t&&(t=fe(n));var o=1<<((0===e?t:t>>>e)&a),i=this.bitmap;return i&o?this.nodes[Zt(i&o-1)].get(e+5,t,n,r):r},Rt.prototype.update=function(e,t,n,r,s,l,c){void 0===n&&(n=fe(r));var u=(0===t?n:n>>>t)&a,d=1<<u,p=this.bitmap,f=!!(p&d);if(!f&&s===i)return this;var h=Zt(p&d-1),m=this.nodes,g=f?m[h]:void 0,y=Yt(g,e,t+5,n,r,s,l,c);if(y===g)return this;if(!f&&y&&m.length>=en)return function(e,t,n,r,a){for(var i=0,s=new Array(o),l=0;0!==n;l++,n>>>=1)s[l]=1&n?t[i++]:void 0;return s[r]=a,new Ft(e,i+1,s)}(e,m,p,u,y);if(f&&!y&&2===m.length&&Qt(m[1^h]))return m[1^h];if(f&&y&&1===m.length&&Qt(y))return y;var v=e&&e===this.ownerID,b=f?y?p:p^d:p|d,w=f?y?Jt(m,h,y,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i<r;i++)i===t&&(a=1),o[i]=e[i+a];return o}(m,h,v):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var a=new Array(o),i=0,s=0;s<o;s++)s===t?(a[s]=n,i=-1):a[s]=e[s+i];return a}(m,h,y,v);return v?(this.bitmap=b,this.nodes=w,this):new Rt(e,b,w)};var Ft=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Ft.prototype.get=function(e,t,n,r){void 0===t&&(t=fe(n));var o=(0===e?t:t>>>e)&a,i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Ft.prototype.update=function(e,t,n,r,o,s,l){void 0===n&&(n=fe(r));var c=(0===t?n:n>>>t)&a,u=o===i,d=this.nodes,p=d[c];if(u&&!p)return this;var f=Yt(p,e,t+5,n,r,o,s,l);if(f===p)return this;var h=this.count;if(p){if(!f&&--h<tn)return function(e,t,n,r){for(var o=0,a=0,i=new Array(n),s=0,l=1,c=t.length;s<c;s++,l<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=l,i[a++]=u)}return new Rt(e,o,i)}(e,d,h,c)}else h++;var m=e&&e===this.ownerID,g=Jt(d,c,f,m);return m?(this.count=h,this.nodes=g,this):new Ft(e,h,g)};var Bt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Bt.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a<i;a++)if(ce(n,o[a][0]))return o[a][1];return r},Bt.prototype.update=function(e,t,n,r,o,a,l){void 0===n&&(n=fe(r));var c=o===i;if(n!==this.keyHash)return c?this:(s(l),s(a),$t(this,e,t,n,[r,o]));for(var u=this.entries,d=0,p=u.length;d<p&&!ce(r,u[d][0]);d++);var f=d<p;if(f?u[d][1]===o:c)return this;if(s(l),(c||!f)&&s(a),c&&2===p)return new zt(e,this.keyHash,u[1^d]);var h=e&&e===this.ownerID,m=h?u:Qe(u);return f?c?d===p-1?m.pop():m[d]=m.pop():m[d]=[r,o]:m.push([r,o]),h?(this.entries=m,this):new Bt(e,this.keyHash,m)};var zt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};zt.prototype.get=function(e,t,n,r){return ce(n,this.entry[0])?this.entry[1]:r},zt.prototype.update=function(e,t,n,r,o,a,l){var c=o===i,u=ce(r,this.entry[0]);return(u?o===this.entry[1]:c)?this:(s(l),c?void s(a):u?e&&e===this.ownerID?(this.entry[1]=o,this):new zt(e,this.keyHash,[r,o]):(s(a),$t(this,e,t,fe(r),[r,o])))},Pt.prototype.iterate=Bt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Rt.prototype.iterate=Ft.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var a=n[t?o-r:r];if(a&&!1===a.iterate(e,t))return!1}},zt.prototype.iterate=function(e,t){return e(this.entry)};var qt,Ut=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Vt(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,o=void 0;if(n.entry){if(0===r)return Ht(e,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Ht(e,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){var a=n.nodes[this._reverse?o-r:r];if(a){if(a.entry)return Ht(e,a.entry);t=this._stack=Vt(a,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(F);function Ht(e,t){return B(e,t[0],t[1])}function Vt(e,t){return{node:e,index:0,__prev:t}}function Kt(e,t,n,r){var o=Object.create(Lt);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gt(){return qt||(qt=Kt(0))}function Wt(e,t,n){var r,o;if(e._root){var a={value:!1},s={value:!1};if(r=Yt(e._root,e.__ownerID,0,void 0,t,n,a,s),!s.value)return e;o=e.size+(a.value?n===i?-1:1:0)}else{if(n===i)return e;o=1,r=new Pt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Kt(o,r):Gt()}function Yt(e,t,n,r,o,a,l,c){return e?e.update(t,n,r,o,a,l,c):a===i?e:(s(c),s(l),new zt(t,r,[o,a]))}function Qt(e){return e.constructor===zt||e.constructor===Bt}function $t(e,t,n,r,o){if(e.keyHash===r)return new Bt(t,r,[e.entry,o]);var i,s=(0===n?e.keyHash:e.keyHash>>>n)&a,l=(0===n?r:r>>>n)&a,c=s===l?[$t(e,t,n+5,r,o)]:(i=new zt(t,r,o),s<l?[e,i]:[i,e]);return new Rt(t,1<<s|1<<l,c)}function Zt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function Jt(e,t,n,r){var o=r?e:Qe(e);return o[t]=n,o}var Xt=8,en=16,tn=8,nn="@@__IMMUTABLE_LIST__@@";function rn(e){return Boolean(e&&e[nn])}var on=function(e){function t(t){var n=pn();if(null==t)return n;if(rn(t))return t;var r=e(t),a=r.size;return 0===a?n:(Ze(a),a>0&&a<o?dn(0,a,5,null,new sn(r.toArray())):n.withMutations((function(e){e.setSize(a),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=u(this,e))>=0&&e<this.size){var n=mn(this,e+=this._origin);return n&&n.array[e&a]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=u(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?gn(e,t).set(0,n):gn(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,a={value:!1};return t>=yn(e._capacity)?r=fn(r,e.__ownerID,0,t,n,a):o=fn(o,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):dn(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):pn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){gn(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return gn(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){gn(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return gn(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var o=t[r],a=e("string"!=typeof o&&q(o)?o:[o]);0!==a.size&&n.push(a)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return gn(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,e.call(t,r.get(o),o,n))}))},t.prototype.slice=function(e,t){var n=this.size;return p(e,t,n)?this:gn(this,f(e,n),h(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=un(this,t);return new F((function(){var o=r();return o===cn?{value:void 0,done:!0}:B(e,t?--n:n++,o)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=un(this,t);(n=o())!==cn&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?dn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?pn():(this.__ownerID=e,this.__altered=!1,this)},t}(O);on.isList=rn;var an=on.prototype;an[nn]=!0,an[r]=an.remove,an.merge=an.concat,an.setIn=dt,an.deleteIn=an.removeIn=ft,an.update=mt,an.updateIn=gt,an.mergeIn=Nt,an.mergeDeepIn=Mt,an.withMutations=At,an.wasAltered=jt,an.asImmutable=It,an["@@transducer/init"]=an.asMutable=Dt,an["@@transducer/step"]=function(e,t){return e.push(t)},an["@@transducer/result"]=function(e){return e.asImmutable()};var sn=function(e,t){this.array=e,this.ownerID=t};sn.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&a;if(r>=this.array.length)return new sn([],e);var o,i=0===r;if(t>0){var s=this.array[r];if((o=s&&s.removeBefore(e,t-5,n))===s&&i)return this}if(i&&!o)return this;var l=hn(this,e);if(!i)for(var c=0;c<r;c++)l.array[c]=void 0;return o&&(l.array[r]=o),l},sn.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&a;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var s=hn(this,e);return s.array.splice(o+1),r&&(s.array[o]=r),s};var ln,cn={};function un(e,t){var n=e._origin,r=e._capacity,a=yn(r),i=e._tail;return function e(s,l,c){return 0===l?function(e,s){var l=s===a?i&&i.array:e&&e.array,c=s>n?0:n-s,u=r-s;return u>o&&(u=o),function(){if(c===u)return cn;var e=t?--u:c++;return l&&l[e]}}(s,c):function(a,i,s){var l,c=a&&a.array,u=s>n?0:n-s>>i,d=1+(r-s>>i);return d>o&&(d=o),function(){for(;;){if(l){var n=l();if(n!==cn)return n;l=null}if(u===d)return cn;var r=t?--d:u++;l=e(c&&c[r],i-5,s+(r<<i))}}}(s,l,c)}(e._root,e._level,0)}function dn(e,t,n,r,o,a,i){var s=Object.create(an);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=a,s.__hash=i,s.__altered=!1,s}function pn(){return ln||(ln=dn(0,0,5))}function fn(e,t,n,r,o,i){var l,c=r>>>n&a,u=e&&c<e.array.length;if(!u&&void 0===o)return e;if(n>0){var d=e&&e.array[c],p=fn(d,t,n-5,r,o,i);return p===d?e:((l=hn(e,t)).array[c]=p,l)}return u&&e.array[c]===o?e:(i&&s(i),l=hn(e,t),void 0===o&&c===l.array.length-1?l.array.pop():l.array[c]=o,l)}function hn(e,t){return t&&e&&t===e.ownerID?e:new sn(e?e.array.slice():[],t)}function mn(e,t){if(t>=yn(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&a],r-=5;return n}}function gn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new l,o=e._origin,i=e._capacity,s=o+t,c=void 0===n?i:n<0?i+n:o+n;if(s===o&&c===i)return e;if(s>=c)return e.clear();for(var u=e._level,d=e._root,p=0;s+p<0;)d=new sn(d&&d.array.length?[void 0,d]:[],r),p+=1<<(u+=5);p&&(s+=p,o+=p,c+=p,i+=p);for(var f=yn(i),h=yn(c);h>=1<<u+5;)d=new sn(d&&d.array.length?[d]:[],r),u+=5;var m=e._tail,g=h<f?mn(e,c-1):h>f?new sn([],r):m;if(m&&h>f&&s<i&&m.array.length){for(var y=d=hn(d,r),v=u;v>5;v-=5){var b=f>>>v&a;y=y.array[b]=hn(y.array[b],r)}y.array[f>>>5&a]=m}if(c<i&&(g=g&&g.removeAfter(r,0,c)),s>=h)s-=h,c-=h,u=5,d=null,g=g&&g.removeBefore(r,0,s);else if(s>o||h<f){for(p=0;d;){var w=s>>>u&a;if(w!==h>>>u&a)break;w&&(p+=(1<<u)*w),u-=5,d=d.array[w]}d&&s>o&&(d=d.removeBefore(r,u,s-p)),d&&h<f&&(d=d.removeAfter(r,u,h-p)),p&&(s-=p,c-=p)}return e.__ownerID?(e.size=c-s,e._origin=s,e._capacity=c,e._level=u,e._root=d,e._tail=g,e.__hash=void 0,e.__altered=!0,e):dn(s,c,u,d,g)}function yn(e){return e<o?0:e-1>>>5<<5}var vn,bn=function(e){function t(e){return null==e?En():se(e)?e:En().withMutations((function(t){var n=S(e);Ze(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):En()},t.prototype.set=function(e,t){return xn(this,e,t)},t.prototype.remove=function(e){return xn(this,e,i)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?wn(t,n,e,this.__hash):0===this.size?En():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Tt);function wn(e,t,n,r){var o=Object.create(bn.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function En(){return vn||(vn=wn(Gt(),pn()))}function xn(e,t,n){var r,a,s=e._map,l=e._list,c=s.get(t),u=void 0!==c;if(n===i){if(!u)return e;l.size>=o&&l.size>=2*s.size?(r=(a=l.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=a.__ownerID=e.__ownerID)):(r=s.remove(t),a=c===l.size-1?l.pop():l.set(c,void 0))}else if(u){if(n===l.get(c)[1])return e;r=s,a=l.set(c,[t,n])}else r=s.set(t,l.size),a=l.set(l.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=a,e.__hash=void 0,e.__altered=!0,e):wn(r,a)}bn.isOrderedMap=se,bn.prototype[j]=!0,bn.prototype[r]=bn.prototype.remove;var Cn="@@__IMMUTABLE_STACK__@@";function Sn(e){return Boolean(e&&e[Cn])}var On=function(e){function t(e){return null==e?An():Sn(e)?e:An().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=u(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Mn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Sn(t))return t;Ze(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Mn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):An()},t.prototype.slice=function(t,n){if(p(t,n,this.size))return this;var r=f(t,this.size);if(h(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=o,this._head=a,this.__hash=void 0,this.__altered=!0,this):Mn(o,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Mn(this.size,this._head,e,this.__hash):0===this.size?An():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Z(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new Z(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return{value:void 0,done:!0}}))},t}(O);On.isStack=Sn;var kn,Nn=On.prototype;function Mn(e,t,n,r){var o=Object.create(Nn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function An(){return kn||(kn=Mn(0))}Nn[Cn]=!0,Nn.shift=Nn.pop,Nn.unshift=Nn.push,Nn.unshiftAll=Nn.pushAll,Nn.withMutations=At,Nn.wasAltered=jt,Nn.asImmutable=It,Nn["@@transducer/init"]=Nn.asMutable=Dt,Nn["@@transducer/step"]=function(e,t){return e.unshift(t)},Nn["@@transducer/result"]=function(e){return e.asImmutable()};var Dn="@@__IMMUTABLE_SET__@@";function In(e){return Boolean(e&&e[Dn])}function jn(e){return In(e)&&T(e)}function Tn(e,t){if(e===t)return!0;if(!v(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||w(e)!==w(t)||x(e)!==x(t)||T(e)!==T(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!C(e);if(T(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ce(o[1],e)&&(n||ce(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var s=!0,l=t.__iterate((function(t,r){if(n?!e.has(t):o?!ce(t,e.get(r,i)):!ce(e.get(r,i),t))return s=!1,!1}));return s&&e.size===l}function Ln(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Pn(e){if(!e||"object"!=typeof e)return e;if(!v(e)){if(!tt(e))return e;e=W(e)}if(w(e)){var t={};return e.__iterate((function(e,n){t[n]=Pn(e)})),t}var n=[];return e.__iterate((function(e){n.push(Pn(e))})),n}var Rn=function(e){function t(t){return null==t?Un():In(t)&&!T(t)?t:Un().withMutations((function(n){var r=e(t);Ze(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(S(e).keySeq())},t.intersect=function(e){return(e=_(e).toArray()).length?Bn.intersect.apply(t(e.pop()),e):Un()},t.union=function(e){return(e=_(e).toArray()).length?Bn.union.apply(t(e.pop()),e):Un()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return zn(this,this._map.set(e,e))},t.prototype.remove=function(e){return zn(this,this._map.remove(e))},t.prototype.clear=function(){return zn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,o=zn(this,this._map.mapEntries((function(o){var a=o[1],i=e.call(t,a,a,n);return i!==a&&(r=!0),[i,i]}),t));return r?o:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return sr(Be(this,e))},t.prototype.sortBy=function(e,t){return sr(Be(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(k);Rn.isSet=In;var Fn,Bn=Rn.prototype;function zn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function qn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Un(){return Fn||(Fn=qn(Gt()))}Bn[Dn]=!0,Bn[r]=Bn.remove,Bn.merge=Bn.concat=Bn.union,Bn.withMutations=At,Bn.asImmutable=It,Bn["@@transducer/init"]=Bn.asMutable=Dt,Bn["@@transducer/step"]=function(e,t){return e.add(t)},Bn["@@transducer/result"]=function(e){return e.asImmutable()},Bn.__empty=Un,Bn.__make=qn;var Hn,Vn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if($e(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Hn)return Hn;Hn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+u(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return p(e,n,this.size)?this:(e=f(e,this.size),(n=h(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,a=0;a!==n&&!1!==e(o,t?n-++a:a++,this);)o+=t?-r:r;return a},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,a=0;return new F((function(){if(a===n)return{value:void 0,done:!0};var i=o;return o+=t?-r:r,B(e,t?n-++a:a++,i)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Tn(this,e)},t}(Q);function Kn(e,t,n){for(var r=Je(t),o=0;o!==r.length;)if((e=ot(e,r[o++],i))===i)return n;return e}function Gn(e,t){return Kn(this,e,t)}function Wn(e,t){return Kn(e,t,i)!==i}function Yn(){Ze(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}_.isIterable=v,_.isKeyed=w,_.isIndexed=x,_.isAssociative=C,_.isOrdered=T,_.Iterator=F,Ln(_,{toArray:function(){Ze(this.size);var e=new Array(this.size||0),t=w(this),n=0;return this.__iterate((function(r,o){e[n++]=t?[o,r]:r})),e},toIndexedSeq:function(){return new Me(this)},toJS:function(){return Pn(this)},toKeyedSeq:function(){return new Ne(this,!0)},toMap:function(){return Tt(this.toKeyedSeq())},toObject:Yn,toOrderedMap:function(){return bn(this.toKeyedSeq())},toOrderedSet:function(){return sr(w(this)?this.valueSeq():this)},toSet:function(){return Rn(w(this)?this.valueSeq():this)},toSetSeq:function(){return new Ae(this)},toSeq:function(){return x(this)?this.toIndexedSeq():w(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return On(w(this)?this.valueSeq():this)},toList:function(){return on(w(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return He(this,function(e,t){var n=w(e),r=[e].concat(t).map((function(e){return v(e)?n&&(e=S(e)):e=n?ne(e):re(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&w(o)||x(e)&&x(o))return o}var a=new Z(r);return n?a=a.toKeyedSeq():x(e)||(a=a.toSetSeq()),(a=a.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),a}(this,e))},includes:function(e){return this.some((function(t){return ce(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Ze(this.size);var n=!0;return this.__iterate((function(r,o,a){if(!e.call(t,r,o,a))return n=!1,!1})),n},filter:function(e,t){return He(this,Le(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=w(e),o=[[],[]];e.__iterate((function(a,i){o[t.call(n,a,i,e)?1:0].push(r?[i,a]:a)}));var a=Ke(e);return o.map((function(t){return He(e,a(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Ze(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ze(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return He(this,je(this,e,t))},reduce:function(e,t,n){return Xn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Xn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return He(this,Te(this,!0))},slice:function(e,t){return He(this,Pe(this,e,t,!0))},some:function(e,t){Ze(this.size);var n=!1;return this.__iterate((function(r,o,a){if(e.call(t,r,o,a))return n=!0,!1})),n},sort:function(e){return He(this,Be(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return c(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Tt().asMutable();return e.__iterate((function(o,a){r.update(t.call(n,o,a,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Tn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Z(e._cache);var t=e.toSeq().map(tr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(nr(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,a){if(e.call(t,n,o,a))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(d,null,e)},flatMap:function(e,t){return He(this,function(e,t,n){var r=Ke(e);return e.toSeq().map((function(o,a){return r(t.call(n,o,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return He(this,Fe(this,e,!0))},fromEntrySeq:function(){return new De(this)},get:function(e,t){return this.find((function(t,n){return ce(n,e)}),void 0,t)},getIn:Gn,groupBy:function(e,t){return function(e,t,n){var r=w(e),o=(T(e)?bn():Tt()).asMutable();e.__iterate((function(a,i){o.update(t.call(n,a,i,e),(function(e){return(e=e||[]).push(r?[i,a]:a),e}))}));var a=Ke(e);return o.map((function(t){return He(e,a(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,i)!==i},hasIn:function(e){return Wn(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:_(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:_(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ce(t,e)}))},keySeq:function(){return this.toSeq().map(er).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return ze(this,e)},maxBy:function(e,t){return ze(this,t,e)},min:function(e){return ze(this,e?rr(e):ar)},minBy:function(e,t){return ze(this,t?rr(t):ar,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return He(this,Re(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(nr(e),t)},sortBy:function(e,t){return He(this,Be(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return He(this,function(e,t,n){var r=Ge(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++i&&r(e,o,a)})),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(2,o),s=!0;return new F((function(){if(!s)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var o=e.value,l=o[0],c=o[1];return t.call(n,c,l,a)?2===r?e:B(r,l,c,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(nr(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=T(e),n=w(e),r=t?1:0;return function(e,t){return t=ue(t,3432918353),t=ue(t<<15|t>>>-15,461845907),t=ue(t<<13|t>>>-13,5),t=ue((t=t+3864292196^e)^t>>>16,2246822507),t=de((t=ue(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+ir(fe(e),fe(t))|0}:function(e,t){r=r+ir(fe(e),fe(t))|0}:t?function(e){r=31*r+fe(e)|0}:function(e){r=r+fe(e)|0}),r)}(this))}});var Qn=_.prototype;Qn[y]=!0,Qn[R]=Qn.values,Qn.toJSON=Qn.toArray,Qn.__toStringMapper=nt,Qn.inspect=Qn.toSource=function(){return this.toString()},Qn.chain=Qn.flatMap,Qn.contains=Qn.includes,Ln(S,{flip:function(){return He(this,Ie(this))},mapEntries:function(e,t){var n=this,r=0;return He(this,this.toSeq().map((function(o,a){return e.call(t,[a,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return He(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var $n=S.prototype;$n[b]=!0,$n[R]=Qn.entries,$n.toJSON=Yn,$n.__toStringMapper=function(e,t){return nt(t)+": "+nt(e)},Ln(O,{toKeyedSeq:function(){return new Ne(this,!1)},filter:function(e,t){return He(this,Le(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return He(this,Te(this,!1))},slice:function(e,t){return He(this,Pe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=f(e,e<0?this.count():this.size);var r=this.slice(0,e);return He(this,1===n?r:r.concat(Qe(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return He(this,Fe(this,e,!1))},get:function(e,t){return(e=u(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=u(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return He(this,function(e,t){var n=Ge(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,a=0;return e.__iterate((function(e){return(!a||!1!==n(t,a++,o))&&!1!==n(e,a++,o)}),r),a},n.__iteratorUncached=function(n,r){var o,a=e.__iterator(1,r),i=0;return new F((function(){return(!o||i%2)&&(o=a.next()).done?o:i%2?B(n,i++,t):B(n,i++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(Qe(arguments)),t=Ue(this.toSeq(),Q.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),He(this,n)},keySeq:function(){return Vn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return He(this,Re(this,e,t,!1))},zip:function(){return He(this,Ue(this,or,[this].concat(Qe(arguments))))},zipAll:function(){return He(this,Ue(this,or,[this].concat(Qe(arguments)),!0))},zipWith:function(e){var t=Qe(arguments);return t[0]=this,He(this,Ue(this,e,t))}});var Zn=O.prototype;Zn[E]=!0,Zn[j]=!0,Ln(k,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Jn=k.prototype;function Xn(e,t,n,r,o,a){return Ze(e.size),e.__iterate((function(e,a,i){o?(o=!1,n=e):n=t.call(r,n,e,a,i)}),a),n}function er(e,t){return t}function tr(e,t){return[t,e]}function nr(e){return function(){return!e.apply(this,arguments)}}function rr(e){return function(){return-e.apply(this,arguments)}}function or(){return Qe(arguments)}function ar(e,t){return e<t?1:e>t?-1:0}function ir(e,t){return e^t+2654435769+(e<<6)+(e>>2)}Jn.has=Qn.includes,Jn.contains=Jn.includes,Jn.keys=Jn.values,Ln(Y,$n),Ln(Q,Zn),Ln($,Jn);var sr=function(e){function t(e){return null==e?dr():jn(e)?e:dr().withMutations((function(t){var n=k(e);Ze(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(S(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Rn);sr.isOrderedSet=jn;var lr,cr=sr.prototype;function ur(e,t){var n=Object.create(cr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function dr(){return lr||(lr=ur(En()))}cr[j]=!0,cr.zip=Zn.zip,cr.zipWith=Zn.zipWith,cr.zipAll=Zn.zipAll,cr.__empty=dr,cr.__make=ur;var pr={LeftThenRight:-1,RightThenLeft:1},fr=function(e,t){var n;!function(e){if(D(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(I(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(a){var i=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var s=Object.keys(e),l=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var c=0;c<s.length;c++){var u=s[c];l[u]=c,o[u]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+gr(this)+' with property "'+u+'" since that property name is part of the Record API.'):vr(o,u)}}return this.__ownerID=void 0,this._values=on().withMutations((function(e){e.setSize(i._keys.length),S(a).forEach((function(t,n){e.set(i._indices[n],t===i._defaultValues[n]?void 0:t)}))})),this},o=r.prototype=Object.create(hr);return o.constructor=r,t&&(r.displayName=t),r};fr.prototype.toString=function(){for(var e,t=gr(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+nt(this.get(e));return t+" }"},fr.prototype.equals=function(e){return this===e||D(e)&&yr(this).equals(yr(e))},fr.prototype.hashCode=function(){return yr(this).hashCode()},fr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},fr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},fr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return mr(this,n)}return this},fr.prototype.remove=function(e){return this.set(e)},fr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:mr(this,e)},fr.prototype.wasAltered=function(){return this._values.wasAltered()},fr.prototype.toSeq=function(){return yr(this)},fr.prototype.toJS=function(){return Pn(this)},fr.prototype.entries=function(){return this.__iterator(2)},fr.prototype.__iterator=function(e,t){return yr(this).__iterator(e,t)},fr.prototype.__iterate=function(e,t){return yr(this).__iterate(e,t)},fr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?mr(this,t,e):(this.__ownerID=e,this._values=t,this)},fr.isRecord=D,fr.getDescriptiveName=gr;var hr=fr.prototype;function mr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function gr(e){return e.constructor.displayName||e.constructor.name||"Record"}function yr(e){return ne(e._keys.map((function(t){return[t,e.get(t)]})))}function vr(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){$e(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}hr[A]=!0,hr[r]=hr.remove,hr.deleteIn=hr.removeIn=ft,hr.getIn=Gn,hr.hasIn=Qn.hasIn,hr.merge=yt,hr.mergeWith=vt,hr.mergeIn=Nt,hr.mergeDeep=Ot,hr.mergeDeepWith=kt,hr.mergeDeepIn=Mt,hr.setIn=dt,hr.update=mt,hr.updateIn=gt,hr.withMutations=At,hr.asMutable=Dt,hr.asImmutable=It,hr[R]=hr.entries,hr.toJSON=hr.toObject=Qn.toObject,hr.inspect=hr.toSource=function(){return this.toString()};var br,wr=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(br)return br;br=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return ce(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return p(e,n,r)?this:new t(this._value,h(n,r)-f(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return ce(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return ce(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,o=0;return new F((function(){return o===r?{value:void 0,done:!0}:B(e,t?r-++o:o++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?ce(this._value,e._value):Tn(this,e)},t}(Q);function Er(e,t){return xr([],t||Cr,e,"",t&&t.length>2?[]:void 0,{"":e})}function xr(e,t,n,r,o,a){if("string"!=typeof n&&!I(n)&&(G(n)||q(n)||et(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),o&&""!==r&&o.push(r);var i=t.call(a,r,W(n).map((function(r,a){return xr(e,t,r,a,o,n)})),o&&o.slice());return e.pop(),o&&o.pop(),i}return n}function Cr(e,t){return x(t)?t.toList():w(t)?t.toMap():t.toSet()}var _r="4.3.7",Sr=_;const Or={version:_r,Collection:_,Iterable:_,Seq:W,Map:Tt,OrderedMap:bn,List:on,Stack:On,Set:Rn,OrderedSet:sr,PairSorting:pr,Record:fr,Range:Vn,Repeat:wr,is:ce,fromJS:Er,hash:fe,isImmutable:I,isCollection:v,isKeyed:w,isIndexed:x,isAssociative:C,isOrdered:T,isValueObject:le,isPlainObject:et,isSeq:M,isList:rn,isMap:ie,isOrderedMap:se,isStack:Sn,isSet:In,isOrderedSet:jn,isRecord:D,get:ot,getIn:Kn,has:rt,hasIn:Wn,merge:wt,mergeDeep:xt,mergeWith:Et,mergeDeepWith:Ct,remove:it,removeIn:pt,set:st,setIn:ut,update:ht,updateIn:lt}},223:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){v(r)}function w(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function x(){var e=h(),n=v(o);if(n){if(E(),!v(a))return y("property missing ':'");var r=v(i),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return b(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}},3867:e=>{function t(e){var t={},n=e.length-1,r=e[0],o=e[n];for(var a in r)t[r[a]]=0;for(a=1;a<=n;a++){var i=e[a];for(var s in i)t[c=i[s]]===a-1&&(t[c]=a)}var l=[];for(var a in o){var c;t[c=o[a]]===n&&l.push(c)}return l}function n(e,n){if(!n)return t(e);for(var o=[],a=0;a<e.length;a++)r(n,e[a])>-1&&o.push(e[a]);return o}function r(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}e.exports=n,n.big=function(e,n){if(!n)return t(e);for(var r=[],o={},a=0;a<n.length;a++)o[n[a]]=!0;for(a=0;a<e.length;a++)o[e[a]]&&r.push(e[a]);return r}},2276:e=>{"use strict";e.exports=Math.abs},2153:e=>{"use strict";e.exports=Math.floor},457:e=>{"use strict";e.exports=Math.max},1179:e=>{"use strict";e.exports=Math.min},5985:e=>{"use strict";e.exports=Math.pow},6497:()=>{},4259:()=>{},4059:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(s[c]=a[c]);if(t){i=t(a);for(var u=0;u<i.length;u++)r.call(a,i[u])&&(s[i[u]]=a[i[u]])}}return s}},8131:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"==typeof o.get?o.get:null,i=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,x=RegExp.prototype.test,C=Array.prototype.concat,_=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,j=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var o=String(r),a=v.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var L=n(8954),P=L.custom,R=V(P)?P:null,F={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(e,t,n){var r=n.quoteStyle||t,o=F[r];return o+e+o}function q(e){return b.call(String(e),/"/g,"&quot;")}function U(e){return!("[object Array]"!==W(e)||D&&"object"==typeof e&&D in e)}function H(e){return!("[object RegExp]"!==W(e)||D&&"object"==typeof e&&D in e)}function V(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,s){var l=r||{};if(G(l,"quoteStyle")&&!G(F,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!G(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?T(t,x):x}if("bigint"==typeof t){var O=String(t)+"n";return w?T(t,O):O}var N=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=N&&N>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var P,B=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=_.call(Array(e.indent+1)," ")}return{base:n,prev:_.call(Array(t+1),n)}}(l,o);if(void 0===s)s=[];else if(Y(s,t)>=0)return"[Circular]";function K(t,n,r){if(n&&(s=S.call(s)).push(n),r){var a={depth:l.depth};return G(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,o+1,s)}return e(t,l,o+1,s)}if("function"==typeof t&&!H(t)){var $=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=te(t,K);return"[Function"+($?": "+$:" (anonymous)")+"]"+(ne.length>0?" { "+_.call(ne,", ")+" }":"")}if(V(t)){var re=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(t);return"object"!=typeof t||A?re:Z(re)}if((P=t)&&"object"==typeof P&&("undefined"!=typeof HTMLElement&&P instanceof HTMLElement||"string"==typeof P.nodeName&&"function"==typeof P.getAttribute)){for(var oe="<"+E.call(String(t.nodeName)),ae=t.attributes||[],ie=0;ie<ae.length;ie++)oe+=" "+ae[ie].name+"="+z(q(ae[ie].value),"double",l);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+"</"+E.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var se=te(t,K);return B&&!function(e){for(var t=0;t<e.length;t++)if(Y(e[t],"\n")>=0)return!1;return!0}(se)?"["+ee(se,B)+"]":"[ "+_.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||D&&"object"==typeof e&&D in e)}(t)){var le=te(t,K);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(le,", ")+" }":"{ ["+String(t)+"] "+_.call(C.call("[cause]: "+K(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(R&&"function"==typeof t[R]&&L)return L(t,{depth:N-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ce=[];return i&&i.call(t,(function(e,n){ce.push(K(n,t,!0)+" => "+K(e,t))})),X("Map",a.call(t),ce,B)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return u&&u.call(t,(function(e){ue.push(K(e,t))})),X("Set",c.call(t),ue,B)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return!("[object Number]"!==W(e)||D&&"object"==typeof e&&D in e)}(t))return Z(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}(t))return Z(K(k.call(t)));if(function(e){return!("[object Boolean]"!==W(e)||D&&"object"==typeof e&&D in e)}(t))return Z(h.call(t));if(function(e){return!("[object String]"!==W(e)||D&&"object"==typeof e&&D in e)}(t))return Z(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==W(e)||D&&"object"==typeof e&&D in e)}(t)&&!H(t)){var de=te(t,K),pe=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!pe&&D&&Object(t)===t&&D in t?v.call(W(t),8,-1):fe?"Object":"",me=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+_.call(C.call([],he||[],fe||[]),": ")+"] ":"");return 0===de.length?me+"{}":B?me+"{"+ee(de,B)+"}":me+"{ "+_.call(de,", ")+" }"}return String(t)};var K=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return K.call(e,t)}function W(e){return m.call(e)}function Y(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Q(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Q(v.call(e,0,t.maxStringLength),t)+r}var o=B[t.quoteStyle||"single"];return o.lastIndex=0,z(b.call(b.call(e,o,"\\$1"),/[\x00-\x1f]/g,$),"single",t)}function $(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?ee(n,r):_.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+_.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=G(e,o)?t(e[o],e):""}var a,i="function"==typeof N?N(e):[];if(A){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var l in e)G(e,l)&&(n&&String(Number(l))===l&&l<e.length||A&&a["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof N)for(var c=0;c<i.length;c++)I.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}},6186:(e,t,n)=>{"use strict";var r=n(2985);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},2736:(e,t,n)=>{e.exports=n(6186)()},2985:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9522:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},3654:(e,t,n)=>{"use strict";var r=n(5483),o=n(7861),a=n(9522);e.exports={formats:a,parse:o,stringify:r}},7861:(e,t,n)=>{"use strict";var r=n(3095),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(s.index)+"]")}return function(e,t,n,r){for(var o=r?t:l(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{i=n.plainObjects?{__proto__:null}:{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(i=[])[d]=o:"__proto__"!==u&&(i[u]=o):i={0:o}}o=i}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset,n=void 0===e.duplicates?i.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||i.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:i.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=c.split(t.delimiter,d),f=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<p.length;++u)0===p[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[u]?h="utf-8":"utf8=%26%2310003%3B"===p[u]&&(h="iso-8859-1"),f=u,u=p.length);for(u=0;u<p.length;++u)if(u!==f){var m,g,y=p[u],v=y.indexOf("]="),b=-1===v?y.indexOf("="):v+1;-1===b?(m=t.decoder(y,i.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(y.slice(0,b),i.decoder,h,"key"),g=r.maybeMap(l(y.slice(b+1),t),(function(e){return t.decoder(e,i.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(String(g))),y.indexOf("[]=")>-1&&(g=a(g)?[g]:g);var w=o.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):w&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},p=Object.keys(u),f=0;f<p.length;++f){var h=p[f],m=c(h,u[h],n,"string"==typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},5483:(e,t,n)=>{"use strict";var r=n(5717),o=n(3095),a=n(9522),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,p=a.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,a,i,s,c,d,p,m,g,y,v,b,w,E,x,C,_){for(var S,O=t,k=_,N=0,M=!1;void 0!==(k=k.get(h))&&!M;){var A=k.get(t);if(N+=1,void 0!==A){if(A===N)throw new RangeError("Cyclic object value");M=!0}void 0===k.get(h)&&(N=0)}if("function"==typeof g?O=g(n,O):O instanceof Date?O=b(O):"comma"===a&&l(O)&&(O=o.maybeMap(O,(function(e){return e instanceof Date?b(e):e}))),null===O){if(c)return m&&!x?m(n,f.encoder,C,"key",w):n;O=""}if("string"==typeof(S=O)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(O))return m?[E(x?n:m(n,f.encoder,C,"key",w))+"="+E(m(O,f.encoder,C,"value",w))]:[E(n)+"="+E(String(O))];var D,I=[];if(void 0===O)return I;if("comma"===a&&l(O))x&&m&&(O=o.maybeMap(O,m)),D=[{value:O.length>0?O.join(",")||null:void 0}];else if(l(g))D=g;else{var j=Object.keys(O);D=y?j.sort(y):j}var T=p?String(n).replace(/\./g,"%2E"):String(n),L=i&&l(O)&&1===O.length?T+"[]":T;if(s&&l(O)&&0===O.length)return L+"[]";for(var P=0;P<D.length;++P){var R=D[P],F="object"==typeof R&&R&&void 0!==R.value?R.value:O[R];if(!d||null!==F){var B=v&&p?String(R).replace(/\./g,"%2E"):String(R),z=l(O)?"function"==typeof a?a(L,B):L:L+(v?"."+B:"["+B+"]");_.set(t,N);var q=r();q.set(h,_),u(I,e(F,z,a,i,s,c,d,p,"comma"===a&&x&&l(O)?null:m,g,y,v,b,w,E,x,C,q))}}return I};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=a.formatters[n],c=f.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var d=[];if("object"!=typeof o||null===o)return"";var p=s[c.arrayFormat],h="comma"===p&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=r(),y=0;y<n.length;++y){var v=n[y],b=o[v];c.skipNulls&&null===b||u(d,m(b,v,p,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var w=d.join(c.delimiter),E=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),w.length>0?E+w:""}},3095:(e,t,n)=>{"use strict";var r=n(9522),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:i,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,a){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var d=s.length>=l?s.slice(u,u+l):s,p=[],f=0;f<d.length;++f){var h=d.charCodeAt(f);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||a===r.RFC1738&&(40===h||41===h)?p[p.length]=d.charAt(f):h<128?p[p.length]=i[h]:h<2048?p[p.length]=i[192|h>>6]+i[128|63&h]:h<55296||h>=57344?p[p.length]=i[224|h>>12]+i[128|h>>6&63]+i[128|63&h]:(f+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(f)),p[p.length]=i[240|h>>18]+i[128|h>>12&63]+i[128|h>>6&63]+i[128|63&h])}c+=p.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(a(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var i=t;return a(t)&&!a(n)&&(i=s(t,r)),a(t)&&a(n)?(n.forEach((function(n,a){if(o.call(t,a)){var i=t[a];i&&"object"==typeof i&&n&&"object"==typeof n?t[a]=e(i,n,r):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var i=n[a];return o.call(t,a)?t[a]=e(t[a],i,r):t[a]=i,t}),i)}}},9045:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(5890),o=n(6313),a=n(2367),i=n(9755),s=n(531),l=n(5007),c=n(4296),u=n(3205),d=n(7500),p=n.n(d),f="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function h(e,t){return 0===e.indexOf(t)}var m=n(1609),g=n.n(m);const y=13,v=38,b=40;var w=function(e){(0,l.A)(n,e);var t=(0,c.A)(n);function n(){var e;(0,a.A)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,u.A)((0,s.A)(e),"state",{goInputText:""}),(0,u.A)((0,s.A)(e),"getValidValue",(function(){var t=e.state.goInputText;return!t||Number.isNaN(t)?void 0:Number(t)})),(0,u.A)((0,s.A)(e),"buildOptionText",(function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)})),(0,u.A)((0,s.A)(e),"changeSize",(function(t){e.props.changeSize(Number(t))})),(0,u.A)((0,s.A)(e),"handleChange",(function(t){e.setState({goInputText:t.target.value})})),(0,u.A)((0,s.A)(e),"handleBlur",(function(t){var n=e.props,r=n.goButton,o=n.quickGo,a=n.rootPrefixCls,i=e.state.goInputText;r||""===i||(e.setState({goInputText:""}),t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(a,"-item-link"))>=0||t.relatedTarget.className.indexOf("".concat(a,"-item"))>=0)||o(e.getValidValue()))})),(0,u.A)((0,s.A)(e),"go",(function(t){""!==e.state.goInputText&&(t.keyCode!==y&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))})),e}return(0,i.A)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,a=t.changeSize,i=t.quickGo,s=t.goButton,l=t.selectComponentClass,c=t.buildOptionText,u=t.selectPrefixCls,d=t.disabled,p=this.state.goInputText,f="".concat(o,"-options"),h=l,m=null,y=null,v=null;if(!a&&!i)return null;var b=this.getPageSizeOptions();if(a&&h){var w=b.map((function(t,n){return g().createElement(h.Option,{key:n,value:t.toString()},(c||e.buildOptionText)(t))}));m=g().createElement(h,{disabled:d,prefixCls:u,showSearch:!1,className:"".concat(f,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},w)}return i&&(s&&(v="boolean"==typeof s?g().createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(f,"-quick-jumper-button")},r.jump_to_confirm):g().createElement("span",{onClick:this.go,onKeyUp:this.go},s)),y=g().createElement("div",{className:"".concat(f,"-quick-jumper")},r.jump_to,g().createElement("input",{disabled:d,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,v)),g().createElement("li",{className:"".concat(f)},m,y)}}]),n}(g().Component);(0,u.A)(w,"defaultProps",{pageSizeOptions:["10","20","50","100"]});const E=w,x=function(e){var t,n=e.rootPrefixCls,r=e.page,o=e.active,a=e.className,i=e.showTitle,s=e.onClick,l=e.onKeyPress,c=e.itemRender,d="".concat(n,"-item"),f=p()(d,"".concat(d,"-").concat(r),(t={},(0,u.A)(t,"".concat(d,"-active"),o),(0,u.A)(t,"".concat(d,"-disabled"),!r),(0,u.A)(t,e.className,a),t)),h=c(r,"page",g().createElement("a",{rel:"nofollow"},r));return h?g().createElement("li",{title:i?r.toString():null,className:f,onClick:function(){s(r)},onKeyPress:function(e){l(e,s,r)},tabIndex:0},h):null};function C(){}function _(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function S(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var O=function(e){(0,l.A)(n,e);var t=(0,c.A)(n);function n(e){var r;(0,a.A)(this,n),r=t.call(this,e),(0,u.A)((0,s.A)(r),"paginationNode",g().createRef()),(0,u.A)((0,s.A)(r),"getJumpPrevPage",(function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))})),(0,u.A)((0,s.A)(r),"getJumpNextPage",(function(){return Math.min(S(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))})),(0,u.A)((0,s.A)(r),"getItemIcon",(function(e,t){var n=r.props.prefixCls,a=e||g().createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(a=g().createElement(e,(0,o.A)({},r.props))),a})),(0,u.A)((0,s.A)(r),"isValid",(function(e){var t=r.props.total;return _(e)&&e!==r.state.current&&_(t)&&t>0})),(0,u.A)((0,s.A)(r),"shouldDisplayQuickJumper",(function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t})),(0,u.A)((0,s.A)(r),"handleKeyDown",(function(e){e.keyCode!==v&&e.keyCode!==b||e.preventDefault()})),(0,u.A)((0,s.A)(r),"handleKeyUp",(function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===y?r.handleChange(t):e.keyCode===v?r.handleChange(t-1):e.keyCode===b&&r.handleChange(t+1)})),(0,u.A)((0,s.A)(r),"handleBlur",(function(e){var t=r.getValidValue(e);r.handleChange(t)})),(0,u.A)((0,s.A)(r),"changePageSize",(function(e){var t=r.state.current,n=S(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)})),(0,u.A)((0,s.A)(r),"handleChange",(function(e){var t=r.props,n=t.disabled,o=t.onChange,a=r.state,i=a.pageSize,s=a.current,l=a.currentInputValue;if(r.isValid(e)&&!n){var c=S(void 0,r.state,r.props),u=e;return e>c?u=c:e<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==l&&r.setState({currentInputValue:u}),o(u,i),u}return s})),(0,u.A)((0,s.A)(r),"prev",(function(){r.hasPrev()&&r.handleChange(r.state.current-1)})),(0,u.A)((0,s.A)(r),"next",(function(){r.hasNext()&&r.handleChange(r.state.current+1)})),(0,u.A)((0,s.A)(r),"jumpPrev",(function(){r.handleChange(r.getJumpPrevPage())})),(0,u.A)((0,s.A)(r),"jumpNext",(function(){r.handleChange(r.getJumpNextPage())})),(0,u.A)((0,s.A)(r),"hasPrev",(function(){return r.state.current>1})),(0,u.A)((0,s.A)(r),"hasNext",(function(){return r.state.current<S(void 0,r.state,r.props)})),(0,u.A)((0,s.A)(r),"runIfEnter",(function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}})),(0,u.A)((0,s.A)(r),"runIfEnterPrev",(function(e){r.runIfEnter(e,r.prev)})),(0,u.A)((0,s.A)(r),"runIfEnterNext",(function(e){r.runIfEnter(e,r.next)})),(0,u.A)((0,s.A)(r),"runIfEnterJumpPrev",(function(e){r.runIfEnter(e,r.jumpPrev)})),(0,u.A)((0,s.A)(r),"runIfEnterJumpNext",(function(e){r.runIfEnter(e,r.jumpNext)})),(0,u.A)((0,s.A)(r),"handleGoTO",(function(e){e.keyCode!==y&&"click"!==e.type||r.handleChange(r.state.currentInputValue)})),(0,u.A)((0,s.A)(r),"renderPrev",(function(e){var t=r.props,n=t.prevIcon,o=(0,t.itemRender)(e,"prev",r.getItemIcon(n,"prev page")),a=!r.hasPrev();return(0,m.isValidElement)(o)?(0,m.cloneElement)(o,{disabled:a}):o})),(0,u.A)((0,s.A)(r),"renderNext",(function(e){var t=r.props,n=t.nextIcon,o=(0,t.itemRender)(e,"next",r.getItemIcon(n,"next page")),a=!r.hasNext();return(0,m.isValidElement)(o)?(0,m.cloneElement)(o,{disabled:a}):o}));var i=e.onChange!==C;"current"in e&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var l=e.defaultCurrent;"current"in e&&(l=e.current);var c=e.defaultPageSize;return"pageSize"in e&&(c=e.pageSize),l=Math.min(l,S(c,void 0,e)),r.state={current:l,currentInputValue:l,pageSize:c},r}return(0,i.A)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode.current){var r,o=this.paginationNode.current.querySelector(".".concat(n,"-item-").concat(t.current));o&&document.activeElement===o&&(null==o||null===(r=o.blur)||void 0===r||r.call(o))}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=S(void 0,this.state,this.props),r=this.state.currentInputValue;return""===t?t:Number.isNaN(Number(t))?r:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,a=e.style,i=e.disabled,s=e.hideOnSinglePage,l=e.total,c=e.locale,d=e.showQuickJumper,y=e.showLessItems,v=e.showTitle,b=e.showTotal,w=e.simple,C=e.itemRender,_=e.showPrevNextJumpers,O=e.jumpPrevIcon,k=e.jumpNextIcon,N=e.selectComponentClass,M=e.selectPrefixCls,A=e.pageSizeOptions,D=this.state,I=D.current,j=D.pageSize,T=D.currentInputValue;if(!0===s&&l<=j)return null;var L=S(void 0,this.state,this.props),P=[],R=null,F=null,B=null,z=null,q=null,U=d&&d.goButton,H=y?1:2,V=I-1>0?I-1:0,K=I+1<L?I+1:L,G=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,o.A)({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||h(n,"aria-"))||t.data&&h(n,"data-")||t.attr&&f.includes(n))&&(r[n]=e[n])})),r}(this.props,{aria:!0,data:!0}),W=b&&g().createElement("li",{className:"".concat(t,"-total-text")},b(l,[0===l?0:(I-1)*j+1,I*j>l?l:I*j]));if(w){U&&(q="boolean"==typeof U?g().createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},c.jump_to_confirm):g().createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},U),q=g().createElement("li",{title:v?"".concat(c.jump_to).concat(I,"/").concat(L):null,className:"".concat(t,"-simple-pager")},q));var Y=this.renderPrev(V);return g().createElement("ul",(0,r.A)({className:p()(t,"".concat(t,"-simple"),(0,u.A)({},"".concat(t,"-disabled"),i),n),style:a,ref:this.paginationNode},G),W,Y?g().createElement("li",{title:v?c.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:p()("".concat(t,"-prev"),(0,u.A)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Y):null,g().createElement("li",{title:v?"".concat(I,"/").concat(L):null,className:"".concat(t,"-simple-pager")},g().createElement("input",{type:"text",value:T,disabled:i,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),g().createElement("span",{className:"".concat(t,"-slash")},"/"),L),g().createElement("li",{title:v?c.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:p()("".concat(t,"-next"),(0,u.A)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(K)),g().createElement(E,{disabled:i,locale:c,rootPrefixCls:t,selectComponentClass:N,selectPrefixCls:M,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:j,pageSizeOptions:A,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:q}))}if(L<=3+2*H){var Q={locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:v,itemRender:C};L||P.push(g().createElement(x,(0,r.A)({},Q,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var $=1;$<=L;$+=1){var Z=I===$;P.push(g().createElement(x,(0,r.A)({},Q,{key:$,page:$,active:Z})))}}else{var J=y?c.prev_3:c.prev_5,X=y?c.next_3:c.next_5,ee=C(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(O,"prev page")),te=C(this.getJumpNextPage(),"jump-next",this.getItemIcon(k,"next page"));_&&(R=ee?g().createElement("li",{title:v?J:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:p()("".concat(t,"-jump-prev"),(0,u.A)({},"".concat(t,"-jump-prev-custom-icon"),!!O))},ee):null,F=te?g().createElement("li",{title:v?X:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:p()("".concat(t,"-jump-next"),(0,u.A)({},"".concat(t,"-jump-next-custom-icon"),!!k))},te):null),z=g().createElement(x,{locale:c,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:L,page:L,active:!1,showTitle:v,itemRender:C}),B=g().createElement(x,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:v,itemRender:C});var ne=Math.max(1,I-H),re=Math.min(I+H,L);I-1<=H&&(re=1+2*H),L-I<=H&&(ne=L-2*H);for(var oe=ne;oe<=re;oe+=1){var ae=I===oe;P.push(g().createElement(x,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:oe,page:oe,active:ae,showTitle:v,itemRender:C}))}I-1>=2*H&&3!==I&&(P[0]=(0,m.cloneElement)(P[0],{className:"".concat(t,"-item-after-jump-prev")}),P.unshift(R)),L-I>=2*H&&I!==L-2&&(P[P.length-1]=(0,m.cloneElement)(P[P.length-1],{className:"".concat(t,"-item-before-jump-next")}),P.push(F)),1!==ne&&P.unshift(B),re!==L&&P.push(z)}var ie=!this.hasPrev()||!L,se=!this.hasNext()||!L,le=this.renderPrev(V),ce=this.renderNext(K);return g().createElement("ul",(0,r.A)({className:p()(t,n,(0,u.A)({},"".concat(t,"-disabled"),i)),style:a,ref:this.paginationNode},G),W,le?g().createElement("li",{title:v?c.prev_page:null,onClick:this.prev,tabIndex:ie?null:0,onKeyPress:this.runIfEnterPrev,className:p()("".concat(t,"-prev"),(0,u.A)({},"".concat(t,"-disabled"),ie)),"aria-disabled":ie},le):null,P,ce?g().createElement("li",{title:v?c.next_page:null,onClick:this.next,tabIndex:se?null:0,onKeyPress:this.runIfEnterNext,className:p()("".concat(t,"-next"),(0,u.A)({},"".concat(t,"-disabled"),se)),"aria-disabled":se},ce):null,g().createElement(E,{disabled:i,locale:c,rootPrefixCls:t,selectComponentClass:N,selectPrefixCls:M,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:j,pageSizeOptions:A,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:U}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=S(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(g().Component);(0,u.A)(O,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:C,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:C,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50});const k=O},309:(e,t,n)=>{"use strict";n.d(t,{JY:()=>io,sx:()=>Lo,gL:()=>Bo});var r=n(1609),o=n.n(r),a=n(4652);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,a.A)(e,t)}var s=n(5890),l=n(6313);function c(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var u="function"==typeof Symbol&&Symbol.observable||"@@observable",d=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+d(),REPLACE:"@@redux/REPLACE"+d(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+d()}};function f(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(c(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(c(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(c(2));var o=e,a=t,i=[],s=i,l=!1;function d(){s===i&&(s=i.slice())}function h(){if(l)throw new Error(c(3));return a}function m(e){if("function"!=typeof e)throw new Error(c(4));if(l)throw new Error(c(5));var t=!0;return d(),s.push(e),function(){if(t){if(l)throw new Error(c(6));t=!1,d();var n=s.indexOf(e);s.splice(n,1),i=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(c(7));if(void 0===e.type)throw new Error(c(8));if(l)throw new Error(c(9));try{l=!0,a=o(a,e)}finally{l=!1}for(var t=i=s,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:p.INIT}),(r={dispatch:g,subscribe:m,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(c(10));o=e,g({type:p.REPLACE})}})[u]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(c(11));function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[u]=function(){return this},e},r}function h(e,t){return function(){return t(e.apply(this,arguments))}}function m(e,t){if("function"==typeof e)return h(e,t);if("object"!=typeof e||null===e)throw new Error(c(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=h(o,t))}return n}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var y=o().createContext(null),v=function(e){e()},b=function(){return v},w={notify:function(){},get:function(){return[]}};function E(e,t){var n,r=w;function o(){i.onStateChange&&i.onStateChange()}function a(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=b(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var i={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=w)},getListeners:function(){return r}};return i}var x="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;const C=function(e){var t=e.store,n=e.context,a=e.children,i=(0,r.useMemo)((function(){var e=E(t);return{store:t,subscription:e}}),[t]),s=(0,r.useMemo)((function(){return t.getState()}),[t]);x((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,s]);var l=n||y;return o().createElement(l.Provider,{value:i},a)};var _=n(5045),S=n(1035),O=n.n(S),k=n(8141),N=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],M=["reactReduxForwardedRef"],A=[],D=[null,null];function I(e,t){var n=e[1];return[t.payload,n+1]}function j(e,t,n){x((function(){return e.apply(void 0,t)}),n)}function T(e,t,n,r,o,a,i){e.current=r,t.current=o,n.current=!1,a.current&&(a.current=null,i())}function L(e,t,n,r,o,a,i,s,l,c){if(e){var u=!1,d=null,p=function(){if(!u){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,d=e}n||(d=null),e===a.current?i.current||l():(a.current=e,s.current=e,i.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=p,n.trySubscribe(),p(),function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var P=function(){return[null,0]};function R(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,i=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,d=void 0===u?void 0:u,p=n.shouldHandleStateChanges,f=void 0===p||p,h=n.storeKey,m=void 0===h?"store":h,g=(n.withRef,n.forwardRef),v=void 0!==g&&g,b=n.context,w=void 0===b?y:b,x=(0,_.A)(n,N),C=w;return function(t){var n=t.displayName||t.name||"Component",a=i(n),l=(0,s.A)({},x,{getDisplayName:i,methodName:c,renderCountProp:d,shouldHandleStateChanges:f,storeKey:m,displayName:a,wrappedComponentName:n,WrappedComponent:t}),u=x.pure,p=u?r.useMemo:function(e){return e()};function h(n){var a=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,_.A)(n,M);return[n.context,e,t]}),[n]),i=a[0],c=a[1],u=a[2],d=(0,r.useMemo)((function(){return i&&i.Consumer&&(0,k.isContextConsumer)(o().createElement(i.Consumer,null))?i:C}),[i,C]),h=(0,r.useContext)(d),m=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(h)&&Boolean(h.store);var g=m?n.store:h.store,y=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,l)}(g)}),[g]),v=(0,r.useMemo)((function(){if(!f)return D;var e=E(g,m?null:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[g,m,h]),b=v[0],w=v[1],x=(0,r.useMemo)((function(){return m?h:(0,s.A)({},h,{subscription:b})}),[m,h,b]),S=(0,r.useReducer)(I,A,P),O=S[0][0],N=S[1];if(O&&O.error)throw O.error;var R=(0,r.useRef)(),F=(0,r.useRef)(u),B=(0,r.useRef)(),z=(0,r.useRef)(!1),q=p((function(){return B.current&&u===F.current?B.current:y(g.getState(),u)}),[g,O,u]);j(T,[F,R,z,u,q,B,w]),j(L,[f,g,b,y,F,R,z,B,w,N],[g,b,y]);var U=(0,r.useMemo)((function(){return o().createElement(t,(0,s.A)({},q,{ref:c}))}),[c,t,q]);return(0,r.useMemo)((function(){return f?o().createElement(d.Provider,{value:x},U):U}),[d,U,x])}var g=u?o().memo(h):h;if(g.WrappedComponent=t,g.displayName=h.displayName=a,v){var y=o().forwardRef((function(e,t){return o().createElement(g,(0,s.A)({},e,{reactReduxForwardedRef:t}))}));return y.displayName=a,y.WrappedComponent=t,O()(y,t)}return O()(g,t)}}function F(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function B(e,t){if(F(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!F(e[n[o]],t[n[o]]))return!1;return!0}function z(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function q(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function U(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=q(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=q(o),o=r(t,n)),o},r}}const H=[function(e){return"function"==typeof e?U(e):void 0},function(e){return e?void 0:z((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?z((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}],V=[function(e){return"function"==typeof e?U(e):void 0},function(e){return e?void 0:z((function(){return{}}))}];function K(e,t,n){return(0,s.A)({},n,e,t)}const G=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,a=n.areMergedPropsEqual,i=!1;return function(t,n,s){var l=e(t,n,s);return i?o&&a(l,r)||(r=l):(i=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return K}}];var W=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Y(e,t,n,r){return function(o,a){return n(e(o,a),t(r,a),a)}}function Q(e,t,n,r,o){var a,i,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,p=o.areStatePropsEqual,f=!1;return function(o,h){return f?function(o,f){var h,m,g=!d(f,i),y=!u(o,a,f,i);return a=o,i=f,g&&y?(s=e(a,i),t.dependsOnOwnProps&&(l=t(r,i)),c=n(s,l,i)):g?(e.dependsOnOwnProps&&(s=e(a,i)),t.dependsOnOwnProps&&(l=t(r,i)),c=n(s,l,i)):y?(h=e(a,i),m=!p(h,s),s=h,m&&(c=n(s,l,i)),c):c}(o,h):(s=e(a=o,i=h),l=t(r,i),c=n(s,l,i),f=!0,c)}}function $(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,a=(0,_.A)(t,W),i=n(e,a),s=r(e,a),l=o(e,a);return(a.pure?Q:Y)(i,s,l,e,a)}var Z=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function J(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function X(e,t){return e===t}function ee(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?R:n,o=t.mapStateToPropsFactories,a=void 0===o?V:o,i=t.mapDispatchToPropsFactories,l=void 0===i?H:i,c=t.mergePropsFactories,u=void 0===c?G:c,d=t.selectorFactory,p=void 0===d?$:d;return function(e,t,n,o){void 0===o&&(o={});var i=o,c=i.pure,d=void 0===c||c,f=i.areStatesEqual,h=void 0===f?X:f,m=i.areOwnPropsEqual,g=void 0===m?B:m,y=i.areStatePropsEqual,v=void 0===y?B:y,b=i.areMergedPropsEqual,w=void 0===b?B:b,E=(0,_.A)(i,Z),x=J(e,a,"mapStateToProps"),C=J(t,l,"mapDispatchToProps"),S=J(n,u,"mergeProps");return r(p,(0,s.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:C,initMergeProps:S,pure:d,areStatesEqual:h,areOwnPropsEqual:g,areStatePropsEqual:v,areMergedPropsEqual:w},E))}}const te=ee();var ne,re=n(5795),oe=n.n(re);function ae(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),a=(0,r.useRef)(n),i=o.current||Boolean(t&&a.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.current.inputs))?a.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){o.current=!1,a.current=i}),[i]),i.result}ne=re.unstable_batchedUpdates,v=ne;var ie=ae,se=function(e,t){return ae((function(){return e}),t)},le=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},ce=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ue=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},de={top:0,right:0,bottom:0,left:0},pe=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?de:n,o=e.border,a=void 0===o?de:o,i=e.padding,s=void 0===i?de:i,l=le(ce(t,r)),c=le(ue(t,a)),u=le(ue(c,s));return{marginBox:l,borderBox:le(t),paddingBox:c,contentBox:u,margin:r,border:a,padding:s}},fe=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(){throw new Error("Invariant failed")}(),n},he=function(e,t){var n,r,o=e.borderBox,a=e.border,i=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return pe({borderBox:l,border:a,margin:i,padding:s})},me=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),he(e,t)},ge=function(e,t){var n={top:fe(t.marginTop),right:fe(t.marginRight),bottom:fe(t.marginBottom),left:fe(t.marginLeft)},r={top:fe(t.paddingTop),right:fe(t.paddingRight),bottom:fe(t.paddingBottom),left:fe(t.paddingLeft)},o={top:fe(t.borderTopWidth),right:fe(t.borderRightWidth),bottom:fe(t.borderBottomWidth),left:fe(t.borderLeftWidth)};return pe({borderBox:e,margin:n,padding:r,border:o})},ye=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ge(t,n)},ve=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function be(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||ve(r)&&ve(o)))return!1;var r,o;return!0}const we=function(e,t){var n;void 0===t&&(t=be);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}},Ee=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function xe(e,t){}function Ce(){}function _e(e,t,n){var r=t.map((function(t){var r,o,a=(r=n,o=t.options,(0,s.A)({},r,{},o));return e.addEventListener(t.eventName,t.fn,a),function(){e.removeEventListener(t.eventName,t.fn,a)}}));return function(){r.forEach((function(e){e()}))}}xe.bind(null,"warn"),xe.bind(null,"error");var Se=!0,Oe="Invariant failed";function ke(e){this.message=e}function Ne(e,t){if(!e)throw new ke(Se?Oe:Oe+": "+(t||""))}ke.prototype.toString=function(){return this.message};var Me=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=Ce,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof ke&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}i(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=_e(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof ke))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(o().Component),Ae=function(e){return e+1},De=function(e,t){var n=e.droppableId===t.droppableId,r=Ae(e.index),o=Ae(t.index);return n?"\n      You have moved the item from position "+r+"\n      to position "+o+"\n    ":"\n    You have moved the item from position "+r+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+o+"\n  "},Ie=function(e,t,n){return t.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},je=function(e){return"\n  The item has returned to its starting position\n  of "+Ae(e.index)+"\n"},Te={dragHandleUsageInstructions:"\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n  You have lifted an item in position "+Ae(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return De(e.source,t);var n=e.combine;return n?Ie(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+je(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+De(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+Ie(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+je(e.source)+"\n  "}},Le={x:0,y:0},Pe=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Re=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Fe=function(e,t){return e.x===t.x&&e.y===t.y},Be=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},ze=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},qe=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ue=function(e,t){return Math.min.apply(Math,t.map((function(t){return qe(e,t)})))},He=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ve=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ke=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ge=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=le({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):le(e)},We=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Ve(e,t.scroll.diff.displacement):e}(t.marginBox,o),i=function(e,t,n){var r;return n&&n.increasedBy?(0,s.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Ge(i,o)}},Ye=function(e,t){e.frame||Ne(!1);var n=e.frame,r=Re(t,n.scroll.initial),o=Be(r),a=(0,s.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),i=We({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,s.A)({},e,{frame:a,subject:i})};function Qe(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function $e(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Ze(e,t){if(e.find)return e.find(t);var n=$e(e,t);return-1!==n?e[n]:void 0}function Je(e){return Array.prototype.slice.call(e)}var Xe=we((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),et=we((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),tt=we((function(e){return Qe(e)})),nt=we((function(e){return Qe(e)})),rt=we((function(e,t){var n=nt(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function ot(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function at(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var it=we((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),st=function(e,t){return e.descriptor.droppableId===t.descriptor.id},lt={point:Le,value:0},ct={invisible:{},visible:{},all:[]},ut={displaced:ct,displacedBy:lt,at:null},dt=function(e,t){return function(n){return e<=n&&n<=t}},pt=function(e){var t=dt(e.top,e.bottom),n=dt(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(o&&a)return!0;var i=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!i||!s)||i&&a||s&&o}},ft=function(e){var t=dt(e.top,e.bottom),n=dt(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},ht={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},mt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},gt=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,i=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Le;return Ve(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(i,n,a)&&function(e,t,n){return n(t)(e)}(i,r,a)},yt=function(e){return gt((0,s.A)({},e,{isVisibleThroughFrameFn:ft}))};function vt(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,a=e.forceShouldAnimate,i=e.last;return t.reduce((function(e,t){var l,c=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return le(ce(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),l={target:c,destination:n,viewport:o,withDroppableDisplacement:!0},!gt((0,s.A)({},l,{isVisibleThroughFrameFn:pt})))return e.invisible[t.descriptor.id]=!0,e;var d=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var a=o[e];return!a||a.shouldAnimate}(u,i,a),p={draggableId:u,shouldAnimate:d};return e.visible[u]=p,e}),{all:[],visible:{},invisible:{}})}function bt(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,a=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:ct,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:a}}}}function wt(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,a=e.displacedBy,i=e.last,s=e.index,l=e.forceShouldAnimate,c=st(t,r);if(null==s)return bt({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});var u=Ze(n,(function(e){return e.descriptor.index===s}));if(!u)return bt({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});var d=it(t,n),p=n.indexOf(u);return{displaced:vt({afterDragging:d.slice(p),destination:r,displacedBy:a,last:i,viewport:o.frame,forceShouldAnimate:l}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function Et(e,t){return Boolean(t.effected[e])}var xt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Ct=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},_t=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return ze(t.line,n.marginBox[t.end]+xt(t,r),Ct(t,n.marginBox,r))},St=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return ze(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Ct(t,n.marginBox,r))},Ot=function(e,t){var n=e.frame;return n?Pe(t,n.scroll.diff.displacement):t},kt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.afterCritical,i=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,a=e.afterCritical,i=rt(o.descriptor.id,r),s=n.page,l=o.axis;if(!i.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return ze(t.line,n.contentBox[t.start]+xt(t,r),Ct(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var p=r[d];if(Et(d,a))return St({axis:l,moveRelativeTo:p.page,isMoving:s});var f=he(p.page,u.point);return St({axis:l,moveRelativeTo:f,isMoving:s})}var h=i[i.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(Et(h.descriptor.id,a)){var m=he(h.page,Be(a.displacedBy.point));return _t({axis:l,moveRelativeTo:m,isMoving:s})}return _t({axis:l,moveRelativeTo:h.page,isMoving:s})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=at(n);o||Ne(!1);var a=o.draggableId,i=r[a].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,a=Boolean(t.visible[r]||t.invisible[r]);return Et(r,n)?a?Le:Be(o.point):a?o.point:Le}({displaced:n.displaced,afterCritical:t,combineWith:a,displacedBy:n.displacedBy});return Pe(i,s)}({impact:t,draggables:o,afterCritical:a}):i}(e),n=e.droppable;return n?Ot(n,t):t},Nt=function(e,t){var n=Re(t,e.scroll.initial),r=Be(n);return{frame:le({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Mt(e,t){return e.map((function(e){return t[e]}))}var At=function(e){var t,n,r=e.pageBorderBoxCenter,o=e.draggable,a=(t=e.viewport,n=r,Pe(t.scroll.diff.displacement,n)),i=Re(a,o.page.borderBox.center);return Pe(o.client.borderBox.center,i)},Dt=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,i=e.onlyOnMainAxis,l=void 0!==i&&i,c=Re(r,t.page.borderBox.center),u={target:Ve(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return gt((0,s.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=dt(e.top,e.bottom),r=dt(e.left,e.right);return function(e){return t===ht?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):yt(u)},It=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,i=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=rt(r.descriptor.id,o),p=st(n,r),f=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!ot(a))return null;function i(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,s.A)({},a,{at:t})}var l=a.displaced.all,c=l.length?l[0]:null;if(t)return c?i(c):null;var u=it(n,o);if(!c)return u.length?i(u[u.length-1].descriptor.id):null;var d=$e(u,(function(e){return e.descriptor.id===c}));-1===d&&Ne(!1);var p=d-1;return p<0?null:i(u[p].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,a=e.destination,i=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||Ne(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var a=o.index,i=t?a+1:a-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return i<s||i>(n?l:l+1)?null:i}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:i});return null==d?null:wt({draggable:r,insideDestination:i,destination:a,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var a=r.draggableId,i=n[a].descriptor.index;return Et(a,o)?t?i:i-1:t?i+1:i}({isMovingForward:t,destination:a,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==p?null:wt({draggable:r,insideDestination:i,destination:a,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:p})}({isMovingForward:t,isInHomeList:p,draggable:n,draggables:o,destination:r,insideDestination:d,previousImpact:a,viewport:i,afterCritical:u});if(!f)return null;var h=kt({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:u});if(Dt({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:At({pageBorderBoxCenter:h,draggable:n,viewport:i}),impact:f,scrollJumpRequest:null};var m=Re(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,i=Nt(n,Pe(n.scroll.current,a)),l=r.frame?Ye(r,Pe(r.frame.scroll.current,a)):r,c=t.displaced,u=vt({afterDragging:Mt(c.all,o),destination:r,displacedBy:t.displacedBy,viewport:i.frame,last:c,forceShouldAnimate:!1}),d=vt({afterDragging:Mt(c.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),p={},f={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?f[e]=t:p[e]=!0})),(0,s.A)({},t,{displaced:{all:c.all,invisible:p,visible:f}})}({impact:f,viewport:i,destination:r,draggables:o,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},jt=function(e){var t=e.subject.active;return t||Ne(!1),t},Tt=function(e,t){var n=e.page.borderBox.center;return Et(e.descriptor.id,t)?Re(n,t.displacedBy.point):n},Lt=function(e,t){var n=e.page.borderBox;return Et(e.descriptor.id,t)?Ve(n,Be(t.displacedBy.point)):n},Pt=we((function(e,t){var n=t[e.line];return{value:n,point:ze(e.line,n)}})),Rt=function(e,t){return(0,s.A)({},e,{scroll:(0,s.A)({},e.scroll,{max:t})})},Ft=function(e,t,n){var r=e.frame;st(t,e)&&Ne(!1),e.subject.withPlaceholder&&Ne(!1);var o=Pt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return ze(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],a=rt(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return a<=0?null:ze(r.line,a)}(e,o,n),i={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=We({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame});return(0,s.A)({},e,{subject:l})}var c=a?Pe(r.scroll.max,a):r.scroll.max,u=Rt(r,c),d=We({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:u});return(0,s.A)({},e,{subject:d,frame:u})},Bt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},zt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Bt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),a=t.dimensions.droppables[t.critical.droppable.id],i=r||a,s=i.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,f=p.draggables,h=p.droppables;return l?It({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:i,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,a=e.draggables,i=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,a=e.viewport,i=r.subject.active;if(!i)return null;var s=r.axis,l=dt(i[s.start],i[s.end]),c=tt(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return pt(a.frame)(jt(e))})).filter((function(e){var n=jt(e);return t?i[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<i[s.crossAxisStart]})).filter((function(e){var t=jt(e),n=dt(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(i[s.start])||n(i[s.end])})).sort((function(e,n){var r=jt(e)[s.crossAxisStart],o=jt(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return jt(e)[s.crossAxisStart]===jt(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return dt(jt(e)[s.start],jt(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return jt(e)[s.start]-jt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Ue(n,Ke(jt(e))),o=Ue(n,Ke(jt(t)));return r!==o?r-o:jt(e)[s.start]-jt(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:i,viewport:s});if(!c)return null;var u=rt(c.descriptor.id,a),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,a=e.insideDestination.filter((function(e){return yt({target:Lt(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var a=qe(t,Ot(r,Tt(e,o))),i=qe(t,Ot(r,Tt(n,o)));return a<i?-1:i<a?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),p=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,a=e.draggables,i=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:ct,displacedBy:lt,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},u=kt({impact:c,draggable:o,droppable:i,draggables:a,afterCritical:l}),d=st(o,i)?i:Ft(i,o,a);return Dt({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p,f=Boolean(t[i.axis.line]<=n.page.borderBox.center[i.axis.line]),h=(p=n.descriptor.index,n.descriptor.id===o.descriptor.id||f?p:p+1);return wt({draggable:o,insideDestination:r,destination:i,viewport:s,displacedBy:Pt(i.axis,o.displaceBy),last:ct,index:h})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:a,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!p)return null;var f=kt({impact:p,draggable:r,droppable:c,draggables:a,afterCritical:l});return{clientSelection:At({pageBorderBoxCenter:f,draggable:r,viewport:s}),impact:p,scrollJumpRequest:null}}({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:i,draggables:f,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function qt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Ut(e){var t=dt(e.top,e.bottom),n=dt(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}var Ht=function(e,t){return le(Ve(e,t))};function Vt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Kt=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,a=e.previousImpact,i=e.viewport,s=e.afterCritical,l=Ht(n.page.borderBox,t),c=function(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=tt(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Ut(o)(t.center))return!0;var a=e.axis,i=o.center[a.crossAxisLine],s=t[a.crossAxisStart],l=t[a.crossAxisEnd],c=dt(o[a.crossAxisStart],o[a.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<i:l>i)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map((function(e){var n=e.axis,o=ze(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:qe(r,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:l,draggable:n,droppables:o});if(!c)return ut;var u=o[c],d=rt(u.descriptor.id,r),p=function(e,t){var n=e.frame;return n?Ht(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,a=e.insideDestination,i=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Pt(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],p=Ze(it(t,a),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,a=Et(t,i),l=Vt({displaced:r.displaced,id:t});return a?l?d>n[s.start]+o&&d<n[s.end]-o:u>n[s.start]-c+o&&u<n[s.end]-c-o:l?d>n[s.start]+c+o&&d<n[s.end]+c-o:u>n[s.start]+o&&u<n[s.end]-o}));return p?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:a,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.last,i=e.viewport,s=e.afterCritical,l=r.axis,c=Pt(r.axis,n.displaceBy),u=c.value,d=t[l.start],p=t[l.end],f=function(e){var t=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ze(it(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=Et(t,s),o=Vt({displaced:a,id:t});return r?o?p<=n:d<n-u:o?p<=n+u:d<n})),inHomeList:st(n,r)});return wt({draggable:n,insideDestination:o,destination:r,viewport:i,last:a,displacedBy:c,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:u,insideDestination:d,last:a.displaced,viewport:i,afterCritical:s})},Gt=function(e,t){var n;return(0,s.A)({},e,((n={})[t.descriptor.id]=t,n))},Wt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,a=e.impact,i=e.scrollJumpRequest,l=o||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,d=Re(u,t.initial.client.selection),p={offset:d,selection:u,borderBoxCenter:Pe(t.initial.client.borderBoxCenter,d)},f={selection:Pe(p.selection,l.scroll.current),borderBoxCenter:Pe(p.borderBoxCenter,l.scroll.current),offset:Pe(p.offset,l.scroll.diff.value)},h={client:p,page:f};if("COLLECTING"===t.phase)return(0,s.A)({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:h});var m=c.draggables[t.critical.draggable.id],g=a||Kt({pageOffset:f.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),y=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.impact,a=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Bt(t),a=Bt(n);if(!o)return r;if(o===a)return r;var i=r[o];if(!i.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||Ne(!1);var n=e.frame;if(!n){var r=We({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,s.A)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||Ne(!1);var a=Rt(n,o),i=We({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,s.A)({},e,{subject:i,frame:a})}(i);return Gt(r,l)}({previousImpact:e.previousImpact,impact:o,droppables:r}),i=Bt(o);if(!i)return a;var l=r[i];if(st(t,l))return a;if(l.subject.withPlaceholder)return a;var c=Ft(l,t,n);return Gt(a,c)}({draggable:m,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,s.A)({},t,{current:h,dimensions:{draggables:c.draggables,droppables:y},impact:g,viewport:l,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null})},Yt=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,a=e.forceShouldAnimate,i=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(i.all,r),c=vt({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:i});return(0,s.A)({},t,{displaced:c})},Qt=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.viewport,i=e.afterCritical,s=kt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i});return At({pageBorderBoxCenter:s,draggable:n,viewport:a})},$t=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&Ne(!1);var o=t.impact,a=r||t.viewport,i=n||t.dimensions,s=i.draggables,l=i.droppables,c=s[t.critical.draggable.id],u=Bt(o);u||Ne(!1);var d=l[u],p=Yt({impact:o,viewport:a,destination:d,draggables:s}),f=Qt({impact:p,draggable:c,droppable:d,draggables:s,viewport:a,afterCritical:t.afterCritical});return Wt({impact:p,clientSelection:f,state:t,dimensions:i,viewport:a})},Zt=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,a=Pt(n.axis,t.displaceBy),i=rt(n.descriptor.id,r),s=i.indexOf(t);-1===s&&Ne(!1);var l,c=i.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:a,effected:u};return{impact:{displaced:vt({afterDragging:c,destination:n,displacedBy:a,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:a,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},Jt=function(e){return"SNAP"===e.movementMode},Xt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Gt(e.droppables,t)}}(e.dimensions,t);return!Jt(e)||n?Wt({state:e,dimensions:r}):$t({state:e,dimensions:r})};function en(e){return e.isDragging&&"SNAP"===e.movementMode?(0,s.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var tn={phase:"IDLE",completed:null,shouldFlush:!1},nn=function(e,t){if(void 0===e&&(e=tn),"FLUSH"===t.type)return(0,s.A)({},tn,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&Ne(!1);var n=t.payload,r=n.critical,o=n.clientSelection,a=n.viewport,i=n.dimensions,l=n.movementMode,c=i.draggables[r.draggable.id],u=i.droppables[r.droppable.id],d={selection:o,borderBoxCenter:c.client.borderBox.center,offset:Le},p={client:d,page:{selection:Pe(d.selection,a.scroll.initial),borderBoxCenter:Pe(d.selection,a.scroll.initial),offset:Pe(d.selection,a.scroll.diff.value)}},f=tt(i.droppables).every((function(e){return!e.isFixedOnPage})),h=Zt({draggable:c,home:u,draggables:i.draggables,viewport:a}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:i,initial:p,current:p,isWindowScrollAllowed:f,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&Ne(!1),(0,s.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ne(!1),function(e){var t=e.state,n=e.published,r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Ye(n,e.scroll)})),o=(0,s.A)({},t.dimensions.droppables,{},Xe(r)),a=et(function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||Ne(!1),t}(n[t]),i=a.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=he(t.client,n),a=me(o,r);return(0,s.A)({},t,{placeholder:(0,s.A)({},t.placeholder,{client:o}),client:o,page:a})}({draggable:e,offset:Pe(o,i),initialWindowScroll:r.scroll.initial});return l}))}({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),i=(0,s.A)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete i[e]}));var l={droppables:o,draggables:i},c=Bt(t.impact),u=c?l.droppables[c]:null,d=l.draggables[t.critical.draggable.id],p=l.droppables[t.critical.droppable.id],f=Zt({draggable:d,home:p,draggables:i,viewport:t.viewport}),h=f.impact,m=f.afterCritical,g=u&&u.isCombineEnabled?t.impact:h,y=Kt({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:t.viewport,afterCritical:m}),v=(0,s.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:y,onLiftImpact:h,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:(0,s.A)({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||Ne(!1);var g=t.payload.client;return Fe(g,e.current.client.selection)?e:Wt({state:e,clientSelection:g,impact:Jt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return en(e);if("COLLECTING"===e.phase)return en(e);qt(e)||Ne(!1);var y=t.payload,v=y.id,b=y.newScroll,w=e.dimensions.droppables[v];if(!w)return e;var E=Ye(w,b);return Xt(e,E,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||Ne(!1);var x=t.payload,C=x.id,_=x.isEnabled,S=e.dimensions.droppables[C];S||Ne(!1),S.isEnabled===_&&Ne(!1);var O=(0,s.A)({},S,{isEnabled:_});return Xt(e,O,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||Ne(!1);var k=t.payload,N=k.id,M=k.isCombineEnabled,A=e.dimensions.droppables[N];A||Ne(!1),A.isCombineEnabled===M&&Ne(!1);var D=(0,s.A)({},A,{isCombineEnabled:M});return Xt(e,D,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;qt(e)||Ne(!1),e.isWindowScrollAllowed||Ne(!1);var I=t.payload.newScroll;if(Fe(e.viewport.scroll.current,I))return en(e);var j=Nt(e.viewport,I);return Jt(e)?$t({state:e,viewport:j}):Wt({state:e,viewport:j})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!qt(e))return e;var T=t.payload.maxScroll;if(Fe(T,e.viewport.scroll.max))return e;var L=(0,s.A)({},e.viewport,{scroll:(0,s.A)({},e.viewport.scroll,{max:T})});return(0,s.A)({phase:"DRAGGING"},e,{viewport:L})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&Ne(!1);var P=zt({state:e,type:t.type});return P?Wt({state:e,impact:P.impact,clientSelection:P.clientSelection,scrollJumpRequest:P.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var R=t.payload.reason;return"COLLECTING"!==e.phase&&Ne(!1),(0,s.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:R})}if("DROP_ANIMATE"===t.type){var F=t.payload,B=F.completed,z=F.dropDuration,q=F.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ne(!1),{phase:"DROP_ANIMATING",completed:B,dropDuration:z,newHomeClientOffset:q,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},rn=function(e){return{type:"LIFT",payload:e}},on=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},an=function(){return{type:"COLLECTION_STARTING",payload:null}},sn=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},ln=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},cn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},un=function(e){return{type:"MOVE",payload:e}},dn=function(){return{type:"MOVE_UP",payload:null}},pn=function(){return{type:"MOVE_DOWN",payload:null}},fn=function(){return{type:"MOVE_RIGHT",payload:null}},hn=function(){return{type:"MOVE_LEFT",payload:null}},mn=function(){return{type:"FLUSH",payload:null}},gn=function(e){return{type:"DROP_COMPLETE",payload:e}},yn=function(e){return{type:"DROP",payload:e}},vn="cubic-bezier(.2,1,.1,1)",bn=0,wn=.7,En=.75,xn="0.2s cubic-bezier(0.2, 0, 0, 1)",Cn={fluid:"opacity "+xn,snap:"transform "+xn+", opacity "+xn,drop:function(e){var t=e+"s "+vn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+xn,placeholder:"height "+xn+", width "+xn+", margin "+xn},Sn=function(e){return Fe(e,Le)?null:"translate("+e.x+"px, "+e.y+"px)"},On=Sn,kn=.33,Nn=.55-kn,Mn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),a=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&Ne(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Ne(!1);var i=o.critical,l=o.dimensions,c=l.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,a=e.viewport,i=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,s.A)({},r,{displaced:ct}),didDropInsideDroppable:!0}:{impact:Yt({draggables:t,impact:i,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=u.impact,p=u.didDropInsideDroppable,f=p?ot(d):null,h=p?at(d):null,m={index:i.draggable.index,droppableId:i.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:f,combine:h},y=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,a=e.afterCritical,i=r.draggables,s=r.droppables,l=Bt(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Qt({impact:t,draggable:n,draggables:i,afterCritical:a,droppable:c||u,viewport:o});return Re(d,n.client.borderBox.center)}({impact:d,draggable:c,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:d};if(!Fe(o.current.client.offset,y)||Boolean(g.combine)){var b=function(e){var t=e.reason,n=qe(e.current,e.destination);if(n<=0)return kn;if(n>=1500)return.55;var r=kn+Nn*(n/1500);return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:y,reason:a});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:y,dropDuration:b,completed:v}})}else n(gn({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},An=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Dn=function(e){var t=function(e){var t=e.onWindowScroll,n=Ee((function(){t(An())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=Ce;function a(){return o!==Ce}return{start:function(){a()&&Ne(!1),o=_e(window,[r])},stop:function(){a()||Ne(!1),n.cancel(),o(),o=Ce},isActive:a}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},In=function(e,t){t()},jn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Tn=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Ln=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=$e(n,(function(t){return t.timerId===e}));-1===t&&Ne(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,a=function(n){o||Ne(!1),o=null,In(0,(function(){return Tn(e().onDragEnd,n,t,Te.onDragEnd)}))};return{beforeCapture:function(t,n){o&&Ne(!1),In(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){o&&Ne(!1),In(0,(function(){var r=e().onBeforeDragStart;r&&r(jn(t,n))}))},start:function(n,a){o&&Ne(!1);var i=jn(n,a);o={mode:a,lastCritical:n,lastLocation:i.source,lastCombine:null},r.add((function(){In(0,(function(){return Tn(e().onDragStart,i,t,Te.onDragStart)}))}))},update:function(n,a){var i=ot(a),l=at(a);o||Ne(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(n,o.lastCritical);c&&(o.lastCritical=n);var u,d,p=(d=i,!(null==(u=o.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));p&&(o.lastLocation=i);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,l);if(f&&(o.lastCombine=l),c||p||f){var h=(0,s.A)({},jn(n,o.mode),{combine:l,destination:i});r.add((function(){In(0,(function(){return Tn(e().onDragUpdate,h,t,Te.onDragUpdate)}))}))}},flush:function(){o||Ne(!1),r.flush()},drop:a,abort:function(){if(o){var e=(0,s.A)({},jn(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});a(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var a=r.payload.completed.result;return n.flush(),t(r),void n.drop(a)}if(t(r),"FLUSH"!==r.type){var i=e.getState();"DRAGGING"===i.phase&&n.update(i.critical,i.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Pn=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&Ne(!1),e.dispatch(gn({completed:r.completed}))}else t(n)}}},Rn=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=_e(window,[a])}))}}}},Fn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(yn({reason:r.reason})))}}}},Bn=g,zn=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,a=e.getResponders,i=e.announce,s=e.autoScroller;return f(nn,Bn(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(c(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=g.apply(void 0,a)(n.dispatch),(0,l.A)((0,l.A)({},n),{},{dispatch:r})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var a=o.payload,i=a.id,s=a.clientSelection,l=a.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(gn({completed:c.completed})),"IDLE"!==n().phase&&Ne(!1),r(mn()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:l}});var u={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),p=d.critical,f=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:f,clientSelection:s,movementMode:l,viewport:h}})}else t(o)}}}}(n),Mn,Pn,Rn,Fn,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&Ne(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(s),Dn,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Ln(a,i))))},qn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,a=Re({x:n,y:t},{x:o,y:r});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},Un=function(){var e=document.documentElement;return e||Ne(!1),e},Hn=function(){var e=Un();return qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Vn(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var Kn,Gn,Wn=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,a=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null;var e=r,a=e.additions,i=e.removals,s=e.modified,l=Object.keys(a).map((function(e){return t.draggable.getById(e).getDimension(Le)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(i),modified:c};r={additions:{},removals:{},modified:{}},n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],a()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],a()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||Ne(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Vn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Vn(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||Ne(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||Ne(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||Ne(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&Ne(!1);var r=e.draggable.getById(t.draggableId),a=e.droppable.getById(r.descriptor.droppableId),i={draggable:r.descriptor,droppable:a.descriptor},s=e.subscribe(o);return n={critical:i,unsubscribe:s},function(e){var t,n,r,o,a,i,s,l=e.critical,c=e.scrollOptions,u=e.registry,d=(t=An(),n=Hn(),r=t.y,o=t.x,i=(a=Un()).clientWidth,s=a.clientHeight,{frame:le({top:r,left:o,right:o+i,bottom:r+s}),scroll:{initial:t,current:t,max:n,diff:{value:Le,displacement:Le}}}),p=d.scroll.current,f=l.droppable,h=u.droppable.getAllByType(f.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(p,c)})),m=u.draggable.getAllByType(l.draggable.type).map((function(e){return e.getDimension(p)}));return{dimensions:{draggables:et(m),droppables:Xe(h)},critical:l,viewport:d}}({critical:i,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Yn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},Qn=function(e){window.scrollBy(e.x,e.y)},$n=we((function(e){return tt(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Zn=function(e){return Math.pow(e,2)},Jn=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},Xn=360,er=1200,tr=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,a=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=Jn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*Zn(1-n);return Math.ceil(r)}(t,n);return 0===a?0:o?Math.max(function(e,t){var n=t,r=er,o=Date.now()-n;if(o>=er)return e;if(o<Xn)return 1;var a=Jn({startOfRange:Xn,endOfRange:r,current:o}),i=e*Zn(a);return Math.ceil(i)}(a,r),1):a},nr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,a=e.shouldUseTimeDampening,i=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,o);return n[o.end]<n[o.start]?tr({distanceToEdge:n[o.end],thresholds:i,dragStartTime:r,shouldUseTimeDampening:a}):-1*tr({distanceToEdge:n[o.start],thresholds:i,dragStartTime:r,shouldUseTimeDampening:a})},rr=He((function(e){return 0===e?0:e})),or=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,a=e.shouldUseTimeDampening,i={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=nr({container:n,distanceToEdges:i,dragStartTime:t,axis:ht,shouldUseTimeDampening:a}),l=nr({container:n,distanceToEdges:i,dragStartTime:t,axis:mt,shouldUseTimeDampening:a}),c=rr({x:l,y:s});if(Fe(c,Le))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,a=n.width>t.width;return a||o?a&&o?null:{x:a?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?Fe(u,Le)?null:u:null},ar=He((function(e){return 0===e?0:e>0?1:-1})),ir=(Kn=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Pe(t,r),a={x:Kn(o.x,n.x),y:Kn(o.y,n.y)};return Fe(a,Le)?null:a}),sr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},a=ar(r),i=ir({max:o,current:n,change:a});return!i||0!==a.x&&0===i.x||0!==a.y&&0===i.y},lr=function(e,t){return sr({current:e.scroll.current,max:e.scroll.max,change:t})},cr=function(e,t){var n=e.frame;return!!n&&sr({current:n.scroll.current,max:n.scroll.max,change:t})},ur=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,a=e.scrollDroppable,i=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,a=or({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&lr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:i,shouldUseTimeDampening:r});if(l)return void o(l)}var c=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var a=function(e,t){var n=Ze($n(t),(function(t){return t.frame||Ne(!1),Ut(t.frame.pageMarginBox)(e)}));return n}(t,r);return a}({center:i,destination:Bt(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,a=e.shouldUseTimeDampening,i=t.frame;if(!i)return null;var s=or({dragStartTime:o,container:i.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a});return s&&cr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:i,shouldUseTimeDampening:r});u&&a(c.descriptor.id,u)}},dr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var a=Bt(e.impact);a||Ne(!1);var i=function(e,t){if(!cr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&cr(e,t)?ir({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Re(t,r);return n(e.descriptor.id,o),Re(t,o)}(e.dimensions.droppables[a],o);if(i){var s=e.viewport,l=function(e,t,n){if(!e)return n;if(!lr(t,n))return n;var o=function(e,t){if(!lr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return ir({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var a=Re(n,o);return r(a),Re(n,a)}(e.isWindowScrollAllowed,s,i);l&&function(e,n){var r=Pe(e.current.client.selection,n);t({client:r})}(e,l)}}}},pr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=Ee(e.scrollWindow),r=Ee(t),o=null,a=function(e){o||Ne(!1);var t=o,a=t.shouldUseTimeDampening,i=t.dragStartTime;ur({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:i,shouldUseTimeDampening:a})};return{start:function(e){o&&Ne(!1);var t=Date.now(),n=!1,r=function(){n=!0};ur({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&a(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),a=dr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}},fr="data-rbd",hr={base:Gn=fr+"-drag-handle",draggableId:Gn+"-draggable-id",contextId:Gn+"-context-id"},mr=function(){var e=fr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),gr=function(){var e=fr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),yr={contextId:fr+"-scroll-container-context-id"},vr=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},br=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),a=(n="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ",{selector:o(hr.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),i=[(r="\n      transition: "+Cn.outOfTheWay+";\n    ",{selector:o(mr.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),a,{selector:o(gr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:vr(i,"always"),resting:vr(i,"resting"),dragging:vr(i,"dragging"),dropAnimating:vr(i,"dropAnimating"),userCancel:vr(i,"userCancel")}},wr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Er=function(){var e=document.querySelector("head");return e||Ne(!1),e},xr=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t},Cr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function _r(e){return e instanceof Cr(e).HTMLElement}function Sr(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||Ne(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Qe(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||Ne(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Qe(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Or=o().createContext(null),kr=function(){var e=document.body;return e||Ne(!1),e},Nr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Mr=function(e){return"rbd-announcement-"+e},Ar=0,Dr={separator:"::"};function Ir(e,t){return void 0===t&&(t=Dr),ie((function(){return""+e+t.separator+Ar++}),[t.separator,e])}var jr=o().createContext(null);function Tr(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var Lr,Pr,Rr=((Lr={})[13]=!0,Lr[9]=!0,Lr),Fr=function(e){Rr[e.keyCode]&&e.preventDefault()},Br=function(){var e="visibilitychange";return"undefined"==typeof document?e:Ze([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),zr={type:"IDLE"};function qr(){}var Ur=((Pr={})[34]=!0,Pr[33]=!0,Pr[36]=!0,Pr[35]=!0,Pr);var Hr={type:"IDLE"},Vr={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Kr(e,t){if(null==t)return!1;if(Boolean(Vr[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Kr(e,t.parentElement)}function Gr(e,t){var n=t.target;return!!_r(n)&&Kr(e,n)}var Wr=function(e){return le(e.getBoundingClientRect()).center},Yr=function(){var e="matches";return"undefined"==typeof document?e:Ze([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Qr(e,t){return null==e?null:e[Yr](t)?e:Qr(e.parentElement,t)}function $r(e,t){return e.closest?e.closest(t):Qr(e,t)}function Zr(e){e.preventDefault()}function Jr(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function Xr(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var a=r.draggable.findById(o);return!!a&&!!a.options.isEnabled&&!!Yn(n.getState(),o)}var eo=[function(e){var t=(0,r.useRef)(zr),n=(0,r.useRef)(Ce),o=ie((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){t.preventDefault();var a={x:t.clientX,y:t.clientY};n.current(),u(o,a)}}}}}}),[e]),a=ie((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),i=se((function(){n.current=_e(window,[a,o],{passive:!1,capture:!0})}),[a,o]),s=se((function(){"IDLE"!==t.current.type&&(t.current=zr,n.current(),i())}),[i]),l=se((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=se((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,a=e.clientY;if(0===t){var i={x:n,y:a},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(i);if("PENDING"!==s.type&&Ne(!1),l=s.point,c=i,Math.abs(c.x-l.x)>=5||Math.abs(c.y-l.y)>=5){var l,c;e.preventDefault();var u=s.actions.fluidLift(i);o({type:"DRAGGING",actions:u})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Fr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&Ne(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Br,fn:t}]}({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=_e(window,e,{capture:!0,passive:!1})}),[l,s]),u=se((function(e,n){"IDLE"!==t.current.type&&Ne(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);wr((function(){return i(),function(){n.current()}}),[i])},function(e){var t=(0,r.useRef)(qr),n=ie((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var a=e.tryGetLock(r,l,{sourceEvent:n});if(a){n.preventDefault();var i=!0,s=a.snapLift();t.current(),t.current=_e(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Ur[r.keyCode]?r.preventDefault():Fr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Br,fn:n}]}(s,l),{capture:!0,passive:!1})}}}function l(){i||Ne(!1),i=!1,t.current(),o()}}}}),[e]),o=se((function(){t.current=_e(window,[n],{passive:!1,capture:!0})}),[n]);wr((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(Hr),n=(0,r.useRef)(Ce),o=se((function(){return t.current}),[]),a=se((function(e){t.current=e}),[]),i=ie((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){var a=t.touches[0],i={x:a.clientX,y:a.clientY};n.current(),p(o,i)}}}}}}),[e]),s=se((function(){n.current=_e(window,[i],{capture:!0,passive:!1})}),[i]),l=se((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Hr),n.current(),s())}),[s,a]),c=se((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=se((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:o},r=_e(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],a={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(a)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&Ne(!1);var o=e.touches[0];if(o&&o.force>=.15){var a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}}},{eventName:Br,fn:t}]}(t),e),a=_e(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Br,fn:t}]}(t),e);n.current=function(){r(),a()}}),[c,o,l]),d=se((function(){var e=o();"PENDING"!==e.type&&Ne(!1);var t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,a]),p=se((function(e,t){"IDLE"!==o().type&&Ne(!1);var n=setTimeout(d,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,a,d]);wr((function(){return s(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Hr))}}),[o,s,a]),wr((function(){return _e(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function to(e){var t=e.contextId,n=e.store,o=e.registry,a=e.customSensors,i=e.enableDefaultSensors,l=[].concat(i?eo:[],a||[]),c=(0,r.useState)((function(){return function(){var e=null;function t(){e||Ne(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&Ne(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],u=se((function(e,t){e.isDragging&&!t.isDragging&&c.tryAbandon()}),[c]);wr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();u(e,t),e=t}))}),[c,n,u]),wr((function(){return c.tryAbandon}),[c.tryAbandon]);for(var d=se((function(e){return Xr({lockAPI:c,registry:o,store:n,draggableId:e})}),[c,o,n]),p=se((function(e,r,a){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,i=e.forceSensorStop,l=e.sourceEvent;if(!Xr({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var c=o.draggable.getById(a),u=function(e,t){var n="["+mr.contextId+'="'+e+'"]',r=Ze(Je(document.querySelectorAll(n)),(function(e){return e.getAttribute(mr.id)===t}));return r&&_r(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&Gr(u,l))return null;var d=t.claim(i||Ce),p="PRE_DRAG";function f(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var m=function(e,t){Jr({expected:e,phase:p,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),p="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var a=_e(window,[{eventName:"click",fn:Zr,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}n(),r.dispatch(yn({reason:t}))}return"PRE_DRAG"!==p&&(n(),"PRE_DRAG"!==p&&Ne(!1)),r.dispatch(rn(e.liftActionArgs)),p="DRAGGING",(0,s.A)({isActive:function(){return Jr({expected:"DRAGGING",phase:p,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return Jr({expected:"PRE_DRAG",phase:p,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=Ee((function(e){m((function(){return un({client:e})}))})),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,s.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(dn)},moveRight:function(){return m(fn)},moveDown:function(){return m(pn)},moveLeft:function(){return m(hn)}};return g({liftActionArgs:{id:a,clientSelection:Wr(u),movementMode:"SNAP"},cleanup:Ce,actions:e})},abort:function(){Jr({expected:"PRE_DRAG",phase:p,isLockActive:h,shouldWarn:!0})&&t.release()}}}({lockAPI:c,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[t,c,o,n]),f=se((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof Cr(n).Element))return null;var o=function(e){return"["+hr.contextId+'="'+e+'"]'}(e),a=$r(r,o);return a&&_r(a)?a:null}(e,t);return n?n.getAttribute(hr.draggableId):null}(t,e)}),[t]),h=se((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),m=se((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(mn()))}),[c,n]),g=se(c.isClaimed,[c]),y=ie((function(){return{canGetLock:d,tryGetLock:p,findClosestDraggableId:f,findOptionsForDraggable:h,tryReleaseLock:m,isLockClaimed:g}}),[d,p,f,h,m,g]),v=0;v<l.length;v++)l[v](y)}var no=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function ro(e){return e.current||Ne(!1),e.current}function oo(e){var t=e.contextId,n=e.setCallbacks,a=e.sensors,i=e.nonce,l=e.dragHandleUsageInstructions,c=(0,r.useRef)(null),u=Tr(e),d=se((function(){return no(u.current)}),[u]),p=function(e){var t=ie((function(){return Mr(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,s.A)(e.style,Nr),kr().appendChild(e),function(){setTimeout((function(){var t=kr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),se((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),f=function(e){var t=e.contextId,n=e.text,o=Ir("hidden-text",{separator:"-"}),a=ie((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=a,e.textContent=n,e.style.display="none",kr().appendChild(e),function(){var t=kr();t.contains(e)&&t.removeChild(e)}}),[a,n]),a}({contextId:t,text:l}),h=function(e,t){var n=ie((function(){return br(e)}),[e]),o=(0,r.useRef)(null),a=(0,r.useRef)(null),i=se(we((function(e){var t=a.current;t||Ne(!1),t.textContent=e})),[]),s=se((function(e){var t=o.current;t||Ne(!1),t.textContent=e}),[]);wr((function(){(o.current||a.current)&&Ne(!1);var r=xr(t),l=xr(t);return o.current=r,a.current=l,r.setAttribute(fr+"-always",e),l.setAttribute(fr+"-dynamic",e),Er().appendChild(r),Er().appendChild(l),s(n.always),i(n.resting),function(){var e=function(e){var t=e.current;t||Ne(!1),Er().removeChild(t),e.current=null};e(o),e(a)}}),[t,s,i,n.always,n.resting,e]);var l=se((function(){return i(n.dragging)}),[i,n.dragging]),c=se((function(e){i("DROP"!==e?n.userCancel:n.dropAnimating)}),[i,n.dropAnimating,n.userCancel]),u=se((function(){a.current&&i(n.resting)}),[i,n.resting]);return ie((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,i),g=se((function(e){ro(c).dispatch(e)}),[]),y=ie((function(){return m({publishWhileDragging:on,updateDroppableScroll:sn,updateDroppableIsEnabled:ln,updateDroppableIsCombineEnabled:cn,collectionStarting:an},g)}),[g]),v=function(){var e=ie(Sr,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=ie((function(){return Wn(v,y)}),[v,y]),w=ie((function(){return pr((0,s.A)({scrollWindow:Qn,scrollDroppable:b.scrollDroppable},m({move:un},g)))}),[b.scrollDroppable,g]),E=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),a=(0,r.useRef)(!1),i=se((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),s=se((function(t){var n=function(e,t){var n="["+hr.contextId+'="'+e+'"]',r=Je(document.querySelectorAll(n));if(!r.length)return null;var o=Ze(r,(function(e){return e.getAttribute(hr.draggableId)===t}));return o&&_r(o)?o:null}(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=se((function(e,t){n.current===e&&(n.current=t)}),[]),c=se((function(){o.current||a.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&s(e)})))}),[s]),u=se((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(hr.draggableId)===e&&(n.current=e)}),[]);return wr((function(){return a.current=!0,function(){a.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),ie((function(){return{register:i,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[i,u,c,l])}(t),x=ie((function(){return zn({announce:p,autoScroller:w,dimensionMarshal:b,focusMarshal:E,getResponders:d,styleMarshal:h})}),[p,w,b,E,d,h]);c.current=x;var _=se((function(){var e=ro(c);"IDLE"!==e.getState().phase&&e.dispatch(mn())}),[]),S=se((function(){var e=ro(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(ie((function(){return{isDragging:S,tryAbort:_}}),[S,_]));var O=se((function(e){return Yn(ro(c).getState(),e)}),[]),k=se((function(){return qt(ro(c).getState())}),[]),N=ie((function(){return{marshal:b,focus:E,contextId:t,canLift:O,isMovementAllowed:k,dragHandleUsageInstructionsId:f,registry:v}}),[t,b,f,E,O,k,v]);return to({contextId:t,store:x,registry:v,customSensors:a,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return _}),[_]),o().createElement(jr.Provider,{value:N},o().createElement(C,{context:Or,store:x},e.children))}var ao=0;function io(e){var t=ie((function(){return""+ao++}),[]),n=e.dragHandleUsageInstructions||Te.dragHandleUsageInstructions;return o().createElement(Me,null,(function(r){return o().createElement(oo,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var so=function(e){return function(t){return e===t}},lo=so("scroll"),co=so("auto"),uo=(so("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),po=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return uo(n,lo)||uo(n,co)}(t)?t:e(t.parentElement)},fo=function(e){return{x:e.scrollLeft,y:e.scrollTop}},ho=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},mo={passive:!1},go={passive:!0},yo=function(e){return e.shouldPublishImmediately?mo:go};function vo(e){var t=(0,r.useContext)(e);return t||Ne(!1),t}var bo=function(e){return e&&e.env.closestScrollable||null};function wo(){}var Eo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},xo=o().memo((function(e){var t=(0,r.useRef)(null),n=se((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),a=e.animate,i=e.onTransitionEnd,s=e.onClose,l=e.contextId,c=(0,r.useState)("open"===e.animate),u=c[0],d=c[1];(0,r.useEffect)((function(){return u?"open"!==a?(n(),d(!1),wo):t.current?wo:(t.current=setTimeout((function(){t.current=null,d(!1)})),n):wo}),[a,u,n]);var p=se((function(e){"height"===e.propertyName&&(i(),"close"===a&&s())}),[a,s,i]),f=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?Eo:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Cn.placeholder:null}}({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return o().createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":l,onTransitionEnd:p,ref:e.innerRef})})),Co=o().createContext(null),_o=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return i(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(o().PureComponent),So=function(e,t){return t?Cn.drop(t.duration):e?Cn.snap:Cn.fluid},Oo=function(e,t){return e?t?bn:wn:null};function ko(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,a=Boolean(r),i=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(o),l=s?function(e,t){var n=Sn(e);return n?t?n+" scale("+En+")":n:null}(n,a):On(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:So(i,o),transform:l,opacity:Oo(a,s),zIndex:s?4500:5e3,pointerEvents:"none"}}(e):{transform:On((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function No(e){e.preventDefault()}var Mo=function(e,t){return e===t},Ao=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Do(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Io={mapped:{type:"SECONDARY",offset:Le,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Do(null)}},jo=te((function(){var e,t,n,r=(e=we((function(e,t){return{x:e,y:t}})),t=we((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=we((function(e,n,r,o,a,i,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:i,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,a,i,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var a=r.current.client.offset,i=r.dimensions.draggables[o.draggableId],s=Bt(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(a.x,a.y),r.movementMode,i,o.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var p=o.isClone,f=r.dimensions.draggables[o.draggableId],h=d.result,m=h.mode,g=Ao(h),y=function(e){return e.combine?e.combine.draggableId:null}(h),v={duration:r.dropDuration,curve:vn,moveTo:r.newHomeClientOffset,opacity:y?bn:null,scale:y?En:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:f,dropping:v,draggingOver:g,combineWith:y,mode:m,forceShouldAnimate:null,snapshot:t(m,p,g,y,v)}}}return null}),o=function(){var e=we((function(e,t){return{x:e,y:t}})),t=we(Do),n=we((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Le,e,!0):null},o=function(t,o,a,i){var s=a.displaced.visible[t],l=Boolean(i.inVirtualList&&i.effected[t]),c=at(a),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return r(u);if(a.displaced.invisible[t])return null;var d=Be(i.displacedBy.point),p=e(d.x,d.y);return n(p,u,!0)}if(l)return r(u);var f=a.displacedBy.point,h=e(f.x,f.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Io}}),{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:Or,pure:!0,areStatePropsEqual:Mo})((function(e){var t=(0,r.useRef)(null),n=se((function(e){t.current=e}),[]),o=se((function(){return t.current}),[]),a=vo(jr),i=a.contextId,s=a.dragHandleUsageInstructionsId,l=a.registry,c=vo(Co),u=c.type,d=c.droppableId,p=ie((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),f=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,y=e.canDragInteractiveElements,v=e.isClone,b=e.mapped,w=e.dropAnimationFinished;v||function(e){var t=Ir("draggable"),n=e.descriptor,o=e.registry,a=e.getDraggableRef,i=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,c=ie((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:s,isEnabled:l}}),[i,l,s]),u=se((function(e){var t=a();return t||Ne(!1),function(e,t,n){void 0===n&&(n=Le);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=ge(o,r),i=me(a,n);return{descriptor:e,placeholder:{client:a,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:i}}(n,t,e)}),[n,a]),d=ie((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),p=(0,r.useRef)(d),f=(0,r.useRef)(!0);wr((function(){return o.draggable.register(p.current),function(){return o.draggable.unregister(p.current)}}),[o.draggable]),wr((function(){if(f.current)f.current=!1;else{var e=p.current;p.current=d,o.draggable.update(d,e)}}),[d,o.draggable])}(ie((function(){return{descriptor:p,registry:l,getDraggableRef:o,canDragInteractiveElements:y,shouldRespectForcePress:g,isEnabled:m}}),[p,l,o,y,g,m]));var E=ie((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:No}:null}),[i,s,h,m]),x=se((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),C=ie((function(){var e=ko(b),t="DRAGGING"===b.type&&b.dropping?x:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:E}}),[i,E,h,b,x,n]),_=ie((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return f(C,b.snapshot,_)}));function To(e){return vo(Co).isUsingCloneFor!==e.draggableId||e.isClone?o().createElement(jo,e):null}function Lo(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return o().createElement(To,(0,s.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var Po=function(e,t){return e===t.droppable.type},Ro=function(e,t){return t.draggables[e.draggable.id]},Fo={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Ne(!1),document.body}},Bo=te((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,s.A)({},e,{shouldAnimatePlaceholder:!1}),n=we((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=we((function(r,o,a,i,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:a,draggingOverWith:a?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!i)return e;var p={isDraggingOver:a,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(n,o){var a=o.droppableId,i=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var c=n.critical;if(!Po(i,c))return t;var u=Ro(c,n.dimensions),d=Bt(n.impact)===a;return r(a,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!Po(i,p.critical))return t;var f=Ro(p.critical,n.dimensions);return r(a,s,Ao(p.result)===a,Bt(p.impact)===a,f,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!Po(i,h.critical))return t;var m=Bt(h.impact)===a,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),y=h.critical.droppable.id===a;return m?g?e:t:y?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Or,pure:!0,areStatePropsEqual:Mo})((function(e){var t=(0,r.useContext)(jr);t||Ne(!1);var n=t.contextId,a=t.isMovementAllowed,i=(0,r.useRef)(null),s=(0,r.useRef)(null),l=e.children,c=e.droppableId,u=e.type,d=e.mode,p=e.direction,f=e.ignoreContainerClipping,h=e.isDropDisabled,m=e.isCombineEnabled,g=e.snapshot,y=e.useClone,v=e.updateViewportMaxScroll,b=e.getContainerForClone,w=se((function(){return i.current}),[]),E=se((function(e){i.current=e}),[]),x=(se((function(){return s.current}),[]),se((function(e){s.current=e}),[])),C=se((function(){a()&&v({maxScroll:Hn()})}),[a,v]);!function(e){var t=(0,r.useRef)(null),n=vo(jr),o=Ir("droppable"),a=n.registry,i=n.marshal,s=Tr(e),l=ie((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=ie((function(){return we((function(e,n){t.current||Ne(!1);var r={x:e,y:n};i.updateDroppableScroll(l.id,r)}))}),[l.id,i]),d=se((function(){var e=t.current;return e&&e.env.closestScrollable?fo(e.env.closestScrollable):Le}),[]),p=se((function(){var e=d();u(e.x,e.y)}),[d,u]),f=ie((function(){return Ee(p)}),[p]),h=se((function(){var e=t.current,n=bo(e);e&&n||Ne(!1),e.scrollOptions.shouldPublishImmediately?p():f()}),[f,p]),m=se((function(e,r){t.current&&Ne(!1);var o=s.current,a=o.getDroppableRef();a||Ne(!1);var i=function(e){return{closestScrollable:po(e),isFixedOnPage:ho(e)}}(a),c={ref:a,descriptor:l,env:i,scrollOptions:r};t.current=c;var u=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,a=e.direction,i=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=ye(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight,i=o+t.scrollWidth,s=ce({top:r,right:i,bottom:a,left:o},n.border);return pe({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=me(u,o),p=function(){if(!c)return null;var e=ye(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:me(e,o),scroll:fo(c),scrollSize:t,shouldClipSubject:l}}(),f=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,a=e.direction,i=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Le,displacement:Le}}}}(),u="vertical"===a?ht:mt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:i,page:s,frame:c,subject:We({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!i,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:a,client:u,page:d,closest:p});return f}({ref:a,descriptor:l,env:i,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=i.closestScrollable;return d&&(d.setAttribute(yr.contextId,n.contextId),d.addEventListener("scroll",h,yo(c.scrollOptions))),u}),[n.contextId,l,h,s]),g=se((function(){var e=t.current,n=bo(e);return e&&n||Ne(!1),fo(n)}),[]),y=se((function(){var e=t.current;e||Ne(!1);var n=bo(e);t.current=null,n&&(f.cancel(),n.removeAttribute(yr.contextId),n.removeEventListener("scroll",h,yo(e.scrollOptions)))}),[h,f]),v=se((function(e){var n=t.current;n||Ne(!1);var r=bo(n);r||Ne(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=ie((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:y,scroll:v}}),[y,m,g,v]),w=ie((function(){return{uniqueId:o,descriptor:l,callbacks:b}}),[b,l,o]);wr((function(){return c.current=w.descriptor,a.droppable.register(w),function(){t.current&&y(),a.droppable.unregister(w)}}),[b,l,y,w,i,a.droppable]),wr((function(){t.current&&i.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,i]),wr((function(){t.current&&i.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,i])}({droppableId:c,type:u,mode:d,direction:p,isDropDisabled:h,isCombineEnabled:m,ignoreContainerClipping:f,getDroppableRef:w});var _=o().createElement(_o,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,a=e.animate;return o().createElement(xo,{placeholder:r,onClose:t,innerRef:x,animate:a,contextId:n,onTransitionEnd:C})})),S=ie((function(){return{innerRef:E,placeholder:_,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":n}}}),[n,c,_,E]),O=y?y.dragging.draggableId:null,k=ie((function(){return{droppableId:c,type:u,isUsingCloneFor:O}}),[c,O,u]);return o().createElement(Co.Provider,{value:k},l(S,g),function(){if(!y)return null;var e=y.dragging,t=y.render,n=o().createElement(To,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return oe().createPortal(n,b())}())}));Bo.defaultProps=Fo},9493:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=l(n(1609)),u=s(n(9768)),d=n(9768),p=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.buttonStyles={},n.confirmButtonElement=null,n.cancelButtonElement=null,n.setConfirmButtonElementRef=function(e){n.confirmButtonElement=e},n.setCancelButtonElementRef=function(e){n.cancelButtonElement=e},n.getButtonStyle=function(e){if("error"===e&&(e="danger"),null==n.buttonStyles[e]){var r=t.styles[e]||t.styles.default;n.buttonStyles[e]={borderColor:""+r.borderColor,boxShadow:"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px "+r.shadowColor}}return n.buttonStyles[e]},n}return o(t,e),t.prototype.componentDidMount=function(){this.focusButton()},t.prototype.componentDidUpdate=function(e){var t=this;e.type===this.props.type&&e.confirmBtnText===this.props.confirmBtnText&&e.title===this.props.title||setTimeout((function(){return t.focusButton()}),0)},t.prototype.focusButton=function(){if(this.props.focusCancelBtn&&this.cancelButtonElement)try{this.cancelButtonElement.focus()}catch(e){}else if(this.props.focusConfirmBtn&&this.confirmButtonElement)try{this.confirmButtonElement.focus()}catch(e){}},t.prototype.confirmButtonRender=function(){var e=this;if(!this.props.showConfirm)return!1;var t="error"===this.props.confirmBtnBsStyle?"danger":this.props.confirmBtnBsStyle,n=Object.assign({},u.button,this.getButtonStyle(t),this.props.confirmBtnStyle||{});return c.default.createElement("a",{ref:this.setConfirmButtonElementRef,href:"#",style:n,className:"btn btn-"+this.props.btnSize+" btn-"+t+" "+this.props.confirmBtnCssClass+" "+(this.props.disabled?"disabled":""),onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.disabled||e.props.onConfirm()}},this.props.confirmBtnText)},t.prototype.cancelButtonRender=function(){var e=this;if(!this.props.showCancel)return!1;var t="error"===this.props.cancelBtnBsStyle?"danger":this.props.cancelBtnBsStyle,n=Object.assign({},u.button,this.props.cancelBtnStyle||{});return c.default.createElement("a",{ref:this.setCancelButtonElementRef,href:"#",style:n,className:"btn btn-"+this.props.btnSize+" btn-"+t+" "+this.props.cancelBtnCssClass,onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.onCancel()}},this.props.cancelBtnText)},t.prototype.render=function(){return!(!this.props.showConfirm&&!this.props.showCancel)&&c.default.createElement("p",{style:d.actions},this.props.customButtons?this.props.customButtons:c.default.createElement(c.default.Fragment,null,this.props.reverseButtons?c.default.createElement(c.default.Fragment,null,this.confirmButtonRender(),this.cancelButtonRender()):c.default.createElement(c.default.Fragment,null,this.cancelButtonRender(),this.confirmButtonRender())))},t.defaultProps={confirmBtnText:"OK",confirmBtnBsStyle:"primary",confirmBtnCssClass:"",confirmBtnStyle:{},cancelBtnText:"Cancel",cancelBtnBsStyle:"link",cancelBtnCssClass:"",cancelBtnStyle:{},focusConfirmBtn:!0,focusCancelBtn:!1,showConfirm:!0,showCancel:!1,reverseButtons:!1,btnSize:"lg"},t.styles={primary:{borderColor:"#286090",shadowColor:"rgb(165, 202, 234)"},success:{borderColor:"#4cae4c",shadowColor:"rgba(76, 174, 76, 0.6)"},info:{borderColor:"#46b8da",shadowColor:"rgba(70, 184, 218, 0.6)"},danger:{borderColor:"#d43f3a",shadowColor:"rgba(212, 63, 58, 0.6)"},warning:{borderColor:"#eea236",shadowColor:"rgba(238, 162, 54, 0.6)"},default:{borderColor:"#cccccc",shadowColor:"rgba(204, 204, 204, 0.6)"},secondary:{borderColor:"#cccccc",shadowColor:"rgba(204, 204, 204, 0.6)"}},t}(c.default.Component);t.default=p},9977:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(1609)),a=n(9768);t.default=function(e){var t=e.children;return o.default.createElement("div",{style:a.contentContainer},t)}},3796:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(1609)),l=a(n(9768)),c=Object.assign({},l.icon,l.iconCustom);t.default=function(e){var t="url("+e.iconUrl,n=Object.assign({},c,{backgroundImage:t});return s.default.createElement("div",{style:n})}},2983:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(1609)),l=a(n(9768));t.default=function(){return s.default.createElement("div",{style:Object.assign({},l.icon,l.iconError)},s.default.createElement("span",{style:l.iconErrorX},s.default.createElement("span",{style:Object.assign({},l.iconErrorLine,l.iconErrorLineLeft)}),s.default.createElement("span",{style:Object.assign({},l.iconErrorLine,l.iconErrorLineRight)})))}},5827:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(1609)),l=a(n(9768));t.default=function(){return s.default.createElement("div",{style:Object.assign({},l.icon,l.iconInfo)},s.default.createElement("div",{style:l.iconInfoBefore}),s.default.createElement("div",{style:l.iconInfoAfter}))}},8276:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=l(n(1609)),u=s(n(9768)),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputElement=null,t.setInputElementRef=function(e){t.inputElement=e},t}return o(t,e),t.prototype.componentDidMount=function(){if("input"===this.props.type)try{this.inputElement.focus()}catch(e){}},t.prototype.render=function(){var e=this;return c.default.createElement("div",{style:{position:"relative"}},"textarea"===this.props.inputType?c.default.createElement("textarea",{ref:this.setInputElementRef,rows:4,className:"form-control",value:this.props.inputValue||"",onChange:function(t){return e.props.onChangeInput(t)},onKeyDown:function(t){return e.props.onInputKeyDown(t)},placeholder:this.props.placeholder}):c.default.createElement("input",{type:this.props.inputType,ref:this.setInputElementRef,className:"form-control",value:this.props.inputValue||"",onChange:function(t){return e.props.onChangeInput(t)},onKeyDown:function(t){return e.props.onInputKeyDown(t)},placeholder:this.props.placeholder}),this.props.showValidationMessage&&c.default.createElement("div",{style:u.inputErrorIcon},c.default.createElement("div",{style:Object.assign({},u.inputErrorIconBeforeAfter,u.inputErrorIconBefore)}),c.default.createElement("div",{style:Object.assign({},u.inputErrorIconBeforeAfter,u.inputErrorIconAfter)})))},t}(c.default.Component);t.default=d},7004:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(1609)),l=n(9768),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.overlayElement=null,t.setOverlayElementRef=function(e){t.overlayElement=e},t}return o(t,e),t.prototype.componentDidMount=function(){this.overlayElement&&(this.overlayElement.scrollTop=0)},t.prototype.render=function(){var e=this.props,t=e.show,n=e.onClick,r=e.onKeyDown,o=e.children;return t?s.default.createElement("div",{ref:this.setOverlayElementRef,style:a(a({},l.overlay),l.sweetAlertContainer),onClick:function(e){return n(e)},tabIndex:0,onKeyDown:function(e){return r(e)}},o):s.default.createElement("div",{style:l.sweetAlertContainer,tabIndex:0,onKeyDown:function(e){return r(e)}},o)},t}(s.default.Component);t.default=c},462:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(1609)),l=a(n(9768));t.default=function(){return s.default.createElement("div",{style:Object.assign({},l.icon,l.iconSuccess)},s.default.createElement("div",{style:Object.assign({},l.iconSuccessBeforeAfter,l.iconSuccessBefore)}),s.default.createElement("span",{style:Object.assign({},l.iconSuccessLine,l.iconSuccessLineTip)}),s.default.createElement("span",{style:Object.assign({},l.iconSuccessLine,l.iconSuccessLineLong)}),s.default.createElement("div",{style:l.iconSuccessPlaceholder}),s.default.createElement("div",{style:l.iconSuccessFix}),s.default.createElement("div",{style:Object.assign({},l.iconSuccessBeforeAfter,l.iconSuccessAfter)}))}},9324:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t},c=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var d=u(n(1609)),p=u(n(462)),f=u(n(2983)),h=u(n(5827)),m=u(n(2669)),g=u(n(3796)),y=u(n(9493)),v=u(n(8276)),b=u(n(2366)),w=u(n(6406)),E=u(n(9977)),x=u(n(7004)),C=l(n(9768)),_=l(n(5638)),S=n(166),O=n(1761),k=C.sweetAlert,N={},M=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},A=function(e){function t(n){var r=e.call(this,n)||this;r.inputElement=null,r.unsupportedProp=function(e,t){try{console.warn("react-bootstrap-sweetalert: Unsupported prop '"+e+"'. Please "+t)}catch(e){}},r.focusInput=function(){if(M("inputElement",r.inputElement),r.inputElement){M("inputElement trying to focus",r.inputElement);try{r.inputElement.focus()}catch(e){M("inputElement focus error",e)}}},r.getIcon=function(){switch(r.state.type){case"danger":case"error":return d.default.createElement(f.default,null);case"warning":return d.default.createElement(m.default,null);case"info":return d.default.createElement(h.default,null);case"success":return d.default.createElement(p.default,null);case"custom":return r.props.customIcon?"string"==typeof r.props.customIcon?d.default.createElement(g.default,{iconUrl:r.props.customIcon}):r.props.customIcon:null;default:return null}},r.onChangeInput=function(e){var t=e.target;r.setState({inputValue:t.value,showValidationMessage:!1})},r.isValidInput=function(){return!r.props.required||(r.props.validationRegex||("email"===r.props.inputType?_.emailRegex:_.defaultRegex)).test(r.state.inputValue)},r.isDisabled=function(){return r.props.onCancel&&r.props.disabled},r.onAlertClose=function(e){N[r.state.id]=!0,M("onAlertClose resetting state"),r.setState(a(a({},t.getDefaultState()),{id:r.state.id}),(function(){N[r.state.id]=!1,e()}))},r.beforeCloseAlert=function(e,t){M("in beforeCloseAlert: setting show to false"),r.setState({show:!1,closingAction:e},(function(){M("state updated",r.state.show),r.state.show||(M("invoking callback"),t())}))},r.onConfirm=function(e){if(void 0===e&&(e=!0),!r.isDisabled()){var t="input"===r.state.type,n=r.state.inputValue,o="controlled"===r.state.type,a=c(r.state.dependencies);if(!t||r.isValidInput()){var i=function(){M("in confirm callback"),t?r.onAlertClose((function(){r.props.onConfirm(n)})):o?r.onAlertClose((function(){r.props.onConfirm(a)})):r.onAlertClose((function(){return r.props.onConfirm()}))};e?(M("calling beforeCloseAlert"),r.beforeCloseAlert("confirm",(function(){return i()}))):i()}else r.setState({showValidationMessage:!0})}},r.onCancel=function(e){void 0===e&&(e=!0);var t=function(){r.onAlertClose((function(){r.props.onCancel&&r.props.onCancel()}))};e?r.beforeCloseAlert("cancel",(function(){return t()})):t()},r.onInputKeyDown=function(e){13==e.keyCode&&(e.stopPropagation(),r.onConfirm())},r.onKeyDown=function(e){27==e.keyCode&&r.props.allowEscape&&r.props.onCancel&&(e.stopPropagation(),r.onCancel())},r.onClickInside=function(e){e.stopPropagation()},r.onClickOutside=function(){r.props.closeOnClickOutside&&r.props.onCancel&&r.onCancel()},r.setAutoFocusInputRef=function(e){r.inputElement=e},r.getComposedStyle=function(){return Object.assign({},k,r.props.style,{animation:r.state.animation})},r.getAlertContent=function(){if("function"==typeof r.props.children){var e={onEnterKeyDownConfirm:function(e){"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),r.onConfirm())},confirm:function(){return r.onConfirm()},cancel:function(){return r.onCancel()},setAutoFocusInputRef:r.setAutoFocusInputRef.bind(r)};return r.props.children(e)}return r.props.children},r.getCloseButton=function(){return r.props.showCloseButton&&r.props.onCancel?d.default.createElement("span",{className:"btn",style:Object.assign({},C.closeButton,r.props.closeBtnStyle),onClick:function(){return r.onCancel()}},"x"):null},r.getInputField=function(){return"input"!==r.state.type?null:d.default.createElement(v.default,a({},r.props,r.state,{type:r.state.type,onInputKeyDown:r.onInputKeyDown,onChangeInput:r.onChangeInput}))},r.getValidationMessage=function(){return r.state.showValidationMessage?d.default.createElement(b.default,a({},r.props)):null},r.getButtons=function(){return d.default.createElement(y.default,a({},r.props,{type:r.state.type,onConfirm:r.onConfirm,onCancel:r.onCancel,focusConfirmBtn:r.state.focusConfirmBtn,focusCancelBtn:r.state.focusCancelBtn,disabled:r.isDisabled()}))},r.getInjectedStyles=function(){return d.default.createElement(d.default.Fragment,null,d.default.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n                body.sweetalert-overflow-hidden {\n                  overflow: hidden;\n                }\n                body .sweet-alert button {\n                  outline: none !important;\n                }\n              "}}),d.default.createElement("style",{type:"text/css"},"@-webkit-keyframes showSweetAlert {  0% {    transform: scale(0.7);    -webkit-transform: scale(0.7);  }  45% {    transform: scale(1.05);    -webkit-transform: scale(1.05);  }  80% {    transform: scale(0.95);    -webkit-tranform: scale(0.95);  }  100% {    transform: scale(1);    -webkit-transform: scale(1);  }}@keyframes showSweetAlert {  0% {    transform: scale(0.7);    -webkit-transform: scale(0.7);  }  45% {    transform: scale(1.05);    -webkit-transform: scale(1.05);  }  80% {    transform: scale(0.95);    -webkit-tranform: scale(0.95);  }  100% {    transform: scale(1);    -webkit-transform: scale(1);  }}@-webkit-keyframes hideSweetAlert {  0% {    transform: scale(1);    -webkit-transform: scale(1);  }  100% {    transform: scale(0.4);    -webkit-transform: scale(0.4);  }}@keyframes hideSweetAlert {  0% {    transform: scale(1);    -webkit-transform: scale(1);  }  100% {    transform: scale(0.4);    -webkit-transform: scale(0.4);  }}@-webkit-keyframes animateSuccessTip {  0% {    width: 0;    left: 1px;    top: 19px;  }  54% {    width: 0;    left: 1px;    top: 19px;  }  70% {    width: 50px;    left: -8px;    top: 37px;  }  84% {    width: 17px;    left: 21px;    top: 48px;  }  100% {    width: 25px;    left: 14px;    top: 45px;  }}@keyframes animateSuccessTip {  0% {    width: 0;    left: 1px;    top: 19px;  }  54% {    width: 0;    left: 1px;    top: 19px;  }  70% {    width: 50px;    left: -8px;    top: 37px;  }  84% {    width: 17px;    left: 21px;    top: 48px;  }  100% {    width: 25px;    left: 14px;    top: 45px;  }}@-webkit-keyframes animateSuccessLong {  0% {    width: 0;    right: 46px;    top: 54px;  }  65% {    width: 0;    right: 46px;    top: 54px;  }  84% {    width: 55px;    right: 0px;    top: 35px;  }  100% {    width: 47px;    right: 8px;    top: 38px;  }}@keyframes animateSuccessLong {  0% {    width: 0;    right: 46px;    top: 54px;  }  65% {    width: 0;    right: 46px;    top: 54px;  }  84% {    width: 55px;    right: 0px;    top: 35px;  }  100% {    width: 47px;    right: 8px;    top: 38px;  }}@-webkit-keyframes rotatePlaceholder {  0% {    transform: rotate(-45deg);    -webkit-transform: rotate(-45deg);  }  5% {    transform: rotate(-45deg);    -webkit-transform: rotate(-45deg);  }  12% {    transform: rotate(-405deg);    -webkit-transform: rotate(-405deg);  }  100% {    transform: rotate(-405deg);    -webkit-transform: rotate(-405deg);  }}@keyframes rotatePlaceholder {  0% {    transform: rotate(-45deg);    -webkit-transform: rotate(-45deg);  }  5% {    transform: rotate(-45deg);    -webkit-transform: rotate(-45deg);  }  12% {    transform: rotate(-405deg);    -webkit-transform: rotate(-405deg);  }  100% {    transform: rotate(-405deg);    -webkit-transform: rotate(-405deg);  }}@-webkit-keyframes animateErrorIcon {  0% {    transform: rotateX(100deg);    -webkit-transform: rotateX(100deg);    opacity: 0;  }  100% {    transform: rotateX(0deg);    -webkit-transform: rotateX(0deg);    opacity: 1;  }}@keyframes animateErrorIcon {  0% {    transform: rotateX(100deg);    -webkit-transform: rotateX(100deg);    opacity: 0;  }  100% {    transform: rotateX(0deg);    -webkit-transform: rotateX(0deg);    opacity: 1;  }}@-webkit-keyframes animateXMark {  0% {    transform: scale(0.4);    -webkit-transform: scale(0.4);    margin-top: 26px;    opacity: 0;  }  50% {    transform: scale(0.4);    -webkit-transform: scale(0.4);    margin-top: 26px;    opacity: 0;  }  80% {    transform: scale(1.15);    -webkit-transform: scale(1.15);    margin-top: -6px;  }  100% {    transform: scale(1);    -webkit-transform: scale(1);    margin-top: 0;    opacity: 1;  }}@keyframes animateXMark {  0% {    transform: scale(0.4);    -webkit-transform: scale(0.4);    margin-top: 26px;    opacity: 0;  }  50% {    transform: scale(0.4);    -webkit-transform: scale(0.4);    margin-top: 26px;    opacity: 0;  }  80% {    transform: scale(1.15);    -webkit-transform: scale(1.15);    margin-top: -6px;  }  100% {    transform: scale(1);    -webkit-transform: scale(1);    margin-top: 0;    opacity: 1;  }}@-webkit-keyframes pulseWarning {  0% {    border-color: #F8D486;  }  100% {    border-color: #F8BB86;  }}@keyframes pulseWarning {  0% {    border-color: #F8D486;  }  100% {    border-color: #F8BB86;  }}@-webkit-keyframes pulseWarningIns {  0% {    background-color: #F8D486;  }  100% {    background-color: #F8BB86;  }}@keyframes pulseWarningIns {  0% {    background-color: #F8D486;  }  100% {    background-color: #F8BB86;  }}"))},r.props.beforeUpdate&&r.unsupportedProp("beforeUpdate","use props.afterUpdate");var o=Object.assign(t.getDefaultState(),{hideTimeoutHandlerFunc:r.hideTimeoutHandler.bind(r)});return null!=r.props.defaultValue&&(o.inputValue=r.props.defaultValue),r.state=o,r.props.beforeMount(),r}return o(t,e),t.prototype.componentDidMount=function(){document.body.classList.add("sweetalert-overflow-hidden"),this.focusInput(),this.props.afterMount&&this.props.afterMount()},t.generateId=function(){return""+Date.now()+Math.ceil(1e10*Math.random())+Math.ceil(1e10*Math.random())},t.getDefaultState=function(){return{id:t.generateId(),show:!0,focusConfirmBtn:!0,focusCancelBtn:!1,inputValue:"",showValidationMessage:!1,timer:null,animation:"",prevTimeout:0,closingAction:null,dependencies:[]}},t.getDerivedStateFromProps=function(e,n){if(N[n.id])return{};var r={},o=n.type!==t.getTypeFromProps(e),i=n.dependencies!==e.dependencies,s=n.prevTimeout!==e.timeout;return(o||i)&&(r=a(a({},r),t.getStateFromProps(e))),("{}"!==JSON.stringify(r)||s)&&(r=a(a({},r),t.handleTimeout(e,n.timer))),a(a({},r),t.handleAnimState(e,n,n.hideTimeoutHandlerFunc))},t.prototype.componentDidUpdate=function(e,t){this.props.beforeUpdate&&this.props.beforeUpdate(e,t),!t.show&&this.state.show&&this.focusInput(),this.props.afterUpdate(this.props,this.state)},t.prototype.componentWillUnmount=function(){document.body.classList.remove("sweetalert-overflow-hidden"),this.state.timer&&clearTimeout(this.state.timer),this.props.beforeUnmount&&this.props.beforeUnmount()},t.prototype.hideTimeoutHandler=function(e){var t=this;setTimeout((function(){var e=t.state.closingAction;t.setState({show:!1,closingAction:null},(function(){switch(e){case"confirm":t.onConfirm(!1);break;case"cancel":t.onCancel(!1)}}))}),e)},t.handleTimeout=function(e,t){return t&&clearTimeout(t),e.timeout&&e.timeout>0?{timer:setTimeout((function(){return e.onConfirm()}),e.timeout),prevTimeout:e.timeout}:null},t.isAnimation=function(e){return e&&"boolean"!=typeof e},t.animationFromProp=function(e){return e.name+" "+e.duration+"ms"},t.handleAnimState=function(e,n,r){var o="boolean"!=typeof e.show||n.closingAction?n.show:e.show,a="";if(o)e.openAnim&&(t.isAnimation(e.openAnim)?a=t.animationFromProp(e.openAnim):t.isAnimation(t.defaultProps.openAnim)&&(a=t.animationFromProp(t.defaultProps.openAnim)));else if(n.closingAction&&e.closeAnim){var i=void 0;t.isAnimation(e.closeAnim)?i=e.closeAnim:t.isAnimation(t.defaultProps.closeAnim)&&(i=t.defaultProps.closeAnim),i&&(a=t.animationFromProp(i),r(i.duration),o=!0)}return{show:o,animation:a}},t.prototype.render=function(){return this.state.show?d.default.createElement("div",null,this.getInjectedStyles(),d.default.createElement(x.default,{show:!this.props.hideOverlay,onClick:this.onClickOutside,onKeyDown:this.onKeyDown},d.default.createElement("div",{style:this.getComposedStyle(),tabIndex:0,onKeyDown:this.onKeyDown,onClick:this.onClickInside,className:"sweet-alert "+this.props.customClass},this.getCloseButton(),this.getIcon(),d.default.createElement(w.default,null,this.props.title),d.default.createElement(E.default,null,this.getAlertContent()),this.getInputField(),this.getValidationMessage(),this.getButtons()))):null},t.propTypes=S.SWEET_ALERT_PROP_TYPES,t.defaultProps=O.SWEET_ALERT_DEFAULT_PROPS,t.SuccessIcon=p.default,t.ErrorIcon=f.default,t.InfoIcon=h.default,t.WarningIcon=m.default,t.CustomIcon=g.default,t.Buttons=y.default,t.Input=v.default,t.ValidationMessage=b.default,t.Title=w.default,t.Content=E.default,t.getStateFromProps=function(e){var n=t.getTypeFromProps(e);return{type:n,focusConfirmBtn:e.focusConfirmBtn&&"input"!==n,focusCancelBtn:e.focusCancelBtn&&"input"!==n,dependencies:e.dependencies}},t.getTypeFromProps=function(e){return e.type?e.type:e.secondary?"secondary":e.info?"info":e.success?"success":e.warning?"warning":e.danger||e.error?"danger":e.input?"input":e.custom?"custom":"default"},t}(d.default.Component);t.default=A},6406:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(1609)),a=n(9768);t.default=function(e){var t=e.children;return o.default.createElement("h2",{style:a.title},t)}},2366:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(1609)),l=a(n(9768));t.default=function(e){var t=e.validationMsg,n=e.inputType,r=t||("email"===n?"Please enter a valid email!":"Please enter a response!");return s.default.createElement("div",{style:l.validationMessage},s.default.createElement("div",{style:l.exclamationIcon},"!"),r)}},2669:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(1609)),l=a(n(9768));t.default=function(){return s.default.createElement("div",{style:Object.assign({},l.icon,l.iconWarning)},s.default.createElement("span",{style:l.iconWarningBody}),s.default.createElement("span",{style:l.iconWarningDot}))}},5638:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emailRegex=t.defaultRegex=void 0,t.defaultRegex=/^.+$/,t.emailRegex=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},1761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SWEET_ALERT_DEFAULT_PROPS=void 0,t.SWEET_ALERT_DEFAULT_PROPS={allowEscape:!0,closeOnClickOutside:!0,inputType:"text",customClass:"",validationMsg:null,validationRegex:null,hideOverlay:!1,required:!0,disabled:!1,focusConfirmBtn:!0,focusCancelBtn:!1,showCloseButton:!1,confirmBtnBsStyle:"primary",cancelBtnBsStyle:"link",beforeMount:function(){},afterMount:function(){},beforeUpdate:null,afterUpdate:function(){},beforeUnmount:function(){},style:{},closeBtnStyle:{},timeout:0,openAnim:{name:"showSweetAlert",duration:300},closeAnim:!1,reverseButtons:!1,dependencies:[]}},3291:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(9324));t.default=o.default},166:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SWEET_ALERT_PROP_TYPES=void 0;var o=r(n(2736));t.SWEET_ALERT_PROP_TYPES={type:o.default.oneOf(["default","info","success","warning","danger","error","input","custom","controlled"]),info:o.default.bool,success:o.default.bool,warning:o.default.bool,danger:o.default.bool,error:o.default.bool,input:o.default.bool,custom:o.default.bool,controlled:o.default.bool,title:o.default.oneOfType([o.default.node,o.default.string]).isRequired,onCancel:o.default.func,onConfirm:o.default.func.isRequired,confirmBtnText:o.default.oneOfType([o.default.node,o.default.string]),confirmBtnBsStyle:o.default.string,confirmBtnCssClass:o.default.string,confirmBtnStyle:o.default.object,cancelBtnText:o.default.oneOfType([o.default.node,o.default.string]),cancelBtnBsStyle:o.default.string,cancelBtnCssClass:o.default.string,cancelBtnStyle:o.default.object,btnSize:o.default.string,customIcon:o.default.oneOfType([o.default.node,o.default.string]),show:o.default.bool,required:o.default.bool,placeholder:o.default.string,validationMsg:o.default.string,validationRegex:o.default.object,defaultValue:o.default.oneOfType([o.default.number,o.default.string]),inputType:o.default.string,style:o.default.object,closeBtnStyle:o.default.object,customClass:o.default.string,showConfirm:o.default.bool,showCancel:o.default.bool,showCloseButton:o.default.bool,allowEscape:o.default.bool,closeOnClickOutside:o.default.bool,hideOverlay:o.default.bool,disabled:o.default.bool,focusConfirmBtn:o.default.bool,focusCancelBtn:o.default.bool,beforeMount:o.default.func,afterMount:o.default.func,beforeUpdate:o.default.func,afterUpdate:o.default.func,beforeUnmount:o.default.func,timeout:o.default.number,openAnim:o.default.any,closeAnim:o.default.any,reverseButtons:o.default.bool,customButtons:o.default.node,dependencies:o.default.arrayOf(o.default.any)}},9768:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closeButton=t.inputErrorIconAfter=t.inputErrorIconBefore=t.inputErrorIconBeforeAfter=t.inputErrorIcon=t.exclamationIcon=t.validationMessage=t.button=t.iconCustom=t.iconSuccessLineLong=t.iconSuccessLineTip=t.iconSuccessLine=t.iconSuccessFix=t.iconSuccessPlaceholder=t.iconSuccessAfter=t.iconSuccessBefore=t.iconSuccessBeforeAfter=t.iconSuccess=t.iconInfoAfter=t.iconInfoBefore=t.iconInfo=t.iconWarningDot=t.iconWarningBody=t.iconWarning=t.iconErrorLineRight=t.iconErrorLineLeft=t.iconErrorLine=t.iconErrorX=t.iconError=t.icon=t.actions=t.contentContainer=t.title=t.sweetAlert=t.sweetAlertContainer=t.overlay=void 0,t.overlay={backgroundColor:"rgba(0, 0, 0, 0.4)",position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:5e3},t.sweetAlertContainer={display:"flex",position:"fixed",top:0,right:0,left:0,bottom:0,flexDirection:"row",alignItems:"center",justifyContent:"center",padding:".625em",overflowX:"hidden",overflowY:"auto",zIndex:5400},t.sweetAlert={display:"flex",overflow:"hidden",backgroundColor:"#fff",outline:"none",width:"32em",padding:"1.25rem",margin:"auto",borderRadius:".3125em",textAlign:"center",position:"relative",flexDirection:"column",justifyContent:"center",maxWidth:"100%",zIndex:5600},t.title={position:"relative",maxWidth:"100%",margin:"0 0 .4em",padding:0,fontSize:"1.875em",fontWeight:600,textAlign:"center",textTransform:"none",wordWrap:"break-word"},t.contentContainer={zIndex:1,justifyContent:"center",margin:0,padding:0,fontSize:"1.125em",fontWeight:300,lineHeight:"normal",textAlign:"center",wordWrap:"break-word"},t.actions={display:"flex",zIndex:1,flexWrap:"wrap",alignItems:"center",justifyContent:"center",width:"100%",margin:"1.25em auto 0"},t.icon={width:80,height:80,borderWidth:4,borderStyle:"solid",borderColor:"gray",borderRadius:"50%",margin:"20px auto",position:"relative",boxSizing:"content-box"},t.iconError={borderColor:"#d43f3a",animation:"animateErrorIcon 0.5s"},t.iconErrorX={position:"relative",display:"block",animation:"animateXMark 0.5s"},t.iconErrorLine={position:"absolute",height:5,width:47,backgroundColor:"#d9534f",display:"block",top:37,borderRadius:2},t.iconErrorLineLeft={transform:"rotate(45deg)",left:17},t.iconErrorLineRight={transform:"rotate(-45deg)",right:16},t.iconWarning={borderColor:"#eea236",animation:"pulseWarning 0.75s infinite alternate"},t.iconWarningBody={position:"absolute",width:5,height:47,left:"50%",top:10,borderRadius:2,marginLeft:-2,backgroundColor:"#f0ad4e",animation:"pulseWarningIns 0.75s infinite alternate"},t.iconWarningDot={position:"absolute",width:7,height:7,borderRadius:"50%",marginLeft:-3,left:"50%",bottom:10,backgroundColor:"#f0ad4e",animation:"pulseWarningIns 0.75s infinite alternate"},t.iconInfo={borderColor:"#46b8da"},t.iconInfoBefore={content:"",position:"absolute",width:5,height:29,left:"50%",bottom:17,borderRadius:2,marginLeft:-2,backgroundColor:"#5bc0de"},t.iconInfoAfter={content:"",position:"absolute",width:7,height:7,borderRadius:"50%",marginLeft:-3,left:"50%",top:19,backgroundColor:"#5bc0de"},t.iconSuccess={borderColor:"#4cae4c"},t.iconSuccessBeforeAfter={content:"",borderRadius:"50%",position:"absolute",width:60,height:120,background:"white",transform:"rotate(45deg)"},t.iconSuccessBefore={borderRadius:"120px 0 0 120px",height:100,top:-7,left:-33,transform:"rotate(-45deg)",transformOrigin:"60px 60px"},t.iconSuccessAfter={borderRadius:"0 120px 120px 0",top:-11,left:30,transform:"rotate(-45deg)",transformOrigin:"0px 60px",animation:"rotatePlaceholder 4.25s ease-in"},t.iconSuccessPlaceholder={width:80,height:80,border:"4px solid rgba(92, 184, 92, 0.2)",borderRadius:"50%",boxSizing:"content-box",position:"absolute",left:-4,top:-4,zIndex:2},t.iconSuccessFix={width:5,height:90,backgroundColor:"#fff",position:"absolute",left:28,top:8,zIndex:1,transform:"rotate(-45deg)"},t.iconSuccessLine={height:5,backgroundColor:"#5cb85c",display:"block",borderRadius:2,position:"absolute",zIndex:2},t.iconSuccessLineTip={width:25,left:14,top:46,transform:"rotate(45deg)",animation:"animateSuccessTip 0.75s"},t.iconSuccessLineLong={width:47,right:8,top:38,transform:"rotate(-45deg)",animation:"animateSuccessLong 0.75s"},t.iconCustom={backgroundSize:"contain",borderRadius:0,border:"none",backgroundPosition:"center center",backgroundRepeat:"no-repeat"},t.button={marginRight:8},t.validationMessage={display:"block",backgroundColor:"#f1f1f1",marginLeft:"-1.25rem",marginRight:"-1.25rem",marginTop:20,overflow:"hidden",padding:10,maxHeight:100,transition:"padding 0.25s, max-height 0.25s",color:"#797979",fontSize:16,textAlign:"center",fontWeight:300},t.exclamationIcon={display:"inline-block",width:24,height:24,borderRadius:"50%",backgroundColor:"#ea7d7d",color:"white",lineHeight:"24px",textAlign:"center",marginRight:5},t.inputErrorIcon={position:"absolute",top:8,right:8,width:20,height:20,transformOrigin:"50% 50%",transition:"all 0.1s",opacity:1,transform:"scale(1)"},t.inputErrorIconBeforeAfter={content:"",width:20,height:6,backgroundColor:"#f06e57",borderRadius:3,position:"absolute",top:"50%",marginTop:-4,left:"50%",marginLeft:-9},t.inputErrorIconBefore={transform:"rotate(-45deg)"},t.inputErrorIconAfter={transform:"rotate(45deg)"},t.closeButton={position:"absolute",right:4,top:-2,fontSize:25,fontWeight:900,color:"rgb(113, 113, 113)",zIndex:1,cursor:"pointer"}},7517:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(1609),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},a=function(e){var t=e.animate,n=void 0===t||t,a=e.animateBegin,i=e.backgroundColor,s=void 0===i?"#f5f6f7":i,l=e.backgroundOpacity,c=void 0===l?1:l,u=e.baseUrl,d=void 0===u?"":u,p=e.children,f=e.foregroundColor,h=void 0===f?"#eee":f,m=e.foregroundOpacity,g=void 0===m?1:m,y=e.gradientRatio,v=void 0===y?2:y,b=e.gradientDirection,w=void 0===b?"left-right":b,E=e.uniqueKey,x=e.interval,C=void 0===x?.25:x,_=e.rtl,S=void 0!==_&&_,O=e.speed,k=void 0===O?1.2:O,N=e.style,M=void 0===N?{}:N,A=e.title,D=void 0===A?"Loading...":A,I=e.beforeMask,j=void 0===I?null:I,T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),L=E||Math.random().toString(36).substring(6),P=L+"-diff",R=L+"-animated-diff",F=L+"-aria",B=S?{transform:"scaleX(-1)"}:null,z="0; "+C+"; 1",q=k+"s",U="top-bottom"===w?"rotate(90)":void 0;return(0,r.createElement)("svg",o({"aria-labelledby":F,role:"img",style:o(o({},M),B)},T),D?(0,r.createElement)("title",{id:F},D):null,j&&(0,r.isValidElement)(j)?j:null,(0,r.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+d+"#"+P+")",style:{fill:"url("+d+"#"+R+")"}}),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:P},p),(0,r.createElement)("linearGradient",{id:R,gradientTransform:U},(0,r.createElement)("stop",{offset:"0%",stopColor:s,stopOpacity:c},n&&(0,r.createElement)("animate",{attributeName:"offset",values:-v+"; "+-v+"; 1",keyTimes:z,dur:q,repeatCount:"indefinite",begin:a})),(0,r.createElement)("stop",{offset:"50%",stopColor:h,stopOpacity:g},n&&(0,r.createElement)("animate",{attributeName:"offset",values:-v/2+"; "+-v/2+"; "+(1+v/2),keyTimes:z,dur:q,repeatCount:"indefinite",begin:a})),(0,r.createElement)("stop",{offset:"100%",stopColor:s,stopOpacity:c},n&&(0,r.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+v),keyTimes:z,dur:q,repeatCount:"indefinite",begin:a})))))},i=function(e){return e.children?(0,r.createElement)(a,o({},e)):(0,r.createElement)(s,o({},e))},s=function(e){return(0,r.createElement)(i,o({viewBox:"0 0 476 124"},e),(0,r.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,r.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,r.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,r.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,r.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,r.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};const l=i},9576:(e,t,n)=>{"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},4417:(e,t,n)=>{window,e.exports=function(e,t,n){return a={},r.m=o=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"==a||"number"==a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"==a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,n){e.exports=t},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,a,i,s;window,e.exports=(o=n(3),a=n(5),s={},r.m=i=[function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1);function a(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),a=n.getBlockMap();return a.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat([[o,a.get(o)]])}function i(e){return a(e).toList()}function s(e){if(e)return i(e).get(0)}function l(e){if(e){var t=s(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach((function(e,n){e.get("key")===t.get("key")&&(r=n-1)})),-1<r)return n.get(r)}}function c(e){return e?e.getCurrentContent().getBlockMap().toList():new o.List}function u(e){var t=i(e);if(!t.some((function(e){return e.type!==t.get(0).type})))return t.get(0).type}function d(e){var t=r.RichUtils.tryToRemoveBlockStyle(e);return t?r.EditorState.push(e,t,"change-block-type"):e}function p(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),a=i(e);if(0<a.size){if(n.getIsBackward()){var s=r;r=o,o=s}for(var l=0;l<a.size;l+=1){var c=0===l?r:0,u=l===a.size-1?o:a.get(l).getText().length;t+=a.get(l).getText().slice(c,u)}}return t}function f(e){var t=e.getCurrentContent(),n=e.getSelection(),o=r.Modifier.removeRange(t,n,"forward"),a=o.getSelectionAfter(),i=o.getBlockForKey(a.getStartKey());return o=r.Modifier.insertText(o,a,"\n",i.getInlineStyleAt(a.getStartOffset()),null),r.EditorState.push(e,o,"insert-fragment")}function h(e){var t=r.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return d(r.EditorState.push(e,t,"split-block"))}function m(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),o=r.Modifier.removeRange(e.getCurrentContent(),n,"forward");return r.EditorState.push(e,o,"remove-range")}function g(e,t){var n=r.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return r.EditorState.push(e,n,"change-block-data")}function y(e){var t=new o.Map({}),n=i(e);if(n&&0<n.size)for(var r=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach((function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))})),0===t.size)return t=t.clear(),"break"},a=0;a<n.size&&"break"!==r(a);a+=1);return t}var v=Object(o.Map)({code:{element:"pre"}}),b=r.DefaultDraftBlockRenderMap.merge(v);function w(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function E(e,t,n){var o,i=e.getSelection();o=i.getIsBackward()?i.getFocusKey():i.getAnchorKey();var s=e.getCurrentContent(),l=s.getBlockForKey(o),c=l.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;var u=s.getBlockBefore(o);if(!u)return e;if(u.getType()!==c)return e;var d=l.getDepth();if(1===t&&d===n)return e;var p,f,h,m,g,y,v,b=Math.min(u.getDepth()+1,n),w=(f=t,h=b,m=(p=e).getSelection(),y=(g=p.getCurrentContent()).getBlockMap(),v=a(p).map((function(e){var t=e.getDepth()+f;return t=Math.max(0,Math.min(t,h)),e.set("depth",t)})),y=y.merge(v),g.merge({blockMap:y,selectionBefore:m,selectionAfter:m}));return r.EditorState.push(e,w,"adjust-depth")}function x(e,t){var n;return 13===(n=t).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?e.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(e):f(e):function(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!w(o)&&"unstyled"!==o.getType()&&o.getLength()===t.getStartOffset())return h(e);if(w(o)&&0===o.getLength()){var a=o.getDepth();if(0===a)return d(e);if(0<a)return E(e,-1,a)}}}(e)}function C(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 _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){n[e]=0<=r.indexOf(e)})),n}var o=t.getStartOffset(),a=t.getEndOffset(),s=i(e);if(0<s.size){var l=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<s.size;t+=1){var n=0===t?o:0,r=t===s.size-1?a:s.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var i=function(n){var r=s.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){e[t]=e[t]&&r.get(t)===t}))},l=n;l<r;l+=1)i(l)}return{v:e}}();if("object"===S(l))return l.v}return{}}function k(e){var t,n=e.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var a=s(e),i=r;i<o;i+=1){var l=a.getEntityAt(i);if(!l){t=void 0;break}if(i===r)t=l;else if(t!==l){t=void 0;break}}return t}function N(e,t){var n,r=s(e);return r.findEntityRanges((function(e){return e.get("entity")===t}),(function(e,t){n={start:e,end:t,text:r.get("text").slice(e,t)}})),n}function M(e,t,n){D[e]["".concat(e.toLowerCase(),"-").concat(n)]=_({},"".concat(t),n)}function A(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},D.color,{},D.bgcolor,{},D.fontSize,{},D.fontFamily,{CODE:D.CODE,SUPERSCRIPT:D.SUPERSCRIPT,SUBSCRIPT:D.SUBSCRIPT})}var D={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function I(e,t,n){var o=e.getSelection(),a=Object.keys(D[t]).reduce((function(e,t){return r.Modifier.removeInlineStyle(e,o,t)}),e.getCurrentContent()),i=r.EditorState.push(e,a,"changeinline-style"),s=e.getCurrentInlineStyle();if(o.isCollapsed()&&(i=s.reduce((function(e,t){return r.RichUtils.toggleInlineStyle(e,t)}),i)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)s.has(n)||(i=r.RichUtils.toggleInlineStyle(i,n));else{var l="bgcolor"===t?"backgroundColor":t;s.has("".concat(l,"-").concat(n))||(i=r.RichUtils.toggleInlineStyle(i,"".concat(t.toLowerCase(),"-").concat(n)),M(t,l,n))}return i}function j(e){e&&e.getCurrentContent().getBlockMap().map((function(e){return e.get("characterList")})).toList().flatten().forEach((function(e){e&&0===e.indexOf("color-")?M("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?M("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?M("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&M("fontFamily","fontFamily",e.substr(11))}))}function T(e,t,n){var r=e.getInlineStyleAt(n).toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(r&&0<r.size)return r.get(0)}function L(e,t){if(e&&t&&0<t.length){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach((function(t){r[t]=function(e,t){var n=e.getCurrentInlineStyle().toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(n&&0<n.size)return n.get(0)}(e,t)})),{v:r};var o=n.getStartOffset(),a=n.getEndOffset(),s=i(e);if(0<s.size){for(var l=function(e){var n=0===e?o:0,i=e===s.size-1?a:s.get(e).getText().length;n===i&&0===n?(n=1,i=2):n===i&&--n;for(var l=function(o){o===n?t.forEach((function(t){r[t]=T(s.get(e),t,o)})):t.forEach((function(t){r[t]&&r[t]!==T(s.get(e),t,o)&&(r[t]=void 0)}))},c=n;c<i;c+=1)l(c)},c=0;c<s.size;c+=1)l(c);return{v:r}}}();if("object"===S(n))return n.v}return{}}function P(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach((function(t){n=r.Modifier.removeInlineStyle(n,e.getSelection(),t)})),r.EditorState.push(e,n,"change-inline-style")}n.d(t,"isListBlock",(function(){return w})),n.d(t,"changeDepth",(function(){return E})),n.d(t,"handleNewLine",(function(){return x})),n.d(t,"getEntityRange",(function(){return N})),n.d(t,"getCustomStyleMap",(function(){return A})),n.d(t,"toggleCustomInlineStyle",(function(){return I})),n.d(t,"getSelectionEntity",(function(){return k})),n.d(t,"extractInlineStyle",(function(){return j})),n.d(t,"removeAllInlineStyles",(function(){return P})),n.d(t,"getSelectionInlineStyle",(function(){return O})),n.d(t,"getSelectionCustomInlineStyle",(function(){return L})),n.d(t,"getSelectedBlocksMap",(function(){return a})),n.d(t,"getSelectedBlocksList",(function(){return i})),n.d(t,"getSelectedBlock",(function(){return s})),n.d(t,"getBlockBeforeSelectedBlock",(function(){return l})),n.d(t,"getAllBlocks",(function(){return c})),n.d(t,"getSelectedBlocksType",(function(){return u})),n.d(t,"removeSelectedBlocksStyle",(function(){return d})),n.d(t,"getSelectionText",(function(){return p})),n.d(t,"addLineBreakRemovingSelection",(function(){return f})),n.d(t,"insertNewUnstyledBlock",(function(){return h})),n.d(t,"clearEditorContent",(function(){return m})),n.d(t,"setBlockData",(function(){return g})),n.d(t,"getSelectedBlocksMetadata",(function(){return y})),n.d(t,"blockRenderMap",(function(){return b}))}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t){e.exports=n},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,a,i,s;window,e.exports=(o=n(5),a=n(3),s={},r.m=i=[function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=function(e,t,n){var r,a=e.textContent;return""===a.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:a,inlines:Array(a.length).fill(t),entities:Array(a.length).fill(n),blocks:[]}}},i=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},l=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},c=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},u=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},d=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),p={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function f(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var h=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return v}));var m=" ",g=new RegExp("&nbsp;","g"),y=!0;function v(e,t){var n,v,b=(n=t,(v=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(g,m)))?(y=!0,{chunk:function e(t,n,o,m,g,v){var b=t.nodeName.toLowerCase();if(v){var w=v(b,t);if(w){var E=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:c(E)}}}if("#text"===b&&"\n"!==t.textContent)return a(t,n,g);if("br"===b)return{chunk:i()};if("img"===b&&t instanceof HTMLImageElement){var x={};x.src=t.getAttribute&&t.getAttribute("src")||t.src,x.alt=t.alt,x.height=t.style.height,x.width=t.style.width,t.style.float&&(x.alignment=t.style.float);var C=r.Entity.__create("IMAGE","MUTABLE",x);return{chunk:c(C)}}if("video"===b&&t instanceof HTMLVideoElement){var _={};_.src=t.getAttribute&&t.getAttribute("src")||t.src,_.alt=t.alt,_.height=t.style.height,_.width=t.style.width,t.style.float&&(_.alignment=t.style.float);var S=r.Entity.__create("VIDEO","MUTABLE",_);return{chunk:c(S)}}if("iframe"===b&&t instanceof HTMLIFrameElement){var O={};O.src=t.getAttribute&&t.getAttribute("src")||t.src,O.height=t.height,O.width=t.width;var k=r.Entity.__create("EMBEDDED_LINK","MUTABLE",O);return{chunk:c(k)}}var N,M=function(e,t){var n=d.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,m);M&&("ul"===b||"ol"===b?(m=b,o+=1):("unordered-list-item"!==M&&"ordered-list-item"!==M&&(m="",o=-1),y?(N=s(M,f(t)),y=!1):N=l(M,o,f(t)))),N=N||{text:"",inlines:[],entities:[],blocks:[]},n=function(e,t,n){var r,o=p[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var a=t;r=(r=n).withMutations((function(e){var t=a.style.color,n=a.style.backgroundColor,r=a.style.fontSize,o=a.style.fontFamily.replace(/^"|"$/g,""),i=a.style.fontWeight,s=a.style.textDecoration,l=a.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===i&&e.add(p.strong),"underline"===s&&e.add(p.ins),"italic"===l&&e.add(p.em)})).toOrderedSet()}return r}(b,t,n);for(var A=t.firstChild;A;){var D=e(A,n,o,m,h(A)||g,v).chunk;N=u(N,D),A=A.nextSibling}return{chunk:N}}(v,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var w=b.chunk,E=new o.OrderedMap({});w.entities&&w.entities.forEach((function(e){e&&(E=E.set(e,r.Entity.__get(e)))}));var x=0;return{contentBlocks:w.text.split("\r").map((function(e,t){var n=x+e.length,a=w&&w.inlines.slice(x,n),i=w&&w.entities.slice(x,n),s=new o.List(a.map((function(e,t){var n={style:e,entity:null};return i[t]&&(n.entity=i[t]),r.CharacterMetadata.create(n)})));return x=n,new r.ContentBlock({key:Object(r.genKey)(),type:w&&w.blocks[t]&&w.blocks[t].type||"unstyled",depth:w&&w.blocks[t]&&w.blocks[t].depth,data:w&&w.blocks[t]&&w.blocks[t].data||new o.Map({}),text:e,characterList:s})})),entityMap:E}}return null}}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function a(e){return"[object Function]"===o(e)}function i(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(21)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r,i={validate:null,link:null};if(e.__compiled__[t]=i,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?i.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):a(n.validate)?i.validate=n.validate:c(t,n),void(a(n.normalize)?i.normalize=n.normalize:n.normalize?c(t,n):i.normalize=function(e,t){t.normalize(e)});"[object String]"!==o(n)?c(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u,d=Object.keys(e.__compiled__).filter((function(t){return 0<t.length&&e.__compiled__[t]})).map(i).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+d+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+d+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(u=e).__index__=-1,u.__text_cache__=""}function d(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function p(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},u(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,a,i,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(r=e.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,i=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=i)),0<=this.__index__},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),u(this),this},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){"use strict";var r=n(11);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",(function(){return Er}));var r=n(1),o=n.n(r),a=n(0),i=n.n(a),s=n(3),l=n(4),c=n(2),u=n.n(c);function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=function(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}));function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h,m=function(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}})),g=[],y={onKeyDown:function(e){g.forEach((function(t){t(e)}))},registerCallBack:function(e){g.push(e)},deregisterCallBack:function(e){g=g.filter((function(t){return t!==e}))}},v=function(){h=!0},b=function(){h=!1},w=function(){return h};function E(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function x(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function C(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function _(e){e.stopPropagation()}function S(e){return e[e.options[0]].icon}function O(e,t){if(e&&void 0===t)return e;var n={};return x(e,(function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=O(r,t[e]):n[e]=void 0!==t[e]?t[e]:r})),n}var k=n(6),N=n.n(k),M=n(5);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9);var L=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(){var t=e.props,n=t.disabled,r=t.onClick,o=t.value;n||r(o)},e}return e=a,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,a=t.activeClassName,i=t.active,s=t.disabled,l=t.title;return o.a.createElement("div",{className:u()("rdw-option-wrapper",r,(D(e={},"rdw-option-active ".concat(a),i),D(e,"rdw-option-disabled",s),e)),onClick:this.onClick,"aria-selected":i,title:l},n)}}])&&I(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t){return(F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}L.propTypes={onClick:i.a.func.isRequired,children:i.a.any,value:i.a.string,className:i.a.string,activeClassName:i.a.string,active:i.a.bool,disabled:i.a.bool,title:i.a.string},L.defaultProps={activeClassName:""},n(12);var z=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={highlighted:-1},e.onChange=function(t){var n=e.props.onChange;n&&n(t),e.toggleExpansion()},e.setHighlighted=function(t){e.setState({highlighted:t})},e.toggleExpansion=function(){var t=e.props,n=t.doExpand,r=t.doCollapse;t.expanded?r():n()},e}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&this.setState({highlighted:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.expanded,r=t.children,a=t.className,i=t.optionWrapperClassName,s=t.ariaLabel,l=t.onExpandEvent,c=t.title,d=this.state.highlighted,p=r.slice(1,r.length);return o.a.createElement("div",{className:u()("rdw-dropdown-wrapper",a),"aria-expanded":n,"aria-label":s||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:l,title:c},r[0],o.a.createElement("div",{className:u()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:u()("rdw-dropdown-optionwrapper",i),onClick:_},o.a.Children.map(p,(function(t,n){return t&&o.a.cloneElement(t,{onSelect:e.onChange,highlighted:d===n,setHighlighted:e.setHighlighted,index:n})}))):void 0)}}])&&R(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e,t){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}z.propTypes={children:i.a.any,onChange:i.a.func,className:i.a.string,expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,optionWrapperClassName:i.a.string,ariaLabel:i.a.string,title:i.a.string},n(13);var G=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(t){var n=e.props,r=n.onSelect,o=n.onClick,a=n.value;n.disabled||(r&&r(a),o&&(t.stopPropagation(),o(a)))},e.setHighlighted=function(){var t=e.props;(0,t.setHighlighted)(t.index)},e.resetHighlighted=function(){(0,e.props.setHighlighted)(-1)},e}return e=a,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,a=t.disabled,i=t.highlighted,s=t.className,l=t.activeClassName,c=t.disabledClassName,d=t.highlightedClassName,p=t.title;return o.a.createElement("li",{className:u()("rdw-dropdownoption-default",s,(U(e={},"rdw-dropdownoption-active ".concat(l),r),U(e,"rdw-dropdownoption-highlighted ".concat(d),i),U(e,"rdw-dropdownoption-disabled ".concat(c),a),e)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:p},n)}}])&&H(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e,t){return(Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}G.propTypes={children:i.a.any,value:i.a.any,onClick:i.a.func,onSelect:i.a.func,setHighlighted:i.a.func,index:i.a.number,disabled:i.a.bool,active:i.a.bool,highlighted:i.a.bool,className:i.a.string,activeClassName:i.a.string,disabledClassName:i.a.string,highlightedClassName:i.a.string,title:i.a.string},G.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var Z=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$(e);if(t){var o=$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===W(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),n.apply(this,arguments)}return e=a,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState,r=e.onChange,a=e.translations;return o.a.createElement("div",{className:u()("rdw-inline-wrapper",t.className),"aria-label":"rdw-inline-control"},t.options.map((function(e,i){return o.a.createElement(L,{key:i,value:e,onClick:r,className:u()(t[e].className),active:!0===n[e]||"MONOSPACE"===e&&n.CODE,title:t[e].title||a["components.controls.inline.".concat(e)]},o.a.createElement("img",{alt:"",src:t[e].icon}))})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,a=e.onExpandEvent,i=e.doCollapse,s=e.currentState,l=e.onChange,c=e.translations,d=t.className,p=t.dropdownClassName,f=t.title;return o.a.createElement(z,{className:u()("rdw-inline-dropdown",d),optionWrapperClassName:u()(p),onChange:l,expanded:n,doExpand:r,doCollapse:i,onExpandEvent:a,"aria-label":"rdw-inline-control",title:f},o.a.createElement("img",{src:S(t),alt:""}),t.options.map((function(e,n){return o.a.createElement(G,{key:n,value:e,className:u()("rdw-inline-dropdownoption",t[e].className),active:!0===s[e]||"MONOSPACE"===e&&s.CODE,title:t[e].title||c["components.controls.inline.".concat(e)]},o.a.createElement("img",{src:t[e].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Y(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Z.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var ne=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.toggleInlineStyle=function(e){var n="monospace"===e?"CODE":e.toUpperCase(),r=t.props,o=r.editorState,a=r.onChange,i=s.RichUtils.toggleInlineStyle(o,n);if("subscript"===e||"superscript"===e){var l="subscript"===e?"SUPERSCRIPT":"SUBSCRIPT",c=s.Modifier.removeInlineStyle(i.getCurrentContent(),i.getSelection(),l);i=s.EditorState.push(i,c,"change-inline-style")}i&&a(i)},t.changeKeys=function(e){if(e){var t={};return x(e,(function(e,n){t["CODE"===e?"monospace":e.toLowerCase()]=n})),t}},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r=t.props,o=r.editorState,i=r.modalHandler;return t.state={currentStyles:o?t.changeKeys(Object(l.getSelectionInlineStyle)(o)):{}},i.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(l.getSelectionInlineStyle)(t))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,a=r.expanded,i=r.currentStyles,s=t.component||Z;return o.a.createElement(s,{config:t,translations:n,currentState:i,expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ae(e,t){return(ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ne.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(15);var se=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ae(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ie(e);if(t){var o=ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).getBlockTypes=function(e){return[{label:"Normal",displayName:e["components.controls.blocktype.normal"]},{label:"H1",displayName:e["components.controls.blocktype.h1"]},{label:"H2",displayName:e["components.controls.blocktype.h2"]},{label:"H3",displayName:e["components.controls.blocktype.h3"]},{label:"H4",displayName:e["components.controls.blocktype.h4"]},{label:"H5",displayName:e["components.controls.blocktype.h5"]},{label:"H6",displayName:e["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:e["components.controls.blocktype.blockquote"]},{label:"Code",displayName:e["components.controls.blocktype.code"]}]},t.state={blockTypes:t.getBlockTypes(e.translations)},t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.translations;t!==e.translations&&this.setState({blockTypes:this.getBlockTypes(t)})}},{key:"renderFlat",value:function(e){var t=this.props,n=t.config.className,r=t.onChange,a=t.currentState.blockType;return o.a.createElement("div",{className:u()("rdw-inline-wrapper",n)},e.map((function(e,t){return o.a.createElement(L,{key:t,value:e.label,active:a===e.label,onClick:r},e.displayName)})))}},{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config,r=n.className,a=n.dropdownClassName,i=n.title,s=t.currentState.blockType,l=t.expanded,c=t.doExpand,d=t.onExpandEvent,p=t.doCollapse,f=t.onChange,h=t.translations,m=this.state.blockTypes.filter((function(e){return e.label===s})),g=m&&m[0]&&m[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(z,{className:u()("rdw-block-dropdown",r),optionWrapperClassName:u()(a),onChange:f,expanded:l,doExpand:c,doCollapse:p,onExpandEvent:d,title:i||h["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,g||h["components.controls.blocktype.blocktype"]),e.map((function(e,t){return o.a.createElement(G,{active:s===e.label,value:e.label,key:t},e.displayName)}))))}},{key:"render",value:function(){var e=this.props.config,t=e.inDropdown,n=this.state.blockTypes.filter((function(t){var n=t.label;return-1<e.options.indexOf(n)}));return t?this.renderInDropdown(n):this.renderFlat(n)}}])&&oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();se.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doExpand:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var le=se;function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t){return(de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.blocksTypes.find((function(t){return t.label===e})).style,r=t.props,o=r.editorState,a=r.onChange,i=s.RichUtils.toggleBlockType(o,n);i&&a(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:!1,currentBlockType:r?Object(l.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(l.getSelectedBlocksType)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,a=r.expanded,i=r.currentBlockType,s=t.component||le,l=this.blocksTypes.find((function(e){return e.style===i}));return o.a.createElement(s,{config:t,translations:n,currentState:{blockType:l&&l.label},onChange:this.toggleBlockType,expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();fe.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var he=fe;function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t){return(ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(16);var be=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},e}return e=a,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-size");t=t.substring(0,t.length-2),this.setState({defaultFontSize:t})}}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,a=t.dropdownClassName,i=t.options,s=t.title,l=e.onChange,c=e.expanded,d=e.doCollapse,p=e.onExpandEvent,f=e.doExpand,h=e.translations,m=this.props.currentState.fontSize,g=this.state.defaultFontSize;return g=Number(g),m=m||i&&0<=i.indexOf(g)&&g,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(z,{className:u()("rdw-fontsize-dropdown",r),optionWrapperClassName:u()(a),onChange:l,expanded:c,doExpand:f,doCollapse:d,onExpandEvent:p,title:s||h["components.controls.fontsize.fontsize"]},m?o.a.createElement("span",null,m):o.a.createElement("img",{src:n,alt:""}),i.map((function(e,t){return o.a.createElement(G,{className:"rdw-fontsize-option",active:m===e,value:e,key:t},e)}))))}}])&&ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xe(e,t){return(xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}be.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doExpand:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var _e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xe(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ce(e);if(t){var o=Ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===we(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontSize=function(e){var n=t.props,r=n.editorState,o=n.onChange,a=Object(l.toggleCustomInlineStyle)(r,"fontSize",e);a&&o(a)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontSize:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(l.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,a=r.expanded,i=r.currentFontSize,s=t.component||be,l=i&&Number(i.substring(9));return o.a.createElement(s,{config:t,translations:n,currentState:{fontSize:l},onChange:this.toggleFontSize,expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ke(e,t){return(ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}_e.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(17);var Me=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ke(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ne(e);if(t){var o=Ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},e}return e=a,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:t})}}},{key:"render",value:function(){var e=this.state.defaultFontFamily,t=this.props,n=t.config,r=n.className,a=n.dropdownClassName,i=n.options,s=n.title,l=t.translations,c=t.onChange,d=t.expanded,p=t.doCollapse,f=t.onExpandEvent,h=t.doExpand,m=this.props.currentState.fontFamily;return m=m||i&&e&&i.some((function(t){return t.toLowerCase()===e.toLowerCase()}))&&e,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(z,{className:u()("rdw-fontfamily-dropdown",r),optionWrapperClassName:u()("rdw-fontfamily-optionwrapper",a),onChange:c,expanded:d,doExpand:h,doCollapse:p,onExpandEvent:f,title:s||l["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},m||l["components.controls.fontfamily.fontfamily"]),i.map((function(e,t){return o.a.createElement(G,{active:m===e,value:e,key:t},e)}))))}}])&&Oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();Me.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doExpand:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var Ae=Me;function De(e){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function je(e,t){return(je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&je(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===De(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontFamily=function(e){var n=t.props,r=n.editorState,o=n.onChange,a=Object(l.toggleCustomInlineStyle)(r,"fontFamily",e);a&&o(a)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontFamily:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(l.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,a=r.expanded,i=r.currentFontFamily,s=t.component||Ae,l=i&&i.substring(11);return o.a.createElement(s,{translations:n,config:t,currentState:{fontFamily:l},onChange:this.toggleFontFamily,expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fe(e,t){return(Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Le.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(18);var ze=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],e.toggleBlockType=function(t){(0,e.props.onChange)(t)},e.indent=function(){(0,e.props.onChange)("indent")},e.outdent=function(){(0,e.props.onChange)("outdent")},e}return e=a,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState.listType,r=e.translations,a=e.indentDisabled,i=e.outdentDisabled,s=t.options,l=t.unordered,c=t.ordered,d=t.indent,p=t.outdent,f=t.className;return o.a.createElement("div",{className:u()("rdw-list-wrapper",f),"aria-label":"rdw-list-control"},0<=s.indexOf("unordered")&&o.a.createElement(L,{value:"unordered",onClick:this.toggleBlockType,className:u()(l.className),active:"unordered"===n,title:l.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:l.icon,alt:""})),0<=s.indexOf("ordered")&&o.a.createElement(L,{value:"ordered",onClick:this.toggleBlockType,className:u()(c.className),active:"ordered"===n,title:c.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:c.icon,alt:""})),0<=s.indexOf("indent")&&o.a.createElement(L,{onClick:this.indent,disabled:a,className:u()(d.className),title:d.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=s.indexOf("outdent")&&o.a.createElement(L,{onClick:this.outdent,disabled:i,className:u()(p.className),title:p.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:p.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this,t=this.props,n=t.config,r=t.expanded,a=t.doCollapse,i=t.doExpand,s=t.onExpandEvent,l=t.onChange,c=t.currentState.listType,d=t.translations,p=n.options,f=n.className,h=n.dropdownClassName,m=n.title;return o.a.createElement(z,{className:u()("rdw-list-dropdown",f),optionWrapperClassName:u()(h),onChange:l,expanded:r,doExpand:i,doCollapse:a,onExpandEvent:s,"aria-label":"rdw-list-control",title:m||d["components.controls.list.list"]},o.a.createElement("img",{src:S(n),alt:""}),this.options.filter((function(e){return 0<=p.indexOf(e)})).map((function(t,r){return o.a.createElement(G,{key:r,value:t,disabled:e.props["".concat(t,"Disabled")],className:u()("rdw-list-dropdownOption",n[t].className),active:c===t,title:n[t].title||d["components.controls.list.".concat(t)]},o.a.createElement("img",{src:n[t].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Re(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function He(e,t){return(He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ze.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object,indentDisabled:i.a.bool,outdentDisabled:i.a.bool};var Ke=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&He(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ve(e);if(t){var o=Ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){"unordered"===e?t.toggleBlockType("unordered-list-item"):"ordered"===e?t.toggleBlockType("ordered-list-item"):"indent"===e?t.adjustDepth(1):t.adjustDepth(-1)},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.props,r=n.onChange,o=n.editorState,a=s.RichUtils.toggleBlockType(o,e);a&&r(a)},t.adjustDepth=function(e){var n=t.props,r=n.onChange,o=n.editorState,a=Object(l.changeDepth)(o,e,4);a&&r(a)},t.isIndentDisabled=function(){var e=t.props.editorState,n=t.state.currentBlock,r=Object(l.getBlockBeforeSelectedBlock)(e);return!r||!Object(l.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},t.isOutdentDisabled=function(){var e=t.state.currentBlock;return!e||!Object(l.isListBlock)(e)||e.get("depth")<=0};var r=t.props,o=r.editorState,i=r.modalHandler;return t.state={expanded:!1,currentBlock:o?Object(l.getSelectedBlock)(o):void 0},i.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(l.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,a=this.state,i=a.expanded,s=a.currentBlock,l=n.component||ze;"unordered-list-item"===s.get("type")?e="unordered":"ordered-list-item"===s.get("type")&&(e="ordered");var c=this.isIndentDisabled(),u=this.isOutdentDisabled();return o.a.createElement(l,{config:n,translations:r,currentState:{listType:e},expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:c,outdentDisabled:u})}}])&&Ue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ye(e,t){return(Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ke.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(19);var $e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ye(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qe(e);if(t){var o=Qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),n.apply(this,arguments)}return e=a,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,a=t.center,i=t.right,s=t.justify,l=t.className,c=e.onChange,d=e.currentState.textAlignment,p=e.translations;return o.a.createElement("div",{className:u()("rdw-text-align-wrapper",l),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(L,{value:"left",className:u()(r.className),active:"left"===d,onClick:c,title:r.title||p["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(L,{value:"center",className:u()(a.className),active:"center"===d,onClick:c,title:a.title||p["components.controls.textalign.center"]},o.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(L,{value:"right",className:u()(i.className),active:"right"===d,onClick:c,title:i.title||p["components.controls.textalign.right"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(L,{value:"justify",className:u()(s.className),active:"justify"===d,onClick:c,title:s.title||p["components.controls.textalign.justify"]},o.a.createElement("img",{src:s.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,a=e.onExpandEvent,i=e.doCollapse,s=e.currentState.textAlignment,l=e.onChange,c=e.translations,d=t.options,p=t.left,f=t.center,h=t.right,m=t.justify,g=t.className,y=t.dropdownClassName,v=t.title;return o.a.createElement(z,{className:u()("rdw-text-align-dropdown",g),optionWrapperClassName:u()(y),onChange:l,expanded:n,doExpand:r,doCollapse:i,onExpandEvent:a,"aria-label":"rdw-textalign-control",title:v||c["components.controls.textalign.textalign"]},o.a.createElement("img",{src:s&&t[s]&&t[s].icon||S(t),alt:""}),0<=d.indexOf("left")&&o.a.createElement(G,{value:"left",active:"left"===s,className:u()("rdw-text-align-dropdownOption",p.className),title:p.title||c["components.controls.textalign.left"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=d.indexOf("center")&&o.a.createElement(G,{value:"center",active:"center"===s,className:u()("rdw-text-align-dropdownOption",f.className),title:f.title||c["components.controls.textalign.center"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=d.indexOf("right")&&o.a.createElement(G,{value:"right",active:"right"===s,className:u()("rdw-text-align-dropdownOption",h.className),title:h.title||c["components.controls.textalign.right"]},o.a.createElement("img",{src:h.icon,alt:""})),0<=d.indexOf("justify")&&o.a.createElement(G,{value:"justify",active:"justify"===s,className:u()("rdw-text-align-dropdownOption",m.className),title:m.title||c["components.controls.textalign.justify"]},o.a.createElement("img",{src:m.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&We(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Ze(e){return(Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xe(e,t){return(Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}$e.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var tt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xe(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=et(e);if(t){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addBlockAlignmentData=function(e){var n=t.props,r=n.editorState;(0,n.onChange)(t.state.currentTextAlignment!==e?Object(l.setBlockData)(r,{"text-align":e}):Object(l.setBlockData)(r,{"text-align":void 0}))};var r=t.props.modalHandler;return t.state={currentTextAlignment:void 0},r.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(l.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,a=r.expanded,i=r.currentTextAlignment,s=t.component||$e;return o.a.createElement(s,{config:t,translations:n,expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:i},onChange:this.addBlockAlignmentData})}}])&&Je(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function nt(e){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ot(e,t){return(ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function at(e){return(at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}tt.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(20);var it=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ot(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=at(e);if(t){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},e.onChange=function(t){(0,e.props.onChange)(e.state.currentStyle,t)},e.setCurrentStyleColor=function(){e.setState({currentStyle:"color"})},e.setCurrentStyleBgcolor=function(){e.setState({currentStyle:"bgcolor"})},e.renderModal=function(){var t=e.props,n=t.config,r=n.popupClassName,a=n.colors,i=t.currentState,s=i.color,l=i.bgColor,c=t.translations,d=e.state.currentStyle,p="color"===d?s:l;return o.a.createElement("div",{className:u()("rdw-colorpicker-modal",r),onClick:_},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===d}),onClick:e.setCurrentStyleColor},c["components.controls.colorpicker.text"]),o.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===d}),onClick:e.setCurrentStyleBgcolor},c["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},a.map((function(t,n){return o.a.createElement(L,{value:t,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:p===t,onClick:e.onChange},o.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))}))))},e}return e=a,(t=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,a=t.title,i=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":i,"aria-label":"rdw-color-picker",title:a||l["components.controls.colorpicker.colorpicker"]},o.a.createElement(L,{onClick:s,className:u()(r)},o.a.createElement("img",{src:n,alt:""})),i?this.renderModal():void 0)}}])&&rt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();it.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var st=it;function lt(e){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t){return(ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ut(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleColor=function(e,n){var r=t.props,o=r.editorState,a=r.onChange,i=Object(l.toggleCustomInlineStyle)(o,e,n);i&&a(i),t.doCollapse()};var r=e.editorState,o=e.modalHandler,i={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(i.currentColor=Object(l.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,i.currentBgColor=Object(l.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),t.state=i,o.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentColor:Object(l.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR,currentBgColor:Object(l.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,a=r.currentColor,i=r.currentBgColor,s=r.expanded,l=t.component||st,c=a&&a.substring(6),u=i&&i.substring(8);return o.a.createElement(l,{config:t,translations:n,onChange:this.toggleColor,expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:c,bgColor:u}})}}])&&ct(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();pt.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var ft=pt,ht=n(7),mt=n.n(ht);function gt(e){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return(vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(26);var wt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vt(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bt(e);if(t){var o=bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:e.props.config.defaultTargetOption},e.removeLink=function(){(0,e.props.onChange)("unlink")},e.addLink=function(){var t=e.props.onChange,n=e.state;t("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.updateTargetOption=function(t){e.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},e.hideModal=function(){e.setState({showModal:!1})},e.signalExpandShowModal=function(){var t=e.props,n=t.onExpandEvent,r=t.currentState,o=r.link,a=r.selectionText,i=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||i,linkTitle:o&&o.title||a})},e.forceExpandAndShowModal=function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,a=r.selectionText,i=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||i,linkTitle:o&&o.title||a})},e}return e=a,(t=[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,a=this.state,i=a.linkTitle,s=a.linkTarget,l=a.linkTargetOption;return o.a.createElement("div",{className:u()("rdw-link-modal",t),onClick:_},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:i}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:s}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===l,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!s||!i},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,a=t.unlink,i=t.className,s=e.currentState,l=e.expanded,c=e.translations,d=this.state.showModal;return o.a.createElement("div",{className:u()("rdw-link-wrapper",i),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(L,{value:"unordered-list-item",className:u()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":d,title:r.title||c["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(L,{disabled:!s.link,value:"ordered-list-item",className:u()(a.className),onClick:this.removeLink,title:a.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:a.icon,alt:""})),l&&d?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,a=e.doExpand,i=e.onChange,s=e.config,l=e.currentState,c=e.translations,d=s.options,p=s.link,f=s.unlink,h=s.className,m=s.dropdownClassName,g=s.title,y=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:g},o.a.createElement(z,{className:u()("rdw-link-dropdown",h),optionWrapperClassName:u()(m),onChange:i,expanded:t&&!y,doExpand:a,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:S(s),alt:""}),0<=d.indexOf("link")&&o.a.createElement(G,{onClick:this.forceExpandAndShowModal,className:u()("rdw-link-dropdownoption",p.className),title:p.title||c["components.controls.link.link"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=d.indexOf("unlink")&&o.a.createElement(G,{onClick:this.removeLink,disabled:!l.link,className:u()("rdw-link-dropdownoption",f.className),title:f.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:f.icon,alt:""}))),t&&y?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&yt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();wt.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var Et=wt;function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _t(e,t){return(_t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ot(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 kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){Nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mt(e){var t=At.match(e.target);return kt(kt({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var At=mt()(),Dt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_t(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=St(e);if(t){var o=St(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e,n,r,o){var a=t.props.config.linkCallback;if("link"===e){var i=(a||Mt)({title:n,target:r,targetOption:o});t.addLink(i.title,i.target,i.targetOption)}else t.removeLink()},t.getCurrentValues=function(){var e=t.props.editorState,n=t.state.currentEntity,r=e.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var a=n&&Object(l.getEntityRange)(e,n);o.link.target=n&&r.getEntity(n).get("data").url,o.link.targetOption=n&&r.getEntity(n).get("data").targetOption,o.link.title=a&&a.text}return o.selectionText=Object(l.getSelectionText)(e),o},t.doExpand=function(){t.setState({expanded:!0})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doCollapse=function(){t.setState({expanded:!1})},t.removeLink=function(){var e=t.props,n=e.editorState,r=e.onChange,o=t.state.currentEntity,a=n.getSelection();if(o){var i=Object(l.getEntityRange)(n,o);a=a.getIsBackward()?a.merge({anchorOffset:i.end,focusOffset:i.start}):a.merge({anchorOffset:i.start,focusOffset:i.end}),r(s.RichUtils.toggleLink(n,a,null))}},t.addLink=function(e,n,r){var o=t.props,a=o.editorState,i=o.onChange,c=t.state.currentEntity,u=a.getSelection();if(c){var d=Object(l.getEntityRange)(a,c);u=u.getIsBackward()?u.merge({anchorOffset:d.end,focusOffset:d.start}):u.merge({anchorOffset:d.start,focusOffset:d.end})}var p=a.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),f=s.Modifier.replaceText(a.getCurrentContent(),u,"".concat(e),a.getCurrentInlineStyle(),p),h=s.EditorState.push(a,f,"insert-characters");u=h.getSelection().merge({anchorOffset:u.get("anchorOffset")+e.length,focusOffset:u.get("anchorOffset")+e.length}),h=s.EditorState.acceptSelection(h,u),f=s.Modifier.insertText(h.getCurrentContent(),u," ",h.getCurrentInlineStyle(),void 0),i(s.EditorState.push(h,f,"insert-characters")),t.doCollapse()};var r=t.props,o=r.editorState,i=r.modalHandler;return t.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(l.getSelectionEntity)(o):void 0},i.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(l.getSelectionEntity)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,a=this.getCurrentValues(),i=a.link,s=a.selectionText,l=t.component||Et;return o.a.createElement(l,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:i,selectionText:s},onChange:this.onChange})}}])&&Ct(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();Dt.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var It=Dt;function jt(e){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t){return(Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(27);var Rt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lt(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pt(e);if(t){var o=Pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===jt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width},e.onChange=function(){var t=e.props.onChange,n=e.state;t(n.embeddedLink,n.height,n.width)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,r=t.config;if(!n&&e.expanded){var o=r.defaultSize,a=o.height,i=o.width;this.setState({embeddedLink:"",height:a,width:i})}}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,r=e.width,a=this.props,i=a.config.popupClassName,s=a.doCollapse,l=a.translations;return o.a.createElement("div",{className:u()("rdw-embedded-modal",i),onClick:_},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},l["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:l["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!r},l["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:s},l["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,a=t.title,i=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":i,"aria-label":"rdw-embedded-control"},o.a.createElement(L,{className:u()(r),value:"unordered-list-item",onClick:s,title:a||l["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),i?this.rendeEmbeddedLinkModal():void 0)}}])&&Tt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();Rt.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,onChange:i.a.func,config:i.a.object,translations:i.a.object,doCollapse:i.a.func};var Ft=Rt;function Bt(e){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e,t){return(qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ut(e){return(Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ht=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ut(e);if(t){var o=Ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmbeddedLink=function(t,n,r){var o=e.props,a=o.editorState,i=o.onChange,l=o.config.embedCallback,c=l?l(t):t,u=a.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:c,height:n,width:r}).getLastCreatedEntityKey();i(s.AtomicBlockUtils.insertAtomicBlock(a,u," ")),e.doCollapse()},e}return e=a,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,a=t.component||Ft;return o.a.createElement(a,{config:t,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&zt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();Ht.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var Vt=Ht;function Kt(e){return(Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wt(e,t){return(Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yt(e){return(Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(28);var Qt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wt(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yt(e);if(t){var o=Yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Kt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t.target.innerHTML)},e}return e=a,(t=[{key:"renderEmojiModal",value:function(){var e=this,t=this.props.config,n=t.popupClassName,r=t.emojis;return o.a.createElement("div",{className:u()("rdw-emoji-modal",n),onClick:_},r.map((function(t,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:e.onChange},t)})))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,a=t.title,i=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":i,title:a||l["components.controls.emoji.emoji"]},o.a.createElement(L,{className:u()(r),value:"unordered-list-item",onClick:s},o.a.createElement("img",{src:n,alt:""})),i?this.renderEmojiModal():void 0)}}])&&Gt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();Qt.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,onChange:i.a.func,config:i.a.object,translations:i.a.object};var $t=Qt;function Zt(e){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xt(e,t){return(Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var o=en(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Zt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmoji=function(t){var n=e.props,r=n.editorState,o=n.onChange,a=s.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());o(s.EditorState.push(r,a,"insert-characters")),e.doCollapse()},e}return e=a,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,a=t.component||$t;return o.a.createElement(a,{config:t,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&Jt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function nn(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function rn(e){return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function an(e,t){return(an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}tn.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(29),n(30);var ln=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&an(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:e.props.config.uploadEnabled&&!!e.props.config.uploadCallback,showImageLoading:!1,height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width,alt:""},e.onDragEnter=function(t){e.stopPropagation(t),e.setState({dragEnter:!0})},e.onImageDrop=function(t){var n,r;t.preventDefault(),t.stopPropagation(),e.setState({dragEnter:!1}),r=t.dataTransfer.items?(n=t.dataTransfer.items,!0):(n=t.dataTransfer.files,!1);for(var o=0;o<n.length;o+=1)if((!r||"file"===n[o].kind)&&n[o].type.match("^image/")){var a=r?n[o].getAsFile():n[o];e.uploadImage(a)}},e.showImageUploadOption=function(){e.setState({uploadHighlighted:!0})},e.addImageFromState=function(){var t=e.state,n=t.imgSrc,r=t.alt,o=e.state,a=o.height,i=o.width,s=e.props.onChange;isNaN(a)||(a+="px"),isNaN(i)||(i+="px"),s(n,a,i,r)},e.showImageURLOption=function(){e.setState({uploadHighlighted:!1})},e.toggleShowImageLoading=function(){var t=!e.state.showImageLoading;e.setState({showImageLoading:t})},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.selectImage=function(t){t.target.files&&0<t.target.files.length&&e.uploadImage(t.target.files[0])},e.uploadImage=function(t){e.toggleShowImageLoading(),(0,e.props.config.uploadCallback)(t).then((function(t){var n=t.data;e.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),e.fileUpload=!1})).catch((function(){e.setState({showImageLoading:!1,dragEnter:!1})}))},e.fileUploadClick=function(t){e.fileUpload=!0,t.stopPropagation()},e.stopPropagation=function(t){e.fileUpload?e.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},e}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"renderAddImageModal",value:function(){var e=this.state,t=e.imgSrc,n=e.uploadHighlighted,r=e.showImageLoading,a=e.dragEnter,i=e.height,s=e.width,l=e.alt,c=this.props,d=c.config,p=d.popupClassName,f=d.uploadCallback,h=d.uploadEnabled,m=d.urlEnabled,g=d.previewImage,y=d.inputAccept,v=d.alt,b=c.doCollapse,w=c.translations;return o.a.createElement("div",{className:u()("rdw-image-modal",p),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},h&&f&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},w["components.controls.image.fileUpload"],o.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),m&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},w["components.controls.image.byURL"],o.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:u()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":a})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},g&&t?o.a.createElement("img",{src:t,alt:t,className:"rdw-image-modal-upload-option-image-preview"}):t||w["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:y,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:w["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:t}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),v.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:l,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},v.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:i,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!t||!i||!s||v.mandatory&&!l},w["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:b},w["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement(nn,null)):void 0)}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,a=t.title,i=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":i,"aria-label":"rdw-image-control"},o.a.createElement(L,{className:u()(r),value:"unordered-list-item",onClick:s,title:a||l["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),i?this.renderAddImageModal():void 0)}}])&&on(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();ln.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,translations:i.a.object};var cn=ln;function _n(e){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dn(e,t){return(dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pn(e){return(pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dn(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pn(e);if(t){var o=pn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.addImage=function(e,n,r,o){var a=t.props,i=a.editorState,l=a.onChange,c={src:e,height:n,width:r};a.config.alt.present&&(c.alt=o);var u=i.getCurrentContent().createEntity("IMAGE","MUTABLE",c).getLastCreatedEntityKey();l(s.AtomicBlockUtils.insertAtomicBlock(i,u," ")),t.doCollapse()};var r=t.props.modalHandler;return t.state={expanded:!1},r.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,a=t.component||cn;return o.a.createElement(a,{config:t,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&un(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function hn(e){var t=e.config,n=e.onChange,r=e.translations,a=t.icon,i=t.className,s=t.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(L,{className:u()(i),onClick:n,title:s||r["components.controls.remove.remove"]},o.a.createElement("img",{src:a,alt:""})))}fn.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var mn=fn;n(31),hn.propTypes={onChange:i.a.func,config:i.a.object,translations:i.a.object};var gn=hn;function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bn(e,t){return(bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wn(e){return(wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var En=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bn(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wn(e);if(t){var o=wn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.removeInlineStyles=function(){var t=e.props,n=t.editorState;(0,t.onChange)(e.removeAllInlineStyles(n))},e.removeAllInlineStyles=function(e){var t=e.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(n){t=s.Modifier.removeInlineStyle(t,e.getSelection(),n)})),x(Object(l.getSelectionCustomInlineStyle)(e,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),(function(n,r){r&&(t=s.Modifier.removeInlineStyle(t,e.getSelection(),r))})),s.EditorState.push(e,t,"change-inline-style")},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e}return e=a,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,a=t.component||gn;return o.a.createElement(a,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&vn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function xn(e){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sn(e,t){return(Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function On(e){return(On=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}En.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,config:i.a.object,translations:i.a.object,modalHandler:i.a.object},n(32);var kn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sn(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=On(e);if(t){var o=On(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===xn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t)},e}return e=a,(t=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,a=e.onExpandEvent,i=e.doCollapse,s=e.currentState,l=s.undoDisabled,c=s.redoDisabled,d=e.translations,p=t.options,f=t.undo,h=t.redo,m=t.className,g=t.dropdownClassName,y=t.title;return o.a.createElement(z,{className:u()("rdw-history-dropdown",m),optionWrapperClassName:u()(g),expanded:n,doExpand:r,doCollapse:i,onExpandEvent:a,"aria-label":"rdw-history-control",title:y||d["components.controls.history.history"]},o.a.createElement("img",{src:S(t),alt:""}),0<=p.indexOf("undo")&&o.a.createElement(G,{value:"undo",onClick:this.onChange,disabled:l,className:u()("rdw-history-dropdownoption",f.className),title:f.title||d["components.controls.history.undo"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("redo")&&o.a.createElement(G,{value:"redo",onClick:this.onChange,disabled:c,className:u()("rdw-history-dropdownoption",h.className),title:h.title||d["components.controls.history.redo"]},o.a.createElement("img",{src:h.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,a=t.redo,i=t.className,s=e.currentState,l=s.undoDisabled,c=s.redoDisabled,d=e.translations;return o.a.createElement("div",{className:u()("rdw-history-wrapper",i),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(L,{value:"undo",onClick:this.onChange,className:u()(r.className),disabled:l,title:r.title||d["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(L,{value:"redo",onClick:this.onChange,className:u()(a.className),disabled:c,title:a.title||d["components.controls.history.redo"]},o.a.createElement("img",{src:a.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Cn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Nn(e){return(Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function An(e,t){return(An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Dn(e){return(Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}kn.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var In=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&An(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dn(e);if(t){var o=Dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Nn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){var n=t.props,r=n.editorState,o=n.onChange,a=s.EditorState[e](r);a&&o(a)},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r={expanded:!(t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=e.editorState,i=e.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),t.state=r,i.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,a=r.undoDisabled,i=r.redoDisabled,s=r.expanded,l=t.component||kn;return o.a.createElement(l,{config:t,translations:n,currentState:{undoDisabled:a,redoDisabled:i},expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&Mn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();In.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var jn={inline:ne,blockType:he,fontSize:_e,fontFamily:Le,list:Ke,textAlign:tt,colorPicker:ft,link:It,embedded:Vt,emoji:tn,image:mn,remove:En,history:In},Tn=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ln=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function Pn(e){return String(e).replace(Tn,"").match(Ln)?e:"#"}function Rn(e){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bn(e,t){return(Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zn(e){return(zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qn(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()}),t)}function Un(e){var t,n=e.showOpenOptionOnHover;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bn(e,t)}(i,r.Component);var e,t,a=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zn(e);if(t){var o=zn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).state={showPopOver:!1},e.openLink=function(){var t=e.props,n=t.entityKey,r=t.contentState.getEntity(n).getData().url,o=window.open(Pn(r),"blank");o&&o.focus()},e.toggleShowPopOver=function(){var t=!e.state.showPopOver;e.setState({showPopOver:t})},e}return e=i,(t=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.entityKey,a=e.contentState.getEntity(r).getData(),i=a.url,s=a.targetOption,l=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:Pn(i),target:s},t),l&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&Fn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}()).propTypes={entityKey:i.a.string.isRequired,children:i.a.array,contentState:i.a.object},t}function Hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(33),n(34);var Vn=function(e,t,n){return t&&Hn(e.prototype,t),n&&Hn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getMentionComponent=function(){function e(e){var n=e.entityKey,r=e.children,a=e.contentState.getEntity(n).getData(),i=a.url,s=a.value;return o.a.createElement("a",{href:i||s,className:u()("rdw-mention-link",t)},r)}var t=n.className;return e.propTypes={entityKey:i.a.number,children:i.a.array,contentState:i.a.object},e},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=t}));Vn.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()}),t)};var Kn=Vn;function Gn(e){return(Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wn(e,t){return(Wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yn(e){return(Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $n(e,t,n){return t&&Qn(e.prototype,t),n&&Qn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(35);var Jn=$n((function e(t){var n=this;Zn(this,e),this.findSuggestionEntities=function(e,t){if(n.config.getEditorState()){var r=n.config,o=r.separator,a=r.trigger,i=r.getSuggestions,s=(0,r.getEditorState)().getSelection();if(s.get("anchorKey")===e.get("key")&&s.get("anchorKey")===s.get("focusKey")){var l=e.getText(),c=(l=l.substr(0,s.get("focusOffset")===l.length-1?l.length:s.get("focusOffset")+1)).lastIndexOf(o+a),u=o+a;if((void 0===c||c<0)&&l[0]===a&&(c=0,u=a),0<=c){var d=l.substr(c+u.length,l.length);i().some((function(e){return!!e.value&&(n.config.caseSensitive?0<=e.value.indexOf(d):0<=e.value.toLowerCase().indexOf(d&&d.toLowerCase()))}))&&t(0===c?0:c+1,l.length)}}}},this.getSuggestionComponent=function(){var e,t=this.config;return(e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wn(e,t)}(n,r.Component);var e=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yn(e);if(t){var o=Yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Gn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(n);function n(){var r;Zn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=e.call.apply(e,[this].concat(a))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(e){var t=r.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=t+1):"ArrowUp"===e.key?n.activeOption=t<=0?r.filteredSuggestions.length-1:t-1:"Escape"===e.key?(n.showSuggestions=!1,b()):"Enter"===e.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(e){var t=e.target.getAttribute("data-index");r.setState({activeOption:t})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(e){r.suggestion=e},r.setDropdownReference=function(e){r.dropdown=e},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(e){var n=e.children[0].props.text.substr(1),o=t.getSuggestions();r.filteredSuggestions=o&&o.filter((function(e){return!n||0===n.length||(t.caseSensitive?0<=e.value.indexOf(n):0<=e.value.toLowerCase().indexOf(n&&n.toLowerCase()))}))},r.addMention=function(){var e=r.state.activeOption,n=t.getEditorState(),o=t.onChange,a=t.separator,i=t.trigger,c=r.filteredSuggestions[e];c&&function(e,t,n,r,o){var a=o.value,i=o.url,c=e.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(a),value:a,url:i}).getLastCreatedEntityKey(),u=Object(l.getSelectedBlock)(e).getText(),d=e.getSelection().focusOffset,p=(u.lastIndexOf(n+r,d)||0)+1,f=!1;u.length===p+1&&(d=u.length)," "===u[d]&&(f=!0);var h=e.getSelection().merge({anchorOffset:p,focusOffset:d}),m=s.EditorState.acceptSelection(e,h),g=s.Modifier.replaceText(m.getCurrentContent(),h,"".concat(r).concat(a),m.getCurrentInlineStyle(),c);m=s.EditorState.push(m,g,"insert-characters"),f||(h=m.getSelection().merge({anchorOffset:p+a.length+r.length,focusOffset:p+a.length+r.length}),m=s.EditorState.acceptSelection(m,h),g=s.Modifier.insertText(m.getCurrentContent(),h," ",m.getCurrentInlineStyle(),void 0)),t(s.EditorState.push(m,g,"insert-characters"))}(n,o,a,i,c)},r}return $n(n,[{key:"componentDidMount",value:function(){var e,n,r,o=t.getWrapperRef().getBoundingClientRect(),a=this.suggestion.getBoundingClientRect(),i=this.dropdown.getBoundingClientRect();o.width<a.left-o.left+i.width?n=15:e=15,o.bottom<i.bottom&&(r=0),this.setState({style:{left:e,right:n,bottom:r}}),y.registerCallBack(this.onEditorKeyDown),v(),t.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.filterSuggestions(e),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){y.deregisterCallBack(this.onEditorKeyDown),b(),t.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e=this,n=this.props.children,r=this.state,a=r.activeOption,i=r.showSuggestions,s=t.dropdownClassName,l=t.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:t.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,n),i&&o.a.createElement("span",{className:u()("rdw-suggestion-dropdown",s),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map((function(t,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:e.addMention,"data-index":n,onMouseEnter:e.onOptionMouseEnter,onMouseLeave:e.onOptionMouseLeave,className:u()("rdw-suggestion-option",l,{"rdw-suggestion-option-active":n===a})},t.text)}))))}}]),n}()).propTypes={children:i.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var a=t.separator,c=t.trigger,d=t.getSuggestions,p=t.onChange,f=t.getEditorState,h=t.getWrapperRef,m=t.caseSensitive,g=t.dropdownClassName,w=t.optionClassName,E=t.modalHandler;this.config={separator:a,trigger:c,getSuggestions:d,onChange:p,getEditorState:f,getWrapperRef:h,caseSensitive:m,dropdownClassName:g,optionClassName:w,modalHandler:E}}));function Xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function er(e){var t=e.block,n=e.contentState.getEntity(t.getEntityAt(0)).getData(),r=n.src,a=n.height,i=n.width;return o.a.createElement("iframe",{height:a,width:i,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var tr=function(e,t,n){return t&&Xn(e.prototype,t),n&&Xn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getHashtagComponent=function(){function e(e){var n=e.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:u()("rdw-hashtag-link",t)},n)}var t=n.className;return e.propTypes={children:i.a.object},e},this.findHashtagEntities=function(e,t){for(var r=e.getText(),o=0,a=0;0<r.length&&0<=o;)if(r[0]===n.hashCharacter?(a=o=0,r=r.substr(n.hashCharacter.length)):0<=(o=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(o+(n.separator+n.hashCharacter).length),a+=o+n.separator.length),0<=o){var i=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,s=r.substr(0,i);s&&0<s.length&&(t(a,a+s.length+n.hashCharacter.length),a+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "}));er.propTypes={block:i.a.object,contentState:i.a.object};var nr=er;function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ar(e,t){return(ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ir(e){return(ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(37);var sr=function(e){var t;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ar(e,t)}(i,r.Component);var t,n,a=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ir(e);if(t){var o=ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=a.call.apply(a,[this].concat(r))).state={hovered:!1},t.setEntityAlignmentLeft=function(){t.setEntityAlignment("left")},t.setEntityAlignmentRight=function(){t.setEntityAlignment("right")},t.setEntityAlignmentCenter=function(){t.setEntityAlignment("none")},t.setEntityAlignment=function(n){var r=t.props,o=r.block,a=r.contentState,i=o.getEntityAt(0);a.mergeEntityData(i,{alignment:n}),e.onChange(s.EditorState.push(e.getEditorState(),a,"change-block-data")),t.setState({dummy:!0})},t.toggleHovered=function(){var e=!t.state.hovered;t.setState({hovered:e})},t}return t=i,(n=[{key:"renderAlignmentOptions",value:function(e){return o.a.createElement("div",{className:u()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===e})},o.a.createElement(L,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(L,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(L,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var t=this.props,n=t.block,r=t.contentState,a=this.state.hovered,i=e.isReadOnly,s=e.isImageAlignmentEnabled,l=r.getEntity(n.getEntityAt(0)).getData(),c=l.src,d=l.alignment,p=l.height,f=l.width,h=l.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:u()("rdw-image-alignment",{"rdw-image-left":"left"===d,"rdw-image-right":"right"===d,"rdw-image-center":!d||"none"===d})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:c,alt:h,style:{height:p,width:f}}),!i()&&a&&s()?this.renderAlignmentOptions(d):void 0))}}])&&or(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}()).propTypes={block:i.a.object,contentState:i.a.object},t},lr={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},cr={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Précédent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"Téléchargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour télécharger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fenêtre","components.controls.link.link":"Lier","components.controls.link.unlink":"Délier","components.controls.list.list":"Liste","components.controls.list.unordered":"Désordonnée","components.controls.list.ordered":"Ordonnée","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"添加","generic.cancel":"取消","components.controls.blocktype.h1":"标题1","components.controls.blocktype.h2":"标题2","components.controls.blocktype.h3":"标题3","components.controls.blocktype.h4":"标题4","components.controls.blocktype.h5":"标题5","components.controls.blocktype.h6":"标题6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"源码","components.controls.blocktype.blocktype":"样式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"选色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"内嵌","components.controls.embedded.embeddedlink":"内嵌网页","components.controls.embedded.enterlink":"输入网页地址","components.controls.emoji.emoji":"表情符号","components.controls.fontfamily.fontfamily":"字体","components.controls.fontsize.fontsize":"字号","components.controls.history.history":"历史","components.controls.history.undo":"撤销","components.controls.history.redo":"恢复","components.controls.image.image":"图片","components.controls.image.fileUpload":"来自文件","components.controls.image.byURL":"在线图片","components.controls.image.dropFileText":"点击或者拖拽文件上传","components.controls.inline.bold":"粗体","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下划线","components.controls.inline.strikethrough":"删除线","components.controls.inline.monospace":"等宽字体","components.controls.inline.superscript":"上标","components.controls.inline.subscript":"下标","components.controls.link.linkTitle":"超链接","components.controls.link.linkTarget":"输入链接地址","components.controls.link.linkTargetOption":"在新窗口中打开链接","components.controls.link.link":"链接","components.controls.link.unlink":"删除链接","components.controls.list.list":"列表","components.controls.list.unordered":"项目符号","components.controls.list.ordered":"编号","components.controls.list.indent":"增加缩进量","components.controls.list.outdent":"减少缩进量","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文本对齐","components.controls.textalign.left":"文本左对齐","components.controls.textalign.center":"居中","components.controls.textalign.right":"文本右对齐","components.controls.textalign.justify":"两端对齐"},ru:{"generic.add":"Добавить","generic.cancel":"Отменить","components.controls.blocktype.h1":"Заголовок 1","components.controls.blocktype.h2":"Заголовок 2","components.controls.blocktype.h3":"Заголовок 3","components.controls.blocktype.h4":"Заголовок 4","components.controls.blocktype.h5":"Заголовок 5","components.controls.blocktype.h6":"Заголовок 6","components.controls.blocktype.blockquote":"Цитата","components.controls.blocktype.code":"Код","components.controls.blocktype.blocktype":"Форматирование","components.controls.blocktype.normal":"Обычный","components.controls.colorpicker.colorpicker":"Выбор цвета","components.controls.colorpicker.text":"Текст","components.controls.colorpicker.background":"Фон","components.controls.embedded.embedded":"Встраивание","components.controls.embedded.embeddedlink":"Ссылка в iFrame","components.controls.embedded.enterlink":"Вставьте ссылку","components.controls.emoji.emoji":"Эмодзи","components.controls.fontfamily.fontfamily":"Шрифт","components.controls.fontsize.fontsize":"Размер шрифта","components.controls.history.history":"История","components.controls.history.undo":"Отменить","components.controls.history.redo":"Вернуть","components.controls.image.image":"Изображение","components.controls.image.fileUpload":"Файлы","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Переместите в эту область файлы или кликните для загрузки","components.controls.inline.bold":"Жирный","components.controls.inline.italic":"Курсив","components.controls.inline.underline":"Подчеркивание","components.controls.inline.strikethrough":"Зачеркивание","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Верхний индекс","components.controls.inline.subscript":"Нижний индекс","components.controls.link.linkTitle":"Текст","components.controls.link.linkTarget":"Адрес ссылки","components.controls.link.linkTargetOption":"Открывать в новом окне","components.controls.link.link":"Ссылка","components.controls.link.unlink":"Убрать ссылку","components.controls.list.list":"Список","components.controls.list.unordered":"Неупорядоченный","components.controls.list.ordered":"Упорядоченный","components.controls.list.indent":"Отступ","components.controls.list.outdent":"Выступ","components.controls.remove.remove":"Удалить","components.controls.textalign.textalign":"Выравнивание текста","components.controls.textalign.left":"Слева","components.controls.textalign.center":"По центру","components.controls.textalign.right":"Справа","components.controls.textalign.justify":"Выравнить"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"Título 1","components.controls.blocktype.h2":"Título 2","components.controls.blocktype.h3":"Título 3","components.controls.blocktype.h4":"Título 4","components.controls.blocktype.h5":"Título 5","components.controls.blocktype.h6":"Título 6","components.controls.blocktype.blockquote":"Citação","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Histórico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"Itálico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"Título do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem ordenção","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"À Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"À Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"입력","generic.cancel":"취소","components.controls.blocktype.h1":"제목1","components.controls.blocktype.h2":"제목2","components.controls.blocktype.h3":"제목3","components.controls.blocktype.h4":"제목4","components.controls.blocktype.h5":"제목5","components.controls.blocktype.h6":"제목6","components.controls.blocktype.blockquote":"인용","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"블록","components.controls.blocktype.normal":"표준","components.controls.colorpicker.colorpicker":"색상 선택","components.controls.colorpicker.text":"글꼴색","components.controls.colorpicker.background":"배경색","components.controls.embedded.embedded":"임베드","components.controls.embedded.embeddedlink":"임베드 링크","components.controls.embedded.enterlink":"주소를 입력하세요","components.controls.emoji.emoji":"이모지","components.controls.fontfamily.fontfamily":"글꼴","components.controls.fontsize.fontsize":"글꼴 크기","components.controls.history.history":"히스토리","components.controls.history.undo":"실행 취소","components.controls.history.redo":"다시 실행","components.controls.image.image":"이미지","components.controls.image.fileUpload":"파일 업로드","components.controls.image.byURL":"주소","components.controls.image.dropFileText":"클릭하거나 파일을 드롭하여 업로드하세요","components.controls.inline.bold":"굵게","components.controls.inline.italic":"기울임꼴","components.controls.inline.underline":"밑줄","components.controls.inline.strikethrough":"취소선","components.controls.inline.monospace":"고정 너비","components.controls.inline.superscript":"위 첨자","components.controls.inline.subscript":"아래 첨자","components.controls.link.linkTitle":"링크 제목","components.controls.link.linkTarget":"링크 타겟","components.controls.link.linkTargetOption":"새창으로 열기","components.controls.link.link":"링크","components.controls.link.unlink":"링크 제거","components.controls.list.list":"리스트","components.controls.list.unordered":"일반 리스트","components.controls.list.ordered":"순서 리스트","components.controls.list.indent":"들여쓰기","components.controls.list.outdent":"내어쓰기","components.controls.remove.remove":"삭제","components.controls.textalign.textalign":"텍스트 정렬","components.controls.textalign.left":"왼쪽","components.controls.textalign.center":"중앙","components.controls.textalign.right":"오른쪽","components.controls.textalign.justify":"양쪽"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzufügen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"Überschrift 1","components.controls.blocktype.h2":"Überschrift 2","components.controls.blocktype.h3":"Überschrift 3","components.controls.blocktype.h4":"Überschrift 4","components.controls.blocktype.h5":"Überschrift 5","components.controls.blocktype.h6":"Überschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgröße","components.controls.history.history":"Historie","components.controls.history.undo":"Zurücknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster öffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufzählung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergrößern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksbündig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsbündig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilføj","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontstørrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverførsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hævet","components.controls.inline.subscript":"Sænket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link Mål","components.controls.link.linkTargetOption":"Åbn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"Højre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"新增","generic.cancel":"取消","components.controls.blocktype.h1":"標題1","components.controls.blocktype.h2":"標題2","components.controls.blocktype.h3":"標題3","components.controls.blocktype.h4":"標題4","components.controls.blocktype.h5":"標題5","components.controls.blocktype.h6":"標題6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"程式碼","components.controls.blocktype.blocktype":"樣式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"選色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"內嵌","components.controls.embedded.embeddedlink":"內嵌網頁","components.controls.embedded.enterlink":"輸入網頁地址","components.controls.emoji.emoji":"表情符號","components.controls.fontfamily.fontfamily":"字體","components.controls.fontsize.fontsize":"字體大小","components.controls.history.history":"歷史紀錄","components.controls.history.undo":"復原","components.controls.history.redo":"重做","components.controls.image.image":"圖片","components.controls.image.fileUpload":"檔案上傳","components.controls.image.byURL":"網址","components.controls.image.dropFileText":"點擊或拖曳檔案上傳","components.controls.inline.bold":"粗體","components.controls.inline.italic":"斜體","components.controls.inline.underline":"底線","components.controls.inline.strikethrough":"刪除線","components.controls.inline.monospace":"等寬字體","components.controls.inline.superscript":"上標","components.controls.inline.subscript":"下標","components.controls.link.linkTitle":"超連結","components.controls.link.linkTarget":"輸入連結位址","components.controls.link.linkTargetOption":"在新視窗打開連結","components.controls.link.link":"連結","components.controls.link.unlink":"刪除連結","components.controls.list.list":"列表","components.controls.list.unordered":"項目符號","components.controls.list.ordered":"編號","components.controls.list.indent":"增加縮排","components.controls.list.outdent":"減少縮排","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文字對齊","components.controls.textalign.left":"文字向左對齊","components.controls.textalign.center":"文字置中","components.controls.textalign.right":"文字向右對齊","components.controls.textalign.justify":"兩端對齊"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nagłówek 1","components.controls.blocktype.h2":"Nagłówek 2","components.controls.blocktype.h3":"Nagłówek 3","components.controls.blocktype.h4":"Nagłówek 4","components.controls.blocktype.h5":"Nagłówek 5","components.controls.blocktype.h6":"Nagłówek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Tło","components.controls.embedded.embedded":"Osadź","components.controls.embedded.embeddedlink":"Osadź odnośnik","components.controls.embedded.enterlink":"Wprowadź odnośnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Krój czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Ponów","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prześlij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upuść plik lub kliknij, aby przesłać","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkreślenie","components.controls.inline.strikethrough":"Przekreślenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks górny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytuł odnośnika","components.controls.link.linkTarget":"Adres odnośnika","components.controls.link.linkTargetOption":"Otwórz odnośnik w nowej karcie","components.controls.link.link":"Wstaw odnośnik","components.controls.link.unlink":"Usuń odnośnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporządkowana","components.controls.list.ordered":"Lista uporządkowana","components.controls.list.indent":"Zwiększ wcięcie","components.controls.list.outdent":"Zmniejsz wcięcie","components.controls.remove.remove":"Usuń","components.controls.textalign.textalign":"Wyrównaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do środka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"Añadir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Código","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tamaño de fuente","components.controls.history.history":"Histórico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobreíndice","components.controls.inline.subscript":"Subíndice","components.controls.link.linkTitle":"Título del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineación del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"追加","generic.cancel":"キャンセル","components.controls.blocktype.h1":"見出し1","components.controls.blocktype.h2":"見出し2","components.controls.blocktype.h3":"見出し3","components.controls.blocktype.h4":"見出し4","components.controls.blocktype.h5":"見出し5","components.controls.blocktype.h6":"見出し6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"コード","components.controls.blocktype.blocktype":"スタイル","components.controls.blocktype.normal":"標準テキスト","components.controls.colorpicker.colorpicker":"テキストの色","components.controls.colorpicker.text":"テキスト","components.controls.colorpicker.background":"ハイライト","components.controls.embedded.embedded":"埋め込み","components.controls.embedded.embeddedlink":"埋め込みリンク","components.controls.embedded.enterlink":"リンクを入力してください","components.controls.emoji.emoji":"絵文字","components.controls.fontfamily.fontfamily":"フォント","components.controls.fontsize.fontsize":"フォントサイズ","components.controls.history.history":"履歴","components.controls.history.undo":"元に戻す","components.controls.history.redo":"やり直し","components.controls.image.image":"画像","components.controls.image.fileUpload":"ファイルをアップロード","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"ここに画像をドラッグするか、クリックしてください","components.controls.inline.bold":"太字","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下線","components.controls.inline.strikethrough":"取り消し線","components.controls.inline.monospace":"等幅フォント","components.controls.inline.superscript":"上付き文字","components.controls.inline.subscript":"下付き文字","components.controls.link.linkTitle":"リンクタイトル","components.controls.link.linkTarget":"リンク対象","components.controls.link.linkTargetOption":"新しいウィンドウで開く","components.controls.link.link":"リンク","components.controls.link.unlink":"リンクを解除","components.controls.list.list":"リスト","components.controls.list.unordered":"箇条書き","components.controls.list.ordered":"番号付き","components.controls.list.indent":"インデント増","components.controls.list.outdent":"インデント減","components.controls.remove.remove":"書式をクリア","components.controls.textalign.textalign":"整列","components.controls.textalign.left":"左揃え","components.controls.textalign.center":"中央揃え","components.controls.textalign.right":"右揃え","components.controls.textalign.justify":"両端揃え"}};function ur(e){return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dr(){return(dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pr(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 fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){hr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mr(e){return function(e){if(Array.isArray(e))return gr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vr(e,t){return(vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(38),n(39);var wr=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vr(e,t)}(a,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,e)).onEditorBlur=function(){t.setState({editorFocused:!1})},t.onEditorFocus=function(e){var n=t.props.onFocus;t.setState({editorFocused:!0});var r=t.focusHandler.isEditorFocused();n&&r&&n(e)},t.onEditorMouseDown=function(){t.focusHandler.onEditorMouseDown()},t.keyBindingFn=function(e){if("Tab"!==e.key)return"ArrowUp"!==e.key&&"ArrowDown"!==e.key||w()&&e.preventDefault(),Object(s.getDefaultKeyBinding)(e);var n=t.props.onTab;if(!n||!n(e)){var r=Object(l.changeDepth)(t.state.editorState,e.shiftKey?-1:1,4);r&&r!==t.state.editorState&&(t.onChange(r),e.preventDefault())}return null},t.onToolbarFocus=function(e){var n=t.props.onFocus;n&&t.focusHandler.isToolbarFocused()&&n(e)},t.onWrapperBlur=function(e){var n=t.props.onBlur;n&&t.focusHandler.isEditorBlur(e)&&n(e,t.getEditorState())},t.onChange=function(e){var n=t.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(l.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(o&&o(e,t.props.wrapperId),C(t.props,"editorState")?t.afterChange(e):t.setState({editorState:e},t.afterChange(e)))},t.setWrapperReference=function(e){t.wrapper=e},t.setEditorReference=function(e){t.props.editorRef&&t.props.editorRef(e),t.editor=e},t.getCompositeDecorator=function(e){var n=[].concat(mr(t.props.customDecorators),[{strategy:qn,component:Un({showOpenOptionOnHover:e.link.showOpenOptionOnHover})}]);return t.props.mention&&n.push.apply(n,mr(function(e){return[new Kn(e.mentionClassName).getMentionDecorator(),new Jn(e).getSuggestionDecorator()]}(fr(fr({},t.props.mention),{},{onChange:t.onChange,getEditorState:t.getEditorState,getSuggestions:t.getSuggestions,getWrapperRef:t.getWrapperRef,modalHandler:t.modalHandler})))),t.props.hashtag&&n.push(function(e){return new tr(e).getHashtagDecorator()}(t.props.hashtag)),new s.CompositeDecorator(n)},t.getWrapperRef=function(){return t.wrapper},t.getEditorState=function(){return t.state?t.state.editorState:null},t.getSuggestions=function(){return t.props.mention&&t.props.mention.suggestions},t.afterChange=function(e){setTimeout((function(){var n=t.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(s.convertToRaw)(e.getCurrentContent())),o&&o(Object(s.convertToRaw)(e.getCurrentContent()))}))},t.isReadOnly=function(){return t.props.readOnly},t.isImageAlignmentEnabled=function(){return t.state.toolbar.image.alignmentEnabled},t.createEditorState=function(e){var n;if(C(t.props,"editorState"))t.props.editorState&&(n=s.EditorState.set(t.props.editorState,{decorator:e}));else if(C(t.props,"defaultEditorState"))t.props.defaultEditorState&&(n=s.EditorState.set(t.props.defaultEditorState,{decorator:e}));else if(C(t.props,"contentState")){if(t.props.contentState){var r=Object(s.convertFromRaw)(t.props.contentState);n=s.EditorState.createWithContent(r,e),n=s.EditorState.moveSelectionToEnd(n)}}else if(C(t.props,"defaultContentState")||C(t.props,"initialContentState")){var o=t.props.defaultContentState||t.props.initialContentState;o&&(o=Object(s.convertFromRaw)(o),n=s.EditorState.createWithContent(o,e),n=s.EditorState.moveSelectionToEnd(n))}return n||s.EditorState.createEmpty(e)},t.filterEditorProps=function(e){return t=e,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],r=Object.keys(t).filter((function(e){return n.indexOf(e)<0})),o={},r&&0<r.length&&r.forEach((function(e){o[e]=t[e]})),o;var t,n,r,o},t.getStyleMap=function(e){return fr(fr({},Object(l.getCustomStyleMap)()),e.customStyleMap)},t.changeEditorState=function(e){var n=Object(s.convertFromRaw)(e),r=t.state.editorState;return r=s.EditorState.push(r,n,"insert-characters"),s.EditorState.moveSelectionToEnd(r)},t.focusEditor=function(){setTimeout((function(){t.editor.focus()}))},t.handleKeyCommand=function(e){var n=t.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(e)){var a=s.RichUtils.handleKeyCommand(r,e);if(a)return t.onChange(a),!0}return!1},t.handleReturn=function(e){if(w())return!0;var n=t.state.editorState,r=Object(l.handleNewLine)(n,e);return!!r&&(t.onChange(r),!0)},t.handlePastedTextFn=function(e,n){var r=t.state.editorState,o=t.props,a=o.handlePastedText,i=o.stripPastedStyles;return a?a(e,n,r,t.onChange):!i&&function(e,t,n,r){var o=Object(l.getSelectedBlock)(n);if(o&&"code"===o.type){var a=s.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());return r(s.EditorState.push(n,a,"insert-characters")),!0}if(t){var i=N()(t),c=n.getCurrentContent();return i.entityMap.forEach((function(e,t){c=c.mergeEntityData(t,e)})),c=s.Modifier.replaceWithFragment(c,n.getSelection(),new M.List(i.contentBlocks)),r(s.EditorState.push(n,c,"insert-characters")),!0}return!1}(e,n,r,t.onChange)},t.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?t.focusHandler.onInputMouseDown():e.preventDefault()};var r=O(lr,e.toolbar),o=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());t.wrapperId="rdw-wrapper-".concat(o),t.modalHandler=new p,t.focusHandler=new m,t.blockRendererFn=function(e,t){return function(n){if("function"==typeof t){var r=t(n,e,e.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=e.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:sr(e),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:nr,editable:!1}}}}({isReadOnly:t.isReadOnly,isImageAlignmentEnabled:t.isImageAlignmentEnabled,getEditorState:t.getEditorState,onChange:t.onChange},e.customBlockRenderFunc),t.editorProps=t.filterEditorProps(e),t.customStyleMap=t.getStyleMap(e),t.compositeDecorator=t.getCompositeDecorator(r);var i=t.createEditorState(t.compositeDecorator);return Object(l.extractInlineStyle)(i),t.state={editorState:i,editorFocused:!1,toolbar:r},t}return e=a,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var a=O(lr,a);t.toolbar=a}if(C(this.props,"editorState")&&r!==e.editorState)t.editorState=r?s.EditorState.set(r,{decorator:this.compositeDecorator}):s.EditorState.createEmpty(this.compositeDecorator);else if(C(this.props,"contentState")&&o!==e.contentState)if(o){var i=this.changeEditorState(o);i&&(t.editorState=i)}else t.editorState=s.EditorState.createEmpty(this.compositeDecorator);e.editorState===r&&e.contentState===o||Object(l.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var e=this.state,t=e.editorState,n=e.editorFocused,r=e.toolbar,a=this.props,i=a.locale,c=a.localization,d=c.locale,p=c.translations,f=a.toolbarCustomButtons,h=a.toolbarOnFocus,m=a.toolbarClassName,g=a.toolbarHidden,v=a.editorClassName,b=a.wrapperClassName,w=a.toolbarStyle,x=a.editorStyle,C=a.wrapperStyle,_=a.uploadCallback,S=a.ariaLabel,O={modalHandler:this.modalHandler,editorState:t,onChange:this.onChange,translations:fr(fr({},cr[i||d]),p)},k=n||this.focusHandler.isInputFocused()||!h;return o.a.createElement("div",{id:this.wrapperId,className:u()(b,"rdw-editor-wrapper"),style:C,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!g&&o.a.createElement("div",{className:u()("rdw-editor-toolbar",m),style:fr({visibility:k?"visible":"hidden"},w),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&h).toString(),onFocus:this.onToolbarFocus},r.options.map((function(e,t){var n=jn[e],a=r[e];return"image"===e&&_&&(a.uploadCallback=_),o.a.createElement(n,dr({key:t},O,{config:a}))})),f&&f.map((function(e,t){return o.a.cloneElement(e,fr({key:t},O))}))),o.a.createElement("div",{ref:this.setWrapperReference,className:u()(v,"rdw-editor-main"),style:x,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:y.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(s.Editor,dr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:E,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:S||"rdw-editor",blockRenderMap:l.blockRenderMap},this.editorProps))))}}])&&yr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}();wr.propTypes={onChange:i.a.func,onEditorStateChange:i.a.func,onContentStateChange:i.a.func,initialContentState:i.a.object,defaultContentState:i.a.object,contentState:i.a.object,editorState:i.a.object,defaultEditorState:i.a.object,toolbarOnFocus:i.a.bool,spellCheck:i.a.bool,stripPastedStyles:i.a.bool,toolbar:i.a.object,toolbarCustomButtons:i.a.array,toolbarClassName:i.a.string,toolbarHidden:i.a.bool,locale:i.a.string,localization:i.a.object,editorClassName:i.a.string,wrapperClassName:i.a.string,toolbarStyle:i.a.object,editorStyle:i.a.object,wrapperStyle:i.a.object,uploadCallback:i.a.func,onFocus:i.a.func,onBlur:i.a.func,onTab:i.a.func,mention:i.a.object,hashtag:i.a.object,textAlignment:i.a.string,readOnly:i.a.bool,tabIndex:i.a.number,placeholder:i.a.string,ariaLabel:i.a.string,ariaOwneeID:i.a.string,ariaActiveDescendantID:i.a.string,ariaAutoComplete:i.a.string,ariaDescribedBy:i.a.string,ariaExpanded:i.a.string,ariaHasPopup:i.a.string,customBlockRenderFunc:i.a.func,wrapperId:i.a.number,customDecorators:i.a.array,editorRef:i.a.func,handlePastedText:i.a.func},wr.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var Er=wr}],r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8);function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,a}(n(1609),n(1330),n(1814))},5843:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function x(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||E(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=E},5959:(e,t,n)=>{"use strict";e.exports=n(5843)},6017:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,a=60108,i=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,f=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;n=h("react.element"),r=h("react.portal"),o=h("react.fragment"),a=h("react.strict_mode"),i=h("react.profiler"),s=h("react.provider"),l=h("react.context"),c=h("react.forward_ref"),u=h("react.suspense"),d=h("react.suspense_list"),p=h("react.memo"),f=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case p:case s:return e;default:return t}}case r:return t}}}(e)===l}},8141:(e,t,n)=>{"use strict";e.exports=n(6017)},5818:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==i?"\n  "+i:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},2359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1609),i=h(a),s=h(n(5795)),l=h(n(2736)),c=h(n(9409)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4009)),d=n(1747),p=h(d),f=n(5818);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",v=d.canUseDOM&&void 0!==s.default.createPortal,b=function(e){return document.createElement(e)},w=function(){return v?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function E(e){return e()}var x=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,l=Array(a),u=0;u<a;u++)l[u]=arguments[u];return n=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.removePortal=function(){!v&&s.default.unmountComponentAtNode(o.node);var e=E(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=w()(o,i.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},m(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(v||(this.node=b("div")),this.node.className=this.props.portalClassName,E(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:E(e.parentSelector),nextParent:E(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var i=n.prevParent,s=n.nextParent;s!==i&&(i.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&v?(!this.node&&v&&(this.node=b("div")),w()(i.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(a.Component);x.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},x.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},x.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,f.polyfill)(x),t.default=x},9409:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1609),s=g(n(2736)),l=m(n(9784)),c=g(n(7308)),u=m(n(4009)),d=m(n(9443)),p=n(1747),f=g(p),h=g(n(5509));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(7096);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName,i=e.parentSelector,s=i&&i().ownerDocument||document;a&&d.remove(s.body,a),o&&d.remove(s.getElementsByTagName("html")[0],o),r&&v>0&&0==(v-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,i=a&&a().ownerDocument||document;o&&d.add(i.body,o),r&&d.add(i.getElementsByTagName("html")[0],r),n&&(v+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,a=e.defaultStyles,i=e.children,s=n?{}:a.content,l=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,i);return this.props.overlayElement(c,d)}}]),t}(i.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},4009:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(i).forEach((function(e){return e.removeAttribute("aria-hidden")}))),i=null},t.log=function(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return i=t||i},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){i=null};var r,o=(r=n(3730))&&r.__esModule?r:{default:r},a=n(1747),i=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,i],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}a=i=null,s=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(s.length);for(var e=[a,i],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(5509))&&r.__esModule?r:{default:r},a=void 0,i=void 0,s=[];function l(){0!==s.length&&s[s.length-1].focusContent()}o.default.subscribe((function(e,t){a||i||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",l),(i=a.cloneNode()).addEventListener("focus",l)),(s=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(a.parentElement&&a.parentElement.removeChild(a),i.parentElement&&i.parentElement.removeChild(i))}))},9443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var a=document.body;for(var i in r)o(a,r[i]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),o.add(e)}));var o,a},t.remove=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&o.remove(e)}));var o,a}},9784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,o=(r=n(5420))&&r.__esModule?r:{default:r},a=[],i=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!i)return;setTimeout((function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()}),0)}}},5509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},1747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(3092))&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=a},7308:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,i=t.shiftKey,s=n[0],l=n[n.length-1],c=a();if(e===c){if(!i)return;r=l}if(l!==c||i||(r=s),s===c&&i&&(r=l),r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=i?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=i?l:s).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(5420))&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},5420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(i)};var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),a=o.getPropertyValue("display");return t?a!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):a===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(2359))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},7159:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}Object.defineProperty(t,"__esModule",{value:!0});var a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){a[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,n,i=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],_n=!0,i=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);_n=!0);}catch(e){i=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(i)throw o}}return a}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t,n)||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.")}()),s=i[0],l=i[1];a[s]=new o(s,1,!1,l,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){a[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){a[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){a[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){a[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){a[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){a[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){a[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var i=/[\-\:]([a-z])/g,s=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(i,s);a[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(i,s);a[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(i,s);a[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){a[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),a.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){a[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var l=n(8440),c=l.CAMELCASE,u=l.SAME,d=l.possibleStandardNames,p=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),f=Object.keys(d).reduce((function(e,t){var n=d[t];return n===u?e[t]=t:n===c?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=p,t.possibleStandardNames=f},8440:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5387:(e,t,n)=>{"use strict";n.d(t,{$P:()=>p,Ix:()=>A,KC:()=>v,Ye:()=>w,Zp:()=>g,jb:()=>l,sv:()=>M,x$:()=>b,zy:()=>h});var r=n(1609),o=n(339);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const i=r.createContext(null),s=r.createContext(null),l=r.createContext(null),c=r.createContext(null),u=r.createContext({outlet:null,matches:[],isDataRoute:!1}),d=r.createContext(null);function p(e,t){let{relative:n}=void 0===t?{}:t;f()||(0,o.Oi)(!1);let{basename:a,navigator:i}=r.useContext(l),{hash:s,pathname:c,search:u}=b(e,{relative:n}),d=c;return"/"!==a&&(d="/"===c?a:(0,o.HS)([a,c])),i.createHref({pathname:d,search:u,hash:s})}function f(){return null!=r.useContext(c)}function h(){return f()||(0,o.Oi)(!1),r.useContext(c).location}function m(e){r.useContext(l).static||r.useLayoutEffect(e)}function g(){let{isDataRoute:e}=r.useContext(u);return e?function(){let{router:e}=function(){let e=r.useContext(i);return e||(0,o.Oi)(!1),e}(S.UseNavigateStable),t=k(O.UseNavigateStable),n=r.useRef(!1);return m((()=>{n.current=!0})),r.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},o)))}),[e,t])}():function(){f()||(0,o.Oi)(!1);let e=r.useContext(i),{basename:t,future:n,navigator:a}=r.useContext(l),{matches:s}=r.useContext(u),{pathname:c}=h(),d=JSON.stringify((0,o.yD)(s,n.v7_relativeSplatPath)),p=r.useRef(!1);return m((()=>{p.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!p.current)return;if("number"==typeof n)return void a.go(n);let i=(0,o.Gh)(n,JSON.parse(d),c,"path"===r.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,o.HS)([t,i.pathname])),(r.replace?a.replace:a.push)(i,r.state,r)}),[t,a,d,c,e])}()}const y=r.createContext(null);function v(){return r.useContext(y)}function b(e,t){let{relative:n}=void 0===t?{}:t,{future:a}=r.useContext(l),{matches:i}=r.useContext(u),{pathname:s}=h(),c=JSON.stringify((0,o.yD)(i,a.v7_relativeSplatPath));return r.useMemo((()=>(0,o.Gh)(e,JSON.parse(c),s,"path"===n)),[e,c,s,n])}function w(e,t){return function(e,t,n,i){f()||(0,o.Oi)(!1);let{navigator:s}=r.useContext(l),{matches:d}=r.useContext(u),p=d[d.length-1],m=p?p.params:{},g=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let y,v=h();if(t){var b;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===g||(null==(b=e.pathname)?void 0:b.startsWith(g))||(0,o.Oi)(!1),y=e}else y=v;let w=y.pathname||"/",E=w;if("/"!==g){let e=g.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let S=(0,o.ue)(e,{pathname:E}),O=function(e,t,n,a){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===a&&(a=null),null==e){var s;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(s=a)&&s.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,c=null==(i=n)?void 0:i.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(n&&a&&a.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,o,a)=>{let i,s=!1,p=null,f=null;var h;n&&(i=c&&o.route.id?c[o.route.id]:void 0,p=o.route.errorElement||x,u&&(d<0&&0===a?(N[h="route-fallback"]||(N[h]=!0),s=!0,f=null):d===a&&(s=!0,f=o.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,a+1)),g=()=>{let t;return t=i?p:s?f:o.route.Component?r.createElement(o.route.Component,null):o.route.element?o.route.element:e,r.createElement(_,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?r.createElement(C,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}(S&&S.map((e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,o.HS)([g,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,o.HS)([g,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),d,n,i);return t&&O?r.createElement(c.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:o.rc.Pop}},O):O}(e,t)}function E(){let e=function(){var e;let t=r.useContext(d),n=function(){let e=r.useContext(s);return e||(0,o.Oi)(!1),e}(O.UseRouteError),a=k(O.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[a]}(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,null)}const x=r.createElement(E,null);class C extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(u.Provider,{value:this.props.routeContext},r.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _(e){let{routeContext:t,match:n,children:o}=e,a=r.useContext(i);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(u.Provider,{value:t},o)}var S=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(S||{}),O=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(O||{});function k(e){let t=function(){let e=r.useContext(u);return e||(0,o.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}const N={};function M(e){return function(e){let t=r.useContext(u).outlet;return t?r.createElement(y.Provider,{value:e},t):t}(e.context)}function A(e){let{basename:t="/",children:n=null,location:i,navigationType:s=o.rc.Pop,navigator:u,static:d=!1,future:p}=e;f()&&(0,o.Oi)(!1);let h=t.replace(/^\/*/,"/"),m=r.useMemo((()=>({basename:h,navigator:u,static:d,future:a({v7_relativeSplatPath:!1},p)})),[h,p,u,d]);"string"==typeof i&&(i=(0,o.Rr)(i));let{pathname:g="/",search:y="",hash:v="",state:b=null,key:w="default"}=i,E=r.useMemo((()=>{let e=(0,o.pb)(g,h);return null==e?null:{location:{pathname:e,search:y,hash:v,state:b,key:w},navigationType:s}}),[h,g,y,v,b,w,s]);return null==E?null:r.createElement(l.Provider,{value:m},r.createElement(c.Provider,{children:n,value:E}))}r.startTransition,new Promise((()=>{})),r.Component},5798:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(5890),o=n(1609),a=n(4547),i=n(7533),s=n(4350),l=(n(5795),n(3327),(0,o.forwardRef)((function(e,t){var n=(0,s.u)(e),l=(0,i.u)(n);return o.createElement(a.S,(0,r.A)({ref:t},l))})))},4547:(e,t,n)=>{"use strict";n.d(t,{S:()=>pe});var r=n(5890),o=n(6313),a=n(2367),i=n(9755),s=n(5007),l=n(4296),c=n(2663),u=n(2410);function d(e){return function(e){if(Array.isArray(e))return(0,c.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,u.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=n(1609),f=n(6012),h=n(2588),m=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function g(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||m(r)&&m(o)))return!1;var r,o;return!0}for(var y=n(2511),v={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},b=function(e){return(0,h.Y)("span",(0,r.A)({css:v},e))},w={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(a).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},E=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,a=e.focusableOptions,i=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,u=e.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,m=l.inputValue,g=l.isMulti,y=l.isOptionDisabled,v=l.isSearchable,E=l.menuIsOpen,x=l.options,C=l.screenReaderStatus,_=l.tabSelectsValue,S=l.isLoading,O=l["aria-label"],k=l["aria-live"],N=(0,p.useMemo)((function(){return(0,o.A)((0,o.A)({},w),d||{})}),[d]),M=(0,p.useMemo)((function(){var e,n="";if(t&&N.onChange){var r=t.option,a=t.options,i=t.removedValue,l=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),d=u?f(u):"",p=a||l||void 0,h=p?p.map(f):[],m=(0,o.A)({isDisabled:u&&y(u,s),label:d,labels:h},t);n=N.onChange(m)}return n}),[t,N,y,s,f]),A=(0,p.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&N.onFocus){var i={focused:t,label:f(t),isDisabled:y(t,s),isSelected:o,options:a,context:t===n?"menu":"value",selectValue:s,isAppleDevice:u};e=N.onFocus(i)}return e}),[n,r,f,y,N,a,s,u]),D=(0,p.useMemo)((function(){var e="";if(E&&x.length&&!S&&N.onFilter){var t=C({count:a.length});e=N.onFilter({inputValue:m,resultsMessage:t})}return e}),[a,m,E,N,x,C,S]),I="initial-input-focus"===(null==t?void 0:t.action),j=(0,p.useMemo)((function(){var e="";if(N.guidance){var t=r?"value":E?"menu":"input";e=N.guidance({"aria-label":O,context:t,isDisabled:n&&y(n,s),isMulti:g,isSearchable:v,tabSelectsValue:_,isInitialFocus:I})}return e}),[O,n,r,g,y,v,E,N,s,_,I]),T=(0,h.Y)(p.Fragment,null,(0,h.Y)("span",{id:"aria-selection"},M),(0,h.Y)("span",{id:"aria-focused"},A),(0,h.Y)("span",{id:"aria-results"},D),(0,h.Y)("span",{id:"aria-guidance"},j));return(0,h.Y)(p.Fragment,null,(0,h.Y)(b,{id:c},I&&T),(0,h.Y)(b,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!I&&T))},x=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],C=new RegExp("["+x.map((function(e){return e.letters})).join("")+"]","g"),_={},S=0;S<x.length;S++)for(var O=x[S],k=0;k<O.letters.length;k++)_[O.letters[k]]=O.base;var N=function(e){return e.replace(C,(function(e){return _[e]}))},M=function(e,t){void 0===t&&(t=g);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(N),A=function(e){return e.replace(/^\s+|\s+$/g,"")},D=function(e){return"".concat(e.label," ").concat(e.value)},I=["innerRef"];function j(e){var t=e.innerRef,n=(0,y.A)(e,I),o=(0,f.r)(n,"onExited","in","enter","exit","appear");return(0,h.Y)("input",(0,r.A)({ref:t},o,{css:(0,h.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var T=["boxSizing","height","overflow","paddingRight","position"],L={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function P(e){e.cancelable&&e.preventDefault()}function R(e){e.stopPropagation()}function F(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function B(){return"ontouchstart"in window||navigator.maxTouchPoints}var z=!("undefined"==typeof window||!window.document||!window.document.createElement),q=0,U={capture:!1,passive:!1},H=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},V={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function K(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,p.useRef)(!1),s=(0,p.useRef)(!1),l=(0,p.useRef)(0),c=(0,p.useRef)(null),u=(0,p.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,f=c.current,h=t>0,m=d-p-u,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!i.current&&n(e),f.scrollTop=d,g=!0,i.current=!0):!h&&-t>u&&(o&&!s.current&&o(e),f.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),d=(0,p.useCallback)((function(e){u(e,e.deltaY)}),[u]),h=(0,p.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),m=(0,p.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),g=(0,p.useCallback)((function(e){if(e){var t=!!f.s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}}),[m,h,d]),y=(0,p.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))}),[m,h,d]);return(0,p.useEffect)((function(){if(t){var e=c.current;return g(e),function(){y(e)}}}),[t,g,y]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,p.useRef)({}),a=(0,p.useRef)(null),i=(0,p.useCallback)((function(e){if(z){var t=document.body,n=t&&t.style;if(r&&T.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&q<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+a||0;Object.keys(L).forEach((function(e){var t=L[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&B()&&(t.addEventListener("touchmove",P,U),e&&(e.addEventListener("touchstart",F,U),e.addEventListener("touchmove",R,U))),q+=1}}),[r]),s=(0,p.useCallback)((function(e){if(z){var t=document.body,n=t&&t.style;q=Math.max(q-1,0),r&&q<1&&T.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&B()&&(t.removeEventListener("touchmove",P,U),e&&(e.removeEventListener("touchstart",F,U),e.removeEventListener("touchmove",R,U)))}}),[r]);return(0,p.useEffect)((function(){if(t){var e=a.current;return i(e),function(){s(e)}}}),[t,i,s]),function(e){a.current=e}}({isEnabled:n});return(0,h.Y)(p.Fragment,null,n&&(0,h.Y)("div",{onClick:H,css:V}),t((function(e){o(e),a(e)})))}var G={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},W=function(e){var t=e.name,n=e.onFocus;return(0,h.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:G,value:"",onChange:function(){}})};function Y(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Q(){return Y(/^Mac/i)}var $={clearIndicator:f.a,container:f.b,control:f.d,dropdownIndicator:f.e,group:f.g,groupHeading:f.f,indicatorsContainer:f.i,indicatorSeparator:f.h,input:f.j,loadingIndicator:f.l,loadingMessage:f.k,menu:f.m,menuList:f.n,menuPortal:f.o,multiValue:f.p,multiValueLabel:f.q,multiValueRemove:f.t,noOptionsMessage:f.u,option:f.v,placeholder:f.w,singleValue:f.x,valueContainer:f.y},Z={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},J={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,f.z)(),captureMenuScroll:!(0,f.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,o.A)({ignoreCase:!0,ignoreAccents:!0,stringify:D,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,a=n.ignoreAccents,i=n.stringify,s=n.trim,l=n.matchFrom,c=s?A(t):t,u=s?A(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),a&&(c=M(c),u=N(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,f.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function X(e,t,n,r){return{type:"option",data:t,isDisabled:se(e,t,n),isSelected:le(e,t,n),label:ae(e,t),value:ie(e,t),index:r}}function ee(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return X(e,n,t,r)})).filter((function(t){return re(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=X(e,n,t,r);return re(e,a)?a:void 0})).filter(f.K)}function te(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,d(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ne(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,d(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function re(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!ue(e)||!a)&&ce(e,{label:i,value:s,data:o},r)}var oe=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},ae=function(e,t){return e.getOptionLabel(t)},ie=function(e,t){return e.getOptionValue(t)};function se(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function le(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ie(e,t);return n.some((function(t){return ie(e,t)===r}))}function ce(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ue=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},de=1,pe=function(e){(0,s.A)(n,e);var t=(0,l.A)(n);function n(e){var r;if((0,a.A)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=Q()||Y(/^iPhone/i)||Y(/^iPad/i)||Q()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;t.name=a,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(r.setState({inputIsHiddenAfterUpdate:!i}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=t.name,i=r.state.selectValue,s=o&&r.isOptionSelected(e,i),l=r.isOptionDisabled(e,i);if(s){var c=r.getOptionValue(e);r.setValue((0,f.B)(i.filter((function(e){return r.getOptionValue(e)!==c}))),"deselect-option",e)}else{if(l)return void r.ariaOnChange((0,f.C)(e),{action:"select-option",option:e,name:a});o?r.setValue((0,f.B)([].concat(d(i),[e])),"select-option",e):r.setValue((0,f.C)(e),"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),a=n.filter((function(e){return r.getOptionValue(e)!==o})),i=(0,f.D)(t,a,a[0]||null);r.onChange(i,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange((0,f.D)(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),a=(0,f.D)(e,o,o[0]||null);n&&r.onChange(a,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return oe(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return ne(ee(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.E.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return ae(r.props,e)},r.getOptionValue=function(e){return ie(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=$[e](t,n);o.boxSizing="border-box";var a=r.props.styles[e];return a?a(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return(0,f.F)(r.props)},r.buildCategorizedOptions=function(){return ee(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return te(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,o.A)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,f.G)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return ue(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||p&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:i}),r.onMenuClose()):s&&a&&r.clearValue();break;case" ":if(i)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++de),r.state.selectValue=(0,f.H)(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),s=r.buildFocusableOptions(),l=s.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=s[l],r.state.focusedOptionId=oe(i,s[l])}return r}return(0,i.A)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,f.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,f.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Z):(0,o.A)((0,o.A)({},Z),this.props.theme):Z}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:a,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return se(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return le(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ce(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,a=e.inputId,i=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,u=e.required,d=this.getComponents().Input,h=this.state,m=h.inputIsHidden,g=h.ariaSelection,y=this.commonProps,v=a||this.getElementId("input"),b=(0,o.A)((0,o.A)((0,o.A)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==g?void 0:g.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?p.createElement(d,(0,r.A)({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:i},b)):p.createElement(j,(0,r.A)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:f.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,h=u.isMulti,m=u.inputValue,g=u.placeholder,y=this.state,v=y.selectValue,b=y.focusedValue,w=y.isFocused;if(!this.hasValue()||!d)return m?null:p.createElement(l,(0,r.A)({},c,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return v.map((function(t,s){var l=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return p.createElement(n,(0,r.A)({},c,{components:{Container:o,Label:a,Remove:i},isFocused:l,isDisabled:f,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var E=v[0];return p.createElement(s,(0,r.A)({},c,{data:E,isDisabled:f}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,(0,r.A)({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,i=this.state.isFocused;return e&&a?p.createElement(e,(0,r.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return p.createElement(n,(0,r.A)({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,(0,r.A)({},t,{innerProps:a,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,a=t.Menu,i=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,h=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,b=m.loadingMessage,w=m.minMenuHeight,E=m.maxMenuHeight,x=m.menuIsOpen,C=m.menuPlacement,_=m.menuPosition,S=m.menuPortalTarget,O=m.menuShouldBlockScroll,k=m.menuShouldScrollIntoView,N=m.noOptionsMessage,M=m.onMenuScrollToTop,A=m.onMenuScrollToBottom;if(!x)return null;var D,I=function(t,n){var o=t.type,a=t.data,i=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,f=h===a,m=i?void 0:function(){return e.onOptionHover(a)},g=i?void 0:function(){return e.selectOption(a)},y="".concat(e.getElementId("option"),"-").concat(n),v={id:y,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return p.createElement(u,(0,r.A)({},d,{innerProps:v,data:a,isDisabled:i,isSelected:s,key:y,label:l,type:o,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,i=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return p.createElement(n,(0,r.A)({},d,{key:l,data:a,options:i,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(v){var j=b({inputValue:y});if(null===j)return null;D=p.createElement(l,d,j)}else{var T=N({inputValue:y});if(null===T)return null;D=p.createElement(c,d,T)}var L={minMenuHeight:w,maxMenuHeight:E,menuPlacement:C,menuPosition:_,menuShouldScrollIntoView:k},P=p.createElement(f.M,(0,r.A)({},d,L),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return p.createElement(a,(0,r.A)({},d,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),p.createElement(K,{captureEnabled:g,onTopArrive:M,onBottomArrive:A,lockEnabled:O},(function(t){return p.createElement(i,(0,r.A)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:h}),D)})))}));return S||"fixed"===_?p.createElement(s,(0,r.A)({},d,{appendTo:S,controlElement:this.controlRef,menuPlacement:C,menuPosition:_}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,s=this.state.selectValue;if(i&&!this.hasValue()&&!r)return p.createElement(W,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return p.createElement("input",{name:a,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,n){return p.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):p.createElement("input",{name:a,type:"hidden",value:""});return p.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return p.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,a=t.focusedValue,i=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return p.createElement(E,(0,r.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:a,isFocused:i,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,u=i.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return p.createElement(o,(0,r.A)({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),p.createElement(t,(0,r.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),p.createElement(a,(0,r.A)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(n,(0,r.A)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,u=e.options,d=e.value,p=e.menuIsOpen,h=e.inputValue,m=e.isMulti,g=(0,f.H)(d),y={};if(n&&(d!==n.value||u!==n.options||p!==n.menuIsOpen||h!==n.inputValue)){var v=p?function(e,t){return te(ee(e,t))}(e,g):[],b=p?ne(ee(e,g),"".concat(c,"-option")):[],w=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,E=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);y={selectValue:g,focusedOption:E,focusedOptionId:oe(b,E),focusableOptionsWithIds:b,focusedValue:w,clearFocusValueOnUpdate:!1}}var x=null!=a&&e!==n?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},C=i,_=s&&l;return s&&!_&&(C={value:(0,f.D)(m,g,g[0]||null),options:g,action:"initial-input-focus"},_=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(C=null),(0,o.A)((0,o.A)((0,o.A)({},y),x),{},{prevProps:e,ariaSelection:C,prevWasFocused:_})}}]),n}(p.Component);pe.defaultProps=J},6012:(e,t,n)=>{"use strict";n.d(t,{A:()=>$,B:()=>oe,C:()=>re,D:()=>ne,E:()=>B,F:()=>Xe,G:()=>V,H:()=>z,I:()=>Y,J:()=>R,K:()=>te,L:()=>H,M:()=>he,a:()=>De,b:()=>we,d:()=>Pe,e:()=>Ae,f:()=>Be,g:()=>Fe,h:()=>Ie,i:()=>xe,j:()=>qe,k:()=>ve,l:()=>Te,m:()=>pe,n:()=>me,o:()=>be,p:()=>Ke,q:()=>Ge,r:()=>ae,s:()=>ee,t:()=>We,u:()=>ye,v:()=>Qe,w:()=>$e,x:()=>Ze,y:()=>Ee,z:()=>Q});var r=n(6313),o=n(5890),a=n(2588),i=n(9086),s=n(2511),l=n(9826),c=n(3205),u=n(1609),d=n(5795);const p=Math.min,f=Math.max,h=Math.round,m=Math.floor,g=e=>({x:e,y:e});function y(){return"undefined"!=typeof window}function v(e){return E(e)?(e.nodeName||"").toLowerCase():"#document"}function b(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function w(e){var t;return null==(t=(E(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function E(e){return!!y()&&(e instanceof Node||e instanceof b(e).Node)}function x(e){return!!y()&&(e instanceof Element||e instanceof b(e).Element)}function C(e){return!!y()&&(e instanceof HTMLElement||e instanceof b(e).HTMLElement)}function _(e){return!(!y()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof b(e).ShadowRoot)}function S(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=O(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function O(e){return b(e).getComputedStyle(e)}function k(e){const t=function(e){if("html"===v(e))return e;const t=e.assignedSlot||e.parentNode||_(e)&&e.host||w(e);return _(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(v(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:C(t)&&S(t)?t:k(t)}function N(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=k(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=b(o);if(a){const e=M(i);return t.concat(i,i.visualViewport||[],S(o)?o:[],e&&n?N(e):[])}return t.concat(o,N(o,[],n))}function M(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function A(e){return x(e)?e:e.contextElement}function D(e){const t=A(e);if(!C(t))return g(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=function(e){const t=O(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=C(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=h(n)!==a||h(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}(t);let i=(a?h(n.width):n.width)/r,s=(a?h(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const I=g(0);function j(e){const t=b(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:I}function T(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=A(e);let i=g(1);t&&(r?x(r)&&(i=D(r)):i=D(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==b(e))&&t}(a,n,r)?j(a):g(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=b(a),t=r&&x(r)?b(r):r;let n=e,o=M(n);for(;o&&r&&t!==n;){const e=D(o),t=o.getBoundingClientRect(),r=O(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=b(o),o=M(n)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:u,height:d,x:l,y:c})}var L=n(3327),P=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],R=function(){};function F(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function B(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(F(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var z=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,l.A)(e)&&null!==e?[e]:[];var t},q=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.A)(e,P);return(0,r.A)({},t)},U=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function H(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}function V(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function K(e){return V(e)?window.pageYOffset:e.scrollTop}function G(e,t){V(e)?window.scrollTo(0,t):e.scrollTop=t}function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,o=K(e),a=t-o,i=0;!function t(){var s,l=a*((s=(s=i+=10)/n-1)*s*s+1)+o;G(e,l),i<n?window.requestAnimationFrame(t):r(e)}()}function Y(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?G(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&G(e,Math.max(t.offsetTop-o,0))}function Q(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function $(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var Z=!1,J={get passive(){return Z=!0}},X="undefined"!=typeof window?window:{};X.addEventListener&&X.removeEventListener&&(X.addEventListener("p",R,J),X.removeEventListener("p",R,!1));var ee=Z;function te(e){return null!=e}function ne(e,t,n){return e?t:n}function re(e){return e}function oe(e){return e}var ae=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter((function(e){var t=(0,i.A)(e,1)[0];return!n.includes(t)})).reduce((function(e,t){var n=(0,i.A)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})},ie=["children","innerProps"],se=["children","innerProps"];var le,ce,ue,de=function(e){return"auto"===e?"bottom":e},pe=function(e,t){var n,o=e.placement,a=e.theme,i=a.borderRadius,s=a.spacing,l=a.colors;return(0,r.A)((n={label:"menu"},(0,c.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,c.A)(n,"position","absolute"),(0,c.A)(n,"width","100%"),(0,c.A)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},fe=(0,u.createContext)(null),he=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,a=e.menuPlacement,s=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,d=((0,u.useContext)(fe)||{}).setPortalPlacement,p=(0,u.useRef)(null),f=(0,u.useState)(o),h=(0,i.A)(f,2),m=h[0],g=h[1],y=(0,u.useState)(null),v=(0,i.A)(y,2),b=v[0],w=v[1],E=c.spacing.controlHeight;return(0,L.A)((function(){var e=p.current;if(e){var t="fixed"===s,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,y=i||V(u=l)?window.innerHeight:u.clientHeight,v=K(l),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),E=g-w,x=y-m,C=E+v,_=d-v-m,S=f-y+v+b,O=v+m-w,k=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(_>=h&&!i)return a&&W(l,S,k),{placement:"bottom",maxHeight:t};if(!i&&_>=r||i&&x>=r)return a&&W(l,S,k),{placement:"bottom",maxHeight:i?x-b:_-b};if("auto"===o||i){var N=t,M=i?E:C;return M>=r&&(N=Math.min(M-b-s,t)),{placement:"top",maxHeight:N}}if("bottom"===o)return a&&G(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(E>=h)return{placement:"top",maxHeight:t};if(C>=h&&!i)return a&&W(l,O,k),{placement:"top",maxHeight:t};if(!i&&C>=r||i&&E>=r){var A=t;return(!i&&C>=r||i&&E>=r)&&(A=i?E-w:C-w),a&&W(l,O,k),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:a,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:E});g(r.maxHeight),w(r.placement),null==d||d(r.placement)}}),[o,a,s,l,n,d,E]),t({ref:p,placerProps:(0,r.A)((0,r.A)({},e),{},{placement:b||de(a),maxHeight:m})})},me=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,r.A)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},ge=function(e,t){var n=e.theme,o=n.spacing.baseUnit,a=n.colors;return(0,r.A)({textAlign:"center"},t?{}:{color:a.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},ye=ge,ve=ge,be=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},we=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Ee=function(e,t){var n=e.theme.spacing,o=e.isMulti,a=e.hasValue,i=e.selectProps.controlShouldRenderValue;return(0,r.A)({alignItems:"center",display:o&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},xe=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Ce=["size"],_e=["innerProps","isRtl","size"],Se={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Oe=function(e){var t=e.size,n=(0,s.A)(e,Ce);return(0,a.Y)("svg",(0,o.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Se},n))},ke=function(e){return(0,a.Y)(Oe,(0,o.A)({size:20},e),(0,a.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ne=function(e){return(0,a.Y)(Oe,(0,o.A)({size:20},e),(0,a.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Me=function(e,t){var n=e.isFocused,o=e.theme,a=o.spacing.baseUnit,i=o.colors;return(0,r.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a,":hover":{color:n?i.neutral80:i.neutral40}})},Ae=Me,De=Me,Ie=function(e,t){var n=e.isDisabled,o=e.theme,a=o.spacing.baseUnit,i=o.colors;return(0,r.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*a,marginTop:2*a})},je=(0,a.i7)(le||(ce=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],ue||(ue=ce.slice(0)),le=Object.freeze(Object.defineProperties(ce,{raw:{value:Object.freeze(ue)}})))),Te=function(e,t){var n=e.isFocused,o=e.size,a=e.theme,i=a.colors,s=a.spacing.baseUnit;return(0,r.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*s})},Le=function(e){var t=e.delay,n=e.offset;return(0,a.Y)("span",{css:(0,a.AH)({animation:"".concat(je," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Pe=function(e,t){var n=e.isDisabled,o=e.isFocused,a=e.theme,i=a.colors,s=a.borderRadius,l=a.spacing;return(0,r.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},Re=["data"],Fe=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},Be=function(e,t){var n=e.theme,o=n.colors,a=n.spacing;return(0,r.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})},ze=["innerRef","isDisabled","isHidden","inputClassName"],qe=function(e,t){var n=e.isDisabled,o=e.value,a=e.theme,i=a.spacing,s=a.colors;return(0,r.A)((0,r.A)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},He),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},Ue={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},He={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ue)},Ve=function(e){return(0,r.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ue)},Ke=function(e,t){var n=e.theme,o=n.spacing,a=n.borderRadius,i=n.colors;return(0,r.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},Ge=function(e,t){var n=e.theme,o=n.borderRadius,a=n.colors,i=e.cropWithEllipsis;return(0,r.A)({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},We=function(e,t){var n=e.theme,o=n.spacing,a=n.borderRadius,i=n.colors,s=e.isFocused;return(0,r.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:a/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},Ye=function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",n,t)},Qe=function(e,t){var n=e.isDisabled,o=e.isFocused,a=e.isSelected,i=e.theme,s=i.spacing,l=i.colors;return(0,r.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:a?l.primary:o?l.primary25:"transparent",color:n?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:a?l.primary:l.primary50}})},$e=function(e,t){var n=e.theme,o=n.spacing,a=n.colors;return(0,r.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Ze=function(e,t){var n=e.isDisabled,o=e.theme,a=o.spacing,i=o.colors;return(0,r.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Je={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,a.Y)(ke,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return(0,a.Y)("div",(0,o.A)({ref:i},U(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),s,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,a.Y)(Ne,null))},DownChevron:Ne,CrossIcon:ke,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,s=e.Heading,l=e.headingProps,c=e.innerProps,u=e.label,d=e.theme,p=e.selectProps;return(0,a.Y)("div",(0,o.A)({},U(e,"group",{group:!0}),c),(0,a.Y)(s,(0,o.A)({},l,{selectProps:p,theme:d,getStyles:r,getClassNames:i,cx:n}),u),(0,a.Y)("div",null,t))},GroupHeading:function(e){var t=q(e);t.data;var n=(0,s.A)(t,Re);return(0,a.Y)("div",(0,o.A)({},U(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,a.Y)("span",(0,o.A)({},t,U(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=q(e),i=r.innerRef,l=r.isDisabled,c=r.isHidden,u=r.inputClassName,d=(0,s.A)(r,ze);return(0,a.Y)("div",(0,o.A)({},U(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,a.Y)("input",(0,o.A)({className:t({input:!0},u),ref:i,style:Ve(c),disabled:l},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,i=e.size,l=void 0===i?4:i,c=(0,s.A)(e,_e);return(0,a.Y)("div",(0,o.A)({},U((0,r.A)((0,r.A)({},c),{},{innerProps:t,isRtl:n,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,a.Y)(Le,{delay:0,offset:n}),(0,a.Y)(Le,{delay:160,offset:!0}),(0,a.Y)(Le,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return(0,a.Y)("div",(0,o.A)({},U(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,l=e.innerProps,c=e.menuPlacement,h=e.menuPosition,g=(0,u.useRef)(null),y=(0,u.useRef)(null),v=(0,u.useState)(de(c)),b=(0,i.A)(v,2),E=b[0],x=b[1],C=(0,u.useMemo)((function(){return{setPortalPlacement:x}}),[]),_=(0,u.useState)(null),S=(0,i.A)(_,2),O=S[0],k=S[1],M=(0,u.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===h?0:window.pageYOffset,n=e[E]+t;n===(null==O?void 0:O.offset)&&e.left===(null==O?void 0:O.rect.left)&&e.width===(null==O?void 0:O.rect.width)||k({offset:n,rect:e})}}),[s,h,E,null==O?void 0:O.offset,null==O?void 0:O.rect.left,null==O?void 0:O.rect.width]);(0,L.A)((function(){M()}),[M]);var D=(0,u.useCallback)((function(){"function"==typeof y.current&&(y.current(),y.current=null),s&&g.current&&(y.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=A(e),u=o||a?[...c?N(c):[],...N(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=w(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const g={rootMargin:-m(u)+"px "+-m(o.clientWidth-(c+d))+"px "+-m(o.clientHeight-(u+h))+"px "+-m(c)+"px",threshold:f(0,p(1,l))||1};let y=!0;function v(e){const t=e[0].intersectionRatio;if(t!==l){if(!y)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}y=!1}try{r=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,g)}r.observe(e)}(!0),a}(c,n):null;let h,g=-1,y=null;i&&(y=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),c&&!l&&y.observe(c),y.observe(t));let v=l?T(e):null;return l&&function t(){const r=T(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n(),v=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=y)||e.disconnect(),y=null,l&&cancelAnimationFrame(h)}}(s,g.current,M,{elementResize:"ResizeObserver"in window}))}),[s,M]);(0,L.A)((function(){D()}),[D]);var I=(0,u.useCallback)((function(e){g.current=e,D()}),[D]);if(!t&&"fixed"!==h||!O)return null;var j=(0,a.Y)("div",(0,o.A)({ref:I},U((0,r.A)((0,r.A)({},e),{},{offset:O.offset,position:h,rect:O.rect}),"menuPortal",{"menu-portal":!0}),l),n);return(0,a.Y)(fe.Provider,{value:C},t?(0,d.createPortal)(j,t):j)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,i=e.innerProps,l=(0,s.A)(e,se);return(0,a.Y)("div",(0,o.A)({},U((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,i=e.innerProps,l=(0,s.A)(e,ie);return(0,a.Y)("div",(0,o.A)({},U((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,s=e.isDisabled,l=e.removeProps,c=e.selectProps,u=n.Container,d=n.Label,p=n.Remove;return(0,a.Y)(u,{data:o,innerProps:(0,r.A)((0,r.A)({},U(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:c},(0,a.Y)(d,{data:o,innerProps:(0,r.A)({},U(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),(0,a.Y)(p,{data:o,innerProps:(0,r.A)((0,r.A)({},U(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:c}))},MultiValueContainer:Ye,MultiValueLabel:Ye,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({role:"button"},n),t||(0,a.Y)(ke,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,s=e.innerRef,l=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:s,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return(0,a.Y)("div",(0,o.A)({},U(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return(0,a.Y)("div",(0,o.A)({},U(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},Xe=function(e){return(0,r.A)((0,r.A)({},Je),e.components)}},8552:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(7533),o=n(5890),a=n(1609),i=n(4547),s=(n(2096),n(5795),n(3327),(0,a.forwardRef)((function(e,t){var n=(0,r.u)(e);return a.createElement(i.S,(0,o.A)({ref:t},n))})))},4350:(e,t,n)=>{"use strict";n.d(t,{u:()=>u});var r=n(3205),o=n(6313),a=n(9086),i=n(2511),s=n(1609),l=n(6012),c=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function u(e){var t=e.defaultOptions,n=void 0!==t&&t,u=e.cacheOptions,d=void 0!==u&&u,p=e.loadOptions;e.options;var f=e.isLoading,h=void 0!==f&&f,m=e.onInputChange,g=e.filterOption,y=void 0===g?null:g,v=(0,i.A)(e,c),b=v.inputValue,w=(0,s.useRef)(void 0),E=(0,s.useRef)(!1),x=(0,s.useState)(Array.isArray(n)?n:void 0),C=(0,a.A)(x,2),_=C[0],S=C[1],O=(0,s.useState)(void 0!==b?b:""),k=(0,a.A)(O,2),N=k[0],M=k[1],A=(0,s.useState)(!0===n),D=(0,a.A)(A,2),I=D[0],j=D[1],T=(0,s.useState)(void 0),L=(0,a.A)(T,2),P=L[0],R=L[1],F=(0,s.useState)([]),B=(0,a.A)(F,2),z=B[0],q=B[1],U=(0,s.useState)(!1),H=(0,a.A)(U,2),V=H[0],K=H[1],G=(0,s.useState)({}),W=(0,a.A)(G,2),Y=W[0],Q=W[1],$=(0,s.useState)(void 0),Z=(0,a.A)($,2),J=Z[0],X=Z[1],ee=(0,s.useState)(void 0),te=(0,a.A)(ee,2),ne=te[0],re=te[1];d!==ne&&(Q({}),re(d)),n!==J&&(S(Array.isArray(n)?n:void 0),X(n)),(0,s.useEffect)((function(){return E.current=!0,function(){E.current=!1}}),[]);var oe=(0,s.useCallback)((function(e,t){if(!p)return t();var n=p(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[p]);(0,s.useEffect)((function(){!0===n&&oe(N,(function(e){E.current&&(S(e||[]),j(!!w.current))}))}),[]);var ae=(0,s.useCallback)((function(e,t){var n=(0,l.L)(e,t,m);if(!n)return w.current=void 0,M(""),R(""),q([]),j(!1),void K(!1);if(d&&Y[n])M(n),R(n),q(Y[n]),j(!1),K(!1);else{var a=w.current={};M(n),j(!0),K(!P),oe(n,(function(e){E&&a===w.current&&(w.current=void 0,j(!1),R(n),q(e||[]),K(!1),Q(e?(0,o.A)((0,o.A)({},Y),{},(0,r.A)({},n,e)):Y))}))}}),[d,oe,P,Y,m]),ie=V?[]:N&&P?z:_||[];return(0,o.A)((0,o.A)({},v),{},{options:ie,isLoading:I||h,onInputChange:ae,filterOption:y})}},7533:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var r=n(6313),o=n(9086),a=n(2511),i=n(1609),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function l(e){var t=e.defaultInputValue,n=void 0===t?"":t,l=e.defaultMenuIsOpen,c=void 0!==l&&l,u=e.defaultValue,d=void 0===u?null:u,p=e.inputValue,f=e.menuIsOpen,h=e.onChange,m=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,v=e.value,b=(0,a.A)(e,s),w=(0,i.useState)(void 0!==p?p:n),E=(0,o.A)(w,2),x=E[0],C=E[1],_=(0,i.useState)(void 0!==f?f:c),S=(0,o.A)(_,2),O=S[0],k=S[1],N=(0,i.useState)(void 0!==v?v:d),M=(0,o.A)(N,2),A=M[0],D=M[1],I=(0,i.useCallback)((function(e,t){"function"==typeof h&&h(e,t),D(e)}),[h]),j=(0,i.useCallback)((function(e,t){var n;"function"==typeof m&&(n=m(e,t)),C(void 0!==n?n:e)}),[m]),T=(0,i.useCallback)((function(){"function"==typeof y&&y(),k(!0)}),[y]),L=(0,i.useCallback)((function(){"function"==typeof g&&g(),k(!1)}),[g]),P=void 0!==p?p:x,R=void 0!==f?f:O,F=void 0!==v?v:A;return(0,r.A)((0,r.A)({},b),{},{inputValue:P,menuIsOpen:R,onChange:I,onInputChange:j,onMenuClose:L,onMenuOpen:T,value:F})}},1336:(e,t,n)=>{var r=n(2299),o=n(6265),a=n(1609),i=n(4599);function s(e){return e&&e.__esModule?e.default:e}function l(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e){e.forEach((e=>c(e.element)))}function d(e){e.forEach((e=>{!function(e,t,n){const r=e.children[n]||null;e.insertBefore(t,r)}(e.parentElement,e.element,e.oldIndex)}))}function p(e,t){const n=m(e),r={parentElement:e.from};let o=[];switch(n){case"normal":o=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":o=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...r},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...r}];break;case"multidrag":o=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...r})))}const a=function(e,t){return e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex))}(o,t);return a}function f(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function h(e,t,n,r){const o=[...t];return e.forEach((e=>{const t=r&&n&&r(e.item,n);o.splice(e.newIndex,0,t||e.item)})),o}function m(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}l(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),l(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),l(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),l(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),l(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),l(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),l(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),l(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),l(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),l(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),l(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),l(e.exports,"ReactSortable",(()=>y));const g={dragging:null};class y extends a.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,a.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,g),s(i)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n      ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();s(r).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:r}=this.props,o={style:t,className:n,id:r},i=e&&null!==e?e:"div";return(0,a.createElement)(i,{ref:this.ref,...o},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:r="sortable-chosen",dragClass:i="sortable-drag",fallbackClass:l="sortable-falback",ghostClass:c="sortable-ghost",swapClass:u="sortable-swap-highlight",filter:d="sortable-filter",list:p}=this.props;if(!e||null==e)return null;const f=t||"data-id";return a.Children.map(e,((e,t)=>{if(void 0===e)return;const i=p[t]||{},{className:l}=e.props,c="string"==typeof d&&{[d.replace(".","")]:!!i.filtered},u=s(o)(l,{[n]:i.selected,[r]:i.chosen,...c});return(0,a.cloneElement)(e,{[f]:e.key,className:u})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=function(e){const{list:t,setList:n,children:r,tag:o,style:a,className:i,clone:s,onAdd:l,onChange:c,onChoose:u,onClone:d,onEnd:p,onFilter:f,onRemove:h,onSort:m,onStart:g,onUnchoose:y,onUpdate:v,onMove:b,onSpill:w,onSelect:E,onDeselect:x,...C}=e;return C}(this.props);return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t))),{...e,onMove:(e,t)=>{const{onMove:n}=this.props,r=e.willInsertAfter||-1;if(!n)return r;const o=n(e,t,this.sortable,g);return void 0!==o&&o}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,g)}onAdd(e){const{list:t,setList:n,clone:r}=this.props,o=p(e,[...g.dragging.props.list]);u(o),n(h(o,t,e,r).map((e=>Object.assign(e,{selected:!1}))),this.sortable,g)}onRemove(e){const{list:t,setList:n}=this.props,r=m(e),o=p(e,t);d(o);let a=[...t];if("clone"!==e.pullMode)a=f(o,a);else{let t=o;switch(r){case"multidrag":t=o.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=o.map((t=>({...t,element:e.clone})));break;default:s(i)(!0,`mode "${r}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${r}" plugin`)}u(t),o.forEach((t=>{const n=t.oldIndex,r=this.props.clone(t.item,e);a.splice(n,1,r)}))}a=a.map((e=>Object.assign(e,{selected:!1}))),n(a,this.sortable,g)}onUpdate(e){const{list:t,setList:n}=this.props,r=p(e,t);return u(r),d(r),n(function(e,t){return h(e,f(e,t))}(r,t),this.sortable,g)}onStart(){g.dragging=this}onEnd(){g.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(t,{chosen:!0})),r})),this.sortable,g)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(r,{chosen:!1})),r})),this.sortable,g)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&c(e.item)}onSelect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);r[n].selected=!0})),n(r,this.sortable,g)}onDeselect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(r[t].selected=!0)})),n(r,this.sortable,g)}}var v,b;v=e.exports,b={},Object.keys(b).forEach((function(e){"default"===e||"__esModule"===e||v.hasOwnProperty(e)||Object.defineProperty(v,e,{enumerable:!0,get:function(){return b[e]}})}))},6080:function(e,t,n){!function(e){"use strict";if(!e.setImmediate){var t,n,r,o,a,i=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),t=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){p(e.data)},t=function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,t=function(e){var t=c.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):t=function(e){setTimeout(p,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var o={callback:e,args:n};return s[i]=o,t(i),i++},u.clearImmediate=d}function d(e){delete s[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=s[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?void 0===n.g?this:n.g:self)},9552:(e,t,n)=>{"use strict";var r=n(8131),o=n(7379),a=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return a(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=a(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!a(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=a(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},1085:(e,t,n)=>{"use strict";var r=n(211),o=n(9459),a=n(8131),i=n(7379),s=r("%Map%",!0),l=o("Map.prototype.get",!0),c=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+a(e))},delete:function(t){if(e){var n=d(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},7706:(e,t,n)=>{"use strict";var r=n(211),o=n(9459),a=n(8131),i=n(1085),s=n(7379),l=r("%WeakMap%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(i&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),u(e,n,r)):i&&(t||(t=i()),t.set(n,r))}};return n}:i},5717:(e,t,n)=>{"use strict";var r=n(7379),o=n(8131),a=n(9552),i=n(1085),s=n(7706)||i||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},2299:(e,t,n)=>{"use strict";function r(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:()=>wt,Sortable:()=>qe,Swap:()=>ct,default:()=>Ct});var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),p=c(/firefox/i),f=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),h=c(/iP(ad|od|hone)/i),m=c(/chrome/i)&&c(/android/i),g={capture:!1,passive:!1};function y(e,t,n){e.addEventListener(t,n,!u&&g)}function v(e,t,n){e.removeEventListener(t,n,!u&&g)}function b(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function w(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&b(e,t):b(e,t))||r&&e===n)return e;if(e===n)break}while(e=w(e))}return null}var x,C=/\s+/g;function _(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(C," ")}}function S(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function O(e,t){var n="";if("string"==typeof e)n=e;else do{var r=S(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function k(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o<a;o++)n(r[o],o);return r}return[]}function N(){return document.scrollingElement||document.documentElement}function M(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var a,i,s,l,c,d,p;if(e!==window&&e.parentNode&&e!==N()?(i=(a=e.getBoundingClientRect()).top,s=a.left,l=a.bottom,c=a.right,d=a.height,p=a.width):(i=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,p=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!u))do{if(o&&o.getBoundingClientRect&&("none"!==S(o,"transform")||n&&"static"!==S(o,"position"))){var f=o.getBoundingClientRect();i-=f.top+parseInt(S(o,"border-top-width")),s-=f.left+parseInt(S(o,"border-left-width")),l=i+a.height,c=s+a.width;break}}while(o=o.parentNode);if(r&&e!==window){var h=O(o||e),m=h&&h.a,g=h&&h.d;h&&(l=(i/=g)+(d/=g),c=(s/=m)+(p/=m))}return{top:i,left:s,bottom:l,right:c,width:p,height:d}}}function A(e,t,n){for(var r=L(e,!0),o=M(e)[t];r;){var a=M(r)[n];if(!("top"===n||"left"===n?o>=a:o<=a))return r;if(r===N())break;r=L(r,!1)}return!1}function D(e,t,n,r){for(var o=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==qe.ghost&&(r||i[a]!==qe.dragged)&&E(i[a],n.draggable,e,!1)){if(o===t)return i[a];o++}a++}return null}function I(e,t){for(var n=e.lastElementChild;n&&(n===qe.ghost||"none"===S(n,"display")||t&&!b(n,t));)n=n.previousElementSibling;return n||null}function j(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===qe.clone||t&&!b(e,t)||n++;return n}function T(e){var t=0,n=0,r=N();if(e)do{var o=O(e),a=o.a,i=o.d;t+=e.scrollLeft*a,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function L(e,t){if(!e||!e.getBoundingClientRect)return N();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=S(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return N();if(r||t)return n;r=!0}}}while(n=n.parentNode);return N()}function P(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function R(e,t){return function(){if(!x){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),x=setTimeout((function(){x=void 0}),t)}}}function F(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function B(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function z(e,t){S(e,"position","absolute"),S(e,"top",t.top),S(e,"left",t.left),S(e,"width",t.width),S(e,"height",t.height)}function q(e){S(e,"position",""),S(e,"top",""),S(e,"left",""),S(e,"width",""),S(e,"height","")}function U(e,t,n){var r={};return Array.from(e.children).forEach((function(o){var a,i,s,l;if(E(o,t.draggable,e,!1)&&!o.animated&&o!==n){var c=M(o);r.left=Math.min(null!==(a=r.left)&&void 0!==a?a:1/0,c.left),r.top=Math.min(null!==(i=r.top)&&void 0!==i?i:1/0,c.top),r.right=Math.max(null!==(s=r.right)&&void 0!==s?s:-1/0,c.right),r.bottom=Math.max(null!==(l=r.bottom)&&void 0!==l?l:-1/0,c.bottom)}})),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var H="Sortable"+(new Date).getTime();var V=[],K={initializeByDefault:!0},G={mount:function(e){for(var t in K)K.hasOwnProperty(t)&&!(t in e)&&(e[t]=K[t]);V.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),V.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=e+"Global";V.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][a]&&t[r.pluginName][a](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in V.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[o]=a,s(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);void 0!==a&&(e.options[o]=a)}},getEventProperties:function(e,t){var n={};return V.forEach((function(r){"function"==typeof r.eventProperties&&s(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return V.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function W(e){var t=e.sortable,n=e.rootEl,r=e.name,a=e.targetEl,i=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,p=e.newIndex,f=e.oldDraggableIndex,h=e.newDraggableIndex,m=e.originalEvent,g=e.putSortable,y=e.extraEventProperties;if(t=t||n&&n[H]){var v,b=t.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||u||d?(v=document.createEvent("Event")).initEvent(r,!0,!0):v=new CustomEvent(r,{bubbles:!0,cancelable:!0}),v.to=s||n,v.from=l||n,v.item=a||n,v.clone=i,v.oldIndex=c,v.newIndex=p,v.oldDraggableIndex=f,v.newDraggableIndex=h,v.originalEvent=m,v.pullMode=g?g.lastPutMode:void 0;var E=o(o({},y),G.getEventProperties(r,t));for(var x in E)v[x]=E[x];n&&n.dispatchEvent(v),b[w]&&b[w].call(t,v)}}var Y=["evt"],Q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,Y);G.pluginEvent.bind(qe)(e,t,o({dragEl:Z,parentEl:J,ghostEl:X,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:re,cloneHidden:oe,dragStarted:ye,putSortable:ue,activeSortable:qe.active,originalEvent:r,oldIndex:ae,oldDraggableIndex:se,newIndex:ie,newDraggableIndex:le,hideGhostForTarget:Re,unhideGhostForTarget:Fe,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){$({sortable:t,name:e,originalEvent:r})}},a))};function $(e){W(o({putSortable:ue,cloneEl:re,targetEl:Z,rootEl:ee,oldIndex:ae,oldDraggableIndex:se,newIndex:ie,newDraggableIndex:le},e))}var Z,J,X,ee,te,ne,re,oe,ae,ie,se,le,ce,ue,de,pe,fe,he,me,ge,ye,ve,be,we,Ee,xe=!1,Ce=!1,_e=[],Se=!1,Oe=!1,ke=[],Ne=!1,Me=[],Ae="undefined"!=typeof document,De=h,Ie=d||u?"cssFloat":"float",je=Ae&&!m&&!h&&"draggable"in document.createElement("div"),Te=function(){if(Ae){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Le=function(e,t){var n=S(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=D(e,0,t),a=D(e,1,t),i=o&&S(o),s=a&&S(a),l=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+M(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+M(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!a||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||l>=r&&"none"===n[Ie]||a&&"none"===n[Ie]&&l+c>r)?"vertical":"horizontal"},Pe=function(e){function t(e,n){return function(r,o,a,i){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,a,i),n)(r,o,a,i);var l=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==a(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Re=function(){!Te&&X&&S(X,"display","none")},Fe=function(){!Te&&X&&S(X,"display","")};Ae&&!m&&document.addEventListener("click",(function(e){if(Ce)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ce=!1,!1}),!0);var Be=function(e){if(Z){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,a=e.clientY,_e.some((function(e){var t=e[H].options.emptyInsertThreshold;if(t&&!I(e)){var n=M(e),r=o>=n.left-t&&o<=n.right+t,s=a>=n.top-t&&a<=n.bottom+t;return r&&s?i=e:void 0}})),i);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[H]._onDragOver(n)}}var o,a,i},ze=function(e){Z&&Z.parentNode[H]._isOutsideThisEl(e.target)};function qe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[H]=this;var n,r,a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==qe.supportPointer&&"PointerEvent"in window&&(!f||h),emptyInsertThreshold:5};for(var i in G.initializePlugins(this,e,a),a)!(i in t)&&(t[i]=a[i]);for(var l in Pe(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&je,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?y(e,"pointerdown",this._onTapStart):(y(e,"mousedown",this._onTapStart),y(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(e,"dragover",this),y(e,"dragenter",this)),_e.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==S(e,"display")&&e!==qe.ghost){r.push({target:e,rect:M(e)});var t=o({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=O(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,a=0;r.forEach((function(e){var n=0,r=e.target,i=r.fromRect,s=M(r),l=r.prevFromRect,c=r.prevToRect,u=e.rect,d=O(r,!0);d&&(s.top-=d.f,s.left-=d.e),r.toRect=s,r.thisAnimationDuration&&P(l,s)&&!P(i,s)&&(u.top-s.top)/(u.left-s.left)==(i.top-s.top)/(i.left-s.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,t.options)),P(s,i)||(r.prevFromRect=i,r.prevToRect=s,n||(n=t.options.animation),t.animate(r,u,s,n)),n&&(o=!0,a=Math.max(a,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),n),r.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),a):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){S(e,"transition",""),S(e,"transform","");var o=O(this.el),a=o&&o.a,i=o&&o.d,s=(t.left-n.left)/(a||1),l=(t.top-n.top)/(i||1);e.animatingX=!!s,e.animatingY=!!l,S(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),S(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),S(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){S(e,"transition",""),S(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function Ue(e,t,n,r,o,a,i,s){var l,c,p=e[H],f=p.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=o||t,l.relatedRect=a||M(t),l.willInsertAfter=s,l.originalEvent=i,e.dispatchEvent(l),f&&(c=f.call(p,l,i)),c}function He(e){e.draggable=!1}function Ve(){Ne=!1}function Ke(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ge(e){return setTimeout(e,0)}function We(e){return clearTimeout(e)}qe.prototype={constructor:qe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Z):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(i||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(function(e){Me.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Me.push(r)}}(n),!Z&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!f||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=E(s,r.draggable,n,!1))&&s.animated||ne===s)){if(ae=j(s),se=j(s,r.draggable),"function"==typeof c){if(c.call(this,e,s,this))return $({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Q("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=E(l,r.trim(),n,!1))return $({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Q("filter",t,{evt:e}),!0}))))return void(o&&e.preventDefault());r.handle&&!E(l,r.handle,n,!1)||this._prepareDragStart(e,i,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,a=o.el,i=o.options,s=a.ownerDocument;if(n&&!Z&&n.parentNode===a){var l=M(n);if(ee=a,J=(Z=n).parentNode,te=Z.nextSibling,ne=n,ce=i.group,qe.dragged=Z,de={target:Z,clientX:(t||e).clientX,clientY:(t||e).clientY},me=de.clientX-l.left,ge=de.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Z.style["will-change"]="all",r=function(){Q("delayEnded",o,{evt:e}),qe.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!p&&o.nativeDraggable&&(Z.draggable=!0),o._triggerDragStart(e,t),$({sortable:o,name:"choose",originalEvent:e}),_(Z,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){k(Z,e.trim(),He)})),y(s,"dragover",Be),y(s,"mousemove",Be),y(s,"touchmove",Be),i.supportPointer?(y(s,"pointerup",o._onDrop),!this.nativeDraggable&&y(s,"pointercancel",o._onDrop)):(y(s,"mouseup",o._onDrop),y(s,"touchend",o._onDrop),y(s,"touchcancel",o._onDrop)),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),Q("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))r();else{if(qe.eventCanceled)return void this._onDrop();i.supportPointer?(y(s,"pointerup",o._disableDelayedDrag),y(s,"pointercancel",o._disableDelayedDrag)):(y(s,"mouseup",o._disableDelayedDrag),y(s,"touchend",o._disableDelayedDrag),y(s,"touchcancel",o._disableDelayedDrag)),y(s,"mousemove",o._delayedDragTouchMoveHandler),y(s,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&y(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&He(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"pointerup",this._disableDelayedDrag),v(e,"pointercancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):y(document,t?"touchmove":"mousemove",this._onTouchMove):(y(Z,"dragend",this),y(ee,"dragstart",this._onDragStart));try{document.selection?Ge((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(xe=!1,ee&&Z){Q("dragStarted",this,{evt:t}),this.nativeDraggable&&y(document,"dragover",ze);var n=this.options;!e&&_(Z,n.dragClass,!1),_(Z,n.ghostClass,!0),qe.active=this,e&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(pe){this._lastX=pe.clientX,this._lastY=pe.clientY,Re();for(var e=document.elementFromPoint(pe.clientX,pe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(pe.clientX,pe.clientY))!==t;)t=e;if(Z.parentNode[H]._isOutsideThisEl(e),t)do{if(t[H]&&t[H]._onDragOver({clientX:pe.clientX,clientY:pe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=w(t));Fe()}},_onTouchMove:function(e){if(de){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=X&&O(X,!0),i=X&&a&&a.a,s=X&&a&&a.d,l=De&&Ee&&T(Ee),c=(o.clientX-de.clientX+r.x)/(i||1)+(l?l[0]-ke[0]:0)/(i||1),u=(o.clientY-de.clientY+r.y)/(s||1)+(l?l[1]-ke[1]:0)/(s||1);if(!qe.active&&!xe){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(X){a?(a.e+=c-(fe||0),a.f+=u-(he||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");S(X,"webkitTransform",d),S(X,"mozTransform",d),S(X,"msTransform",d),S(X,"transform",d),fe=c,he=u,pe=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!X){var e=this.options.fallbackOnBody?document.body:ee,t=M(Z,!0,De,!0,e),n=this.options;if(De){for(Ee=e;"static"===S(Ee,"position")&&"none"===S(Ee,"transform")&&Ee!==document;)Ee=Ee.parentNode;Ee!==document.body&&Ee!==document.documentElement?(Ee===document&&(Ee=N()),t.top+=Ee.scrollTop,t.left+=Ee.scrollLeft):Ee=N(),ke=T(Ee)}_(X=Z.cloneNode(!0),n.ghostClass,!1),_(X,n.fallbackClass,!0),_(X,n.dragClass,!0),S(X,"transition",""),S(X,"transform",""),S(X,"box-sizing","border-box"),S(X,"margin",0),S(X,"top",t.top),S(X,"left",t.left),S(X,"width",t.width),S(X,"height",t.height),S(X,"opacity","0.8"),S(X,"position",De?"absolute":"fixed"),S(X,"zIndex","100000"),S(X,"pointerEvents","none"),qe.ghost=X,e.appendChild(X),S(X,"transform-origin",me/parseInt(X.style.width)*100+"% "+ge/parseInt(X.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;Q("dragStart",this,{evt:e}),qe.eventCanceled?this._onDrop():(Q("setupClone",this),qe.eventCanceled||((re=B(Z)).removeAttribute("id"),re.draggable=!1,re.style["will-change"]="",this._hideClone(),_(re,this.options.chosenClass,!1),qe.clone=re),n.cloneId=Ge((function(){Q("clone",n),qe.eventCanceled||(n.options.removeCloneOnHide||ee.insertBefore(re,Z),n._hideClone(),$({sortable:n,name:"clone"}))})),!t&&_(Z,o.dragClass,!0),t?(Ce=!0,n._loopId=setInterval(n._emulateDragOver,50)):(v(document,"mouseup",n._onDrop),v(document,"touchend",n._onDrop),v(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,Z)),y(document,"drop",n),S(Z,"transform","translateZ(0)")),xe=!0,n._dragStartId=Ge(n._dragStarted.bind(n,t,e)),y(document,"selectstart",n),ye=!0,window.getSelection().removeAllRanges(),f&&S(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,a,i=this.el,s=e.target,l=this.options,c=l.group,u=qe.active,d=ce===c,p=l.sort,f=ue||u,h=this,m=!1;if(!Ne){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=E(s,l.draggable,i,!0),B("dragOver"),qe.eventCanceled)return m;if(Z.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return q(!1);if(Ce=!1,u&&!l.disabled&&(d?p||(r=J!==ee):ue===this||(this.lastPutMode=ce.checkPull(this,u,Z,e))&&c.checkPut(this,u,Z,e))){if(a="vertical"===this._getDirection(e,s),t=M(Z),B("dragOverValid"),qe.eventCanceled)return m;if(r)return J=ee,z(),this._hideClone(),B("revert"),qe.eventCanceled||(te?ee.insertBefore(Z,te):ee.appendChild(Z)),q(!0);var g=I(i,l.draggable);if(!g||function(e,t,n){var r=M(I(n.el,n.options.draggable)),o=U(n.el,n.options,X);return t?e.clientX>o.right+10||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+10||e.clientX>r.right&&e.clientY>r.top}(e,a,this)&&!g.animated){if(g===Z)return q(!1);if(g&&i===e.target&&(s=g),s&&(n=M(s)),!1!==Ue(ee,i,Z,t,s,n,e,!!s))return z(),g&&g.nextSibling?i.insertBefore(Z,g.nextSibling):i.appendChild(Z),J=i,V(),q(!0)}else if(g&&function(e,t,n){var r=M(D(n.el,0,n.options,!0)),o=U(n.el,n.options,X);return t?e.clientX<o.left-10||e.clientY<r.top&&e.clientX<r.right:e.clientY<o.top-10||e.clientY<r.bottom&&e.clientX<r.left}(e,a,this)){var y=D(i,0,l,!0);if(y===Z)return q(!1);if(n=M(s=y),!1!==Ue(ee,i,Z,t,s,n,e,!1))return z(),i.insertBefore(Z,y),J=i,V(),q(!0)}else if(s.parentNode===i){n=M(s);var v,b,w,x=Z.parentNode!==i,C=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,i=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===i||o===s||r+a/2===i+l/2}(Z.animated&&Z.toRect||t,s.animated&&s.toRect||n,a),O=a?"top":"left",k=A(s,"top","top")||A(Z,"top","top"),N=k?k.scrollTop:void 0;if(ve!==s&&(b=n[O],Se=!1,Oe=!C&&l.invertSwap||x),v=function(e,t,n,r,o,a,i,s){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!i)if(s&&we<c*o){if(!Se&&(1===be?l>u+c*a/2:l<d-c*a/2)&&(Se=!0),Se)p=!0;else if(1===be?l<u+we:l>d-we)return-be}else if(l>u+c*(1-o)/2&&l<d-c*(1-o)/2)return function(e){return j(Z)<j(e)?1:-1}(t);return(p=p||i)&&(l<u+c*a/2||l>d-c*a/2)?l>u+c/2?1:-1:0}(e,s,n,a,C?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Oe,ve===s),0!==v){var T=j(Z);do{T-=v,w=J.children[T]}while(w&&("none"===S(w,"display")||w===X))}if(0===v||w===s)return q(!1);ve=s,be=v;var L=s.nextElementSibling,P=!1,R=Ue(ee,i,Z,t,s,n,e,P=1===v);if(!1!==R)return 1!==R&&-1!==R||(P=1===R),Ne=!0,setTimeout(Ve,30),z(),P&&!L?i.appendChild(Z):s.parentNode.insertBefore(Z,P?L:s),k&&F(k,0,N-k.scrollTop),J=Z.parentNode,void 0===b||Oe||(we=Math.abs(b-M(s)[O])),V(),q(!0)}if(i.contains(Z))return q(!1)}return!1}function B(l,c){Q(l,h,o({evt:e,isOwner:d,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:p,fromSortable:f,target:s,completed:q,onMove:function(n,r){return Ue(ee,i,Z,t,n,M(n),e,r)},changed:V},c))}function z(){B("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function q(t){return B("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(h),h!==f&&(_(Z,ue?ue.options.ghostClass:u.options.ghostClass,!1),_(Z,l.ghostClass,!0)),ue!==h&&h!==qe.active?ue=h:h===qe.active&&ue&&(ue=null),f===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){B("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===Z&&!Z.animated||s===i&&!s.animated)&&(ve=null),l.dragoverBubble||e.rootEl||s===document||(Z.parentNode[H]._isOutsideThisEl(e.target),!t&&Be(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function V(){ie=j(Z),le=j(Z,l.draggable),$({sortable:h,name:"change",toEl:i,newIndex:ie,newDraggableIndex:le,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",Be),v(document,"mousemove",Be),v(document,"touchmove",Be)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"pointercancel",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ie=j(Z),le=j(Z,n.draggable),Q("drop",this,{evt:e}),J=Z&&Z.parentNode,ie=j(Z),le=j(Z,n.draggable),qe.eventCanceled||(xe=!1,Oe=!1,Se=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),We(this.cloneId),We(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&S(document.body,"user-select",""),S(Z,"transform",""),e&&(ye&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(ee===J||ue&&"clone"!==ue.lastPutMode)&&re&&re.parentNode&&re.parentNode.removeChild(re),Z&&(this.nativeDraggable&&v(Z,"dragend",this),He(Z),Z.style["will-change"]="",ye&&!xe&&_(Z,ue?ue.options.ghostClass:this.options.ghostClass,!1),_(Z,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==J?(ie>=0&&($({rootEl:J,name:"add",toEl:J,fromEl:ee,originalEvent:e}),$({sortable:this,name:"remove",toEl:J,originalEvent:e}),$({rootEl:J,name:"sort",toEl:J,fromEl:ee,originalEvent:e}),$({sortable:this,name:"sort",toEl:J,originalEvent:e})),ue&&ue.save()):ie!==ae&&ie>=0&&($({sortable:this,name:"update",toEl:J,originalEvent:e}),$({sortable:this,name:"sort",toEl:J,originalEvent:e})),qe.active&&(null!=ie&&-1!==ie||(ie=ae,le=se),$({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Q("nulling",this),ee=Z=J=X=te=re=ne=oe=de=pe=ye=ie=le=ae=se=ve=be=ue=ce=qe.dragged=qe.ghost=qe.clone=qe.active=null,Me.forEach((function(e){e.checked=!0})),Me.length=fe=he=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Z&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,a=this.options;r<o;r++)E(e=n[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Ke(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];E(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return E(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=G.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Pe(n)},destroy:function(){Q("destroy",this);var e=this.el;e[H]=null,v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart),v(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),_e.splice(_e.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!oe){if(Q("hideClone",this),qe.eventCanceled)return;S(re,"display","none"),this.options.removeCloneOnHide&&re.parentNode&&re.parentNode.removeChild(re),oe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(oe){if(Q("showClone",this),qe.eventCanceled)return;Z.parentNode!=ee||this.options.group.revertClone?te?ee.insertBefore(re,te):ee.appendChild(re):ee.insertBefore(re,Z),this.options.group.revertClone&&this.animate(Z,re),S(re,"display",""),oe=!1}}else this._hideClone()}},Ae&&y(document,"touchmove",(function(e){(qe.active||xe)&&e.cancelable&&e.preventDefault()})),qe.utils={on:y,off:v,css:S,find:k,is:function(e,t){return!!E(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:R,closest:E,toggleClass:_,clone:B,index:j,nextTick:Ge,cancelNextTick:We,detectDirection:Le,getChild:D,expando:H},qe.get=function(e){return e[H]},qe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(qe.utils=o(o({},qe.utils),e.utils)),G.mount(e)}))},qe.create=function(e,t){return new qe(e,t)},qe.version="1.15.6";var Ye,Qe,$e,Ze,Je,Xe,et=[],tt=!1;function nt(){et.forEach((function(e){clearInterval(e.pid)})),et=[]}function rt(){clearInterval(Xe)}var ot,at=R((function(e,t,n,r){if(t.scroll){var o,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=N(),u=!1;Qe!==n&&(Qe=n,nt(),Ye=t.scroll,o=t.scrollFn,!0===Ye&&(Ye=L(n,!0)));var d=0,p=Ye;do{var f=p,h=M(f),m=h.top,g=h.bottom,y=h.left,v=h.right,b=h.width,w=h.height,E=void 0,x=void 0,C=f.scrollWidth,_=f.scrollHeight,O=S(f),k=f.scrollLeft,A=f.scrollTop;f===c?(E=b<C&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),x=w<_&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(E=b<C&&("auto"===O.overflowX||"scroll"===O.overflowX),x=w<_&&("auto"===O.overflowY||"scroll"===O.overflowY));var D=E&&(Math.abs(v-a)<=s&&k+b<C)-(Math.abs(y-a)<=s&&!!k),I=x&&(Math.abs(g-i)<=s&&A+w<_)-(Math.abs(m-i)<=s&&!!A);if(!et[d])for(var j=0;j<=d;j++)et[j]||(et[j]={});et[d].vx==D&&et[d].vy==I&&et[d].el===f||(et[d].el=f,et[d].vx=D,et[d].vy=I,clearInterval(et[d].pid),0==D&&0==I||(u=!0,et[d].pid=setInterval(function(){r&&0===this.layer&&qe.active._onTouchMove(Je);var t=et[this.layer].vy?et[this.layer].vy*l:0,n=et[this.layer].vx?et[this.layer].vx*l:0;"function"==typeof o&&"continue"!==o.call(qe.dragged.parentNode[H],n,t,e,Je,et[this.layer].el)||F(et[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==c&&(p=L(p,!1)));tt=u}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||o;i();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function st(){}function lt(){}function ct(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;ot=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,a=e.changed,i=e.cancel;if(o.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=ot;!1!==r(n)?(_(n,l.swapClass,!0),ot=n):ot=null,c&&c!==ot&&_(c,l.swapClass,!1)}a(),t(!0),i()}},drop:function(e){var t,n,r,o,a,i,s=e.activeSortable,l=e.putSortable,c=e.dragEl,u=l||this.sortable,d=this.options;ot&&_(ot,d.swapClass,!1),ot&&(d.swap||l&&l.options.swap)&&c!==ot&&(u.captureAnimationState(),u!==s&&s.captureAnimationState(),n=ot,a=(t=c).parentNode,i=n.parentNode,a&&i&&!a.isEqualNode(n)&&!i.isEqualNode(t)&&(r=j(t),o=j(n),a.isEqualNode(i)&&r<o&&o++,a.insertBefore(n,a.children[r]),i.insertBefore(t,i.children[o])),u.animateAll(),u!==s&&s.animateAll())},nulling:function(){ot=null}},s(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ot}}})}st.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=D(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},s(st,{pluginName:"revertOnSpill"}),lt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},s(lt,{pluginName:"removeOnSpill"});var ut,dt,pt,ft,ht,mt=[],gt=[],yt=!1,vt=!1,bt=!1;function wt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?y(document,"pointerup",this._deselectMultiDrag):(y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag))),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r="";mt.length&&dt===e?mt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;pt=t},delayEnded:function(){this.isMultiDrag=~mt.indexOf(pt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<mt.length;r++)gt.push(B(mt[r])),gt[r].sortableIndex=mt[r].sortableIndex,gt[r].draggable=!1,gt[r].style["will-change"]="",_(gt[r],this.options.selectedClass,!1),mt[r]===pt&&_(gt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||mt.length&&dt===t&&(Et(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Et(!1,n),gt.forEach((function(e){S(e,"display","")})),t(),ht=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(gt.forEach((function(e){S(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ht=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&dt&&dt.multiDrag._deselectMultiDrag(),mt.forEach((function(e){e.sortableIndex=j(e)})),mt=mt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),bt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){mt.forEach((function(e){e!==pt&&S(e,"position","absolute")}));var r=M(pt,!1,!0,!0);mt.forEach((function(e){e!==pt&&z(e,r)})),vt=!0,yt=!0}n.animateAll((function(){vt=!1,yt=!1,t.options.animation&&mt.forEach((function(e){q(e)})),t.options.sort&&xt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;vt&&~mt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;mt.length>1&&(mt.forEach((function(e){r.addAnimationState({target:e,rect:vt?M(e):o}),q(e),e.fromRect=o,t.removeAnimationState(e)})),vt=!1,function(e,t){mt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,a=e.parentEl,i=e.putSortable,s=this.options;if(r){if(n&&o._hideClone(),yt=!1,s.animation&&mt.length>1&&(vt||!n&&!o.options.sort&&!i)){var l=M(pt,!1,!0,!0);mt.forEach((function(e){e!==pt&&(z(e,l),a.appendChild(e))})),vt=!0}if(!n)if(vt||xt(),mt.length>1){var c=ht;o._showClone(t),o.options.animation&&!ht&&c&&gt.forEach((function(e){o.addAnimationState({target:e,rect:ft}),e.fromRect=ft,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(mt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){ft=s({},t);var o=O(pt,!0);ft.top-=o.f,ft.left-=o.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,xt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,a=e.dispatchSortableEvent,i=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=r.children;if(!bt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),_(pt,c.selectedClass,!~mt.indexOf(pt)),~mt.indexOf(pt))mt.splice(mt.indexOf(pt),1),ut=null,W({sortable:o,rootEl:n,name:"deselect",targetEl:pt,originalEvent:t});else{if(mt.push(pt),W({sortable:o,rootEl:n,name:"select",targetEl:pt,originalEvent:t}),t.shiftKey&&ut&&o.el.contains(ut)){var d=j(ut),p=j(pt);~d&&~p&&d!==p&&function(){var e,a;p>d?(a=d,e=p):(a=p,e=d+1);for(var i=c.filter;a<e;a++)~mt.indexOf(u[a])||E(u[a],c.draggable,r,!1)&&(i&&("function"==typeof i?i.call(o,t,u[a],o):i.split(",").some((function(e){return E(u[a],e.trim(),r,!1)})))||(_(u[a],c.selectedClass,!0),mt.push(u[a]),W({sortable:o,rootEl:n,name:"select",targetEl:u[a],originalEvent:t})))}()}else ut=pt;dt=l}if(bt&&this.isMultiDrag){if(vt=!1,(r[H].options.sort||r!==n)&&mt.length>1){var f=M(pt),h=j(pt,":not(."+this.options.selectedClass+")");if(!yt&&c.animation&&(pt.thisAnimationDuration=null),l.captureAnimationState(),!yt&&(c.animation&&(pt.fromRect=f,mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==pt){var t=vt?M(e):f;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),xt(),mt.forEach((function(e){u[h]?r.insertBefore(e,u[h]):r.appendChild(e),h++})),i===j(pt))){var m=!1;mt.forEach((function(e){e.sortableIndex===j(e)||(m=!0)})),m&&(a("update"),a("sort"))}mt.forEach((function(e){q(e)})),l.animateAll()}dt=l}(n===r||s&&"clone"!==s.lastPutMode)&&gt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=bt=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==bt&&bt||dt!==this.sortable||e&&E(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];_(t,this.options.selectedClass,!1),mt.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[H];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(dt&&dt!==t&&(dt.multiDrag._deselectMultiDrag(),dt=t),_(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[H],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(_(e,t.options.selectedClass,!1),mt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],r=[];return mt.forEach((function(e){var o;n.push({multiDragElement:e,index:e.sortableIndex}),o=vt&&e!==pt?-1:vt?j(e,":not(."+t.options.selectedClass+")"):j(e),r.push({multiDragElement:e,index:o})})),{items:(e=mt,function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(gt),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Et(e,t){gt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function xt(){mt.forEach((function(e){e!==pt&&e.parentNode&&e.parentNode.removeChild(e)}))}qe.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):t.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),rt(),nt(),clearTimeout(x),x=void 0},nulling:function(){Je=Qe=Ye=tt=Xe=$e=Ze=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,o);if(Je=e,t||this.options.forceAutoScrollFallback||d||u||f){at(e,this.options,a,t);var i=L(a,!0);!tt||Xe&&r===$e&&o===Ze||(Xe&&rt(),Xe=setInterval((function(){var a=L(document.elementFromPoint(r,o),!0);a!==i&&(i=a,nt()),at(e,n.options,a,t)}),10),$e=r,Ze=o)}else{if(!this.options.bubbleScroll||L(a,!0)===N())return void nt();at(e,this.options,L(a,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),qe.mount(lt,st);const Ct=qe},7545:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(6382)),a=n(747);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,r){e&&r&&(n[(0,a.camelCase)(e,t)]=r)})),n):n}},747:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,l):e.replace(a,l)).replace(r,s))}},6382:(e,t,n)=>{var r=n(223);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var a,i,s=r(e),l="function"==typeof t,c=0,u=s.length;c<u;c++)a=(n=s[c]).property,i=n.value,l?t(a,i,n):i&&(o||(o={}),o[a]=i);return o}e.exports=o,e.exports.default=o},1419:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),n=e=>Array.prototype.slice.call(e),r=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},o=t=>{console.error("".concat(e," ").concat(t))},a=[],i=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),r(n))},s=e=>"function"==typeof e?e():e,l=e=>e&&"function"==typeof e.toPromise,c=e=>l(e)?e.toPromise():Promise.resolve(e),u=e=>e&&Promise.resolve(e)===e,d={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},p=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],f={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(d,e),g=e=>-1!==p.indexOf(e),y=e=>f[e],v=e=>{m(e)||r('Unknown parameter "'.concat(e,'"'))},b=e=>{h.includes(e)&&r('The parameter "'.concat(e,'" is incompatible with toasts'))},w=e=>{y(e)&&i(e,y(e))},E=e=>{const t={};for(const n in e)t[e[n]]="swal2-"+e[n];return t},x=E(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),C=E(["success","warning","info","question","error"]),_=()=>document.body.querySelector(".".concat(x.container)),S=e=>{const t=_();return t?t.querySelector(e):null},O=e=>S(".".concat(e)),k=()=>O(x.popup),N=()=>O(x.icon),M=()=>O(x.title),A=()=>O(x["html-container"]),D=()=>O(x.image),I=()=>O(x["progress-steps"]),j=()=>O(x["validation-message"]),T=()=>S(".".concat(x.actions," .").concat(x.confirm)),L=()=>S(".".concat(x.actions," .").concat(x.deny)),P=()=>S(".".concat(x.loader)),R=()=>S(".".concat(x.actions," .").concat(x.cancel)),F=()=>O(x.actions),B=()=>O(x.footer),z=()=>O(x["timer-progress-bar"]),q=()=>O(x.close),U=()=>{const e=n(k().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")),r=parseInt(t.getAttribute("tabindex"));return n>r?1:n<r?-1:0})),t=n(k().querySelectorAll('\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n')).filter((e=>"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t})(e.concat(t)).filter((e=>ie(e)))},H=()=>W(document.body,x.shown)&&!W(document.body,x["toast-shown"])&&!W(document.body,x["no-backdrop"]),V=()=>k()&&W(k(),x.toast),K={previousBodyPadding:null},G=(e,t)=>{if(e.textContent="",t){const r=(new DOMParser).parseFromString(t,"text/html");n(r.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),n(r.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},W=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t<n.length;t++)if(!e.classList.contains(n[t]))return!1;return!0},Y=(e,t,o)=>{if(((e,t)=>{n(e.classList).forEach((n=>{Object.values(x).includes(n)||Object.values(C).includes(n)||Object.values(t.showClass).includes(n)||e.classList.remove(n)}))})(e,t),t.customClass&&t.customClass[o]){if("string"!=typeof t.customClass[o]&&!t.customClass[o].forEach)return r("Invalid type of customClass.".concat(o,'! Expected string or iterable object, got "').concat(typeof t.customClass[o],'"'));J(e,t.customClass[o])}},Q=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(x.popup," > .").concat(x[t]));case"checkbox":return e.querySelector(".".concat(x.popup," > .").concat(x.checkbox," input"));case"radio":return e.querySelector(".".concat(x.popup," > .").concat(x.radio," input:checked"))||e.querySelector(".".concat(x.popup," > .").concat(x.radio," input:first-child"));case"range":return e.querySelector(".".concat(x.popup," > .").concat(x.range," input"));default:return e.querySelector(".".concat(x.popup," > .").concat(x.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},ee=(e,t)=>{const r=n(e.childNodes);for(let e=0;e<r.length;e++)if(W(r[e],t))return r[e]},te=(e,t,n)=>{n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)},ne=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},re=e=>{e.style.display="none"},oe=(e,t,n,r)=>{const o=e.querySelector(t);o&&(o.style[n]=r)},ae=(e,t,n)=>{t?ne(e,n):re(e)},ie=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),le=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=z();ie(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},ue=()=>"undefined"==typeof window||"undefined"==typeof document,de={},pe=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;de.restoreFocusTimeout=setTimeout((()=>{de.previousActiveElement&&de.previousActiveElement.focus?(de.previousActiveElement.focus(),de.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(n,r)})),fe='\n <div aria-labelledby="'.concat(x.title,'" aria-describedby="').concat(x["html-container"],'" class="').concat(x.popup,'" tabindex="-1">\n   <button type="button" class="').concat(x.close,'"></button>\n   <ul class="').concat(x["progress-steps"],'"></ul>\n   <div class="').concat(x.icon,'"></div>\n   <img class="').concat(x.image,'" />\n   <h2 class="').concat(x.title,'" id="').concat(x.title,'"></h2>\n   <div class="').concat(x["html-container"],'" id="').concat(x["html-container"],'"></div>\n   <input class="').concat(x.input,'" />\n   <input type="file" class="').concat(x.file,'" />\n   <div class="').concat(x.range,'">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="').concat(x.select,'"></select>\n   <div class="').concat(x.radio,'"></div>\n   <label for="').concat(x.checkbox,'" class="').concat(x.checkbox,'">\n     <input type="checkbox" />\n     <span class="').concat(x.label,'"></span>\n   </label>\n   <textarea class="').concat(x.textarea,'"></textarea>\n   <div class="').concat(x["validation-message"],'" id="').concat(x["validation-message"],'"></div>\n   <div class="').concat(x.actions,'">\n     <div class="').concat(x.loader,'"></div>\n     <button type="button" class="').concat(x.confirm,'"></button>\n     <button type="button" class="').concat(x.deny,'"></button>\n     <button type="button" class="').concat(x.cancel,'"></button>\n   </div>\n   <div class="').concat(x.footer,'"></div>\n   <div class="').concat(x["timer-progress-bar-container"],'">\n     <div class="').concat(x["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),he=()=>{de.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=_();return!!e&&(e.remove(),X([document.documentElement,document.body],[x["no-backdrop"],x["toast-shown"],x["has-column"]]),!0)})();if(ue())return void o("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=x.container,t&&J(n,x["no-transition"]),G(n,fe);const r="string"==typeof(a=e.target)?document.querySelector(a):a;var a;r.appendChild(n),(e=>{const t=k();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(_(),x.rtl)})(r),(()=>{const e=k(),t=ee(e,x.input),n=ee(e,x.file),r=e.querySelector(".".concat(x.range," input")),o=e.querySelector(".".concat(x.range," output")),a=ee(e,x.select),i=e.querySelector(".".concat(x.checkbox," input")),s=ee(e,x.textarea);t.oninput=he,n.onchange=he,a.onchange=he,i.onchange=he,s.oninput=he,r.oninput=()=>{he(),o.value=r.value},r.onchange=()=>{he(),r.nextSibling.value=r.value}})()},ge=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ye(e,t):e&&G(t,e)},ye=(e,t)=>{e.jquery?ve(t,e):G(t,e.toString())},ve=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},be=(()=>{if(ue())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1})(),we=(e,t)=>{const n=F(),r=P();t.showConfirmButton||t.showDenyButton||t.showCancelButton?ne(n):re(n),Y(n,t,"actions"),function(e,t,n){const r=T(),o=L(),a=R();Ee(r,"confirm",n),Ee(o,"deny",n),Ee(a,"cancel",n),function(e,t,n,r){if(!r.buttonsStyling)return X([e,t,n],x.styled);J([e,t,n],x.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,J(e,x["default-outline"])),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,J(t,x["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,J(n,x["default-outline"]))}(r,o,a,n),n.reverseButtons&&(n.toast?(e.insertBefore(a,r),e.insertBefore(o,r)):(e.insertBefore(a,t),e.insertBefore(o,t),e.insertBefore(r,t)))}(n,r,t),G(r,t.loaderHtml),Y(r,t,"loader")};function Ee(e,n,r){ae(e,r["show".concat(t(n),"Button")],"inline-block"),G(e,r["".concat(n,"ButtonText")]),e.setAttribute("aria-label",r["".concat(n,"ButtonAriaLabel")]),e.className=x[n],Y(e,r,"".concat(n,"Button")),J(e,r["".concat(n,"ButtonClass")])}const xe=(e,t)=>{const n=_();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],x["no-backdrop"])}(n,t.backdrop),function(e,t){t in x?J(e,x[t]):(r('The "position" parameter is not valid, defaulting to "center"'),J(e,x.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const n="grow-".concat(t);n in x&&J(e,x[n])}}(n,t.grow),Y(n,t,"container"))};var Ce={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const _e=["input","file","range","select","radio","checkbox","textarea"],Se=e=>{if(!De[e.input])return o('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),n=De[e.input](t,e);ne(n),setTimeout((()=>{$(n)}))},Oe=(e,t)=>{const n=Q(k(),e);if(n){(e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["type","value","style"].includes(n)||e.removeAttribute(n)}})(n);for(const e in t)n.setAttribute(e,t[e])}},ke=e=>{const t=Ae(e.input);e.customClass&&J(t,e.customClass.input)},Ne=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Me=(e,t,n)=>{if(n.inputLabel){e.id=x.input;const r=document.createElement("label"),o=x["input-label"];r.setAttribute("for",e.id),r.className=o,J(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},Ae=e=>{const t=x[e]?x[e]:x.input;return ee(k(),t)},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>("string"==typeof t.inputValue||"number"==typeof t.inputValue?e.value=t.inputValue:u(t.inputValue)||r('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t.inputValue,'"')),Me(e,e,t),Ne(e,t),e.type=t.input,e),De.file=(e,t)=>(Me(e,e,t),Ne(e,t),e),De.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,r.value=t.inputValue,Me(n,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");G(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Me(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const n=Q(k(),"checkbox");n.value="1",n.id=x.checkbox,n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return G(r,t.inputPlaceholder),e},De.textarea=(e,t)=>{e.value=t.inputValue,Ne(e,t),Me(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(k()).width);new MutationObserver((()=>{const n=e.offsetWidth+(r=e,parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight));var r;k().style.width=n>t?"".concat(n,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Ie=(e,t)=>{const n=A();Y(n,t,"htmlContainer"),t.html?(ge(t.html,n),ne(n,"block")):t.text?(n.textContent=t.text,ne(n,"block")):re(n),((e,t)=>{const n=k(),r=Ce.innerParams.get(e),o=!r||t.input!==r.input;_e.forEach((e=>{const r=x[e],a=ee(n,r);Oe(e,t.inputAttributes),a.className=r,o&&re(a)})),t.input&&(o&&Se(t),ke(t))})(e,t)},je=(e,t)=>{for(const n in C)t.icon!==n&&X(e,C[n]);J(e,C[t.icon]),Pe(e,t),Te(),Y(e,t,"icon")},Te=()=>{const e=k(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<n.length;e++)n[e].style.backgroundColor=t},Le=(e,t)=>{e.textContent="",t.iconHtml?G(e,Re(t.iconHtml)):"success"===t.icon?G(e,'\n  <div class="swal2-success-circular-line-left"></div>\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n  <div class="swal2-success-circular-line-right"></div>\n'):"error"===t.icon?G(e,'\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n'):G(e,Re({question:"?",warning:"!",info:"i"}[t.icon]))},Pe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])oe(e,n,"backgroundColor",t.iconColor);oe(e,".swal2-success-ring","borderColor",t.iconColor)}},Re=e=>'<div class="'.concat(x["icon-content"],'">').concat(e,"</div>"),Fe=(e,t)=>{const n=I();if(!t.progressSteps||0===t.progressSteps.length)return re(n);ne(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&r("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,r)=>{const o=(e=>{const t=document.createElement("li");return J(t,x["progress-step"]),G(t,e),t})(e);if(n.appendChild(o),r===t.currentProgressStep&&J(o,x["active-progress-step"]),r!==t.progressSteps.length-1){const e=(e=>{const t=document.createElement("li");return J(t,x["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t})(t);n.appendChild(e)}}))},Be=(e,t)=>{e.className="".concat(x.popup," ").concat(ie(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],x["toast-shown"]),J(e,x.toast)):J(e,x.modal),Y(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,x["icon-".concat(t.icon)])},ze=(e,t)=>{((e,t)=>{const n=_(),r=k();t.toast?(te(n,"width",t.width),r.style.width="100%",r.insertBefore(P(),N())):te(r,"width",t.width),te(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),re(j()),Be(r,t)})(0,t),xe(0,t),Fe(0,t),((e,t)=>{const n=Ce.innerParams.get(e),r=N();n&&t.icon===n.icon?(Le(r,t),je(r,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(C).indexOf(t.icon)?(o('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),re(r)):(ne(r),Le(r,t),je(r,t),J(r,t.showClass.icon)):re(r)})(e,t),((e,t)=>{const n=D();if(!t.imageUrl)return re(n);ne(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),te(n,"width",t.imageWidth),te(n,"height",t.imageHeight),n.className=x.image,Y(n,t,"image")})(0,t),((e,t)=>{const n=M();ae(n,t.title||t.titleText,"block"),t.title&&ge(t.title,n),t.titleText&&(n.innerText=t.titleText),Y(n,t,"title")})(0,t),((e,t)=>{const n=q();G(n,t.closeButtonHtml),Y(n,t,"closeButton"),ae(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Ie(e,t),we(0,t),((e,t)=>{const n=B();ae(n,t.footer),t.footer&&ge(t.footer,n),Y(n,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(k())},qe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ue=()=>{n(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},He=["swal-title","swal-html","swal-footer"],Ve=e=>{const t={};return n(e.querySelectorAll("swal-param")).forEach((e=>{Ze(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");"boolean"==typeof d[n]&&"false"===r&&(t[n]=!1),"object"==typeof d[n]&&(t[n]=JSON.parse(r))})),t},Ke=e=>{const r={};return n(e.querySelectorAll("swal-button")).forEach((e=>{Ze(e,["type","color","aria-label"]);const n=e.getAttribute("type");r["".concat(n,"ButtonText")]=e.innerHTML,r["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(r["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(r["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),r},Ge=e=>{const t={},n=e.querySelector("swal-image");return n&&(Ze(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},We=e=>{const t={},n=e.querySelector("swal-icon");return n&&(Ze(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Ye=e=>{const t={},r=e.querySelector("swal-input");r&&(Ze(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const o=e.querySelectorAll("swal-input-option");return o.length&&(t.inputOptions={},n(o).forEach((e=>{Ze(e,["value"]);const n=e.getAttribute("value"),r=e.innerHTML;t.inputOptions[n]=r}))),t},Qe=(e,t)=>{const n={};for(const r in t){const o=t[r],a=e.querySelector(o);a&&(Ze(a,[]),n[o.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},$e=e=>{const t=He.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);n(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&r("Unrecognized element <".concat(n,">"))}))},Ze=(e,t)=>{n(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&r(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))};var Je={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Xe(e){(function(e){e.inputValidator||Object.keys(Je).forEach((t=>{e.input===t&&(e.inputValidator=Je[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&r("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(r('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),me(e)}class et{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const tt=()=>{null===K.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(K.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(K.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=x["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),n=!!e.match(/WebKit/i);if(t&&n&&!e.match(/CriOS/i)){const e=44;k().scrollHeight>window.innerHeight-e&&(_().style.paddingBottom="".concat(e,"px"))}},rt=()=>{const e=_();let t;e.ontouchstart=e=>{t=ot(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},ot=e=>{const t=e.target,n=_();return!(at(e)||it(e)||t!==n&&(se(n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},at=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,st=e=>{const t=_(),r=k();"function"==typeof e.willOpen&&e.willOpen(r);const o=window.getComputedStyle(document.body).overflowY;dt(t,r,e),setTimeout((()=>{ct(t,r)}),10),H()&&(ut(t,e.scrollbarPadding,o),n(document.body.children).forEach((e=>{e===_()||e.contains(_())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),V()||de.previousActiveElement||(de.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(r))),X(t,x["no-transition"])},lt=e=>{const t=k();if(e.target!==t)return;const n=_();t.removeEventListener(be,lt),n.style.overflowY="auto"},ct=(e,t)=>{be&&le(t)?(e.style.overflowY="hidden",t.addEventListener(be,lt)):e.style.overflowY="auto"},ut=(e,t,n)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!W(document.body,x.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,x.iosfix),rt(),nt()}})(),t&&"hidden"!==n&&tt(),setTimeout((()=>{e.scrollTop=0}))},dt=(e,t,n)=>{J(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),ne(t,"grid"),setTimeout((()=>{J(t,n.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],x.shown),n.heightAuto&&n.backdrop&&!n.toast&&J([document.documentElement,document.body],x["height-auto"])},pt=e=>{let t=k();t||new On,t=k();const n=P();V()?re(N()):ft(t,e),ne(n),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},ft=(e,t)=>{const n=F(),r=P();!t&&ie(T())&&(t=T()),ne(n),t&&(re(t),r.setAttribute("data-button-to-replace",t.className)),r.parentNode.insertBefore(r,t),J([e,n],x.loading)},ht=e=>e.checked?1:0,mt=e=>e.checked?e.value:null,gt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,yt=(e,t)=>{const n=k(),r=e=>bt[t.input](n,wt(e),t);l(t.inputOptions)||u(t.inputOptions)?(pt(T()),c(t.inputOptions).then((t=>{e.hideLoading(),r(t)}))):"object"==typeof t.inputOptions?r(t.inputOptions):o("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},vt=(e,t)=>{const n=e.getInput();re(n),c(t.inputValue).then((r=>{n.value="number"===t.input?parseFloat(r)||0:"".concat(r),ne(n),n.focus(),e.hideLoading()})).catch((t=>{o("Error in inputValue promise: ".concat(t)),n.value="",ne(n),n.focus(),e.hideLoading()}))},bt={select:(e,t,n)=>{const r=ee(e,x.select),o=(e,t,r)=>{const o=document.createElement("option");o.value=r,G(o,t),o.selected=Et(r,n.inputValue),e.appendChild(o)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach((t=>o(e,t[1],t[0])))}else o(r,n,t)})),r.focus()},radio:(e,t,n)=>{const r=ee(e,x.radio);t.forEach((e=>{const t=e[0],o=e[1],a=document.createElement("input"),i=document.createElement("label");a.type="radio",a.name=x.radio,a.value=t,Et(t,n.inputValue)&&(a.checked=!0);const s=document.createElement("span");G(s,o),s.className=x.label,i.appendChild(a),i.appendChild(s),r.appendChild(i)}));const o=r.querySelectorAll("input");o.length&&o[0].focus()}},wt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,n)=>{let r=e;"object"==typeof r&&(r=wt(r)),t.push([n,r])})):Object.keys(e).forEach((n=>{let r=e[n];"object"==typeof r&&(r=wt(r)),t.push([n,r])})),t},Et=(e,t)=>t&&t.toString()===e.toString();function xt(){const e=Ce.innerParams.get(this);if(!e)return;const t=Ce.domCache.get(this);re(t.loader),V()?e.icon&&ne(N()):Ct(t),X([t.popup,t.actions],x.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Ct=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ne(t[0],"inline-block"):!ie(T())&&!ie(L())&&!ie(R())&&re(e.actions)};var _t={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>T()&&T().click(),Ot=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},kt=(e,t,n)=>{const r=U();if(r.length)return(t+=n)===r.length?t=0:-1===t&&(t=r.length-1),r[t].focus();k().focus()},Nt=["ArrowRight","ArrowDown"],Mt=["ArrowLeft","ArrowUp"],At=(e,t,n)=>{const r=Ce.innerParams.get(e);r&&(t.isComposing||229===t.keyCode||(r.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Dt(e,t,r):"Tab"===t.key?It(t,r):[...Nt,...Mt].includes(t.key)?jt(t.key):"Escape"===t.key&&Tt(t,r,n)))},Dt=(e,t,n)=>{if(s(n.allowEnterKey)&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;St(),t.preventDefault()}},It=(e,t)=>{const n=e.target,r=U();let o=-1;for(let e=0;e<r.length;e++)if(n===r[e]){o=e;break}e.shiftKey?kt(0,o,-1):kt(0,o,1),e.stopPropagation(),e.preventDefault()},jt=e=>{if(![T(),L(),R()].includes(document.activeElement))return;const t=Nt.includes(e)?"nextElementSibling":"previousElementSibling";let n=document.activeElement;for(let e=0;e<F().children.length;e++){if(n=n[t],!n)return;if(ie(n)&&n instanceof HTMLButtonElement)break}n instanceof HTMLButtonElement&&n.focus()},Tt=(e,t,n)=>{s(t.allowEscapeKey)&&(e.preventDefault(),n(qe.esc))};function Lt(e,t,n,r){V()?Ut(e,r):(pe(n).then((()=>Ut(e,r))),Ot(de)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),H()&&(null!==K.previousBodyPadding&&(document.body.style.paddingRight="".concat(K.previousBodyPadding,"px"),K.previousBodyPadding=null),(()=>{if(W(document.body,x.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,x.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ue()),X([document.documentElement,document.body],[x.shown,x["height-auto"],x["no-backdrop"],x["toast-shown"]])}function Pt(e){e=Bt(e);const t=_t.swalPromiseResolve.get(this),n=Rt(this);this.isAwaitingPromise()?e.isDismissed||(Ft(this),t(e)):n&&t(e)}const Rt=e=>{const t=k();if(!t)return!1;const n=Ce.innerParams.get(e);if(!n||W(t,n.hideClass.popup))return!1;X(t,n.showClass.popup),J(t,n.hideClass.popup);const r=_();return X(r,n.showClass.backdrop),J(r,n.hideClass.backdrop),zt(e,t,n),!0};const Ft=e=>{e.isAwaitingPromise()&&(Ce.awaitingPromise.delete(e),Ce.innerParams.get(e)||e._destroy())},Bt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),zt=(e,t,n)=>{const r=_(),o=be&&le(t);"function"==typeof n.willClose&&n.willClose(t),o?qt(e,t,r,n.returnFocus,n.didClose):Lt(e,r,n.returnFocus,n.didClose)},qt=(e,t,n,r,o)=>{de.swalCloseEventFinishedCallback=Lt.bind(null,e,n,r,o),t.addEventListener(be,(function(e){e.target===t&&(de.swalCloseEventFinishedCallback(),delete de.swalCloseEventFinishedCallback)}))},Ut=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Ht(e,t,n){const r=Ce.domCache.get(e);t.forEach((e=>{r[e].disabled=n}))}function Vt(e,t){if(!e)return!1;if("radio"===e.type){const n=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e<n.length;e++)n[e].disabled=t}else e.disabled=t}const Kt=e=>{const t={};return Object.keys(e).forEach((n=>{g(n)?t[n]=e[n]:r('Invalid parameter to update: "'.concat(n,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))})),t};const Gt=e=>{Wt(e),delete e.params,delete de.keydownHandler,delete de.keydownTarget,delete de.currentInstance},Wt=e=>{e.isAwaitingPromise()?(Yt(Ce,e),Ce.awaitingPromise.set(e,!0)):(Yt(_t,e),Yt(Ce,e))},Yt=(e,t)=>{for(const n in e)e[n].delete(t)};var Qt=Object.freeze({hideLoading:xt,disableLoading:xt,getInput:function(e){const t=Ce.innerParams.get(e||this),n=Ce.domCache.get(e||this);return n?Q(n.popup,t.input):null},close:Pt,isAwaitingPromise:function(){return!!Ce.awaitingPromise.get(this)},rejectPromise:function(e){const t=_t.swalPromiseReject.get(this);Ft(this),t&&t(e)},handleAwaitingPromise:Ft,closePopup:Pt,closeModal:Pt,closeToast:Pt,enableButtons:function(){Ht(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Ht(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Vt(this.getInput(),!1)},disableInput:function(){return Vt(this.getInput(),!0)},showValidationMessage:function(e){const t=Ce.domCache.get(this),n=Ce.innerParams.get(this);G(t.validationMessage,e),t.validationMessage.className=x["validation-message"],n.customClass&&n.customClass.validationMessage&&J(t.validationMessage,n.customClass.validationMessage),ne(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",x["validation-message"]),$(r),J(r,x.inputerror))},resetValidationMessage:function(){const e=Ce.domCache.get(this);e.validationMessage&&re(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,x.inputerror))},getProgressSteps:function(){return Ce.domCache.get(this).progressSteps},update:function(e){const t=k(),n=Ce.innerParams.get(this);if(!t||W(t,n.hideClass.popup))return r("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=Kt(e),a=Object.assign({},n,o);ze(this,a),Ce.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=Ce.domCache.get(this),t=Ce.innerParams.get(this);t?(e.popup&&de.swalCloseEventFinishedCallback&&(de.swalCloseEventFinishedCallback(),delete de.swalCloseEventFinishedCallback),de.deferDisposalTimer&&(clearTimeout(de.deferDisposalTimer),delete de.deferDisposalTimer),"function"==typeof t.didDestroy&&t.didDestroy(),Gt(this)):Wt(this)}});const $t=(e,n)=>{const r=Ce.innerParams.get(e);if(!r.input)return o('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(n)));const a=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return ht(n);case"radio":return mt(n);case"file":return gt(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,r);r.inputValidator?Zt(e,a,n):e.getInput().checkValidity()?"deny"===n?Jt(e,a):tn(e,a):(e.enableButtons(),e.showValidationMessage(r.validationMessage))},Zt=(e,t,n)=>{const r=Ce.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(r.inputValidator(t,r.validationMessage)))).then((r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?Jt(e,t):tn(e,t)}))},Jt=(e,t)=>{const n=Ce.innerParams.get(e||void 0);n.showLoaderOnDeny&&pt(L()),n.preDeny?(Ce.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),Ft(e)):e.closePopup({isDenied:!0,value:void 0===n?t:n})})).catch((t=>en(e||void 0,t)))):e.closePopup({isDenied:!0,value:t})},Xt=(e,t)=>{e.closePopup({isConfirmed:!0,value:t})},en=(e,t)=>{e.rejectPromise(t)},tn=(e,t)=>{const n=Ce.innerParams.get(e||void 0);n.showLoaderOnConfirm&&pt(),n.preConfirm?(e.resetValidationMessage(),Ce.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(n.preConfirm(t,n.validationMessage)))).then((n=>{ie(j())||!1===n?(e.hideLoading(),Ft(e)):Xt(e,void 0===n?t:n)})).catch((t=>en(e||void 0,t)))):Xt(e,t)},nn=(e,t,n)=>{t.popup.onclick=()=>{const t=Ce.innerParams.get(e);t&&(rn(t)||t.timer||t.input)||n(qe.close)}},rn=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let on=!1;const an=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(on=!0)}}},sn=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(on=!0)}}},ln=(e,t,n)=>{t.container.onclick=r=>{const o=Ce.innerParams.get(e);on?on=!1:r.target===t.container&&s(o.allowOutsideClick)&&n(qe.backdrop)}},cn=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const un=()=>{if(de.timeout)return(()=>{const e=z(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(n,"%")})(),de.timeout.stop()},dn=()=>{if(de.timeout){const e=de.timeout.start();return ce(e),e}};let pn=!1;const fn={};const hn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in fn){const n=t.getAttribute(e);if(n)return void fn[e].fire({template:n})}};var mn=Object.freeze({isValidParameter:m,isUpdatableParameter:g,isDeprecatedParameter:y,argsToParams:e=>{const t={};return"object"!=typeof e[0]||cn(e[0])?["title","html","icon"].forEach(((n,r)=>{const a=e[r];"string"==typeof a||cn(a)?t[n]=a:void 0!==a&&o("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(typeof a))})):Object.assign(t,e[0]),t},isVisible:()=>ie(k()),clickConfirm:St,clickDeny:()=>L()&&L().click(),clickCancel:()=>R()&&R().click(),getContainer:_,getPopup:k,getTitle:M,getHtmlContainer:A,getImage:D,getIcon:N,getInputLabel:()=>O(x["input-label"]),getCloseButton:q,getActions:F,getConfirmButton:T,getDenyButton:L,getCancelButton:R,getLoader:P,getFooter:B,getTimerProgressBar:z,getFocusableElements:U,getValidationMessage:j,isLoading:()=>k().hasAttribute("data-loading"),fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)},mixin:function(e){return class extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}},showLoading:pt,enableLoading:pt,getTimerLeft:()=>de.timeout&&de.timeout.getTimerLeft(),stopTimer:un,resumeTimer:dn,toggleTimer:()=>{const e=de.timeout;return e&&(e.running?un():dn())},increaseTimer:e=>{if(de.timeout){const t=de.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>de.timeout&&de.timeout.isRunning(),bindClickHandler:function(){fn[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,pn||(document.body.addEventListener("click",hn),pn=!0)}});let gn;class yn{constructor(){if("undefined"==typeof window)return;gn=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);Ce.promise.set(this,o)}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&r('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)v(t),e.toast&&b(t),w(t)})(Object.assign({},t,e)),de.currentInstance&&(de.currentInstance._destroy(),H()&&Ue()),de.currentInstance=this;const n=bn(e,t);Xe(n),Object.freeze(n),de.timeout&&(de.timeout.stop(),delete de.timeout),clearTimeout(de.restoreFocusTimeout);const o=wn(this);return ze(this,n),Ce.innerParams.set(this,n),vn(this,o,n)}then(e){return Ce.promise.get(this).then(e)}finally(e){return Ce.promise.get(this).finally(e)}}const vn=(e,t,n)=>new Promise(((r,o)=>{const a=t=>{e.closePopup({isDismissed:!0,dismiss:t})};_t.swalPromiseResolve.set(e,r),_t.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>(e=>{const t=Ce.innerParams.get(e);e.disableButtons(),t.input?$t(e,"confirm"):tn(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=Ce.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?$t(e,"deny"):Jt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(qe.cancel)})(e,a),t.closeButton.onclick=()=>a(qe.close),((e,t,n)=>{Ce.innerParams.get(e).toast?nn(e,t,n):(an(t),sn(t),ln(e,t,n))})(e,t,a),((e,t,n,r)=>{Ot(t),n.toast||(t.keydownHandler=t=>At(e,t,r),t.keydownTarget=n.keydownListenerCapture?window:k(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,de,n,a),((e,t)=>{"select"===t.input||"radio"===t.input?yt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(l(t.inputValue)||u(t.inputValue))&&(pt(T()),vt(e,t))})(e,n),st(n),En(de,n,a),xn(t,n),setTimeout((()=>{t.container.scrollTop=0}))})),bn=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return $e(n),Object.assign(Ve(n),Ke(n),Ge(n),We(n),Ye(n),Qe(n,He))})(e),r=Object.assign({},d,t,n,e);return r.showClass=Object.assign({},d.showClass,r.showClass),r.hideClass=Object.assign({},d.hideClass,r.hideClass),r},wn=e=>{const t={popup:k(),container:_(),actions:F(),confirmButton:T(),denyButton:L(),cancelButton:R(),loader:P(),closeButton:q(),validationMessage:j(),progressSteps:I()};return Ce.domCache.set(e,t),t},En=(e,t,n)=>{const r=z();re(r),t.timer&&(e.timeout=new et((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ne(r),Y(r,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},xn=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(Cn(e,t)||kt(0,-1,1)):Sn()},Cn=(e,t)=>t.focusDeny&&ie(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ie(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ie(e.confirmButton)||(e.confirmButton.focus(),0)),Sn=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Object.assign(yn.prototype,Qt),Object.assign(yn,mn),Object.keys(Qt).forEach((e=>{yn[e]=function(){if(gn)return gn[e](...arguments)}})),yn.DismissReason=qe,yn.version="11.4.8";const On=yn;return On.default=On,On}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},4599:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t;throw new Error(n?o+": "+n:o)}}},5664:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},2603:function(e,t,n){var r;!function(o,a){"use strict";var i="function",s="undefined",l="object",c="string",u="major",d="model",p="name",f="type",h="vendor",m="version",g="architecture",y="console",v="mobile",b="tablet",w="smarttv",E="wearable",x="embedded",C="Amazon",_="Apple",S="ASUS",O="BlackBerry",k="Browser",N="Chrome",M="Firefox",A="Google",D="Huawei",I="LG",j="Microsoft",T="Motorola",L="Opera",P="Samsung",R="Sharp",F="Sony",B="Xiaomi",z="Zebra",q="Facebook",U="Chromium OS",H="Mac OS",V=" Browser",K=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},G=function(e,t){return typeof e===c&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},Y=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},Q=function(e,t){for(var n,r,o,s,c,u,d=0;d<t.length&&!c;){var p=t[d],f=t[d+1];for(n=r=0;n<p.length&&!c&&p[n];)if(c=p[n++].exec(e))for(o=0;o<f.length;o++)u=c[++r],typeof(s=f[o])===l&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):a:this[s[0]]=u?s[1].call(this,u,s[2]):a:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):a):this[s]=u||a;d+=2}},$=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(G(t[n][r],e))return"?"===n?a:n}else if(G(t[n],e))return"?"===n?a:n;return t.hasOwnProperty("*")?t["*"]:e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,m],[/opios[\/ ]+([\w\.]+)/i],[m,[p,L+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[p,L+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[p,L]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[p,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[p,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[p,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+k],m],[/\bfocus\/([\w\.]+)/i],[m,[p,M+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[p,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[p,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[p,"MIUI "+k]],[/fxios\/([-\w\.]+)/i],[m,[p,M]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360"+V]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1"+V],m],[/samsungbrowser\/([\w\.]+)/i],[m,[p,P+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],m],[/metasr[\/ ]?([\d\.]+)/i],[m,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,q],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[p,N+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,N+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[p,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[m,$,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],m],[/(wolvic)\/([\w\.]+)/i],[p,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[p,M+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[p,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[h,P],[f,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,P],[f,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,_],[f,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,_],[f,b]],[/(macintosh);/i],[d,[h,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,R],[f,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[h,D],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,D],[f,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[d,/_/g," "],[h,B],[f,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[h,B],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,"OPPO"],[f,v]],[/\b(opd2\d{3}a?) bui/i],[d,[h,"OPPO"],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[f,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[f,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[h,T],[f,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,T],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,I],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,I],[f,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[h,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[h,"Nokia"],[f,v]],[/(pixel c)\b/i],[d,[h,A],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,A],[f,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,F],[f,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,F],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,"OnePlus"],[f,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,C],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,C],[f,v]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,O],[f,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,S],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,S],[f,v]],[/(nexus 9)/i],[d,[h,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[f,v]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[h,"TCL"],[f,b]],[/(itel) ((\w+))/i],[[h,W],d,[f,$,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[f,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[h,"Ulefone"],[f,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[h,"Nothing"],[f,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,d,[f,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,d,[f,b]],[/(surface duo)/i],[d,[h,j],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[f,v]],[/(u304aa)/i],[d,[h,"AT&T"],[f,v]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[f,v]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[f,b]],[/\b(k88) b/i],[d,[h,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[f,v]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[f,v]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[f,b]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[f,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[f,v]],[/\b(ph-1) /i],[d,[h,"Essential"],[f,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[d,[h,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[h,d,[f,v]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,j],[f,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,z],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,z],[f,v]],[/smart-tv.+(samsung)/i],[h,[f,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,P],[f,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,I],[f,w]],[/(apple) ?tv/i],[h,[d,_+" TV"],[f,w]],[/crkey/i],[[d,N+"cast"],[h,A],[f,w]],[/droid.+aft(\w+)( bui|\))/i],[d,[h,C],[f,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,R],[f,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,F],[f,w]],[/(mitv-\w{5}) bui/i],[d,[h,B],[f,w]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[f,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,Y],[d,Y],[f,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[f,y]],[/droid.+; (shield) bui/i],[d,[h,"Nvidia"],[f,y]],[/(playstation [345portablevi]+)/i],[d,[h,F],[f,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,j],[f,y]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[d,[h,P],[f,E]],[/((pebble))app/i],[h,d,[f,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,_],[f,E]],[/droid.+; (glass) \d/i],[d,[h,A],[f,E]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,z],[f,E]],[/(quest( \d| pro)?)/i],[d,[h,q],[f,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,x]],[/(aeobc)\b/i],[d,[h,C],[f,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[f,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,v]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[m,$,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,$,Z],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,H],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,m],[/\(bb(10);/i],[m,[p,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[p,M+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[p,N+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,U],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,m],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,m]]},X=function(e,t){if(typeof e===l&&(t=e,e=a),!(this instanceof X))return new X(e,t).getResult();var n=typeof o!==s&&o.navigator?o.navigator:a,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:a,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,t):J,E=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=a,t[m]=a,Q.call(t,r,w.browser),t[u]=typeof(e=t[m])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:a,E&&n&&n.brave&&typeof n.brave.isBrave==i&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[g]=a,Q.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[h]=a,e[d]=a,e[f]=a,Q.call(e,r,w.device),E&&!e[f]&&y&&y.mobile&&(e[f]=v),E&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[p]=a,e[m]=a,Q.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[p]=a,e[m]=a,Q.call(e,r,w.os),E&&!e[p]&&y&&y.platform&&"Unknown"!=y.platform&&(e[p]=y.platform.replace(/chrome os/i,U).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?Y(e,500):e,this},this.setUA(r),this};X.VERSION="0.7.39",X.BROWSER=K([p,m,u]),X.CPU=K([g]),X.DEVICE=K([d,h,f,y,v,w,b,E,x]),X.ENGINE=X.OS=K([p,m]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?(r=function(){return X}.call(t,n,t,e))===a||(e.exports=r):typeof o!==s&&(o.UAParser=X);var ee=typeof o!==s&&(o.jQuery||o.Zepto);if(ee&&!ee.ua){var te=new X;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"==typeof window?window:this)},3327:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(1609).useLayoutEffect},8880:(e,t,n)=>{"use strict";var r=n(1609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},9835:(e,t,n)=>{"use strict";e.exports=n(8880)},3730:e=>{"use strict";e.exports=function(){}},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},1455:e=>{"use strict";e.exports=window.wp.apiFetch},6427:e=>{"use strict";e.exports=window.wp.components},2619:e=>{"use strict";e.exports=window.wp.hooks},8537:e=>{"use strict";e.exports=window.wp.htmlEntities},7723:e=>{"use strict";e.exports=window.wp.i18n},8954:()=>{},7500:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},2663:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},531:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},2367:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},9755:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(7870);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4296:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o=function(){return!!e})()}n.d(t,{A:()=>s});var a=n(9826),i=n(531);function s(e){var t=o();return function(){var n,o=r(e);if(t){var s=r(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==(0,a.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}(this,n)}}},3205:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7870);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},5890:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},5007:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(4652);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},6313:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3205);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},2511:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5045);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},5045:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},4652:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},9086:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2410);function o(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,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||(0,r.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.")}()}},7870:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9826);function o(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},9826:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},2410:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2663);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},2881:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(1967),o=n(9275);class a extends r.Q{constructor(){super(),this.setup=e=>{if(!o.S$&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}const i=new a},2794:(e,t,n)=>{"use strict";function r(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,a,i,s;const l=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(a=r.meta)?void 0:a.fetchMore,u=null==c?void 0:c.pageParam,d="forward"===(null==c?void 0:c.direction),p="backward"===(null==c?void 0:c.direction),f=(null==(i=e.state.data)?void 0:i.pages)||[],h=(null==(s=e.state.data)?void 0:s.pageParams)||[];let m=h,g=!1;const y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(m=r?[t,...m]:[...m,t],r?[n,...e]:[...e,n]),b=(t,n,r,o)=>{if(g)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{g=!0})),e.signal}});const s=y(a);return Promise.resolve(s).then((e=>v(t,r,e,o)))};let w;if(f.length)if(d){const t=void 0!==u,n=t?u:o(e.options,f);w=b(f,t,n)}else if(p){const t=void 0!==u,n=t?u:(E=e.options,x=f,null==E.getPreviousPageParam?void 0:E.getPreviousPageParam(x[0],x));w=b(f,t,n,!0)}else{m=[];const t=void 0===e.options.getNextPageParam;w=l&&f[0]&&!l(f[0],0,f)?Promise.resolve(v([],h[0],f[0])):b([],t,h[0]);for(let n=1;n<f.length;n++)w=w.then((r=>{if(!l||!f[n]||l(f[n],n,f)){const a=t?h[n]:o(e.options,r);return b(r,t,a)}return Promise.resolve(v(r,h[n],f[n]))}))}else w=b([]);var E,x;return w.then((e=>({pages:e,pageParams:m})))}}}}function o(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}n.d(t,{PL:()=>r})},1892:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});const r=console},6981:(e,t,n)=>{"use strict";n.d(t,{$:()=>l,s:()=>s});var r=n(1892),o=n(9868),a=n(903),i=n(1091);class s extends a.k{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||r.U,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=(0,i.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,a,s,l,c,u;if(!t){var d,p,f,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(d=(p=this.mutationCache.config).onMutate)?void 0:d.call(p,this.state.variables,this));const e=await(null==(f=(h=this.options).onMutate)?void 0:f.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const i=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,i,this.state.variables,this.state.context,this)),await(null==(o=(a=this.options).onSuccess)?void 0:o.call(a,i,this.state.variables,this.state.context)),await(null==(s=(l=this.mutationCache.config).onSettled)?void 0:s.call(l,i,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,i,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:i}),i}catch(e){try{var m,g,y,v,b,w,E,x;throw await(null==(m=(g=this.mutationCache.config).onError)?void 0:m.call(g,e,this.state.variables,this.state.context,this)),await(null==(y=(v=this.options).onError)?void 0:y.call(v,e,this.state.variables,this.state.context)),await(null==(b=(w=this.mutationCache.config).onSettled)?void 0:b.call(w,void 0,e,this.state.variables,this.state.context,this)),await(null==(E=(x=this.options).onSettled)?void 0:E.call(x,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,i.v_)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),o.j.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},7445:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(9868),o=n(6981),a=n(9275),i=n(1967);class s extends i.Q{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new o.s({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){r.j.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>(0,a.nJ)(e,t)))}findAll(e){return this.mutations.filter((t=>(0,a.nJ)(e,t)))}notify(e){r.j.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return r.j.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(a.lQ)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}},9868:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(9275);const o=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):(0,r.G6)((()=>{n(o)}))};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&(0,r.G6)((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))})()}return i},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}()},1358:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var r=n(1967),o=n(9275);const a=["online","offline"];class i extends r.Q{constructor(){super(),this.setup=e=>{if(!o.S$&&window.addEventListener){const t=()=>e();return a.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{a.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}const s=new i},5012:(e,t,n)=>{"use strict";n.d(t,{X:()=>l});var r=n(9275),o=n(1892),a=n(9868),i=n(1091),s=n(903);class l extends s.k{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||o.U,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=(0,r.pl)(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,r.j3)(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const s=(0,r.jY)(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};c(l);const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var d;c(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=u.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(d=u.fetchOptions)?void 0:d.meta});const p=e=>{var t,n,r,o;(0,i.wm)(e)&&e.silent||this.dispatch({type:"error",error:e}),(0,i.wm)(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,i.II)({fn:u.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):p(new Error(this.queryHash+" data is undefined"))},onError:p,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:(0,i.v_)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return(0,i.wm)(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),a.j.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}},8002:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(9275),o=n(5012),a=n(9868),i=n(1967);class s extends i.Q{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var a;const i=t.queryKey,s=null!=(a=t.queryHash)?a:(0,r.F$)(i,t);let l=this.get(s);return l||(l=new o.X({cache:this,logger:e.getLogger(),queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(l)),l}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){a.j.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=(0,r.b_)(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>(0,r.MK)(n,e)))}findAll(e,t){const[n]=(0,r.b_)(e,t);return Object.keys(n).length>0?this.queries.filter((e=>(0,r.MK)(n,e))):this.queries}notify(e){a.j.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){a.j.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){a.j.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}},5849:(e,t,n)=>{"use strict";n.d(t,{E:()=>d});var r=n(9275),o=n(8002),a=n(7445),i=n(2881),s=n(1358),l=n(9868),c=n(2794),u=n(1892);class d{constructor(e={}){this.queryCache=e.queryCache||new o.$,this.mutationCache=e.mutationCache||new a.q,this.logger=e.logger||u.U,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=i.m.subscribe((()=>{i.m.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=s.t.subscribe((()=>{s.t.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=(0,r.b_)(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=(0,r.vh)(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=null==o?void 0:o.state.data,i=(0,r.Zw)(t,a);if(void 0===i)return;const s=(0,r.vh)(e),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return l.j.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=(0,r.b_)(e,t),o=this.queryCache;l.j.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=(0,r.b_)(e,t,n),i=this.queryCache,s={type:"active",...o};return l.j.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(s,a))))}cancelQueries(e,t,n){const[o,a={}]=(0,r.b_)(e,t,n);void 0===a.revert&&(a.revert=!0);const i=l.j.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(r.lQ).catch(r.lQ)}invalidateQueries(e,t,n){const[o,a]=(0,r.b_)(e,t,n);return l.j.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=(0,r.b_)(e,t,n),i=l.j.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let s=Promise.all(i).then(r.lQ);return null!=a&&a.throwOnError||(s=s.catch(r.lQ)),s}fetchQuery(e,t,n){const o=(0,r.vh)(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(r.lQ).catch(r.lQ)}fetchInfiniteQuery(e,t,n){const o=(0,r.vh)(e,t,n);return o.behavior=(0,c.PL)(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(r.lQ).catch(r.lQ)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>(0,r.Od)(e)===(0,r.Od)(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>(0,r.Cp)(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>(0,r.Od)(e)===(0,r.Od)(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>(0,r.Cp)(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,r.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}},903:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(9275);class o{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.gn)(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:r.S$?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},1091:(e,t,n)=>{"use strict";n.d(t,{II:()=>u,v_:()=>s,wm:()=>c});var r=n(2881),o=n(1358),a=n(9275);function i(e){return Math.min(1e3*2**e,3e4)}function s(e){return"online"!==(null!=e?e:"online")||o.t.isOnline()}class l{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function c(e){return e instanceof l}function u(e){let t,n,c,u=!1,d=0,p=!1;const f=new Promise(((e,t)=>{n=e,c=t})),h=()=>!r.m.isFocused()||"always"!==e.networkMode&&!o.t.isOnline(),m=r=>{p||(p=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},g=n=>{p||(p=!0,null==e.onError||e.onError(n),null==t||t(),c(n))},y=()=>new Promise((n=>{t=e=>{const t=p||!h();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,p||null==e.onContinue||e.onContinue()})),v=()=>{if(p)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch((t=>{var n,r;if(p)return;const o=null!=(n=e.retry)?n:3,s=null!=(r=e.retryDelay)?r:i,l="function"==typeof s?s(d,t):s,c=!0===o||"number"==typeof o&&d<o||"function"==typeof o&&o(d,t);!u&&c?(d++,null==e.onFail||e.onFail(d,t),(0,a.yy)(l).then((()=>{if(h())return y()})).then((()=>{u?g(t):v()}))):g(t)}))};return s(e.networkMode)?v():y().then(v),{promise:f,cancel:t=>{p||(g(new l(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?f:Promise.resolve(),cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1}}}},1967:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});class r{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},9275:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>m,F$:()=>f,G6:()=>_,GR:()=>c,MK:()=>d,Od:()=>h,S$:()=>r,Zw:()=>a,b_:()=>u,f8:()=>v,gn:()=>i,j3:()=>s,jY:()=>S,lQ:()=>o,nJ:()=>p,pl:()=>O,vh:()=>l,yy:()=>C});const r="undefined"==typeof window||"Deno"in window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function i(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return x(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function c(e,t,n){return x(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function u(e,t,n){return x(e)?[{...t,queryKey:e},n]:[e||{},t]}function d(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(x(i))if(r){if(t.queryHash!==f(i,t.options))return!1}else if(!m(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||void 0!==o&&o!==t.state.fetchStatus||a&&!a(t))}function p(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(x(a)){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(a))return!1}else if(!m(t.options.mutationKey,a))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||o&&!o(t))}function f(e,t){return((null==t?void 0:t.queryKeyHashFn)||h)(e)}function h(e){return JSON.stringify(e,((e,t)=>w(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function m(e,t){return g(e,t)}function g(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!g(e[n],t[n])))}function y(e,t){if(e===t)return e;const n=b(e)&&b(t);if(n||w(e)&&w(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{};let s=0;for(let r=0;r<a;r++){const a=n?r:o[r];i[a]=y(e[a],t[a]),i[a]===e[a]&&s++}return r===a&&s===r?e:i}return t}function v(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!E(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!E(n)&&!!n.hasOwnProperty("isPrototypeOf")}function E(e){return"[object Object]"===Object.prototype.toString.call(e)}function x(e){return Array.isArray(e)}function C(e){return new Promise((t=>{setTimeout(t,e)}))}function _(e){C(0).then(e)}function S(){if("function"==typeof AbortController)return new AbortController}function O(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?y(e,t):t}},8401:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>l,jE:()=>s});var r=n(1609);const o=r.createContext(void 0),a=r.createContext(!1);function i(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=o),window.ReactQueryClientContext):o)}const s=({context:e}={})=>{const t=r.useContext(i(e,r.useContext(a)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t,context:n,contextSharing:o=!1})=>{r.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const s=i(n,o);return r.createElement(a.Provider,{value:!n&&o},r.createElement(s.Provider,{value:e},t))}},7867:(e,t,n)=>{"use strict";n.d(t,{I:()=>k});var r=n(9275),o=n(9868),a=n(2881),i=n(1967),s=n(1091);class l extends i.Q{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),c(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,r.f8)(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&d(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!a||this.currentQuery===o&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){return!n.keepPreviousData&&(void 0!==n.placeholderData?t.isPlaceholderData:!(0,r.f8)(e.getCurrentResult(),t))}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(r.lQ)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),r.S$||this.currentResult.isStale||!(0,r.gn)(this.options.staleTime))return;const e=(0,r.j3)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!r.S$&&!1!==this.options.enabled&&(0,r.gn)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||a.m.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,a=this.currentResult,i=this.currentResultState,l=this.currentResultOptions,u=e!==n,f=u?e.state:this.currentQueryInitialState,h=u?this.currentResult:this.previousQueryResult,{state:m}=e;let g,{dataUpdatedAt:y,error:v,errorUpdatedAt:b,fetchStatus:w,status:E}=m,x=!1,C=!1;if(t._optimisticResults){const r=this.hasListeners(),a=!r&&c(e,t),i=r&&d(e,n,t,o);(a||i)&&(w=(0,s.v_)(e.options.networkMode)?"fetching":"paused",y||(E="loading")),"isRestoring"===t._optimisticResults&&(w="idle")}if(t.keepPreviousData&&!m.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==E)g=h.data,y=h.dataUpdatedAt,E=h.status,x=!0;else if(t.select&&void 0!==m.data)if(a&&m.data===(null==i?void 0:i.data)&&t.select===this.selectFn)g=this.selectResult;else try{this.selectFn=t.select,g=t.select(m.data),g=(0,r.pl)(null==a?void 0:a.data,g,t),this.selectResult=g,this.selectError=null}catch(e){this.selectError=e}else g=m.data;if(void 0!==t.placeholderData&&void 0===g&&"loading"===E){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==l?void 0:l.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(E="success",g=(0,r.pl)(null==a?void 0:a.data,e,t),C=!0)}this.selectError&&(v=this.selectError,g=this.selectResult,b=Date.now(),E="error");const _="fetching"===w,S="loading"===E,O="error"===E;return{status:E,fetchStatus:w,isLoading:S,isSuccess:"success"===E,isError:O,isInitialLoading:S&&_,data:g,dataUpdatedAt:y,error:v,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:_,isRefetching:_&&!S,isLoadingError:O&&0===m.dataUpdatedAt,isPaused:"paused"===w,isPlaceholderData:C,isPreviousData:x,isRefetchError:O&&0!==m.dataUpdatedAt,isStale:p(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,r.f8)(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,s.wm)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){o.j.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var a,i,s,l;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function c(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&u(e,t,t.refetchOnMount)}function u(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&p(e,t)}return!1}function d(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,t){return e.isStaleByTime(t.staleTime)}var f=n(1609),h=n(4981);const m=f.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),g=()=>f.useContext(m);var y=n(8401);const v=f.createContext(!1),b=()=>f.useContext(v);v.Provider;var w=n(1272);const E=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},x=e=>{f.useEffect((()=>{e.clearReset()}),[e])},C=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&(0,w.G)(n,[e.error,r]),_=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},S=(e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n),O=(e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}));function k(e,t,n){return function(e,t){const n=(0,y.jE)({context:e.context}),r=b(),a=g(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=o.j.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=o.j.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=o.j.batchCalls(i.onSettled)),_(i),E(i,a),x(a);const[s]=f.useState((()=>new t(n,i))),l=s.getOptimisticResult(i);if((0,h.r)(f.useCallback((e=>{const t=r?()=>{}:s.subscribe(o.j.batchCalls(e));return s.updateResult(),t}),[s,r]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),f.useEffect((()=>{s.setOptions(i,{listeners:!1})}),[i,s]),S(i,l,r))throw O(i,s,a);if(C({result:l,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:s.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:s.trackResult(l)}((0,r.vh)(e,t,n),l)}},4981:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});const r=n(9835).useSyncExternalStore},1272:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(...t):!!e}n.d(t,{G:()=>r})},1890:(e,t,n)=>{"use strict";n.d(t,{N9:()=>_,oR:()=>T});var r=n(1609),o=n(8835);const a=e=>"number"==typeof e&&!isNaN(e),i=e=>"string"==typeof e,s=e=>"function"==typeof e,l=e=>i(e)||s(e)?e:null,c=e=>(0,r.isValidElement)(e)||i(e)||s(e)||a(e);function u(e){let{enter:t,exit:n,appendPosition:o=!1,collapse:a=!0,collapseDuration:i=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:p}=e;const f=o?`${t}--${l}`:t,h=o?`${n}--${l}`:n,m=(0,r.useRef)(0);return(0,r.useLayoutEffect)((()=>{const e=d.current,t=f.split(" "),n=r=>{r.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,r.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),a?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,u,i):u()};p||(c?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[p]),r.createElement(r.Fragment,null,s)}}function d(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const p={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},f=e=>{let{theme:t,type:n,...o}=e;return r.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},h={info:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return r.createElement("div",{className:"Toastify__spinner"})}};function m(e){const[,t]=(0,r.useReducer)((e=>e+1),0),[n,o]=(0,r.useState)([]),u=(0,r.useRef)(null),f=(0,r.useRef)(new Map).current,m=e=>-1!==n.indexOf(e),g=(0,r.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:m,getToast:e=>f.get(e)}).current;function y(e){let{containerId:t}=e;const{limit:n}=g.props;!n||t&&g.containerId!==t||(g.count-=g.queue.length,g.queue=[])}function v(e){o((t=>null==e?[]:t.filter((t=>t!==e))))}function b(){const{toastContent:e,toastProps:t,staleId:n}=g.queue.shift();E(e,t,n)}function w(e,n){let{delay:o,staleId:m,...y}=n;if(!c(e)||function(e){return!u.current||g.props.enableMultiContainer&&e.containerId!==g.props.containerId||f.has(e.toastId)&&null==e.updateId}(y))return;const{toastId:w,updateId:x,data:C}=y,{props:_}=g,S=()=>v(w),O=null==x;O&&g.count++;const k={..._,style:_.toastStyle,key:g.toastKey++,...Object.fromEntries(Object.entries(y).filter((e=>{let[t,n]=e;return null!=n}))),toastId:w,updateId:x,data:C,closeToast:S,isIn:!1,className:l(y.className||_.toastClassName),bodyClassName:l(y.bodyClassName||_.bodyClassName),progressClassName:l(y.progressClassName||_.progressClassName),autoClose:!y.isLoading&&(N=y.autoClose,M=_.autoClose,!1===N||a(N)&&N>0?N:M),deleteToast(){const e=d(f.get(w),"removed");f.delete(w),p.emit(4,e);const n=g.queue.length;if(g.count=null==w?g.count-g.displayedToast:g.count-1,g.count<0&&(g.count=0),n>0){const e=null==w?g.props.limit:1;if(1===n||1===e)g.displayedToast++,b();else{const t=e>n?n:e;g.displayedToast=t;for(let e=0;e<t;e++)b()}}else t()}};var N,M;k.iconOut=function(e){let{theme:t,type:n,isLoading:o,icon:l}=e,c=null;const u={theme:t,type:n};return!1===l||(s(l)?c=l(u):(0,r.isValidElement)(l)?c=(0,r.cloneElement)(l,u):i(l)||a(l)?c=l:o?c=h.spinner():(e=>e in h)(n)&&(c=h[n](u))),c}(k),s(y.onOpen)&&(k.onOpen=y.onOpen),s(y.onClose)&&(k.onClose=y.onClose),k.closeButton=_.closeButton,!1===y.closeButton||c(y.closeButton)?k.closeButton=y.closeButton:!0===y.closeButton&&(k.closeButton=!c(_.closeButton)||_.closeButton);let A=e;(0,r.isValidElement)(e)&&!i(e.type)?A=(0,r.cloneElement)(e,{closeToast:S,toastProps:k,data:C}):s(e)&&(A=e({closeToast:S,toastProps:k,data:C})),_.limit&&_.limit>0&&g.count>_.limit&&O?g.queue.push({toastContent:A,toastProps:k,staleId:m}):a(o)?setTimeout((()=>{E(A,k,m)}),o):E(A,k,m)}function E(e,t,n){const{toastId:r}=t;n&&f.delete(n);const a={content:e,props:t};f.set(r,a),o((e=>[...e,r].filter((e=>e!==n)))),p.emit(4,d(a,null==a.props.updateId?"added":"updated"))}return(0,r.useEffect)((()=>(g.containerId=e.containerId,p.cancelEmit(3).on(0,w).on(1,(e=>u.current&&v(e))).on(5,y).emit(2,g),()=>{f.clear(),p.emit(3,g)})),[]),(0,r.useEffect)((()=>{g.props=e,g.isToastActive=m,g.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(f.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:u,isToastActive:m}}function g(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function v(e){const[t,n]=(0,r.useState)(!1),[o,a]=(0,r.useState)(!1),i=(0,r.useRef)(null),l=(0,r.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,r.useRef)(e),{autoClose:u,pauseOnHover:d,closeToast:p,onClick:f,closeOnClick:h}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x),document.addEventListener("touchmove",E),document.addEventListener("touchend",x);const n=i.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=n.getBoundingClientRect(),n.style.transition="",l.x=g(t.nativeEvent),l.y=y(t.nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function v(t){if(l.boundingRect){const{top:n,bottom:r,left:o,right:a}=l.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&l.x>=o&&l.x<=a&&l.y>=n&&l.y<=r?w():b()}}function b(){n(!0)}function w(){n(!1)}function E(n){const r=i.current;l.canDrag&&r&&(l.didMove=!0,t&&w(),l.x=g(n),l.y=y(n),l.delta="x"===e.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,r.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function x(){document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",x);const t=i.current;if(l.canDrag&&l.didMove&&t){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return a(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,r.useEffect)((()=>{c.current=e})),(0,r.useEffect)((()=>(i.current&&i.current.addEventListener("d",b,{once:!0}),s(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;s(e.onClose)&&e.onClose((0,r.isValidElement)(e.children)&&e.children.props)})),[]),(0,r.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||w(),window.addEventListener("focus",b),window.addEventListener("blur",w)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",w))})),[e.pauseOnFocusLoss]);const C={onMouseDown:m,onTouchStart:m,onMouseUp:v,onTouchEnd:v};return u&&d&&(C.onMouseEnter=w,C.onMouseLeave=b),h&&(C.onClick=e=>{f&&f(e),l.canCloseOnClick&&p()}),{playToast:b,pauseToast:w,isRunning:t,preventExitTransition:o,toastRef:i,eventHandlers:C}}function b(e){let{closeToast:t,theme:n,ariaLabel:o="close"}=e;return r.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},r.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function w(e){let{delay:t,isRunning:n,closeToast:a,type:i="default",hide:l,className:c,style:u,controlledProgress:d,progress:p,rtl:f,isIn:h,theme:m}=e;const g=l||d&&0===p,y={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:g?0:1};d&&(y.transform=`scaleX(${p})`);const v=(0,o.A)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":f}),b=s(c)?c({rtl:f,type:i,defaultClassName:v}):(0,o.A)(v,c);return r.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:b,style:y,[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{h&&a()}})}const E=e=>{const{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:i}=v(e),{closeButton:l,children:c,autoClose:u,onClick:d,type:p,hideProgressBar:f,closeToast:h,transition:m,position:g,className:y,style:E,bodyClassName:x,bodyStyle:C,progressClassName:_,progressStyle:S,updateId:O,role:k,progress:N,rtl:M,toastId:A,deleteToast:D,isIn:I,isLoading:j,iconOut:T,closeOnClick:L,theme:P}=e,R=(0,o.A)("Toastify__toast",`Toastify__toast-theme--${P}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":M},{"Toastify__toast--close-on-click":L}),F=s(y)?y({rtl:M,position:g,type:p,defaultClassName:R}):(0,o.A)(R,y),B=!!N||!u,z={closeToast:h,type:p,theme:P};let q=null;return!1===l||(q=s(l)?l(z):(0,r.isValidElement)(l)?(0,r.cloneElement)(l,z):b(z)),r.createElement(m,{isIn:I,done:D,position:g,preventExitTransition:n,nodeRef:a},r.createElement("div",{id:A,onClick:d,className:F,...i,style:E,ref:a},r.createElement("div",{...I&&{role:k},className:s(x)?x({type:p}):(0,o.A)("Toastify__toast-body",x),style:C},null!=T&&r.createElement("div",{className:(0,o.A)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!j})},T),r.createElement("div",null,c)),q,r.createElement(w,{...O&&!B?{key:`pb-${O}`}:{},rtl:M,theme:P,delay:u,isRunning:t,isIn:I,closeToast:h,hide:f,type:p,style:S,className:_,controlledProgress:B,progress:N||0})))},x=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},C=u(x("bounce",!0)),_=(u(x("slide",!0)),u(x("zoom")),u(x("flip")),(0,r.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:a,isToastActive:i}=m(e),{className:c,style:u,rtl:d,containerId:p}=e;function f(e){const t=(0,o.A)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return s(c)?c({position:e,rtl:d,defaultClassName:t}):(0,o.A)(t,l(c))}return(0,r.useEffect)((()=>{t&&(t.current=a.current)}),[]),r.createElement("div",{ref:a,className:"Toastify",id:p},n(((e,t)=>{const n=t.length?{...u}:{...u,pointerEvents:"none"};return r.createElement("div",{className:f(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:o,props:a}=e;return r.createElement(E,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},o)})))})))})));_.displayName="ToastContainer",_.defaultProps={position:"top-right",transition:C,autoClose:5e3,closeButton:b,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let S,O=new Map,k=[],N=1;function M(){return""+N++}function A(e){return e&&(i(e.toastId)||a(e.toastId))?e.toastId:M()}function D(e,t){return O.size>0?p.emit(0,e,t):k.push({content:e,options:t}),t.toastId}function I(e,t){return{...t,type:t&&t.type||e,toastId:A(t)}}function j(e){return(t,n)=>D(t,I(e,n))}function T(e,t){return D(e,I("default",t))}T.loading=(e,t)=>D(e,I("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),T.promise=function(e,t,n){let r,{pending:o,error:a,success:l}=t;o&&(r=i(o)?T.loading(o,n):T.loading(o.render,{...n,...o}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,o)=>{if(null==t)return void T.dismiss(r);const a={type:e,...c,...n,data:o},s=i(t)?{render:t}:t;return r?T.update(r,{...a,...s}):T(s.render,{...a,...s}),o},d=s(e)?e():e;return d.then((e=>u("success",l,e))).catch((e=>u("error",a,e))),d},T.success=j("success"),T.info=j("info"),T.error=j("error"),T.warning=j("warning"),T.warn=T.warning,T.dark=(e,t)=>D(e,I("default",{theme:"dark",...t})),T.dismiss=e=>{O.size>0?p.emit(1,e):k=k.filter((t=>null!=e&&t.options.toastId!==e))},T.clearWaitingQueue=function(e){return void 0===e&&(e={}),p.emit(5,e)},T.isActive=e=>{let t=!1;return O.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},T.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=O.get(n||S);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:M()};a.toastId!==e&&(a.staleId=e);const i=a.render||o;delete a.render,D(i,a)}}),0)},T.done=e=>{T.update(e,{progress:1})},T.onChange=e=>(p.on(4,e),()=>{p.off(4,e)}),T.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},T.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},p.on(2,(e=>{S=e.containerId||e,O.set(S,e),k.forEach((e=>{p.emit(0,e.content,e.options)})),k=[]})).on(3,(e=>{O.delete(e.containerId||e),0===O.size&&p.off(0).off(1).off(5)}))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},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})},(()=>{"use strict";var e,t,r=n(1609),o=n.n(r),a=n(9576),i=n(5387),s=n(5890);(t=e||(e={})).Pop="POP",t.Push="PUSH",t.Replace="REPLACE";var l="beforeunload";function c(e){e.preventDefault(),e.returnValue=""}function u(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}var d=n(3654);const p=window.wp.url;let f;function h(){if(!f){const t=document.location.pathname,n=function(t){void 0===t&&(t={});var n=t.window,r=void 0===n?document.defaultView:n,o=r.history;function a(){var e=r.location,t=e.pathname,n=e.search,a=e.hash,i=o.state||{};return[i.idx,{pathname:t,search:n,hash:a,state:i.usr||null,key:i.key||"default"}]}var i=null;r.addEventListener("popstate",(function(){if(i)g.call(i),i=null;else{var t=e.Pop,n=a(),r=n[0],o=n[1];if(g.length){if(null!=r){var s=f-r;s&&(i={action:t,location:o,retry:function(){x(-1*s)}},x(s))}}else E(t)}}));var d=e.Pop,p=a(),f=p[0],h=p[1],m=u(),g=u();function y(e){return"string"==typeof e?e:(n=(t=e).pathname,r=void 0===n?"/":n,o=t.search,a=void 0===o?"":o,i=t.hash,s=void 0===i?"":i,a&&"?"!==a&&(r+="?"===a.charAt(0)?a:"?"+a),s&&"#"!==s&&(r+="#"===s.charAt(0)?s:"#"+s),r);var t,n,r,o,a,i,s}function v(e,t){return void 0===t&&(t=null),(0,s.A)({pathname:h.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function b(e,t){return[{usr:e.state,key:e.key,idx:t},y(e)]}function w(e,t,n){return!g.length||(g.call({action:e,location:t,retry:n}),!1)}function E(e){d=e;var t=a();f=t[0],h=t[1],m.call({action:d,location:h})}function x(e){o.go(e)}return null==f&&(f=0,o.replaceState((0,s.A)({},o.state,{idx:f}),"")),{get action(){return d},get location(){return h},createHref:y,push:function t(n,a){var i=e.Push,s=v(n,a);if(w(i,s,(function(){t(n,a)}))){var l=b(s,f+1),c=l[0],u=l[1];try{o.pushState(c,"",u)}catch(e){r.location.assign(u)}E(i)}},replace:function t(n,r){var a=e.Replace,i=v(n,r);if(w(a,i,(function(){t(n,r)}))){var s=b(i,f),l=s[0],c=s[1];o.replaceState(l,"",c),E(a)}},go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return m.push(e)},block:function(e){var t=g.push(e);return 1===g.length&&r.addEventListener(l,c),function(){t(),g.length||r.removeEventListener(l,c)}}}}({basename:t.substring(0,t.lastIndexOf("/"))});f={get length(){return n.length},get action(){return n.action},get location(){const{location:e}=n;let r=(0,d.parse)(e.search.substring(1)).page||"/";return r.startsWith("/")||(r="/"+r),{...e,actualPathname:t,pathname:r}},get pathname(){return this.location.pathname.substring(1)},createHref:(...e)=>n.createHref.apply(n,e),push:(...e)=>n.push.apply(n,e),replace:(...e)=>n.replace.apply(n,e),go:(...e)=>n.go.apply(n,e),goBack:(...e)=>n.goBack.apply(n,e),goForward:(...e)=>n.goForward.apply(n,e),block:(...e)=>n.block.apply(n,e),listen(e){return n.listen((()=>{e(this.location,this.action)}))}}}return f}const m=h(),g=(e,t=null,n=[],r=!0)=>{let o=(0,p.getQueryArgs)(e);const a=function(){const e=h().location.search;return e.length&&(0,d.parse)(e.substring(1))||{}}();let i=r?{...a,...o}:{...o};return null!=t&&(i={...i,...t}),"/"===e||Array.isArray(e)?Array.isArray(e)&&(i.page=e.join("/")):i.page=e,i.page.startsWith("../")&&(i.page=i.page.substring("3")),"elementor"!==a?.action&&"edit"!==a?.action||n?.push("page"),!0===Boolean(t?.isGutenbergEditor)&&(n?.push("page"),n?.push("isGutenbergEditor")),i?.platform&&i.page?.startsWith(i.platform)&&n?.push("platform"),!0===Boolean(t?.closing)&&n?.push("closing"),""===e&&n?.push("path"),n?.length>0&&(i=((e,t)=>{if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o})(i,n)),(0,p.addQueryArgs)(h().location.actualPathname,i)};var y=n(5795),v=n(339);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function w(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const E=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}new Map,r.startTransition,y.flushSync,r.useId;const x="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,C=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_=r.forwardRef((function(e,t){let n,{onClick:o,relative:a,reloadDocument:s,replace:l,state:c,target:u,to:d,preventScrollReset:p,viewTransition:f}=e,h=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,E),{basename:m}=r.useContext(i.jb),g=!1;if("string"==typeof d&&C.test(d)&&(n=d,x))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=(0,v.pb)(t.pathname,m);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:g=!0}catch(e){}let y=(0,i.$P)(d,{relative:a}),w=function(e,t){let{target:n,replace:o,state:a,preventScrollReset:s,relative:l,viewTransition:c}=void 0===t?{}:t,u=(0,i.Zp)(),d=(0,i.zy)(),p=(0,i.x$)(e,{relative:l});return r.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==o?o:(0,v.AO)(d)===(0,v.AO)(p);u(e,{replace:n,state:a,preventScrollReset:s,relative:l,viewTransition:c})}}),[d,u,p,o,a,n,e,s,l,c])}(d,{replace:l,state:c,target:u,preventScrollReset:p,relative:a,viewTransition:f});return r.createElement("a",b({},h,{href:n||y,onClick:g||s?o:function(e){o&&o(e),e.defaultPrevented||w(e)},ref:t,target:u}))}));var S,O,k,N;function M(e){let t=r.useRef(w(e)),n=r.useRef(!1),o=(0,i.zy)(),a=r.useMemo((()=>function(e,t){let n=w(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(o.search,n.current?null:t.current)),[o.search]),s=(0,i.Zp)(),l=r.useCallback(((e,t)=>{const r=w("function"==typeof e?e(a):e);n.current=!0,s("?"+r,t)}),[s,a]);return[a,l]}(O=S||(S={})).UseScrollRestoration="useScrollRestoration",O.UseSubmit="useSubmit",O.UseSubmitFetcher="useSubmitFetcher",O.UseFetcher="useFetcher",O.useViewTransitionState="useViewTransitionState",(N=k||(k={})).UseFetcher="useFetcher",N.UseFetchers="useFetchers",N.UseScrollRestoration="useScrollRestoration";var A=n(2619),D=n(7723),I=n(1455),j=n.n(I);const T=window.wp.element,L=(e,t=[])=>{const{path:n,parse:r=!0,currentPage:o}=e,[a,i]=(0,T.useState)([]),[s,l]=(0,T.useState)(!0),[c,u]=(0,T.useState)(null),[d,p]=(0,T.useState)(),[f,h]=(0,T.useState)(),[m,g]=(0,T.useState)(!1);return(0,T.useEffect)((()=>{(async(e,t=!0)=>{const n=await wp.apiFetch({path:e,parse:t});return t?{data:n}:{data:await n.json(),totalPages:n.headers.get("x-wp-totalpages"),totalItems:n.headers.get("x-wp-total")}})(n,r).then((({data:e,totalPages:t,totalItems:n})=>{i(e),p(t),h(n),l(!1),g(!1)})).finally((()=>{l(!1),g(!1)}))}),[n,o,...t,m]),{data:a,isLoading:s,error:c,totalPages:d,totalItems:f,setRefetch:g,setData:i,setIsLoading:l}};var P=n(5798);const R=({heading:e,selectedValue:t,setValue:n})=>{const{data:o,isLoading:a}=L({path:"wp/v2/knowledge_base?per_page=100",parse:!1}),[i,s]=(0,r.useState)([]);return(0,r.useEffect)((()=>{if(!a&&o?.length>0){const e=o.map((e=>({label:e.name.charAt(0).toUpperCase()+e.name.slice(1),value:e.slug})));s([{label:(0,D.__)("All Knowledge Base","betterdocs"),value:""},...e])}}),[a,o]),(0,r.createElement)(r.Fragment,null,!a&&o?.length>0&&(0,r.createElement)("div",{className:"kb-filter-wrapper"},(0,r.createElement)(P.A,{cacheOptions:!0,defaultOptions:i,loadOptions:(e,t)=>{t(i.filter((t=>t.label.toLowerCase().includes(e.toLowerCase()))))},onChange:e=>{if("select_all"===e?.value){const e=o.map((e=>e.slug));n(e.join(","))}else n(e?.value||"")},placeholder:(0,D.__)("Select Knowledge Base","betterdocs"),defaultValue:t?{label:t.charAt(0).toUpperCase()+t.slice(1),value:t}:null,classNamePrefix:"kb-filter"})))};var F=n(9386);const B=e=>{e?document.body.classList.add("betterdocs-dark-mode"):document.body.classList.remove("betterdocs-dark-mode")},z=({page:e,filter:t,trash:n,postStatus:o,docs:a,mode:s,handleGlossariesSearch:l,glossariesKeyword:c,faqSearchKeyword:u,handleFAQSearch:d})=>{const[p,f]=(0,r.useState)(Boolean(window.betterdocs_admin.dark_mode)),[h,m]=t,[y,v]=a,b=(0,i.zy)();(0,r.useEffect)((()=>{B(p)}),[p]);const w=(0,r.useCallback)((()=>{f((e=>(j()({method:"POST",path:"betterdocs/v1/dark-mode",data:{mode:!e}}).then((t=>{B(!e&&t)})),!e)))}),[p]);return(0,r.createElement)("section",{className:"betterdocs-dashboard-header"},(0,r.createElement)("div",{className:"betterdocs-dashboard-header-top"},(0,r.createElement)("div",{className:"betterdocs-dashboard-container"},(0,r.createElement)("div",{className:"betterdocs-row betterdocs-logo-action"},(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-xs-6 betterdocs-dashboard-header-left betterdocs-dashboard-header-items"},(0,r.createElement)("div",{className:"betterdocs-dashboard-logo"},(0,r.createElement)(F.gu,null))),(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-xs-6 betterdocs-dashboard-header-right betterdocs-dashboard-header-items"},(0,A.applyFilters)("betterdocs_admin_header_action",null,e))))),(0,r.createElement)("div",{className:"betterdocs-dashboard-container"},(0,r.createElement)("div",{className:"betterdocs-row"},(0,r.createElement)("div",{className:"betterdocs-col betterdocs-header-left betterdocs-col-xs-6"},(0,r.createElement)("h2",{className:"betterdocs-dashboard-header-title"},(0,A.applyFilters)("betterdocs_admin_header_title",(0,D.__)("All Docs","betterdocs"),e)),1==betterdocs_admin?.multiple_kb&&(0,A.applyFilters)("betterdocs_kb_filter_section","",[R,h,m,e,o]),"betterdocs-admin"==e&&!y&&v>0&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"trash-line"}),(0,r.createElement)(_,{className:"header-trash",to:g("betterdocs-admin",{mode:"list",post_status:"trash"})}," ",(0,D.__)(`Trash (${v})`,"betterdocs")," "))),(0,r.createElement)("div",{className:"betterdocs-col betterdocs-header-right betterdocs-col-xs-6 betterdocs-d-flex betterdocs-justify-end"},"betterdocs-admin"===e&&(0,r.createElement)("div",{className:"betterdocs-header-button"},(0,r.createElement)("a",{href:"edit.php?post_type=docs&bdocs_view=classic",className:"betterdocs-dashboard-header-action"},(0,r.createElement)("span",null,(0,r.createElement)(F.IX,null))," ",(0,D.__)("Classic UI","betterdocs"))),("betterdocs-glossaries"===e||"betterdocs-faq"==e)&&(0,r.createElement)("div",{className:"betterdocs-glossary-search-field"},(0,r.createElement)("input",{type:"text",placeholder:"betterdocs-glossaries"===e?(0,D.__)("Search Glossary...","betterdocs"):(0,D.__)("Search FAQ","betterdocs"),value:"betterdocs-glossaries"===e?c:u,onChange:"betterdocs-glossaries"===e?l:d,className:"search-input"}),(0,r.createElement)("span",{className:"glossary-search-icon"},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38",viewBox:"0 0 50 50"},(0,r.createElement)("path",{d:"M21 3C11.602 3 4 10.602 4 20s7.602 17 17 17c3.355 0 6.46-.984 9.094-2.656l12.281 12.281 4.25-4.25L34.5 30.281C36.68 27.421 38 23.88 38 20c0-9.398-7.602-17-17-17m0 4c7.2 0 13 5.8 13 13s-5.8 13-13 13S8 27.2 8 20 13.8 7 21 7"})))),(0,r.createElement)("ul",{className:"betterdocs-dashboard-header-action-list betterdocs-text-align-right"},(0,A.applyFilters)("betterdocs_admin_header_action_icons",[(0,r.createElement)("li",{key:1},(0,r.createElement)("button",{onClick:w,className:"betterdocs-dashboard-header-action betterdocs-dashboard-header-action-mode"},p?(0,r.createElement)(F.l0,null):(0,r.createElement)(F.mT,null)))],e,b,s))))))},q=()=>{const[e]=M(),[t,n]=(0,r.useState)(""),[o,a]=(0,r.useState)(!1);let{isLoading:s,totalPages:l,totalItems:c,setRefetch:u}=L({path:(0,p.addQueryArgs)("/wp/v2/docs",{status:"trash"}),parse:!1});const d=e.get("post_status"),[f,h]=(0,r.useState)(""),[m,g]=(0,r.useState)(""),[y,v]=(0,r.useState)(""),[b,w]=(0,r.useState)(""),E=e.get("page");return(0,r.useEffect)((()=>{const e=setTimeout((()=>{"betterdocs-glossaries"==E?w(f):v(m)}),500);return()=>{clearTimeout(e)}}),[f,E,m]),(0,r.useEffect)((()=>{h(""),w(""),g(""),v("")}),[E]),(0,r.useEffect)((()=>{s||(e?.size>=1||"grid"==e?.get("mode")||"list"==e?.get("mode")&&"any"==d||"list"==e.get("mode")&&"trash"==d)&&a(!0)}),[s,c,u,d,e]),(0,r.createElement)("div",null,(0,r.createElement)(z,{glossariesKeyword:f,handleGlossariesSearch:e=>h(e?.target?.value),faqSearchKeyword:m,handleFAQSearch:e=>g(e?.target?.value),page:E,postStatus:e.get("post_status"),filter:[t,n],docs:[s,c],mode:null!=betterdocs_admin?.dashboard_mode&&""!=betterdocs_admin?.dashboard_mode?betterdocs_admin?.dashboard_mode:e.get("mode")}),(0,r.createElement)(i.sv,{context:[t,o?u:null,b,y]}))};var U=n(8120),H=n(1955);function V(){const e=(0,H.g)(),[t,n]=(0,r.useState)(!1),[o,a]=(0,r.useState)(null);if(!e)return console.error("useFAQ context is undefined. Ensure FAQProvider is set up correctly."),null;const{reFetchCategories:i}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("button",{type:"button",className:"admin-action-button",onClick:()=>n(!0)},(0,r.createElement)("span",{className:"action-button-icon"},(0,r.createElement)(F.uI,null)),(0,r.createElement)("span",{className:"action-button-icon-text"},(0,D.__)("Create a New FAQ Group","betterdocs"))),t||null!==o?(0,r.createElement)(U.A,{open:!0,reFetchCategories:i,setShowCategoryModal:n,updateCategory:o,setUpdateCategory:a}):null)}var K=n(8378);function G(){const{showGlossaryModal:e,setShowGlossaryModal:t}=(0,r.useContext)(K.t);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("button",{type:"button",className:"admin-action-button",onClick:()=>t(!0)},(0,r.createElement)("span",{className:"action-button-icon"},(0,r.createElement)(F.uI,null)),(0,r.createElement)("span",{className:"action-button-icon-text"},(0,D.__)("Create a New Glossary","betterdocs"))))}var W=n(8061),Y=n(8401),Q=n(7867),$=n(9275),Z=n(6981),J=n(9868),X=n(1967);class ee extends X.Q{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),(0,$.f8)(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=this.currentMutation)||e.removeObserver(this)}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:(0,Z.$)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){J.j.batch((()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,l;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}var te=n(4981),ne=n(1272);function re(e,t,n){const o=(0,$.GR)(e,t,n),a=(0,Y.jE)({context:o.context}),[i]=r.useState((()=>new ee(a,o)));r.useEffect((()=>{i.setOptions(o)}),[i,o]);const s=(0,te.r)(r.useCallback((e=>i.subscribe(J.j.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),l=r.useCallback(((e,t)=>{i.mutate(e,t).catch(oe)}),[i]);if(s.error&&(0,ne.G)(i.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}function oe(){}var ae=n(309),ie=n(8537);const se=e=>`${betterdocs_admin?.admin_url}post.php?post=${e}&action=edit`,le=(e,t,n)=>{for(let r of n)""!=e[r]&&null==t[r]&&delete e[r];return e},ce=(0,T.memo)((({doc:e,index:t,deleteIds:n,isLoading:o,termId:a,setQuickEdit:i,mutate:s})=>(0,r.createElement)(ae.sx,{key:e?.unique_id,draggableId:e?.unique_id?.toString(),index:t},((l,c)=>(0,r.createElement)("li",{className:c.isDragging?"is-dragging":"",ref:l.innerRef,...l.draggableProps,...l.dragHandleProps,style:{cursor:(c.isDragging,"move"),...l.draggableProps.style}},n[a]?.post_id==e?.id&&o&&(0,r.createElement)("div",{className:"delete-row"}),(0,r.createElement)("span",{className:"betterdocs-dashboard-doc-drag"},(0,r.createElement)(F.Wj,null)),(0,r.createElement)("a",{href:se(e?.id)},(0,ie.decodeEntities)(e?.title),"publish"!=e?.status&&(0,r.createElement)("span",{className:"status"},` - ${e?.status?.charAt(0).toUpperCase()}${e?.status?.slice(1)}`)),(0,r.createElement)("span",{className:"betterdocs-dashboard-doc-actions"},(0,r.createElement)("a",{className:"betterdocs-dashboard-doc-action-edit",title:(0,D.__)("Quick Edit","betterdocs"),href:se(e.id),onClick:t=>{t.preventDefault(),i((t=>({...t,isOpen:!t.isOpen,data:{docData:e,termId:a,docId:e?.id}})))}},(0,r.createElement)(F.GI,null)),(0,r.createElement)("a",{className:"betterdocs-dashboard-doc-action-open",target:"_blank",title:(0,D.__)("View","betterdocs"),href:e?.link},(0,r.createElement)(F.Yj,null)),(0,r.createElement)("button",{className:"betterdocs-dashboard-doc-action-delete",type:"button",title:(0,D.__)("Trash","betterdocs"),onClick:r=>{n[a]={post_id_index:t,term_id:a,post_id:e.id},s(n)}},(0,r.createElement)(F.xV,null)))))))),ue=({docsData:e,category:t,deleteIds:n,mutate:o,isLoading:a,setQuickEdit:i})=>0===e.length?(0,r.createElement)(ae.gL,{droppableId:t?.id?.toString(),key:t.id},((e,t)=>(0,r.createElement)("div",{className:"betterdocs-dashboard-category-body",ref:e.innerRef,...e.droppableProps},(0,r.createElement)("div",{className:"empty-cat-img"},!t.isDragging&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(F.uK,null),(0,r.createElement)("h3",{className:"empty-cat-title"},(0,D.__)("No Docs Found","betterdocs")))),(0,r.createElement)("ul",{className:"custom-placeholder"},e.placeholder)))):(0,r.createElement)(ae.gL,{droppableId:t?.id?.toString(),key:t.id},((s,l)=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"betterdocs-dashboard-category-body"},(0,r.createElement)("ul",{className:"betterdocs-dashboard-category-list",ref:s.innerRef,...s.droppableProps},e.map(((e,s)=>(0,r.createElement)(ce,{doc:e,index:s,key:s,deleteIds:n,isLoading:a,mutate:o,termId:t?.id,setQuickEdit:i})))),(0,r.createElement)("ul",{className:"custom-placeholder"},s.placeholder))))),de=({isDocs:e})=>{const[t,n]=(0,T.useState)("Generate Sample Docs");return(0,r.createElement)("section",{className:"betterdocs-dashboard-body"},(0,r.createElement)("div",{className:"betterdocs-no-docs-wrapper"},(0,r.createElement)("div",{className:"betterdocs-no-docs-img-wrap"},(0,r.createElement)(F.uK,null)),(0,r.createElement)("div",{className:"betterdocs-no-docs-content"},(0,r.createElement)("h3",{className:"betterdocs-no-docs-title"},(0,D.__)("No Category Found","betterdocs")),(0,r.createElement)("p",{className:"betterdocs-no-docs-text"},(0,D.__)("Please create a new category to get started","betterdocs")),!e&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("a",{href:`${betterdocs_admin.admin_url}edit-tags.php?taxonomy=doc_category&post_type=docs`,className:"betterdocs-dashboard-btn betterdocs-dashboard-btn-white"},(0,D.__)("Create A New Category","betterdocs")),(0,r.createElement)("a",{href:"#",className:"betterdocs-dashboard-btn",onClick:async e=>{n("Generating...");let t=await wp.apiFetch({url:betterdocs_admin?.generate_data_url,method:"POST",data:{action:"create-dummy-data",_wpnonce:betterdocs_admin?.nonce}});"success"==t?.status?(n("Generated Successfully"),window.location.reload()):(n("Generation Failed"),setTimeout((()=>{n("Generate Sample Docs")}),1e3))}},t)))))};function pe(e,t,n,r){return j()({url:t,body:e,method:n,parse:r})}function fe(e){let t=new FormData;for(const n in e)if(Array.isArray(e[n]))for(let r of e[n])r?.hasOwnProperty("id")?t.append(`${n}[]`,r?.id):t.append(`${n}[]`,r);else t.append(`${n}`,e[n]);return t}const he=r.createContext({});function me({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:a,direction:i,duration:s,enableAnimation:l=!0,customHighlightBackground:c}){const u={};return"rtl"===i&&(u["--animation-direction"]="reverse"),"number"==typeof s&&(u["--animation-duration"]=`${s}s`),l||(u["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(u.width=n),"string"!=typeof r&&"number"!=typeof r||(u.height=r),"string"!=typeof o&&"number"!=typeof o||(u.borderRadius=o),a&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==t&&(u["--highlight-color"]=t),"string"==typeof c&&(u["--custom-highlight-background"]=c),u}function ge({count:e=1,wrapper:t,className:n,containerClassName:o,containerTestId:a,circle:i=!1,style:s,...l}){var c,u,d;const p=r.useContext(he),f={...l};for(const[e,t]of Object.entries(l))void 0===t&&delete f[e];const h={...p,...f,circle:i},m={...s,...me(h)};let g="react-loading-skeleton";n&&(g+=` ${n}`);const y=null!==(c=h.inline)&&void 0!==c&&c,v=[],b=Math.ceil(e);for(let t=0;t<b;t++){let n=m;if(b>e&&t===b-1){const t=null!==(u=n.width)&&void 0!==u?u:"100%",r=e%1,o="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:o}}const o=r.createElement("span",{className:g,style:n,key:t},"‌");y?v.push(o):v.push(r.createElement(r.Fragment,{key:t},o,r.createElement("br",null)))}return r.createElement("span",{className:o,"data-testid":a,"aria-live":"polite","aria-busy":null===(d=h.enableAnimation)||void 0===d||d},t?v.map(((e,n)=>r.createElement(t,{key:n},e))):v)}const ye=()=>(0,r.createElement)("div",{className:"grid-loader-wrapper"},(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10px",className:"grid-loader-last-child final-child"})),(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10px",className:"grid-loader-last-child final-child"})),(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10px",className:"grid-loader-last-child final-child"})),(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10px",className:"grid-loader-last-child final-child"})),(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10px",className:"grid-loader-last-child final-child"})),(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10x",className:"grid-loader-last-child final-child"}))),ve=(0,r.createContext)(),be=ve.Provider,we=()=>(0,r.useContext)(ve),Ee=e=>{const{label:t,placeholder:n,doc:o,endpoint:a,setQuickEditData:i,name:s}=e;if(void 0===o?.id)return null;const[l,c]=(0,r.useState)(""),[u,d]=(0,r.useState)([]),{data:f,isLoading:h}=L({path:(0,p.addQueryArgs)(a,{post:o.id})}),{data:m,isLoading:g}=L({path:(0,p.addQueryArgs)(a)}),{data:y,isLoading:v}=L({path:(0,p.addQueryArgs)(a,{search:l})});return(0,r.useEffect)((()=>{d([])}),[o.id]),(0,r.useEffect)((()=>{d((e=>{let t=[],n=[];if(f.length>0&&(t=f.map((e=>(n.push(e.id),{...e,selected:!0})))),y.length>0){let e=y.filter((e=>!n.includes(e.id)));e=e.map((e=>({...e,selected:!1}))),n=[...n,...e.map((e=>e.id))],t=[...t,...e]}if(m.length>0){let e=m.filter((e=>!n.includes(e.id)));e=e.map((e=>({...e,selected:!1}))),t=[...t,...e]}return t}))}),[f,m,y,o]),(0,r.useEffect)((()=>{i((e=>({...e,[s]:u.filter((e=>e.selected)).map((e=>parseInt(e.id)))})))}),[u]),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-category"},t),(0,r.createElement)("div",{className:"betterdocs-quick-edit-multiselect"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-search"},(0,r.createElement)(F.C0,null),(0,r.createElement)("input",{type:"text",placeholder:n,value:l,onChange:e=>c(e.target.value)})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-multiselect-items"},u.map((e=>{let t=!("doc_category"!=s||!o?.doc_category?.includes(e?.id))||!("doc_tag"!=s||!o?.doc_tag?.includes(e?.id))||!("knowledge_base"!=s||!o?.knowledge_base?.includes(e?.id));return(0,r.createElement)("div",{className:"betterdocs-quick-edit-checkbox-group",key:e.id},(0,r.createElement)("input",{type:"checkbox",value:e.name,id:e.id,defaultChecked:t,onChange:(n=e.id,e=>{d((t=>t.map((t=>(t.id===n&&e.target.checked&&(t.selected=!0),t.id!==n||e.target.checked||(t.selected=!1),t)))))})}),(0,r.createElement)("label",{htmlFor:e.id},e.name));var n})))))};var xe=n(8552),Ce=n(1890);const _e=(e,t=500)=>{const[n,o]=(0,r.useState)(e);return(0,r.useEffect)((()=>{let n=setTimeout((()=>{o(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n},Se=(e,t)=>{const[n,o]=(0,r.useState)(t),[a,i]=(0,r.useState)([]),[s,l]=(0,r.useState)(!0),{isLoading:c,data:u}=(0,Q.I)([e,n],(({queryKey:e})=>{let[t,n]=e;return j()({path:(0,p.addQueryArgs)("wp/v2/users",n),method:"GET",parse:!1}).then((e=>e.json())).then((e=>(l(e?.length>0),e)))}),{refetchOnWindowFocus:!1});return(0,r.useEffect)((()=>{if(!c){const e=u?.map((e=>({value:e.id,label:e.name})));i((t=>[...t,...e]))}}),[c,u]),{usersLoading:c,setAuthorParams:o,authorParams:n,setAuthors:i,authors:a,isNextPageAvailable:s}},Oe=()=>{const[e,t]=(0,r.useState)(""),n=_e(e),[o,a]=(0,r.useState)([]),[i,s]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{""!=n?(s(!0),j()({path:(0,p.addQueryArgs)("wp/v2/users",{search:n}),method:"GET"}).then((e=>{if(e?.length>0){let t=e?.map((e=>({value:e.id,label:e.name})));a(t)}s(!1)}))):a([])}),[n]),{setUserSearchValue:t,searchedUsers:o,searchLoading:i}},ke=({data:e,setQuickEdit:t,setCategoriesPosts:n,docCategoriesQueryParams:o})=>{const{docData:a,docId:i,termId:s}=e,[l,c]=(0,r.useState)("Save"),[u,d]=(0,r.useState)({author:"",title:"",slug:"",comment_status:"",status:"",date:"",password:""}),[p,f]=(0,r.useState)({}),{usersLoading:h,authors:m,authorParams:g,setAuthorParams:y,isNextPageAvailable:v}=Se("authors",{per_page:10,page:1}),{searchLoading:b,searchedUsers:w,setUserSearchValue:E}=Oe(),[x,C]=(0,r.useState)("");(0,r.useEffect)((()=>{d({author:a?.author,title:a.title,slug:a.slug,comment_status:a.comment_status,status:a.status,date:a?.date,password:a?.password}),f({value:a.author,label:a.author_info.name}),"private"==a.status?C("private"):C(a?.content?.protected||a?.password?.length>0?"password":"none")}),[a]);const _=[{value:"publish",label:(0,D.__)("Published","betterdocs")},{value:"pending",label:(0,D.__)("Pending review","betterdocs")},{value:"draft",label:(0,D.__)("Draft","betterdocs")}];return(0,r.createElement)("div",{className:"betterdocs-quick-edit-panel"},(0,r.createElement)("div",{onClick:()=>t((e=>({...e,isOpen:!e.isOpen}))),className:"betterdocs-quick-edit-close"},(0,r.createElement)("span",null,(0,r.createElement)(F.gz,null))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-wrap"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-body"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-header"},(0,r.createElement)("h3",{className:"betterdocs-quick-edit-title"},(0,ie.decodeEntities)(u.title))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-status"},(0,D.__)("Authors:","betterdocs")),(0,r.createElement)(xe.Ay,{className:"quick-edit-select-fields betterdocs-quick-edit-authors",id:"betterdocs-quick-edit-authors",value:p,onInputChange:e=>{E(e)},onMenuScrollToBottom:e=>{null!=e&&v&&y((e=>({...e,page:g.page+1})))},onChange:e=>{d((t=>({...t,author:e?.value}))),f(e)},filterOption:(e,t)=>e,options:w?.length>0?w:m,classNamePrefix:"quick-edit-select-fields"})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-status"},(0,D.__)("Status:","betterdocs")),(0,r.createElement)(xe.Ay,{className:"quick-edit-select-fields betterdocs-quick-edit-status",id:"betterdocs-quick-edit-status",value:_.find((e=>e.value===u.status)),onChange:e=>{d((t=>({...t,status:e?.value})))},options:_,classNamePrefix:"quick-edit-select-fields"})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-title"},(0,D.__)("Title:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-title",type:"text",value:u.title,onChange:e=>d((t=>({...t,title:e.target.value})))})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-slug"},(0,D.__)("Slug","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-slug",type:"text",placeholder:"Slug",value:u.slug,onChange:e=>d((t=>({...t,slug:e.target.value})))})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-date"},(0,D.__)("Date:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-date",type:"datetime-local",placeholder:"date",value:u?.date,onChange:e=>{d((t=>({...t,date:e?.target?.value})))}})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",null,(0,D.__)("Select Privacy","betterdocs")),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"password",type:"radio",name:"privacy",value:"password",checked:"password"===x,onChange:e=>{C(e.target.value);const t={...u,status:a?.status};a?.password?.length>0&&(t.password=a?.password),d((e=>t))}}),(0,r.createElement)("label",{htmlFor:"password"},(0,D.__)("Password Protected","betterdocs"))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"private",type:"radio",name:"privacy",value:"private",checked:"private"===x,onChange:e=>{C(e.target.value),u?.hasOwnProperty("password")&&delete u.password,d((e=>({...u,status:"private"})))}}),(0,r.createElement)("label",{htmlFor:"private"},(0,D.__)("Make Private","betterdocs"))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"none",type:"radio",name:"privacy",value:"none",checked:"none"===x,onChange:e=>{C(e.target.value),d((e=>({...u,title:u?.title?.replace("Private:",""),status:"publish",password:""})))}}),(0,r.createElement)("label",{htmlFor:"none"},(0,D.__)("None","betterdocs"))))),"password"===x&&(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group betterdocs-quick-edit-password-field"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-password"},(0,D.__)("Password:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-password",type:"text",placeholder:"",value:u?.password?.length>0?u?.password:"",onChange:e=>{d((t=>({...t,status:"private"==a?.status?"publish":a?.status,password:e?.target?.value})))}})),1==betterdocs_admin?.multiple_kb&&(0,A.applyFilters)("quick_edit_mkb_filter","",[a,d,Ee]),(0,r.createElement)(Ee,{name:"doc_category",endpoint:"wp/v2/doc_category",doc:a,setQuickEditData:d,label:(0,D.__)("Category","betterdocs"),placeholder:(0,D.__)("Search Category","betterdocs")}),(0,r.createElement)(Ee,{name:"doc_tag",endpoint:"wp/v2/doc_tag",doc:a,setQuickEditData:d,label:(0,D.__)("Tags","betterdocs"),placeholder:(0,D.__)("Search Tags","betterdocs")}),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-comments"},(0,r.createElement)("input",{type:"checkbox",id:a.id,checked:"open"===u.comment_status,onChange:e=>d((t=>({...t,comment_status:e.target.checked?"open":"closed"})))}),(0,r.createElement)("label",{htmlFor:a.id},(0,D.__)("Allow Comments","betterdocs"))))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-footer"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-nav"}),(0,r.createElement)("div",{className:"betterdocs-quick-edit-submit"},(0,r.createElement)("button",{type:"submit",className:"betterdocs-quick-edit-submit-btn",onClick:async e=>{e.preventDefault(),c("Saving..."),null!=await wp.apiFetch({path:`/wp/v2/docs/${a.id}`,method:"POST",data:u})?(n.setQueryData(["docsCategories",o],(e=>{let t=[...e[s]];return t=t?.map((e=>e?.id==i?{...e,...u}:e)),e[s]=t,{...e,data:{...e}}})),c("Save"),Ce.oR.success((0,D.__)("Saved Successfully","betterdocs"))):(c("Save"),Ce.oR.error((0,D.__)("Error While Saving","betterdocs")))}},l)))))},Ne=()=>{const e=(0,Y.jE)(),[t,n]=(0,r.useState)({isOpen:!1}),[o,a]=(0,i.KC)(),[s,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)({per_page:100,hide_empty:!1,orderby:"doc_category_order",...""!=o?{knowledge_base:o}:{}}),[d,f]=(0,r.useState)({...""!=o?{knowledge_base:o}:{}}),{isLoading:h,data:m}=(0,Q.I)(["docsCategories",d],(({queryKey:e})=>{let[t,n]=e;return j()({path:(0,p.addQueryArgs)("betterdocs/v1/doc-categories",n),method:"GET",parse:!1}).then((e=>e.json())).then((e=>e))})),{isLoading:g,data:y}=(0,Q.I)(["docCategories",c],(({queryKey:e})=>{let[t,n]=e;return j()({path:(0,p.addQueryArgs)("wp/v2/doc_category",n),method:"GET",parse:!1}).then((e=>e.json())).then((e=>e))})),{mutate:v,data:b,isLoading:w,variables:E}=re({mutationKey:["deleteDocs"],mutationFn:e=>{for(let t of Object.keys(e)){const{post_id_index:n,term_id:r,post_id:o}=e[t];return j()({path:`/wp/v2/docs/${o}`,method:"DELETE"})}},onMutate:async e=>e,onSettled:t=>{e.invalidateQueries(["docsCategories",d])},onSuccess:(t,n)=>{const r=e.getQueryData(["docsCategories",d]);for(let t of Object.keys(n)){const{post_id_index:o,term_id:i,post_id:s}=n[t];r[i]?.splice(o,1),delete n[t],"function"==typeof a&&a(!0),e.setQueryData(["docsCategories"],{...r})}}}),{mutate:x}=re({mutationKey:["sortDocsDragDrop"],mutationFn:e=>null,onMutate:async({docsCategoriesData:t,sourceCategoryId:n,sourcePostIndex:r,destinationPostIndex:o,destinationCategoryId:a})=>{await e.cancelQueries(["docsCategories",d]);const i=e.getQueryData(["docsCategories",d]);if("uncategorized"==n||"uncategorized"==a){let t=i[n]?.splice(r,1);return i[a]?.splice(o,0,t[0]),e.setQueryData(["docsCategories",d],{...i}),C(i[n],i[a],"uncategorized"==n?"":n,"uncategorized"==a?"":a,t[0]?.id)}let s=i[parseInt(n)]?.splice(r,1);return i[parseInt(a)]?.splice(o,0,s[0]),e.setQueryData(["docsCategories",d],{...i}),C(t[parseInt(n)],t[parseInt(a)],n,a,s[0]?.id)},onSettled:e=>null});(0,r.useEffect)((()=>{g||h||(""!=o?(null==e?.getQueryData(["docCategories",{...c,knowledge_base:o}])&&l(!1),f({knowledge_base:o}),u({...c,knowledge_base:o})):(null==e?.getQueryData(["docCategories",{per_page:100,hide_empty:!1,orderby:"doc_category_order"}])&&l(!1),f({}),u({per_page:100,hide_empty:!1,orderby:"doc_category_order"})))}),[o]),(0,r.useEffect)((()=>{let e;g||h||(e=setTimeout((()=>{l(!0)}),10))}),[g,h]);const C=(e,t,n,r,o)=>{let a=fe({action:"update_doc_order_by_category",doc_cat_order_nonce:betterdocs_admin?.doc_cat_order_nonce,list_term_id:n,docs_ordering_data:e}),i=fe({action:"update_doc_order_by_category",doc_cat_order_nonce:betterdocs_admin?.doc_cat_order_nonce,list_term_id:r,docs_ordering_data:t}),s=fe({action:"update_docs_term",object_id:o,prev_term_id:n,list_term_id:r,doc_cat_order_nonce:betterdocs_admin?.doc_cat_order_nonce});pe(a,betterdocs_admin?.ajaxurl,"POST",!0),pe(s,betterdocs_admin?.ajaxurl,"POST",!0),pe(i,betterdocs_admin?.ajaxurl,"POST",!0)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ae.JY,{onDragEnd:e=>{const{destination:t,source:n}=e;if(!t)return null;const{droppableId:r,index:o}=t,{droppableId:a,index:i}=n;x({docsCategoriesData:m,sourceCategoryId:a,sourcePostIndex:i,destinationPostIndex:o,destinationCategoryId:r})}},(0,r.createElement)("section",{className:"betterdocs-dashboard-body betterdocs-dashboard-category-grid"},(0,r.createElement)("div",{className:"betterdocs-dashboard-container"},(0,r.createElement)("div",{className:"betterdocs-row"},!s&&(0,r.createElement)(ye,null),s&&y?.length>0&&y.map(((e,t)=>(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-4",key:t},(0,r.createElement)("div",{className:"betterdocs-dashboard-category-wrap"},(0,r.createElement)("div",{className:"betterdocs-dashboard-category-header"},(0,r.createElement)("h3",{className:"betterdocs-dashboard-category-name"},(0,ie.decodeEntities)(e?.name))),null!=m[e?.id]&&(0,r.createElement)(ue,{category:e,docsData:m[e?.id],deleteIds:null==E?{}:E,isLoading:w,mutate:v,setQuickEdit:n}),(0,r.createElement)("div",{className:"betterdocs-dashboard-category-footer"},(0,r.createElement)("a",{href:`post-new.php?post_type=docs&cat=${e.id}`,className:"betterdocs-dashboard-btn betterdocs-dashboard-btn-white"},(0,D.__)("Add New Doc","betterdocs"))))))),s&&null!=m.uncategorized&&m.uncategorized?.length>0&&(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-4",key:"uncategorized"},(0,r.createElement)("div",{className:"betterdocs-dashboard-category-wrap"},(0,r.createElement)("div",{className:"betterdocs-dashboard-category-header"},(0,r.createElement)("h3",{className:"betterdocs-dashboard-category-name"},(0,D.__)("Uncategorized","betterdocs"))),(0,r.createElement)(ue,{category:{id:"uncategorized"},docsData:m.uncategorized,deleteIds:null==E?{}:E,isLoading:w,mutate:v,setQuickEdit:n}),(0,r.createElement)("div",{className:"betterdocs-dashboard-category-footer"},(0,r.createElement)("a",{href:"post-new.php?post_type=docs&cat=",className:"betterdocs-dashboard-btn betterdocs-dashboard-btn-white"},(0,D.__)("Add New Doc","betterdocs"))))))))),s&&0==y?.length&&(0,r.createElement)(de,{isDocs:0!=m?.length||null!=m.uncategorized}),t?.isOpen&&(0,r.createElement)(ke,{data:t?.data,setQuickEdit:n,setCategoriesPosts:e,docCategoriesQueryParams:d}))},Me=e=>{const{path:t,filterIcon:n,filterName:o,placeholder:a=o,defaultValue:i,options:s=[],onFilterSelect:l,name:c,setIsLoading:u,...d}=e,[p,f]=(0,r.useState)(s);(0,r.useEffect)((()=>{s?.length>0&&f(s)}),[s]),(0,r.useEffect)((()=>{null!=t&&h("",(e=>e)).then((e=>{f(e)}))}),[t]);const h=(0,r.useCallback)((async(e,n)=>{if(null!=t)return n((await wp.apiFetch({path:t})).map((e=>({label:e.name,value:e.id}))))}),[t]);return(0,r.createElement)("li",{className:e.name},n&&(0,r.createElement)(n,null),(0,r.createElement)(P.A,{placeholder:a,isClearable:!0,isSearchable:!0,loadOptions:h,defaultValue:i,defaultOptions:p,className:`betterdocs-dashboard-filter-select betterdocs-dashboard-filter-select-${c}`,classNamePrefix:"betterdocs-dashboard-filter",onChange:e=>{l((t=>{let n={};return null==t?(n[c]=e?.value,null==e?.value&&delete n[c],{...n}):e?.value==t[c]?t:null!=t&&null!=e?.value?(n[c]=e?.value,{...t,...n}):(delete t[c],{...t,...n})}))},...d}))},Ae=({onFilterSelect:e})=>{const{usersLoading:t,authors:n,authorParams:o,setAuthorParams:a,isNextPageAvailable:i}=Se("authors-list-filter",{per_page:10,page:1});return(0,r.createElement)("ul",{className:"betterdocs-dashboard-filter-list"},(0,r.createElement)(Me,{name:"order",filterIcon:F.qu,placeholder:"Order",onFilterSelect:e,options:[{value:"asc",label:(0,D.__)("Ascending","betterdocs")},{value:"desc",label:(0,D.__)("Descending","betterdocs")}]}),(0,r.createElement)(Me,{name:"year_month",filterIcon:F._v,placeholder:(0,D.__)("All Dates","betterdocs"),path:"/betterdocs/v1/months-with-posts",onFilterSelect:e}),(0,r.createElement)(Me,{options:n,name:"author",filterIcon:F.vg,placeholder:(0,D.__)("All Authors","betterdocs"),onMenuScrollToBottom:e=>{null!=e&&i&&a((e=>({...e,page:o.page+1})))},onFilterSelect:e}),(0,r.createElement)(Me,{name:"doc_category",filterIcon:F.i,placeholder:(0,D.__)("All Categories","betterdocs"),path:"/wp/v2/doc_category?per_page=100",onFilterSelect:e}),(0,r.createElement)(Me,{name:"status",filterIcon:F.YY,placeholder:(0,D.__)("Doc Status","betterdocs"),onFilterSelect:e,options:[{value:"publish",label:(0,D.__)("Publish","betterdocs")},{value:"pending",label:(0,D.__)("Pending","betterdocs")},{value:"draft",label:(0,D.__)("Draft","betterdocs")},{value:"auto-draft",label:(0,D.__)("Auto Draft","betterdocs")},{value:"future",label:"Future"},{value:"private",label:(0,D.__)("Private","betterdocs")},{value:"inherit",label:(0,D.__)("Inherit","betterdocs")}]}))},De=({authorInfo:e})=>(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-author"},(0,r.createElement)("a",{href:e?.author_url},e?.author_nicename)),Ie=({categories:e})=>(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-category"},e.map(((t,n)=>(0,r.createElement)(o().Fragment,{key:n},(0,r.createElement)("a",{href:t.term_url},t.term_name),n<e.length-1&&", ")))),je=({tags:e})=>(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-tag"},e.map(((e,t)=>(0,r.createElement)("a",{key:t,href:e?.term_url,target:"_blank"},e.term_name))));var Te=n(9045);const Le=e=>{const{doc:t,status:n}=e,{data:o,setData:a}=we(),{isListMenuOpen:i,docId:s}=o;return(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-action"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-action-icon",onClick:()=>a((e=>({...e,isListMenuOpen:!i,docId:t.id})))},(0,r.createElement)(F.wb,null)),i&&null!=s&&s==t?.id&&(0,r.createElement)("ul",{className:"betterdocs-dashboard-list-item-action-dropdown open"},"trash"!=n&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",href:se(t.id)},(0,D.__)("Edit","betterdocs"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{href:"#",onClick:()=>a((e=>({...e,isOpen:!0,docData:t})))},(0,D.__)("Quick Edit","betterdocs"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{href:"#",onClick:e=>{e.preventDefault(),a((e=>({...e,quickAction:{action:"trash",docId:t?.id}})))}},(0,D.__)("Trash","betterdocs"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",href:t.link},(0,D.__)("View","betterdocs")))),"trash"==n&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",href:"#",onClick:e=>{e.preventDefault(),a((e=>({...e,quickAction:{action:"restore",docId:t?.id}})))}},(0,D.__)("Restore","betterdocs"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",href:"#",onClick:e=>{e.preventDefault(),a((e=>({...e,quickAction:{action:"permanent-delete",docId:t?.id}})))}},(0,D.__)("Delete Permanantly","betterdocs"))))))},Pe=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})))),Re=({knowledgebase:e})=>(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-category"},e.map(((t,n)=>(0,r.createElement)(o().Fragment,{key:n},(0,r.createElement)("a",{href:t.term_url},t.term_name),n<e.length-1&&", ")))),Fe=()=>(0,r.createElement)("div",{className:"betterdocs-dashboard-category-body betterdocs-dashboard-no-docs-found"},(0,r.createElement)("div",{className:"empty-cat-img"},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(F.cA,null),(0,r.createElement)("p",{className:"empty-cat-title"},(0,D.__)("No Docs Found","betterdocs"))))),Be=({restoreIDS:e,setLoaderIDS:t,setLoading:n,status:a,onFilterSelect:i,docs:s,isLoading:l,totalItems:c,totalPages:u,setCurrentPage:d,currentPage:p,bulkData:f,setBulkData:h,loaderIDS:m})=>{const{data:g,setData:y}=we();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("table",{className:"betterdocs-dashboard-list-table"},(0,r.createElement)("thead",null,(0,r.createElement)("tr",null,(0,r.createElement)("th",{className:"title"},(0,r.createElement)("span",{className:"betterdocs-dashboard-custom-checkbox"},(0,r.createElement)("input",{id:"check-all",type:"checkbox",readOnly:!0,checked:f?.length>0&&!l,onClick:e=>{0==f?.length?(s?.map((e=>{f?.includes(e?.id)||f?.push(e?.id)})),h([...f])):h([])}}),(0,r.createElement)("label",{htmlFor:"check-all"})),(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,r.createElement)("button",{onClick:()=>{i((e=>(null==e||(e.order="asc"==e.order?"desc":"asc",e.orderby="title"),{...e})))}},(0,D.__)("Title","betterdocs"),(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-icon"},(0,r.createElement)(F.CK,null))))),(0,r.createElement)("th",{className:"author"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Author","betterdocs"))),1==betterdocs_admin?.multiple_kb&&(0,A.applyFilters)("mkb_table_header",""),(0,r.createElement)("th",{className:"doc-category"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Doc Category","betterdocs"))),(0,r.createElement)("th",{className:"doc-tag"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Doc Tag","betterdocs"))),(0,r.createElement)("th",{className:"views"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Views","betterdocs"))),(0,r.createElement)("th",{className:"reaction"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Reaction","betterdocs"))),(0,r.createElement)("th",{className:"date"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,r.createElement)("button",{onClick:()=>{i((e=>(null==e||(e.order="asc"==e.order?"desc":"asc",e.orderby="date"),{...e})))}},(0,D.__)("Date","betterdocs"),(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-icon"},(0,r.createElement)(F.CK,null))))),(0,r.createElement)("th",{className:"action"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Action","betterdocs"))))),(0,r.createElement)("tbody",null,!l&&s?.length>0&&s.map(((t,n)=>{var o;let a=t?.author_info,i=t?.doc_category_info,s=t?.doc_tag_info,l=t?.word_count,c=t?.status,u=null!==(o=t?.total_views)&&void 0!==o?o:0,d=new Date(t.date).toLocaleDateString(),p=t?.reactions,v=null==p?.happy?0:parseInt(p?.happy),b=null==p?.sad?0:parseInt(p?.sad),w=null==p?.normal?0:parseInt(p?.normal),E=v+b+w,x=v>b&&v>w?"happy":b>v&&b>w?"sad":w>b&&w>v?"normal":v==b||v==w?"happy":w==b||w==v?"normal":b==w||b==v?"sad":"all-equal",C=t?.knowledge_base_info;return(0,r.createElement)("tr",{className:t.id===g.docId&&g?.isOpen?"quickEdit-open":"",key:n,onClick:e=>{g?.isListMenuOpen&&y((e=>({...e,isListMenuOpen:!1,docId:t.id})))}},(0,r.createElement)("td",null,(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-title-wrap"},(0,r.createElement)("span",{className:"betterdocs-dashboard-custom-checkbox"},(0,r.createElement)("input",{id:`dashboard-list-item-${t.id}`,type:"checkbox",checked:!!f?.includes(t?.id),onClick:e=>{if(f?.includes(t?.id)){let e=f?.filter((e=>e!=t?.id));h([...e])}else f?.push(t?.id),h([...f])},readOnly:!0}),(0,r.createElement)("label",{htmlFor:`dashboard-list-item-${t.id}`})),(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-title"},(0,r.createElement)("a",{target:"_blank",href:se(t?.id)},null==t.title?.rendered||null==t?.title?.rendered||0==t?.title?.rendered?.length?"(no title) ":(0,ie.decodeEntities)(t.title.rendered)),"publish"!=c&&(0,r.createElement)("span",{className:"status"},`- ${c?.charAt(0).toUpperCase()}${c?.slice(1)}`),(0,r.createElement)("span",{className:"word-count"},"| ",l," ",(0,r.createElement)("span",{className:"word-count-tooltip"},(0,D.__)("Word Count","betterdocs")))))),(0,r.createElement)("td",null,(0,r.createElement)(De,{authorInfo:a})),1==betterdocs_admin?.multiple_kb&&(0,A.applyFilters)("mkb_table_data","",[Re,C]),(0,r.createElement)("td",null,(0,r.createElement)(Ie,{categories:i})),(0,r.createElement)("td",null,(0,r.createElement)(je,{tags:s})),(0,r.createElement)("td",null,(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-views"},(0,r.createElement)("span",null,u))),(0,r.createElement)("td",null,(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-views"},(0,r.createElement)("span",{className:"betterdocs-reactions"},(0,r.createElement)("span",{className:"betterdocs-all-reactions"},"happy"==x&&(0,r.createElement)(F.IS,null),"normal"==x&&(0,r.createElement)(F.QC,null),"sad"==x&&(0,r.createElement)(F.bB,null),"all-equal"==x&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(F.IS,null))),(0,r.createElement)("span",null,E),(0,r.createElement)("ul",{className:"betterdocs-reactions-tooltip"},"happy"==x&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)(F.IS,null),(0,r.createElement)("span",null,v)),(0,r.createElement)("li",null,(0,r.createElement)(F.QC,null),(0,r.createElement)("span",null,w)),(0,r.createElement)("li",null,(0,r.createElement)(F.bB,null),(0,r.createElement)("span",null,b))),"normal"==x&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)(F.IS,null),(0,r.createElement)("span",null,v)),(0,r.createElement)("li",null,(0,r.createElement)(F.QC,null),(0,r.createElement)("span",null,w)),(0,r.createElement)("li",null,(0,r.createElement)(F.bB,null),(0,r.createElement)("span",null,b))),"sad"==x&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)(F.IS,null),(0,r.createElement)("span",null,v)),(0,r.createElement)("li",null,(0,r.createElement)(F.QC,null),(0,r.createElement)("span",null,w)),(0,r.createElement)("li",null,(0,r.createElement)(F.bB,null),(0,r.createElement)("span",null,b))),"all-equal"==x&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)(F.IS,null),(0,r.createElement)("span",null,v)),(0,r.createElement)("li",null,(0,r.createElement)(F.QC,null),(0,r.createElement)("span",null,w)),(0,r.createElement)("li",null,(0,r.createElement)(F.bB,null),(0,r.createElement)("span",null,b))))))),(0,r.createElement)("td",null,(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-date"},(0,r.createElement)("span",null,d))),(0,r.createElement)("td",null,(0,r.createElement)(Le,{key:t.id,doc:t,status:c})),m.includes(t?.id)&&(0,r.createElement)("div",{className:"delete-row"}),e.includes(t?.id)&&(0,r.createElement)("div",{className:"restore-row"}))})),l&&(0,r.createElement)(Pe,null),0===s?.length&&!l&&(0,r.createElement)("tr",{className:"no-docs-found"},(0,r.createElement)("td",{colSpan:"100%"},(0,r.createElement)(Fe,null))))),null!=u&&null!=c&&u>1&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"doc-list-pagination"},(0,r.createElement)("div",{className:"doc-list-count"},sprintf((0,D.__)("Total %d Docs","betterdocs"),c)),(0,r.createElement)("div",{className:"doc-list-pagination-wrap"},(0,r.createElement)(Te.A,{defaultPageSize:20,current:p,total:c,onChange:e=>{f?.length>0&&h([]),n(!0),d((t=>({...t,page:e})))},itemRender:(e,t,n)=>"prev"===t?0===e?o().cloneElement(n,{title:""},(0,r.createElement)(F.rH,null)):o().cloneElement(n,{title:(0,D.__)("Previous Page","betterdocs")},(0,r.createElement)(F.rH,null)):"next"===t?e===Math.ceil(c/20)?o().cloneElement(n,{title:""},(0,r.createElement)(F.j3,null)):o().cloneElement(n,{title:(0,D.__)("Next Page","betterdocs")},(0,r.createElement)(F.j3,null)):n})))))},ze=({setSearchKeyword:e})=>(0,r.createElement)("div",{className:"betterdocs-dashboard-search-wrap"},(0,r.createElement)("div",{className:"betterdocs-dashboard-search-form"},(0,r.createElement)("button",{className:"betterdocs-dashboard-search-btn"},(0,r.createElement)(F.C0,null)),(0,r.createElement)("input",{className:"betterdocs-dashboard-search-field",type:"text",placeholder:"Search Doc",onChange:t=>{e(t?.target?.value)}}))),qe=({setDocuments:e})=>{const{data:t,setData:n}=we(),{docData:o,docId:a}=t,[i,s]=(0,r.useState)("Save"),[l,c]=(0,r.useState)({author:"",title:"",slug:"",comment_status:"",status:"",date:"",password:""}),[u,d]=(0,r.useState)({}),{usersLoading:p,authors:f,authorParams:h,setAuthorParams:m,isNextPageAvailable:g}=Se("authors-list-view",{per_page:10,page:1}),{searchLoading:y,searchedUsers:v,setUserSearchValue:b}=Oe(),[w,E]=(0,r.useState)("");(0,r.useEffect)((()=>{c({author:o?.author,title:o.title.rendered,slug:o.slug,comment_status:o.comment_status,status:o.status,date:o?.date,password:o?.password}),d({value:o.author,label:o.author_info.name}),"private"==o.status?E("private"):E(o?.content?.protected?"password":"none")}),[o]),o?.author_list?.map((e=>({value:e.ID,label:e.display_name})));const x=[{value:"publish",label:(0,D.__)("Published","betterdocs")},{value:"pending",label:(0,D.__)("Pending review","betterdocs")},{value:"draft",label:(0,D.__)("Draft","betterdocs")}];return(0,r.createElement)("div",{className:"betterdocs-quick-edit-panel"},(0,r.createElement)("div",{onClick:()=>n({isOpen:!1}),className:"betterdocs-quick-edit-close"},(0,r.createElement)("span",null,(0,r.createElement)(F.gz,null))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-wrap"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-body"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-header"},(0,r.createElement)("h3",{className:"betterdocs-quick-edit-title"},(0,ie.decodeEntities)(o.title.rendered))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-status"},(0,D.__)("Authors:","betterdocs")),(0,r.createElement)(xe.Ay,{className:"quick-edit-select-fields betterdocs-quick-edit-authors",id:"betterdocs-quick-edit-authors",value:u,onInputChange:e=>{b(e)},onMenuScrollToBottom:e=>{null!=e&&g&&m((e=>({...e,page:h.page+1})))},onChange:e=>{c((t=>({...t,author:e?.value}))),d(e)},filterOption:(e,t)=>e,options:v?.length>0?v:f,classNamePrefix:"quick-edit-select-fields"})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-status"},(0,D.__)("Status:","betterdocs")),(0,r.createElement)(xe.Ay,{className:"quick-edit-select-fields betterdocs-quick-edit-status",id:"betterdocs-quick-edit-status",value:x.find((e=>e.value===l.status)),onChange:e=>{c((t=>({...t,status:e?.value})))},options:x,classNamePrefix:"quick-edit-select-fields"})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-title"},(0,D.__)("Title:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-title",type:"text",value:l.title,onChange:e=>c((t=>({...t,title:e.target.value})))})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-slug"},(0,D.__)("Slug","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-slug",type:"text",placeholder:"Slug",value:l.slug,onChange:e=>c((t=>({...t,slug:e.target.value})))})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-date"},(0,D.__)("Date:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-date",type:"datetime-local",placeholder:"date",value:l?.date,onChange:e=>{c((t=>({...t,date:e?.target?.value})))}})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",null,(0,D.__)("Select Privacy","betterdocs")),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"password",type:"radio",name:"privacy",value:"password",checked:"password"===w,onChange:e=>{E(e.target.value)}}),(0,r.createElement)("label",{htmlFor:"password"},(0,D.__)("Password Protected","betterdocs"))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"private",type:"radio",name:"privacy",value:"private",checked:"private"===w,onChange:e=>{E(e.target.value),l?.hasOwnProperty("password")&&delete l.password,c((e=>({...l,status:"private"})))}}),(0,r.createElement)("label",{htmlFor:"private"},(0,D.__)("Make Private","betterdocs"))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"none",type:"radio",name:"privacy",value:"none",checked:"none"===w,onChange:e=>{E(e.target.value),l?.hasOwnProperty("password")&&delete l.password,c((e=>({...l,title:l?.title?.replace("Private:",""),status:"publish"})))}}),(0,r.createElement)("label",{htmlFor:"none"},(0,D.__)("None","betterdocs"))))),"password"===w&&(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group betterdocs-quick-edit-password-field"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-password"},(0,D.__)("Password:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-password",type:"text",placeholder:"",value:l?.password?.length>0?l?.password:"",onChange:e=>{c((t=>({...t,status:"private"==o?.status?"publish":o?.status,password:e?.target?.value})))}})),1==betterdocs_admin?.multiple_kb&&(0,A.applyFilters)("quick_edit_mkb_filter","",[o,c,Ee]),(0,r.createElement)(Ee,{name:"doc_category",endpoint:"wp/v2/doc_category",doc:o,setQuickEditData:c,label:(0,D.__)("Category","betterdocs"),placeholder:(0,D.__)("Search Category","betterdocs")}),(0,r.createElement)(Ee,{name:"doc_tag",endpoint:"wp/v2/doc_tag",doc:o,setQuickEditData:c,label:(0,D.__)("Tags","betterdocs"),placeholder:(0,D.__)("Search Tags","betterdocs")}),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-comments"},(0,r.createElement)("input",{type:"checkbox",id:o.id,checked:"open"===l.comment_status,onChange:e=>c((t=>({...t,comment_status:e.target.checked?"open":"closed"})))}),(0,r.createElement)("label",{htmlFor:o.id},(0,D.__)("Allow Comments","betterdocs"))))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-footer"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-nav"}),(0,r.createElement)("div",{className:"betterdocs-quick-edit-submit"},(0,r.createElement)("button",{type:"submit",className:"betterdocs-quick-edit-submit-btn",onClick:async t=>{t.preventDefault(),s("Saving...");const n=await wp.apiFetch({path:`/wp/v2/docs/${o.id}`,method:"POST",data:l});null!=n?(e((e=>{let t=e?.map((e=>e?.id==a?n:e));return[...t]})),s("Save"),Ce.oR.success((0,D.__)("Saved Successfully","betterdocs"))):(s("Save"),Ce.oR.error((0,D.__)("Error While Saving","betterdocs")))}},i)))))};var Ue=n(1419),He=n.n(Ue);const Ve=({post_status:e})=>{const[t,n]=(0,i.KC)(),[o,a]=(0,r.useState)([]),{data:s,setData:l}=we(),[c,u]=(0,r.useState)(void 0);let[d,f]=(0,r.useState)([]),[h,m]=(0,r.useState)([]);const[y,v]=(0,r.useState)(""),b=_e(y),[w,E]=(0,r.useState)({per_page:20,status:e,page:1,...""!=t?{knowledge_base_slug:t}:{}}),{data:x,isLoading:C,error:_,totalPages:S,totalItems:O,setRefetch:k,setIsLoading:N,setData:M}=L({path:(0,p.addQueryArgs)("/wp/v2/docs",w),parse:!1}),A=(0,i.Zp)(),{quickAction:I,docId:j}=s;return(0,r.useEffect)((()=>{if(!C){let e;e=""!=b?{...""!=c?c:{},page:1,per_page:20,status:"any",search:b}:{...""!=c?c:{},page:1,status:"any",per_page:20},N(!0),E({...e})}}),[b]),(0,r.useEffect)((()=>{if(!C){let t={page:1,status:e,per_page:20,page:1};E((e=>(N(!0),{...t})))}o?.length>0&&a([])}),[e]),(0,r.useEffect)((()=>{C||"trash"!=e&&E((e=>(""==t?null!=e.knowledge_base_slug&&(N(!0),delete e.knowledge_base_slug):(N(!0),e.knowledge_base_slug=t),{...w,...e})))}),[t,e]),(0,r.useEffect)((()=>{if(null!=I){let{action:t,docId:r,forceDelete:i}=I;if("trash"==t&&(h.push(r),m([...h]),wp.apiFetch({path:`/wp/v2/docs/${r}`,method:"DELETE"}).then((e=>{if(null!=e){let e=x?.filter((e=>e?.id!=r));"function"==typeof n&&n(!0),M([...e]),setTimeout((()=>{m([])}),1e3),l((e=>({...e,quickAction:{}}))),0==e?.length&&(N(!0),k(!0))}})).catch((e=>{l((e=>({...e,quickAction:{}}))),setTimeout((()=>{m([])}),1e3)}))),"permanent-delete"==t&&He().fire({text:(0,D.__)("Are you sure you want to permanently delete this post?","betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,D.__)("Yes","betterdocs"),cancelButtonText:(0,D.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e?.isConfirmed&&(h.push(r),m([...h]),wp.apiFetch({path:`/wp/v2/docs/${r}`,method:"DELETE",data:{force:!0}}).then((e=>{if(null!=e){let e=x?.filter((e=>e?.id!=r));"function"==typeof n&&n(!0),M([...e]),setTimeout((()=>{m([])}),1e3),l((e=>({...e,quickAction:{}}))),0==e?.length&&1==S?(E((e=>({...e,status:"any",page:1}))),A(g("betterdocs-admin",{mode:"list",post_status:"any"}))):0==e?.length&&(N(!0),k(!0))}})).catch((e=>{Ce.oR.error((0,D.__)("Failed To Delete Permanently","betterdocs")),l((e=>({...e,quickAction:{}}))),setTimeout((()=>{m([])}),1e3)})))})),"bulk-delete"==t){let t={},r=x,s=h;null!=i&&(t.force=!!i);for(let a of o)wp.apiFetch({path:`/wp/v2/docs/${a}`,method:"DELETE",data:t}).then((t=>{null!=t&&(r=r?.filter((e=>e?.id!=a)),s=s?.filter((e=>e!=a)),("function"==typeof n&&"any"==e||"function"==typeof n&&"trash"==e||"function"==typeof n&&null==e)&&n(!0),M([...r]),m([...s]),0==r?.length&&"any"==e&&(N(!0),k(!0)),0==r?.length&&"trash"==e&&1==S?(E((e=>({...e,status:"any",page:1}))),A(g("betterdocs-admin",{mode:"list",post_status:"any"}))):0==r?.length&&"trash"==e&&(N(!0),k(!0)))}));a([]),l((e=>({...e,quickAction:{}})))}if("restore"==t){let e={status:"publish"};d.push(r),f([...d]),wp.apiFetch({path:`/wp/v2/docs/${r}`,method:"POST",data:e}).then((e=>{if(null!=e){let e=x?.filter((e=>e?.id!=r));"function"==typeof n&&n(!0),M([...e]),l((e=>({...e,quickAction:{}}))),setTimeout((()=>{f([])}),1e3),0==e?.length&&1==S?(E((e=>({...e,status:"any",page:1}))),A(g("betterdocs-admin",{mode:"list",post_status:"any"}))):0==e?.length&&(N(!0),k(!0))}})).catch((e=>{setTimeout((()=>{f([])}),1e3),l((e=>({...e,quickAction:{}})))}))}if("bulk-restore"==t){let t={status:"publish"},r=x,i=d;for(let a of o)wp.apiFetch({path:`/wp/v2/docs/${a}`,method:"POST",data:t}).then((t=>{null!=t&&(r=r?.filter((e=>e?.id!=a)),i=i?.filter((e=>e!=a)),"function"==typeof n&&n(!0),M([...r]),f([...i]),0==r?.length&&"trash"==e&&1==S?(E((e=>({...e,status:"any",page:1}))),A(g("betterdocs-admin",{mode:"list",post_status:"any"}))):0==r?.length&&"trash"==e&&(N(!0),k(!0)))}));a([]),l((e=>({...e,quickAction:{}})))}}}),[I]),(0,r.useEffect)((()=>{let e={...w,page:1,per_page:20,status:"any"};E((t=>null!=c&&Object.keys(c)?.length>0?(e=le(t,c,["author","doc_category","year_month","status","order"]),N(!0),{...e,...c}):null!=c&&0==Object.keys(c)?.length?(e=le(t,c,["author","doc_category","year_month","status","order"]),N(!0),{...e,status:"any"}):t))}),[c]),(0,r.createElement)("section",{className:"betterdocs-dashboard-body betterdocs-dashboard-category-list",onClick:e=>{s?.isListMenuOpen&&l((e=>({...e,isListMenuOpen:!1})))}},(0,r.createElement)("div",{className:"betterdocs-dashboard-container"},"trash"!=e&&(0,r.createElement)("div",{className:"betterdocs-dashboard-category-list-filter"},(0,r.createElement)("div",{className:"betterdocs-row"},(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-3"},(0,r.createElement)(ze,{setSearchKeyword:v})),(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-9"},(0,r.createElement)("div",{className:"betterdocs-dashboard-filter-wrap"},(0,r.createElement)(Ae,{onFilterSelect:u}))))),o?.length>0&&(0,r.createElement)("div",{className:"betterdocs-dashboard-bulk-option"},(0,r.createElement)("div",{className:"betterdocs-row"},(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-6"},(0,r.createElement)("h5",{className:"bulk-option-item-count"},(0,r.createElement)("span",null,`${o?.length} ${1==o?.length?(0,D.__)("Item Selected","betterdocs"):(0,D.__)("Items Selected","betetrdocs")}`))),(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-6"},(0,r.createElement)("div",{className:"betterdocs-dashboard-bulk-option-actions"},(0,r.createElement)("button",{className:"bulk-option-action-btn",type:"button",onClick:t=>{He().fire({text:"any"==e?(0,D.__)(`Are you sure you want to move ${o?.length} Docs to the trash?`,"betterdocs"):(0,D.__)(`Are you sure you want to permanently delete ${o?.length} Docs?`,"betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,D.__)("Yes","betterdocs"),cancelButtonText:(0,D.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t?.isConfirmed&&(m([...o]),l((t=>({...t,quickAction:{action:"bulk-delete",forceDelete:"trash"==e}}))))}))}},"trash"==e?(0,D.__)("Delete Permanently","betterdocs"):(0,D.__)("Move to Trash","betterdocs")),"trash"==e&&(0,r.createElement)("button",{className:"bulk-option-action-btn",type:"button",onClick:e=>{He().fire({text:(0,D.__)(`Are you sure you want to restore ${o?.length} Docs ?`,"betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,D.__)("Yes","betterdocs"),cancelButtonText:(0,D.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e?.isConfirmed&&(f([...o]),l((e=>({...e,quickAction:{action:"bulk-restore"}}))))}))}},(0,D.__)("Restore","betterdocs")))))),(0,r.createElement)("div",{className:"betterdocs-dashboard-item-list-wrap"},(0,r.createElement)(Be,{setLoading:N,onFilterSelect:u,docs:x,totalItems:O,totalPages:S,setCurrentPage:E,currentPage:w?.page,bulkData:o,setBulkData:a,status:e,setLoaderIDS:m,loaderIDS:h,isLoading:C,restoreIDS:d}),s?.isOpen&&(0,r.createElement)(qe,{setDocuments:M}))))};var Ke=n(5849);const Ge=()=>{const[e]=M(),[t,n]=(0,r.useState)({isOpen:!1,isListMenuOpen:!1,quickAction:{}});let o={};if(e.has("kb")&&""!==e.get("kb")&&(o.kb=e.get("kb")),e.has("post_status")&&""!=e.get("post_status")&&(o.post_status=e.get("post_status")),null==betterdocs_admin?.dashboard_mode||""==betterdocs_admin?.dashboard_mode||e.has("mode")||e.set("mode",betterdocs_admin?.dashboard_mode),!e.has("mode")||"grid"===e.get("mode")){const e=new Ke.E;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Y.Ht,{client:e},(0,r.createElement)(Ce.N9,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"colored",limit:4}),(0,r.createElement)(Ne,{...o})))}const a=new Ke.E;return(0,r.createElement)(Y.Ht,{client:a},(0,r.createElement)(be,{value:{data:t,setData:n}},(0,r.createElement)(Ce.N9,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"colored",limit:4}),(0,r.createElement)(Ve,{...o})))};var We=n(301),Ye=n(2736);function Qe(e){return t=>!!t.type&&t.type.tabsRole===e}const $e=Qe("Tab"),Ze=Qe("TabList"),Je=Qe("TabPanel");function Xe(e,t){return r.Children.map(e,(e=>null===e?null:function(e){return $e(e)||Ze(e)||Je(e)}(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children?(0,r.cloneElement)(e,Object.assign({},e.props,{children:Xe(e.props.children,t)})):e))}function et(e,t){return r.Children.forEach(e,(e=>{null!==e&&($e(e)||Je(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children&&(Ze(e)&&t(e),et(e.props.children,t)))}))}function tt(e,t,n){let r,o=0,a=0,i=!1;const s=[];return et(e[t],(e=>{Ze(e)&&(e.props&&e.props.children&&"object"==typeof e.props.children&&et(e.props.children,(e=>s.push(e))),i&&(r=new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")),i=!0),$e(e)?(i&&-1!==s.indexOf(e)||(r=new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")),o++):Je(e)&&a++})),r||o===a||(r=new Error(`There should be an equal number of 'Tab' and 'TabPanel' in \`${n}\`. Received ${o} 'Tab' and ${a} 'TabPanel'.`)),r}function nt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=nt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const rt=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=nt(e))&&(r&&(r+=" "),r+=t);return r};function ot(e){let t=0;return et(e,(e=>{$e(e)&&t++})),t}const at=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys","disableLeftRightKeys"];function it(e){return e&&"getAttribute"in e}function st(e){return it(e)&&e.getAttribute("data-rttab")}function lt(e){return it(e)&&"true"===e.getAttribute("aria-disabled")}let ct;const ut={className:"react-tabs",focus:!1},dt={children:tt},pt=e=>{(0,Ye.checkPropTypes)(dt,e,"prop","UncontrolledTabs");let t=(0,r.useRef)([]),n=(0,r.useRef)([]);const a=(0,r.useRef)();function i(t,n){if(t<0||t>=c())return;const{onSelect:r,selectedIndex:o}=e;r(t,o,n)}function s(e){const t=c();for(let n=e+1;n<t;n++)if(!lt(u(n)))return n;for(let t=0;t<e;t++)if(!lt(u(t)))return t;return e}function l(e){let t=e;for(;t--;)if(!lt(u(t)))return t;for(t=c();t-- >e;)if(!lt(u(t)))return t;return e}function c(){const{children:t}=e;return ot(t)}function u(e){return t.current[`tabs-${e}`]}function d(e){let t=e.target;do{if(p(t)){if(lt(t))return;return void i([].slice.call(t.parentNode.children).filter(st).indexOf(t),e)}}while(null!=(t=t.parentNode))}function p(e){if(!st(e))return!1;let t=e.parentElement;do{if(t===a.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}const f=Object.assign({},ut,e),{className:h,domRef:m}=f,g=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(f,at);return o().createElement("div",Object.assign({},g,{className:rt(h),onClick:d,onKeyDown:function(t){const{direction:n,disableUpDownKeys:r,disableLeftRightKeys:o}=e;if(p(t.target)){let{selectedIndex:a}=e,p=!1,f=!1;"Space"!==t.code&&32!==t.keyCode&&"Enter"!==t.code&&13!==t.keyCode||(p=!0,f=!1,d(t)),(o||37!==t.keyCode&&"ArrowLeft"!==t.code)&&(r||38!==t.keyCode&&"ArrowUp"!==t.code)?(o||39!==t.keyCode&&"ArrowRight"!==t.code)&&(r||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(a=function(){let e=c();for(;e--;)if(!lt(u(e)))return e;return null}(),p=!0,f=!0):36!==t.keyCode&&"Home"!==t.code||(a=function(){const e=c();for(let t=0;t<e;t++)if(!lt(u(t)))return t;return null}(),p=!0,f=!0):(a="rtl"===n?l(a):s(a),p=!0,f=!0):(a="rtl"===n?s(a):l(a),p=!0,f=!0),p&&t.preventDefault(),f&&i(a,t)}},ref:e=>{a.current=e,m&&m(e)},"data-rttabs":!0}),function(){let a=0;const{children:i,disabledTabClassName:s,focus:l,forceRenderTabPanel:d,selectedIndex:p,selectedTabClassName:f,selectedTabPanelClassName:h,environment:m}=e;n.current=n.current||[];let g=n.current.length-c();const y=(0,r.useId)();for(;g++<0;)n.current.push(`${y}${n.current.length}`);return Xe(i,(e=>{let i=e;if(Ze(e)){let a=0,c=!1;null==ct&&function(e){const t=e||("undefined"!=typeof window?window:void 0);try{ct=!(void 0===t||!t.document||!t.document.activeElement)}catch(e){ct=!1}}(m);const d=m||("undefined"!=typeof window?window:void 0);ct&&d&&(c=o().Children.toArray(e.props.children).filter($e).some(((e,t)=>d.document.activeElement===u(t)))),i=(0,r.cloneElement)(e,{children:Xe(e.props.children,(e=>{const o=`tabs-${a}`,i=p===a,u={tabRef:e=>{t.current[o]=e},id:n.current[a],selected:i,focus:i&&(l||c)};return f&&(u.selectedClassName=f),s&&(u.disabledClassName=s),a++,(0,r.cloneElement)(e,u)}))})}else if(Je(e)){const t={id:n.current[a],selected:p===a};d&&(t.forceRender=d),h&&(t.selectedClassName=h),a++,i=(0,r.cloneElement)(e,t)}return i}))}())},ft=["children","defaultFocus","defaultIndex","focusTabOnClick","onSelect"],ht={children:tt,onSelect:function(e,t,n,r,o){const a=e[t],i=o||t;let s=null;return a&&"function"!=typeof a?s=new Error(`Invalid ${r} \`${i}\` of type \`${typeof a}\` supplied to \`${n}\`, expected \`function\`.`):null!=e.selectedIndex&&null==a&&(s=new Error(`The ${r} \`${i}\` is marked as required in \`${n}\`, but its value is \`undefined\` or \`null\`.\n\`onSelect\` is required when \`selectedIndex\` is also set. Not doing so will make the tabs not do anything, as \`selectedIndex\` indicates that you want to handle the selected tab yourself.\nIf you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)),s},selectedIndex:function(e,t,n,r,o){const a=e[t],i=o||t;let s=null;if(null!=a&&"number"!=typeof a)s=new Error(`Invalid ${r} \`${i}\` of type \`${typeof a}\` supplied to \`${n}\`, expected \`number\`.`);else if(null!=e.defaultIndex&&null!=a)return new Error(`The ${r} \`${i}\` cannot be used together with \`defaultIndex\` in \`${n}\`.\nEither remove \`${i}\` to let \`${n}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);return s}},mt={defaultFocus:!1,focusTabOnClick:!0,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1,disableLeftRightKeys:!1},gt=e=>{(0,Ye.checkPropTypes)(ht,e,"prop","Tabs");const t=Object.assign({},mt,e),{children:n,defaultFocus:a,defaultIndex:i,focusTabOnClick:s,onSelect:l}=t,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(t,ft),[u,d]=(0,r.useState)(a),[p]=(0,r.useState)((e=>null===e.selectedIndex?1:0)(c)),[f,h]=(0,r.useState)(1===p?i||0:null);if((0,r.useEffect)((()=>{d(!1)}),[]),1===p){const e=ot(n);(0,r.useEffect)((()=>{if(null!=f){const t=Math.max(0,e-1);h(Math.min(f,t))}}),[e])}let m=Object.assign({},e,c);return m.focus=u,m.onSelect=(e,t,n)=>{"function"==typeof l&&!1===l(e,t,n)||(s&&d(!0),1===p&&h(e))},null!=f&&(m.selectedIndex=f),delete m.defaultFocus,delete m.defaultIndex,delete m.focusTabOnClick,o().createElement(pt,m,n)};gt.tabsRole="Tabs";const yt=gt,vt=["children","className"],bt={className:"react-tabs__tab-list"},wt=e=>{const t=Object.assign({},bt,e),{children:n,className:r}=t,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(t,vt);return o().createElement("ul",Object.assign({},a,{className:rt(r),role:"tablist"}),n)};wt.tabsRole="TabList";const Et=wt,xt=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"],Ct="react-tabs__tab",_t={className:Ct,disabledClassName:`${Ct}--disabled`,focus:!1,id:null,selected:!1,selectedClassName:`${Ct}--selected`},St=e=>{let t=(0,r.useRef)();const n=Object.assign({},_t,e),{children:a,className:i,disabled:s,disabledClassName:l,focus:c,id:u,selected:d,selectedClassName:p,tabIndex:f,tabRef:h}=n,m=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(n,xt);return(0,r.useEffect)((()=>{d&&c&&t.current.focus()}),[d,c]),o().createElement("li",Object.assign({},m,{className:rt(i,{[p]:d,[l]:s}),ref:e=>{t.current=e,h&&h(e)},role:"tab",id:`tab${u}`,"aria-selected":d?"true":"false","aria-disabled":s?"true":"false","aria-controls":`panel${u}`,tabIndex:f||(d?"0":null),"data-rttab":!0}),a)};St.tabsRole="Tab";const Ot=St,kt=["children","className","forceRender","id","selected","selectedClassName"],Nt="react-tabs__tab-panel",Mt={className:Nt,forceRender:!1,selectedClassName:`${Nt}--selected`},At=e=>{const t=Object.assign({},Mt,e),{children:n,className:r,forceRender:a,id:i,selected:s,selectedClassName:l}=t,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(t,kt);return o().createElement("div",Object.assign({},c,{className:rt(r,{[l]:s}),role:"tabpanel",id:`panel${i}`,"aria-labelledby":`tab${i}`}),a||s?n:null)};At.tabsRole="TabPanel";const Dt=At,It=()=>(0,r.createElement)("div",{className:"overlay"},(0,r.createElement)("div",{className:"overlay-content"},(0,r.createElement)("h3",null,(0,D.__)("Unlock Analytics With BetterDocs PRO","betterdocs")," ",(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/lock.png`,id:"img-teaser",alt:""})),(0,r.createElement)("p",{className:"teaser-text teaser-desc"},(0,D.__)("Scale your support tickets tracking the performance of your knowledge base BetterDocs Analytics.","betterdocs")),(0,r.createElement)("ul",{className:"analytics-list"},(0,r.createElement)("li",null,(0,r.createElement)("div",{className:"analytics-item"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/graph.png`,id:"img-teaser-1",alt:""}),(0,r.createElement)("p",{className:"teaser-text"},(0,D.__)("Measure performance of your knowledge base","betterdocs")))),(0,r.createElement)("li",null,(0,r.createElement)("div",{className:"analytics-item"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/magifier.png`,id:"img-teaser-2",alt:""}),(0,r.createElement)("p",{className:"teaser-text"},(0,D.__)("Identify most viewed docs and doc categories","betterdocs")))),(0,r.createElement)("li",null,(0,r.createElement)("div",{className:"analytics-item"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/globe.png`,id:"img-teaser-4",alt:""}),(0,r.createElement)("p",{className:"teaser-text"},(0,D.__)("Identify most used keywords searched by site visitors","betterdocs")," ")))),(0,r.createElement)("div",{className:"analytics-upgrade-btn"},(0,r.createElement)("a",{href:"https://betterdocs.co/upgrade"},(0,D.__)("Upgrade To BetterDocs PRO","betterdocs"))))),jt=()=>{const[e,t]=(0,r.useState)(0),n=o().useRef();return(0,r.createElement)("div",{className:"betterdocs-dashboard-container",ref:n},(0,r.createElement)(yt,{selectedIndex:e,onSelect:e=>(e=>{t(e)})(e),className:"betterdocs-analytics-tab-wrapper"},(0,r.createElement)(Et,{className:"betterdocs-analytics-tab-menu"},(0,r.createElement)(Ot,{className:"betterdocs-analytics-tab-item",selectedClassName:"active"},(0,D.__)("Overview","betterdocs-pro")),(0,r.createElement)(Ot,{className:"betterdocs-analytics-tab-item",selectedClassName:"active"},(0,D.__)("Views","betterdocs-pro")),(0,r.createElement)(Ot,{className:"betterdocs-analytics-tab-item",selectedClassName:"active"},(0,D.__)("Reactions","betterdocs-pro")),(0,r.createElement)(Ot,{className:"betterdocs-analytics-tab-item",selectedClassName:"active"},(0,D.__)("Search","betterdocs-pro"))),(0,r.createElement)(Dt,{className:"betterdocs-analytics-tab-content",id:"betterdocs-analytics-overview"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/overview.png`,alt:"betterdocs-overview"}),(0,r.createElement)(It,null)),(0,r.createElement)(Dt,{className:"betterdocs-analytics-tab-content",id:"betterdocs-analytics-view"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/views.png`,alt:"betterdocs-view"}),(0,r.createElement)(It,null)),(0,r.createElement)(Dt,{className:"betterdocs-analytics-tab-content",id:"betterdocs-analytics-reactions"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/reactions.png`,alt:"betterdocs-reactions"}),(0,r.createElement)(It,null)),(0,r.createElement)(Dt,{className:"betterdocs-analytics-tab-content",id:"betterdocs-analytics-search"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/search.png`,alt:"betterdocs-search"}),(0,r.createElement)(It,null))))},Tt=new Ke.E,Lt=()=>(0,r.createElement)("div",{className:"betterdocs-admin-analytics-wrapper betterdocs-analytics-teaser"},(0,r.createElement)(Y.Ht,{client:Tt},(0,r.createElement)(jt,null)));var Pt=n(5878);const Rt=({Component:e,fallback:t})=>(0,r.createElement)(r.Suspense,{fallback:null!=t?t:"Loading..."},(0,r.createElement)(e,null)),Ft=()=>(0,r.createElement)("a",{href:"post-new.php?post_type=docs",className:"admin-action-button"},(0,r.createElement)("span",{className:"action-button-icon"},(0,r.createElement)(F.uI,null)),(0,r.createElement)("span",{className:"action-button-icon-text"},(0,D.__)("Add New Docs","betterdocs")));(0,A.addFilter)("betterdocs_admin_header_action","betterdocs",((e,t)=>{switch(t){case"betterdocs-admin":return(0,r.createElement)(Ft,null);case"betterdocs-faq":return(0,r.createElement)(V,null);case"betterdocs-glossaries":return(0,r.createElement)(G,null)}return e})),(0,A.addFilter)("betterdocs_admin_header_title","betterdocs",((e,t)=>{switch(t){case"betterdocs-faq":return"FAQ Builder";case"betterdocs-admin":return"All Docs";case"betterdocs-settings":return"Settings";case"betterdocs-analytics":return"Analytics";case"betterdocs-glossaries":return"Glossaries"}return e})),(0,A.addFilter)("betterdocs_admin_header_action_icons","betterdocs",((e,t,n,o)=>{let a=[];return null==o&&"betterdocs-admin"===t||"grid"==o&&"betterdocs-admin"===t?(a.push((0,r.createElement)("li",{key:2},(0,r.createElement)(_,{onClick:e=>{betterdocs_admin.dashboard_mode="",j()({method:"POST",path:"betterdocs/v1/dashboard-mode",data:{dashboard_mode:"list"}})},to:g("betterdocs-admin",{mode:"list",post_status:"any"}),className:"betterdocs-dashboard-header-action betterdocs-dashboard-header-action-list "+(n.search.includes("mode=list")?"active":"")},(0,r.createElement)(F.uM,null)))),[...a,...e]):"list"==o&&"betterdocs-admin"===t?(a.push((0,r.createElement)("li",{key:3},(0,r.createElement)(_,{onClick:e=>{betterdocs_admin.dashboard_mode="",j()({method:"POST",path:"betterdocs/v1/dashboard-mode",data:{dashboard_mode:"grid"}})},to:g("betterdocs-admin",{mode:"grid"},[],!1),className:"betterdocs-dashboard-header-action betterdocs-dashboard-header-action-grid "+(n.search.includes("mode=grid")?"active":"")},(0,r.createElement)(F.Ut,null)))),[...a,...e]):e}));const Bt=(e,t)=>t?.children?t.children.reduce(Bt,e):(t?.path&&e.push(t.path),e),zt=()=>{const[e]=M(),t=(0,A.applyFilters)("betterdocs_routes_wrapper",[{element:(0,r.createElement)(H.C,null,(0,r.createElement)(q,null)),children:(0,A.applyFilters)("betterdocs_routes",[{path:"betterdocs-admin",element:(0,r.createElement)(Rt,{Component:Ge}),exact:!0,index:!0},{path:"betterdocs-settings",element:(0,r.createElement)(Rt,{Component:W.A}),exact:!0},{path:"betterdocs-faq",element:(0,r.createElement)(Rt,{Component:We.A}),exact:!0},{path:"betterdocs-analytics",element:(0,r.createElement)(Rt,{Component:Lt}),exact:!0},{path:"betterdocs-glossaries",element:(0,r.createElement)(Rt,{Component:Pt.A}),exact:!0}])}]),n=t.reduce(Bt,[]),o=function(t){const r=this.getAttribute("href"),o=this.getAttribute("class"),a=r.split("=")[1];let i={page:a};if(1==betterdocs_admin.betterdocs_pro_plugin&&1==betterdocs_admin.analytics_older&&"betterdocs-analytics"==o)return t.preventDefault(),void(window.location.href=r);if(n.includes(a)&&(t.preventDefault(),r)){e.get("mode")&&(i.mode=e.get("mode"));let t=(0,p.addQueryArgs)(window.location.href?.split("?")[0],i);m.push(t);const n=this.parentNode;let r=function(e){let t=[];if(!e.parentNode)return t;let n=e.parentNode.firstChild;for(;n;)1===n.nodeType&&n!==e&&t.push(n),n=n.nextSibling;return t}(n);r.forEach((e=>{e.classList.remove("current")})),n.classList.add("current"),document.body.classList.add("betterdocs_page_"+a)}};return(0,r.useEffect)((()=>{const e=document.querySelectorAll("#toplevel_page_betterdocs-admin a");return e.forEach((e=>{e.removeEventListener("click",o),e.addEventListener("click",o)})),()=>{e.forEach((e=>{e.removeEventListener("click",o)}))}}),[n]),(0,i.Ye)(t)};n(4259);const qt=document.getElementById("betterdocs-dashboard-app");if(!qt)throw new Error("Failed to find the betterdocs-dashboard-app element");(0,a.H)(qt).render((0,r.createElement)((()=>{const[e,t]=(0,r.useState)({action:m.action,location:m.location});return(0,r.useLayoutEffect)((()=>m.listen(((e,n)=>{t({action:n,location:e})}))),[m]),(0,r.useEffect)((()=>{let t=document.getElementsByClassName("betterdocs-ia");0!==t.length&&("/betterdocs-settings"==e?.location?.pathname&&betterdocsAdminSettings?.values?.enable_disable&&"/betterdocs-settings"==e?.location?.pathname&&betterdocsAdminSettings?.values?.ia_enable_preview?t[0].style.display="block":t[0].style.display="none")}),[e]),(0,r.createElement)(K.K,null,(0,r.createElement)(i.Ix,{location:e.location,basename:"/",navigator:m,navigationType:e.action},(0,r.createElement)(zt,null)))}),null))})()})();
```
