@bigbinary/neeto-editor 1.12.0 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -39,5 +39,5 @@ return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=i.create(
|
|
|
39
39
|
* Released under MIT license <https://lodash.com/license>
|
|
40
40
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
41
41
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
42
|
-
*/!function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,p=2,h=4,f=1,m=2,g=1,y=2,b=4,v=8,w=16,_=32,x=64,E=128,k=256,M=512,D=30,C="...",S=800,N=16,A=1,O=2,T=3,I=1/0,L=9007199254740991,F=17976931348623157e292,j=0/0,z=4294967295,R=z-1,B=z>>>1,P=[["ary",E],["bind",g],["bindKey",y],["curry",v],["curryRight",w],["flip",M],["partial",_],["partialRight",x],["rearg",k]],U="[object Arguments]",$="[object Array]",H="[object AsyncFunction]",W="[object Boolean]",V="[object Date]",q="[object DOMException]",K="[object Error]",G="[object Function]",Y="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",Z="[object Null]",X="[object Object]",ee="[object Promise]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ie="[object String]",oe="[object Symbol]",se="[object Undefined]",ae="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",fe="[object Int16Array]",me="[object Int32Array]",ge="[object Uint8Array]",ye="[object Uint8ClampedArray]",be="[object Uint16Array]",we="[object Uint32Array]",_e=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,Ee=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,De=RegExp(ke.source),Ce=RegExp(Me.source),Se=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Fe=RegExp(Le.source),je=/^\s+/,ze=/\s/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$e=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ke=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,et="\\ud800-\\udfff",tt="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",nt="\\u2700-\\u27bf",rt="a-z\\xdf-\\xf6\\xf8-\\xff",it="A-Z\\xc0-\\xd6\\xd8-\\xde",ot="\\ufe0e\\ufe0f",st="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",at="['’]",lt="["+et+"]",ct="["+st+"]",ut="["+tt+"]",dt="\\d+",pt="["+nt+"]",ht="["+rt+"]",ft="[^"+et+st+dt+nt+rt+it+"]",mt="\\ud83c[\\udffb-\\udfff]",gt="[^"+et+"]",yt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",vt="["+it+"]",wt="\\u200d",_t="(?:"+ht+"|"+ft+")",xt="(?:"+vt+"|"+ft+")",Et="(?:"+at+"(?:d|ll|m|re|s|t|ve))?",kt="(?:"+at+"(?:D|LL|M|RE|S|T|VE))?",Mt="(?:"+ut+"|"+mt+")"+"?",Dt="["+ot+"]?",Ct=Dt+Mt+("(?:"+wt+"(?:"+[gt,yt,bt].join("|")+")"+Dt+Mt+")*"),St="(?:"+[pt,yt,bt].join("|")+")"+Ct,Nt="(?:"+[gt+ut+"?",ut,yt,bt,lt].join("|")+")",At=RegExp(at,"g"),Ot=RegExp(ut,"g"),Tt=RegExp(mt+"(?="+mt+")|"+Nt+Ct,"g"),It=RegExp([vt+"?"+ht+"+"+Et+"(?="+[ct,vt,"$"].join("|")+")",xt+"+"+kt+"(?="+[ct,vt+_t,"$"].join("|")+")",vt+"?"+_t+"+"+Et,vt+"+"+kt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dt,St].join("|"),"g"),Lt=RegExp("["+wt+et+tt+ot+"]"),Ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zt=-1,Rt={};Rt[de]=Rt[pe]=Rt[he]=Rt[fe]=Rt[me]=Rt[ge]=Rt[ye]=Rt[be]=Rt[we]=!0,Rt[U]=Rt[$]=Rt[ce]=Rt[W]=Rt[ue]=Rt[V]=Rt[K]=Rt[G]=Rt[Q]=Rt[J]=Rt[X]=Rt[ne]=Rt[re]=Rt[ie]=Rt[ae]=!1;var Bt={};Bt[U]=Bt[$]=Bt[ce]=Bt[ue]=Bt[W]=Bt[V]=Bt[de]=Bt[pe]=Bt[he]=Bt[fe]=Bt[me]=Bt[Q]=Bt[J]=Bt[X]=Bt[ne]=Bt[re]=Bt[ie]=Bt[oe]=Bt[ge]=Bt[ye]=Bt[be]=Bt[we]=!0,Bt[K]=Bt[G]=Bt[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ut=parseFloat,$t=parseInt,Ht="object"==typeof ve&&ve&&ve.Object===Object&&ve,Wt="object"==typeof self&&self&&self.Object===Object&&self,Vt=Ht||Wt||Function("return this")(),qt=t&&!t.nodeType&&t,Kt=qt&&"object"=="object"&&e&&!e.nodeType&&e,Gt=Kt&&Kt.exports===qt,Yt=Gt&&Ht.process,Qt=function(){try{var e=Kt&&Kt.require&&Kt.require("util").types;return e||Yt&&Yt.binding&&Yt.binding("util")}catch(e){}}(),Jt=Qt&&Qt.isArrayBuffer,Zt=Qt&&Qt.isDate,Xt=Qt&&Qt.isMap,en=Qt&&Qt.isRegExp,tn=Qt&&Qt.isSet,nn=Qt&&Qt.isTypedArray;function rn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function on(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function sn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function an(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ln(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function cn(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function un(e,t){return!!(null==e?0:e.length)&&wn(e,t,0)>-1}function dn(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function pn(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function hn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function fn(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function mn(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yn=kn("length");function bn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function vn(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wn(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):vn(e,xn,n)}function _n(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function xn(e){return e!=e}function En(e,t){var n=null==e?0:e.length;return n?Cn(e,t)/n:j}function kn(e){return function(t){return null==t?n:t[e]}}function Mn(e){return function(t){return null==e?n:e[t]}}function Dn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Cn(e,t){for(var r,i=-1,o=e.length;++i<o;){var s=t(e[i]);s!==n&&(r=r===n?s:r+s)}return r}function Sn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Nn(e){return e?e.slice(0,Kn(e)+1).replace(je,""):e}function An(e){return function(t){return e(t)}}function On(e,t){return pn(t,(function(t){return e[t]}))}function Tn(e,t){return e.has(t)}function In(e,t){for(var n=-1,r=e.length;++n<r&&wn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length;n--&&wn(t,e[n],0)>-1;);return n}function Fn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var jn=Mn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),zn=Mn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Rn(e){return"\\"+Pt[e]}function Bn(e){return Lt.test(e)}function Pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Un(e,t){return function(n){return e(t(n))}}function $n(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[i++]=n)}return o}function Hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Wn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Vn(e){return Bn(e)?function(e){var t=Tt.lastIndex=0;for(;Tt.test(e);)++t;return t}(e):yn(e)}function qn(e){return Bn(e)?function(e){return e.match(Tt)||[]}(e):function(e){return e.split("")}(e)}function Kn(e){for(var t=e.length;t--&&ze.test(e.charAt(t)););return t}var Gn=Mn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Yn=function e(t){var ve,ze=(t=null==t?Vt:Yn.defaults(Vt.Object(),t,Yn.pick(Vt,jt))).Array,et=t.Date,tt=t.Error,nt=t.Function,rt=t.Math,it=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=ze.prototype,ct=nt.prototype,ut=it.prototype,dt=t["__core-js_shared__"],pt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(ve=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+ve:"",gt=ut.toString,yt=pt.call(it),bt=Vt._,vt=ot("^"+pt.call(ht).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=Gt?t.Buffer:n,_t=t.Symbol,xt=t.Uint8Array,Et=wt?wt.allocUnsafe:n,kt=Un(it.getPrototypeOf,it),Mt=it.create,Dt=ut.propertyIsEnumerable,Ct=lt.splice,St=_t?_t.isConcatSpreadable:n,Nt=_t?_t.iterator:n,Tt=_t?_t.toStringTag:n,Lt=function(){try{var e=Vo(it,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==Vt.clearTimeout&&t.clearTimeout,Ht=et&&et.now!==Vt.Date.now&&et.now,Wt=t.setTimeout!==Vt.setTimeout&&t.setTimeout,qt=rt.ceil,Kt=rt.floor,Yt=it.getOwnPropertySymbols,Qt=wt?wt.isBuffer:n,yn=t.isFinite,Mn=lt.join,Qn=Un(it.keys,it),Jn=rt.max,Zn=rt.min,Xn=et.now,er=t.parseInt,tr=rt.random,nr=lt.reverse,rr=Vo(t,"DataView"),ir=Vo(t,"Map"),or=Vo(t,"Promise"),sr=Vo(t,"Set"),ar=Vo(t,"WeakMap"),lr=Vo(it,"create"),cr=ar&&new ar,ur={},dr=bs(rr),pr=bs(ir),hr=bs(or),fr=bs(sr),mr=bs(ar),gr=_t?_t.prototype:n,yr=gr?gr.valueOf:n,br=gr?gr.toString:n;function vr(e){if(Fa(e)&&!ka(e)&&!(e instanceof Er)){if(e instanceof xr)return e;if(ht.call(e,"__wrapped__"))return vs(e)}return new xr(e)}var wr=function(){function e(){}return function(t){if(!La(t))return{};if(Mt)return Mt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function _r(){}function xr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function kr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Dr;++t<n;)this.add(e[t])}function Sr(e){var t=this.__data__=new Mr(e);this.size=t.size}function Nr(e,t){var n=ka(e),r=!n&&Ea(e),i=!n&&!r&&Sa(e),o=!n&&!r&&!i&&Ha(e),s=n||r||i||o,a=s?Sn(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zo(c,l))||a.push(c);return a}function Ar(e){var t=e.length;return t?e[Ci(0,t-1)]:n}function Or(e,t){return ms(lo(e),Pr(t,0,e.length))}function Tr(e){return ms(lo(e))}function Ir(e,t,r){(r!==n&&!wa(e[t],r)||r===n&&!(t in e))&&Rr(e,t,r)}function Lr(e,t,r){var i=e[t];ht.call(e,t)&&wa(i,r)&&(r!==n||t in e)||Rr(e,t,r)}function Fr(e,t){for(var n=e.length;n--;)if(wa(e[n][0],t))return n;return-1}function jr(e,t,n,r){return Vr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function zr(e,t){return e&&co(t,dl(t),e)}function Rr(e,t,n){"__proto__"==t&&Lt?Lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Br(e,t){for(var r=-1,i=t.length,o=ze(i),s=null==e;++r<i;)o[r]=s?n:sl(e,t[r]);return o}function Pr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function Ur(e,t,r,i,o,s){var a,l=t&d,c=t&p,u=t&h;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!La(e))return e;var f=ka(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return lo(e,a)}else{var m=Go(e),g=m==G||m==Y;if(Sa(e))return no(e,l);if(m==X||m==U||g&&!o){if(a=c||g?{}:Qo(e),!l)return c?function(e,t){return co(e,Ko(e),t)}(e,function(e,t){return e&&co(t,pl(t),e)}(a,e)):function(e,t){return co(e,qo(e),t)}(e,zr(a,e))}else{if(!Bt[m])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case ce:return ro(e);case W:case V:return new r(+e);case ue:return function(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case pe:case he:case fe:case me:case ge:case ye:case be:case we:return io(e,n);case Q:return new r;case J:case ie:return new r(e);case ne:return function(e){var t=new e.constructor(e.source,Ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new r;case oe:return i=e,yr?it(yr.call(i)):{}}var i}(e,m,l)}}s||(s=new Sr);var y=s.get(e);if(y)return y;s.set(e,a),Pa(e)?e.forEach((function(n){a.add(Ur(n,t,r,n,e,s))})):ja(e)&&e.forEach((function(n,i){a.set(i,Ur(n,t,r,i,e,s))}));var b=f?n:(u?c?Ro:zo:c?pl:dl)(e);return sn(b||e,(function(n,i){b&&(n=e[i=n]),Lr(a,i,Ur(n,t,r,i,e,s))})),a}function $r(e,t,r){var i=r.length;if(null==e)return!i;for(e=it(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function Hr(e,t,r){if("function"!=typeof e)throw new at(s);return ds((function(){e.apply(n,r)}),t)}function Wr(e,t,n,r){var o=-1,s=un,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=pn(t,An(n))),r?(s=dn,a=!1):t.length>=i&&(s=Tn,a=!1,t=new Cr(t));e:for(;++o<l;){var d=e[o],p=null==n?d:n(d);if(d=r||0!==d?d:0,a&&p==p){for(var h=u;h--;)if(t[h]===p)continue e;c.push(d)}else s(t,p,r)||c.push(d)}return c}vr.templateSettings={escape:Se,evaluate:Ne,interpolate:Ae,variable:"",imports:{_:vr}},vr.prototype=_r.prototype,vr.prototype.constructor=vr,xr.prototype=wr(_r.prototype),xr.prototype.constructor=xr,Er.prototype=wr(_r.prototype),Er.prototype.constructor=Er,kr.prototype.clear=function(){this.__data__=lr?lr(null):{},this.size=0},kr.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},kr.prototype.get=function(e){var t=this.__data__;if(lr){var r=t[e];return r===l?n:r}return ht.call(t,e)?t[e]:n},kr.prototype.has=function(e){var t=this.__data__;return lr?t[e]!==n:ht.call(t,e)},kr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lr&&t===n?l:t,this},Mr.prototype.clear=function(){this.__data__=[],this.size=0},Mr.prototype["delete"]=function(e){var t=this.__data__,n=Fr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ct.call(t,n,1),--this.size,!0)},Mr.prototype.get=function(e){var t=this.__data__,r=Fr(t,e);return r<0?n:t[r][1]},Mr.prototype.has=function(e){return Fr(this.__data__,e)>-1},Mr.prototype.set=function(e,t){var n=this.__data__,r=Fr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dr.prototype.clear=function(){this.size=0,this.__data__={hash:new kr,map:new(ir||Mr),string:new kr}},Dr.prototype["delete"]=function(e){var t=Ho(this,e)["delete"](e);return this.size-=t?1:0,t},Dr.prototype.get=function(e){return Ho(this,e).get(e)},Dr.prototype.has=function(e){return Ho(this,e).has(e)},Dr.prototype.set=function(e,t){var n=Ho(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Cr.prototype.add=Cr.prototype.push=function(e){return this.__data__.set(e,l),this},Cr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.clear=function(){this.__data__=new Mr,this.size=0},Sr.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Sr.prototype.get=function(e){return this.__data__.get(e)},Sr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!ir||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dr(r)}return n.set(e,t),this.size=n.size,this};var Vr=ho(Xr),qr=ho(ei,!0);function Kr(e,t){var n=!0;return Vr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function Gr(e,t,r){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(l===n?a==a&&!$a(a):r(a,l)))var l=a,c=s}return c}function Yr(e,t){var n=[];return Vr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Qr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=Jo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qr(a,t-1,n,r,i):hn(i,a):r||(i[i.length]=a)}return i}var Jr=fo(),Zr=fo(!0);function Xr(e,t){return e&&Jr(e,t,dl)}function ei(e,t){return e&&Zr(e,t,dl)}function ti(e,t){return cn(t,(function(t){return Oa(e[t])}))}function ni(e,t){for(var r=0,i=(t=Zi(t,e)).length;null!=e&&r<i;)e=e[ys(t[r++])];return r&&r==i?e:n}function ri(e,t,n){var r=t(e);return ka(e)?r:hn(r,n(e))}function ii(e){return null==e?e===n?se:Z:Tt&&Tt in it(e)?function(e){var t=ht.call(e,Tt),r=e[Tt];try{e[Tt]=n;var i=!0}catch(e){}var o=gt.call(e);i&&(t?e[Tt]=r:delete e[Tt]);return o}(e):function(e){return gt.call(e)}(e)}function oi(e,t){return e>t}function si(e,t){return null!=e&&ht.call(e,t)}function ai(e,t){return null!=e&&t in it(e)}function li(e,t,r){for(var i=r?dn:un,o=e[0].length,s=e.length,a=s,l=ze(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=pn(d,An(t))),c=Zn(d.length,c),l[a]=!r&&(t||o>=120&&d.length>=120)?new Cr(a&&d):n}d=e[0];var p=-1,h=l[0];e:for(;++p<o&&u.length<c;){var f=d[p],m=t?t(f):f;if(f=r||0!==f?f:0,!(h?Tn(h,m):i(u,m,r))){for(a=s;--a;){var g=l[a];if(!(g?Tn(g,m):i(e[a],m,r)))continue e}h&&h.push(m),u.push(f)}}return u}function ci(e,t,r){var i=null==(e=as(e,t=Zi(t,e)))?e:e[ys(As(t))];return null==i?n:rn(i,e,r)}function ui(e){return Fa(e)&&ii(e)==U}function di(e,t,r,i,o){return e===t||(null==e||null==t||!Fa(e)&&!Fa(t)?e!=e&&t!=t:function(e,t,r,i,o,s){var a=ka(e),l=ka(t),c=a?$:Go(e),u=l?$:Go(t),d=(c=c==U?X:c)==X,p=(u=u==U?X:u)==X,h=c==u;if(h&&Sa(e)){if(!Sa(t))return!1;a=!0,d=!1}if(h&&!d)return s||(s=new Sr),a||Ha(e)?Fo(e,t,r,i,o,s):function(e,t,n,r,i,o,s){switch(n){case ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ce:return!(e.byteLength!=t.byteLength||!o(new xt(e),new xt(t)));case W:case V:case J:return wa(+e,+t);case K:return e.name==t.name&&e.message==t.message;case ne:case ie:return e==t+"";case Q:var a=Pn;case re:var l=r&f;if(a||(a=Hn),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=m,s.set(e,t);var u=Fo(a(e),a(t),r,i,o,s);return s["delete"](e),u;case oe:if(yr)return yr.call(e)==yr.call(t)}return!1}(e,t,c,r,i,o,s);if(!(r&f)){var g=d&&ht.call(e,"__wrapped__"),y=p&&ht.call(t,"__wrapped__");if(g||y){var b=g?e.value():e,v=y?t.value():t;return s||(s=new Sr),o(b,v,r,i,s)}}if(!h)return!1;return s||(s=new Sr),function(e,t,r,i,o,s){var a=r&f,l=zo(e),c=l.length,u=zo(t).length;if(c!=u&&!a)return!1;var d=c;for(;d--;){var p=l[d];if(!(a?p in t:ht.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var y=a;for(;++d<c;){var b=e[p=l[d]],v=t[p];if(i)var w=a?i(v,b,p,t,e,s):i(b,v,p,e,t,s);if(!(w===n?b===v||o(b,v,r,i,s):w)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,r,i,o,s)}(e,t,r,i,di,o))}function pi(e,t,r,i){var o=r.length,s=o,a=!i;if(null==e)return!s;for(e=it(e);o--;){var l=r[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=r[o])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Sr;if(i)var h=i(u,d,c,e,t,p);if(!(h===n?di(d,u,f|m,i,p):h))return!1}}return!0}function hi(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Oa(e)?vt:Ge).test(bs(e));var t}function fi(e){return"function"==typeof e?e:null==e?zl:"object"==typeof e?ka(e)?wi(e[0],e[1]):vi(e):ql(e)}function mi(e){if(!rs(e))return Qn(e);var t=[];for(var n in it(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gi(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in it(e))t.push(n);return t}(e);var t=rs(e),n=[];for(var r in e)("constructor"!=r||!t&&ht.call(e,r))&&n.push(r);return n}function yi(e,t){return e<t}function bi(e,t){var n=-1,r=Da(e)?ze(e.length):[];return Vr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function vi(e){var t=Wo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||pi(n,e,t)}}function wi(e,t){return es(e)&&is(t)?os(ys(e),t):function(r){var i=sl(r,e);return i===n&&i===t?al(r,e):di(t,i,f|m)}}function _i(e,t,r,i,o){e!==t&&Jr(t,(function(s,a){if(o||(o=new Sr),La(s))!function(e,t,r,i,o,s,a){var l=cs(e,r),c=cs(t,r),u=a.get(c);if(u)return void Ir(e,r,u);var d=s?s(l,c,r+"",e,t,a):n,p=d===n;if(p){var h=ka(c),f=!h&&Sa(c),m=!h&&!f&&Ha(c);d=c,h||f||m?ka(l)?d=l:Ca(l)?d=lo(l):f?(p=!1,d=no(c,!0)):m?(p=!1,d=io(c,!0)):d=[]:Ra(c)||Ea(c)?(d=l,Ea(l)?d=Ja(l):La(l)&&!Oa(l)||(d=Qo(c))):p=!1}p&&(a.set(c,d),o(d,c,i,s,a),a["delete"](c));Ir(e,r,d)}(e,t,a,r,_i,i,o);else{var l=i?i(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),Ir(e,a,l)}}),pl)}function xi(e,t){var r=e.length;if(r)return Zo(t+=t<0?r:0,r)?e[t]:n}function Ei(e,t,n){t=t.length?pn(t,(function(e){return ka(e)?function(t){return ni(t,1===e.length?e[0]:e)}:e})):[zl];var r=-1;t=pn(t,An($o()));var i=bi(e,(function(e,n,i){var o=pn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;for(;++r<s;){var l=oo(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function ki(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=ni(e,s);n(a,s)&&Ti(o,Zi(s,e),a)}return o}function Mi(e,t,n,r){var i=r?_n:wn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=pn(e,An(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==e&&Ct.call(a,l,1),Ct.call(e,l,1);return e}function Di(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Zo(i)?Ct.call(e,i,1):Wi(e,i)}}return e}function Ci(e,t){return e+Kt(tr()*(t-e+1))}function Si(e,t){var n="";if(!e||t<1||t>L)return n;do{t%2&&(n+=e),(t=Kt(t/2))&&(e+=e)}while(t);return n}function Ni(e,t){return ps(ss(e,t,zl),e+"")}function Ai(e){return Ar(wl(e))}function Oi(e,t){var n=wl(e);return ms(n,Pr(t,0,n.length))}function Ti(e,t,r,i){if(!La(e))return e;for(var o=-1,s=(t=Zi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=ys(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var d=l[c];(u=i?i(d,c,l):n)===n&&(u=La(d)?d:Zo(t[o+1])?[]:{})}Lr(l,c,u),l=l[c]}return e}var Ii=cr?function(e,t){return cr.set(e,t),e}:zl,Li=Lt?function(e,t){return Lt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:zl;function Fi(e){return ms(wl(e))}function ji(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=ze(i);++r<i;)o[r]=e[r+t];return o}function zi(e,t){var n;return Vr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=B){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!$a(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return Bi(e,t,zl,n)}function Bi(e,t,r,i){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,l=null===t,c=$a(t),u=t===n;o<s;){var d=Kt((o+s)/2),p=r(e[d]),h=p!==n,f=null===p,m=p==p,g=$a(p);if(a)var y=i||m;else y=u?m&&(i||h):l?m&&h&&(i||!f):c?m&&h&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);y?o=d+1:s=d}return Zn(s,R)}function Pi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!wa(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function Ui(e){return"number"==typeof e?e:$a(e)?j:+e}function $i(e){if("string"==typeof e)return e;if(ka(e))return pn(e,$i)+"";if($a(e))return br?br.call(e):"";var t=e+"";return"0"==t&&1/e==-I?"-0":t}function Hi(e,t,n){var r=-1,o=un,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=dn;else if(s>=i){var u=t?null:No(e);if(u)return Hn(u);a=!1,o=Tn,c=new Cr}else c=t?[]:l;e:for(;++r<s;){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,a&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),l.push(d)}else o(c,p,n)||(c!==l&&c.push(p),l.push(d))}return l}function Wi(e,t){return null==(e=as(e,t=Zi(t,e)))||delete e[ys(As(t))]}function Vi(e,t,n,r){return Ti(e,t,n(ni(e,t)),r)}function qi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ji(e,r?0:o,r?o+1:i):ji(e,r?o+1:0,r?i:o)}function Ki(e,t){var n=e;return n instanceof Er&&(n=n.value()),fn(t,(function(e,t){return t.func.apply(t.thisArg,hn([e],t.args))}),n)}function Gi(e,t,n){var r=e.length;if(r<2)return r?Hi(e[0]):[];for(var i=-1,o=ze(r);++i<r;)for(var s=e[i],a=-1;++a<r;)a!=i&&(o[i]=Wr(o[i]||s,e[a],t,n));return Hi(Qr(o,1),t,n)}function Yi(e,t,r){for(var i=-1,o=e.length,s=t.length,a={};++i<o;){var l=i<s?t[i]:n;r(a,e[i],l)}return a}function Qi(e){return Ca(e)?e:[]}function Ji(e){return"function"==typeof e?e:zl}function Zi(e,t){return ka(e)?e:es(e,t)?[e]:gs(Za(e))}var Xi=Ni;function eo(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ji(e,t,r)}var to=Pt||function(e){return Vt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,r=Et?Et(n):new e.constructor(n);return e.copy(r),r}function ro(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function io(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=$a(e),a=t!==n,l=null===t,c=t==t,u=$a(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e<t||u&&r&&o&&!i&&!s||l&&r&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,r){for(var i=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Jn(o-s,0),u=ze(l+c),d=!r;++a<l;)u[a]=t[a];for(;++i<s;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[a++]=e[i++];return u}function ao(e,t,n,r){for(var i=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Jn(o-a,0),d=ze(u+c),p=!r;++i<u;)d[i]=e[i];for(var h=i;++l<c;)d[h+l]=t[l];for(;++s<a;)(p||i<o)&&(d[h+n[s]]=e[i++]);return d}function lo(e,t){var n=-1,r=e.length;for(t||(t=ze(r));++n<r;)t[n]=e[n];return t}function co(e,t,r,i){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=i?i(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),o?Rr(r,l,c):Lr(r,l,c)}return r}function uo(e,t){return function(n,r){var i=ka(n)?on:jr,o=t?t():{};return i(n,e,$o(r,2),o)}}function po(e){return Ni((function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=it(t);++i<o;){var l=r[i];l&&e(t,l,i,s)}return t}))}function ho(e,t){return function(n,r){if(null==n)return n;if(!Da(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=it(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function fo(e){return function(t,n,r){for(var i=-1,o=it(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var r=Bn(t=Za(t))?qn(t):n,i=r?r[0]:t.charAt(0),o=r?eo(r,1).join(""):t.slice(1);return i[e]()+o}}function go(e){return function(t){return fn(Ol(El(t).replace(At,"")),e,"")}}function yo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=wr(e.prototype),r=e.apply(n,t);return La(r)?r:n}}function bo(e){return function(t,r,i){var o=it(t);if(!Da(t)){var s=$o(r,3);t=dl(t),r=function(e){return s(o[e],e,o)}}var a=e(t,r,i);return a>-1?o[s?t[a]:a]:n}}function vo(e){return jo((function(t){var r=t.length,i=r,o=xr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Po(a))var l=new xr([],!0)}for(i=l?i:r;++i<r;){var c=Po(a=t[i]),u="wrapper"==c?Bo(a):n;l=u&&ts(u[0])&&u[1]==(E|v|_|k)&&!u[4].length&&1==u[9]?l[Po(u[0])].apply(l,u[3]):1==a.length&&ts(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&ka(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function wo(e,t,r,i,o,s,a,l,c,u){var d=t&E,p=t&g,h=t&y,f=t&(v|w),m=t&M,b=h?n:yo(e);return function n(){for(var g=arguments.length,y=ze(g),v=g;v--;)y[v]=arguments[v];if(f)var w=Uo(n),_=Fn(y,w);if(i&&(y=so(y,i,o,f)),s&&(y=ao(y,s,a,f)),g-=_,f&&g<u){var x=$n(y,w);return Co(e,t,wo,n.placeholder,r,y,x,l,c,u-g)}var E=p?r:this,k=h?E[e]:e;return g=y.length,l?y=ls(y,l):m&&g>1&&y.reverse(),d&&c<g&&(y.length=c),this&&this!==Vt&&this instanceof n&&(k=b||yo(k)),k.apply(E,y)}}function _o(e,t){return function(n,r){return function(e,t,n,r){return Xr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function xo(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=$i(r),i=$i(i)):(r=Ui(r),i=Ui(i)),o=e(r,i)}return o}}function Eo(e){return jo((function(t){return t=pn(t,An($o())),Ni((function(n){var r=this;return e(t,(function(e){return rn(e,r,n)}))}))}))}function ko(e,t){var r=(t=t===n?" ":$i(t)).length;if(r<2)return r?Si(t,e):t;var i=Si(t,qt(e/Vn(t)));return Bn(t)?eo(qn(i),0,e).join(""):i.slice(0,e)}function Mo(e){return function(t,r,i){return i&&"number"!=typeof i&&Xo(t,r,i)&&(r=i=n),t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n,r){for(var i=-1,o=Jn(qt((t-e)/(n||1)),0),s=ze(o);o--;)s[r?o:++i]=e,e+=n;return s}(t,r,i=i===n?t<r?1:-1:Ka(i),e)}}function Do(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Co(e,t,r,i,o,s,a,l,c,u){var d=t&v;t|=d?_:x,(t&=~(d?x:_))&b||(t&=~(g|y));var p=[e,t,o,d?s:n,d?a:n,d?n:s,d?n:a,l,c,u],h=r.apply(n,p);return ts(e)&&us(h,p),h.placeholder=i,hs(h,e,t)}function So(e){var t=rt[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Zn(Ga(n),292))&&yn(e)){var r=(Za(e)+"e").split("e");return+((r=(Za(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var No=sr&&1/Hn(new sr([,-0]))[1]==I?function(e){return new sr(e)}:$l;function Ao(e){return function(t){var n=Go(t);return n==Q?Pn(t):n==re?Wn(t):function(e,t){return pn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Oo(e,t,r,i,o,a,l,c){var d=t&y;if(!d&&"function"!=typeof e)throw new at(s);var p=i?i.length:0;if(p||(t&=~(_|x),i=o=n),l=l===n?l:Jn(Ga(l),0),c=c===n?c:Ga(c),p-=o?o.length:0,t&x){var h=i,f=o;i=o=n}var m=d?n:Bo(e),M=[e,t,r,i,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(g|y|E),s=r==E&&n==v||r==E&&n==k&&e[7].length<=t[8]||r==(E|k)&&t[7].length<=t[8]&&n==v;if(!o&&!s)return e;r&g&&(e[2]=t[2],i|=n&g?0:b);var a=t[3];if(a){var l=e[3];e[3]=l?so(l,a,t[4]):a,e[4]=l?$n(e[3],u):t[4]}(a=t[5])&&(l=e[5],e[5]=l?ao(l,a,t[6]):a,e[6]=l?$n(e[5],u):t[6]);(a=t[7])&&(e[7]=a);r&E&&(e[8]=null==e[8]?t[8]:Zn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(M,m),e=M[0],t=M[1],r=M[2],i=M[3],o=M[4],!(c=M[9]=M[9]===n?d?0:e.length:Jn(M[9]-p,0))&&t&(v|w)&&(t&=~(v|w)),t&&t!=g)D=t==v||t==w?function(e,t,r){var i=yo(e);return function o(){for(var s=arguments.length,a=ze(s),l=s,c=Uo(o);l--;)a[l]=arguments[l];var u=s<3&&a[0]!==c&&a[s-1]!==c?[]:$n(a,c);return(s-=u.length)<r?Co(e,t,wo,o.placeholder,n,a,u,n,n,r-s):rn(this&&this!==Vt&&this instanceof o?i:e,this,a)}}(e,t,c):t!=_&&t!=(g|_)||o.length?wo.apply(n,M):function(e,t,n,r){var i=t&g,o=yo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=r.length,u=ze(c+a),d=this&&this!==Vt&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;a--;)u[l++]=arguments[++s];return rn(d,i?n:this,u)}}(e,t,r,i);else var D=function(e,t,n){var r=t&g,i=yo(e);return function t(){return(this&&this!==Vt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return hs((m?Ii:us)(D,M),e,t)}function To(e,t,r,i){return e===n||wa(e,ut[r])&&!ht.call(i,r)?t:e}function Io(e,t,r,i,o,s){return La(e)&&La(t)&&(s.set(t,e),_i(e,t,n,Io,s),s["delete"](t)),e}function Lo(e){return Ra(e)?n:e}function Fo(e,t,r,i,o,s){var a=r&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,g=r&m?new Cr:n;for(s.set(e,t),s.set(t,e);++p<l;){var y=e[p],b=t[p];if(i)var v=a?i(b,y,p,t,e,s):i(y,b,p,e,t,s);if(v!==n){if(v)continue;h=!1;break}if(g){if(!gn(t,(function(e,t){if(!Tn(g,t)&&(y===e||o(y,e,r,i,s)))return g.push(t)}))){h=!1;break}}else if(y!==b&&!o(y,b,r,i,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function jo(e){return ps(ss(e,n,Ms),e+"")}function zo(e){return ri(e,dl,qo)}function Ro(e){return ri(e,pl,Ko)}var Bo=cr?function(e){return cr.get(e)}:$l;function Po(e){for(var t=e.name+"",n=ur[t],r=ht.call(ur,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Uo(e){return(ht.call(vr,"placeholder")?vr:e).placeholder}function $o(){var e=vr.iteratee||Rl;return e=e===Rl?fi:e,arguments.length?e(arguments[0],arguments[1]):e}function Ho(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Wo(e){for(var t=dl(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,is(i)]}return t}function Vo(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return hi(r)?r:n}var qo=Yt?function(e){return null==e?[]:(e=it(e),cn(Yt(e),(function(t){return Dt.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)hn(t,qo(e)),e=kt(e);return t}:Yl,Go=ii;function Yo(e,t,n){for(var r=-1,i=(t=Zi(t,e)).length,o=!1;++r<i;){var s=ys(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ia(i)&&Zo(s,i)&&(ka(e)||Ea(e))}function Qo(e){return"function"!=typeof e.constructor||rs(e)?{}:wr(kt(e))}function Jo(e){return ka(e)||Ea(e)||!!(St&&e&&e[St])}function Zo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var r=typeof t;return!!("number"==r?Da(n)&&Zo(t,n.length):"string"==r&&t in n)&&wa(n[t],e)}function es(e,t){if(ka(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$a(e))||(Te.test(e)||!Oe.test(e)||null!=t&&e in it(t))}function ts(e){var t=Po(e),n=vr[t];if("function"!=typeof n||!(t in Er.prototype))return!1;if(e===n)return!0;var r=Bo(n);return!!r&&e===r[0]}(rr&&Go(new rr(new ArrayBuffer(1)))!=ue||ir&&Go(new ir)!=Q||or&&Go(or.resolve())!=ee||sr&&Go(new sr)!=re||ar&&Go(new ar)!=ae)&&(Go=function(e){var t=ii(e),r=t==X?e.constructor:n,i=r?bs(r):"";if(i)switch(i){case dr:return ue;case pr:return Q;case hr:return ee;case fr:return re;case mr:return ae}return t});var ns=dt?Oa:Ql;function rs(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function is(e){return e==e&&!La(e)}function os(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in it(r)))}}function ss(e,t,r){return t=Jn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Jn(n.length-t,0),s=ze(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=ze(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),rn(e,this,a)}}function as(e,t){return t.length<2?e:ni(e,ji(t,0,-1))}function ls(e,t){for(var r=e.length,i=Zn(t.length,r),o=lo(e);i--;){var s=t[i];e[i]=Zo(s,r)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(Ii),ds=Wt||function(e,t){return Vt.setTimeout(e,t)},ps=fs(Li);function hs(e,t,n){var r=t+"";return ps(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return sn(P,(function(n){var r="_."+n[0];t&n[1]&&!un(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Be);return t?t[1].split(Pe):[]}(r),n)))}function fs(e){var t=0,r=0;return function(){var i=Xn(),o=N-(i-r);if(r=i,o>0){if(++t>=S)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var s=Ci(r,o),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var gs=function(e){var t=fa(e,(function(e){return n.size===c&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ie,(function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)})),t}));function ys(e){if("string"==typeof e||$a(e))return e;var t=e+"";return"0"==t&&1/e==-I?"-0":t}function bs(e){if(null!=e){try{return pt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function vs(e){if(e instanceof Er)return e.clone();var t=new xr(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ws=Ni((function(e,t){return Ca(e)?Wr(e,Qr(t,1,Ca,!0)):[]})),_s=Ni((function(e,t){var r=As(t);return Ca(r)&&(r=n),Ca(e)?Wr(e,Qr(t,1,Ca,!0),$o(r,2)):[]})),xs=Ni((function(e,t){var r=As(t);return Ca(r)&&(r=n),Ca(e)?Wr(e,Qr(t,1,Ca,!0),n,r):[]}));function Es(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),vn(e,$o(t,3),i)}function ks(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=Ga(r),o=r<0?Jn(i+o,0):Zn(o,i-1)),vn(e,$o(t,3),o,!0)}function Ms(e){return(null==e?0:e.length)?Qr(e,1):[]}function Ds(e){return e&&e.length?e[0]:n}var Cs=Ni((function(e){var t=pn(e,Qi);return t.length&&t[0]===e[0]?li(t):[]})),Ss=Ni((function(e){var t=As(e),r=pn(e,Qi);return t===As(r)?t=n:r.pop(),r.length&&r[0]===e[0]?li(r,$o(t,2)):[]})),Ns=Ni((function(e){var t=As(e),r=pn(e,Qi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?li(r,n,t):[]}));function As(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Os=Ni(Ts);function Ts(e,t){return e&&e.length&&t&&t.length?Mi(e,t):e}var Is=jo((function(e,t){var n=null==e?0:e.length,r=Br(e,t);return Di(e,pn(t,(function(e){return Zo(e,n)?+e:e})).sort(oo)),r}));function Ls(e){return null==e?e:nr.call(e)}var Fs=Ni((function(e){return Hi(Qr(e,1,Ca,!0))})),js=Ni((function(e){var t=As(e);return Ca(t)&&(t=n),Hi(Qr(e,1,Ca,!0),$o(t,2))})),zs=Ni((function(e){var t=As(e);return t="function"==typeof t?t:n,Hi(Qr(e,1,Ca,!0),n,t)}));function Rs(e){if(!e||!e.length)return[];var t=0;return e=cn(e,(function(e){if(Ca(e))return t=Jn(e.length,t),!0})),Sn(t,(function(t){return pn(e,kn(t))}))}function Bs(e,t){if(!e||!e.length)return[];var r=Rs(e);return null==t?r:pn(r,(function(e){return rn(t,n,e)}))}var Ps=Ni((function(e,t){return Ca(e)?Wr(e,t):[]})),Us=Ni((function(e){return Gi(cn(e,Ca))})),$s=Ni((function(e){var t=As(e);return Ca(t)&&(t=n),Gi(cn(e,Ca),$o(t,2))})),Hs=Ni((function(e){var t=As(e);return t="function"==typeof t?t:n,Gi(cn(e,Ca),n,t)})),Ws=Ni(Rs);var Vs=Ni((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,Bs(e,r)}));function qs(e){var t=vr(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=jo((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return Br(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Er&&Zo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new xr(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var Ys=uo((function(e,t,n){ht.call(e,n)?++e[n]:Rr(e,n,1)}));var Qs=bo(Es),Js=bo(ks);function Zs(e,t){return(ka(e)?sn:Vr)(e,$o(t,3))}function Xs(e,t){return(ka(e)?an:qr)(e,$o(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Rr(e,n,[t])}));var ta=Ni((function(e,t,n){var r=-1,i="function"==typeof t,o=Da(e)?ze(e.length):[];return Vr(e,(function(e){o[++r]=i?rn(t,e,n):ci(e,t,n)})),o})),na=uo((function(e,t,n){Rr(e,n,t)}));function ra(e,t){return(ka(e)?pn:bi)(e,$o(t,3))}var ia=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Ni((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),Ei(e,Qr(t,1),[])})),sa=Ht||function(){return Vt.Date.now()};function aa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Oo(e,E,n,n,n,n,t)}function la(e,t){var r;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ca=Ni((function(e,t,n){var r=g;if(n.length){var i=$n(n,Uo(ca));r|=_}return Oo(e,r,t,n,i)})),ua=Ni((function(e,t,n){var r=g|y;if(n.length){var i=$n(n,Uo(ua));r|=_}return Oo(t,r,e,n,i)}));function da(e,t,r){var i,o,a,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var r=i,s=o;return i=o=n,d=t,l=e.apply(s,r)}function g(e){return d=e,c=ds(b,t),p?m(e):l}function y(e){var r=e-u;return u===n||r>=t||r<0||h&&e-d>=a}function b(){var e=sa();if(y(e))return v(e);c=ds(b,function(e){var n=t-(e-u);return h?Zn(n,a-(e-d)):n}(e))}function v(e){return c=n,f&&i?m(e):(i=o=n,l)}function w(){var e=sa(),r=y(e);if(i=arguments,o=this,u=e,r){if(c===n)return g(u);if(h)return to(c),c=ds(b,t),m(u)}return c===n&&(c=ds(b,t)),l}return t=Qa(t)||0,La(r)&&(p=!!r.leading,a=(h="maxWait"in r)?Jn(Qa(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),w.cancel=function(){c!==n&&to(c),d=0,i=u=o=c=n},w.flush=function(){return c===n?l:v(sa())},w}var pa=Ni((function(e,t){return Hr(e,1,t)})),ha=Ni((function(e,t,n){return Hr(e,Qa(t)||0,n)}));function fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(fa.Cache||Dr),n}function ma(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}fa.Cache=Dr;var ga=Xi((function(e,t){var n=(t=1==t.length&&ka(t[0])?pn(t[0],An($o())):pn(Qr(t,1),An($o()))).length;return Ni((function(r){for(var i=-1,o=Zn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return rn(e,this,r)}))})),ya=Ni((function(e,t){var r=$n(t,Uo(ya));return Oo(e,_,n,t,r)})),ba=Ni((function(e,t){var r=$n(t,Uo(ba));return Oo(e,x,n,t,r)})),va=jo((function(e,t){return Oo(e,k,n,n,n,t)}));function wa(e,t){return e===t||e!=e&&t!=t}var _a=Do(oi),xa=Do((function(e,t){return e>=t})),Ea=ui(function(){return arguments}())?ui:function(e){return Fa(e)&&ht.call(e,"callee")&&!Dt.call(e,"callee")},ka=ze.isArray,Ma=Jt?An(Jt):function(e){return Fa(e)&&ii(e)==ce};function Da(e){return null!=e&&Ia(e.length)&&!Oa(e)}function Ca(e){return Fa(e)&&Da(e)}var Sa=Qt||Ql,Na=Zt?An(Zt):function(e){return Fa(e)&&ii(e)==V};function Aa(e){if(!Fa(e))return!1;var t=ii(e);return t==K||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Ra(e)}function Oa(e){if(!La(e))return!1;var t=ii(e);return t==G||t==Y||t==H||t==te}function Ta(e){return"number"==typeof e&&e==Ga(e)}function Ia(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function La(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Fa(e){return null!=e&&"object"==typeof e}var ja=Xt?An(Xt):function(e){return Fa(e)&&Go(e)==Q};function za(e){return"number"==typeof e||Fa(e)&&ii(e)==J}function Ra(e){if(!Fa(e)||ii(e)!=X)return!1;var t=kt(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pt.call(n)==yt}var Ba=en?An(en):function(e){return Fa(e)&&ii(e)==ne};var Pa=tn?An(tn):function(e){return Fa(e)&&Go(e)==re};function Ua(e){return"string"==typeof e||!ka(e)&&Fa(e)&&ii(e)==ie}function $a(e){return"symbol"==typeof e||Fa(e)&&ii(e)==oe}var Ha=nn?An(nn):function(e){return Fa(e)&&Ia(e.length)&&!!Rt[ii(e)]};var Wa=Do(yi),Va=Do((function(e,t){return e<=t}));function qa(e){if(!e)return[];if(Da(e))return Ua(e)?qn(e):lo(e);if(Nt&&e[Nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Nt]());var t=Go(e);return(t==Q?Pn:t==re?Hn:wl)(e)}function Ka(e){return e?(e=Qa(e))===I||e===-I?(e<0?-1:1)*F:e==e?e:0:0===e?e:0}function Ga(e){var t=Ka(e),n=t%1;return t==t?n?t-n:t:0}function Ya(e){return e?Pr(Ga(e),0,z):0}function Qa(e){if("number"==typeof e)return e;if($a(e))return j;if(La(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=La(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Nn(e);var n=Ke.test(e);return n||Ye.test(e)?$t(e.slice(2),n?2:8):qe.test(e)?j:+e}function Ja(e){return co(e,pl(e))}function Za(e){return null==e?"":$i(e)}var Xa=po((function(e,t){if(rs(t)||Da(t))co(t,dl(t),e);else for(var n in t)ht.call(t,n)&&Lr(e,n,t[n])})),el=po((function(e,t){co(t,pl(t),e)})),tl=po((function(e,t,n,r){co(t,pl(t),e,r)})),nl=po((function(e,t,n,r){co(t,dl(t),e,r)})),rl=jo(Br);var il=Ni((function(e,t){e=it(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(i=1);++r<i;)for(var s=t[r],a=pl(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===n||wa(d,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Ni((function(e){return e.push(n,Io),rn(fl,n,e)}));function sl(e,t,r){var i=null==e?n:ni(e,t);return i===n?r:i}function al(e,t){return null!=e&&Yo(e,t,ai)}var ll=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(zl)),cl=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),$o),ul=Ni(ci);function dl(e){return Da(e)?Nr(e):mi(e)}function pl(e){return Da(e)?Nr(e,!0):gi(e)}var hl=po((function(e,t,n){_i(e,t,n)})),fl=po((function(e,t,n,r){_i(e,t,n,r)})),ml=jo((function(e,t){var n={};if(null==e)return n;var r=!1;t=pn(t,(function(t){return t=Zi(t,e),r||(r=t.length>1),t})),co(e,Ro(e),n),r&&(n=Ur(n,d|p|h,Lo));for(var i=t.length;i--;)Wi(n,t[i]);return n}));var gl=jo((function(e,t){return null==e?{}:function(e,t){return ki(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function yl(e,t){if(null==e)return{};var n=pn(Ro(e),(function(e){return[e]}));return t=$o(t),ki(e,n,(function(e,n){return t(e,n[0])}))}var bl=Ao(dl),vl=Ao(pl);function wl(e){return null==e?[]:On(e,dl(e))}var _l=go((function(e,t,n){return t=t.toLowerCase(),e+(n?xl(t):t)}));function xl(e){return Al(Za(e).toLowerCase())}function El(e){return(e=Za(e))&&e.replace(Je,jn).replace(Ot,"")}var kl=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Dl=mo("toLowerCase");var Cl=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Sl=go((function(e,t,n){return e+(n?" ":"")+Al(t)}));var Nl=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Al=mo("toUpperCase");function Ol(e,t,r){return e=Za(e),(t=r?n:t)===n?function(e){return Ft.test(e)}(e)?function(e){return e.match(It)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var Tl=Ni((function(e,t){try{return rn(e,n,t)}catch(e){return Aa(e)?e:new tt(e)}})),Il=jo((function(e,t){return sn(t,(function(t){t=ys(t),Rr(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var Fl=vo(),jl=vo(!0);function zl(e){return e}function Rl(e){return fi("function"==typeof e?e:Ur(e,d))}var Bl=Ni((function(e,t){return function(n){return ci(n,e,t)}})),Pl=Ni((function(e,t){return function(n){return ci(e,n,t)}}));function Ul(e,t,n){var r=dl(t),i=ti(t,r);null!=n||La(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ti(t,dl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Oa(e);return sn(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=lo(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,hn([this.value()],arguments))})})),e}function $l(){}var Hl=Eo(pn),Wl=Eo(ln),Vl=Eo(gn);function ql(e){return es(e)?kn(ys(e)):function(e){return function(t){return ni(t,e)}}(e)}var Kl=Mo(),Gl=Mo(!0);function Yl(){return[]}function Ql(){return!1}var Jl=xo((function(e,t){return e+t}),0),Zl=So("ceil"),Xl=xo((function(e,t){return e/t}),1),ec=So("floor");var tc=xo((function(e,t){return e*t}),1),nc=So("round"),rc=xo((function(e,t){return e-t}),0);return vr.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){if(--e<1)return t.apply(this,arguments)}},vr.ary=aa,vr.assign=Xa,vr.assignIn=el,vr.assignInWith=tl,vr.assignWith=nl,vr.at=rl,vr.before=la,vr.bind=ca,vr.bindAll=Il,vr.bindKey=ua,vr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ka(e)?e:[e]},vr.chain=qs,vr.chunk=function(e,t,r){t=(r?Xo(e,t,r):t===n)?1:Jn(Ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=ze(qt(i/t));o<i;)a[s++]=ji(e,o,o+=t);return a},vr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},vr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ze(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return hn(ka(n)?lo(n):[n],Qr(t,1))},vr.cond=function(e){var t=null==e?0:e.length,n=$o();return e=t?pn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Ni((function(n){for(var r=-1;++r<t;){var i=e[r];if(rn(i[0],this,n))return rn(i[1],this,n)}}))},vr.conforms=function(e){return function(e){var t=dl(e);return function(n){return $r(n,e,t)}}(Ur(e,d))},vr.constant=Ll,vr.countBy=Ys,vr.create=function(e,t){var n=wr(e);return null==t?n:zr(n,t)},vr.curry=function e(t,r,i){var o=Oo(t,v,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.curryRight=function e(t,r,i){var o=Oo(t,w,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.debounce=da,vr.defaults=il,vr.defaultsDeep=ol,vr.defer=pa,vr.delay=ha,vr.difference=ws,vr.differenceBy=_s,vr.differenceWith=xs,vr.drop=function(e,t,r){var i=null==e?0:e.length;return i?ji(e,(t=r||t===n?1:Ga(t))<0?0:t,i):[]},vr.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ji(e,0,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t):[]},vr.dropRightWhile=function(e,t){return e&&e.length?qi(e,$o(t,3),!0,!0):[]},vr.dropWhile=function(e,t){return e&&e.length?qi(e,$o(t,3),!0):[]},vr.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Xo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=Ga(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:Ga(i))<0&&(i+=o),i=r>i?0:Ya(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},vr.filter=function(e,t){return(ka(e)?cn:Yr)(e,$o(t,3))},vr.flatMap=function(e,t){return Qr(ra(e,t),1)},vr.flatMapDeep=function(e,t){return Qr(ra(e,t),I)},vr.flatMapDepth=function(e,t,r){return r=r===n?1:Ga(r),Qr(ra(e,t),r)},vr.flatten=Ms,vr.flattenDeep=function(e){return(null==e?0:e.length)?Qr(e,I):[]},vr.flattenDepth=function(e,t){return(null==e?0:e.length)?Qr(e,t=t===n?1:Ga(t)):[]},vr.flip=function(e){return Oo(e,M)},vr.flow=Fl,vr.flowRight=jl,vr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},vr.functions=function(e){return null==e?[]:ti(e,dl(e))},vr.functionsIn=function(e){return null==e?[]:ti(e,pl(e))},vr.groupBy=ea,vr.initial=function(e){return(null==e?0:e.length)?ji(e,0,-1):[]},vr.intersection=Cs,vr.intersectionBy=Ss,vr.intersectionWith=Ns,vr.invert=ll,vr.invertBy=cl,vr.invokeMap=ta,vr.iteratee=Rl,vr.keyBy=na,vr.keys=dl,vr.keysIn=pl,vr.map=ra,vr.mapKeys=function(e,t){var n={};return t=$o(t,3),Xr(e,(function(e,r,i){Rr(n,t(e,r,i),e)})),n},vr.mapValues=function(e,t){var n={};return t=$o(t,3),Xr(e,(function(e,r,i){Rr(n,r,t(e,r,i))})),n},vr.matches=function(e){return vi(Ur(e,d))},vr.matchesProperty=function(e,t){return wi(e,Ur(t,d))},vr.memoize=fa,vr.merge=hl,vr.mergeWith=fl,vr.method=Bl,vr.methodOf=Pl,vr.mixin=Ul,vr.negate=ma,vr.nthArg=function(e){return e=Ga(e),Ni((function(t){return xi(t,e)}))},vr.omit=ml,vr.omitBy=function(e,t){return yl(e,ma($o(t)))},vr.once=function(e){return la(2,e)},vr.orderBy=function(e,t,r,i){return null==e?[]:(ka(t)||(t=null==t?[]:[t]),ka(r=i?n:r)||(r=null==r?[]:[r]),Ei(e,t,r))},vr.over=Hl,vr.overArgs=ga,vr.overEvery=Wl,vr.overSome=Vl,vr.partial=ya,vr.partialRight=ba,vr.partition=ia,vr.pick=gl,vr.pickBy=yl,vr.property=ql,vr.propertyOf=function(e){return function(t){return null==e?n:ni(e,t)}},vr.pull=Os,vr.pullAll=Ts,vr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mi(e,t,$o(n,2)):e},vr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Mi(e,t,n,r):e},vr.pullAt=Is,vr.range=Kl,vr.rangeRight=Gl,vr.rearg=va,vr.reject=function(e,t){return(ka(e)?cn:Yr)(e,ma($o(t,3)))},vr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=$o(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Di(e,i),n},vr.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Ni(e,t=t===n?t:Ga(t))},vr.reverse=Ls,vr.sampleSize=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),(ka(e)?Or:Oi)(e,t)},vr.set=function(e,t,n){return null==e?e:Ti(e,t,n)},vr.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Ti(e,t,r,i)},vr.shuffle=function(e){return(ka(e)?Tr:Fi)(e)},vr.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Xo(e,t,r)?(t=0,r=i):(t=null==t?0:Ga(t),r=r===n?i:Ga(r)),ji(e,t,r)):[]},vr.sortBy=oa,vr.sortedUniq=function(e){return e&&e.length?Pi(e):[]},vr.sortedUniqBy=function(e,t){return e&&e.length?Pi(e,$o(t,2)):[]},vr.split=function(e,t,r){return r&&"number"!=typeof r&&Xo(e,t,r)&&(t=r=n),(r=r===n?z:r>>>0)?(e=Za(e))&&("string"==typeof t||null!=t&&!Ba(t))&&!(t=$i(t))&&Bn(e)?eo(qn(e),0,r):e.split(t,r):[]},vr.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Jn(Ga(t),0),Ni((function(n){var r=n[t],i=eo(n,0,t);return r&&hn(i,r),rn(e,this,i)}))},vr.tail=function(e){var t=null==e?0:e.length;return t?ji(e,1,t):[]},vr.take=function(e,t,r){return e&&e.length?ji(e,0,(t=r||t===n?1:Ga(t))<0?0:t):[]},vr.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ji(e,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t,i):[]},vr.takeRightWhile=function(e,t){return e&&e.length?qi(e,$o(t,3),!1,!0):[]},vr.takeWhile=function(e,t){return e&&e.length?qi(e,$o(t,3)):[]},vr.tap=function(e,t){return t(e),e},vr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),da(e,t,{leading:r,maxWait:t,trailing:i})},vr.thru=Ks,vr.toArray=qa,vr.toPairs=bl,vr.toPairsIn=vl,vr.toPath=function(e){return ka(e)?pn(e,ys):$a(e)?[e]:lo(gs(Za(e)))},vr.toPlainObject=Ja,vr.transform=function(e,t,n){var r=ka(e),i=r||Sa(e)||Ha(e);if(t=$o(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:La(e)&&Oa(o)?wr(kt(e)):{}}return(i?sn:Xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},vr.unary=function(e){return aa(e,1)},vr.union=Fs,vr.unionBy=js,vr.unionWith=zs,vr.uniq=function(e){return e&&e.length?Hi(e):[]},vr.uniqBy=function(e,t){return e&&e.length?Hi(e,$o(t,2)):[]},vr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?Hi(e,n,t):[]},vr.unset=function(e,t){return null==e||Wi(e,t)},vr.unzip=Rs,vr.unzipWith=Bs,vr.update=function(e,t,n){return null==e?e:Vi(e,t,Ji(n))},vr.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Vi(e,t,Ji(r),i)},vr.values=wl,vr.valuesIn=function(e){return null==e?[]:On(e,pl(e))},vr.without=Ps,vr.words=Ol,vr.wrap=function(e,t){return ya(Ji(t),e)},vr.xor=Us,vr.xorBy=$s,vr.xorWith=Hs,vr.zip=Ws,vr.zipObject=function(e,t){return Yi(e||[],t||[],Lr)},vr.zipObjectDeep=function(e,t){return Yi(e||[],t||[],Ti)},vr.zipWith=Vs,vr.entries=bl,vr.entriesIn=vl,vr.extend=el,vr.extendWith=tl,Ul(vr,vr),vr.add=Jl,vr.attempt=Tl,vr.camelCase=_l,vr.capitalize=xl,vr.ceil=Zl,vr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=Qa(r))==r?r:0),t!==n&&(t=(t=Qa(t))==t?t:0),Pr(Qa(e),t,r)},vr.clone=function(e){return Ur(e,h)},vr.cloneDeep=function(e){return Ur(e,d|h)},vr.cloneDeepWith=function(e,t){return Ur(e,d|h,t="function"==typeof t?t:n)},vr.cloneWith=function(e,t){return Ur(e,h,t="function"==typeof t?t:n)},vr.conformsTo=function(e,t){return null==t||$r(e,t,dl(t))},vr.deburr=El,vr.defaultTo=function(e,t){return null==e||e!=e?t:e},vr.divide=Xl,vr.endsWith=function(e,t,r){e=Za(e),t=$i(t);var i=e.length,o=r=r===n?i:Pr(Ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},vr.eq=wa,vr.escape=function(e){return(e=Za(e))&&Ce.test(e)?e.replace(Me,zn):e},vr.escapeRegExp=function(e){return(e=Za(e))&&Fe.test(e)?e.replace(Le,"\\$&"):e},vr.every=function(e,t,r){var i=ka(e)?ln:Kr;return r&&Xo(e,t,r)&&(t=n),i(e,$o(t,3))},vr.find=Qs,vr.findIndex=Es,vr.findKey=function(e,t){return bn(e,$o(t,3),Xr)},vr.findLast=Js,vr.findLastIndex=ks,vr.findLastKey=function(e,t){return bn(e,$o(t,3),ei)},vr.floor=ec,vr.forEach=Zs,vr.forEachRight=Xs,vr.forIn=function(e,t){return null==e?e:Jr(e,$o(t,3),pl)},vr.forInRight=function(e,t){return null==e?e:Zr(e,$o(t,3),pl)},vr.forOwn=function(e,t){return e&&Xr(e,$o(t,3))},vr.forOwnRight=function(e,t){return e&&ei(e,$o(t,3))},vr.get=sl,vr.gt=_a,vr.gte=xa,vr.has=function(e,t){return null!=e&&Yo(e,t,si)},vr.hasIn=al,vr.head=Ds,vr.identity=zl,vr.includes=function(e,t,n,r){e=Da(e)?e:wl(e),n=n&&!r?Ga(n):0;var i=e.length;return n<0&&(n=Jn(i+n,0)),Ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wn(e,t,n)>-1},vr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),wn(e,t,i)},vr.inRange=function(e,t,r){return t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n){return e>=Zn(t,n)&&e<Jn(t,n)}(e=Qa(e),t,r)},vr.invoke=ul,vr.isArguments=Ea,vr.isArray=ka,vr.isArrayBuffer=Ma,vr.isArrayLike=Da,vr.isArrayLikeObject=Ca,vr.isBoolean=function(e){return!0===e||!1===e||Fa(e)&&ii(e)==W},vr.isBuffer=Sa,vr.isDate=Na,vr.isElement=function(e){return Fa(e)&&1===e.nodeType&&!Ra(e)},vr.isEmpty=function(e){if(null==e)return!0;if(Da(e)&&(ka(e)||"string"==typeof e||"function"==typeof e.splice||Sa(e)||Ha(e)||Ea(e)))return!e.length;var t=Go(e);if(t==Q||t==re)return!e.size;if(rs(e))return!mi(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},vr.isEqual=function(e,t){return di(e,t)},vr.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?di(e,t,n,r):!!i},vr.isError=Aa,vr.isFinite=function(e){return"number"==typeof e&&yn(e)},vr.isFunction=Oa,vr.isInteger=Ta,vr.isLength=Ia,vr.isMap=ja,vr.isMatch=function(e,t){return e===t||pi(e,t,Wo(t))},vr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,pi(e,t,Wo(t),r)},vr.isNaN=function(e){return za(e)&&e!=+e},vr.isNative=function(e){if(ns(e))throw new tt(o);return hi(e)},vr.isNil=function(e){return null==e},vr.isNull=function(e){return null===e},vr.isNumber=za,vr.isObject=La,vr.isObjectLike=Fa,vr.isPlainObject=Ra,vr.isRegExp=Ba,vr.isSafeInteger=function(e){return Ta(e)&&e>=-L&&e<=L},vr.isSet=Pa,vr.isString=Ua,vr.isSymbol=$a,vr.isTypedArray=Ha,vr.isUndefined=function(e){return e===n},vr.isWeakMap=function(e){return Fa(e)&&Go(e)==ae},vr.isWeakSet=function(e){return Fa(e)&&ii(e)==le},vr.join=function(e,t){return null==e?"":Mn.call(e,t)},vr.kebabCase=kl,vr.last=As,vr.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=Ga(r))<0?Jn(i+o,0):Zn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):vn(e,xn,o,!0)},vr.lowerCase=Ml,vr.lowerFirst=Dl,vr.lt=Wa,vr.lte=Va,vr.max=function(e){return e&&e.length?Gr(e,zl,oi):n},vr.maxBy=function(e,t){return e&&e.length?Gr(e,$o(t,2),oi):n},vr.mean=function(e){return En(e,zl)},vr.meanBy=function(e,t){return En(e,$o(t,2))},vr.min=function(e){return e&&e.length?Gr(e,zl,yi):n},vr.minBy=function(e,t){return e&&e.length?Gr(e,$o(t,2),yi):n},vr.stubArray=Yl,vr.stubFalse=Ql,vr.stubObject=function(){return{}},vr.stubString=function(){return""},vr.stubTrue=function(){return!0},vr.multiply=tc,vr.nth=function(e,t){return e&&e.length?xi(e,Ga(t)):n},vr.noConflict=function(){return Vt._===this&&(Vt._=bt),this},vr.noop=$l,vr.now=sa,vr.pad=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ko(Kt(i),n)+e+ko(qt(i),n)},vr.padEnd=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?e+ko(t-r,n):e},vr.padStart=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?ko(t-r,n)+e:e},vr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),er(Za(e).replace(je,""),t||0)},vr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Xo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ka(e),t===n?(t=e,e=0):t=Ka(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=tr();return Zn(e+o*(t-e+Ut("1e-"+((o+"").length-1))),t)}return Ci(e,t)},vr.reduce=function(e,t,n){var r=ka(e)?fn:Dn,i=arguments.length<3;return r(e,$o(t,4),n,i,Vr)},vr.reduceRight=function(e,t,n){var r=ka(e)?mn:Dn,i=arguments.length<3;return r(e,$o(t,4),n,i,qr)},vr.repeat=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),Si(Za(e),t)},vr.replace=function(){var e=arguments,t=Za(e[0]);return e.length<3?t:t.replace(e[1],e[2])},vr.result=function(e,t,r){var i=-1,o=(t=Zi(t,e)).length;for(o||(o=1,e=n);++i<o;){var s=null==e?n:e[ys(t[i])];s===n&&(i=o,s=r),e=Oa(s)?s.call(e):s}return e},vr.round=nc,vr.runInContext=e,vr.sample=function(e){return(ka(e)?Ar:Ai)(e)},vr.size=function(e){if(null==e)return 0;if(Da(e))return Ua(e)?Vn(e):e.length;var t=Go(e);return t==Q||t==re?e.size:mi(e).length},vr.snakeCase=Cl,vr.some=function(e,t,r){var i=ka(e)?gn:zi;return r&&Xo(e,t,r)&&(t=n),i(e,$o(t,3))},vr.sortedIndex=function(e,t){return Ri(e,t)},vr.sortedIndexBy=function(e,t,n){return Bi(e,t,$o(n,2))},vr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ri(e,t);if(r<n&&wa(e[r],t))return r}return-1},vr.sortedLastIndex=function(e,t){return Ri(e,t,!0)},vr.sortedLastIndexBy=function(e,t,n){return Bi(e,t,$o(n,2),!0)},vr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Ri(e,t,!0)-1;if(wa(e[n],t))return n}return-1},vr.startCase=Sl,vr.startsWith=function(e,t,n){return e=Za(e),n=null==n?0:Pr(Ga(n),0,e.length),t=$i(t),e.slice(n,n+t.length)==t},vr.subtract=rc,vr.sum=function(e){return e&&e.length?Cn(e,zl):0},vr.sumBy=function(e,t){return e&&e.length?Cn(e,$o(t,2)):0},vr.template=function(e,t,r){var i=vr.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Za(e),t=tl({},t,i,To);var o,s,l=tl({},t.imports,i.imports,To),c=dl(l),u=On(l,c),d=0,p=t.interpolate||Ze,h="__p += '",f=ot((t.escape||Ze).source+"|"+p.source+"|"+(p===Ae?We:Ze).source+"|"+(t.evaluate||Ze).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zt+"]")+"\n";e.replace(f,(function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(d,l).replace(Xe,Rn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if($e.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(_e,""):h).replace(xe,"$1").replace(Ee,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var y=Tl((function(){return nt(c,m+"return "+h).apply(n,u)}));if(y.source=h,Aa(y))throw y;return y},vr.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=z,r=Zn(e,z);t=$o(t),e-=z;for(var i=Sn(r,t);++n<e;)t(n);return i},vr.toFinite=Ka,vr.toInteger=Ga,vr.toLength=Ya,vr.toLower=function(e){return Za(e).toLowerCase()},vr.toNumber=Qa,vr.toSafeInteger=function(e){return e?Pr(Ga(e),-L,L):0===e?e:0},vr.toString=Za,vr.toUpper=function(e){return Za(e).toUpperCase()},vr.trim=function(e,t,r){if((e=Za(e))&&(r||t===n))return Nn(e);if(!e||!(t=$i(t)))return e;var i=qn(e),o=qn(t);return eo(i,In(i,o),Ln(i,o)+1).join("")},vr.trimEnd=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.slice(0,Kn(e)+1);if(!e||!(t=$i(t)))return e;var i=qn(e);return eo(i,0,Ln(i,qn(t))+1).join("")},vr.trimStart=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.replace(je,"");if(!e||!(t=$i(t)))return e;var i=qn(e);return eo(i,In(i,qn(t))).join("")},vr.truncate=function(e,t){var r=D,i=C;if(La(t)){var o="separator"in t?t.separator:o;r="length"in t?Ga(t.length):r,i="omission"in t?$i(t.omission):i}var s=(e=Za(e)).length;if(Bn(e)){var a=qn(e);s=a.length}if(r>=s)return e;var l=r-Vn(i);if(l<1)return i;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(a&&(l+=c.length-l),Ba(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=ot(o.source,Za(Ve.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf($i(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+i},vr.unescape=function(e){return(e=Za(e))&&De.test(e)?e.replace(ke,Gn):e},vr.uniqueId=function(e){var t=++ft;return Za(e)+t},vr.upperCase=Nl,vr.upperFirst=Al,vr.each=Zs,vr.eachRight=Xs,vr.first=Ds,Ul(vr,function(){var e={};return Xr(vr,(function(t,n){ht.call(vr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),vr.VERSION=r,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){vr[e].placeholder=vr})),sn(["drop","take"],(function(e,t){Er.prototype[e]=function(r){r=r===n?1:Jn(Ga(r),0);var i=this.__filtered__&&!t?new Er(this):this.clone();return i.__filtered__?i.__takeCount__=Zn(r,i.__takeCount__):i.__views__.push({size:Zn(r,z),type:e+(i.__dir__<0?"Right":"")}),i},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),sn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==A||n==T;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:$o(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),sn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Er.prototype[e]=function(){return this[n](1).value()[0]}})),sn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[n](1)}})),Er.prototype.compact=function(){return this.filter(zl)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=Ni((function(e,t){return"function"==typeof e?new Er(this):this.map((function(n){return ci(n,e,t)}))})),Er.prototype.reject=function(e){return this.filter(ma($o(e)))},Er.prototype.slice=function(e,t){e=Ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Er(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=Ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(z)},Xr(Er.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=vr[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(vr.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof Er,c=a[0],u=l||ka(t),d=function(e){var t=o.apply(vr,hn([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=s&&!p,m=l&&!h;if(!s&&u){t=m?t:new Er(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[d],thisArg:n}),new xr(g,p)}return f&&m?e.apply(this,a):(g=this.thru(d),f?i?g.value()[0]:g.value():g)})})),sn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);vr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ka(i)?i:[],e)}return this[n]((function(n){return t.apply(ka(n)?n:[],e)}))}})),Xr(Er.prototype,(function(e,t){var n=vr[t];if(n){var r=n.name+"";ht.call(ur,r)||(ur[r]=[]),ur[r].push({name:t,func:n})}})),ur[wo(n,y).name]=[{name:"wrapper",func:n}],Er.prototype.clone=function(){var e=new Er(this.__wrapped__);return e.__actions__=lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=lo(this.__views__),e},Er.prototype.reverse=function(){if(this.__filtered__){var e=new Er(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Er.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ka(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Zn(t,e+s);break;case"takeRight":e=Jn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,d=u.length,p=0,h=Zn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return Ki(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var y=u[m],b=y.iteratee,v=y.type,w=b(g);if(v==O)g=w;else if(!w){if(v==A)continue e;break e}}f[p++]=g}return f},vr.prototype.at=Gs,vr.prototype.chain=function(){return qs(this)},vr.prototype.commit=function(){return new xr(this.value(),this.__chain__)},vr.prototype.next=function(){this.__values__===n&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},vr.prototype.plant=function(e){for(var t,r=this;r instanceof _r;){var i=vs(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},vr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Er){var t=e;return this.__actions__.length&&(t=new Er(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new xr(t,this.__chain__)}return this.thru(Ls)},vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=function(){return Ki(this.__wrapped__,this.__actions__)},vr.prototype.first=vr.prototype.head,Nt&&(vr.prototype[Nt]=function(){return this}),vr}();Kt?((Kt.exports=Yn)._=Yn,qt._=Yn):Vt._=Yn}).call(ve)}(RT,RT.exports);const BT=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),PT=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),UT={onMouseEnter:BT,onMouseLeave:PT},$T=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?UT:{}};function HT(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var WT="undefined"!=typeof window&&"undefined"!=typeof document;function VT(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function qT(){return WT&&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 GT(e){var t=[];return e.forEach((function(e){t.find((function(t){return KT(e,t)}))||t.push(e)})),t}var YT=WT?d:s;function QT(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var JT={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()||QT(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&QT(t,"remove",e.props.className)},onAfterUpdate:r}}};function ZT(e){return function(t){var o=t.children,s=t.content,a=t.visible,l=t.singleton,c=t.render,d=t.reference,p=t.disabled,h=void 0!==p&&p,f=t.ignoreAttributes,m=void 0===f||f;t.__source,t.__self;var g,y,b=HT(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),v=void 0!==a,w=void 0!==l,_=r(!1),x=_[0],E=_[1],k=r({}),M=k[0],D=k[1],C=r(),S=C[0],N=C[1],A=(g=function(){return{container:qT(),renders:1}},(y=i()).current||(y.current="function"==typeof g?g():g),y.current),O=Object.assign({ignoreAttributes:m},b,{content:A.container});v&&(O.trigger="manual",O.hideOnClick=!1),w&&(h=!0);var T=O,I=O.plugins||[];c&&(T=Object.assign({},O,{plugins:w&&null!=l.data?[].concat(I,[{fn:function(){return{onTrigger:function(e,t){var n=l.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,N(n.content)}}}}]):I,render:function(){return{popper:A.container}}}));var L=[d].concat(o?[o.type]:[]);return YT((function(){var t=d;d&&d.hasOwnProperty("current")&&(t=d.current);var n=e(t||A.ref||qT(),Object.assign({},T,{plugins:[JT].concat(O.plugins||[])}));return A.instance=n,h&&n.disable(),a&&n.show(),w&&l.hook({instance:n,content:s,props:T,setSingletonContent:N}),E(!0),function(){n.destroy(),null==l||l.cleanup(n)}}),L),YT((function(){var e;if(1!==A.renders){var t,n,r,i,o=A.instance;o.setProps((t=o.props,n=T,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:GT([].concat((null==(r=t.popperOptions)?void 0:r.modifiers)||[],(null==(i=n.popperOptions)?void 0:i.modifiers)||[]))})}))),null==(e=o.popperInstance)||e.forceUpdate(),h?o.disable():o.enable(),v&&(a?o.show():o.hide()),w&&l.hook({instance:o,content:s,props:T,setSingletonContent:N})}else A.renders++})),YT((function(){var e;if(c){var t=A.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;M.placement===n.placement&&M.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&M.escaped===(null==r?void 0:r.hasPopperEscaped)||D({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(L)),n.createElement(n.Fragment,null,o?u(o,{ref:function(e){A.ref=e,VT(o.ref,e)}}):null,x&&de(c?c(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),S,A.instance):s,A.container))}}var XT=function(e,t){return c((function(r,i){var o=r.children,s=HT(r,["children"]);return n.createElement(e,Object.assign({},t,s),o?u(o,{ref:function(e){VT(i,e),VT(o.ref,e)}}):null)}))},eI=XT(ZT(L_));class tI extends n.Component{constructor(e){super(e),Jc(this,"keydownHandler",(e=>{const t={Enter:this.enterHandler,ArrowUp:this.upHandler,ArrowDown:this.downHandler,ArrowLeft:this.leftArrowHandler,ArrowRight:this.rightArrowHandler};e.key in t&&t[e.key](e)})),Jc(this,"selectItem",(e=>{const{items:t,editor:n,range:r}=this.props,i=t[e],o=i&&i.command,s=tp(i.items);o&&s&&i.command({editor:n,range:r})})),Jc(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),Jc(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),Jc(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),Jc(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),Jc(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:r}=this.state,i=n[r];i&&!tp(i.items)&&t(e+1)})),this.state={selectedIndex:0},this.menuRef=n.createRef()}componentDidMount(){const{menuIndex:e,activeMenuIndex:t}=this.props;e===t&&document.addEventListener("keydown",this.keydownHandler)}componentWillUnmount(){document.removeEventListener("keydown",this.keydownHandler)}componentDidUpdate(e){const{items:t,menuIndex:n,activeMenuIndex:r}=this.props,i=n===r;t!==e.items&&this.setState({selectedIndex:0}),FO({wrapperRef:this.menuRef,index:this.state.selectedIndex}),i?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:t,activeMenuIndex:r}=this.props,{selectedIndex:i}=this.state,o=t===r;return n.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,r)=>{const s=tp(e.items),a=n.createElement(nI,{index:r,item:e,key:e.title,selectItem:()=>s&&this.selectItem(r),selectedIndex:o?i:-1,onHover:()=>this.setState({selectedIndex:r})});return s?a:n.createElement(eI,{interactive:!0,key:e.title,placement:"right",visible:i===r,content:n.createElement(tI,rp({},this.props,{items:e.items,menuIndex:t+1})),onCreate:e=>{let{popper:t}=e;return t.style.width="max-content"},onHide:()=>{this.isSubmenuOpened=!1},onShow:()=>{this.isSubmenuOpened=!0}},a)})))}}const nI=c(((e,t)=>{let{item:r,selectedIndex:i,index:o,selectItem:s,onHover:a}=e;const{Icon:l}=r;return n.createElement("div",{"data-cy":`neeto-editor-command-list-item-${o}`,ref:t,className:$e("neeto-editor-slash-commands__item",{active:o===i}),onClick:s,onMouseEnter:a},l&&n.createElement(l,{size:20}),n.createElement("div",{className:"neeto-editor-slash-commands__item-content"},n.createElement("h5",null,r.title),n.createElement("p",null,r.description)))}));class rI extends n.Component{constructor(){super(...arguments),Jc(this,"state",{activeMenuIndex:0}),Jc(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),Jc(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return n.createElement(tI,rp({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const iI=[{optionName:He.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:T,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:He.H1,title:"H1",description:"Add a big heading.",Icon:I,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:He.H2,title:"H2",description:"Add a sub-heading.",Icon:L,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{optionName:He.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:F,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:He.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:F,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:He.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:F,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:He.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:F,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:He.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:j,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:He.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:z,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:He.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:R,command:oe},{optionName:He.VIDEO_UPLOAD,title:"Video",description:"Add a video.",Icon:B,command:oe},{optionName:He.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:P,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:He.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:U,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:He.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:$,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:He.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:H,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:He.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:W,command:oe},{optionName:He.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:V,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}}],oI={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}},sI=e=>{let{editor:t,range:n}=e;const r=prompt("Please enter Youtube/Loom/Vimeo embed URL."),i=!!r&&(lI(r)||uI(r)||cI(r));i?t.chain().focus().deleteRange(n).setExternalVideo({src:i}).run():t.chain().focus().deleteRange(n).insertContent("#invalid").run()},aI=e=>{let{options:t,addonCommands:n,setMediaUploader:r,handleUploadAttachments:i}=e;const o=iI.map((e=>e.optionName===He.IMAGE_UPLOAD?le("command",(e=>t=>{let{editor:n,range:r}=t;e(le("image",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===He.VIDEO_UPLOAD?le("command",(e=>t=>{let{editor:n,range:r}=t;e(le("video",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===He.VIDEO_EMBED?le("command",sI,e):e.optionName===He.ATTACHMENTS?le("command",(e=>t=>{let{editor:n,range:r}=t;e(),n.chain().focus().deleteRange(r).run()})(i),e):e));return[...o.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]},lI=e=>{const t=e.match(Ke);return t&&`https://www.youtube.com/embed/${t[5]}`},cI=e=>{const t=e.match(Ge);return t&&`https://player.vimeo.com/video/${t[4]}?h=${t[5]}`},uI=e=>{const t=e.match(Ye);return t&&`https://www.loom.com/embed/${t[4]}?t=${t[5]||""}`},dI=new Nf("commands");var pI=e=>{let{addonCommands:t,options:n,setMediaUploader:r,handleUploadAttachments:i}=e;const o=aI({options:n,addonCommands:t,setMediaUploader:r,handleUploadAttachments:i});return Ib.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:dI,command:e=>{let{editor:t,range:n,props:r}=e;r.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=o.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return RT.exports.isEmpty(n)?[oI]:n},render:()=>{let e,t;return{onStart:n=>{e=new K_(rI,{props:n,editor:n.editor}),t=L_("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",arrow:!1,zIndex:99999,role:"dropdown",theme:"neeto-editor-slash-menu"}),BT()},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t&&t[0].destroy(),e&&e.destroy(),PT()}}}}}),addProseMirrorPlugins(){return[QS({editor:this.editor,...this.options.suggestion})]}})};const hI=e=>{let{onClickVariable:t,variables:r}=e;const i=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:r,category_label:i,variables:o}=n;if(r&&o){const e=o.map(le("category_key",r));t.push({label:i,variables:e})}else e.push(n)})),RT.exports.isEmpty(e)||t.push({label:RT.exports.isEmpty(t)?null:"Others",variables:e}),t}(r);return re(r)?null:n.createElement("div",{className:"neeto-editor-variables-list"},i.map(((e,r)=>{let{label:i,variables:o}=e;return n.createElement(fI,{index:r,key:r,title:i,variables:o,onClickItem:t})})))},fI=e=>{let{index:t,title:r,variables:i,onClickItem:o}=e;return n.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${t}`},r&&n.createElement("h6",null,r),n.createElement("div",{className:"neeto-editor-variables-row"},i.map((e=>n.createElement("button",{className:"neeto-editor-variable","data-cy":`neeto-editor-variable-option-item-${e.label}--${e.value}`,key:`${e.label}--${e.value}`,type:"button",onClick:()=>o(e)},e.label)))))},mI=e=>{let{items:t,command:r}=e;return n.createElement("div",{className:"neeto-editor-variables-suggestion"},n.createElement(hI,{variables:t,onClickVariable:e=>{const{category_key:t,key:n}=e,i=t?`${t}.${n}`:n;r({label:i,id:i})}}))},gI=new Nf("variables"),yI=kv.create({name:"variable",addOptions:()=>({HTMLAttributes:{class:"neeto-editor-variable"},charOpen:"{{",charClose:"}}",renderLabel(e){let{options:t,node:n}=e;return`${t.charOpen}${n.attrs.label||n.attrs.id}${t.charClose}`},suggestion:{}}),group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML:()=>[{tag:"span[data-variable]"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",mb({"data-variable":""},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]},renderText(e){let{node:t}=e;return this.options.renderLabel({options:this.options,node:t})},addCommands(){return{setVariable:e=>t=>{let{chain:n}=t;n().focus().insertContent([{type:this.name,attrs:e},{type:"text",text:" "}]).run()}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((e=>{let{tr:t,state:n}=e,r=!1;const{selection:i}=n,{empty:o,anchor:s}=i;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return r=!0,t.insertText("",n,n+e.nodeSize),!1})),r)}))}},addProseMirrorPlugins(){return[QS({editor:this.editor,...this.options.suggestion})]}}),bI={char:"{{",startOfLine:!1,pluginKey:gI,command:e=>{let{editor:t,range:n,props:r}=e;t.chain().focus().deleteRange(n).setVariable(r).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new K_(mI,{props:n,editor:n.editor}),t=L_("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onExit(){t[0].destroy(),e.destroy()}}}};var vI=e=>{let{suggestion:t={}}=e;return yI.configure({suggestion:{...bI,...t}})};const wI=e=>{var t;let{node:r,editor:o,getPos:s,updateAttributes:a,deleteNode:l}=e;const c=i(null),{alt:u,src:d,vidheight:p,vidwidth:h,align:f}=r.attrs,{view:m}=o;let g=p,y=h;const b=c.current?null===(t=c.current.querySelector("figcaption>div"))||void 0===t?void 0:t.textContent:u;return n.createElement(q_,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},n.createElement("figure",{ref:c},n.createElement(MO,{align:f,deleteNode:l,updateAttributes:a}),n.createElement(kO,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:g,width:y},onResizeStop:(e,t,n)=>{g=n.offsetHeight,y=n.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(s(),void 0,{...r.attrs,vidheight:g,vidwidth:y,height:g,width:y})),o.commands.focus()}},n.createElement("video",rp({controls:!0},r.attrs,{alt:b,preload:"metadata",src:d}))),n.createElement(V_,{as:"figcaption",className:$e({"is-empty":re(b)})})))},_I=kv.create({name:"video",addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",draggable:!0,isolating:!0,addAttributes:()=>({src:{default:null,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("src")}},alt:{default:"",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("alt")}},vidheight:{default:288,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidheight")}},vidwidth:{default:"fit-content",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidwidth")}},align:{default:"left",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("align")}}}),parseHTML:()=>[{tag:"figure[data-video]",getAttrs:e=>"normal"!==e.style.fontWeight&&null,contentElement:"figcaption"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;const{align:r,src:i,vidheight:o,vidwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:i,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${r}`},["figure",mb(this.options.HTMLAttributes,{"data-video":""}),["div",a,["video",mb(n,{preload:"metadata",controls:!0,draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>Y_(wI),addCommands(){return{setVideo:e=>{let{caption:t,...n}=e;return e=>{let{chain:r}=e;return r().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:r,selection:i}=t,o=r.resolve(i.to).end();return n.setTextSelection(o)})).run()}}}}}),xI=e=>{var t;let{uppy:i}=e;const[o,a]=r(0);s((()=>{i.on("upload-progress",((e,t)=>{let{progress:n}=t;return a(n)}))}),[i]);const l=`${o}%`;return n.createElement("div",{className:"ne-media-uploader__progress"},n.createElement("p",{className:"ne-media-uploader__progress-title"},"Uploading..."),n.createElement("p",{className:"ne-media-uploader__progress-file"},null===(t=i.getFiles()[0])||void 0===t?void 0:t.name),n.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},n.createElement("div",{className:"neeto-editor-progress-bar__percent"},n.createElement("p",null,l),n.createElement(m,{icon:S,size:"small",style:"text",onClick:()=>i.cancelAll()})),n.createElement("div",{className:"neeto-editor-progress-bar__indicator"},n.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},EI=e=>{let{isImage:t,endpoint:r,onSuccess:i}=e;const o=t?Wc:Vc,{uppy:s,isUploading:a}=Ud({endpoint:r,uppyConfig:o,onSuccess:i});return a?n.createElement(xI,{uppy:s}):n.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},n.createElement(ac,{className:"ne-media-uploader__dnd","data-cy":"neeto-editor-media-local-uploader",uppy:s,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${Gc(o.restrictions.maxFileSize)}`}))},kI=e=>{let{isImage:t,url:i,editor:o,onClose:s,alt:a=""}=e;const[l,c]=r(a||""),[u,d]=r(!1),p=()=>{t?o.chain().focus().setFigure({src:i,caption:l,alt:l}).run():o.chain().focus().setVideo({src:i,caption:l,alt:l}).run(),s()};return n.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&p()}},u?n.createElement("div",{className:"ne-media-editor__error"},n.createElement("h2",null,"Something Went Wrong!"),n.createElement("p",null,"The selected media cannot be displayed. Please try again.")):n.createElement(n.Fragment,null,t?n.createElement("img",{loading:"lazy",src:i,onError:e=>{let{currentTarget:t}=e;d(!0),t.onerror=null}}):n.createElement("video",{src:i,onError:e=>{let{currentTarget:t}=e;d(!0),t.onerror=null}}),n.createElement(f,{autoFocus:!0,label:"Caption",placeholder:"Enter a caption",value:l,onChange:e=>c(e.target.value)})),n.createElement("div",{className:"ne-media-editor__footer"},n.createElement(m,{disabled:u,label:"Done",onClick:p}),n.createElement(m,{label:"Cancel",style:"text",onClick:s})))};var MI={},DI=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},CI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function r(e,t){return t._once=!0,n(e,t),this}function i(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&i(e,t),t.apply(n,o)})),this}return DI({},e,{on:n,once:r,off:i,emit:o})},SI=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,d=void 0,p=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,y=e.container.nodeType?e.container:document.querySelector(e.container),b={all:function(){return E(y.children)},new:function(){return E(y.children).filter((function(e){return!e.hasAttribute(""+f)}))}},v=[D,C,S],w=[N,A,O,T],_=CI({pack:F,update:j,resize:z});return _;function x(e){e.forEach((function(e){return e()}))}function E(e){return Array.prototype.slice.call(e)}function k(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function M(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function D(){r=M()}function C(){i=-1===r?m[m.length-1]:m[r]}function S(){s=k(i.columns)}function N(){d=b[t?"new":"all"]()}function A(){0!==d.length&&(p=d.map((function(e){return e.clientWidth})),h=d.map((function(e){return e.clientHeight})))}function O(){d.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*p[t]+o*i.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=p[t],u=h[t],c&&u&&(s[o]+=u+i.gutter)}))}function T(){y.style.position="relative",y.style.width=i.columns*c+(i.columns-1)*i.gutter+"px",y.style.height=Math.max.apply(Math,s)-i.gutter+"px"}function I(){n||(window.requestAnimationFrame(L),n=!0)}function L(){r!==M()&&(F(),_.emit("resize",i)),n=!1}function F(){return t=!1,x(v.concat(w)),_.emit("pack")}function j(){return t=!0,x(w),_.emit("update")}function z(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",I),_}}}),NI=_e(SI),AI={exports:{}},OI={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=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,o=a(i),s=a(fl.exports);function a(e){return e&&e.__esModule?e:{default:e}}var l=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.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),r=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;r=this.props.isReverse?o:this.calculateOffset(e,o)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,r=t.element,i=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return i&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(r,c,u)}}]),t}(i.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t["default"]}(OI,OI.exports),AI.exports=OI.exports,Object.defineProperty(MI,"__esModule",{value:!0});var TI,II,LI=MI.default=void 0,FI=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}}(),jI=n,zI=UI(jI),RI=UI(fl.exports),BI=UI(NI),PI=UI(AI.exports);function UI(e){return e&&e.__esModule?e:{default:e}}function $I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HI(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 WI=(II=TI=function(e){function t(){var e,n,r;$I(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=HI(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.setContainerRef=function(e){r.masonryContainer=e},r.forcePack=function(){r.masonryContainer&&r.state.instance.pack()},r.forceUpdate=function(){r.masonryContainer&&r.state.instance.update()},r.createNewInstance=function(){var e=r.props,t=e.packed,n=e.sizes,i=e.children,o=e.position,s=(0,BI.default)({container:r.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),i.length>0&&s.pack(),r.setState((function(){return{instance:s}}))},HI(r,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,jI.Component),FI(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.style;e.pack,e.packed,e.position,e.sizes;var i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return zI.default.createElement(PI.default,i,zI.default.createElement("div",{ref:this.setContainerRef,className:n,style:r},t))}}]),t}(),TI.propTypes={children:RI.default.arrayOf(RI.default.element).isRequired,className:RI.default.string,initialLoad:RI.default.bool,pack:RI.default.bool,packed:RI.default.string,position:RI.default.bool,sizes:RI.default.array,style:RI.default.object},TI.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},II);LI=MI.default=WI;const VI=e=>{let{onSubmit:t,unsplashApiKey:o}=e;const a=i(null),[l,c]=r(""),[u,d]=r(!1),[p,h]=r([]),[m,g]=r(1),[y,b]=r(!0),[w,_]=r(!1),x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[n,i]=r(e);return s((()=>{const n=setTimeout((()=>{i(e)}),t);return()=>{clearTimeout(n)}}),[e]),n}(l||"latest");s((()=>{E(1)}),[x]);const E=async e=>{try{_(!0),d(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:r}=e;return ie.get(We,{headers:{Authorization:`Client-ID ${r}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:x,apiKey:o}),{data:{results:n,total_pages:r}}=t;h(1===e?n:[...p,...n]),g(e+1),b(e<r)}catch{d(!0)}finally{_(!1)}};return n.createElement("div",{className:"neeto-editor-unsplash-wrapper"},n.createElement(f,{autoFocus:!0,"data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:l,onChange:e=>{let{target:{value:t}}=e;c(t)}}),u&&n.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!u&&!w&&tp(p)&&n.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!u&&n.createElement("div",{className:"neeto-editor-unsplash-container"},n.createElement(LI,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:y,loadMore:()=>{!w&&y&&m>1&&E(m)},loader:n.createElement(v,null),ref:a,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},p&&p.map(((e,r)=>n.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${r}`,key:r},n.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},n.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${r}`},n.createElement("img",{src:e.urls.regular,onClick:()=>t(e.urls.small)}),n.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!y&&n.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},qI=e=>{let{buttonLabel:t="Submit",placeholder:i,onSubmit:o,className:s}=e;const[a,l]=r(""),[c,u]=r("");return n.createElement("div",{className:$e("neeto-editor-url-form__wrapper",{[s]:s})},n.createElement(f,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:c,name:"url",placeholder:i,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),n.createElement(m,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!a,label:t,onClick:e=>{e.preventDefault(),qe.test(a)?o(a):u("Please enter a valid url")}}))},KI=e=>{let{mediaUploader:t,onClose:i,editor:o,uploadEndpoint:s,unsplashApiKey:a}=e;const[l,c]=r("local"),[u,d]=r(""),p=t.image||t.video;let h=a?Kc:Kc.slice(0,2);t.video&&(h=[]);const f=()=>{i(),d(""),c("local")};return n.createElement(_,{closeButton:!1,isOpen:p,onClose:f},n.createElement("div",{className:"ne-media-uploader"},!tp(h)&&n.createElement(x,null,h.map((e=>{let{key:t,title:r}=e;return n.createElement(x.Item,{active:l===t,key:t,onClick:()=>c(t)},r)}))),n.createElement("div",{className:"ne-media-uploader__content"},u?n.createElement(kI,{editor:o,isImage:t.image,url:u,onClose:f}):n.createElement(n.Fragment,null,"local"===l&&n.createElement(EI,{endpoint:s,isImage:t.image,onSuccess:d}),"link"===l&&n.createElement(qI,{placeholder:"Paste the link here...",buttonLabel:t.image?"Upload image":"Upload video",onSubmit:d}),"unsplash"===l&&n.createElement(VI,{unsplashApiKey:a,onSubmit:d})))))};var GI=[],YI=[];function QI(e,t){if(e&&"undefined"!=typeof document){var n,r=!0===t.prepend?"prepend":"append",i=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var s=GI.indexOf(o);-1===s&&(s=GI.push(o)-1,YI[s]={}),n=YI[s]&&YI[s][r]?YI[s][r]:YI[s][r]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),i=0;i<n.length;i++)e.setAttribute(n[i],t.attributes[n[i]]);var s="prepend"===r?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}QI(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const JI=e=>{let{editor:t,handleClose:i,handleAnimateInvalidLink:o}=e;const[a,l]=r("");s((()=>{l(t.getAttributes("link").href||"")}),[]);const c=()=>{qe.test(a)?(t.chain().focus().setLink({href:a}).run(),i()):tp(a)?(t.chain().focus().unsetLink().run(),i()):(l(""),o())};return n.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?i():"Enter"===e.key&&c()}},n.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)}}),n.createElement(m,{"data-cy":"neeto-editor-link-cancel-button",icon:S,size:"small",style:"icon",onClick:()=>{a?(l(""),t.chain().focus().unsetLink().run()):i()}}))},ZI=e=>{let{Icon:t,command:r,active:i,optionName:o,highlight:s}=e;return n.createElement(m,rp({"data-cy":`neeto-editor-bubble-menu-${o}-option`,icon:t,key:o,size:"small",style:i?"secondary":"text",tooltipProps:{content:se(o),position:"bottom",theme:"dark",delay:[500]},onClick:r},$T(s)))},XI=e=>{let{editor:t,mentions:r}=e;const i=TT(r),{Menu:o,MenuItem:s}=y;return re(i)?null:n.createElement(y,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:q,strategy:"fixed",buttonProps:{tooltipProps:{content:"Mention",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},n.createElement(o,null,i.map((e=>{let{key:r,name:i,imageUrl:o}=e;return n.createElement(s.Button,{"data-cy":`neeto-editor-mention-option-${r}`,key:r,onClick:()=>t.commands.setMention({id:r,label:i})},n.createElement(w,{size:"small",user:{name:i,imageUrl:o}}),n.createElement(g,{style:"body2"},i))}))))},eL=e=>{let{editor:t}=e;return n.createElement(y,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:$,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:"Emoji",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},n.createElement(QA,{editor:t}))},tL=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],nL=e=>{let{editor:t,options:n,setMediaUploader:r,handleUploadAttachments:i}=e;const o=((e,t,n)=>({font:[{Icon:K,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:G,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Y,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:Q,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:J,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:Z,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:U,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"}],list:[{Icon:z,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:j,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}],misc:[{Icon:N,command:n,active:!1,optionName:"attachments"},{Icon:R,command:()=>t(le("image",!0)),optionName:"image-upload"},{Icon:B,command:()=>t(le("video",!0)),optionName:"video-upload"}],right:[{Icon:X,command:()=>e.chain().focus().undo().run(),active:!1,disabled:!e.can().undo(),optionName:"undo"},{Icon:ee,command:()=>e.chain().focus().redo().run(),active:!1,disabled:!e.can().redo(),optionName:"redo"}]}))(t,r,i);return ge(["font","block","list","misc","right"].map((e=>[e,o[e].filter((e=>n.includes(e.optionName)))])))},rL=e=>{let{Icon:t,command:r,active:i,optionName:o,highlight:s,disabled:a}=e;return n.createElement(m,rp({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,icon:t,key:o,style:i?"secondary":"text",tooltipProps:{content:se(o),position:"bottom"},onClick:r},$T(s)))},iL=e=>{let{editor:t,commands:n}=e;const{to:r}=t.state.selection;return n.map((e=>{var n;return{...e,active:null===(n=e.active)||void 0===n?void 0:n.call(e,{editor:t}),command:()=>{var n;return null===(n=e.command)||void 0===n?void 0:n.call(e,{editor:t,range:{from:r,to:r}})}}}))},oL=e=>{let{editor:t,options:r,mentions:i,setIsInvalidLink:o,isLinkOptionActive:s,setIsLinkOptionActive:a,setMediaUploader:l,handleUploadAttachments:c}=e;const{Menu:u,MenuItem:d}=y,p=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:t}),h=(e=>{var t;return(null===(t=e.find(me("active")))||void 0===t?void 0:t.optionName)||"Text"})(p),f=r.includes(He.EMOJI),m=r.includes(He.LINK),{font:g,block:b,list:v}=nL({editor:t,options:r,setMediaUploader:l,handleUploadAttachments:c}),w=()=>{o(!0),setTimeout((()=>{o(!1)}),1e3)};return s?n.createElement(JI,{editor:t,handleAnimateInvalidLink:w,handleClose:()=>a(!1)}):n.createElement(n.Fragment,null,n.createElement(y,{buttonSize:"small",buttonStyle:"text",label:h,strategy:"fixed"},n.createElement(u,null,p.map((e=>{let{optionName:t,command:r}=e;return n.createElement(d.Button,{key:t,onClick:r},t)})))),g.map(ZI),b.map(ZI),f&&n.createElement(eL,{editor:t}),v.map(ZI),m&&ZI({Icon:te,command:()=>a(!0),active:t.isActive("link"),optionName:"link",highlight:!1}),n.createElement(XI,{editor:t,mentions:i}))},sL=e=>{let{editor:t,options:i,mentions:o=[],setMediaUploader:s,handleUploadAttachments:a}=e;const[l,c]=r(!1),[u,d]=r(!1),p=t&&t.view.state.selection.node,h=p&&"image"===p.type.name,f=[He.BOLD,He.ITALIC,He.UNDERLINE,He.STRIKETHROUGH,He.LINK],m=tp(i.filter((e=>f.includes(e))));return!t||!h&&m?null:n.createElement("div",null,n.createElement(R_,{editor:t,className:$e("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":l}),tippyOptions:{arrow:qw,zIndex:99999,onHide:()=>d(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},n.createElement(oL,{editor:t,handleUploadAttachments:a,isLinkOptionActive:u,mentions:o,options:i,setIsInvalidLink:c,setIsLinkOptionActive:d,setMediaUploader:s})))},{Menu:aL,MenuItem:lL}=y,cL=e=>{var t;let{editor:r}=e;const i=(null===(t=tL.find((e=>{let{value:t}=e;return n=t,r.isActive("heading",{level:n});var n})))||void 0===t?void 0:t.label)||"Paragraph";return n.createElement(y,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:i,placement:"bottom-start",buttonProps:{tooltipProps:{content:"Font size",position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},n.createElement(aL,null,tL.map((e=>{let{label:t,value:i}=e;return n.createElement(lL.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${t}`,key:i,onClick:()=>{return(e=i)?r.chain().focus().toggleHeading({level:e}).run():r.chain().focus().setNode("paragraph").run();var e}},t)}))))},{Menu:uL}=y,dL=e=>{let{editor:t}=e;const[i,o]=r(""),[s,a]=r(""),[l,c]=r(!1),u=t.isActive("link"),d=()=>{c(!1),a(""),o("")},p=()=>{qe.test(s)?(t.chain().focus().setLink({href:s}).run(),d()):o("Please enter a valid url")};return n.createElement(y,{buttonStyle:u?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:te,isOpen:l,position:"bottom",buttonProps:{tooltipProps:{content:"Link",position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>{a(t.getAttributes("link").href),c((e=>!e))},onClose:d},n.createElement(uL,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?d():"Enter"===e.key&&p()}},n.createElement(f,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:i,name:"url",placeholder:"Paste URL",value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),n.createElement(m,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:p}),u&&n.createElement(m,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",style:"text",onClick:()=>{t.chain().focus().unsetLink().run(),a(""),d()}})))},{Menu:pL}=y,hL=e=>{let{editor:t,variables:r}=e;return re(r)?null:n.createElement(y,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:ne,strategy:"fixed",buttonProps:{tooltipProps:{content:"Variables",position:"bottom"}}},n.createElement(pL,null,n.createElement(hI,{variables:r,onClickVariable:e=>{const{category_key:n,key:r}=e,i=n?`${n}.${r}`:r;t.chain().focus().setVariable({label:i}).run()}})))},fL=e=>{let{editor:t,options:r,mentions:i=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:c,handleUploadAttachments:u}=e;if(!t)return null;const{font:d,block:p,list:h,misc:f,right:m}=nL({editor:t,options:r,setMediaUploader:s,handleUploadAttachments:u}),g=r.filter((e=>e.match(/^h[1-6]$/))).length>0,y=r.includes(He.EMOJI),b=r.includes(He.LINK),v=iL({editor:t,commands:a});return n.createElement("div",{className:$e("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},n.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},g&&n.createElement(cL,{editor:t}),d.map(rL),p.map(rL),y&&n.createElement(eL,{editor:t}),h.map(rL),b&&n.createElement(dL,{editor:t}),f.map(rL),n.createElement(XI,{editor:t,mentions:i}),v.map(rL),n.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},m.map(rL))),n.createElement("div",{className:"neeto-editor-fixed-menu__variables"},n.createElement(hL,{editor:t,variables:o})))},mL=e=>{let{icon:t=null,onClick:r=(()=>{}),disabled:i=!1,className:o,tooltipProps:s,...a}=e;const l=t;return n.createElement(h,rp({disabled:!s,onClick:()=>r()},s),n.createElement("button",rp({className:$e("ne-headless-btn",{[o]:o}),disabled:i,type:"button",onClick:r},a),t&&n.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},gL={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:r}}=e;function i(e){"escape"===e.key.toLowerCase()&&n&&(r(),t())}return{onShow(){document.addEventListener("keydown",i)},onHide(){document.removeEventListener("keydown",i)}}}},yL=e=>{let{icon:t,isOpen:i,onClose:o=(()=>{}),children:s,className:a,onClick:l,buttonProps:c={},...u}=e;const[d,p]=r(!1);return n.createElement(eI,rp({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[gL],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:i,className:$e("ne-headless-dropdown",{[a]:a}),content:d&&n.createElement("div",{className:"ne-headless-dropdown__popup"},s),onClickOutside:o,onClose:o,onHidden:()=>p(!1),onMount:()=>p(!0)},u),n.createElement("span",null,n.createElement(mL,rp({icon:t,onClick:l},c))))},bL=e=>{let{editor:t,optionName:i}=e;const[o,s]=r(!1);return n.createElement(yL,{className:"ne-headless__emoji",icon:$,isOpen:o,buttonProps:{tooltipProps:{content:se(i),delay:[500],position:"bottom"}},onClick:()=>s((e=>!e)),onClose:()=>s(!1)},n.createElement(QA,{editor:t}))},vL=e=>{let{editor:t,optionName:r,command:i,disabled:o,Icon:s,active:a}=e;return r===He.EMOJI?n.createElement(bL,{editor:t,optionName:r}):n.createElement(mL,{className:a?"ne-headless-btn--active":"",disabled:o,icon:s,tooltipProps:{content:se(r),delay:[500],position:"bottom"},onClick:i})},wL=e=>{let{editor:t,options:n,setMediaUploader:r,handleUploadAttachments:i}=e;const o=((e,t,n)=>[{Icon:K,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:G,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Y,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:Q,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:J,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"},{Icon:Z,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote"},{Icon:U,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"},{Icon:z,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list"},{Icon:j,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list"},{Icon:N,command:n,optionName:"attachments"},{Icon:R,command:()=>t(le("image",!0)),optionName:"image-upload"},{Icon:B,command:()=>t(le("video",!0)),optionName:"video-upload"},{Icon:$,command:()=>{},optionName:"emoji"},{Icon:X,command:()=>e.chain().focus().undo().run(),disabled:!e.can().undo(),optionName:"undo"},{Icon:ee,command:()=>e.chain().focus().redo().run(),disabled:!e.can().redo(),optionName:"redo"}])(t,r,i);return n.map((e=>o.find((t=>{let{optionName:n}=t;return n===e})))).filter(Boolean)},_L=e=>{let{editor:t,options:r,setMediaUploader:i,addonCommands:o=[],children:s,className:a,handleUploadAttachments:l}=e;if(!t)return null;const c=[...wL({editor:t,options:r,setMediaUploader:i,handleUploadAttachments:l}),...iL({editor:t,commands:o})];return n.createElement("div",{className:$e("ne-headless",{[a]:a})},c.map((e=>n.createElement(vL,rp({editor:t,key:e.optionName},e)))),s)},xL=e=>{const[t,i]=r({image:!1,video:!1}),{menuType:o="fixed",addons:s=[],options:a=[],editor:l,uploadEndpoint:c=Ve,editorSecrets:u={},handleUploadAttachments:d}=e,p={fixed:fL,bubble:sL,headless:_L,none:()=>n.createElement("div",null)}[o],h=re(a)?[...Z_,...s]:a;return n.createElement(n.Fragment,null,n.createElement(p,rp({},e,{handleUploadAttachments:d,options:h,setMediaUploader:i})),n.createElement(KI,{editor:l,mediaUploader:t,unsplashApiKey:u.unsplash,uploadEndpoint:c,onClose:()=>i({image:!1,video:!1})}))},EL=e=>{let{rows:t}=e;return`min-height: ${t*tx+2*(X_+ex)}px;`},kL=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const r={type:"paragraph"};e.length>0&&(r.content=[{type:"text",text:e}]);const i=Op.fromJSON(t.doc.type.schema,r);n.push(i)}));const r=ap.fromArray(n);return hp.maxOpen(r)},ML=(e,t)=>{var a;let{initialValue:l="",menuType:c="fixed",label:u="",required:d=!1,autoFocus:p=!1,hideSlashCommands:h=!1,defaults:f=Z_,addons:m=[],addonCommands:g=[],className:y,contentClassName:b,uploadEndpoint:v=Ve,onChange:w=oe,onFocus:_=oe,onBlur:x=oe,onSubmit:k=oe,variables:M=[],mentions:D=[],placeholder:C,extensions:S=[],editorSecrets:N={},rows:A=6,isCharacterCountActive:O=!1,keyboardShortcuts:T=[],error:I=null,config:L={},attachments:F=[],onChangeAttachments:j=oe,...z}=e;const R=i(null),B=m.includes("attachments"),P="fixed"===c,U="bubble"===c,$=!h,H=!!C,[W,V]=r({image:!1,video:!1}),q=i(null),K=(null===(a=q.current)||void 0===a?void 0:a.handleUploadAttachments)||oe,G=(e=>{let{placeholder:t,extensions:n,mentions:r,variables:i,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:d,setMediaUploader:p,handleUploadAttachments:h}=e;const f=he(d,qS);let m=[ax,sx,jE.configure(f.underline),dx.configure(f.highlight),VS.configure(f.codeBlock),AO.configure(f.figCaption),GS.configure(f.embeds),FE.configure(f.link),iO.configure(f.emojiSuggestion),ZA.configure(f.emojiPicker),KS.configure(f.customCommands),rx.configure(f.characterCount),lx.configure(f.focus),_I,NO({uploadEndpoint:u}),Wk.configure(f.starterKit),TO({onSubmit:l,shortcuts:c}),zT.configure(he({placeholder:t},f.placeholder))];return o&&m.push(pI({options:s,addonCommands:a,setMediaUploader:p,handleUploadAttachments:h})),re(r)||m.push(jT({suggestion:{items:IT(r)}})),re(i)||m.push(vI({suggestion:{items:()=>i}})),m=m.concat(n),m})({placeholder:C,extensions:S,mentions:D,variables:M,isSlashCommandsActive:$,options:[...f,...m],addonCommands:g,onSubmit:k,keyboardShortcuts:T,uploadEndpoint:v,config:L,setMediaUploader:V,handleUploadAttachments:K});(e=>{let{initialValue:t}=e;s((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&tp(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:l});const Y=$e("neeto-editor",{"slash-active":$&&!H,"fixed-menu-active border":P,"bubble-menu-active":U,"placeholder-active":H,[b]:b}),Q=Q_({extensions:G,content:l,injectCSS:!1,autofocus:p&&"end",editorProps:{attributes:{class:Y,style:EL({rows:A})},clipboardTextParser:kL},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!p&&(e=>{const{state:t,view:n}=e,r=rf.atEnd(t.doc),i=t.tr;i.setSelection(r),n.dispatch(i)})(t)},onUpdate:e=>{let{editor:t}=e;return w(t.getHTML())},onFocus:_,onBlur:x});return o(t,(()=>({editor:Q}))),Ly.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},n.createElement("div",{className:B?"ne-attachments__wrapper":"relative"},n.createElement("div",{className:$e({[y]:y}),ref:R},u&&n.createElement(E,{className:"neeto-ui-mb-2","data-cy":`${ae(u)}-editor-label`,required:d},u),n.createElement(J_,{error:I,isFixedMenuActive:P},n.createElement(nx,{editor:Q,isActive:O},n.createElement(xL,{addonCommands:g,addons:m,defaults:f,editor:Q,editorSecrets:N,handleUploadAttachments:K,isIndependant:!1,mentions:D,menuType:c,uploadEndpoint:v,variables:M}),n.createElement($_,rp({editor:Q},z)),n.createElement(KI,{editor:Q,mediaUploader:W,unsplashApiKey:N.unsplash,uploadEndpoint:v,onClose:()=>V({image:!1,video:!1})}),n.createElement(Xd,{attachments:F,dragDropRef:R,isIndependent:!1,ref:q,className:$e({"ne-attachments--integrated":P}),onChange:j})))))};var DL=n.forwardRef(ML);QI('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n gap: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px;\n border-bottom: none;\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 2px;\n font-size: 85%;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image-wrapper {\n display: flex;\n color: unset !important;\n font-weight: normal !important;\n}\n.neeto-editor__image-wrapper figure {\n position: relative;\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image {\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image img,\n.neeto-editor__image-wrapper .neeto-editor__image video {\n display: inline-block;\n height: 100%;\n border: 2px solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-lg);\n padding: 4px;\n}\n.neeto-editor__image-wrapper figcaption {\n margin-top: 4px;\n text-align: center;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n}\n.neeto-editor__image-wrapper figcaption a {\n display: inline-block;\n text-align: center;\n}\n.neeto-editor__image-wrapper figcaption.is-empty div:before {\n position: absolute;\n inset: 0;\n content: "Add a caption";\n color: rgb(var(--neeto-ui-gray-500));\n}\n.neeto-editor__image--left {\n justify-content: flex-start;\n}\n.neeto-editor__image--center {\n justify-content: center;\n}\n.neeto-editor__image--right {\n justify-content: flex-end;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-white));\n text-align: center;\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__item {\n border-radius: var(--neeto-ui-rounded-sm) !important;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item {\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n padding: 2px;\n gap: 0 4px;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -24px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset !important;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-gray-600));\n margin-bottom: 4px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable {\n padding: 4px 6px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n background-color: rgb(var(--neeto-ui-pastel-blue));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable:hover {\n background-color: rgb(var(--neeto-ui-info-100));\n}\n.neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-font-size__wrapper {\n font-weight: var(--neeto-ui-font-normal) !important;\n padding: 8px !important;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n gap: 1px;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text {\n color: rgb(var(--neeto-ui-gray-200));\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:hover, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text:active, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text.active {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-secondary {\n min-width: -moz-fit-content;\n min-width: fit-content;\n background-color: rgb(var(--neeto-ui-gray-400));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup {\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:hover, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:active, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn.active {\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup {\n display: flex;\n min-width: unset;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor__image-menu-btn {\n position: absolute !important;\n top: 4px;\n right: 4px;\n z-index: 1;\n padding: 2px !important;\n}\n.ne-media-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.ne-media-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.ne-media-uploader .ne-media-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.ne-media-uploader .ne-media-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.ne-media-uploader .ne-media-uploader__progress-title, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.ne-media-uploader .ne-media-uploader__progress-file, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-primary-500));\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-primary-500));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-primary-500), 0.2);\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-media-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.ne-media-editor img,\n.ne-media-editor video {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.ne-media-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.ne-media-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.ne-media-editor .neeto-ui-input__wrapper {\n width: 100%;\n}\n.ne-media-editor .ne-media-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\n.ne-attachments {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.ne-attachments__items {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.ne-attachments__attachment {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 2px 4px 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n border: 1px solid rgb(var(--neeto-ui-gray-200));\n width: 256px;\n}\n.ne-attachments__attachment__progress {\n display: flex;\n opacity: 0.5;\n justify-content: space-between;\n width: 80%;\n}\n.ne-attachments__attachment__progress p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n}\n.ne-attachments__attachment__progress p:nth-child(2) {\n width: -moz-fit-content;\n width: fit-content;\n}\n.ne-attachments__attachment__progress-icon {\n opacity: 0.5;\n}\n.ne-attachments__attachment p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 75%;\n}\n.ne-attachments input[type=file] {\n display: none;\n}\n.ne-attachments--integrated {\n padding: 0px 6px;\n border: 1px solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.ne-attachments__wrapper {\n position: relative;\n}\n.ne-attachments__wrapper .uppy-is-drag-over::after {\n position: absolute;\n inset: 7px;\n border-radius: 5px;\n background-color: rgba(var(--neeto-ui-gray-600), 0.15);\n border: 5px dashed rgba(var(--neeto-ui-gray-600), 0.5);\n content: "Drop the file here";\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const CL=(e,t)=>{let{name:r,...i}=e;return n.createElement(ye,{name:r},(e=>{let{field:o,form:s,meta:a}=e;return n.createElement(DL,rp({error:a.touched?a.error:"",initialValue:o.value,ref:t,onBlur:()=>s.setFieldTouched(r,!0),onChange:e=>s.setFieldValue(r,e)},i))}))};var SL=c(CL);
|
|
42
|
+
*/!function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,p=2,h=4,f=1,m=2,g=1,y=2,b=4,v=8,w=16,_=32,x=64,E=128,k=256,M=512,D=30,C="...",S=800,N=16,A=1,O=2,T=3,I=1/0,L=9007199254740991,F=17976931348623157e292,j=0/0,z=4294967295,R=z-1,B=z>>>1,P=[["ary",E],["bind",g],["bindKey",y],["curry",v],["curryRight",w],["flip",M],["partial",_],["partialRight",x],["rearg",k]],U="[object Arguments]",$="[object Array]",H="[object AsyncFunction]",W="[object Boolean]",V="[object Date]",q="[object DOMException]",K="[object Error]",G="[object Function]",Y="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",Z="[object Null]",X="[object Object]",ee="[object Promise]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ie="[object String]",oe="[object Symbol]",se="[object Undefined]",ae="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",fe="[object Int16Array]",me="[object Int32Array]",ge="[object Uint8Array]",ye="[object Uint8ClampedArray]",be="[object Uint16Array]",we="[object Uint32Array]",_e=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,Ee=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,De=RegExp(ke.source),Ce=RegExp(Me.source),Se=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Fe=RegExp(Le.source),je=/^\s+/,ze=/\s/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$e=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ke=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,et="\\ud800-\\udfff",tt="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",nt="\\u2700-\\u27bf",rt="a-z\\xdf-\\xf6\\xf8-\\xff",it="A-Z\\xc0-\\xd6\\xd8-\\xde",ot="\\ufe0e\\ufe0f",st="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",at="['’]",lt="["+et+"]",ct="["+st+"]",ut="["+tt+"]",dt="\\d+",pt="["+nt+"]",ht="["+rt+"]",ft="[^"+et+st+dt+nt+rt+it+"]",mt="\\ud83c[\\udffb-\\udfff]",gt="[^"+et+"]",yt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",vt="["+it+"]",wt="\\u200d",_t="(?:"+ht+"|"+ft+")",xt="(?:"+vt+"|"+ft+")",Et="(?:"+at+"(?:d|ll|m|re|s|t|ve))?",kt="(?:"+at+"(?:D|LL|M|RE|S|T|VE))?",Mt="(?:"+ut+"|"+mt+")"+"?",Dt="["+ot+"]?",Ct=Dt+Mt+("(?:"+wt+"(?:"+[gt,yt,bt].join("|")+")"+Dt+Mt+")*"),St="(?:"+[pt,yt,bt].join("|")+")"+Ct,Nt="(?:"+[gt+ut+"?",ut,yt,bt,lt].join("|")+")",At=RegExp(at,"g"),Ot=RegExp(ut,"g"),Tt=RegExp(mt+"(?="+mt+")|"+Nt+Ct,"g"),It=RegExp([vt+"?"+ht+"+"+Et+"(?="+[ct,vt,"$"].join("|")+")",xt+"+"+kt+"(?="+[ct,vt+_t,"$"].join("|")+")",vt+"?"+_t+"+"+Et,vt+"+"+kt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dt,St].join("|"),"g"),Lt=RegExp("["+wt+et+tt+ot+"]"),Ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zt=-1,Rt={};Rt[de]=Rt[pe]=Rt[he]=Rt[fe]=Rt[me]=Rt[ge]=Rt[ye]=Rt[be]=Rt[we]=!0,Rt[U]=Rt[$]=Rt[ce]=Rt[W]=Rt[ue]=Rt[V]=Rt[K]=Rt[G]=Rt[Q]=Rt[J]=Rt[X]=Rt[ne]=Rt[re]=Rt[ie]=Rt[ae]=!1;var Bt={};Bt[U]=Bt[$]=Bt[ce]=Bt[ue]=Bt[W]=Bt[V]=Bt[de]=Bt[pe]=Bt[he]=Bt[fe]=Bt[me]=Bt[Q]=Bt[J]=Bt[X]=Bt[ne]=Bt[re]=Bt[ie]=Bt[oe]=Bt[ge]=Bt[ye]=Bt[be]=Bt[we]=!0,Bt[K]=Bt[G]=Bt[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ut=parseFloat,$t=parseInt,Ht="object"==typeof ve&&ve&&ve.Object===Object&&ve,Wt="object"==typeof self&&self&&self.Object===Object&&self,Vt=Ht||Wt||Function("return this")(),qt=t&&!t.nodeType&&t,Kt=qt&&"object"=="object"&&e&&!e.nodeType&&e,Gt=Kt&&Kt.exports===qt,Yt=Gt&&Ht.process,Qt=function(){try{var e=Kt&&Kt.require&&Kt.require("util").types;return e||Yt&&Yt.binding&&Yt.binding("util")}catch(e){}}(),Jt=Qt&&Qt.isArrayBuffer,Zt=Qt&&Qt.isDate,Xt=Qt&&Qt.isMap,en=Qt&&Qt.isRegExp,tn=Qt&&Qt.isSet,nn=Qt&&Qt.isTypedArray;function rn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function on(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function sn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function an(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ln(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function cn(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function un(e,t){return!!(null==e?0:e.length)&&wn(e,t,0)>-1}function dn(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function pn(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function hn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function fn(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function mn(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yn=kn("length");function bn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function vn(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wn(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):vn(e,xn,n)}function _n(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function xn(e){return e!=e}function En(e,t){var n=null==e?0:e.length;return n?Cn(e,t)/n:j}function kn(e){return function(t){return null==t?n:t[e]}}function Mn(e){return function(t){return null==e?n:e[t]}}function Dn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Cn(e,t){for(var r,i=-1,o=e.length;++i<o;){var s=t(e[i]);s!==n&&(r=r===n?s:r+s)}return r}function Sn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Nn(e){return e?e.slice(0,Kn(e)+1).replace(je,""):e}function An(e){return function(t){return e(t)}}function On(e,t){return pn(t,(function(t){return e[t]}))}function Tn(e,t){return e.has(t)}function In(e,t){for(var n=-1,r=e.length;++n<r&&wn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length;n--&&wn(t,e[n],0)>-1;);return n}function Fn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var jn=Mn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),zn=Mn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Rn(e){return"\\"+Pt[e]}function Bn(e){return Lt.test(e)}function Pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Un(e,t){return function(n){return e(t(n))}}function $n(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[i++]=n)}return o}function Hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Wn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Vn(e){return Bn(e)?function(e){var t=Tt.lastIndex=0;for(;Tt.test(e);)++t;return t}(e):yn(e)}function qn(e){return Bn(e)?function(e){return e.match(Tt)||[]}(e):function(e){return e.split("")}(e)}function Kn(e){for(var t=e.length;t--&&ze.test(e.charAt(t)););return t}var Gn=Mn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Yn=function e(t){var ve,ze=(t=null==t?Vt:Yn.defaults(Vt.Object(),t,Yn.pick(Vt,jt))).Array,et=t.Date,tt=t.Error,nt=t.Function,rt=t.Math,it=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=ze.prototype,ct=nt.prototype,ut=it.prototype,dt=t["__core-js_shared__"],pt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(ve=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+ve:"",gt=ut.toString,yt=pt.call(it),bt=Vt._,vt=ot("^"+pt.call(ht).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=Gt?t.Buffer:n,_t=t.Symbol,xt=t.Uint8Array,Et=wt?wt.allocUnsafe:n,kt=Un(it.getPrototypeOf,it),Mt=it.create,Dt=ut.propertyIsEnumerable,Ct=lt.splice,St=_t?_t.isConcatSpreadable:n,Nt=_t?_t.iterator:n,Tt=_t?_t.toStringTag:n,Lt=function(){try{var e=Vo(it,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==Vt.clearTimeout&&t.clearTimeout,Ht=et&&et.now!==Vt.Date.now&&et.now,Wt=t.setTimeout!==Vt.setTimeout&&t.setTimeout,qt=rt.ceil,Kt=rt.floor,Yt=it.getOwnPropertySymbols,Qt=wt?wt.isBuffer:n,yn=t.isFinite,Mn=lt.join,Qn=Un(it.keys,it),Jn=rt.max,Zn=rt.min,Xn=et.now,er=t.parseInt,tr=rt.random,nr=lt.reverse,rr=Vo(t,"DataView"),ir=Vo(t,"Map"),or=Vo(t,"Promise"),sr=Vo(t,"Set"),ar=Vo(t,"WeakMap"),lr=Vo(it,"create"),cr=ar&&new ar,ur={},dr=bs(rr),pr=bs(ir),hr=bs(or),fr=bs(sr),mr=bs(ar),gr=_t?_t.prototype:n,yr=gr?gr.valueOf:n,br=gr?gr.toString:n;function vr(e){if(Fa(e)&&!ka(e)&&!(e instanceof Er)){if(e instanceof xr)return e;if(ht.call(e,"__wrapped__"))return vs(e)}return new xr(e)}var wr=function(){function e(){}return function(t){if(!La(t))return{};if(Mt)return Mt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function _r(){}function xr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function kr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Dr;++t<n;)this.add(e[t])}function Sr(e){var t=this.__data__=new Mr(e);this.size=t.size}function Nr(e,t){var n=ka(e),r=!n&&Ea(e),i=!n&&!r&&Sa(e),o=!n&&!r&&!i&&Ha(e),s=n||r||i||o,a=s?Sn(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zo(c,l))||a.push(c);return a}function Ar(e){var t=e.length;return t?e[Ci(0,t-1)]:n}function Or(e,t){return ms(lo(e),Pr(t,0,e.length))}function Tr(e){return ms(lo(e))}function Ir(e,t,r){(r!==n&&!wa(e[t],r)||r===n&&!(t in e))&&Rr(e,t,r)}function Lr(e,t,r){var i=e[t];ht.call(e,t)&&wa(i,r)&&(r!==n||t in e)||Rr(e,t,r)}function Fr(e,t){for(var n=e.length;n--;)if(wa(e[n][0],t))return n;return-1}function jr(e,t,n,r){return Vr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function zr(e,t){return e&&co(t,dl(t),e)}function Rr(e,t,n){"__proto__"==t&&Lt?Lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Br(e,t){for(var r=-1,i=t.length,o=ze(i),s=null==e;++r<i;)o[r]=s?n:sl(e,t[r]);return o}function Pr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function Ur(e,t,r,i,o,s){var a,l=t&d,c=t&p,u=t&h;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!La(e))return e;var f=ka(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return lo(e,a)}else{var m=Go(e),g=m==G||m==Y;if(Sa(e))return no(e,l);if(m==X||m==U||g&&!o){if(a=c||g?{}:Qo(e),!l)return c?function(e,t){return co(e,Ko(e),t)}(e,function(e,t){return e&&co(t,pl(t),e)}(a,e)):function(e,t){return co(e,qo(e),t)}(e,zr(a,e))}else{if(!Bt[m])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case ce:return ro(e);case W:case V:return new r(+e);case ue:return function(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case pe:case he:case fe:case me:case ge:case ye:case be:case we:return io(e,n);case Q:return new r;case J:case ie:return new r(e);case ne:return function(e){var t=new e.constructor(e.source,Ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new r;case oe:return i=e,yr?it(yr.call(i)):{}}var i}(e,m,l)}}s||(s=new Sr);var y=s.get(e);if(y)return y;s.set(e,a),Pa(e)?e.forEach((function(n){a.add(Ur(n,t,r,n,e,s))})):ja(e)&&e.forEach((function(n,i){a.set(i,Ur(n,t,r,i,e,s))}));var b=f?n:(u?c?Ro:zo:c?pl:dl)(e);return sn(b||e,(function(n,i){b&&(n=e[i=n]),Lr(a,i,Ur(n,t,r,i,e,s))})),a}function $r(e,t,r){var i=r.length;if(null==e)return!i;for(e=it(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function Hr(e,t,r){if("function"!=typeof e)throw new at(s);return ds((function(){e.apply(n,r)}),t)}function Wr(e,t,n,r){var o=-1,s=un,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=pn(t,An(n))),r?(s=dn,a=!1):t.length>=i&&(s=Tn,a=!1,t=new Cr(t));e:for(;++o<l;){var d=e[o],p=null==n?d:n(d);if(d=r||0!==d?d:0,a&&p==p){for(var h=u;h--;)if(t[h]===p)continue e;c.push(d)}else s(t,p,r)||c.push(d)}return c}vr.templateSettings={escape:Se,evaluate:Ne,interpolate:Ae,variable:"",imports:{_:vr}},vr.prototype=_r.prototype,vr.prototype.constructor=vr,xr.prototype=wr(_r.prototype),xr.prototype.constructor=xr,Er.prototype=wr(_r.prototype),Er.prototype.constructor=Er,kr.prototype.clear=function(){this.__data__=lr?lr(null):{},this.size=0},kr.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},kr.prototype.get=function(e){var t=this.__data__;if(lr){var r=t[e];return r===l?n:r}return ht.call(t,e)?t[e]:n},kr.prototype.has=function(e){var t=this.__data__;return lr?t[e]!==n:ht.call(t,e)},kr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lr&&t===n?l:t,this},Mr.prototype.clear=function(){this.__data__=[],this.size=0},Mr.prototype["delete"]=function(e){var t=this.__data__,n=Fr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ct.call(t,n,1),--this.size,!0)},Mr.prototype.get=function(e){var t=this.__data__,r=Fr(t,e);return r<0?n:t[r][1]},Mr.prototype.has=function(e){return Fr(this.__data__,e)>-1},Mr.prototype.set=function(e,t){var n=this.__data__,r=Fr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dr.prototype.clear=function(){this.size=0,this.__data__={hash:new kr,map:new(ir||Mr),string:new kr}},Dr.prototype["delete"]=function(e){var t=Ho(this,e)["delete"](e);return this.size-=t?1:0,t},Dr.prototype.get=function(e){return Ho(this,e).get(e)},Dr.prototype.has=function(e){return Ho(this,e).has(e)},Dr.prototype.set=function(e,t){var n=Ho(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Cr.prototype.add=Cr.prototype.push=function(e){return this.__data__.set(e,l),this},Cr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.clear=function(){this.__data__=new Mr,this.size=0},Sr.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Sr.prototype.get=function(e){return this.__data__.get(e)},Sr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!ir||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dr(r)}return n.set(e,t),this.size=n.size,this};var Vr=ho(Xr),qr=ho(ei,!0);function Kr(e,t){var n=!0;return Vr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function Gr(e,t,r){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(l===n?a==a&&!$a(a):r(a,l)))var l=a,c=s}return c}function Yr(e,t){var n=[];return Vr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Qr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=Jo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qr(a,t-1,n,r,i):hn(i,a):r||(i[i.length]=a)}return i}var Jr=fo(),Zr=fo(!0);function Xr(e,t){return e&&Jr(e,t,dl)}function ei(e,t){return e&&Zr(e,t,dl)}function ti(e,t){return cn(t,(function(t){return Oa(e[t])}))}function ni(e,t){for(var r=0,i=(t=Zi(t,e)).length;null!=e&&r<i;)e=e[ys(t[r++])];return r&&r==i?e:n}function ri(e,t,n){var r=t(e);return ka(e)?r:hn(r,n(e))}function ii(e){return null==e?e===n?se:Z:Tt&&Tt in it(e)?function(e){var t=ht.call(e,Tt),r=e[Tt];try{e[Tt]=n;var i=!0}catch(e){}var o=gt.call(e);i&&(t?e[Tt]=r:delete e[Tt]);return o}(e):function(e){return gt.call(e)}(e)}function oi(e,t){return e>t}function si(e,t){return null!=e&&ht.call(e,t)}function ai(e,t){return null!=e&&t in it(e)}function li(e,t,r){for(var i=r?dn:un,o=e[0].length,s=e.length,a=s,l=ze(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=pn(d,An(t))),c=Zn(d.length,c),l[a]=!r&&(t||o>=120&&d.length>=120)?new Cr(a&&d):n}d=e[0];var p=-1,h=l[0];e:for(;++p<o&&u.length<c;){var f=d[p],m=t?t(f):f;if(f=r||0!==f?f:0,!(h?Tn(h,m):i(u,m,r))){for(a=s;--a;){var g=l[a];if(!(g?Tn(g,m):i(e[a],m,r)))continue e}h&&h.push(m),u.push(f)}}return u}function ci(e,t,r){var i=null==(e=as(e,t=Zi(t,e)))?e:e[ys(As(t))];return null==i?n:rn(i,e,r)}function ui(e){return Fa(e)&&ii(e)==U}function di(e,t,r,i,o){return e===t||(null==e||null==t||!Fa(e)&&!Fa(t)?e!=e&&t!=t:function(e,t,r,i,o,s){var a=ka(e),l=ka(t),c=a?$:Go(e),u=l?$:Go(t),d=(c=c==U?X:c)==X,p=(u=u==U?X:u)==X,h=c==u;if(h&&Sa(e)){if(!Sa(t))return!1;a=!0,d=!1}if(h&&!d)return s||(s=new Sr),a||Ha(e)?Fo(e,t,r,i,o,s):function(e,t,n,r,i,o,s){switch(n){case ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ce:return!(e.byteLength!=t.byteLength||!o(new xt(e),new xt(t)));case W:case V:case J:return wa(+e,+t);case K:return e.name==t.name&&e.message==t.message;case ne:case ie:return e==t+"";case Q:var a=Pn;case re:var l=r&f;if(a||(a=Hn),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=m,s.set(e,t);var u=Fo(a(e),a(t),r,i,o,s);return s["delete"](e),u;case oe:if(yr)return yr.call(e)==yr.call(t)}return!1}(e,t,c,r,i,o,s);if(!(r&f)){var g=d&&ht.call(e,"__wrapped__"),y=p&&ht.call(t,"__wrapped__");if(g||y){var b=g?e.value():e,v=y?t.value():t;return s||(s=new Sr),o(b,v,r,i,s)}}if(!h)return!1;return s||(s=new Sr),function(e,t,r,i,o,s){var a=r&f,l=zo(e),c=l.length,u=zo(t).length;if(c!=u&&!a)return!1;var d=c;for(;d--;){var p=l[d];if(!(a?p in t:ht.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var y=a;for(;++d<c;){var b=e[p=l[d]],v=t[p];if(i)var w=a?i(v,b,p,t,e,s):i(b,v,p,e,t,s);if(!(w===n?b===v||o(b,v,r,i,s):w)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,r,i,o,s)}(e,t,r,i,di,o))}function pi(e,t,r,i){var o=r.length,s=o,a=!i;if(null==e)return!s;for(e=it(e);o--;){var l=r[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=r[o])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Sr;if(i)var h=i(u,d,c,e,t,p);if(!(h===n?di(d,u,f|m,i,p):h))return!1}}return!0}function hi(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Oa(e)?vt:Ge).test(bs(e));var t}function fi(e){return"function"==typeof e?e:null==e?zl:"object"==typeof e?ka(e)?wi(e[0],e[1]):vi(e):ql(e)}function mi(e){if(!rs(e))return Qn(e);var t=[];for(var n in it(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gi(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in it(e))t.push(n);return t}(e);var t=rs(e),n=[];for(var r in e)("constructor"!=r||!t&&ht.call(e,r))&&n.push(r);return n}function yi(e,t){return e<t}function bi(e,t){var n=-1,r=Da(e)?ze(e.length):[];return Vr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function vi(e){var t=Wo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||pi(n,e,t)}}function wi(e,t){return es(e)&&is(t)?os(ys(e),t):function(r){var i=sl(r,e);return i===n&&i===t?al(r,e):di(t,i,f|m)}}function _i(e,t,r,i,o){e!==t&&Jr(t,(function(s,a){if(o||(o=new Sr),La(s))!function(e,t,r,i,o,s,a){var l=cs(e,r),c=cs(t,r),u=a.get(c);if(u)return void Ir(e,r,u);var d=s?s(l,c,r+"",e,t,a):n,p=d===n;if(p){var h=ka(c),f=!h&&Sa(c),m=!h&&!f&&Ha(c);d=c,h||f||m?ka(l)?d=l:Ca(l)?d=lo(l):f?(p=!1,d=no(c,!0)):m?(p=!1,d=io(c,!0)):d=[]:Ra(c)||Ea(c)?(d=l,Ea(l)?d=Ja(l):La(l)&&!Oa(l)||(d=Qo(c))):p=!1}p&&(a.set(c,d),o(d,c,i,s,a),a["delete"](c));Ir(e,r,d)}(e,t,a,r,_i,i,o);else{var l=i?i(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),Ir(e,a,l)}}),pl)}function xi(e,t){var r=e.length;if(r)return Zo(t+=t<0?r:0,r)?e[t]:n}function Ei(e,t,n){t=t.length?pn(t,(function(e){return ka(e)?function(t){return ni(t,1===e.length?e[0]:e)}:e})):[zl];var r=-1;t=pn(t,An($o()));var i=bi(e,(function(e,n,i){var o=pn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;for(;++r<s;){var l=oo(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function ki(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=ni(e,s);n(a,s)&&Ti(o,Zi(s,e),a)}return o}function Mi(e,t,n,r){var i=r?_n:wn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=pn(e,An(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==e&&Ct.call(a,l,1),Ct.call(e,l,1);return e}function Di(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Zo(i)?Ct.call(e,i,1):Wi(e,i)}}return e}function Ci(e,t){return e+Kt(tr()*(t-e+1))}function Si(e,t){var n="";if(!e||t<1||t>L)return n;do{t%2&&(n+=e),(t=Kt(t/2))&&(e+=e)}while(t);return n}function Ni(e,t){return ps(ss(e,t,zl),e+"")}function Ai(e){return Ar(wl(e))}function Oi(e,t){var n=wl(e);return ms(n,Pr(t,0,n.length))}function Ti(e,t,r,i){if(!La(e))return e;for(var o=-1,s=(t=Zi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=ys(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var d=l[c];(u=i?i(d,c,l):n)===n&&(u=La(d)?d:Zo(t[o+1])?[]:{})}Lr(l,c,u),l=l[c]}return e}var Ii=cr?function(e,t){return cr.set(e,t),e}:zl,Li=Lt?function(e,t){return Lt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:zl;function Fi(e){return ms(wl(e))}function ji(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=ze(i);++r<i;)o[r]=e[r+t];return o}function zi(e,t){var n;return Vr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=B){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!$a(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return Bi(e,t,zl,n)}function Bi(e,t,r,i){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,l=null===t,c=$a(t),u=t===n;o<s;){var d=Kt((o+s)/2),p=r(e[d]),h=p!==n,f=null===p,m=p==p,g=$a(p);if(a)var y=i||m;else y=u?m&&(i||h):l?m&&h&&(i||!f):c?m&&h&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);y?o=d+1:s=d}return Zn(s,R)}function Pi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!wa(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function Ui(e){return"number"==typeof e?e:$a(e)?j:+e}function $i(e){if("string"==typeof e)return e;if(ka(e))return pn(e,$i)+"";if($a(e))return br?br.call(e):"";var t=e+"";return"0"==t&&1/e==-I?"-0":t}function Hi(e,t,n){var r=-1,o=un,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=dn;else if(s>=i){var u=t?null:No(e);if(u)return Hn(u);a=!1,o=Tn,c=new Cr}else c=t?[]:l;e:for(;++r<s;){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,a&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),l.push(d)}else o(c,p,n)||(c!==l&&c.push(p),l.push(d))}return l}function Wi(e,t){return null==(e=as(e,t=Zi(t,e)))||delete e[ys(As(t))]}function Vi(e,t,n,r){return Ti(e,t,n(ni(e,t)),r)}function qi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ji(e,r?0:o,r?o+1:i):ji(e,r?o+1:0,r?i:o)}function Ki(e,t){var n=e;return n instanceof Er&&(n=n.value()),fn(t,(function(e,t){return t.func.apply(t.thisArg,hn([e],t.args))}),n)}function Gi(e,t,n){var r=e.length;if(r<2)return r?Hi(e[0]):[];for(var i=-1,o=ze(r);++i<r;)for(var s=e[i],a=-1;++a<r;)a!=i&&(o[i]=Wr(o[i]||s,e[a],t,n));return Hi(Qr(o,1),t,n)}function Yi(e,t,r){for(var i=-1,o=e.length,s=t.length,a={};++i<o;){var l=i<s?t[i]:n;r(a,e[i],l)}return a}function Qi(e){return Ca(e)?e:[]}function Ji(e){return"function"==typeof e?e:zl}function Zi(e,t){return ka(e)?e:es(e,t)?[e]:gs(Za(e))}var Xi=Ni;function eo(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ji(e,t,r)}var to=Pt||function(e){return Vt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,r=Et?Et(n):new e.constructor(n);return e.copy(r),r}function ro(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function io(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=$a(e),a=t!==n,l=null===t,c=t==t,u=$a(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e<t||u&&r&&o&&!i&&!s||l&&r&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,r){for(var i=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Jn(o-s,0),u=ze(l+c),d=!r;++a<l;)u[a]=t[a];for(;++i<s;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[a++]=e[i++];return u}function ao(e,t,n,r){for(var i=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Jn(o-a,0),d=ze(u+c),p=!r;++i<u;)d[i]=e[i];for(var h=i;++l<c;)d[h+l]=t[l];for(;++s<a;)(p||i<o)&&(d[h+n[s]]=e[i++]);return d}function lo(e,t){var n=-1,r=e.length;for(t||(t=ze(r));++n<r;)t[n]=e[n];return t}function co(e,t,r,i){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=i?i(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),o?Rr(r,l,c):Lr(r,l,c)}return r}function uo(e,t){return function(n,r){var i=ka(n)?on:jr,o=t?t():{};return i(n,e,$o(r,2),o)}}function po(e){return Ni((function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=it(t);++i<o;){var l=r[i];l&&e(t,l,i,s)}return t}))}function ho(e,t){return function(n,r){if(null==n)return n;if(!Da(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=it(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function fo(e){return function(t,n,r){for(var i=-1,o=it(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var r=Bn(t=Za(t))?qn(t):n,i=r?r[0]:t.charAt(0),o=r?eo(r,1).join(""):t.slice(1);return i[e]()+o}}function go(e){return function(t){return fn(Ol(El(t).replace(At,"")),e,"")}}function yo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=wr(e.prototype),r=e.apply(n,t);return La(r)?r:n}}function bo(e){return function(t,r,i){var o=it(t);if(!Da(t)){var s=$o(r,3);t=dl(t),r=function(e){return s(o[e],e,o)}}var a=e(t,r,i);return a>-1?o[s?t[a]:a]:n}}function vo(e){return jo((function(t){var r=t.length,i=r,o=xr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Po(a))var l=new xr([],!0)}for(i=l?i:r;++i<r;){var c=Po(a=t[i]),u="wrapper"==c?Bo(a):n;l=u&&ts(u[0])&&u[1]==(E|v|_|k)&&!u[4].length&&1==u[9]?l[Po(u[0])].apply(l,u[3]):1==a.length&&ts(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&ka(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function wo(e,t,r,i,o,s,a,l,c,u){var d=t&E,p=t&g,h=t&y,f=t&(v|w),m=t&M,b=h?n:yo(e);return function n(){for(var g=arguments.length,y=ze(g),v=g;v--;)y[v]=arguments[v];if(f)var w=Uo(n),_=Fn(y,w);if(i&&(y=so(y,i,o,f)),s&&(y=ao(y,s,a,f)),g-=_,f&&g<u){var x=$n(y,w);return Co(e,t,wo,n.placeholder,r,y,x,l,c,u-g)}var E=p?r:this,k=h?E[e]:e;return g=y.length,l?y=ls(y,l):m&&g>1&&y.reverse(),d&&c<g&&(y.length=c),this&&this!==Vt&&this instanceof n&&(k=b||yo(k)),k.apply(E,y)}}function _o(e,t){return function(n,r){return function(e,t,n,r){return Xr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function xo(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=$i(r),i=$i(i)):(r=Ui(r),i=Ui(i)),o=e(r,i)}return o}}function Eo(e){return jo((function(t){return t=pn(t,An($o())),Ni((function(n){var r=this;return e(t,(function(e){return rn(e,r,n)}))}))}))}function ko(e,t){var r=(t=t===n?" ":$i(t)).length;if(r<2)return r?Si(t,e):t;var i=Si(t,qt(e/Vn(t)));return Bn(t)?eo(qn(i),0,e).join(""):i.slice(0,e)}function Mo(e){return function(t,r,i){return i&&"number"!=typeof i&&Xo(t,r,i)&&(r=i=n),t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n,r){for(var i=-1,o=Jn(qt((t-e)/(n||1)),0),s=ze(o);o--;)s[r?o:++i]=e,e+=n;return s}(t,r,i=i===n?t<r?1:-1:Ka(i),e)}}function Do(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Co(e,t,r,i,o,s,a,l,c,u){var d=t&v;t|=d?_:x,(t&=~(d?x:_))&b||(t&=~(g|y));var p=[e,t,o,d?s:n,d?a:n,d?n:s,d?n:a,l,c,u],h=r.apply(n,p);return ts(e)&&us(h,p),h.placeholder=i,hs(h,e,t)}function So(e){var t=rt[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Zn(Ga(n),292))&&yn(e)){var r=(Za(e)+"e").split("e");return+((r=(Za(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var No=sr&&1/Hn(new sr([,-0]))[1]==I?function(e){return new sr(e)}:$l;function Ao(e){return function(t){var n=Go(t);return n==Q?Pn(t):n==re?Wn(t):function(e,t){return pn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Oo(e,t,r,i,o,a,l,c){var d=t&y;if(!d&&"function"!=typeof e)throw new at(s);var p=i?i.length:0;if(p||(t&=~(_|x),i=o=n),l=l===n?l:Jn(Ga(l),0),c=c===n?c:Ga(c),p-=o?o.length:0,t&x){var h=i,f=o;i=o=n}var m=d?n:Bo(e),M=[e,t,r,i,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(g|y|E),s=r==E&&n==v||r==E&&n==k&&e[7].length<=t[8]||r==(E|k)&&t[7].length<=t[8]&&n==v;if(!o&&!s)return e;r&g&&(e[2]=t[2],i|=n&g?0:b);var a=t[3];if(a){var l=e[3];e[3]=l?so(l,a,t[4]):a,e[4]=l?$n(e[3],u):t[4]}(a=t[5])&&(l=e[5],e[5]=l?ao(l,a,t[6]):a,e[6]=l?$n(e[5],u):t[6]);(a=t[7])&&(e[7]=a);r&E&&(e[8]=null==e[8]?t[8]:Zn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(M,m),e=M[0],t=M[1],r=M[2],i=M[3],o=M[4],!(c=M[9]=M[9]===n?d?0:e.length:Jn(M[9]-p,0))&&t&(v|w)&&(t&=~(v|w)),t&&t!=g)D=t==v||t==w?function(e,t,r){var i=yo(e);return function o(){for(var s=arguments.length,a=ze(s),l=s,c=Uo(o);l--;)a[l]=arguments[l];var u=s<3&&a[0]!==c&&a[s-1]!==c?[]:$n(a,c);return(s-=u.length)<r?Co(e,t,wo,o.placeholder,n,a,u,n,n,r-s):rn(this&&this!==Vt&&this instanceof o?i:e,this,a)}}(e,t,c):t!=_&&t!=(g|_)||o.length?wo.apply(n,M):function(e,t,n,r){var i=t&g,o=yo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=r.length,u=ze(c+a),d=this&&this!==Vt&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;a--;)u[l++]=arguments[++s];return rn(d,i?n:this,u)}}(e,t,r,i);else var D=function(e,t,n){var r=t&g,i=yo(e);return function t(){return(this&&this!==Vt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return hs((m?Ii:us)(D,M),e,t)}function To(e,t,r,i){return e===n||wa(e,ut[r])&&!ht.call(i,r)?t:e}function Io(e,t,r,i,o,s){return La(e)&&La(t)&&(s.set(t,e),_i(e,t,n,Io,s),s["delete"](t)),e}function Lo(e){return Ra(e)?n:e}function Fo(e,t,r,i,o,s){var a=r&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,g=r&m?new Cr:n;for(s.set(e,t),s.set(t,e);++p<l;){var y=e[p],b=t[p];if(i)var v=a?i(b,y,p,t,e,s):i(y,b,p,e,t,s);if(v!==n){if(v)continue;h=!1;break}if(g){if(!gn(t,(function(e,t){if(!Tn(g,t)&&(y===e||o(y,e,r,i,s)))return g.push(t)}))){h=!1;break}}else if(y!==b&&!o(y,b,r,i,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function jo(e){return ps(ss(e,n,Ms),e+"")}function zo(e){return ri(e,dl,qo)}function Ro(e){return ri(e,pl,Ko)}var Bo=cr?function(e){return cr.get(e)}:$l;function Po(e){for(var t=e.name+"",n=ur[t],r=ht.call(ur,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Uo(e){return(ht.call(vr,"placeholder")?vr:e).placeholder}function $o(){var e=vr.iteratee||Rl;return e=e===Rl?fi:e,arguments.length?e(arguments[0],arguments[1]):e}function Ho(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Wo(e){for(var t=dl(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,is(i)]}return t}function Vo(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return hi(r)?r:n}var qo=Yt?function(e){return null==e?[]:(e=it(e),cn(Yt(e),(function(t){return Dt.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)hn(t,qo(e)),e=kt(e);return t}:Yl,Go=ii;function Yo(e,t,n){for(var r=-1,i=(t=Zi(t,e)).length,o=!1;++r<i;){var s=ys(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ia(i)&&Zo(s,i)&&(ka(e)||Ea(e))}function Qo(e){return"function"!=typeof e.constructor||rs(e)?{}:wr(kt(e))}function Jo(e){return ka(e)||Ea(e)||!!(St&&e&&e[St])}function Zo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var r=typeof t;return!!("number"==r?Da(n)&&Zo(t,n.length):"string"==r&&t in n)&&wa(n[t],e)}function es(e,t){if(ka(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$a(e))||(Te.test(e)||!Oe.test(e)||null!=t&&e in it(t))}function ts(e){var t=Po(e),n=vr[t];if("function"!=typeof n||!(t in Er.prototype))return!1;if(e===n)return!0;var r=Bo(n);return!!r&&e===r[0]}(rr&&Go(new rr(new ArrayBuffer(1)))!=ue||ir&&Go(new ir)!=Q||or&&Go(or.resolve())!=ee||sr&&Go(new sr)!=re||ar&&Go(new ar)!=ae)&&(Go=function(e){var t=ii(e),r=t==X?e.constructor:n,i=r?bs(r):"";if(i)switch(i){case dr:return ue;case pr:return Q;case hr:return ee;case fr:return re;case mr:return ae}return t});var ns=dt?Oa:Ql;function rs(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function is(e){return e==e&&!La(e)}function os(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in it(r)))}}function ss(e,t,r){return t=Jn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Jn(n.length-t,0),s=ze(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=ze(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),rn(e,this,a)}}function as(e,t){return t.length<2?e:ni(e,ji(t,0,-1))}function ls(e,t){for(var r=e.length,i=Zn(t.length,r),o=lo(e);i--;){var s=t[i];e[i]=Zo(s,r)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(Ii),ds=Wt||function(e,t){return Vt.setTimeout(e,t)},ps=fs(Li);function hs(e,t,n){var r=t+"";return ps(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return sn(P,(function(n){var r="_."+n[0];t&n[1]&&!un(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Be);return t?t[1].split(Pe):[]}(r),n)))}function fs(e){var t=0,r=0;return function(){var i=Xn(),o=N-(i-r);if(r=i,o>0){if(++t>=S)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var s=Ci(r,o),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var gs=function(e){var t=fa(e,(function(e){return n.size===c&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ie,(function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)})),t}));function ys(e){if("string"==typeof e||$a(e))return e;var t=e+"";return"0"==t&&1/e==-I?"-0":t}function bs(e){if(null!=e){try{return pt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function vs(e){if(e instanceof Er)return e.clone();var t=new xr(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ws=Ni((function(e,t){return Ca(e)?Wr(e,Qr(t,1,Ca,!0)):[]})),_s=Ni((function(e,t){var r=As(t);return Ca(r)&&(r=n),Ca(e)?Wr(e,Qr(t,1,Ca,!0),$o(r,2)):[]})),xs=Ni((function(e,t){var r=As(t);return Ca(r)&&(r=n),Ca(e)?Wr(e,Qr(t,1,Ca,!0),n,r):[]}));function Es(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),vn(e,$o(t,3),i)}function ks(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=Ga(r),o=r<0?Jn(i+o,0):Zn(o,i-1)),vn(e,$o(t,3),o,!0)}function Ms(e){return(null==e?0:e.length)?Qr(e,1):[]}function Ds(e){return e&&e.length?e[0]:n}var Cs=Ni((function(e){var t=pn(e,Qi);return t.length&&t[0]===e[0]?li(t):[]})),Ss=Ni((function(e){var t=As(e),r=pn(e,Qi);return t===As(r)?t=n:r.pop(),r.length&&r[0]===e[0]?li(r,$o(t,2)):[]})),Ns=Ni((function(e){var t=As(e),r=pn(e,Qi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?li(r,n,t):[]}));function As(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Os=Ni(Ts);function Ts(e,t){return e&&e.length&&t&&t.length?Mi(e,t):e}var Is=jo((function(e,t){var n=null==e?0:e.length,r=Br(e,t);return Di(e,pn(t,(function(e){return Zo(e,n)?+e:e})).sort(oo)),r}));function Ls(e){return null==e?e:nr.call(e)}var Fs=Ni((function(e){return Hi(Qr(e,1,Ca,!0))})),js=Ni((function(e){var t=As(e);return Ca(t)&&(t=n),Hi(Qr(e,1,Ca,!0),$o(t,2))})),zs=Ni((function(e){var t=As(e);return t="function"==typeof t?t:n,Hi(Qr(e,1,Ca,!0),n,t)}));function Rs(e){if(!e||!e.length)return[];var t=0;return e=cn(e,(function(e){if(Ca(e))return t=Jn(e.length,t),!0})),Sn(t,(function(t){return pn(e,kn(t))}))}function Bs(e,t){if(!e||!e.length)return[];var r=Rs(e);return null==t?r:pn(r,(function(e){return rn(t,n,e)}))}var Ps=Ni((function(e,t){return Ca(e)?Wr(e,t):[]})),Us=Ni((function(e){return Gi(cn(e,Ca))})),$s=Ni((function(e){var t=As(e);return Ca(t)&&(t=n),Gi(cn(e,Ca),$o(t,2))})),Hs=Ni((function(e){var t=As(e);return t="function"==typeof t?t:n,Gi(cn(e,Ca),n,t)})),Ws=Ni(Rs);var Vs=Ni((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,Bs(e,r)}));function qs(e){var t=vr(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=jo((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return Br(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Er&&Zo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new xr(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var Ys=uo((function(e,t,n){ht.call(e,n)?++e[n]:Rr(e,n,1)}));var Qs=bo(Es),Js=bo(ks);function Zs(e,t){return(ka(e)?sn:Vr)(e,$o(t,3))}function Xs(e,t){return(ka(e)?an:qr)(e,$o(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Rr(e,n,[t])}));var ta=Ni((function(e,t,n){var r=-1,i="function"==typeof t,o=Da(e)?ze(e.length):[];return Vr(e,(function(e){o[++r]=i?rn(t,e,n):ci(e,t,n)})),o})),na=uo((function(e,t,n){Rr(e,n,t)}));function ra(e,t){return(ka(e)?pn:bi)(e,$o(t,3))}var ia=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Ni((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),Ei(e,Qr(t,1),[])})),sa=Ht||function(){return Vt.Date.now()};function aa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Oo(e,E,n,n,n,n,t)}function la(e,t){var r;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ca=Ni((function(e,t,n){var r=g;if(n.length){var i=$n(n,Uo(ca));r|=_}return Oo(e,r,t,n,i)})),ua=Ni((function(e,t,n){var r=g|y;if(n.length){var i=$n(n,Uo(ua));r|=_}return Oo(t,r,e,n,i)}));function da(e,t,r){var i,o,a,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var r=i,s=o;return i=o=n,d=t,l=e.apply(s,r)}function g(e){return d=e,c=ds(b,t),p?m(e):l}function y(e){var r=e-u;return u===n||r>=t||r<0||h&&e-d>=a}function b(){var e=sa();if(y(e))return v(e);c=ds(b,function(e){var n=t-(e-u);return h?Zn(n,a-(e-d)):n}(e))}function v(e){return c=n,f&&i?m(e):(i=o=n,l)}function w(){var e=sa(),r=y(e);if(i=arguments,o=this,u=e,r){if(c===n)return g(u);if(h)return to(c),c=ds(b,t),m(u)}return c===n&&(c=ds(b,t)),l}return t=Qa(t)||0,La(r)&&(p=!!r.leading,a=(h="maxWait"in r)?Jn(Qa(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),w.cancel=function(){c!==n&&to(c),d=0,i=u=o=c=n},w.flush=function(){return c===n?l:v(sa())},w}var pa=Ni((function(e,t){return Hr(e,1,t)})),ha=Ni((function(e,t,n){return Hr(e,Qa(t)||0,n)}));function fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(fa.Cache||Dr),n}function ma(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}fa.Cache=Dr;var ga=Xi((function(e,t){var n=(t=1==t.length&&ka(t[0])?pn(t[0],An($o())):pn(Qr(t,1),An($o()))).length;return Ni((function(r){for(var i=-1,o=Zn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return rn(e,this,r)}))})),ya=Ni((function(e,t){var r=$n(t,Uo(ya));return Oo(e,_,n,t,r)})),ba=Ni((function(e,t){var r=$n(t,Uo(ba));return Oo(e,x,n,t,r)})),va=jo((function(e,t){return Oo(e,k,n,n,n,t)}));function wa(e,t){return e===t||e!=e&&t!=t}var _a=Do(oi),xa=Do((function(e,t){return e>=t})),Ea=ui(function(){return arguments}())?ui:function(e){return Fa(e)&&ht.call(e,"callee")&&!Dt.call(e,"callee")},ka=ze.isArray,Ma=Jt?An(Jt):function(e){return Fa(e)&&ii(e)==ce};function Da(e){return null!=e&&Ia(e.length)&&!Oa(e)}function Ca(e){return Fa(e)&&Da(e)}var Sa=Qt||Ql,Na=Zt?An(Zt):function(e){return Fa(e)&&ii(e)==V};function Aa(e){if(!Fa(e))return!1;var t=ii(e);return t==K||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Ra(e)}function Oa(e){if(!La(e))return!1;var t=ii(e);return t==G||t==Y||t==H||t==te}function Ta(e){return"number"==typeof e&&e==Ga(e)}function Ia(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function La(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Fa(e){return null!=e&&"object"==typeof e}var ja=Xt?An(Xt):function(e){return Fa(e)&&Go(e)==Q};function za(e){return"number"==typeof e||Fa(e)&&ii(e)==J}function Ra(e){if(!Fa(e)||ii(e)!=X)return!1;var t=kt(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pt.call(n)==yt}var Ba=en?An(en):function(e){return Fa(e)&&ii(e)==ne};var Pa=tn?An(tn):function(e){return Fa(e)&&Go(e)==re};function Ua(e){return"string"==typeof e||!ka(e)&&Fa(e)&&ii(e)==ie}function $a(e){return"symbol"==typeof e||Fa(e)&&ii(e)==oe}var Ha=nn?An(nn):function(e){return Fa(e)&&Ia(e.length)&&!!Rt[ii(e)]};var Wa=Do(yi),Va=Do((function(e,t){return e<=t}));function qa(e){if(!e)return[];if(Da(e))return Ua(e)?qn(e):lo(e);if(Nt&&e[Nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Nt]());var t=Go(e);return(t==Q?Pn:t==re?Hn:wl)(e)}function Ka(e){return e?(e=Qa(e))===I||e===-I?(e<0?-1:1)*F:e==e?e:0:0===e?e:0}function Ga(e){var t=Ka(e),n=t%1;return t==t?n?t-n:t:0}function Ya(e){return e?Pr(Ga(e),0,z):0}function Qa(e){if("number"==typeof e)return e;if($a(e))return j;if(La(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=La(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Nn(e);var n=Ke.test(e);return n||Ye.test(e)?$t(e.slice(2),n?2:8):qe.test(e)?j:+e}function Ja(e){return co(e,pl(e))}function Za(e){return null==e?"":$i(e)}var Xa=po((function(e,t){if(rs(t)||Da(t))co(t,dl(t),e);else for(var n in t)ht.call(t,n)&&Lr(e,n,t[n])})),el=po((function(e,t){co(t,pl(t),e)})),tl=po((function(e,t,n,r){co(t,pl(t),e,r)})),nl=po((function(e,t,n,r){co(t,dl(t),e,r)})),rl=jo(Br);var il=Ni((function(e,t){e=it(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(i=1);++r<i;)for(var s=t[r],a=pl(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===n||wa(d,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Ni((function(e){return e.push(n,Io),rn(fl,n,e)}));function sl(e,t,r){var i=null==e?n:ni(e,t);return i===n?r:i}function al(e,t){return null!=e&&Yo(e,t,ai)}var ll=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(zl)),cl=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),$o),ul=Ni(ci);function dl(e){return Da(e)?Nr(e):mi(e)}function pl(e){return Da(e)?Nr(e,!0):gi(e)}var hl=po((function(e,t,n){_i(e,t,n)})),fl=po((function(e,t,n,r){_i(e,t,n,r)})),ml=jo((function(e,t){var n={};if(null==e)return n;var r=!1;t=pn(t,(function(t){return t=Zi(t,e),r||(r=t.length>1),t})),co(e,Ro(e),n),r&&(n=Ur(n,d|p|h,Lo));for(var i=t.length;i--;)Wi(n,t[i]);return n}));var gl=jo((function(e,t){return null==e?{}:function(e,t){return ki(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function yl(e,t){if(null==e)return{};var n=pn(Ro(e),(function(e){return[e]}));return t=$o(t),ki(e,n,(function(e,n){return t(e,n[0])}))}var bl=Ao(dl),vl=Ao(pl);function wl(e){return null==e?[]:On(e,dl(e))}var _l=go((function(e,t,n){return t=t.toLowerCase(),e+(n?xl(t):t)}));function xl(e){return Al(Za(e).toLowerCase())}function El(e){return(e=Za(e))&&e.replace(Je,jn).replace(Ot,"")}var kl=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Dl=mo("toLowerCase");var Cl=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Sl=go((function(e,t,n){return e+(n?" ":"")+Al(t)}));var Nl=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Al=mo("toUpperCase");function Ol(e,t,r){return e=Za(e),(t=r?n:t)===n?function(e){return Ft.test(e)}(e)?function(e){return e.match(It)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var Tl=Ni((function(e,t){try{return rn(e,n,t)}catch(e){return Aa(e)?e:new tt(e)}})),Il=jo((function(e,t){return sn(t,(function(t){t=ys(t),Rr(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var Fl=vo(),jl=vo(!0);function zl(e){return e}function Rl(e){return fi("function"==typeof e?e:Ur(e,d))}var Bl=Ni((function(e,t){return function(n){return ci(n,e,t)}})),Pl=Ni((function(e,t){return function(n){return ci(e,n,t)}}));function Ul(e,t,n){var r=dl(t),i=ti(t,r);null!=n||La(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ti(t,dl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Oa(e);return sn(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=lo(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,hn([this.value()],arguments))})})),e}function $l(){}var Hl=Eo(pn),Wl=Eo(ln),Vl=Eo(gn);function ql(e){return es(e)?kn(ys(e)):function(e){return function(t){return ni(t,e)}}(e)}var Kl=Mo(),Gl=Mo(!0);function Yl(){return[]}function Ql(){return!1}var Jl=xo((function(e,t){return e+t}),0),Zl=So("ceil"),Xl=xo((function(e,t){return e/t}),1),ec=So("floor");var tc=xo((function(e,t){return e*t}),1),nc=So("round"),rc=xo((function(e,t){return e-t}),0);return vr.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){if(--e<1)return t.apply(this,arguments)}},vr.ary=aa,vr.assign=Xa,vr.assignIn=el,vr.assignInWith=tl,vr.assignWith=nl,vr.at=rl,vr.before=la,vr.bind=ca,vr.bindAll=Il,vr.bindKey=ua,vr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ka(e)?e:[e]},vr.chain=qs,vr.chunk=function(e,t,r){t=(r?Xo(e,t,r):t===n)?1:Jn(Ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=ze(qt(i/t));o<i;)a[s++]=ji(e,o,o+=t);return a},vr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},vr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ze(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return hn(ka(n)?lo(n):[n],Qr(t,1))},vr.cond=function(e){var t=null==e?0:e.length,n=$o();return e=t?pn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Ni((function(n){for(var r=-1;++r<t;){var i=e[r];if(rn(i[0],this,n))return rn(i[1],this,n)}}))},vr.conforms=function(e){return function(e){var t=dl(e);return function(n){return $r(n,e,t)}}(Ur(e,d))},vr.constant=Ll,vr.countBy=Ys,vr.create=function(e,t){var n=wr(e);return null==t?n:zr(n,t)},vr.curry=function e(t,r,i){var o=Oo(t,v,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.curryRight=function e(t,r,i){var o=Oo(t,w,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.debounce=da,vr.defaults=il,vr.defaultsDeep=ol,vr.defer=pa,vr.delay=ha,vr.difference=ws,vr.differenceBy=_s,vr.differenceWith=xs,vr.drop=function(e,t,r){var i=null==e?0:e.length;return i?ji(e,(t=r||t===n?1:Ga(t))<0?0:t,i):[]},vr.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ji(e,0,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t):[]},vr.dropRightWhile=function(e,t){return e&&e.length?qi(e,$o(t,3),!0,!0):[]},vr.dropWhile=function(e,t){return e&&e.length?qi(e,$o(t,3),!0):[]},vr.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Xo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=Ga(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:Ga(i))<0&&(i+=o),i=r>i?0:Ya(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},vr.filter=function(e,t){return(ka(e)?cn:Yr)(e,$o(t,3))},vr.flatMap=function(e,t){return Qr(ra(e,t),1)},vr.flatMapDeep=function(e,t){return Qr(ra(e,t),I)},vr.flatMapDepth=function(e,t,r){return r=r===n?1:Ga(r),Qr(ra(e,t),r)},vr.flatten=Ms,vr.flattenDeep=function(e){return(null==e?0:e.length)?Qr(e,I):[]},vr.flattenDepth=function(e,t){return(null==e?0:e.length)?Qr(e,t=t===n?1:Ga(t)):[]},vr.flip=function(e){return Oo(e,M)},vr.flow=Fl,vr.flowRight=jl,vr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},vr.functions=function(e){return null==e?[]:ti(e,dl(e))},vr.functionsIn=function(e){return null==e?[]:ti(e,pl(e))},vr.groupBy=ea,vr.initial=function(e){return(null==e?0:e.length)?ji(e,0,-1):[]},vr.intersection=Cs,vr.intersectionBy=Ss,vr.intersectionWith=Ns,vr.invert=ll,vr.invertBy=cl,vr.invokeMap=ta,vr.iteratee=Rl,vr.keyBy=na,vr.keys=dl,vr.keysIn=pl,vr.map=ra,vr.mapKeys=function(e,t){var n={};return t=$o(t,3),Xr(e,(function(e,r,i){Rr(n,t(e,r,i),e)})),n},vr.mapValues=function(e,t){var n={};return t=$o(t,3),Xr(e,(function(e,r,i){Rr(n,r,t(e,r,i))})),n},vr.matches=function(e){return vi(Ur(e,d))},vr.matchesProperty=function(e,t){return wi(e,Ur(t,d))},vr.memoize=fa,vr.merge=hl,vr.mergeWith=fl,vr.method=Bl,vr.methodOf=Pl,vr.mixin=Ul,vr.negate=ma,vr.nthArg=function(e){return e=Ga(e),Ni((function(t){return xi(t,e)}))},vr.omit=ml,vr.omitBy=function(e,t){return yl(e,ma($o(t)))},vr.once=function(e){return la(2,e)},vr.orderBy=function(e,t,r,i){return null==e?[]:(ka(t)||(t=null==t?[]:[t]),ka(r=i?n:r)||(r=null==r?[]:[r]),Ei(e,t,r))},vr.over=Hl,vr.overArgs=ga,vr.overEvery=Wl,vr.overSome=Vl,vr.partial=ya,vr.partialRight=ba,vr.partition=ia,vr.pick=gl,vr.pickBy=yl,vr.property=ql,vr.propertyOf=function(e){return function(t){return null==e?n:ni(e,t)}},vr.pull=Os,vr.pullAll=Ts,vr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mi(e,t,$o(n,2)):e},vr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Mi(e,t,n,r):e},vr.pullAt=Is,vr.range=Kl,vr.rangeRight=Gl,vr.rearg=va,vr.reject=function(e,t){return(ka(e)?cn:Yr)(e,ma($o(t,3)))},vr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=$o(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Di(e,i),n},vr.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Ni(e,t=t===n?t:Ga(t))},vr.reverse=Ls,vr.sampleSize=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),(ka(e)?Or:Oi)(e,t)},vr.set=function(e,t,n){return null==e?e:Ti(e,t,n)},vr.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Ti(e,t,r,i)},vr.shuffle=function(e){return(ka(e)?Tr:Fi)(e)},vr.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Xo(e,t,r)?(t=0,r=i):(t=null==t?0:Ga(t),r=r===n?i:Ga(r)),ji(e,t,r)):[]},vr.sortBy=oa,vr.sortedUniq=function(e){return e&&e.length?Pi(e):[]},vr.sortedUniqBy=function(e,t){return e&&e.length?Pi(e,$o(t,2)):[]},vr.split=function(e,t,r){return r&&"number"!=typeof r&&Xo(e,t,r)&&(t=r=n),(r=r===n?z:r>>>0)?(e=Za(e))&&("string"==typeof t||null!=t&&!Ba(t))&&!(t=$i(t))&&Bn(e)?eo(qn(e),0,r):e.split(t,r):[]},vr.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Jn(Ga(t),0),Ni((function(n){var r=n[t],i=eo(n,0,t);return r&&hn(i,r),rn(e,this,i)}))},vr.tail=function(e){var t=null==e?0:e.length;return t?ji(e,1,t):[]},vr.take=function(e,t,r){return e&&e.length?ji(e,0,(t=r||t===n?1:Ga(t))<0?0:t):[]},vr.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ji(e,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t,i):[]},vr.takeRightWhile=function(e,t){return e&&e.length?qi(e,$o(t,3),!1,!0):[]},vr.takeWhile=function(e,t){return e&&e.length?qi(e,$o(t,3)):[]},vr.tap=function(e,t){return t(e),e},vr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),da(e,t,{leading:r,maxWait:t,trailing:i})},vr.thru=Ks,vr.toArray=qa,vr.toPairs=bl,vr.toPairsIn=vl,vr.toPath=function(e){return ka(e)?pn(e,ys):$a(e)?[e]:lo(gs(Za(e)))},vr.toPlainObject=Ja,vr.transform=function(e,t,n){var r=ka(e),i=r||Sa(e)||Ha(e);if(t=$o(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:La(e)&&Oa(o)?wr(kt(e)):{}}return(i?sn:Xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},vr.unary=function(e){return aa(e,1)},vr.union=Fs,vr.unionBy=js,vr.unionWith=zs,vr.uniq=function(e){return e&&e.length?Hi(e):[]},vr.uniqBy=function(e,t){return e&&e.length?Hi(e,$o(t,2)):[]},vr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?Hi(e,n,t):[]},vr.unset=function(e,t){return null==e||Wi(e,t)},vr.unzip=Rs,vr.unzipWith=Bs,vr.update=function(e,t,n){return null==e?e:Vi(e,t,Ji(n))},vr.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Vi(e,t,Ji(r),i)},vr.values=wl,vr.valuesIn=function(e){return null==e?[]:On(e,pl(e))},vr.without=Ps,vr.words=Ol,vr.wrap=function(e,t){return ya(Ji(t),e)},vr.xor=Us,vr.xorBy=$s,vr.xorWith=Hs,vr.zip=Ws,vr.zipObject=function(e,t){return Yi(e||[],t||[],Lr)},vr.zipObjectDeep=function(e,t){return Yi(e||[],t||[],Ti)},vr.zipWith=Vs,vr.entries=bl,vr.entriesIn=vl,vr.extend=el,vr.extendWith=tl,Ul(vr,vr),vr.add=Jl,vr.attempt=Tl,vr.camelCase=_l,vr.capitalize=xl,vr.ceil=Zl,vr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=Qa(r))==r?r:0),t!==n&&(t=(t=Qa(t))==t?t:0),Pr(Qa(e),t,r)},vr.clone=function(e){return Ur(e,h)},vr.cloneDeep=function(e){return Ur(e,d|h)},vr.cloneDeepWith=function(e,t){return Ur(e,d|h,t="function"==typeof t?t:n)},vr.cloneWith=function(e,t){return Ur(e,h,t="function"==typeof t?t:n)},vr.conformsTo=function(e,t){return null==t||$r(e,t,dl(t))},vr.deburr=El,vr.defaultTo=function(e,t){return null==e||e!=e?t:e},vr.divide=Xl,vr.endsWith=function(e,t,r){e=Za(e),t=$i(t);var i=e.length,o=r=r===n?i:Pr(Ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},vr.eq=wa,vr.escape=function(e){return(e=Za(e))&&Ce.test(e)?e.replace(Me,zn):e},vr.escapeRegExp=function(e){return(e=Za(e))&&Fe.test(e)?e.replace(Le,"\\$&"):e},vr.every=function(e,t,r){var i=ka(e)?ln:Kr;return r&&Xo(e,t,r)&&(t=n),i(e,$o(t,3))},vr.find=Qs,vr.findIndex=Es,vr.findKey=function(e,t){return bn(e,$o(t,3),Xr)},vr.findLast=Js,vr.findLastIndex=ks,vr.findLastKey=function(e,t){return bn(e,$o(t,3),ei)},vr.floor=ec,vr.forEach=Zs,vr.forEachRight=Xs,vr.forIn=function(e,t){return null==e?e:Jr(e,$o(t,3),pl)},vr.forInRight=function(e,t){return null==e?e:Zr(e,$o(t,3),pl)},vr.forOwn=function(e,t){return e&&Xr(e,$o(t,3))},vr.forOwnRight=function(e,t){return e&&ei(e,$o(t,3))},vr.get=sl,vr.gt=_a,vr.gte=xa,vr.has=function(e,t){return null!=e&&Yo(e,t,si)},vr.hasIn=al,vr.head=Ds,vr.identity=zl,vr.includes=function(e,t,n,r){e=Da(e)?e:wl(e),n=n&&!r?Ga(n):0;var i=e.length;return n<0&&(n=Jn(i+n,0)),Ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wn(e,t,n)>-1},vr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),wn(e,t,i)},vr.inRange=function(e,t,r){return t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n){return e>=Zn(t,n)&&e<Jn(t,n)}(e=Qa(e),t,r)},vr.invoke=ul,vr.isArguments=Ea,vr.isArray=ka,vr.isArrayBuffer=Ma,vr.isArrayLike=Da,vr.isArrayLikeObject=Ca,vr.isBoolean=function(e){return!0===e||!1===e||Fa(e)&&ii(e)==W},vr.isBuffer=Sa,vr.isDate=Na,vr.isElement=function(e){return Fa(e)&&1===e.nodeType&&!Ra(e)},vr.isEmpty=function(e){if(null==e)return!0;if(Da(e)&&(ka(e)||"string"==typeof e||"function"==typeof e.splice||Sa(e)||Ha(e)||Ea(e)))return!e.length;var t=Go(e);if(t==Q||t==re)return!e.size;if(rs(e))return!mi(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},vr.isEqual=function(e,t){return di(e,t)},vr.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?di(e,t,n,r):!!i},vr.isError=Aa,vr.isFinite=function(e){return"number"==typeof e&&yn(e)},vr.isFunction=Oa,vr.isInteger=Ta,vr.isLength=Ia,vr.isMap=ja,vr.isMatch=function(e,t){return e===t||pi(e,t,Wo(t))},vr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,pi(e,t,Wo(t),r)},vr.isNaN=function(e){return za(e)&&e!=+e},vr.isNative=function(e){if(ns(e))throw new tt(o);return hi(e)},vr.isNil=function(e){return null==e},vr.isNull=function(e){return null===e},vr.isNumber=za,vr.isObject=La,vr.isObjectLike=Fa,vr.isPlainObject=Ra,vr.isRegExp=Ba,vr.isSafeInteger=function(e){return Ta(e)&&e>=-L&&e<=L},vr.isSet=Pa,vr.isString=Ua,vr.isSymbol=$a,vr.isTypedArray=Ha,vr.isUndefined=function(e){return e===n},vr.isWeakMap=function(e){return Fa(e)&&Go(e)==ae},vr.isWeakSet=function(e){return Fa(e)&&ii(e)==le},vr.join=function(e,t){return null==e?"":Mn.call(e,t)},vr.kebabCase=kl,vr.last=As,vr.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=Ga(r))<0?Jn(i+o,0):Zn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):vn(e,xn,o,!0)},vr.lowerCase=Ml,vr.lowerFirst=Dl,vr.lt=Wa,vr.lte=Va,vr.max=function(e){return e&&e.length?Gr(e,zl,oi):n},vr.maxBy=function(e,t){return e&&e.length?Gr(e,$o(t,2),oi):n},vr.mean=function(e){return En(e,zl)},vr.meanBy=function(e,t){return En(e,$o(t,2))},vr.min=function(e){return e&&e.length?Gr(e,zl,yi):n},vr.minBy=function(e,t){return e&&e.length?Gr(e,$o(t,2),yi):n},vr.stubArray=Yl,vr.stubFalse=Ql,vr.stubObject=function(){return{}},vr.stubString=function(){return""},vr.stubTrue=function(){return!0},vr.multiply=tc,vr.nth=function(e,t){return e&&e.length?xi(e,Ga(t)):n},vr.noConflict=function(){return Vt._===this&&(Vt._=bt),this},vr.noop=$l,vr.now=sa,vr.pad=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ko(Kt(i),n)+e+ko(qt(i),n)},vr.padEnd=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?e+ko(t-r,n):e},vr.padStart=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?ko(t-r,n)+e:e},vr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),er(Za(e).replace(je,""),t||0)},vr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Xo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ka(e),t===n?(t=e,e=0):t=Ka(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=tr();return Zn(e+o*(t-e+Ut("1e-"+((o+"").length-1))),t)}return Ci(e,t)},vr.reduce=function(e,t,n){var r=ka(e)?fn:Dn,i=arguments.length<3;return r(e,$o(t,4),n,i,Vr)},vr.reduceRight=function(e,t,n){var r=ka(e)?mn:Dn,i=arguments.length<3;return r(e,$o(t,4),n,i,qr)},vr.repeat=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),Si(Za(e),t)},vr.replace=function(){var e=arguments,t=Za(e[0]);return e.length<3?t:t.replace(e[1],e[2])},vr.result=function(e,t,r){var i=-1,o=(t=Zi(t,e)).length;for(o||(o=1,e=n);++i<o;){var s=null==e?n:e[ys(t[i])];s===n&&(i=o,s=r),e=Oa(s)?s.call(e):s}return e},vr.round=nc,vr.runInContext=e,vr.sample=function(e){return(ka(e)?Ar:Ai)(e)},vr.size=function(e){if(null==e)return 0;if(Da(e))return Ua(e)?Vn(e):e.length;var t=Go(e);return t==Q||t==re?e.size:mi(e).length},vr.snakeCase=Cl,vr.some=function(e,t,r){var i=ka(e)?gn:zi;return r&&Xo(e,t,r)&&(t=n),i(e,$o(t,3))},vr.sortedIndex=function(e,t){return Ri(e,t)},vr.sortedIndexBy=function(e,t,n){return Bi(e,t,$o(n,2))},vr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ri(e,t);if(r<n&&wa(e[r],t))return r}return-1},vr.sortedLastIndex=function(e,t){return Ri(e,t,!0)},vr.sortedLastIndexBy=function(e,t,n){return Bi(e,t,$o(n,2),!0)},vr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Ri(e,t,!0)-1;if(wa(e[n],t))return n}return-1},vr.startCase=Sl,vr.startsWith=function(e,t,n){return e=Za(e),n=null==n?0:Pr(Ga(n),0,e.length),t=$i(t),e.slice(n,n+t.length)==t},vr.subtract=rc,vr.sum=function(e){return e&&e.length?Cn(e,zl):0},vr.sumBy=function(e,t){return e&&e.length?Cn(e,$o(t,2)):0},vr.template=function(e,t,r){var i=vr.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Za(e),t=tl({},t,i,To);var o,s,l=tl({},t.imports,i.imports,To),c=dl(l),u=On(l,c),d=0,p=t.interpolate||Ze,h="__p += '",f=ot((t.escape||Ze).source+"|"+p.source+"|"+(p===Ae?We:Ze).source+"|"+(t.evaluate||Ze).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zt+"]")+"\n";e.replace(f,(function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(d,l).replace(Xe,Rn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if($e.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(_e,""):h).replace(xe,"$1").replace(Ee,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var y=Tl((function(){return nt(c,m+"return "+h).apply(n,u)}));if(y.source=h,Aa(y))throw y;return y},vr.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=z,r=Zn(e,z);t=$o(t),e-=z;for(var i=Sn(r,t);++n<e;)t(n);return i},vr.toFinite=Ka,vr.toInteger=Ga,vr.toLength=Ya,vr.toLower=function(e){return Za(e).toLowerCase()},vr.toNumber=Qa,vr.toSafeInteger=function(e){return e?Pr(Ga(e),-L,L):0===e?e:0},vr.toString=Za,vr.toUpper=function(e){return Za(e).toUpperCase()},vr.trim=function(e,t,r){if((e=Za(e))&&(r||t===n))return Nn(e);if(!e||!(t=$i(t)))return e;var i=qn(e),o=qn(t);return eo(i,In(i,o),Ln(i,o)+1).join("")},vr.trimEnd=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.slice(0,Kn(e)+1);if(!e||!(t=$i(t)))return e;var i=qn(e);return eo(i,0,Ln(i,qn(t))+1).join("")},vr.trimStart=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.replace(je,"");if(!e||!(t=$i(t)))return e;var i=qn(e);return eo(i,In(i,qn(t))).join("")},vr.truncate=function(e,t){var r=D,i=C;if(La(t)){var o="separator"in t?t.separator:o;r="length"in t?Ga(t.length):r,i="omission"in t?$i(t.omission):i}var s=(e=Za(e)).length;if(Bn(e)){var a=qn(e);s=a.length}if(r>=s)return e;var l=r-Vn(i);if(l<1)return i;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(a&&(l+=c.length-l),Ba(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=ot(o.source,Za(Ve.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf($i(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+i},vr.unescape=function(e){return(e=Za(e))&&De.test(e)?e.replace(ke,Gn):e},vr.uniqueId=function(e){var t=++ft;return Za(e)+t},vr.upperCase=Nl,vr.upperFirst=Al,vr.each=Zs,vr.eachRight=Xs,vr.first=Ds,Ul(vr,function(){var e={};return Xr(vr,(function(t,n){ht.call(vr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),vr.VERSION=r,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){vr[e].placeholder=vr})),sn(["drop","take"],(function(e,t){Er.prototype[e]=function(r){r=r===n?1:Jn(Ga(r),0);var i=this.__filtered__&&!t?new Er(this):this.clone();return i.__filtered__?i.__takeCount__=Zn(r,i.__takeCount__):i.__views__.push({size:Zn(r,z),type:e+(i.__dir__<0?"Right":"")}),i},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),sn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==A||n==T;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:$o(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),sn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Er.prototype[e]=function(){return this[n](1).value()[0]}})),sn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[n](1)}})),Er.prototype.compact=function(){return this.filter(zl)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=Ni((function(e,t){return"function"==typeof e?new Er(this):this.map((function(n){return ci(n,e,t)}))})),Er.prototype.reject=function(e){return this.filter(ma($o(e)))},Er.prototype.slice=function(e,t){e=Ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Er(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=Ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(z)},Xr(Er.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=vr[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(vr.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof Er,c=a[0],u=l||ka(t),d=function(e){var t=o.apply(vr,hn([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=s&&!p,m=l&&!h;if(!s&&u){t=m?t:new Er(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[d],thisArg:n}),new xr(g,p)}return f&&m?e.apply(this,a):(g=this.thru(d),f?i?g.value()[0]:g.value():g)})})),sn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);vr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ka(i)?i:[],e)}return this[n]((function(n){return t.apply(ka(n)?n:[],e)}))}})),Xr(Er.prototype,(function(e,t){var n=vr[t];if(n){var r=n.name+"";ht.call(ur,r)||(ur[r]=[]),ur[r].push({name:t,func:n})}})),ur[wo(n,y).name]=[{name:"wrapper",func:n}],Er.prototype.clone=function(){var e=new Er(this.__wrapped__);return e.__actions__=lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=lo(this.__views__),e},Er.prototype.reverse=function(){if(this.__filtered__){var e=new Er(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Er.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ka(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Zn(t,e+s);break;case"takeRight":e=Jn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,d=u.length,p=0,h=Zn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return Ki(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var y=u[m],b=y.iteratee,v=y.type,w=b(g);if(v==O)g=w;else if(!w){if(v==A)continue e;break e}}f[p++]=g}return f},vr.prototype.at=Gs,vr.prototype.chain=function(){return qs(this)},vr.prototype.commit=function(){return new xr(this.value(),this.__chain__)},vr.prototype.next=function(){this.__values__===n&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},vr.prototype.plant=function(e){for(var t,r=this;r instanceof _r;){var i=vs(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},vr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Er){var t=e;return this.__actions__.length&&(t=new Er(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new xr(t,this.__chain__)}return this.thru(Ls)},vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=function(){return Ki(this.__wrapped__,this.__actions__)},vr.prototype.first=vr.prototype.head,Nt&&(vr.prototype[Nt]=function(){return this}),vr}();Kt?((Kt.exports=Yn)._=Yn,qt._=Yn):Vt._=Yn}).call(ve)}(RT,RT.exports);const BT=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),PT=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),UT={onMouseEnter:BT,onMouseLeave:PT},$T=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?UT:{}};function HT(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var WT="undefined"!=typeof window&&"undefined"!=typeof document;function VT(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function qT(){return WT&&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 GT(e){var t=[];return e.forEach((function(e){t.find((function(t){return KT(e,t)}))||t.push(e)})),t}var YT=WT?d:s;function QT(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var JT={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()||QT(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&QT(t,"remove",e.props.className)},onAfterUpdate:r}}};function ZT(e){return function(t){var o=t.children,s=t.content,a=t.visible,l=t.singleton,c=t.render,d=t.reference,p=t.disabled,h=void 0!==p&&p,f=t.ignoreAttributes,m=void 0===f||f;t.__source,t.__self;var g,y,b=HT(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),v=void 0!==a,w=void 0!==l,_=r(!1),x=_[0],E=_[1],k=r({}),M=k[0],D=k[1],C=r(),S=C[0],N=C[1],A=(g=function(){return{container:qT(),renders:1}},(y=i()).current||(y.current="function"==typeof g?g():g),y.current),O=Object.assign({ignoreAttributes:m},b,{content:A.container});v&&(O.trigger="manual",O.hideOnClick=!1),w&&(h=!0);var T=O,I=O.plugins||[];c&&(T=Object.assign({},O,{plugins:w&&null!=l.data?[].concat(I,[{fn:function(){return{onTrigger:function(e,t){var n=l.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,N(n.content)}}}}]):I,render:function(){return{popper:A.container}}}));var L=[d].concat(o?[o.type]:[]);return YT((function(){var t=d;d&&d.hasOwnProperty("current")&&(t=d.current);var n=e(t||A.ref||qT(),Object.assign({},T,{plugins:[JT].concat(O.plugins||[])}));return A.instance=n,h&&n.disable(),a&&n.show(),w&&l.hook({instance:n,content:s,props:T,setSingletonContent:N}),E(!0),function(){n.destroy(),null==l||l.cleanup(n)}}),L),YT((function(){var e;if(1!==A.renders){var t,n,r,i,o=A.instance;o.setProps((t=o.props,n=T,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:GT([].concat((null==(r=t.popperOptions)?void 0:r.modifiers)||[],(null==(i=n.popperOptions)?void 0:i.modifiers)||[]))})}))),null==(e=o.popperInstance)||e.forceUpdate(),h?o.disable():o.enable(),v&&(a?o.show():o.hide()),w&&l.hook({instance:o,content:s,props:T,setSingletonContent:N})}else A.renders++})),YT((function(){var e;if(c){var t=A.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;M.placement===n.placement&&M.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&M.escaped===(null==r?void 0:r.hasPopperEscaped)||D({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(L)),n.createElement(n.Fragment,null,o?u(o,{ref:function(e){A.ref=e,VT(o.ref,e)}}):null,x&&de(c?c(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),S,A.instance):s,A.container))}}var XT=function(e,t){return c((function(r,i){var o=r.children,s=HT(r,["children"]);return n.createElement(e,Object.assign({},t,s),o?u(o,{ref:function(e){VT(i,e),VT(o.ref,e)}}):null)}))},eI=XT(ZT(L_));class tI extends n.Component{constructor(e){super(e),Jc(this,"keydownHandler",(e=>{const t={Enter:this.enterHandler,ArrowUp:this.upHandler,ArrowDown:this.downHandler,ArrowLeft:this.leftArrowHandler,ArrowRight:this.rightArrowHandler};e.key in t&&t[e.key](e)})),Jc(this,"selectItem",(e=>{const{items:t,editor:n,range:r}=this.props,i=t[e],o=i&&i.command,s=tp(i.items);o&&s&&i.command({editor:n,range:r})})),Jc(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),Jc(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),Jc(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),Jc(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),Jc(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:r}=this.state,i=n[r];i&&!tp(i.items)&&t(e+1)})),this.state={selectedIndex:0},this.menuRef=n.createRef()}componentDidMount(){const{menuIndex:e,activeMenuIndex:t}=this.props;e===t&&document.addEventListener("keydown",this.keydownHandler)}componentWillUnmount(){document.removeEventListener("keydown",this.keydownHandler)}componentDidUpdate(e){const{items:t,menuIndex:n,activeMenuIndex:r}=this.props,i=n===r;t!==e.items&&this.setState({selectedIndex:0}),FO({wrapperRef:this.menuRef,index:this.state.selectedIndex}),i?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:t,activeMenuIndex:r}=this.props,{selectedIndex:i}=this.state,o=t===r;return n.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,r)=>{const s=tp(e.items),a=n.createElement(nI,{index:r,item:e,key:e.title,selectItem:()=>s&&this.selectItem(r),selectedIndex:o?i:-1,onHover:()=>this.setState({selectedIndex:r})});return s?a:n.createElement(eI,{interactive:!0,key:e.title,placement:"right",visible:i===r,content:n.createElement(tI,rp({},this.props,{items:e.items,menuIndex:t+1})),onCreate:e=>{let{popper:t}=e;return t.style.width="max-content"},onHide:()=>{this.isSubmenuOpened=!1},onShow:()=>{this.isSubmenuOpened=!0}},a)})))}}const nI=c(((e,t)=>{let{item:r,selectedIndex:i,index:o,selectItem:s,onHover:a}=e;const{Icon:l}=r;return n.createElement("div",{"data-cy":`neeto-editor-command-list-item-${o}`,ref:t,className:$e("neeto-editor-slash-commands__item",{active:o===i}),onClick:s,onMouseEnter:a},l&&n.createElement(l,{size:20}),n.createElement("div",{className:"neeto-editor-slash-commands__item-content"},n.createElement("h5",null,r.title),n.createElement("p",null,r.description)))}));class rI extends n.Component{constructor(){super(...arguments),Jc(this,"state",{activeMenuIndex:0}),Jc(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),Jc(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return n.createElement(tI,rp({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const iI=[{optionName:He.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:T,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:He.H1,title:"H1",description:"Add a big heading.",Icon:I,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:He.H2,title:"H2",description:"Add a sub-heading.",Icon:L,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{optionName:He.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:F,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:He.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:F,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:He.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:F,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:He.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:F,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:He.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:j,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:He.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:z,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:He.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:R,command:oe},{optionName:He.VIDEO_UPLOAD,title:"Video",description:"Add a video.",Icon:B,command:oe},{optionName:He.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:P,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:He.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:U,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:He.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:$,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:He.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:H,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:He.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:W,command:oe},{optionName:He.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:V,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}}],oI={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}},sI=e=>{let{editor:t,range:n}=e;const r=prompt("Please enter Youtube/Loom/Vimeo embed URL."),i=!!r&&(lI(r)||uI(r)||cI(r));i?t.chain().focus().deleteRange(n).setExternalVideo({src:i}).run():t.chain().focus().deleteRange(n).insertContent("#invalid").run()},aI=e=>{let{options:t,addonCommands:n,setMediaUploader:r,handleUploadAttachments:i}=e;const o=iI.map((e=>e.optionName===He.IMAGE_UPLOAD?le("command",(e=>t=>{let{editor:n,range:r}=t;e(le("image",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===He.VIDEO_UPLOAD?le("command",(e=>t=>{let{editor:n,range:r}=t;e(le("video",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===He.VIDEO_EMBED?le("command",sI,e):e.optionName===He.ATTACHMENTS?le("command",(e=>t=>{let{editor:n,range:r}=t;e(),n.chain().focus().deleteRange(r).run()})(i),e):e));return[...o.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]},lI=e=>{const t=e.match(Ke);return t&&`https://www.youtube.com/embed/${t[5]}`},cI=e=>{const t=e.match(Ge);return t&&`https://player.vimeo.com/video/${t[4]}?h=${t[5]}`},uI=e=>{const t=e.match(Ye);return t&&`https://www.loom.com/embed/${t[4]}?t=${t[5]||""}`},dI=new Nf("commands");var pI=e=>{let{addonCommands:t,options:n,setMediaUploader:r,handleUploadAttachments:i}=e;const o=aI({options:n,addonCommands:t,setMediaUploader:r,handleUploadAttachments:i});return Ib.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:dI,command:e=>{let{editor:t,range:n,props:r}=e;r.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=o.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return RT.exports.isEmpty(n)?[oI]:n},render:()=>{let e,t;return{onStart:n=>{e=new K_(rI,{props:n,editor:n.editor}),t=L_("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",arrow:!1,zIndex:99999,role:"dropdown",theme:"neeto-editor-slash-menu"}),BT()},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t&&t[0].destroy(),e&&e.destroy(),PT()}}}}}),addProseMirrorPlugins(){return[QS({editor:this.editor,...this.options.suggestion})]}})};const hI=e=>{let{onClickVariable:t,variables:r}=e;const i=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:r,category_label:i,variables:o}=n;if(r&&o){const e=o.map(le("category_key",r));t.push({label:i,variables:e})}else e.push(n)})),RT.exports.isEmpty(e)||t.push({label:RT.exports.isEmpty(t)?null:"Others",variables:e}),t}(r);return re(r)?null:n.createElement("div",{className:"neeto-editor-variables-list"},i.map(((e,r)=>{let{label:i,variables:o}=e;return n.createElement(fI,{index:r,key:r,title:i,variables:o,onClickItem:t})})))},fI=e=>{let{index:t,title:r,variables:i,onClickItem:o}=e;return n.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${t}`},r&&n.createElement("h6",null,r),n.createElement("div",{className:"neeto-editor-variables-row"},i.map((e=>n.createElement("button",{className:"neeto-editor-variable","data-cy":`neeto-editor-variable-option-item-${e.label}--${e.value}`,key:`${e.label}--${e.value}`,type:"button",onClick:()=>o(e)},e.label)))))},mI=e=>{let{items:t,command:r}=e;return n.createElement("div",{className:"neeto-editor-variables-suggestion"},n.createElement(hI,{variables:t,onClickVariable:e=>{const{category_key:t,key:n}=e,i=t?`${t}.${n}`:n;r({label:i,id:i})}}))},gI=new Nf("variables"),yI=kv.create({name:"variable",addOptions:()=>({HTMLAttributes:{class:"neeto-editor-variable"},charOpen:"{{",charClose:"}}",renderLabel(e){let{options:t,node:n}=e;return`${t.charOpen}${n.attrs.label||n.attrs.id}${t.charClose}`},suggestion:{}}),group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML:()=>[{tag:"span[data-variable]"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",mb({"data-variable":""},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]},renderText(e){let{node:t}=e;return this.options.renderLabel({options:this.options,node:t})},addCommands(){return{setVariable:e=>t=>{let{chain:n}=t;n().focus().insertContent([{type:this.name,attrs:e},{type:"text",text:" "}]).run()}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((e=>{let{tr:t,state:n}=e,r=!1;const{selection:i}=n,{empty:o,anchor:s}=i;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return r=!0,t.insertText("",n,n+e.nodeSize),!1})),r)}))}},addProseMirrorPlugins(){return[QS({editor:this.editor,...this.options.suggestion})]}}),bI={char:"{{",startOfLine:!1,pluginKey:gI,command:e=>{let{editor:t,range:n,props:r}=e;t.chain().focus().deleteRange(n).setVariable(r).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new K_(mI,{props:n,editor:n.editor}),t=L_("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onExit(){t[0].destroy(),e.destroy()}}}};var vI=e=>{let{suggestion:t={}}=e;return yI.configure({suggestion:{...bI,...t}})};const wI=e=>{var t;let{node:r,editor:o,getPos:s,updateAttributes:a,deleteNode:l}=e;const c=i(null),{alt:u,src:d,vidheight:p,vidwidth:h,align:f}=r.attrs,{view:m}=o;let g=p,y=h;const b=c.current?null===(t=c.current.querySelector("figcaption>div"))||void 0===t?void 0:t.textContent:u;return n.createElement(q_,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},n.createElement("figure",{ref:c},n.createElement(MO,{align:f,deleteNode:l,updateAttributes:a}),n.createElement(kO,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:g,width:y},onResizeStop:(e,t,n)=>{g=n.offsetHeight,y=n.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(s(),void 0,{...r.attrs,vidheight:g,vidwidth:y,height:g,width:y})),o.commands.focus()}},n.createElement("video",rp({controls:!0},r.attrs,{alt:b,preload:"metadata",src:d}))),n.createElement(V_,{as:"figcaption",className:$e({"is-empty":re(b)})})))},_I=kv.create({name:"video",addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",draggable:!0,isolating:!0,addAttributes:()=>({src:{default:null,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("src")}},alt:{default:"",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("alt")}},vidheight:{default:288,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidheight")}},vidwidth:{default:"fit-content",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidwidth")}},align:{default:"left",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("align")}}}),parseHTML:()=>[{tag:"figure[data-video]",getAttrs:e=>"normal"!==e.style.fontWeight&&null,contentElement:"figcaption"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;const{align:r,src:i,vidheight:o,vidwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:i,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${r}`},["figure",mb(this.options.HTMLAttributes,{"data-video":""}),["div",a,["video",mb(n,{preload:"metadata",controls:!0,draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>Y_(wI),addCommands(){return{setVideo:e=>{let{caption:t,...n}=e;return e=>{let{chain:r}=e;return r().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:r,selection:i}=t,o=r.resolve(i.to).end();return n.setTextSelection(o)})).run()}}}}}),xI=e=>{var t;let{uppy:i}=e;const[o,a]=r(0);s((()=>{i.on("upload-progress",((e,t)=>{let{progress:n}=t;return a(n)}))}),[i]);const l=`${o}%`;return n.createElement("div",{className:"ne-media-uploader__progress"},n.createElement("p",{className:"ne-media-uploader__progress-title"},"Uploading..."),n.createElement("p",{className:"ne-media-uploader__progress-file"},null===(t=i.getFiles()[0])||void 0===t?void 0:t.name),n.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},n.createElement("div",{className:"neeto-editor-progress-bar__percent"},n.createElement("p",null,l),n.createElement(m,{icon:S,size:"small",style:"text",onClick:()=>i.cancelAll()})),n.createElement("div",{className:"neeto-editor-progress-bar__indicator"},n.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},EI=e=>{let{isImage:t,endpoint:r,onSuccess:i}=e;const o=t?Wc:Vc,{uppy:s,isUploading:a}=Ud({endpoint:r,uppyConfig:o,onSuccess:i});return a?n.createElement(xI,{uppy:s}):n.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},n.createElement(ac,{className:"ne-media-uploader__dnd","data-cy":"neeto-editor-media-local-uploader",uppy:s,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${Gc(o.restrictions.maxFileSize)}`}))},kI=e=>{let{isImage:t,url:i,editor:o,onClose:s,alt:a=""}=e;const[l,c]=r(a||""),[u,d]=r(!1),p=()=>{t?o.chain().focus().setFigure({src:i,caption:l,alt:l}).run():o.chain().focus().setVideo({src:i,caption:l,alt:l}).run(),s()};return n.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&p()}},u?n.createElement("div",{className:"ne-media-editor__error"},n.createElement("h2",null,"Something Went Wrong!"),n.createElement("p",null,"The selected media cannot be displayed. Please try again.")):n.createElement(n.Fragment,null,t?n.createElement("img",{loading:"lazy",src:i,onError:e=>{let{currentTarget:t}=e;d(!0),t.onerror=null}}):n.createElement("video",{src:i,onError:e=>{let{currentTarget:t}=e;d(!0),t.onerror=null}}),n.createElement(f,{autoFocus:!0,label:"Caption",placeholder:"Enter a caption",value:l,onChange:e=>c(e.target.value)})),n.createElement("div",{className:"ne-media-editor__footer"},n.createElement(m,{disabled:u,label:"Done",onClick:p}),n.createElement(m,{label:"Cancel",style:"text",onClick:s})))};var MI={},DI=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},CI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function r(e,t){return t._once=!0,n(e,t),this}function i(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&i(e,t),t.apply(n,o)})),this}return DI({},e,{on:n,once:r,off:i,emit:o})},SI=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,d=void 0,p=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,y=e.container.nodeType?e.container:document.querySelector(e.container),b={all:function(){return E(y.children)},new:function(){return E(y.children).filter((function(e){return!e.hasAttribute(""+f)}))}},v=[D,C,S],w=[N,A,O,T],_=CI({pack:F,update:j,resize:z});return _;function x(e){e.forEach((function(e){return e()}))}function E(e){return Array.prototype.slice.call(e)}function k(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function M(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function D(){r=M()}function C(){i=-1===r?m[m.length-1]:m[r]}function S(){s=k(i.columns)}function N(){d=b[t?"new":"all"]()}function A(){0!==d.length&&(p=d.map((function(e){return e.clientWidth})),h=d.map((function(e){return e.clientHeight})))}function O(){d.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*p[t]+o*i.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=p[t],u=h[t],c&&u&&(s[o]+=u+i.gutter)}))}function T(){y.style.position="relative",y.style.width=i.columns*c+(i.columns-1)*i.gutter+"px",y.style.height=Math.max.apply(Math,s)-i.gutter+"px"}function I(){n||(window.requestAnimationFrame(L),n=!0)}function L(){r!==M()&&(F(),_.emit("resize",i)),n=!1}function F(){return t=!1,x(v.concat(w)),_.emit("pack")}function j(){return t=!0,x(w),_.emit("update")}function z(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",I),_}}}),NI=_e(SI),AI={exports:{}},OI={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=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,o=a(i),s=a(fl.exports);function a(e){return e&&e.__esModule?e:{default:e}}var l=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.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),r=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;r=this.props.isReverse?o:this.calculateOffset(e,o)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,r=t.element,i=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return i&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(r,c,u)}}]),t}(i.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t["default"]}(OI,OI.exports),AI.exports=OI.exports,Object.defineProperty(MI,"__esModule",{value:!0});var TI,II,LI=MI.default=void 0,FI=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}}(),jI=n,zI=UI(jI),RI=UI(fl.exports),BI=UI(NI),PI=UI(AI.exports);function UI(e){return e&&e.__esModule?e:{default:e}}function $I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HI(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 WI=(II=TI=function(e){function t(){var e,n,r;$I(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=HI(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.setContainerRef=function(e){r.masonryContainer=e},r.forcePack=function(){r.masonryContainer&&r.state.instance.pack()},r.forceUpdate=function(){r.masonryContainer&&r.state.instance.update()},r.createNewInstance=function(){var e=r.props,t=e.packed,n=e.sizes,i=e.children,o=e.position,s=(0,BI.default)({container:r.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),i.length>0&&s.pack(),r.setState((function(){return{instance:s}}))},HI(r,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,jI.Component),FI(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.style;e.pack,e.packed,e.position,e.sizes;var i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return zI.default.createElement(PI.default,i,zI.default.createElement("div",{ref:this.setContainerRef,className:n,style:r},t))}}]),t}(),TI.propTypes={children:RI.default.arrayOf(RI.default.element).isRequired,className:RI.default.string,initialLoad:RI.default.bool,pack:RI.default.bool,packed:RI.default.string,position:RI.default.bool,sizes:RI.default.array,style:RI.default.object},TI.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},II);LI=MI.default=WI;const VI=e=>{let{onSubmit:t,unsplashApiKey:o}=e;const a=i(null),[l,c]=r(""),[u,d]=r(!1),[p,h]=r([]),[m,g]=r(1),[y,b]=r(!0),[w,_]=r(!1),x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[n,i]=r(e);return s((()=>{const n=setTimeout((()=>{i(e)}),t);return()=>{clearTimeout(n)}}),[e]),n}(l||"latest");s((()=>{E(1)}),[x]);const E=async e=>{try{_(!0),d(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:r}=e;return ie.get(We,{headers:{Authorization:`Client-ID ${r}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:x,apiKey:o}),{data:{results:n,total_pages:r}}=t;h(1===e?n:[...p,...n]),g(e+1),b(e<r)}catch{d(!0)}finally{_(!1)}},k=n.createElement("div",{className:"neeto-editor-unsplash-gallery__loader"},n.createElement(v,null));return n.createElement("div",{className:"neeto-editor-unsplash-wrapper"},n.createElement(f,{autoFocus:!0,className:"neeto-editor-unsplash-search","data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:l,onChange:e=>{let{target:{value:t}}=e;c(t)}}),u&&n.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!u&&!w&&tp(p)&&n.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!u&&n.createElement("div",{className:"neeto-editor-unsplash-container"},n.createElement(LI,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:y,loadMore:()=>{!w&&y&&m>1&&E(m)},loader:k,ref:a,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},p&&p.map(((e,r)=>n.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${r}`,key:r},n.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},n.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${r}`},n.createElement("img",{src:e.urls.regular,onClick:()=>t(e.urls.small)}),n.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!y&&n.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},qI=e=>{let{buttonLabel:t="Submit",placeholder:i,onSubmit:o,className:s}=e;const[a,l]=r(""),[c,u]=r("");return n.createElement("div",{className:$e("neeto-editor-url-form__wrapper",{[s]:s})},n.createElement(f,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:c,name:"url",placeholder:i,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),n.createElement(m,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!a,label:t,onClick:e=>{e.preventDefault(),qe.test(a)?o(a):u("Please enter a valid url")}}))},KI=e=>{let{mediaUploader:t,onClose:i,editor:o,uploadEndpoint:s,unsplashApiKey:a}=e;const[l,c]=r("local"),[u,d]=r(""),p=t.image||t.video;let h=a?Kc:Kc.slice(0,2);t.video&&(h=[]);const f=()=>{i(),d(""),c("local")};return n.createElement(_,{closeButton:!1,isOpen:p,onClose:f},n.createElement("div",{className:"ne-media-uploader"},!tp(h)&&re(u)&&n.createElement(x,null,h.map((e=>{let{key:t,title:r}=e;return n.createElement(x.Item,{active:l===t,key:t,onClick:()=>c(t)},r)}))),n.createElement("div",{className:"ne-media-uploader__content"},u?n.createElement(kI,{editor:o,isImage:t.image,url:u,onClose:f}):n.createElement(n.Fragment,null,"local"===l&&n.createElement(EI,{endpoint:s,isImage:t.image,onSuccess:d}),"link"===l&&n.createElement(qI,{placeholder:"Paste the link here...",buttonLabel:t.image?"Upload image":"Upload video",onSubmit:d}),"unsplash"===l&&n.createElement(VI,{unsplashApiKey:a,onSubmit:d})))))};var GI=[],YI=[];function QI(e,t){if(e&&"undefined"!=typeof document){var n,r=!0===t.prepend?"prepend":"append",i=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var s=GI.indexOf(o);-1===s&&(s=GI.push(o)-1,YI[s]={}),n=YI[s]&&YI[s][r]?YI[s][r]:YI[s][r]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),i=0;i<n.length;i++)e.setAttribute(n[i],t.attributes[n[i]]);var s="prepend"===r?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}QI(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const JI=e=>{let{editor:t,handleClose:i,handleAnimateInvalidLink:o}=e;const[a,l]=r("");s((()=>{l(t.getAttributes("link").href||"")}),[]);const c=()=>{qe.test(a)?(t.chain().focus().setLink({href:a}).run(),i()):tp(a)?(t.chain().focus().unsetLink().run(),i()):(l(""),o())};return n.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?i():"Enter"===e.key&&c()}},n.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)}}),n.createElement(m,{"data-cy":"neeto-editor-link-cancel-button",icon:S,size:"small",style:"icon",onClick:()=>{a?(l(""),t.chain().focus().unsetLink().run()):i()}}))},ZI=e=>{let{Icon:t,command:r,active:i,optionName:o,highlight:s}=e;return n.createElement(m,rp({"data-cy":`neeto-editor-bubble-menu-${o}-option`,icon:t,key:o,size:"small",style:i?"secondary":"text",tooltipProps:{content:se(o),position:"bottom",theme:"dark",delay:[500]},onClick:r},$T(s)))},XI=e=>{let{editor:t,mentions:r}=e;const i=TT(r),{Menu:o,MenuItem:s}=y;return re(i)?null:n.createElement(y,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:q,strategy:"fixed",buttonProps:{tooltipProps:{content:"Mention",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},n.createElement(o,null,i.map((e=>{let{key:r,name:i,imageUrl:o}=e;return n.createElement(s.Button,{"data-cy":`neeto-editor-mention-option-${r}`,key:r,onClick:()=>t.commands.setMention({id:r,label:i})},n.createElement(w,{size:"small",user:{name:i,imageUrl:o}}),n.createElement(g,{style:"body2"},i))}))))},eL=e=>{let{editor:t}=e;return n.createElement(y,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:$,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:"Emoji",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},n.createElement(QA,{editor:t}))},tL=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],nL=e=>{let{editor:t,options:n,setMediaUploader:r,handleUploadAttachments:i}=e;const o=((e,t,n)=>({font:[{Icon:K,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:G,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Y,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:Q,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:J,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:Z,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:U,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"}],list:[{Icon:z,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:j,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}],misc:[{Icon:N,command:n,active:!1,optionName:"attachments"},{Icon:R,command:()=>t(le("image",!0)),optionName:"image-upload"},{Icon:B,command:()=>t(le("video",!0)),optionName:"video-upload"}],right:[{Icon:X,command:()=>e.chain().focus().undo().run(),active:!1,disabled:!e.can().undo(),optionName:"undo"},{Icon:ee,command:()=>e.chain().focus().redo().run(),active:!1,disabled:!e.can().redo(),optionName:"redo"}]}))(t,r,i);return ge(["font","block","list","misc","right"].map((e=>[e,o[e].filter((e=>n.includes(e.optionName)))])))},rL=e=>{let{Icon:t,command:r,active:i,optionName:o,highlight:s,disabled:a}=e;return n.createElement(m,rp({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,icon:t,key:o,style:i?"secondary":"text",tooltipProps:{content:se(o),position:"bottom"},onClick:r},$T(s)))},iL=e=>{let{editor:t,commands:n}=e;const{to:r}=t.state.selection;return n.map((e=>{var n;return{...e,active:null===(n=e.active)||void 0===n?void 0:n.call(e,{editor:t}),command:()=>{var n;return null===(n=e.command)||void 0===n?void 0:n.call(e,{editor:t,range:{from:r,to:r}})}}}))},oL=e=>{let{editor:t,options:r,mentions:i,setIsInvalidLink:o,isLinkOptionActive:s,setIsLinkOptionActive:a,setMediaUploader:l,handleUploadAttachments:c}=e;const{Menu:u,MenuItem:d}=y,p=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:t}),h=(e=>{var t;return(null===(t=e.find(me("active")))||void 0===t?void 0:t.optionName)||"Text"})(p),f=r.includes(He.EMOJI),m=r.includes(He.LINK),{font:g,block:b,list:v}=nL({editor:t,options:r,setMediaUploader:l,handleUploadAttachments:c}),w=()=>{o(!0),setTimeout((()=>{o(!1)}),1e3)};return s?n.createElement(JI,{editor:t,handleAnimateInvalidLink:w,handleClose:()=>a(!1)}):n.createElement(n.Fragment,null,n.createElement(y,{buttonSize:"small",buttonStyle:"text",label:h,strategy:"fixed"},n.createElement(u,null,p.map((e=>{let{optionName:t,command:r}=e;return n.createElement(d.Button,{key:t,onClick:r},t)})))),g.map(ZI),b.map(ZI),f&&n.createElement(eL,{editor:t}),v.map(ZI),m&&ZI({Icon:te,command:()=>a(!0),active:t.isActive("link"),optionName:"link",highlight:!1}),n.createElement(XI,{editor:t,mentions:i}))},sL=e=>{let{editor:t,options:i,mentions:o=[],setMediaUploader:s,handleUploadAttachments:a}=e;const[l,c]=r(!1),[u,d]=r(!1),p=t&&t.view.state.selection.node,h=p&&"image"===p.type.name,f=[He.BOLD,He.ITALIC,He.UNDERLINE,He.STRIKETHROUGH,He.LINK],m=tp(i.filter((e=>f.includes(e))));return!t||!h&&m?null:n.createElement("div",null,n.createElement(R_,{editor:t,className:$e("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":l}),tippyOptions:{arrow:qw,zIndex:99999,onHide:()=>d(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},n.createElement(oL,{editor:t,handleUploadAttachments:a,isLinkOptionActive:u,mentions:o,options:i,setIsInvalidLink:c,setIsLinkOptionActive:d,setMediaUploader:s})))},{Menu:aL,MenuItem:lL}=y,cL=e=>{var t;let{editor:r}=e;const i=(null===(t=tL.find((e=>{let{value:t}=e;return n=t,r.isActive("heading",{level:n});var n})))||void 0===t?void 0:t.label)||"Paragraph";return n.createElement(y,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:i,placement:"bottom-start",buttonProps:{tooltipProps:{content:"Font size",position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},n.createElement(aL,null,tL.map((e=>{let{label:t,value:i}=e;return n.createElement(lL.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${t}`,key:i,onClick:()=>{return(e=i)?r.chain().focus().toggleHeading({level:e}).run():r.chain().focus().setNode("paragraph").run();var e}},t)}))))},{Menu:uL}=y,dL=e=>{let{editor:t}=e;const[i,o]=r(""),[s,a]=r(""),[l,c]=r(!1),u=t.isActive("link"),d=()=>{c(!1),a(""),o("")},p=()=>{qe.test(s)?(t.chain().focus().setLink({href:s}).run(),d()):o("Please enter a valid url")};return n.createElement(y,{buttonStyle:u?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:te,isOpen:l,position:"bottom",buttonProps:{tooltipProps:{content:"Link",position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>{a(t.getAttributes("link").href),c((e=>!e))},onClose:d},n.createElement(uL,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?d():"Enter"===e.key&&p()}},n.createElement(f,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:i,name:"url",placeholder:"Paste URL",value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),n.createElement(m,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:p}),u&&n.createElement(m,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",style:"text",onClick:()=>{t.chain().focus().unsetLink().run(),a(""),d()}})))},{Menu:pL}=y,hL=e=>{let{editor:t,variables:r}=e;return re(r)?null:n.createElement(y,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:ne,strategy:"fixed",buttonProps:{tooltipProps:{content:"Variables",position:"bottom"}}},n.createElement(pL,null,n.createElement(hI,{variables:r,onClickVariable:e=>{const{category_key:n,key:r}=e,i=n?`${n}.${r}`:r;t.chain().focus().setVariable({label:i}).run()}})))},fL=e=>{let{editor:t,options:r,mentions:i=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:c,handleUploadAttachments:u}=e;if(!t)return null;const{font:d,block:p,list:h,misc:f,right:m}=nL({editor:t,options:r,setMediaUploader:s,handleUploadAttachments:u}),g=r.filter((e=>e.match(/^h[1-6]$/))).length>0,y=r.includes(He.EMOJI),b=r.includes(He.LINK),v=iL({editor:t,commands:a});return n.createElement("div",{className:$e("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},n.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},g&&n.createElement(cL,{editor:t}),d.map(rL),p.map(rL),y&&n.createElement(eL,{editor:t}),h.map(rL),b&&n.createElement(dL,{editor:t}),f.map(rL),n.createElement(XI,{editor:t,mentions:i}),v.map(rL),n.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},m.map(rL))),n.createElement("div",{className:"neeto-editor-fixed-menu__variables"},n.createElement(hL,{editor:t,variables:o})))},mL=e=>{let{icon:t=null,onClick:r=(()=>{}),disabled:i=!1,className:o,tooltipProps:s,...a}=e;const l=t;return n.createElement(h,rp({disabled:!s,onClick:()=>r()},s),n.createElement("button",rp({className:$e("ne-headless-btn",{[o]:o}),disabled:i,type:"button",onClick:r},a),t&&n.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},gL={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:r}}=e;function i(e){"escape"===e.key.toLowerCase()&&n&&(r(),t())}return{onShow(){document.addEventListener("keydown",i)},onHide(){document.removeEventListener("keydown",i)}}}},yL=e=>{let{icon:t,isOpen:i,onClose:o=(()=>{}),children:s,className:a,onClick:l,buttonProps:c={},...u}=e;const[d,p]=r(!1);return n.createElement(eI,rp({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[gL],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:i,className:$e("ne-headless-dropdown",{[a]:a}),content:d&&n.createElement("div",{className:"ne-headless-dropdown__popup"},s),onClickOutside:o,onClose:o,onHidden:()=>p(!1),onMount:()=>p(!0)},u),n.createElement("span",null,n.createElement(mL,rp({icon:t,onClick:l},c))))},bL=e=>{let{editor:t,optionName:i}=e;const[o,s]=r(!1);return n.createElement(yL,{className:"ne-headless__emoji",icon:$,isOpen:o,buttonProps:{tooltipProps:{content:se(i),delay:[500],position:"bottom"}},onClick:()=>s((e=>!e)),onClose:()=>s(!1)},n.createElement(QA,{editor:t}))},vL=e=>{let{editor:t,optionName:r,command:i,disabled:o,Icon:s,active:a}=e;return r===He.EMOJI?n.createElement(bL,{editor:t,optionName:r}):n.createElement(mL,{className:a?"ne-headless-btn--active":"",disabled:o,icon:s,tooltipProps:{content:se(r),delay:[500],position:"bottom"},onClick:i})},wL=e=>{let{editor:t,options:n,setMediaUploader:r,handleUploadAttachments:i}=e;const o=((e,t,n)=>[{Icon:K,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:G,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Y,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:Q,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:J,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"},{Icon:Z,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote"},{Icon:U,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"},{Icon:z,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list"},{Icon:j,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list"},{Icon:N,command:n,optionName:"attachments"},{Icon:R,command:()=>t(le("image",!0)),optionName:"image-upload"},{Icon:B,command:()=>t(le("video",!0)),optionName:"video-upload"},{Icon:$,command:()=>{},optionName:"emoji"},{Icon:X,command:()=>e.chain().focus().undo().run(),disabled:!e.can().undo(),optionName:"undo"},{Icon:ee,command:()=>e.chain().focus().redo().run(),disabled:!e.can().redo(),optionName:"redo"}])(t,r,i);return n.map((e=>o.find((t=>{let{optionName:n}=t;return n===e})))).filter(Boolean)},_L=e=>{let{editor:t,options:r,setMediaUploader:i,addonCommands:o=[],children:s,className:a,handleUploadAttachments:l}=e;if(!t)return null;const c=[...wL({editor:t,options:r,setMediaUploader:i,handleUploadAttachments:l}),...iL({editor:t,commands:o})];return n.createElement("div",{className:$e("ne-headless",{[a]:a})},c.map((e=>n.createElement(vL,rp({editor:t,key:e.optionName},e)))),s)},xL=e=>{const[t,i]=r({image:!1,video:!1}),{menuType:o="fixed",addons:s=[],options:a=[],editor:l,uploadEndpoint:c=Ve,editorSecrets:u={},handleUploadAttachments:d}=e,p={fixed:fL,bubble:sL,headless:_L,none:()=>n.createElement("div",null)}[o],h=re(a)?[...Z_,...s]:a;return n.createElement(n.Fragment,null,n.createElement(p,rp({},e,{handleUploadAttachments:d,options:h,setMediaUploader:i})),n.createElement(KI,{editor:l,mediaUploader:t,unsplashApiKey:u.unsplash,uploadEndpoint:c,onClose:()=>i({image:!1,video:!1})}))},EL=e=>{let{rows:t}=e;return`min-height: ${t*tx+2*(X_+ex)}px;`},kL=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const r={type:"paragraph"};e.length>0&&(r.content=[{type:"text",text:e}]);const i=Op.fromJSON(t.doc.type.schema,r);n.push(i)}));const r=ap.fromArray(n);return hp.maxOpen(r)},ML=(e,t)=>{var a;let{initialValue:l="",menuType:c="fixed",label:u="",required:d=!1,autoFocus:p=!1,hideSlashCommands:h=!1,defaults:f=Z_,addons:m=[],addonCommands:g=[],className:y,contentClassName:b,uploadEndpoint:v=Ve,onChange:w=oe,onFocus:_=oe,onBlur:x=oe,onSubmit:k=oe,variables:M=[],mentions:D=[],placeholder:C,extensions:S=[],editorSecrets:N={},rows:A=6,isCharacterCountActive:O=!1,keyboardShortcuts:T=[],error:I=null,config:L={},attachments:F=[],onChangeAttachments:j=oe,...z}=e;const R=i(null),B=m.includes("attachments"),P="fixed"===c,U="bubble"===c,$=!h,H=!!C,[W,V]=r({image:!1,video:!1}),q=i(null),K=(null===(a=q.current)||void 0===a?void 0:a.handleUploadAttachments)||oe,G=(e=>{let{placeholder:t,extensions:n,mentions:r,variables:i,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:d,setMediaUploader:p,handleUploadAttachments:h}=e;const f=he(d,qS);let m=[ax,sx,jE.configure(f.underline),dx.configure(f.highlight),VS.configure(f.codeBlock),AO.configure(f.figCaption),GS.configure(f.embeds),FE.configure(f.link),iO.configure(f.emojiSuggestion),ZA.configure(f.emojiPicker),KS.configure(f.customCommands),rx.configure(f.characterCount),lx.configure(f.focus),_I,NO({uploadEndpoint:u}),Wk.configure(f.starterKit),TO({onSubmit:l,shortcuts:c}),zT.configure(he({placeholder:t},f.placeholder))];return o&&m.push(pI({options:s,addonCommands:a,setMediaUploader:p,handleUploadAttachments:h})),re(r)||m.push(jT({suggestion:{items:IT(r)}})),re(i)||m.push(vI({suggestion:{items:()=>i}})),m=m.concat(n),m})({placeholder:C,extensions:S,mentions:D,variables:M,isSlashCommandsActive:$,options:[...f,...m],addonCommands:g,onSubmit:k,keyboardShortcuts:T,uploadEndpoint:v,config:L,setMediaUploader:V,handleUploadAttachments:K});(e=>{let{initialValue:t}=e;s((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&tp(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:l});const Y=$e("neeto-editor",{"slash-active":$&&!H,"fixed-menu-active border":P,"bubble-menu-active":U,"placeholder-active":H,"attachments-active":B,[b]:b}),Q=Q_({extensions:G,content:l,injectCSS:!1,autofocus:p&&"end",editorProps:{attributes:{class:Y,style:EL({rows:A})},clipboardTextParser:kL},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!p&&(e=>{const{state:t,view:n}=e,r=rf.atEnd(t.doc),i=t.tr;i.setSelection(r),n.dispatch(i)})(t)},onUpdate:e=>{let{editor:t}=e;return w(t.getHTML())},onFocus:_,onBlur:x});return o(t,(()=>({editor:Q}))),Ly.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},n.createElement("div",{className:B?"ne-attachments__wrapper":"relative"},n.createElement("div",{className:$e({[y]:y}),ref:R},u&&n.createElement(E,{className:"neeto-ui-mb-2","data-cy":`${ae(u)}-editor-label`,required:d},u),n.createElement(J_,{error:I,isFixedMenuActive:P},n.createElement(nx,{editor:Q,isActive:O},n.createElement(xL,{addonCommands:g,addons:m,defaults:f,editor:Q,editorSecrets:N,handleUploadAttachments:K,isIndependant:!1,mentions:D,menuType:c,uploadEndpoint:v,variables:M}),n.createElement($_,rp({editor:Q},z)),n.createElement(KI,{editor:Q,mediaUploader:W,unsplashApiKey:N.unsplash,uploadEndpoint:v,onClose:()=>V({image:!1,video:!1})}),B&&n.createElement(Xd,{attachments:F,className:"ne-attachments--integrated",dragDropRef:R,isIndependent:!1,ref:q,onChange:j})))))};var DL=n.forwardRef(ML);QI('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n gap: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.neeto-editor.attachments-active {\n border-bottom: none;\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 2px;\n font-size: 85%;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image-wrapper {\n display: flex;\n color: unset !important;\n font-weight: normal !important;\n}\n.neeto-editor__image-wrapper figure {\n position: relative;\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image {\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image img,\n.neeto-editor__image-wrapper .neeto-editor__image video {\n display: inline-block;\n height: 100%;\n border: 2px solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-lg);\n padding: 4px;\n}\n.neeto-editor__image-wrapper figcaption {\n margin-top: 4px;\n text-align: center;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n}\n.neeto-editor__image-wrapper figcaption a {\n display: inline-block;\n text-align: center;\n}\n.neeto-editor__image-wrapper figcaption.is-empty div:before {\n position: absolute;\n inset: 0;\n content: "Add a caption";\n color: rgb(var(--neeto-ui-gray-500));\n}\n.neeto-editor__image--left {\n justify-content: flex-start;\n}\n.neeto-editor__image--center {\n justify-content: center;\n}\n.neeto-editor__image--right {\n justify-content: flex-end;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-white));\n text-align: center;\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__item {\n border-radius: var(--neeto-ui-rounded-sm) !important;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item {\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n padding: 2px;\n gap: 0 4px;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -24px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset !important;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-gray-600));\n margin-bottom: 4px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable {\n padding: 4px 6px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n background-color: rgb(var(--neeto-ui-pastel-blue));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable:hover {\n background-color: rgb(var(--neeto-ui-info-100));\n}\n.neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-font-size__wrapper {\n font-weight: var(--neeto-ui-font-normal) !important;\n padding: 8px !important;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n gap: 1px;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text {\n color: rgb(var(--neeto-ui-gray-200));\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:hover, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text:active, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text.active {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-secondary {\n min-width: -moz-fit-content;\n min-width: fit-content;\n background-color: rgb(var(--neeto-ui-gray-400));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup {\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:hover, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:active, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn.active {\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup {\n display: flex;\n min-width: unset;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor__image-menu-btn {\n position: absolute !important;\n top: 4px;\n right: 4px;\n z-index: 1;\n padding: 2px !important;\n}\n.ne-media-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.ne-media-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.ne-media-uploader .ne-media-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.ne-media-uploader .ne-media-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.ne-media-uploader .ne-media-uploader__progress-title, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.ne-media-uploader .ne-media-uploader__progress-file, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-primary-500));\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-primary-500));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-search {\n padding: 0px 8px;\n margin-bottom: 16px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__loader {\n display: flex;\n justify-content: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-primary-500), 0.2);\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-media-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.ne-media-editor img,\n.ne-media-editor video {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.ne-media-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.ne-media-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.ne-media-editor .neeto-ui-input__wrapper {\n width: 100%;\n}\n.ne-media-editor .ne-media-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\n.ne-attachments {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.ne-attachments__items {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.ne-attachments__attachment {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 2px 4px 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n border: 1px solid rgb(var(--neeto-ui-gray-200));\n width: 256px;\n}\n.ne-attachments__attachment__progress {\n display: flex;\n opacity: 0.5;\n justify-content: space-between;\n width: 80%;\n}\n.ne-attachments__attachment__progress p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n}\n.ne-attachments__attachment__progress p:nth-child(2) {\n width: -moz-fit-content;\n width: fit-content;\n}\n.ne-attachments__attachment__progress-icon {\n opacity: 0.5;\n}\n.ne-attachments__attachment p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 75%;\n}\n.ne-attachments input[type=file] {\n display: none;\n}\n.ne-attachments--integrated {\n padding: 0px 6px;\n border: 1px solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.ne-attachments__wrapper {\n position: relative;\n}\n.ne-attachments__wrapper .uppy-is-drag-over::after {\n position: absolute;\n inset: 7px;\n border-radius: 5px;\n background-color: rgba(var(--neeto-ui-gray-600), 0.15);\n border: 5px dashed rgba(var(--neeto-ui-gray-600), 0.5);\n content: "Drop the file here";\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const CL=(e,t)=>{let{name:r,...i}=e;return n.createElement(ye,{name:r},(e=>{let{field:o,form:s,meta:a}=e;return n.createElement(DL,rp({error:a.touched?a.error:"",initialValue:o.value,ref:t,onBlur:()=>s.setFieldTouched(r,!0),onChange:e=>s.setFieldValue(r,e)},i))}))};var SL=c(CL);
|
|
43
43
|
/*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */function NL(e){return NL="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},NL(e)}function AL(e,t){return AL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},AL(e,t)}function OL(){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}}function TL(e,t,n){return TL=OL()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&AL(i,n.prototype),i},TL.apply(null,arguments)}function IL(e){return function(e){if(Array.isArray(e))return LL(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)return;if("string"==typeof e)return LL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LL(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LL(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}var FL=Object.hasOwnProperty,jL=Object.setPrototypeOf,zL=Object.isFrozen,RL=Object.getPrototypeOf,BL=Object.getOwnPropertyDescriptor,PL=Object.freeze,UL=Object.seal,$L=Object.create,HL="undefined"!=typeof Reflect&&Reflect,WL=HL.apply,VL=HL.construct;WL||(WL=function(e,t,n){return e.apply(t,n)}),PL||(PL=function(e){return e}),UL||(UL=function(e){return e}),VL||(VL=function(e,t){return TL(e,IL(t))});var qL,KL=rF(Array.prototype.forEach),GL=rF(Array.prototype.pop),YL=rF(Array.prototype.push),QL=rF(String.prototype.toLowerCase),JL=rF(String.prototype.match),ZL=rF(String.prototype.replace),XL=rF(String.prototype.indexOf),eF=rF(String.prototype.trim),tF=rF(RegExp.prototype.test),nF=(qL=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return VL(qL,t)});function rF(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return WL(e,t,r)}}function iF(e,t,n){n=n||QL,jL&&jL(e,null);for(var r=t.length;r--;){var i=t[r];if("string"==typeof i){var o=n(i);o!==i&&(zL(t)||(t[r]=o),i=o)}e[i]=!0}return e}function oF(e){var t,n=$L(null);for(t in e)WL(FL,e,[t])&&(n[t]=e[t]);return n}function sF(e,t){for(;null!==e;){var n=BL(e,t);if(n){if(n.get)return rF(n.get);if("function"==typeof n.value)return rF(n.value)}e=RL(e)}return function(e){return console.warn("fallback value for",e),null}}var aF=PL(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),lF=PL(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cF=PL(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),uF=PL(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dF=PL(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),pF=PL(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hF=PL(["#text"]),fF=PL(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),mF=PL(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gF=PL(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yF=PL(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bF=UL(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vF=UL(/<%[\w\W]*|[\w\W]*%>/gm),wF=UL(/^data-[\-\w.\u00B7-\uFFFF]/),_F=UL(/^aria-[\-\w]+$/),xF=UL(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),EF=UL(/^(?:\w+script|data):/i),kF=UL(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),MF=UL(/^html$/i),DF=function(){return"undefined"==typeof window?null:window},CF=function(e,t){if("object"!==NL(e)||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var SF=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DF(),n=function(t){return e(t)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,p=t.HTMLFormElement,h=t.DOMParser,f=t.trustedTypes,m=l.prototype,g=sF(m,"cloneNode"),y=sF(m,"nextSibling"),b=sF(m,"childNodes"),v=sF(m,"parentNode");if("function"==typeof s){var w=i.createElement("template");w.content&&w.content.ownerDocument&&(i=w.content.ownerDocument)}var _=CF(f,r),x=_?_.createHTML(""):"",E=i,k=E.implementation,M=E.createNodeIterator,D=E.createDocumentFragment,C=E.getElementsByTagName,S=r.importNode,N={};try{N=oF(i).documentMode?i.documentMode:{}}catch(e){}var A={};n.isSupported="function"==typeof v&&k&&void 0!==k.createHTMLDocument&&9!==N;var O,T,I=bF,L=vF,F=wF,j=_F,z=EF,R=kF,B=xF,P=null,U=iF({},[].concat(IL(aF),IL(lF),IL(cF),IL(dF),IL(hF))),$=null,H=iF({},[].concat(IL(fF),IL(mF),IL(gF),IL(yF))),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,q=null,K=!0,G=!0,Y=!1,Q=!1,J=!1,Z=!1,X=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!1,oe="user-content-",se=!0,ae=!1,le={},ce=null,ue=iF({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),de=null,pe=iF({},["audio","video","img","source","image","track"]),he=null,fe=iF({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml",be=ye,ve=!1,we=["application/xhtml+xml","text/html"],_e="text/html",xe=null,Ee=i.createElement("form"),ke=function(e){return e instanceof RegExp||e instanceof Function},Me=function(e){xe&&xe===e||(e&&"object"===NL(e)||(e={}),e=oF(e),O=O=-1===we.indexOf(e.PARSER_MEDIA_TYPE)?_e:e.PARSER_MEDIA_TYPE,T="application/xhtml+xml"===O?function(e){return e}:QL,P="ALLOWED_TAGS"in e?iF({},e.ALLOWED_TAGS,T):U,$="ALLOWED_ATTR"in e?iF({},e.ALLOWED_ATTR,T):H,he="ADD_URI_SAFE_ATTR"in e?iF(oF(fe),e.ADD_URI_SAFE_ATTR,T):fe,de="ADD_DATA_URI_TAGS"in e?iF(oF(pe),e.ADD_DATA_URI_TAGS,T):pe,ce="FORBID_CONTENTS"in e?iF({},e.FORBID_CONTENTS,T):ue,V="FORBID_TAGS"in e?iF({},e.FORBID_TAGS,T):{},q="FORBID_ATTR"in e?iF({},e.FORBID_ATTR,T):{},le="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=e.SAFE_FOR_TEMPLATES||!1,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,be=e.NAMESPACE||ye,e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(G=!1),te&&(ee=!0),le&&(P=iF({},IL(hF)),$=[],!0===le.html&&(iF(P,aF),iF($,fF)),!0===le.svg&&(iF(P,lF),iF($,mF),iF($,yF)),!0===le.svgFilters&&(iF(P,cF),iF($,mF),iF($,yF)),!0===le.mathMl&&(iF(P,dF),iF($,gF),iF($,yF))),e.ADD_TAGS&&(P===U&&(P=oF(P)),iF(P,e.ADD_TAGS,T)),e.ADD_ATTR&&($===H&&($=oF($)),iF($,e.ADD_ATTR,T)),e.ADD_URI_SAFE_ATTR&&iF(he,e.ADD_URI_SAFE_ATTR,T),e.FORBID_CONTENTS&&(ce===ue&&(ce=oF(ce)),iF(ce,e.FORBID_CONTENTS,T)),se&&(P["#text"]=!0),J&&iF(P,["html","head","body"]),P.table&&(iF(P,["tbody"]),delete V.tbody),PL&&PL(e),xe=e)},De=iF({},["mi","mo","mn","ms","mtext"]),Ce=iF({},["foreignobject","desc","title","annotation-xml"]),Se=iF({},["title","style","font","a","script"]),Ne=iF({},lF);iF(Ne,cF),iF(Ne,uF);var Ae=iF({},dF);iF(Ae,pF);var Oe=function(e){var t=v(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});var n=QL(e.tagName),r=QL(t.tagName);return e.namespaceURI===ge?t.namespaceURI===ye?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||De[r]):Boolean(Ne[n]):e.namespaceURI===me?t.namespaceURI===ye?"math"===n:t.namespaceURI===ge?"math"===n&&Ce[r]:Boolean(Ae[n]):e.namespaceURI===ye&&(!(t.namespaceURI===ge&&!Ce[r])&&(!(t.namespaceURI===me&&!De[r])&&(!Ae[n]&&(Se[n]||!Ne[n]))))},Te=function(e){YL(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=x}catch(t){e.remove()}}},Ie=function(e,t){try{YL(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){YL(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!$[e])if(ee||te)try{Te(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t,n;if(X)e="<remove></remove>"+e;else{var r=JL(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===O&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=_?_.createHTML(e):e;if(be===ye)try{t=(new h).parseFromString(o,O)}catch(e){}if(!t||!t.documentElement){t=k.createDocument(be,"template",null);try{t.documentElement.innerHTML=ve?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),be===ye?C.call(t,J?"html":"body")[0]:J?t.documentElement:s},Fe=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},je=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},ze=function(e){return"object"===NL(a)?e instanceof a:e&&"object"===NL(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Re=function(e,t,r){A[e]&&KL(A[e],(function(e){e.call(n,t,r,xe)}))},Be=function(e){var t;if(Re("beforeSanitizeElements",e,null),je(e))return Te(e),!0;if(tF(/[\u0080-\uFFFF]/,e.nodeName))return Te(e),!0;var r=T(e.nodeName);if(Re("uponSanitizeElement",e,{tagName:r,allowedTags:P}),e.hasChildNodes()&&!ze(e.firstElementChild)&&(!ze(e.content)||!ze(e.content.firstElementChild))&&tF(/<[/\w]/g,e.innerHTML)&&tF(/<[/\w]/g,e.textContent))return Te(e),!0;if("select"===r&&tF(/<template/i,e.innerHTML))return Te(e),!0;if(!P[r]||V[r]){if(!V[r]&&Ue(r)){if(W.tagNameCheck instanceof RegExp&&tF(W.tagNameCheck,r))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(r))return!1}if(se&&!ce[r]){var i=v(e)||e.parentNode,o=b(e)||e.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(g(o[s],!0),y(e))}return Te(e),!0}return e instanceof l&&!Oe(e)?(Te(e),!0):"noscript"!==r&&"noembed"!==r||!tF(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=ZL(t,I," "),t=ZL(t,L," "),e.textContent!==t&&(YL(n.removed,{element:e.cloneNode()}),e.textContent=t)),Re("afterSanitizeElements",e,null),!1):(Te(e),!0)},Pe=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in i||n in Ee))return!1;if(G&&!q[t]&&tF(F,t));else if(K&&tF(j,t));else if(!$[t]||q[t]){if(!(Ue(e)&&(W.tagNameCheck instanceof RegExp&&tF(W.tagNameCheck,e)||W.tagNameCheck instanceof Function&&W.tagNameCheck(e))&&(W.attributeNameCheck instanceof RegExp&&tF(W.attributeNameCheck,t)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(t))||"is"===t&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&tF(W.tagNameCheck,n)||W.tagNameCheck instanceof Function&&W.tagNameCheck(n))))return!1}else if(he[t]);else if(tF(B,ZL(n,R,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==XL(n,"data:")||!de[e]){if(Y&&!tF(z,ZL(n,R,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},$e=function(e){var t,r,i,o;Re("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(o=s.length;o--;){var l=t=s[o],c=l.name,u=l.namespaceURI;if(r="value"===c?t.value:eF(t.value),i=T(c),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,Re("uponSanitizeAttribute",e,a),r=a.attrValue,!a.forceKeepAttr&&(Ie(c,e),a.keepAttr))if(tF(/\/>/i,r))Ie(c,e);else{Q&&(r=ZL(r,I," "),r=ZL(r,L," "));var d=T(e.nodeName);if(Pe(d,i,r)){if(!ie||"id"!==i&&"name"!==i||(Ie(c,e),r=oe+r),_&&"object"===NL(f)&&"function"==typeof f.getAttributeType)if(u);else switch(f.getAttributeType(d,i)){case"TrustedHTML":r=_.createHTML(r);break;case"TrustedScriptURL":r=_.createScriptURL(r)}try{u?e.setAttributeNS(u,c,r):e.setAttribute(c,r),GL(n.removed)}catch(e){}}}}Re("afterSanitizeAttributes",e,null)}},He=function e(t){var n,r=Fe(t);for(Re("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Re("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof o&&e(n.content),$e(n));Re("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var i,s,l,c,u,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ve=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ze(e)){if("function"!=typeof e.toString)throw nF("toString is not a function");if("string"!=typeof(e=e.toString()))throw nF("dirty is not a string, aborting")}if(!n.isSupported){if("object"===NL(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(ze(e))return t.toStaticHTML(e.outerHTML)}return e}if(Z||Me(d),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){var p=T(e.nodeName);if(!P[p]||V[p])throw nF("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(s=(i=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!ee&&!Q&&!J&&-1===e.indexOf("<"))return _&&ne?_.createHTML(e):e;if(!(i=Le(e)))return ee?null:ne?x:""}i&&X&&Te(i.firstChild);for(var h=Fe(ae?e:i);l=h.nextNode();)3===l.nodeType&&l===c||Be(l)||(l.content instanceof o&&He(l.content),$e(l),c=l);if(c=null,ae)return e;if(ee){if(te)for(u=D.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return $.shadowroot&&(u=S.call(r,u,!0)),u}var f=J?i.outerHTML:i.innerHTML;return J&&P["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&tF(MF,i.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+f),Q&&(f=ZL(f,I," "),f=ZL(f,L," ")),_&&ne?_.createHTML(f):f},n.setConfig=function(e){Me(e),Z=!0},n.clearConfig=function(){xe=null,Z=!1},n.isValidAttribute=function(e,t,n){xe||Me({});var r=T(e),i=T(t);return Pe(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(A[e]=A[e]||[],YL(A[e],t))},n.removeHook=function(e){if(A[e])return GL(A[e])},n.removeHooks=function(e){A[e]&&(A[e]=[])},n.removeAllHooks=function(){A={}},n}();const NF="neeto-editor-content",AF={ADD_TAGS:["iframe"],ADD_ATTR:["target","allow","allowfullscreen","frameborder"]},OF=/<pre><code>([\S\s]*?)<\/code><\/pre>/gim,TF=e=>{if(e.tagName){const t=e.children?e.children.map(TF):null;return n.createElement(e.tagName,e.properties,t)}return e.value},IF=e=>{let{content:t="",className:r,...i}=e;const o=(e=>e.replace(OF,((e,t)=>{const n=HS.highlightAuto(t.replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")).children.map(TF);return`<pre><code>${be(n)}</code></pre>`})))(t),s=SF.sanitize;return n.createElement("div",rp({"data-cy":"neeto-editor-content",className:$e(NF,{[r]:r}),dangerouslySetInnerHTML:{__html:s(o,AF)}},i))};export{Xd as Attachments,DL as Editor,IF as EditorContent,SL as FormikEditor,xL as Menu,np as isEditorEmpty};
|