identity-admin-ui 1.11.34 → 1.11.35
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/lib/cjs/index.css +37 -37
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/types/components/editor/toolbar.d.ts +7 -7
- package/lib/cjs/types/helpers/index.d.ts +2 -0
- package/lib/cjs/types/layout/dashboard/config-navigation.d.ts +4 -4
- package/lib/cjs/types/routes/AdminRouter.d.ts +10 -10
- package/lib/cjs/types/routes/paths.d.ts +5 -5
- package/lib/esm/index.css +37 -37
- package/lib/esm/index.js +2 -2
- package/lib/esm/types/components/editor/toolbar.d.ts +7 -7
- package/lib/esm/types/helpers/index.d.ts +2 -0
- package/lib/esm/types/layout/dashboard/config-navigation.d.ts +4 -4
- package/lib/esm/types/routes/AdminRouter.d.ts +10 -10
- package/lib/esm/types/routes/paths.d.ts +5 -5
- package/package.json +89 -89
package/lib/cjs/index.js
CHANGED
|
@@ -127,9 +127,9 @@ function Ht(e,t){const n=a(e,t);return"production"!==process.env.NODE_ENV?(...t)
|
|
|
127
127
|
* Released under MIT license <https://lodash.com/license>
|
|
128
128
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
129
129
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
130
|
-
*/!function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,s=32,l=64,c=128,u=256,d=1/0,p=9007199254740991,f=NaN,m=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",l],["rearg",u]],g="[object Arguments]",v="[object Array]",A="[object Boolean]",y="[object Date]",b="[object Error]",x="[object Function]",w="[object GeneratorFunction]",j="[object Map]",C="[object Number]",O="[object Object]",M="[object Promise]",z="[object RegExp]",D="[object Set]",T="[object String]",P="[object Symbol]",N="[object WeakMap]",E="[object ArrayBuffer]",B="[object DataView]",k="[object Float32Array]",L="[object Float64Array]",I="[object Int8Array]",W="[object Int16Array]",H="[object Int32Array]",R="[object Uint8Array]",F="[object Uint8ClampedArray]",V="[object Uint16Array]",Q="[object Uint32Array]",X=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,q=RegExp(G.source),K=RegExp(U.source),J=/<%-([\s\S]+?)%>/g,_=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ie=/^\s+/,ae=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,Ae=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,we=/['\n\r\u2028\u2029\\]/g,je="\\ud800-\\udfff",Ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Me="a-z\\xdf-\\xf6\\xf8-\\xff",ze="A-Z\\xc0-\\xd6\\xd8-\\xde",De="\\ufe0e\\ufe0f",Te="\\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",Pe="['’]",Ne="["+je+"]",Ee="["+Te+"]",Be="["+Ce+"]",ke="\\d+",Le="["+Oe+"]",Ie="["+Me+"]",Se="[^"+je+Te+ke+Oe+Me+ze+"]",We="\\ud83c[\\udffb-\\udfff]",He="[^"+je+"]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+ze+"]",Qe="\\u200d",Xe="(?:"+Ie+"|"+Se+")",Ye="(?:"+Ve+"|"+Se+")",Ze="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Be+"|"+We+")"+"?",qe="["+De+"]?",Ke=qe+Ue+("(?:"+Qe+"(?:"+[He,Re,Fe].join("|")+")"+qe+Ue+")*"),Je="(?:"+[Le,Re,Fe].join("|")+")"+Ke,_e="(?:"+[He+Be+"?",Be,Re,Fe,Ne].join("|")+")",$e=RegExp(Pe,"g"),et=RegExp(Be,"g"),tt=RegExp(We+"(?="+We+")|"+_e+Ke,"g"),nt=RegExp([Ve+"?"+Ie+"+"+Ze+"(?="+[Ee,Ve,"$"].join("|")+")",Ye+"+"+Ge+"(?="+[Ee,Ve+Xe,"$"].join("|")+")",Ve+"?"+Xe+"+"+Ze,Ve+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Je].join("|"),"g"),rt=RegExp("["+Qe+je+Ce+De+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["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"],at=-1,st={};st[k]=st[L]=st[I]=st[W]=st[H]=st[R]=st[F]=st[V]=st[Q]=!0,st[g]=st[v]=st[E]=st[A]=st[B]=st[y]=st[b]=st[x]=st[j]=st[C]=st[O]=st[z]=st[D]=st[T]=st[N]=!1;var lt={};lt[g]=lt[v]=lt[E]=lt[B]=lt[A]=lt[y]=lt[k]=lt[L]=lt[I]=lt[W]=lt[H]=lt[j]=lt[C]=lt[O]=lt[z]=lt[D]=lt[T]=lt[P]=lt[R]=lt[F]=lt[V]=lt[Q]=!0,lt[b]=lt[x]=lt[N]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,dt=parseInt,pt="object"==typeof S&&S&&S.Object===Object&&S,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=pt||ft||Function("return this")(),ht=t&&!t.nodeType&&t,gt=ht&&e&&!e.nodeType&&e,vt=gt&>.exports===ht,At=vt&&pt.process,yt=function(){try{var e=gt&>.require&>.require("util").types;return e||At&&At.binding&&At.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,xt=yt&&yt.isDate,wt=yt&&yt.isMap,jt=yt&&yt.isRegExp,Ct=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function Mt(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 zt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(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 Nt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Et(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Bt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function kt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Lt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function It(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function St(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Wt(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 Ht=Zt("length");function Rt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ft(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Vt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Xt,n)}function Qt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Xt(e){return e!=e}function Yt(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:f}function Zt(e){return function(t){return null==t?n:t[e]}}function Gt(e){return function(t){return null==e?n:e[t]}}function Ut(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function qt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,hn(e)+1).replace(ie,""):e}function _t(e){return function(t){return e(t)}}function $t(e,t){return kt(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var rn=Gt({"À":"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"}),on=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+ct[e]}function sn(e){return rt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var s=e[n];s!==t&&s!==i||(e[n]=i,a[o++]=n)}return a}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return sn(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Ht(e)}function mn(e){return sn(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var gn=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var vn=function e(t){var S,ae=(t=null==t?mt:vn.defaults(mt.Object(),t,vn.pick(mt,it))).Array,je=t.Date,Ce=t.Error,Oe=t.Function,Me=t.Math,ze=t.Object,De=t.RegExp,Te=t.String,Pe=t.TypeError,Ne=ae.prototype,Ee=Oe.prototype,Be=ze.prototype,ke=t["__core-js_shared__"],Le=Ee.toString,Ie=Be.hasOwnProperty,Se=0,We=(S=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",He=Be.toString,Re=Le.call(ze),Fe=mt._,Ve=De("^"+Le.call(Ie).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qe=vt?t.Buffer:n,Xe=t.Symbol,Ye=t.Uint8Array,Ze=Qe?Qe.allocUnsafe:n,Ge=cn(ze.getPrototypeOf,ze),Ue=ze.create,qe=Be.propertyIsEnumerable,Ke=Ne.splice,Je=Xe?Xe.isConcatSpreadable:n,_e=Xe?Xe.iterator:n,tt=Xe?Xe.toStringTag:n,rt=function(){try{var e=fi(ze,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,pt=je&&je.now!==mt.Date.now&&je.now,ft=t.setTimeout!==mt.setTimeout&&t.setTimeout,ht=Me.ceil,gt=Me.floor,At=ze.getOwnPropertySymbols,yt=Qe?Qe.isBuffer:n,Ht=t.isFinite,Gt=Ne.join,An=cn(ze.keys,ze),yn=Me.max,bn=Me.min,xn=je.now,wn=t.parseInt,jn=Me.random,Cn=Ne.reverse,On=fi(t,"DataView"),Mn=fi(t,"Map"),zn=fi(t,"Promise"),Dn=fi(t,"Set"),Tn=fi(t,"WeakMap"),Pn=fi(ze,"create"),Nn=Tn&&new Tn,En={},Bn=Hi(On),kn=Hi(Mn),Ln=Hi(zn),In=Hi(Dn),Sn=Hi(Tn),Wn=Xe?Xe.prototype:n,Hn=Wn?Wn.valueOf:n,Rn=Wn?Wn.toString:n;function Fn(e){if(ns(e)&&!Ya(e)&&!(e instanceof Yn)){if(e instanceof Xn)return e;if(Ie.call(e,"__wrapped__"))return Ri(e)}return new Xn(e)}var Vn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ue)return Ue(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Qn(){}function Xn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Yn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Zn(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 Gn(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 Un(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 qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Un;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Jn(e,t){var n=Ya(e),r=!n&&Xa(e),o=!n&&!r&&qa(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Kt(e.length,Te):[],l=s.length;for(var c in e)!t&&!Ie.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bi(c,l))||s.push(c);return s}function _n(e){var t=e.length;return t?e[qr(0,t-1)]:n}function $n(e,t){return Ii(No(e),lr(t,0,e.length))}function er(e){return Ii(No(e))}function tr(e,t,r){(r!==n&&!Fa(e[t],r)||r===n&&!(t in e))&&ar(e,t,r)}function nr(e,t,r){var o=e[t];Ie.call(e,t)&&Fa(o,r)&&(r!==n||t in e)||ar(e,t,r)}function rr(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function or(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Eo(t,Es(t),e)}function ar(e,t,n){"__proto__"==t&&rt?rt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,i=ae(o),a=null==e;++r<o;)i[r]=a?n:zs(e,t[r]);return i}function lr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var s,l=1&t,c=2&t,u=4&t;if(r&&(s=i?r(e,o,i,a):r(e)),s!==n)return s;if(!ts(e))return e;var d=Ya(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return No(e,s)}else{var p=gi(e),f=p==x||p==w;if(qa(e))return Oo(e,l);if(p==O||p==g||f&&!i){if(s=c||f?{}:Ai(e),!l)return c?function(e,t){return Eo(e,hi(e),t)}(e,function(e,t){return e&&Eo(t,Bs(t),e)}(s,e)):function(e,t){return Eo(e,mi(e),t)}(e,ir(s,e))}else{if(!lt[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case E:return Mo(e);case A:case y:return new r(+e);case B:return function(e,t){var n=t?Mo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case L:case I:case W:case H:case R:case F:case V:case Q:return zo(e,n);case j:return new r;case C:case T:return new r(e);case z:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new r;case P:return o=e,Hn?ze(Hn.call(o)):{}}var o}(e,p,l)}}a||(a=new Kn);var m=a.get(e);if(m)return m;a.set(e,s),ss(e)?e.forEach((function(n){s.add(cr(n,t,r,n,e,a))})):rs(e)&&e.forEach((function(n,o){s.set(o,cr(n,t,r,o,e,a))}));var h=d?n:(u?c?ai:ii:c?Bs:Es)(e);return Dt(h||e,(function(n,o){h&&(n=e[o=n]),nr(s,o,cr(n,t,r,o,e,a))})),s}function ur(e,t,r){var o=r.length;if(null==e)return!o;for(e=ze(e);o--;){var i=r[o],a=t[i],s=e[i];if(s===n&&!(i in e)||!a(s))return!1}return!0}function dr(e,t,o){if("function"!=typeof e)throw new Pe(r);return Ei((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,i=Et,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=kt(t,_t(n))),r?(i=Bt,a=!1):t.length>=200&&(i=en,a=!1,t=new qn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Fn.templateSettings={escape:J,evaluate:_,interpolate:$,variable:"",imports:{_:Fn}},Fn.prototype=Qn.prototype,Fn.prototype.constructor=Fn,Xn.prototype=Vn(Qn.prototype),Xn.prototype.constructor=Xn,Yn.prototype=Vn(Qn.prototype),Yn.prototype.constructor=Yn,Zn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Zn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Zn.prototype.get=function(e){var t=this.__data__;if(Pn){var r=t[e];return r===o?n:r}return Ie.call(t,e)?t[e]:n},Zn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==n:Ie.call(t,e)},Zn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pn&&t===n?o:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,r=rr(t,e);return r<0?n:t[r][1]},Gn.prototype.has=function(e){return rr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Zn,map:new(Mn||Gn),string:new Zn}},Un.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Un.prototype.get=function(e){return di(this,e).get(e)},Un.prototype.has=function(e){return di(this,e).has(e)},Un.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,o),this},qn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Mn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Un(r)}return n.set(e,t),this.size=n.size,this};var fr=Lo(xr),mr=Lo(wr,!0);function hr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(l===n?s==s&&!cs(s):r(s,l)))var l=s,c=a}return c}function vr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function Ar(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Ar(s,t-1,n,r,o):Lt(o,s):r||(o[o.length]=s)}return o}var yr=Io(),br=Io(!0);function xr(e,t){return e&&yr(e,t,Es)}function wr(e,t){return e&&br(e,t,Es)}function jr(e,t){return Nt(t,(function(t){return _a(e[t])}))}function Cr(e,t){for(var r=0,o=(t=xo(t,e)).length;null!=e&&r<o;)e=e[Wi(t[r++])];return r&&r==o?e:n}function Or(e,t,n){var r=t(e);return Ya(e)?r:Lt(r,n(e))}function Mr(e){return null==e?e===n?"[object Undefined]":"[object Null]":tt&&tt in ze(e)?function(e){var t=Ie.call(e,tt),r=e[tt];try{e[tt]=n;var o=!0}catch(e){}var i=He.call(e);o&&(t?e[tt]=r:delete e[tt]);return i}(e):function(e){return He.call(e)}(e)}function zr(e,t){return e>t}function Dr(e,t){return null!=e&&Ie.call(e,t)}function Tr(e,t){return null!=e&&t in ze(e)}function Pr(e,t,r){for(var o=r?Bt:Et,i=e[0].length,a=e.length,s=a,l=ae(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=kt(d,_t(t))),c=bn(d.length,c),l[s]=!r&&(t||i>=120&&d.length>=120)?new qn(s&&d):n}d=e[0];var p=-1,f=l[0];e:for(;++p<i&&u.length<c;){var m=d[p],h=t?t(m):m;if(m=r||0!==m?m:0,!(f?en(f,h):o(u,h,r))){for(s=a;--s;){var g=l[s];if(!(g?en(g,h):o(e[s],h,r)))continue e}f&&f.push(h),u.push(m)}}return u}function Nr(e,t,r){var o=null==(e=Ti(e,t=xo(t,e)))?e:e[Wi(Ji(t))];return null==o?n:Mt(o,e,r)}function Er(e){return ns(e)&&Mr(e)==g}function Br(e,t,r,o,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var s=Ya(e),l=Ya(t),c=s?v:gi(e),u=l?v:gi(t),d=(c=c==g?O:c)==O,p=(u=u==g?O:u)==O,f=c==u;if(f&&qa(e)){if(!qa(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Kn),s||us(e)?ri(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case B:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!i(new Ye(e),new Ye(t)));case A:case y:case C:return Fa(+e,+t);case b:return e.name==t.name&&e.message==t.message;case z:case T:return e==t+"";case j:var s=ln;case D:var l=1&r;if(s||(s=dn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ri(s(e),s(t),r,o,i,a);return a.delete(e),u;case P:if(Hn)return Hn.call(e)==Hn.call(t)}return!1}(e,t,c,r,o,i,a);if(!(1&r)){var m=d&&Ie.call(e,"__wrapped__"),h=p&&Ie.call(t,"__wrapped__");if(m||h){var x=m?e.value():e,w=h?t.value():t;return a||(a=new Kn),i(x,w,r,o,a)}}if(!f)return!1;return a||(a=new Kn),function(e,t,r,o,i,a){var s=1&r,l=ii(e),c=l.length,u=ii(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var f=l[p];if(!(s?f in t:Ie.call(t,f)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var g=!0;a.set(e,t),a.set(t,e);var v=s;for(;++p<c;){var A=e[f=l[p]],y=t[f];if(o)var b=s?o(y,A,f,t,e,a):o(A,y,f,e,t,a);if(!(b===n?A===y||i(A,y,r,o,a):b)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,o,i,a)}(e,t,r,o,Br,i))}function kr(e,t,r,o){var i=r.length,a=i,s=!o;if(null==e)return!a;for(e=ze(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=r[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Kn;if(o)var f=o(u,d,c,e,t,p);if(!(f===n?Br(d,u,3,o,p):f))return!1}}return!0}function Lr(e){return!(!ts(e)||(t=e,We&&We in t))&&(_a(e)?Ve:ve).test(Hi(e));var t}function Ir(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Ya(e)?Vr(e[0],e[1]):Fr(e):fl(e)}function Sr(e){if(!Oi(e))return An(e);var t=[];for(var n in ze(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Wr(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in ze(e))t.push(n);return t}(e);var t=Oi(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}function Hr(e,t){return e<t}function Rr(e,t){var n=-1,r=Ga(e)?ae(e.length):[];return fr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Fr(e){var t=pi(e);return 1==t.length&&t[0][2]?zi(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Vr(e,t){return wi(e)&&Mi(t)?zi(Wi(e),t):function(r){var o=zs(r,e);return o===n&&o===t?Ds(r,e):Br(t,o,3)}}function Qr(e,t,r,o,i){e!==t&&yr(t,(function(a,s){if(i||(i=new Kn),ts(a))!function(e,t,r,o,i,a,s){var l=Pi(e,r),c=Pi(t,r),u=s.get(c);if(u)return void tr(e,r,u);var d=a?a(l,c,r+"",e,t,s):n,p=d===n;if(p){var f=Ya(c),m=!f&&qa(c),h=!f&&!m&&us(c);d=c,f||m||h?Ya(l)?d=l:Ua(l)?d=No(l):m?(p=!1,d=Oo(c,!0)):h?(p=!1,d=zo(c,!0)):d=[]:is(c)||Xa(c)?(d=l,Xa(l)?d=As(l):ts(l)&&!_a(l)||(d=Ai(c))):p=!1}p&&(s.set(c,d),i(d,c,o,a,s),s.delete(c));tr(e,r,d)}(e,t,s,r,Qr,o,i);else{var l=o?o(Pi(e,s),a,s+"",e,t,i):n;l===n&&(l=a),tr(e,s,l)}}),Bs)}function Xr(e,t){var r=e.length;if(r)return bi(t+=t<0?r:0,r)?e[t]:n}function Yr(e,t,n){t=t.length?kt(t,(function(e){return Ya(e)?function(t){return Cr(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=kt(t,_t(ui()));var o=Rr(e,(function(e,n,o){var i=kt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=Do(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Zr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Cr(e,a);n(s,a)&&eo(i,xo(a,e),s)}return i}function Gr(e,t,n,r){var o=r?Qt:Vt,i=-1,a=t.length,s=e;for(e===t&&(t=No(t)),n&&(s=kt(e,_t(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Ur(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;bi(o)?Ke.call(e,o,1):fo(e,o)}}return e}function qr(e,t){return e+gt(jn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return Bi(Di(e,t,ol),e+"")}function _r(e){return _n(Fs(e))}function $r(e,t){var n=Fs(e);return Ii(n,lr(t,0,n.length))}function eo(e,t,r,o){if(!ts(e))return e;for(var i=-1,a=(t=xo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=Wi(t[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=o?o(d,c,l):n)===n&&(u=ts(d)?d:bi(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var to=Nn?function(e,t){return Nn.set(e,t),e}:ol,no=rt?function(e,t){return rt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function ro(e){return Ii(Fs(e))}function oo(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=ae(o);++r<o;)i[r]=e[r+t];return i}function io(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,ol,n)}function so(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,l=null===t,c=cs(t),u=t===n;i<a;){var d=gt((i+a)/2),p=r(e[d]),f=p!==n,m=null===p,h=p==p,g=cs(p);if(s)var v=o||h;else v=u?h&&(o||f):l?h&&f&&(o||!m):c?h&&f&&!m&&(o||!g):!m&&!g&&(o?p<=t:p<t);v?i=d+1:a=d}return bn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Fa(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?f:+e}function uo(e){if("string"==typeof e)return e;if(Ya(e))return kt(e,uo)+"";if(cs(e))return Rn?Rn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=Et,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Bt;else if(i>=200){var c=t?null:Jo(e);if(c)return dn(c);a=!1,o=en,l=new qn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function fo(e,t){return null==(e=Ti(e,t=xo(t,e)))||delete e[Wi(Ji(t))]}function mo(e,t,n,r){return eo(e,t,n(Cr(e,t)),r)}function ho(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Yn&&(n=n.value()),It(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function vo(e,t,n){var r=e.length;if(r<2)return r?po(e[0]):[];for(var o=-1,i=ae(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=pr(i[o]||a,e[s],t,n));return po(Ar(i,1),t,n)}function Ao(e,t,r){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var l=o<a?t[o]:n;r(s,e[o],l)}return s}function yo(e){return Ua(e)?e:[]}function bo(e){return"function"==typeof e?e:ol}function xo(e,t){return Ya(e)?e:wi(e,t)?[e]:Si(ys(e))}var wo=Jr;function jo(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:oo(e,t,r)}var Co=ct||function(e){return mt.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var n=e.length,r=Ze?Ze(n):new e.constructor(n);return e.copy(r),r}function Mo(e){var t=new e.constructor(e.byteLength);return new Ye(t).set(new Ye(e)),t}function zo(e,t){var n=t?Mo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Do(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cs(e),s=t!==n,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||o&&s&&c||!r&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&r&&i&&!o&&!a||l&&r&&i||!s&&i||!c)return-1}return 0}function To(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,c=yn(i-a,0),u=ae(l+c),d=!r;++s<l;)u[s]=t[s];for(;++o<a;)(d||o<i)&&(u[n[o]]=e[o]);for(;c--;)u[s++]=e[o++];return u}function Po(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,c=t.length,u=yn(i-s,0),d=ae(u+c),p=!r;++o<u;)d[o]=e[o];for(var f=o;++l<c;)d[f+l]=t[l];for(;++a<s;)(p||o<i)&&(d[f+n[a]]=e[o++]);return d}function No(e,t){var n=-1,r=e.length;for(t||(t=ae(r));++n<r;)t[n]=e[n];return t}function Eo(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=o?o(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),i?ar(r,l,c):nr(r,l,c)}return r}function Bo(e,t){return function(n,r){var o=Ya(n)?zt:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function ko(e){return Jr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,s=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,s&&xi(r[0],r[1],s)&&(a=i<3?n:a,i=1),t=ze(t);++o<i;){var l=r[o];l&&e(t,l,o,a)}return t}))}function Lo(e,t){return function(n,r){if(null==n)return n;if(!Ga(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=ze(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=ze(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function So(e){return function(t){var r=sn(t=ys(t))?mn(t):n,o=r?r[0]:t.charAt(0),i=r?jo(r,1).join(""):t.slice(1);return o[e]()+i}}function Wo(e){return function(t){return It(_s(Xs(t).replace($e,"")),e,"")}}function Ho(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=Vn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ro(e){return function(t,r,o){var i=ze(t);if(!Ga(t)){var a=ui(r,3);t=Es(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,o);return s>-1?i[a?t[s]:s]:n}}function Fo(e){return oi((function(t){var o=t.length,i=o,a=Xn.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Pe(r);if(a&&!l&&"wrapper"==li(s))var l=new Xn([],!0)}for(i=l?i:o;++i<o;){var c=li(s=t[i]),u="wrapper"==c?si(s):n;l=u&&ji(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[li(u[0])].apply(l,u[3]):1==s.length&&ji(s)?l[c]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Ya(n))return l.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}}))}function Vo(e,t,r,o,i,a,s,l,u,d){var p=t&c,f=1&t,m=2&t,h=24&t,g=512&t,v=m?n:Ho(e);return function c(){for(var A=arguments.length,y=ae(A),b=A;b--;)y[b]=arguments[b];if(h)var x=ci(c),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,x);if(o&&(y=To(y,o,i,h)),a&&(y=Po(y,a,s,h)),A-=w,h&&A<d){var j=un(y,x);return qo(e,t,Vo,c.placeholder,r,y,j,l,u,d-A)}var C=f?r:this,O=m?C[e]:e;return A=y.length,l?y=function(e,t){var r=e.length,o=bn(t.length,r),i=No(e);for(;o--;){var a=t[o];e[o]=bi(a,r)?i[a]:n}return e}(y,l):g&&A>1&&y.reverse(),p&&u<A&&(y.length=u),this&&this!==mt&&this instanceof c&&(O=v||Ho(O)),O.apply(C,y)}}function Qo(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Xo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=uo(r),o=uo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Yo(e){return oi((function(t){return t=kt(t,_t(ui())),Jr((function(n){var r=this;return e(t,(function(e){return Mt(e,r,n)}))}))}))}function Zo(e,t){var r=(t=t===n?" ":uo(t)).length;if(r<2)return r?Kr(t,e):t;var o=Kr(t,ht(e/fn(t)));return sn(t)?jo(mn(o),0,e).join(""):o.slice(0,e)}function Go(e){return function(t,r,o){return o&&"number"!=typeof o&&xi(t,r,o)&&(r=o=n),t=ms(t),r===n?(r=t,t=0):r=ms(r),function(e,t,n,r){for(var o=-1,i=yn(ht((t-e)/(n||1)),0),a=ae(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:ms(o),e)}}function Uo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function qo(e,t,r,o,i,a,c,u,d,p){var f=8&t;t|=f?s:l,4&(t&=~(f?l:s))||(t&=-4);var m=[e,t,i,f?a:n,f?c:n,f?n:a,f?n:c,u,d,p],h=r.apply(n,m);return ji(e)&&Ni(h,m),h.placeholder=o,ki(h,e,t)}function Ko(e){var t=Me[e];return function(e,n){if(e=vs(e),(n=null==n?0:bn(hs(n),292))&&Ht(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Jo=Dn&&1/dn(new Dn([,-0]))[1]==d?function(e){return new Dn(e)}:cl;function _o(e){return function(t){var n=gi(t);return n==j?ln(t):n==D?pn(t):function(e,t){return kt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function $o(e,t,o,d,p,f,m,h){var g=2&t;if(!g&&"function"!=typeof e)throw new Pe(r);var v=d?d.length:0;if(v||(t&=-97,d=p=n),m=m===n?m:yn(hs(m),0),h=h===n?h:hs(h),v-=p?p.length:0,t&l){var A=d,y=p;d=p=n}var b=g?n:si(e),x=[e,t,o,d,p,A,y,f,m,h];if(b&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,s=r==c&&8==n||r==c&&n==u&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var d=e[3];e[3]=d?To(d,l,t[4]):l,e[4]=d?un(e[3],i):t[4]}(l=t[5])&&(d=e[5],e[5]=d?Po(d,l,t[6]):l,e[6]=d?un(e[5],i):t[6]);(l=t[7])&&(e[7]=l);r&c&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(x,b),e=x[0],t=x[1],o=x[2],d=x[3],p=x[4],!(h=x[9]=x[9]===n?g?0:e.length:yn(x[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||t==a?function(e,t,r){var o=Ho(e);return function i(){for(var a=arguments.length,s=ae(a),l=a,c=ci(i);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:un(s,c);return(a-=u.length)<r?qo(e,t,Vo,i.placeholder,n,s,u,n,n,r-a):Mt(this&&this!==mt&&this instanceof i?o:e,this,s)}}(e,t,h):t!=s&&33!=t||p.length?Vo.apply(n,x):function(e,t,n,r){var o=1&t,i=Ho(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=ae(c+s),d=this&&this!==mt&&this instanceof t?i:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return Mt(d,o?n:this,u)}}(e,t,o,d);else var w=function(e,t,n){var r=1&t,o=Ho(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return ki((b?to:Ni)(w,x),e,t)}function ei(e,t,r,o){return e===n||Fa(e,Be[r])&&!Ie.call(o,r)?t:e}function ti(e,t,r,o,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Qr(e,t,n,ti,a),a.delete(t)),e}function ni(e){return is(e)?n:e}function ri(e,t,r,o,i,a){var s=1&r,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,m=2&r?new qn:n;for(a.set(e,t),a.set(t,e);++p<l;){var h=e[p],g=t[p];if(o)var v=s?o(g,h,p,t,e,a):o(h,g,p,e,t,a);if(v!==n){if(v)continue;f=!1;break}if(m){if(!Wt(t,(function(e,t){if(!en(m,t)&&(h===e||i(h,e,r,o,a)))return m.push(t)}))){f=!1;break}}else if(h!==g&&!i(h,g,r,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function oi(e){return Bi(Di(e,n,Zi),e+"")}function ii(e){return Or(e,Es,mi)}function ai(e){return Or(e,Bs,hi)}var si=Nn?function(e){return Nn.get(e)}:cl;function li(e){for(var t=e.name+"",n=En[t],r=Ie.call(En,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Ie.call(Fn,"placeholder")?Fn:e).placeholder}function ui(){var e=Fn.iteratee||il;return e=e===il?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function pi(e){for(var t=Es(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Mi(o)]}return t}function fi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Lr(r)?r:n}var mi=At?function(e){return null==e?[]:(e=ze(e),Nt(At(e),(function(t){return qe.call(e,t)})))}:gl,hi=At?function(e){for(var t=[];e;)Lt(t,mi(e)),e=Ge(e);return t}:gl,gi=Mr;function vi(e,t,n){for(var r=-1,o=(t=xo(t,e)).length,i=!1;++r<o;){var a=Wi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&bi(a,o)&&(Ya(e)||Xa(e))}function Ai(e){return"function"!=typeof e.constructor||Oi(e)?{}:Vn(Ge(e))}function yi(e){return Ya(e)||Xa(e)||!!(Je&&e&&e[Je])}function bi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function xi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ga(n)&&bi(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function wi(e,t){if(Ya(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(te.test(e)||!ee.test(e)||null!=t&&e in ze(t))}function ji(e){var t=li(e),n=Fn[t];if("function"!=typeof n||!(t in Yn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(On&&gi(new On(new ArrayBuffer(1)))!=B||Mn&&gi(new Mn)!=j||zn&&gi(zn.resolve())!=M||Dn&&gi(new Dn)!=D||Tn&&gi(new Tn)!=N)&&(gi=function(e){var t=Mr(e),r=t==O?e.constructor:n,o=r?Hi(r):"";if(o)switch(o){case Bn:return B;case kn:return j;case Ln:return M;case In:return D;case Sn:return N}return t});var Ci=ke?_a:vl;function Oi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Be)}function Mi(e){return e==e&&!ts(e)}function zi(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in ze(r)))}}function Di(e,t,r){return t=yn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=yn(n.length-t,0),a=ae(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=ae(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),Mt(e,this,s)}}function Ti(e,t){return t.length<2?e:Cr(e,oo(t,0,-1))}function Pi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ni=Li(to),Ei=ft||function(e,t){return mt.setTimeout(e,t)},Bi=Li(no);function ki(e,t,n){var r=t+"";return Bi(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(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Dt(h,(function(n){var r="_."+n[0];t&n[1]&&!Et(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function Li(e){var t=0,r=0;return function(){var o=xn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ii(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=qr(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Si=function(e){var t=La(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function Wi(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Hi(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ri(e){if(e instanceof Yn)return e.clone();var t=new Xn(e.__wrapped__,e.__chain__);return t.__actions__=No(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Jr((function(e,t){return Ua(e)?pr(e,Ar(t,1,Ua,!0)):[]})),Vi=Jr((function(e,t){var r=Ji(t);return Ua(r)&&(r=n),Ua(e)?pr(e,Ar(t,1,Ua,!0),ui(r,2)):[]})),Qi=Jr((function(e,t){var r=Ji(t);return Ua(r)&&(r=n),Ua(e)?pr(e,Ar(t,1,Ua,!0),n,r):[]}));function Xi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=yn(r+o,0)),Ft(e,ui(t,3),o)}function Yi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=hs(r),i=r<0?yn(o+i,0):bn(i,o-1)),Ft(e,ui(t,3),i,!0)}function Zi(e){return(null==e?0:e.length)?Ar(e,1):[]}function Gi(e){return e&&e.length?e[0]:n}var Ui=Jr((function(e){var t=kt(e,yo);return t.length&&t[0]===e[0]?Pr(t):[]})),qi=Jr((function(e){var t=Ji(e),r=kt(e,yo);return t===Ji(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Pr(r,ui(t,2)):[]})),Ki=Jr((function(e){var t=Ji(e),r=kt(e,yo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Pr(r,n,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:n}var _i=Jr($i);function $i(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=oi((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Ur(e,kt(t,(function(e){return bi(e,n)?+e:e})).sort(Do)),r}));function ta(e){return null==e?e:Cn.call(e)}var na=Jr((function(e){return po(Ar(e,1,Ua,!0))})),ra=Jr((function(e){var t=Ji(e);return Ua(t)&&(t=n),po(Ar(e,1,Ua,!0),ui(t,2))})),oa=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,po(Ar(e,1,Ua,!0),n,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,(function(e){if(Ua(e))return t=yn(e.length,t),!0})),Kt(t,(function(t){return kt(e,Zt(t))}))}function aa(e,t){if(!e||!e.length)return[];var r=ia(e);return null==t?r:kt(r,(function(e){return Mt(t,n,e)}))}var sa=Jr((function(e,t){return Ua(e)?pr(e,t):[]})),la=Jr((function(e){return vo(Nt(e,Ua))})),ca=Jr((function(e){var t=Ji(e);return Ua(t)&&(t=n),vo(Nt(e,Ua),ui(t,2))})),ua=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,vo(Nt(e,Ua),n,t)})),da=Jr(ia);var pa=Jr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,aa(e,r)}));function fa(e){var t=Fn(e);return t.__chain__=!0,t}function ma(e,t){return t(e)}var ha=oi((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Yn&&bi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ma,args:[i],thisArg:n}),new Xn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var ga=Bo((function(e,t,n){Ie.call(e,n)?++e[n]:ar(e,n,1)}));var va=Ro(Xi),Aa=Ro(Yi);function ya(e,t){return(Ya(e)?Dt:fr)(e,ui(t,3))}function ba(e,t){return(Ya(e)?Tt:mr)(e,ui(t,3))}var xa=Bo((function(e,t,n){Ie.call(e,n)?e[n].push(t):ar(e,n,[t])}));var wa=Jr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ga(e)?ae(e.length):[];return fr(e,(function(e){i[++r]=o?Mt(t,e,n):Nr(e,t,n)})),i})),ja=Bo((function(e,t,n){ar(e,n,t)}));function Ca(e,t){return(Ya(e)?kt:Rr)(e,ui(t,3))}var Oa=Bo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ma=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Yr(e,Ar(t,1),[])})),za=pt||function(){return mt.Date.now()};function Da(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,$o(e,c,n,n,n,n,t)}function Ta(e,t){var o;if("function"!=typeof t)throw new Pe(r);return e=hs(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Pa=Jr((function(e,t,n){var r=1;if(n.length){var o=un(n,ci(Pa));r|=s}return $o(e,r,t,n,o)})),Na=Jr((function(e,t,n){var r=3;if(n.length){var o=un(n,ci(Na));r|=s}return $o(t,r,e,n,o)}));function Ea(e,t,o){var i,a,s,l,c,u,d=0,p=!1,f=!1,m=!0;if("function"!=typeof e)throw new Pe(r);function h(t){var r=i,o=a;return i=a=n,d=t,l=e.apply(o,r)}function g(e){var r=e-u;return u===n||r>=t||r<0||f&&e-d>=s}function v(){var e=za();if(g(e))return A(e);c=Ei(v,function(e){var n=t-(e-u);return f?bn(n,s-(e-d)):n}(e))}function A(e){return c=n,m&&i?h(e):(i=a=n,l)}function y(){var e=za(),r=g(e);if(i=arguments,a=this,u=e,r){if(c===n)return function(e){return d=e,c=Ei(v,t),p?h(e):l}(u);if(f)return Co(c),c=Ei(v,t),h(u)}return c===n&&(c=Ei(v,t)),l}return t=vs(t)||0,ts(o)&&(p=!!o.leading,s=(f="maxWait"in o)?yn(vs(o.maxWait)||0,t):s,m="trailing"in o?!!o.trailing:m),y.cancel=function(){c!==n&&Co(c),d=0,i=u=a=c=n},y.flush=function(){return c===n?l:A(za())},y}var Ba=Jr((function(e,t){return dr(e,1,t)})),ka=Jr((function(e,t,n){return dr(e,vs(t)||0,n)}));function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(La.Cache||Un),n}function Ia(e){if("function"!=typeof e)throw new Pe(r);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)}}La.Cache=Un;var Sa=wo((function(e,t){var n=(t=1==t.length&&Ya(t[0])?kt(t[0],_t(ui())):kt(Ar(t,1),_t(ui()))).length;return Jr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Mt(e,this,r)}))})),Wa=Jr((function(e,t){var r=un(t,ci(Wa));return $o(e,s,n,t,r)})),Ha=Jr((function(e,t){var r=un(t,ci(Ha));return $o(e,l,n,t,r)})),Ra=oi((function(e,t){return $o(e,u,n,n,n,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var Va=Uo(zr),Qa=Uo((function(e,t){return e>=t})),Xa=Er(function(){return arguments}())?Er:function(e){return ns(e)&&Ie.call(e,"callee")&&!qe.call(e,"callee")},Ya=ae.isArray,Za=bt?_t(bt):function(e){return ns(e)&&Mr(e)==E};function Ga(e){return null!=e&&es(e.length)&&!_a(e)}function Ua(e){return ns(e)&&Ga(e)}var qa=yt||vl,Ka=xt?_t(xt):function(e){return ns(e)&&Mr(e)==y};function Ja(e){if(!ns(e))return!1;var t=Mr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function _a(e){if(!ts(e))return!1;var t=Mr(e);return t==x||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==hs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=wt?_t(wt):function(e){return ns(e)&&gi(e)==j};function os(e){return"number"==typeof e||ns(e)&&Mr(e)==C}function is(e){if(!ns(e)||Mr(e)!=O)return!1;var t=Ge(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==Re}var as=jt?_t(jt):function(e){return ns(e)&&Mr(e)==z};var ss=Ct?_t(Ct):function(e){return ns(e)&&gi(e)==D};function ls(e){return"string"==typeof e||!Ya(e)&&ns(e)&&Mr(e)==T}function cs(e){return"symbol"==typeof e||ns(e)&&Mr(e)==P}var us=Ot?_t(Ot):function(e){return ns(e)&&es(e.length)&&!!st[Mr(e)]};var ds=Uo(Hr),ps=Uo((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ga(e))return ls(e)?mn(e):No(e);if(_e&&e[_e])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[_e]());var t=gi(e);return(t==j?ln:t==D?dn:Fs)(e)}function ms(e){return e?(e=vs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=ms(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?lr(hs(e),0,m):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return f;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ge.test(e);return n||Ae.test(e)?dt(e.slice(2),n?2:8):he.test(e)?f:+e}function As(e){return Eo(e,Bs(e))}function ys(e){return null==e?"":uo(e)}var bs=ko((function(e,t){if(Oi(t)||Ga(t))Eo(t,Es(t),e);else for(var n in t)Ie.call(t,n)&&nr(e,n,t[n])})),xs=ko((function(e,t){Eo(t,Bs(t),e)})),ws=ko((function(e,t,n,r){Eo(t,Bs(t),e,r)})),js=ko((function(e,t,n,r){Eo(t,Es(t),e,r)})),Cs=oi(sr);var Os=Jr((function(e,t){e=ze(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&xi(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],s=Bs(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===n||Fa(d,Be[u])&&!Ie.call(e,u))&&(e[u]=a[u])}return e})),Ms=Jr((function(e){return e.push(n,ti),Mt(Ls,n,e)}));function zs(e,t,r){var o=null==e?n:Cr(e,t);return o===n?r:o}function Ds(e,t){return null!=e&&vi(e,t,Tr)}var Ts=Qo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),e[t]=n}),tl(ol)),Ps=Qo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Ns=Jr(Nr);function Es(e){return Ga(e)?Jn(e):Sr(e)}function Bs(e){return Ga(e)?Jn(e,!0):Wr(e)}var ks=ko((function(e,t,n){Qr(e,t,n)})),Ls=ko((function(e,t,n,r){Qr(e,t,n,r)})),Is=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=kt(t,(function(t){return t=xo(t,e),r||(r=t.length>1),t})),Eo(e,ai(e),n),r&&(n=cr(n,7,ni));for(var o=t.length;o--;)fo(n,t[o]);return n}));var Ss=oi((function(e,t){return null==e?{}:function(e,t){return Zr(e,t,(function(t,n){return Ds(e,n)}))}(e,t)}));function Ws(e,t){if(null==e)return{};var n=kt(ai(e),(function(e){return[e]}));return t=ui(t),Zr(e,n,(function(e,n){return t(e,n[0])}))}var Hs=_o(Es),Rs=_o(Bs);function Fs(e){return null==e?[]:$t(e,Es(e))}var Vs=Wo((function(e,t,n){return t=t.toLowerCase(),e+(n?Qs(t):t)}));function Qs(e){return Js(ys(e).toLowerCase())}function Xs(e){return(e=ys(e))&&e.replace(be,rn).replace(et,"")}var Ys=Wo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zs=Wo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gs=So("toLowerCase");var Us=Wo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var qs=Wo((function(e,t,n){return e+(n?" ":"")+Js(t)}));var Ks=Wo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=So("toUpperCase");function _s(e,t,r){return e=ys(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var $s=Jr((function(e,t){try{return Mt(e,n,t)}catch(e){return Ja(e)?e:new Ce(e)}})),el=oi((function(e,t){return Dt(t,(function(t){t=Wi(t),ar(e,t,Pa(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Fo(),rl=Fo(!0);function ol(e){return e}function il(e){return Ir("function"==typeof e?e:cr(e,1))}var al=Jr((function(e,t){return function(n){return Nr(n,e,t)}})),sl=Jr((function(e,t){return function(n){return Nr(e,n,t)}}));function ll(e,t,n){var r=Es(t),o=jr(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=jr(t,Es(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=_a(e);return Dt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=No(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function cl(){}var ul=Yo(kt),dl=Yo(Pt),pl=Yo(Wt);function fl(e){return wi(e)?Zt(Wi(e)):function(e){return function(t){return Cr(t,e)}}(e)}var ml=Go(),hl=Go(!0);function gl(){return[]}function vl(){return!1}var Al=Xo((function(e,t){return e+t}),0),yl=Ko("ceil"),bl=Xo((function(e,t){return e/t}),1),xl=Ko("floor");var wl,jl=Xo((function(e,t){return e*t}),1),Cl=Ko("round"),Ol=Xo((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Pe(r);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Da,Fn.assign=bs,Fn.assignIn=xs,Fn.assignInWith=ws,Fn.assignWith=js,Fn.at=Cs,Fn.before=Ta,Fn.bind=Pa,Fn.bindAll=el,Fn.bindKey=Na,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ya(e)?e:[e]},Fn.chain=fa,Fn.chunk=function(e,t,r){t=(r?xi(e,t,r):t===n)?1:yn(hs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=ae(ht(o/t));i<o;)s[a++]=oo(e,i,i+=t);return s},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ae(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Lt(Ya(n)?No(n):[n],Ar(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?kt(e,(function(e){if("function"!=typeof e[1])throw new Pe(r);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Mt(o[0],this,n))return Mt(o[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Es(e);return function(n){return ur(n,e,t)}}(cr(e,1))},Fn.constant=tl,Fn.countBy=ga,Fn.create=function(e,t){var n=Vn(e);return null==t?n:ir(n,t)},Fn.curry=function e(t,r,o){var i=$o(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Fn.curryRight=function e(t,r,o){var i=$o(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Fn.debounce=Ea,Fn.defaults=Os,Fn.defaultsDeep=Ms,Fn.defer=Ba,Fn.delay=ka,Fn.difference=Fi,Fn.differenceBy=Vi,Fn.differenceWith=Qi,Fn.drop=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=r||t===n?1:hs(t))<0?0:t,o):[]},Fn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,0,(t=o-(t=r||t===n?1:hs(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0):[]},Fn.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&xi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=hs(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:hs(o))<0&&(o+=i),o=r>o?0:gs(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Fn.filter=function(e,t){return(Ya(e)?Nt:vr)(e,ui(t,3))},Fn.flatMap=function(e,t){return Ar(Ca(e,t),1)},Fn.flatMapDeep=function(e,t){return Ar(Ca(e,t),d)},Fn.flatMapDepth=function(e,t,r){return r=r===n?1:hs(r),Ar(Ca(e,t),r)},Fn.flatten=Zi,Fn.flattenDeep=function(e){return(null==e?0:e.length)?Ar(e,d):[]},Fn.flattenDepth=function(e,t){return(null==e?0:e.length)?Ar(e,t=t===n?1:hs(t)):[]},Fn.flip=function(e){return $o(e,512)},Fn.flow=nl,Fn.flowRight=rl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Fn.functions=function(e){return null==e?[]:jr(e,Es(e))},Fn.functionsIn=function(e){return null==e?[]:jr(e,Bs(e))},Fn.groupBy=xa,Fn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Fn.intersection=Ui,Fn.intersectionBy=qi,Fn.intersectionWith=Ki,Fn.invert=Ts,Fn.invertBy=Ps,Fn.invokeMap=wa,Fn.iteratee=il,Fn.keyBy=ja,Fn.keys=Es,Fn.keysIn=Bs,Fn.map=Ca,Fn.mapKeys=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},Fn.mapValues=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},Fn.matches=function(e){return Fr(cr(e,1))},Fn.matchesProperty=function(e,t){return Vr(e,cr(t,1))},Fn.memoize=La,Fn.merge=ks,Fn.mergeWith=Ls,Fn.method=al,Fn.methodOf=sl,Fn.mixin=ll,Fn.negate=Ia,Fn.nthArg=function(e){return e=hs(e),Jr((function(t){return Xr(t,e)}))},Fn.omit=Is,Fn.omitBy=function(e,t){return Ws(e,Ia(ui(t)))},Fn.once=function(e){return Ta(2,e)},Fn.orderBy=function(e,t,r,o){return null==e?[]:(Ya(t)||(t=null==t?[]:[t]),Ya(r=o?n:r)||(r=null==r?[]:[r]),Yr(e,t,r))},Fn.over=ul,Fn.overArgs=Sa,Fn.overEvery=dl,Fn.overSome=pl,Fn.partial=Wa,Fn.partialRight=Ha,Fn.partition=Oa,Fn.pick=Ss,Fn.pickBy=Ws,Fn.property=fl,Fn.propertyOf=function(e){return function(t){return null==e?n:Cr(e,t)}},Fn.pull=_i,Fn.pullAll=$i,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ui(n,2)):e},Fn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Gr(e,t,n,r):e},Fn.pullAt=ea,Fn.range=ml,Fn.rangeRight=hl,Fn.rearg=Ra,Fn.reject=function(e,t){return(Ya(e)?Nt:vr)(e,Ia(ui(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Ur(e,o),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Pe(r);return Jr(e,t=t===n?t:hs(t))},Fn.reverse=ta,Fn.sampleSize=function(e,t,r){return t=(r?xi(e,t,r):t===n)?1:hs(t),(Ya(e)?$n:$r)(e,t)},Fn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Fn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:eo(e,t,r,o)},Fn.shuffle=function(e){return(Ya(e)?er:ro)(e)},Fn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&xi(e,t,r)?(t=0,r=o):(t=null==t?0:hs(t),r=r===n?o:hs(r)),oo(e,t,r)):[]},Fn.sortBy=Ma,Fn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},Fn.split=function(e,t,r){return r&&"number"!=typeof r&&xi(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=uo(t))&&sn(e)?jo(mn(e),0,r):e.split(t,r):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Pe(r);return t=null==t?0:yn(hs(t),0),Jr((function(n){var r=n[t],o=jo(n,0,t);return r&&Lt(o,r),Mt(e,this,o)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Fn.take=function(e,t,r){return e&&e.length?oo(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},Fn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=r||t===n?1:hs(t)))<0?0:t,o):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?ho(e,ui(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Pe(r);return ts(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Ea(e,t,{leading:o,maxWait:t,trailing:i})},Fn.thru=ma,Fn.toArray=fs,Fn.toPairs=Hs,Fn.toPairsIn=Rs,Fn.toPath=function(e){return Ya(e)?kt(e,Wi):cs(e)?[e]:No(Si(ys(e)))},Fn.toPlainObject=As,Fn.transform=function(e,t,n){var r=Ya(e),o=r||qa(e)||us(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&_a(i)?Vn(Ge(e)):{}}return(o?Dt:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Fn.unary=function(e){return Da(e,1)},Fn.union=na,Fn.unionBy=ra,Fn.unionWith=oa,Fn.uniq=function(e){return e&&e.length?po(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?po(e,ui(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},Fn.unset=function(e,t){return null==e||fo(e,t)},Fn.unzip=ia,Fn.unzipWith=aa,Fn.update=function(e,t,n){return null==e?e:mo(e,t,bo(n))},Fn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:mo(e,t,bo(r),o)},Fn.values=Fs,Fn.valuesIn=function(e){return null==e?[]:$t(e,Bs(e))},Fn.without=sa,Fn.words=_s,Fn.wrap=function(e,t){return Wa(bo(t),e)},Fn.xor=la,Fn.xorBy=ca,Fn.xorWith=ua,Fn.zip=da,Fn.zipObject=function(e,t){return Ao(e||[],t||[],nr)},Fn.zipObjectDeep=function(e,t){return Ao(e||[],t||[],eo)},Fn.zipWith=pa,Fn.entries=Hs,Fn.entriesIn=Rs,Fn.extend=xs,Fn.extendWith=ws,ll(Fn,Fn),Fn.add=Al,Fn.attempt=$s,Fn.camelCase=Vs,Fn.capitalize=Qs,Fn.ceil=yl,Fn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=vs(r))==r?r:0),t!==n&&(t=(t=vs(t))==t?t:0),lr(vs(e),t,r)},Fn.clone=function(e){return cr(e,4)},Fn.cloneDeep=function(e){return cr(e,5)},Fn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Fn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Fn.conformsTo=function(e,t){return null==t||ur(e,t,Es(t))},Fn.deburr=Xs,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=bl,Fn.endsWith=function(e,t,r){e=ys(e),t=uo(t);var o=e.length,i=r=r===n?o:lr(hs(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Fn.eq=Fa,Fn.escape=function(e){return(e=ys(e))&&K.test(e)?e.replace(U,on):e},Fn.escapeRegExp=function(e){return(e=ys(e))&&oe.test(e)?e.replace(re,"\\$&"):e},Fn.every=function(e,t,r){var o=Ya(e)?Pt:hr;return r&&xi(e,t,r)&&(t=n),o(e,ui(t,3))},Fn.find=va,Fn.findIndex=Xi,Fn.findKey=function(e,t){return Rt(e,ui(t,3),xr)},Fn.findLast=Aa,Fn.findLastIndex=Yi,Fn.findLastKey=function(e,t){return Rt(e,ui(t,3),wr)},Fn.floor=xl,Fn.forEach=ya,Fn.forEachRight=ba,Fn.forIn=function(e,t){return null==e?e:yr(e,ui(t,3),Bs)},Fn.forInRight=function(e,t){return null==e?e:br(e,ui(t,3),Bs)},Fn.forOwn=function(e,t){return e&&xr(e,ui(t,3))},Fn.forOwnRight=function(e,t){return e&&wr(e,ui(t,3))},Fn.get=zs,Fn.gt=Va,Fn.gte=Qa,Fn.has=function(e,t){return null!=e&&vi(e,t,Dr)},Fn.hasIn=Ds,Fn.head=Gi,Fn.identity=ol,Fn.includes=function(e,t,n,r){e=Ga(e)?e:Fs(e),n=n&&!r?hs(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=yn(r+o,0)),Vt(e,t,o)},Fn.inRange=function(e,t,r){return t=ms(t),r===n?(r=t,t=0):r=ms(r),function(e,t,n){return e>=bn(t,n)&&e<yn(t,n)}(e=vs(e),t,r)},Fn.invoke=Ns,Fn.isArguments=Xa,Fn.isArray=Ya,Fn.isArrayBuffer=Za,Fn.isArrayLike=Ga,Fn.isArrayLikeObject=Ua,Fn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Mr(e)==A},Fn.isBuffer=qa,Fn.isDate=Ka,Fn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Ya(e)||"string"==typeof e||"function"==typeof e.splice||qa(e)||us(e)||Xa(e)))return!e.length;var t=gi(e);if(t==j||t==D)return!e.size;if(Oi(e))return!Sr(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Br(e,t)},Fn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Br(e,t,n,r):!!o},Fn.isError=Ja,Fn.isFinite=function(e){return"number"==typeof e&&Ht(e)},Fn.isFunction=_a,Fn.isInteger=$a,Fn.isLength=es,Fn.isMap=rs,Fn.isMatch=function(e,t){return e===t||kr(e,t,pi(t))},Fn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,kr(e,t,pi(t),r)},Fn.isNaN=function(e){return os(e)&&e!=+e},Fn.isNative=function(e){if(Ci(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=os,Fn.isObject=ts,Fn.isObjectLike=ns,Fn.isPlainObject=is,Fn.isRegExp=as,Fn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=p},Fn.isSet=ss,Fn.isString=ls,Fn.isSymbol=cs,Fn.isTypedArray=us,Fn.isUndefined=function(e){return e===n},Fn.isWeakMap=function(e){return ns(e)&&gi(e)==N},Fn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Mr(e)},Fn.join=function(e,t){return null==e?"":Gt.call(e,t)},Fn.kebabCase=Ys,Fn.last=Ji,Fn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=hs(r))<0?yn(o+i,0):bn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Xt,i,!0)},Fn.lowerCase=Zs,Fn.lowerFirst=Gs,Fn.lt=ds,Fn.lte=ps,Fn.max=function(e){return e&&e.length?gr(e,ol,zr):n},Fn.maxBy=function(e,t){return e&&e.length?gr(e,ui(t,2),zr):n},Fn.mean=function(e){return Yt(e,ol)},Fn.meanBy=function(e,t){return Yt(e,ui(t,2))},Fn.min=function(e){return e&&e.length?gr(e,ol,Hr):n},Fn.minBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Hr):n},Fn.stubArray=gl,Fn.stubFalse=vl,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=jl,Fn.nth=function(e,t){return e&&e.length?Xr(e,hs(t)):n},Fn.noConflict=function(){return mt._===this&&(mt._=Fe),this},Fn.noop=cl,Fn.now=za,Fn.pad=function(e,t,n){e=ys(e);var r=(t=hs(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Zo(gt(o),n)+e+Zo(ht(o),n)},Fn.padEnd=function(e,t,n){e=ys(e);var r=(t=hs(t))?fn(e):0;return t&&r<t?e+Zo(t-r,n):e},Fn.padStart=function(e,t,n){e=ys(e);var r=(t=hs(t))?fn(e):0;return t&&r<t?Zo(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ys(e).replace(ie,""),t||0)},Fn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&xi(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=ms(e),t===n?(t=e,e=0):t=ms(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=jn();return bn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return qr(e,t)},Fn.reduce=function(e,t,n){var r=Ya(e)?It:Ut,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},Fn.reduceRight=function(e,t,n){var r=Ya(e)?St:Ut,o=arguments.length<3;return r(e,ui(t,4),n,o,mr)},Fn.repeat=function(e,t,r){return t=(r?xi(e,t,r):t===n)?1:hs(t),Kr(ys(e),t)},Fn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,r){var o=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[Wi(t[o])];a===n&&(o=i,a=r),e=_a(a)?a.call(e):a}return e},Fn.round=Cl,Fn.runInContext=e,Fn.sample=function(e){return(Ya(e)?_n:_r)(e)},Fn.size=function(e){if(null==e)return 0;if(Ga(e))return ls(e)?fn(e):e.length;var t=gi(e);return t==j||t==D?e.size:Sr(e).length},Fn.snakeCase=Us,Fn.some=function(e,t,r){var o=Ya(e)?Wt:io;return r&&xi(e,t,r)&&(t=n),o(e,ui(t,3))},Fn.sortedIndex=function(e,t){return ao(e,t)},Fn.sortedIndexBy=function(e,t,n){return so(e,t,ui(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ao(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return so(e,t,ui(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Fn.startCase=qs,Fn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:lr(hs(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Fn.subtract=Ol,Fn.sum=function(e){return e&&e.length?qt(e,ol):0},Fn.sumBy=function(e,t){return e&&e.length?qt(e,ui(t,2)):0},Fn.template=function(e,t,r){var o=Fn.templateSettings;r&&xi(e,t,r)&&(t=n),e=ys(e),t=ws({},t,o,ei);var i,a,s=ws({},t.imports,o.imports,ei),l=Es(s),c=$t(s,l),u=0,d=t.interpolate||xe,p="__p += '",f=De((t.escape||xe).source+"|"+d.source+"|"+(d===$?fe:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),m="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(f,(function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(u,l).replace(we,an),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var h=Ie.call(t,"variable")&&t.variable;if(h){if(de.test(h))throw new Ce("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(X,""):p).replace(Y,"$1").replace(Z,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=$s((function(){return Oe(l,m+"return "+p).apply(n,c)}));if(g.source=p,Ja(g))throw g;return g},Fn.times=function(e,t){if((e=hs(e))<1||e>p)return[];var n=m,r=bn(e,m);t=ui(t),e-=m;for(var o=Kt(r,t);++n<e;)t(n);return o},Fn.toFinite=ms,Fn.toInteger=hs,Fn.toLength=gs,Fn.toLower=function(e){return ys(e).toLowerCase()},Fn.toNumber=vs,Fn.toSafeInteger=function(e){return e?lr(hs(e),-9007199254740991,p):0===e?e:0},Fn.toString=ys,Fn.toUpper=function(e){return ys(e).toUpperCase()},Fn.trim=function(e,t,r){if((e=ys(e))&&(r||t===n))return Jt(e);if(!e||!(t=uo(t)))return e;var o=mn(e),i=mn(t);return jo(o,tn(o,i),nn(o,i)+1).join("")},Fn.trimEnd=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=uo(t)))return e;var o=mn(e);return jo(o,0,nn(o,mn(t))+1).join("")},Fn.trimStart=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=uo(t)))return e;var o=mn(e);return jo(o,tn(o,mn(t))).join("")},Fn.truncate=function(e,t){var r=30,o="...";if(ts(t)){var i="separator"in t?t.separator:i;r="length"in t?hs(t.length):r,o="omission"in t?uo(t.omission):o}var a=(e=ys(e)).length;if(sn(e)){var s=mn(e);a=s.length}if(r>=a)return e;var l=r-fn(o);if(l<1)return o;var c=s?jo(s,0,l).join(""):e.slice(0,l);if(i===n)return c+o;if(s&&(l+=c.length-l),as(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=De(i.source,ys(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(uo(i),l)!=l){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+o},Fn.unescape=function(e){return(e=ys(e))&&q.test(e)?e.replace(G,gn):e},Fn.uniqueId=function(e){var t=++Se;return ys(e)+t},Fn.upperCase=Ks,Fn.upperFirst=Js,Fn.each=ya,Fn.eachRight=ba,Fn.first=Gi,ll(Fn,(wl={},xr(Fn,(function(e,t){Ie.call(Fn.prototype,t)||(wl[t]=e)})),wl),{chain:!1}),Fn.VERSION="4.17.21",Dt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),Dt(["drop","take"],(function(e,t){Yn.prototype[e]=function(r){r=r===n?1:yn(hs(r),0);var o=this.__filtered__&&!t?new Yn(this):this.clone();return o.__filtered__?o.__takeCount__=bn(r,o.__takeCount__):o.__views__.push({size:bn(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Yn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Dt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Yn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Dt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Yn.prototype[e]=function(){return this[n](1).value()[0]}})),Dt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Yn.prototype[e]=function(){return this.__filtered__?new Yn(this):this[n](1)}})),Yn.prototype.compact=function(){return this.filter(ol)},Yn.prototype.find=function(e){return this.filter(e).head()},Yn.prototype.findLast=function(e){return this.reverse().find(e)},Yn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Yn(this):this.map((function(n){return Nr(n,e,t)}))})),Yn.prototype.reject=function(e){return this.filter(Ia(ui(e)))},Yn.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Yn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Yn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Yn.prototype.toArray=function(){return this.take(m)},xr(Yn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Fn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,l=t instanceof Yn,c=s[0],u=l||Ya(t),d=function(e){var t=i.apply(Fn,Lt([e],s));return o&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,m=a&&!p,h=l&&!f;if(!a&&u){t=h?t:new Yn(this);var g=e.apply(t,s);return g.__actions__.push({func:ma,args:[d],thisArg:n}),new Xn(g,p)}return m&&h?e.apply(this,s):(g=this.thru(d),m?o?g.value()[0]:g.value():g)})})),Dt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ya(o)?o:[],e)}return this[n]((function(n){return t.apply(Ya(n)?n:[],e)}))}})),xr(Yn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Ie.call(En,r)||(En[r]=[]),En[r].push({name:t,func:n})}})),En[Vo(n,2).name]=[{name:"wrapper",func:n}],Yn.prototype.clone=function(){var e=new Yn(this.__wrapped__);return e.__actions__=No(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=No(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=No(this.__views__),e},Yn.prototype.reverse=function(){if(this.__filtered__){var e=new Yn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Yn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ya(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,f=bn(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return go(e,this.__actions__);var m=[];e:for(;l--&&p<f;){for(var h=-1,g=e[c+=t];++h<d;){var v=u[h],A=v.iteratee,y=v.type,b=A(g);if(2==y)g=b;else if(!b){if(1==y)continue e;break e}}m[p++]=g}return m},Fn.prototype.at=ha,Fn.prototype.chain=function(){return fa(this)},Fn.prototype.commit=function(){return new Xn(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===n&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,r=this;r instanceof Qn;){var o=Ri(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Yn){var t=e;return this.__actions__.length&&(t=new Yn(this)),(t=t.reverse()).__actions__.push({func:ma,args:[ta],thisArg:n}),new Xn(t,this.__chain__)}return this.thru(ta)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,_e&&(Fn.prototype[_e]=function(){return this}),Fn}();gt?((gt.exports=vn)._=vn,ht._=vn):mt._=vn}).call(S)}(sg,sg.exports);var lg,cg=sg.exports,ug=x.create({withCredentials:!0});exports.RequestState=void 0,(lg=exports.RequestState||(exports.RequestState={})).IDLE="idle",lg.LOADING="loading",lg.SUCCEEDED="succeeded",lg.FAILED="failed";var dg=function(){function e(e,t,n){this.data=e,this.state=t,this.error=n}return e.idle=function(t){var n=new e(t,exports.RequestState.IDLE);return Z({},n)},e.loading=function(t){var n=new e(t,exports.RequestState.LOADING);return Z({},n)},e.succeeded=function(t){var n=new e(t,exports.RequestState.SUCCEEDED);return Z({},n)},e.error=function(t,n){var r=new e(n,exports.RequestState.FAILED,t);return Z({},r)},e}();function pg(e,t){return e.filter((function(e){return!t.includes(e)}))}var fg=e.createContext({statusCode:null,dashbaordUrlPrefix:""});function mg(t){void 0===t&&(t=dg.idle());var n=e.useState(t),r=n[0],o=n[1],i=e.useContext(fg).dashbaordUrlPrefix,a=e.useCallback((function(e){o((function(e){return dg.loading(e.data)})),ug.get("".concat(i,"/").concat(e.url),Z(Z({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(dg.succeeded(n))})).catch((function(t){var n,r;e.onError&&e.onError(t);try{var i=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return dg.error(i,e.data)}))}catch(e){o((function(e){return dg.error(t,e.data)}))}}))}),[]),s=e.useCallback((function(e){o((function(e){return dg.loading(e.data)})),ug.post("".concat(i,"/").concat(e.url),e.body,Z(Z({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(dg.succeeded(n))})).catch((function(t){var n,r;e.onError&&e.onError(t);try{var i=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return dg.error(i,e.data)}))}catch(e){o((function(e){return dg.error(t,e.data)}))}}))}),[]),l=e.useCallback((function(e){o((function(e){return dg.loading(e.data)})),ug.patch("".concat(i,"/").concat(e.url),e.body,Z(Z({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(dg.succeeded(n))})).catch((function(t){var n,r;e.onError&&e.onError(t);try{var i=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return dg.error(i,e.data)}))}catch(e){o((function(e){return dg.error(t,e.data)}))}}))}),[]),c=e.useCallback((function(e){o((function(e){return dg.loading(e.data)})),ug.delete("".concat(i,"/").concat(e.url),Z(Z({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(dg.succeeded(n))})).catch((function(t){var n,r;e.onError&&e.onError(t);try{var i=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return dg.error(i,e.data)}))}catch(e){o((function(e){return dg.error(t,e.data)}))}}))}),[]);return{requestState:r,get:a,post:s,patch:l,remove:c,revertToIdle:function(){o(dg.idle())},revertToInitialState:function(){o(t)}}}function hg(){return w.configure({showSpinner:!1}),e.useMemo((function(){w.start()}),[]),e.useEffect((function(){w.done()}),[]),null}var gg=go("div")((function(e){return{right:0,bottom:0,zIndex:99999,width:"100%",height:"100%",position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e.theme.palette.background.default}}));function vg(e){var t=e.isDashboard,r=e.loadingLogo,o=e.logoSxProps,i=G(e,["isDashboard","loadingLogo","logoSxProps"]);return Y.jsxs(Y.Fragment,{children:[Y.jsx(hg,{}),!t&&Y.jsxs(gg,Z({},i,{children:[Y.jsx(p.m.div,{animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,ease:"easeInOut",repeatDelay:1,repeat:1/0},children:Y.jsx(n.Box,{sx:Z({width:200},o),children:Y.jsx(La,{visibleByDefault:!0,disabledEffect:!0,src:r,alt:"logo"})})}),Y.jsx(n.Box,{component:p.m.div,animate:{scale:[1.2,1,1,1.2,1.2],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:100,height:100,borderRadius:"25%",position:"absolute",border:function(e){return"solid 3px ".concat(yr(e.palette.primary.dark,.24))}}}),Y.jsx(n.Box,{component:p.m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:120,height:120,borderRadius:"25%",position:"absolute",border:function(e){return"solid 8px ".concat(yr(e.palette.primary.dark,.24))}}})]}))]})}var Ag=e.createContext({resources:null,getResources:function(){},state:exports.RequestState.IDLE,clearResources:function(){}}),yg=require("@mui/icons-material"),bg=function(e){return Y.jsx(xg,{src:e,sx:{width:1,height:1}})};function xg(e){var t=e.src,r=e.sx,o=Y.jsx(n.Box,{component:"span",sx:Z({width:24,height:24,display:"inline-block",bgcolor:"currentColor",mask:"url(".concat(t,") no-repeat center / contain"),WebkitMask:"url(".concat(t,") no-repeat center / contain")},r)}),i=Y.jsx(n.Box,{sx:{display:"flex",gap:1},children:Y.jsx(n.SvgIcon,{component:yg[t],color:"inherit"})});return void 0!==yg[t]?i:o}var wg=e.createContext({paths:{},root:"",home:""});function jg(e,t){return"".concat(e).concat(t)}function Cg(){var t=e.useContext(Ag).resources,n=e.useContext(wg).paths;if(!t)return[];var r=t.modelParents;return e.useMemo((function(){var e=[];for(var o in r){for(var i=[],a=r[o],s=t[a[0]].properties.parent,l=s.icon,c={title:s.value,icon:bg(l),children:i},u=0;u<a.length;u++){var d=t[a[u]];i.push({title:d.properties.name,path:n[a[u]]?n[a[u]].list:""})}c.children=i,e.push(c)}return[{subheader:"",items:e||[]}]}),[t])}var Og=e.createContext({textFieldSize:"small",themeLayout:"vertical",defaultRowsPerPage:50,themeStretch:!0,loadingLoago:"",navBarLogo:"",miniNavBarLogo:""}),Mg=e.createContext({identityPoolId:"",region:"",userPoolId:"",userPoolWebClientId:"",bucket:"",googleApiKey:"",bucketUrl:""}),zg=e.createContext({setAlert:function(e,t,n,r){},setErrorAlert:function(e,t,n){},setSuccessAlert:function(e,t,n){}});var Dg=e.createContext({openDialog:function(e,t){}});var Tg,Pg=e.createContext({notifications:[],getNotifications:function(){},state:exports.RequestState.IDLE,clearNotifications:function(){}}),Ng=function(){return e.useContext(Og)},Eg=function(){return e.useContext(Ag)},Bg=function(){return e.useContext(zg)},kg=function(){return e.useContext(wg)},Lg=function(){return e.useContext(Dg)},Ig=function(){return e.useContext(Pg)},Sg=["1","2","3","4","5","6"];function Wg(e){var t=e.loadingVertical;return G(e,["loadingVertical"]),Y.jsx(n.Card,{sx:{pt:5,px:5,width:1500},children:Y.jsx(n.Grid,{container:!t,children:Sg.map((function(e){return Y.jsxs(n.Grid,{item:!0,xs:12,md:6,sx:{mb:3.5},children:[Y.jsx(n.Skeleton,{variant:"text",width:100,height:20,sx:{mb:1}}),Y.jsx(n.Skeleton,{variant:"text",width:300,height:20})]},e)}))})})}!function(e){e.ENGLISH="en",e.ARABIC="ar",e.FRENCH="fr",e.GERMAN="de"}(Tg||(Tg={}));var Hg=function(){function e(){}return e.isEnglish=function(){switch(localStorage.getItem("i18nextLng")){case Tg.ENGLISH:return!0;case Tg.ARABIC:return!1;default:return!0}},e.getLocale=function(){return this.isEnglish()?Tg.ENGLISH:Tg.ARABIC},e.getLocalizedString=function(e){for(var t=this.getLocale(),n=e[0].value,r=0;r<e.length;r++){var o=e[r];if(o.key===t)return o.value?o.value:n}return n},e}(),Rg=function(){function e(e,t,n,r,o,i){this.modelLocalizedName=e,this.isEnglish=t,this.title=n,this.record=r,this.isEdit=i,this.schema=o}return e.prototype.getTitle=function(){return(this.isEdit?this.getEditWord():this.getNewWord())+this.modelLocalizedName},e.prototype.getBreadCrumbLinks=function(e,t,n){return[{name:this.isEnglish?"Dashboard":"الرئيسية",href:n},{name:this.modelLocalizedName,href:e[t].list},{name:this.isEdit?this.getRecordName():this.getNewWord()}]},e.prototype.getNewWord=function(){return this.isEnglish?"Create ":" اضافة "},e.prototype.getEditWord=function(){return this.isEnglish?"Edit ":"تعديل "},e.prototype.getRecordName=function(){return this.record?this.schema[this.title].type===Uh.LOCALIZEDString?this.getValue():"object"!=typeof this.record[this.title]?this.record[this.title]:this.getValue():Y.jsx(n.Skeleton,{variant:"text",width:100,height:20})},e.prototype.getValue=function(){return this.record[this.title][0]?Hg.getLocalizedString(this.record[this.title]):"---"},e}(),Fg=function(){return o.object().shape({images:o.array().of(o.object().shape({title:o.string().required("Title is required"),_id:o.string().required("id is required"),url:o.string().required("url is required")}))})};function Vg(t){var r=t.selected,o=t.fileType,i=t.setFiles,a=t.setSelected,s=c.useForm({resolver:Da(Fg()),defaultValues:{images:[]}}),u=s.control,d=s.handleSubmit;s.setValue;var p=c.useFieldArray({control:u,name:"images"}),f=p.fields,m=p.append,h=p.remove;return e.useEffect((function(){m(r.filter((function(e){return void 0===f.find((function(t){return t._id===e._id}))}))),h(f.filter((function(e){return void 0===r.find((function(t){return t._id===e._id}))})).map((function(e){return f.findIndex((function(t){return t._id===e._id}))})))}),[r]),Y.jsx(rp,{methods:s,onSubmit:d((function(e){(0,t.update)(e)})),children:Y.jsxs(og,{sx:{maxHeight:450,paddingBottom:2},children:[f.map((function(e,t){return Y.jsxs(n.Stack,{sx:{my:1,pr:3},children:[Y.jsxs(Y.Fragment,{children:[Y.jsx(La,{src:ps(e.url,o)===Ua.IMAGE?e.url:us(cs(e.url)),alt:e.title,sx:{borderRadius:"30px",paddingBottom:1,paddingTop:1}}),Y.jsx(n.IconButton,{size:"small",onClick:function(){return t=e,void a((function(e){return e.filter((function(e){return e._id!==t._id}))}));var t},sx:{p:.01,mr:2,mb:1,right:0,position:"absolute",color:"common.white",bgcolor:"red","&:hover":{bgcolor:function(e){return n.alpha(e.palette.grey[900],.48)}}},children:Y.jsx(jo,{icon:"eva:close-fill"})})]}),Y.jsx(dp,{sx:{paddingBottom:1},name:"images.".concat(t,".title"),placeholder:"title",size:"small"}),t<f.length-1&&Y.jsx(n.Divider,{})]},e._id)})),Y.jsx(l.LoadingButton,{type:"submit",fullWidth:!0,variant:"contained",style:{textAlign:"center",marginBottom:10},children:"Update"}),Y.jsx(l.LoadingButton,{type:"submit",fullWidth:!0,variant:"outlined",style:{textAlign:"center"},onClick:function(){a([]),i&&i([])},children:"Remove All"})]})})}function Qg(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Xg=["onChange"],Yg={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Zg(e){const{onChange:t}=e,n=Rt(e,Xg),r=k.useRef(),o=k.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return ot((()=>{const e=_e((()=>{const e=r.current;i(),e!==r.current&&t(r.current)})),n=tt(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),k.useEffect((()=>{i(),t(r.current)}),[t]),Y.jsx("div",re({style:Yg,ref:o},n))}"production"!==process.env.NODE_ENV&&(Zg.propTypes={onChange:Ee.func.isRequired});var Gg=Si(Y.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Ug=Si(Y.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function qg(e){return It("MuiTabScrollButton",e)}var Kg=St("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const Jg=["className","slots","slotProps","direction","orientation","disabled"],_g=go(Rc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>re({width:40,flexShrink:0,opacity:.8,[`&.${Kg.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),$g=k.forwardRef((function(e,t){var n,r;const o=fo({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=Rt(o,Jg),u=re({isRtl:"rtl"===po().direction},o),d=(e=>{const{classes:t,orientation:n,disabled:r}=e;return Et({root:["root",n,r&&"disabled"]},qg,t)})(u),p=null!=(n=a.StartScrollButtonIcon)?n:Gg,f=null!=(r=a.EndScrollButtonIcon)?r:Ug,m=ko({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:u}),h=ko({elementType:f,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:u});return Y.jsx(_g,re({component:"div",className:$n(d.root,i),ref:t,role:null,ownerState:u,tabIndex:null},c,{children:"left"===l?Y.jsx(p,re({},m)):Y.jsx(f,re({},h))}))}));"production"!==process.env.NODE_ENV&&($g.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,direction:Ee.oneOf(["left","right"]).isRequired,disabled:Ee.bool,orientation:Ee.oneOf(["horizontal","vertical"]).isRequired,slotProps:Ee.shape({endScrollButtonIcon:Ee.oneOfType([Ee.func,Ee.object]),startScrollButtonIcon:Ee.oneOfType([Ee.func,Ee.object])}),slots:Ee.shape({EndScrollButtonIcon:Ee.elementType,StartScrollButtonIcon:Ee.elementType}),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var ev=$g;function tv(e){return It("MuiTabs",e)}var nv=St("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);const rv=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ov=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,iv=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,av=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},sv=go("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nv.scrollButtons}`]:t.scrollButtons},{[`& .${nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>re({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),lv=go("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>re({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),cv=go("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>re({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),uv=go("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>re({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),dv=go(Zg,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),pv={};let fv=!1;const mv=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiTabs"}),r=po(),o="rtl"===r.direction,{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:c,className:u,component:d="div",allowScrollButtonsMobile:p=!1,indicatorColor:f="primary",onChange:m,orientation:h="horizontal",ScrollButtonComponent:g=ev,scrollButtons:v="auto",selectionFollowsFocus:A,slots:y={},slotProps:b={},TabIndicatorProps:x={},TabScrollButtonProps:w={},textColor:j="primary",value:C,variant:O="standard",visibleScrollbar:M=!1}=n,z=Rt(n,rv),D="scrollable"===O,T="vertical"===h,P=T?"scrollTop":"scrollLeft",N=T?"top":"left",E=T?"bottom":"right",B=T?"clientHeight":"clientWidth",L=T?"height":"width",I=re({},n,{component:d,allowScrollButtonsMobile:p,indicatorColor:f,orientation:h,vertical:T,scrollButtons:v,textColor:j,variant:O,visibleScrollbar:M,fixed:!D,hideScrollbar:D&&!M,scrollableX:D&&!T,scrollableY:D&&T,centered:l&&!D,scrollButtonsHideMobile:!p}),S=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Et({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},tv,l)})(I),W=ko({elementType:y.StartScrollButtonIcon,externalSlotProps:b.startScrollButtonIcon,ownerState:I}),H=ko({elementType:y.EndScrollButtonIcon,externalSlotProps:b.endScrollButtonIcon,ownerState:I});"production"!==process.env.NODE_ENV&&l&&D&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[R,F]=k.useState(!1),[V,Q]=k.useState(pv),[X,Z]=k.useState(!1),[G,U]=k.useState(!1),[q,K]=k.useState(!1),[J,_]=k.useState({overflow:"hidden",scrollbarWidth:0}),$=new Map,ee=k.useRef(null),te=k.useRef(null),ne=()=>{const e=ee.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Ct(e,r.direction),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==C){const e=te.current.children;if(e.length>0){const r=e[$.get(C)];"production"!==process.env.NODE_ENV&&(r||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${C}".`,$.keys?`You can provide one of the following values: ${Array.from($.keys()).join(", ")}.`:null].join("\n"))),n=r?r.getBoundingClientRect():null,"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&!fv&&n&&0===n.width&&0===n.height&&0!==t.clientWidth&&(t=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${C}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join("\n")),fv=!0)}}return{tabsMeta:t,tabMeta:n}},oe=ut((()=>{const{tabsMeta:e,tabMeta:t}=ne();let n,r=0;if(T)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[L]:t?t[L]:0};if(isNaN(V[n])||isNaN(V[L]))Q(i);else{const e=Math.abs(V[n]-i[n]),t=Math.abs(V[L]-i[L]);(e>=1||t>=1)&&Q(i)}})),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=(()=>{})){const{ease:i=Qg,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const u=Math.min(1,(r-s)/a);t[e]=i(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(d)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(P,ee.current,e,{duration:r.transitions.duration.standard}):ee.current[P]=e},ae=e=>{let t=ee.current[P];T?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===jt()?-1:1),ie(t)},se=()=>{const e=ee.current[B];let t=0;const n=Array.from(te.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[B]>e){0===r&&(t=e);break}t+=o[B]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},ue=k.useCallback((e=>{_({overflow:null,scrollbarWidth:e})}),[]),de=ut((e=>{const{tabsMeta:t,tabMeta:n}=ne();if(n&&t)if(n[N]<t[N]){const r=t[P]+(n[N]-t[N]);ie(r,{animation:e})}else if(n[E]>t[E]){const r=t[P]+(n[E]-t[E]);ie(r,{animation:e})}})),pe=ut((()=>{D&&!1!==v&&K(!q)}));k.useEffect((()=>{const e=_e((()=>{ee.current&&oe()})),t=tt(ee.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),Array.from(te.current.children).forEach((e=>{n.observe(e)}))),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[oe]),k.useEffect((()=>{const e=Array.from(te.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&D&&!1!==v){const n=e[0],r=e[t-1],o={root:ee.current,threshold:.99},i=new IntersectionObserver((e=>{Z(!e[0].isIntersecting)}),o);i.observe(n);const a=new IntersectionObserver((e=>{U(!e[0].isIntersecting)}),o);return a.observe(r),()=>{i.disconnect(),a.disconnect()}}}),[D,v,q,null==c?void 0:c.length]),k.useEffect((()=>{F(!0)}),[]),k.useEffect((()=>{oe()})),k.useEffect((()=>{de(pv!==V)}),[de,V]),k.useImperativeHandle(s,(()=>({updateIndicator:oe,updateScrollButtons:pe})),[oe,pe]);const fe=Y.jsx(uv,re({},x,{className:$n(S.indicator,x.className),ownerState:I,style:re({},V,x.style)}));let me=0;const he=k.Children.map(c,(e=>{if(!k.isValidElement(e))return null;"production"!==process.env.NODE_ENV&&Of.isFragment(e)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n"));const t=void 0===e.props.value?me:e.props.value;$.set(t,me);const n=t===C;return me+=1,k.cloneElement(e,re({fullWidth:"fullWidth"===O,indicator:n&&!R&&fe,selected:n,selectionFollowsFocus:A,onChange:m,textColor:j,value:t},1!==me||!1!==C||e.props.tabIndex?{}:{tabIndex:0}))})),ge=(()=>{const e={};e.scrollbarSizeListener=D?Y.jsx(dv,{onChange:ue,className:$n(S.scrollableX,S.hideScrollbar)}):null;const t=D&&("auto"===v&&(X||G)||!0===v);return e.scrollButtonStart=t?Y.jsx(g,re({slots:{StartScrollButtonIcon:y.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:h,direction:o?"right":"left",onClick:le,disabled:!X},w,{className:$n(S.scrollButtons,w.className)})):null,e.scrollButtonEnd=t?Y.jsx(g,re({slots:{EndScrollButtonIcon:y.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:H},orientation:h,direction:o?"left":"right",onClick:ce,disabled:!G},w,{className:$n(S.scrollButtons,w.className)})):null,e})();return Y.jsxs(sv,re({className:$n(S.root,u),ownerState:I,ref:t,as:d},z,{children:[ge.scrollButtonStart,ge.scrollbarSizeListener,Y.jsxs(lv,{className:S.scroller,ownerState:I,style:{overflow:J.overflow,[T?"margin"+(o?"Left":"Right"):"marginBottom"]:M?void 0:-J.scrollbarWidth},ref:ee,children:[Y.jsx(cv,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===h?"vertical":null,className:S.flexContainer,ownerState:I,onKeyDown:e=>{const t=te.current,n=et(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===h?"ArrowLeft":"ArrowUp",i="horizontal"===h?"ArrowRight":"ArrowDown";switch("horizontal"===h&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),av(t,n,iv);break;case i:e.preventDefault(),av(t,n,ov);break;case"Home":e.preventDefault(),av(t,null,ov);break;case"End":e.preventDefault(),av(t,null,iv)}},ref:te,role:"tablist",children:he}),R&&fe]}),ge.scrollButtonEnd]}))}));"production"!==process.env.NODE_ENV&&(mv.propTypes={action:qe,allowScrollButtonsMobile:Ee.bool,"aria-label":Ee.string,"aria-labelledby":Ee.string,centered:Ee.bool,children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,indicatorColor:Ee.oneOfType([Ee.oneOf(["primary","secondary"]),Ee.string]),onChange:Ee.func,orientation:Ee.oneOf(["horizontal","vertical"]),ScrollButtonComponent:Ee.elementType,scrollButtons:Ee.oneOf(["auto",!1,!0]),selectionFollowsFocus:Ee.bool,slotProps:Ee.shape({endScrollButtonIcon:Ee.oneOfType([Ee.func,Ee.object]),startScrollButtonIcon:Ee.oneOfType([Ee.func,Ee.object])}),slots:Ee.shape({EndScrollButtonIcon:Ee.elementType,StartScrollButtonIcon:Ee.elementType}),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),TabIndicatorProps:Ee.object,TabScrollButtonProps:Ee.object,textColor:Ee.oneOf(["inherit","primary","secondary"]),value:Ee.any,variant:Ee.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:Ee.bool});var hv=mv;function gv(e){return It("MuiTab",e)}var vv=St("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);const Av=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],yv=go(Rc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Ke(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>re({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${vv.iconWrapper}`]:re({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${vv.selected}`]:{opacity:1},[`&.${vv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${vv.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${vv.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${vv.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${vv.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),bv=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:c,label:u,onChange:d,onClick:p,onFocus:f,selected:m,selectionFollowsFocus:h,textColor:g="inherit",value:v,wrapped:A=!1}=n,y=Rt(n,Av),b=re({},n,{disabled:o,disableFocusRipple:i,selected:m,icon:!!s,iconPosition:l,label:!!u,fullWidth:a,textColor:g,wrapped:A}),x=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return Et({root:["root",i&&a&&"labelIcon",`textColor${Ke(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},gv,t)})(b),w=s&&u&&k.isValidElement(s)?k.cloneElement(s,{className:$n(x.iconWrapper,s.props.className)}):s;return Y.jsxs(yv,re({focusRipple:!i,className:$n(x.root,r),ref:t,role:"tab","aria-selected":m,disabled:o,onClick:e=>{!m&&d&&d(e,v),p&&p(e)},onFocus:e=>{h&&!m&&d&&d(e,v),f&&f(e)},ownerState:b,tabIndex:m?0:-1},y,{children:["top"===l||"start"===l?Y.jsxs(k.Fragment,{children:[w,u]}):Y.jsxs(k.Fragment,{children:[u,w]}),c]}))}));"production"!==process.env.NODE_ENV&&(bv.propTypes={children:lt,classes:Ee.object,className:Ee.string,disabled:Ee.bool,disableFocusRipple:Ee.bool,disableRipple:Ee.bool,icon:Ee.oneOfType([Ee.element,Ee.string]),iconPosition:Ee.oneOf(["bottom","end","start","top"]),label:Ee.node,onChange:Ee.func,onClick:Ee.func,onFocus:Ee.func,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),value:Ee.any,wrapped:Ee.bool});var xv=bv;function wv(t){var r=this,o=t.Content,i=t.uploadFiles;t.imagesFiles;var a=t.isLoading;G(t,["Content","uploadFiles","imagesFiles","isLoading"]);var s=e.useState([]),l=s[0],c=s[1],u=e.useState(!1),d=u[0],p=u[1],f=e.useState(!1),m=f[0],h=f[1],g=e.useState(!1);g[0];var v=g[1],A=e.useCallback((function(e){p(!1),c((function(t){return K(K([],t,!0),e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})})),!0)}))}),[c,l]);return Y.jsxs(n.Grid,{children:[Y.jsx(n.Snackbar,{open:m,anchorOrigin:{horizontal:"center",vertical:"top"},children:Y.jsx(n.Alert,{onClose:function(){h(!1)},severity:"success",children:"Images are uploaded !"},"alert")}),Y.jsx(tp,{files:l,showPreview:!0,onDrop:A,onRemoveAll:function(){c([]),setTimeout((function(){v(!1)}),4e3)},onRemove:function(e){c((function(t){return t.filter((function(t){return t!==e}))}))},onUpload:function(){return U(r,void 0,void 0,(function(){return q(this,(function(e){switch(e.label){case 0:return[4,i(l)];case 1:return e.sent(),p(!0),h(!0),c([]),setTimeout((function(){h(!1)}),4e3),[2]}}))}))},sx:{p:2},Content:o,isLoading:a,uploaded:d})]})}function jv(e){return It("MuiImageList",e)}St("MuiImageList",["root","masonry","quilted","standard","woven"]);const Cv=k.createContext({});"production"!==process.env.NODE_ENV&&(Cv.displayName="ImageListContext");var Ov=Cv;const Mv=["children","className","cols","component","rowHeight","gap","style","variant"],zv=go("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})((({ownerState:e})=>re({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},"masonry"===e.variant&&{display:"block"}))),Dv=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiImageList"}),{children:r,className:o,cols:i=2,component:a="ul",rowHeight:s="auto",gap:l=4,style:c,variant:u="standard"}=n,d=Rt(n,Mv),p=k.useMemo((()=>({rowHeight:s,gap:l,variant:u})),[s,l,u]);k.useEffect((()=>{"production"!==process.env.NODE_ENV&&void 0!==document&&"objectFit"in document.documentElement.style==!1&&console.error(["MUI: ImageList v5+ no longer natively supports Internet Explorer.","Use v4 of this component instead, or polyfill CSS object-fit."].join("\n"))}),[]);const f=re("masonry"===u?{columnCount:i,columnGap:l}:{gridTemplateColumns:`repeat(${i}, 1fr)`,gap:l},c),m=re({},n,{component:a,gap:l,rowHeight:s,variant:u}),h=(e=>{const{classes:t,variant:n}=e;return Et({root:["root",n]},jv,t)})(m);return Y.jsx(zv,re({as:a,className:$n(h.root,h[u],o),ref:t,style:f,ownerState:m},d,{children:Y.jsx(Ov.Provider,{value:p,children:r})}))}));"production"!==process.env.NODE_ENV&&(Dv.propTypes={children:Ee.node.isRequired,classes:Ee.object,className:Ee.string,cols:Pt,component:Ee.elementType,gap:Ee.number,rowHeight:Ee.oneOfType([Ee.oneOf(["auto"]),Ee.number]),style:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),variant:Ee.oneOfType([Ee.oneOf(["masonry","quilted","standard","woven"]),Ee.string])});var Tv=Dv;function Pv(e){return It("MuiImageListItem",e)}var Nv=St("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]);const Ev=["children","className","cols","component","rows","style"],Bv=go("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nv.img}`]:t.img},t.root,t[n.variant]]}})((({ownerState:e})=>re({display:"block",position:"relative"},"standard"===e.variant&&{display:"flex",flexDirection:"column"},"woven"===e.variant&&{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}},{[`& .${Nv.img}`]:re({objectFit:"cover",width:"100%",height:"100%",display:"block"},"standard"===e.variant&&{height:"auto",flexGrow:1})}))),kv=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiImageListItem"}),{children:r,className:o,cols:i=1,component:a="li",rows:s=1,style:l}=n,c=Rt(n,Ev),{rowHeight:u="auto",gap:d,variant:p}=k.useContext(Ov);let f="auto";"woven"===p?f=void 0:"auto"!==u&&(f=u*s+d*(s-1));const m=re({},n,{cols:i,component:a,gap:d,rowHeight:u,rows:s,variant:p}),h=(e=>{const{classes:t,variant:n}=e;return Et({root:["root",n],img:["img"]},Pv,t)})(m);return Y.jsx(Bv,re({as:a,className:$n(h.root,h[p],o),ref:t,style:re({height:f,gridColumnEnd:"masonry"!==p?`span ${i}`:void 0,gridRowEnd:"masonry"!==p?`span ${s}`:void 0,marginBottom:"masonry"===p?d:void 0},l),ownerState:m},c,{children:k.Children.map(r,(e=>k.isValidElement(e)?("production"!==process.env.NODE_ENV&&Of.isFragment(e)&&console.error(["MUI: The ImageListItem component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),"img"===e.type||$e(e,["Image"])?k.cloneElement(e,{className:$n(h.img,e.props.className)}):e):null))}))}));"production"!==process.env.NODE_ENV&&(kv.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,cols:Pt,component:Ee.elementType,rows:Pt,style:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var Lv=kv,Iv={},Sv=ya;Object.defineProperty(Iv,"__esModule",{value:!0});var Wv=Iv.default=void 0,Hv=Sv(wa()),Rv=Y,Fv=(0,Hv.default)((0,Rv.jsx)("path",{d:"M21 3H3v18h18V3zM10 17l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBoxSharp");Wv=Iv.default=Fv;var Vv=go(n.Box)((function(e){return{height:"100%",display:"flex",textAlign:"center",alignItems:"center",flexDirection:"column",justifyContent:"center",padding:e.theme.spacing(8,2)}}));function Qv(e){var t=e.title,r=e.description,o=e.img,i=e.imageHeight,a=G(e,["title","description","img","imageHeight"]);return Y.jsxs(Vv,Z({},a,{children:[Y.jsx(La,{disabledEffect:!0,visibleByDefault:!0,alt:"empty content",src:o||"/assets/illustrations/illustration_empty_content.svg",sx:{height:null!=i?i:240,mb:3}}),Y.jsx(n.Typography,{variant:"h5",gutterBottom:!0,children:t}),r&&Y.jsx(n.Typography,{variant:"body2",sx:{color:"text.secondary"},children:r})]}))}var Xv=go((function(e){return Y.jsx(Lv,Z({},e))}))((function(e){return{"& .MuiImageListItem-img":{borderRadius:"10px",border:e.selected&&"3px solid #0085FF"}}}));function Yv(t){var r=e.useState(t.selected),o=r[0],i=r[1],a=t.item,s=t.onImageSelected,l=t.fileType?ps(a.url,t.fileType):Ua.IMAGE;return k.useEffect((function(){i(t.selected)}),[o,t.selected]),Y.jsxs(Xv,{selected:o,onClick:function(){return function(e){s(e),i(!o)}(a)},children:[Y.jsx("img",{src:l===Ua.IMAGE?a.url:us(cs(a.url)),alt:a.title,loading:"lazy"}),l!==Ua.IMAGE&&Y.jsx(n.Typography,{style:{color:"#6F6F6F"},fontWeight:200,fontSize:10,alignSelf:"center",children:a.title}),o&&Y.jsx(n.ImageListItemBar,{sx:{background:"transparent"},position:"top",actionIcon:Y.jsx(n.Icon,{children:Y.jsx(Wv,{color:"info",sx:{background:"#fff",color:"#0085FF"}})}),actionPosition:"right"})]})}function Zv(e){var t=e.images,r=e.isLoading,o=e.selected,i=e.multiple,a=e.numberOfColumns,s=e.fileType?e.fileType:Ua.IMAGE;return Y.jsxs(og,{sx:{maxHeight:380},children:[Y.jsxs(Tv,{cols:a||7,gap:8,children:[!r&&t.map((function(t,n){return Y.jsx(Yv,{item:t,index:n,multiple:i,onImageSelected:e.onImageSelected,images:e.images,selected:void 0!==o.find((function(e){return e._id===t._id})),fileType:s},t._id)})),r&&Array.from(Array(10).keys()).map((function(e){return Y.jsx(n.Skeleton,{variant:"rectangular",sx:{borderRadius:"10px",height:"164px"}},e)}))]}),(!t||0===t.length)&&!r&&Y.jsx(Qv,{title:"No images found"})]})}function Gv(t){var r=t.placeholder,o=t.onInputChange,i=G(t,["placeholder","onInputChange"]),a=function(e){o(e.target.value)},s=e.useMemo((function(){return cg.debounce(a,500)}),[]);return e.useEffect((function(){return function(){s.cancel()}}),[]),Y.jsx(n.TextField,Z({},i,{fullWidth:!0,onChange:s,placeholder:r,InputProps:{startAdornment:Y.jsx(n.InputAdornment,{position:"start",children:Y.jsx(jo,{icon:"eva:search-fill",sx:{color:"text.disabled",width:20,height:20}})})}}))}function Uv(e){var t=e.isLoading,r=e.onImageSelected,o=e.images,i=e.numberOfColumns,a=e.onQueryFilter,s=e.isUploading,l=e.selected,c=e.multiple,u=e.fileType;return Y.jsxs(n.Stack,{spacing:1,sx:{mx:1},children:[s&&Y.jsx(n.Alert,{severity:"info",children:"Uploading in progress"}),a&&Y.jsx(Gv,{placeholder:"search",onInputChange:a,size:"small",sx:{pr:1,pl:2,pb:1}}),Y.jsx(Zv,{onImageSelected:r,images:o,isLoading:t,numberOfColumns:i,selected:l,multiple:c,fileType:u})]})}function qv(e){var t=e.children,n=e.value,r=e.index,o=G(e,["children","value","index"]);return Y.jsx("div",Z({role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r)},o,{children:n===r&&Y.jsx(wo,{children:t})}))}var Kv=go((function(e){return Y.jsx(hv,Z({},e))}))({"& .MuiTabs-indicator":{display:"none",justifyContent:"center",backgroundColor:"transparent"}}),Jv=go((function(e){return Y.jsx(xv,Z({disableRipple:!0},e))}))((function(e){var t=e.theme;return{textTransform:"none",fontWeight:t.typography.fontWeightRegular,fontSize:t.typography.pxToRem(15),paddingLeft:"23px",paddingRight:"23px",color:"#000","&.Mui-selected":{background:"#fff",border:"0.5px solid black",borderRadius:"0px"},"&.Mui-focusVisible":{backgroundColor:"rgba(100, 95, 228, 0.32)"},"&.MuiTab-root":{marginRight:"0px"}}}));function _v(e){var t=e.uploadingTapProps,n=e.onImageSelected,r=e.images,o=e.onQueryFilter,i=e.isLoading,a=e.uploadFileString,s=e.mediaLibraryString,l=e.selected,c=e.multiple,u=e.fileType,d=e.handleSelectionPanelState,p=e.numberOfColumns,f=k.useState(0),m=f[0],h=f[1];return Y.jsxs(wo,{sx:{width:"100%"},children:[Y.jsx(wo,{paddingBottom:2,children:Y.jsxs(Kv,{value:m,onChange:function(e,t){d&&d(1===t),h(t)},sx:{background:"#F8F8F8",paddingLeft:3},children:[Y.jsx(Jv,{label:a||"Upload files"}),Y.jsx(Jv,{label:s||"Media library"})]})}),Y.jsx(qv,{value:m,index:0,children:Y.jsx(wv,Z({},t))}),Y.jsx(qv,{value:m,index:1,children:Y.jsx(Uv,{numberOfColumns:p,isUploading:t.isLoading,images:r,onImageSelected:n,onQueryFilter:o,isLoading:i,selected:l,multiple:c,fileType:u})})]})}function $v(t){var r=this,o=t.onDismiss,i=t.onConfirm,a=t.uploadImages,s=t.filterImagesByTitle,l=t.updateImages,c=t.loadImagesList,u=t.Content,d=t.setFiles,p=t.fileType,f=t.basePath,m=t.setParams,h=t.icon,g=t.mediaLibraryString,v=t.uploadFileString,A=t.message,y=t.imagesSelected,b=t.multiple,x=G(t,["onDismiss","onConfirm","uploadImages","filterImagesByTitle","updateImages","loadImagesList","Content","setFiles","fileType","basePath","setParams","icon","mediaLibraryString","uploadFileString","message","imagesSelected","multiple"]),w=e.useState(!1),j=w[0],C=w[1],O=e.useState([]),M=O[0],z=O[1],D=e.useState(!1),T=D[0],P=D[1],N=e.useState([]),E=N[0],B=N[1],k=e.useState(!0),L=k[0],I=k[1],S=function(e){B(b?function(t){return t.find((function(t){return t._id===e._id}))?t.filter((function(t){return t._id!==e._id})):K([e],t,!0)}:[e])};e.useEffect((function(){y&&0!==y.length&&B(y)}),[y]),e.useEffect((function(){h&&B([h])}),[h]);var W=e.useState([]),H=W[0],R=W[1],F={Content:u,uploadFiles:function(e){return U(r,void 0,void 0,(function(){var t;return q(this,(function(n){switch(n.label){case 0:return z(e),C(!0),[4,a(e,p)];case 1:return t=n.sent(),m&&m((function(e){return Z({},e)})),t.forEach((function(e){S(e)})),C(!1),R(t),[2]}}))}))},isLoading:j,imagesFiles:M};return e.useEffect((function(){F.isLoading&&!L||(P(!0),c((function(e){P(!1),R(e)}),p,f))}),[F.isLoading,L]),Y.jsxs(n.Dialog,Z({},x,{onClose:o,children:[Y.jsx(n.DialogTitle,{id:"id",style:{paddingBottom:6},children:Y.jsxs(n.Stack,{direction:"row",justifyContent:"space-between",children:[Y.jsx(n.Typography,{flexGrow:1,style:{color:"black"},fontWeight:700,fontSize:25,children:A||"Insert Media"}),Y.jsx(n.IconButton,{size:"large",onClick:o,sx:{p:.01,color:"common.black",bgcolor:"white"},children:Y.jsx(jo,{icon:"eva:close-fill"})})]})}),Y.jsxs(n.Grid,{container:!0,children:[Y.jsx(n.Grid,{item:!0,xs:E.length>0?9:12,children:Y.jsx(_v,{onImageSelected:S,uploadingTapProps:F,images:H,numberOfColumns:E.length>0?5:7,mediaLibraryString:g,uploadFileString:v,multiple:b,onQueryFilter:function(e){return function(e,t){P(!0),s(e,(function(e){P(!1),R(e)}),t)}(e,p)},isLoading:T,selected:E,handleSelectionPanelState:function(e){return I(e)},fileType:p})}),E.length>0&&Y.jsx(n.Grid,{item:!0,xs:3,sx:{background:"#F8F8F8",p:3,borderLeft:"0.5px solid black",borderLeftColor:"#ABABAB"},children:Y.jsx(Vg,{setSelected:B,selected:E,update:function(e){P(!0),l(e.images,(function(e){P(!1),R(e)})),m&&m((function(e){return Z({},e)}))},fileType:p,setFiles:d})})]}),Y.jsx(n.DialogActions,{children:0!==E.length&&Y.jsx(n.Button,{size:"small",variant:"contained",autoFocus:!0,onClick:function(){return i(E)},children:b?"Select Images":"Select Image"})})]}))}var eA=function(){function e(){}return e.optimizeImage=function(e,t){return new Promise((function(n,r){var o,i,a=null!==(o=t.maxWidth)&&void 0!==o?o:1e3,s=null!==(i=t.maxHeight)&&void 0!==i?i:1e3,l=document.createElement("canvas"),c=l.getContext("2d");if(!c)return e;var u=document.createElement("img");u.src=URL.createObjectURL(e);var d=e.name.split(".").slice(0,-1).join(".");u.onload=function(){var e=u.width,t=u.height;if(e>a||t>s){var r=e/t;e>t&&e>a?t=(e=a)/r:t>s&&(e=(t=s)*r)}l.width=e,l.height=t,c.imageSmoothingEnabled=!0,c.imageSmoothingQuality="high",c.drawImage(u,0,0,e,t),l.toBlob((function(e){var t=new File([e],"".concat(d,".webp"),{type:"image/webp"});n(t)}),"image/webp",1)},u.onerror=function(e){r(e)}}))},e}(),tA=function(e,t,n,r){return U(void 0,void 0,void 0,(function(){return q(this,(function(o){switch(o.label){case 0:return t&&n===qa.NORMAL?[3,1]:[3,3];case 1:return[4,eA.optimizeImage(e,{maxWidth:1e3,maxHeight:1e3})];case 2:return e=o.sent(),[3,3];case 3:return[2,new Promise((function(t){new C(e,{quality:.6,success:function(e){try{j.Storage.put(e.name,e,{contentType:e.type}).then((function(e){r(e.key)}))}catch(e){console.log("Error uploading file: ",e)}t(!0)},error:function(e){console.log(e.message)}})}))]}}))}))},nA=function(e,t){return U(void 0,void 0,void 0,(function(){return q(this,(function(n){return[2,Promise.all(e.map((function(e){return ps(e.name,t)===Ua.IMAGE?new Promise((function(t){new C(e,{quality:.6,convertSize:1/0,success:function(e){try{j.Storage.put(e.name,e,{contentType:e.type}).then((function(e){t(e.key)}))}catch(e){console.log("Error uploading file: ",e)}},error:function(e){console.log(e.message)}})})):new Promise((function(t){var n=[];try{j.Storage.put(e.name,e,{contentType:e.type}).then((function(e){n.push(e.key),t(e.key)}))}catch(e){console.log("Error uploading file: ",e)}}))})))]}))}))},rA=function(e,t){return Z({},t)},oA=function(e){return{display:"flex",padding:8,overflow:"auto"}};function iA(e){var t=e.items,r=e.disabled,o=t.length>0;return Y.jsx(n.List,{style:{display:"flex",flexWrap:"wrap",flexGrow:0,flexShrink:0,flexBasis:"25%"},disablePadding:!0,sx:Z({},o&&{my:3,display:"flex",flexDirection:"row",flexWrap:"wrap"}),children:Y.jsx(p.AnimatePresence,{children:Y.jsx(O.DragDropContext,{onDragEnd:function(n){if(n.destination){var r=t.splice(n.source.index,1)[0];t.splice(n.destination.index,0,r),e.setImages(t)}},children:Y.jsx(O.Droppable,{droppableId:"characters",direction:"horizontal",children:function(t,o){return Y.jsxs("div",Z({style:oA(o.isDraggingOver)},t.droppableProps,{ref:t.innerRef,children:[e.items.map((function(t,o){return Y.jsx(n.ListItem,Z({component:p.m.div},Wa().inRight,{sx:{p:0,m:.75,width:100,height:100,position:"relative",display:"inline-flex"},children:Y.jsx(O.Draggable,{draggableId:t._id,index:o,children:function(o,i){return Y.jsxs("div",Z({ref:o.innerRef},o.draggableProps,o.dragHandleProps,{style:rA(i.isDragging,o.draggableProps.style),children:[Y.jsx("img",{src:t.url,alt:"no"}),e.onRemove&&Y.jsx(n.IconButton,{size:"small",disabled:r,onClick:function(){return e.onRemove({id:t._id,name:t.title})},sx:{top:-8,p:.01,right:-8,position:"absolute",color:"common.white",bgcolor:"red","&:hover":{bgcolor:function(e){return n.alpha(e.palette.grey[900],.48)}}},children:Y.jsx(jo,{icon:"eva:close-fill"})})]}))}},t._id)}),t._id)})),t.placeholder]}))}})})})})}function aA(e){return{key:e.id,name:e.name}}function sA(e){var t=e.file,r=e.tooltip,o=e.imageView,i=e.onDownload,a=e.sx,s=e.imgSx,l=aA(t).name,c=cs(l),u="image"===c&&o?Y.jsx(n.Box,{component:"img",src:l,sx:Z({width:1,height:1,flexShrink:0,objectFit:"cover"},s)}):Y.jsx(n.Box,{component:"img",src:us(c),sx:Z({width:32,height:32,flexShrink:0},a)});return r?Y.jsx(n.Tooltip,{title:l,children:Y.jsxs(n.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[u,i&&Y.jsx(Gd,{onDownload:i})]})}):Y.jsxs(Y.Fragment,{children:[u,i&&Y.jsx(Gd,{onDownload:i})]})}function lA(e){e.thumbnail;var t=e.files,r=e.disabled,o=e.onRemove,i=e.sx;return(null==t?void 0:t.length)?Y.jsx(p.AnimatePresence,{initial:!1,children:t.map((function(e){var t=aA(e),a=t.key,s=t.name;return Y.jsxs(n.Stack,Z({component:p.m.div},Wa().inUp,{spacing:2,direction:"row",alignItems:"center",sx:Z({my:1,px:1,py:.75,borderRadius:.75,border:function(e){return"solid 1px ".concat(e.palette.divider)}},i),children:[Y.jsx(sA,{file:e}),Y.jsx(n.Stack,{flexGrow:1,sx:{minWidth:0},children:Y.jsx(n.Typography,{variant:"subtitle2",noWrap:!0,children:s})}),o&&Y.jsx(n.IconButton,{disabled:r,edge:"end",size:"small",onClick:function(){return o(e)},children:Y.jsx(jo,{icon:"eva:close-fill"})})]}),a)}))}):null}function cA(e){e.showPreview;var t=e.files,r=e.type,o=e.disabled,i=e.onRemove,a=e.setImages,s=t.length>0;if(r===Ua.IMAGE)return Y.jsx(n.List,{style:{width:607,overflowX:"auto",display:"flex",flexWrap:"wrap",flexGrow:0,flexShrink:0,flexBasis:"25%"},disablePadding:!0,sx:Z({},s&&{my:3}),children:Y.jsx(iA,{items:t,onRemove:i,setImages:a,disabled:o})});var l=[];return t.forEach((function(e){l.push({name:e.title+"."+e.url.split(".").pop(),id:e._id})})),Y.jsx(lA,{onRemove:i,files:l,disabled:o})}function uA(e){var t="";return e!==Ua.ALL&&(t="&filters=type=".concat(e,";;enum")),t}function dA(t){var r=this,o=t.image,i=t.keyValue,a=t.isEnglish,s=t.imageDialogState,l=t.imageOptimizingCategory,c=t.label,u=t.multiple,d=t.fileType,p=t.dismissDialogState,f=t.setImages,m=t.handleEditImage,h=t.handleRemoveImage,g=t.setImageDialogState,v=t.setImage,A=t.setValue,y=e.useContext(fg).dashbaordUrlPrefix,b=e.useContext(Mg).bucketUrl;return Y.jsxs(Y.Fragment,{children:[Y.jsxs(n.Card,{sx:{p:3,mb:0},style:{width:"100%",minHeight:248,top:444,paddingTop:24,paddingLeft:24,paddingRight:36,paddingBottom:24,left:330,position:"inherit",backgroundColor:"white"},children:[Y.jsx(n.Stack,{spacing:3.5,marginRight:4,children:Y.jsxs("div",{style:{display:"flex",alignItems:"baseline"},children:[Y.jsx(n.Typography,{fontWeight:500,height:25,fontSize:18,letterSpacing:.15,width:"100%",position:"inherit",display:"inline",alignItems:"center",children:c}),o&&o[i]&&Y.jsx(n.Typography,{marginLeft:17,fontWeight:400,height:21,fontSize:16,letterSpacing:.15,width:91,boxSizing:"border-box",flex:1,alignSelf:"end",children:Y.jsx(n.Link,{onClick:function(){return m(i)},underline:"always",color:"#0085FF",style:{cursor:"pointer"},children:a?"Edit":"تعديل"})})]})}),o&&o[i]&&!s[i]?!u&&Y.jsxs(n.Grid,{position:"relative",children:[Y.jsx(n.IconButton,{size:"small",onClick:function(){return h(i)},sx:{p:.01,right:0,position:"absolute",color:"common.white",bgcolor:function(e){return n.alpha(e.palette.grey[900],.72)},"&:hover":{bgcolor:function(e){return n.alpha(e.palette.grey[900],.48)}}},children:Y.jsx(jo,{icon:"eva:close-fill"})}),Y.jsxs(n.Stack,{width:"100%",alignItems:"center",children:[Y.jsx("img",{src:d===Ua.IMAGE?o[i].url:us(cs(o[i].url)),style:{width:200,marginTop:20},alt:"Collection"}),d!==Ua.IMAGE&&Y.jsx(n.Typography,{style:{color:"#6F6F6F"},fontWeight:200,fontSize:13,textAlign:"center",children:o[i].title})]})]}):Y.jsxs(n.Box,{width:"100%",height:150,textAlign:"center",marginTop:1.5,sx:{borderRadius:"10px",border:"1px dashed #BCBCBC"},children:[Y.jsx(n.Button,{style:{marginTop:43,color:"#0085FF",backgroundColor:"#E2F1FF",fontSize:12,fontWeight:400},onClick:function(){return function(e,t,n){var r=Z({},t);r[e]=!0,n(r)}(i,s,g)},children:a?"Upload image":"تحميل"}),Y.jsx(n.Typography,{style:{marginTop:18,color:"#6F6F6F"},fontWeight:400,fontSize:13,children:a?"or drop an image to upload":"يمكنك تحميل صورة من هنا"})]}),o&&o[i]&&0!==o[i].length&&u&&Y.jsx(cA,{files:o[i],onRemove:function(e){return function(e,t,n,r){var o=Z({},e);o[n]=e[n].filter((function(e){return e._id!==t.id})),r(o)}(o,e,i,v)},type:Ua.ALL})]}),Y.jsx($v,{open:!!s[i]&&s[i],maxWidth:"md",fileType:d,basePath:null!=y?y:"",multiple:null!=u&&u,mediaLibraryString:a?"Media library":"قائمة الصور",uploadFileString:a?"Upload files":"تحميل صور جديدة",fullWidth:!0,message:a?"Upload image":"تحميل صورة",onDismiss:function(){return p(i,s,g)},updateImages:function(e,t){ug.patch("".concat(y,"/images/all"),{images:e}).then((function(e){t(e.data.data.records)}))},filterImagesByTitle:function(e,t,n){var r=uA(n);ug.get("".concat(y,"/images?filter=").concat(e,"&order=desc&orderBy=updatedAt").concat(r)).then((function(e){t(e.data.data.records)})).catch((function(){}))},loadImagesList:function(e,t){var n=uA(t);ug.get("".concat(y,"/images?order=desc&orderBy=updatedAt").concat(n)).then((function(t){e(t.data.data.records)})).catch((function(){}))},imagesSelected:o&&o[i]?u?o[i]:[o[i]]:[],uploadImages:function(e,t){return U(r,void 0,void 0,(function(){var n;return q(this,(function(r){switch(r.label){case 0:return t!==Ua.IMAGE?[3,3]:l===qa.NORMAL?[3,1]:[3,3];case 1:return[4,Promise.all(e.map((function(e){return eA.optimizeImage(e,{maxWidth:1e3,maxHeight:1e3})})))];case 2:return e=r.sent(),[3,3];case 3:return[4,nA(e,t)];case 4:return r.sent(),n=e.map((function(e){return e.name})),[4,ug.post("".concat(y,"/images/all"),{images:n.map((function(e){return{url:b+e,title:e.split(".")[0],type:ps(e,t)}}))})];case 5:return[2,r.sent().data.data.records]}}))}))},onConfirm:function(e){f(i,o,v,u?e:e[0]),A(i,u?e:e[0]),p(i,s,g)}},i)]})}var pA,fA=function(){function e(){}return e.getReferenceImage=function(e,t){var n=void 0,r=require("lodash");if(e.properties.disableImageOnReference)return n;var o=e.properties.model;if(e.properties.imageOnReferencePath)n=r.get(t,e.properties.imageOnReferencePath);else{if(n=this.getDataFromPath(o,"image",t))return n;if(n=this.getDataFromPath(o,"logo",t))return n;if(n=this.getDataFromPath(o,"photo",t))return n}return n},e.getDataFromPath=function(e,t,n){var r=require("lodash");return n[t]&&"string"==typeof n[t]?n[t]:e[t]&&e[t].valuePath?r.get(n,e[t].valuePath):void 0},e}(),mA=function(){function e(){}return e.getCartesianProduct=function(e){return e.reduce((function(e,t){return e.map((function(e){return t.map((function(t){return e.concat([t])}))})).reduce((function(e,t){return e.concat(t)}),[])}),[[]])},e.getReferenceValues=function(e){var t=e.referencedValues,n=e.value,r=e.loading,o=e.extraKey,i=e.fullKey,a=e.key,s=e.apiRoute,l=e.resources,c=e.pathRoute,u=e.schema,d=e.setLoading,p=e.setReferencedValues,f=e.adminPath;return U(this,void 0,void 0,(function(){var e,m,h,g,v,A,y,b,x,w,j,C,O,M;return q(this,(function(z){switch(z.label){case 0:return t[a]||!n?[2]:((e=Z({},r))[i]=!0,d(e),[4,ug.get(s||(u[a].apiRoute?u[a].apiRoute:"".concat(null!=f?f:"","/").concat(l[u[a].path].properties.modelName)))]);case 1:for(m=z.sent(),h=m.data.data.records,g=[],v=0;v<h.length;v++)A=h[v],y=l[c||u[a].path],b=y.properties.title,x=y.properties.model[b].type,w=A[b],j=fA.getReferenceImage(y,A),x===Uh.LOCALIZEDString&&(w=Hg.getLocalizedString(w)),C={title:w,_id:A._id,image:j},o&&(C[o]=A[o]),g.push(C);return(O=Z({},t))[a]=g,p(O),(M=Z({},r))[i]=!1,d(M),[2]}}))}))},e.onErrorAction=function(e){var t=e.data,n=e.error,r=e.reset,o=e.setErrorState;(0,e.setSubmitStatus)(!1),r(t),setTimeout((function(){o({state:!1})}),4e3),o({state:!0,message:JSON.parse(n).meta.message,severity:"error"})},e.convertCamelCaseToWord=function(e){var t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},e.checkLocalizedString=function(e,t,n){return e[t].properties.model[n].type===Uh.LOCALIZEDString},e.stringifyTime=function(e){if(e){var t=e.hour(),n=e.minute(),r=t>=12?"PM":"AM";return(t=(t=(t%=12)||12)<10?"0"+t:t)+":"+(n=n<10?"0"+n:n)+" "+r}},e.convertToOriginal=function(e){var t=e.split(":"),n=t[0],r=t[1].split(" "),o=r[0],i="PM"===r[1]?parseInt(n)+12:parseInt(n);return M("2022-04-07").set("minutes",parseInt(o)).set("hours",i)},e.getRecordName=function(e,t,n){return n&&"string"!=typeof e&&n.properties.model[t].type===Uh.LOCALIZEDString?Hg.getLocalizedString(e):e},e}();function hA(e){var t=e.handleChange,r=e.includeFrench,o=e.includeGerman;return Y.jsxs(l.TabList,{onChange:t,"aria-label":"lab API tabs example",children:[Y.jsx(n.Tab,{label:Y.jsx(gA,{flag:pA.ENGLISH_FLAG,text:"EN"}),value:"1"}),Y.jsx(n.Tab,{label:Y.jsx(gA,{flag:pA.ARABIC_FLAG,text:"AR"}),value:"2"}),r&&Y.jsx(n.Tab,{label:Y.jsx(gA,{flag:pA.FRENCH_FLAG,text:"FR"}),value:"3"}),o&&Y.jsx(n.Tab,{label:Y.jsx(gA,{flag:pA.GERMAN_FLAG,text:"DE"}),value:"4"})]})}function gA(e){var t=e.flag,r=e.text;return Y.jsxs(n.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[Y.jsx(La,{disabledEffect:!0,visibleByDefault:!0,alt:"empty content",src:t,sx:{width:23,height:15,borderRadius:"2px"}}),Y.jsx(n.Typography,{fontWeight:1e3,fontSize:12,children:r})]})}function vA(e){var t=e.title,r=e.includeFrench,o=e.includeGerman,i=e.size,a=e.value,s=e.isEdit,c=e.fieldName,u=e.numberOfRows,d=e.setValue,p=e.getValues,f=e.handleChange,m=c+".ar",h=c+".en",g=c+".fr",v=c+".de";s&&(h=c+".0.value",m=c+".1.value",g=c+".2.value",v=c+".3.value",d(c+".0.key","en"),d(c+".1.key","ar"),r&&d(c+".2.key","fr"),o&&d(c+".3.key","de"));var A=(u||1)>1;function y(e,t,r,o,a){return Y.jsxs(l.TabPanel,{value:e,style:{paddingTop:15},children:[Y.jsx(dp,{size:i,multiline:A,rows:u,dir:a,name:t,style:{minHeight:40,boxSizing:"border-box",paddingBottom:12}}),Y.jsx(n.Stack,{children:r.map((function(e){return Y.jsx(n.Typography,{paddingRight:2,paddingLeft:2,noWrap:!0,fontWeight:600,fontSize:13,color:"#919EAB",align:o,children:p(e)},e)}))})]})}return Y.jsxs(n.Card,{sx:{pl:2,pr:2,pt:2,pb:2,mb:2},children:[Y.jsx(n.Typography,{fontWeight:600,height:25,fontSize:14,position:"inherit",display:"inline",color:"#919EAB",children:t}),Y.jsx(n.Box,{borderColor:"black",sx:{width:"100%",typography:"body1"},children:Y.jsxs(l.TabContext,{value:a,children:[Y.jsx(n.Box,{sx:{borderBottom:1,borderColor:"divider"},children:Y.jsx(hA,{handleChange:f,includeFrench:r,includeGerman:o})}),y("1",h,K(K([m],r?[g]:[],!0),o?[v]:[],!0),"right","ltr"),y("2",m,K(K([h],r?[g]:[],!0),o?[v]:[],!0),"left","rtl"),r&&y("3",g,K([h,m],o?[v]:[],!0),"right","ltr"),o&&y("4",v,K([h,m],r?[g]:[],!0),"right","ltr")]})})]})}!function(e){e.ENGLISH_FLAG="https://pngimg.com/uploads/flags/flags_PNG14592.png",e.ARABIC_FLAG="/assets/icons/flags/ic_flag_sa.svg",e.FRENCH_FLAG="/assets/icons/flags/ic_flag_fr.svg",e.GERMAN_FLAG="/assets/icons/flags/ic_flag_de.svg"}(pA||(pA={}));var AA={exports:{}};AA.exports=function(){var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var s=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}();var yA=W(AA.exports),bA={exports:{}};bA.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function p(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],p=u&&u[0],f=u&&u[1];a[l]=f?{regex:p,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,l=o.parser,c=e.slice(r),u=i.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),i=this.$locale(),!l&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=p(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,f=new Date,m=a||(o||i?1:f.getDate()),h=o||f.getFullYear(),g=0;o&&!i||(g=i>0?i-1:f.getMonth());var v=s||0,A=l||0,y=c||0,b=u||0;return d?new Date(Date.UTC(h,g,m,v,A,y,b+60*d.offset*1e3)):n?new Date(Date.UTC(h,g,m,v,A,y,b)):new Date(h,g,m,v,A,y,b)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(""))}else o.call(this,e)}}}();var xA=W(bA.exports),wA={exports:{}};wA.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var o=n.prototype,i=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,o){var i=o&&o.toUpperCase();return r||n[o]||e[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return i.call(this,r)}}}();var jA=W(wA.exports),CA={exports:{}};CA.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],l=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}};var OA=W(CA.exports);const MA=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}};M.extend(xA),M.extend(jA),M.extend(OA);const zA=MA(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),DA={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},TA={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},PA=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n"),NA=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");class EA{constructor({locale:e,formats:t,instance:n}={}){var r;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=DA,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>void 0!==M.utc,this.hasTimezonePlugin=()=>void 0!==M.tz,this.isSame=(e,t,n)=>{const r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return M.tz.guess();default:return e}},this.createSystemDate=e=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(e);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=M.tz.guess();return"UTC"!==t?M.tz(e,t):M(e)}return M(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(PA);return M.utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(PA);if(!this.hasTimezonePlugin())throw new Error(NA);const n=void 0!==e&&!e.endsWith("Z");return M(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=M.Ls;let t=e[this.locale||"en"];return void 0===t&&(zA(),t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){var n,r;const o=e.tz(this.cleanTimezone(t),!0);return(null!=(n=o.$offset)?n:0)===(null!=(r=e.$offset)?r:0)?e:o}return e},this.date=e=>null===e?null:this.dayjs(e),this.dateWithTimezone=(e,t)=>{if(null===e)return null;let n;return n="UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),void 0===this.locale?n:n.locale(this.locale)},this.getTimezone=e=>{if(this.hasUTCPlugin()&&e.isUTC())return"UTC";if(this.hasTimezonePlugin()){var t;const n=null==(t=e.$x)?void 0:t.$timezone;return null!=n?n:"system"}return"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(PA);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(NA)}return M.tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,n,r)=>{const o=r&&r.toUpperCase();return n||t[r]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.dayjs(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).toDate().getTime()===this.dayjs(t).toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>e<t,this.isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e>=t&&e<=n,this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(e.startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(e.endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>this.addMonths(e,1),this.getPreviousMonth=e=>this.addMonths(e,-1),this.getMonthArray=e=>{const t=[e.startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.addMonths(e,1))}return t},this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{const e=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map((t=>this.formatByString(this.addDays(e,t),"dd")))},this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.startOf("month").startOf("week"),r=t.endOf("month").endOf("week");let o=0,i=n;const a=[];for(;i<r;){const e=Math.floor(o/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),o+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const n=e.startOf("year"),r=t.endOf("year"),o=[];let i=n;for(;i<r;)o.push(i),i=this.addYears(i,1);return o},this.getMeridiemText=e=>"am"===e?"AM":"PM",this.rawDayJsInstance=n,this.dayjs=((e,t)=>t?(...n)=>e(...n).locale(t):e)(null!=(r=this.rawDayJsInstance)?r:M,e),this.locale=e,this.formats=re({},TA,t),M.extend(yA)}}const BA=["localeText"],kA=k.createContext(null);"production"!==process.env.NODE_ENV&&(kA.displayName="MuiPickersAdapterContext");const LA=function(e){var t;const{localeText:n}=e,r=Rt(e,BA),{utils:o,localeText:i}=null!=(t=k.useContext(kA))?t:{utils:void 0,localeText:void 0},a=fo({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:p}=a,f=k.useMemo((()=>re({},p,i,n)),[p,i,n]),m=k.useMemo((()=>{if(!l)return o||null;const e=new l({locale:d,formats:c,instance:u});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[l,d,c,u,o]),h=k.useMemo((()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null),[m]),g=k.useMemo((()=>({utils:m,defaultDates:h,localeText:f})),[h,m,f]);return Y.jsx(kA.Provider,{value:g,children:s})};"production"!==process.env.NODE_ENV&&(LA.propTypes={adapterLocale:Ee.any,children:Ee.node,dateAdapter:Ee.func,dateFormats:Ee.shape({dayOfMonth:Ee.string,fullDate:Ee.string,fullDateTime:Ee.string,fullDateTime12h:Ee.string,fullDateTime24h:Ee.string,fullDateWithWeekday:Ee.string,fullTime:Ee.string,fullTime12h:Ee.string,fullTime24h:Ee.string,hours12h:Ee.string,hours24h:Ee.string,keyboardDate:Ee.string,keyboardDateTime:Ee.string,keyboardDateTime12h:Ee.string,keyboardDateTime24h:Ee.string,meridiem:Ee.string,minutes:Ee.string,month:Ee.string,monthAndDate:Ee.string,monthAndYear:Ee.string,monthShort:Ee.string,normalDate:Ee.string,normalDateWithWeekday:Ee.string,seconds:Ee.string,shortDate:Ee.string,weekday:Ee.string,weekdayShort:Ee.string,year:Ee.string}),dateLibInstance:Ee.any,localeText:Ee.object});const IA=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),SA=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},WA=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},HA=(e,t,n)=>"date"===n?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),RA=(e,t)=>{const n=e.setHours(e.date(),"am"===t?2:14);return e.format(n,"meridiem")},FA=["hours","minutes","seconds"],VA=e=>FA.includes(e),QA=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,XA=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},YA=(e,t,n,r)=>{const o=XA(r.getHours(e),t,n);return r.setHours(e,o)},ZA=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),GA=(e,t)=>(n,r)=>e?t.isAfter(n,r):ZA(n,t)>ZA(r,t),UA=(e,{format:t,views:n,ampm:r})=>{if(null!=t)return t;const o=e.formats;return IA(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:IA(n,["minutes"])?o.minutes:IA(n,["seconds"])?o.seconds:IA(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:IA(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`},qA={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},KA=(e,t,n)=>{if(t===qA.year)return e.startOfYear(n);if(t===qA.month)return e.startOfMonth(n);if(t===qA.day)return e.startOfDay(n);let r=n;return t<qA.minutes&&(r=e.setMinutes(r,0)),t<qA.seconds&&(r=e.setSeconds(r,0)),t<qA.milliseconds&&(r=e.setMilliseconds(r,0)),r},JA=(e,t)=>{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"==typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},_A=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),i=e.startOfWeek(o),a=e.endOfWeek(o);let s=i;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map((t=>e.formatByString(t,n)))},$A=(e,t,n,r)=>{switch(n){case"month":return SA(e,e.dateWithTimezone(void 0,t)).map((t=>e.formatByString(t,r)));case"weekDay":return _A(e,t,r);case"meridiem":{const n=e.dateWithTimezone(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,r)))}default:return[]}},ey=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},ty=(e,t,n,r,o)=>{if("production"!==process.env.NODE_ENV&&"day"!==o.type&&"digit-with-letter"===o.contentType)throw new Error([`MUI: The token "${o.format}" is a digit format with letter in it.'\n This type of format is only supported for 'day' sections`].join("\n"));if("day"===o.type&&"digit-with-letter"===o.contentType){const t=e.setDate(r.longestMonth,n);return e.formatByString(t,o.format)}const i=n.toString();return o.hasLeadingZerosInInput?ey(0,i,o.maxLength):i},ny=(e,t,n,r,o,i,a)=>{const s=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(r),l="Home"===r,c="End"===r,u=""===n.value||l||c;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const r=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),d=t=>ty(e,0,t,r,n),p="minutes"===n.type&&null!=a&&a.minutesStep?a.minutesStep:1;let f=parseInt(n.value,10)+s*p;if(u){if("year"===n.type&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);f=s>0||l?r.minimum:r.maximum}return f%p!=0&&((s<0||l)&&(f+=p-(p+f)%p),(s>0||c)&&(f-=f%p)),f>r.maximum?d(r.minimum+(f-r.maximum-1)%(r.maximum-r.minimum+1)):f<r.minimum?d(r.maximum-(r.minimum-f-1)%(r.maximum-r.minimum+1)):d(f)})():(()=>{const r=$A(e,t,n.type,n.format);if(0===r.length)return n.value;if(u)return s>0||l?r[0]:r[r.length-1];const o=r.indexOf(n.value);return r[(o+r.length+s)%r.length]})()},ry=(e,t)=>{let n=e.value||e.placeholder;const r="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!r&&1===n.length&&(n=`${n}`),"input-rtl"===t&&(n=`${n}`),n},oy=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),iy=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let i=0;i<e.length;i+=1){const a=e[i],s=ry(a,t?"input-rtl":"input-ltr"),l=`${a.startSeparator}${s}${a.endSeparator}`,c=oy(l).length,u=l.length,d=oy(s),p=r+s.indexOf(d[0])+a.startSeparator.length,f=p+d.length;o.push(re({},a,{start:n,end:n+c,startInInput:p,endInInput:f})),n+=c,r+=u}return o},ay=(e,t,n,r,o)=>{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},sy=(e,t,n,r)=>{if("production"!==process.env.NODE_ENV&&"weekDay"===JA(e,n).type)throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),r)},ly=(e,t,n)=>4===e.formatByString(e.dateWithTimezone(void 0,t),n).length,cy=(e,t,n,r,o)=>{if("digit"!==n)return!1;const i=e.dateWithTimezone(void 0,t);switch(r){case"year":if(ly(e,t,o)){return"0001"===e.formatByString(e.setYear(i,1),o)}return"01"===e.formatByString(e.setYear(i,2001),o);case"month":return e.formatByString(e.startOfYear(i),o).length>1;case"day":return e.formatByString(e.startOfMonth(i),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),o).length>1;case"hours":return e.formatByString(e.setHours(i,1),o).length>1;case"minutes":case"seconds":return e.formatByString(e.setMinutes(i,1),o).length>1;default:throw new Error("Invalid section type")}},uy=(e,t,n,r,o,i,a,s)=>{let l="";const c=[],u=e.date(),d=r=>{if(""===r)return null;const i=JA(e,r),s=cy(e,t,i.contentType,i.type,r),d=a?s:"digit"===i.contentType,p=null!=o&&e.isValid(o);let f=p?e.formatByString(o,r):"",m=null;if(d)if(s)m=""===f?e.formatByString(u,r).length:f.length;else{if(null==i.maxLength)throw new Error(`MUI: The token ${r} should have a 'maxDigitNumber' property on it's adapter`);m=i.maxLength,p&&(f=ey(0,f,m))}return c.push(re({},i,{format:r,maxLength:m,value:f,placeholder:ay(e,t,n,i,r),hasLeadingZeros:s,hasLeadingZerosInFormat:s,hasLeadingZerosInInput:d,startSeparator:0===c.length?l:"",endSeparator:"",modified:!1})),null};let p=10,f=r,m=e.expandFormat(r);for(;m!==f;)if(f=m,m=e.expandFormat(f),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const h=m,g=((e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n})(e,h),v=new RegExp(`^(${Object.keys(e.formatTokenMap).join("|")})`);let A="";for(let e=0;e<h.length;e+=1){const t=g.find((t=>t.start<=e&&t.end>=e)),n=h[e],r=null!=t,o=`${A}${h.slice(e)}`;if(!r&&n.match(/([A-Za-z]+)/)&&v.test(o))A+=n;else{r&&(null==t?void 0:t.start)===e||(null==t?void 0:t.end)===e||(d(A),A="",0===c.length?l+=n:c[c.length-1].endSeparator+=n)}}return d(A),c.map((e=>{const t=e=>{let t=e;return s&&null!==t&&t.includes(" ")&&(t=`${t}`),"spacious"===i&&["/",".","-"].includes(t)&&(t=` ${t} `),t};return e.startSeparator=t(e.startSeparator),e.endSeparator=t(e.endSeparator),e}))},dy=(e,t)=>{const n=t.some((e=>"day"===e.type)),r=[],o=[];for(let e=0;e<t.length;e+=1){const i=t[e];n&&"weekDay"===i.type||(r.push(i.format),o.push(ry(i,"non-input")))}const i=r.join(" "),a=o.join(" ");return e.parse(a,i)};let py=!1;const fy=(e,t)=>{if("production"!==process.env.NODE_ENV&&!py){const n=[];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const r=e.find((e=>!n.includes(e.type)));r&&(console.warn(`MUI: The field component you are using is not compatible with the "${r.type} date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),py=!0)}},my={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},hy=(e,t,n,r,o,i)=>[...r].sort(((e,t)=>my[e.type]-my[t.type])).reduce(((r,o)=>!i||o.modified?((e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const o=_A(e,t,n.format),i=e.formatByString(r,n.format),a=o.indexOf(i),s=o.indexOf(n.value)-a;return e.addDays(r,s)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const t=e.getHours(r)<12,n=e.getHours(o);return t&&n>=12?e.addHours(o,-12):!t&&n<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}})(e,t,o,n,r):r),o),gy=["value","referenceDate"],vy={emptyValue:null,getTodayValue:HA,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Rt(e,gy);return null!=t&&r.utils.isValid(t)?t:null!=n?n:(({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{var i;let a=o?o():KA(t,n,HA(t,r));null!=e.minDate&&t.isAfterDay(e.minDate,a)&&(a=KA(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,a)&&(a=KA(t,n,e.maxDate));const s=GA(null!=(i=e.disableIgnoringDatePartForTimeValidation)&&i,t);return null!=e.minTime&&s(e.minTime,a)&&(a=KA(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:WA(t,a,e.minTime))),null!=e.maxTime&&s(a,e.maxTime)&&(a=KA(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:WA(t,a,e.maxTime))),a})(r)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},Ay={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:iy(o(t),r),getValueStrFromSections:(e,t)=>{const n=e.map((e=>{const n=ry(e,t?"input-rtl":"input-ltr");return`${e.startSeparator}${n}${e.endSeparator}`})).join("");return t?`${n}`:n},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},yy={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},by=yy;re({},yy);const xy=()=>{const e=k.useContext(kA);if(null===e)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=k.useMemo((()=>re({},by,e.localeText)),[e.localeText]);return k.useMemo((()=>re({},e,{localeText:t})),[e,t])},wy=()=>xy().utils,jy=()=>xy().localeText,Cy=e=>{const t=wy(),n=k.useRef();return void 0===n.current&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function Oy(e,t,n,r){const{value:o,onError:i}=e,a=xy(),s=k.useRef(r),l=t({adapter:a,value:o,props:e});return k.useEffect((()=>{i&&!n(l,s.current)&&i(l,o),s.current=l}),[n,i,s,l,o]),l}const My=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var i,a;const s=wy(),l=k.useRef(n),c=null!=(i=null!=t?t:l.current)?i:o.emptyValue,u=k.useMemo((()=>o.getTimezone(s,c)),[s,o,c]),d=ut((e=>null==u?e:o.setTimezone(s,u,e))),p=null!=(a=null!=e?e:u)?a:"default";return{value:k.useMemo((()=>o.setTimezone(s,p,c)),[o,s,p,c]),handleValueChange:ut(((e,...t)=>{const n=d(e);null==r||r(n,...t)})),timezone:p}},zy=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:i})=>{const[a,s]=ct({name:e,state:"value",controlled:n,default:null!=r?r:i.emptyValue}),l=ut(((e,...t)=>{s(e),null==o||o(e,...t)}));return My({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:i})},Dy=e=>{const t=wy(),n=jy(),r=xy(),o="rtl"===po().direction,{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:p,onChange:f,format:m,formatDensity:h="dense",selectedSections:g,onSelectedSectionsChange:v,shouldRespectLeadingZeros:A=!1,timezone:y}}=e,{timezone:b,value:x,handleValueChange:w}=My({timezone:y,value:u,defaultValue:d,onChange:f,valueManager:i}),j=k.useMemo((()=>((e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:i,longestMonth:a}=SA(e,n).reduce(((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:({format:n})=>({minimum:0,maximum:ly(e,t,n)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:t})=>({minimum:1,maximum:null!=t&&e.isValid(t)?e.getDaysInMonth(t):i,longestMonth:a}),weekDay:({format:n,contentType:r})=>{if("digit"===r){const r=_A(e,t,n).map(Number);return{minimum:Math.min(...r),maximum:Math.max(...r)}}return{minimum:1,maximum:7}},hours:({format:t})=>{const r=e.getHours(o);return e.formatByString(e.endOfDay(n),t)!==r.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),t))}:{minimum:0,maximum:r}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}})(t,b)),[t,b]),C=k.useCallback(((e,r=null)=>a.getSectionsFromValue(t,e,r,o,(e=>uy(t,b,n,m,e,h,A,o)))),[a,m,n,o,A,t,h,b]),O=k.useMemo((()=>a.getValueStrFromSections(C(i.emptyValue),o)),[a,C,i.emptyValue,o]),[M,z]=k.useState((()=>{const e=C(x);fy(e,s);const n={sections:e,value:x,referenceValue:i.emptyValue,tempValueStrAndroid:null},r=(e=>Math.max(...e.map((e=>{var t;return null!=(t=qA[e.type])?t:1}))))(e);return re({},n,{referenceValue:i.getInitialReferenceValue({referenceDate:p,value:x,utils:t,props:c,granularity:r,timezone:b})})})),[D,T]=ct({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),P=e=>{T(e),null==v||v(e),z((e=>re({},e,{selectedSectionQuery:null})))},N=k.useMemo((()=>{if(null==D)return null;if("all"===D)return{startIndex:0,endIndex:M.sections.length-1,shouldSelectBoundarySelectors:!0};if("number"==typeof D)return{startIndex:D,endIndex:D};if("string"==typeof D){const e=M.sections.findIndex((e=>e.type===D));return{startIndex:e,endIndex:e}}return D}),[D,M.sections]),E=({value:e,referenceValue:t,sections:n})=>{z((r=>re({},r,{sections:n,value:e,referenceValue:t,tempValueStrAndroid:null})));const o={validationError:l({adapter:r,value:e,props:re({},c,{value:e,timezone:b})})};w(e,o)},B=(e,t)=>{const n=[...M.sections];return n[e]=re({},n[e],{value:t,modified:!0}),iy(n,o)};return k.useEffect((()=>{const e=C(M.value);fy(e,s),z((t=>re({},t,{sections:e})))}),[m,t.locale]),k.useEffect((()=>{let e=!1;e=!i.areValuesEqual(t,M.value,x)||i.getTimezone(t,M.value)!==i.getTimezone(t,x),e&&z((e=>re({},e,{value:x,referenceValue:a.updateReferenceValue(t,x,e.referenceValue),sections:C(x)})))}),[x]),{state:M,selectedSectionIndexes:N,setSelectedSections:P,clearValue:()=>{i.areValuesEqual(t,M.value,i.emptyValue)||E({value:i.emptyValue,referenceValue:M.referenceValue,sections:C(i.emptyValue)})},clearActiveSection:()=>{if(null==N)return;const e=M.sections[N.startIndex];if(""===e.value)return;const n=a.getActiveDateManager(t,M,e),r=1===n.getSections(M.sections).filter((e=>""!==e.value)).length,o=B(N.startIndex,""),i=r?null:t.date(new Date("")),s=n.getNewValuesFromNewActiveDate(i);(null!=i&&!t.isValid(i))!=(null!=n.date&&!t.isValid(n.date))?E(re({},s,{sections:o})):z((e=>re({},e,s,{sections:o,tempValueStrAndroid:null})))},updateSectionValue:({activeSection:e,newSectionValue:n,shouldGoToNextSection:r})=>{r&&N&&N.startIndex<M.sections.length-1?P(N.startIndex+1):N&&N.startIndex!==N.endIndex&&P(N.startIndex);const o=a.getActiveDateManager(t,M,e),i=B(N.startIndex,n),s=o.getSections(i);let l,c,u=dy(t,s),d=!1;if(!t.isValid(u)){const e=((e,t,n,r)=>{if(!n.every((e=>"weekDay"===e.type||""!==e.value))||!n.some((e=>"day"===e.type)))return null;const o=n.map((t=>{if("day"!==t.type)return t;const n=r.day({currentDate:null,format:t.format,contentType:t.contentType});return re({},t,{value:ty(e,0,n.minimum,n,t)})})),i=dy(e,o);return null!=i&&e.isValid(i)?n.map((e=>{if("day"!==e.type)return e;const t=r.day({currentDate:i,format:e.format,contentType:e.contentType});return Number(e.value)<=t.maximum?e:re({},e,{value:t.maximum.toString()})})):null})(t,0,s,j);null!=e&&(d=!0,u=dy(t,e))}if(null!=u&&t.isValid(u)){const e=hy(t,b,u,s,o.referenceDate,!0);l=o.getNewValuesFromNewActiveDate(e),c=!0}else l=o.getNewValuesFromNewActiveDate(u),c=(null!=u&&!t.isValid(u))!=(null!=o.date&&!t.isValid(o.date));const p=d?C(l.value,M.sections):i;return c?E(re({},l,{sections:p})):z((e=>re({},e,l,{sections:p,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const r=a.parseValueStr(e,M.referenceValue,((e,r)=>{const i=t.parse(e,m);if(null==i||!t.isValid(i))return null;const a=uy(t,b,n,m,i,h,A,o);return hy(t,b,i,a,r,!1)})),i=a.updateReferenceValue(t,r,M.referenceValue);E({value:r,referenceValue:i,sections:C(r,M.sections)})},setTempAndroidValueStr:e=>z((t=>re({},t,{tempValueStrAndroid:e}))),sectionsValueBoundaries:j,placeholder:O,timezone:b}},Ty=e=>null!=e.saveQuery,Py=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const i=wy(),[a,s]=k.useState(null),l=ut((()=>s(null)));k.useEffect((()=>{var t;null!=a&&(null==(t=e[a.sectionIndex])?void 0:t.type)!==a.sectionType&&l()}),[e,a,l]),k.useEffect((()=>{if(null!=a){const e=setTimeout((()=>l()),5e3);return()=>{window.clearTimeout(e)}}return()=>{}}),[a,l]);const c=({keyPressed:t,sectionIndex:n},r,o)=>{const i=t.toLowerCase(),c=e[n];if(null!=a&&(!o||o(a.value))&&a.sectionIndex===n){const e=`${a.value}${i}`,t=r(e,c);if(!Ty(t))return s({sectionIndex:n,value:e,sectionType:c.type}),t}const u=r(i,c);return Ty(u)&&!u.saveQuery?(l(),null):(s({sectionIndex:n,value:i,sectionType:c.type}),Ty(u)?null:u)};return{applyCharacterEditing:ut((a=>{const s=e[a.sectionIndex],l=!Number.isNaN(Number(a.keyPressed))?(e=>{const t=(e,t)=>{const r=Number(`${e}`),o=n[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(r>o.maximum)return{saveQuery:!1};if(r<o.minimum)return{saveQuery:!0};const a=Number(`${e}0`)>o.maximum||e.length===o.maximum.toString().length;return{sectionValue:ty(i,0,r,o,t),shouldGoToNextSection:a}};return c(e,((e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const r=cy(i,o,"digit","month","MM"),a=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:r,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});return Ty(a)?a:re({},a,{sectionValue:sy(i,a.sectionValue,"MM",n.format)})}if("weekDay"===n.type){const r=t(e,n);return Ty(r)?r:re({},r,{sectionValue:_A(i,o,n.format)[Number(r.sectionValue)-1]})}return{saveQuery:!1}}),(e=>!Number.isNaN(Number(e))))})(a):(e=>{const t=(e,t,n)=>{const r=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,r,a)=>{const s=e=>$A(i,o,n.type,e);if("letter"===n.contentType)return t(n.format,s(n.format),e);if(r&&null!=a&&"letter"===JA(i,r).contentType){const n=s(r),o=t(0,n,e);return Ty(o)?{saveQuery:!1}:re({},o,{sectionValue:a(o.sectionValue,n)})}return{saveQuery:!1}};return c(e,((e,t)=>{switch(t.type){case"month":{const r=e=>sy(i,e,i.formats.month,t.format);return n(e,t,i.formats.month,r)}case"weekDay":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,i.formats.weekday,r)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))})(a);null==l?r(null):t({activeSection:s,newSectionValue:l.sectionValue,shouldGoToNextSection:l.shouldGoToNextSection})})),resetCharacterQuery:l}};function Ny(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}const Ey=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ey(t.shadowRoot):t:null},By="@media (pointer: fine)",ky=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error"],Ly=e=>{const t=wy(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:i,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:d,timezone:p}=Dy(e),{inputRef:f,internalProps:m,internalProps:{readOnly:h=!1,unstableFieldRef:g,minutesStep:v},forwardedProps:{onClick:A,onKeyDown:y,onFocus:b,onBlur:x,onMouseUp:w,onPaste:j,error:C},fieldValueManager:O,valueManager:M,validator:z}=e,D=Rt(e.forwardedProps,ky),{applyCharacterEditing:T,resetCharacterQuery:P}=Py({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),N=k.useRef(null),E=dt(f,N),B=k.useRef(void 0),L="rtl"===po().direction,I=k.useMemo((()=>((e,t)=>{const n={};if(!t)return e.forEach(((t,r)=>{const o=0===r?null:r-1,i=r===e.length-1?null:r+1;n[r]={leftIndex:o,rightIndex:i}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex(((e,t)=>{var n;return t>=i&&(null==(n=e.endSeparator)?void 0:n.includes(" "))&&" / "!==e.endSeparator})),-1===a&&(a=e.length-1);for(let e=a;e>=i;e-=1)o[e]=s,r[s]=e,s-=1;i=a+1}return e.forEach(((t,i)=>{const a=o[i],s=0===a?null:r[a-1],l=a===e.length-1?null:r[a+1];n[i]={leftIndex:s,rightIndex:l}})),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}})(n.sections,L)),[n.sections,L]),S=()=>{var e;if(h)return void o(null);const t=null!=(e=N.current.selectionStart)?e:0;let r;r=t<=n.sections[0].startInInput||t>=n.sections[n.sections.length-1].endInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>t));const i=-1===r?n.sections.length-1:r-1;o(i)},W=ut(((...e)=>{null==A||A(...e),S()})),H=ut((e=>{null==w||w(e),e.preventDefault()})),R=ut(((...e)=>{null==b||b(...e);const t=N.current;window.clearTimeout(B.current),B.current=setTimeout((()=>{t&&t===N.current&&(null!=r||h||(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?o("all"):S()))}))})),F=ut(((...e)=>{null==x||x(...e),o(null)})),V=ut((e=>{if(null==j||j(e),h)return void e.preventDefault();const t=e.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const o=n.sections[r.startIndex],i=/^[a-zA-Z]+$/.test(t),a=/^[0-9]+$/.test(t),s=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===o.contentType&&i||"digit"===o.contentType&&a||"digit-with-letter"===o.contentType&&s)return;if(i||a)return void e.preventDefault()}e.preventDefault(),P(),l(t)})),Q=ut((e=>{if(h)return;const t=e.target.value,o=e.nativeEvent.data,i=o&&o.length>1,a=i?o:t,s=oy(a);if(null==r||i)return void l(i?o:s);let u;if(0===r.startIndex&&r.endIndex===n.sections.length-1&&1===s.length)u=s;else{const e=oy(O.getValueStrFromSections(n.sections,L));let t=-1,o=-1;for(let n=0;n<e.length;n+=1)-1===t&&e[n]!==s[n]&&(t=n),-1===o&&e[e.length-n-1]!==s[s.length-n-1]&&(o=n);const i=n.sections[r.startIndex];if(t<i.start||e.length-o-1>i.end)return;const a=s.length-e.length+i.end-oy(i.endSeparator||"").length;u=s.slice(i.start+oy(i.startSeparator||"").length,a)}navigator.userAgent.toLowerCase().indexOf("android")>-1&&0===u.length?c(a):T({keyPressed:u,sectionIndex:r.startIndex})})),X=ut((e=>{switch(null==y||y(e),!0){case"a"===e.key&&(e.ctrlKey||e.metaKey):e.preventDefault(),o("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==r)o(I.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const e=I.neighbors[r.startIndex].rightIndex;null!==e&&o(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==r)o(I.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const e=I.neighbors[r.startIndex].leftIndex;null!==e&&o(e)}break;case["Backspace","Delete"].includes(e.key):if(e.preventDefault(),h)break;null==r||0===r.startIndex&&r.endIndex===n.sections.length-1?i():a(),P();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),h||null==r)break;const o=n.sections[r.startIndex],i=O.getActiveDateManager(t,n,o),a=ny(t,p,o,e.key,u,i.date,{minutesStep:v});s({activeSection:o,newSectionValue:a,shouldGoToNextSection:!1});break}}}));ot((()=>{if(!N.current)return;if(null==r)return void(N.current.scrollLeft&&(N.current.scrollLeft=0));const e=n.sections[r.startIndex],t=n.sections[r.endIndex];let o=e.startInInput,i=t.endInInput;if(r.shouldSelectBoundarySelectors&&(o-=e.startSeparator.length,i+=t.endSeparator.length),o!==N.current.selectionStart||i!==N.current.selectionEnd){const e=N.current.scrollTop;N.current===Ey(document)&&N.current.setSelectionRange(o,i),N.current.scrollTop=e}}));const Y=Oy(re({},m,{value:n.value,timezone:p}),z,M.isSameError,M.defaultErrorState),Z=k.useMemo((()=>void 0!==C?C:M.hasError(Y)),[M,Y,C]);k.useEffect((()=>{Z||r||P()}),[n.referenceValue,r,Z]),k.useEffect((()=>(N.current&&N.current===document.activeElement&&o("all"),()=>window.clearTimeout(B.current))),[]),k.useEffect((()=>{null!=n.tempValueStrAndroid&&null!=r&&(P(),a())}),[n.tempValueStrAndroid]);const G=k.useMemo((()=>{var e;return null!=(e=n.tempValueStrAndroid)?e:O.getValueStrFromSections(n.sections,L)}),[n.sections,O,n.tempValueStrAndroid,L]),U=k.useMemo((()=>null==r||"letter"===n.sections[r.startIndex].contentType?"text":"numeric"),[r,n.sections]),q=!(N.current&&N.current===Ey(document))&&M.areValuesEqual(t,n.value,M.emptyValue);return k.useImperativeHandle(g,(()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var e,t;const r=null!=(e=N.current.selectionStart)?e:0,o=null!=(t=N.current.selectionEnd)?t:0;if(0===r&&0===o)return null;const i=r<=n.sections[0].startInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>r));return-1===i?n.sections.length-1:i-1},setSelectedSections:e=>o(e)}))),re({placeholder:d,autoComplete:"off"},D,{value:q?"":G,inputMode:U,readOnly:h,onClick:W,onFocus:R,onBlur:F,onPaste:V,onChange:Q,onKeyDown:X,onMouseUp:H,error:Z,ref:E})},Iy=({adapter:e,value:t,props:n})=>{if(null===t)return null;const{minTime:r,maxTime:o,minutesStep:i,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:d}=n,p=e.utils.dateWithTimezone(void 0,d),f=GA(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(r&&f(r,t)):return"minTime";case Boolean(o&&f(t,o)):return"maxTime";case Boolean(u&&e.utils.isAfter(t,p)):return"disableFuture";case Boolean(c&&e.utils.isBefore(t,p)):return"disablePast";case Boolean(s&&s(t,"hours")):return"shouldDisableTime-hours";case Boolean(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case Boolean(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case Boolean(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case Boolean(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case Boolean(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case Boolean(i&&e.utils.getMinutes(t)%i!=0):return"minutesStep";default:return null}},Sy=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Wy=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Hy=["minDateTime","maxDateTime"],Ry=[...Sy,...Wy,...Hy],Fy=e=>Ry.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{}),Vy=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],Qy=({props:e,inputRef:t})=>{const n=(e=>{var t,n,r,o;const i=wy(),a=(null!=(t=e.ampm)?t:i.is12HourCycleInCurrentLocale())?i.formats.fullTime12h:i.formats.fullTime24h;return re({},e,{disablePast:null!=(n=e.disablePast)&&n,disableFuture:null!=(r=e.disableFuture)&&r,format:null!=(o=e.format)?o:a})})(e),{forwardedProps:r,internalProps:o}=((e,t)=>{const n=re({},e),r={},o=e=>{n.hasOwnProperty(e)&&(r[e]=n[e],delete n[e])};return Vy.forEach(o),"date"===t?Sy.forEach(o):"time"===t?Wy.forEach(o):"date-time"===t&&(Sy.forEach(o),Wy.forEach(o),Hy.forEach(o)),{forwardedProps:n,internalProps:r}})(n,"time");return Ly({inputRef:t,forwardedProps:r,internalProps:o,valueManager:vy,fieldValueManager:Ay,validator:Iy,valueType:"time"})},Xy=["slots","slotProps","components","componentsProps","InputProps","inputProps"],Yy=["inputRef"],Zy=["ref","onPaste","onKeyDown","inputMode","readOnly"],Gy=k.forwardRef((function(e,t){var n,r,o;const i=fo({props:e,name:"MuiTimeField"}),{slots:a,slotProps:s,components:l,componentsProps:c,InputProps:u,inputProps:d}=i,p=Rt(i,Xy),f=i,m=null!=(n=null!=(r=null==a?void 0:a.textField)?r:null==l?void 0:l.TextField)?n:Rm,h=ko({elementType:m,externalSlotProps:null!=(o=null==s?void 0:s.textField)?o:null==c?void 0:c.textField,externalForwardedProps:p,ownerState:f}),{inputRef:g}=h,v=Rt(h,Yy);v.inputProps=re({},d,v.inputProps),v.InputProps=re({},u,v.InputProps);const A=Qy({props:v,inputRef:g}),{ref:y,onPaste:b,onKeyDown:x,inputMode:w,readOnly:j}=A,C=Rt(A,Zy);return Y.jsx(m,re({ref:t},C,{InputProps:re({},C.InputProps,{readOnly:j}),inputProps:re({},C.inputProps,{inputMode:w,onPaste:b,onKeyDown:x,ref:y})}))}));function Uy(e){return It("MuiPickersToolbarText",e)}"production"!==process.env.NODE_ENV&&(Gy.propTypes={ampm:Ee.bool,autoFocus:Ee.bool,className:Ee.string,color:Ee.oneOf(["error","info","primary","secondary","success","warning"]),component:Ee.elementType,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disablePast:Ee.bool,focused:Ee.bool,format:Ee.string,formatDensity:Ee.oneOf(["dense","spacious"]),FormHelperTextProps:Ee.object,fullWidth:Ee.bool,helperText:Ee.node,hiddenLabel:Ee.bool,id:Ee.string,InputLabelProps:Ee.object,inputProps:Ee.object,InputProps:Ee.object,inputRef:Ee.oneOfType([Ee.func,Ee.shape({current:Ee.any.isRequired})]),label:Ee.node,margin:Ee.oneOf(["dense","none","normal"]),maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,name:Ee.string,onBlur:Ee.func,onChange:Ee.func,onClick:Ee.func,onError:Ee.func,onFocus:Ee.func,onSelectedSectionsChange:Ee.func,readOnly:Ee.bool,referenceDate:Ee.any,required:Ee.bool,selectedSections:Ee.oneOfType([Ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ee.number,Ee.shape({endIndex:Ee.number.isRequired,startIndex:Ee.number.isRequired})]),shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,shouldRespectLeadingZeros:Ee.bool,size:Ee.oneOf(["medium","small"]),slotProps:Ee.object,slots:Ee.object,style:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timezone:Ee.string,unstableFieldRef:Ee.oneOfType([Ee.func,Ee.object]),value:Ee.any,variant:Ee.oneOf(["filled","outlined","standard"])});const qy=St("MuiPickersToolbarText",["root","selected"]),Ky=["className","selected","value"],Jy=go(Tu,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${qy.selected}`]:t.selected}]})((({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${qy.selected}`]:{color:(e.vars||e).palette.text.primary}}))),_y=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiPickersToolbarText"}),{className:r,value:o}=n,i=Rt(n,Ky),a=(e=>{const{classes:t,selected:n}=e;return Et({root:["root",n&&"selected"]},Uy,t)})(n);return Y.jsx(Jy,re({ref:t,className:$n(r,a.root),component:"span"},i,{children:o}))}));function $y(e){return It("MuiButton",e)}var eb=St("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const tb=k.createContext({});"production"!==process.env.NODE_ENV&&(tb.displayName="ButtonGroupContext");var nb=tb;const rb=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ob=e=>re({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ib=go(Rc,{shouldForwardProp:e=>mo(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ke(n.color)}`],t[`size${Ke(n.size)}`],t[`${n.variant}Size${Ke(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return re({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":re({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":re({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${eb.focusVisible}`]:re({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${eb.disabled}`]:re({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${yr(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${eb.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${eb.disabled}`]:{boxShadow:"none"}})),ab=go("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ke(n.size)}`]]}})((({ownerState:e})=>re({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ob(e)))),sb=go("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ke(n.size)}`]]}})((({ownerState:e})=>re({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ob(e)))),lb=k.forwardRef((function(e,t){const n=k.useContext(nb),r=fo({props:Nt(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:a="button",className:s,disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:m="medium",startIcon:h,type:g,variant:v="text"}=r,A=Rt(r,rb),y=re({},r,{color:i,component:a,disabled:l,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:v}),b=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return re({},a,Et({root:["root",i,`${i}${Ke(t)}`,`size${Ke(o)}`,`${i}Size${Ke(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ke(o)}`],endIcon:["endIcon",`iconSize${Ke(o)}`]},$y,a))})(y),x=h&&Y.jsx(ab,{className:b.startIcon,ownerState:y,children:h}),w=d&&Y.jsx(sb,{className:b.endIcon,ownerState:y,children:d});return Y.jsxs(ib,re({ownerState:y,className:$n(n.className,b.root,s),component:a,disabled:l,focusRipple:!u,focusVisibleClassName:$n(b.focusVisible,p),ref:t,type:g},A,{classes:b,children:[x,o,w]}))}));"production"!==process.env.NODE_ENV&&(lb.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,color:Ee.oneOfType([Ee.oneOf(["inherit","primary","secondary","success","error","info","warning"]),Ee.string]),component:Ee.elementType,disabled:Ee.bool,disableElevation:Ee.bool,disableFocusRipple:Ee.bool,disableRipple:Ee.bool,endIcon:Ee.node,focusVisibleClassName:Ee.string,fullWidth:Ee.bool,href:Ee.string,size:Ee.oneOfType([Ee.oneOf(["small","medium","large"]),Ee.string]),startIcon:Ee.node,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),type:Ee.oneOfType([Ee.oneOf(["button","reset","submit"]),Ee.string]),variant:Ee.oneOfType([Ee.oneOf(["contained","outlined","text"]),Ee.string])});var cb=lb;function ub(e){return It("MuiPickersToolbar",e)}St("MuiPickersToolbar",["root","content"]);const db=["align","className","selected","typographyClassName","value","variant","width"],pb=go(cb,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),fb=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:o,selected:i,typographyClassName:a,value:s,variant:l,width:c}=n,u=Rt(n,db),d=(e=>{const{classes:t}=e;return Et({root:["root"]},ub,t)})(n);return Y.jsx(pb,re({variant:"text",ref:t,className:$n(o,d.root)},c?{sx:{width:c}}:{},u,{children:Y.jsx(_y,{align:r,className:a,variant:l,value:s,selected:i})}))})),mb=go("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>re({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}))),hb=go(eh,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})((({ownerState:e})=>re({flex:1},!e.isLandscape&&{alignItems:"center"}))),gb=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,isLandscape:i,landscapeDirection:a="column",toolbarTitle:s,hidden:l,titleId:c}=n,u=n,d=(e=>{const{classes:t,isLandscape:n}=e;return Et({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},ub,t)})(u);return l?null:Y.jsxs(mb,{ref:t,className:$n(d.root,o),ownerState:u,children:[Y.jsx(Tu,{color:"text.secondary",variant:"overline",id:c,children:s}),Y.jsx(hb,{container:!0,justifyContent:i?"flex-start":"space-between",className:d.content,ownerState:u,direction:i?a:"row",alignItems:i?"flex-start":"flex-end",children:r})]})}));function vb(e,t,n,r){const o=wy();return{meridiemMode:QA(e,o),handleMeridiemChange:k.useCallback((i=>{const a=null==e?null:YA(e,i,Boolean(t),o);n(a,null!=r?r:"partial")}),[t,e,n,r,o])}}function Ab(e){return It("MuiTimePickerToolbar",e)}const yb=St("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),bb=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],xb=e=>{const{theme:t,isLandscape:n,classes:r}=e;return Et({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Ab,r)},wb=go(gb,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jb=go(_y,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Cb=go("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${yb.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${yb.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})((({theme:e,ownerState:t})=>re({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"})));Cb.propTypes={as:Ee.elementType,ownerState:Ee.object.isRequired,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])};const Ob=go("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${yb.ampmLabel}`]:t.ampmLabel},{[`&.${yb.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})((({ownerState:e})=>re({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${yb.ampmLabel}`]:{fontSize:17}})));function Mb(e){const t=fo({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:i,onChange:a,view:s,onViewChange:l,views:c,disabled:u,readOnly:d}=t,p=Rt(t,bb),f=wy(),m=jy(),h=po(),g=Boolean(n&&!r&&c.includes("hours")),{meridiemMode:v,handleMeridiemChange:A}=vb(o,n,a),y=t,b=xb(re({},y,{theme:h})),x=Y.jsx(jb,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:b.separator});return Y.jsxs(wb,re({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:i,ownerState:y,className:b.root},p,{children:[Y.jsxs(Cb,{className:b.hourMinuteLabel,ownerState:y,children:[Ny(c,"hours")&&Y.jsx(fb,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:"hours"===s,value:o?(w=o,n?f.format(w,"hours12h"):f.format(w,"hours24h")):"--"}),Ny(c,["hours","minutes"])&&x,Ny(c,"minutes")&&Y.jsx(fb,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:"minutes"===s,value:o?f.format(o,"minutes"):"--"}),Ny(c,["minutes","seconds"])&&x,Ny(c,"seconds")&&Y.jsx(fb,{variant:"h3",onClick:()=>l("seconds"),selected:"seconds"===s,value:o?f.format(o,"seconds"):"--"})]}),g&&Y.jsxs(Ob,{className:b.ampmSelection,ownerState:y,children:[Y.jsx(fb,{disableRipple:!0,variant:"subtitle2",selected:"am"===v,typographyClassName:b.ampmLabel,value:RA(f,"am"),onClick:d?void 0:()=>A("am"),disabled:u}),Y.jsx(fb,{disableRipple:!0,variant:"subtitle2",selected:"pm"===v,typographyClassName:b.ampmLabel,value:RA(f,"pm"),onClick:d?void 0:()=>A("pm"),disabled:u})]})]}));var w}Ob.propTypes={as:Ee.elementType,ownerState:Ee.object.isRequired,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])},"production"!==process.env.NODE_ENV&&(Mb.propTypes={ampm:Ee.bool,ampmInClock:Ee.bool,classes:Ee.object,className:Ee.string,disabled:Ee.bool,hidden:Ee.bool,isLandscape:Ee.bool.isRequired,onChange:Ee.func.isRequired,onViewChange:Ee.func.isRequired,readOnly:Ee.bool,titleId:Ee.string,toolbarFormat:Ee.string,toolbarPlaceholder:Ee.node,value:Ee.any,view:Ee.oneOf(["hours","meridiem","minutes","seconds"]).isRequired,views:Ee.arrayOf(Ee.oneOf(["hours","meridiem","minutes","seconds"]).isRequired).isRequired});const zb=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>re({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]})),{})};function Db(e,t){var n,r,o,i,a;const s=wy(),l=fo({props:e,name:t}),c=null!=(n=l.ampm)?n:s.is12HourCycleInCurrentLocale(),u=k.useMemo((()=>{var e;return null==(null==(e=l.localeText)?void 0:e.toolbarTitle)?l.localeText:re({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})}),[l.localeText]),d=null!=(r=l.slots)?r:zb(l.components),p=null!=(o=l.slotProps)?o:l.componentsProps;return re({},l,{ampm:c,localeText:u},(({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=null!=n?n:r;let i;if(null!=e)i=e;else if(o.includes(t))i=t;else{if(!(o.length>0))throw new Error("MUI: The `views` prop must contain at least one view");i=o[0]}return{views:o,openTo:i}})({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:null!=(i=l.disableFuture)&&i,disablePast:null!=(a=l.disablePast)&&a,slots:re({toolbar:Mb},d),slotProps:re({},p,{toolbar:re({ampm:c,ampmInClock:l.ampmInClock},null==p?void 0:p.toolbar)})})}Si(Y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Tb=Si(Y.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Pb=Si(Y.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");Si(Y.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");const Nb=Si(Y.jsxs(k.Fragment,{children:[Y.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Y.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");function Eb(e){return It("MuiInputAdornment",e)}Si(Y.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),Si(Y.jsxs(k.Fragment,{children:[Y.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Y.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");var Bb,kb=St("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const Lb=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Ib=go("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ke(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>re({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${kb.positionStart}&:not(.${kb.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Sb=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,u=Rt(n,Lb),d=qc()||{};let p=c;c&&d.variant&&"production"!==process.env.NODE_ENV&&c===d.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),d&&!p&&(p=d.variant);const f=re({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Et({root:["root",n&&"disablePointerEvents",o&&`position${Ke(o)}`,a,r&&"hiddenLabel",i&&`size${Ke(i)}`]},Eb,t)})(f);return Y.jsx(Uc.Provider,{value:null,children:Y.jsx(Ib,re({as:i,ownerState:f,className:$n(m.root,o),ref:t},u,{children:"string"!=typeof r||s?Y.jsxs(k.Fragment,{children:["start"===l?Bb||(Bb=Y.jsx("span",{className:"notranslate",children:""})):null,r]}):Y.jsx(Tu,{color:"text.secondary",children:r})}))})}));"production"!==process.env.NODE_ENV&&(Sb.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,disablePointerEvents:Ee.bool,disableTypography:Ee.bool,position:Ee.oneOf(["end","start"]).isRequired,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),variant:Ee.oneOf(["filled","outlined","standard"])});var Wb=Sb;function Hb(e){return It("MuiPickersPopper",e)}St("MuiPickersPopper",["root","paper"]);const Rb=go(sc,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({zIndex:e.zIndex.modal}))),Fb=go(Ki,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({ownerState:e})=>re({transformOrigin:"top center",outline:0},"top"===e.placement&&{transformOrigin:"bottom center"})));function Vb(e){var t,n,r,o;const i=fo({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:d,open:p,role:f,placement:m,slots:h,slotProps:g}=i;k.useEffect((()=>{function e(e){!p||"Escape"!==e.key&&"Esc"!==e.key||d()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[d,p]);const v=k.useRef(null);k.useEffect((()=>{"tooltip"===f||c&&!c()||(p?v.current=Ey(document):v.current&&v.current instanceof HTMLElement&&setTimeout((()=>{v.current instanceof HTMLElement&&v.current.focus()})))}),[p,f,c]);const[A,y,b]=function(e,t){const n=k.useRef(!1),r=k.useRef(!1),o=k.useRef(null),i=k.useRef(!1);k.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),i.current=!1};function t(){i.current=!0}}),[e]);const a=ut((e=>{if(!i.current)return;const a=r.current;r.current=!1;const s=et(o.current);if(!o.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s))return;if(n.current)return void(n.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(o.current)>-1:!s.documentElement.contains(e.target)||o.current.contains(e.target),l||a||t(e)})),s=()=>{r.current=!0};return k.useEffect((()=>{if(e){const e=et(o.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",a),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",t)}}}),[e,a]),k.useEffect((()=>{if(e){const e=et(o.current);return e.addEventListener("click",a),()=>{e.removeEventListener("click",a),r.current=!1}}}),[e,a]),[o,s,s]}(p,null!=u?u:d),x=dt(k.useRef(null),l),w=dt(x,A),j=i,C=(e=>{const{classes:t}=e;return Et({root:["root"],paper:["paper"]},Hb,t)})(j),O=null!=(t=null==h?void 0:h.desktopTransition)?t:rc,M=null!=(n=null==h?void 0:h.desktopTrapFocus)?n:Zo,z=null!=(r=null==h?void 0:h.desktopPaper)?r:Fb,D=ko({elementType:z,externalSlotProps:null==g?void 0:g.desktopPaper,additionalProps:{tabIndex:-1,elevation:8,ref:w},className:C.paper,ownerState:{}}),T=null!=(o=null==h?void 0:h.popper)?o:Rb,P=ko({elementType:T,externalSlotProps:null==g?void 0:g.popper,additionalProps:{transition:!0,role:f,open:p,anchorEl:a,placement:m,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),d())}},className:C.root,ownerState:i});return Y.jsx(T,re({},P,{children:({TransitionProps:e,placement:t})=>Y.jsx(M,re({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===f,isEnabled:()=>!0},null==g?void 0:g.desktopTrapFocus,{children:Y.jsx(O,re({},e,null==g?void 0:g.desktopTransition,{children:Y.jsx(z,re({},D,{onClick:e=>{var t;y(e),null==(t=D.onClick)||t.call(D,e)},onTouchStart:e=>{var t;b(e),null==(t=D.onTouchStart)||t.call(D,e)},ownerState:re({},j,{placement:t}),children:s}))}))}))}))}const Qb=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:c="desktop"===r,selectedSections:u,onSelectedSectionsChange:d,timezone:p}=e,{current:f}=k.useRef(l),{current:m}=k.useRef(void 0!==s);"production"!==process.env.NODE_ENV&&(k.useEffect((()=>{m!==(void 0!==s)&&console.error([`MUI: A component is changing the ${m?"":"un"}controlled value of a picker to be ${m?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[s]),k.useEffect((()=>{m||f===l||console.error(["MUI: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join("\n"))}),[JSON.stringify(f)]));const h=wy(),g=xy(),[v,A]=ct({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:y,setIsOpen:b}=(({open:e,onOpen:t,onClose:n})=>{const r=k.useRef("boolean"==typeof e).current,[o,i]=k.useState(!1);return k.useEffect((()=>{if(r){if("boolean"!=typeof e)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}}),[r,e]),{isOpen:o,setIsOpen:k.useCallback((e=>{r||i(e),e&&t&&t(),!e&&n&&n()}),[r,t,n])}})(e),[x,w]=k.useState((()=>{let e;return e=void 0!==s?s:void 0!==f?f:t.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:s,hasBeenModifiedSinceMount:!1}})),{timezone:j,handleValueChange:C}=My({timezone:p,value:s,defaultValue:f,onChange:a,valueManager:t});Oy(re({},e,{value:x.draft,timezone:j}),o,t.isSameError,t.defaultErrorState);const O=ut((n=>{const r={action:n,dateState:x,hasChanged:e=>!t.areValuesEqual(h,n.value,e),isControlled:m,closeOnSelect:c},a=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!i||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!i||n(r.lastPublishedValue)))})(r),s=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!a||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&i?!!a||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(r),l=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(r);if(w((e=>re({},e,{draft:n.value,lastPublishedValue:a?n.value:e.lastPublishedValue,lastCommittedValue:s?n.value:e.lastCommittedValue,hasBeenModifiedSinceMount:!0}))),a){const t={validationError:"setValueFromField"===n.name?n.context.validationError:o({adapter:g,value:n.value,props:re({},e,{value:n.value,timezone:j})})};C(n.value,t)}s&&i&&i(n.value),l&&b(!1)}));if(void 0!==s&&(void 0===x.lastControlledValue||!t.areValuesEqual(h,x.lastControlledValue,s))){const e=t.areValuesEqual(h,x.draft,s);w((t=>re({},t,{lastControlledValue:s},e?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0})))}const M=ut((()=>{O({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),z=ut((()=>{O({value:x.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),D=ut((()=>{O({value:x.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),T=ut((()=>{O({value:x.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),P=ut((()=>{O({value:t.getTodayValue(h,j,n),name:"setValueFromAction",pickerAction:"today"})})),N=ut((()=>b(!0))),E=ut((()=>b(!1))),B=ut(((e,t="partial")=>O({name:"setValueFromView",value:e,selectionState:t}))),L=ut(((e,t)=>O({name:"setValueFromShortcut",value:e,changeImportance:null!=t?t:"accept"}))),I=ut(((e,t)=>O({name:"setValueFromField",value:e,context:t}))),S=ut((e=>{A(e),null==d||d(e)})),W={onClear:M,onAccept:z,onDismiss:D,onCancel:T,onSetToday:P,onOpen:N,onClose:E},H={value:x.draft,onChange:I,selectedSections:v,onSelectedSectionsChange:S},R=k.useMemo((()=>t.cleanValue(h,x.draft)),[h,t,x.draft]);return{open:y,fieldProps:H,viewProps:{value:R,onChange:B,onClose:E,open:y,onSelectedSectionsChange:S},layoutProps:re({},W,{value:R,onChange:B,onSelectShortcut:L,isValid:n=>{const r=o({adapter:g,value:n,props:re({},e,{value:n,timezone:j})});return!t.hasError(r)}}),actions:W}};let Xb=!1;function Yb({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){var l,c;"production"!==process.env.NODE_ENV&&(Xb||(null==r||o.includes(r)||(console.warn(`MUI: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),Xb=!0),null!=r||null==n||o.includes(n)||(console.warn(`MUI: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),Xb=!0)));const u=k.useRef(n),d=k.useRef(o),p=k.useRef(o.includes(n)?n:o[0]),[f,m]=ct({name:"useViews",state:"view",controlled:r,default:p.current}),h=k.useRef(i?f:null),[g,v]=ct({name:"useViews",state:"focusedView",controlled:a,default:h.current});k.useEffect((()=>{(u.current&&u.current!==n||d.current&&d.current.some((e=>!o.includes(e))))&&(m(o.includes(n)?n:o[0]),d.current=o,u.current=n)}),[n,m,f,o]);const A=o.indexOf(f),y=null!=(l=o[A-1])?l:null,b=null!=(c=o[A+1])?c:null,x=ut(((e,t)=>{v(t?e:t=>e===t?null:t),null==s||s(e,t)})),w=ut((e=>{e!==f&&(m(e),x(e,!0),t&&t(e))})),j=ut((()=>{b&&w(b),x(b,!0)})),C=ut(((t,n,r)=>{const i="finish"===n,a=r?o.indexOf(r)<o.length-1:Boolean(b);e(t,i&&a?"partial":n),i&&j()})),O=ut(((t,n,r)=>{e(t,n?"partial":"finish",r),n&&(w(n),x(n,!0))}));return{view:f,setView:w,focusedView:g,setFocusedView:x,nextView:b,previousView:y,defaultView:p.current,goToNextView:j,setValueAndGoToNextView:C,setValueAndGoToView:O}}const Zb=["className","sx"];function Gb(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const Ub=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=((e,t)=>{const[n,r]=k.useState(Gb);return ot((()=>{const e=()=>{r(Gb())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!Ny(e,["hours","minutes","seconds"])&&"landscape"===(t||n)})(n.views,o);return{layoutProps:re({},n,t,{isLandscape:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},qb=MA(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),Kb=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:i,validator:a,autoFocusView:s})=>{"production"!==process.env.NODE_ENV&&null!=e.renderInput&&qb();const l=Qb({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),c=(({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:i,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:d,disableOpenPicker:p,viewRenderers:f,timezone:m}=e,h=Rt(e,Zb),{view:g,setView:v,defaultView:A,focusedView:y,setFocusedView:b,setValueAndGoToNextView:x}=Yb({view:void 0,views:c,openTo:u,onChange:i,onViewChange:d,autoFocus:o}),{hasUIView:w,viewModeLookup:j}=k.useMemo((()=>c.reduce(((e,t)=>{let n;return n=p?"field":null!=f[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[p,f,c]),C=k.useMemo((()=>c.reduce(((e,t)=>null!=f[t]&&VA(t)?e+1:e),0)),[f,c]),O=j[g],M=ut((()=>"UI"===O)),[z,D]=k.useState("UI"===O?g:null);return z!==g&&"UI"===j[g]&&D(g),ot((()=>{"field"===O&&a&&(l(),setTimeout((()=>{null==r||r.current.focus(),s(g)})))}),[g]),ot((()=>{if(!a)return;let e=g;"field"===O&&null!=z&&(e=z),e!==A&&"UI"===j[e]&&"UI"===j[A]&&(e=A),e!==g&&v(e),b(e,!0)}),[a]),{hasUIView:w,shouldRestoreFocus:M,layoutProps:{views:c,view:z,onViewChange:v},renderCurrentView:()=>{if(null==z)return null;const e=f[z];return null==e?null:e(re({},h,n,t,{views:c,timezone:m,onChange:x,view:z,onViewChange:v,focusedView:y,onFocusedViewChange:b,showViewSwitcher:C>1,timeViewsCount:C}))}}})({props:e,inputRef:o,additionalViewProps:i,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=Ub({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function Jb(e){return It("MuiPickersLayout",e)}const _b=St("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]);function $b(e){return It("MuiDialogActions",e)}St("MuiDialogActions",["root","spacing"]);const ex=["className","disableSpacing"],tx=go("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>re({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),nx=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1}=n,i=Rt(n,ex),a=re({},n,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:n}=e;return Et({root:["root",!n&&"spacing"]},$b,t)})(a);return Y.jsx(tx,re({className:$n(s.root,r),ownerState:a,ref:t},i))}));"production"!==process.env.NODE_ENV&&(nx.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,disableSpacing:Ee.bool,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var rx=nx;const ox=["onAccept","onClear","onCancel","onSetToday","actions"];function ix(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=Rt(e,ox),s=jy();if(null==i||0===i.length)return null;const l=null==i?void 0:i.map((e=>{switch(e){case"clear":return Y.jsx(cb,{onClick:n,children:s.clearButtonLabel},e);case"cancel":return Y.jsx(cb,{onClick:r,children:s.cancelButtonLabel},e);case"accept":return Y.jsx(cb,{onClick:t,children:s.okButtonLabel},e);case"today":return Y.jsx(cb,{onClick:o,children:s.todayButtonLabel},e);default:return null}}));return Y.jsx(rx,re({},a,{children:l}))}function ax(e){return It("MuiListItem",e)}"production"!==process.env.NODE_ENV&&(ix.propTypes={actions:Ee.arrayOf(Ee.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:Ee.bool,onAccept:Ee.func.isRequired,onCancel:Ee.func.isRequired,onClear:Ee.func.isRequired,onSetToday:Ee.func.isRequired,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var sx=St("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function lx(e){return It("MuiListItemButton",e)}var cx=St("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const ux=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],dx=go(Rc,{shouldForwardProp:e=>mo(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>re({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cx.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cx.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${cx.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cx.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),px=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:p}=n,f=Rt(n,ux),m=k.useContext(hu),h=k.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),g=k.useRef(null);ot((()=>{o&&(g.current?g.current.focus():"production"!==process.env.NODE_ENV&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))}),[o]);const v=re({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),A=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return re({},n,Et({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},lx,n))})(v),y=dt(g,t);return Y.jsx(hu.Provider,{value:h,children:Y.jsx(dx,re({ref:y,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:$n(A.focusVisible,u),ownerState:v,className:$n(A.root,p)},f,{classes:A,children:a}))})}));"production"!==process.env.NODE_ENV&&(px.propTypes={alignItems:Ee.oneOf(["center","flex-start"]),autoFocus:Ee.bool,children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,dense:Ee.bool,disabled:Ee.bool,disableGutters:Ee.bool,divider:Ee.bool,focusVisibleClassName:Ee.string,href:Ee.string,selected:Ee.bool,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var fx=px;function mx(e){return It("MuiListItemSecondaryAction",e)}St("MuiListItemSecondaryAction",["root","disableGutters"]);const hx=["className"],gx=go("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>re({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),vx=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Rt(n,hx),i=re({},n,{disableGutters:k.useContext(hu).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Et({root:["root",t&&"disableGutters"]},mx,n)})(i);return Y.jsx(gx,re({className:$n(a.root,r),ownerState:i,ref:t},o))}));"production"!==process.env.NODE_ENV&&(vx.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])}),vx.muiName="ListItemSecondaryAction";var Ax=vx;const yx=["className"],bx=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],xx=go("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>re({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&re({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${cx.root}`]:{paddingRight:48}},{[`&.${sx.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sx.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sx.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sx.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),wx=go("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),jx=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:m=!1,disableGutters:h=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:A,secondaryAction:y,selected:b=!1,slotProps:x={},slots:w={}}=n,j=Rt(n.ContainerProps,yx),C=Rt(n,bx),O=k.useContext(hu),M=k.useMemo((()=>({dense:f||O.dense||!1,alignItems:r,disableGutters:h})),[r,O.dense,f,h]),z=k.useRef(null);ot((()=>{o&&(z.current?z.current.focus():"production"!==process.env.NODE_ENV&&console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."))}),[o]);const D=k.Children.toArray(a),T=D.length&&$e(D[D.length-1],["ListItemSecondaryAction"]),P=re({},n,{alignItems:r,autoFocus:o,button:i,dense:M.dense,disabled:m,disableGutters:h,disablePadding:g,divider:v,hasSecondaryAction:T,selected:b}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Et({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},ax,r)})(P),E=dt(z,t),B=w.root||c.Root||xx,L=x.root||u.root||{},I=re({className:$n(N.root,L.className,s),disabled:m},C);let S=l||"li";return i&&(I.component=l||"div",I.focusVisibleClassName=$n(sx.focusVisible,A),S=Rc),T?(S=I.component||l?S:"div","li"===d&&("li"===S?S="div":"li"===I.component&&(I.component="div")),Y.jsx(hu.Provider,{value:M,children:Y.jsxs(wx,re({as:d,className:$n(N.container,p),ref:E,ownerState:P},j,{children:[Y.jsx(B,re({},L,!Oo(B)&&{as:S,ownerState:re({},P,L.ownerState)},I,{children:D})),D.pop()]}))})):Y.jsx(hu.Provider,{value:M,children:Y.jsxs(B,re({},L,{as:S,ref:E},!Oo(B)&&{ownerState:re({},P,L.ownerState)},I,{children:[D,y&&Y.jsx(Ax,{children:y})]}))})}));"production"!==process.env.NODE_ENV&&(jx.propTypes={alignItems:Ee.oneOf(["center","flex-start"]),autoFocus:Ee.bool,button:Ee.bool,children:ne(Ee.node,(e=>{const t=k.Children.toArray(e.children);let n=-1;for(let e=t.length-1;e>=0;e-=1){if($e(t[e],["ListItemSecondaryAction"])){n=e;break}}return-1!==n&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null})),classes:Ee.object,className:Ee.string,component:Ee.elementType,components:Ee.shape({Root:Ee.elementType}),componentsProps:Ee.shape({root:Ee.object}),ContainerComponent:Ie,ContainerProps:Ee.object,dense:Ee.bool,disabled:Ee.bool,disableGutters:Ee.bool,disablePadding:Ee.bool,divider:Ee.bool,focusVisibleClassName:Ee.string,secondaryAction:Ee.node,selected:Ee.bool,slotProps:Ee.shape({root:Ee.object}),slots:Ee.shape({root:Ee.elementType}),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var Cx=jx;const Ox=["items","changeImportance","isLandscape","onChange","isValid"];function Mx(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,i=Rt(e,Ox);if(null==t||0===t.length)return null;const a=t.map((e=>{const t=e.getValue({isValid:o});return{label:e.label,onClick:()=>{r(t,n)},disabled:!o(t)}}));return Y.jsx(Nf,re({dense:!0,sx:[{maxHeight:358,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map((e=>Y.jsx(Cx,{children:Y.jsx(td,re({},e))},e.label)))}))}"production"!==process.env.NODE_ENV&&(Mx.propTypes={changeImportance:Ee.oneOf(["accept","set"]),className:Ee.string,component:Ee.elementType,dense:Ee.bool,disablePadding:Ee.bool,isLandscape:Ee.bool.isRequired,isValid:Ee.func.isRequired,items:Ee.arrayOf(Ee.shape({getValue:Ee.func.isRequired,label:Ee.string.isRequired})),onChange:Ee.func.isRequired,style:Ee.object,subheader:Ee.node,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var zx=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:i,onCancel:a,onSetToday:s,view:l,views:c,onViewChange:u,value:d,onChange:p,onSelectShortcut:f,isValid:m,isLandscape:h,disabled:g,readOnly:v,children:A,components:y,componentsProps:b,slots:x,slotProps:w}=e,j=null!=x?x:zb(y),C=null!=w?w:b,O=(e=>{const{classes:t,isLandscape:n}=e;return Et({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Jb,t)})(e),M=null!=(t=null==j?void 0:j.actionBar)?t:ix,z=ko({elementType:M,externalSlotProps:null==C?void 0:C.actionBar,additionalProps:{onAccept:o,onClear:i,onCancel:a,onSetToday:s,actions:"desktop"===r?[]:["cancel","accept"],className:O.actionBar},ownerState:re({},e,{wrapperVariant:r})}),D=Y.jsx(M,re({},z)),T=null==j?void 0:j.toolbar,P=ko({elementType:T,externalSlotProps:null==C?void 0:C.toolbar,additionalProps:{isLandscape:h,onChange:p,value:d,view:l,onViewChange:u,views:c,disabled:g,readOnly:v,className:O.toolbar},ownerState:re({},e,{wrapperVariant:r})}),N=function(e){return null!==e.view}(P)&&T?Y.jsx(T,re({},P)):null,E=A,B=null==j?void 0:j.tabs,k=l&&B?Y.jsx(B,re({view:l,onViewChange:u},null==C?void 0:C.tabs)):null,L=null!=(n=null==j?void 0:j.shortcuts)?n:Mx,I=ko({elementType:L,externalSlotProps:null==C?void 0:C.shortcuts,additionalProps:{isValid:m,isLandscape:h,onChange:f,className:O.shortcuts},ownerState:{isValid:m,isLandscape:h,onChange:f,className:O.shortcuts,wrapperVariant:r}});return{toolbar:N,content:E,tabs:k,actionBar:D,shortcuts:l&&L?Y.jsx(L,re({},I)):null}};const Dx=go("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${_b.toolbar}`]:t.isLandscape?{gridColumn:"rtl"===e.direction?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${_b.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:"rtl"===e.direction?3:1,gridRow:"2 / 3"},[`& .${_b.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}})));Dx.propTypes={as:Ee.elementType,ownerState:Ee.shape({isLandscape:Ee.bool.isRequired}).isRequired,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])};const Tx=go("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Px=function(e){const t=fo({props:e,name:"MuiPickersLayout"}),{toolbar:n,content:r,tabs:o,actionBar:i,shortcuts:a}=zx(t),{sx:s,className:l,isLandscape:c,ref:u,wrapperVariant:d}=t,p=t,f=(e=>{const{isLandscape:t,classes:n}=e;return Et({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Jb,n)})(p);return Y.jsxs(Dx,{ref:u,sx:s,className:$n(l,f.root),ownerState:p,children:[c?a:n,c?n:a,Y.jsx(Tx,{className:f.contentWrapper,children:"desktop"===d?Y.jsxs(k.Fragment,{children:[r,o]}):Y.jsxs(k.Fragment,{children:[o,r]})}),i]})};"production"!==process.env.NODE_ENV&&(Px.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,components:Ee.object,componentsProps:Ee.object,disabled:Ee.bool,isLandscape:Ee.bool.isRequired,isValid:Ee.func.isRequired,onAccept:Ee.func.isRequired,onCancel:Ee.func.isRequired,onChange:Ee.func.isRequired,onClear:Ee.func.isRequired,onClose:Ee.func.isRequired,onDismiss:Ee.func.isRequired,onOpen:Ee.func.isRequired,onSelectShortcut:Ee.func.isRequired,onSetToday:Ee.func.isRequired,onViewChange:Ee.func.isRequired,orientation:Ee.oneOf(["landscape","portrait"]),readOnly:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),value:Ee.any,view:Ee.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:Ee.arrayOf(Ee.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:Ee.oneOf(["desktop","mobile"])});const Nx=["props","getOpenDialogAriaText"],Ex=["ownerState"],Bx=["ownerState"];function kx(e){return It("MuiPickersArrowSwitcher",e)}St("MuiPickersArrowSwitcher",["root","spacer","button"]);const Lx=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Ix=["ownerState"],Sx=["ownerState"],Wx=go("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Hx=go("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((({theme:e})=>({width:e.spacing(3)}))),Rx=go(Zc,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})((({ownerState:e})=>re({},e.hidden&&{visibility:"hidden"}))),Fx=k.forwardRef((function(e,t){var n,r,o,i;const a="rtl"===po().direction,s=fo({props:e,name:"MuiPickersArrowSwitcher"}),{children:l,className:c,slots:u,slotProps:d,isNextDisabled:p,isNextHidden:f,onGoToNext:m,nextLabel:h,isPreviousDisabled:g,isPreviousHidden:v,onGoToPrevious:A,previousLabel:y}=s,b=Rt(s,Lx),x=s,w=(e=>{const{classes:t}=e;return Et({root:["root"],spacer:["spacer"],button:["button"]},kx,t)})(x),j={isDisabled:p,isHidden:f,goTo:m,label:h},C={isDisabled:g,isHidden:v,goTo:A,label:y},[O,M]=a?[j,C]:[C,j],z=null!=(n=null==u?void 0:u.previousIconButton)?n:Rx,D=ko({elementType:z,externalSlotProps:null==d?void 0:d.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:re({},x,{hidden:O.isHidden}),className:w.button}),T=null!=(r=null==u?void 0:u.nextIconButton)?r:Rx,P=ko({elementType:T,externalSlotProps:null==d?void 0:d.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:re({},x,{hidden:M.isHidden}),className:w.button}),N=null!=(o=null==u?void 0:u.leftArrowIcon)?o:Tb,E=Rt(ko({elementType:N,externalSlotProps:null==d?void 0:d.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Ix),B=null!=(i=null==u?void 0:u.rightArrowIcon)?i:Pb,k=Rt(ko({elementType:B,externalSlotProps:null==d?void 0:d.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Sx);return Y.jsxs(Wx,re({ref:t,className:$n(w.root,c),ownerState:x},b,{children:[Y.jsx(z,re({},D,{children:a?Y.jsx(B,re({},k)):Y.jsx(N,re({},E))})),l?Y.jsx(Tu,{variant:"subtitle1",component:"span",children:l}):Y.jsx(Hx,{className:w.spacer,ownerState:x}),Y.jsx(T,re({},P,{children:a?Y.jsx(N,re({},E)):Y.jsx(B,re({},k))}))]}))})),Vx=go("div")({overflow:"hidden",width:320,maxHeight:358,display:"flex",flexDirection:"column",margin:"0 auto"});function Qx(e){return It("MuiTimeClock",e)}St("MuiTimeClock",["root","arrowSwitcher"]);const Xx=220,Yx=36,Zx={x:Xx/2,y:Xx/2},Gx=Zx.x-Zx.x,Ux=0-Zx.y,qx=(e,t,n)=>{const r=t-Zx.x,o=n-Zx.y,i=Math.atan2(Gx,Ux)-Math.atan2(r,o);let a=i*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const s=r**2+o**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(s)}};function Kx(e){return It("MuiClockPointer",e)}St("MuiClockPointer",["root","thumb"]);const Jx=["className","hasSelected","isInner","type","viewValue"],_x=e=>{const{classes:t}=e;return Et({root:["root"],thumb:["thumb"]},Kx,t)},$x=go("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>re({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])}))),ew=go("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e,ownerState:t})=>re({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main})));function tw(e){const t=fo({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:i}=t,a=Rt(t,Jx),s=k.useRef(o);k.useEffect((()=>{s.current=o}),[o]);const l=re({},t,{shouldAnimate:s.current!==o}),c=_x(l);return Y.jsx($x,re({style:(()=>{let e=360/("hours"===o?12:60)*i;return"hours"===o&&i>12&&(e-=360),{height:Math.round((r?.26:.4)*Xx),transform:`rotateZ(${e}deg)`}})(),className:$n(n,c.root),ownerState:l},a,{children:Y.jsx(ew,{ownerState:l,className:c.thumb})}))}function nw(e){return It("MuiClock",e)}St("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]);const rw=go("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)}))),ow=go("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),iw=go("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),aw=go("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})((({ownerState:e})=>re({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}))),sw=go("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})((({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}))),lw=go(Zc,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})((({theme:e,ownerState:t})=>re({zIndex:1,position:"absolute",bottom:8,left:8},"am"===t.meridiemMode&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}))),cw=go(Zc,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})((({theme:e,ownerState:t})=>re({zIndex:1,position:"absolute",bottom:8,right:8},"pm"===t.meridiemMode&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})));function uw(e){const t=fo({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:d,selectedId:p,type:f,viewValue:m,disabled:h,readOnly:g,className:v}=t,A=t,y=wy(),b=jy(),x=k.useRef(!1),w=(e=>{const{classes:t}=e;return Et({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},nw,t)})(A),j=l(m,f),C=!n&&"hours"===f&&(m<1||m>12),O=(e,t)=>{h||g||l(e,f)||d(e,t)},M=(e,t)=>{let{offsetX:r,offsetY:o}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}const i="seconds"===f||"minutes"===f?((e,t,n=1)=>{const r=6*n;let{value:o}=qx(r,e,t);return o=o*n%60,o})(r,o,u):((e,t,n)=>{const{value:r,distance:o}=qx(30,e,t);let i=r||12;return n?i%=12:o<Xx/2-Yx&&(i+=12,i%=24),i})(r,o,Boolean(n));O(i,t)},z=k.useMemo((()=>"hours"===f||m%5==0),[f,m]),D="minutes"===f?u:1,T=k.useRef(null);ot((()=>{o&&T.current.focus()}),[o]);return Y.jsxs(rw,{className:$n(v,w.root),children:[Y.jsxs(ow,{className:w.clock,children:[Y.jsx(aw,{onTouchMove:e=>{x.current=!0,M(e,"shallow")},onTouchEnd:e=>{x.current&&(M(e,"finish"),x.current=!1)},onMouseUp:e=>{x.current&&(x.current=!1),M(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&M(e.nativeEvent,"shallow")},ownerState:{disabled:h},className:w.squareMask}),!j&&Y.jsxs(k.Fragment,{children:[Y.jsx(sw,{className:w.pin}),null!=a&&Y.jsx(tw,{type:f,viewValue:m,isInner:C,hasSelected:z})]}),Y.jsx(iw,{"aria-activedescendant":p,"aria-label":b.clockLabelText(f,a,y),ref:T,role:"listbox",onKeyDown:e=>{if(!x.current)switch(e.key){case"Home":O(0,"partial"),e.preventDefault();break;case"End":O("minutes"===f?59:23,"partial"),e.preventDefault();break;case"ArrowUp":O(m+D,"partial"),e.preventDefault();break;case"ArrowDown":O(m-D,"partial"),e.preventDefault()}},tabIndex:0,className:w.wrapper,children:i})]}),n&&r&&Y.jsxs(k.Fragment,{children:[Y.jsx(lw,{onClick:g?void 0:()=>s("am"),disabled:h||null===c,ownerState:A,className:w.amButton,children:Y.jsx(Tu,{variant:"caption",children:"AM"})}),Y.jsx(cw,{disabled:h||null===c,onClick:g?void 0:()=>s("pm"),ownerState:A,className:w.pmButton,children:Y.jsx(Tu,{variant:"caption",children:"PM"})})]})]})}function dw(e){return It("MuiClockNumber",e)}const pw=St("MuiClockNumber",["root","selected","disabled"]),fw=["className","disabled","index","inner","label","selected"],mw=go("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${pw.disabled}`]:t.disabled},{[`&.${pw.selected}`]:t.selected}]})((({theme:e,ownerState:t})=>re({height:Yx,width:Yx,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${pw.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${pw.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&re({},e.typography.body2,{color:(e.vars||e).palette.text.secondary}))));function hw(e){const t=fo({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:s}=t,l=Rt(t,fw),c=t,u=(e=>{const{classes:t,selected:n,disabled:r}=e;return Et({root:["root",n&&"selected",r&&"disabled"]},dw,t)})(c),d=o%12/12*Math.PI*2-Math.PI/2,p=(Xx-Yx-2)/2*(i?.65:1),f=Math.round(Math.cos(d)*p),m=Math.round(Math.sin(d)*p);return Y.jsx(mw,re({className:$n(n,u.root),"aria-disabled":!!r||void 0,"aria-selected":!!s||void 0,role:"option",style:{transform:`translate(${f}px, ${m+(Xx-Yx)/2}px`},ownerState:c},l,{children:a}))}const gw=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?12:23,c=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a="00");const l=!e&&(0===t||t>12);a=i.formatNumber(a);const u=c(t);s.push(Y.jsx(hw,{id:u?o:void 0,index:t,inner:l,selected:u,disabled:r(t),label:a,"aria-label":n(a)},t))}return s},vw=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map((([e,i],a)=>{const s=e===t;return Y.jsx(hw,{label:i,id:s?o:void 0,index:a+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(i)},e)}))},Aw=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const i=k.useMemo((()=>vy.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:qA.day,timezone:o,getTodayDate:()=>HA(n,o,"date")})),[]);return null!=e?e:i},yw=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],bw=go(Vx,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),xw=go(Fx,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),ww=["hours","minutes"],jw=k.forwardRef((function(e,t){const n=wy(),r=fo({props:e,name:"MuiTimeClock"}),{ampm:o=n.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:a,components:s,componentsProps:l,slots:c,slotProps:u,value:d,defaultValue:p,referenceDate:f,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:h,minTime:g,disableFuture:v,disablePast:A,minutesStep:y=1,shouldDisableClock:b,shouldDisableTime:x,showViewSwitcher:w,onChange:j,view:C,views:O=ww,openTo:M,onViewChange:z,focusedView:D,onFocusedViewChange:T,className:P,disabled:N,readOnly:E,timezone:B}=r,L=Rt(r,yw),I=null!=c?c:zb(s),S=null!=u?u:l,{value:W,handleValueChange:H,timezone:R}=zy({name:"TimeClock",timezone:B,value:d,defaultValue:p,onChange:j,valueManager:vy}),F=Aw({value:W,referenceDate:f,utils:n,props:r,timezone:R}),V=jy(),Q=Cy(R),{view:X,setView:Z,previousView:G,nextView:U,setValueAndGoToNextView:q}=Yb({view:C,views:O,openTo:M,onViewChange:z,onChange:H,focusedView:D,onFocusedViewChange:T}),{meridiemMode:K,handleMeridiemChange:J}=vb(F,o,q),_=k.useCallback(((e,t)=>{const r=GA(m,n),i="hours"===t||"minutes"===t&&O.includes("seconds"),a=({start:e,end:t})=>(!g||!r(g,t))&&((!h||!r(e,h))&&((!v||!r(e,Q))&&(!A||!r(Q,i?t:e)))),s=(e,r=1)=>{if(e%r!=0)return!1;if(null!=b&&b(e,t))return!1;if(x)switch(t){case"hours":return!x(n.setHours(F,e),"hours");case"minutes":return!x(n.setMinutes(F,e),"minutes");case"seconds":return!x(n.setSeconds(F,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=XA(e,K,o),r=n.setHours(F,t);return!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case"minutes":{const t=n.setMinutes(F,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,y)}case"seconds":{const t=n.setSeconds(F,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[o,F,m,h,K,g,y,b,x,n,v,A,Q,O]),$=st(),ee=k.useMemo((()=>{switch(X){case"hours":{const e=(e,t)=>{const r=XA(e,K,o);q(n.setHours(F,r),t)};return{onChange:e,viewValue:n.getHours(F),children:gw({value:W,utils:n,ampm:o,onChange:e,getClockNumberText:V.hoursClockNumberText,isDisabled:e=>N||_(e,"hours"),selectedId:$})}}case"minutes":{const e=n.getMinutes(F),t=(e,t)=>{q(n.setMinutes(F,e),t)};return{viewValue:e,onChange:t,children:vw({utils:n,value:e,onChange:t,getClockNumberText:V.minutesClockNumberText,isDisabled:e=>N||_(e,"minutes"),selectedId:$})}}case"seconds":{const e=n.getSeconds(F),t=(e,t)=>{q(n.setSeconds(F,e),t)};return{viewValue:e,onChange:t,children:vw({utils:n,value:e,onChange:t,getClockNumberText:V.secondsClockNumberText,isDisabled:e=>N||_(e,"seconds"),selectedId:$})}}default:throw new Error("You must provide the type for ClockView")}}),[X,n,W,o,V.hoursClockNumberText,V.minutesClockNumberText,V.secondsClockNumberText,K,q,F,_,$,N]),te=r,ne=(e=>{const{classes:t}=e;return Et({root:["root"],arrowSwitcher:["arrowSwitcher"]},Qx,t)})(te);return Y.jsxs(bw,re({ref:t,className:$n(ne.root,P),ownerState:te},L,{children:[Y.jsx(uw,re({autoFocus:null!=a?a:!!D,ampmInClock:i&&O.includes("hours"),value:W,type:X,ampm:o,minutesStep:y,isTimeDisabled:_,meridiemMode:K,handleMeridiemChange:J,selectedId:$,disabled:N,readOnly:E},ee)),w&&Y.jsx(xw,{className:ne.arrowSwitcher,slots:I,slotProps:S,onGoToPrevious:()=>Z(G),isPreviousDisabled:!G,previousLabel:V.openPreviousView,onGoToNext:()=>Z(U),isNextDisabled:!U,nextLabel:V.openNextView,ownerState:te})]}))}));function Cw(e){return It("MuiDigitalClock",e)}"production"!==process.env.NODE_ENV&&(jw.propTypes={ampm:Ee.bool,ampmInClock:Ee.bool,autoFocus:Ee.bool,classes:Ee.object,className:Ee.string,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disablePast:Ee.bool,focusedView:Ee.oneOf(["hours","minutes","seconds"]),maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onChange:Ee.func,onFocusedViewChange:Ee.func,onViewChange:Ee.func,openTo:Ee.oneOf(["hours","minutes","seconds"]),readOnly:Ee.bool,referenceDate:Ee.any,shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,showViewSwitcher:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours","minutes","seconds"]),views:Ee.arrayOf(Ee.oneOf(["hours","minutes","seconds"]).isRequired)}),St("MuiDigitalClock",["root","list","item"]);const Ow=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Mw=go(Vx,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>({overflowY:"auto",width:"100%",scrollBehavior:e.alreadyRendered?"smooth":"auto",maxHeight:232}))),zw=go(Wf,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Dw=go(Fu,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:yr(e.palette.primary.main,e.palette.action.focusOpacity)}}))),Tw=k.forwardRef((function(e,t){var n,r,o;const i=wy(),a=k.useRef(null),s=dt(t,a),l=fo({props:e,name:"MuiDigitalClock"}),{ampm:c=i.is12HourCycleInCurrentLocale(),timeStep:u=30,autoFocus:d,components:p,componentsProps:f,slots:m,slotProps:h,value:g,defaultValue:v,referenceDate:A,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:b,minTime:x,disableFuture:w,disablePast:j,minutesStep:C=1,shouldDisableClock:O,shouldDisableTime:M,onChange:z,view:D,openTo:T,onViewChange:P,focusedView:N,onFocusedViewChange:E,className:B,disabled:L,readOnly:I,views:S=["hours"],skipDisabled:W=!1,timezone:H}=l,R=Rt(l,Ow),{value:F,handleValueChange:V,timezone:Q}=zy({name:"DigitalClock",timezone:H,value:g,defaultValue:v,onChange:z,valueManager:vy}),X=jy(),Z=Cy(Q),G=k.useMemo((()=>re({},l,{alreadyRendered:!!a.current})),[l]),U=(e=>{const{classes:t}=e;return Et({root:["root"],list:["list"],item:["item"]},Cw,t)})(G),q=null!=(n=null!=(r=null==m?void 0:m.digitalClockItem)?r:null==p?void 0:p.DigitalClockItem)?n:Dw,K=ko({elementType:q,externalSlotProps:null!=(o=null==h?void 0:h.digitalClockItem)?o:null==f?void 0:f.digitalClockItem,ownerState:{},className:U.item}),J=Aw({value:F,referenceDate:A,utils:i,props:l,timezone:Q}),_=ut((e=>V(e,"finish"))),{setValueAndGoToNextView:$}=Yb({view:D,views:S,openTo:T,onViewChange:P,onChange:_,focusedView:N,onFocusedViewChange:E}),ee=ut((e=>{$(e,"finish")}));k.useEffect((()=>{if(null===a.current)return;const e=a.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!e)return;const t=e.offsetTop;a.current.scrollTop=t-4}));const te=k.useCallback((e=>{const t=GA(y,i);return!!(x&&t(x,e)||b&&t(e,b)||w&&t(e,Z)||j&&t(Z,e))||!!(i.getMinutes(e)%C!=0||null!=O&&O(i.toJsDate(e).getTime(),"hours")||M&&M(e,"hours"))}),[y,i,x,b,w,Z,j,C,O,M]),ne=k.useMemo((()=>{const e=i.startOfDay(J);return[e,...Array.from({length:Math.ceil(1440/u)-1},((t,n)=>i.addMinutes(e,u*(n+1))))]}),[J,u,i]);return Y.jsx(Mw,re({ref:s,className:$n(U.root,B),ownerState:G},R,{children:Y.jsx(zw,{autoFocusItem:d||!!N,role:"listbox","aria-label":X.timePickerToolbarTitle,className:U.list,children:ne.map((e=>{if(W&&te(e))return null;const t=i.isEqual(e,F);return Y.jsx(q,re({onClick:()=>!I&&ee(e),selected:t,disabled:L||te(e),disableRipple:I,role:"option","aria-disabled":I,"aria-selected":t},K,{children:i.format(e,c?"fullTime12h":"fullTime24h")}),i.toISO(e))}))})}))}));function Pw(e){return It("MuiMultiSectionDigitalClock",e)}function Nw(e){return It("MuiMultiSectionDigitalClock",e)}"production"!==process.env.NODE_ENV&&(Tw.propTypes={ampm:Ee.bool,autoFocus:Ee.bool,classes:Ee.object,className:Ee.string,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disablePast:Ee.bool,focusedView:Ee.oneOf(["hours"]),maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onChange:Ee.func,onFocusedViewChange:Ee.func,onViewChange:Ee.func,openTo:Ee.oneOf(["hours"]),readOnly:Ee.bool,referenceDate:Ee.any,shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,skipDisabled:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timeStep:Ee.number,timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours"]),views:Ee.arrayOf(Ee.oneOf(["hours"]))}),St("MuiMultiSectionDigitalClock",["root"]),St("MuiMultiSectionDigitalClock",["root","item"]);const Ew=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Bw=go(Wf,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({maxHeight:232,width:56,padding:0,overflow:"hidden",scrollBehavior:t.alreadyRendered?"smooth":"auto","&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}}))),kw=go(Fu,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:8,margin:"2px 4px",width:48,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:yr(e.palette.primary.main,e.palette.action.focusOpacity)}}))),Lw=k.forwardRef((function(e,t){var n;const r=k.useRef(null),o=dt(t,r),i=k.useRef(null),a=fo({props:e,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:s,onChange:l,className:c,disabled:u,readOnly:d,items:p,active:f,slots:m,slotProps:h,skipDisabled:g}=a,v=Rt(a,Ew),A=k.useMemo((()=>re({},a,{alreadyRendered:!!r.current})),[a]),y=(e=>{const{classes:t}=e;return Et({root:["root"],item:["item"]},Nw,t)})(A),b=null!=(n=null==m?void 0:m.digitalClockSectionItem)?n:kw;return k.useEffect((()=>{if(null===r.current)return;const e=r.current.querySelector('[role="option"][aria-selected="true"]');if(!e||i.current===e)return void(i.current!==e&&(i.current=e));i.current=e,f&&s&&e.focus();const t=e.offsetTop;r.current.scrollTop=t-4})),Y.jsx(Bw,re({ref:o,className:$n(y.root,c),ownerState:A,autoFocusItem:s&&f,role:"listbox"},v,{children:p.map((e=>{var t,n;if(g&&null!=(t=e.isDisabled)&&t.call(e,e.value))return null;const r=e.isSelected(e.value);return Y.jsx(b,re({onClick:()=>!d&&l(e.value),selected:r,disabled:u||(null==(n=e.isDisabled)?void 0:n.call(e,e.value)),disableRipple:d,role:"option","aria-disabled":d,"aria-label":e.ariaLabel,"aria-selected":r},null==h?void 0:h.digitalClockSectionItem,{children:e.label}),e.label)}))}))})),Iw=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:i,timeStep:a})=>{const s=t?n.getHours(t):null,l=[],c=e=>null!==s&&(r?12===e?12===s||0===s:s===e||s-12===e:s===e),u=r?11:23;for(let t=0;t<=u;t+=a){let a=n.format(n.setHours(e,t),r?"hours12h":"hours24h");const s=i(parseInt(a,10).toString());a=n.formatNumber(a),l.push({value:t,label:a,isSelected:c,isDisabled:o,ariaLabel:s})}return l},Sw=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:i=!0})=>{const a=t=>null!==e&&(i&&e===t);return[...Array.from({length:Math.ceil(60/n)},((e,i)=>{const s=n*i;return{value:s,label:r(s),isDisabled:t,isSelected:a,ariaLabel:o(s.toString())}}))]},Ww=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],Hw=go(Vx,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`}))),Rw=k.forwardRef((function(e,t){const n=wy(),r=fo({props:e,name:"MuiMultiSectionDigitalClock"}),{ampm:o=n.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:a,components:s,componentsProps:l,slots:c,slotProps:u,value:d,defaultValue:p,referenceDate:f,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:h,minTime:g,disableFuture:v,disablePast:A,minutesStep:y=1,shouldDisableClock:b,shouldDisableTime:x,onChange:w,view:j,views:C=["hours","minutes"],openTo:O,onViewChange:M,focusedView:z,onFocusedViewChange:D,className:T,disabled:P,readOnly:N,skipDisabled:E=!1,timezone:B}=r,L=Rt(r,Ww),{value:I,handleValueChange:S,timezone:W}=zy({name:"MultiSectionDigitalClock",timezone:B,value:d,defaultValue:p,onChange:w,valueManager:vy}),H=jy(),R=Cy(W),F=k.useMemo((()=>re({hours:1,minutes:5,seconds:5},i)),[i]),V=Aw({value:I,referenceDate:f,utils:n,props:r,timezone:W}),Q=ut(((e,t,n)=>S(e,t,n))),X=k.useMemo((()=>o&&C.includes("hours")?C.includes("meridiem")?C:[...C,"meridiem"]:C),[o,C]),{view:Z,setValueAndGoToView:G,focusedView:U}=Yb({view:j,views:X,openTo:O,onViewChange:M,onChange:Q,focusedView:z,onFocusedViewChange:D}),q=ut((e=>{G(e,null,"meridiem")})),{meridiemMode:K,handleMeridiemChange:J}=vb(V,o,q,"finish"),_=k.useCallback(((e,t)=>{const r=GA(m,n),i="hours"===t||"minutes"===t&&X.includes("seconds"),a=({start:e,end:t})=>(!g||!r(g,t))&&((!h||!r(e,h))&&((!v||!r(e,R))&&(!A||!r(R,i?t:e)))),s=(e,r=1)=>{if(e%r!=0)return!1;if(null!=b&&b(e,t))return!1;if(x)switch(t){case"hours":return!x(n.setHours(V,e),"hours");case"minutes":return!x(n.setMinutes(V,e),"minutes");case"seconds":return!x(n.setSeconds(V,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=XA(e,K,o),r=n.setHours(V,t);return!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case"minutes":{const t=n.setMinutes(V,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,y)}case"seconds":{const t=n.setSeconds(V,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[o,V,m,h,K,g,y,b,x,n,v,A,R,X]),$=ut(((e,t)=>{const n=X.indexOf(e),r=X[n+1];G(t,r,e)})),ee=k.useCallback((e=>{switch(e){case"hours":return{onChange:e=>{const t=XA(e,K,o);$("hours",n.setHours(V,t))},items:Iw({now:R,value:I,ampm:o,utils:n,isDisabled:e=>P||_(e,"hours"),timeStep:F.hours,resolveAriaLabel:H.hoursClockNumberText})};case"minutes":return{onChange:e=>{$("minutes",n.setMinutes(V,e))},items:Sw({value:n.getMinutes(V),isDisabled:e=>P||_(e,"minutes"),resolveLabel:e=>n.format(n.setMinutes(R,e),"minutes"),timeStep:F.minutes,hasValue:!!I,resolveAriaLabel:H.minutesClockNumberText})};case"seconds":return{onChange:e=>{$("seconds",n.setSeconds(V,e))},items:Sw({value:n.getSeconds(V),isDisabled:e=>P||_(e,"seconds"),resolveLabel:e=>n.format(n.setSeconds(R,e),"seconds"),timeStep:F.seconds,hasValue:!!I,resolveAriaLabel:H.secondsClockNumberText})};case"meridiem":{const e=RA(n,"am"),t=RA(n,"pm");return{onChange:J,items:[{value:"am",label:e,isSelected:()=>!!I&&"am"===K,ariaLabel:e},{value:"pm",label:t,isSelected:()=>!!I&&"pm"===K,ariaLabel:t}]}}default:throw new Error(`Unknown view: ${e} found.`)}}),[R,I,o,n,F.hours,F.minutes,F.seconds,H.hoursClockNumberText,H.minutesClockNumberText,H.secondsClockNumberText,K,$,V,P,_,J]),te=k.useMemo((()=>X.reduce(((e,t)=>re({},e,{[t]:ee(t)})),{})),[X,ee]),ne=r,oe=(e=>{const{classes:t}=e;return Et({root:["root"]},Pw,t)})(ne);return Y.jsx(Hw,re({ref:t,className:$n(oe.root,T),ownerState:ne,role:"group"},L,{children:Object.entries(te).map((([e,t])=>Y.jsx(Lw,{items:t.items,onChange:t.onChange,active:Z===e,autoFocus:null!=a?a:U===e,disabled:P,readOnly:N,slots:null!=c?c:s,slotProps:null!=u?u:l,skipDisabled:E,"aria-label":H.selectViewText(e)},e)))}))}));"production"!==process.env.NODE_ENV&&(Rw.propTypes={ampm:Ee.bool,autoFocus:Ee.bool,classes:Ee.object,className:Ee.string,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disablePast:Ee.bool,focusedView:Ee.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onChange:Ee.func,onFocusedViewChange:Ee.func,onViewChange:Ee.func,openTo:Ee.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:Ee.bool,referenceDate:Ee.any,shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,skipDisabled:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timeSteps:Ee.shape({hours:Ee.number,minutes:Ee.number,seconds:Ee.number}),timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours","meridiem","minutes","seconds"]),views:Ee.arrayOf(Ee.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});const Fw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,ampmInClock:A,components:y,componentsProps:b,slots:x,slotProps:w,readOnly:j,disabled:C,sx:O,autoFocus:M,showViewSwitcher:z,disableIgnoringDatePartForTimeValidation:D,timezone:T})=>Y.jsx(jw,{view:e,onViewChange:t,focusedView:n&&VA(n)?n:null,onFocusedViewChange:r,views:o.filter(VA),value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,ampmInClock:A,components:y,componentsProps:b,slots:x,slotProps:w,readOnly:j,disabled:C,sx:O,autoFocus:M,showViewSwitcher:z,disableIgnoringDatePartForTimeValidation:D,timezone:T}),Vw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,components:A,componentsProps:y,slots:b,slotProps:x,readOnly:w,disabled:j,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:M,timeSteps:z,skipDisabled:D,timezone:T})=>Y.jsx(Tw,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(VA),value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,components:A,componentsProps:y,slots:b,slotProps:x,readOnly:w,disabled:j,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:M,timeStep:null==z?void 0:z.minutes,skipDisabled:D,timezone:T}),Qw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,components:A,componentsProps:y,slots:b,slotProps:x,readOnly:w,disabled:j,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:M,timeSteps:z,skipDisabled:D,timezone:T})=>Y.jsx(Rw,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(VA),value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,components:A,componentsProps:y,slots:b,slotProps:x,readOnly:w,disabled:j,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:M,timeSteps:z,skipDisabled:D,timezone:T}),Xw=k.forwardRef((function(e,t){var n,r,o,i,a,s,l;const c=jy(),u=wy(),d=Db(e,"MuiDesktopTimePicker"),p=null!=(n=d.thresholdToRenderTimeInASingleColumn)?n:24,f=re({hours:1,minutes:5,seconds:5},d.timeSteps),m=1440/(f.hours*f.minutes)<=p,h=m?Vw:Qw,g=re({hours:h,minutes:h,seconds:h,meridiem:h},d.viewRenderers),v=null==(r=d.ampmInClock)||r,A=m?[]:["accept"],y=(null==(o=g.hours)?void 0:o.name)===Qw.name,b=d.ampm&&y?[...d.views,"meridiem"]:d.views,x=re({},d,{ampmInClock:v,timeSteps:f,viewRenderers:g,format:UA(u,d),views:m?["hours"]:b,slots:re({field:Gy,openPickerIcon:Nb},d.slots),slotProps:re({},d.slotProps,{field:e=>{var n;return re({},No(null==(n=d.slotProps)?void 0:n.field,e),Fy(d),{ref:t})},toolbar:re({hidden:!0,ampmInClock:v},null==(i=d.slotProps)?void 0:i.toolbar),actionBar:re({actions:A},null==(a=d.slotProps)?void 0:a.actionBar)})}),{renderPicker:w}=(e=>{var t,n,r,o,i;let{props:a,getOpenDialogAriaText:s}=e,l=Rt(e,Nx);const{slots:c,slotProps:u,className:d,sx:p,format:f,formatDensity:m,timezone:h,label:g,inputRef:v,readOnly:A,disabled:y,autoFocus:b,localeText:x}=a,w=wy(),j=k.useRef(null),C=k.useRef(null),O=st(),M=null!=(t=null==u||null==(n=u.toolbar)?void 0:n.hidden)&&t,{open:z,actions:D,hasUIView:T,layoutProps:P,renderCurrentView:N,shouldRestoreFocus:E,fieldProps:B}=Kb(re({},l,{props:a,inputRef:j,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=null!=(r=c.inputAdornment)?r:Wb,I=Rt(ko({elementType:L,externalSlotProps:null==u?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:a}),Ex),S=null!=(o=c.openPickerButton)?o:Zc,W=Rt(ko({elementType:S,externalSlotProps:null==u?void 0:u.openPickerButton,additionalProps:{disabled:y||A,onClick:D.onOpen,"aria-label":s(B.value,w),edge:I.position},ownerState:a}),Bx),H=c.openPickerIcon,R=c.field,F=ko({elementType:R,externalSlotProps:null==u?void 0:u.field,additionalProps:re({},B,M&&{id:O},{readOnly:A,disabled:y,className:d,sx:p,format:f,formatDensity:m,timezone:h,label:g,autoFocus:b&&!a.open,focused:!!z||void 0}),ownerState:a});T&&(F.InputProps=re({},F.InputProps,{ref:C,[`${I.position}Adornment`]:Y.jsx(L,re({},I,{children:Y.jsx(S,re({},W,{children:Y.jsx(H,re({},null==u?void 0:u.openPickerIcon))}))}))}));const V=re({textField:c.textField},F.slots),Q=null!=(i=c.layout)?i:Px,X=dt(j,F.inputRef,v);let Z=O;M&&(Z=g?`${O}-label`:void 0);const G=re({},u,{toolbar:re({},null==u?void 0:u.toolbar,{titleId:O}),popper:re({"aria-labelledby":Z},null==u?void 0:u.popper)});return{renderPicker:()=>Y.jsxs(LA,{localeText:x,children:[Y.jsx(R,re({},F,{slots:V,slotProps:G,inputRef:X})),Y.jsx(Vb,re({role:"dialog",placement:"bottom-start",anchorEl:C.current},D,{open:z,slots:c,slotProps:G,shouldRestoreFocus:E,children:Y.jsx(Q,re({},P,null==G?void 0:G.layout,{slots:c,slotProps:G,children:N()}))}))]})}})({props:x,valueManager:vy,valueType:"time",getOpenDialogAriaText:null!=(s=null==(l=x.localeText)?void 0:l.openTimePickerDialogue)?s:c.openTimePickerDialogue,validator:Iy});return w()}));function Yw(e){return It("MuiDialogContent",e)}Xw.propTypes={ampm:Ee.bool,ampmInClock:Ee.bool,autoFocus:Ee.bool,className:Ee.string,closeOnSelect:Ee.bool,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disableOpenPicker:Ee.bool,disablePast:Ee.bool,format:Ee.string,formatDensity:Ee.oneOf(["dense","spacious"]),inputRef:Ee.oneOfType([Ee.func,Ee.shape({current:Ee.object})]),label:Ee.node,localeText:Ee.object,maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onAccept:Ee.func,onChange:Ee.func,onClose:Ee.func,onError:Ee.func,onOpen:Ee.func,onSelectedSectionsChange:Ee.func,onViewChange:Ee.func,open:Ee.bool,openTo:Ee.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Ee.oneOf(["landscape","portrait"]),readOnly:Ee.bool,selectedSections:Ee.oneOfType([Ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ee.number,Ee.shape({endIndex:Ee.number.isRequired,startIndex:Ee.number.isRequired})]),shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,skipDisabled:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),thresholdToRenderTimeInASingleColumn:Ee.number,timeSteps:Ee.shape({hours:Ee.number,minutes:Ee.number,seconds:Ee.number}),timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Ee.shape({hours:Ee.func,meridiem:Ee.func,minutes:Ee.func,seconds:Ee.func}),views:Ee.arrayOf(Ee.oneOf(["hours","minutes","seconds"]).isRequired)},St("MuiDialogContent",["root","dividers"]);var Zw=St("MuiDialogTitle",["root"]);const Gw=["className","dividers"],Uw=go("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>re({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Zw.root} + &`]:{paddingTop:0}}))),qw=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=n,i=Rt(n,Gw),a=re({},n,{dividers:o}),s=(e=>{const{classes:t,dividers:n}=e;return Et({root:["root",n&&"dividers"]},Yw,t)})(a);return Y.jsx(Uw,re({className:$n(s.root,r),ownerState:a,ref:t},i))}));"production"!==process.env.NODE_ENV&&(qw.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,dividers:Ee.bool,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var Kw=qw;function Jw(e){return It("MuiDialog",e)}var _w=St("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const $w=k.createContext({});"production"!==process.env.NODE_ENV&&($w.displayName="DialogContext");var ej=$w;const tj=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],nj=go(Oi,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),rj=go(Pi,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),oj=go("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ke(n.scroll)}`]]}})((({ownerState:e})=>re({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),ij=go(Ki,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ke(n.scroll)}`],t[`paperWidth${Ke(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>re({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${_w.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${_w.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${_w.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),aj=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiDialog"}),r=po(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,BackdropComponent:s,BackdropProps:l,children:c,className:u,disableEscapeKeyDown:d=!1,fullScreen:p=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:h,onClose:g,open:v,PaperComponent:A=Ki,PaperProps:y={},scroll:b="paper",TransitionComponent:x=bi,transitionDuration:w=o,TransitionProps:j}=n,C=Rt(n,tj),O=re({},n,{disableEscapeKeyDown:d,fullScreen:p,fullWidth:f,maxWidth:m,scroll:b}),M=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e;return Et({root:["root"],container:["container",`scroll${Ke(n)}`],paper:["paper",`paperScroll${Ke(n)}`,`paperWidth${Ke(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]},Jw,t)})(O),z=k.useRef(),D=st(a),T=k.useMemo((()=>({titleId:D})),[D]);return Y.jsx(rj,re({className:$n(M.root,u),closeAfterTransition:!0,components:{Backdrop:nj},componentsProps:{backdrop:re({transitionDuration:w,as:s},l)},disableEscapeKeyDown:d,onClose:g,open:v,ref:t,onClick:e=>{z.current&&(z.current=null,h&&h(e),g&&g(e,"backdropClick"))},ownerState:O},C,{children:Y.jsx(x,re({appear:!0,in:v,timeout:w,role:"presentation"},j,{children:Y.jsx(oj,{className:$n(M.container),onMouseDown:e=>{z.current=e.target===e.currentTarget},ownerState:O,children:Y.jsx(ij,re({as:A,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":D},y,{className:$n(M.paper,y.className),ownerState:O,children:Y.jsx(ej.Provider,{value:T,children:c})}))})}))}))}));"production"!==process.env.NODE_ENV&&(aj.propTypes={"aria-describedby":Ee.string,"aria-labelledby":Ee.string,BackdropComponent:Ee.elementType,BackdropProps:Ee.object,children:Ee.node,classes:Ee.object,className:Ee.string,disableEscapeKeyDown:Ee.bool,fullScreen:Ee.bool,fullWidth:Ee.bool,maxWidth:Ee.oneOfType([Ee.oneOf(["xs","sm","md","lg","xl",!1]),Ee.string]),onBackdropClick:Ee.func,onClose:Ee.func,open:Ee.bool.isRequired,PaperComponent:Ee.elementType,PaperProps:Ee.object,scroll:Ee.oneOf(["body","paper"]),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),TransitionComponent:Ee.elementType,transitionDuration:Ee.oneOfType([Ee.number,Ee.shape({appear:Ee.number,enter:Ee.number,exit:Ee.number})]),TransitionProps:Ee.object});var sj=aj;const lj=go(sj)({[`& .${_w.container}`]:{outline:0},[`& .${_w.paper}`]:{outline:0,minWidth:320}}),cj=go(Kw)({"&:first-of-type":{padding:0}});function uj(e){var t,n;const{children:r,onDismiss:o,open:i,slots:a,slotProps:s}=e,l=null!=(t=null==a?void 0:a.dialog)?t:lj,c=null!=(n=null==a?void 0:a.mobileTransition)?n:bi;return Y.jsx(l,re({open:i,onClose:o},null==s?void 0:s.dialog,{TransitionComponent:c,TransitionProps:null==s?void 0:s.mobileTransition,PaperComponent:null==a?void 0:a.mobilePaper,PaperProps:null==s?void 0:s.mobilePaper,children:Y.jsx(cj,{children:r})}))}const dj=["props","getOpenDialogAriaText"],pj=k.forwardRef((function(e,t){var n,r,o,i;const a=jy(),s=wy(),l=Db(e,"MuiMobileTimePicker"),c=re({hours:Fw,minutes:Fw,seconds:Fw},l.viewRenderers),u=null!=(n=l.ampmInClock)&&n,d=re({},l,{ampmInClock:u,viewRenderers:c,format:UA(s,l),slots:re({field:Gy},l.slots),slotProps:re({},l.slotProps,{field:e=>{var n;return re({},No(null==(n=l.slotProps)?void 0:n.field,e),Fy(l),{ref:t})},toolbar:re({hidden:!1,ampmInClock:u},null==(r=l.slotProps)?void 0:r.toolbar)})}),{renderPicker:p}=(e=>{var t,n,r;let{props:o,getOpenDialogAriaText:i}=e,a=Rt(e,dj);const{slots:s,slotProps:l,className:c,sx:u,format:d,formatDensity:p,timezone:f,label:m,inputRef:h,readOnly:g,disabled:v,localeText:A}=o,y=wy(),b=k.useRef(null),x=st(),w=null!=(t=null==l||null==(n=l.toolbar)?void 0:n.hidden)&&t,{open:j,actions:C,layoutProps:O,renderCurrentView:M,fieldProps:z}=Kb(re({},a,{props:o,inputRef:b,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),D=s.field,T=ko({elementType:D,externalSlotProps:null==l?void 0:l.field,additionalProps:re({},z,w&&{id:x},!(v||g)&&{onClick:C.onOpen,onKeyDown:(P=C.onOpen,e=>{"Enter"!==e.key&&" "!==e.key||(P(e),e.preventDefault(),e.stopPropagation()),N&&N(e)})},{readOnly:null==g||g,disabled:v,className:c,sx:u,format:d,formatDensity:p,timezone:f,label:m}),ownerState:o});var P,N;T.inputProps=re({},T.inputProps,{"aria-label":i(z.value,y)});const E=re({textField:s.textField},T.slots),B=null!=(r=s.layout)?r:Px,L=dt(b,T.inputRef,h);let I=x;w&&(I=m?`${x}-label`:void 0);const S=re({},l,{toolbar:re({},null==l?void 0:l.toolbar,{titleId:x}),mobilePaper:re({"aria-labelledby":I},null==l?void 0:l.mobilePaper)});return{renderPicker:()=>Y.jsxs(LA,{localeText:A,children:[Y.jsx(D,re({},T,{slots:E,slotProps:S,inputRef:L})),Y.jsx(uj,re({},C,{open:j,slots:s,slotProps:S,children:Y.jsx(B,re({},O,null==S?void 0:S.layout,{slots:s,slotProps:S,children:M()}))}))]})}})({props:d,valueManager:vy,valueType:"time",getOpenDialogAriaText:null!=(o=null==(i=d.localeText)?void 0:i.openTimePickerDialogue)?o:a.openTimePickerDialogue,validator:Iy});return p()}));pj.propTypes={ampm:Ee.bool,ampmInClock:Ee.bool,autoFocus:Ee.bool,className:Ee.string,closeOnSelect:Ee.bool,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disableOpenPicker:Ee.bool,disablePast:Ee.bool,format:Ee.string,formatDensity:Ee.oneOf(["dense","spacious"]),inputRef:Ee.oneOfType([Ee.func,Ee.shape({current:Ee.object})]),label:Ee.node,localeText:Ee.object,maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onAccept:Ee.func,onChange:Ee.func,onClose:Ee.func,onError:Ee.func,onOpen:Ee.func,onSelectedSectionsChange:Ee.func,onViewChange:Ee.func,open:Ee.bool,openTo:Ee.oneOf(["hours","minutes","seconds"]),orientation:Ee.oneOf(["landscape","portrait"]),readOnly:Ee.bool,selectedSections:Ee.oneOfType([Ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ee.number,Ee.shape({endIndex:Ee.number.isRequired,startIndex:Ee.number.isRequired})]),shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours","minutes","seconds"]),viewRenderers:Ee.shape({hours:Ee.func,minutes:Ee.func,seconds:Ee.func}),views:Ee.arrayOf(Ee.oneOf(["hours","minutes","seconds"]).isRequired)};const fj=["desktopModeMediaQuery"],mj=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:r=By}=n,o=Rt(n,fj);return Ya(r,{defaultMatches:!0})?Y.jsx(Xw,re({ref:t},o)):Y.jsx(pj,re({ref:t},o))}));function hj(t){var n=this,r=t.label,o=t.size,i=t.fieldName,a=t.fullWidth,s=t.setValue,l=t.getValues,c=k.useState(null),u=c[0],d=c[1];return e.useEffect((function(){U(n,void 0,void 0,(function(){return q(this,(function(e){return l(i)&&d(mA.convertToOriginal(l(i))),[2]}))}))}),[i]),Y.jsx(LA,{dateAdapter:EA,children:Y.jsx(mj,{label:r,value:u,onChange:function(e){if(e){var t=mA.stringifyTime(e);s(i,t||""),d(e)}},slots:{textField:function(e){return Y.jsx(Rm,Z({},e,{size:o,name:i,fullWidth:a||!0}))}}})})}function gj(e){var t=e.name,r=e.disabled,o=e.label,i=e.size,a=e.showPassword,s=e.setShowPassword;return Y.jsx(dp,{size:i,disabled:r,name:t,type:a?"text":"password",InputProps:{endAdornment:Y.jsx(n.InputAdornment,{position:"end",children:Y.jsx(n.IconButton,{onClick:function(){return s(!a)},edge:"end",children:Y.jsx(jo,{icon:a?"eva:eye-fill":"eva:eye-off-fill"})})})},label:o})}function vj(e){var t=e.handleDrop,r=e.list,o=e.itemComponent;return Y.jsx(O.DragDropContext,{onDragEnd:function(e,n){return t(e)},children:Y.jsx(O.Droppable,{droppableId:"list-container",children:function(e){return Y.jsx("div",Z({className:"list-container"},e.droppableProps,{ref:e.innerRef,children:Y.jsxs(n.Stack,{spacing:3,children:[r.map((function(e,t){return Y.jsx(O.Draggable,{draggableId:e.id,index:t,children:function(n){return Y.jsx("div",Z({className:"item-container",ref:n.innerRef},n.dragHandleProps,n.draggableProps,{children:o(e,t)}))}},e.id)})),e.placeholder]})}))}})})}function Aj(e){var t=e.index,r=e.draggable,o=e.item,i=e.itemComponent,a=e.handleRemove;return Y.jsx(n.Card,{sx:{paddingTop:1,paddingBottom:3,paddingX:r?1:3,cursor:"auto"},children:Y.jsxs(n.Stack,{direction:"row",spacing:2,children:[r&&Y.jsx(n.IconButton,{color:"error",size:"small",sx:{alignSelf:"center",cursor:"move"},children:Y.jsx(jo,{icon:"icon-park:drag"})}),Y.jsxs(n.Stack,{spacing:1.5,width:"100%",children:[Y.jsxs(n.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[Y.jsx(n.Typography,{color:"grey",fontSize:10,variant:"overline",sx:{color:"text.disabled"},children:"["+(t+1)+"]"}),Y.jsx(n.IconButton,{onClick:function(){return a(t)},color:"error",size:"medium",children:Y.jsx(jo,{icon:"eva:trash-2-outline"})})]}),i(t,o)]})]})})}var yj;function bj(e){var t=e.draggable,r=e.handleDrop,o=e.itemComponent,i=e.list,a=e.handleRemove,s=e.direction,l=e.numberOfColumns,c=(null!=s?s:yj.VERTICAL)===yj.VERTICAL,u=c?12:12/(null!=l?l:3);return Y.jsx(Y.Fragment,{children:t?Y.jsx(vj,{handleDrop:r,list:i,itemComponent:function(e,n){return Y.jsx(Aj,{item:e,draggable:t,index:n,itemComponent:o,handleRemove:a})}}):c?Y.jsx(n.Stack,{spacing:3,children:i.map((function(e,n){return Y.jsx(Aj,{draggable:t,item:e,index:n,itemComponent:o,handleRemove:a},e.id)}))}):Y.jsx(n.Grid,{container:!0,spacing:3,children:i.map((function(e,r){return Y.jsx(n.Grid,{item:!0,xs:12,md:u,children:Y.jsx(Aj,{draggable:t,item:e,index:r,itemComponent:o,handleRemove:a},e.id)},e.id)}))})})}function xj(e){var t=e.draggable,r=e.addButtonText,o=e.handleRemove,i=e.itemComponent,a=e.handleDrop,s=e.handleAdd,l=e.list,c=e.direction,u=e.numberOfColumns;return Y.jsxs(n.Stack,{spacing:3,children:[Y.jsx(bj,{handleRemove:o,draggable:t,handleDrop:a,list:l,itemComponent:i,direction:c,numberOfColumns:u}),Y.jsx(n.Button,{size:"small",startIcon:Y.jsx(jo,{icon:"eva:plus-fill"}),onClick:s,sx:{flexShrink:0,alignSelf:"start",padding:1,margin:0},style:{margin:0},children:null!=r?r:"Add"})]})}function wj(e){var t=e.name,r=e.disabled,o=e.label,i=e.getValues,a=e.handleChange;return Y.jsx(n.FormControlLabel,{control:Y.jsx(n.Checkbox,{checked:i(t),onChange:a,name:t,disabled:r}),label:o})}function jj(e){var t=e.title,r=e.children,o=e.type,i=o===Uh.NESTEDSCHEMA||o===Uh.ARRAY||o===Uh.RICH_TEXT_I||o===Uh.RICH_TEXT_II;return Y.jsxs(n.Grid,{item:!0,xs:12,md:i?12:6,sx:{mb:3.5},children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:t}),r]})}function Cj(e){var t=e.fieldschema;return Y.jsx(jj,Z({},e,{type:Uh.ARRAY,children:Y.jsx(zC,Z({},e,{type:Uh.ARRAY,children:function(n,r){return Y.jsx(zC,Z({},e,{type:t.arrayType,value:n}))}}))}))}function Oj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.BOOLEAN},e))}))}function Mj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.COLOR},e))}))}function zj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.DATE},e))}))}function Dj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.ENUM},e))}))}function Tj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.IMAGE},e))}))}function Pj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.LOCALIZEDString},e))}))}function Nj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.LOCATION},e))}))}function Ej(e){return Y.jsx(jj,Z({},e,{type:Uh.NESTEDSCHEMA,children:Y.jsx(zC,Z({type:Uh.NESTEDSCHEMA},e))}))}function Bj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.REFERENCE},e))}))}function kj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.STRING},e))}))}function Lj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.RICH_TEXT_I},e))}))}function Ij(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.RICH_TEXT_II},e))}))}function Sj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.EXTERNAL_LINK},e))}))}function Wj(e){return Y.jsx(jj,Z({},e,{children:Y.jsx(zC,Z({type:Uh.MULTIPLE_TEXT},e))}))}function Hj(e){var t,n=e.property,r=e.schema,o=e.record,i=e.userpath,a=e.resources,s=n.key,l=n.path,c=r[s],u=null==n?void 0:n.value,d=o[s],p={fieldkey:s,key:s,title:u,value:d,resources:a,userpath:i,path:l,fieldschema:c,color:"black",type:c.type};switch(c.type){case Uh.STRING:return/^#[0-9A-F]{6}$/i.test(d)?Y.jsx(Mj,Z({},p)):"object"==typeof d?Y.jsx(kj,Z({},p,{title:u||MC,value:d&&d[0]&&null!==(t=Hg.getLocalizedString(d))&&void 0!==t?t:MC})):Y.jsx(kj,Z({},p));case Uh.NUMBER:case Uh.OBJECTID:case Uh.PHONENUMBER:case Uh.TIMEPICKER:return Y.jsx(kj,Z({},p));case Uh.DATE:return Y.jsx(zj,Z({},p));case Uh.LOCATION:return Y.jsx(Nj,Z({},p,{value:{address:d.address,longitude:d.longitude,latitude:d.latitude}}));case Uh.ENUM:return Y.jsx(Dj,Z({},p,{enumvalues:c.enumValues}));case Uh.IMAGE:return Y.jsx(Tj,Z({},p));case Uh.BOOLEAN:return Y.jsx(Oj,Z({},p));case Uh.NESTEDSCHEMA:return Y.jsx(Ej,Z({},p,{fieldschema:r[s]}));case Uh.LOCALIZEDString:return Y.jsx(Pj,Z({},p));case Uh.RICH_TEXT_I:return Y.jsx(Lj,Z({},p));case Uh.RICH_TEXT_II:return Y.jsx(Ij,Z({},p));case Uh.ARRAY:return Y.jsx(Cj,Z({},p,{fieldschema:c,enumvalues:c.enumValues}));case Uh.REFERENCE:return Y.jsx(Bj,Z({},p));case Uh.MULTIPLE_TEXT:return Y.jsx(Wj,Z({},p));case Uh.EXTERNAL_LINK:return Y.jsx(Sj,Z({},p))}return Y.jsx(Y.Fragment,{})}function Rj(e){var t,r=e.fieldschema,o=e.value;return Y.jsx(n.Card,{sx:{py:3,px:3},children:Y.jsx(n.Grid,{container:!0,children:null===(t=null==r?void 0:r.keys)||void 0===t?void 0:t.map((function(t){var n;return(n=JSON.parse(JSON.stringify(null==r?void 0:r.schema[t]))).key=t,o&&Y.jsx(Hj,Z({},e,{property:n,schema:r.schema,record:o}),n.key)}))})})}function Fj(e){var t=e.value;return Y.jsx(n.Card,{sx:{py:3,px:3},children:Y.jsx(n.Stack,{direction:"column",spacing:2,children:t.map((function(e,t){return Y.jsxs(n.Stack,{direction:"row",spacing:1,children:[Y.jsx(La,{disabledEffect:!0,visibleByDefault:!0,alt:"empty content",src:Vj(e.key),sx:{width:30,height:20}}),Y.jsx(n.Typography,{fontWeight:600,fontSize:14,children:e.value})]},t+e.key)}))})})}function Vj(e){switch(e){case Tg.ARABIC:return pA.ARABIC_FLAG;case Tg.ENGLISH:return pA.ENGLISH_FLAG;case Tg.FRENCH:return pA.FRENCH_FLAG;case Tg.GERMAN:return pA.GERMAN_FLAG;default:return pA.ENGLISH_FLAG}}"production"!==process.env.NODE_ENV&&(mj.propTypes={ampm:Ee.bool,ampmInClock:Ee.bool,autoFocus:Ee.bool,className:Ee.string,closeOnSelect:Ee.bool,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,desktopModeMediaQuery:Ee.string,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disableOpenPicker:Ee.bool,disablePast:Ee.bool,format:Ee.string,formatDensity:Ee.oneOf(["dense","spacious"]),inputRef:Ee.oneOfType([Ee.func,Ee.shape({current:Ee.object})]),label:Ee.node,localeText:Ee.object,maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onAccept:Ee.func,onChange:Ee.func,onClose:Ee.func,onError:Ee.func,onOpen:Ee.func,onSelectedSectionsChange:Ee.func,onViewChange:Ee.func,open:Ee.bool,openTo:Ee.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Ee.oneOf(["landscape","portrait"]),readOnly:Ee.bool,selectedSections:Ee.oneOfType([Ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ee.number,Ee.shape({endIndex:Ee.number.isRequired,startIndex:Ee.number.isRequired})]),shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,skipDisabled:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),thresholdToRenderTimeInASingleColumn:Ee.number,timeSteps:Ee.shape({hours:Ee.number,minutes:Ee.number,seconds:Ee.number}),timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Ee.shape({hours:Ee.func,meridiem:Ee.func,minutes:Ee.func,seconds:Ee.func}),views:Ee.arrayOf(Ee.oneOf(["hours","minutes","seconds"]).isRequired)}),function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"}(yj||(yj={}));var Qj={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},Xj=function(e,t,n){var r,o=Qj[e];return r="string"==typeof o?o:1===t?o.one:2===t?o.two:t<=10?o.threeToTen.replace("{{count}}",String(t)):o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"في خلال "+r:"منذ "+r:r};function Yj(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Zj={date:Yj({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Yj({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Yj({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Gj={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"};function Uj(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function qj(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var Kj,Jj={code:"ar-SA",formatDistance:Xj,formatLong:Zj,formatRelative:function(e,t,n,r){return Gj[e]},localize:{ordinalNumber:function(e){return String(e)},era:Uj({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:Uj({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Uj({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:Uj({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:Uj({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Kj={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Kj.matchPattern);if(!n)return null;var r=n[0],o=e.match(Kj.parsePattern);if(!o)return null;var i=Kj.valueCallback?Kj.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:qj({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:qj({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:qj({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:qj({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:qj({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function _j(e,t,n){var r=t||"dd MMM yyyy";return e?z.format(new Date(e),r,{locale:n?Jj:void 0}):""}function $j(e,t){var n=e.getHours(),r=e.getMinutes(),o=n>=12?"pm":"am";return t===Tg.ARABIC&&(o=function(e){switch(e){case"am":default:return"صباحاً";case"pm":return"مساءاً"}}(o)),(n=(n%=12)||12)+":"+(r=r<10?"0"+r:r)+" "+o}function eC(e){return e%10===e?"0".concat(e.toString()):e.toString()}function tC(e){var t=e.value,r=e.fieldschema;e.fieldkey;var o=new Date(t),i=Hg.isEnglish(),a=_j(o,void 0,!i);return Y.jsxs(n.Stack,{alignItems:"start",direction:"row",spacing:1,children:[Y.jsx(n.Typography,{children:a}),r&&r.withTime&&Y.jsx(n.Typography,{color:"rgb(99, 115, 129)",children:"".concat($j(o,i?Tg.ENGLISH:Tg.ARABIC))})]})}function nC(e){var t,r,o,i,a=e.value,s=e.enumvalues,l=s&&!Object.keys(s).find((function(e){return e===a||s[e]===a})),c=null!==(r=null===(t=s[a])||void 0===t?void 0:t.label)&&void 0!==r?r:a,u=l?"error":void 0,d=DC.enhance(c),p=null===(o=s[a])||void 0===o?void 0:o.color,f=null===(i=s[a])||void 0===i?void 0:i.labelColor;return Y.jsx(n.Chip,{label:d,color:u,size:"small",sx:{background:p,color:f}})}function rC(e){var t=e.value;return Y.jsx(n.Typography,Z({},e,{noWrap:!0,children:t.longitude&&t.latitude?Y.jsx(n.Link,{align:"justify",style:{cursor:"pointer"},onClick:function(){return e=t.latitude,n=t.longitude,void window.open("https://maps.google.com?q="+e+","+n);var e,n},children:t.address}):Y.jsx(n.Typography,Z({style:{fontWeight:50}},e,{noWrap:!0,children:t.address}))}))}function oC(e){var t=e.value,r=e.children;return G(e,["value","children"]),Y.jsx(n.Card,{sx:{py:3,px:3},children:Y.jsx(n.Grid,{children:t.map((function(e,t){return Y.jsxs(n.Grid,{item:!0,xs:12,sx:{mb:5},children:[Y.jsx(n.Typography,{color:"grey",fontSize:10,paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:"["+(t+1)+"]"}),r&&r(e,t)]},t)}))})})}function iC(e){var t=e.navigateTo,o=e.value,i=r.useNavigate();return Y.jsx(n.Link,{align:"justify",style:{cursor:"pointer"},onClick:function(){return i(t)},children:o})}var aC,sC=function(){function e(){}return e.convertCamelCaseToWord=function(e){if("_id"===e)return"Id";var t=e.replace(/([A-Z])/g," $1"),n=t.charAt(0).toUpperCase()+t.slice(1);return" "===n.charAt(0)&&(n=n.substring(1)),n},e.lowerCaseFirstLetter=function(e){return e.charAt(0).toLocaleLowerCase()+e.slice(1)},e.upperCaseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.checkRefId=function(e){return"Id"===e.slice(-2)},e}();function lC(e,t){var n=e.properties,r=e.permissions,o=n.modelName,i=sC.lowerCaseFirstLetter(o),a="".concat(i,"_").concat(t);return!r||r[a]}function cC(e){var t=e.value,n="string"==typeof t?t:t.url?t.url:"",r="image"===cs(n)?n:us(cs(n));return Y.jsx("img",{src:r,alt:r,height:130,style:{borderRadius:"5px",objectFit:"contain",cursor:"pointer"},onClick:function(){return window.open(n,"_blank")}})}!function(e){e.VIEW="view",e.CREATE="create",e.EDIT="edit",e.DELETE="delete"}(aC||(aC={}));var uC=require("pluralize");function dC(e){var t,r=e.value,o=e.fieldkey,i=e.userpath,a=e.fieldschema,s=e.resources,l=e.path,c=null!=l?l:null==a?void 0:a.path,u=s[null!=c?c:""],d=u.properties,p=d.title,f=(null===(t=d.actions.show)||void 0===t?void 0:t.isAccessible)&&lC(u,aC.VIEW),m=fA.getReferenceImage(u,r);function h(){return mA.checkLocalizedString(s,null!=c?c:"",p)?Hg.getLocalizedString(r[p]):r[p]?r[p]:r._id?r._id:MC}return Y.jsxs(n.Stack,{direction:"row",spacing:1,alignItems:"center",children:[m&&Y.jsx(n.Avatar,{alt:"-",src:m}),Y.jsxs(n.Stack,{spacing:1,alignItems:"start",children:[a&&a.mediaUploader&&r&&r.url&&Y.jsx(cC,Z({},e,{value:r.url,type:Uh.IMAGE})),Y.jsx(n.Typography,Z({},e.props,{children:f?Y.jsx(iC,{value:h(),navigateTo:i[c||uC.singular(o)].show(r._id)}):Y.jsx(zC,Z({},e,{type:Uh.STRING,value:h()}))}))]})]})}function pC(e){var t,r,o,i=e.value,a=e.userpath,s=e.resources,l=e.path,c=e.fieldschema,u=s[null!==(t=null==c?void 0:c.path)&&void 0!==t?t:""],d=u.properties,p=null==d?void 0:d.title,f=(null===(o=null===(r=null==d?void 0:d.actions)||void 0===r?void 0:r.show)||void 0===o?void 0:o.isAccessible)&&lC(u,aC.VIEW),m=fA.getReferenceImage(u,i);function h(){var e;return mA.checkLocalizedString(s,null!==(e=null==c?void 0:c.path)&&void 0!==e?e:"",p)?Hg.getLocalizedString(i[p]):i[p]}if(i)return i.map((function(t){return Y.jsxs(n.Stack,{direction:"row",spacing:1,alignItems:"center",children:[m&&Y.jsx(n.Avatar,{alt:"-",src:m}),Y.jsx(n.Typography,Z({},e.props,{children:f?Y.jsx(iC,{value:h(),navigateTo:a[null!=l?l:""].show(t._id)}):Y.jsx(zC,Z({},e,{type:Uh.STRING,value:h()}))}))]},t._id)}))}function fC(e){var t=e.value,r=e.props;return null===t?Y.jsx(n.Typography,Z({},r,{children:MC})):"[object Array]"!==Object.prototype.toString.call(t)?Y.jsx(dC,Z({},e)):t?Y.jsx(pC,Z({},e)):Y.jsx(Y.Fragment,{})}function mC(e){var t=e.htmlString;return Y.jsx("div",{children:Y.jsx(g,{value:t,readOnly:!0,theme:"bubble"})})}var hC,gC={exports:{}},vC={exports:{}};function AC(){return hC||(hC=1,vC.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:G(e)}function r(e){return s(e)?e:U(e)}function o(e){return l(e)?e:q(e)}function i(e){return a(e)&&!c(e)?e:K(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[p])}function l(e){return!(!e||!e[f])}function c(e){return s(e)||l(e)}function u(e){return!(!e||!e[m])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=l,n.isAssociative=c,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",m="@@__IMMUTABLE_ORDERED__@@",h="delete",g=5,v=1<<g,A=v-1,y={},b={value:!1},x={value:!1};function w(e){return e.value=!1,e}function j(e){e&&(e.value=!0)}function C(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function M(e){return void 0===e.size&&(e.size=e.__iterate(D)),e.size}function z(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?M(e)+t:t}function D(){return!0}function T(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function P(e,t){return E(e,t,0)}function N(e,t){return E(e,t,t)}function E(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var B=0,k=1,L=2,I="function"==typeof Symbol&&Symbol.iterator,S="@@iterator",W=I||S;function H(e){this.next=e}function R(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function F(){return{value:void 0,done:!0}}function V(e){return!!Y(e)}function Q(e){return e&&"function"==typeof e.next}function X(e){var t=Y(e);return t&&t.call(e)}function Y(e){var t=e&&(I&&e[I]||e[S]);if("function"==typeof t)return t}function Z(e){return e&&"number"==typeof e.length}function G(e){return null==e?ae():a(e)?e.toSeq():ce(e)}function U(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function q(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function K(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}H.prototype.toString=function(){return"[Iterator]"},H.KEYS=B,H.VALUES=k,H.ENTRIES=L,H.prototype.inspect=H.prototype.toSource=function(){return this.toString()},H.prototype[W]=function(){return this},t(G,n),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(e,t){return de(this,e,t,!0)},G.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(U,G),U.prototype.toKeyedSeq=function(){return this},t(q,G),q.of=function(){return q(arguments)},q.prototype.toIndexedSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq [","]")},q.prototype.__iterate=function(e,t){return de(this,e,t,!1)},q.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(K,G),K.of=function(){return K(arguments)},K.prototype.toSetSeq=function(){return this},G.isSeq=ie,G.Keyed=U,G.Set=K,G.Indexed=q;var J,_,$,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return J||(J=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():Q(e)?new oe(e).fromEntrySeq():V(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return Z(e)?new te(e):Q(e)?new oe(e):V(e)?new re(e):void 0}function de(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new H((function(){var e=o[n?i-a:a];return a++>i?F():R(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function fe(e,t){return t?me(t,e,"",{"":e}):he(e)}function me(e,t,n,r){return Array.isArray(t)?e.call(r,n,q(t).map((function(n,r){return me(e,n,r,t)}))):ge(t)?e.call(r,n,U(t).map((function(n,r){return me(e,n,r,t)}))):t}function he(e){return Array.isArray(e)?q(e).map(he).toList():ge(e)?U(e).map(he).toMap():e}function ge(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Ae(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,y)):!ve(e.get(r,y),t))return d=!1,!1}));return d&&e.size===p}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(_)return _;_=this}}function be(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if($)return $;$=this}}function we(){throw TypeError("Abstract")}function je(){}function Ce(){}function Oe(){}G.prototype[ee]=!0,t(te,q),te.prototype.get=function(e,t){return this.has(e)?this._array[z(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new H((function(){return o>r?F():R(e,o,n[t?r-o++:o++])}))},t(ne,U),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new H((function(){var a=r[t?o-i:i];return i++>o?F():R(e,a,n[a])}))},ne.prototype[m]=!0,t(re,q),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=X(this._iterable),r=0;if(Q(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=X(this._iterable);if(!Q(n))return new H(F);var r=0;return new H((function(){var t=n.next();return t.done?t:R(e,r++,t.value)}))},t(oe,q),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new H((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return R(e,o,r[o++])}))},t(ye,q),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return ve(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:new ye(this._value,N(t,n)-P(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new H((function(){return r<n.size?R(e,r++,n._value):F()}))},ye.prototype.equals=function(e){return e instanceof ye?ve(this._value,e._value):Ae(e)},t(xe,q),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+z(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return T(e,t,this.size)?this:(e=P(e,this.size),(t=N(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new H((function(){var a=o;return o+=t?-r:r,i>n?F():R(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:Ae(this,e)},t(we,n),t(je,we),t(Ce,we),t(Oe,we),we.Keyed=je,we.Indexed=Ce,we.Set=Oe;var Me="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ze(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return ze(n)}if("string"===t)return e.length>He?Te(e):Pe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Ne(e);if("function"==typeof e.toString)return Pe(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Te(e){var t=Ve[e];return void 0===t&&(t=Pe(e),Fe===Re&&(Fe=0,Ve={}),Fe++,Ve[e]=t),t}function Pe(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ze(t)}function Ne(e){var t;if(Ie&&void 0!==(t=Le.get(e)))return t;if(void 0!==(t=e[We]))return t;if(!Be){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[We]))return t;if(void 0!==(t=ke(e)))return t}if(t=++Se,1073741824&Se&&(Se=0),Ie)Le.set(e,t);else{if(void 0!==Ee&&!1===Ee(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Be)Object.defineProperty(e,We,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[We]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[We]=t}}return t}var Ee=Object.isExtensible,Be=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ke(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Le,Ie="function"==typeof WeakMap;Ie&&(Le=new WeakMap);var Se=0,We="__immutablehash__";"function"==typeof Symbol&&(We=Symbol(We));var He=16,Re=255,Fe=0,Ve={};function Qe(e){be(e!==1/0,"Cannot perform this action with an infinite size.")}function Xe(e){return null==e?ot():Ye(e)&&!u(e)?e:ot().withMutations((function(t){var n=r(e);Qe(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ye(e){return!(!e||!e[Ge])}t(Xe,je),Xe.prototype.toString=function(){return this.__toString("Map {","}")},Xe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Xe.prototype.set=function(e,t){return it(this,e,t)},Xe.prototype.setIn=function(e,t){return this.updateIn(e,y,(function(){return t}))},Xe.prototype.remove=function(e){return it(this,e,y)},Xe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return y}))},Xe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Xe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=gt(this,wn(e),t,n);return r===y?void 0:r},Xe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Xe.prototype.merge=function(){return pt(this,void 0,arguments)},Xe.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Xe.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Xe.prototype.mergeDeep=function(){return pt(this,ft,arguments)},Xe.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,mt(t),n)},Xe.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Xe.prototype.sort=function(e){return Vt(dn(this,e))},Xe.prototype.sortBy=function(e,t){return Vt(dn(this,t,e))},Xe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Xe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new C)},Xe.prototype.asImmutable=function(){return this.__ensureOwner()},Xe.prototype.wasAltered=function(){return this.__altered},Xe.prototype.__iterator=function(e,t){return new et(this,e,t)},Xe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Xe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Xe.isMap=Ye;var Ze,Ge="@@__IMMUTABLE_MAP__@@",Ue=Xe.prototype;function qe(e,t){this.ownerID=e,this.entries=t}function Ke(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function _e(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return R(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ue);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return Ze||(Ze=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=w(b),a=w(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===y?-1:1:0)}else{if(n===y)return e;o=1,r=new qe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===y?e:(j(s),j(a),new $e(t,r,[o,i]))}function st(e){return e.constructor===$e||e.constructor===_e}function lt(e,t,n,r,o){if(e.keyHash===r)return new _e(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&A,s=(0===n?r:r>>>n)&A;return new Ke(t,1<<a|1<<s,a===s?[lt(e,t,n+g,r,o)]:(i=new $e(t,r,o),a<s?[e,i]:[i,e]))}function ct(e,t,n,r){e||(e=new C);for(var o=new $e(e,De(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ut(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,l=1,c=t.length;s<c;s++,l<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=l,a[i++]=u)}return new Ke(e,o,a)}function dt(e,t,n,r,o){for(var i=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Je(e,i+1,a)}function pt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],l=r(s);a(s)||(l=l.map((function(e){return fe(e)}))),o.push(l)}return ht(e,t,o)}function ft(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function mt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function ht(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,y,(function(e){return e===y?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function gt(e,t,n,r){var o=e===y,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}be(o||e&&e.set,"invalid keyPath");var l=i.value,c=o?y:e.get(l,y),u=gt(c,t,n,r);return u===c?e:u===y?e.remove(l):(o?ot():e).set(l,u)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function At(e,t,n,r){var o=r?e:O(e);return o[t]=n,o}function yt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function bt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ue[Ge]=!0,Ue[h]=Ue.remove,Ue.removeIn=Ue.deleteIn,qe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},qe.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===y,l=this.entries,c=0,u=l.length;c<u&&!ve(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===o:s)return this;if(j(a),(s||!d)&&j(i),!s||1!==l.length){if(!d&&!s&&l.length>=xt)return ct(e,l,r,o);var p=e&&e===this.ownerID,f=p?l:O(l);return d?s?c===u-1?f.pop():f[c]=f.pop():f[c]=[r,o]:f.push([r,o]),p?(this.entries=f,this):new qe(e,f)}},Ke.prototype.get=function(e,t,n,r){void 0===t&&(t=De(n));var o=1<<((0===e?t:t>>>e)&A),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+g,t,n,r)},Ke.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=De(r));var s=(0===t?n:n>>>t)&A,l=1<<s,c=this.bitmap,u=0!=(c&l);if(!u&&o===y)return this;var d=vt(c&l-1),p=this.nodes,f=u?p[d]:void 0,m=at(f,e,t+g,n,r,o,i,a);if(m===f)return this;if(!u&&m&&p.length>=wt)return dt(e,p,c,s,m);if(u&&!m&&2===p.length&&st(p[1^d]))return p[1^d];if(u&&m&&1===p.length&&st(m))return m;var h=e&&e===this.ownerID,v=u?m?c:c^l:c|l,b=u?m?At(p,d,m,h):bt(p,d,h):yt(p,d,m,h);return h?(this.bitmap=v,this.nodes=b,this):new Ke(e,v,b)},Je.prototype.get=function(e,t,n,r){void 0===t&&(t=De(n));var o=(0===e?t:t>>>e)&A,i=this.nodes[o];return i?i.get(e+g,t,n,r):r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=De(r));var s=(0===t?n:n>>>t)&A,l=o===y,c=this.nodes,u=c[s];if(l&&!u)return this;var d=at(u,e,t+g,n,r,o,i,a);if(d===u)return this;var p=this.count;if(u){if(!d&&--p<jt)return ut(e,c,p,s)}else p++;var f=e&&e===this.ownerID,m=At(c,s,d,f);return f?(this.count=p,this.nodes=m,this):new Je(e,p,m)},_e.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},_e.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=De(r));var s=o===y;if(n!==this.keyHash)return s?this:(j(a),j(i),lt(this,e,t,n,[r,o]));for(var l=this.entries,c=0,u=l.length;c<u&&!ve(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===o:s)return this;if(j(a),(s||!d)&&j(i),s&&2===u)return new $e(e,this.keyHash,l[1^c]);var p=e&&e===this.ownerID,f=p?l:O(l);return d?s?c===u-1?f.pop():f[c]=f.pop():f[c]=[r,o]:f.push([r,o]),p?(this.entries=f,this):new _e(e,this.keyHash,f)},$e.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},$e.prototype.update=function(e,t,n,r,o,i,a){var s=o===y,l=ve(r,this.entry[0]);return(l?o===this.entry[1]:s)?this:(j(a),s?void j(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new $e(e,this.keyHash,[r,o]):(j(i),lt(this,e,t,De(r),[r,o])))},qe.prototype.iterate=_e.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ke.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},$e.prototype.iterate=function(e,t){return e(this.entry)},t(et,H),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return F()};var xt=v/4,wt=v/2,jt=v/4;function Ct(e){var t=kt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Qe(r),r>0&&r<v?Bt(0,r,g,null,new Dt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[Mt])}t(Ct,Ce),Ct.of=function(){return this(arguments)},Ct.prototype.toString=function(){return this.__toString("List [","]")},Ct.prototype.get=function(e,t){if((e=z(this,e))>=0&&e<this.size){var n=Wt(this,e+=this._origin);return n&&n.array[e&A]}return t},Ct.prototype.set=function(e,t){return Lt(this,e,t)},Ct.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ct.prototype.insert=function(e,t){return this.splice(e,0,t)},Ct.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):kt()},Ct.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ht(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},Ct.prototype.pop=function(){return Ht(this,0,-1)},Ct.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ht(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},Ct.prototype.shift=function(){return Ht(this,1)},Ct.prototype.merge=function(){return Rt(this,void 0,arguments)},Ct.prototype.mergeWith=function(t){return Rt(this,t,e.call(arguments,1))},Ct.prototype.mergeDeep=function(){return Rt(this,ft,arguments)},Ct.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Rt(this,mt(t),n)},Ct.prototype.setSize=function(e){return Ht(this,0,e)},Ct.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:Ht(this,P(e,n),N(t,n))},Ct.prototype.__iterator=function(e,t){var n=0,r=Et(this,t);return new H((function(){var t=r();return t===Nt?F():R(e,n++,t)}))},Ct.prototype.__iterate=function(e,t){for(var n,r=0,o=Et(this,t);(n=o())!==Nt&&!1!==e(n,r++,this););return r},Ct.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Bt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Ct.isList=Ot;var Mt="@@__IMMUTABLE_LIST__@@",zt=Ct.prototype;function Dt(e,t){this.array=e,this.ownerID=t}zt[Mt]=!0,zt[h]=zt.remove,zt.setIn=Ue.setIn,zt.deleteIn=zt.removeIn=Ue.removeIn,zt.update=Ue.update,zt.updateIn=Ue.updateIn,zt.mergeIn=Ue.mergeIn,zt.mergeDeepIn=Ue.mergeDeepIn,zt.withMutations=Ue.withMutations,zt.asMutable=Ue.asMutable,zt.asImmutable=Ue.asImmutable,zt.wasAltered=Ue.wasAltered,Dt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&A;if(r>=this.array.length)return new Dt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-g,n))===a&&i)return this}if(i&&!o)return this;var s=St(this,e);if(!i)for(var l=0;l<r;l++)s.array[l]=void 0;return o&&(s.array[r]=o),s},Dt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&A;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-g,n))===i&&o===this.array.length-1)return this}var a=St(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Tt,Pt,Nt={};function Et(e,t){var n=e._origin,r=e._capacity,o=Ft(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,l=a>n?0:n-a,c=r-a;return c>v&&(c=v),function(){if(l===c)return Nt;var e=t?--c:l++;return s&&s[e]}}function l(e,o,i){var s,l=e&&e.array,c=i>n?0:n-i>>o,u=1+(r-i>>o);return u>v&&(u=v),function(){for(;;){if(s){var e=s();if(e!==Nt)return e;s=null}if(c===u)return Nt;var n=t?--u:c++;s=a(l&&l[n],o-g,i+(n<<o))}}}}function Bt(e,t,n,r,o,i,a){var s=Object.create(zt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function kt(){return Tt||(Tt=Bt(0,0,g))}function Lt(e,t,n){if((t=z(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ht(e,t).set(0,n):Ht(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=w(x);return t>=Ft(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Bt(e._origin,e._capacity,e._level,o,r):e}function It(e,t,n,r,o,i){var a,s=r>>>n&A,l=e&&s<e.array.length;if(!l&&void 0===o)return e;if(n>0){var c=e&&e.array[s],u=It(c,t,n-g,r,o,i);return u===c?e:((a=St(e,t)).array[s]=u,a)}return l&&e.array[s]===o?e:(j(i),a=St(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function St(e,t){return t&&e&&t===e.ownerID?e:new Dt(e?e.array.slice():[],t)}function Wt(e,t){if(t>=Ft(e._capacity))return e._tail;if(t<1<<e._level+g){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&A],r-=g;return n}}function Ht(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new C,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,c=e._root,u=0;a+u<0;)c=new Dt(c&&c.array.length?[void 0,c]:[],r),u+=1<<(l+=g);u&&(a+=u,o+=u,s+=u,i+=u);for(var d=Ft(i),p=Ft(s);p>=1<<l+g;)c=new Dt(c&&c.array.length?[c]:[],r),l+=g;var f=e._tail,m=p<d?Wt(e,s-1):p>d?new Dt([],r):f;if(f&&p>d&&a<i&&f.array.length){for(var h=c=St(c,r),v=l;v>g;v-=g){var y=d>>>v&A;h=h.array[y]=St(h.array[y],r)}h.array[d>>>g&A]=f}if(s<i&&(m=m&&m.removeAfter(r,0,s)),a>=p)a-=p,s-=p,l=g,c=null,m=m&&m.removeBefore(r,0,a);else if(a>o||p<d){for(u=0;c;){var b=a>>>l&A;if(b!==p>>>l&A)break;b&&(u+=(1<<l)*b),l-=g,c=c.array[b]}c&&a>o&&(c=c.removeBefore(r,l,a-u)),c&&p<d&&(c=c.removeAfter(r,l,p-u)),u&&(a-=u,s-=u)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=c,e._tail=m,e.__hash=void 0,e.__altered=!0,e):Bt(a,s,l,c,m)}function Rt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var l=n[s],c=o(l);c.size>i&&(i=c.size),a(l)||(c=c.map((function(e){return fe(e)}))),r.push(c)}return i>e.size&&(e=e.setSize(i)),ht(e,t,r)}function Ft(e){return e<v?0:e-1>>>g<<g}function Vt(e){return null==e?Yt():Qt(e)?e:Yt().withMutations((function(t){var n=r(e);Qe(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Qt(e){return Ye(e)&&u(e)}function Xt(e,t,n,r){var o=Object.create(Vt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Yt(){return Pt||(Pt=Xt(ot(),kt()))}function Zt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),l=void 0!==s;if(n===y){if(!l)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Xt(r,o)}function Gt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ut(e){this._iter=e,this.size=e.size}function qt(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Jt(e){var t=yn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=bn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===L){var r=e.__iterator(t,n);return new H((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===k?B:k,n)},t}function _t(e,t,n){var r=yn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,y);return i===y?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(L,o);return new H((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return R(r,s,t.call(n,a[1],s,e),o)}))},r}function $t(e,t){var n=yn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Jt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=bn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=yn(e);return r&&(o.has=function(r){var o=e.get(r,y);return o!==y&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,y);return i!==y&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(L,i),s=0;return new H((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return R(o,r?c:s++,u,i)}}))},o}function tn(e,t,n){var r=Xe().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(u(e)?Vt():Xe()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=An(e);return o.map((function(t){return hn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),T(t,n,o))return e;var i=P(t,o),a=N(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var c=yn(e);return c.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(c.get=function(t,n){return(t=z(this,t))>=0&&t<s?e.get(t+i,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,c=0;return e.__iterate((function(e,n){if(!l||!(l=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==s})),c},c.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,l=0;return new H((function(){for(;a++<i;)o.next();if(++l>s)return F();var e=o.next();return r||t===k?e:R(t,l-1,t===B?void 0:e.value[1],e)}))},c}function on(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(L,o),s=!0;return new H((function(){if(!s)return F();var e=a.next();if(e.done)return e;var o=e.value,l=o[0],c=o[1];return t.call(n,c,l,i)?r===L?e:R(r,l,c,e):(s=!1,F())}))},r}function an(e,t,n,r){var o=yn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate((function(e,i,c){if(!s||!(s=t.call(n,e,i,c)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(L,i),l=!0,c=0;return new H((function(){var e,i,u;do{if((e=s.next()).done)return r||o===k?e:R(o,c++,o===B?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],l&&(l=t.call(n,u,i,a))}while(l);return o===L?e:R(o,i,u,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||l(e)&&l(i))return i}var c=new te(o);return n?c=c.toKeyedSeq():l(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function ln(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function l(e,c){var u=this;e.__iterate((function(e,o){return(!t||c<t)&&a(e)?l(e,c+1):!1===r(e,n?o:i++,u)&&(s=!0),!s}),o)}return l(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],l=0;return new H((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(r===L&&(c=c[1]),t&&!(s.length<t)||!a(c))return n?e:R(r,l++,c,e);s.push(i),i=c.__iterator(r,o)}else i=s.pop()}return F()}))},r}function cn(e,t,n){var r=An(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function un(e,t){var n=yn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(k,r),a=0;return new H((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?R(n,a++,t):R(n,a++,o.value,o)}))},n}function dn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?U(i):l(e)?q(i):K(i)}function pn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return fn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return fn(t,e,n)?n:e}))}function fn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function mn(e,t,r){var o=yn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(k,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),X(o?e.reverse():e)})),a=0,s=!1;return new H((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?F():R(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function hn(e,t){return ie(e)?t:e.constructor(t)}function gn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Qe(e.size),M(e)}function An(e){return s(e)?r:l(e)?o:i}function yn(e){return Object.create((s(e)?U:l(e)?q:K).prototype)}function bn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function wn(e){var t=X(e);if(!t){if(!Z(e))throw new TypeError("Expected iterable or array-like: "+e);t=X(n(e))}return t}function jn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);zn(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Xe(i)},o=r.prototype=Object.create(Cn);return o.constructor=r,r}t(Vt,Xe),Vt.of=function(){return this(arguments)},Vt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Vt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Vt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Yt()},Vt.prototype.set=function(e,t){return Zt(this,e,t)},Vt.prototype.remove=function(e){return Zt(this,e,y)},Vt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Vt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Vt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Vt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Xt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Qt,Vt.prototype[m]=!0,Vt.prototype[h]=Vt.prototype.remove,t(Gt,U),Gt.prototype.get=function(e,t){return this._iter.get(e,t)},Gt.prototype.has=function(e){return this._iter.has(e)},Gt.prototype.valueSeq=function(){return this._iter.valueSeq()},Gt.prototype.reverse=function(){var e=this,t=$t(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Gt.prototype.map=function(e,t){var n=this,r=_t(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Gt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Gt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(k,t),r=t?vn(this):0;return new H((function(){var o=n.next();return o.done?o:R(e,t?--r:r++,o.value,o)}))},Gt.prototype[m]=!0,t(Ut,q),Ut.prototype.includes=function(e){return this._iter.includes(e)},Ut.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Ut.prototype.__iterator=function(e,t){var n=this._iter.__iterator(k,t),r=0;return new H((function(){var t=n.next();return t.done?t:R(e,r++,t.value,t)}))},t(qt,K),qt.prototype.has=function(e){return this._iter.includes(e)},qt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(k,t);return new H((function(){var t=n.next();return t.done?t:R(e,t.value,t.value,t)}))},t(Kt,U),Kt.prototype.entrySeq=function(){return this._iter.toSeq()},Kt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){gn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(k,t);return new H((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){gn(r);var o=a(r);return R(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Ut.prototype.cacheResult=Gt.prototype.cacheResult=qt.prototype.cacheResult=Kt.prototype.cacheResult=bn,t(jn,je),jn.prototype.toString=function(){return this.__toString(Mn(this)+" {","}")},jn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},jn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},jn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,ot()))},jn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Mn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},jn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},jn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},jn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var Cn=jn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Mn(e){return e._name||e.constructor.name||"Record"}function zn(e,t){try{t.forEach(Dn.bind(void 0,e))}catch(e){}}function Dn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){be(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Tn(e){return null==e?In():Pn(e)&&!u(e)?e:In().withMutations((function(t){var n=i(e);Qe(n.size),n.forEach((function(e){return t.add(e)}))}))}function Pn(e){return!(!e||!e[En])}Cn[h]=Cn.remove,Cn.deleteIn=Cn.removeIn=Ue.removeIn,Cn.merge=Ue.merge,Cn.mergeWith=Ue.mergeWith,Cn.mergeIn=Ue.mergeIn,Cn.mergeDeep=Ue.mergeDeep,Cn.mergeDeepWith=Ue.mergeDeepWith,Cn.mergeDeepIn=Ue.mergeDeepIn,Cn.setIn=Ue.setIn,Cn.update=Ue.update,Cn.updateIn=Ue.updateIn,Cn.withMutations=Ue.withMutations,Cn.asMutable=Ue.asMutable,Cn.asImmutable=Ue.asImmutable,t(Tn,Oe),Tn.of=function(){return this(arguments)},Tn.fromKeys=function(e){return this(r(e).keySeq())},Tn.prototype.toString=function(){return this.__toString("Set {","}")},Tn.prototype.has=function(e){return this._map.has(e)},Tn.prototype.add=function(e){return kn(this,this._map.set(e,!0))},Tn.prototype.remove=function(e){return kn(this,this._map.remove(e))},Tn.prototype.clear=function(){return kn(this,this._map.clear())},Tn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Tn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Tn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Tn.prototype.merge=function(){return this.union.apply(this,arguments)},Tn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Tn.prototype.sort=function(e){return Sn(dn(this,e))},Tn.prototype.sortBy=function(e,t){return Sn(dn(this,t,e))},Tn.prototype.wasAltered=function(){return this._map.wasAltered()},Tn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Tn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Tn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Tn.isSet=Pn;var Nn,En="@@__IMMUTABLE_SET__@@",Bn=Tn.prototype;function kn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Ln(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Nn||(Nn=Ln(ot()))}function Sn(e){return null==e?Vn():Wn(e)?e:Vn().withMutations((function(t){var n=i(e);Qe(n.size),n.forEach((function(e){return t.add(e)}))}))}function Wn(e){return Pn(e)&&u(e)}Bn[En]=!0,Bn[h]=Bn.remove,Bn.mergeDeep=Bn.merge,Bn.mergeDeepWith=Bn.mergeWith,Bn.withMutations=Ue.withMutations,Bn.asMutable=Ue.asMutable,Bn.asImmutable=Ue.asImmutable,Bn.__empty=In,Bn.__make=Ln,t(Sn,Tn),Sn.of=function(){return this(arguments)},Sn.fromKeys=function(e){return this(r(e).keySeq())},Sn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Sn.isOrderedSet=Wn;var Hn,Rn=Sn.prototype;function Fn(e,t){var n=Object.create(Rn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vn(){return Hn||(Hn=Fn(Yt()))}function Qn(e){return null==e?qn():Xn(e)?e:qn().unshiftAll(e)}function Xn(e){return!(!e||!e[Zn])}Rn[m]=!0,Rn.__empty=Vn,Rn.__make=Fn,t(Qn,Ce),Qn.of=function(){return this(arguments)},Qn.prototype.toString=function(){return this.__toString("Stack [","]")},Qn.prototype.get=function(e,t){var n=this._head;for(e=z(this,e);n&&e--;)n=n.next;return n?n.value:t},Qn.prototype.peek=function(){return this._head&&this._head.value},Qn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Un(e,t)},Qn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Qe(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Un(t,n)},Qn.prototype.pop=function(){return this.slice(1)},Qn.prototype.unshift=function(){return this.push.apply(this,arguments)},Qn.prototype.unshiftAll=function(e){return this.pushAll(e)},Qn.prototype.shift=function(){return this.pop.apply(this,arguments)},Qn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):qn()},Qn.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var n=P(e,this.size);if(N(t,this.size)!==this.size)return Ce.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Un(r,o)},Qn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Un(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Qn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Qn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new H((function(){if(r){var t=r.value;return r=r.next,R(e,n++,t)}return F()}))},Qn.isStack=Xn;var Yn,Zn="@@__IMMUTABLE_STACK__@@",Gn=Qn.prototype;function Un(e,t,n,r){var o=Object.create(Gn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function qn(){return Yn||(Yn=Un(0))}function Kn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Gn[Zn]=!0,Gn.withMutations=Ue.withMutations,Gn.asMutable=Ue.asMutable,Gn.asImmutable=Ue.asImmutable,Gn.wasAltered=Ue.wasAltered,n.Iterator=H,Kn(n,{toArray:function(){Qe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Ut(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Gt(this,!0)},toMap:function(){return Xe(this.toKeyedSeq())},toObject:function(){Qe(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Sn(s(this)?this.valueSeq():this)},toSet:function(){return Tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new qt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Qn(s(this)?this.valueSeq():this)},toList:function(){return Ct(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return hn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(L)},every:function(e,t){Qe(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return hn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Qe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Qe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(B)},map:function(e,t){return hn(this,_t(this,e,t))},reduce:function(e,t,n){var r,o;return Qe(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return hn(this,$t(this,!0))},slice:function(e,t){return hn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return hn(this,dn(this,e))},values:function(){return this.__iterator(k)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return M(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return Ae(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(D)},flatMap:function(e,t){return hn(this,cn(this,e,t))},flatten:function(e){return hn(this,ln(this,e,!0))},fromEntrySeq:function(){return new Kt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=wn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,y):y)===y)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return hn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return hn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return hn(this,dn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return hn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return hn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Jn=n.prototype;Jn[d]=!0,Jn[W]=Jn.values,Jn.__toJS=Jn.toArray,Jn.__toStringMapper=rr,Jn.inspect=Jn.toSource=function(){return this.toString()},Jn.chain=Jn.flatMap,Jn.contains=Jn.includes,function(){try{Object.defineProperty(Jn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Kn(r,{flip:function(){return hn(this,Jt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return hn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return hn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var _n=r.prototype;function $n(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return O(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0;return sr(e.__iterate(n?t?function(e,t){r=31*r+lr(De(e),De(t))|0}:function(e,t){r=r+lr(De(e),De(t))|0}:t?function(e){r=31*r+De(e)|0}:function(e){r=r+De(e)|0}),r)}function sr(e,t){return t=Me(t,3432918353),t=Me(t<<15|t>>>-15,461845907),t=Me(t<<13|t>>>-13,5),t=Me((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ze((t=Me(t^t>>>13,3266489909))^t>>>16)}function lr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}_n[p]=!0,_n[W]=Jn.entries,_n.__toJS=Jn.toObject,_n.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Kn(o,{toKeyedSeq:function(){return new Gt(this,!1)},filter:function(e,t){return hn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return hn(this,$t(this,!1))},slice:function(e,t){return hn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=P(e,e<0?this.count():this.size);var r=this.slice(0,e);return hn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return hn(this,ln(this,e,!1))},get:function(e,t){return(e=z(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=z(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return hn(this,un(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=mn(this.toSeq(),q.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),hn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return hn(this,an(this,e,t,!1))},zip:function(){return hn(this,mn(this,or,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,hn(this,mn(this,e,t))}}),o.prototype[f]=!0,o.prototype[m]=!0,Kn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Jn.includes,Kn(U,r.prototype),Kn(q,o.prototype),Kn(K,i.prototype),Kn(je,r.prototype),Kn(Ce,o.prototype),Kn(Oe,i.prototype);var cr={Iterable:n,Seq:G,Collection:we,Map:Xe,OrderedMap:Vt,List:Ct,Stack:Qn,Set:Tn,OrderedSet:Sn,Record:jn,Range:xe,Repeat:ye,is:ve,fromJS:fe};return cr}()),vC.exports}window,gC.exports=function(e,t){return o={},n.m=r=[function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(1),o=n(0),i=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},a=function(e,t,n){var r,i=e.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(t),entities:Array(i.length).fill(n),blocks:[]}}},s=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},l=function(){return{text:"",inlines:[],entities:[],blocks:[]}},c=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},u=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},d=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},p=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},f=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),m={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function h(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var g=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return x}));var v=" ",A=new RegExp(" ","g"),y=!0;function b(e,t,n,o,i,v){var A=e.nodeName.toLowerCase();if(v){var x=v(A,e);if(x){var w=r.Entity.__create(x.type,x.mutability,x.data||{});return{chunk:d(w)}}}if("#text"===A&&"\n"!==e.textContent)return a(e,t,i);if("br"===A)return{chunk:s()};if("img"===A&&e instanceof HTMLImageElement){var j={};j.src=e.getAttribute&&e.getAttribute("src")||e.src,j.alt=e.alt,j.height=e.style.height,j.width=e.style.width,e.style.float&&(j.alignment=e.style.float);var C=r.Entity.__create("IMAGE","MUTABLE",j);return{chunk:d(C)}}if("video"===A&&e instanceof HTMLVideoElement){var O={};O.src=e.getAttribute&&e.getAttribute("src")||e.src,O.alt=e.alt,O.height=e.style.height,O.width=e.style.width,e.style.float&&(O.alignment=e.style.float);var M=r.Entity.__create("VIDEO","MUTABLE",O);return{chunk:d(M)}}if("iframe"===A&&e instanceof HTMLIFrameElement){var z={};z.src=e.getAttribute&&e.getAttribute("src")||e.src,z.height=e.height,z.width=e.width;var D=r.Entity.__create("EMBEDDED_LINK","MUTABLE",z);return{chunk:d(D)}}var T,P=function(e,t){var n=f.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(A,o);P&&("ul"===A||"ol"===A?(o=A,n+=1):("unordered-list-item"!==P&&"ordered-list-item"!==P&&(o="",n=-1),y?(T=c(P,h(e)),y=!1):T=u(P,n,h(e)))),T=T||l(),t=function(e,t,n){var r,o=m[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var i=t;r=(r=n).withMutations((function(e){var t=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,s=i.style.textDecoration,l=i.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===a&&e.add(m.strong),"underline"===s&&e.add(m.ins),"italic"===l&&e.add(m.em)})).toOrderedSet()}return r}(A,e,t);for(var N=e.firstChild;N;){var E=b(N,t,n,o,g(N)||i,v).chunk;T=p(T,E),N=N.nextSibling}return{chunk:T}}function x(e,t){var n,a,s,l=(n=t,a=e.trim().replace(A,v),(s=i(a))?(y=!0,{chunk:b(s,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(l){var c=l.chunk,u=new o.OrderedMap({});c.entities&&c.entities.forEach((function(e){e&&(u=u.set(e,r.Entity.__get(e)))}));var d=0;return{contentBlocks:c.text.split("\r").map((function(e,t){var n=d+e.length,i=c&&c.inlines.slice(d,n),a=c&&c.entities.slice(d,n),s=new o.List(i.map((function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),r.CharacterMetadata.create(n)})));return d=n,new r.ContentBlock({key:Object(r.genKey)(),type:c&&c.blocks[t]&&c.blocks[t].type||"unstyled",depth:c&&c.blocks[t]&&c.blocks[t].depth,data:c&&c.blocks[t]&&c.blocks[t].data||new o.Map({}),text:e,characterList:s})})),entityMap:u}}return null}}],n.c=o,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2);function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var r,o}(AC(),D);var yC=W(gC.exports),bC={exports:{}};window,bC.exports=function(e,t,n){return i={},r.m=o=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;
|
|
130
|
+
*/!function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,s=32,l=64,c=128,u=256,d=1/0,p=9007199254740991,f=NaN,m=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",l],["rearg",u]],g="[object Arguments]",v="[object Array]",A="[object Boolean]",y="[object Date]",b="[object Error]",x="[object Function]",w="[object GeneratorFunction]",j="[object Map]",C="[object Number]",O="[object Object]",M="[object Promise]",z="[object RegExp]",D="[object Set]",T="[object String]",P="[object Symbol]",N="[object WeakMap]",E="[object ArrayBuffer]",B="[object DataView]",k="[object Float32Array]",L="[object Float64Array]",I="[object Int8Array]",W="[object Int16Array]",H="[object Int32Array]",R="[object Uint8Array]",F="[object Uint8ClampedArray]",V="[object Uint16Array]",Q="[object Uint32Array]",X=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,q=RegExp(G.source),K=RegExp(U.source),J=/<%-([\s\S]+?)%>/g,_=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ie=/^\s+/,ae=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,Ae=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,we=/['\n\r\u2028\u2029\\]/g,je="\\ud800-\\udfff",Ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Me="a-z\\xdf-\\xf6\\xf8-\\xff",ze="A-Z\\xc0-\\xd6\\xd8-\\xde",De="\\ufe0e\\ufe0f",Te="\\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",Pe="['’]",Ne="["+je+"]",Ee="["+Te+"]",Be="["+Ce+"]",ke="\\d+",Le="["+Oe+"]",Ie="["+Me+"]",Se="[^"+je+Te+ke+Oe+Me+ze+"]",We="\\ud83c[\\udffb-\\udfff]",He="[^"+je+"]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+ze+"]",Qe="\\u200d",Xe="(?:"+Ie+"|"+Se+")",Ye="(?:"+Ve+"|"+Se+")",Ze="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Be+"|"+We+")"+"?",qe="["+De+"]?",Ke=qe+Ue+("(?:"+Qe+"(?:"+[He,Re,Fe].join("|")+")"+qe+Ue+")*"),Je="(?:"+[Le,Re,Fe].join("|")+")"+Ke,_e="(?:"+[He+Be+"?",Be,Re,Fe,Ne].join("|")+")",$e=RegExp(Pe,"g"),et=RegExp(Be,"g"),tt=RegExp(We+"(?="+We+")|"+_e+Ke,"g"),nt=RegExp([Ve+"?"+Ie+"+"+Ze+"(?="+[Ee,Ve,"$"].join("|")+")",Ye+"+"+Ge+"(?="+[Ee,Ve+Xe,"$"].join("|")+")",Ve+"?"+Xe+"+"+Ze,Ve+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Je].join("|"),"g"),rt=RegExp("["+Qe+je+Ce+De+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["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"],at=-1,st={};st[k]=st[L]=st[I]=st[W]=st[H]=st[R]=st[F]=st[V]=st[Q]=!0,st[g]=st[v]=st[E]=st[A]=st[B]=st[y]=st[b]=st[x]=st[j]=st[C]=st[O]=st[z]=st[D]=st[T]=st[N]=!1;var lt={};lt[g]=lt[v]=lt[E]=lt[B]=lt[A]=lt[y]=lt[k]=lt[L]=lt[I]=lt[W]=lt[H]=lt[j]=lt[C]=lt[O]=lt[z]=lt[D]=lt[T]=lt[P]=lt[R]=lt[F]=lt[V]=lt[Q]=!0,lt[b]=lt[x]=lt[N]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,dt=parseInt,pt="object"==typeof S&&S&&S.Object===Object&&S,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=pt||ft||Function("return this")(),ht=t&&!t.nodeType&&t,gt=ht&&e&&!e.nodeType&&e,vt=gt&>.exports===ht,At=vt&&pt.process,yt=function(){try{var e=gt&>.require&>.require("util").types;return e||At&&At.binding&&At.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,xt=yt&&yt.isDate,wt=yt&&yt.isMap,jt=yt&&yt.isRegExp,Ct=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function Mt(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 zt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(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 Nt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Et(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Bt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function kt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Lt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function It(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function St(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Wt(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 Ht=Zt("length");function Rt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ft(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Vt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Xt,n)}function Qt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Xt(e){return e!=e}function Yt(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:f}function Zt(e){return function(t){return null==t?n:t[e]}}function Gt(e){return function(t){return null==e?n:e[t]}}function Ut(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function qt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,hn(e)+1).replace(ie,""):e}function _t(e){return function(t){return e(t)}}function $t(e,t){return kt(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var rn=Gt({"À":"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"}),on=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+ct[e]}function sn(e){return rt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var s=e[n];s!==t&&s!==i||(e[n]=i,a[o++]=n)}return a}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return sn(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Ht(e)}function mn(e){return sn(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var gn=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var vn=function e(t){var S,ae=(t=null==t?mt:vn.defaults(mt.Object(),t,vn.pick(mt,it))).Array,je=t.Date,Ce=t.Error,Oe=t.Function,Me=t.Math,ze=t.Object,De=t.RegExp,Te=t.String,Pe=t.TypeError,Ne=ae.prototype,Ee=Oe.prototype,Be=ze.prototype,ke=t["__core-js_shared__"],Le=Ee.toString,Ie=Be.hasOwnProperty,Se=0,We=(S=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",He=Be.toString,Re=Le.call(ze),Fe=mt._,Ve=De("^"+Le.call(Ie).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qe=vt?t.Buffer:n,Xe=t.Symbol,Ye=t.Uint8Array,Ze=Qe?Qe.allocUnsafe:n,Ge=cn(ze.getPrototypeOf,ze),Ue=ze.create,qe=Be.propertyIsEnumerable,Ke=Ne.splice,Je=Xe?Xe.isConcatSpreadable:n,_e=Xe?Xe.iterator:n,tt=Xe?Xe.toStringTag:n,rt=function(){try{var e=fi(ze,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,pt=je&&je.now!==mt.Date.now&&je.now,ft=t.setTimeout!==mt.setTimeout&&t.setTimeout,ht=Me.ceil,gt=Me.floor,At=ze.getOwnPropertySymbols,yt=Qe?Qe.isBuffer:n,Ht=t.isFinite,Gt=Ne.join,An=cn(ze.keys,ze),yn=Me.max,bn=Me.min,xn=je.now,wn=t.parseInt,jn=Me.random,Cn=Ne.reverse,On=fi(t,"DataView"),Mn=fi(t,"Map"),zn=fi(t,"Promise"),Dn=fi(t,"Set"),Tn=fi(t,"WeakMap"),Pn=fi(ze,"create"),Nn=Tn&&new Tn,En={},Bn=Hi(On),kn=Hi(Mn),Ln=Hi(zn),In=Hi(Dn),Sn=Hi(Tn),Wn=Xe?Xe.prototype:n,Hn=Wn?Wn.valueOf:n,Rn=Wn?Wn.toString:n;function Fn(e){if(ns(e)&&!Ya(e)&&!(e instanceof Yn)){if(e instanceof Xn)return e;if(Ie.call(e,"__wrapped__"))return Ri(e)}return new Xn(e)}var Vn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ue)return Ue(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Qn(){}function Xn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Yn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Zn(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 Gn(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 Un(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 qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Un;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Jn(e,t){var n=Ya(e),r=!n&&Xa(e),o=!n&&!r&&qa(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Kt(e.length,Te):[],l=s.length;for(var c in e)!t&&!Ie.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bi(c,l))||s.push(c);return s}function _n(e){var t=e.length;return t?e[qr(0,t-1)]:n}function $n(e,t){return Ii(No(e),lr(t,0,e.length))}function er(e){return Ii(No(e))}function tr(e,t,r){(r!==n&&!Fa(e[t],r)||r===n&&!(t in e))&&ar(e,t,r)}function nr(e,t,r){var o=e[t];Ie.call(e,t)&&Fa(o,r)&&(r!==n||t in e)||ar(e,t,r)}function rr(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function or(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Eo(t,Es(t),e)}function ar(e,t,n){"__proto__"==t&&rt?rt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,i=ae(o),a=null==e;++r<o;)i[r]=a?n:zs(e,t[r]);return i}function lr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var s,l=1&t,c=2&t,u=4&t;if(r&&(s=i?r(e,o,i,a):r(e)),s!==n)return s;if(!ts(e))return e;var d=Ya(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return No(e,s)}else{var p=gi(e),f=p==x||p==w;if(qa(e))return Oo(e,l);if(p==O||p==g||f&&!i){if(s=c||f?{}:Ai(e),!l)return c?function(e,t){return Eo(e,hi(e),t)}(e,function(e,t){return e&&Eo(t,Bs(t),e)}(s,e)):function(e,t){return Eo(e,mi(e),t)}(e,ir(s,e))}else{if(!lt[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case E:return Mo(e);case A:case y:return new r(+e);case B:return function(e,t){var n=t?Mo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case L:case I:case W:case H:case R:case F:case V:case Q:return zo(e,n);case j:return new r;case C:case T:return new r(e);case z:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new r;case P:return o=e,Hn?ze(Hn.call(o)):{}}var o}(e,p,l)}}a||(a=new Kn);var m=a.get(e);if(m)return m;a.set(e,s),ss(e)?e.forEach((function(n){s.add(cr(n,t,r,n,e,a))})):rs(e)&&e.forEach((function(n,o){s.set(o,cr(n,t,r,o,e,a))}));var h=d?n:(u?c?ai:ii:c?Bs:Es)(e);return Dt(h||e,(function(n,o){h&&(n=e[o=n]),nr(s,o,cr(n,t,r,o,e,a))})),s}function ur(e,t,r){var o=r.length;if(null==e)return!o;for(e=ze(e);o--;){var i=r[o],a=t[i],s=e[i];if(s===n&&!(i in e)||!a(s))return!1}return!0}function dr(e,t,o){if("function"!=typeof e)throw new Pe(r);return Ei((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,i=Et,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=kt(t,_t(n))),r?(i=Bt,a=!1):t.length>=200&&(i=en,a=!1,t=new qn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Fn.templateSettings={escape:J,evaluate:_,interpolate:$,variable:"",imports:{_:Fn}},Fn.prototype=Qn.prototype,Fn.prototype.constructor=Fn,Xn.prototype=Vn(Qn.prototype),Xn.prototype.constructor=Xn,Yn.prototype=Vn(Qn.prototype),Yn.prototype.constructor=Yn,Zn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Zn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Zn.prototype.get=function(e){var t=this.__data__;if(Pn){var r=t[e];return r===o?n:r}return Ie.call(t,e)?t[e]:n},Zn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==n:Ie.call(t,e)},Zn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pn&&t===n?o:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,r=rr(t,e);return r<0?n:t[r][1]},Gn.prototype.has=function(e){return rr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Zn,map:new(Mn||Gn),string:new Zn}},Un.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Un.prototype.get=function(e){return di(this,e).get(e)},Un.prototype.has=function(e){return di(this,e).has(e)},Un.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,o),this},qn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Mn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Un(r)}return n.set(e,t),this.size=n.size,this};var fr=Lo(xr),mr=Lo(wr,!0);function hr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(l===n?s==s&&!cs(s):r(s,l)))var l=s,c=a}return c}function vr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function Ar(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Ar(s,t-1,n,r,o):Lt(o,s):r||(o[o.length]=s)}return o}var yr=Io(),br=Io(!0);function xr(e,t){return e&&yr(e,t,Es)}function wr(e,t){return e&&br(e,t,Es)}function jr(e,t){return Nt(t,(function(t){return _a(e[t])}))}function Cr(e,t){for(var r=0,o=(t=xo(t,e)).length;null!=e&&r<o;)e=e[Wi(t[r++])];return r&&r==o?e:n}function Or(e,t,n){var r=t(e);return Ya(e)?r:Lt(r,n(e))}function Mr(e){return null==e?e===n?"[object Undefined]":"[object Null]":tt&&tt in ze(e)?function(e){var t=Ie.call(e,tt),r=e[tt];try{e[tt]=n;var o=!0}catch(e){}var i=He.call(e);o&&(t?e[tt]=r:delete e[tt]);return i}(e):function(e){return He.call(e)}(e)}function zr(e,t){return e>t}function Dr(e,t){return null!=e&&Ie.call(e,t)}function Tr(e,t){return null!=e&&t in ze(e)}function Pr(e,t,r){for(var o=r?Bt:Et,i=e[0].length,a=e.length,s=a,l=ae(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=kt(d,_t(t))),c=bn(d.length,c),l[s]=!r&&(t||i>=120&&d.length>=120)?new qn(s&&d):n}d=e[0];var p=-1,f=l[0];e:for(;++p<i&&u.length<c;){var m=d[p],h=t?t(m):m;if(m=r||0!==m?m:0,!(f?en(f,h):o(u,h,r))){for(s=a;--s;){var g=l[s];if(!(g?en(g,h):o(e[s],h,r)))continue e}f&&f.push(h),u.push(m)}}return u}function Nr(e,t,r){var o=null==(e=Ti(e,t=xo(t,e)))?e:e[Wi(Ji(t))];return null==o?n:Mt(o,e,r)}function Er(e){return ns(e)&&Mr(e)==g}function Br(e,t,r,o,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var s=Ya(e),l=Ya(t),c=s?v:gi(e),u=l?v:gi(t),d=(c=c==g?O:c)==O,p=(u=u==g?O:u)==O,f=c==u;if(f&&qa(e)){if(!qa(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Kn),s||us(e)?ri(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case B:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!i(new Ye(e),new Ye(t)));case A:case y:case C:return Fa(+e,+t);case b:return e.name==t.name&&e.message==t.message;case z:case T:return e==t+"";case j:var s=ln;case D:var l=1&r;if(s||(s=dn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ri(s(e),s(t),r,o,i,a);return a.delete(e),u;case P:if(Hn)return Hn.call(e)==Hn.call(t)}return!1}(e,t,c,r,o,i,a);if(!(1&r)){var m=d&&Ie.call(e,"__wrapped__"),h=p&&Ie.call(t,"__wrapped__");if(m||h){var x=m?e.value():e,w=h?t.value():t;return a||(a=new Kn),i(x,w,r,o,a)}}if(!f)return!1;return a||(a=new Kn),function(e,t,r,o,i,a){var s=1&r,l=ii(e),c=l.length,u=ii(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var f=l[p];if(!(s?f in t:Ie.call(t,f)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var g=!0;a.set(e,t),a.set(t,e);var v=s;for(;++p<c;){var A=e[f=l[p]],y=t[f];if(o)var b=s?o(y,A,f,t,e,a):o(A,y,f,e,t,a);if(!(b===n?A===y||i(A,y,r,o,a):b)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,o,i,a)}(e,t,r,o,Br,i))}function kr(e,t,r,o){var i=r.length,a=i,s=!o;if(null==e)return!a;for(e=ze(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=r[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Kn;if(o)var f=o(u,d,c,e,t,p);if(!(f===n?Br(d,u,3,o,p):f))return!1}}return!0}function Lr(e){return!(!ts(e)||(t=e,We&&We in t))&&(_a(e)?Ve:ve).test(Hi(e));var t}function Ir(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Ya(e)?Vr(e[0],e[1]):Fr(e):fl(e)}function Sr(e){if(!Oi(e))return An(e);var t=[];for(var n in ze(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Wr(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in ze(e))t.push(n);return t}(e);var t=Oi(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}function Hr(e,t){return e<t}function Rr(e,t){var n=-1,r=Ga(e)?ae(e.length):[];return fr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Fr(e){var t=pi(e);return 1==t.length&&t[0][2]?zi(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Vr(e,t){return wi(e)&&Mi(t)?zi(Wi(e),t):function(r){var o=zs(r,e);return o===n&&o===t?Ds(r,e):Br(t,o,3)}}function Qr(e,t,r,o,i){e!==t&&yr(t,(function(a,s){if(i||(i=new Kn),ts(a))!function(e,t,r,o,i,a,s){var l=Pi(e,r),c=Pi(t,r),u=s.get(c);if(u)return void tr(e,r,u);var d=a?a(l,c,r+"",e,t,s):n,p=d===n;if(p){var f=Ya(c),m=!f&&qa(c),h=!f&&!m&&us(c);d=c,f||m||h?Ya(l)?d=l:Ua(l)?d=No(l):m?(p=!1,d=Oo(c,!0)):h?(p=!1,d=zo(c,!0)):d=[]:is(c)||Xa(c)?(d=l,Xa(l)?d=As(l):ts(l)&&!_a(l)||(d=Ai(c))):p=!1}p&&(s.set(c,d),i(d,c,o,a,s),s.delete(c));tr(e,r,d)}(e,t,s,r,Qr,o,i);else{var l=o?o(Pi(e,s),a,s+"",e,t,i):n;l===n&&(l=a),tr(e,s,l)}}),Bs)}function Xr(e,t){var r=e.length;if(r)return bi(t+=t<0?r:0,r)?e[t]:n}function Yr(e,t,n){t=t.length?kt(t,(function(e){return Ya(e)?function(t){return Cr(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=kt(t,_t(ui()));var o=Rr(e,(function(e,n,o){var i=kt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=Do(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Zr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Cr(e,a);n(s,a)&&eo(i,xo(a,e),s)}return i}function Gr(e,t,n,r){var o=r?Qt:Vt,i=-1,a=t.length,s=e;for(e===t&&(t=No(t)),n&&(s=kt(e,_t(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Ur(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;bi(o)?Ke.call(e,o,1):fo(e,o)}}return e}function qr(e,t){return e+gt(jn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return Bi(Di(e,t,ol),e+"")}function _r(e){return _n(Fs(e))}function $r(e,t){var n=Fs(e);return Ii(n,lr(t,0,n.length))}function eo(e,t,r,o){if(!ts(e))return e;for(var i=-1,a=(t=xo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=Wi(t[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=o?o(d,c,l):n)===n&&(u=ts(d)?d:bi(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var to=Nn?function(e,t){return Nn.set(e,t),e}:ol,no=rt?function(e,t){return rt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function ro(e){return Ii(Fs(e))}function oo(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=ae(o);++r<o;)i[r]=e[r+t];return i}function io(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,ol,n)}function so(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,l=null===t,c=cs(t),u=t===n;i<a;){var d=gt((i+a)/2),p=r(e[d]),f=p!==n,m=null===p,h=p==p,g=cs(p);if(s)var v=o||h;else v=u?h&&(o||f):l?h&&f&&(o||!m):c?h&&f&&!m&&(o||!g):!m&&!g&&(o?p<=t:p<t);v?i=d+1:a=d}return bn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Fa(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?f:+e}function uo(e){if("string"==typeof e)return e;if(Ya(e))return kt(e,uo)+"";if(cs(e))return Rn?Rn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=Et,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Bt;else if(i>=200){var c=t?null:Jo(e);if(c)return dn(c);a=!1,o=en,l=new qn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function fo(e,t){return null==(e=Ti(e,t=xo(t,e)))||delete e[Wi(Ji(t))]}function mo(e,t,n,r){return eo(e,t,n(Cr(e,t)),r)}function ho(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Yn&&(n=n.value()),It(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function vo(e,t,n){var r=e.length;if(r<2)return r?po(e[0]):[];for(var o=-1,i=ae(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=pr(i[o]||a,e[s],t,n));return po(Ar(i,1),t,n)}function Ao(e,t,r){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var l=o<a?t[o]:n;r(s,e[o],l)}return s}function yo(e){return Ua(e)?e:[]}function bo(e){return"function"==typeof e?e:ol}function xo(e,t){return Ya(e)?e:wi(e,t)?[e]:Si(ys(e))}var wo=Jr;function jo(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:oo(e,t,r)}var Co=ct||function(e){return mt.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var n=e.length,r=Ze?Ze(n):new e.constructor(n);return e.copy(r),r}function Mo(e){var t=new e.constructor(e.byteLength);return new Ye(t).set(new Ye(e)),t}function zo(e,t){var n=t?Mo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Do(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cs(e),s=t!==n,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||o&&s&&c||!r&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&r&&i&&!o&&!a||l&&r&&i||!s&&i||!c)return-1}return 0}function To(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,c=yn(i-a,0),u=ae(l+c),d=!r;++s<l;)u[s]=t[s];for(;++o<a;)(d||o<i)&&(u[n[o]]=e[o]);for(;c--;)u[s++]=e[o++];return u}function Po(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,c=t.length,u=yn(i-s,0),d=ae(u+c),p=!r;++o<u;)d[o]=e[o];for(var f=o;++l<c;)d[f+l]=t[l];for(;++a<s;)(p||o<i)&&(d[f+n[a]]=e[o++]);return d}function No(e,t){var n=-1,r=e.length;for(t||(t=ae(r));++n<r;)t[n]=e[n];return t}function Eo(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=o?o(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),i?ar(r,l,c):nr(r,l,c)}return r}function Bo(e,t){return function(n,r){var o=Ya(n)?zt:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function ko(e){return Jr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,s=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,s&&xi(r[0],r[1],s)&&(a=i<3?n:a,i=1),t=ze(t);++o<i;){var l=r[o];l&&e(t,l,o,a)}return t}))}function Lo(e,t){return function(n,r){if(null==n)return n;if(!Ga(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=ze(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=ze(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function So(e){return function(t){var r=sn(t=ys(t))?mn(t):n,o=r?r[0]:t.charAt(0),i=r?jo(r,1).join(""):t.slice(1);return o[e]()+i}}function Wo(e){return function(t){return It(_s(Xs(t).replace($e,"")),e,"")}}function Ho(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=Vn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ro(e){return function(t,r,o){var i=ze(t);if(!Ga(t)){var a=ui(r,3);t=Es(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,o);return s>-1?i[a?t[s]:s]:n}}function Fo(e){return oi((function(t){var o=t.length,i=o,a=Xn.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Pe(r);if(a&&!l&&"wrapper"==li(s))var l=new Xn([],!0)}for(i=l?i:o;++i<o;){var c=li(s=t[i]),u="wrapper"==c?si(s):n;l=u&&ji(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[li(u[0])].apply(l,u[3]):1==s.length&&ji(s)?l[c]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Ya(n))return l.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}}))}function Vo(e,t,r,o,i,a,s,l,u,d){var p=t&c,f=1&t,m=2&t,h=24&t,g=512&t,v=m?n:Ho(e);return function c(){for(var A=arguments.length,y=ae(A),b=A;b--;)y[b]=arguments[b];if(h)var x=ci(c),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,x);if(o&&(y=To(y,o,i,h)),a&&(y=Po(y,a,s,h)),A-=w,h&&A<d){var j=un(y,x);return qo(e,t,Vo,c.placeholder,r,y,j,l,u,d-A)}var C=f?r:this,O=m?C[e]:e;return A=y.length,l?y=function(e,t){var r=e.length,o=bn(t.length,r),i=No(e);for(;o--;){var a=t[o];e[o]=bi(a,r)?i[a]:n}return e}(y,l):g&&A>1&&y.reverse(),p&&u<A&&(y.length=u),this&&this!==mt&&this instanceof c&&(O=v||Ho(O)),O.apply(C,y)}}function Qo(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Xo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=uo(r),o=uo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Yo(e){return oi((function(t){return t=kt(t,_t(ui())),Jr((function(n){var r=this;return e(t,(function(e){return Mt(e,r,n)}))}))}))}function Zo(e,t){var r=(t=t===n?" ":uo(t)).length;if(r<2)return r?Kr(t,e):t;var o=Kr(t,ht(e/fn(t)));return sn(t)?jo(mn(o),0,e).join(""):o.slice(0,e)}function Go(e){return function(t,r,o){return o&&"number"!=typeof o&&xi(t,r,o)&&(r=o=n),t=ms(t),r===n?(r=t,t=0):r=ms(r),function(e,t,n,r){for(var o=-1,i=yn(ht((t-e)/(n||1)),0),a=ae(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:ms(o),e)}}function Uo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function qo(e,t,r,o,i,a,c,u,d,p){var f=8&t;t|=f?s:l,4&(t&=~(f?l:s))||(t&=-4);var m=[e,t,i,f?a:n,f?c:n,f?n:a,f?n:c,u,d,p],h=r.apply(n,m);return ji(e)&&Ni(h,m),h.placeholder=o,ki(h,e,t)}function Ko(e){var t=Me[e];return function(e,n){if(e=vs(e),(n=null==n?0:bn(hs(n),292))&&Ht(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Jo=Dn&&1/dn(new Dn([,-0]))[1]==d?function(e){return new Dn(e)}:cl;function _o(e){return function(t){var n=gi(t);return n==j?ln(t):n==D?pn(t):function(e,t){return kt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function $o(e,t,o,d,p,f,m,h){var g=2&t;if(!g&&"function"!=typeof e)throw new Pe(r);var v=d?d.length:0;if(v||(t&=-97,d=p=n),m=m===n?m:yn(hs(m),0),h=h===n?h:hs(h),v-=p?p.length:0,t&l){var A=d,y=p;d=p=n}var b=g?n:si(e),x=[e,t,o,d,p,A,y,f,m,h];if(b&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,s=r==c&&8==n||r==c&&n==u&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var d=e[3];e[3]=d?To(d,l,t[4]):l,e[4]=d?un(e[3],i):t[4]}(l=t[5])&&(d=e[5],e[5]=d?Po(d,l,t[6]):l,e[6]=d?un(e[5],i):t[6]);(l=t[7])&&(e[7]=l);r&c&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(x,b),e=x[0],t=x[1],o=x[2],d=x[3],p=x[4],!(h=x[9]=x[9]===n?g?0:e.length:yn(x[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||t==a?function(e,t,r){var o=Ho(e);return function i(){for(var a=arguments.length,s=ae(a),l=a,c=ci(i);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:un(s,c);return(a-=u.length)<r?qo(e,t,Vo,i.placeholder,n,s,u,n,n,r-a):Mt(this&&this!==mt&&this instanceof i?o:e,this,s)}}(e,t,h):t!=s&&33!=t||p.length?Vo.apply(n,x):function(e,t,n,r){var o=1&t,i=Ho(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=ae(c+s),d=this&&this!==mt&&this instanceof t?i:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return Mt(d,o?n:this,u)}}(e,t,o,d);else var w=function(e,t,n){var r=1&t,o=Ho(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return ki((b?to:Ni)(w,x),e,t)}function ei(e,t,r,o){return e===n||Fa(e,Be[r])&&!Ie.call(o,r)?t:e}function ti(e,t,r,o,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Qr(e,t,n,ti,a),a.delete(t)),e}function ni(e){return is(e)?n:e}function ri(e,t,r,o,i,a){var s=1&r,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,m=2&r?new qn:n;for(a.set(e,t),a.set(t,e);++p<l;){var h=e[p],g=t[p];if(o)var v=s?o(g,h,p,t,e,a):o(h,g,p,e,t,a);if(v!==n){if(v)continue;f=!1;break}if(m){if(!Wt(t,(function(e,t){if(!en(m,t)&&(h===e||i(h,e,r,o,a)))return m.push(t)}))){f=!1;break}}else if(h!==g&&!i(h,g,r,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function oi(e){return Bi(Di(e,n,Zi),e+"")}function ii(e){return Or(e,Es,mi)}function ai(e){return Or(e,Bs,hi)}var si=Nn?function(e){return Nn.get(e)}:cl;function li(e){for(var t=e.name+"",n=En[t],r=Ie.call(En,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Ie.call(Fn,"placeholder")?Fn:e).placeholder}function ui(){var e=Fn.iteratee||il;return e=e===il?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function pi(e){for(var t=Es(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Mi(o)]}return t}function fi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Lr(r)?r:n}var mi=At?function(e){return null==e?[]:(e=ze(e),Nt(At(e),(function(t){return qe.call(e,t)})))}:gl,hi=At?function(e){for(var t=[];e;)Lt(t,mi(e)),e=Ge(e);return t}:gl,gi=Mr;function vi(e,t,n){for(var r=-1,o=(t=xo(t,e)).length,i=!1;++r<o;){var a=Wi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&bi(a,o)&&(Ya(e)||Xa(e))}function Ai(e){return"function"!=typeof e.constructor||Oi(e)?{}:Vn(Ge(e))}function yi(e){return Ya(e)||Xa(e)||!!(Je&&e&&e[Je])}function bi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function xi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ga(n)&&bi(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function wi(e,t){if(Ya(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(te.test(e)||!ee.test(e)||null!=t&&e in ze(t))}function ji(e){var t=li(e),n=Fn[t];if("function"!=typeof n||!(t in Yn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(On&&gi(new On(new ArrayBuffer(1)))!=B||Mn&&gi(new Mn)!=j||zn&&gi(zn.resolve())!=M||Dn&&gi(new Dn)!=D||Tn&&gi(new Tn)!=N)&&(gi=function(e){var t=Mr(e),r=t==O?e.constructor:n,o=r?Hi(r):"";if(o)switch(o){case Bn:return B;case kn:return j;case Ln:return M;case In:return D;case Sn:return N}return t});var Ci=ke?_a:vl;function Oi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Be)}function Mi(e){return e==e&&!ts(e)}function zi(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in ze(r)))}}function Di(e,t,r){return t=yn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=yn(n.length-t,0),a=ae(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=ae(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),Mt(e,this,s)}}function Ti(e,t){return t.length<2?e:Cr(e,oo(t,0,-1))}function Pi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ni=Li(to),Ei=ft||function(e,t){return mt.setTimeout(e,t)},Bi=Li(no);function ki(e,t,n){var r=t+"";return Bi(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(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Dt(h,(function(n){var r="_."+n[0];t&n[1]&&!Et(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function Li(e){var t=0,r=0;return function(){var o=xn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ii(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=qr(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Si=function(e){var t=La(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function Wi(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Hi(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ri(e){if(e instanceof Yn)return e.clone();var t=new Xn(e.__wrapped__,e.__chain__);return t.__actions__=No(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Jr((function(e,t){return Ua(e)?pr(e,Ar(t,1,Ua,!0)):[]})),Vi=Jr((function(e,t){var r=Ji(t);return Ua(r)&&(r=n),Ua(e)?pr(e,Ar(t,1,Ua,!0),ui(r,2)):[]})),Qi=Jr((function(e,t){var r=Ji(t);return Ua(r)&&(r=n),Ua(e)?pr(e,Ar(t,1,Ua,!0),n,r):[]}));function Xi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=yn(r+o,0)),Ft(e,ui(t,3),o)}function Yi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=hs(r),i=r<0?yn(o+i,0):bn(i,o-1)),Ft(e,ui(t,3),i,!0)}function Zi(e){return(null==e?0:e.length)?Ar(e,1):[]}function Gi(e){return e&&e.length?e[0]:n}var Ui=Jr((function(e){var t=kt(e,yo);return t.length&&t[0]===e[0]?Pr(t):[]})),qi=Jr((function(e){var t=Ji(e),r=kt(e,yo);return t===Ji(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Pr(r,ui(t,2)):[]})),Ki=Jr((function(e){var t=Ji(e),r=kt(e,yo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Pr(r,n,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:n}var _i=Jr($i);function $i(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=oi((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Ur(e,kt(t,(function(e){return bi(e,n)?+e:e})).sort(Do)),r}));function ta(e){return null==e?e:Cn.call(e)}var na=Jr((function(e){return po(Ar(e,1,Ua,!0))})),ra=Jr((function(e){var t=Ji(e);return Ua(t)&&(t=n),po(Ar(e,1,Ua,!0),ui(t,2))})),oa=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,po(Ar(e,1,Ua,!0),n,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,(function(e){if(Ua(e))return t=yn(e.length,t),!0})),Kt(t,(function(t){return kt(e,Zt(t))}))}function aa(e,t){if(!e||!e.length)return[];var r=ia(e);return null==t?r:kt(r,(function(e){return Mt(t,n,e)}))}var sa=Jr((function(e,t){return Ua(e)?pr(e,t):[]})),la=Jr((function(e){return vo(Nt(e,Ua))})),ca=Jr((function(e){var t=Ji(e);return Ua(t)&&(t=n),vo(Nt(e,Ua),ui(t,2))})),ua=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,vo(Nt(e,Ua),n,t)})),da=Jr(ia);var pa=Jr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,aa(e,r)}));function fa(e){var t=Fn(e);return t.__chain__=!0,t}function ma(e,t){return t(e)}var ha=oi((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Yn&&bi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ma,args:[i],thisArg:n}),new Xn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var ga=Bo((function(e,t,n){Ie.call(e,n)?++e[n]:ar(e,n,1)}));var va=Ro(Xi),Aa=Ro(Yi);function ya(e,t){return(Ya(e)?Dt:fr)(e,ui(t,3))}function ba(e,t){return(Ya(e)?Tt:mr)(e,ui(t,3))}var xa=Bo((function(e,t,n){Ie.call(e,n)?e[n].push(t):ar(e,n,[t])}));var wa=Jr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ga(e)?ae(e.length):[];return fr(e,(function(e){i[++r]=o?Mt(t,e,n):Nr(e,t,n)})),i})),ja=Bo((function(e,t,n){ar(e,n,t)}));function Ca(e,t){return(Ya(e)?kt:Rr)(e,ui(t,3))}var Oa=Bo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ma=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Yr(e,Ar(t,1),[])})),za=pt||function(){return mt.Date.now()};function Da(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,$o(e,c,n,n,n,n,t)}function Ta(e,t){var o;if("function"!=typeof t)throw new Pe(r);return e=hs(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Pa=Jr((function(e,t,n){var r=1;if(n.length){var o=un(n,ci(Pa));r|=s}return $o(e,r,t,n,o)})),Na=Jr((function(e,t,n){var r=3;if(n.length){var o=un(n,ci(Na));r|=s}return $o(t,r,e,n,o)}));function Ea(e,t,o){var i,a,s,l,c,u,d=0,p=!1,f=!1,m=!0;if("function"!=typeof e)throw new Pe(r);function h(t){var r=i,o=a;return i=a=n,d=t,l=e.apply(o,r)}function g(e){var r=e-u;return u===n||r>=t||r<0||f&&e-d>=s}function v(){var e=za();if(g(e))return A(e);c=Ei(v,function(e){var n=t-(e-u);return f?bn(n,s-(e-d)):n}(e))}function A(e){return c=n,m&&i?h(e):(i=a=n,l)}function y(){var e=za(),r=g(e);if(i=arguments,a=this,u=e,r){if(c===n)return function(e){return d=e,c=Ei(v,t),p?h(e):l}(u);if(f)return Co(c),c=Ei(v,t),h(u)}return c===n&&(c=Ei(v,t)),l}return t=vs(t)||0,ts(o)&&(p=!!o.leading,s=(f="maxWait"in o)?yn(vs(o.maxWait)||0,t):s,m="trailing"in o?!!o.trailing:m),y.cancel=function(){c!==n&&Co(c),d=0,i=u=a=c=n},y.flush=function(){return c===n?l:A(za())},y}var Ba=Jr((function(e,t){return dr(e,1,t)})),ka=Jr((function(e,t,n){return dr(e,vs(t)||0,n)}));function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(La.Cache||Un),n}function Ia(e){if("function"!=typeof e)throw new Pe(r);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)}}La.Cache=Un;var Sa=wo((function(e,t){var n=(t=1==t.length&&Ya(t[0])?kt(t[0],_t(ui())):kt(Ar(t,1),_t(ui()))).length;return Jr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Mt(e,this,r)}))})),Wa=Jr((function(e,t){var r=un(t,ci(Wa));return $o(e,s,n,t,r)})),Ha=Jr((function(e,t){var r=un(t,ci(Ha));return $o(e,l,n,t,r)})),Ra=oi((function(e,t){return $o(e,u,n,n,n,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var Va=Uo(zr),Qa=Uo((function(e,t){return e>=t})),Xa=Er(function(){return arguments}())?Er:function(e){return ns(e)&&Ie.call(e,"callee")&&!qe.call(e,"callee")},Ya=ae.isArray,Za=bt?_t(bt):function(e){return ns(e)&&Mr(e)==E};function Ga(e){return null!=e&&es(e.length)&&!_a(e)}function Ua(e){return ns(e)&&Ga(e)}var qa=yt||vl,Ka=xt?_t(xt):function(e){return ns(e)&&Mr(e)==y};function Ja(e){if(!ns(e))return!1;var t=Mr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function _a(e){if(!ts(e))return!1;var t=Mr(e);return t==x||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==hs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=wt?_t(wt):function(e){return ns(e)&&gi(e)==j};function os(e){return"number"==typeof e||ns(e)&&Mr(e)==C}function is(e){if(!ns(e)||Mr(e)!=O)return!1;var t=Ge(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==Re}var as=jt?_t(jt):function(e){return ns(e)&&Mr(e)==z};var ss=Ct?_t(Ct):function(e){return ns(e)&&gi(e)==D};function ls(e){return"string"==typeof e||!Ya(e)&&ns(e)&&Mr(e)==T}function cs(e){return"symbol"==typeof e||ns(e)&&Mr(e)==P}var us=Ot?_t(Ot):function(e){return ns(e)&&es(e.length)&&!!st[Mr(e)]};var ds=Uo(Hr),ps=Uo((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ga(e))return ls(e)?mn(e):No(e);if(_e&&e[_e])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[_e]());var t=gi(e);return(t==j?ln:t==D?dn:Fs)(e)}function ms(e){return e?(e=vs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=ms(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?lr(hs(e),0,m):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return f;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ge.test(e);return n||Ae.test(e)?dt(e.slice(2),n?2:8):he.test(e)?f:+e}function As(e){return Eo(e,Bs(e))}function ys(e){return null==e?"":uo(e)}var bs=ko((function(e,t){if(Oi(t)||Ga(t))Eo(t,Es(t),e);else for(var n in t)Ie.call(t,n)&&nr(e,n,t[n])})),xs=ko((function(e,t){Eo(t,Bs(t),e)})),ws=ko((function(e,t,n,r){Eo(t,Bs(t),e,r)})),js=ko((function(e,t,n,r){Eo(t,Es(t),e,r)})),Cs=oi(sr);var Os=Jr((function(e,t){e=ze(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&xi(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],s=Bs(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===n||Fa(d,Be[u])&&!Ie.call(e,u))&&(e[u]=a[u])}return e})),Ms=Jr((function(e){return e.push(n,ti),Mt(Ls,n,e)}));function zs(e,t,r){var o=null==e?n:Cr(e,t);return o===n?r:o}function Ds(e,t){return null!=e&&vi(e,t,Tr)}var Ts=Qo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),e[t]=n}),tl(ol)),Ps=Qo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Ns=Jr(Nr);function Es(e){return Ga(e)?Jn(e):Sr(e)}function Bs(e){return Ga(e)?Jn(e,!0):Wr(e)}var ks=ko((function(e,t,n){Qr(e,t,n)})),Ls=ko((function(e,t,n,r){Qr(e,t,n,r)})),Is=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=kt(t,(function(t){return t=xo(t,e),r||(r=t.length>1),t})),Eo(e,ai(e),n),r&&(n=cr(n,7,ni));for(var o=t.length;o--;)fo(n,t[o]);return n}));var Ss=oi((function(e,t){return null==e?{}:function(e,t){return Zr(e,t,(function(t,n){return Ds(e,n)}))}(e,t)}));function Ws(e,t){if(null==e)return{};var n=kt(ai(e),(function(e){return[e]}));return t=ui(t),Zr(e,n,(function(e,n){return t(e,n[0])}))}var Hs=_o(Es),Rs=_o(Bs);function Fs(e){return null==e?[]:$t(e,Es(e))}var Vs=Wo((function(e,t,n){return t=t.toLowerCase(),e+(n?Qs(t):t)}));function Qs(e){return Js(ys(e).toLowerCase())}function Xs(e){return(e=ys(e))&&e.replace(be,rn).replace(et,"")}var Ys=Wo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zs=Wo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gs=So("toLowerCase");var Us=Wo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var qs=Wo((function(e,t,n){return e+(n?" ":"")+Js(t)}));var Ks=Wo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=So("toUpperCase");function _s(e,t,r){return e=ys(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var $s=Jr((function(e,t){try{return Mt(e,n,t)}catch(e){return Ja(e)?e:new Ce(e)}})),el=oi((function(e,t){return Dt(t,(function(t){t=Wi(t),ar(e,t,Pa(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Fo(),rl=Fo(!0);function ol(e){return e}function il(e){return Ir("function"==typeof e?e:cr(e,1))}var al=Jr((function(e,t){return function(n){return Nr(n,e,t)}})),sl=Jr((function(e,t){return function(n){return Nr(e,n,t)}}));function ll(e,t,n){var r=Es(t),o=jr(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=jr(t,Es(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=_a(e);return Dt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=No(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function cl(){}var ul=Yo(kt),dl=Yo(Pt),pl=Yo(Wt);function fl(e){return wi(e)?Zt(Wi(e)):function(e){return function(t){return Cr(t,e)}}(e)}var ml=Go(),hl=Go(!0);function gl(){return[]}function vl(){return!1}var Al=Xo((function(e,t){return e+t}),0),yl=Ko("ceil"),bl=Xo((function(e,t){return e/t}),1),xl=Ko("floor");var wl,jl=Xo((function(e,t){return e*t}),1),Cl=Ko("round"),Ol=Xo((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Pe(r);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Da,Fn.assign=bs,Fn.assignIn=xs,Fn.assignInWith=ws,Fn.assignWith=js,Fn.at=Cs,Fn.before=Ta,Fn.bind=Pa,Fn.bindAll=el,Fn.bindKey=Na,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ya(e)?e:[e]},Fn.chain=fa,Fn.chunk=function(e,t,r){t=(r?xi(e,t,r):t===n)?1:yn(hs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=ae(ht(o/t));i<o;)s[a++]=oo(e,i,i+=t);return s},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ae(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Lt(Ya(n)?No(n):[n],Ar(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?kt(e,(function(e){if("function"!=typeof e[1])throw new Pe(r);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Mt(o[0],this,n))return Mt(o[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Es(e);return function(n){return ur(n,e,t)}}(cr(e,1))},Fn.constant=tl,Fn.countBy=ga,Fn.create=function(e,t){var n=Vn(e);return null==t?n:ir(n,t)},Fn.curry=function e(t,r,o){var i=$o(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Fn.curryRight=function e(t,r,o){var i=$o(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Fn.debounce=Ea,Fn.defaults=Os,Fn.defaultsDeep=Ms,Fn.defer=Ba,Fn.delay=ka,Fn.difference=Fi,Fn.differenceBy=Vi,Fn.differenceWith=Qi,Fn.drop=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=r||t===n?1:hs(t))<0?0:t,o):[]},Fn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,0,(t=o-(t=r||t===n?1:hs(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0):[]},Fn.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&xi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=hs(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:hs(o))<0&&(o+=i),o=r>o?0:gs(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Fn.filter=function(e,t){return(Ya(e)?Nt:vr)(e,ui(t,3))},Fn.flatMap=function(e,t){return Ar(Ca(e,t),1)},Fn.flatMapDeep=function(e,t){return Ar(Ca(e,t),d)},Fn.flatMapDepth=function(e,t,r){return r=r===n?1:hs(r),Ar(Ca(e,t),r)},Fn.flatten=Zi,Fn.flattenDeep=function(e){return(null==e?0:e.length)?Ar(e,d):[]},Fn.flattenDepth=function(e,t){return(null==e?0:e.length)?Ar(e,t=t===n?1:hs(t)):[]},Fn.flip=function(e){return $o(e,512)},Fn.flow=nl,Fn.flowRight=rl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Fn.functions=function(e){return null==e?[]:jr(e,Es(e))},Fn.functionsIn=function(e){return null==e?[]:jr(e,Bs(e))},Fn.groupBy=xa,Fn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Fn.intersection=Ui,Fn.intersectionBy=qi,Fn.intersectionWith=Ki,Fn.invert=Ts,Fn.invertBy=Ps,Fn.invokeMap=wa,Fn.iteratee=il,Fn.keyBy=ja,Fn.keys=Es,Fn.keysIn=Bs,Fn.map=Ca,Fn.mapKeys=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},Fn.mapValues=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},Fn.matches=function(e){return Fr(cr(e,1))},Fn.matchesProperty=function(e,t){return Vr(e,cr(t,1))},Fn.memoize=La,Fn.merge=ks,Fn.mergeWith=Ls,Fn.method=al,Fn.methodOf=sl,Fn.mixin=ll,Fn.negate=Ia,Fn.nthArg=function(e){return e=hs(e),Jr((function(t){return Xr(t,e)}))},Fn.omit=Is,Fn.omitBy=function(e,t){return Ws(e,Ia(ui(t)))},Fn.once=function(e){return Ta(2,e)},Fn.orderBy=function(e,t,r,o){return null==e?[]:(Ya(t)||(t=null==t?[]:[t]),Ya(r=o?n:r)||(r=null==r?[]:[r]),Yr(e,t,r))},Fn.over=ul,Fn.overArgs=Sa,Fn.overEvery=dl,Fn.overSome=pl,Fn.partial=Wa,Fn.partialRight=Ha,Fn.partition=Oa,Fn.pick=Ss,Fn.pickBy=Ws,Fn.property=fl,Fn.propertyOf=function(e){return function(t){return null==e?n:Cr(e,t)}},Fn.pull=_i,Fn.pullAll=$i,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ui(n,2)):e},Fn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Gr(e,t,n,r):e},Fn.pullAt=ea,Fn.range=ml,Fn.rangeRight=hl,Fn.rearg=Ra,Fn.reject=function(e,t){return(Ya(e)?Nt:vr)(e,Ia(ui(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Ur(e,o),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Pe(r);return Jr(e,t=t===n?t:hs(t))},Fn.reverse=ta,Fn.sampleSize=function(e,t,r){return t=(r?xi(e,t,r):t===n)?1:hs(t),(Ya(e)?$n:$r)(e,t)},Fn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Fn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:eo(e,t,r,o)},Fn.shuffle=function(e){return(Ya(e)?er:ro)(e)},Fn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&xi(e,t,r)?(t=0,r=o):(t=null==t?0:hs(t),r=r===n?o:hs(r)),oo(e,t,r)):[]},Fn.sortBy=Ma,Fn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},Fn.split=function(e,t,r){return r&&"number"!=typeof r&&xi(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=uo(t))&&sn(e)?jo(mn(e),0,r):e.split(t,r):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Pe(r);return t=null==t?0:yn(hs(t),0),Jr((function(n){var r=n[t],o=jo(n,0,t);return r&&Lt(o,r),Mt(e,this,o)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Fn.take=function(e,t,r){return e&&e.length?oo(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},Fn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=r||t===n?1:hs(t)))<0?0:t,o):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?ho(e,ui(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Pe(r);return ts(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Ea(e,t,{leading:o,maxWait:t,trailing:i})},Fn.thru=ma,Fn.toArray=fs,Fn.toPairs=Hs,Fn.toPairsIn=Rs,Fn.toPath=function(e){return Ya(e)?kt(e,Wi):cs(e)?[e]:No(Si(ys(e)))},Fn.toPlainObject=As,Fn.transform=function(e,t,n){var r=Ya(e),o=r||qa(e)||us(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&_a(i)?Vn(Ge(e)):{}}return(o?Dt:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Fn.unary=function(e){return Da(e,1)},Fn.union=na,Fn.unionBy=ra,Fn.unionWith=oa,Fn.uniq=function(e){return e&&e.length?po(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?po(e,ui(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},Fn.unset=function(e,t){return null==e||fo(e,t)},Fn.unzip=ia,Fn.unzipWith=aa,Fn.update=function(e,t,n){return null==e?e:mo(e,t,bo(n))},Fn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:mo(e,t,bo(r),o)},Fn.values=Fs,Fn.valuesIn=function(e){return null==e?[]:$t(e,Bs(e))},Fn.without=sa,Fn.words=_s,Fn.wrap=function(e,t){return Wa(bo(t),e)},Fn.xor=la,Fn.xorBy=ca,Fn.xorWith=ua,Fn.zip=da,Fn.zipObject=function(e,t){return Ao(e||[],t||[],nr)},Fn.zipObjectDeep=function(e,t){return Ao(e||[],t||[],eo)},Fn.zipWith=pa,Fn.entries=Hs,Fn.entriesIn=Rs,Fn.extend=xs,Fn.extendWith=ws,ll(Fn,Fn),Fn.add=Al,Fn.attempt=$s,Fn.camelCase=Vs,Fn.capitalize=Qs,Fn.ceil=yl,Fn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=vs(r))==r?r:0),t!==n&&(t=(t=vs(t))==t?t:0),lr(vs(e),t,r)},Fn.clone=function(e){return cr(e,4)},Fn.cloneDeep=function(e){return cr(e,5)},Fn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Fn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Fn.conformsTo=function(e,t){return null==t||ur(e,t,Es(t))},Fn.deburr=Xs,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=bl,Fn.endsWith=function(e,t,r){e=ys(e),t=uo(t);var o=e.length,i=r=r===n?o:lr(hs(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Fn.eq=Fa,Fn.escape=function(e){return(e=ys(e))&&K.test(e)?e.replace(U,on):e},Fn.escapeRegExp=function(e){return(e=ys(e))&&oe.test(e)?e.replace(re,"\\$&"):e},Fn.every=function(e,t,r){var o=Ya(e)?Pt:hr;return r&&xi(e,t,r)&&(t=n),o(e,ui(t,3))},Fn.find=va,Fn.findIndex=Xi,Fn.findKey=function(e,t){return Rt(e,ui(t,3),xr)},Fn.findLast=Aa,Fn.findLastIndex=Yi,Fn.findLastKey=function(e,t){return Rt(e,ui(t,3),wr)},Fn.floor=xl,Fn.forEach=ya,Fn.forEachRight=ba,Fn.forIn=function(e,t){return null==e?e:yr(e,ui(t,3),Bs)},Fn.forInRight=function(e,t){return null==e?e:br(e,ui(t,3),Bs)},Fn.forOwn=function(e,t){return e&&xr(e,ui(t,3))},Fn.forOwnRight=function(e,t){return e&&wr(e,ui(t,3))},Fn.get=zs,Fn.gt=Va,Fn.gte=Qa,Fn.has=function(e,t){return null!=e&&vi(e,t,Dr)},Fn.hasIn=Ds,Fn.head=Gi,Fn.identity=ol,Fn.includes=function(e,t,n,r){e=Ga(e)?e:Fs(e),n=n&&!r?hs(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=yn(r+o,0)),Vt(e,t,o)},Fn.inRange=function(e,t,r){return t=ms(t),r===n?(r=t,t=0):r=ms(r),function(e,t,n){return e>=bn(t,n)&&e<yn(t,n)}(e=vs(e),t,r)},Fn.invoke=Ns,Fn.isArguments=Xa,Fn.isArray=Ya,Fn.isArrayBuffer=Za,Fn.isArrayLike=Ga,Fn.isArrayLikeObject=Ua,Fn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Mr(e)==A},Fn.isBuffer=qa,Fn.isDate=Ka,Fn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Ya(e)||"string"==typeof e||"function"==typeof e.splice||qa(e)||us(e)||Xa(e)))return!e.length;var t=gi(e);if(t==j||t==D)return!e.size;if(Oi(e))return!Sr(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Br(e,t)},Fn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Br(e,t,n,r):!!o},Fn.isError=Ja,Fn.isFinite=function(e){return"number"==typeof e&&Ht(e)},Fn.isFunction=_a,Fn.isInteger=$a,Fn.isLength=es,Fn.isMap=rs,Fn.isMatch=function(e,t){return e===t||kr(e,t,pi(t))},Fn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,kr(e,t,pi(t),r)},Fn.isNaN=function(e){return os(e)&&e!=+e},Fn.isNative=function(e){if(Ci(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=os,Fn.isObject=ts,Fn.isObjectLike=ns,Fn.isPlainObject=is,Fn.isRegExp=as,Fn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=p},Fn.isSet=ss,Fn.isString=ls,Fn.isSymbol=cs,Fn.isTypedArray=us,Fn.isUndefined=function(e){return e===n},Fn.isWeakMap=function(e){return ns(e)&&gi(e)==N},Fn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Mr(e)},Fn.join=function(e,t){return null==e?"":Gt.call(e,t)},Fn.kebabCase=Ys,Fn.last=Ji,Fn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=hs(r))<0?yn(o+i,0):bn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Xt,i,!0)},Fn.lowerCase=Zs,Fn.lowerFirst=Gs,Fn.lt=ds,Fn.lte=ps,Fn.max=function(e){return e&&e.length?gr(e,ol,zr):n},Fn.maxBy=function(e,t){return e&&e.length?gr(e,ui(t,2),zr):n},Fn.mean=function(e){return Yt(e,ol)},Fn.meanBy=function(e,t){return Yt(e,ui(t,2))},Fn.min=function(e){return e&&e.length?gr(e,ol,Hr):n},Fn.minBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Hr):n},Fn.stubArray=gl,Fn.stubFalse=vl,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=jl,Fn.nth=function(e,t){return e&&e.length?Xr(e,hs(t)):n},Fn.noConflict=function(){return mt._===this&&(mt._=Fe),this},Fn.noop=cl,Fn.now=za,Fn.pad=function(e,t,n){e=ys(e);var r=(t=hs(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Zo(gt(o),n)+e+Zo(ht(o),n)},Fn.padEnd=function(e,t,n){e=ys(e);var r=(t=hs(t))?fn(e):0;return t&&r<t?e+Zo(t-r,n):e},Fn.padStart=function(e,t,n){e=ys(e);var r=(t=hs(t))?fn(e):0;return t&&r<t?Zo(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ys(e).replace(ie,""),t||0)},Fn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&xi(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=ms(e),t===n?(t=e,e=0):t=ms(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=jn();return bn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return qr(e,t)},Fn.reduce=function(e,t,n){var r=Ya(e)?It:Ut,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},Fn.reduceRight=function(e,t,n){var r=Ya(e)?St:Ut,o=arguments.length<3;return r(e,ui(t,4),n,o,mr)},Fn.repeat=function(e,t,r){return t=(r?xi(e,t,r):t===n)?1:hs(t),Kr(ys(e),t)},Fn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,r){var o=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[Wi(t[o])];a===n&&(o=i,a=r),e=_a(a)?a.call(e):a}return e},Fn.round=Cl,Fn.runInContext=e,Fn.sample=function(e){return(Ya(e)?_n:_r)(e)},Fn.size=function(e){if(null==e)return 0;if(Ga(e))return ls(e)?fn(e):e.length;var t=gi(e);return t==j||t==D?e.size:Sr(e).length},Fn.snakeCase=Us,Fn.some=function(e,t,r){var o=Ya(e)?Wt:io;return r&&xi(e,t,r)&&(t=n),o(e,ui(t,3))},Fn.sortedIndex=function(e,t){return ao(e,t)},Fn.sortedIndexBy=function(e,t,n){return so(e,t,ui(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ao(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return so(e,t,ui(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Fn.startCase=qs,Fn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:lr(hs(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Fn.subtract=Ol,Fn.sum=function(e){return e&&e.length?qt(e,ol):0},Fn.sumBy=function(e,t){return e&&e.length?qt(e,ui(t,2)):0},Fn.template=function(e,t,r){var o=Fn.templateSettings;r&&xi(e,t,r)&&(t=n),e=ys(e),t=ws({},t,o,ei);var i,a,s=ws({},t.imports,o.imports,ei),l=Es(s),c=$t(s,l),u=0,d=t.interpolate||xe,p="__p += '",f=De((t.escape||xe).source+"|"+d.source+"|"+(d===$?fe:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),m="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(f,(function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(u,l).replace(we,an),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var h=Ie.call(t,"variable")&&t.variable;if(h){if(de.test(h))throw new Ce("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(X,""):p).replace(Y,"$1").replace(Z,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=$s((function(){return Oe(l,m+"return "+p).apply(n,c)}));if(g.source=p,Ja(g))throw g;return g},Fn.times=function(e,t){if((e=hs(e))<1||e>p)return[];var n=m,r=bn(e,m);t=ui(t),e-=m;for(var o=Kt(r,t);++n<e;)t(n);return o},Fn.toFinite=ms,Fn.toInteger=hs,Fn.toLength=gs,Fn.toLower=function(e){return ys(e).toLowerCase()},Fn.toNumber=vs,Fn.toSafeInteger=function(e){return e?lr(hs(e),-9007199254740991,p):0===e?e:0},Fn.toString=ys,Fn.toUpper=function(e){return ys(e).toUpperCase()},Fn.trim=function(e,t,r){if((e=ys(e))&&(r||t===n))return Jt(e);if(!e||!(t=uo(t)))return e;var o=mn(e),i=mn(t);return jo(o,tn(o,i),nn(o,i)+1).join("")},Fn.trimEnd=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=uo(t)))return e;var o=mn(e);return jo(o,0,nn(o,mn(t))+1).join("")},Fn.trimStart=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=uo(t)))return e;var o=mn(e);return jo(o,tn(o,mn(t))).join("")},Fn.truncate=function(e,t){var r=30,o="...";if(ts(t)){var i="separator"in t?t.separator:i;r="length"in t?hs(t.length):r,o="omission"in t?uo(t.omission):o}var a=(e=ys(e)).length;if(sn(e)){var s=mn(e);a=s.length}if(r>=a)return e;var l=r-fn(o);if(l<1)return o;var c=s?jo(s,0,l).join(""):e.slice(0,l);if(i===n)return c+o;if(s&&(l+=c.length-l),as(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=De(i.source,ys(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(uo(i),l)!=l){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+o},Fn.unescape=function(e){return(e=ys(e))&&q.test(e)?e.replace(G,gn):e},Fn.uniqueId=function(e){var t=++Se;return ys(e)+t},Fn.upperCase=Ks,Fn.upperFirst=Js,Fn.each=ya,Fn.eachRight=ba,Fn.first=Gi,ll(Fn,(wl={},xr(Fn,(function(e,t){Ie.call(Fn.prototype,t)||(wl[t]=e)})),wl),{chain:!1}),Fn.VERSION="4.17.21",Dt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),Dt(["drop","take"],(function(e,t){Yn.prototype[e]=function(r){r=r===n?1:yn(hs(r),0);var o=this.__filtered__&&!t?new Yn(this):this.clone();return o.__filtered__?o.__takeCount__=bn(r,o.__takeCount__):o.__views__.push({size:bn(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Yn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Dt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Yn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Dt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Yn.prototype[e]=function(){return this[n](1).value()[0]}})),Dt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Yn.prototype[e]=function(){return this.__filtered__?new Yn(this):this[n](1)}})),Yn.prototype.compact=function(){return this.filter(ol)},Yn.prototype.find=function(e){return this.filter(e).head()},Yn.prototype.findLast=function(e){return this.reverse().find(e)},Yn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Yn(this):this.map((function(n){return Nr(n,e,t)}))})),Yn.prototype.reject=function(e){return this.filter(Ia(ui(e)))},Yn.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Yn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Yn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Yn.prototype.toArray=function(){return this.take(m)},xr(Yn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Fn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,l=t instanceof Yn,c=s[0],u=l||Ya(t),d=function(e){var t=i.apply(Fn,Lt([e],s));return o&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,m=a&&!p,h=l&&!f;if(!a&&u){t=h?t:new Yn(this);var g=e.apply(t,s);return g.__actions__.push({func:ma,args:[d],thisArg:n}),new Xn(g,p)}return m&&h?e.apply(this,s):(g=this.thru(d),m?o?g.value()[0]:g.value():g)})})),Dt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ya(o)?o:[],e)}return this[n]((function(n){return t.apply(Ya(n)?n:[],e)}))}})),xr(Yn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Ie.call(En,r)||(En[r]=[]),En[r].push({name:t,func:n})}})),En[Vo(n,2).name]=[{name:"wrapper",func:n}],Yn.prototype.clone=function(){var e=new Yn(this.__wrapped__);return e.__actions__=No(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=No(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=No(this.__views__),e},Yn.prototype.reverse=function(){if(this.__filtered__){var e=new Yn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Yn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ya(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,f=bn(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return go(e,this.__actions__);var m=[];e:for(;l--&&p<f;){for(var h=-1,g=e[c+=t];++h<d;){var v=u[h],A=v.iteratee,y=v.type,b=A(g);if(2==y)g=b;else if(!b){if(1==y)continue e;break e}}m[p++]=g}return m},Fn.prototype.at=ha,Fn.prototype.chain=function(){return fa(this)},Fn.prototype.commit=function(){return new Xn(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===n&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,r=this;r instanceof Qn;){var o=Ri(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Yn){var t=e;return this.__actions__.length&&(t=new Yn(this)),(t=t.reverse()).__actions__.push({func:ma,args:[ta],thisArg:n}),new Xn(t,this.__chain__)}return this.thru(ta)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,_e&&(Fn.prototype[_e]=function(){return this}),Fn}();gt?((gt.exports=vn)._=vn,ht._=vn):mt._=vn}).call(S)}(sg,sg.exports);var lg,cg=sg.exports,ug=x.create({withCredentials:!0});exports.RequestState=void 0,(lg=exports.RequestState||(exports.RequestState={})).IDLE="idle",lg.LOADING="loading",lg.SUCCEEDED="succeeded",lg.FAILED="failed";var dg=function(){function e(e,t,n){this.data=e,this.state=t,this.error=n}return e.idle=function(t){var n=new e(t,exports.RequestState.IDLE);return Z({},n)},e.loading=function(t){var n=new e(t,exports.RequestState.LOADING);return Z({},n)},e.succeeded=function(t){var n=new e(t,exports.RequestState.SUCCEEDED);return Z({},n)},e.error=function(t,n){var r=new e(n,exports.RequestState.FAILED,t);return Z({},r)},e}();function pg(e,t){return e.filter((function(e){return!t.includes(e)}))}var fg=e.createContext({statusCode:null,dashbaordUrlPrefix:""});function mg(t){void 0===t&&(t=dg.idle());var n=e.useState(t),r=n[0],o=n[1],i=e.useContext(fg).dashbaordUrlPrefix,a=e.useCallback((function(e){o((function(e){return dg.loading(e.data)})),ug.get("".concat(i,"/").concat(e.url),Z(Z({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(dg.succeeded(n))})).catch((function(t){var n,r;e.onError&&e.onError(t);try{var i=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return dg.error(i,e.data)}))}catch(e){o((function(e){return dg.error(t,e.data)}))}}))}),[]),s=e.useCallback((function(e){o((function(e){return dg.loading(e.data)})),ug.post("".concat(i,"/").concat(e.url),e.body,Z(Z({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(dg.succeeded(n))})).catch((function(t){var n,r;e.onError&&e.onError(t);try{var i=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return dg.error(i,e.data)}))}catch(e){o((function(e){return dg.error(t,e.data)}))}}))}),[]),l=e.useCallback((function(e){o((function(e){return dg.loading(e.data)})),ug.patch("".concat(i,"/").concat(e.url),e.body,Z(Z({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(dg.succeeded(n))})).catch((function(t){var n,r;e.onError&&e.onError(t);try{var i=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return dg.error(i,e.data)}))}catch(e){o((function(e){return dg.error(t,e.data)}))}}))}),[]),c=e.useCallback((function(e){o((function(e){return dg.loading(e.data)})),ug.delete("".concat(i,"/").concat(e.url),Z(Z({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(dg.succeeded(n))})).catch((function(t){var n,r;e.onError&&e.onError(t);try{var i=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return dg.error(i,e.data)}))}catch(e){o((function(e){return dg.error(t,e.data)}))}}))}),[]);return{requestState:r,get:a,post:s,patch:l,remove:c,revertToIdle:function(){o(dg.idle())},revertToInitialState:function(){o(t)}}}function hg(){return w.configure({showSpinner:!1}),e.useMemo((function(){w.start()}),[]),e.useEffect((function(){w.done()}),[]),null}var gg=go("div")((function(e){return{right:0,bottom:0,zIndex:99999,width:"100%",height:"100%",position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e.theme.palette.background.default}}));function vg(e){var t=e.isDashboard,r=e.loadingLogo,o=e.logoSxProps,i=G(e,["isDashboard","loadingLogo","logoSxProps"]);return Y.jsxs(Y.Fragment,{children:[Y.jsx(hg,{}),!t&&Y.jsxs(gg,Z({},i,{children:[Y.jsx(p.m.div,{animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,ease:"easeInOut",repeatDelay:1,repeat:1/0},children:Y.jsx(n.Box,{sx:Z({width:200},o),children:Y.jsx(La,{visibleByDefault:!0,disabledEffect:!0,src:r,alt:"logo"})})}),Y.jsx(n.Box,{component:p.m.div,animate:{scale:[1.2,1,1,1.2,1.2],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:100,height:100,borderRadius:"25%",position:"absolute",border:function(e){return"solid 3px ".concat(yr(e.palette.primary.dark,.24))}}}),Y.jsx(n.Box,{component:p.m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:120,height:120,borderRadius:"25%",position:"absolute",border:function(e){return"solid 8px ".concat(yr(e.palette.primary.dark,.24))}}})]}))]})}var Ag=e.createContext({resources:null,getResources:function(){},state:exports.RequestState.IDLE,clearResources:function(){}}),yg=require("@mui/icons-material"),bg=function(e){return Y.jsx(xg,{src:e,sx:{width:1,height:1}})};function xg(e){var t=e.src,r=e.sx,o=Y.jsx(n.Box,{component:"span",sx:Z({width:24,height:24,display:"inline-block",bgcolor:"currentColor",mask:"url(".concat(t,") no-repeat center / contain"),WebkitMask:"url(".concat(t,") no-repeat center / contain")},r)}),i=Y.jsx(n.Box,{sx:{display:"flex",gap:1},children:Y.jsx(n.SvgIcon,{component:yg[t],color:"inherit"})});return void 0!==yg[t]?i:o}var wg=e.createContext({paths:{},root:"",home:""});function jg(e,t){return"".concat(e).concat(t)}function Cg(){var t=e.useContext(Ag).resources,n=e.useContext(wg).paths;if(!t)return[];var r=t.modelParents;return e.useMemo((function(){var e=[];for(var o in r){for(var i=[],a=r[o],s=t[a[0]].properties.parent,l=s.icon,c={title:s.value,icon:bg(l),children:i},u=0;u<a.length;u++){var d=t[a[u]];i.push({title:d.properties.name,path:n[a[u]]?n[a[u]].list:""})}c.children=i,e.push(c)}return[{subheader:"",items:e||[]}]}),[t])}var Og=e.createContext({textFieldSize:"small",themeLayout:"vertical",defaultRowsPerPage:50,themeStretch:!0,loadingLoago:"",navBarLogo:"",miniNavBarLogo:""}),Mg=e.createContext({identityPoolId:"",region:"",userPoolId:"",userPoolWebClientId:"",bucket:"",googleApiKey:"",bucketUrl:""}),zg=e.createContext({setAlert:function(e,t,n,r){},setErrorAlert:function(e,t,n){},setSuccessAlert:function(e,t,n){}});var Dg=e.createContext({openDialog:function(e,t){}});var Tg,Pg=e.createContext({notifications:[],getNotifications:function(){},state:exports.RequestState.IDLE,clearNotifications:function(){}}),Ng=function(){return e.useContext(Og)},Eg=function(){return e.useContext(Ag)},Bg=function(){return e.useContext(zg)},kg=function(){return e.useContext(wg)},Lg=function(){return e.useContext(Dg)},Ig=function(){return e.useContext(Pg)},Sg=["1","2","3","4","5","6"];function Wg(e){var t=e.loadingVertical;return G(e,["loadingVertical"]),Y.jsx(n.Card,{sx:{pt:5,px:5,width:1500},children:Y.jsx(n.Grid,{container:!t,children:Sg.map((function(e){return Y.jsxs(n.Grid,{item:!0,xs:12,md:6,sx:{mb:3.5},children:[Y.jsx(n.Skeleton,{variant:"text",width:100,height:20,sx:{mb:1}}),Y.jsx(n.Skeleton,{variant:"text",width:300,height:20})]},e)}))})})}!function(e){e.ENGLISH="en",e.ARABIC="ar",e.FRENCH="fr",e.GERMAN="de"}(Tg||(Tg={}));var Hg=function(){function e(){}return e.isEnglish=function(){switch(localStorage.getItem("i18nextLng")){case Tg.ENGLISH:return!0;case Tg.ARABIC:return!1;default:return!0}},e.getLocale=function(){return this.isEnglish()?Tg.ENGLISH:Tg.ARABIC},e.getLocalizedString=function(e){for(var t=this.getLocale(),n=e[0].value,r=0;r<e.length;r++){var o=e[r];if(o.key===t)return o.value?o.value:n}return n},e}(),Rg=function(){function e(e,t,n,r,o,i){this.modelLocalizedName=e,this.isEnglish=t,this.title=n,this.record=r,this.isEdit=i,this.schema=o}return e.prototype.getTitle=function(){return(this.isEdit?this.getEditWord():this.getNewWord())+this.modelLocalizedName},e.prototype.getBreadCrumbLinks=function(e,t,n){return[{name:this.isEnglish?"Dashboard":"الرئيسية",href:n},{name:this.modelLocalizedName,href:e[t].list},{name:this.isEdit?this.getRecordName():this.getNewWord()}]},e.prototype.getNewWord=function(){return this.isEnglish?"Create ":" اضافة "},e.prototype.getEditWord=function(){return this.isEnglish?"Edit ":"تعديل "},e.prototype.getRecordName=function(){return this.record?this.schema[this.title].type===Uh.LOCALIZEDString?this.getValue():"object"!=typeof this.record[this.title]?this.record[this.title]:this.getValue():Y.jsx(n.Skeleton,{variant:"text",width:100,height:20})},e.prototype.getValue=function(){return this.record[this.title][0]?Hg.getLocalizedString(this.record[this.title]):"---"},e}(),Fg=function(){return o.object().shape({images:o.array().of(o.object().shape({title:o.string().required("Title is required"),_id:o.string().required("id is required"),url:o.string().required("url is required")}))})};function Vg(t){var r=t.selected,o=t.fileType,i=t.setFiles,a=t.setSelected,s=c.useForm({resolver:Da(Fg()),defaultValues:{images:[]}}),u=s.control,d=s.handleSubmit;s.setValue;var p=c.useFieldArray({control:u,name:"images"}),f=p.fields,m=p.append,h=p.remove;return e.useEffect((function(){m(r.filter((function(e){return void 0===f.find((function(t){return t._id===e._id}))}))),h(f.filter((function(e){return void 0===r.find((function(t){return t._id===e._id}))})).map((function(e){return f.findIndex((function(t){return t._id===e._id}))})))}),[r]),Y.jsx(rp,{methods:s,onSubmit:d((function(e){(0,t.update)(e)})),children:Y.jsxs(og,{sx:{maxHeight:450,paddingBottom:2},children:[f.map((function(e,t){return Y.jsxs(n.Stack,{sx:{my:1,pr:3},children:[Y.jsxs(Y.Fragment,{children:[Y.jsx(La,{src:ps(e.url,o)===Ua.IMAGE?e.url:us(cs(e.url)),alt:e.title,sx:{borderRadius:"30px",paddingBottom:1,paddingTop:1}}),Y.jsx(n.IconButton,{size:"small",onClick:function(){return t=e,void a((function(e){return e.filter((function(e){return e._id!==t._id}))}));var t},sx:{p:.01,mr:2,mb:1,right:0,position:"absolute",color:"common.white",bgcolor:"red","&:hover":{bgcolor:function(e){return n.alpha(e.palette.grey[900],.48)}}},children:Y.jsx(jo,{icon:"eva:close-fill"})})]}),Y.jsx(dp,{sx:{paddingBottom:1},name:"images.".concat(t,".title"),placeholder:"title",size:"small"}),t<f.length-1&&Y.jsx(n.Divider,{})]},e._id)})),Y.jsx(l.LoadingButton,{type:"submit",fullWidth:!0,variant:"contained",style:{textAlign:"center",marginBottom:10},children:"Update"}),Y.jsx(l.LoadingButton,{type:"submit",fullWidth:!0,variant:"outlined",style:{textAlign:"center"},onClick:function(){a([]),i&&i([])},children:"Remove All"})]})})}function Qg(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Xg=["onChange"],Yg={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Zg(e){const{onChange:t}=e,n=Rt(e,Xg),r=k.useRef(),o=k.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return ot((()=>{const e=_e((()=>{const e=r.current;i(),e!==r.current&&t(r.current)})),n=tt(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),k.useEffect((()=>{i(),t(r.current)}),[t]),Y.jsx("div",re({style:Yg,ref:o},n))}"production"!==process.env.NODE_ENV&&(Zg.propTypes={onChange:Ee.func.isRequired});var Gg=Si(Y.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Ug=Si(Y.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function qg(e){return It("MuiTabScrollButton",e)}var Kg=St("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const Jg=["className","slots","slotProps","direction","orientation","disabled"],_g=go(Rc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>re({width:40,flexShrink:0,opacity:.8,[`&.${Kg.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),$g=k.forwardRef((function(e,t){var n,r;const o=fo({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=Rt(o,Jg),u=re({isRtl:"rtl"===po().direction},o),d=(e=>{const{classes:t,orientation:n,disabled:r}=e;return Et({root:["root",n,r&&"disabled"]},qg,t)})(u),p=null!=(n=a.StartScrollButtonIcon)?n:Gg,f=null!=(r=a.EndScrollButtonIcon)?r:Ug,m=ko({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:u}),h=ko({elementType:f,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:u});return Y.jsx(_g,re({component:"div",className:$n(d.root,i),ref:t,role:null,ownerState:u,tabIndex:null},c,{children:"left"===l?Y.jsx(p,re({},m)):Y.jsx(f,re({},h))}))}));"production"!==process.env.NODE_ENV&&($g.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,direction:Ee.oneOf(["left","right"]).isRequired,disabled:Ee.bool,orientation:Ee.oneOf(["horizontal","vertical"]).isRequired,slotProps:Ee.shape({endScrollButtonIcon:Ee.oneOfType([Ee.func,Ee.object]),startScrollButtonIcon:Ee.oneOfType([Ee.func,Ee.object])}),slots:Ee.shape({EndScrollButtonIcon:Ee.elementType,StartScrollButtonIcon:Ee.elementType}),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var ev=$g;function tv(e){return It("MuiTabs",e)}var nv=St("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);const rv=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ov=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,iv=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,av=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},sv=go("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nv.scrollButtons}`]:t.scrollButtons},{[`& .${nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>re({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),lv=go("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>re({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),cv=go("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>re({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),uv=go("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>re({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),dv=go(Zg,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),pv={};let fv=!1;const mv=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiTabs"}),r=po(),o="rtl"===r.direction,{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:c,className:u,component:d="div",allowScrollButtonsMobile:p=!1,indicatorColor:f="primary",onChange:m,orientation:h="horizontal",ScrollButtonComponent:g=ev,scrollButtons:v="auto",selectionFollowsFocus:A,slots:y={},slotProps:b={},TabIndicatorProps:x={},TabScrollButtonProps:w={},textColor:j="primary",value:C,variant:O="standard",visibleScrollbar:M=!1}=n,z=Rt(n,rv),D="scrollable"===O,T="vertical"===h,P=T?"scrollTop":"scrollLeft",N=T?"top":"left",E=T?"bottom":"right",B=T?"clientHeight":"clientWidth",L=T?"height":"width",I=re({},n,{component:d,allowScrollButtonsMobile:p,indicatorColor:f,orientation:h,vertical:T,scrollButtons:v,textColor:j,variant:O,visibleScrollbar:M,fixed:!D,hideScrollbar:D&&!M,scrollableX:D&&!T,scrollableY:D&&T,centered:l&&!D,scrollButtonsHideMobile:!p}),S=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Et({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},tv,l)})(I),W=ko({elementType:y.StartScrollButtonIcon,externalSlotProps:b.startScrollButtonIcon,ownerState:I}),H=ko({elementType:y.EndScrollButtonIcon,externalSlotProps:b.endScrollButtonIcon,ownerState:I});"production"!==process.env.NODE_ENV&&l&&D&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[R,F]=k.useState(!1),[V,Q]=k.useState(pv),[X,Z]=k.useState(!1),[G,U]=k.useState(!1),[q,K]=k.useState(!1),[J,_]=k.useState({overflow:"hidden",scrollbarWidth:0}),$=new Map,ee=k.useRef(null),te=k.useRef(null),ne=()=>{const e=ee.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Ct(e,r.direction),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==C){const e=te.current.children;if(e.length>0){const r=e[$.get(C)];"production"!==process.env.NODE_ENV&&(r||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${C}".`,$.keys?`You can provide one of the following values: ${Array.from($.keys()).join(", ")}.`:null].join("\n"))),n=r?r.getBoundingClientRect():null,"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&!fv&&n&&0===n.width&&0===n.height&&0!==t.clientWidth&&(t=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${C}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join("\n")),fv=!0)}}return{tabsMeta:t,tabMeta:n}},oe=ut((()=>{const{tabsMeta:e,tabMeta:t}=ne();let n,r=0;if(T)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[L]:t?t[L]:0};if(isNaN(V[n])||isNaN(V[L]))Q(i);else{const e=Math.abs(V[n]-i[n]),t=Math.abs(V[L]-i[L]);(e>=1||t>=1)&&Q(i)}})),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=(()=>{})){const{ease:i=Qg,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const u=Math.min(1,(r-s)/a);t[e]=i(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(d)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(P,ee.current,e,{duration:r.transitions.duration.standard}):ee.current[P]=e},ae=e=>{let t=ee.current[P];T?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===jt()?-1:1),ie(t)},se=()=>{const e=ee.current[B];let t=0;const n=Array.from(te.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[B]>e){0===r&&(t=e);break}t+=o[B]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},ue=k.useCallback((e=>{_({overflow:null,scrollbarWidth:e})}),[]),de=ut((e=>{const{tabsMeta:t,tabMeta:n}=ne();if(n&&t)if(n[N]<t[N]){const r=t[P]+(n[N]-t[N]);ie(r,{animation:e})}else if(n[E]>t[E]){const r=t[P]+(n[E]-t[E]);ie(r,{animation:e})}})),pe=ut((()=>{D&&!1!==v&&K(!q)}));k.useEffect((()=>{const e=_e((()=>{ee.current&&oe()})),t=tt(ee.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),Array.from(te.current.children).forEach((e=>{n.observe(e)}))),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[oe]),k.useEffect((()=>{const e=Array.from(te.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&D&&!1!==v){const n=e[0],r=e[t-1],o={root:ee.current,threshold:.99},i=new IntersectionObserver((e=>{Z(!e[0].isIntersecting)}),o);i.observe(n);const a=new IntersectionObserver((e=>{U(!e[0].isIntersecting)}),o);return a.observe(r),()=>{i.disconnect(),a.disconnect()}}}),[D,v,q,null==c?void 0:c.length]),k.useEffect((()=>{F(!0)}),[]),k.useEffect((()=>{oe()})),k.useEffect((()=>{de(pv!==V)}),[de,V]),k.useImperativeHandle(s,(()=>({updateIndicator:oe,updateScrollButtons:pe})),[oe,pe]);const fe=Y.jsx(uv,re({},x,{className:$n(S.indicator,x.className),ownerState:I,style:re({},V,x.style)}));let me=0;const he=k.Children.map(c,(e=>{if(!k.isValidElement(e))return null;"production"!==process.env.NODE_ENV&&Of.isFragment(e)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n"));const t=void 0===e.props.value?me:e.props.value;$.set(t,me);const n=t===C;return me+=1,k.cloneElement(e,re({fullWidth:"fullWidth"===O,indicator:n&&!R&&fe,selected:n,selectionFollowsFocus:A,onChange:m,textColor:j,value:t},1!==me||!1!==C||e.props.tabIndex?{}:{tabIndex:0}))})),ge=(()=>{const e={};e.scrollbarSizeListener=D?Y.jsx(dv,{onChange:ue,className:$n(S.scrollableX,S.hideScrollbar)}):null;const t=D&&("auto"===v&&(X||G)||!0===v);return e.scrollButtonStart=t?Y.jsx(g,re({slots:{StartScrollButtonIcon:y.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:h,direction:o?"right":"left",onClick:le,disabled:!X},w,{className:$n(S.scrollButtons,w.className)})):null,e.scrollButtonEnd=t?Y.jsx(g,re({slots:{EndScrollButtonIcon:y.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:H},orientation:h,direction:o?"left":"right",onClick:ce,disabled:!G},w,{className:$n(S.scrollButtons,w.className)})):null,e})();return Y.jsxs(sv,re({className:$n(S.root,u),ownerState:I,ref:t,as:d},z,{children:[ge.scrollButtonStart,ge.scrollbarSizeListener,Y.jsxs(lv,{className:S.scroller,ownerState:I,style:{overflow:J.overflow,[T?"margin"+(o?"Left":"Right"):"marginBottom"]:M?void 0:-J.scrollbarWidth},ref:ee,children:[Y.jsx(cv,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===h?"vertical":null,className:S.flexContainer,ownerState:I,onKeyDown:e=>{const t=te.current,n=et(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===h?"ArrowLeft":"ArrowUp",i="horizontal"===h?"ArrowRight":"ArrowDown";switch("horizontal"===h&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),av(t,n,iv);break;case i:e.preventDefault(),av(t,n,ov);break;case"Home":e.preventDefault(),av(t,null,ov);break;case"End":e.preventDefault(),av(t,null,iv)}},ref:te,role:"tablist",children:he}),R&&fe]}),ge.scrollButtonEnd]}))}));"production"!==process.env.NODE_ENV&&(mv.propTypes={action:qe,allowScrollButtonsMobile:Ee.bool,"aria-label":Ee.string,"aria-labelledby":Ee.string,centered:Ee.bool,children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,indicatorColor:Ee.oneOfType([Ee.oneOf(["primary","secondary"]),Ee.string]),onChange:Ee.func,orientation:Ee.oneOf(["horizontal","vertical"]),ScrollButtonComponent:Ee.elementType,scrollButtons:Ee.oneOf(["auto",!1,!0]),selectionFollowsFocus:Ee.bool,slotProps:Ee.shape({endScrollButtonIcon:Ee.oneOfType([Ee.func,Ee.object]),startScrollButtonIcon:Ee.oneOfType([Ee.func,Ee.object])}),slots:Ee.shape({EndScrollButtonIcon:Ee.elementType,StartScrollButtonIcon:Ee.elementType}),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),TabIndicatorProps:Ee.object,TabScrollButtonProps:Ee.object,textColor:Ee.oneOf(["inherit","primary","secondary"]),value:Ee.any,variant:Ee.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:Ee.bool});var hv=mv;function gv(e){return It("MuiTab",e)}var vv=St("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);const Av=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],yv=go(Rc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Ke(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>re({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${vv.iconWrapper}`]:re({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${vv.selected}`]:{opacity:1},[`&.${vv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${vv.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${vv.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${vv.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${vv.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),bv=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:c,label:u,onChange:d,onClick:p,onFocus:f,selected:m,selectionFollowsFocus:h,textColor:g="inherit",value:v,wrapped:A=!1}=n,y=Rt(n,Av),b=re({},n,{disabled:o,disableFocusRipple:i,selected:m,icon:!!s,iconPosition:l,label:!!u,fullWidth:a,textColor:g,wrapped:A}),x=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return Et({root:["root",i&&a&&"labelIcon",`textColor${Ke(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},gv,t)})(b),w=s&&u&&k.isValidElement(s)?k.cloneElement(s,{className:$n(x.iconWrapper,s.props.className)}):s;return Y.jsxs(yv,re({focusRipple:!i,className:$n(x.root,r),ref:t,role:"tab","aria-selected":m,disabled:o,onClick:e=>{!m&&d&&d(e,v),p&&p(e)},onFocus:e=>{h&&!m&&d&&d(e,v),f&&f(e)},ownerState:b,tabIndex:m?0:-1},y,{children:["top"===l||"start"===l?Y.jsxs(k.Fragment,{children:[w,u]}):Y.jsxs(k.Fragment,{children:[u,w]}),c]}))}));"production"!==process.env.NODE_ENV&&(bv.propTypes={children:lt,classes:Ee.object,className:Ee.string,disabled:Ee.bool,disableFocusRipple:Ee.bool,disableRipple:Ee.bool,icon:Ee.oneOfType([Ee.element,Ee.string]),iconPosition:Ee.oneOf(["bottom","end","start","top"]),label:Ee.node,onChange:Ee.func,onClick:Ee.func,onFocus:Ee.func,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),value:Ee.any,wrapped:Ee.bool});var xv=bv;function wv(t){var r=this,o=t.Content,i=t.uploadFiles;t.imagesFiles;var a=t.isLoading;G(t,["Content","uploadFiles","imagesFiles","isLoading"]);var s=e.useState([]),l=s[0],c=s[1],u=e.useState(!1),d=u[0],p=u[1],f=e.useState(!1),m=f[0],h=f[1],g=e.useState(!1);g[0];var v=g[1],A=e.useCallback((function(e){p(!1),c((function(t){return K(K([],t,!0),e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})})),!0)}))}),[c,l]);return Y.jsxs(n.Grid,{children:[Y.jsx(n.Snackbar,{open:m,anchorOrigin:{horizontal:"center",vertical:"top"},children:Y.jsx(n.Alert,{onClose:function(){h(!1)},severity:"success",children:"Images are uploaded !"},"alert")}),Y.jsx(tp,{files:l,showPreview:!0,onDrop:A,onRemoveAll:function(){c([]),setTimeout((function(){v(!1)}),4e3)},onRemove:function(e){c((function(t){return t.filter((function(t){return t!==e}))}))},onUpload:function(){return U(r,void 0,void 0,(function(){return q(this,(function(e){switch(e.label){case 0:return[4,i(l)];case 1:return e.sent(),p(!0),h(!0),c([]),setTimeout((function(){h(!1)}),4e3),[2]}}))}))},sx:{p:2},Content:o,isLoading:a,uploaded:d})]})}function jv(e){return It("MuiImageList",e)}St("MuiImageList",["root","masonry","quilted","standard","woven"]);const Cv=k.createContext({});"production"!==process.env.NODE_ENV&&(Cv.displayName="ImageListContext");var Ov=Cv;const Mv=["children","className","cols","component","rowHeight","gap","style","variant"],zv=go("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})((({ownerState:e})=>re({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},"masonry"===e.variant&&{display:"block"}))),Dv=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiImageList"}),{children:r,className:o,cols:i=2,component:a="ul",rowHeight:s="auto",gap:l=4,style:c,variant:u="standard"}=n,d=Rt(n,Mv),p=k.useMemo((()=>({rowHeight:s,gap:l,variant:u})),[s,l,u]);k.useEffect((()=>{"production"!==process.env.NODE_ENV&&void 0!==document&&"objectFit"in document.documentElement.style==!1&&console.error(["MUI: ImageList v5+ no longer natively supports Internet Explorer.","Use v4 of this component instead, or polyfill CSS object-fit."].join("\n"))}),[]);const f=re("masonry"===u?{columnCount:i,columnGap:l}:{gridTemplateColumns:`repeat(${i}, 1fr)`,gap:l},c),m=re({},n,{component:a,gap:l,rowHeight:s,variant:u}),h=(e=>{const{classes:t,variant:n}=e;return Et({root:["root",n]},jv,t)})(m);return Y.jsx(zv,re({as:a,className:$n(h.root,h[u],o),ref:t,style:f,ownerState:m},d,{children:Y.jsx(Ov.Provider,{value:p,children:r})}))}));"production"!==process.env.NODE_ENV&&(Dv.propTypes={children:Ee.node.isRequired,classes:Ee.object,className:Ee.string,cols:Pt,component:Ee.elementType,gap:Ee.number,rowHeight:Ee.oneOfType([Ee.oneOf(["auto"]),Ee.number]),style:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),variant:Ee.oneOfType([Ee.oneOf(["masonry","quilted","standard","woven"]),Ee.string])});var Tv=Dv;function Pv(e){return It("MuiImageListItem",e)}var Nv=St("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]);const Ev=["children","className","cols","component","rows","style"],Bv=go("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nv.img}`]:t.img},t.root,t[n.variant]]}})((({ownerState:e})=>re({display:"block",position:"relative"},"standard"===e.variant&&{display:"flex",flexDirection:"column"},"woven"===e.variant&&{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}},{[`& .${Nv.img}`]:re({objectFit:"cover",width:"100%",height:"100%",display:"block"},"standard"===e.variant&&{height:"auto",flexGrow:1})}))),kv=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiImageListItem"}),{children:r,className:o,cols:i=1,component:a="li",rows:s=1,style:l}=n,c=Rt(n,Ev),{rowHeight:u="auto",gap:d,variant:p}=k.useContext(Ov);let f="auto";"woven"===p?f=void 0:"auto"!==u&&(f=u*s+d*(s-1));const m=re({},n,{cols:i,component:a,gap:d,rowHeight:u,rows:s,variant:p}),h=(e=>{const{classes:t,variant:n}=e;return Et({root:["root",n],img:["img"]},Pv,t)})(m);return Y.jsx(Bv,re({as:a,className:$n(h.root,h[p],o),ref:t,style:re({height:f,gridColumnEnd:"masonry"!==p?`span ${i}`:void 0,gridRowEnd:"masonry"!==p?`span ${s}`:void 0,marginBottom:"masonry"===p?d:void 0},l),ownerState:m},c,{children:k.Children.map(r,(e=>k.isValidElement(e)?("production"!==process.env.NODE_ENV&&Of.isFragment(e)&&console.error(["MUI: The ImageListItem component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),"img"===e.type||$e(e,["Image"])?k.cloneElement(e,{className:$n(h.img,e.props.className)}):e):null))}))}));"production"!==process.env.NODE_ENV&&(kv.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,cols:Pt,component:Ee.elementType,rows:Pt,style:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var Lv=kv,Iv={},Sv=ya;Object.defineProperty(Iv,"__esModule",{value:!0});var Wv=Iv.default=void 0,Hv=Sv(wa()),Rv=Y,Fv=(0,Hv.default)((0,Rv.jsx)("path",{d:"M21 3H3v18h18V3zM10 17l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBoxSharp");Wv=Iv.default=Fv;var Vv=go(n.Box)((function(e){return{height:"100%",display:"flex",textAlign:"center",alignItems:"center",flexDirection:"column",justifyContent:"center",padding:e.theme.spacing(8,2)}}));function Qv(e){var t=e.title,r=e.description,o=e.img,i=e.imageHeight,a=G(e,["title","description","img","imageHeight"]);return Y.jsxs(Vv,Z({},a,{children:[Y.jsx(La,{disabledEffect:!0,visibleByDefault:!0,alt:"empty content",src:o||"/assets/illustrations/illustration_empty_content.svg",sx:{height:null!=i?i:240,mb:3}}),Y.jsx(n.Typography,{variant:"h5",gutterBottom:!0,children:t}),r&&Y.jsx(n.Typography,{variant:"body2",sx:{color:"text.secondary"},children:r})]}))}var Xv=go((function(e){return Y.jsx(Lv,Z({},e))}))((function(e){return{"& .MuiImageListItem-img":{borderRadius:"10px",border:e.selected&&"3px solid #0085FF"}}}));function Yv(t){var r=e.useState(t.selected),o=r[0],i=r[1],a=t.item,s=t.onImageSelected,l=t.fileType?ps(a.url,t.fileType):Ua.IMAGE;return k.useEffect((function(){i(t.selected)}),[o,t.selected]),Y.jsxs(Xv,{selected:o,onClick:function(){return function(e){s(e),i(!o)}(a)},children:[Y.jsx("img",{src:l===Ua.IMAGE?a.url:us(cs(a.url)),alt:a.title,loading:"lazy"}),l!==Ua.IMAGE&&Y.jsx(n.Typography,{style:{color:"#6F6F6F"},fontWeight:200,fontSize:10,alignSelf:"center",children:a.title}),o&&Y.jsx(n.ImageListItemBar,{sx:{background:"transparent"},position:"top",actionIcon:Y.jsx(n.Icon,{children:Y.jsx(Wv,{color:"info",sx:{background:"#fff",color:"#0085FF"}})}),actionPosition:"right"})]})}function Zv(e){var t=e.images,r=e.isLoading,o=e.selected,i=e.multiple,a=e.numberOfColumns,s=e.fileType?e.fileType:Ua.IMAGE;return Y.jsxs(og,{sx:{maxHeight:380},children:[Y.jsxs(Tv,{cols:a||7,gap:8,children:[!r&&t.map((function(t,n){return Y.jsx(Yv,{item:t,index:n,multiple:i,onImageSelected:e.onImageSelected,images:e.images,selected:void 0!==o.find((function(e){return e._id===t._id})),fileType:s},t._id)})),r&&Array.from(Array(10).keys()).map((function(e){return Y.jsx(n.Skeleton,{variant:"rectangular",sx:{borderRadius:"10px",height:"164px"}},e)}))]}),(!t||0===t.length)&&!r&&Y.jsx(Qv,{title:"No images found"})]})}function Gv(t){var r=t.placeholder,o=t.onInputChange,i=G(t,["placeholder","onInputChange"]),a=function(e){o(e.target.value)},s=e.useMemo((function(){return cg.debounce(a,500)}),[]);return e.useEffect((function(){return function(){s.cancel()}}),[]),Y.jsx(n.TextField,Z({},i,{fullWidth:!0,onChange:s,placeholder:r,InputProps:{startAdornment:Y.jsx(n.InputAdornment,{position:"start",children:Y.jsx(jo,{icon:"eva:search-fill",sx:{color:"text.disabled",width:20,height:20}})})}}))}function Uv(e){var t=e.isLoading,r=e.onImageSelected,o=e.images,i=e.numberOfColumns,a=e.onQueryFilter,s=e.isUploading,l=e.selected,c=e.multiple,u=e.fileType;return Y.jsxs(n.Stack,{spacing:1,sx:{mx:1},children:[s&&Y.jsx(n.Alert,{severity:"info",children:"Uploading in progress"}),a&&Y.jsx(Gv,{placeholder:"search",onInputChange:a,size:"small",sx:{pr:1,pl:2,pb:1}}),Y.jsx(Zv,{onImageSelected:r,images:o,isLoading:t,numberOfColumns:i,selected:l,multiple:c,fileType:u})]})}function qv(e){var t=e.children,n=e.value,r=e.index,o=G(e,["children","value","index"]);return Y.jsx("div",Z({role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r)},o,{children:n===r&&Y.jsx(wo,{children:t})}))}var Kv=go((function(e){return Y.jsx(hv,Z({},e))}))({"& .MuiTabs-indicator":{display:"none",justifyContent:"center",backgroundColor:"transparent"}}),Jv=go((function(e){return Y.jsx(xv,Z({disableRipple:!0},e))}))((function(e){var t=e.theme;return{textTransform:"none",fontWeight:t.typography.fontWeightRegular,fontSize:t.typography.pxToRem(15),paddingLeft:"23px",paddingRight:"23px",color:"#000","&.Mui-selected":{background:"#fff",border:"0.5px solid black",borderRadius:"0px"},"&.Mui-focusVisible":{backgroundColor:"rgba(100, 95, 228, 0.32)"},"&.MuiTab-root":{marginRight:"0px"}}}));function _v(e){var t=e.uploadingTapProps,n=e.onImageSelected,r=e.images,o=e.onQueryFilter,i=e.isLoading,a=e.uploadFileString,s=e.mediaLibraryString,l=e.selected,c=e.multiple,u=e.fileType,d=e.handleSelectionPanelState,p=e.numberOfColumns,f=k.useState(0),m=f[0],h=f[1];return Y.jsxs(wo,{sx:{width:"100%"},children:[Y.jsx(wo,{paddingBottom:2,children:Y.jsxs(Kv,{value:m,onChange:function(e,t){d&&d(1===t),h(t)},sx:{background:"#F8F8F8",paddingLeft:3},children:[Y.jsx(Jv,{label:a||"Upload files"}),Y.jsx(Jv,{label:s||"Media library"})]})}),Y.jsx(qv,{value:m,index:0,children:Y.jsx(wv,Z({},t))}),Y.jsx(qv,{value:m,index:1,children:Y.jsx(Uv,{numberOfColumns:p,isUploading:t.isLoading,images:r,onImageSelected:n,onQueryFilter:o,isLoading:i,selected:l,multiple:c,fileType:u})})]})}function $v(t){var r=this,o=t.onDismiss,i=t.onConfirm,a=t.uploadImages,s=t.filterImagesByTitle,l=t.updateImages,c=t.loadImagesList,u=t.Content,d=t.setFiles,p=t.fileType,f=t.basePath,m=t.setParams,h=t.icon,g=t.mediaLibraryString,v=t.uploadFileString,A=t.message,y=t.imagesSelected,b=t.multiple,x=G(t,["onDismiss","onConfirm","uploadImages","filterImagesByTitle","updateImages","loadImagesList","Content","setFiles","fileType","basePath","setParams","icon","mediaLibraryString","uploadFileString","message","imagesSelected","multiple"]),w=e.useState(!1),j=w[0],C=w[1],O=e.useState([]),M=O[0],z=O[1],D=e.useState(!1),T=D[0],P=D[1],N=e.useState([]),E=N[0],B=N[1],k=e.useState(!0),L=k[0],I=k[1],S=function(e){B(b?function(t){return t.find((function(t){return t._id===e._id}))?t.filter((function(t){return t._id!==e._id})):K([e],t,!0)}:[e])};e.useEffect((function(){y&&0!==y.length&&B(y)}),[y]),e.useEffect((function(){h&&B([h])}),[h]);var W=e.useState([]),H=W[0],R=W[1],F={Content:u,uploadFiles:function(e){return U(r,void 0,void 0,(function(){var t;return q(this,(function(n){switch(n.label){case 0:return z(e),C(!0),[4,a(e,p)];case 1:return t=n.sent(),m&&m((function(e){return Z({},e)})),t.forEach((function(e){S(e)})),C(!1),R(t),[2]}}))}))},isLoading:j,imagesFiles:M};return e.useEffect((function(){F.isLoading&&!L||(P(!0),c((function(e){P(!1),R(e)}),p,f))}),[F.isLoading,L]),Y.jsxs(n.Dialog,Z({},x,{onClose:o,children:[Y.jsx(n.DialogTitle,{id:"id",style:{paddingBottom:6},children:Y.jsxs(n.Stack,{direction:"row",justifyContent:"space-between",children:[Y.jsx(n.Typography,{flexGrow:1,style:{color:"black"},fontWeight:700,fontSize:25,children:A||"Insert Media"}),Y.jsx(n.IconButton,{size:"large",onClick:o,sx:{p:.01,color:"common.black",bgcolor:"white"},children:Y.jsx(jo,{icon:"eva:close-fill"})})]})}),Y.jsxs(n.Grid,{container:!0,children:[Y.jsx(n.Grid,{item:!0,xs:E.length>0?9:12,children:Y.jsx(_v,{onImageSelected:S,uploadingTapProps:F,images:H,numberOfColumns:E.length>0?5:7,mediaLibraryString:g,uploadFileString:v,multiple:b,onQueryFilter:function(e){return function(e,t){P(!0),s(e,(function(e){P(!1),R(e)}),t)}(e,p)},isLoading:T,selected:E,handleSelectionPanelState:function(e){return I(e)},fileType:p})}),E.length>0&&Y.jsx(n.Grid,{item:!0,xs:3,sx:{background:"#F8F8F8",p:3,borderLeft:"0.5px solid black",borderLeftColor:"#ABABAB"},children:Y.jsx(Vg,{setSelected:B,selected:E,update:function(e){P(!0),l(e.images,(function(e){P(!1),R(e)})),m&&m((function(e){return Z({},e)}))},fileType:p,setFiles:d})})]}),Y.jsx(n.DialogActions,{children:0!==E.length&&Y.jsx(n.Button,{size:"small",variant:"contained",autoFocus:!0,onClick:function(){return i(E)},children:b?"Select Images":"Select Image"})})]}))}var eA=function(){function e(){}return e.optimizeImage=function(e,t){return new Promise((function(n,r){var o,i,a=null!==(o=t.maxWidth)&&void 0!==o?o:1e3,s=null!==(i=t.maxHeight)&&void 0!==i?i:1e3,l=document.createElement("canvas"),c=l.getContext("2d");if(!c)return e;var u=document.createElement("img");u.src=URL.createObjectURL(e);var d=e.name.split(".").slice(0,-1).join(".");u.onload=function(){var e=u.width,t=u.height;if(e>a||t>s){var r=e/t;e>t&&e>a?t=(e=a)/r:t>s&&(e=(t=s)*r)}l.width=e,l.height=t,c.imageSmoothingEnabled=!0,c.imageSmoothingQuality="high",c.drawImage(u,0,0,e,t),l.toBlob((function(e){var t=new File([e],"".concat(d,".webp"),{type:"image/webp"});n(t)}),"image/webp",1)},u.onerror=function(e){r(e)}}))},e}(),tA=function(e,t,n,r){return U(void 0,void 0,void 0,(function(){return q(this,(function(o){switch(o.label){case 0:return t&&n===qa.NORMAL?[3,1]:[3,3];case 1:return[4,eA.optimizeImage(e,{maxWidth:1e3,maxHeight:1e3})];case 2:return e=o.sent(),[3,3];case 3:return[2,new Promise((function(t){new C(e,{quality:.6,success:function(e){try{j.Storage.put(e.name,e,{contentType:e.type}).then((function(e){r(e.key)}))}catch(e){console.log("Error uploading file: ",e)}t(!0)},error:function(e){console.log(e.message)}})}))]}}))}))},nA=function(e,t){return U(void 0,void 0,void 0,(function(){return q(this,(function(n){return[2,Promise.all(e.map((function(e){return ps(e.name,t)===Ua.IMAGE?new Promise((function(t){new C(e,{quality:.6,convertSize:1/0,success:function(e){try{j.Storage.put(e.name,e,{contentType:e.type}).then((function(e){t(e.key)}))}catch(e){console.log("Error uploading file: ",e)}},error:function(e){console.log(e.message)}})})):new Promise((function(t){var n=[];try{j.Storage.put(e.name,e,{contentType:e.type}).then((function(e){n.push(e.key),t(e.key)}))}catch(e){console.log("Error uploading file: ",e)}}))})))]}))}))},rA=function(e,t){return Z({},t)},oA=function(e){return{display:"flex",padding:8,overflow:"auto"}};function iA(e){var t=e.items,r=e.disabled,o=t.length>0;return Y.jsx(n.List,{style:{display:"flex",flexWrap:"wrap",flexGrow:0,flexShrink:0,flexBasis:"25%"},disablePadding:!0,sx:Z({},o&&{my:3,display:"flex",flexDirection:"row",flexWrap:"wrap"}),children:Y.jsx(p.AnimatePresence,{children:Y.jsx(O.DragDropContext,{onDragEnd:function(n){if(n.destination){var r=t.splice(n.source.index,1)[0];t.splice(n.destination.index,0,r),e.setImages(t)}},children:Y.jsx(O.Droppable,{droppableId:"characters",direction:"horizontal",children:function(t,o){return Y.jsxs("div",Z({style:oA(o.isDraggingOver)},t.droppableProps,{ref:t.innerRef,children:[e.items.map((function(t,o){return Y.jsx(n.ListItem,Z({component:p.m.div},Wa().inRight,{sx:{p:0,m:.75,width:100,height:100,position:"relative",display:"inline-flex"},children:Y.jsx(O.Draggable,{draggableId:t._id,index:o,children:function(o,i){return Y.jsxs("div",Z({ref:o.innerRef},o.draggableProps,o.dragHandleProps,{style:rA(i.isDragging,o.draggableProps.style),children:[Y.jsx("img",{src:t.url,alt:"no"}),e.onRemove&&Y.jsx(n.IconButton,{size:"small",disabled:r,onClick:function(){return e.onRemove({id:t._id,name:t.title})},sx:{top:-8,p:.01,right:-8,position:"absolute",color:"common.white",bgcolor:"red","&:hover":{bgcolor:function(e){return n.alpha(e.palette.grey[900],.48)}}},children:Y.jsx(jo,{icon:"eva:close-fill"})})]}))}},t._id)}),t._id)})),t.placeholder]}))}})})})})}function aA(e,t,n){Object.keys(e).map((function(n){if(e[n]&&t[n].type===Uh.DATE){if(e[n].from&&""!==e[n].from)try{e[n].from=e[n].from.toISOString().split("T")[0]}catch(e){}if(e[n].to&&""!==e[n].to)try{e[n].to=e[n].to.toISOString().split("T")[0]}catch(e){}}}));var r="";return Object.keys(e).map((function(o){e[o]&&""!==e[o]&&t[o].type&&o!==n&&(t[o].type===Uh.NUMBER||t[o].type===Uh.DATE?!e[o].from&&!e[o].to||""===e[o].from&&""===e[o].to?e[o]=void 0:(e[o].from&&""!==e[o].from&&e[o].from,e[o].to&&""!==e[o].to&&e[o].to,r=r+o+":from="+e[o].from+",to="+e[o].to+";;"+t[o].type+"^^"):t[o].type===Uh.REFERENCE?t[o].multipleInFilter?r=r+o+"="+e[o].map((function(e){return e._id}))+";;"+t[o].type+"^^":(e[o].title,e[o]._id,r=r+o+"="+e[o]._id+";;"+t[o].type+"^^"):(e[o],r=r+o+"="+e[o]+";;"+t[o].type+"^^"))})),r}function sA(e,t,n,r,o){if(n[t]=void 0,e)switch(e.type){case Uh.STRING:case Uh.PHONENUMBER:case Uh.LOCALIZEDString:case Uh.OBJECTID:n[t]=r&&r.get(t)?r.get(t):"";break;case Uh.BOOLEAN:n[t]=!r||!1!==r.get(t)&&!0!==r.get(t)?void 0:r.get(t);break;case Uh.REFERENCE:if(o[t].multipleInFilter)if(r){var i=r.getAll(t+"-name");if(i&&i.length>0){var a=r.getAll(t+"-id");n[t]=i.map((function(e,t){return{_id:a[t],title:i[t]}}))}else n[t]=void 0}else n[t]=void 0;else n[t]=r&&r.get(t+"-name")?{_id:r.get(t+"-id"),title:r.get(t+"-name")}:void 0;break;case Uh.DATE:case Uh.NUMBER:n[t]={from:"",to:""},n[t].from=r.get(t+"-from")?r.get(t+"-from"):"",n[t].to=r.get(t+"-to")?r.get(t+"-to"):"";break;case Uh.ENUM:n[t]=r&&r.get(t)?r.get(t):void 0}}function lA(e){return{key:e.id,name:e.name}}function cA(e){var t=e.file,r=e.tooltip,o=e.imageView,i=e.onDownload,a=e.sx,s=e.imgSx,l=lA(t).name,c=cs(l),u="image"===c&&o?Y.jsx(n.Box,{component:"img",src:l,sx:Z({width:1,height:1,flexShrink:0,objectFit:"cover"},s)}):Y.jsx(n.Box,{component:"img",src:us(c),sx:Z({width:32,height:32,flexShrink:0},a)});return r?Y.jsx(n.Tooltip,{title:l,children:Y.jsxs(n.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[u,i&&Y.jsx(Gd,{onDownload:i})]})}):Y.jsxs(Y.Fragment,{children:[u,i&&Y.jsx(Gd,{onDownload:i})]})}function uA(e){e.thumbnail;var t=e.files,r=e.disabled,o=e.onRemove,i=e.sx;return(null==t?void 0:t.length)?Y.jsx(p.AnimatePresence,{initial:!1,children:t.map((function(e){var t=lA(e),a=t.key,s=t.name;return Y.jsxs(n.Stack,Z({component:p.m.div},Wa().inUp,{spacing:2,direction:"row",alignItems:"center",sx:Z({my:1,px:1,py:.75,borderRadius:.75,border:function(e){return"solid 1px ".concat(e.palette.divider)}},i),children:[Y.jsx(cA,{file:e}),Y.jsx(n.Stack,{flexGrow:1,sx:{minWidth:0},children:Y.jsx(n.Typography,{variant:"subtitle2",noWrap:!0,children:s})}),o&&Y.jsx(n.IconButton,{disabled:r,edge:"end",size:"small",onClick:function(){return o(e)},children:Y.jsx(jo,{icon:"eva:close-fill"})})]}),a)}))}):null}function dA(e){e.showPreview;var t=e.files,r=e.type,o=e.disabled,i=e.onRemove,a=e.setImages,s=t.length>0;if(r===Ua.IMAGE)return Y.jsx(n.List,{style:{width:607,overflowX:"auto",display:"flex",flexWrap:"wrap",flexGrow:0,flexShrink:0,flexBasis:"25%"},disablePadding:!0,sx:Z({},s&&{my:3}),children:Y.jsx(iA,{items:t,onRemove:i,setImages:a,disabled:o})});var l=[];return t.forEach((function(e){l.push({name:e.title+"."+e.url.split(".").pop(),id:e._id})})),Y.jsx(uA,{onRemove:i,files:l,disabled:o})}function pA(e){var t="";return e!==Ua.ALL&&(t="&filters=type=".concat(e,";;enum")),t}function fA(t){var r=this,o=t.image,i=t.keyValue,a=t.isEnglish,s=t.imageDialogState,l=t.imageOptimizingCategory,c=t.label,u=t.multiple,d=t.fileType,p=t.dismissDialogState,f=t.setImages,m=t.handleEditImage,h=t.handleRemoveImage,g=t.setImageDialogState,v=t.setImage,A=t.setValue,y=e.useContext(fg).dashbaordUrlPrefix,b=e.useContext(Mg).bucketUrl;return Y.jsxs(Y.Fragment,{children:[Y.jsxs(n.Card,{sx:{p:3,mb:0},style:{width:"100%",minHeight:248,top:444,paddingTop:24,paddingLeft:24,paddingRight:36,paddingBottom:24,left:330,position:"inherit",backgroundColor:"white"},children:[Y.jsx(n.Stack,{spacing:3.5,marginRight:4,children:Y.jsxs("div",{style:{display:"flex",alignItems:"baseline"},children:[Y.jsx(n.Typography,{fontWeight:500,height:25,fontSize:18,letterSpacing:.15,width:"100%",position:"inherit",display:"inline",alignItems:"center",children:c}),o&&o[i]&&Y.jsx(n.Typography,{marginLeft:17,fontWeight:400,height:21,fontSize:16,letterSpacing:.15,width:91,boxSizing:"border-box",flex:1,alignSelf:"end",children:Y.jsx(n.Link,{onClick:function(){return m(i)},underline:"always",color:"#0085FF",style:{cursor:"pointer"},children:a?"Edit":"تعديل"})})]})}),o&&o[i]&&!s[i]?!u&&Y.jsxs(n.Grid,{position:"relative",children:[Y.jsx(n.IconButton,{size:"small",onClick:function(){return h(i)},sx:{p:.01,right:0,position:"absolute",color:"common.white",bgcolor:function(e){return n.alpha(e.palette.grey[900],.72)},"&:hover":{bgcolor:function(e){return n.alpha(e.palette.grey[900],.48)}}},children:Y.jsx(jo,{icon:"eva:close-fill"})}),Y.jsxs(n.Stack,{width:"100%",alignItems:"center",children:[Y.jsx("img",{src:d===Ua.IMAGE?o[i].url:us(cs(o[i].url)),style:{width:200,marginTop:20},alt:"Collection"}),d!==Ua.IMAGE&&Y.jsx(n.Typography,{style:{color:"#6F6F6F"},fontWeight:200,fontSize:13,textAlign:"center",children:o[i].title})]})]}):Y.jsxs(n.Box,{width:"100%",height:150,textAlign:"center",marginTop:1.5,sx:{borderRadius:"10px",border:"1px dashed #BCBCBC"},children:[Y.jsx(n.Button,{style:{marginTop:43,color:"#0085FF",backgroundColor:"#E2F1FF",fontSize:12,fontWeight:400},onClick:function(){return function(e,t,n){var r=Z({},t);r[e]=!0,n(r)}(i,s,g)},children:a?"Upload image":"تحميل"}),Y.jsx(n.Typography,{style:{marginTop:18,color:"#6F6F6F"},fontWeight:400,fontSize:13,children:a?"or drop an image to upload":"يمكنك تحميل صورة من هنا"})]}),o&&o[i]&&0!==o[i].length&&u&&Y.jsx(dA,{files:o[i],onRemove:function(e){return function(e,t,n,r){var o=Z({},e);o[n]=e[n].filter((function(e){return e._id!==t.id})),r(o)}(o,e,i,v)},type:Ua.ALL})]}),Y.jsx($v,{open:!!s[i]&&s[i],maxWidth:"md",fileType:d,basePath:null!=y?y:"",multiple:null!=u&&u,mediaLibraryString:a?"Media library":"قائمة الصور",uploadFileString:a?"Upload files":"تحميل صور جديدة",fullWidth:!0,message:a?"Upload image":"تحميل صورة",onDismiss:function(){return p(i,s,g)},updateImages:function(e,t){ug.patch("".concat(y,"/images/all"),{images:e}).then((function(e){t(e.data.data.records)}))},filterImagesByTitle:function(e,t,n){var r=pA(n);ug.get("".concat(y,"/images?filter=").concat(e,"&order=desc&orderBy=updatedAt").concat(r)).then((function(e){t(e.data.data.records)})).catch((function(){}))},loadImagesList:function(e,t){var n=pA(t);ug.get("".concat(y,"/images?order=desc&orderBy=updatedAt").concat(n)).then((function(t){e(t.data.data.records)})).catch((function(){}))},imagesSelected:o&&o[i]?u?o[i]:[o[i]]:[],uploadImages:function(e,t){return U(r,void 0,void 0,(function(){var n;return q(this,(function(r){switch(r.label){case 0:return t!==Ua.IMAGE?[3,3]:l===qa.NORMAL?[3,1]:[3,3];case 1:return[4,Promise.all(e.map((function(e){return eA.optimizeImage(e,{maxWidth:1e3,maxHeight:1e3})})))];case 2:return e=r.sent(),[3,3];case 3:return[4,nA(e,t)];case 4:return r.sent(),n=e.map((function(e){return e.name})),[4,ug.post("".concat(y,"/images/all"),{images:n.map((function(e){return{url:b+e,title:e.split(".")[0],type:ps(e,t)}}))})];case 5:return[2,r.sent().data.data.records]}}))}))},onConfirm:function(e){f(i,o,v,u?e:e[0]),A(i,u?e:e[0]),p(i,s,g)}},i)]})}var mA,hA=function(){function e(){}return e.getReferenceImage=function(e,t){var n=void 0,r=require("lodash");if(e.properties.disableImageOnReference)return n;var o=e.properties.model;if(e.properties.imageOnReferencePath)n=r.get(t,e.properties.imageOnReferencePath);else{if(n=this.getDataFromPath(o,"image",t))return n;if(n=this.getDataFromPath(o,"logo",t))return n;if(n=this.getDataFromPath(o,"photo",t))return n}return n},e.getDataFromPath=function(e,t,n){var r=require("lodash");return n[t]&&"string"==typeof n[t]?n[t]:e[t]&&e[t].valuePath?r.get(n,e[t].valuePath):void 0},e}(),gA=function(){function e(){}return e.getCartesianProduct=function(e){return e.reduce((function(e,t){return e.map((function(e){return t.map((function(t){return e.concat([t])}))})).reduce((function(e,t){return e.concat(t)}),[])}),[[]])},e.getReferenceValues=function(e){var t=e.referencedValues,n=e.value,r=e.loading,o=e.extraKey,i=e.fullKey,a=e.key,s=e.apiRoute,l=e.resources,c=e.pathRoute,u=e.schema,d=e.setLoading,p=e.setReferencedValues,f=e.adminPath;return U(this,void 0,void 0,(function(){var e,m,h,g,v,A,y,b,x,w,j,C,O,M;return q(this,(function(z){switch(z.label){case 0:return t[a]||!n?[2]:((e=Z({},r))[i]=!0,d(e),[4,ug.get(s||(u[a].apiRoute?u[a].apiRoute:"".concat(null!=f?f:"","/").concat(l[u[a].path].properties.modelName)))]);case 1:for(m=z.sent(),h=m.data.data.records,g=[],v=0;v<h.length;v++)A=h[v],y=l[c||u[a].path],b=y.properties.title,x=y.properties.model[b].type,w=A[b],j=hA.getReferenceImage(y,A),x===Uh.LOCALIZEDString&&(w=Hg.getLocalizedString(w)),C={title:w,_id:A._id,image:j},o&&(C[o]=A[o]),g.push(C);return(O=Z({},t))[a]=g,p(O),(M=Z({},r))[i]=!1,d(M),[2]}}))}))},e.onErrorAction=function(e){var t=e.data,n=e.error,r=e.reset,o=e.setErrorState;(0,e.setSubmitStatus)(!1),r(t),setTimeout((function(){o({state:!1})}),4e3),o({state:!0,message:JSON.parse(n).meta.message,severity:"error"})},e.convertCamelCaseToWord=function(e){var t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},e.checkLocalizedString=function(e,t,n){return e[t].properties.model[n].type===Uh.LOCALIZEDString},e.stringifyTime=function(e){if(e){var t=e.hour(),n=e.minute(),r=t>=12?"PM":"AM";return(t=(t=(t%=12)||12)<10?"0"+t:t)+":"+(n=n<10?"0"+n:n)+" "+r}},e.convertToOriginal=function(e){var t=e.split(":"),n=t[0],r=t[1].split(" "),o=r[0],i="PM"===r[1]?parseInt(n)+12:parseInt(n);return M("2022-04-07").set("minutes",parseInt(o)).set("hours",i)},e.getRecordName=function(e,t,n){return n&&"string"!=typeof e&&n.properties.model[t].type===Uh.LOCALIZEDString?Hg.getLocalizedString(e):e},e}();function vA(e){var t=e.handleChange,r=e.includeFrench,o=e.includeGerman;return Y.jsxs(l.TabList,{onChange:t,"aria-label":"lab API tabs example",children:[Y.jsx(n.Tab,{label:Y.jsx(AA,{flag:mA.ENGLISH_FLAG,text:"EN"}),value:"1"}),Y.jsx(n.Tab,{label:Y.jsx(AA,{flag:mA.ARABIC_FLAG,text:"AR"}),value:"2"}),r&&Y.jsx(n.Tab,{label:Y.jsx(AA,{flag:mA.FRENCH_FLAG,text:"FR"}),value:"3"}),o&&Y.jsx(n.Tab,{label:Y.jsx(AA,{flag:mA.GERMAN_FLAG,text:"DE"}),value:"4"})]})}function AA(e){var t=e.flag,r=e.text;return Y.jsxs(n.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[Y.jsx(La,{disabledEffect:!0,visibleByDefault:!0,alt:"empty content",src:t,sx:{width:23,height:15,borderRadius:"2px"}}),Y.jsx(n.Typography,{fontWeight:1e3,fontSize:12,children:r})]})}function yA(e){var t=e.title,r=e.includeFrench,o=e.includeGerman,i=e.size,a=e.value,s=e.isEdit,c=e.fieldName,u=e.numberOfRows,d=e.setValue,p=e.getValues,f=e.handleChange,m=c+".ar",h=c+".en",g=c+".fr",v=c+".de";s&&(h=c+".0.value",m=c+".1.value",g=c+".2.value",v=c+".3.value",d(c+".0.key","en"),d(c+".1.key","ar"),r&&d(c+".2.key","fr"),o&&d(c+".3.key","de"));var A=(u||1)>1;function y(e,t,r,o,a){return Y.jsxs(l.TabPanel,{value:e,style:{paddingTop:15},children:[Y.jsx(dp,{size:i,multiline:A,rows:u,dir:a,name:t,style:{minHeight:40,boxSizing:"border-box",paddingBottom:12}}),Y.jsx(n.Stack,{children:r.map((function(e){return Y.jsx(n.Typography,{paddingRight:2,paddingLeft:2,noWrap:!0,fontWeight:600,fontSize:13,color:"#919EAB",align:o,children:p(e)},e)}))})]})}return Y.jsxs(n.Card,{sx:{pl:2,pr:2,pt:2,pb:2,mb:2},children:[Y.jsx(n.Typography,{fontWeight:600,height:25,fontSize:14,position:"inherit",display:"inline",color:"#919EAB",children:t}),Y.jsx(n.Box,{borderColor:"black",sx:{width:"100%",typography:"body1"},children:Y.jsxs(l.TabContext,{value:a,children:[Y.jsx(n.Box,{sx:{borderBottom:1,borderColor:"divider"},children:Y.jsx(vA,{handleChange:f,includeFrench:r,includeGerman:o})}),y("1",h,K(K([m],r?[g]:[],!0),o?[v]:[],!0),"right","ltr"),y("2",m,K(K([h],r?[g]:[],!0),o?[v]:[],!0),"left","rtl"),r&&y("3",g,K([h,m],o?[v]:[],!0),"right","ltr"),o&&y("4",v,K([h,m],r?[g]:[],!0),"right","ltr")]})})]})}!function(e){e.ENGLISH_FLAG="https://pngimg.com/uploads/flags/flags_PNG14592.png",e.ARABIC_FLAG="/assets/icons/flags/ic_flag_sa.svg",e.FRENCH_FLAG="/assets/icons/flags/ic_flag_fr.svg",e.GERMAN_FLAG="/assets/icons/flags/ic_flag_de.svg"}(mA||(mA={}));var bA={exports:{}};bA.exports=function(){var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var s=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}();var xA=W(bA.exports),wA={exports:{}};wA.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function p(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],p=u&&u[0],f=u&&u[1];a[l]=f?{regex:p,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,l=o.parser,c=e.slice(r),u=i.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),i=this.$locale(),!l&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=p(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,f=new Date,m=a||(o||i?1:f.getDate()),h=o||f.getFullYear(),g=0;o&&!i||(g=i>0?i-1:f.getMonth());var v=s||0,A=l||0,y=c||0,b=u||0;return d?new Date(Date.UTC(h,g,m,v,A,y,b+60*d.offset*1e3)):n?new Date(Date.UTC(h,g,m,v,A,y,b)):new Date(h,g,m,v,A,y,b)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(""))}else o.call(this,e)}}}();var jA=W(wA.exports),CA={exports:{}};CA.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var o=n.prototype,i=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,o){var i=o&&o.toUpperCase();return r||n[o]||e[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return i.call(this,r)}}}();var OA=W(CA.exports),MA={exports:{}};MA.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],l=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}};var zA=W(MA.exports);const DA=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}};M.extend(jA),M.extend(OA),M.extend(zA);const TA=DA(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),PA={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},NA={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},EA=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n"),BA=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");class kA{constructor({locale:e,formats:t,instance:n}={}){var r;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=PA,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>void 0!==M.utc,this.hasTimezonePlugin=()=>void 0!==M.tz,this.isSame=(e,t,n)=>{const r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return M.tz.guess();default:return e}},this.createSystemDate=e=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(e);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=M.tz.guess();return"UTC"!==t?M.tz(e,t):M(e)}return M(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(EA);return M.utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(EA);if(!this.hasTimezonePlugin())throw new Error(BA);const n=void 0!==e&&!e.endsWith("Z");return M(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=M.Ls;let t=e[this.locale||"en"];return void 0===t&&(TA(),t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){var n,r;const o=e.tz(this.cleanTimezone(t),!0);return(null!=(n=o.$offset)?n:0)===(null!=(r=e.$offset)?r:0)?e:o}return e},this.date=e=>null===e?null:this.dayjs(e),this.dateWithTimezone=(e,t)=>{if(null===e)return null;let n;return n="UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),void 0===this.locale?n:n.locale(this.locale)},this.getTimezone=e=>{if(this.hasUTCPlugin()&&e.isUTC())return"UTC";if(this.hasTimezonePlugin()){var t;const n=null==(t=e.$x)?void 0:t.$timezone;return null!=n?n:"system"}return"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(EA);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(BA)}return M.tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,n,r)=>{const o=r&&r.toUpperCase();return n||t[r]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.dayjs(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).toDate().getTime()===this.dayjs(t).toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>e<t,this.isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e>=t&&e<=n,this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(e.startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(e.endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>this.addMonths(e,1),this.getPreviousMonth=e=>this.addMonths(e,-1),this.getMonthArray=e=>{const t=[e.startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.addMonths(e,1))}return t},this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{const e=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map((t=>this.formatByString(this.addDays(e,t),"dd")))},this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.startOf("month").startOf("week"),r=t.endOf("month").endOf("week");let o=0,i=n;const a=[];for(;i<r;){const e=Math.floor(o/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),o+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const n=e.startOf("year"),r=t.endOf("year"),o=[];let i=n;for(;i<r;)o.push(i),i=this.addYears(i,1);return o},this.getMeridiemText=e=>"am"===e?"AM":"PM",this.rawDayJsInstance=n,this.dayjs=((e,t)=>t?(...n)=>e(...n).locale(t):e)(null!=(r=this.rawDayJsInstance)?r:M,e),this.locale=e,this.formats=re({},NA,t),M.extend(xA)}}const LA=["localeText"],IA=k.createContext(null);"production"!==process.env.NODE_ENV&&(IA.displayName="MuiPickersAdapterContext");const SA=function(e){var t;const{localeText:n}=e,r=Rt(e,LA),{utils:o,localeText:i}=null!=(t=k.useContext(IA))?t:{utils:void 0,localeText:void 0},a=fo({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:p}=a,f=k.useMemo((()=>re({},p,i,n)),[p,i,n]),m=k.useMemo((()=>{if(!l)return o||null;const e=new l({locale:d,formats:c,instance:u});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[l,d,c,u,o]),h=k.useMemo((()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null),[m]),g=k.useMemo((()=>({utils:m,defaultDates:h,localeText:f})),[h,m,f]);return Y.jsx(IA.Provider,{value:g,children:s})};"production"!==process.env.NODE_ENV&&(SA.propTypes={adapterLocale:Ee.any,children:Ee.node,dateAdapter:Ee.func,dateFormats:Ee.shape({dayOfMonth:Ee.string,fullDate:Ee.string,fullDateTime:Ee.string,fullDateTime12h:Ee.string,fullDateTime24h:Ee.string,fullDateWithWeekday:Ee.string,fullTime:Ee.string,fullTime12h:Ee.string,fullTime24h:Ee.string,hours12h:Ee.string,hours24h:Ee.string,keyboardDate:Ee.string,keyboardDateTime:Ee.string,keyboardDateTime12h:Ee.string,keyboardDateTime24h:Ee.string,meridiem:Ee.string,minutes:Ee.string,month:Ee.string,monthAndDate:Ee.string,monthAndYear:Ee.string,monthShort:Ee.string,normalDate:Ee.string,normalDateWithWeekday:Ee.string,seconds:Ee.string,shortDate:Ee.string,weekday:Ee.string,weekdayShort:Ee.string,year:Ee.string}),dateLibInstance:Ee.any,localeText:Ee.object});const WA=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),HA=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},RA=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},FA=(e,t,n)=>"date"===n?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),VA=(e,t)=>{const n=e.setHours(e.date(),"am"===t?2:14);return e.format(n,"meridiem")},QA=["hours","minutes","seconds"],XA=e=>QA.includes(e),YA=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,ZA=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},GA=(e,t,n,r)=>{const o=ZA(r.getHours(e),t,n);return r.setHours(e,o)},UA=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),qA=(e,t)=>(n,r)=>e?t.isAfter(n,r):UA(n,t)>UA(r,t),KA=(e,{format:t,views:n,ampm:r})=>{if(null!=t)return t;const o=e.formats;return WA(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:WA(n,["minutes"])?o.minutes:WA(n,["seconds"])?o.seconds:WA(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:WA(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`},JA={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},_A=(e,t,n)=>{if(t===JA.year)return e.startOfYear(n);if(t===JA.month)return e.startOfMonth(n);if(t===JA.day)return e.startOfDay(n);let r=n;return t<JA.minutes&&(r=e.setMinutes(r,0)),t<JA.seconds&&(r=e.setSeconds(r,0)),t<JA.milliseconds&&(r=e.setMilliseconds(r,0)),r},$A=(e,t)=>{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"==typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},ey=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),i=e.startOfWeek(o),a=e.endOfWeek(o);let s=i;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map((t=>e.formatByString(t,n)))},ty=(e,t,n,r)=>{switch(n){case"month":return HA(e,e.dateWithTimezone(void 0,t)).map((t=>e.formatByString(t,r)));case"weekDay":return ey(e,t,r);case"meridiem":{const n=e.dateWithTimezone(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,r)))}default:return[]}},ny=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},ry=(e,t,n,r,o)=>{if("production"!==process.env.NODE_ENV&&"day"!==o.type&&"digit-with-letter"===o.contentType)throw new Error([`MUI: The token "${o.format}" is a digit format with letter in it.'\n This type of format is only supported for 'day' sections`].join("\n"));if("day"===o.type&&"digit-with-letter"===o.contentType){const t=e.setDate(r.longestMonth,n);return e.formatByString(t,o.format)}const i=n.toString();return o.hasLeadingZerosInInput?ny(0,i,o.maxLength):i},oy=(e,t,n,r,o,i,a)=>{const s=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(r),l="Home"===r,c="End"===r,u=""===n.value||l||c;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const r=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),d=t=>ry(e,0,t,r,n),p="minutes"===n.type&&null!=a&&a.minutesStep?a.minutesStep:1;let f=parseInt(n.value,10)+s*p;if(u){if("year"===n.type&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);f=s>0||l?r.minimum:r.maximum}return f%p!=0&&((s<0||l)&&(f+=p-(p+f)%p),(s>0||c)&&(f-=f%p)),f>r.maximum?d(r.minimum+(f-r.maximum-1)%(r.maximum-r.minimum+1)):f<r.minimum?d(r.maximum-(r.minimum-f-1)%(r.maximum-r.minimum+1)):d(f)})():(()=>{const r=ty(e,t,n.type,n.format);if(0===r.length)return n.value;if(u)return s>0||l?r[0]:r[r.length-1];const o=r.indexOf(n.value);return r[(o+r.length+s)%r.length]})()},iy=(e,t)=>{let n=e.value||e.placeholder;const r="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!r&&1===n.length&&(n=`${n}`),"input-rtl"===t&&(n=`${n}`),n},ay=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),sy=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let i=0;i<e.length;i+=1){const a=e[i],s=iy(a,t?"input-rtl":"input-ltr"),l=`${a.startSeparator}${s}${a.endSeparator}`,c=ay(l).length,u=l.length,d=ay(s),p=r+s.indexOf(d[0])+a.startSeparator.length,f=p+d.length;o.push(re({},a,{start:n,end:n+c,startInInput:p,endInInput:f})),n+=c,r+=u}return o},ly=(e,t,n,r,o)=>{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},cy=(e,t,n,r)=>{if("production"!==process.env.NODE_ENV&&"weekDay"===$A(e,n).type)throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),r)},uy=(e,t,n)=>4===e.formatByString(e.dateWithTimezone(void 0,t),n).length,dy=(e,t,n,r,o)=>{if("digit"!==n)return!1;const i=e.dateWithTimezone(void 0,t);switch(r){case"year":if(uy(e,t,o)){return"0001"===e.formatByString(e.setYear(i,1),o)}return"01"===e.formatByString(e.setYear(i,2001),o);case"month":return e.formatByString(e.startOfYear(i),o).length>1;case"day":return e.formatByString(e.startOfMonth(i),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),o).length>1;case"hours":return e.formatByString(e.setHours(i,1),o).length>1;case"minutes":case"seconds":return e.formatByString(e.setMinutes(i,1),o).length>1;default:throw new Error("Invalid section type")}},py=(e,t,n,r,o,i,a,s)=>{let l="";const c=[],u=e.date(),d=r=>{if(""===r)return null;const i=$A(e,r),s=dy(e,t,i.contentType,i.type,r),d=a?s:"digit"===i.contentType,p=null!=o&&e.isValid(o);let f=p?e.formatByString(o,r):"",m=null;if(d)if(s)m=""===f?e.formatByString(u,r).length:f.length;else{if(null==i.maxLength)throw new Error(`MUI: The token ${r} should have a 'maxDigitNumber' property on it's adapter`);m=i.maxLength,p&&(f=ny(0,f,m))}return c.push(re({},i,{format:r,maxLength:m,value:f,placeholder:ly(e,t,n,i,r),hasLeadingZeros:s,hasLeadingZerosInFormat:s,hasLeadingZerosInInput:d,startSeparator:0===c.length?l:"",endSeparator:"",modified:!1})),null};let p=10,f=r,m=e.expandFormat(r);for(;m!==f;)if(f=m,m=e.expandFormat(f),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const h=m,g=((e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n})(e,h),v=new RegExp(`^(${Object.keys(e.formatTokenMap).join("|")})`);let A="";for(let e=0;e<h.length;e+=1){const t=g.find((t=>t.start<=e&&t.end>=e)),n=h[e],r=null!=t,o=`${A}${h.slice(e)}`;if(!r&&n.match(/([A-Za-z]+)/)&&v.test(o))A+=n;else{r&&(null==t?void 0:t.start)===e||(null==t?void 0:t.end)===e||(d(A),A="",0===c.length?l+=n:c[c.length-1].endSeparator+=n)}}return d(A),c.map((e=>{const t=e=>{let t=e;return s&&null!==t&&t.includes(" ")&&(t=`${t}`),"spacious"===i&&["/",".","-"].includes(t)&&(t=` ${t} `),t};return e.startSeparator=t(e.startSeparator),e.endSeparator=t(e.endSeparator),e}))},fy=(e,t)=>{const n=t.some((e=>"day"===e.type)),r=[],o=[];for(let e=0;e<t.length;e+=1){const i=t[e];n&&"weekDay"===i.type||(r.push(i.format),o.push(iy(i,"non-input")))}const i=r.join(" "),a=o.join(" ");return e.parse(a,i)};let my=!1;const hy=(e,t)=>{if("production"!==process.env.NODE_ENV&&!my){const n=[];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const r=e.find((e=>!n.includes(e.type)));r&&(console.warn(`MUI: The field component you are using is not compatible with the "${r.type} date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),my=!0)}},gy={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},vy=(e,t,n,r,o,i)=>[...r].sort(((e,t)=>gy[e.type]-gy[t.type])).reduce(((r,o)=>!i||o.modified?((e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const o=ey(e,t,n.format),i=e.formatByString(r,n.format),a=o.indexOf(i),s=o.indexOf(n.value)-a;return e.addDays(r,s)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const t=e.getHours(r)<12,n=e.getHours(o);return t&&n>=12?e.addHours(o,-12):!t&&n<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}})(e,t,o,n,r):r),o),Ay=["value","referenceDate"],yy={emptyValue:null,getTodayValue:FA,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Rt(e,Ay);return null!=t&&r.utils.isValid(t)?t:null!=n?n:(({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{var i;let a=o?o():_A(t,n,FA(t,r));null!=e.minDate&&t.isAfterDay(e.minDate,a)&&(a=_A(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,a)&&(a=_A(t,n,e.maxDate));const s=qA(null!=(i=e.disableIgnoringDatePartForTimeValidation)&&i,t);return null!=e.minTime&&s(e.minTime,a)&&(a=_A(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:RA(t,a,e.minTime))),null!=e.maxTime&&s(a,e.maxTime)&&(a=_A(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:RA(t,a,e.maxTime))),a})(r)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},by={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:sy(o(t),r),getValueStrFromSections:(e,t)=>{const n=e.map((e=>{const n=iy(e,t?"input-rtl":"input-ltr");return`${e.startSeparator}${n}${e.endSeparator}`})).join("");return t?`${n}`:n},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},xy={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},wy=xy;re({},xy);const jy=()=>{const e=k.useContext(IA);if(null===e)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=k.useMemo((()=>re({},wy,e.localeText)),[e.localeText]);return k.useMemo((()=>re({},e,{localeText:t})),[e,t])},Cy=()=>jy().utils,Oy=()=>jy().localeText,My=e=>{const t=Cy(),n=k.useRef();return void 0===n.current&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function zy(e,t,n,r){const{value:o,onError:i}=e,a=jy(),s=k.useRef(r),l=t({adapter:a,value:o,props:e});return k.useEffect((()=>{i&&!n(l,s.current)&&i(l,o),s.current=l}),[n,i,s,l,o]),l}const Dy=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var i,a;const s=Cy(),l=k.useRef(n),c=null!=(i=null!=t?t:l.current)?i:o.emptyValue,u=k.useMemo((()=>o.getTimezone(s,c)),[s,o,c]),d=ut((e=>null==u?e:o.setTimezone(s,u,e))),p=null!=(a=null!=e?e:u)?a:"default";return{value:k.useMemo((()=>o.setTimezone(s,p,c)),[o,s,p,c]),handleValueChange:ut(((e,...t)=>{const n=d(e);null==r||r(n,...t)})),timezone:p}},Ty=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:i})=>{const[a,s]=ct({name:e,state:"value",controlled:n,default:null!=r?r:i.emptyValue}),l=ut(((e,...t)=>{s(e),null==o||o(e,...t)}));return Dy({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:i})},Py=e=>{const t=Cy(),n=Oy(),r=jy(),o="rtl"===po().direction,{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:p,onChange:f,format:m,formatDensity:h="dense",selectedSections:g,onSelectedSectionsChange:v,shouldRespectLeadingZeros:A=!1,timezone:y}}=e,{timezone:b,value:x,handleValueChange:w}=Dy({timezone:y,value:u,defaultValue:d,onChange:f,valueManager:i}),j=k.useMemo((()=>((e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:i,longestMonth:a}=HA(e,n).reduce(((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:({format:n})=>({minimum:0,maximum:uy(e,t,n)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:t})=>({minimum:1,maximum:null!=t&&e.isValid(t)?e.getDaysInMonth(t):i,longestMonth:a}),weekDay:({format:n,contentType:r})=>{if("digit"===r){const r=ey(e,t,n).map(Number);return{minimum:Math.min(...r),maximum:Math.max(...r)}}return{minimum:1,maximum:7}},hours:({format:t})=>{const r=e.getHours(o);return e.formatByString(e.endOfDay(n),t)!==r.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),t))}:{minimum:0,maximum:r}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}})(t,b)),[t,b]),C=k.useCallback(((e,r=null)=>a.getSectionsFromValue(t,e,r,o,(e=>py(t,b,n,m,e,h,A,o)))),[a,m,n,o,A,t,h,b]),O=k.useMemo((()=>a.getValueStrFromSections(C(i.emptyValue),o)),[a,C,i.emptyValue,o]),[M,z]=k.useState((()=>{const e=C(x);hy(e,s);const n={sections:e,value:x,referenceValue:i.emptyValue,tempValueStrAndroid:null},r=(e=>Math.max(...e.map((e=>{var t;return null!=(t=JA[e.type])?t:1}))))(e);return re({},n,{referenceValue:i.getInitialReferenceValue({referenceDate:p,value:x,utils:t,props:c,granularity:r,timezone:b})})})),[D,T]=ct({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),P=e=>{T(e),null==v||v(e),z((e=>re({},e,{selectedSectionQuery:null})))},N=k.useMemo((()=>{if(null==D)return null;if("all"===D)return{startIndex:0,endIndex:M.sections.length-1,shouldSelectBoundarySelectors:!0};if("number"==typeof D)return{startIndex:D,endIndex:D};if("string"==typeof D){const e=M.sections.findIndex((e=>e.type===D));return{startIndex:e,endIndex:e}}return D}),[D,M.sections]),E=({value:e,referenceValue:t,sections:n})=>{z((r=>re({},r,{sections:n,value:e,referenceValue:t,tempValueStrAndroid:null})));const o={validationError:l({adapter:r,value:e,props:re({},c,{value:e,timezone:b})})};w(e,o)},B=(e,t)=>{const n=[...M.sections];return n[e]=re({},n[e],{value:t,modified:!0}),sy(n,o)};return k.useEffect((()=>{const e=C(M.value);hy(e,s),z((t=>re({},t,{sections:e})))}),[m,t.locale]),k.useEffect((()=>{let e=!1;e=!i.areValuesEqual(t,M.value,x)||i.getTimezone(t,M.value)!==i.getTimezone(t,x),e&&z((e=>re({},e,{value:x,referenceValue:a.updateReferenceValue(t,x,e.referenceValue),sections:C(x)})))}),[x]),{state:M,selectedSectionIndexes:N,setSelectedSections:P,clearValue:()=>{i.areValuesEqual(t,M.value,i.emptyValue)||E({value:i.emptyValue,referenceValue:M.referenceValue,sections:C(i.emptyValue)})},clearActiveSection:()=>{if(null==N)return;const e=M.sections[N.startIndex];if(""===e.value)return;const n=a.getActiveDateManager(t,M,e),r=1===n.getSections(M.sections).filter((e=>""!==e.value)).length,o=B(N.startIndex,""),i=r?null:t.date(new Date("")),s=n.getNewValuesFromNewActiveDate(i);(null!=i&&!t.isValid(i))!=(null!=n.date&&!t.isValid(n.date))?E(re({},s,{sections:o})):z((e=>re({},e,s,{sections:o,tempValueStrAndroid:null})))},updateSectionValue:({activeSection:e,newSectionValue:n,shouldGoToNextSection:r})=>{r&&N&&N.startIndex<M.sections.length-1?P(N.startIndex+1):N&&N.startIndex!==N.endIndex&&P(N.startIndex);const o=a.getActiveDateManager(t,M,e),i=B(N.startIndex,n),s=o.getSections(i);let l,c,u=fy(t,s),d=!1;if(!t.isValid(u)){const e=((e,t,n,r)=>{if(!n.every((e=>"weekDay"===e.type||""!==e.value))||!n.some((e=>"day"===e.type)))return null;const o=n.map((t=>{if("day"!==t.type)return t;const n=r.day({currentDate:null,format:t.format,contentType:t.contentType});return re({},t,{value:ry(e,0,n.minimum,n,t)})})),i=fy(e,o);return null!=i&&e.isValid(i)?n.map((e=>{if("day"!==e.type)return e;const t=r.day({currentDate:i,format:e.format,contentType:e.contentType});return Number(e.value)<=t.maximum?e:re({},e,{value:t.maximum.toString()})})):null})(t,0,s,j);null!=e&&(d=!0,u=fy(t,e))}if(null!=u&&t.isValid(u)){const e=vy(t,b,u,s,o.referenceDate,!0);l=o.getNewValuesFromNewActiveDate(e),c=!0}else l=o.getNewValuesFromNewActiveDate(u),c=(null!=u&&!t.isValid(u))!=(null!=o.date&&!t.isValid(o.date));const p=d?C(l.value,M.sections):i;return c?E(re({},l,{sections:p})):z((e=>re({},e,l,{sections:p,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const r=a.parseValueStr(e,M.referenceValue,((e,r)=>{const i=t.parse(e,m);if(null==i||!t.isValid(i))return null;const a=py(t,b,n,m,i,h,A,o);return vy(t,b,i,a,r,!1)})),i=a.updateReferenceValue(t,r,M.referenceValue);E({value:r,referenceValue:i,sections:C(r,M.sections)})},setTempAndroidValueStr:e=>z((t=>re({},t,{tempValueStrAndroid:e}))),sectionsValueBoundaries:j,placeholder:O,timezone:b}},Ny=e=>null!=e.saveQuery,Ey=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const i=Cy(),[a,s]=k.useState(null),l=ut((()=>s(null)));k.useEffect((()=>{var t;null!=a&&(null==(t=e[a.sectionIndex])?void 0:t.type)!==a.sectionType&&l()}),[e,a,l]),k.useEffect((()=>{if(null!=a){const e=setTimeout((()=>l()),5e3);return()=>{window.clearTimeout(e)}}return()=>{}}),[a,l]);const c=({keyPressed:t,sectionIndex:n},r,o)=>{const i=t.toLowerCase(),c=e[n];if(null!=a&&(!o||o(a.value))&&a.sectionIndex===n){const e=`${a.value}${i}`,t=r(e,c);if(!Ny(t))return s({sectionIndex:n,value:e,sectionType:c.type}),t}const u=r(i,c);return Ny(u)&&!u.saveQuery?(l(),null):(s({sectionIndex:n,value:i,sectionType:c.type}),Ny(u)?null:u)};return{applyCharacterEditing:ut((a=>{const s=e[a.sectionIndex],l=!Number.isNaN(Number(a.keyPressed))?(e=>{const t=(e,t)=>{const r=Number(`${e}`),o=n[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(r>o.maximum)return{saveQuery:!1};if(r<o.minimum)return{saveQuery:!0};const a=Number(`${e}0`)>o.maximum||e.length===o.maximum.toString().length;return{sectionValue:ry(i,0,r,o,t),shouldGoToNextSection:a}};return c(e,((e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const r=dy(i,o,"digit","month","MM"),a=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:r,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});return Ny(a)?a:re({},a,{sectionValue:cy(i,a.sectionValue,"MM",n.format)})}if("weekDay"===n.type){const r=t(e,n);return Ny(r)?r:re({},r,{sectionValue:ey(i,o,n.format)[Number(r.sectionValue)-1]})}return{saveQuery:!1}}),(e=>!Number.isNaN(Number(e))))})(a):(e=>{const t=(e,t,n)=>{const r=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,r,a)=>{const s=e=>ty(i,o,n.type,e);if("letter"===n.contentType)return t(n.format,s(n.format),e);if(r&&null!=a&&"letter"===$A(i,r).contentType){const n=s(r),o=t(0,n,e);return Ny(o)?{saveQuery:!1}:re({},o,{sectionValue:a(o.sectionValue,n)})}return{saveQuery:!1}};return c(e,((e,t)=>{switch(t.type){case"month":{const r=e=>cy(i,e,i.formats.month,t.format);return n(e,t,i.formats.month,r)}case"weekDay":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,i.formats.weekday,r)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))})(a);null==l?r(null):t({activeSection:s,newSectionValue:l.sectionValue,shouldGoToNextSection:l.shouldGoToNextSection})})),resetCharacterQuery:l}};function By(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}const ky=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ky(t.shadowRoot):t:null},Ly="@media (pointer: fine)",Iy=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error"],Sy=e=>{const t=Cy(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:i,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:d,timezone:p}=Py(e),{inputRef:f,internalProps:m,internalProps:{readOnly:h=!1,unstableFieldRef:g,minutesStep:v},forwardedProps:{onClick:A,onKeyDown:y,onFocus:b,onBlur:x,onMouseUp:w,onPaste:j,error:C},fieldValueManager:O,valueManager:M,validator:z}=e,D=Rt(e.forwardedProps,Iy),{applyCharacterEditing:T,resetCharacterQuery:P}=Ey({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),N=k.useRef(null),E=dt(f,N),B=k.useRef(void 0),L="rtl"===po().direction,I=k.useMemo((()=>((e,t)=>{const n={};if(!t)return e.forEach(((t,r)=>{const o=0===r?null:r-1,i=r===e.length-1?null:r+1;n[r]={leftIndex:o,rightIndex:i}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex(((e,t)=>{var n;return t>=i&&(null==(n=e.endSeparator)?void 0:n.includes(" "))&&" / "!==e.endSeparator})),-1===a&&(a=e.length-1);for(let e=a;e>=i;e-=1)o[e]=s,r[s]=e,s-=1;i=a+1}return e.forEach(((t,i)=>{const a=o[i],s=0===a?null:r[a-1],l=a===e.length-1?null:r[a+1];n[i]={leftIndex:s,rightIndex:l}})),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}})(n.sections,L)),[n.sections,L]),S=()=>{var e;if(h)return void o(null);const t=null!=(e=N.current.selectionStart)?e:0;let r;r=t<=n.sections[0].startInInput||t>=n.sections[n.sections.length-1].endInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>t));const i=-1===r?n.sections.length-1:r-1;o(i)},W=ut(((...e)=>{null==A||A(...e),S()})),H=ut((e=>{null==w||w(e),e.preventDefault()})),R=ut(((...e)=>{null==b||b(...e);const t=N.current;window.clearTimeout(B.current),B.current=setTimeout((()=>{t&&t===N.current&&(null!=r||h||(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?o("all"):S()))}))})),F=ut(((...e)=>{null==x||x(...e),o(null)})),V=ut((e=>{if(null==j||j(e),h)return void e.preventDefault();const t=e.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const o=n.sections[r.startIndex],i=/^[a-zA-Z]+$/.test(t),a=/^[0-9]+$/.test(t),s=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===o.contentType&&i||"digit"===o.contentType&&a||"digit-with-letter"===o.contentType&&s)return;if(i||a)return void e.preventDefault()}e.preventDefault(),P(),l(t)})),Q=ut((e=>{if(h)return;const t=e.target.value,o=e.nativeEvent.data,i=o&&o.length>1,a=i?o:t,s=ay(a);if(null==r||i)return void l(i?o:s);let u;if(0===r.startIndex&&r.endIndex===n.sections.length-1&&1===s.length)u=s;else{const e=ay(O.getValueStrFromSections(n.sections,L));let t=-1,o=-1;for(let n=0;n<e.length;n+=1)-1===t&&e[n]!==s[n]&&(t=n),-1===o&&e[e.length-n-1]!==s[s.length-n-1]&&(o=n);const i=n.sections[r.startIndex];if(t<i.start||e.length-o-1>i.end)return;const a=s.length-e.length+i.end-ay(i.endSeparator||"").length;u=s.slice(i.start+ay(i.startSeparator||"").length,a)}navigator.userAgent.toLowerCase().indexOf("android")>-1&&0===u.length?c(a):T({keyPressed:u,sectionIndex:r.startIndex})})),X=ut((e=>{switch(null==y||y(e),!0){case"a"===e.key&&(e.ctrlKey||e.metaKey):e.preventDefault(),o("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==r)o(I.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const e=I.neighbors[r.startIndex].rightIndex;null!==e&&o(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==r)o(I.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const e=I.neighbors[r.startIndex].leftIndex;null!==e&&o(e)}break;case["Backspace","Delete"].includes(e.key):if(e.preventDefault(),h)break;null==r||0===r.startIndex&&r.endIndex===n.sections.length-1?i():a(),P();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),h||null==r)break;const o=n.sections[r.startIndex],i=O.getActiveDateManager(t,n,o),a=oy(t,p,o,e.key,u,i.date,{minutesStep:v});s({activeSection:o,newSectionValue:a,shouldGoToNextSection:!1});break}}}));ot((()=>{if(!N.current)return;if(null==r)return void(N.current.scrollLeft&&(N.current.scrollLeft=0));const e=n.sections[r.startIndex],t=n.sections[r.endIndex];let o=e.startInInput,i=t.endInInput;if(r.shouldSelectBoundarySelectors&&(o-=e.startSeparator.length,i+=t.endSeparator.length),o!==N.current.selectionStart||i!==N.current.selectionEnd){const e=N.current.scrollTop;N.current===ky(document)&&N.current.setSelectionRange(o,i),N.current.scrollTop=e}}));const Y=zy(re({},m,{value:n.value,timezone:p}),z,M.isSameError,M.defaultErrorState),Z=k.useMemo((()=>void 0!==C?C:M.hasError(Y)),[M,Y,C]);k.useEffect((()=>{Z||r||P()}),[n.referenceValue,r,Z]),k.useEffect((()=>(N.current&&N.current===document.activeElement&&o("all"),()=>window.clearTimeout(B.current))),[]),k.useEffect((()=>{null!=n.tempValueStrAndroid&&null!=r&&(P(),a())}),[n.tempValueStrAndroid]);const G=k.useMemo((()=>{var e;return null!=(e=n.tempValueStrAndroid)?e:O.getValueStrFromSections(n.sections,L)}),[n.sections,O,n.tempValueStrAndroid,L]),U=k.useMemo((()=>null==r||"letter"===n.sections[r.startIndex].contentType?"text":"numeric"),[r,n.sections]),q=!(N.current&&N.current===ky(document))&&M.areValuesEqual(t,n.value,M.emptyValue);return k.useImperativeHandle(g,(()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var e,t;const r=null!=(e=N.current.selectionStart)?e:0,o=null!=(t=N.current.selectionEnd)?t:0;if(0===r&&0===o)return null;const i=r<=n.sections[0].startInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>r));return-1===i?n.sections.length-1:i-1},setSelectedSections:e=>o(e)}))),re({placeholder:d,autoComplete:"off"},D,{value:q?"":G,inputMode:U,readOnly:h,onClick:W,onFocus:R,onBlur:F,onPaste:V,onChange:Q,onKeyDown:X,onMouseUp:H,error:Z,ref:E})},Wy=({adapter:e,value:t,props:n})=>{if(null===t)return null;const{minTime:r,maxTime:o,minutesStep:i,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:d}=n,p=e.utils.dateWithTimezone(void 0,d),f=qA(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(r&&f(r,t)):return"minTime";case Boolean(o&&f(t,o)):return"maxTime";case Boolean(u&&e.utils.isAfter(t,p)):return"disableFuture";case Boolean(c&&e.utils.isBefore(t,p)):return"disablePast";case Boolean(s&&s(t,"hours")):return"shouldDisableTime-hours";case Boolean(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case Boolean(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case Boolean(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case Boolean(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case Boolean(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case Boolean(i&&e.utils.getMinutes(t)%i!=0):return"minutesStep";default:return null}},Hy=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Ry=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Fy=["minDateTime","maxDateTime"],Vy=[...Hy,...Ry,...Fy],Qy=e=>Vy.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{}),Xy=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],Yy=({props:e,inputRef:t})=>{const n=(e=>{var t,n,r,o;const i=Cy(),a=(null!=(t=e.ampm)?t:i.is12HourCycleInCurrentLocale())?i.formats.fullTime12h:i.formats.fullTime24h;return re({},e,{disablePast:null!=(n=e.disablePast)&&n,disableFuture:null!=(r=e.disableFuture)&&r,format:null!=(o=e.format)?o:a})})(e),{forwardedProps:r,internalProps:o}=((e,t)=>{const n=re({},e),r={},o=e=>{n.hasOwnProperty(e)&&(r[e]=n[e],delete n[e])};return Xy.forEach(o),"date"===t?Hy.forEach(o):"time"===t?Ry.forEach(o):"date-time"===t&&(Hy.forEach(o),Ry.forEach(o),Fy.forEach(o)),{forwardedProps:n,internalProps:r}})(n,"time");return Sy({inputRef:t,forwardedProps:r,internalProps:o,valueManager:yy,fieldValueManager:by,validator:Wy,valueType:"time"})},Zy=["slots","slotProps","components","componentsProps","InputProps","inputProps"],Gy=["inputRef"],Uy=["ref","onPaste","onKeyDown","inputMode","readOnly"],qy=k.forwardRef((function(e,t){var n,r,o;const i=fo({props:e,name:"MuiTimeField"}),{slots:a,slotProps:s,components:l,componentsProps:c,InputProps:u,inputProps:d}=i,p=Rt(i,Zy),f=i,m=null!=(n=null!=(r=null==a?void 0:a.textField)?r:null==l?void 0:l.TextField)?n:Rm,h=ko({elementType:m,externalSlotProps:null!=(o=null==s?void 0:s.textField)?o:null==c?void 0:c.textField,externalForwardedProps:p,ownerState:f}),{inputRef:g}=h,v=Rt(h,Gy);v.inputProps=re({},d,v.inputProps),v.InputProps=re({},u,v.InputProps);const A=Yy({props:v,inputRef:g}),{ref:y,onPaste:b,onKeyDown:x,inputMode:w,readOnly:j}=A,C=Rt(A,Uy);return Y.jsx(m,re({ref:t},C,{InputProps:re({},C.InputProps,{readOnly:j}),inputProps:re({},C.inputProps,{inputMode:w,onPaste:b,onKeyDown:x,ref:y})}))}));function Ky(e){return It("MuiPickersToolbarText",e)}"production"!==process.env.NODE_ENV&&(qy.propTypes={ampm:Ee.bool,autoFocus:Ee.bool,className:Ee.string,color:Ee.oneOf(["error","info","primary","secondary","success","warning"]),component:Ee.elementType,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disablePast:Ee.bool,focused:Ee.bool,format:Ee.string,formatDensity:Ee.oneOf(["dense","spacious"]),FormHelperTextProps:Ee.object,fullWidth:Ee.bool,helperText:Ee.node,hiddenLabel:Ee.bool,id:Ee.string,InputLabelProps:Ee.object,inputProps:Ee.object,InputProps:Ee.object,inputRef:Ee.oneOfType([Ee.func,Ee.shape({current:Ee.any.isRequired})]),label:Ee.node,margin:Ee.oneOf(["dense","none","normal"]),maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,name:Ee.string,onBlur:Ee.func,onChange:Ee.func,onClick:Ee.func,onError:Ee.func,onFocus:Ee.func,onSelectedSectionsChange:Ee.func,readOnly:Ee.bool,referenceDate:Ee.any,required:Ee.bool,selectedSections:Ee.oneOfType([Ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ee.number,Ee.shape({endIndex:Ee.number.isRequired,startIndex:Ee.number.isRequired})]),shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,shouldRespectLeadingZeros:Ee.bool,size:Ee.oneOf(["medium","small"]),slotProps:Ee.object,slots:Ee.object,style:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timezone:Ee.string,unstableFieldRef:Ee.oneOfType([Ee.func,Ee.object]),value:Ee.any,variant:Ee.oneOf(["filled","outlined","standard"])});const Jy=St("MuiPickersToolbarText",["root","selected"]),_y=["className","selected","value"],$y=go(Tu,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Jy.selected}`]:t.selected}]})((({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${Jy.selected}`]:{color:(e.vars||e).palette.text.primary}}))),eb=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiPickersToolbarText"}),{className:r,value:o}=n,i=Rt(n,_y),a=(e=>{const{classes:t,selected:n}=e;return Et({root:["root",n&&"selected"]},Ky,t)})(n);return Y.jsx($y,re({ref:t,className:$n(r,a.root),component:"span"},i,{children:o}))}));function tb(e){return It("MuiButton",e)}var nb=St("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const rb=k.createContext({});"production"!==process.env.NODE_ENV&&(rb.displayName="ButtonGroupContext");var ob=rb;const ib=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ab=e=>re({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),sb=go(Rc,{shouldForwardProp:e=>mo(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ke(n.color)}`],t[`size${Ke(n.size)}`],t[`${n.variant}Size${Ke(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return re({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":re({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":re({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${nb.focusVisible}`]:re({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${nb.disabled}`]:re({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${yr(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${nb.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nb.disabled}`]:{boxShadow:"none"}})),lb=go("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ke(n.size)}`]]}})((({ownerState:e})=>re({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ab(e)))),cb=go("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ke(n.size)}`]]}})((({ownerState:e})=>re({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ab(e)))),ub=k.forwardRef((function(e,t){const n=k.useContext(ob),r=fo({props:Nt(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:a="button",className:s,disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:m="medium",startIcon:h,type:g,variant:v="text"}=r,A=Rt(r,ib),y=re({},r,{color:i,component:a,disabled:l,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:v}),b=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return re({},a,Et({root:["root",i,`${i}${Ke(t)}`,`size${Ke(o)}`,`${i}Size${Ke(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ke(o)}`],endIcon:["endIcon",`iconSize${Ke(o)}`]},tb,a))})(y),x=h&&Y.jsx(lb,{className:b.startIcon,ownerState:y,children:h}),w=d&&Y.jsx(cb,{className:b.endIcon,ownerState:y,children:d});return Y.jsxs(sb,re({ownerState:y,className:$n(n.className,b.root,s),component:a,disabled:l,focusRipple:!u,focusVisibleClassName:$n(b.focusVisible,p),ref:t,type:g},A,{classes:b,children:[x,o,w]}))}));"production"!==process.env.NODE_ENV&&(ub.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,color:Ee.oneOfType([Ee.oneOf(["inherit","primary","secondary","success","error","info","warning"]),Ee.string]),component:Ee.elementType,disabled:Ee.bool,disableElevation:Ee.bool,disableFocusRipple:Ee.bool,disableRipple:Ee.bool,endIcon:Ee.node,focusVisibleClassName:Ee.string,fullWidth:Ee.bool,href:Ee.string,size:Ee.oneOfType([Ee.oneOf(["small","medium","large"]),Ee.string]),startIcon:Ee.node,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),type:Ee.oneOfType([Ee.oneOf(["button","reset","submit"]),Ee.string]),variant:Ee.oneOfType([Ee.oneOf(["contained","outlined","text"]),Ee.string])});var db=ub;function pb(e){return It("MuiPickersToolbar",e)}St("MuiPickersToolbar",["root","content"]);const fb=["align","className","selected","typographyClassName","value","variant","width"],mb=go(db,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),hb=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:o,selected:i,typographyClassName:a,value:s,variant:l,width:c}=n,u=Rt(n,fb),d=(e=>{const{classes:t}=e;return Et({root:["root"]},pb,t)})(n);return Y.jsx(mb,re({variant:"text",ref:t,className:$n(o,d.root)},c?{sx:{width:c}}:{},u,{children:Y.jsx(eb,{align:r,className:a,variant:l,value:s,selected:i})}))})),gb=go("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>re({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}))),vb=go(eh,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})((({ownerState:e})=>re({flex:1},!e.isLandscape&&{alignItems:"center"}))),Ab=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,isLandscape:i,landscapeDirection:a="column",toolbarTitle:s,hidden:l,titleId:c}=n,u=n,d=(e=>{const{classes:t,isLandscape:n}=e;return Et({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},pb,t)})(u);return l?null:Y.jsxs(gb,{ref:t,className:$n(d.root,o),ownerState:u,children:[Y.jsx(Tu,{color:"text.secondary",variant:"overline",id:c,children:s}),Y.jsx(vb,{container:!0,justifyContent:i?"flex-start":"space-between",className:d.content,ownerState:u,direction:i?a:"row",alignItems:i?"flex-start":"flex-end",children:r})]})}));function yb(e,t,n,r){const o=Cy();return{meridiemMode:YA(e,o),handleMeridiemChange:k.useCallback((i=>{const a=null==e?null:GA(e,i,Boolean(t),o);n(a,null!=r?r:"partial")}),[t,e,n,r,o])}}function bb(e){return It("MuiTimePickerToolbar",e)}const xb=St("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),wb=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],jb=e=>{const{theme:t,isLandscape:n,classes:r}=e;return Et({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},bb,r)},Cb=go(Ab,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ob=go(eb,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Mb=go("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${xb.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${xb.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})((({theme:e,ownerState:t})=>re({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"})));Mb.propTypes={as:Ee.elementType,ownerState:Ee.object.isRequired,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])};const zb=go("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${xb.ampmLabel}`]:t.ampmLabel},{[`&.${xb.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})((({ownerState:e})=>re({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${xb.ampmLabel}`]:{fontSize:17}})));function Db(e){const t=fo({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:i,onChange:a,view:s,onViewChange:l,views:c,disabled:u,readOnly:d}=t,p=Rt(t,wb),f=Cy(),m=Oy(),h=po(),g=Boolean(n&&!r&&c.includes("hours")),{meridiemMode:v,handleMeridiemChange:A}=yb(o,n,a),y=t,b=jb(re({},y,{theme:h})),x=Y.jsx(Ob,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:b.separator});return Y.jsxs(Cb,re({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:i,ownerState:y,className:b.root},p,{children:[Y.jsxs(Mb,{className:b.hourMinuteLabel,ownerState:y,children:[By(c,"hours")&&Y.jsx(hb,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:"hours"===s,value:o?(w=o,n?f.format(w,"hours12h"):f.format(w,"hours24h")):"--"}),By(c,["hours","minutes"])&&x,By(c,"minutes")&&Y.jsx(hb,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:"minutes"===s,value:o?f.format(o,"minutes"):"--"}),By(c,["minutes","seconds"])&&x,By(c,"seconds")&&Y.jsx(hb,{variant:"h3",onClick:()=>l("seconds"),selected:"seconds"===s,value:o?f.format(o,"seconds"):"--"})]}),g&&Y.jsxs(zb,{className:b.ampmSelection,ownerState:y,children:[Y.jsx(hb,{disableRipple:!0,variant:"subtitle2",selected:"am"===v,typographyClassName:b.ampmLabel,value:VA(f,"am"),onClick:d?void 0:()=>A("am"),disabled:u}),Y.jsx(hb,{disableRipple:!0,variant:"subtitle2",selected:"pm"===v,typographyClassName:b.ampmLabel,value:VA(f,"pm"),onClick:d?void 0:()=>A("pm"),disabled:u})]})]}));var w}zb.propTypes={as:Ee.elementType,ownerState:Ee.object.isRequired,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])},"production"!==process.env.NODE_ENV&&(Db.propTypes={ampm:Ee.bool,ampmInClock:Ee.bool,classes:Ee.object,className:Ee.string,disabled:Ee.bool,hidden:Ee.bool,isLandscape:Ee.bool.isRequired,onChange:Ee.func.isRequired,onViewChange:Ee.func.isRequired,readOnly:Ee.bool,titleId:Ee.string,toolbarFormat:Ee.string,toolbarPlaceholder:Ee.node,value:Ee.any,view:Ee.oneOf(["hours","meridiem","minutes","seconds"]).isRequired,views:Ee.arrayOf(Ee.oneOf(["hours","meridiem","minutes","seconds"]).isRequired).isRequired});const Tb=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>re({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]})),{})};function Pb(e,t){var n,r,o,i,a;const s=Cy(),l=fo({props:e,name:t}),c=null!=(n=l.ampm)?n:s.is12HourCycleInCurrentLocale(),u=k.useMemo((()=>{var e;return null==(null==(e=l.localeText)?void 0:e.toolbarTitle)?l.localeText:re({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})}),[l.localeText]),d=null!=(r=l.slots)?r:Tb(l.components),p=null!=(o=l.slotProps)?o:l.componentsProps;return re({},l,{ampm:c,localeText:u},(({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=null!=n?n:r;let i;if(null!=e)i=e;else if(o.includes(t))i=t;else{if(!(o.length>0))throw new Error("MUI: The `views` prop must contain at least one view");i=o[0]}return{views:o,openTo:i}})({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:null!=(i=l.disableFuture)&&i,disablePast:null!=(a=l.disablePast)&&a,slots:re({toolbar:Db},d),slotProps:re({},p,{toolbar:re({ampm:c,ampmInClock:l.ampmInClock},null==p?void 0:p.toolbar)})})}Si(Y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Nb=Si(Y.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Eb=Si(Y.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");Si(Y.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");const Bb=Si(Y.jsxs(k.Fragment,{children:[Y.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Y.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");function kb(e){return It("MuiInputAdornment",e)}Si(Y.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),Si(Y.jsxs(k.Fragment,{children:[Y.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Y.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");var Lb,Ib=St("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const Sb=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Wb=go("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ke(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>re({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Ib.positionStart}&:not(.${Ib.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Hb=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,u=Rt(n,Sb),d=qc()||{};let p=c;c&&d.variant&&"production"!==process.env.NODE_ENV&&c===d.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),d&&!p&&(p=d.variant);const f=re({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Et({root:["root",n&&"disablePointerEvents",o&&`position${Ke(o)}`,a,r&&"hiddenLabel",i&&`size${Ke(i)}`]},kb,t)})(f);return Y.jsx(Uc.Provider,{value:null,children:Y.jsx(Wb,re({as:i,ownerState:f,className:$n(m.root,o),ref:t},u,{children:"string"!=typeof r||s?Y.jsxs(k.Fragment,{children:["start"===l?Lb||(Lb=Y.jsx("span",{className:"notranslate",children:""})):null,r]}):Y.jsx(Tu,{color:"text.secondary",children:r})}))})}));"production"!==process.env.NODE_ENV&&(Hb.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,disablePointerEvents:Ee.bool,disableTypography:Ee.bool,position:Ee.oneOf(["end","start"]).isRequired,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),variant:Ee.oneOf(["filled","outlined","standard"])});var Rb=Hb;function Fb(e){return It("MuiPickersPopper",e)}St("MuiPickersPopper",["root","paper"]);const Vb=go(sc,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({zIndex:e.zIndex.modal}))),Qb=go(Ki,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({ownerState:e})=>re({transformOrigin:"top center",outline:0},"top"===e.placement&&{transformOrigin:"bottom center"})));function Xb(e){var t,n,r,o;const i=fo({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:d,open:p,role:f,placement:m,slots:h,slotProps:g}=i;k.useEffect((()=>{function e(e){!p||"Escape"!==e.key&&"Esc"!==e.key||d()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[d,p]);const v=k.useRef(null);k.useEffect((()=>{"tooltip"===f||c&&!c()||(p?v.current=ky(document):v.current&&v.current instanceof HTMLElement&&setTimeout((()=>{v.current instanceof HTMLElement&&v.current.focus()})))}),[p,f,c]);const[A,y,b]=function(e,t){const n=k.useRef(!1),r=k.useRef(!1),o=k.useRef(null),i=k.useRef(!1);k.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),i.current=!1};function t(){i.current=!0}}),[e]);const a=ut((e=>{if(!i.current)return;const a=r.current;r.current=!1;const s=et(o.current);if(!o.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s))return;if(n.current)return void(n.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(o.current)>-1:!s.documentElement.contains(e.target)||o.current.contains(e.target),l||a||t(e)})),s=()=>{r.current=!0};return k.useEffect((()=>{if(e){const e=et(o.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",a),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",t)}}}),[e,a]),k.useEffect((()=>{if(e){const e=et(o.current);return e.addEventListener("click",a),()=>{e.removeEventListener("click",a),r.current=!1}}}),[e,a]),[o,s,s]}(p,null!=u?u:d),x=dt(k.useRef(null),l),w=dt(x,A),j=i,C=(e=>{const{classes:t}=e;return Et({root:["root"],paper:["paper"]},Fb,t)})(j),O=null!=(t=null==h?void 0:h.desktopTransition)?t:rc,M=null!=(n=null==h?void 0:h.desktopTrapFocus)?n:Zo,z=null!=(r=null==h?void 0:h.desktopPaper)?r:Qb,D=ko({elementType:z,externalSlotProps:null==g?void 0:g.desktopPaper,additionalProps:{tabIndex:-1,elevation:8,ref:w},className:C.paper,ownerState:{}}),T=null!=(o=null==h?void 0:h.popper)?o:Vb,P=ko({elementType:T,externalSlotProps:null==g?void 0:g.popper,additionalProps:{transition:!0,role:f,open:p,anchorEl:a,placement:m,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),d())}},className:C.root,ownerState:i});return Y.jsx(T,re({},P,{children:({TransitionProps:e,placement:t})=>Y.jsx(M,re({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===f,isEnabled:()=>!0},null==g?void 0:g.desktopTrapFocus,{children:Y.jsx(O,re({},e,null==g?void 0:g.desktopTransition,{children:Y.jsx(z,re({},D,{onClick:e=>{var t;y(e),null==(t=D.onClick)||t.call(D,e)},onTouchStart:e=>{var t;b(e),null==(t=D.onTouchStart)||t.call(D,e)},ownerState:re({},j,{placement:t}),children:s}))}))}))}))}const Yb=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:c="desktop"===r,selectedSections:u,onSelectedSectionsChange:d,timezone:p}=e,{current:f}=k.useRef(l),{current:m}=k.useRef(void 0!==s);"production"!==process.env.NODE_ENV&&(k.useEffect((()=>{m!==(void 0!==s)&&console.error([`MUI: A component is changing the ${m?"":"un"}controlled value of a picker to be ${m?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[s]),k.useEffect((()=>{m||f===l||console.error(["MUI: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join("\n"))}),[JSON.stringify(f)]));const h=Cy(),g=jy(),[v,A]=ct({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:y,setIsOpen:b}=(({open:e,onOpen:t,onClose:n})=>{const r=k.useRef("boolean"==typeof e).current,[o,i]=k.useState(!1);return k.useEffect((()=>{if(r){if("boolean"!=typeof e)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}}),[r,e]),{isOpen:o,setIsOpen:k.useCallback((e=>{r||i(e),e&&t&&t(),!e&&n&&n()}),[r,t,n])}})(e),[x,w]=k.useState((()=>{let e;return e=void 0!==s?s:void 0!==f?f:t.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:s,hasBeenModifiedSinceMount:!1}})),{timezone:j,handleValueChange:C}=Dy({timezone:p,value:s,defaultValue:f,onChange:a,valueManager:t});zy(re({},e,{value:x.draft,timezone:j}),o,t.isSameError,t.defaultErrorState);const O=ut((n=>{const r={action:n,dateState:x,hasChanged:e=>!t.areValuesEqual(h,n.value,e),isControlled:m,closeOnSelect:c},a=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!i||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!i||n(r.lastPublishedValue)))})(r),s=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!a||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&i?!!a||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(r),l=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(r);if(w((e=>re({},e,{draft:n.value,lastPublishedValue:a?n.value:e.lastPublishedValue,lastCommittedValue:s?n.value:e.lastCommittedValue,hasBeenModifiedSinceMount:!0}))),a){const t={validationError:"setValueFromField"===n.name?n.context.validationError:o({adapter:g,value:n.value,props:re({},e,{value:n.value,timezone:j})})};C(n.value,t)}s&&i&&i(n.value),l&&b(!1)}));if(void 0!==s&&(void 0===x.lastControlledValue||!t.areValuesEqual(h,x.lastControlledValue,s))){const e=t.areValuesEqual(h,x.draft,s);w((t=>re({},t,{lastControlledValue:s},e?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0})))}const M=ut((()=>{O({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),z=ut((()=>{O({value:x.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),D=ut((()=>{O({value:x.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),T=ut((()=>{O({value:x.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),P=ut((()=>{O({value:t.getTodayValue(h,j,n),name:"setValueFromAction",pickerAction:"today"})})),N=ut((()=>b(!0))),E=ut((()=>b(!1))),B=ut(((e,t="partial")=>O({name:"setValueFromView",value:e,selectionState:t}))),L=ut(((e,t)=>O({name:"setValueFromShortcut",value:e,changeImportance:null!=t?t:"accept"}))),I=ut(((e,t)=>O({name:"setValueFromField",value:e,context:t}))),S=ut((e=>{A(e),null==d||d(e)})),W={onClear:M,onAccept:z,onDismiss:D,onCancel:T,onSetToday:P,onOpen:N,onClose:E},H={value:x.draft,onChange:I,selectedSections:v,onSelectedSectionsChange:S},R=k.useMemo((()=>t.cleanValue(h,x.draft)),[h,t,x.draft]);return{open:y,fieldProps:H,viewProps:{value:R,onChange:B,onClose:E,open:y,onSelectedSectionsChange:S},layoutProps:re({},W,{value:R,onChange:B,onSelectShortcut:L,isValid:n=>{const r=o({adapter:g,value:n,props:re({},e,{value:n,timezone:j})});return!t.hasError(r)}}),actions:W}};let Zb=!1;function Gb({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){var l,c;"production"!==process.env.NODE_ENV&&(Zb||(null==r||o.includes(r)||(console.warn(`MUI: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),Zb=!0),null!=r||null==n||o.includes(n)||(console.warn(`MUI: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),Zb=!0)));const u=k.useRef(n),d=k.useRef(o),p=k.useRef(o.includes(n)?n:o[0]),[f,m]=ct({name:"useViews",state:"view",controlled:r,default:p.current}),h=k.useRef(i?f:null),[g,v]=ct({name:"useViews",state:"focusedView",controlled:a,default:h.current});k.useEffect((()=>{(u.current&&u.current!==n||d.current&&d.current.some((e=>!o.includes(e))))&&(m(o.includes(n)?n:o[0]),d.current=o,u.current=n)}),[n,m,f,o]);const A=o.indexOf(f),y=null!=(l=o[A-1])?l:null,b=null!=(c=o[A+1])?c:null,x=ut(((e,t)=>{v(t?e:t=>e===t?null:t),null==s||s(e,t)})),w=ut((e=>{e!==f&&(m(e),x(e,!0),t&&t(e))})),j=ut((()=>{b&&w(b),x(b,!0)})),C=ut(((t,n,r)=>{const i="finish"===n,a=r?o.indexOf(r)<o.length-1:Boolean(b);e(t,i&&a?"partial":n),i&&j()})),O=ut(((t,n,r)=>{e(t,n?"partial":"finish",r),n&&(w(n),x(n,!0))}));return{view:f,setView:w,focusedView:g,setFocusedView:x,nextView:b,previousView:y,defaultView:p.current,goToNextView:j,setValueAndGoToNextView:C,setValueAndGoToView:O}}const Ub=["className","sx"];function qb(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const Kb=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=((e,t)=>{const[n,r]=k.useState(qb);return ot((()=>{const e=()=>{r(qb())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!By(e,["hours","minutes","seconds"])&&"landscape"===(t||n)})(n.views,o);return{layoutProps:re({},n,t,{isLandscape:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},Jb=DA(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),_b=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:i,validator:a,autoFocusView:s})=>{"production"!==process.env.NODE_ENV&&null!=e.renderInput&&Jb();const l=Yb({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),c=(({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:i,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:d,disableOpenPicker:p,viewRenderers:f,timezone:m}=e,h=Rt(e,Ub),{view:g,setView:v,defaultView:A,focusedView:y,setFocusedView:b,setValueAndGoToNextView:x}=Gb({view:void 0,views:c,openTo:u,onChange:i,onViewChange:d,autoFocus:o}),{hasUIView:w,viewModeLookup:j}=k.useMemo((()=>c.reduce(((e,t)=>{let n;return n=p?"field":null!=f[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[p,f,c]),C=k.useMemo((()=>c.reduce(((e,t)=>null!=f[t]&&XA(t)?e+1:e),0)),[f,c]),O=j[g],M=ut((()=>"UI"===O)),[z,D]=k.useState("UI"===O?g:null);return z!==g&&"UI"===j[g]&&D(g),ot((()=>{"field"===O&&a&&(l(),setTimeout((()=>{null==r||r.current.focus(),s(g)})))}),[g]),ot((()=>{if(!a)return;let e=g;"field"===O&&null!=z&&(e=z),e!==A&&"UI"===j[e]&&"UI"===j[A]&&(e=A),e!==g&&v(e),b(e,!0)}),[a]),{hasUIView:w,shouldRestoreFocus:M,layoutProps:{views:c,view:z,onViewChange:v},renderCurrentView:()=>{if(null==z)return null;const e=f[z];return null==e?null:e(re({},h,n,t,{views:c,timezone:m,onChange:x,view:z,onViewChange:v,focusedView:y,onFocusedViewChange:b,showViewSwitcher:C>1,timeViewsCount:C}))}}})({props:e,inputRef:o,additionalViewProps:i,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=Kb({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function $b(e){return It("MuiPickersLayout",e)}const ex=St("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]);function tx(e){return It("MuiDialogActions",e)}St("MuiDialogActions",["root","spacing"]);const nx=["className","disableSpacing"],rx=go("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>re({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),ox=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1}=n,i=Rt(n,nx),a=re({},n,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:n}=e;return Et({root:["root",!n&&"spacing"]},tx,t)})(a);return Y.jsx(rx,re({className:$n(s.root,r),ownerState:a,ref:t},i))}));"production"!==process.env.NODE_ENV&&(ox.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,disableSpacing:Ee.bool,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var ix=ox;const ax=["onAccept","onClear","onCancel","onSetToday","actions"];function sx(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=Rt(e,ax),s=Oy();if(null==i||0===i.length)return null;const l=null==i?void 0:i.map((e=>{switch(e){case"clear":return Y.jsx(db,{onClick:n,children:s.clearButtonLabel},e);case"cancel":return Y.jsx(db,{onClick:r,children:s.cancelButtonLabel},e);case"accept":return Y.jsx(db,{onClick:t,children:s.okButtonLabel},e);case"today":return Y.jsx(db,{onClick:o,children:s.todayButtonLabel},e);default:return null}}));return Y.jsx(ix,re({},a,{children:l}))}function lx(e){return It("MuiListItem",e)}"production"!==process.env.NODE_ENV&&(sx.propTypes={actions:Ee.arrayOf(Ee.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:Ee.bool,onAccept:Ee.func.isRequired,onCancel:Ee.func.isRequired,onClear:Ee.func.isRequired,onSetToday:Ee.func.isRequired,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var cx=St("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function ux(e){return It("MuiListItemButton",e)}var dx=St("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const px=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],fx=go(Rc,{shouldForwardProp:e=>mo(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>re({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${dx.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${dx.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${dx.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dx.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),mx=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:p}=n,f=Rt(n,px),m=k.useContext(hu),h=k.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),g=k.useRef(null);ot((()=>{o&&(g.current?g.current.focus():"production"!==process.env.NODE_ENV&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))}),[o]);const v=re({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),A=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return re({},n,Et({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},ux,n))})(v),y=dt(g,t);return Y.jsx(hu.Provider,{value:h,children:Y.jsx(fx,re({ref:y,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:$n(A.focusVisible,u),ownerState:v,className:$n(A.root,p)},f,{classes:A,children:a}))})}));"production"!==process.env.NODE_ENV&&(mx.propTypes={alignItems:Ee.oneOf(["center","flex-start"]),autoFocus:Ee.bool,children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,dense:Ee.bool,disabled:Ee.bool,disableGutters:Ee.bool,divider:Ee.bool,focusVisibleClassName:Ee.string,href:Ee.string,selected:Ee.bool,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var hx=mx;function gx(e){return It("MuiListItemSecondaryAction",e)}St("MuiListItemSecondaryAction",["root","disableGutters"]);const vx=["className"],Ax=go("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>re({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),yx=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Rt(n,vx),i=re({},n,{disableGutters:k.useContext(hu).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Et({root:["root",t&&"disableGutters"]},gx,n)})(i);return Y.jsx(Ax,re({className:$n(a.root,r),ownerState:i,ref:t},o))}));"production"!==process.env.NODE_ENV&&(yx.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])}),yx.muiName="ListItemSecondaryAction";var bx=yx;const xx=["className"],wx=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],jx=go("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>re({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&re({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${dx.root}`]:{paddingRight:48}},{[`&.${cx.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cx.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cx.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cx.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Cx=go("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ox=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:m=!1,disableGutters:h=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:A,secondaryAction:y,selected:b=!1,slotProps:x={},slots:w={}}=n,j=Rt(n.ContainerProps,xx),C=Rt(n,wx),O=k.useContext(hu),M=k.useMemo((()=>({dense:f||O.dense||!1,alignItems:r,disableGutters:h})),[r,O.dense,f,h]),z=k.useRef(null);ot((()=>{o&&(z.current?z.current.focus():"production"!==process.env.NODE_ENV&&console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."))}),[o]);const D=k.Children.toArray(a),T=D.length&&$e(D[D.length-1],["ListItemSecondaryAction"]),P=re({},n,{alignItems:r,autoFocus:o,button:i,dense:M.dense,disabled:m,disableGutters:h,disablePadding:g,divider:v,hasSecondaryAction:T,selected:b}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Et({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},lx,r)})(P),E=dt(z,t),B=w.root||c.Root||jx,L=x.root||u.root||{},I=re({className:$n(N.root,L.className,s),disabled:m},C);let S=l||"li";return i&&(I.component=l||"div",I.focusVisibleClassName=$n(cx.focusVisible,A),S=Rc),T?(S=I.component||l?S:"div","li"===d&&("li"===S?S="div":"li"===I.component&&(I.component="div")),Y.jsx(hu.Provider,{value:M,children:Y.jsxs(Cx,re({as:d,className:$n(N.container,p),ref:E,ownerState:P},j,{children:[Y.jsx(B,re({},L,!Oo(B)&&{as:S,ownerState:re({},P,L.ownerState)},I,{children:D})),D.pop()]}))})):Y.jsx(hu.Provider,{value:M,children:Y.jsxs(B,re({},L,{as:S,ref:E},!Oo(B)&&{ownerState:re({},P,L.ownerState)},I,{children:[D,y&&Y.jsx(bx,{children:y})]}))})}));"production"!==process.env.NODE_ENV&&(Ox.propTypes={alignItems:Ee.oneOf(["center","flex-start"]),autoFocus:Ee.bool,button:Ee.bool,children:ne(Ee.node,(e=>{const t=k.Children.toArray(e.children);let n=-1;for(let e=t.length-1;e>=0;e-=1){if($e(t[e],["ListItemSecondaryAction"])){n=e;break}}return-1!==n&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null})),classes:Ee.object,className:Ee.string,component:Ee.elementType,components:Ee.shape({Root:Ee.elementType}),componentsProps:Ee.shape({root:Ee.object}),ContainerComponent:Ie,ContainerProps:Ee.object,dense:Ee.bool,disabled:Ee.bool,disableGutters:Ee.bool,disablePadding:Ee.bool,divider:Ee.bool,focusVisibleClassName:Ee.string,secondaryAction:Ee.node,selected:Ee.bool,slotProps:Ee.shape({root:Ee.object}),slots:Ee.shape({root:Ee.elementType}),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var Mx=Ox;const zx=["items","changeImportance","isLandscape","onChange","isValid"];function Dx(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,i=Rt(e,zx);if(null==t||0===t.length)return null;const a=t.map((e=>{const t=e.getValue({isValid:o});return{label:e.label,onClick:()=>{r(t,n)},disabled:!o(t)}}));return Y.jsx(Nf,re({dense:!0,sx:[{maxHeight:358,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map((e=>Y.jsx(Mx,{children:Y.jsx(td,re({},e))},e.label)))}))}"production"!==process.env.NODE_ENV&&(Dx.propTypes={changeImportance:Ee.oneOf(["accept","set"]),className:Ee.string,component:Ee.elementType,dense:Ee.bool,disablePadding:Ee.bool,isLandscape:Ee.bool.isRequired,isValid:Ee.func.isRequired,items:Ee.arrayOf(Ee.shape({getValue:Ee.func.isRequired,label:Ee.string.isRequired})),onChange:Ee.func.isRequired,style:Ee.object,subheader:Ee.node,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var Tx=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:i,onCancel:a,onSetToday:s,view:l,views:c,onViewChange:u,value:d,onChange:p,onSelectShortcut:f,isValid:m,isLandscape:h,disabled:g,readOnly:v,children:A,components:y,componentsProps:b,slots:x,slotProps:w}=e,j=null!=x?x:Tb(y),C=null!=w?w:b,O=(e=>{const{classes:t,isLandscape:n}=e;return Et({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},$b,t)})(e),M=null!=(t=null==j?void 0:j.actionBar)?t:sx,z=ko({elementType:M,externalSlotProps:null==C?void 0:C.actionBar,additionalProps:{onAccept:o,onClear:i,onCancel:a,onSetToday:s,actions:"desktop"===r?[]:["cancel","accept"],className:O.actionBar},ownerState:re({},e,{wrapperVariant:r})}),D=Y.jsx(M,re({},z)),T=null==j?void 0:j.toolbar,P=ko({elementType:T,externalSlotProps:null==C?void 0:C.toolbar,additionalProps:{isLandscape:h,onChange:p,value:d,view:l,onViewChange:u,views:c,disabled:g,readOnly:v,className:O.toolbar},ownerState:re({},e,{wrapperVariant:r})}),N=function(e){return null!==e.view}(P)&&T?Y.jsx(T,re({},P)):null,E=A,B=null==j?void 0:j.tabs,k=l&&B?Y.jsx(B,re({view:l,onViewChange:u},null==C?void 0:C.tabs)):null,L=null!=(n=null==j?void 0:j.shortcuts)?n:Dx,I=ko({elementType:L,externalSlotProps:null==C?void 0:C.shortcuts,additionalProps:{isValid:m,isLandscape:h,onChange:f,className:O.shortcuts},ownerState:{isValid:m,isLandscape:h,onChange:f,className:O.shortcuts,wrapperVariant:r}});return{toolbar:N,content:E,tabs:k,actionBar:D,shortcuts:l&&L?Y.jsx(L,re({},I)):null}};const Px=go("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${ex.toolbar}`]:t.isLandscape?{gridColumn:"rtl"===e.direction?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${ex.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:"rtl"===e.direction?3:1,gridRow:"2 / 3"},[`& .${ex.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}})));Px.propTypes={as:Ee.elementType,ownerState:Ee.shape({isLandscape:Ee.bool.isRequired}).isRequired,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])};const Nx=go("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Ex=function(e){const t=fo({props:e,name:"MuiPickersLayout"}),{toolbar:n,content:r,tabs:o,actionBar:i,shortcuts:a}=Tx(t),{sx:s,className:l,isLandscape:c,ref:u,wrapperVariant:d}=t,p=t,f=(e=>{const{isLandscape:t,classes:n}=e;return Et({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},$b,n)})(p);return Y.jsxs(Px,{ref:u,sx:s,className:$n(l,f.root),ownerState:p,children:[c?a:n,c?n:a,Y.jsx(Nx,{className:f.contentWrapper,children:"desktop"===d?Y.jsxs(k.Fragment,{children:[r,o]}):Y.jsxs(k.Fragment,{children:[o,r]})}),i]})};"production"!==process.env.NODE_ENV&&(Ex.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,components:Ee.object,componentsProps:Ee.object,disabled:Ee.bool,isLandscape:Ee.bool.isRequired,isValid:Ee.func.isRequired,onAccept:Ee.func.isRequired,onCancel:Ee.func.isRequired,onChange:Ee.func.isRequired,onClear:Ee.func.isRequired,onClose:Ee.func.isRequired,onDismiss:Ee.func.isRequired,onOpen:Ee.func.isRequired,onSelectShortcut:Ee.func.isRequired,onSetToday:Ee.func.isRequired,onViewChange:Ee.func.isRequired,orientation:Ee.oneOf(["landscape","portrait"]),readOnly:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),value:Ee.any,view:Ee.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:Ee.arrayOf(Ee.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:Ee.oneOf(["desktop","mobile"])});const Bx=["props","getOpenDialogAriaText"],kx=["ownerState"],Lx=["ownerState"];function Ix(e){return It("MuiPickersArrowSwitcher",e)}St("MuiPickersArrowSwitcher",["root","spacer","button"]);const Sx=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Wx=["ownerState"],Hx=["ownerState"],Rx=go("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Fx=go("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((({theme:e})=>({width:e.spacing(3)}))),Vx=go(Zc,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})((({ownerState:e})=>re({},e.hidden&&{visibility:"hidden"}))),Qx=k.forwardRef((function(e,t){var n,r,o,i;const a="rtl"===po().direction,s=fo({props:e,name:"MuiPickersArrowSwitcher"}),{children:l,className:c,slots:u,slotProps:d,isNextDisabled:p,isNextHidden:f,onGoToNext:m,nextLabel:h,isPreviousDisabled:g,isPreviousHidden:v,onGoToPrevious:A,previousLabel:y}=s,b=Rt(s,Sx),x=s,w=(e=>{const{classes:t}=e;return Et({root:["root"],spacer:["spacer"],button:["button"]},Ix,t)})(x),j={isDisabled:p,isHidden:f,goTo:m,label:h},C={isDisabled:g,isHidden:v,goTo:A,label:y},[O,M]=a?[j,C]:[C,j],z=null!=(n=null==u?void 0:u.previousIconButton)?n:Vx,D=ko({elementType:z,externalSlotProps:null==d?void 0:d.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:re({},x,{hidden:O.isHidden}),className:w.button}),T=null!=(r=null==u?void 0:u.nextIconButton)?r:Vx,P=ko({elementType:T,externalSlotProps:null==d?void 0:d.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:re({},x,{hidden:M.isHidden}),className:w.button}),N=null!=(o=null==u?void 0:u.leftArrowIcon)?o:Nb,E=Rt(ko({elementType:N,externalSlotProps:null==d?void 0:d.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Wx),B=null!=(i=null==u?void 0:u.rightArrowIcon)?i:Eb,k=Rt(ko({elementType:B,externalSlotProps:null==d?void 0:d.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Hx);return Y.jsxs(Rx,re({ref:t,className:$n(w.root,c),ownerState:x},b,{children:[Y.jsx(z,re({},D,{children:a?Y.jsx(B,re({},k)):Y.jsx(N,re({},E))})),l?Y.jsx(Tu,{variant:"subtitle1",component:"span",children:l}):Y.jsx(Fx,{className:w.spacer,ownerState:x}),Y.jsx(T,re({},P,{children:a?Y.jsx(N,re({},E)):Y.jsx(B,re({},k))}))]}))})),Xx=go("div")({overflow:"hidden",width:320,maxHeight:358,display:"flex",flexDirection:"column",margin:"0 auto"});function Yx(e){return It("MuiTimeClock",e)}St("MuiTimeClock",["root","arrowSwitcher"]);const Zx=220,Gx=36,Ux={x:Zx/2,y:Zx/2},qx=Ux.x-Ux.x,Kx=0-Ux.y,Jx=(e,t,n)=>{const r=t-Ux.x,o=n-Ux.y,i=Math.atan2(qx,Kx)-Math.atan2(r,o);let a=i*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const s=r**2+o**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(s)}};function _x(e){return It("MuiClockPointer",e)}St("MuiClockPointer",["root","thumb"]);const $x=["className","hasSelected","isInner","type","viewValue"],ew=e=>{const{classes:t}=e;return Et({root:["root"],thumb:["thumb"]},_x,t)},tw=go("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>re({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])}))),nw=go("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e,ownerState:t})=>re({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main})));function rw(e){const t=fo({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:i}=t,a=Rt(t,$x),s=k.useRef(o);k.useEffect((()=>{s.current=o}),[o]);const l=re({},t,{shouldAnimate:s.current!==o}),c=ew(l);return Y.jsx(tw,re({style:(()=>{let e=360/("hours"===o?12:60)*i;return"hours"===o&&i>12&&(e-=360),{height:Math.round((r?.26:.4)*Zx),transform:`rotateZ(${e}deg)`}})(),className:$n(n,c.root),ownerState:l},a,{children:Y.jsx(nw,{ownerState:l,className:c.thumb})}))}function ow(e){return It("MuiClock",e)}St("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]);const iw=go("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)}))),aw=go("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),sw=go("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),lw=go("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})((({ownerState:e})=>re({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}))),cw=go("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})((({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}))),uw=go(Zc,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})((({theme:e,ownerState:t})=>re({zIndex:1,position:"absolute",bottom:8,left:8},"am"===t.meridiemMode&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}))),dw=go(Zc,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})((({theme:e,ownerState:t})=>re({zIndex:1,position:"absolute",bottom:8,right:8},"pm"===t.meridiemMode&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})));function pw(e){const t=fo({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:d,selectedId:p,type:f,viewValue:m,disabled:h,readOnly:g,className:v}=t,A=t,y=Cy(),b=Oy(),x=k.useRef(!1),w=(e=>{const{classes:t}=e;return Et({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},ow,t)})(A),j=l(m,f),C=!n&&"hours"===f&&(m<1||m>12),O=(e,t)=>{h||g||l(e,f)||d(e,t)},M=(e,t)=>{let{offsetX:r,offsetY:o}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}const i="seconds"===f||"minutes"===f?((e,t,n=1)=>{const r=6*n;let{value:o}=Jx(r,e,t);return o=o*n%60,o})(r,o,u):((e,t,n)=>{const{value:r,distance:o}=Jx(30,e,t);let i=r||12;return n?i%=12:o<Zx/2-Gx&&(i+=12,i%=24),i})(r,o,Boolean(n));O(i,t)},z=k.useMemo((()=>"hours"===f||m%5==0),[f,m]),D="minutes"===f?u:1,T=k.useRef(null);ot((()=>{o&&T.current.focus()}),[o]);return Y.jsxs(iw,{className:$n(v,w.root),children:[Y.jsxs(aw,{className:w.clock,children:[Y.jsx(lw,{onTouchMove:e=>{x.current=!0,M(e,"shallow")},onTouchEnd:e=>{x.current&&(M(e,"finish"),x.current=!1)},onMouseUp:e=>{x.current&&(x.current=!1),M(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&M(e.nativeEvent,"shallow")},ownerState:{disabled:h},className:w.squareMask}),!j&&Y.jsxs(k.Fragment,{children:[Y.jsx(cw,{className:w.pin}),null!=a&&Y.jsx(rw,{type:f,viewValue:m,isInner:C,hasSelected:z})]}),Y.jsx(sw,{"aria-activedescendant":p,"aria-label":b.clockLabelText(f,a,y),ref:T,role:"listbox",onKeyDown:e=>{if(!x.current)switch(e.key){case"Home":O(0,"partial"),e.preventDefault();break;case"End":O("minutes"===f?59:23,"partial"),e.preventDefault();break;case"ArrowUp":O(m+D,"partial"),e.preventDefault();break;case"ArrowDown":O(m-D,"partial"),e.preventDefault()}},tabIndex:0,className:w.wrapper,children:i})]}),n&&r&&Y.jsxs(k.Fragment,{children:[Y.jsx(uw,{onClick:g?void 0:()=>s("am"),disabled:h||null===c,ownerState:A,className:w.amButton,children:Y.jsx(Tu,{variant:"caption",children:"AM"})}),Y.jsx(dw,{disabled:h||null===c,onClick:g?void 0:()=>s("pm"),ownerState:A,className:w.pmButton,children:Y.jsx(Tu,{variant:"caption",children:"PM"})})]})]})}function fw(e){return It("MuiClockNumber",e)}const mw=St("MuiClockNumber",["root","selected","disabled"]),hw=["className","disabled","index","inner","label","selected"],gw=go("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${mw.disabled}`]:t.disabled},{[`&.${mw.selected}`]:t.selected}]})((({theme:e,ownerState:t})=>re({height:Gx,width:Gx,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${mw.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${mw.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&re({},e.typography.body2,{color:(e.vars||e).palette.text.secondary}))));function vw(e){const t=fo({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:s}=t,l=Rt(t,hw),c=t,u=(e=>{const{classes:t,selected:n,disabled:r}=e;return Et({root:["root",n&&"selected",r&&"disabled"]},fw,t)})(c),d=o%12/12*Math.PI*2-Math.PI/2,p=(Zx-Gx-2)/2*(i?.65:1),f=Math.round(Math.cos(d)*p),m=Math.round(Math.sin(d)*p);return Y.jsx(gw,re({className:$n(n,u.root),"aria-disabled":!!r||void 0,"aria-selected":!!s||void 0,role:"option",style:{transform:`translate(${f}px, ${m+(Zx-Gx)/2}px`},ownerState:c},l,{children:a}))}const Aw=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?12:23,c=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a="00");const l=!e&&(0===t||t>12);a=i.formatNumber(a);const u=c(t);s.push(Y.jsx(vw,{id:u?o:void 0,index:t,inner:l,selected:u,disabled:r(t),label:a,"aria-label":n(a)},t))}return s},yw=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map((([e,i],a)=>{const s=e===t;return Y.jsx(vw,{label:i,id:s?o:void 0,index:a+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(i)},e)}))},bw=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const i=k.useMemo((()=>yy.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:JA.day,timezone:o,getTodayDate:()=>FA(n,o,"date")})),[]);return null!=e?e:i},xw=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],ww=go(Xx,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),jw=go(Qx,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Cw=["hours","minutes"],Ow=k.forwardRef((function(e,t){const n=Cy(),r=fo({props:e,name:"MuiTimeClock"}),{ampm:o=n.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:a,components:s,componentsProps:l,slots:c,slotProps:u,value:d,defaultValue:p,referenceDate:f,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:h,minTime:g,disableFuture:v,disablePast:A,minutesStep:y=1,shouldDisableClock:b,shouldDisableTime:x,showViewSwitcher:w,onChange:j,view:C,views:O=Cw,openTo:M,onViewChange:z,focusedView:D,onFocusedViewChange:T,className:P,disabled:N,readOnly:E,timezone:B}=r,L=Rt(r,xw),I=null!=c?c:Tb(s),S=null!=u?u:l,{value:W,handleValueChange:H,timezone:R}=Ty({name:"TimeClock",timezone:B,value:d,defaultValue:p,onChange:j,valueManager:yy}),F=bw({value:W,referenceDate:f,utils:n,props:r,timezone:R}),V=Oy(),Q=My(R),{view:X,setView:Z,previousView:G,nextView:U,setValueAndGoToNextView:q}=Gb({view:C,views:O,openTo:M,onViewChange:z,onChange:H,focusedView:D,onFocusedViewChange:T}),{meridiemMode:K,handleMeridiemChange:J}=yb(F,o,q),_=k.useCallback(((e,t)=>{const r=qA(m,n),i="hours"===t||"minutes"===t&&O.includes("seconds"),a=({start:e,end:t})=>(!g||!r(g,t))&&((!h||!r(e,h))&&((!v||!r(e,Q))&&(!A||!r(Q,i?t:e)))),s=(e,r=1)=>{if(e%r!=0)return!1;if(null!=b&&b(e,t))return!1;if(x)switch(t){case"hours":return!x(n.setHours(F,e),"hours");case"minutes":return!x(n.setMinutes(F,e),"minutes");case"seconds":return!x(n.setSeconds(F,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=ZA(e,K,o),r=n.setHours(F,t);return!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case"minutes":{const t=n.setMinutes(F,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,y)}case"seconds":{const t=n.setSeconds(F,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[o,F,m,h,K,g,y,b,x,n,v,A,Q,O]),$=st(),ee=k.useMemo((()=>{switch(X){case"hours":{const e=(e,t)=>{const r=ZA(e,K,o);q(n.setHours(F,r),t)};return{onChange:e,viewValue:n.getHours(F),children:Aw({value:W,utils:n,ampm:o,onChange:e,getClockNumberText:V.hoursClockNumberText,isDisabled:e=>N||_(e,"hours"),selectedId:$})}}case"minutes":{const e=n.getMinutes(F),t=(e,t)=>{q(n.setMinutes(F,e),t)};return{viewValue:e,onChange:t,children:yw({utils:n,value:e,onChange:t,getClockNumberText:V.minutesClockNumberText,isDisabled:e=>N||_(e,"minutes"),selectedId:$})}}case"seconds":{const e=n.getSeconds(F),t=(e,t)=>{q(n.setSeconds(F,e),t)};return{viewValue:e,onChange:t,children:yw({utils:n,value:e,onChange:t,getClockNumberText:V.secondsClockNumberText,isDisabled:e=>N||_(e,"seconds"),selectedId:$})}}default:throw new Error("You must provide the type for ClockView")}}),[X,n,W,o,V.hoursClockNumberText,V.minutesClockNumberText,V.secondsClockNumberText,K,q,F,_,$,N]),te=r,ne=(e=>{const{classes:t}=e;return Et({root:["root"],arrowSwitcher:["arrowSwitcher"]},Yx,t)})(te);return Y.jsxs(ww,re({ref:t,className:$n(ne.root,P),ownerState:te},L,{children:[Y.jsx(pw,re({autoFocus:null!=a?a:!!D,ampmInClock:i&&O.includes("hours"),value:W,type:X,ampm:o,minutesStep:y,isTimeDisabled:_,meridiemMode:K,handleMeridiemChange:J,selectedId:$,disabled:N,readOnly:E},ee)),w&&Y.jsx(jw,{className:ne.arrowSwitcher,slots:I,slotProps:S,onGoToPrevious:()=>Z(G),isPreviousDisabled:!G,previousLabel:V.openPreviousView,onGoToNext:()=>Z(U),isNextDisabled:!U,nextLabel:V.openNextView,ownerState:te})]}))}));function Mw(e){return It("MuiDigitalClock",e)}"production"!==process.env.NODE_ENV&&(Ow.propTypes={ampm:Ee.bool,ampmInClock:Ee.bool,autoFocus:Ee.bool,classes:Ee.object,className:Ee.string,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disablePast:Ee.bool,focusedView:Ee.oneOf(["hours","minutes","seconds"]),maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onChange:Ee.func,onFocusedViewChange:Ee.func,onViewChange:Ee.func,openTo:Ee.oneOf(["hours","minutes","seconds"]),readOnly:Ee.bool,referenceDate:Ee.any,shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,showViewSwitcher:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours","minutes","seconds"]),views:Ee.arrayOf(Ee.oneOf(["hours","minutes","seconds"]).isRequired)}),St("MuiDigitalClock",["root","list","item"]);const zw=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Dw=go(Xx,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>({overflowY:"auto",width:"100%",scrollBehavior:e.alreadyRendered?"smooth":"auto",maxHeight:232}))),Tw=go(Wf,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Pw=go(Fu,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:yr(e.palette.primary.main,e.palette.action.focusOpacity)}}))),Nw=k.forwardRef((function(e,t){var n,r,o;const i=Cy(),a=k.useRef(null),s=dt(t,a),l=fo({props:e,name:"MuiDigitalClock"}),{ampm:c=i.is12HourCycleInCurrentLocale(),timeStep:u=30,autoFocus:d,components:p,componentsProps:f,slots:m,slotProps:h,value:g,defaultValue:v,referenceDate:A,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:b,minTime:x,disableFuture:w,disablePast:j,minutesStep:C=1,shouldDisableClock:O,shouldDisableTime:M,onChange:z,view:D,openTo:T,onViewChange:P,focusedView:N,onFocusedViewChange:E,className:B,disabled:L,readOnly:I,views:S=["hours"],skipDisabled:W=!1,timezone:H}=l,R=Rt(l,zw),{value:F,handleValueChange:V,timezone:Q}=Ty({name:"DigitalClock",timezone:H,value:g,defaultValue:v,onChange:z,valueManager:yy}),X=Oy(),Z=My(Q),G=k.useMemo((()=>re({},l,{alreadyRendered:!!a.current})),[l]),U=(e=>{const{classes:t}=e;return Et({root:["root"],list:["list"],item:["item"]},Mw,t)})(G),q=null!=(n=null!=(r=null==m?void 0:m.digitalClockItem)?r:null==p?void 0:p.DigitalClockItem)?n:Pw,K=ko({elementType:q,externalSlotProps:null!=(o=null==h?void 0:h.digitalClockItem)?o:null==f?void 0:f.digitalClockItem,ownerState:{},className:U.item}),J=bw({value:F,referenceDate:A,utils:i,props:l,timezone:Q}),_=ut((e=>V(e,"finish"))),{setValueAndGoToNextView:$}=Gb({view:D,views:S,openTo:T,onViewChange:P,onChange:_,focusedView:N,onFocusedViewChange:E}),ee=ut((e=>{$(e,"finish")}));k.useEffect((()=>{if(null===a.current)return;const e=a.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!e)return;const t=e.offsetTop;a.current.scrollTop=t-4}));const te=k.useCallback((e=>{const t=qA(y,i);return!!(x&&t(x,e)||b&&t(e,b)||w&&t(e,Z)||j&&t(Z,e))||!!(i.getMinutes(e)%C!=0||null!=O&&O(i.toJsDate(e).getTime(),"hours")||M&&M(e,"hours"))}),[y,i,x,b,w,Z,j,C,O,M]),ne=k.useMemo((()=>{const e=i.startOfDay(J);return[e,...Array.from({length:Math.ceil(1440/u)-1},((t,n)=>i.addMinutes(e,u*(n+1))))]}),[J,u,i]);return Y.jsx(Dw,re({ref:s,className:$n(U.root,B),ownerState:G},R,{children:Y.jsx(Tw,{autoFocusItem:d||!!N,role:"listbox","aria-label":X.timePickerToolbarTitle,className:U.list,children:ne.map((e=>{if(W&&te(e))return null;const t=i.isEqual(e,F);return Y.jsx(q,re({onClick:()=>!I&&ee(e),selected:t,disabled:L||te(e),disableRipple:I,role:"option","aria-disabled":I,"aria-selected":t},K,{children:i.format(e,c?"fullTime12h":"fullTime24h")}),i.toISO(e))}))})}))}));function Ew(e){return It("MuiMultiSectionDigitalClock",e)}function Bw(e){return It("MuiMultiSectionDigitalClock",e)}"production"!==process.env.NODE_ENV&&(Nw.propTypes={ampm:Ee.bool,autoFocus:Ee.bool,classes:Ee.object,className:Ee.string,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disablePast:Ee.bool,focusedView:Ee.oneOf(["hours"]),maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onChange:Ee.func,onFocusedViewChange:Ee.func,onViewChange:Ee.func,openTo:Ee.oneOf(["hours"]),readOnly:Ee.bool,referenceDate:Ee.any,shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,skipDisabled:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timeStep:Ee.number,timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours"]),views:Ee.arrayOf(Ee.oneOf(["hours"]))}),St("MuiMultiSectionDigitalClock",["root"]),St("MuiMultiSectionDigitalClock",["root","item"]);const kw=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Lw=go(Wf,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({maxHeight:232,width:56,padding:0,overflow:"hidden",scrollBehavior:t.alreadyRendered?"smooth":"auto","&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}}))),Iw=go(Fu,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:8,margin:"2px 4px",width:48,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:yr(e.palette.primary.main,e.palette.action.focusOpacity)}}))),Sw=k.forwardRef((function(e,t){var n;const r=k.useRef(null),o=dt(t,r),i=k.useRef(null),a=fo({props:e,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:s,onChange:l,className:c,disabled:u,readOnly:d,items:p,active:f,slots:m,slotProps:h,skipDisabled:g}=a,v=Rt(a,kw),A=k.useMemo((()=>re({},a,{alreadyRendered:!!r.current})),[a]),y=(e=>{const{classes:t}=e;return Et({root:["root"],item:["item"]},Bw,t)})(A),b=null!=(n=null==m?void 0:m.digitalClockSectionItem)?n:Iw;return k.useEffect((()=>{if(null===r.current)return;const e=r.current.querySelector('[role="option"][aria-selected="true"]');if(!e||i.current===e)return void(i.current!==e&&(i.current=e));i.current=e,f&&s&&e.focus();const t=e.offsetTop;r.current.scrollTop=t-4})),Y.jsx(Lw,re({ref:o,className:$n(y.root,c),ownerState:A,autoFocusItem:s&&f,role:"listbox"},v,{children:p.map((e=>{var t,n;if(g&&null!=(t=e.isDisabled)&&t.call(e,e.value))return null;const r=e.isSelected(e.value);return Y.jsx(b,re({onClick:()=>!d&&l(e.value),selected:r,disabled:u||(null==(n=e.isDisabled)?void 0:n.call(e,e.value)),disableRipple:d,role:"option","aria-disabled":d,"aria-label":e.ariaLabel,"aria-selected":r},null==h?void 0:h.digitalClockSectionItem,{children:e.label}),e.label)}))}))})),Ww=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:i,timeStep:a})=>{const s=t?n.getHours(t):null,l=[],c=e=>null!==s&&(r?12===e?12===s||0===s:s===e||s-12===e:s===e),u=r?11:23;for(let t=0;t<=u;t+=a){let a=n.format(n.setHours(e,t),r?"hours12h":"hours24h");const s=i(parseInt(a,10).toString());a=n.formatNumber(a),l.push({value:t,label:a,isSelected:c,isDisabled:o,ariaLabel:s})}return l},Hw=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:i=!0})=>{const a=t=>null!==e&&(i&&e===t);return[...Array.from({length:Math.ceil(60/n)},((e,i)=>{const s=n*i;return{value:s,label:r(s),isDisabled:t,isSelected:a,ariaLabel:o(s.toString())}}))]},Rw=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],Fw=go(Xx,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`}))),Vw=k.forwardRef((function(e,t){const n=Cy(),r=fo({props:e,name:"MuiMultiSectionDigitalClock"}),{ampm:o=n.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:a,components:s,componentsProps:l,slots:c,slotProps:u,value:d,defaultValue:p,referenceDate:f,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:h,minTime:g,disableFuture:v,disablePast:A,minutesStep:y=1,shouldDisableClock:b,shouldDisableTime:x,onChange:w,view:j,views:C=["hours","minutes"],openTo:O,onViewChange:M,focusedView:z,onFocusedViewChange:D,className:T,disabled:P,readOnly:N,skipDisabled:E=!1,timezone:B}=r,L=Rt(r,Rw),{value:I,handleValueChange:S,timezone:W}=Ty({name:"MultiSectionDigitalClock",timezone:B,value:d,defaultValue:p,onChange:w,valueManager:yy}),H=Oy(),R=My(W),F=k.useMemo((()=>re({hours:1,minutes:5,seconds:5},i)),[i]),V=bw({value:I,referenceDate:f,utils:n,props:r,timezone:W}),Q=ut(((e,t,n)=>S(e,t,n))),X=k.useMemo((()=>o&&C.includes("hours")?C.includes("meridiem")?C:[...C,"meridiem"]:C),[o,C]),{view:Z,setValueAndGoToView:G,focusedView:U}=Gb({view:j,views:X,openTo:O,onViewChange:M,onChange:Q,focusedView:z,onFocusedViewChange:D}),q=ut((e=>{G(e,null,"meridiem")})),{meridiemMode:K,handleMeridiemChange:J}=yb(V,o,q,"finish"),_=k.useCallback(((e,t)=>{const r=qA(m,n),i="hours"===t||"minutes"===t&&X.includes("seconds"),a=({start:e,end:t})=>(!g||!r(g,t))&&((!h||!r(e,h))&&((!v||!r(e,R))&&(!A||!r(R,i?t:e)))),s=(e,r=1)=>{if(e%r!=0)return!1;if(null!=b&&b(e,t))return!1;if(x)switch(t){case"hours":return!x(n.setHours(V,e),"hours");case"minutes":return!x(n.setMinutes(V,e),"minutes");case"seconds":return!x(n.setSeconds(V,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=ZA(e,K,o),r=n.setHours(V,t);return!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case"minutes":{const t=n.setMinutes(V,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,y)}case"seconds":{const t=n.setSeconds(V,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[o,V,m,h,K,g,y,b,x,n,v,A,R,X]),$=ut(((e,t)=>{const n=X.indexOf(e),r=X[n+1];G(t,r,e)})),ee=k.useCallback((e=>{switch(e){case"hours":return{onChange:e=>{const t=ZA(e,K,o);$("hours",n.setHours(V,t))},items:Ww({now:R,value:I,ampm:o,utils:n,isDisabled:e=>P||_(e,"hours"),timeStep:F.hours,resolveAriaLabel:H.hoursClockNumberText})};case"minutes":return{onChange:e=>{$("minutes",n.setMinutes(V,e))},items:Hw({value:n.getMinutes(V),isDisabled:e=>P||_(e,"minutes"),resolveLabel:e=>n.format(n.setMinutes(R,e),"minutes"),timeStep:F.minutes,hasValue:!!I,resolveAriaLabel:H.minutesClockNumberText})};case"seconds":return{onChange:e=>{$("seconds",n.setSeconds(V,e))},items:Hw({value:n.getSeconds(V),isDisabled:e=>P||_(e,"seconds"),resolveLabel:e=>n.format(n.setSeconds(R,e),"seconds"),timeStep:F.seconds,hasValue:!!I,resolveAriaLabel:H.secondsClockNumberText})};case"meridiem":{const e=VA(n,"am"),t=VA(n,"pm");return{onChange:J,items:[{value:"am",label:e,isSelected:()=>!!I&&"am"===K,ariaLabel:e},{value:"pm",label:t,isSelected:()=>!!I&&"pm"===K,ariaLabel:t}]}}default:throw new Error(`Unknown view: ${e} found.`)}}),[R,I,o,n,F.hours,F.minutes,F.seconds,H.hoursClockNumberText,H.minutesClockNumberText,H.secondsClockNumberText,K,$,V,P,_,J]),te=k.useMemo((()=>X.reduce(((e,t)=>re({},e,{[t]:ee(t)})),{})),[X,ee]),ne=r,oe=(e=>{const{classes:t}=e;return Et({root:["root"]},Ew,t)})(ne);return Y.jsx(Fw,re({ref:t,className:$n(oe.root,T),ownerState:ne,role:"group"},L,{children:Object.entries(te).map((([e,t])=>Y.jsx(Sw,{items:t.items,onChange:t.onChange,active:Z===e,autoFocus:null!=a?a:U===e,disabled:P,readOnly:N,slots:null!=c?c:s,slotProps:null!=u?u:l,skipDisabled:E,"aria-label":H.selectViewText(e)},e)))}))}));"production"!==process.env.NODE_ENV&&(Vw.propTypes={ampm:Ee.bool,autoFocus:Ee.bool,classes:Ee.object,className:Ee.string,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disablePast:Ee.bool,focusedView:Ee.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onChange:Ee.func,onFocusedViewChange:Ee.func,onViewChange:Ee.func,openTo:Ee.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:Ee.bool,referenceDate:Ee.any,shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,skipDisabled:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timeSteps:Ee.shape({hours:Ee.number,minutes:Ee.number,seconds:Ee.number}),timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours","meridiem","minutes","seconds"]),views:Ee.arrayOf(Ee.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});const Qw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,ampmInClock:A,components:y,componentsProps:b,slots:x,slotProps:w,readOnly:j,disabled:C,sx:O,autoFocus:M,showViewSwitcher:z,disableIgnoringDatePartForTimeValidation:D,timezone:T})=>Y.jsx(Ow,{view:e,onViewChange:t,focusedView:n&&XA(n)?n:null,onFocusedViewChange:r,views:o.filter(XA),value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,ampmInClock:A,components:y,componentsProps:b,slots:x,slotProps:w,readOnly:j,disabled:C,sx:O,autoFocus:M,showViewSwitcher:z,disableIgnoringDatePartForTimeValidation:D,timezone:T}),Xw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,components:A,componentsProps:y,slots:b,slotProps:x,readOnly:w,disabled:j,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:M,timeSteps:z,skipDisabled:D,timezone:T})=>Y.jsx(Nw,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(XA),value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,components:A,componentsProps:y,slots:b,slotProps:x,readOnly:w,disabled:j,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:M,timeStep:null==z?void 0:z.minutes,skipDisabled:D,timezone:T}),Yw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,components:A,componentsProps:y,slots:b,slotProps:x,readOnly:w,disabled:j,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:M,timeSteps:z,skipDisabled:D,timezone:T})=>Y.jsx(Vw,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(XA),value:i,defaultValue:a,onChange:s,className:l,classes:c,disableFuture:u,disablePast:d,minTime:p,maxTime:f,shouldDisableTime:m,shouldDisableClock:h,minutesStep:g,ampm:v,components:A,componentsProps:y,slots:b,slotProps:x,readOnly:w,disabled:j,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:M,timeSteps:z,skipDisabled:D,timezone:T}),Zw=k.forwardRef((function(e,t){var n,r,o,i,a,s,l;const c=Oy(),u=Cy(),d=Pb(e,"MuiDesktopTimePicker"),p=null!=(n=d.thresholdToRenderTimeInASingleColumn)?n:24,f=re({hours:1,minutes:5,seconds:5},d.timeSteps),m=1440/(f.hours*f.minutes)<=p,h=m?Xw:Yw,g=re({hours:h,minutes:h,seconds:h,meridiem:h},d.viewRenderers),v=null==(r=d.ampmInClock)||r,A=m?[]:["accept"],y=(null==(o=g.hours)?void 0:o.name)===Yw.name,b=d.ampm&&y?[...d.views,"meridiem"]:d.views,x=re({},d,{ampmInClock:v,timeSteps:f,viewRenderers:g,format:KA(u,d),views:m?["hours"]:b,slots:re({field:qy,openPickerIcon:Bb},d.slots),slotProps:re({},d.slotProps,{field:e=>{var n;return re({},No(null==(n=d.slotProps)?void 0:n.field,e),Qy(d),{ref:t})},toolbar:re({hidden:!0,ampmInClock:v},null==(i=d.slotProps)?void 0:i.toolbar),actionBar:re({actions:A},null==(a=d.slotProps)?void 0:a.actionBar)})}),{renderPicker:w}=(e=>{var t,n,r,o,i;let{props:a,getOpenDialogAriaText:s}=e,l=Rt(e,Bx);const{slots:c,slotProps:u,className:d,sx:p,format:f,formatDensity:m,timezone:h,label:g,inputRef:v,readOnly:A,disabled:y,autoFocus:b,localeText:x}=a,w=Cy(),j=k.useRef(null),C=k.useRef(null),O=st(),M=null!=(t=null==u||null==(n=u.toolbar)?void 0:n.hidden)&&t,{open:z,actions:D,hasUIView:T,layoutProps:P,renderCurrentView:N,shouldRestoreFocus:E,fieldProps:B}=_b(re({},l,{props:a,inputRef:j,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=null!=(r=c.inputAdornment)?r:Rb,I=Rt(ko({elementType:L,externalSlotProps:null==u?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:a}),kx),S=null!=(o=c.openPickerButton)?o:Zc,W=Rt(ko({elementType:S,externalSlotProps:null==u?void 0:u.openPickerButton,additionalProps:{disabled:y||A,onClick:D.onOpen,"aria-label":s(B.value,w),edge:I.position},ownerState:a}),Lx),H=c.openPickerIcon,R=c.field,F=ko({elementType:R,externalSlotProps:null==u?void 0:u.field,additionalProps:re({},B,M&&{id:O},{readOnly:A,disabled:y,className:d,sx:p,format:f,formatDensity:m,timezone:h,label:g,autoFocus:b&&!a.open,focused:!!z||void 0}),ownerState:a});T&&(F.InputProps=re({},F.InputProps,{ref:C,[`${I.position}Adornment`]:Y.jsx(L,re({},I,{children:Y.jsx(S,re({},W,{children:Y.jsx(H,re({},null==u?void 0:u.openPickerIcon))}))}))}));const V=re({textField:c.textField},F.slots),Q=null!=(i=c.layout)?i:Ex,X=dt(j,F.inputRef,v);let Z=O;M&&(Z=g?`${O}-label`:void 0);const G=re({},u,{toolbar:re({},null==u?void 0:u.toolbar,{titleId:O}),popper:re({"aria-labelledby":Z},null==u?void 0:u.popper)});return{renderPicker:()=>Y.jsxs(SA,{localeText:x,children:[Y.jsx(R,re({},F,{slots:V,slotProps:G,inputRef:X})),Y.jsx(Xb,re({role:"dialog",placement:"bottom-start",anchorEl:C.current},D,{open:z,slots:c,slotProps:G,shouldRestoreFocus:E,children:Y.jsx(Q,re({},P,null==G?void 0:G.layout,{slots:c,slotProps:G,children:N()}))}))]})}})({props:x,valueManager:yy,valueType:"time",getOpenDialogAriaText:null!=(s=null==(l=x.localeText)?void 0:l.openTimePickerDialogue)?s:c.openTimePickerDialogue,validator:Wy});return w()}));function Gw(e){return It("MuiDialogContent",e)}Zw.propTypes={ampm:Ee.bool,ampmInClock:Ee.bool,autoFocus:Ee.bool,className:Ee.string,closeOnSelect:Ee.bool,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disableOpenPicker:Ee.bool,disablePast:Ee.bool,format:Ee.string,formatDensity:Ee.oneOf(["dense","spacious"]),inputRef:Ee.oneOfType([Ee.func,Ee.shape({current:Ee.object})]),label:Ee.node,localeText:Ee.object,maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onAccept:Ee.func,onChange:Ee.func,onClose:Ee.func,onError:Ee.func,onOpen:Ee.func,onSelectedSectionsChange:Ee.func,onViewChange:Ee.func,open:Ee.bool,openTo:Ee.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Ee.oneOf(["landscape","portrait"]),readOnly:Ee.bool,selectedSections:Ee.oneOfType([Ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ee.number,Ee.shape({endIndex:Ee.number.isRequired,startIndex:Ee.number.isRequired})]),shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,skipDisabled:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),thresholdToRenderTimeInASingleColumn:Ee.number,timeSteps:Ee.shape({hours:Ee.number,minutes:Ee.number,seconds:Ee.number}),timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Ee.shape({hours:Ee.func,meridiem:Ee.func,minutes:Ee.func,seconds:Ee.func}),views:Ee.arrayOf(Ee.oneOf(["hours","minutes","seconds"]).isRequired)},St("MuiDialogContent",["root","dividers"]);var Uw=St("MuiDialogTitle",["root"]);const qw=["className","dividers"],Kw=go("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>re({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Uw.root} + &`]:{paddingTop:0}}))),Jw=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=n,i=Rt(n,qw),a=re({},n,{dividers:o}),s=(e=>{const{classes:t,dividers:n}=e;return Et({root:["root",n&&"dividers"]},Gw,t)})(a);return Y.jsx(Kw,re({className:$n(s.root,r),ownerState:a,ref:t},i))}));"production"!==process.env.NODE_ENV&&(Jw.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,dividers:Ee.bool,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var _w=Jw;function $w(e){return It("MuiDialog",e)}var ej=St("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const tj=k.createContext({});"production"!==process.env.NODE_ENV&&(tj.displayName="DialogContext");var nj=tj;const rj=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],oj=go(Oi,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ij=go(Pi,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),aj=go("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ke(n.scroll)}`]]}})((({ownerState:e})=>re({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),sj=go(Ki,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ke(n.scroll)}`],t[`paperWidth${Ke(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>re({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ej.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ej.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ej.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),lj=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiDialog"}),r=po(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,BackdropComponent:s,BackdropProps:l,children:c,className:u,disableEscapeKeyDown:d=!1,fullScreen:p=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:h,onClose:g,open:v,PaperComponent:A=Ki,PaperProps:y={},scroll:b="paper",TransitionComponent:x=bi,transitionDuration:w=o,TransitionProps:j}=n,C=Rt(n,rj),O=re({},n,{disableEscapeKeyDown:d,fullScreen:p,fullWidth:f,maxWidth:m,scroll:b}),M=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e;return Et({root:["root"],container:["container",`scroll${Ke(n)}`],paper:["paper",`paperScroll${Ke(n)}`,`paperWidth${Ke(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]},$w,t)})(O),z=k.useRef(),D=st(a),T=k.useMemo((()=>({titleId:D})),[D]);return Y.jsx(ij,re({className:$n(M.root,u),closeAfterTransition:!0,components:{Backdrop:oj},componentsProps:{backdrop:re({transitionDuration:w,as:s},l)},disableEscapeKeyDown:d,onClose:g,open:v,ref:t,onClick:e=>{z.current&&(z.current=null,h&&h(e),g&&g(e,"backdropClick"))},ownerState:O},C,{children:Y.jsx(x,re({appear:!0,in:v,timeout:w,role:"presentation"},j,{children:Y.jsx(aj,{className:$n(M.container),onMouseDown:e=>{z.current=e.target===e.currentTarget},ownerState:O,children:Y.jsx(sj,re({as:A,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":D},y,{className:$n(M.paper,y.className),ownerState:O,children:Y.jsx(nj.Provider,{value:T,children:c})}))})}))}))}));"production"!==process.env.NODE_ENV&&(lj.propTypes={"aria-describedby":Ee.string,"aria-labelledby":Ee.string,BackdropComponent:Ee.elementType,BackdropProps:Ee.object,children:Ee.node,classes:Ee.object,className:Ee.string,disableEscapeKeyDown:Ee.bool,fullScreen:Ee.bool,fullWidth:Ee.bool,maxWidth:Ee.oneOfType([Ee.oneOf(["xs","sm","md","lg","xl",!1]),Ee.string]),onBackdropClick:Ee.func,onClose:Ee.func,open:Ee.bool.isRequired,PaperComponent:Ee.elementType,PaperProps:Ee.object,scroll:Ee.oneOf(["body","paper"]),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),TransitionComponent:Ee.elementType,transitionDuration:Ee.oneOfType([Ee.number,Ee.shape({appear:Ee.number,enter:Ee.number,exit:Ee.number})]),TransitionProps:Ee.object});var cj=lj;const uj=go(cj)({[`& .${ej.container}`]:{outline:0},[`& .${ej.paper}`]:{outline:0,minWidth:320}}),dj=go(_w)({"&:first-of-type":{padding:0}});function pj(e){var t,n;const{children:r,onDismiss:o,open:i,slots:a,slotProps:s}=e,l=null!=(t=null==a?void 0:a.dialog)?t:uj,c=null!=(n=null==a?void 0:a.mobileTransition)?n:bi;return Y.jsx(l,re({open:i,onClose:o},null==s?void 0:s.dialog,{TransitionComponent:c,TransitionProps:null==s?void 0:s.mobileTransition,PaperComponent:null==a?void 0:a.mobilePaper,PaperProps:null==s?void 0:s.mobilePaper,children:Y.jsx(dj,{children:r})}))}const fj=["props","getOpenDialogAriaText"],mj=k.forwardRef((function(e,t){var n,r,o,i;const a=Oy(),s=Cy(),l=Pb(e,"MuiMobileTimePicker"),c=re({hours:Qw,minutes:Qw,seconds:Qw},l.viewRenderers),u=null!=(n=l.ampmInClock)&&n,d=re({},l,{ampmInClock:u,viewRenderers:c,format:KA(s,l),slots:re({field:qy},l.slots),slotProps:re({},l.slotProps,{field:e=>{var n;return re({},No(null==(n=l.slotProps)?void 0:n.field,e),Qy(l),{ref:t})},toolbar:re({hidden:!1,ampmInClock:u},null==(r=l.slotProps)?void 0:r.toolbar)})}),{renderPicker:p}=(e=>{var t,n,r;let{props:o,getOpenDialogAriaText:i}=e,a=Rt(e,fj);const{slots:s,slotProps:l,className:c,sx:u,format:d,formatDensity:p,timezone:f,label:m,inputRef:h,readOnly:g,disabled:v,localeText:A}=o,y=Cy(),b=k.useRef(null),x=st(),w=null!=(t=null==l||null==(n=l.toolbar)?void 0:n.hidden)&&t,{open:j,actions:C,layoutProps:O,renderCurrentView:M,fieldProps:z}=_b(re({},a,{props:o,inputRef:b,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),D=s.field,T=ko({elementType:D,externalSlotProps:null==l?void 0:l.field,additionalProps:re({},z,w&&{id:x},!(v||g)&&{onClick:C.onOpen,onKeyDown:(P=C.onOpen,e=>{"Enter"!==e.key&&" "!==e.key||(P(e),e.preventDefault(),e.stopPropagation()),N&&N(e)})},{readOnly:null==g||g,disabled:v,className:c,sx:u,format:d,formatDensity:p,timezone:f,label:m}),ownerState:o});var P,N;T.inputProps=re({},T.inputProps,{"aria-label":i(z.value,y)});const E=re({textField:s.textField},T.slots),B=null!=(r=s.layout)?r:Ex,L=dt(b,T.inputRef,h);let I=x;w&&(I=m?`${x}-label`:void 0);const S=re({},l,{toolbar:re({},null==l?void 0:l.toolbar,{titleId:x}),mobilePaper:re({"aria-labelledby":I},null==l?void 0:l.mobilePaper)});return{renderPicker:()=>Y.jsxs(SA,{localeText:A,children:[Y.jsx(D,re({},T,{slots:E,slotProps:S,inputRef:L})),Y.jsx(pj,re({},C,{open:j,slots:s,slotProps:S,children:Y.jsx(B,re({},O,null==S?void 0:S.layout,{slots:s,slotProps:S,children:M()}))}))]})}})({props:d,valueManager:yy,valueType:"time",getOpenDialogAriaText:null!=(o=null==(i=d.localeText)?void 0:i.openTimePickerDialogue)?o:a.openTimePickerDialogue,validator:Wy});return p()}));mj.propTypes={ampm:Ee.bool,ampmInClock:Ee.bool,autoFocus:Ee.bool,className:Ee.string,closeOnSelect:Ee.bool,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disableOpenPicker:Ee.bool,disablePast:Ee.bool,format:Ee.string,formatDensity:Ee.oneOf(["dense","spacious"]),inputRef:Ee.oneOfType([Ee.func,Ee.shape({current:Ee.object})]),label:Ee.node,localeText:Ee.object,maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onAccept:Ee.func,onChange:Ee.func,onClose:Ee.func,onError:Ee.func,onOpen:Ee.func,onSelectedSectionsChange:Ee.func,onViewChange:Ee.func,open:Ee.bool,openTo:Ee.oneOf(["hours","minutes","seconds"]),orientation:Ee.oneOf(["landscape","portrait"]),readOnly:Ee.bool,selectedSections:Ee.oneOfType([Ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ee.number,Ee.shape({endIndex:Ee.number.isRequired,startIndex:Ee.number.isRequired})]),shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours","minutes","seconds"]),viewRenderers:Ee.shape({hours:Ee.func,minutes:Ee.func,seconds:Ee.func}),views:Ee.arrayOf(Ee.oneOf(["hours","minutes","seconds"]).isRequired)};const hj=["desktopModeMediaQuery"],gj=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:r=Ly}=n,o=Rt(n,hj);return Ya(r,{defaultMatches:!0})?Y.jsx(Zw,re({ref:t},o)):Y.jsx(mj,re({ref:t},o))}));function vj(t){var n=this,r=t.label,o=t.size,i=t.fieldName,a=t.fullWidth,s=t.setValue,l=t.getValues,c=k.useState(null),u=c[0],d=c[1];return e.useEffect((function(){U(n,void 0,void 0,(function(){return q(this,(function(e){return l(i)&&d(gA.convertToOriginal(l(i))),[2]}))}))}),[i]),Y.jsx(SA,{dateAdapter:kA,children:Y.jsx(gj,{label:r,value:u,onChange:function(e){if(e){var t=gA.stringifyTime(e);s(i,t||""),d(e)}},slots:{textField:function(e){return Y.jsx(Rm,Z({},e,{size:o,name:i,fullWidth:a||!0}))}}})})}function Aj(e){var t=e.name,r=e.disabled,o=e.label,i=e.size,a=e.showPassword,s=e.setShowPassword;return Y.jsx(dp,{size:i,disabled:r,name:t,type:a?"text":"password",InputProps:{endAdornment:Y.jsx(n.InputAdornment,{position:"end",children:Y.jsx(n.IconButton,{onClick:function(){return s(!a)},edge:"end",children:Y.jsx(jo,{icon:a?"eva:eye-fill":"eva:eye-off-fill"})})})},label:o})}function yj(e){var t=e.handleDrop,r=e.list,o=e.itemComponent;return Y.jsx(O.DragDropContext,{onDragEnd:function(e,n){return t(e)},children:Y.jsx(O.Droppable,{droppableId:"list-container",children:function(e){return Y.jsx("div",Z({className:"list-container"},e.droppableProps,{ref:e.innerRef,children:Y.jsxs(n.Stack,{spacing:3,children:[r.map((function(e,t){return Y.jsx(O.Draggable,{draggableId:e.id,index:t,children:function(n){return Y.jsx("div",Z({className:"item-container",ref:n.innerRef},n.dragHandleProps,n.draggableProps,{children:o(e,t)}))}},e.id)})),e.placeholder]})}))}})})}function bj(e){var t=e.index,r=e.draggable,o=e.item,i=e.itemComponent,a=e.handleRemove;return Y.jsx(n.Card,{sx:{paddingTop:1,paddingBottom:3,paddingX:r?1:3,cursor:"auto"},children:Y.jsxs(n.Stack,{direction:"row",spacing:2,children:[r&&Y.jsx(n.IconButton,{color:"error",size:"small",sx:{alignSelf:"center",cursor:"move"},children:Y.jsx(jo,{icon:"icon-park:drag"})}),Y.jsxs(n.Stack,{spacing:1.5,width:"100%",children:[Y.jsxs(n.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[Y.jsx(n.Typography,{color:"grey",fontSize:10,variant:"overline",sx:{color:"text.disabled"},children:"["+(t+1)+"]"}),Y.jsx(n.IconButton,{onClick:function(){return a(t)},color:"error",size:"medium",children:Y.jsx(jo,{icon:"eva:trash-2-outline"})})]}),i(t,o)]})]})})}var xj;function wj(e){var t=e.draggable,r=e.handleDrop,o=e.itemComponent,i=e.list,a=e.handleRemove,s=e.direction,l=e.numberOfColumns,c=(null!=s?s:xj.VERTICAL)===xj.VERTICAL,u=c?12:12/(null!=l?l:3);return Y.jsx(Y.Fragment,{children:t?Y.jsx(yj,{handleDrop:r,list:i,itemComponent:function(e,n){return Y.jsx(bj,{item:e,draggable:t,index:n,itemComponent:o,handleRemove:a})}}):c?Y.jsx(n.Stack,{spacing:3,children:i.map((function(e,n){return Y.jsx(bj,{draggable:t,item:e,index:n,itemComponent:o,handleRemove:a},e.id)}))}):Y.jsx(n.Grid,{container:!0,spacing:3,children:i.map((function(e,r){return Y.jsx(n.Grid,{item:!0,xs:12,md:u,children:Y.jsx(bj,{draggable:t,item:e,index:r,itemComponent:o,handleRemove:a},e.id)},e.id)}))})})}function jj(e){var t=e.draggable,r=e.addButtonText,o=e.handleRemove,i=e.itemComponent,a=e.handleDrop,s=e.handleAdd,l=e.list,c=e.direction,u=e.numberOfColumns;return Y.jsxs(n.Stack,{spacing:3,children:[Y.jsx(wj,{handleRemove:o,draggable:t,handleDrop:a,list:l,itemComponent:i,direction:c,numberOfColumns:u}),Y.jsx(n.Button,{size:"small",startIcon:Y.jsx(jo,{icon:"eva:plus-fill"}),onClick:s,sx:{flexShrink:0,alignSelf:"start",padding:1,margin:0},style:{margin:0},children:null!=r?r:"Add"})]})}function Cj(e){var t=e.name,r=e.disabled,o=e.label,i=e.getValues,a=e.handleChange;return Y.jsx(n.FormControlLabel,{control:Y.jsx(n.Checkbox,{checked:i(t),onChange:a,name:t,disabled:r}),label:o})}function Oj(e){var t=e.title,r=e.children,o=e.type,i=o===Uh.NESTEDSCHEMA||o===Uh.ARRAY||o===Uh.RICH_TEXT_I||o===Uh.RICH_TEXT_II;return Y.jsxs(n.Grid,{item:!0,xs:12,md:i?12:6,sx:{mb:3.5},children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:t}),r]})}function Mj(e){var t=e.fieldschema;return Y.jsx(Oj,Z({},e,{type:Uh.ARRAY,children:Y.jsx(TC,Z({},e,{type:Uh.ARRAY,children:function(n,r){return Y.jsx(TC,Z({},e,{type:t.arrayType,value:n}))}}))}))}function zj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.BOOLEAN},e))}))}function Dj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.COLOR},e))}))}function Tj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.DATE},e))}))}function Pj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.ENUM},e))}))}function Nj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.IMAGE},e))}))}function Ej(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.LOCALIZEDString},e))}))}function Bj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.LOCATION},e))}))}function kj(e){return Y.jsx(Oj,Z({},e,{type:Uh.NESTEDSCHEMA,children:Y.jsx(TC,Z({type:Uh.NESTEDSCHEMA},e))}))}function Lj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.REFERENCE},e))}))}function Ij(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.STRING},e))}))}function Sj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.RICH_TEXT_I},e))}))}function Wj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.RICH_TEXT_II},e))}))}function Hj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.EXTERNAL_LINK},e))}))}function Rj(e){return Y.jsx(Oj,Z({},e,{children:Y.jsx(TC,Z({type:Uh.MULTIPLE_TEXT},e))}))}function Fj(e){var t,n=e.property,r=e.schema,o=e.record,i=e.userpath,a=e.resources,s=n.key,l=n.path,c=r[s],u=null==n?void 0:n.value,d=o[s],p={fieldkey:s,key:s,title:u,value:d,resources:a,userpath:i,path:l,fieldschema:c,color:"black",type:c.type};switch(c.type){case Uh.STRING:return/^#[0-9A-F]{6}$/i.test(d)?Y.jsx(Dj,Z({},p)):"object"==typeof d?Y.jsx(Ij,Z({},p,{title:u||DC,value:d&&d[0]&&null!==(t=Hg.getLocalizedString(d))&&void 0!==t?t:DC})):Y.jsx(Ij,Z({},p));case Uh.NUMBER:case Uh.OBJECTID:case Uh.PHONENUMBER:case Uh.TIMEPICKER:return Y.jsx(Ij,Z({},p));case Uh.DATE:return Y.jsx(Tj,Z({},p));case Uh.LOCATION:return Y.jsx(Bj,Z({},p,{value:{address:d.address,longitude:d.longitude,latitude:d.latitude}}));case Uh.ENUM:return Y.jsx(Pj,Z({},p,{enumvalues:c.enumValues}));case Uh.IMAGE:return Y.jsx(Nj,Z({},p));case Uh.BOOLEAN:return Y.jsx(zj,Z({},p));case Uh.NESTEDSCHEMA:return Y.jsx(kj,Z({},p,{fieldschema:r[s]}));case Uh.LOCALIZEDString:return Y.jsx(Ej,Z({},p));case Uh.RICH_TEXT_I:return Y.jsx(Sj,Z({},p));case Uh.RICH_TEXT_II:return Y.jsx(Wj,Z({},p));case Uh.ARRAY:return Y.jsx(Mj,Z({},p,{fieldschema:c,enumvalues:c.enumValues}));case Uh.REFERENCE:return Y.jsx(Lj,Z({},p));case Uh.MULTIPLE_TEXT:return Y.jsx(Rj,Z({},p));case Uh.EXTERNAL_LINK:return Y.jsx(Hj,Z({},p))}return Y.jsx(Y.Fragment,{})}function Vj(e){var t,r=e.fieldschema,o=e.value;return Y.jsx(n.Card,{sx:{py:3,px:3},children:Y.jsx(n.Grid,{container:!0,children:null===(t=null==r?void 0:r.keys)||void 0===t?void 0:t.map((function(t){var n;return(n=JSON.parse(JSON.stringify(null==r?void 0:r.schema[t]))).key=t,o&&Y.jsx(Fj,Z({},e,{property:n,schema:r.schema,record:o}),n.key)}))})})}function Qj(e){var t=e.value;return Y.jsx(n.Card,{sx:{py:3,px:3},children:Y.jsx(n.Stack,{direction:"column",spacing:2,children:t.map((function(e,t){return Y.jsxs(n.Stack,{direction:"row",spacing:1,children:[Y.jsx(La,{disabledEffect:!0,visibleByDefault:!0,alt:"empty content",src:Xj(e.key),sx:{width:30,height:20}}),Y.jsx(n.Typography,{fontWeight:600,fontSize:14,children:e.value})]},t+e.key)}))})})}function Xj(e){switch(e){case Tg.ARABIC:return mA.ARABIC_FLAG;case Tg.ENGLISH:return mA.ENGLISH_FLAG;case Tg.FRENCH:return mA.FRENCH_FLAG;case Tg.GERMAN:return mA.GERMAN_FLAG;default:return mA.ENGLISH_FLAG}}"production"!==process.env.NODE_ENV&&(gj.propTypes={ampm:Ee.bool,ampmInClock:Ee.bool,autoFocus:Ee.bool,className:Ee.string,closeOnSelect:Ee.bool,components:Ee.object,componentsProps:Ee.object,defaultValue:Ee.any,desktopModeMediaQuery:Ee.string,disabled:Ee.bool,disableFuture:Ee.bool,disableIgnoringDatePartForTimeValidation:Ee.bool,disableOpenPicker:Ee.bool,disablePast:Ee.bool,format:Ee.string,formatDensity:Ee.oneOf(["dense","spacious"]),inputRef:Ee.oneOfType([Ee.func,Ee.shape({current:Ee.object})]),label:Ee.node,localeText:Ee.object,maxTime:Ee.any,minTime:Ee.any,minutesStep:Ee.number,onAccept:Ee.func,onChange:Ee.func,onClose:Ee.func,onError:Ee.func,onOpen:Ee.func,onSelectedSectionsChange:Ee.func,onViewChange:Ee.func,open:Ee.bool,openTo:Ee.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Ee.oneOf(["landscape","portrait"]),readOnly:Ee.bool,selectedSections:Ee.oneOfType([Ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ee.number,Ee.shape({endIndex:Ee.number.isRequired,startIndex:Ee.number.isRequired})]),shouldDisableClock:Ee.func,shouldDisableTime:Ee.func,skipDisabled:Ee.bool,slotProps:Ee.object,slots:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),thresholdToRenderTimeInASingleColumn:Ee.number,timeSteps:Ee.shape({hours:Ee.number,minutes:Ee.number,seconds:Ee.number}),timezone:Ee.string,value:Ee.any,view:Ee.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Ee.shape({hours:Ee.func,meridiem:Ee.func,minutes:Ee.func,seconds:Ee.func}),views:Ee.arrayOf(Ee.oneOf(["hours","minutes","seconds"]).isRequired)}),function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"}(xj||(xj={}));var Yj={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},Zj=function(e,t,n){var r,o=Yj[e];return r="string"==typeof o?o:1===t?o.one:2===t?o.two:t<=10?o.threeToTen.replace("{{count}}",String(t)):o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"في خلال "+r:"منذ "+r:r};function Gj(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Uj={date:Gj({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Gj({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Gj({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qj={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"};function Kj(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function Jj(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var _j,$j={code:"ar-SA",formatDistance:Zj,formatLong:Uj,formatRelative:function(e,t,n,r){return qj[e]},localize:{ordinalNumber:function(e){return String(e)},era:Kj({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:Kj({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Kj({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:Kj({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:Kj({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(_j={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(_j.matchPattern);if(!n)return null;var r=n[0],o=e.match(_j.parsePattern);if(!o)return null;var i=_j.valueCallback?_j.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:Jj({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:Jj({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Jj({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:Jj({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:Jj({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function eC(e,t,n){var r=t||"dd MMM yyyy";return e?z.format(new Date(e),r,{locale:n?$j:void 0}):""}function tC(e,t){var n=e.getHours(),r=e.getMinutes(),o=n>=12?"pm":"am";return t===Tg.ARABIC&&(o=function(e){switch(e){case"am":default:return"صباحاً";case"pm":return"مساءاً"}}(o)),(n=(n%=12)||12)+":"+(r=r<10?"0"+r:r)+" "+o}function nC(e){return e%10===e?"0".concat(e.toString()):e.toString()}function rC(e){var t=e.value,r=e.fieldschema;e.fieldkey;var o=new Date(t),i=Hg.isEnglish(),a=eC(o,void 0,!i);return Y.jsxs(n.Stack,{alignItems:"start",direction:"row",spacing:1,children:[Y.jsx(n.Typography,{children:a}),r&&r.withTime&&Y.jsx(n.Typography,{color:"rgb(99, 115, 129)",children:"".concat(tC(o,i?Tg.ENGLISH:Tg.ARABIC))})]})}function oC(e){var t,r,o,i,a=e.value,s=e.enumvalues,l=s&&!Object.keys(s).find((function(e){return e===a||s[e]===a})),c=null!==(r=null===(t=s[a])||void 0===t?void 0:t.label)&&void 0!==r?r:a,u=l?"error":void 0,d=PC.enhance(c),p=null===(o=s[a])||void 0===o?void 0:o.color,f=null===(i=s[a])||void 0===i?void 0:i.labelColor;return Y.jsx(n.Chip,{label:d,color:u,size:"small",sx:{background:p,color:f}})}function iC(e){var t=e.value;return Y.jsx(n.Typography,Z({},e,{noWrap:!0,children:t.longitude&&t.latitude?Y.jsx(n.Link,{align:"justify",style:{cursor:"pointer"},onClick:function(){return e=t.latitude,n=t.longitude,void window.open("https://maps.google.com?q="+e+","+n);var e,n},children:t.address}):Y.jsx(n.Typography,Z({style:{fontWeight:50}},e,{noWrap:!0,children:t.address}))}))}function aC(e){var t=e.value,r=e.children;return G(e,["value","children"]),Y.jsx(n.Card,{sx:{py:3,px:3},children:Y.jsx(n.Grid,{children:t.map((function(e,t){return Y.jsxs(n.Grid,{item:!0,xs:12,sx:{mb:5},children:[Y.jsx(n.Typography,{color:"grey",fontSize:10,paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:"["+(t+1)+"]"}),r&&r(e,t)]},t)}))})})}function sC(e){var t=e.navigateTo,o=e.value,i=r.useNavigate();return Y.jsx(n.Link,{align:"justify",style:{cursor:"pointer"},onClick:function(){return i(t)},children:o})}var lC,cC=function(){function e(){}return e.convertCamelCaseToWord=function(e){if("_id"===e)return"Id";var t=e.replace(/([A-Z])/g," $1"),n=t.charAt(0).toUpperCase()+t.slice(1);return" "===n.charAt(0)&&(n=n.substring(1)),n},e.lowerCaseFirstLetter=function(e){return e.charAt(0).toLocaleLowerCase()+e.slice(1)},e.upperCaseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.checkRefId=function(e){return"Id"===e.slice(-2)},e}();function uC(e,t){var n=e.properties,r=e.permissions,o=n.modelName,i=cC.lowerCaseFirstLetter(o),a="".concat(i,"_").concat(t);return!r||r[a]}function dC(e){var t=e.value,n="string"==typeof t?t:t.url?t.url:"",r="image"===cs(n)?n:us(cs(n));return Y.jsx("img",{src:r,alt:r,height:130,style:{borderRadius:"5px",objectFit:"contain",cursor:"pointer"},onClick:function(){return window.open(n,"_blank")}})}!function(e){e.VIEW="view",e.CREATE="create",e.EDIT="edit",e.DELETE="delete"}(lC||(lC={}));var pC=require("pluralize");function fC(e){var t,r=e.value,o=e.fieldkey,i=e.userpath,a=e.fieldschema,s=e.resources,l=e.path,c=null!=l?l:null==a?void 0:a.path,u=s[null!=c?c:""],d=u.properties,p=d.title,f=(null===(t=d.actions.show)||void 0===t?void 0:t.isAccessible)&&uC(u,lC.VIEW),m=hA.getReferenceImage(u,r);function h(){return gA.checkLocalizedString(s,null!=c?c:"",p)?Hg.getLocalizedString(r[p]):r[p]?r[p]:r._id?r._id:DC}return Y.jsxs(n.Stack,{direction:"row",spacing:1,alignItems:"center",children:[m&&Y.jsx(n.Avatar,{alt:"-",src:m}),Y.jsxs(n.Stack,{spacing:1,alignItems:"start",children:[a&&a.mediaUploader&&r&&r.url&&Y.jsx(dC,Z({},e,{value:r.url,type:Uh.IMAGE})),Y.jsx(n.Typography,Z({},e.props,{children:f?Y.jsx(sC,{value:h(),navigateTo:i[c||pC.singular(o)].show(r._id)}):Y.jsx(TC,Z({},e,{type:Uh.STRING,value:h()}))}))]})]})}function mC(e){var t,r,o,i=e.value,a=e.userpath,s=e.resources,l=e.path,c=e.fieldschema,u=s[null!==(t=null==c?void 0:c.path)&&void 0!==t?t:""],d=u.properties,p=null==d?void 0:d.title,f=(null===(o=null===(r=null==d?void 0:d.actions)||void 0===r?void 0:r.show)||void 0===o?void 0:o.isAccessible)&&uC(u,lC.VIEW),m=hA.getReferenceImage(u,i);function h(){var e;return gA.checkLocalizedString(s,null!==(e=null==c?void 0:c.path)&&void 0!==e?e:"",p)?Hg.getLocalizedString(i[p]):i[p]}if(i)return i.map((function(t){return Y.jsxs(n.Stack,{direction:"row",spacing:1,alignItems:"center",children:[m&&Y.jsx(n.Avatar,{alt:"-",src:m}),Y.jsx(n.Typography,Z({},e.props,{children:f?Y.jsx(sC,{value:h(),navigateTo:a[null!=l?l:""].show(t._id)}):Y.jsx(TC,Z({},e,{type:Uh.STRING,value:h()}))}))]},t._id)}))}function hC(e){var t=e.value,r=e.props;return null===t?Y.jsx(n.Typography,Z({},r,{children:DC})):"[object Array]"!==Object.prototype.toString.call(t)?Y.jsx(fC,Z({},e)):t?Y.jsx(mC,Z({},e)):Y.jsx(Y.Fragment,{})}function gC(e){var t=e.htmlString;return Y.jsx("div",{children:Y.jsx(g,{value:t,readOnly:!0,theme:"bubble"})})}var vC,AC={exports:{}},yC={exports:{}};function bC(){return vC||(vC=1,yC.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:G(e)}function r(e){return s(e)?e:U(e)}function o(e){return l(e)?e:q(e)}function i(e){return a(e)&&!c(e)?e:K(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[p])}function l(e){return!(!e||!e[f])}function c(e){return s(e)||l(e)}function u(e){return!(!e||!e[m])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=l,n.isAssociative=c,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",m="@@__IMMUTABLE_ORDERED__@@",h="delete",g=5,v=1<<g,A=v-1,y={},b={value:!1},x={value:!1};function w(e){return e.value=!1,e}function j(e){e&&(e.value=!0)}function C(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function M(e){return void 0===e.size&&(e.size=e.__iterate(D)),e.size}function z(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?M(e)+t:t}function D(){return!0}function T(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function P(e,t){return E(e,t,0)}function N(e,t){return E(e,t,t)}function E(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var B=0,k=1,L=2,I="function"==typeof Symbol&&Symbol.iterator,S="@@iterator",W=I||S;function H(e){this.next=e}function R(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function F(){return{value:void 0,done:!0}}function V(e){return!!Y(e)}function Q(e){return e&&"function"==typeof e.next}function X(e){var t=Y(e);return t&&t.call(e)}function Y(e){var t=e&&(I&&e[I]||e[S]);if("function"==typeof t)return t}function Z(e){return e&&"number"==typeof e.length}function G(e){return null==e?ae():a(e)?e.toSeq():ce(e)}function U(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function q(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function K(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}H.prototype.toString=function(){return"[Iterator]"},H.KEYS=B,H.VALUES=k,H.ENTRIES=L,H.prototype.inspect=H.prototype.toSource=function(){return this.toString()},H.prototype[W]=function(){return this},t(G,n),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(e,t){return de(this,e,t,!0)},G.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(U,G),U.prototype.toKeyedSeq=function(){return this},t(q,G),q.of=function(){return q(arguments)},q.prototype.toIndexedSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq [","]")},q.prototype.__iterate=function(e,t){return de(this,e,t,!1)},q.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(K,G),K.of=function(){return K(arguments)},K.prototype.toSetSeq=function(){return this},G.isSeq=ie,G.Keyed=U,G.Set=K,G.Indexed=q;var J,_,$,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return J||(J=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():Q(e)?new oe(e).fromEntrySeq():V(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return Z(e)?new te(e):Q(e)?new oe(e):V(e)?new re(e):void 0}function de(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new H((function(){var e=o[n?i-a:a];return a++>i?F():R(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function fe(e,t){return t?me(t,e,"",{"":e}):he(e)}function me(e,t,n,r){return Array.isArray(t)?e.call(r,n,q(t).map((function(n,r){return me(e,n,r,t)}))):ge(t)?e.call(r,n,U(t).map((function(n,r){return me(e,n,r,t)}))):t}function he(e){return Array.isArray(e)?q(e).map(he).toList():ge(e)?U(e).map(he).toMap():e}function ge(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Ae(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,y)):!ve(e.get(r,y),t))return d=!1,!1}));return d&&e.size===p}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(_)return _;_=this}}function be(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if($)return $;$=this}}function we(){throw TypeError("Abstract")}function je(){}function Ce(){}function Oe(){}G.prototype[ee]=!0,t(te,q),te.prototype.get=function(e,t){return this.has(e)?this._array[z(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new H((function(){return o>r?F():R(e,o,n[t?r-o++:o++])}))},t(ne,U),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new H((function(){var a=r[t?o-i:i];return i++>o?F():R(e,a,n[a])}))},ne.prototype[m]=!0,t(re,q),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=X(this._iterable),r=0;if(Q(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=X(this._iterable);if(!Q(n))return new H(F);var r=0;return new H((function(){var t=n.next();return t.done?t:R(e,r++,t.value)}))},t(oe,q),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new H((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return R(e,o,r[o++])}))},t(ye,q),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return ve(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:new ye(this._value,N(t,n)-P(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new H((function(){return r<n.size?R(e,r++,n._value):F()}))},ye.prototype.equals=function(e){return e instanceof ye?ve(this._value,e._value):Ae(e)},t(xe,q),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+z(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return T(e,t,this.size)?this:(e=P(e,this.size),(t=N(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new H((function(){var a=o;return o+=t?-r:r,i>n?F():R(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:Ae(this,e)},t(we,n),t(je,we),t(Ce,we),t(Oe,we),we.Keyed=je,we.Indexed=Ce,we.Set=Oe;var Me="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ze(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return ze(n)}if("string"===t)return e.length>He?Te(e):Pe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Ne(e);if("function"==typeof e.toString)return Pe(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Te(e){var t=Ve[e];return void 0===t&&(t=Pe(e),Fe===Re&&(Fe=0,Ve={}),Fe++,Ve[e]=t),t}function Pe(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ze(t)}function Ne(e){var t;if(Ie&&void 0!==(t=Le.get(e)))return t;if(void 0!==(t=e[We]))return t;if(!Be){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[We]))return t;if(void 0!==(t=ke(e)))return t}if(t=++Se,1073741824&Se&&(Se=0),Ie)Le.set(e,t);else{if(void 0!==Ee&&!1===Ee(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Be)Object.defineProperty(e,We,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[We]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[We]=t}}return t}var Ee=Object.isExtensible,Be=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ke(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Le,Ie="function"==typeof WeakMap;Ie&&(Le=new WeakMap);var Se=0,We="__immutablehash__";"function"==typeof Symbol&&(We=Symbol(We));var He=16,Re=255,Fe=0,Ve={};function Qe(e){be(e!==1/0,"Cannot perform this action with an infinite size.")}function Xe(e){return null==e?ot():Ye(e)&&!u(e)?e:ot().withMutations((function(t){var n=r(e);Qe(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ye(e){return!(!e||!e[Ge])}t(Xe,je),Xe.prototype.toString=function(){return this.__toString("Map {","}")},Xe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Xe.prototype.set=function(e,t){return it(this,e,t)},Xe.prototype.setIn=function(e,t){return this.updateIn(e,y,(function(){return t}))},Xe.prototype.remove=function(e){return it(this,e,y)},Xe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return y}))},Xe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Xe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=gt(this,wn(e),t,n);return r===y?void 0:r},Xe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Xe.prototype.merge=function(){return pt(this,void 0,arguments)},Xe.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Xe.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Xe.prototype.mergeDeep=function(){return pt(this,ft,arguments)},Xe.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,mt(t),n)},Xe.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Xe.prototype.sort=function(e){return Vt(dn(this,e))},Xe.prototype.sortBy=function(e,t){return Vt(dn(this,t,e))},Xe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Xe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new C)},Xe.prototype.asImmutable=function(){return this.__ensureOwner()},Xe.prototype.wasAltered=function(){return this.__altered},Xe.prototype.__iterator=function(e,t){return new et(this,e,t)},Xe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Xe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Xe.isMap=Ye;var Ze,Ge="@@__IMMUTABLE_MAP__@@",Ue=Xe.prototype;function qe(e,t){this.ownerID=e,this.entries=t}function Ke(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function _e(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return R(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ue);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return Ze||(Ze=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=w(b),a=w(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===y?-1:1:0)}else{if(n===y)return e;o=1,r=new qe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===y?e:(j(s),j(a),new $e(t,r,[o,i]))}function st(e){return e.constructor===$e||e.constructor===_e}function lt(e,t,n,r,o){if(e.keyHash===r)return new _e(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&A,s=(0===n?r:r>>>n)&A;return new Ke(t,1<<a|1<<s,a===s?[lt(e,t,n+g,r,o)]:(i=new $e(t,r,o),a<s?[e,i]:[i,e]))}function ct(e,t,n,r){e||(e=new C);for(var o=new $e(e,De(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ut(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,l=1,c=t.length;s<c;s++,l<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=l,a[i++]=u)}return new Ke(e,o,a)}function dt(e,t,n,r,o){for(var i=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Je(e,i+1,a)}function pt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],l=r(s);a(s)||(l=l.map((function(e){return fe(e)}))),o.push(l)}return ht(e,t,o)}function ft(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function mt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function ht(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,y,(function(e){return e===y?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function gt(e,t,n,r){var o=e===y,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}be(o||e&&e.set,"invalid keyPath");var l=i.value,c=o?y:e.get(l,y),u=gt(c,t,n,r);return u===c?e:u===y?e.remove(l):(o?ot():e).set(l,u)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function At(e,t,n,r){var o=r?e:O(e);return o[t]=n,o}function yt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function bt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ue[Ge]=!0,Ue[h]=Ue.remove,Ue.removeIn=Ue.deleteIn,qe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},qe.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===y,l=this.entries,c=0,u=l.length;c<u&&!ve(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===o:s)return this;if(j(a),(s||!d)&&j(i),!s||1!==l.length){if(!d&&!s&&l.length>=xt)return ct(e,l,r,o);var p=e&&e===this.ownerID,f=p?l:O(l);return d?s?c===u-1?f.pop():f[c]=f.pop():f[c]=[r,o]:f.push([r,o]),p?(this.entries=f,this):new qe(e,f)}},Ke.prototype.get=function(e,t,n,r){void 0===t&&(t=De(n));var o=1<<((0===e?t:t>>>e)&A),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+g,t,n,r)},Ke.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=De(r));var s=(0===t?n:n>>>t)&A,l=1<<s,c=this.bitmap,u=0!=(c&l);if(!u&&o===y)return this;var d=vt(c&l-1),p=this.nodes,f=u?p[d]:void 0,m=at(f,e,t+g,n,r,o,i,a);if(m===f)return this;if(!u&&m&&p.length>=wt)return dt(e,p,c,s,m);if(u&&!m&&2===p.length&&st(p[1^d]))return p[1^d];if(u&&m&&1===p.length&&st(m))return m;var h=e&&e===this.ownerID,v=u?m?c:c^l:c|l,b=u?m?At(p,d,m,h):bt(p,d,h):yt(p,d,m,h);return h?(this.bitmap=v,this.nodes=b,this):new Ke(e,v,b)},Je.prototype.get=function(e,t,n,r){void 0===t&&(t=De(n));var o=(0===e?t:t>>>e)&A,i=this.nodes[o];return i?i.get(e+g,t,n,r):r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=De(r));var s=(0===t?n:n>>>t)&A,l=o===y,c=this.nodes,u=c[s];if(l&&!u)return this;var d=at(u,e,t+g,n,r,o,i,a);if(d===u)return this;var p=this.count;if(u){if(!d&&--p<jt)return ut(e,c,p,s)}else p++;var f=e&&e===this.ownerID,m=At(c,s,d,f);return f?(this.count=p,this.nodes=m,this):new Je(e,p,m)},_e.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},_e.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=De(r));var s=o===y;if(n!==this.keyHash)return s?this:(j(a),j(i),lt(this,e,t,n,[r,o]));for(var l=this.entries,c=0,u=l.length;c<u&&!ve(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===o:s)return this;if(j(a),(s||!d)&&j(i),s&&2===u)return new $e(e,this.keyHash,l[1^c]);var p=e&&e===this.ownerID,f=p?l:O(l);return d?s?c===u-1?f.pop():f[c]=f.pop():f[c]=[r,o]:f.push([r,o]),p?(this.entries=f,this):new _e(e,this.keyHash,f)},$e.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},$e.prototype.update=function(e,t,n,r,o,i,a){var s=o===y,l=ve(r,this.entry[0]);return(l?o===this.entry[1]:s)?this:(j(a),s?void j(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new $e(e,this.keyHash,[r,o]):(j(i),lt(this,e,t,De(r),[r,o])))},qe.prototype.iterate=_e.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ke.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},$e.prototype.iterate=function(e,t){return e(this.entry)},t(et,H),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return F()};var xt=v/4,wt=v/2,jt=v/4;function Ct(e){var t=kt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Qe(r),r>0&&r<v?Bt(0,r,g,null,new Dt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[Mt])}t(Ct,Ce),Ct.of=function(){return this(arguments)},Ct.prototype.toString=function(){return this.__toString("List [","]")},Ct.prototype.get=function(e,t){if((e=z(this,e))>=0&&e<this.size){var n=Wt(this,e+=this._origin);return n&&n.array[e&A]}return t},Ct.prototype.set=function(e,t){return Lt(this,e,t)},Ct.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ct.prototype.insert=function(e,t){return this.splice(e,0,t)},Ct.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):kt()},Ct.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ht(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},Ct.prototype.pop=function(){return Ht(this,0,-1)},Ct.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ht(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},Ct.prototype.shift=function(){return Ht(this,1)},Ct.prototype.merge=function(){return Rt(this,void 0,arguments)},Ct.prototype.mergeWith=function(t){return Rt(this,t,e.call(arguments,1))},Ct.prototype.mergeDeep=function(){return Rt(this,ft,arguments)},Ct.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Rt(this,mt(t),n)},Ct.prototype.setSize=function(e){return Ht(this,0,e)},Ct.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:Ht(this,P(e,n),N(t,n))},Ct.prototype.__iterator=function(e,t){var n=0,r=Et(this,t);return new H((function(){var t=r();return t===Nt?F():R(e,n++,t)}))},Ct.prototype.__iterate=function(e,t){for(var n,r=0,o=Et(this,t);(n=o())!==Nt&&!1!==e(n,r++,this););return r},Ct.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Bt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Ct.isList=Ot;var Mt="@@__IMMUTABLE_LIST__@@",zt=Ct.prototype;function Dt(e,t){this.array=e,this.ownerID=t}zt[Mt]=!0,zt[h]=zt.remove,zt.setIn=Ue.setIn,zt.deleteIn=zt.removeIn=Ue.removeIn,zt.update=Ue.update,zt.updateIn=Ue.updateIn,zt.mergeIn=Ue.mergeIn,zt.mergeDeepIn=Ue.mergeDeepIn,zt.withMutations=Ue.withMutations,zt.asMutable=Ue.asMutable,zt.asImmutable=Ue.asImmutable,zt.wasAltered=Ue.wasAltered,Dt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&A;if(r>=this.array.length)return new Dt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-g,n))===a&&i)return this}if(i&&!o)return this;var s=St(this,e);if(!i)for(var l=0;l<r;l++)s.array[l]=void 0;return o&&(s.array[r]=o),s},Dt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&A;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-g,n))===i&&o===this.array.length-1)return this}var a=St(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Tt,Pt,Nt={};function Et(e,t){var n=e._origin,r=e._capacity,o=Ft(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,l=a>n?0:n-a,c=r-a;return c>v&&(c=v),function(){if(l===c)return Nt;var e=t?--c:l++;return s&&s[e]}}function l(e,o,i){var s,l=e&&e.array,c=i>n?0:n-i>>o,u=1+(r-i>>o);return u>v&&(u=v),function(){for(;;){if(s){var e=s();if(e!==Nt)return e;s=null}if(c===u)return Nt;var n=t?--u:c++;s=a(l&&l[n],o-g,i+(n<<o))}}}}function Bt(e,t,n,r,o,i,a){var s=Object.create(zt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function kt(){return Tt||(Tt=Bt(0,0,g))}function Lt(e,t,n){if((t=z(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ht(e,t).set(0,n):Ht(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=w(x);return t>=Ft(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Bt(e._origin,e._capacity,e._level,o,r):e}function It(e,t,n,r,o,i){var a,s=r>>>n&A,l=e&&s<e.array.length;if(!l&&void 0===o)return e;if(n>0){var c=e&&e.array[s],u=It(c,t,n-g,r,o,i);return u===c?e:((a=St(e,t)).array[s]=u,a)}return l&&e.array[s]===o?e:(j(i),a=St(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function St(e,t){return t&&e&&t===e.ownerID?e:new Dt(e?e.array.slice():[],t)}function Wt(e,t){if(t>=Ft(e._capacity))return e._tail;if(t<1<<e._level+g){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&A],r-=g;return n}}function Ht(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new C,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,c=e._root,u=0;a+u<0;)c=new Dt(c&&c.array.length?[void 0,c]:[],r),u+=1<<(l+=g);u&&(a+=u,o+=u,s+=u,i+=u);for(var d=Ft(i),p=Ft(s);p>=1<<l+g;)c=new Dt(c&&c.array.length?[c]:[],r),l+=g;var f=e._tail,m=p<d?Wt(e,s-1):p>d?new Dt([],r):f;if(f&&p>d&&a<i&&f.array.length){for(var h=c=St(c,r),v=l;v>g;v-=g){var y=d>>>v&A;h=h.array[y]=St(h.array[y],r)}h.array[d>>>g&A]=f}if(s<i&&(m=m&&m.removeAfter(r,0,s)),a>=p)a-=p,s-=p,l=g,c=null,m=m&&m.removeBefore(r,0,a);else if(a>o||p<d){for(u=0;c;){var b=a>>>l&A;if(b!==p>>>l&A)break;b&&(u+=(1<<l)*b),l-=g,c=c.array[b]}c&&a>o&&(c=c.removeBefore(r,l,a-u)),c&&p<d&&(c=c.removeAfter(r,l,p-u)),u&&(a-=u,s-=u)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=c,e._tail=m,e.__hash=void 0,e.__altered=!0,e):Bt(a,s,l,c,m)}function Rt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var l=n[s],c=o(l);c.size>i&&(i=c.size),a(l)||(c=c.map((function(e){return fe(e)}))),r.push(c)}return i>e.size&&(e=e.setSize(i)),ht(e,t,r)}function Ft(e){return e<v?0:e-1>>>g<<g}function Vt(e){return null==e?Yt():Qt(e)?e:Yt().withMutations((function(t){var n=r(e);Qe(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Qt(e){return Ye(e)&&u(e)}function Xt(e,t,n,r){var o=Object.create(Vt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Yt(){return Pt||(Pt=Xt(ot(),kt()))}function Zt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),l=void 0!==s;if(n===y){if(!l)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Xt(r,o)}function Gt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ut(e){this._iter=e,this.size=e.size}function qt(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Jt(e){var t=yn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=bn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===L){var r=e.__iterator(t,n);return new H((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===k?B:k,n)},t}function _t(e,t,n){var r=yn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,y);return i===y?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(L,o);return new H((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return R(r,s,t.call(n,a[1],s,e),o)}))},r}function $t(e,t){var n=yn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Jt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=bn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=yn(e);return r&&(o.has=function(r){var o=e.get(r,y);return o!==y&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,y);return i!==y&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(L,i),s=0;return new H((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return R(o,r?c:s++,u,i)}}))},o}function tn(e,t,n){var r=Xe().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(u(e)?Vt():Xe()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=An(e);return o.map((function(t){return hn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),T(t,n,o))return e;var i=P(t,o),a=N(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var c=yn(e);return c.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(c.get=function(t,n){return(t=z(this,t))>=0&&t<s?e.get(t+i,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,c=0;return e.__iterate((function(e,n){if(!l||!(l=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==s})),c},c.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,l=0;return new H((function(){for(;a++<i;)o.next();if(++l>s)return F();var e=o.next();return r||t===k?e:R(t,l-1,t===B?void 0:e.value[1],e)}))},c}function on(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(L,o),s=!0;return new H((function(){if(!s)return F();var e=a.next();if(e.done)return e;var o=e.value,l=o[0],c=o[1];return t.call(n,c,l,i)?r===L?e:R(r,l,c,e):(s=!1,F())}))},r}function an(e,t,n,r){var o=yn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate((function(e,i,c){if(!s||!(s=t.call(n,e,i,c)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(L,i),l=!0,c=0;return new H((function(){var e,i,u;do{if((e=s.next()).done)return r||o===k?e:R(o,c++,o===B?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],l&&(l=t.call(n,u,i,a))}while(l);return o===L?e:R(o,i,u,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||l(e)&&l(i))return i}var c=new te(o);return n?c=c.toKeyedSeq():l(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function ln(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function l(e,c){var u=this;e.__iterate((function(e,o){return(!t||c<t)&&a(e)?l(e,c+1):!1===r(e,n?o:i++,u)&&(s=!0),!s}),o)}return l(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],l=0;return new H((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(r===L&&(c=c[1]),t&&!(s.length<t)||!a(c))return n?e:R(r,l++,c,e);s.push(i),i=c.__iterator(r,o)}else i=s.pop()}return F()}))},r}function cn(e,t,n){var r=An(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function un(e,t){var n=yn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(k,r),a=0;return new H((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?R(n,a++,t):R(n,a++,o.value,o)}))},n}function dn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?U(i):l(e)?q(i):K(i)}function pn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return fn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return fn(t,e,n)?n:e}))}function fn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function mn(e,t,r){var o=yn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(k,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),X(o?e.reverse():e)})),a=0,s=!1;return new H((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?F():R(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function hn(e,t){return ie(e)?t:e.constructor(t)}function gn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Qe(e.size),M(e)}function An(e){return s(e)?r:l(e)?o:i}function yn(e){return Object.create((s(e)?U:l(e)?q:K).prototype)}function bn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function wn(e){var t=X(e);if(!t){if(!Z(e))throw new TypeError("Expected iterable or array-like: "+e);t=X(n(e))}return t}function jn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);zn(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Xe(i)},o=r.prototype=Object.create(Cn);return o.constructor=r,r}t(Vt,Xe),Vt.of=function(){return this(arguments)},Vt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Vt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Vt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Yt()},Vt.prototype.set=function(e,t){return Zt(this,e,t)},Vt.prototype.remove=function(e){return Zt(this,e,y)},Vt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Vt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Vt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Vt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Xt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Qt,Vt.prototype[m]=!0,Vt.prototype[h]=Vt.prototype.remove,t(Gt,U),Gt.prototype.get=function(e,t){return this._iter.get(e,t)},Gt.prototype.has=function(e){return this._iter.has(e)},Gt.prototype.valueSeq=function(){return this._iter.valueSeq()},Gt.prototype.reverse=function(){var e=this,t=$t(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Gt.prototype.map=function(e,t){var n=this,r=_t(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Gt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Gt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(k,t),r=t?vn(this):0;return new H((function(){var o=n.next();return o.done?o:R(e,t?--r:r++,o.value,o)}))},Gt.prototype[m]=!0,t(Ut,q),Ut.prototype.includes=function(e){return this._iter.includes(e)},Ut.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Ut.prototype.__iterator=function(e,t){var n=this._iter.__iterator(k,t),r=0;return new H((function(){var t=n.next();return t.done?t:R(e,r++,t.value,t)}))},t(qt,K),qt.prototype.has=function(e){return this._iter.includes(e)},qt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(k,t);return new H((function(){var t=n.next();return t.done?t:R(e,t.value,t.value,t)}))},t(Kt,U),Kt.prototype.entrySeq=function(){return this._iter.toSeq()},Kt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){gn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(k,t);return new H((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){gn(r);var o=a(r);return R(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Ut.prototype.cacheResult=Gt.prototype.cacheResult=qt.prototype.cacheResult=Kt.prototype.cacheResult=bn,t(jn,je),jn.prototype.toString=function(){return this.__toString(Mn(this)+" {","}")},jn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},jn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},jn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,ot()))},jn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Mn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},jn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},jn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},jn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var Cn=jn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Mn(e){return e._name||e.constructor.name||"Record"}function zn(e,t){try{t.forEach(Dn.bind(void 0,e))}catch(e){}}function Dn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){be(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Tn(e){return null==e?In():Pn(e)&&!u(e)?e:In().withMutations((function(t){var n=i(e);Qe(n.size),n.forEach((function(e){return t.add(e)}))}))}function Pn(e){return!(!e||!e[En])}Cn[h]=Cn.remove,Cn.deleteIn=Cn.removeIn=Ue.removeIn,Cn.merge=Ue.merge,Cn.mergeWith=Ue.mergeWith,Cn.mergeIn=Ue.mergeIn,Cn.mergeDeep=Ue.mergeDeep,Cn.mergeDeepWith=Ue.mergeDeepWith,Cn.mergeDeepIn=Ue.mergeDeepIn,Cn.setIn=Ue.setIn,Cn.update=Ue.update,Cn.updateIn=Ue.updateIn,Cn.withMutations=Ue.withMutations,Cn.asMutable=Ue.asMutable,Cn.asImmutable=Ue.asImmutable,t(Tn,Oe),Tn.of=function(){return this(arguments)},Tn.fromKeys=function(e){return this(r(e).keySeq())},Tn.prototype.toString=function(){return this.__toString("Set {","}")},Tn.prototype.has=function(e){return this._map.has(e)},Tn.prototype.add=function(e){return kn(this,this._map.set(e,!0))},Tn.prototype.remove=function(e){return kn(this,this._map.remove(e))},Tn.prototype.clear=function(){return kn(this,this._map.clear())},Tn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Tn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Tn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Tn.prototype.merge=function(){return this.union.apply(this,arguments)},Tn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Tn.prototype.sort=function(e){return Sn(dn(this,e))},Tn.prototype.sortBy=function(e,t){return Sn(dn(this,t,e))},Tn.prototype.wasAltered=function(){return this._map.wasAltered()},Tn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Tn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Tn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Tn.isSet=Pn;var Nn,En="@@__IMMUTABLE_SET__@@",Bn=Tn.prototype;function kn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Ln(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Nn||(Nn=Ln(ot()))}function Sn(e){return null==e?Vn():Wn(e)?e:Vn().withMutations((function(t){var n=i(e);Qe(n.size),n.forEach((function(e){return t.add(e)}))}))}function Wn(e){return Pn(e)&&u(e)}Bn[En]=!0,Bn[h]=Bn.remove,Bn.mergeDeep=Bn.merge,Bn.mergeDeepWith=Bn.mergeWith,Bn.withMutations=Ue.withMutations,Bn.asMutable=Ue.asMutable,Bn.asImmutable=Ue.asImmutable,Bn.__empty=In,Bn.__make=Ln,t(Sn,Tn),Sn.of=function(){return this(arguments)},Sn.fromKeys=function(e){return this(r(e).keySeq())},Sn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Sn.isOrderedSet=Wn;var Hn,Rn=Sn.prototype;function Fn(e,t){var n=Object.create(Rn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vn(){return Hn||(Hn=Fn(Yt()))}function Qn(e){return null==e?qn():Xn(e)?e:qn().unshiftAll(e)}function Xn(e){return!(!e||!e[Zn])}Rn[m]=!0,Rn.__empty=Vn,Rn.__make=Fn,t(Qn,Ce),Qn.of=function(){return this(arguments)},Qn.prototype.toString=function(){return this.__toString("Stack [","]")},Qn.prototype.get=function(e,t){var n=this._head;for(e=z(this,e);n&&e--;)n=n.next;return n?n.value:t},Qn.prototype.peek=function(){return this._head&&this._head.value},Qn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Un(e,t)},Qn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Qe(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Un(t,n)},Qn.prototype.pop=function(){return this.slice(1)},Qn.prototype.unshift=function(){return this.push.apply(this,arguments)},Qn.prototype.unshiftAll=function(e){return this.pushAll(e)},Qn.prototype.shift=function(){return this.pop.apply(this,arguments)},Qn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):qn()},Qn.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var n=P(e,this.size);if(N(t,this.size)!==this.size)return Ce.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Un(r,o)},Qn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Un(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Qn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Qn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new H((function(){if(r){var t=r.value;return r=r.next,R(e,n++,t)}return F()}))},Qn.isStack=Xn;var Yn,Zn="@@__IMMUTABLE_STACK__@@",Gn=Qn.prototype;function Un(e,t,n,r){var o=Object.create(Gn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function qn(){return Yn||(Yn=Un(0))}function Kn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Gn[Zn]=!0,Gn.withMutations=Ue.withMutations,Gn.asMutable=Ue.asMutable,Gn.asImmutable=Ue.asImmutable,Gn.wasAltered=Ue.wasAltered,n.Iterator=H,Kn(n,{toArray:function(){Qe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Ut(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Gt(this,!0)},toMap:function(){return Xe(this.toKeyedSeq())},toObject:function(){Qe(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Sn(s(this)?this.valueSeq():this)},toSet:function(){return Tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new qt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Qn(s(this)?this.valueSeq():this)},toList:function(){return Ct(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return hn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(L)},every:function(e,t){Qe(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return hn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Qe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Qe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(B)},map:function(e,t){return hn(this,_t(this,e,t))},reduce:function(e,t,n){var r,o;return Qe(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return hn(this,$t(this,!0))},slice:function(e,t){return hn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return hn(this,dn(this,e))},values:function(){return this.__iterator(k)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return M(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return Ae(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(D)},flatMap:function(e,t){return hn(this,cn(this,e,t))},flatten:function(e){return hn(this,ln(this,e,!0))},fromEntrySeq:function(){return new Kt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=wn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,y):y)===y)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return hn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return hn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return hn(this,dn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return hn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return hn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Jn=n.prototype;Jn[d]=!0,Jn[W]=Jn.values,Jn.__toJS=Jn.toArray,Jn.__toStringMapper=rr,Jn.inspect=Jn.toSource=function(){return this.toString()},Jn.chain=Jn.flatMap,Jn.contains=Jn.includes,function(){try{Object.defineProperty(Jn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Kn(r,{flip:function(){return hn(this,Jt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return hn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return hn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var _n=r.prototype;function $n(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return O(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0;return sr(e.__iterate(n?t?function(e,t){r=31*r+lr(De(e),De(t))|0}:function(e,t){r=r+lr(De(e),De(t))|0}:t?function(e){r=31*r+De(e)|0}:function(e){r=r+De(e)|0}),r)}function sr(e,t){return t=Me(t,3432918353),t=Me(t<<15|t>>>-15,461845907),t=Me(t<<13|t>>>-13,5),t=Me((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ze((t=Me(t^t>>>13,3266489909))^t>>>16)}function lr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}_n[p]=!0,_n[W]=Jn.entries,_n.__toJS=Jn.toObject,_n.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Kn(o,{toKeyedSeq:function(){return new Gt(this,!1)},filter:function(e,t){return hn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return hn(this,$t(this,!1))},slice:function(e,t){return hn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=P(e,e<0?this.count():this.size);var r=this.slice(0,e);return hn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return hn(this,ln(this,e,!1))},get:function(e,t){return(e=z(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=z(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return hn(this,un(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=mn(this.toSeq(),q.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),hn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return hn(this,an(this,e,t,!1))},zip:function(){return hn(this,mn(this,or,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,hn(this,mn(this,e,t))}}),o.prototype[f]=!0,o.prototype[m]=!0,Kn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Jn.includes,Kn(U,r.prototype),Kn(q,o.prototype),Kn(K,i.prototype),Kn(je,r.prototype),Kn(Ce,o.prototype),Kn(Oe,i.prototype);var cr={Iterable:n,Seq:G,Collection:we,Map:Xe,OrderedMap:Vt,List:Ct,Stack:Qn,Set:Tn,OrderedSet:Sn,Record:jn,Range:xe,Repeat:ye,is:ve,fromJS:fe};return cr}()),yC.exports}window,AC.exports=function(e,t){return o={},n.m=r=[function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(1),o=n(0),i=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},a=function(e,t,n){var r,i=e.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(t),entities:Array(i.length).fill(n),blocks:[]}}},s=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},l=function(){return{text:"",inlines:[],entities:[],blocks:[]}},c=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},u=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},d=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},p=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},f=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),m={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function h(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var g=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return x}));var v=" ",A=new RegExp(" ","g"),y=!0;function b(e,t,n,o,i,v){var A=e.nodeName.toLowerCase();if(v){var x=v(A,e);if(x){var w=r.Entity.__create(x.type,x.mutability,x.data||{});return{chunk:d(w)}}}if("#text"===A&&"\n"!==e.textContent)return a(e,t,i);if("br"===A)return{chunk:s()};if("img"===A&&e instanceof HTMLImageElement){var j={};j.src=e.getAttribute&&e.getAttribute("src")||e.src,j.alt=e.alt,j.height=e.style.height,j.width=e.style.width,e.style.float&&(j.alignment=e.style.float);var C=r.Entity.__create("IMAGE","MUTABLE",j);return{chunk:d(C)}}if("video"===A&&e instanceof HTMLVideoElement){var O={};O.src=e.getAttribute&&e.getAttribute("src")||e.src,O.alt=e.alt,O.height=e.style.height,O.width=e.style.width,e.style.float&&(O.alignment=e.style.float);var M=r.Entity.__create("VIDEO","MUTABLE",O);return{chunk:d(M)}}if("iframe"===A&&e instanceof HTMLIFrameElement){var z={};z.src=e.getAttribute&&e.getAttribute("src")||e.src,z.height=e.height,z.width=e.width;var D=r.Entity.__create("EMBEDDED_LINK","MUTABLE",z);return{chunk:d(D)}}var T,P=function(e,t){var n=f.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(A,o);P&&("ul"===A||"ol"===A?(o=A,n+=1):("unordered-list-item"!==P&&"ordered-list-item"!==P&&(o="",n=-1),y?(T=c(P,h(e)),y=!1):T=u(P,n,h(e)))),T=T||l(),t=function(e,t,n){var r,o=m[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var i=t;r=(r=n).withMutations((function(e){var t=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,s=i.style.textDecoration,l=i.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===a&&e.add(m.strong),"underline"===s&&e.add(m.ins),"italic"===l&&e.add(m.em)})).toOrderedSet()}return r}(A,e,t);for(var N=e.firstChild;N;){var E=b(N,t,n,o,g(N)||i,v).chunk;T=p(T,E),N=N.nextSibling}return{chunk:T}}function x(e,t){var n,a,s,l=(n=t,a=e.trim().replace(A,v),(s=i(a))?(y=!0,{chunk:b(s,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(l){var c=l.chunk,u=new o.OrderedMap({});c.entities&&c.entities.forEach((function(e){e&&(u=u.set(e,r.Entity.__get(e)))}));var d=0;return{contentBlocks:c.text.split("\r").map((function(e,t){var n=d+e.length,i=c&&c.inlines.slice(d,n),a=c&&c.entities.slice(d,n),s=new o.List(i.map((function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),r.CharacterMetadata.create(n)})));return d=n,new r.ContentBlock({key:Object(r.genKey)(),type:c&&c.blocks[t]&&c.blocks[t].type||"unstyled",depth:c&&c.blocks[t]&&c.blocks[t].depth,data:c&&c.blocks[t]&&c.blocks[t].data||new o.Map({}),text:e,characterList:s})})),entityMap:u}}return null}}],n.c=o,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2);function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var r,o}(bC(),D);var xC=W(AC.exports),wC={exports:{}};window,wC.exports=function(e,t,n){return i={},r.m=o=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;
|
|
131
131
|
/*!
|
|
132
132
|
Copyright (c) 2017 Jed Watson.
|
|
133
133
|
Licensed under the MIT License (MIT), see
|
|
134
134
|
http://jedwatson.github.io/classnames
|
|
135
|
-
*/!function(){var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"==i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,n){e.exports=t},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,a,s;e.exports=(o=n(3),i=n(5),s={},r.m=a=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(0),o=n(1);function i(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat([[o,i.get(o)]])}function a(e){return i(e).toList()}function s(e){if(e)return a(e).get(0)}function l(e){if(e){var t=s(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach((function(e,n){e.get("key")===t.get("key")&&(r=n-1)})),-1<r)return n.get(r)}}function c(e){return e?e.getCurrentContent().getBlockMap().toList():new o.List}function u(e){var t=a(e);if(!t.some((function(e){return e.type!==t.get(0).type})))return t.get(0).type}function d(e){var t=r.RichUtils.tryToRemoveBlockStyle(e);return t?r.EditorState.push(e,t,"change-block-type"):e}function p(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),i=a(e);if(0<i.size){if(n.getIsBackward()){var s=r;r=o,o=s}for(var l=0;l<i.size;l+=1){var c=0===l?r:0,u=l===i.size-1?o:i.get(l).getText().length;t+=i.get(l).getText().slice(c,u)}}return t}function f(e){var t=e.getCurrentContent(),n=e.getSelection(),o=r.Modifier.removeRange(t,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());return o=r.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),r.EditorState.push(e,o,"insert-fragment")}function m(e){var t=r.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return d(r.EditorState.push(e,t,"split-block"))}function h(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),o=r.Modifier.removeRange(e.getCurrentContent(),n,"forward");return r.EditorState.push(e,o,"remove-range")}function g(e,t){var n=r.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return r.EditorState.push(e,n,"change-block-data")}function v(e){var t=new o.Map({}),n=a(e);if(n&&0<n.size)for(var r=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach((function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))})),0===t.size)return t=t.clear(),"break"},i=0;i<n.size&&"break"!==r(i);i+=1);return t}var A=Object(o.Map)({code:{element:"pre"}}),y=r.DefaultDraftBlockRenderMap.merge(A);function b(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function x(e,t,n){var o,a=e.getSelection();o=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var s=e.getCurrentContent(),l=s.getBlockForKey(o),c=l.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;var u=s.getBlockBefore(o);if(!u)return e;if(u.getType()!==c)return e;var d=l.getDepth();if(1===t&&d===n)return e;var p,f,m,h,g,v,A,y=Math.min(u.getDepth()+1,n),b=(f=t,m=y,h=(p=e).getSelection(),v=(g=p.getCurrentContent()).getBlockMap(),A=i(p).map((function(e){var t=e.getDepth()+f;return t=Math.max(0,Math.min(t,m)),e.set("depth",t)})),v=v.merge(A),g.merge({blockMap:v,selectionBefore:h,selectionAfter:h}));return r.EditorState.push(e,b,"adjust-depth")}function w(e,t){var n;return 13===(n=t).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?e.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(e):f(e):function(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!b(o)&&"unstyled"!==o.getType()&&o.getLength()===t.getStartOffset())return m(e);if(b(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return d(e);if(0<i)return x(e,-1,i)}}}(e)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){n[e]=0<=r.indexOf(e)})),n}var o=t.getStartOffset(),i=t.getEndOffset(),s=a(e);if(0<s.size){var l=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<s.size;t+=1){var n=0===t?o:0,r=t===s.size-1?i:s.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var a=function(n){var r=s.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){e[t]=e[t]&&r.get(t)===t}))},l=n;l<r;l+=1)a(l)}return{v:e}}();if("object"===O(l))return l.v}return{}}function z(e){var t,n=e.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var i=s(e),a=r;a<o;a+=1){var l=i.getEntityAt(a);if(!l){t=void 0;break}if(a===r)t=l;else if(t!==l){t=void 0;break}}return t}function D(e,t){var n,r=s(e);return r.findEntityRanges((function(e){return e.get("entity")===t}),(function(e,t){n={start:e,end:t,text:r.get("text").slice(e,t)}})),n}function T(e,t,n){N[e]["".concat(e.toLowerCase(),"-").concat(n)]=C({},"".concat(t),n)}function P(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},N.color,{},N.bgcolor,{},N.fontSize,{},N.fontFamily,{CODE:N.CODE,SUPERSCRIPT:N.SUPERSCRIPT,SUBSCRIPT:N.SUBSCRIPT})}var N={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function E(e,t,n){var o=e.getSelection(),i=Object.keys(N[t]).reduce((function(e,t){return r.Modifier.removeInlineStyle(e,o,t)}),e.getCurrentContent()),a=r.EditorState.push(e,i,"changeinline-style"),s=e.getCurrentInlineStyle();if(o.isCollapsed()&&(a=s.reduce((function(e,t){return r.RichUtils.toggleInlineStyle(e,t)}),a)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)s.has(n)||(a=r.RichUtils.toggleInlineStyle(a,n));else{var l="bgcolor"===t?"backgroundColor":t;s.has("".concat(l,"-").concat(n))||(a=r.RichUtils.toggleInlineStyle(a,"".concat(t.toLowerCase(),"-").concat(n)),T(t,l,n))}return a}function B(e){e&&e.getCurrentContent().getBlockMap().map((function(e){return e.get("characterList")})).toList().flatten().forEach((function(e){e&&0===e.indexOf("color-")?T("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?T("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?T("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&T("fontFamily","fontFamily",e.substr(11))}))}function k(e,t,n){var r=e.getInlineStyleAt(n).toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(r&&0<r.size)return r.get(0)}function L(e,t){if(e&&t&&0<t.length){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach((function(t){r[t]=function(e,t){var n=e.getCurrentInlineStyle().toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(n&&0<n.size)return n.get(0)}(e,t)})),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),s=a(e);if(0<s.size){for(var l=function(e){var n=0===e?o:0,a=e===s.size-1?i:s.get(e).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var l=function(o){o===n?t.forEach((function(t){r[t]=k(s.get(e),t,o)})):t.forEach((function(t){r[t]&&r[t]!==k(s.get(e),t,o)&&(r[t]=void 0)}))},c=n;c<a;c+=1)l(c)},c=0;c<s.size;c+=1)l(c);return{v:r}}}();if("object"===O(n))return n.v}return{}}function I(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach((function(t){n=r.Modifier.removeInlineStyle(n,e.getSelection(),t)})),r.EditorState.push(e,n,"change-inline-style")}n.d(t,"isListBlock",(function(){return b})),n.d(t,"changeDepth",(function(){return x})),n.d(t,"handleNewLine",(function(){return w})),n.d(t,"getEntityRange",(function(){return D})),n.d(t,"getCustomStyleMap",(function(){return P})),n.d(t,"toggleCustomInlineStyle",(function(){return E})),n.d(t,"getSelectionEntity",(function(){return z})),n.d(t,"extractInlineStyle",(function(){return B})),n.d(t,"removeAllInlineStyles",(function(){return I})),n.d(t,"getSelectionInlineStyle",(function(){return M})),n.d(t,"getSelectionCustomInlineStyle",(function(){return L})),n.d(t,"getSelectedBlocksMap",(function(){return i})),n.d(t,"getSelectedBlocksList",(function(){return a})),n.d(t,"getSelectedBlock",(function(){return s})),n.d(t,"getBlockBeforeSelectedBlock",(function(){return l})),n.d(t,"getAllBlocks",(function(){return c})),n.d(t,"getSelectedBlocksType",(function(){return u})),n.d(t,"removeSelectedBlocksStyle",(function(){return d})),n.d(t,"getSelectionText",(function(){return p})),n.d(t,"addLineBreakRemovingSelection",(function(){return f})),n.d(t,"insertNewUnstyledBlock",(function(){return m})),n.d(t,"clearEditorContent",(function(){return h})),n.d(t,"setBlockData",(function(){return g})),n.d(t,"getSelectedBlocksMetadata",(function(){return v})),n.d(t,"blockRenderMap",(function(){return y}))}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t){e.exports=n},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,a,s;e.exports=(o=n(5),i=n(3),s={},r.m=a=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(1),o=n(0),i=function(e,t,n){var r,i=e.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(t),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(){return{text:"",inlines:[],entities:[],blocks:[]}},l=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},c=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},u=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},d=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},p=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),f={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function m(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var h=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return y}));var g=" ",v=new RegExp(" ","g"),A=!0;function y(e,t){var n,y,b=(n=t,(y=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(v,g)))?(A=!0,{chunk:function e(t,n,o,g,v,y){var b=t.nodeName.toLowerCase();if(y){var x=y(b,t);if(x){var w=r.Entity.__create(x.type,x.mutability,x.data||{});return{chunk:u(w)}}}if("#text"===b&&"\n"!==t.textContent)return i(t,n,v);if("br"===b)return{chunk:a()};if("img"===b&&t instanceof HTMLImageElement){var j={};j.src=t.getAttribute&&t.getAttribute("src")||t.src,j.alt=t.alt,j.height=t.style.height,j.width=t.style.width,t.style.float&&(j.alignment=t.style.float);var C=r.Entity.__create("IMAGE","MUTABLE",j);return{chunk:u(C)}}if("video"===b&&t instanceof HTMLVideoElement){var O={};O.src=t.getAttribute&&t.getAttribute("src")||t.src,O.alt=t.alt,O.height=t.style.height,O.width=t.style.width,t.style.float&&(O.alignment=t.style.float);var M=r.Entity.__create("VIDEO","MUTABLE",O);return{chunk:u(M)}}if("iframe"===b&&t instanceof HTMLIFrameElement){var z={};z.src=t.getAttribute&&t.getAttribute("src")||t.src,z.height=t.height,z.width=t.width;var D=r.Entity.__create("EMBEDDED_LINK","MUTABLE",z);return{chunk:u(D)}}var T,P=function(e,t){var n=p.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,g);P&&("ul"===b||"ol"===b?(g=b,o+=1):("unordered-list-item"!==P&&"ordered-list-item"!==P&&(g="",o=-1),A?(T=l(P,m(t)),A=!1):T=c(P,o,m(t)))),T=T||s(),n=function(e,t,n){var r,o=f[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var i=t;r=(r=n).withMutations((function(e){var t=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,s=i.style.textDecoration,l=i.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===a&&e.add(f.strong),"underline"===s&&e.add(f.ins),"italic"===l&&e.add(f.em)})).toOrderedSet()}return r}(b,t,n);for(var N=t.firstChild;N;){var E=e(N,n,o,g,h(N)||v,y).chunk;T=d(T,E),N=N.nextSibling}return{chunk:T}}(y,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var x=b.chunk,w=new o.OrderedMap({});x.entities&&x.entities.forEach((function(e){e&&(w=w.set(e,r.Entity.__get(e)))}));var j=0;return{contentBlocks:x.text.split("\r").map((function(e,t){var n=j+e.length,i=x&&x.inlines.slice(j,n),a=x&&x.entities.slice(j,n),s=new o.List(i.map((function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),r.CharacterMetadata.create(n)})));return j=n,new r.ContentBlock({key:Object(r.genKey)(),type:x&&x.blocks[t]&&x.blocks[t].type||"unstyled",depth:x&&x.blocks[t]&&x.blocks[t].depth,data:x&&x.blocks[t]&&x.blocks[t].data||new o.Map({}),text:e,characterList:s})})),entityMap:w}}return null}}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t,n){function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function d(){return function(e,t){t.normalize(e)}}function p(e){var t=e.re=n(21)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):i(n.validate)?a.validate=n.validate:u(t,n),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?u(t,n):a.normalize=d());"[object String]"!==o(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:d()};var p,f=Object.keys(e.__compiled__).filter((function(t){return 0<t.length&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(p=e).__index__=-1,p.__text_cache__=""}function f(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function m(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},p(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(m(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(m(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),p(this),this},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){var r=n(11);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){n.r(t),n.d(t,"Editor",(function(){return ao}));var r=n(1),o=n.n(r),i=n(0),a=n.n(i),s=n(3),l=n(4),c=n(2),u=n.n(c);function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var f=p((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}));function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var g,v=h((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}})),A=[],y={onKeyDown:function(e){A.forEach((function(t){t(e)}))},registerCallBack:function(e){A.push(e)},deregisterCallBack:function(e){A=A.filter((function(t){return t!==e}))}},b=function(){g=!0},x=function(){g=!1},w=function(){return g};function j(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function C(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function O(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function M(e){e.stopPropagation()}function z(e){return e[e.options[0]].icon}function D(e,t){if(e&&void 0===t)return e;var n={};return C(e,(function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=D(r,t[e]):n[e]=void 0!==t[e]?t[e]:r})),n}var T=n(6),P=n.n(T),N=n(5);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9);var W=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(i,r.Component);var e,t,n=I(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(){var t=e.props,n=t.disabled,r=t.onClick,o=t.value;n||r(o)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,i=t.activeClassName,a=t.active,s=t.disabled,l=t.title;return o.a.createElement("div",{className:u()("rdw-option-wrapper",r,(B(e={},"rdw-option-active ".concat(i),a),B(e,"rdw-option-disabled",s),e)),onClick:this.onClick,"aria-selected":a,title:l},n)}}])&&k(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t){return(F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q(e);if(t){var o=Q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}W.propTypes={onClick:a.a.func.isRequired,children:a.a.any,value:a.a.string,className:a.a.string,activeClassName:a.a.string,active:a.a.bool,disabled:a.a.bool,title:a.a.string},W.defaultProps={activeClassName:""},n(12);var X=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(i,r.Component);var e,t,n=V(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={highlighted:-1},e.onChange=function(t){var n=e.props.onChange;n&&n(t),e.toggleExpansion()},e.setHighlighted=function(t){e.setState({highlighted:t})},e.toggleExpansion=function(){var t=e.props,n=t.doExpand,r=t.doCollapse;t.expanded?r():n()},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&this.setState({highlighted:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.expanded,r=t.children,i=t.className,a=t.optionWrapperClassName,s=t.ariaLabel,l=t.onExpandEvent,c=t.title,d=this.state.highlighted,p=r.slice(1,r.length);return o.a.createElement("div",{className:u()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":s||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:l,title:c},r[0],o.a.createElement("div",{className:u()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:u()("rdw-dropdown-optionwrapper",a),onClick:M},o.a.Children.map(p,(function(t,n){return t&&o.a.cloneElement(t,{onSelect:e.onChange,highlighted:d===n,setHighlighted:e.setHighlighted,index:n})}))):void 0)}}])&&R(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}X.propTypes={children:a.a.any,onChange:a.a.func,className:a.a.string,expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,optionWrapperClassName:a.a.string,ariaLabel:a.a.string,title:a.a.string},n(13);var J=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}(i,r.Component);var e,t,n=q(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(t){var n=e.props,r=n.onSelect,o=n.onClick,i=n.value;n.disabled||(r&&r(i),o&&(t.stopPropagation(),o(i)))},e.setHighlighted=function(){var t=e.props;(0,t.setHighlighted)(t.index)},e.resetHighlighted=function(){(0,e.props.setHighlighted)(-1)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,i=t.disabled,a=t.highlighted,s=t.className,l=t.activeClassName,c=t.disabledClassName,d=t.highlightedClassName,p=t.title;return o.a.createElement("li",{className:u()("rdw-dropdownoption-default",s,(Z(e={},"rdw-dropdownoption-active ".concat(l),r),Z(e,"rdw-dropdownoption-highlighted ".concat(d),a),Z(e,"rdw-dropdownoption-disabled ".concat(c),i),e)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:p},n)}}])&&G(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ne(e);if(t){var o=ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}J.propTypes={children:a.a.any,value:a.a.any,onClick:a.a.func,onSelect:a.a.func,setHighlighted:a.a.func,index:a.a.number,disabled:a.a.bool,active:a.a.bool,highlighted:a.a.bool,className:a.a.string,activeClassName:a.a.string,disabledClassName:a.a.string,highlightedClassName:a.a.string,title:a.a.string},J.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var re=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(i,r.Component);var e,t,n=te(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState,r=e.onChange,i=e.translations;return o.a.createElement("div",{className:u()("rdw-inline-wrapper",t.className),"aria-label":"rdw-inline-control"},t.options.map((function(e,a){return o.a.createElement(W,{key:a,value:e,onClick:r,className:u()(t[e].className),active:!0===n[e]||"MONOSPACE"===e&&n.CODE,title:t[e].title||i["components.controls.inline.".concat(e)]},o.a.createElement("img",{alt:"",src:t[e].icon}))})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState,l=e.onChange,c=e.translations,d=t.className,p=t.dropdownClassName,f=t.title;return o.a.createElement(X,{className:u()("rdw-inline-dropdown",d),optionWrapperClassName:u()(p),onChange:l,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-inline-control",title:f},o.a.createElement("img",{src:z(t),alt:""}),t.options.map((function(e,n){return o.a.createElement(J,{key:n,value:e,className:u()("rdw-inline-dropdownoption",t[e].className),active:!0===s[e]||"MONOSPACE"===e&&s.CODE,title:t[e].title||c["components.controls.inline.".concat(e)]},o.a.createElement("img",{src:t[e].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ae(e,t){return(ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}re.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ce=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ae(e,t)}(i,r.Component);var e,t,n=se(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.toggleInlineStyle=function(e){var n="monospace"===e?"CODE":e.toUpperCase(),r=t.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleInlineStyle(o,n);if("subscript"===e||"superscript"===e){var l="subscript"===e?"SUPERSCRIPT":"SUBSCRIPT",c=s.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),l);a=s.EditorState.push(a,c,"change-inline-style")}a&&i(a)},t.changeKeys=function(e){if(e){var t={};return C(e,(function(e,n){t["CODE"===e?"monospace":e.toLowerCase()]=n})),t}},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={currentStyles:o?t.changeKeys(Object(l.getSelectionInlineStyle)(o)):{}},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(l.getSelectionInlineStyle)(t))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentStyles,s=t.component||re;return o.a.createElement(s,{config:t,translations:n,currentState:a,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&ie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pe(e,t){return(pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=me(e);if(t){var o=me(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function me(e){return(me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ce.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(15);var he=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pe(e,t)}(i,r.Component);var e,t,n=fe(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).getBlockTypes=function(e){return[{label:"Normal",displayName:e["components.controls.blocktype.normal"]},{label:"H1",displayName:e["components.controls.blocktype.h1"]},{label:"H2",displayName:e["components.controls.blocktype.h2"]},{label:"H3",displayName:e["components.controls.blocktype.h3"]},{label:"H4",displayName:e["components.controls.blocktype.h4"]},{label:"H5",displayName:e["components.controls.blocktype.h5"]},{label:"H6",displayName:e["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:e["components.controls.blocktype.blockquote"]},{label:"Code",displayName:e["components.controls.blocktype.code"]}]},t.state={blockTypes:t.getBlockTypes(e.translations)},t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.translations;t!==e.translations&&this.setState({blockTypes:this.getBlockTypes(t)})}},{key:"renderFlat",value:function(e){var t=this.props,n=t.config.className,r=t.onChange,i=t.currentState.blockType;return o.a.createElement("div",{className:u()("rdw-inline-wrapper",n)},e.map((function(e,t){return o.a.createElement(W,{key:t,value:e.label,active:i===e.label,onClick:r},e.displayName)})))}},{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,a=n.title,s=t.currentState.blockType,l=t.expanded,c=t.doExpand,d=t.onExpandEvent,p=t.doCollapse,f=t.onChange,m=t.translations,h=this.state.blockTypes.filter((function(e){return e.label===s})),g=h&&h[0]&&h[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(X,{className:u()("rdw-block-dropdown",r),optionWrapperClassName:u()(i),onChange:f,expanded:l,doExpand:c,doCollapse:p,onExpandEvent:d,title:a||m["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,g||m["components.controls.blocktype.blocktype"]),e.map((function(e,t){return o.a.createElement(J,{active:s===e.label,value:e.label,key:t},e.displayName)}))))}},{key:"render",value:function(){var e=this.props.config,t=e.inDropdown,n=this.state.blockTypes.filter((function(t){var n=t.label;return-1<e.options.indexOf(n)}));return t?this.renderInDropdown(n):this.renderFlat(n)}}])&&de(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();he.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var ge=he;function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t){return(ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xe(e);if(t){var o=xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var we=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(i,r.Component);var e,t,n=be(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.blocksTypes.find((function(t){return t.label===e})).style,r=t.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleBlockType(o,n);a&&i(a)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:!1,currentBlockType:r?Object(l.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(l.getSelectedBlocksType)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentBlockType,s=t.component||ge,l=this.blocksTypes.find((function(e){return e.style===a}));return o.a.createElement(s,{config:t,translations:n,currentState:{blockType:l&&l.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();we.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var je=we;function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e,t){return(Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=De(e);if(t){var o=De(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(16);var Te=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Me(e,t)}(i,r.Component);var e,t,n=ze(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-size");t=t.substring(0,t.length-2),this.setState({defaultFontSize:t})}}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.dropdownClassName,a=t.options,s=t.title,l=e.onChange,c=e.expanded,d=e.doCollapse,p=e.onExpandEvent,f=e.doExpand,m=e.translations,h=this.props.currentState.fontSize,g=this.state.defaultFontSize;return g=Number(g),h=h||a&&0<=a.indexOf(g)&&g,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(X,{className:u()("rdw-fontsize-dropdown",r),optionWrapperClassName:u()(i),onChange:l,expanded:c,doExpand:f,doCollapse:d,onExpandEvent:p,title:s||m["components.controls.fontsize.fontsize"]},h?o.a.createElement("span",null,h):o.a.createElement("img",{src:n,alt:""}),a.map((function(e,t){return o.a.createElement(J,{className:"rdw-fontsize-option",active:h===e,value:e,key:t},e)}))))}}])&&Oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t){return(Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ke(e);if(t){var o=ke(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Te.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Le=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ee(e,t)}(i,r.Component);var e,t,n=Be(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontSize=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(l.toggleCustomInlineStyle)(r,"fontSize",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontSize:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(l.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentFontSize,s=t.component||Te,l=a&&Number(a.substring(9));return o.a.createElement(s,{config:t,translations:n,currentState:{fontSize:l},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t){return(We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function He(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Re(e);if(t){var o=Re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Re(e){return(Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Le.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(17);var Fe=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(i,r.Component);var e,t,n=He(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:t})}}},{key:"render",value:function(){var e=this.state.defaultFontFamily,t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,a=n.options,s=n.title,l=t.translations,c=t.onChange,d=t.expanded,p=t.doCollapse,f=t.onExpandEvent,m=t.doExpand,h=this.props.currentState.fontFamily;return h=h||a&&e&&a.some((function(t){return t.toLowerCase()===e.toLowerCase()}))&&e,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(X,{className:u()("rdw-fontfamily-dropdown",r),optionWrapperClassName:u()("rdw-fontfamily-optionwrapper",i),onChange:c,expanded:d,doExpand:m,doCollapse:p,onExpandEvent:f,title:s||l["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},h||l["components.controls.fontfamily.fontfamily"]),a.map((function(e,t){return o.a.createElement(J,{active:h===e,value:e,key:t},e)}))))}}])&&Se(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Fe.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Ve=Fe;function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ye(e,t){return(Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ge(e);if(t){var o=Ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ue=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ye(e,t)}(i,r.Component);var e,t,n=Ze(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontFamily=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(l.toggleCustomInlineStyle)(r,"fontFamily",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontFamily:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(l.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentFontFamily,s=t.component||Ve,l=a&&a.substring(11);return o.a.createElement(s,{translations:n,config:t,currentState:{fontFamily:l},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Xe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t){return(Je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$e(e);if(t){var o=$e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function $e(e){return($e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ue.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(18);var et=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Je(e,t)}(i,r.Component);var e,t,n=_e(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],e.toggleBlockType=function(t){(0,e.props.onChange)(t)},e.indent=function(){(0,e.props.onChange)("indent")},e.outdent=function(){(0,e.props.onChange)("outdent")},e}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState.listType,r=e.translations,i=e.indentDisabled,a=e.outdentDisabled,s=t.options,l=t.unordered,c=t.ordered,d=t.indent,p=t.outdent,f=t.className;return o.a.createElement("div",{className:u()("rdw-list-wrapper",f),"aria-label":"rdw-list-control"},0<=s.indexOf("unordered")&&o.a.createElement(W,{value:"unordered",onClick:this.toggleBlockType,className:u()(l.className),active:"unordered"===n,title:l.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:l.icon,alt:""})),0<=s.indexOf("ordered")&&o.a.createElement(W,{value:"ordered",onClick:this.toggleBlockType,className:u()(c.className),active:"ordered"===n,title:c.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:c.icon,alt:""})),0<=s.indexOf("indent")&&o.a.createElement(W,{onClick:this.indent,disabled:i,className:u()(d.className),title:d.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=s.indexOf("outdent")&&o.a.createElement(W,{onClick:this.outdent,disabled:a,className:u()(p.className),title:p.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:p.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this,t=this.props,n=t.config,r=t.expanded,i=t.doCollapse,a=t.doExpand,s=t.onExpandEvent,l=t.onChange,c=t.currentState.listType,d=t.translations,p=n.options,f=n.className,m=n.dropdownClassName,h=n.title;return o.a.createElement(X,{className:u()("rdw-list-dropdown",f),optionWrapperClassName:u()(m),onChange:l,expanded:r,doExpand:a,doCollapse:i,onExpandEvent:s,"aria-label":"rdw-list-control",title:h||d["components.controls.list.list"]},o.a.createElement("img",{src:z(n),alt:""}),this.options.filter((function(e){return 0<=p.indexOf(e)})).map((function(t,r){return o.a.createElement(J,{key:r,value:t,disabled:e.props["".concat(t,"Disabled")],className:u()("rdw-list-dropdownOption",n[t].className),active:c===t,title:n[t].title||d["components.controls.list.".concat(t)]},o.a.createElement("img",{src:n[t].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Ke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rt(e,t){return(rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=it(e);if(t){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}et.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object,indentDisabled:a.a.bool,outdentDisabled:a.a.bool};var at=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rt(e,t)}(i,r.Component);var e,t,n=ot(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){"unordered"===e?t.toggleBlockType("unordered-list-item"):"ordered"===e?t.toggleBlockType("ordered-list-item"):"indent"===e?t.adjustDepth(1):t.adjustDepth(-1)},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=s.RichUtils.toggleBlockType(o,e);i&&r(i)},t.adjustDepth=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=Object(l.changeDepth)(o,e,4);i&&r(i)},t.isIndentDisabled=function(){var e=t.props.editorState,n=t.state.currentBlock,r=Object(l.getBlockBeforeSelectedBlock)(e);return!r||!Object(l.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},t.isOutdentDisabled=function(){var e=t.state.currentBlock;return!e||!Object(l.isListBlock)(e)||e.get("depth")<=0};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={expanded:!1,currentBlock:o?Object(l.getSelectedBlock)(o):void 0},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(l.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,i=this.state,a=i.expanded,s=i.currentBlock,l=n.component||et;"unordered-list-item"===s.get("type")?e="unordered":"ordered-list-item"===s.get("type")&&(e="ordered");var c=this.isIndentDisabled(),u=this.isOutdentDisabled();return o.a.createElement(l,{config:n,translations:r,currentState:{listType:e},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:c,outdentDisabled:u})}}])&&nt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ct(e,t){return(ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===st(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}at.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(19);var pt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ct(e,t)}(i,r.Component);var e,t,n=ut(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,i=t.center,a=t.right,s=t.justify,l=t.className,c=e.onChange,d=e.currentState.textAlignment,p=e.translations;return o.a.createElement("div",{className:u()("rdw-text-align-wrapper",l),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(W,{value:"left",className:u()(r.className),active:"left"===d,onClick:c,title:r.title||p["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(W,{value:"center",className:u()(i.className),active:"center"===d,onClick:c,title:i.title||p["components.controls.textalign.center"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(W,{value:"right",className:u()(a.className),active:"right"===d,onClick:c,title:a.title||p["components.controls.textalign.right"]},o.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(W,{value:"justify",className:u()(s.className),active:"justify"===d,onClick:c,title:s.title||p["components.controls.textalign.justify"]},o.a.createElement("img",{src:s.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState.textAlignment,l=e.onChange,c=e.translations,d=t.options,p=t.left,f=t.center,m=t.right,h=t.justify,g=t.className,v=t.dropdownClassName,A=t.title;return o.a.createElement(X,{className:u()("rdw-text-align-dropdown",g),optionWrapperClassName:u()(v),onChange:l,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-textalign-control",title:A||c["components.controls.textalign.textalign"]},o.a.createElement("img",{src:s&&t[s]&&t[s].icon||z(t),alt:""}),0<=d.indexOf("left")&&o.a.createElement(J,{value:"left",active:"left"===s,className:u()("rdw-text-align-dropdownOption",p.className),title:p.title||c["components.controls.textalign.left"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=d.indexOf("center")&&o.a.createElement(J,{value:"center",active:"center"===s,className:u()("rdw-text-align-dropdownOption",f.className),title:f.title||c["components.controls.textalign.center"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=d.indexOf("right")&&o.a.createElement(J,{value:"right",active:"right"===s,className:u()("rdw-text-align-dropdownOption",m.className),title:m.title||c["components.controls.textalign.right"]},o.a.createElement("img",{src:m.icon,alt:""})),0<=d.indexOf("justify")&&o.a.createElement(J,{value:"justify",active:"justify"===s,className:u()("rdw-text-align-dropdownOption",h.className),title:h.title||c["components.controls.textalign.justify"]},o.a.createElement("img",{src:h.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&<(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ht(e,t){return(ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vt(e);if(t){var o=vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function vt(e){return(vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}pt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var At=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ht(e,t)}(i,r.Component);var e,t,n=gt(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addBlockAlignmentData=function(e){var n=t.props,r=n.editorState;(0,n.onChange)(t.state.currentTextAlignment!==e?Object(l.setBlockData)(r,{"text-align":e}):Object(l.setBlockData)(r,{"text-align":void 0}))};var r=t.props.modalHandler;return t.state={currentTextAlignment:void 0},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(l.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentTextAlignment,s=t.component||pt;return o.a.createElement(s,{config:t,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&mt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xt(e,t){return(xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jt(e);if(t){var o=jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function jt(e){return(jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}At.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(20);var Ct=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xt(e,t)}(i,r.Component);var e,t,n=wt(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(e=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},e.onChange=function(t){(0,e.props.onChange)(e.state.currentStyle,t)},e.setCurrentStyleColor=function(){e.setState({currentStyle:"color"})},e.setCurrentStyleBgcolor=function(){e.setState({currentStyle:"bgcolor"})},e.renderModal=function(){var t=e.props,n=t.config,r=n.popupClassName,i=n.colors,a=t.currentState,s=a.color,l=a.bgColor,c=t.translations,d=e.state.currentStyle,p="color"===d?s:l;return o.a.createElement("div",{className:u()("rdw-colorpicker-modal",r),onClick:M},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===d}),onClick:e.setCurrentStyleColor},c["components.controls.colorpicker.text"]),o.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===d}),onClick:e.setCurrentStyleBgcolor},c["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map((function(t,n){return o.a.createElement(W,{value:t,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:p===t,onClick:e.onChange},o.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))}))))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-color-picker",title:i||l["components.controls.colorpicker.colorpicker"]},o.a.createElement(W,{onClick:s,className:u()(r)},o.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&bt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Ct.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Ot=Ct;function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dt(e,t){return(Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pt(e);if(t){var o=Pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Mt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dt(e,t)}(i,r.Component);var e,t,n=Tt(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleColor=function(e,n){var r=t.props,o=r.editorState,i=r.onChange,a=Object(l.toggleCustomInlineStyle)(o,e,n);a&&i(a),t.doCollapse()};var r=e.editorState,o=e.modalHandler,a={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(a.currentColor=Object(l.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,a.currentBgColor=Object(l.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),t.state=a,o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentColor:Object(l.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR,currentBgColor:Object(l.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.currentColor,a=r.currentBgColor,s=r.expanded,l=t.component||Ot,c=i&&i.substring(6),u=a&&a.substring(8);return o.a.createElement(l,{config:t,translations:n,onChange:this.toggleColor,expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:c,bgColor:u}})}}])&&zt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Nt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Et=Nt,Bt=n(7),kt=n.n(Bt);function Lt(e){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function St(e,t){return(St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ht(e);if(t){var o=Ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(26);var Rt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&St(e,t)}(i,r.Component);var e,t,n=Wt(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:e.props.config.defaultTargetOption},e.removeLink=function(){(0,e.props.onChange)("unlink")},e.addLink=function(){var t=e.props.onChange,n=e.state;t("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.updateTargetOption=function(t){e.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},e.hideModal=function(){e.setState({showModal:!1})},e.signalExpandShowModal=function(){var t=e.props,n=t.onExpandEvent,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},e.forceExpandAndShowModal=function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,i=this.state,a=i.linkTitle,s=i.linkTarget,l=i.linkTargetOption;return o.a.createElement("div",{className:u()("rdw-link-modal",t),onClick:M},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:a}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:s}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===l,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!s||!a},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,i=t.unlink,a=t.className,s=e.currentState,l=e.expanded,c=e.translations,d=this.state.showModal;return o.a.createElement("div",{className:u()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(W,{value:"unordered-list-item",className:u()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":d,title:r.title||c["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(W,{disabled:!s.link,value:"ordered-list-item",className:u()(i.className),onClick:this.removeLink,title:i.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:i.icon,alt:""})),l&&d?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,i=e.doExpand,a=e.onChange,s=e.config,l=e.currentState,c=e.translations,d=s.options,p=s.link,f=s.unlink,m=s.className,h=s.dropdownClassName,g=s.title,v=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:g},o.a.createElement(X,{className:u()("rdw-link-dropdown",m),optionWrapperClassName:u()(h),onChange:a,expanded:t&&!v,doExpand:i,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:z(s),alt:""}),0<=d.indexOf("link")&&o.a.createElement(J,{onClick:this.forceExpandAndShowModal,className:u()("rdw-link-dropdownoption",p.className),title:p.title||c["components.controls.link.link"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=d.indexOf("unlink")&&o.a.createElement(J,{onClick:this.removeLink,disabled:!l.link,className:u()("rdw-link-dropdownoption",f.className),title:f.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:f.icon,alt:""}))),t&&v?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&It(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Rt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var Ft=Rt;function Vt(e){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xt(e,t){return(Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zt(e);if(t){var o=Zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Zt(e){return(Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e){var t=Jt.match(e.target);return Ut(Ut({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var Jt=kt()(),_t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}(i,r.Component);var e,t,n=Yt(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e,n,r,o){var i=t.props.config.linkCallback;if("link"===e){var a=(i||Kt)({title:n,target:r,targetOption:o});t.addLink(a.title,a.target,a.targetOption)}else t.removeLink()},t.getCurrentValues=function(){var e=t.props.editorState,n=t.state.currentEntity,r=e.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var i=n&&Object(l.getEntityRange)(e,n);o.link.target=n&&r.getEntity(n).get("data").url,o.link.targetOption=n&&r.getEntity(n).get("data").targetOption,o.link.title=i&&i.text}return o.selectionText=Object(l.getSelectionText)(e),o},t.doExpand=function(){t.setState({expanded:!0})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doCollapse=function(){t.setState({expanded:!1})},t.removeLink=function(){var e=t.props,n=e.editorState,r=e.onChange,o=t.state.currentEntity,i=n.getSelection();if(o){var a=Object(l.getEntityRange)(n,o);i=i.getIsBackward()?i.merge({anchorOffset:a.end,focusOffset:a.start}):i.merge({anchorOffset:a.start,focusOffset:a.end}),r(s.RichUtils.toggleLink(n,i,null))}},t.addLink=function(e,n,r){var o=t.props,i=o.editorState,a=o.onChange,c=t.state.currentEntity,u=i.getSelection();if(c){var d=Object(l.getEntityRange)(i,c);u=u.getIsBackward()?u.merge({anchorOffset:d.end,focusOffset:d.start}):u.merge({anchorOffset:d.start,focusOffset:d.end})}var p=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),f=s.Modifier.replaceText(i.getCurrentContent(),u,"".concat(e),i.getCurrentInlineStyle(),p),m=s.EditorState.push(i,f,"insert-characters");u=m.getSelection().merge({anchorOffset:u.get("anchorOffset")+e.length,focusOffset:u.get("anchorOffset")+e.length}),m=s.EditorState.acceptSelection(m,u),f=s.Modifier.insertText(m.getCurrentContent(),u," ",m.getCurrentInlineStyle(),void 0),a(s.EditorState.push(m,f,"insert-characters")),t.doCollapse()};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(l.getSelectionEntity)(o):void 0},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(l.getSelectionEntity)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=this.getCurrentValues(),a=i.link,s=i.selectionText,l=t.component||Ft;return o.a.createElement(l,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:s},onChange:this.onChange})}}])&&Qt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();_t.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var $t=_t;function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nn(e,t){return(nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=on(e);if(t){var o=on(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===en(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(27);var an=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nn(e,t)}(i,r.Component);var e,t,n=rn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width},e.onChange=function(){var t=e.props.onChange,n=e.state;t(n.embeddedLink,n.height,n.width)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,r=t.config;if(!n&&e.expanded){var o=r.defaultSize,i=o.height,a=o.width;this.setState({embeddedLink:"",height:i,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,r=e.width,i=this.props,a=i.config.popupClassName,s=i.doCollapse,l=i.translations;return o.a.createElement("div",{className:u()("rdw-embedded-modal",a),onClick:M},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},l["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:l["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!r},l["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:s},l["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},o.a.createElement(W,{className:u()(r),value:"unordered-list-item",onClick:s,title:i||l["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),a?this.rendeEmbeddedLinkModal():void 0)}}])&&tn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();an.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object,doCollapse:a.a.func};var sn=an;function ln(e){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function un(e,t){return(un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pn(e);if(t){var o=pn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ln(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function pn(e){return(pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&un(e,t)}(i,r.Component);var e,t,n=dn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmbeddedLink=function(t,n,r){var o=e.props,i=o.editorState,a=o.onChange,l=o.config.embedCallback,c=l?l(t):t,u=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:c,height:n,width:r}).getLastCreatedEntityKey();a(s.AtomicBlockUtils.insertAtomicBlock(i,u," ")),e.doCollapse()},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||sn;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&cn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();fn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var mn=fn;function hn(e){return(hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t){return(vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yn(e);if(t){var o=yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function yn(e){return(yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(28);var bn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vn(e,t)}(i,r.Component);var e,t,n=An(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t.target.innerHTML)},e}return e=i,(t=[{key:"renderEmojiModal",value:function(){var e=this,t=this.props.config,n=t.popupClassName,r=t.emojis;return o.a.createElement("div",{className:u()("rdw-emoji-modal",n),onClick:M},r.map((function(t,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:e.onChange},t)})))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":a,title:i||l["components.controls.emoji.emoji"]},o.a.createElement(W,{className:u()(r),value:"unordered-list-item",onClick:s},o.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&gn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();bn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var xn=bn;function wn(e){return(wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cn(e,t){return(Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function On(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mn(e);if(t){var o=Mn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===wn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Mn(e){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cn(e,t)}(i,r.Component);var e,t,n=On(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmoji=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=s.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());o(s.EditorState.push(r,i,"insert-characters")),e.doCollapse()},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||xn;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&jn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Dn(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nn(e,t){return(Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function En(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bn(e);if(t){var o=Bn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Tn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Bn(e){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}zn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(29),n(30);var kn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nn(e,t)}(i,r.Component);var e,t,n=En(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:e.props.config.uploadEnabled&&!!e.props.config.uploadCallback,showImageLoading:!1,height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width,alt:""},e.onDragEnter=function(t){e.stopPropagation(t),e.setState({dragEnter:!0})},e.onImageDrop=function(t){var n,r;t.preventDefault(),t.stopPropagation(),e.setState({dragEnter:!1}),r=t.dataTransfer.items?(n=t.dataTransfer.items,!0):(n=t.dataTransfer.files,!1);for(var o=0;o<n.length;o+=1)if((!r||"file"===n[o].kind)&&n[o].type.match("^image/")){var i=r?n[o].getAsFile():n[o];e.uploadImage(i)}},e.showImageUploadOption=function(){e.setState({uploadHighlighted:!0})},e.addImageFromState=function(){var t=e.state,n=t.imgSrc,r=t.alt,o=e.state,i=o.height,a=o.width,s=e.props.onChange;isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),s(n,i,a,r)},e.showImageURLOption=function(){e.setState({uploadHighlighted:!1})},e.toggleShowImageLoading=function(){var t=!e.state.showImageLoading;e.setState({showImageLoading:t})},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.selectImage=function(t){t.target.files&&0<t.target.files.length&&e.uploadImage(t.target.files[0])},e.uploadImage=function(t){e.toggleShowImageLoading(),(0,e.props.config.uploadCallback)(t).then((function(t){var n=t.data;e.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),e.fileUpload=!1})).catch((function(){e.setState({showImageLoading:!1,dragEnter:!1})}))},e.fileUploadClick=function(t){e.fileUpload=!0,t.stopPropagation()},e.stopPropagation=function(t){e.fileUpload?e.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"renderAddImageModal",value:function(){var e=this.state,t=e.imgSrc,n=e.uploadHighlighted,r=e.showImageLoading,i=e.dragEnter,a=e.height,s=e.width,l=e.alt,c=this.props,d=c.config,p=d.popupClassName,f=d.uploadCallback,m=d.uploadEnabled,h=d.urlEnabled,g=d.previewImage,v=d.inputAccept,A=d.alt,y=c.doCollapse,b=c.translations;return o.a.createElement("div",{className:u()("rdw-image-modal",p),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},m&&f&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},b["components.controls.image.fileUpload"],o.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),h&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},b["components.controls.image.byURL"],o.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:u()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":i})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},g&&t?o.a.createElement("img",{src:t,alt:t,className:"rdw-image-modal-upload-option-image-preview"}):t||b["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:v,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:b["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:t}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),A.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:l,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},A.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!t||!a||!s||A.mandatory&&!l},b["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:y},b["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement(Dn,null)):void 0)}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},o.a.createElement(W,{className:u()(r),value:"unordered-list-item",onClick:s,title:i||l["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),a?this.renderAddImageModal():void 0)}}])&&Pn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();kn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var Ln=kn;function In(e){return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wn(e,t){return(Wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Hn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Rn(e);if(t){var o=Rn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===In(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Rn(e){return(Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wn(e,t)}(i,r.Component);var e,t,n=Hn(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.addImage=function(e,n,r,o){var i=t.props,a=i.editorState,l=i.onChange,c={src:e,height:n,width:r};i.config.alt.present&&(c.alt=o);var u=a.getCurrentContent().createEntity("IMAGE","MUTABLE",c).getLastCreatedEntityKey();l(s.AtomicBlockUtils.insertAtomicBlock(a,u," ")),t.doCollapse()};var r=t.props.modalHandler;return t.state={expanded:!1},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||Ln;return o.a.createElement(i,{config:t,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Sn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Vn(e){var t=e.config,n=e.onChange,r=e.translations,i=t.icon,a=t.className,s=t.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(W,{className:u()(a),onClick:n,title:s||r["components.controls.remove.remove"]},o.a.createElement("img",{src:i,alt:""})))}Fn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Qn=Fn;n(31),Vn.propTypes={onChange:a.a.func,config:a.a.object,translations:a.a.object};var Xn=Vn;function Yn(e){return(Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gn(e,t){return(Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qn(e);if(t){var o=qn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function qn(e){return(qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gn(e,t)}(i,r.Component);var e,t,n=Un(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.removeInlineStyles=function(){var t=e.props,n=t.editorState;(0,t.onChange)(e.removeAllInlineStyles(n))},e.removeAllInlineStyles=function(e){var t=e.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(n){t=s.Modifier.removeInlineStyle(t,e.getSelection(),n)})),C(Object(l.getSelectionCustomInlineStyle)(e,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),(function(n,r){r&&(t=s.Modifier.removeInlineStyle(t,e.getSelection(),r))})),s.EditorState.push(e,t,"change-inline-style")},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||Xn;return o.a.createElement(i,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Zn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Jn(e){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $n(e,t){return($n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function er(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tr(e);if(t){var o=tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function tr(e){return(tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Kn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,config:a.a.object,translations:a.a.object,modalHandler:a.a.object},n(32);var nr=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$n(e,t)}(i,r.Component);var e,t,n=er(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t)},e}return e=i,(t=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState,l=s.undoDisabled,c=s.redoDisabled,d=e.translations,p=t.options,f=t.undo,m=t.redo,h=t.className,g=t.dropdownClassName,v=t.title;return o.a.createElement(X,{className:u()("rdw-history-dropdown",h),optionWrapperClassName:u()(g),expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-history-control",title:v||d["components.controls.history.history"]},o.a.createElement("img",{src:z(t),alt:""}),0<=p.indexOf("undo")&&o.a.createElement(J,{value:"undo",onClick:this.onChange,disabled:l,className:u()("rdw-history-dropdownoption",f.className),title:f.title||d["components.controls.history.undo"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("redo")&&o.a.createElement(J,{value:"redo",onClick:this.onChange,disabled:c,className:u()("rdw-history-dropdownoption",m.className),title:m.title||d["components.controls.history.redo"]},o.a.createElement("img",{src:m.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,i=t.redo,a=t.className,s=e.currentState,l=s.undoDisabled,c=s.redoDisabled,d=e.translations;return o.a.createElement("div",{className:u()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(W,{value:"undo",onClick:this.onChange,className:u()(r.className),disabled:l,title:r.title||d["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(W,{value:"redo",onClick:this.onChange,className:u()(i.className),disabled:c,title:i.title||d["components.controls.history.redo"]},o.a.createElement("img",{src:i.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&_n(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ir(e,t){return(ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ar(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sr(e);if(t){var o=sr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function sr(e){return(sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}nr.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var lr=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ir(e,t)}(i,r.Component);var e,t,n=ar(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=s.EditorState[e](r);i&&o(i)},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r={expanded:!(t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=e.editorState,a=e.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),t.state=r,a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.undoDisabled,a=r.redoDisabled,s=r.expanded,l=t.component||nr;return o.a.createElement(l,{config:t,translations:n,currentState:{undoDisabled:i,redoDisabled:a},expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&or(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();lr.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var cr={inline:ce,blockType:je,fontSize:Le,fontFamily:Ue,list:at,textAlign:At,colorPicker:Et,link:$t,embedded:mn,emoji:zn,image:Qn,remove:Kn,history:lr},ur=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,dr=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function pr(e){return String(e).replace(ur,"").match(dr)?e:"#"}function fr(e){return(fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hr(e,t){return(hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vr(e);if(t){var o=vr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function vr(e){return(vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ar(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()}),t)}function yr(e){var t,n=e.showOpenOptionOnHover;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hr(e,t)}(a,r.Component);var e,t,i=gr(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={showPopOver:!1},e.openLink=function(){var t=e.props,n=t.entityKey,r=t.contentState.getEntity(n).getData().url,o=window.open(pr(r),"blank");o&&o.focus()},e.toggleShowPopOver=function(){var t=!e.state.showPopOver;e.setState({showPopOver:t})},e}return e=a,(t=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.entityKey,i=e.contentState.getEntity(r).getData(),a=i.url,s=i.targetOption,l=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:pr(a),target:s},t),l&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&mr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}()).propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},t}function br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xr(e,t,n){return t&&br(e.prototype,t),n&&br(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n(33),n(34);var wr=xr((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getMentionComponent=function(){function e(e){var n=e.entityKey,r=e.children,i=e.contentState.getEntity(n).getData(),a=i.url,s=i.value;return o.a.createElement("a",{href:a||s,className:u()("rdw-mention-link",t)},r)}var t=n.className;return e.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},e},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=t}));wr.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()}),t)};var jr=wr;function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Or(e,t){return(Or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zr(e);if(t){var o=zr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Cr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function zr(e){return(zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tr(e,t,n){return t&&Dr(e.prototype,t),n&&Dr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(35);var Nr=Tr((function e(t){var n=this;Pr(this,e),this.findSuggestionEntities=function(e,t){if(n.config.getEditorState()){var r=n.config,o=r.separator,i=r.trigger,a=r.getSuggestions,s=(0,r.getEditorState)().getSelection();if(s.get("anchorKey")===e.get("key")&&s.get("anchorKey")===s.get("focusKey")){var l=e.getText(),c=(l=l.substr(0,s.get("focusOffset")===l.length-1?l.length:s.get("focusOffset")+1)).lastIndexOf(o+i),u=o+i;if((void 0===c||c<0)&&l[0]===i&&(c=0,u=i),0<=c){var d=l.substr(c+u.length,l.length);a().some((function(e){return!!e.value&&(n.config.caseSensitive?0<=e.value.indexOf(d):0<=e.value.toLowerCase().indexOf(d&&d.toLowerCase()))}))&&t(0===c?0:c+1,l.length)}}}},this.getSuggestionComponent=function(){var e,t=this.config;return(e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Or(e,t)}(n,r.Component);var e=Mr(n);function n(){var r;Pr(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=e.call.apply(e,[this].concat(i))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(e){var t=r.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=t+1):"ArrowUp"===e.key?n.activeOption=t<=0?r.filteredSuggestions.length-1:t-1:"Escape"===e.key?(n.showSuggestions=!1,x()):"Enter"===e.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(e){var t=e.target.getAttribute("data-index");r.setState({activeOption:t})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(e){r.suggestion=e},r.setDropdownReference=function(e){r.dropdown=e},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(e){var n=e.children[0].props.text.substr(1),o=t.getSuggestions();r.filteredSuggestions=o&&o.filter((function(e){return!n||0===n.length||(t.caseSensitive?0<=e.value.indexOf(n):0<=e.value.toLowerCase().indexOf(n&&n.toLowerCase()))}))},r.addMention=function(){var e=r.state.activeOption,n=t.getEditorState(),o=t.onChange,i=t.separator,a=t.trigger,c=r.filteredSuggestions[e];c&&function(e,t,n,r,o){var i=o.value,a=o.url,c=e.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(i),value:i,url:a}).getLastCreatedEntityKey(),u=Object(l.getSelectedBlock)(e).getText(),d=e.getSelection().focusOffset,p=(u.lastIndexOf(n+r,d)||0)+1,f=!1;u.length===p+1&&(d=u.length)," "===u[d]&&(f=!0);var m=e.getSelection().merge({anchorOffset:p,focusOffset:d}),h=s.EditorState.acceptSelection(e,m),g=s.Modifier.replaceText(h.getCurrentContent(),m,"".concat(r).concat(i),h.getCurrentInlineStyle(),c);h=s.EditorState.push(h,g,"insert-characters"),f||(m=h.getSelection().merge({anchorOffset:p+i.length+r.length,focusOffset:p+i.length+r.length}),h=s.EditorState.acceptSelection(h,m),g=s.Modifier.insertText(h.getCurrentContent(),m," ",h.getCurrentInlineStyle(),void 0)),t(s.EditorState.push(h,g,"insert-characters"))}(n,o,i,a,c)},r}return Tr(n,[{key:"componentDidMount",value:function(){var e,n,r,o=t.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();o.width<i.left-o.left+a.width?n=15:e=15,o.bottom<a.bottom&&(r=0),this.setState({style:{left:e,right:n,bottom:r}}),y.registerCallBack(this.onEditorKeyDown),b(),t.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.filterSuggestions(e),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){y.deregisterCallBack(this.onEditorKeyDown),x(),t.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e=this,n=this.props.children,r=this.state,i=r.activeOption,a=r.showSuggestions,s=t.dropdownClassName,l=t.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:t.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,n),a&&o.a.createElement("span",{className:u()("rdw-suggestion-dropdown",s),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map((function(t,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:e.addMention,"data-index":n,onMouseEnter:e.onOptionMouseEnter,onMouseLeave:e.onOptionMouseLeave,className:u()("rdw-suggestion-option",l,{"rdw-suggestion-option-active":n===i})},t.text)}))))}}]),n}()).propTypes={children:a.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=t.separator,c=t.trigger,d=t.getSuggestions,p=t.onChange,f=t.getEditorState,m=t.getWrapperRef,h=t.caseSensitive,g=t.dropdownClassName,v=t.optionClassName,A=t.modalHandler;this.config={separator:i,trigger:c,getSuggestions:d,onChange:p,getEditorState:f,getWrapperRef:m,caseSensitive:h,dropdownClassName:g,optionClassName:v,modalHandler:A}})),Er=function(e){return[new jr(e.mentionClassName).getMentionDecorator(),new Nr(e).getSuggestionDecorator()]};function Br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kr(e,t,n){return t&&Br(e.prototype,t),n&&Br(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(e){var t=e.block,n=e.contentState.getEntity(t.getEntityAt(0)).getData(),r=n.src,i=n.height,a=n.width;return o.a.createElement("iframe",{height:i,width:a,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var Ir=kr((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getHashtagComponent=function(){function e(e){var n=e.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:u()("rdw-hashtag-link",t)},n)}var t=n.className;return e.propTypes={children:a.a.object},e},this.findHashtagEntities=function(e,t){for(var r=e.getText(),o=0,i=0;0<r.length&&0<=o;)if(r[0]===n.hashCharacter?(i=o=0,r=r.substr(n.hashCharacter.length)):0<=(o=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(o+(n.separator+n.hashCharacter).length),i+=o+n.separator.length),0<=o){var a=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,s=r.substr(0,a);s&&0<s.length&&(t(i,i+s.length+n.hashCharacter.length),i+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "})),Sr=function(e){return new Ir(e).getHashtagDecorator()};Lr.propTypes={block:a.a.object,contentState:a.a.object};var Wr=Lr;function Hr(e){return(Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fr(e,t){return(Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qr(e);if(t){var o=Qr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Hr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Qr(e){return(Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(37);var Xr=function(e){var t;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fr(e,t)}(a,r.Component);var t,n,i=Vr(a);function a(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=i.call.apply(i,[this].concat(r))).state={hovered:!1},t.setEntityAlignmentLeft=function(){t.setEntityAlignment("left")},t.setEntityAlignmentRight=function(){t.setEntityAlignment("right")},t.setEntityAlignmentCenter=function(){t.setEntityAlignment("none")},t.setEntityAlignment=function(n){var r=t.props,o=r.block,i=r.contentState,a=o.getEntityAt(0);i.mergeEntityData(a,{alignment:n}),e.onChange(s.EditorState.push(e.getEditorState(),i,"change-block-data")),t.setState({dummy:!0})},t.toggleHovered=function(){var e=!t.state.hovered;t.setState({hovered:e})},t}return t=a,(n=[{key:"renderAlignmentOptions",value:function(e){return o.a.createElement("div",{className:u()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===e})},o.a.createElement(W,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(W,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(W,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var t=this.props,n=t.block,r=t.contentState,i=this.state.hovered,a=e.isReadOnly,s=e.isImageAlignmentEnabled,l=r.getEntity(n.getEntityAt(0)).getData(),c=l.src,d=l.alignment,p=l.height,f=l.width,m=l.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:u()("rdw-image-alignment",{"rdw-image-left":"left"===d,"rdw-image-right":"right"===d,"rdw-image-center":!d||"none"===d})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:c,alt:m,style:{height:p,width:f}}),!a()&&i&&s()?this.renderAlignmentOptions(d):void 0))}}])&&Rr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}()).propTypes={block:a.a.object,contentState:a.a.object},t},Yr=function(e,t){return function(n){if("function"==typeof t){var r=t(n,e,e.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=e.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:Xr(e),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:Wr,editable:!1}}}},Zr={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},Gr={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Précédent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"Téléchargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour télécharger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fenêtre","components.controls.link.link":"Lier","components.controls.link.unlink":"Délier","components.controls.list.list":"Liste","components.controls.list.unordered":"Désordonnée","components.controls.list.ordered":"Ordonnée","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"添加","generic.cancel":"取消","components.controls.blocktype.h1":"标题1","components.controls.blocktype.h2":"标题2","components.controls.blocktype.h3":"标题3","components.controls.blocktype.h4":"标题4","components.controls.blocktype.h5":"标题5","components.controls.blocktype.h6":"标题6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"源码","components.controls.blocktype.blocktype":"样式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"选色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"内嵌","components.controls.embedded.embeddedlink":"内嵌网页","components.controls.embedded.enterlink":"输入网页地址","components.controls.emoji.emoji":"表情符号","components.controls.fontfamily.fontfamily":"字体","components.controls.fontsize.fontsize":"字号","components.controls.history.history":"历史","components.controls.history.undo":"撤销","components.controls.history.redo":"恢复","components.controls.image.image":"图片","components.controls.image.fileUpload":"来自文件","components.controls.image.byURL":"在线图片","components.controls.image.dropFileText":"点击或者拖拽文件上传","components.controls.inline.bold":"粗体","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下划线","components.controls.inline.strikethrough":"删除线","components.controls.inline.monospace":"等宽字体","components.controls.inline.superscript":"上标","components.controls.inline.subscript":"下标","components.controls.link.linkTitle":"超链接","components.controls.link.linkTarget":"输入链接地址","components.controls.link.linkTargetOption":"在新窗口中打开链接","components.controls.link.link":"链接","components.controls.link.unlink":"删除链接","components.controls.list.list":"列表","components.controls.list.unordered":"项目符号","components.controls.list.ordered":"编号","components.controls.list.indent":"增加缩进量","components.controls.list.outdent":"减少缩进量","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文本对齐","components.controls.textalign.left":"文本左对齐","components.controls.textalign.center":"居中","components.controls.textalign.right":"文本右对齐","components.controls.textalign.justify":"两端对齐"},ru:{"generic.add":"Добавить","generic.cancel":"Отменить","components.controls.blocktype.h1":"Заголовок 1","components.controls.blocktype.h2":"Заголовок 2","components.controls.blocktype.h3":"Заголовок 3","components.controls.blocktype.h4":"Заголовок 4","components.controls.blocktype.h5":"Заголовок 5","components.controls.blocktype.h6":"Заголовок 6","components.controls.blocktype.blockquote":"Цитата","components.controls.blocktype.code":"Код","components.controls.blocktype.blocktype":"Форматирование","components.controls.blocktype.normal":"Обычный","components.controls.colorpicker.colorpicker":"Выбор цвета","components.controls.colorpicker.text":"Текст","components.controls.colorpicker.background":"Фон","components.controls.embedded.embedded":"Встраивание","components.controls.embedded.embeddedlink":"Ссылка в iFrame","components.controls.embedded.enterlink":"Вставьте ссылку","components.controls.emoji.emoji":"Эмодзи","components.controls.fontfamily.fontfamily":"Шрифт","components.controls.fontsize.fontsize":"Размер шрифта","components.controls.history.history":"История","components.controls.history.undo":"Отменить","components.controls.history.redo":"Вернуть","components.controls.image.image":"Изображение","components.controls.image.fileUpload":"Файлы","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Переместите в эту область файлы или кликните для загрузки","components.controls.inline.bold":"Жирный","components.controls.inline.italic":"Курсив","components.controls.inline.underline":"Подчеркивание","components.controls.inline.strikethrough":"Зачеркивание","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Верхний индекс","components.controls.inline.subscript":"Нижний индекс","components.controls.link.linkTitle":"Текст","components.controls.link.linkTarget":"Адрес ссылки","components.controls.link.linkTargetOption":"Открывать в новом окне","components.controls.link.link":"Ссылка","components.controls.link.unlink":"Убрать ссылку","components.controls.list.list":"Список","components.controls.list.unordered":"Неупорядоченный","components.controls.list.ordered":"Упорядоченный","components.controls.list.indent":"Отступ","components.controls.list.outdent":"Выступ","components.controls.remove.remove":"Удалить","components.controls.textalign.textalign":"Выравнивание текста","components.controls.textalign.left":"Слева","components.controls.textalign.center":"По центру","components.controls.textalign.right":"Справа","components.controls.textalign.justify":"Выравнить"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"Título 1","components.controls.blocktype.h2":"Título 2","components.controls.blocktype.h3":"Título 3","components.controls.blocktype.h4":"Título 4","components.controls.blocktype.h5":"Título 5","components.controls.blocktype.h6":"Título 6","components.controls.blocktype.blockquote":"Citação","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Histórico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"Itálico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"Título do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem ordenção","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"À Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"À Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"입력","generic.cancel":"취소","components.controls.blocktype.h1":"제목1","components.controls.blocktype.h2":"제목2","components.controls.blocktype.h3":"제목3","components.controls.blocktype.h4":"제목4","components.controls.blocktype.h5":"제목5","components.controls.blocktype.h6":"제목6","components.controls.blocktype.blockquote":"인용","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"블록","components.controls.blocktype.normal":"표준","components.controls.colorpicker.colorpicker":"색상 선택","components.controls.colorpicker.text":"글꼴색","components.controls.colorpicker.background":"배경색","components.controls.embedded.embedded":"임베드","components.controls.embedded.embeddedlink":"임베드 링크","components.controls.embedded.enterlink":"주소를 입력하세요","components.controls.emoji.emoji":"이모지","components.controls.fontfamily.fontfamily":"글꼴","components.controls.fontsize.fontsize":"글꼴 크기","components.controls.history.history":"히스토리","components.controls.history.undo":"실행 취소","components.controls.history.redo":"다시 실행","components.controls.image.image":"이미지","components.controls.image.fileUpload":"파일 업로드","components.controls.image.byURL":"주소","components.controls.image.dropFileText":"클릭하거나 파일을 드롭하여 업로드하세요","components.controls.inline.bold":"굵게","components.controls.inline.italic":"기울임꼴","components.controls.inline.underline":"밑줄","components.controls.inline.strikethrough":"취소선","components.controls.inline.monospace":"고정 너비","components.controls.inline.superscript":"위 첨자","components.controls.inline.subscript":"아래 첨자","components.controls.link.linkTitle":"링크 제목","components.controls.link.linkTarget":"링크 타겟","components.controls.link.linkTargetOption":"새창으로 열기","components.controls.link.link":"링크","components.controls.link.unlink":"링크 제거","components.controls.list.list":"리스트","components.controls.list.unordered":"일반 리스트","components.controls.list.ordered":"순서 리스트","components.controls.list.indent":"들여쓰기","components.controls.list.outdent":"내어쓰기","components.controls.remove.remove":"삭제","components.controls.textalign.textalign":"텍스트 정렬","components.controls.textalign.left":"왼쪽","components.controls.textalign.center":"중앙","components.controls.textalign.right":"오른쪽","components.controls.textalign.justify":"양쪽"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzufügen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"Überschrift 1","components.controls.blocktype.h2":"Überschrift 2","components.controls.blocktype.h3":"Überschrift 3","components.controls.blocktype.h4":"Überschrift 4","components.controls.blocktype.h5":"Überschrift 5","components.controls.blocktype.h6":"Überschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgröße","components.controls.history.history":"Historie","components.controls.history.undo":"Zurücknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster öffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufzählung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergrößern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksbündig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsbündig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilføj","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontstørrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverførsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hævet","components.controls.inline.subscript":"Sænket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link Mål","components.controls.link.linkTargetOption":"Åbn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"Højre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"新增","generic.cancel":"取消","components.controls.blocktype.h1":"標題1","components.controls.blocktype.h2":"標題2","components.controls.blocktype.h3":"標題3","components.controls.blocktype.h4":"標題4","components.controls.blocktype.h5":"標題5","components.controls.blocktype.h6":"標題6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"程式碼","components.controls.blocktype.blocktype":"樣式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"選色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"內嵌","components.controls.embedded.embeddedlink":"內嵌網頁","components.controls.embedded.enterlink":"輸入網頁地址","components.controls.emoji.emoji":"表情符號","components.controls.fontfamily.fontfamily":"字體","components.controls.fontsize.fontsize":"字體大小","components.controls.history.history":"歷史紀錄","components.controls.history.undo":"復原","components.controls.history.redo":"重做","components.controls.image.image":"圖片","components.controls.image.fileUpload":"檔案上傳","components.controls.image.byURL":"網址","components.controls.image.dropFileText":"點擊或拖曳檔案上傳","components.controls.inline.bold":"粗體","components.controls.inline.italic":"斜體","components.controls.inline.underline":"底線","components.controls.inline.strikethrough":"刪除線","components.controls.inline.monospace":"等寬字體","components.controls.inline.superscript":"上標","components.controls.inline.subscript":"下標","components.controls.link.linkTitle":"超連結","components.controls.link.linkTarget":"輸入連結位址","components.controls.link.linkTargetOption":"在新視窗打開連結","components.controls.link.link":"連結","components.controls.link.unlink":"刪除連結","components.controls.list.list":"列表","components.controls.list.unordered":"項目符號","components.controls.list.ordered":"編號","components.controls.list.indent":"增加縮排","components.controls.list.outdent":"減少縮排","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文字對齊","components.controls.textalign.left":"文字向左對齊","components.controls.textalign.center":"文字置中","components.controls.textalign.right":"文字向右對齊","components.controls.textalign.justify":"兩端對齊"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nagłówek 1","components.controls.blocktype.h2":"Nagłówek 2","components.controls.blocktype.h3":"Nagłówek 3","components.controls.blocktype.h4":"Nagłówek 4","components.controls.blocktype.h5":"Nagłówek 5","components.controls.blocktype.h6":"Nagłówek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Tło","components.controls.embedded.embedded":"Osadź","components.controls.embedded.embeddedlink":"Osadź odnośnik","components.controls.embedded.enterlink":"Wprowadź odnośnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Krój czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Ponów","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prześlij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upuść plik lub kliknij, aby przesłać","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkreślenie","components.controls.inline.strikethrough":"Przekreślenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks górny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytuł odnośnika","components.controls.link.linkTarget":"Adres odnośnika","components.controls.link.linkTargetOption":"Otwórz odnośnik w nowej karcie","components.controls.link.link":"Wstaw odnośnik","components.controls.link.unlink":"Usuń odnośnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporządkowana","components.controls.list.ordered":"Lista uporządkowana","components.controls.list.indent":"Zwiększ wcięcie","components.controls.list.outdent":"Zmniejsz wcięcie","components.controls.remove.remove":"Usuń","components.controls.textalign.textalign":"Wyrównaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do środka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"Añadir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Código","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tamaño de fuente","components.controls.history.history":"Histórico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobreíndice","components.controls.inline.subscript":"Subíndice","components.controls.link.linkTitle":"Título del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineación del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"追加","generic.cancel":"キャンセル","components.controls.blocktype.h1":"見出し1","components.controls.blocktype.h2":"見出し2","components.controls.blocktype.h3":"見出し3","components.controls.blocktype.h4":"見出し4","components.controls.blocktype.h5":"見出し5","components.controls.blocktype.h6":"見出し6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"コード","components.controls.blocktype.blocktype":"スタイル","components.controls.blocktype.normal":"標準テキスト","components.controls.colorpicker.colorpicker":"テキストの色","components.controls.colorpicker.text":"テキスト","components.controls.colorpicker.background":"ハイライト","components.controls.embedded.embedded":"埋め込み","components.controls.embedded.embeddedlink":"埋め込みリンク","components.controls.embedded.enterlink":"リンクを入力してください","components.controls.emoji.emoji":"絵文字","components.controls.fontfamily.fontfamily":"フォント","components.controls.fontsize.fontsize":"フォントサイズ","components.controls.history.history":"履歴","components.controls.history.undo":"元に戻す","components.controls.history.redo":"やり直し","components.controls.image.image":"画像","components.controls.image.fileUpload":"ファイルをアップロード","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"ここに画像をドラッグするか、クリックしてください","components.controls.inline.bold":"太字","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下線","components.controls.inline.strikethrough":"取り消し線","components.controls.inline.monospace":"等幅フォント","components.controls.inline.superscript":"上付き文字","components.controls.inline.subscript":"下付き文字","components.controls.link.linkTitle":"リンクタイトル","components.controls.link.linkTarget":"リンク対象","components.controls.link.linkTargetOption":"新しいウィンドウで開く","components.controls.link.link":"リンク","components.controls.link.unlink":"リンクを解除","components.controls.list.list":"リスト","components.controls.list.unordered":"箇条書き","components.controls.list.ordered":"番号付き","components.controls.list.indent":"インデント増","components.controls.list.outdent":"インデント減","components.controls.remove.remove":"書式をクリア","components.controls.textalign.textalign":"整列","components.controls.textalign.left":"左揃え","components.controls.textalign.center":"中央揃え","components.controls.textalign.right":"右揃え","components.controls.textalign.justify":"両端揃え"}};function Ur(e){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qr(){return(qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){_r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $r(e){return function(e){if(Array.isArray(e))return eo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function to(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function no(e,t){return(no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oo(e);if(t){var o=oo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function oo(e){return(oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(38),n(39);var io=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}(i,r.Component);var e,t,n=ro(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onEditorBlur=function(){t.setState({editorFocused:!1})},t.onEditorFocus=function(e){var n=t.props.onFocus;t.setState({editorFocused:!0});var r=t.focusHandler.isEditorFocused();n&&r&&n(e)},t.onEditorMouseDown=function(){t.focusHandler.onEditorMouseDown()},t.keyBindingFn=function(e){if("Tab"!==e.key)return"ArrowUp"!==e.key&&"ArrowDown"!==e.key||w()&&e.preventDefault(),Object(s.getDefaultKeyBinding)(e);var n=t.props.onTab;if(!n||!n(e)){var r=Object(l.changeDepth)(t.state.editorState,e.shiftKey?-1:1,4);r&&r!==t.state.editorState&&(t.onChange(r),e.preventDefault())}return null},t.onToolbarFocus=function(e){var n=t.props.onFocus;n&&t.focusHandler.isToolbarFocused()&&n(e)},t.onWrapperBlur=function(e){var n=t.props.onBlur;n&&t.focusHandler.isEditorBlur(e)&&n(e,t.getEditorState())},t.onChange=function(e){var n=t.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(l.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(o&&o(e,t.props.wrapperId),O(t.props,"editorState")?t.afterChange(e):t.setState({editorState:e},t.afterChange(e)))},t.setWrapperReference=function(e){t.wrapper=e},t.setEditorReference=function(e){t.props.editorRef&&t.props.editorRef(e),t.editor=e},t.getCompositeDecorator=function(e){var n=[].concat($r(t.props.customDecorators),[{strategy:Ar,component:yr({showOpenOptionOnHover:e.link.showOpenOptionOnHover})}]);return t.props.mention&&n.push.apply(n,$r(Er(Jr(Jr({},t.props.mention),{},{onChange:t.onChange,getEditorState:t.getEditorState,getSuggestions:t.getSuggestions,getWrapperRef:t.getWrapperRef,modalHandler:t.modalHandler})))),t.props.hashtag&&n.push(Sr(t.props.hashtag)),new s.CompositeDecorator(n)},t.getWrapperRef=function(){return t.wrapper},t.getEditorState=function(){return t.state?t.state.editorState:null},t.getSuggestions=function(){return t.props.mention&&t.props.mention.suggestions},t.afterChange=function(e){setTimeout((function(){var n=t.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(s.convertToRaw)(e.getCurrentContent())),o&&o(Object(s.convertToRaw)(e.getCurrentContent()))}))},t.isReadOnly=function(){return t.props.readOnly},t.isImageAlignmentEnabled=function(){return t.state.toolbar.image.alignmentEnabled},t.createEditorState=function(e){var n;if(O(t.props,"editorState"))t.props.editorState&&(n=s.EditorState.set(t.props.editorState,{decorator:e}));else if(O(t.props,"defaultEditorState"))t.props.defaultEditorState&&(n=s.EditorState.set(t.props.defaultEditorState,{decorator:e}));else if(O(t.props,"contentState")){if(t.props.contentState){var r=Object(s.convertFromRaw)(t.props.contentState);n=s.EditorState.createWithContent(r,e),n=s.EditorState.moveSelectionToEnd(n)}}else if(O(t.props,"defaultContentState")||O(t.props,"initialContentState")){var o=t.props.defaultContentState||t.props.initialContentState;o&&(o=Object(s.convertFromRaw)(o),n=s.EditorState.createWithContent(o,e),n=s.EditorState.moveSelectionToEnd(n))}return n||s.EditorState.createEmpty(e)},t.filterEditorProps=function(e){return t=e,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],r=Object.keys(t).filter((function(e){return n.indexOf(e)<0})),o={},r&&0<r.length&&r.forEach((function(e){o[e]=t[e]})),o;var t,n,r,o},t.getStyleMap=function(e){return Jr(Jr({},Object(l.getCustomStyleMap)()),e.customStyleMap)},t.changeEditorState=function(e){var n=Object(s.convertFromRaw)(e),r=t.state.editorState;return r=s.EditorState.push(r,n,"insert-characters"),s.EditorState.moveSelectionToEnd(r)},t.focusEditor=function(){setTimeout((function(){t.editor.focus()}))},t.handleKeyCommand=function(e){var n=t.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(e)){var i=s.RichUtils.handleKeyCommand(r,e);if(i)return t.onChange(i),!0}return!1},t.handleReturn=function(e){if(w())return!0;var n=t.state.editorState,r=Object(l.handleNewLine)(n,e);return!!r&&(t.onChange(r),!0)},t.handlePastedTextFn=function(e,n){var r=t.state.editorState,o=t.props,i=o.handlePastedText,a=o.stripPastedStyles;return i?i(e,n,r,t.onChange):!a&&function(e,t,n,r){var o=Object(l.getSelectedBlock)(n);if(o&&"code"===o.type){var i=s.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());return r(s.EditorState.push(n,i,"insert-characters")),!0}if(t){var a=P()(t),c=n.getCurrentContent();return a.entityMap.forEach((function(e,t){c=c.mergeEntityData(t,e)})),c=s.Modifier.replaceWithFragment(c,n.getSelection(),new N.List(a.contentBlocks)),r(s.EditorState.push(n,c,"insert-characters")),!0}return!1}(e,n,r,t.onChange)},t.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?t.focusHandler.onInputMouseDown():e.preventDefault()};var r=D(Zr,e.toolbar),o=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());t.wrapperId="rdw-wrapper-".concat(o),t.modalHandler=new f,t.focusHandler=new v,t.blockRendererFn=Yr({isReadOnly:t.isReadOnly,isImageAlignmentEnabled:t.isImageAlignmentEnabled,getEditorState:t.getEditorState,onChange:t.onChange},e.customBlockRenderFunc),t.editorProps=t.filterEditorProps(e),t.customStyleMap=t.getStyleMap(e),t.compositeDecorator=t.getCompositeDecorator(r);var a=t.createEditorState(t.compositeDecorator);return Object(l.extractInlineStyle)(a),t.state={editorState:a,editorFocused:!1,toolbar:r},t}return e=i,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var i=D(Zr,i);t.toolbar=i}if(O(this.props,"editorState")&&r!==e.editorState)t.editorState=r?s.EditorState.set(r,{decorator:this.compositeDecorator}):s.EditorState.createEmpty(this.compositeDecorator);else if(O(this.props,"contentState")&&o!==e.contentState)if(o){var a=this.changeEditorState(o);a&&(t.editorState=a)}else t.editorState=s.EditorState.createEmpty(this.compositeDecorator);e.editorState===r&&e.contentState===o||Object(l.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var e=this.state,t=e.editorState,n=e.editorFocused,r=e.toolbar,i=this.props,a=i.locale,c=i.localization,d=c.locale,p=c.translations,f=i.toolbarCustomButtons,m=i.toolbarOnFocus,h=i.toolbarClassName,g=i.toolbarHidden,v=i.editorClassName,A=i.wrapperClassName,b=i.toolbarStyle,x=i.editorStyle,w=i.wrapperStyle,C=i.uploadCallback,O=i.ariaLabel,M={modalHandler:this.modalHandler,editorState:t,onChange:this.onChange,translations:Jr(Jr({},Gr[a||d]),p)},z=n||this.focusHandler.isInputFocused()||!m;return o.a.createElement("div",{id:this.wrapperId,className:u()(A,"rdw-editor-wrapper"),style:w,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!g&&o.a.createElement("div",{className:u()("rdw-editor-toolbar",h),style:Jr({visibility:z?"visible":"hidden"},b),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&m).toString(),onFocus:this.onToolbarFocus},r.options.map((function(e,t){var n=cr[e],i=r[e];return"image"===e&&C&&(i.uploadCallback=C),o.a.createElement(n,qr({key:t},M,{config:i}))})),f&&f.map((function(e,t){return o.a.cloneElement(e,Jr({key:t},M))}))),o.a.createElement("div",{ref:this.setWrapperReference,className:u()(v,"rdw-editor-main"),style:x,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:y.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(s.Editor,qr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:j,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:O||"rdw-editor",blockRenderMap:l.blockRenderMap},this.editorProps))))}}])&&to(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();io.propTypes={onChange:a.a.func,onEditorStateChange:a.a.func,onContentStateChange:a.a.func,initialContentState:a.a.object,defaultContentState:a.a.object,contentState:a.a.object,editorState:a.a.object,defaultEditorState:a.a.object,toolbarOnFocus:a.a.bool,spellCheck:a.a.bool,stripPastedStyles:a.a.bool,toolbar:a.a.object,toolbarCustomButtons:a.a.array,toolbarClassName:a.a.string,toolbarHidden:a.a.bool,locale:a.a.string,localization:a.a.object,editorClassName:a.a.string,wrapperClassName:a.a.string,toolbarStyle:a.a.object,editorStyle:a.a.object,wrapperStyle:a.a.object,uploadCallback:a.a.func,onFocus:a.a.func,onBlur:a.a.func,onTab:a.a.func,mention:a.a.object,hashtag:a.a.object,textAlignment:a.a.string,readOnly:a.a.bool,tabIndex:a.a.number,placeholder:a.a.string,ariaLabel:a.a.string,ariaOwneeID:a.a.string,ariaActiveDescendantID:a.a.string,ariaAutoComplete:a.a.string,ariaDescribedBy:a.a.string,ariaExpanded:a.a.string,ariaHasPopup:a.a.string,customBlockRenderFunc:a.a.func,wrapperId:a.a.number,customDecorators:a.a.array,editorRef:a.a.func,handlePastedText:a.a.func},io.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var ao=io}],r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8);function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i}(e,D,AC());var xC=bC.exports;function wC(e){var t=e.html,n=void 0;"undefined"!=typeof document&&(n=yC(t));var r=n?D.EditorState.createWithContent(D.ContentState.createFromBlockArray(n.contentBlocks,n.entityMap)):D.EditorState.createEmpty();return Y.jsx(xC.Editor,{editorState:r,readOnly:!0,toolbarHidden:!0})}function jC(e){var t=e.value,r=e.type;return Y.jsx(n.Card,{sx:{py:1,px:3},children:r&&r===Uh.RICH_TEXT_I?Y.jsx(mC,{htmlString:t}):Y.jsx(wC,{html:t})})}function CC(e){var t=e.link,r=function(){var e="http"!==t.slice(0,4)?"https://"+t:t;window.open(e,"_blank")};return Y.jsx(n.Chip,{label:t,size:"medium",color:"primary",clickable:!0,onClick:r,deleteIcon:Y.jsx(jo,{icon:"gridicons:external"}),onDelete:r})}function OC(e){var t=e.value;return Y.jsx(n.Grid,{container:!0,justifyContent:"start",rowGap:"10px",columnGap:"10px",alignItems:"center",width:"100%",children:t.map((function(e){return Y.jsx(n.Chip,{label:e,size:"small"})}))})}var MC="---";function zC(e){var t=e.value,r=e.fieldschema,o=e.type,i=e.enumvalues,a=e.children;if(null==t)return Y.jsx(n.Typography,Z({},e,{children:MC}));switch(o){case Uh.STRING:case Uh.NUMBER:case Uh.OBJECTID:case Uh.PHONENUMBER:case Uh.TIMEPICKER:case Uh.PASSWORD:return Y.jsx(n.Typography,Z({},e,{sx:{wordWrap:"break-word"},children:t}));case Uh.NESTEDSCHEMA:return Y.jsx(Rj,Z({},e,{value:t,fieldschema:r}));case Uh.LOCALIZEDString:return Y.jsx(Fj,{value:t});case Uh.BOOLEAN:return Y.jsx(n.Chip,{label:t?t.toString():"false",variant:"outlined",size:"small"});case Uh.COLOR:return Y.jsx(n.Typography,Z({},e,{color:t,children:t}));case Uh.DATE:return Y.jsx(tC,Z({},e));case Uh.ENUM:return Y.jsx(nC,Z({enumvalues:i},e));case Uh.RICH_TEXT_I:case Uh.RICH_TEXT_II:return Y.jsx(jC,Z({},e));case Uh.LOCATION:return Y.jsx(rC,Z({},e));case Uh.IMAGE:return Y.jsx(cC,Z({},e));case Uh.MULTIPLE_TEXT:return Y.jsx(OC,Z({},e));case Uh.ARRAY:return t&&t.length>0?Y.jsx(oC,Z({},e,{value:t,children:a})):Y.jsx(n.Typography,Z({},e,{children:MC}));case Uh.REFERENCE:return Y.jsx(fC,Z({},e));case Uh.EXTERNAL_LINK:return Y.jsx(CC,{link:e.value});default:return Y.jsx(Y.Fragment,{})}}var DC=function(){function e(){}return e.enhance=function(e){var t=this;return e?e.includes("_")?e.split("_").map((function(e){return t.enhanceEnum(e)})).join(" "):this.enhanceEnum(e):MC},e.enhanceEnum=function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},e}();function TC(e){var t,r=e.values,o=e.name,i=e.label,a=e.size,s=e.disabled;return Y.jsx(pp,{name:o,size:a,label:i,disabled:s,SelectProps:{native:!1,sx:{textTransform:"capitalize"}},children:null===(t=Object.keys(r))||void 0===t?void 0:t.map((function(e){var t,o,i,a=(null===(t=r[e])||void 0===t?void 0:t.label)?e:r[e],s=null!==(i=null===(o=r[e])||void 0===o?void 0:o.label)&&void 0!==i?i:r[e];return Y.jsx(n.MenuItem,{value:a,sx:{mx:1,my:.5,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:DC.enhance(s)},a)}))})}function PC(e){var t=e.label,r=e.name,o=e.handleDrop;return Y.jsx(np,{name:r,label:t,accept:{"image/*":[".jpeg",".png","jpg",".webp"]},maxSize:3145728,onDrop:function(e){return o(e,r)},helperText:Y.jsxs(n.Typography,{variant:"caption",sx:{mt:2,mx:"auto",display:"block",textAlign:"center",color:"text.secondary"},children:["Add your ",t,Y.jsx("br",{}),Y.jsx("br",{})," max size of ",Na(3145728)]})})}function NC(e){var t=e.key,r=e.label,o=e.name,i=e.handleDrop;return Y.jsx(n.Grid,{item:!0,xs:12,md:3,children:Y.jsx(n.Box,{sx:{mb:5,mt:5},children:Y.jsx(PC,{label:r,name:o,handleDrop:i})})},t)}function EC(e){var t=e.name,n=e.minDate,r=e.maxDate,o=G(e,["name","minDate","maxDate"]),i=c.useFormContext().control;return Y.jsx(c.Controller,{name:t,control:i,render:function(e){var t=e.field,i=e.fieldState.error;return Y.jsx(v.DateTimePicker,{label:o.label,value:new Date(t.value),minDate:null==n?void 0:n.getDate(),maxDate:null==r?void 0:r.getDate(),onChange:function(e){t.onChange(e)},slotProps:{textField:{fullWidth:!0,margin:"normal",helperText:null==i?void 0:i.message,error:!!i}}})}})}var BC={exports:{}};BC.exports=function(){function e(e,t){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&t(n,e[n])}function t(e){return null==e||0===e.length||0===e.trim().length}var n={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function r(e){return e&&n[e]}function o(t){var n="";return e(t,(function(e,t){t&&(n+="".concat(e,":").concat(t,";"))})),n}function i(e,t){var n=[];if(t)for(var r=0,o=0,i=e,a=t.trigger||"#",s=t.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(s+a))>=0&&(i=i.substr(o+(s+a).length),r+=o+s.length),o>=0){var l=i.indexOf(s)>=0?i.indexOf(s):i.length,c=i.substr(0,l);c&&c.length>0&&n.push({offset:r,length:c.length+a.length,type:"HASHTAG"}),r+=a.length}return n}function a(e,t){var n=[],r=0,o=e.entityRanges.map((function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}}));return(o=(o=o.concat(i(e.text,t))).sort((function(e,t){return e.offset-t.offset}))).forEach((function(e){e.offset>r&&n.push({start:r,end:e.offset}),n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),r=e.offset+e.length})),r<e.text.length&&n.push({start:r,end:e.text.length}),n}function s(e){return!(!(e.entityRanges.length>0)||!t(e.text)&&"atomic"!==e.type)}function l(e){var t=e.text,n=e.inlineStyleRanges,r={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};return n&&n.length>0&&n.forEach((function(e){for(var t=e.offset,n=t+e.length,o=t;o<n;o+=1)0===e.style.indexOf("color-")?r.COLOR[o]=e.style.substring(6):0===e.style.indexOf("bgcolor-")?r.BGCOLOR[o]=e.style.substring(8):0===e.style.indexOf("fontsize-")?r.FONTSIZE[o]=e.style.substring(9):0===e.style.indexOf("fontfamily-")?r.FONTFAMILY[o]=e.style.substring(11):r[e.style]&&(r[e.style][o]=!0)})),r}function c(e,t){var n={};return e.COLOR[t]&&(n.COLOR=e.COLOR[t]),e.BGCOLOR[t]&&(n.BGCOLOR=e.BGCOLOR[t]),e.FONTSIZE[t]&&(n.FONTSIZE=e.FONTSIZE[t]),e.FONTFAMILY[t]&&(n.FONTFAMILY=e.FONTFAMILY[t]),e.UNDERLINE[t]&&(n.UNDERLINE=!0),e.ITALIC[t]&&(n.ITALIC=!0),e.BOLD[t]&&(n.BOLD=!0),e.STRIKETHROUGH[t]&&(n.STRIKETHROUGH=!0),e.CODE[t]&&(n.CODE=!0),e.SUBSCRIPT[t]&&(n.SUBSCRIPT=!0),e.SUPERSCRIPT[t]&&(n.SUPERSCRIPT=!0),n}function u(e,t,n){var r=!0;return n>0&&n<e.length?t.forEach((function(t){r=r&&e[t][n]===e[t][n-1]})):r=!1,r}function d(e,t){return"BOLD"===e?"<strong>".concat(t,"</strong>"):"ITALIC"===e?"<em>".concat(t,"</em>"):"UNDERLINE"===e?"<ins>".concat(t,"</ins>"):"STRIKETHROUGH"===e?"<del>".concat(t,"</del>"):"CODE"===e?"<code>".concat(t,"</code>"):"SUPERSCRIPT"===e?"<sup>".concat(t,"</sup>"):"SUBSCRIPT"===e?"<sub>".concat(t,"</sub>"):t}function p(e){return e&&e.length>0?e.map((function(e){switch(e){case"\n":return"<br>";case"&":return"&";case"<":return"<";case">":return">";default:return e}})).join(""):""}function f(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';return e.COLOR&&(n+="color: ".concat(e.COLOR,";")),e.BGCOLOR&&(n+="background-color: ".concat(e.BGCOLOR,";")),e.FONTSIZE&&(n+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";")),e.FONTFAMILY&&(n+="font-family: ".concat(e.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(t,"</span>")}return t}function m(e,t,n,r){var o=e[t];if("function"==typeof r){var i=r(o,n);if(i)return i}if("MENTION"===o.type)return'<a href="'.concat(o.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(o.data.value,'">').concat(n,"</a>");if("LINK"===o.type){var a=o.data.targetOption||"_self";return'<a href="'.concat(o.data.url,'" target="').concat(a,'">').concat(n,"</a>")}if("IMAGE"===o.type){var s=o.data.alignment;return s&&s.length?'<div style="text-align:'.concat(s,';"><img src="').concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/></div>'):'<img src="'.concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/>')}return"EMBEDDED_LINK"===o.type?'<iframe width="'.concat(o.data.width,'" height="').concat(o.data.height,'" src="').concat(o.data.src,'" frameBorder="0"></iframe>'):n}function h(e,t,n,r){var o=[],i=Array.from(e.text);if(i.length>0)for(var a,s=l(e),d=n;d<r;d+=1)d!==n&&u(s,t,d)?(a.text.push(i[d]),a.end=d+1):(a={styles:c(s,d),text:[i[d]],start:d,end:d+1},o.push(a));return o}function g(e){if(e){for(var t=e,n=0;n<t.length&&" "===e[n];n+=1)t=t.replace(" "," ");return t}return e}function v(e){if(e){for(var t=e,n=t.length-1;n>=0&&" "===t[n];n-=1)t="".concat(t.substring(0,n)," ").concat(t.substring(n+1));return t}return e}function A(t){var n=t.styles,r=p(t.text);return e(n,(function(e,t){r=d(e,r)})),r}function y(e,t){var n=h(e,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],t.start,t.end),r="";return n.forEach((function(e){r+=A(e)})),r=f(t.styles,r)}function b(e,t,n,r){var o=[];h(e,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach((function(t){o.push(y(e,t))}));var i=o.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(i=m(t,n.entityKey,i,r)):"HASHTAG"===n.type&&(i='<a href="'.concat(i,'" class="wysiwyg-hashtag">').concat(i,"</a>")),i}function x(e,t,n,r){var o=[],i=a(e,n);return i.forEach((function(n,a){var s=b(e,t,n,r);0===a&&(s=g(s)),a===i.length-1&&(s=v(s)),o.push(s)})),o.join("")}function w(e,t,n,i,a){var l=[];if(s(e))l.push(m(t,e.entityRanges[0].key,void 0,a));else{var c=r(e.type);if(c){l.push("<".concat(c));var u=o(e.data);u&&l.push(' style="'.concat(u,'"')),i&&l.push(' dir = "auto"'),l.push(">"),l.push(x(e,t,n,a)),l.push("</".concat(c,">"))}}return l.push("\n"),l.join("")}function j(e){return"unordered-list-item"===e||"ordered-list-item"===e}function C(e,t,n,i,a){var s,l=[],c=[];return e.forEach((function(e){var u=!1;if(s?s.type!==e.type?(l.push("</".concat(r(s.type),">\n")),l.push("<".concat(r(e.type),">\n"))):s.depth===e.depth?c&&c.length>0&&(l.push(C(c,t,n,i,a)),c=[]):(u=!0,c.push(e)):l.push("<".concat(r(e.type),">\n")),!u){l.push("<li");var d=o(e.data);d&&l.push(' style="'.concat(d,'"')),i&&l.push(' dir = "auto"'),l.push(">"),l.push(x(e,t,n,a)),l.push("</li>\n"),s=e}})),c&&c.length>0&&l.push(C(c,t,n,i,a)),l.push("</".concat(r(s.type),">\n")),l.join("")}function O(e,t,n,r){var o=[];if(e){var i=e.blocks,a=e.entityMap;if(i&&i.length>0){var s=[];if(i.forEach((function(e){if(j(e.type))s.push(e);else{if(s.length>0){var i=C(s,a,t,r);o.push(i),s=[]}var l=w(e,a,t,n,r);o.push(l)}})),s.length>0){var l=C(s,a,t,n,r);o.push(l),s=[]}}}return o.join("")}return O}();var kC,LC=W(BC.exports);function IC(t){var n=t.name,r=t.disabled,o=c.useFormContext(),i=o.control,a=o.setValue,s=o.getValues,l=e.useState({editorState:s(n)&&""!==s(n)?D.EditorState.createWithContent(D.ContentState.createFromBlockArray(yC(s(n)).contentBlocks,yC(s(n)).entityMap)):D.EditorState.createEmpty()}),u=l[0],d=l[1],p=function(e){d({editorState:e}),a(n,LC(D.convertToRaw(e.getCurrentContent())))},f=function(e,t,n){var r=D.convertFromHTML(t),o=D.ContentState.createFromBlockArray(r.contentBlocks,r.entityMap),i=n.getCurrentContent(),a=D.Modifier.replaceWithFragment(i,i.getSelectionAfter(),o.getBlockMap()),s=D.EditorState.push(n,a,"insert-fragment");return p(s),!0};return Y.jsx(c.Controller,{name:n,control:i,render:function(e){return e.field,e.fieldState.error,Y.jsxs("div",{children:[Y.jsx("style",{children:"\n .rdw-editor-toolbar {\n background-color: #E5E4E2;\n border-radius: 10px;\n }\n "}),Y.jsx(xC.Editor,{editorState:u.editorState,wrapperClassName:"wrapper",editorClassName:"editor",placeholder:"Write your text here",onEditorStateChange:p,readOnly:r,handlePastedText:f})]})}})}function SC(e){var t=e.label,r=e.type;return Y.jsxs(n.Stack,{spacing:1,children:[Y.jsx(n.Typography,{variant:"subtitle2",sx:{color:"text.secondary"},children:t}),r===kC.TYPE_ONE?Y.jsx(up,Z({simple:!0},e)):Y.jsx(IC,Z({},e))]})}!function(e){e[e.TYPE_ONE=0]="TYPE_ONE",e[e.TYPE_TWO=1]="TYPE_TWO"}(kC||(kC={}));var WC,HC=function(){function e(){}return e.get=function(e,t){if(!e||!e.properties)return"-";var n=e.properties.title,r=e.properties.model[n].type;return t[n]?r===Uh.LOCALIZEDString?Hg.getLocalizedString(t[n]):t[n]:this.getReferenceValue(t)},e.getReferenceValue=function(e){return e.name?e.name:e.firstName?e.firstName:e.lastName?e.lastName:e.email?e.email:e.title?e.title:e.phoneNumber?e.phoneNumber:e.phone?e.phone:e.number?e.number:e.key?e.key:e._id?e._id:"-"},e}();function RC(e){var t=e.referencedValues,n=e.value,r=e.loading,o=e.extraKey,i=e.fullKey,a=e.key,s=e.apiRoute,l=e.resources,c=e.pathRoute,u=e.schema,d=e.setLoading,p=e.setReferencedValues,f=e.page,m=e.filter,h=e.filters;return U(this,void 0,void 0,(function(){var e,g,v,A,y,b,x,w,j,C,O,M,z,D,T,P,N,E;return q(this,(function(B){switch(B.label){case 0:return n?(e=t[a],g=null==e?void 0:e.page,!e||e.hasNext||m||e.filter!==m?g===f&&e.filter===m?[2]:((v=Z({},r))[i]=!0,d(v),A=m?"&filter=".concat(m):"",h&&(A+="&filters=".concat(h)),y=s||u[a].apiRoute,[4,ug.get(y+"?page=".concat(f).concat(A))]):[2]):[2];case 1:for(b=B.sent(),x=b.data.data,w=x.records,j=x.pageInfo,C=[],O=0;O<w.length;O++)M=w[O],z=l[c||u[a].path],D=fA.getReferenceImage(z,M),T=HC.get(z,M),P={title:T,_id:M._id,image:D},o&&(P[o]=M[o]),C.push(P);return(N=Z({},t))[a]={data:g===f?C:N[a]&&N[a].data?N[a].data.concat(C):C,page:w.length>0?f:g,filter:m,hasNext:j.nextPage>0},p(N),(E=Z({},r))[i]=!1,d(E),[2]}}))}))}!function(e){e.FORM_LIST="formList",e.FILTER_LIST="filterList"}(WC||(WC={}));var FC,VC,QC,XC=function(e,t,n,r){var o,i,a;if(!e[t])return"";var s=null===(o=e[t].filter)||void 0===o?void 0:o[n];if(!s||!r)return"";var l=null!==(a=null===(i=null==r?void 0:r.properties)||void 0===i?void 0:i.model)&&void 0!==a?a:{},c=Object.entries(s).filter((function(e){var t,n=e[0];return null===(t=l[n])||void 0===t?void 0:t.type})).map((function(e){var t,n=e[0],r=e[1];return"".concat(n,"=").concat(r,";;").concat(null===(t=l[n])||void 0===t?void 0:t.type,"^^")})).join("");return encodeURIComponent(c)};function YC(t){var r=t.name,o=t.label,i=t.placeholder;G(t,["name","label","placeholder"]);var a=c.useFormContext(),s=a.control,l=a.getValues;return Y.jsx(c.Controller,{control:s,name:r,render:function(t){var a=t.field.onChange,s=t.fieldState.error;return Y.jsx(n.Autocomplete,{defaultValue:l(r)?l(r):[],multiple:!0,id:"tags-filled",options:[],freeSolo:!0,renderTags:function(t,r){return t.map((function(t,o){return e.createElement(n.Chip,Z({variant:"outlined",label:t},r({index:o}),{key:"".concat(o)}))}))},onChange:function(e,t){a(t)},renderInput:function(e){var t,r,a;return Y.jsx(n.TextField,Z({},e,{label:o,size:"small",placeholder:i,error:!!s,helperText:null!==(t=null==s?void 0:s.message)&&void 0!==t?t:null===(a=null===(r=Object(s))||void 0===r?void 0:r._id)||void 0===a?void 0:a.message}))}})}})}function ZC(e){var t=e.name,r=e.label,o=e.placeholder,i=e.options;G(e,["name","label","placeholder","options"]);var a=c.useFormContext(),s=a.control,l=a.getValues;return Y.jsx(c.Controller,{control:s,name:t,render:function(e){var a=e.field.onChange,s=e.fieldState.error;return Y.jsx(n.Autocomplete,{defaultValue:l(t)?l(t):[],multiple:!0,id:"tags-filled",options:i,getOptionLabel:function(e){return e.label},filterSelectedOptions:!0,onChange:function(e,t){a(t.map((function(e){return e.value})))},renderInput:function(e){var t,i,a;return Y.jsx(n.TextField,Z({},e,{label:r,size:"small",placeholder:o,error:!!s,helperText:null!==(t=null==s?void 0:s.message)&&void 0!==t?t:null===(a=null===(i=Object(s))||void 0===i?void 0:i._id)||void 0===a?void 0:a.message}))}})}})}function GC(e,t){var n=t[e].type;if(t[e].textArea)return FC.LARGE;switch(n){case Uh.PASSWORD:case Uh.OBJECTID:case Uh.NUMBER:case Uh.STRING:case Uh.BOOLEAN:case Uh.COLOR:case Uh.ENUM:case Uh.EXTERNAL_LINK:case Uh.LOCATION:case Uh.PHONENUMBER:case Uh.DATE:case Uh.MULTIPLE_TEXT:case Uh.TIMEPICKER:return FC.SMALL;case Uh.LOCALIZEDString:return FC.MEDIUM;case Uh.FILE:case Uh.IMAGE:return FC.LARGE;case Uh.REFERENCE:return t[e].mediaUploader?FC.LARGE:FC.SMALL;case Uh.ARRAY:return t[e].arrayType===Uh.ENUM?FC.SMALL:FC.CHANGEABLE;default:return FC.CHANGEABLE}}function UC(t){var o=this,i=t.isEdit,a=t.id,s=t.record,u=t.path,d=t.mediaUploaderFields,p=t.onSubmitForm,f=t.referencedMap,m=t.modelRoute,h=t.redirectPath,g=t.afterCreateSnackText,v=t.afterEditSnackText,A=t.enableCreateNewButtonOnReference,y=t.keepFullWidthElements,x=r.useNavigate(),w=e.useState({}),j=w[0],C=w[1],O=e.useState({}),M=O[0],z=O[1],D=e.useState(!1),T=D[0],P=D[1],N=r.useLocation(),E=e.useState("1"),B=E[0],k=E[1],I=e.useState({}),S=I[0],W=I[1],H=e.useState({}),R=H[0],F=H[1],V=e.useState({}),Q=V[0],X=V[1],G=e.useState(!1),J=G[0],_=G[1],$=e.useState(!1),ee=$[0],te=$[1],ne=e.useState({}),re=ne[0],oe=ne[1],ie=e.useContext(Mg).bucketUrl,ae=e.useContext(Ag).resources,se=e.useContext(Og).textFieldSize,le=e.useContext(fg).dashbaordUrlPrefix,ce=e.useContext(wg).paths,ue=ae[u].properties.model,de=ae[u].formProperties,pe=Hg.isEnglish(),fe=pe?"Create new":" اضافة ",me=pe?"Save changes":"تعديل ",he=Bg(),ge=he.setSuccessAlert,ve=he.setErrorAlert,Ae={},ye={};de.map((function(e,t){"_id"!==e&&"__v"!==e&&(Ae[e]=He(ue[e],e))}));var be=L.object().shape(Ae),xe=e.useMemo((function(){return ye}),[]),we=c.useForm({resolver:Da(be),defaultValues:xe}),je=we.reset,Ce=we.control,Oe=we.setValue,Me=we.getValues,ze=we.handleSubmit,De=we.watch,Te={},Pe={};var Ne=function(e){var t=Z({},R);t[e]=!0,F(t)},Ee=function(e,t){k(t)};function Be(e,t,n){var r=Z({},t);r[e]=!1,n(r)}function ke(e,t,n,r){var o=Z({},t);o[e]=r,n(o)}var Le=function(e){var t=Z({},Q);t[e]=void 0,X(t),Oe(e,void 0)};function Ie(e){Pe[e]={},Pe[e][e]={type:ue[e]?ue[e].arrayType:"",enumValues:ue[e]?ue[e].enumValues:[]}}var Se=function(e){k("1"),Te[e].append()},We=function(e,t){t.destination&&Te[e].move(t.source.index,t.destination.index)};function He(e,t){var n,r,o,a,l;switch(ye[t]=void 0,e.type){case Uh.RICH_TEXT_I:case Uh.RICH_TEXT_II:case Uh.EXTERNAL_LINK:case Uh.STRING:ye[t]=s?s[t]:"",l=L.string();break;case Uh.MULTIPLE_TEXT:ye[t]=s?s[t]:"",l=L.array();break;case Uh.OBJECTID:case Uh.PHONENUMBER:ye[t]=s?s[t]:"",l=L.string();break;case Uh.LOCALIZEDString:var c=!!(s&&s[t]&&s[t].length>0);ye[t]={en:c?s[t][0].value:"",ar:c?s[t].length>1?s[t][1].value:s[t][0].value:"",fr:e.includeFrench?c?s[t].length>2?s[t][2].value:s[t][0].value:"":void 0,de:e.includeGerman?c?s[t].length>3?s[t][3].value:s[t][0].value:"":void 0},l=L.mixed();break;case Uh.PASSWORD:ye[t]=s?s[t]:void 0,l=ue[t]&&ue[t].yupValidationSchema?ue[t].yupValidationSchema:L.string().min(6,"Password must be at least 6 characters");break;case Uh.BOOLEAN:ye[t]=!!s&&s[t],l=L.boolean();break;case Uh.IMAGE:ye[t]=s?s[t]:"",l=L.string().nullable();break;case Uh.REFERENCE:var u=ae[e.path];s&&s[t]&&!s[t].length&&(s[t]={_id:s[t]._id,title:HC.get(u,s[t]),url:s[t].url?s[t].url:void 0,image:fA.getReferenceImage(u,s[t])}),ye[t]=s&&s[t]?s[t].title:void 0,l=L.object().nullable();break;case Uh.LOCATION:var d=s&&s[t]?{description:null!==(r=null===(n=s[t])||void 0===n?void 0:n.address)&&void 0!==r?r:"",location:{type:"Point",coordinates:[null===(o=s[t])||void 0===o?void 0:o.longitude,null===(a=s[t])||void 0===a?void 0:a.latitude]}}:void 0;ye[t]=d;break;case Uh.DATE:ye[t]=s?s[t]:new Date,l=L.date().nullable();break;case Uh.NUMBER:ye[t]=s?s[t]:void 0,l=L.number();break;case Uh.TIMEPICKER:ye[t]=s?s[t]:"",l=L.string();break;case Uh.ENUM:ye[t]=s?s[t]:ue[t]&&ue[t].defaultValue?ue[t].defaultValue:void 0,l=L.string();break;case Uh.ARRAY:switch(ye[t]=s?s[t]:void 0,l=L.array(),e.arrayType){case Uh.NESTEDSCHEMA:var p=ue[t]?ue[t].keys:[],f=ue[t]?ue[t].schema:{},m={};ye[t]=s?s[t]:[],null==p||p.map((function(e){"_id"!==e&&(m[e]=He(f[e],e))})),l=l.of(L.object().shape(m));break;case Uh.IMAGE:var h=s&&s[t]&&s[t]?s[t]:[];ye[t]=h,l=l.of(L.mixed());break;case Uh.LOCALIZEDString:var g=[];if(s&&s[t]&&s[t].length)for(var v=0;v<s[t].length;v++){var A=s[t][v],y=K(K([{key:"en",value:A&&A[0]&&A[0].value?A[0].value:""},{key:"ar",value:A&&A[1]&&A[1].value?A[1].value:""}],e.includeFrench?[{key:"fr",value:A&&A[2]&&A[2].value?A[2].value:""}]:[],!0),e.includeGerman?[{key:"de",value:A&&A[3]&&A[3].value?A[3].value:""}]:[],!0);g.push(y)}ye[t]=g,l=l.of(L.mixed());break;case Uh.REFERENCE:u=ae?ae[e.path]:{};if(s&&s[t]&&s[t].length)for(var b=0;b<s[t].length;b++)s[t][b]={_id:s[t][b]._id,title:HC.get(u,s[t][b]),image:fA.getReferenceImage(u,s[t][b])};ye[t]=s&&s[t]?s[t]:[],l=l.of(L.object());break;case Uh.ENUM:ye[t]=s&&s[t]&&s[t].length>0?s[t].map((function(e){return{label:DC.enhance(e),value:e}})):[],l=L.array();break;default:ye[t]=s&&s[t]?s[t]:void 0}break;case Uh.NESTEDSCHEMA:p=ue[t]?ue[t].keys:[];var x=ue[t]?ue[t].schema:{},w={};ye[t]=s&&s[t]?s[t]:{},null==p||p.map((function(e){"_id"!==e&&(w[e]=He(x[e],e)),ye[t][e]=s&&s[t]&&s[t][e]?s[t][e]:void 0})),l=L.object().shape(w)}return l=e.required?e.type===Uh.PASSWORD&&i?null==l?void 0:l.optional():null==l?void 0:l.required(e.value+" is required"):null==l?void 0:l.optional()}var Re=function(e){Oe(e.target.name,e.target.checked);var t=Z({},j);t[e.target.name]=e.target.checked,C(t)},Fe=function(e,t,n,r,i,a,s,l){return U(o,void 0,void 0,(function(){return q(this,(function(o){switch(o.label){case 0:return[4,RC({apiRoute:e,referencedValues:S,value:n,loading:M,fullKey:i,key:r,pathRoute:t,resources:ae,schema:ue,setLoading:z,setReferencedValues:W,page:a,filter:s,filters:l})];case 1:return o.sent(),[2]}}))}))},Ve=e.useCallback((function(e,t,n){var r=e[0];r&&(Oe(t,Object.assign(r,{preview:URL.createObjectURL(r)})),_(!0),tA(r,!0,null!=n?n:qa.NORMAL,(function(e){Oe(t,ie+e),_(!1)})))}),[_]),Qe=function(e,t){Te[e].remove(t)};e.useEffect((function(){U(o,void 0,void 0,(function(){var e,t,n,r;return q(this,(function(o){if(i){if(je(s),e=Z({},Q),d&&d.map((function(t){e[t]=s[t]?s[t]:void 0})),xe)for(t in xe)(n=ue[t])&&n.type===Uh.ARRAY&&n.arrayType===Uh.IMAGE&&((r=Z({},re))[t]=xe[t],oe(r));X(e)}else je(xe);return[2]}))}))}),[]);function Xe(t,r,o){var a,s,l,d,p,f={key:t,name:o,size:se,label:r[t].value,disabled:i&&!1===r[t].isEditable};if(r[t]){var m=r[t].textArea;switch(r[t].type){case Uh.PASSWORD:return Y.jsx(gj,Z({},f,{showPassword:T,setShowPassword:P}));case Uh.OBJECTID:case Uh.NUMBER:case Uh.STRING:case Uh.EXTERNAL_LINK:return Y.jsx(dp,Z({},f,{rows:m?5:void 0,multiline:m}));case Uh.MULTIPLE_TEXT:return Y.jsx(YC,Z({},f));case Uh.RICH_TEXT_I:return Y.jsx(SC,Z({},f,{type:kC.TYPE_ONE}));case Uh.RICH_TEXT_II:return Y.jsx(SC,Z({},f,{type:kC.TYPE_TWO}));case Uh.LOCATION:return Y.jsx(_h,Z({},f,{variant:"outlined",selectLocation:Oe}));case Uh.TIMEPICKER:return Y.jsx(hj,Z({},f,{fieldName:o,setValue:Oe,getValues:Me}));case Uh.PHONENUMBER:var h=r[t].defaultCountryCode?r[t].defaultCountryCode:r[t].countryCodes?r[t].countryCodes[0]:"sa";return Y.jsx(b,Z({},f,{defaultCountry:h.toLowerCase(),style:{border:2},onChange:function(e){return function(e,t){Oe(t,e)}(e,o)},onlyCountries:r[t].countryCodes?r[t].countryCodes:[],fullWidth:!0,value:Me(o)?Me(o):"",variant:"outlined",inputProps:{"aria-autocomplete":"none",autoCorrect:"none"},InputProps:{autoComplete:"new-password"},autoComplete:"new-password"}));case Uh.LOCALIZEDString:return Y.jsx(vA,{fieldName:o,title:null===(a=r[t])||void 0===a?void 0:a.value,size:se,isEdit:i,value:B,setValue:Oe,getValues:Me,handleChange:Ee,numberOfRows:m?5:void 0,includeFrench:r[t].includeFrench,includeGerman:r[t].includeGerman});case Uh.DATE:return r[t].withTime?Y.jsx(EC,Z({},f,{fullWidth:!0,minDate:new Date})):Y.jsx(Mp,Z({},f,{fullWidth:!0,minDate:new Date}));case Uh.ENUM:return Y.jsx(TC,Z({},f,{values:r[t].enumValues}));case Uh.IMAGE:return e.createElement(NC,Z({},f,{name:o,key:t,handleDrop:function(e,n){return Ve(e,n,r[t].imageOptimizingCategory)}}));case Uh.BOOLEAN:return Y.jsx(wj,Z({},f,{handleChange:Re,getValues:Me}));case Uh.NESTEDSCHEMA:return Y.jsxs(n.Grid,{item:!0,xs:12,children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[t].value},t),Y.jsx(n.Card,{sx:{py:3,px:3},children:Y.jsx(n.Grid,{container:!0,spacing:2,children:r[t].keys.map((function(e,o){return Y.jsx(n.Grid,{item:!0,xs:12,children:Xe(e,r[t].schema,t+"."+e)},o)}))})})]},t);case Uh.ARRAY:!function(e){var t=c.useFieldArray({control:Ce,name:e}),n=t.fields,r=t.append,o=t.remove,i=t.move;Te[e]={fields:n,append:r,remove:o,move:i}}(t),Ie(t);var g=r[t],v=g.isDraggable,y=g.imageOptimizingCategory,x=Ze(ae[u].properties.model,t),w=De(x),j=null==w?void 0:w.some((function(e){return!e||!e._id}));switch(r[t].arrayType){case Uh.NESTEDSCHEMA:return Y.jsxs(n.Grid,{item:!0,xs:12,children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled",mt:{xs:"10px",md:"15px"},mb:"10px"},children:r[t].value},t),Y.jsx(xj,{handleRemove:function(e){return Qe(t,e)},draggable:v,handleDrop:function(e){return We(t,e)},list:Te[t].fields,itemComponent:function(e){return Y.jsx(n.Stack,{spacing:3,children:r[t].keys.map((function(o){return Y.jsxs(n.Stack,{direction:{xs:"column",md:"row"},spacing:2,sx:{width:1},children:[Y.jsx(n.Grid,{item:!0,xs:12,children:Xe(o,r[t].schema,"".concat(t,"[").concat(e,"].").concat(o))},o),Y.jsx(n.Divider,{})]},o)}))})},handleAdd:function(){return Se(t)},addButtonText:pe?"Add item":"إضافة"})]},t);case Uh.IMAGE:return r[t].mediaUploader?Y.jsx(dA,{image:re,keyValue:t,imageOptimizingCategory:null!==(s=r[t].imageOptimizingCategory)&&void 0!==s?s:qa.NORMAL,multiple:!0,dismissDialogState:Be,setImages:ke,isEnglish:pe,fileType:r[t].fileType?r[t].fileType:Ua.IMAGE,label:r[t].value,imageDialogState:R,handleEditImage:Ne,handleRemoveImage:Le,setImageDialogState:F,setImage:oe,setValue:Oe}):Y.jsx(xj,{handleRemove:function(e){return Qe(t,e)},draggable:v,handleDrop:function(e){return We(t,e)},list:Te[t].fields,itemComponent:function(e){return Y.jsx(PC,{name:"".concat(t,"[").concat(e,"]"),handleDrop:function(e,t){return Ve(e,t,y)},label:""},"".concat(t,"[").concat(e,"]"))},handleAdd:function(){return Se(t)},addButtonText:pe?"Add item":"إضافة"});case Uh.ENUM:return Y.jsx(ZC,Z({},f,{options:r[t].enumValues.map((function(e){return{label:DC.enhance(e),value:e}}))}));default:return j&&x.length>0?Y.jsx(Y.Fragment,{}):Y.jsxs(n.Grid,{item:!0,xs:12,children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled",mt:{xs:"10px",md:"15px"},mb:"10px"},children:r[t].value},t),Y.jsx(xj,{handleRemove:function(e){return Qe(t,e)},draggable:v,handleDrop:function(e){return We(t,e)},list:Te[t].fields,itemComponent:function(e){return Y.jsxs(n.Stack,{direction:{xs:"column",md:"row"},spacing:2,sx:{width:1},children:[Y.jsx(n.Grid,{item:!0,xs:12,children:Xe(t,Pe[t],"".concat(t,"[").concat(e,"]"))}),Y.jsx(n.Divider,{})]})},handleAdd:function(){return Se(t)},addButtonText:pe?"Add item":"إضافة"})]},t)}case Uh.REFERENCE:var C=ae?ae[r[t].path]:void 0,O=XC(r,t,WC.FORM_LIST,C);return r[t].mediaUploader?Y.jsx(dA,{image:Q,keyValue:t,dismissDialogState:Be,imageOptimizingCategory:null!==(l=r[t].imageOptimizingCategory)&&void 0!==l?l:qa.NORMAL,setImages:ke,isEnglish:pe,fileType:r[t].fileType?r[t].fileType:Ua.IMAGE,label:r[t].value,imageDialogState:R,handleEditImage:Ne,handleRemoveImage:Le,setImageDialogState:F,setImage:X,setValue:Oe}):Y.jsx(bM,Z({},f,{multiple:!1,onOptionChange:function(e){},options:S[t]&&S[t].data?S[t].data:[],loading:M[o],hasNext:S[t]&&S[t].hasNext,onOpenChanged:function(e,n,i){return Fe(r[t].apiRoute,r[t].path,e,t,o,n,i,O)},dependOn:Ze(ae[u].properties.model,t),relatedFields:null!==(p=null===(d=ae[u].properties.model[t])||void 0===d?void 0:d.relatedFields)&&void 0!==p?p:[],fieldKey:t,resource:C,resourcePath:r[t].path,enableCreateNewButtonOnReference:A&&r[t].enableCreateNewButtonOnReference}))}}}var Ye=!0;return Y.jsx(Y.Fragment,{children:Y.jsx(rp,{methods:we,onSubmit:ze((function(e){return U(o,void 0,void 0,(function(){var t,n,r,o,l,c,d,A,y,b;return q(this,(function(w){switch(w.label){case 0:te(!0),t=Z({},e),Object.keys(e).map((function(t){return Object.keys(f).includes(t)?e[t]=e[t]?e[t]._id:void 0:ue[t]&&ue[t].type===Uh.LOCATION?e[t]=e[t]?{address:e[t].description,longitude:e[t].location?e[t].location.coordinates[0]:s[t]?s[t].longitude:void 0,latitude:e[t].location?e[t].location.coordinates[1]:s[t]?s[t].latitude:void 0}:void 0:""})),w.label=1;case 1:return w.trys.push([1,6,,7]),i?[4,ug.patch("".concat(le,"/").concat(m)+"/"+a,e)]:[3,3];case 2:return r=w.sent(),[3,5];case 3:return[4,ug.post("".concat(le,"/").concat(m),e)];case 4:r=w.sent(),w.label=5;case 5:return n=r,te(!1),201!==n.status&&200!==n.status||!n.data.data.record.document||(je(),p?p():(o=(ae?ae[u].properties:"").title,l=n.data.data.record.document[o],c=mA.getRecordName(l,o,ae[u]),d=i?v?v(c):"".concat(c," was updated successfully"):g?g(c):"".concat(c," was created successfully"),ge("".concat(d)),A=ce[u].list,y=h?h(n.data.data.record.document._id):"".concat(A).concat(N.search),x(y,{replace:!0}))),[3,7];case 6:return b=w.sent(),te(!1),je(t),ve("".concat(JSON.parse(b).meta.message)),[3,7];case 7:return[2]}}))}))})),children:Y.jsx(n.Card,{sx:{p:3},children:Y.jsxs(n.Stack,{spacing:"10px",children:[Y.jsx(n.Grid,{container:!0,justifyContent:"space-between",rowGap:"10px",children:de&&de.map((function(e,t){var r=function(e,t,n,r,o){var i=VC.FULL,a=VC.HALF,s=n.length-1,l=r===s,c=0===r;function u(e){return c?l?i:GC(n[r+1],t)===e?a:i:l?GC(n[r-1],t)===e?a:i:o&&GC(n[r+1],t)===e?a:o||GC(n[r-1],t)!==e?i:a}if(t[e])switch(GC(e,t)){case FC.SMALL:return u(FC.SMALL);case FC.CHANGEABLE:return i;case FC.MEDIUM:return u(FC.MEDIUM);case FC.LARGE:return u(FC.LARGE)}return i}(e,ue,de,t,Ye);return Ye=r===VC.FULL||!Ye,Y.jsx(n.Grid,{item:!0,xs:12,md:ue[e].widthOfElement?ue[e].widthOfElement:y?12:r,style:{paddingLeft:0},children:Xe(e,ue,e)},e+t)}))},"grid1"),Y.jsx(l.LoadingButton,{type:"submit",variant:"contained",loading:ee||J,sx:{fontSize:{xs:"14px",md:"16px"},fontWeight:500,py:"12px",px:"20px",alignSelf:"end"},children:i?me:fe})]})})},"form")});function Ze(e,t){var n=[];return Object.entries(e).forEach((function(e){var r=e[0],o=e[1];(null==o?void 0:o.relatedFields)&&Array.isArray(null==o?void 0:o.relatedFields)&&o.relatedFields.includes(t)&&n.push(r)})),n}}function qC(e){var t=e.title,r=e.loading,o=e.disabled,i=e.icon,a=e.onClick;return Y.jsx(n.IconButton,{size:"small",title:t,onClick:a,disabled:o,children:Y.jsx(jo,{icon:r?"eos-icons:loading":i})})}function KC(t){var o=this,i=t.modelPath,a=t.onNoNextText,s=t.onNoPreviousText,l=t.recordId,c=t.nextButtonTitle,u=t.previousButtonTitle,d=t.recordIndex,p=t.numberOfRecords,f=t.params,m=t.navigateTo,h=t.onClickNext,g=t.onClickPrevious,v=Hg.isEnglish();r.useNavigate();var A=Bg().setAlert,y=e.useState({next:!1,previous:!1}),b=y[0],x=y[1],w=e.useContext(fg).dashbaordUrlPrefix,j="mdi:keyboard-arrow-left",C="mdi:keyboard-arrow-right",O=v?j:C,M=v?C:j,z=function(e){return U(o,void 0,void 0,(function(){var t,n,r,o,c;return q(this,(function(u){switch(u.label){case 0:return e===QC.NEXT?(t=null!=a?a:"No next records",x({next:!0,previous:!1})):(t=null!=s?s:"No previous records",x({next:!1,previous:!0})),[4,ug.get("".concat(w,"/").concat(i,"/neighbors/").concat(l,"?type=").concat(e),{params:f})];case 1:return n=u.sent(),x({next:!1,previous:!1}),r=n.data.data,o=r.hasNeighbor,c=r.neighborRecordId,o&&c?(m(c),[2]):(A(t,"warning"),[2])}}))}))};return Y.jsxs(n.Stack,{direction:"row",spacing:"5px",alignSelf:"end",alignItems:"center",children:[p&&d&&Y.jsx(n.Typography,{color:"#5e5e5e",fontSize:"0.8rem",fontFamily:'"Google Sans", Roboto, RobotoDraft, Helvetica, Arial, sans-serif',children:"".concat(d," of ").concat(p.toLocaleString())}),Y.jsx(qC,{title:null!=u?u:"Previous",icon:O,onClick:g?function(){return g(l)}:function(){return z(QC.PREVIOUS)},loading:b.previous,disabled:!(!p||!d||1!==d)}),Y.jsx(qC,{title:null!=c?c:"Next",icon:M,onClick:h?function(){return h(l)}:function(){return z(QC.NEXT)},loading:b.next,disabled:!(!p||!d||d!==p)})]})}function JC(){var t=r.useLocation().pathname;return e.useMemo((function(){return t}),[t])}!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.CHANGEABLE="changeable"}(FC||(FC={})),function(e){e[e.FULL=12]="FULL",e[e.HALF=5.8]="HALF"}(VC||(VC={})),function(e){e.NEXT="NEXT",e.PREVIOUS="PREVIOUS"}(QC||(QC={}));var _C=go("div")((function(e){return{maxWidth:480,margin:"auto",minHeight:"100vh",display:"flex",justifyContent:"center",flexDirection:"column",padding:e.theme.spacing(12,0)}}));function $C(){return Y.jsx(J,{title:"403 Forbidden",children:Y.jsx(n.Container,{component:Ga,children:Y.jsxs(_C,{sx:{textAlign:"center",alignItems:"center"},children:[Y.jsx(p.m.div,{variants:Ha().in,children:Y.jsx(n.Typography,{variant:"h3",paragraph:!0,children:"Sorry, request forbidden!"})}),Y.jsx(p.m.div,{variants:Ha().in,children:Y.jsx(n.Typography,{sx:{color:"text.secondary"},children:"Sorry, Not allowed to access this resource."})}),Y.jsx(p.m.div,{variants:Ha().in,children:Y.jsx(Pa,{sx:{height:260,my:{xs:5,sm:10}}})}),Y.jsx(n.Button,{to:"/",size:"large",variant:"contained",component:r.Link,children:"Go to Home"})]})})})}function eO(e,t,n,r,o){if(n[t]=void 0,e)switch(e.type){case Uh.STRING:case Uh.PHONENUMBER:case Uh.LOCALIZEDString:case Uh.OBJECTID:n[t]=r&&r.get(t)?r.get(t):"";break;case Uh.BOOLEAN:n[t]=!r||!1!==r.get(t)&&!0!==r.get(t)?void 0:r.get(t);break;case Uh.REFERENCE:if(o[t].multipleInFilter)if(r){var i=r.getAll(t+"-name");if(i&&i.length>0){var a=r.getAll(t+"-id");n[t]=i.map((function(e,t){return{_id:a[t],title:i[t]}}))}else n[t]=void 0}else n[t]=void 0;else n[t]=r&&r.get(t+"-name")?{_id:r.get(t+"-id"),title:r.get(t+"-name")}:void 0;break;case Uh.DATE:case Uh.NUMBER:n[t]={from:"",to:""},n[t].from=r.get(t+"-from")?r.get(t+"-from"):"",n[t].to=r.get(t+"-to")?r.get(t+"-to"):"";break;case Uh.ENUM:n[t]=r&&r.get(t)?r.get(t):void 0}}function tO(e,t,n){Object.keys(e).map((function(n){if(e[n]&&t[n].type===Uh.DATE){if(e[n].from&&""!==e[n].from)try{e[n].from=e[n].from.toISOString().split("T")[0]}catch(e){}if(e[n].to&&""!==e[n].to)try{e[n].to=e[n].to.toISOString().split("T")[0]}catch(e){}}}));var r="";return Object.keys(e).map((function(o){e[o]&&""!==e[o]&&t[o].type&&o!==n&&(t[o].type===Uh.NUMBER||t[o].type===Uh.DATE?!e[o].from&&!e[o].to||""===e[o].from&&""===e[o].to?e[o]=void 0:(e[o].from&&""!==e[o].from&&e[o].from,e[o].to&&""!==e[o].to&&e[o].to,r=r+o+":from="+e[o].from+",to="+e[o].to+";;"+t[o].type+"^^"):t[o].type===Uh.REFERENCE?t[o].multipleInFilter?r=r+o+"="+e[o].map((function(e){return e._id}))+";;"+t[o].type+"^^":(e[o].title,e[o]._id,r=r+o+"="+e[o]._id+";;"+t[o].type+"^^"):(e[o],r=r+o+"="+e[o]+";;"+t[o].type+"^^"))})),r}var nO=function(){function e(e){this.resource=e,this.uniqueFields=new Set,this.execute()}return e.prototype.getUniqueFields=function(){return this.uniqueFields},e.prototype.execute=function(){var e=this;this.resource.listProperties&&this.resource.listProperties.forEach((function(t){e.uniqueFields.add(t.key)})),this.resource.filterProperties&&this.resource.filterProperties.forEach((function(t){e.uniqueFields.add(t)})),this.resource.quickFilterProperties&&this.resource.quickFilterProperties.forEach((function(t){e.uniqueFields.add(t)}))},e}();var rO=go("span")((function(e){var t=e.arrow,n=e.theme,r=-6.5,o={top:r,transform:"rotate(135deg)"},i={bottom:r,transform:"rotate(-45deg)"},a={left:r,transform:"rotate(45deg)"},s={right:r,transform:"rotate(-135deg)"};return Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z({width:14,height:14,position:"absolute",borderBottomLeftRadius:3.5,clipPath:"polygon(0% 0%, 100% 100%, 0% 100%)",border:"solid 1px ".concat(yr("light"===n.palette.mode?n.palette.grey[500]:n.palette.common.black,.12))},Yd({color:n.palette.background.paper})),"top-left"===t&&Z(Z({},o),{left:20})),"top-center"===t&&Z(Z({},o),{left:0,right:0,margin:"auto"})),"top-right"===t&&Z(Z({},o),{right:20})),"bottom-left"===t&&Z(Z({},i),{left:20})),"bottom-center"===t&&Z(Z({},i),{left:0,right:0,margin:"auto"})),"bottom-right"===t&&Z(Z({},i),{right:20})),"left-top"===t&&Z(Z({},a),{top:20})),"left-center"===t&&Z(Z({},a),{top:0,bottom:0,margin:"auto"})),"left-bottom"===t&&Z(Z({},a),{bottom:20})),"right-top"===t&&Z(Z({},s),{top:20})),"right-center"===t&&Z(Z({},s),{top:0,bottom:0,margin:"auto"})),"right-bottom"===t&&Z(Z({},s),{bottom:20}))}));function oO(e){var t,n=e.open,r=e.children,o=e.arrow,i=void 0===o?"top-right":o,a=e.hiddenArrow,s=e.sx,l=G(e,["open","children","arrow","hiddenArrow","sx"]),c=function(e){var t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}}}return t}(i),u=c.style,d=c.anchorOrigin,p=c.transformOrigin;return Y.jsxs(Jf,Z({open:Boolean(n),anchorEl:n,anchorOrigin:d,transformOrigin:p,PaperProps:{sx:Z(Z(Z({width:"auto",overflow:"inherit"},u),(t={},t["& .".concat(Su.root)]={"& svg":{mr:2,flexShrink:0}},t)),s)}},l,{children:[!a&&Y.jsx(rO,{arrow:i}),r]}))}function iO(e){var t=e.actions,r=e.open,o=e.onClose,i=e.onOpen;return Y.jsxs(Y.Fragment,{children:[Y.jsx(n.IconButton,{onClick:i,children:Y.jsx(jo,{icon:"eva:more-vertical-fill",width:20,height:20})}),Y.jsx(oO,{open:r,anchorEl:r,onClose:o,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},arrow:"right-top",sx:{mt:-1,width:160,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20}}},children:t})]})}var aO={},sO={};Object.defineProperty(sO,"__esModule",{value:!0}),sO.on=function(e,t,n,r){r=r||!1,e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,(function(t){n.call(e,t||window.event)}))},sO.off=function(e,t,n,r){r=r||!1,e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on"+t,n)};var lO={};Object.defineProperty(lO,"__esModule",{value:!0}),lO.default=function(e){if(!(e instanceof HTMLElement))return document.documentElement;for(var t="absolute"===e.style.position,n=/(scroll|auto)/,r=e;r;){if(!r.parentNode)return e.ownerDocument||document.documentElement;var o=window.getComputedStyle(r),i=o.position,a=o.overflow,s=o["overflow-x"],l=o["overflow-y"];if("static"===i&&t)r=r.parentNode;else{if(n.test(a)&&n.test(s)&&n.test(l))return r;r=r.parentNode}}return e.ownerDocument||e.documentElement||document.documentElement};var cO={};Object.defineProperty(cO,"__esModule",{value:!0}),cO.default=function(e,t,n){var r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l=function l(){var c=+new Date-a;c<t&&c>=0?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(i,o),r||(i=null,o=null)))};return function(){i=this,o=arguments,a=+new Date;var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(s=e.apply(i,o),i=null,o=null),s}};var uO={};Object.defineProperty(uO,"__esModule",{value:!0}),uO.default=function(e,t,n){var r,o;return t||(t=250),function(){var i=n||this,a=+new Date,s=arguments;r&&a<r+t?(clearTimeout(o),o=setTimeout((function(){r=a,e.apply(i,s)}),t)):(r=a,e.apply(i,s))}},Object.defineProperty(aO,"__esModule",{value:!0}),aO.forceVisible=aO.forceCheck=aO.lazyload=void 0;var dO=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}}(),pO=e,fO=yO(pO),mO=yO(Ne),hO=sO,gO=yO(lO),vO=yO(cO),AO=yO(uO);function yO(e){return e&&e.__esModule?e:{default:e}}function bO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function wO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var jO=0,CO=0,OO=0,MO=0,zO="data-lazyload-listened",DO=[],TO=[],PO=!1;try{var NO=Object.defineProperty({},"passive",{get:function(){PO=!0}});window.addEventListener("test",null,NO)}catch($m){}var EO=!!PO&&{capture:!1,passive:!0},BO=function(e){var t=e.ref;if(t instanceof HTMLElement){var n=(0,gO.default)(t),r=e.props.overflow&&n!==t.ownerDocument&&n!==document&&n!==document.documentElement?function(e,t){var n=e.ref,r=void 0,o=void 0,i=void 0,a=void 0;try{var s=t.getBoundingClientRect();r=s.top,o=s.left,i=s.height,a=s.width}catch(e){r=jO,o=CO,i=MO,a=OO}var l=window.innerHeight||document.documentElement.clientHeight,c=window.innerWidth||document.documentElement.clientWidth,u=Math.max(r,0),d=Math.max(o,0),p=Math.min(l,r+i)-u,f=Math.min(c,o+a)-d,m=void 0,h=void 0,g=void 0,v=void 0;try{var A=n.getBoundingClientRect();m=A.top,h=A.left,g=A.height,v=A.width}catch(e){m=jO,h=CO,g=MO,v=OO}var y=m-u,b=h-d,x=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return y-x[0]<=p&&y+g+x[1]>=0&&b-x[0]<=f&&b+v+x[1]>=0}(e,n):function(e){var t=e.ref;if(!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))return!1;var n=void 0,r=void 0;try{var o=t.getBoundingClientRect();n=o.top,r=o.height}catch(e){n=jO,r=MO}var i=window.innerHeight||document.documentElement.clientHeight,a=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return n-a[0]<=i&&n+r+a[1]>=0}(e);r?e.visible||(e.props.once&&TO.push(e),e.visible=!0,e.forceUpdate()):e.props.once&&e.visible||(e.visible=!1,e.props.unmountIfInvisible&&e.forceUpdate())}},kO=function(){TO.forEach((function(e){var t=DO.indexOf(e);-1!==t&&DO.splice(t,1)})),TO=[]},LO=function(){for(var e=0;e<DO.length;++e){var t=DO[e];BO(t)}kO()},IO=void 0,SO=null,WO=function(e){function t(e){bO(this,t);var n=xO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.visible=!1,n.setRef=n.setRef.bind(n),n}return wO(t,pO.Component),dO(t,[{key:"componentDidMount",value:function(){var e=window,t=this.props.scrollContainer;t&&"string"==typeof t&&(e=e.document.querySelector(t));var n=void 0!==this.props.debounce&&"throttle"===IO||"debounce"===IO&&void 0===this.props.debounce;if(n&&((0,hO.off)(e,"scroll",SO,EO),(0,hO.off)(window,"resize",SO,EO),SO=null),SO||(void 0!==this.props.debounce?(SO=(0,vO.default)(LO,"number"==typeof this.props.debounce?this.props.debounce:300),IO="debounce"):void 0!==this.props.throttle?(SO=(0,AO.default)(LO,"number"==typeof this.props.throttle?this.props.throttle:300),IO="throttle"):SO=LO),this.props.overflow){var r=(0,gO.default)(this.ref);if(r&&"function"==typeof r.getAttribute){var o=+r.getAttribute(zO)+1;1===o&&r.addEventListener("scroll",SO,EO),r.setAttribute(zO,o)}}else if(0===DO.length||n){var i=this.props,a=i.scroll,s=i.resize;a&&(0,hO.on)(e,"scroll",SO,EO),s&&(0,hO.on)(window,"resize",SO,EO)}DO.push(this),BO(this)}},{key:"shouldComponentUpdate",value:function(){return this.visible}},{key:"componentWillUnmount",value:function(){if(this.props.overflow){var e=(0,gO.default)(this.ref);if(e&&"function"==typeof e.getAttribute){var t=+e.getAttribute(zO)-1;0===t?(e.removeEventListener("scroll",SO,EO),e.removeAttribute(zO)):e.setAttribute(zO,t)}}var n=DO.indexOf(this);-1!==n&&DO.splice(n,1),0===DO.length&&"undefined"!=typeof window&&((0,hO.off)(window,"resize",SO,EO),(0,hO.off)(window,"scroll",SO,EO))}},{key:"setRef",value:function(e){e&&(this.ref=e)}},{key:"render",value:function(){var e=this.props,t=e.height,n=e.children,r=e.placeholder,o=e.className,i=e.classNamePrefix,a=e.style;return fO.default.createElement("div",{className:i+"-wrapper "+o,ref:this.setRef,style:a},this.visible?n:r||fO.default.createElement("div",{style:{height:t},className:i+"-placeholder"}))}}]),t}();WO.propTypes={className:mO.default.string,classNamePrefix:mO.default.string,once:mO.default.bool,height:mO.default.oneOfType([mO.default.number,mO.default.string]),offset:mO.default.oneOfType([mO.default.number,mO.default.arrayOf(mO.default.number)]),overflow:mO.default.bool,resize:mO.default.bool,scroll:mO.default.bool,children:mO.default.node,throttle:mO.default.oneOfType([mO.default.number,mO.default.bool]),debounce:mO.default.oneOfType([mO.default.number,mO.default.bool]),placeholder:mO.default.node,scrollContainer:mO.default.oneOfType([mO.default.string,mO.default.object]),unmountIfInvisible:mO.default.bool,style:mO.default.object},WO.defaultProps={className:"",classNamePrefix:"lazyload",once:!1,offset:0,overflow:!1,resize:!1,scroll:!0,unmountIfInvisible:!1};aO.lazyload=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return function(n){function r(){bO(this,r);var e=xO(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return e.displayName="LazyLoad"+function(e){return e.displayName||e.name||"Component"}(t),e}return wO(r,pO.Component),dO(r,[{key:"render",value:function(){return fO.default.createElement(WO,e,fO.default.createElement(t,this.props))}}]),r}()}};var HO=aO.default=WO;aO.forceCheck=LO,aO.forceVisible=function(){for(var e=0;e<DO.length;++e){var t=DO[e];t.visible=!0,t.forceUpdate()}kO()};var RO="data:image/webp;base64,UklGRqxWAABXRUJQVlA4WAoAAAASAAAAVwIAOgEAQU5JTQYAAADNmZz/AABBTk1GmAMAAAAAAAAAAFcCADoBAB4AAAJWUDgggAMAALA3AJ0BKlgCOwE+kUihTKWkIyKgdVgQsBIJaW7hdrEd60OP3pnPgaarvPqOPmuYM+NiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUdCRCfuIvEFR/ljYi8QVH+WMMEyqaUAmjJ67+PWWkEuhsq8urdTe4i8QVH+WNiLw0hZc/FkWY7Oyy5BPgBwJD/tSmbelUqw/EFR/ljYi8QVH+WNheBpleRDronNegYg1oPRkpehtarOUIEAoU3uIvEFR/ljYi8QVH+Ti1+jaB/19CexyBTUVTOmmjpV7T3NafRl5f/LGxF4gqP8sbEXo86vljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QTYAA/v/BBAAAAAAAAAATJQBqsvxIXXLyeQXrZ+ZaOx4g52u/S8d7vZCWRSsl7BCamwV3y8ZfIWv9EMsN2Vyh09OYkunBAgNAcxv58Fyh0MgFSIgWuVBTz9JCgTXBwdRYwBVYo3ifnsbUCK4Um+eBsSgqejVKI5+P7Z40gFnP93RMv/a9U7NhKm7vlda4Wk2tEGLYwrzr/KvoFeH7CDoL+1LVgbHpkPMwgUree1s3WDG+VV4hJtiys+T/ExT0kCa+DHdPvYv17ngY7WXdAw3xkHkNQbjHBmoQAAUf4kleBzr7yt3xMOsDSMwnGEcLzv0zOPenX8wFAL9f7f1sTPeGEnMB5age4AMKcLq9wbx/PjBlKYm3Pi8SgqoqP3XENL1z/FdRud4QWmZjbMYI3/EAaZYmF+sThI16y8R1ax76i7yj9FtcM0TJbsw/0ZCn7v18VXIAMhEBYtw3aMM76exEoI/G5urcHo5Kfwnn0yuWA3zDzphHZ4ahbe+1cRIP075/8TpZjWXuFZw2aPGPzIHO62B3YbS+nq6c7kn1TQoXCeyx4Yq6l0r8MT1jGk/cXUvOAAAAAAAAAAAAAAAAQU5NRooCAACFAABAAABCAAA8AAAeAAAAQUxQSCoAAAABDzD/ERGCTdtIgrY7WEN9mLn/HwAR/Q+AN5DrzHXmulITUgsppP8DfARWUDggQAIAADQOAJ0BKkMAPQA+kT6aSQKzSbsAASCUAXyAvIqpb7td3nJ+PV24cdpExVrmSSQX07lr2YJsz633z1z3Ww5+cto2AzI5NXPky+EF6SIZovVmBdiTsFUSSxnUTPdFLDstBV3IjfH6q/3iGvHT5USqcpqyrPtXFfijYkcAAP7+YAtPJzCPpHg3HcmN4Gj/H2p0gtTuQ/NLFzSqpdcDLENmWEiIA9w7ruzbh0n4FR6SzqTXHGy3iC2ZCm/CzucUKS9hkucwmK9jgyWC736o4R12FgHhF/M/c0SMlET2TWJhYGIj6x/xDhZFaBrAR5WUy+G7UxqpyMAsRSV29oJWdSRFjqFfbBaMm5sRsCgztyE6d6DarAPQJtViuy3hQHRLw8+mzEJzc4lgqHZ+5C7Pd4hBtQvB22mJUBKJ0UYR9E5qo12g5BUSKY5ntKpv4O5en6U7K8m9Ou6FYVygcAOSye2wo50ZASVGPI1y2QP7Mf6dmDEiFwI4Q3/T/iUCh8dCyXAWqSJ28Htqahylo0XLT/1XZJi65M/mWPvbTLm+jOJ5uGdRH6aE5WrcRI9C+OOZaeM97bo6ekvlzQYBD9dVZ0F3eoXMe/XRKYVhDWbJXcksFN8LU2SECFMvx0rbuYJ2WG+rRai8snrqgYl39NL6u2QCl4HrWtgQs/L0tvHosJ+Jfi/BhGp80jT5NUxfD5tvSyNcENtLgr5CCYAU7RAdm2JFmTmmPigSyluFgOPR1P/TB7VttTJ+UPzh8K8F966OAqiAAEFOTUZuAgAAhQAAQAAAQgAAPgAAHgAAAEFMUEgpAAAAAQ8w/xERAjEjSdrfYY36mBXADUBE/wPgLaQjuevMdaUmpBZSSP8DfAMAVlA4ICQCAADUDgCdASpDAD8APpFCm0mCmyutgAEglAGTAOKGi00OXt65pzYAe5O6/TUFYrgu6T+BO2RLNb+JeBfBP3UqWC7V4s1AlcQaJzrodN1aUrKTvkc2mt3HOO9es1XgmUCAZpJXweVlzSIToLeGlEnuTeYE7V9JJbPy0Pj8SjysbMLAAP7+LpWdvF4gEF2L973f9P8EoBFLVd99v9v2clFv6DAIX3ZPwdoAYRqwUOrtNzWJyWpcSVlRKEfYhQrR5/Lmhvw8MF9tjjordbMilh/WEvIqKz3btNeHibkBptgpDYaAWJBOJZliX3LDOkMcATh7mbao746Vh9HddMqXqpSyyQgSY5X65lgsexi3Bx3uca3EvT0LmKMqXl9KDhlczuNMTkxAZEZG/bvy0EDxEYp0KLLjo8VEBVNRupKaXNfH2QHtz320ZZzxzadppb4DRdsys1q+LfAQCCJGDVLYVvs+Iy1O93bRQD2wIkJS9vcyyPrsSgURxgEjxlNLrI+Pg1ClXM39oHtZdv/+/csdGp3X3JrQM0rElKHHclVwMWmLqpGiFjdqgMhHfXogbZn9uZQ/xuPmNZ5CbNGxLpxpXp5Tivikk2H8fmURxXy5xo/PyMwHpj7YHgtG+G9Aopvqcbg0hygBjTNkIwGc04iPeHTVV/7KN99T8a3KFhqQr/OsnBPNKXTsIy3R+xlEMmZAhg6tyhbaxs6UjOFgR1hwp1hhv48GgAAAAEFOTUaSAgAAhQAAPgAAQgAAQgAAHgAAAEFMUEgsAAAAAQ8w/xERgkkkSZKWray23s4S73dHI/ofAHMphfQ8wAUyRv9J6oYU0vMAxwBWUDggRgIAAPQOAJ0BKkMAQwA+kUCaSQK5VagAASCUAZYyOkH9IG3Vu3TefK8qSHy09KhPQ+B2EhPx6c1iZyoMQDEwnCPgSJCbXygp2lidOdrUH8MuHJkFkNRXhrDkLJwEwrjqsVxdFL82PVwoxdyNtoAFBXzLIaqk+2HBS978VHrGndQVfDIAAP77b6FPyKaRZ++t3W9g60/nbbGM7ui5R2AVGAMKSJfIa/+C0Qb/4hm91w6+l2zQ2DDeZfrXvRht6gTwXjOhuVfc0Q27iGYxheyYCrkG6UeJI+SmAd/Y1MYSs+FfJvcP1GEfJVsbTP5usfuZVQPdv7ZCCaIG6coiagqv3khQvW4x87uOCqPgv1F7lL29ubr6/1UJytXyE1QEgRlb67MoGlVEka99A0sGiRUYnFlmb/JEoIikf747fa0wi3QMJIe6uwOe8UwSeSGb6njgwXgJcfal5Lt8Jcms9Fkg6cwxrbwxi8dvaottek9AkqYfI+pKeg1374h1J2d+DmC4Xfkrhtxb1H1iTGpdyqRGFApKXWOq6qdqOIOlq6uDMKZk6Bvzb4gP9cFqNY+ARzrYJFc5hNy1IvCt0cniag1uNNWkfpUle1FdjdSa2eXMIt+NtnlphH+9O9wJU5Xpi6KmGUC3f3YdCKyTqjBkGk7WF2ouTmTT0WLXko6f36YbAtyhqtwxk57vFR4I7bKvWh4qP0ljKNpZ293RQfCVuXOh9TGu2ELNETimDijgqa7RIlhgBsdPS/DnMAchQgFP7oGwYt2P+ZlGcAAAAEFOTUZ0AgAAhQAAPgAAQgAAQgAAHgAAAEFMUEgtAAAAAQ8w/xERgkkkSZKGray23s4S73OHI/ofAGsrhfQ+72Rm5m/KC1IvpJDeB7gGAFZQOCAmAgAAFA4AnQEqQwBDAD6RQJlJAs1NqoABIJQBm0r5k526t26bzqjddyJ/E/zfbIGkCy1WKSQUU27+gzcquChMMtEx+A+7TJCqSSlLF7xwClBoS1Kf4Iu09tH8wWnYL3PCZy0I+TDF48RDCFFBI0ElR6b96tBJ4CG4UsgaAAD++9gqr1qJHQSPpsEuzg1UxsDn9N8VNkb0pS+/quiw+9RNSUqE3dy1beRfHN7DnWYPzNGoTgsvWUFmUx4xvzQ8BnYusIbV7zgUC4c3z13NYgeAw4187x0XHs6jNtj1NBBgq1taTg2qeBWiqowkqEhZ4PmeBgQIrDf2h1EwZ9/23nM2uaen5BFrQ6M4HY7n2cr6OrLUq9+zKBo5etxbd2H2Eg3ZT7qyYqRCREtIb11W9ot4QKbUDvACYDdfXgxCPMQlN4sSMwzU9Eb8uwrAByRVFDvzUg9SEY9NT3WFBfaPv+y/wgI7TurX4teXl0VOLnnHo/OYX2whZ364rDwDDrF8V4RZCuhEX3R0zjBJcuL0ePckvFsL1ZRE3M/REP5sy/M3ass4j+amsHIeTPr2Z6OtaJAJnvte/Dr2l2vTqcunzLdK2XO0BoIUeaxFU44+GR8uYwD3EWJDEPYoRSslPT28FkSDDZTrMs4NN9Y/nX+98ov3wqLA+sHu+SYxEblnkbN1ytzC6KUnVn94PjTJG0/D72g8d7uACypheEbBxSaMOJuImoIJJ+8ugAAAAEFOTUaWAwAAAAAAAAAAVwIAOgEAHgAAAlZQOCB+AwAAUDgAnQEqWAI7AT6RSJ9NJaQioiBTOCCwEglpbuF2AR3p69ntpbtm3mnAXWLUfb0wbTIEfG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbU+XfRciRtQ5xeIv/ljahzi8TloQa3lWt1P9G1DnF4i/+WNqHOjUOWKjKyiAjJs8ltcLZvMJP3+6lD6TASJdT/RtQ5xeIv/ljahzi/VCkNcj5t8NqTltHYwpQNdT/RtQ5xeIv/ljahto7k9iYJMKw65iINSlMWcndjw/nZdr0vcNdT/RtQ5xeIv/ljakTXSBGZtMlkUTPEpmC7EPbfKDRGeQjvOf8sbUOcXiL/5Y2oc6o7Qc5agGup/o2oc4vEX/yxvsi/5nP+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/3gAP7/q3QAAAAAAAFzOALSEVQMV8t4YvlgoYxCNv7AsKuABXSFJvx9TdFf4DzzrWedRFs3jAySfKNu5iNgFSAFzR3HpcSf7MWfxJ6yWYEZhUq5mu/SXCPcGbew9SvSinTyY5GHozfD7PrymO1zP9DBpFkZXEiXBGY+ceQzEUFWm2Ugb+xu10DpaDEn7SyqCRzwUncPahpAOQMO2IXB2GbCz8QhTEYh4fs9XtTSWP2xAZY7yTKdrupQlDNbjSwShuJz9+HMbq2MKEWax+zoL/q8R4SiXvv/7CrQAvmIp6KomHDv3RKb1UVgqK0g8WqrxSmMphuetqM73LDtWdvrJVjAnMgEOvec10tKb2poFZOXzEwfNQJfzTVGzD+XK8Bd2IoqfJO2bPH5FZ3M8POmX1oNrFMHvRQd4p37ZKANWl7g444f1+31UwZ/9gLTMcEqHJxe61cqbumL7Z24iVuSbpACKQ4WrWwATlak5l/TTUPQfhzRoGt7lPODggRQGijDzbdz10EjEb10mkyFRaA4sctrD+XldznKS6tdbUI270HMxy7f2P3SMKAAAAAAAAAAAAAAAAAAQU5NRrACAACFAAA+AABCAABCAAAeAAAAQUxQSCwAAAABDzD/ERGCSSRJkpatrLbezhLvd0cj+h8AcymF9DzABTJG/0nqhhTS8wDHAFZQOCBkAgAAFA8AnQEqQwBDAD6RPplIguFGrYABIJQBnDtBEt24F2q7za/IjMG1Fu/2kDgKyQgOab/kLjaKlSm4idkAwmUl5AzTXeSW+W9roQ1Cx3xKi0dwVQsMJF9q2XO3+/xzoQtsRstc928+46Bx53ew8wPX9EXdOT9ocp+68QGBhI4hVuCAAP779ivtL9YTo+N8gsAVmmg9ZhrPuSxvQv81LpYllCXra1YvKGmZGf45kT3yJzgAqCXAlC7Cjm7QjeSy8Cj+WrB9irAEaLeMlWy6K3vADI220+9ig4kEAPdMmhl9QTpxVLly+sDZUbaPKMmbYlqpPNUvMgr5TogKZfKVkVHusgVlSSdZRQUeGilnbC2QQ2RJS761MfMUk/0PZdzLAkYlfaThM/ukNhFAYp6pHdjFaePBedsO2fa4sP4VsmiesunPQfREFPzGpk+/ZlAyoNnbRasUiPtiigYz2cZK45xbuCdYjNDwBFFfjzn2CBEAif0Iuzp6iXoBWspdpkaO3bW+8KvFur49Aycyn2PUhFthyd7U1LL51ce8JgKpm9OTU2XBZkrmGgff3PsRzkYYn61/ydPfCzfMiMvHmKYlPYY9x6Gy3z0MkrIJYRtQ+Bs5kYmkAl6Q4+R1L6AU5fS6vfiHX+keO2HfWpmLEg1vtQed9IJ5iXcCCP8m1xdoMlJ0AkRsGKvoDUAtM6mkIFnQnddQ3DIWhy1vVFA5te6D8yQBI24ZUWOh4Ki8fCjxlMgD43C7mrjoowaIVk+bBSKIzlNXHKH4Rq181F6zGovHGv60wgFU3EW70akLWM0F5F5sHNcAAAAAQU5NRnYCAACFAAA/AABCAAA8AAAeAAAAQUxQSC0AAAABDzD/ERGCSSRJkoatrLbezpLt/Ycj+h8Aa5NC+jzvyczMW8qfSL0hhfR5gFMAVlA4ICgCAAB0DQCdASpDAD0APo08mUeDAYCzAAEYliAMrVQwj+3LGgDnqTa+Za2ke8at/XMFKE7kY/obX4OxjGq9ZBwqB1qJ8G7wNBwXBeuhBUv0nENrSbVGtQ5atNB33Dv3ckjUl+iDvPM5D11YineqyCTqGxdTfHPFAAD+/pOUAKxK817/zeb96nrhUXdoiiRew8tbkuLR49XehVojfPARsEx0ksX0eJ5wh/Y6idCepNdBi640lflCUYi69vG4LNREpb/B7/yhdqVZSPm/K1eOsvPZdQzK0U4v6zCJ2vD/RnOEnPESgrueUACPdXB44prOmsj/BELl3ovvFvPXdkZXg+3NTkGE4MrWmz2aAe4qvZ6fOpC1sMlLvTDIv1nlCojFROGUQUEitlgD+h4/1Q3whBtUk3S8UiI3uO16Mqucful4G4K7WciZo4jehzYaIthgOLJJ9U2bhfz5bOufpLv/Fyx/I93DniOhsm2mLd2cqbEbQNrqAyjNBg2AOERaxswxd7jgLiSv3MUtjcaE6nJuICT56TGg7vWc7Y+ubg+Vat5QpRY66536qzGiBrXyjTyNjNUmQjzs699RbIdt93NbU6Lzg/nYobMAbXjxtsYYtROd2pXJILKNZcPJxb9Y3bqQy3pvaGxtXERRX+z03vjKsKpPK0a2+xyFLOPXPB6X/rY9p4xYg6Mi0Mq48wkMC9/UDKYn1aBTQX9M9rJiRl+gNfJjFgWw5LoVNgAAAABBTk1GogIAAIUAAD4AAD8AAEIAAB4AAABBTFBIKQAAAAEPMP8REQJR2zYas1IPs7xPOQAR/Z8Anw/V0fGDuyN31DDlsDRUR8csAFZQOCBYAgAAtA8AnQEqQABDAD6RPJhIAwEzwAABIJYgDOqJJ85cDGl25d2l7zk/KDO6yNI2IL5qHtokF7ZhfSIGj3rL3sp/20RWo7OJGnfrGVlIJkHTOOqX+ocqG/dUSginiwbNMMkUnwlfmyezRPYJyGasGya3CS9vl+dyVJSvfB25JPCjUkdvIrVas7AA/vv2L2FaOxcXvgkf0TNjiBVp/avTo2nbSoxb1LwfTG9SkdcOKnFsbaRv7SRGBPWE4Hj01iha7HKBl0QX/xLTpHtt+7x2JS70a+hvPqLWOa6A20eZNtnjARbtBvyDYTzY3Z2WkWnMdu/IvE5r219rd/aPu/2YAFGp2xBReKxeKMFR8V5eC6JWnI6CN/4R5KW2+pRV7kUtt9CtVta0vlHM9A1WeJiEcHQ+ezNfuU1fRR/64yDn7tfQOCeckqnrKvzKKtZhBOXs3yRS0SBa3IrCtkOQTD+Q0Z2uWs1nONhEtrKd9ZEmJR/YQxG7dEs8ssX7vEceFw2QrTtVFHVNY0ys3x5hhSqf0nT+ypaZ4lyD/LHkPZSOuF8ICwJGVC9Pje4TOJGCmfnyOQNyaRq69/OcusRIFg+0gEo0hW6BF7GxLa96w3IHqBct2k2rYwqG/1chcy0hVp4nXhm8x0sbPX9KDUlUgQUzaSzFiUF7P4ycNkvv1t1w5ktJDNCLwvEyHCwqQDynv3Pfe0pNBH7akNVhYZhWSh5h7IR3oStRSIxojEjtlXoysLsevno1LbidsoTLavtoq9/BdC0p026WRc4hYZFrnZOFjQvcPSXoVeCRAAAAQU5NRnIDAAAAAAAAAABXAgA6AQAeAAACVlA4IFoDAAAwNwCdASpYAjsBPpFIoE0lpCMioDVYILASCWlu4XaxH9V6wviBtjOeVsnBGtpANccC4ReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUZSrxnPoy8vz2xF4gqOe2IvEE3CL9XESV4J+ujRdOCAmApfv0QDqszIg99ts5yCNiCo57Yi8QVHO9RAKmFosS63NPSaa7DzdoyGLcReIKjntiLxBUc9rSkdGKH+xoSYVgRVuLuXdKrWfXqbbEXiCo57Yi8QVHPb9KtO0XvO/f3Hlcyzud1cR+doweLBGxBUc9sReIKjntiLxB16VHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi2AAA/v/ERAAAAAAAAAAR3XgthiQeF6cLU2MRBuFk6e7Mn29AAFfaQeMJNb6pF2GcUHjFI9JtxGwCnHDgAtDVXD6aTZYwHP09BpOiXJkKVqIMFoJKQ8THUxokfLRVc+BmNFsYKabTbTYXYf8yMv0+5CJvmhgk9dbHLIw9mBmbKsAr2w/l5xWfmPq+rE21Yxxgb3+mz1PJZp5+jmDIn0B8ARFOB4A+gNeoZAJOwaqYiweqsv4DVxJHHoNQ6lGR9hyr56mheCF9poa1hzQe2Jv14mrrfZbKqeqsbOutJOxFVxCQtFKpNcmuZvS++7j3UitYOx3uAl94JZ5T8C+KtwtKVAqZs6wlzKmCtdIzNVZmffFuYiJzJhbp18r47rLIMHDuJGcs5VKTAA+ndxxNXikcZGeVDhiEXHOqMjsoxp7KqmTI10hyldz1GmMojey7YxlQuVpKF2zJ9JZ/h7u+PHyYD5ewDcJdEnxZvz5OajUC8e5Dxpovbl4B2ZlKPBULD3k1ztlpJHAx3DPJuomduBJAAAAAAAAAAAAAAABBTk1GogIAAIUAAD4AAEMAAEIAAB4AAABBTFBILAAAAAEPMP8REYJNG0mSlsFCaurNzPF+d2lE/wNgLqWQnge4QMboX9UNKaTnAY4BVlA4IFYCAABUEACdASpEAEMAPpE8mkmCuRzHgAEgliANIZb37OBttw7ta3nZGnvpfBPSjz0PbMHLsT6FiCTFikPS1kKULWgMkK6C95NbsTa+kBKqfdBrp7IrdHNdPb8La3vdLg48RxLhBjMR3XGkevOvUINorQnemxL0xj3Twrcgtinfj4FQB3CMCj2W0GXZXS4QAP77lGCmuO+nqcJe2NiGfr+gV3urp8+AEoppQVYXnwQuBw5WdUnbZfV2HWxBgo97No3L7/jGvS0+7NcXoHHRuuCPipxaDmQCSZdPPITQuOAcqlVkAzGfVbuHPaOSIMu+1hH8RxA3ATdWYW23HsHOvmYJqMa1wTGRIzQazlixDvV5KWqXcoRy0O6s1NXHmKjDiDauAzS8mkYg+YPyBbTRyPolySQejzFsLr4Cc5okox+dqWkznKNdGWqgT4rKXbU765XUzuxod4H3X/I3IXhv3yrI3/S/exG27VaWvQ6PdzTAsEM23Cmo5RlNcVh+XoMUsFlCnYV2whg/vWIaRnCAwnp/MdPEf9kpwvk4HJ5EjRAl8cg1bejnD/2GeNiNoqk1fKxpGAxxIaxdVfzFWPBe5EfgQHQCp832T3Ra/5aeCjcUhgdOUWEVPvlDH9+gHNsixOJLCH0qg/U1LdFJmSnSqx7TWtnvsEq6/P2YuaEQbJJY9NiO2HrR/wvGdka0GB+0pdnJQ3kPizQVSIzbuaTbIuu8a8y7HMeQ4zDfCIUaRCFyefjZwFFotF0IR/aWjHKpgH02aFfv2UpIK/x5ehrQrBSuELEwLvMdAAAAQU5NRpQCAACFAAA+AABBAABCAAAeAAAAQUxQSCsAAAABDzD/ERGCTSNJjs4AG+rDrOJ7m0b0PwD2UQrp/QAPkDH6T1JPSCG9H+A2AFZQOCBIAgAA9A8AnQEqQgBDAD6RPppKAqUgtIABIJQBonAum0bM7bW7ZN57YA62e74zSlfjWeMN2NRDVkq8UaC3Tf3GZMJ3qZbB61i2gDZGlwRKhirEEG/14egVghbgKQUZHw/qNkgcmzNu+eWMDDC0X9rthozPwQ3ZeXsNBi2pZ4Eceryh3Xo52Uf3oA50AAD++5RSjM+616m/QopAj8mTaNDJHW7KxbH/dyRrUib3t6GB5TS2xoAqeDn6yqlo5INaPZUBzqQWmgBidysmar1AU0qhVOUPArd7MRLSpuDmWKq3SHW18dD141fYhdYBMhZgsqxptemleIN9026/xwNc+wUl8BZSgE5QUIpZFpvLwZEjapR+/EMi0G3bKfnakDWdqqcQ4dl4ZlRxplsz7Stx2bv18t1WkODzC0N6etE2EHPLBXMkm2Vl+/sGh1sDmr0H3636nmMyt4De4bdLsVbCtmx6myzNwM5kQ1AR4apDQqXNZpkew6ckvS0uTDf9WnPZ/CDmJvPaLsKF7tZLMjtt1tHpk63juHaVNQnGc+j5HAOfZKGkOwRvMgzlsLrwm/7P3bDUQjcGTlDlg14EfvCF8D7cC0sqFc/iTGENxVaOFH9Y+SW8P1wW38p1NUBBZMItKTi+19WnrGRRJC3ip3kAThb07gwrILW11PxsEgfzAEpx+B+pV67T8VDbY5e6VAgvYnG3epxaRiGVKDj5HQTE4d+0z4C8+tpCHQxN4E1bKlDNbterDCvXamscuQZnfPR3aDCQkl4w0RWAg8wAAABBTk1GfgIAAIUAAD4AAEMAAD4AAB4AAABBTFBIMAAAAAEPMP8REYJRJEmK2sFKKuvtbJkPvhH9n4DYDVtwhe+L3SdA8j+JSH4AjJF8X+wuAVZQOCAuAgAA9A0AnQEqRAA/AD6RQJtKAhrQgAEgliANBMhYwoTTze2yu1Deg2Ajtxu7szJVi1lla4zC+kxWAp0cRQVv8zYpJt39jc3CI9Drf5wZTtWxknISXdI1EDV5DqX9Xxk9AxikP5B8+iZ3xnJJjR+pzUNCAO4k3ot3MiAAAP78qCl/rdLUy8vasVlcVo2f8JLNX5vNihDoS6W4dJl6VkPXH+YiZASgFuwKFZ7VF3/nDL2pqh3pNWjRTnzwKoZYrTpqUBFOPIZlmFZyMvPX0vIo5XnlT8uMbn2fnSYzILdrchiEMC8hOxxGNVg47D9SucczyJ3cfDpWRCOic1LSuCz04oJzdOnYsRFdiKnb5nd0W9GaRHfWjPVtZeAYIUsF//V6LafNzfU6XVtuFz08Ct3czWcCN5XJ36tNS/8fWT8SASMF0BKA/JQDHd8AUIdxPL+cEL3Z+iZjyUY3SYqEbkjoVjlke3By7yjiIGX9BN6CGb8KJDLmfFp0D9q+91BrNLAC5XRIMG6bAh7GGBmaRVyk4xz7vqcJpC7/4bWcIWT5Sxl+8WaH5pS2+oJ6i9NkyHmv5deOQQGCF7jBpOvYzSjgSYfBiggsvpPMNmruMZHwAPqaV8RYUrUTu9xtcw2l2VGbLbYSn5N+769m1BIzpI/EyWJD5u5JzBGIPbn/XsHzWqXBWh5ChM5vktDdCRM3VKPkAZ7u09EARdWWeBQR8crWotkvtcxwMaHCfQc8NxbAAAAAQU5NRoYCAACFAAA+AABCAAA+AAAeAAAAQUxQSCwAAAABDzD/ERGCSSRJkoatrLbezpLu3ksj+h8A6yiF9H6AB8hM/0mekZKZ3g+wBVZQOCA6AgAAdA4AnQEqQwA/AD6ROppKAs0gwAABIJYgDIQWQI1t3LtuoDN97rJghHdPqLkgoDQLAjbHWGgOdPp17X8nS6VStp7Q2oL5e1UxD249af1tuGEKPgH660jSatqBMMg22Yg2ctLnITqoFfY8WbMNbY/uzLhx0CSs8dOWD1U8AAD+/KgKdXBbQJ21biv4JTTb1BBPRjedHJL+nMah5uni7dagqpV4uq7mLhBMK72QO3NDlw/NPR/QtBOv5hKRso3oyOYGzxIontDRGLomK3FCdjk750EjlWbNx1Lxma2roSK1rWuAeQeSU1DBwiFFVzJcll++T/jW/kSae801y04kQgdmNBgPTL4uqKB2DbBzshRPd1g6LfO92RtsJ46hkDUr29xWMm8SoyWt5Vj7fTyvOZO/xcOGk8fxaNRQ2MizXESKbe6LCP7dUhvLs9MIs1Jv2A4ZFAZK90RlA63WlaU8ix1LB7qN3apu2QPHkaaiBvBIYv8rJW/xQ2uUW/6gyv7QZsbj9+MQj6Wn1ZxFp0374spxAdZAbdOrKsDgD/Gwgk1gOEIP+5RfTReiknrKgwGr5gHUiCApBJYJcSWfW705GlJdtBgrp2erLzdF6IG8TCa+WFApRNSGLBu0lMciL45dklrMah0XJTFRRlb2mZisbbUxdYy/T9ZtGpjk/4qzZ+CFJY78QUBQvBBNN/q7AzKljcD/zowoL7s64fcSpeIdm2meB/RQ9emUExuemSUuvIi903GSqGnGTUsDAAAAQU5NRjADAAAAAAAAAABXAgA6AQAeAAACVlA4IBgDAABwNwCdASpYAjsBPpFIoUylpCMioFZoILASCWlu4XaxH9gavxKaLpCp24y6pEmW5SAR8bUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF1UPK5G1DnF4i/+WNqHOLxF+NMnHoVpgK32uLaEf+AMUZLY03pf3chFSRhhgGup/o2oc4vEX/yxsTEAdNU21XjmnGWRUL3JcfpZveoBrqf6NqHOLxF/8sbExnR9K0B9Kz85HjwhYuWRUrnGVtquFq6M5/yxtQ5xeIv/ljahzi6rpAjM9nNxzj84LPR+1sVjahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8QoAD+/8EEAAAAAAAAABQZaBXf/XnRkzdUtnMTEqm+ACQFv+BIvJD1iH+X0UBrbVl9u/fBkTmTSQuRTR+r6WYDf/hdoRR7KrfSL/aAxh7R9UArYvjDj7P8gg5nKEFexM6QStkPTl17cIUqol/6ijMvM580R2hK4NVd8mW/2mKhtZD3n/mzWuYl0DPvmchxUgJWOn5iWedWA8dFR0UKxoKBJgU8Vm985hHm39+XbgEBBVUuf7iwYA0PlN8hta2GdPEQlinnGzwVStmTTqEOFNw3199jyh4HJOZQDncLhDMRy92m5JImjOVdT1pwARVX6ekWeRBsZfrvrtOqG5V4c1nbIbQbnpp1hWxyLn0u+UNn/FrycnWN4HMica+bvV62YT6DYIB1VbWdreIJSe7vwEuu1bd7n3Q+tLh56gAgu9QznRnFWWkhAunrZe4AAAAAAAAAAAAAAABBTk1GogIAAIUAAD4AAEMAAD8AAB4AAABBTFBILgAAAAEPMP8REUJRI0nKOjhJbX2cHTN9I/o/Ab7qpqAM7eerJ8BMf+KRPwHK0H6+OgdWUDggVAIAAFQOAJ0BKkQAQAA+kTiZSQKzJOIAASCWIAx6BWEBjcvd7cu7ilCGOZ/dYf1plB1yE8N2cTlHONNr59OyBlDPuL8Rp36xkZxDBZrRyQzcwc3im3ENK8PA7KI3VE7uRi8LcAVRQUrNJVphzNKuiaaC6nWFSqLK6fxLfOUGgAD++/YNu4Y4nvGJfxASr6azkwHV5SN/9fDSe4emNNjwHbJV/KN11Wi7Di9pdbD+puW0FXg2qAw8neVpcKkRdydb4JQMjDtdxCfn+geb8Ff8C00DdKbcbaVztGt69c2/nHrAogZny0YJ0t4nGzcckYiiUQqkk+DpV4/geJF45kZcR++5SgrjalBNXOBO2p7aeplRHpm09bzgQxJE3foWesKHuHCV3vm34zOLzMIfDLs/NBn71McBfYdhtXJlAgZK0WKyqqCKvK9wIMO454ZygIY91ifCM43t76fn4gJB5Qivpm6OqBN+7eDQBcpRyI/6R7vEChEiapewevaqUDlL9YrZ4xYYoJZbxC9XjnzBVJkFX/TJJuhgy75Urtvthw18a6lRJNpHo1SH62wsT37ogv7E2v78Oz8HH1IV0Y4mQYVU3ML0nw/5ctAjhgCcPiP18EpB1rMyxrcA0FjMQ49iiOvLN6kdHyaj0rqG+lUjn9tsQkVE0C2lGwvs/H+iax4ABRV9FCqGCNNo8t8zPCBk1YMMKNUfxm44bYLQZAADymKpApcH8ApxtsHACdOYZo4JoSVc9ShuycJGSlLhlUyJHPPg740T5G7clFzfo3euwUDlxnOSxgG7AAAAQU5NRoICAACFAAA+AABDAABCAAAeAAAAQUxQSCwAAAABDzD/ERGCTRtJkpbBQmrqzczxfndpRP8DYC6lkJ4HuEDG6D9J3ZBCeh7gGFZQOCA2AgAAtA4AnQEqRABDAD6RPJlKAs0au4ABIJQBmPLNkp27V3AKD0fDev8EtLW02cPQQNSsIVHKjnVntdAsr78RoE72y+RJSGYvTd3ZbuFlClmJUL5uyNQn2KiXfIHSQ2g2palztShSgbiItTt7O5hkp5Rzkoc1erSrBnVvm/NRC+2AAP779iB1tP7JIqQZbG2EXGcZ0NaVdB4ibv2SdeXx9uFp+D0kWH9r7YgxL294FdNGPv6kcy45mRAkr/o5eeou5KbQu6s01t1s6faDlVZ/v3lnGloV7VpEEURPJqgJ0qp0798tH7zf+t4a9xbMa6aSXL3YmgyhAUjeOV91P68wa0TT0X4noYBFxm+cW5/LLP/ghwzBd76vyE7pxHq4SYGrJEpVisO05cYtlA7AZ7oCATVWWXTE0FbEeDa/TbELVurTEwOq/0YwI7cLhgu9BSGyWlfTAO3JKXT70XckI+5k2lx25B9PmLywfKBh15CwyohAJlltWtYRjrvH/l8y6g/IeckaDAOTgyZHTxeCg+rYbDsdqm6Kp0Be8rTCesFK3zTRyn1pGzyAl+4yK8mQ+eV+eaK62TkIncn7c7KGVAFC0SVkmEspOlpLrREBoD9DRhLxUdpDLstn4RLrw1jMGlX1LzwTl5f2G7RXbpuyCDfKIcFXcAJdDS7MlLjfM3tWt5z3kBfZ7CKyghVLO6NkJCuyO3JYJhl+OMzz2U0cwafjlQHowD0ohzCdKCeCPI891hAyyOeCBncAAABBTk1GagIAAIUAAD4AAEIAAD4AAB4AAABBTFBILAAAAAEPMP8REYJJJEmShq2stt7Oku7eSyP6HwDrKIX0foAnZKZ/VU/INJXeD7AFVlA4IB4CAABUDQCdASpDAD8APpE8mkoCsySxAAEglAGIqM6Uvt1t7irNQOPAuKF9X9Efsoj5bHRHz16EG4qH1kLFFWvN9lw1HhZuenK/r1vBSF5vU4wc5mZnYA+7XlTZ/PoB1zX8vO7+5HQlL0Jm2L8sZAum9cHFKywAAP77lAiaOin6EN5XGUBF6rlta47dhwwK+D2LcD8NQnczKIOTbq5EjFHsq+yO2POezaV2JIRyv9vyiAd8UZeZUa6k1BzNGJ8uKvLpLMsO+rAJKTNugM7SxxGcKZnmBmySbAW0xbkG4NuKDG+uWL8U5przqiP17y1h3hYSfyVJ912Jx5kbT44rn7udjoZ8hkMvqMeazaZG8MzkaeoA4Lg1rTZgf9+haIKLkUz+LclnrYBFSP5HnD758UZ8G7iZdHPZoW5ufuBiDxbE+pz036zPkTUgVnQu79jfIrE5FLq6PIHwDG6dHhTEkL3KZHeIjR+MRpgO3N9MuguSsGyTChe0rWXH6PqxftcvPEYqXvWbp6Q16L4gIVE9Gez12Hq7A0oRtEqc7GfS6clKBIKsbyoB3mccwRhDPBVT3Kv7jx5SSV1NaBl8WYjV9ESAi/83y3huD80xVBfn8I/lUbj6F3PPNnPevjl4IL+RtmpwWjYOhorh5k3kPn0iU0A17nBrbN4KzEsPY0ng73ZBz19itAL0sCgoB558HOdiS5CXPEMgUMM6zNXuwfzygAAAAEFOTUaUAgAAhQAAPgAAQwAAQwAAHgAAAEFMUEgqAAAAAQ8w/xERgk0bSZKWwUJq6s3M8X53aUT/A2AupZCeB7ghY/Sf4IYU0u8AVlA4IEoCAADUDgCdASpEAEQAPpE8mkoCjyTOAAEglAGQCs56PBT26ZVpy09NO0ebjQcEXNq9Qbg8JeXf8GoBTP4G+8ZNrM18RpUhc58RgLtsNUZXJoLZK2W0DTBp7nsv5tZ1r1hd1GUnLMfakPIyTtzthXZJcTbZOxI9wBFaGZSsB26H1faAAP77lBHPJELpo6WAmOzgaKdixMYdlBFgAXyp5i6I+fqkXpVxGXrZvvex9HTvTXA5eCriGP2WCsV9S6gkcnkhCk75qAIlggWibI4SyrqaKTFcCGFQ4Nc1fbzYdMoggANEiIHND4bmF6subOPsiVvmYkWZvuOCGZjpJ2d1w4QnFfpZlDlpYstHeViE3dKVs7eNaSDy2e/xIBbLph7muVYg1ehoLImWRnLjjHrq9ShkqJcBhrViLe46jB4vzhTH1ob4fIlBFcHt3+cGFGpMagKr6auor20edd29ZPrHds5BmVt1lLafVhMDg4VjwQ5PVjHEaBnn9NkdvFDkbNdG/mGbwr7LwBC0yRXrI+KLDwHcCEin8cNMy6xhDLo7UEX3mmC5xus8qofzdqg3K5GxkXwlIuBIoUfTBL0QLw9b0uvHiLmEo/NK7gJLxnvn316ADrbCj/Vk3I5rKouez8IzK3JUc1Hj0oZZNU2vFA2sONdzTRJKdjpImG1BhHN/gvGNdO0BNXru5AX+J7aanE5umeOEyWx5f8hG+PM0yjZq+A7PY9cL2xv3OYZzh4S5VYULQcDY+gHVP0OOQg/1VnncZbt5HjxwzRWI1+OwAAAAQU5NRkIDAAAAAAAAAABXAgA6AQAeAAACVlA4ICoDAACwNQCdASpYAjsBPpFIoUylpKMioFSYGLASCWlu4XaxHeoar4APhF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8nI7soO4i8QVH+WNiLxBUf5Y1pS09+kKh1avUdJvWuADRuHltSlTYcCPx/HsReIKj/LGxF4gqP8r9SAObqcqOkvKpS7WwHkh64sh13CNiCo/yxsReIKj/LGtKR3bOA2xUBcLvJ0ZVYPz7NxDtOcOcjYi8QVH+WNiLxBUfl0UJz4BgW5DkmHzPDgGgXEXiCo/yxsReIKj/LGxGrLsQVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNaAAA/v/BBAAAAAAAAAAUERYmnJ5UxWFq018AYYPffd84vYKd1gOI5ElVKrvJauH1C/Y+VabzpD35bdyO/Qviv6vpT70N053PvuBYyetK/E7mPoSmAWUN7C2HkaCbB6N7qnuTpJNmpNgq09F5KgLajjRiwhTWOFHDdfpu1k/zcg3FQH9xY3F7QVUvxAV4akDN1i1/WivHlEIRrFaSmWDmuuF4P71oXR96PQBbkfZxVC7/FFnLfN21uAAWDGfG9Aj25a9e+JqlBtN5riLoSqcCLgJIMfuQ/YFfjKOqvUEmJZzw5mWAw3qVUNaunuviOrB3FxQvoJAiSDmdQb99BgNVLOgVLzJx3+p9+WlHlk1+nAj9lpdEKSJCfGACEag/hFrOVDQ4VSXgeeu2d7sQCmCFv+hCetlyi6kHs/07BlLoOTotd3KHl2cFtSs6yGKeGMsBsk4MgO6uxczFAZyEuznBf8GhmupJ/zuNXmhQAAAAAAAAAAAAAABBTk1GsAIAAIUAAD4AAEIAAEMAAB4AAABBTFBIKwAAAAEPMP8REYJJJEmShq2stt7OEu9zhyP6HwBrK4X0PsALmemvZB5JpR5B+h8AVlA4IGQCAAA0DwCdASpDAEQAPpE+m0oCj0mxgAEglAGYKUsGi1IOxt/Dd9lgMDNKhPOeAr+PLUGNQs1rGIkM8Kylim90f4NyYv2bm79qAKyDDql/qAlS7g/c8BMOBFDQ4HdfSsa3blrdMnzf2Ij/nW7k8oTxsJqC+2ANnsZMBlXqsuaaVRHaBpwAAP77IalFDI2xmMdzr/Mf7oXvow7Am4OdliRJio82b/39hX0BvOTRCeZv2Jx9TWkObgGdduj9Mc+aKbixgLKJq0U8Gsa+NUalFfLbf5rTyKiOmQHg9qMYVpO02HA9Ocho1b2kbqjzpZ4ZucCVWwsWTMS+JZJfKjBzCivMeKENDkTw5PyhwEd0MeveeTLlL5hmtZ7afP4Qnc1bt4P0tyqR1iPxXpyz+DYDdpTIFMxGtWqAoA8rDcA0mbyqtwUwLhr6H3pZUakIh61xYMuWGAzhpkiDmZHuhOgzkD5xwGrrPDVscUSyOi7CgQapQQVfEtKAPMDDMis5Bvrw2GKwHWCFG/08wQ/zWorKrE2TPf29o3Gpp72gXSuSNPWiaGTfoCDFIE3F0yuexNaYptOMtgr83VyjIArpEZQN9bO7OTtNmACJW1fUrmtHjMNTKE/LTfhT5Ks8bYh5rTEXP2SjkuhdOBa7uxGFtLWxEt0zsmSMhQRtds2sKTe5xUcf9v+mjcG72jOUVkHPzV+0315kIBP6NZsqHmzgKKL6m0WScVInAgzUm5vGBPOOiO760z41v2ELQpgIdeAe4K2qusL6O6lMHicrFKk4sJjJ6l/Qw2421M4eegwoM1NvccEMqyAFYIAAAABBTk1GpAIAAIUAAD4AAEMAAEMAAB4AAABBTFBILwAAAAEPMP8REYJtJElxyICQJvXNbCx+kNyI/k+AzbqEqJLzbN6AUvJPJN6AqJIbEHIDAFZQOCBUAgAAFA4AnQEqRABEAD6RQJtKAntVtYABIJQBiuMr+7d4CrXQkG/93VGhTP3Y0yj3ve0mHr1GCD2Ckx7NKlic0DhB8Mfvs+grZNZb6fC508lcWr12T4z+ByxizMGidkEUTYHQbBGiPmLCKYHjrm9EnwTX6GT69G7BmnAtoAD++yGMizshkIpAv+nPqsacZ2qzn7P4DfJTS3UaW3YKilirfnlh5orncoU243VEsKRibCvRoOp2tZl5U2+T0OibtYBbJi+3qRpLHG/UepFRvoEIo5OzEw1f0iu+kYdz1I2awUStUb9E1UbAN1HINRP563qTgOinxM0tHNW579vfC3OBSkju4SswsfCNnHzPRBEscBjrUJM5qqcsHadKfUyB9FS8tRpBlOhFa6d+OrBRn69ShnbpOmRkz6XzoUkxfUy6yf3EDtT1rhaWqgKDd7t0ZhnChgwUJ4hH49k+nsAOvfliIBTgK1pfJR4Y9X8/rdFm/vCOa/7e0blA59FvsnkTGp2WxOoVOUrN6cJ7mVhNK+w5US9fFvcw5NSOhFGUKGfNWVFSGOmM765ZALW8RdJzuf6L7eV30P3T802YPVItN7hse0r8C1l7rrwBwFg/hUTPFk5Az7seldAmo6+SL7m2lHphSd705hcJd4SLaVFjV5qAkeqDPt+8le+08PSujcVqq120atciQFum+jGSfDGFN/497ZJax2GLj0uRYLh411IK3S38o2wSNYS0yNRWp7He1+ReiWaPPlSxPJs+uFShXaeQIXFHpF/quPTMIWTvXbcYbAQSb4wwAABBTk1GeAIAAIUAAD4AAEIAAEMAAB4AAABBTFBILwAAAAEPMP8REUJNJEnKZS9rrK+zZ6Y0ov8T4KtuCsrQfr56Asz0Jx75EyDvvUcnQOgEAFZQOCAoAgAA1A4AnQEqQwBEAD6RQJtJgntVtYABIJYwDLxXx76KqOWbpm2mCs3ZOLEiTQAC3ro3pxRE6+SRtWe/v7UnZ0HskG6X+yVqJCxhdvevNDkK4bUt4Zgjn5x6VntGyuJhe+Pyy0mYNnbzRHwZb4xLEXbeUwElNFZMrk7BegGywHavUAD++yGn6XDM0asjzta1omLQv7L0nlFPiBfrXPzG20smdzfVeAQ+3dA+7ePpCDhEHtu9OUfsUFd7qZD039TPoLEc5xtKtVAfBdZUd7yuMK5J1vTUvvBn5JcSkm0aQ6DxCaMFO9AMyfBmMJJXxMwFLYBTFwruPlu3qJgLJBO/ICCm1RM8H9hDeUC+zMggg/WAPAAd+ZIf8ZD7up1MDNU7cAEyNWiTGUzpPDvad+u2cLVMvVgqPhC6vjzqSFuT2f0xTOmPK/OSA/DeFDeXu3wlysh33nq9uMxJk+kwOGNZpeypqcWT0tham1VR4LX42DSMNS66cjb9vYSymqrvrtXucc9lZcrePOxfVYN2vjNrGsV50MGJ4n5puuYVMtL/P/MaL2hy1ewAoSFq2sYnrpQP/9tRWdEcD3J0o1f3Kc43wtLm6RBGgU184oOFcKuv4qYw+5RGa+XEPAXs4qa6na4D72pNNLIUJKeqmBdfo76YWxNTJlrfiXSFH4N7ymXbhy+JtQsr4HWiBrzdxNZUYjO/oYbcUCZkCIrk+GL9lC9uB4JbCPN+chcxYAAAQU5NRqICAACHAAA+AAA+AABDAAAeAAAAQUxQSDEAAAABDzD/ERFCkdu2TQB/u+PjBrpn0p4j+j8BqR/3gQ2cntSPmiDCv0tg0gSmlBKcJlAXAFZQOCBQAgAA9A0AnQEqPwBEAD6ROJdIAudx0QABIJQBiKi1n/29TRgwA9rt2JpNrLjG7oZ8xTbRHh/697H86CyDrPzncqSWhmcK+WVZ1xkYppaigjs5ar4r6rhOhkNP8fUssX61Uep6wOZaneqbSyVovhlFPGM1L2dbsLFjy/oAAP7+wiZ5qa89Lr0h5NOMjpibmhxxGBiZBZgDaEbtPKGth1n+mMLQztUTpi5ge3gkDV+drpCGfb955J3hJ+bO5Sy8pn2PLXX89EEUTVo1vXLn6+jRvl6SfaDDG5OR84J3FcRN/EmtmXYG0OeF5OnTi4V3xrxNCqwXOU+UrOWG+AUbOTQb6pfxue1ZuOnIKqIuukqyH9+uUQy7FumOb/OHBg4WHBreN1/23qBXMcbUp5j1hgUvoH1clTr3yf2yRIVPrpgTs9/3yxwqGHl+1McXhs9VjOVJOcUaf09HBL856dTmGMuULAiw9dMyFGlk+OAz3GHAF29hO3l8i9aZVX8vIc1U5Ne/iuqTnD7GXyeK2gu1ySFEpu92PsHXiUnXB9KYbGTImyEz17700gxK09qmYp8gischrIV9J1rJt8fftfm+dE6zGIybyIqqrs46CorzDZD882Q/cI43VArHg4fPgDwUBFxlPQ4TL48LZtt7ZkcxiAg8+WQPixGYa5BfOO2J42u3sx2sTdQ0TlHVIKserSIWTMAGs+0V87ivl//CYzmfsIL5PpZ0y9WBQWTY1f85eAFw0CLHduTPvKmFZfKiUe1QZ2h90Nzxmy/ZbaAB0All7+kwAAAAAEFOTUZUAwAAAAAAAAAAVwIAOgEAHgAAAlZQOCA8AwAA0DUAnQEqWAI7AT6RSKBNJaQjIqBVWBiwEglpbuF2sR3oBYCoGLeGDPjYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVHQkVYsbEXiCo/yxsReIKj/LGfzbLKXtxlFAIysvBN406jH8FVf/LGxF4gqP8sbEXiCcrp/PYgALhrgX+gF0NI8bBEW4i8QVH+WNiLxBUf3lIngEQfES4XDHAmKdflrFq868A39rGxF4gqP8sbEXiCo/yz6WvzTP3QOIIyORlsKs+pwzBiuqAgJQ5yNiLxBUf5Y2IvEFR/moOiznI2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvDQAD+/8REAAAAAAAAABHDDo0MYSgyKn8cCpJChLYZFVIo1KqQ0Cou/RE5o08N1i+d/Khwa9qP6FcakZgh5FToSwafedDgL77edEIzk8GFajCra16K0+hsz96mEgRTC7pOHqy15RKA2aejvs1LBOjLLzgwSd+bRQ52mTEDNdkAAt0QVjZ18jfAL3twexdICSX3Cepr/T80OSA4sNOVuz22J44AqgmiMUjmu+fjNbUQlfv9bPwHfz7jJFnXwxpRzrSyOlp/P72yLgwnu8IYPjDYy7iVKu9LtYf3IXSNLj+zvenrf1015rfZPcKg6+reyCB7ibmN6DBGeMLWZ5gO1TZzJsGKjJBM7YUCgUgL30DsVeCWUB6OPo+lUQiEwLi6l2Oa6xCEbNwon9dcd63v76wlrWJH7UbQdSvP03OR8fMnOAhn9N7gEgdR1X+yLjyd5WLbcPYiZULgY8Kfs3kLlZIfGM01eLSC7Thi7FkF8EKtnwp7L0UXq2MAQRIoAAAAAAAAAAAAAAAAQU5NRkQCAACFAAA+AABCAAA/AAAeAAAAQUxQSDAAAAABDzD/ERGCTdtIgqZ7WEN9mLm+uwcQ0f8A+I6ajO49Hfwi2W+yv8wv9B+drtl7gDNWUDgg9AEAAJQMAJ0BKkMAQAA+kTyZSYLNILUAASCUAZzYz5CjV8PMfXH+wrPvFTTIl86Nj1+6cHi7zjUcacV0/C3KvEDtVxCSxkYNRNUB8hSnK4+fznHNQTlZ+Vm//7Lvf0jcByc+lPlAx2kVbvyehvgntQAA/vv2LGl08LBcGI1FSaJgyPOvo1652gCo48K6PUo8d7Hju91pdpl0uiSzosG1ARQ0B3RCAa0vCquDzWhkvULhYsSqd144ijRaeXUndrYA4T54RM+dwRTMeuWbkiREM9Q82ONvGnzo825+Uav20fa4bBlddJiJp3qviGcmnUzsc/mpsKTZGNZAB5zbvXPfdvxcfv+P26NNpcohRZx5cpUsJiQoMxn6S8RM5rWK8vq5vw/0uUo/mqa7McSzXDwxoAjMG/+NAtAHp2/E+GTj4AgQhyUZnT8eatNAAmi0WzeI+q5nkKUx2ThQOGbvAvw68l08+MIO1VYKj33Eu5nmM7h1oekdfMSNJkQST6L7zoIH9DDF85/8ufxrkS+9ErxoxOuJifFP63OjrQa0Kk2zAGoyLMuZXILtAb9f+oVWrWrr5Mlzu6zPKXG/+vnvtQCGpiaPHyYr6FjI8Kg5d9J25a1J6IIca8T7+QM8mj7bW8xgZpk++ENTtYy0tAmE70jW8ZzZbtIYAAAAQU5NRswCAACFAAA+AABBAABDAAAeAAAAQUxQSDEAAAABDzD/ERGCcds2kgxMYW7dnek15xr7juj/BDAdVxwApwUUkKQ0AP8OHBo4AE4Dx2kAAFZQOCB6AgAANA8AnQEqQgBEAD6RPplJgqVAvAABIJQBmeMO9vTTQv/pvN1QltMOXtF+PI5vKSjEVa97ZcpWYvjWXBLBupoJRWaihwYu9IxFx4SibbUJWShQeoY5fhNXSucU0Dzx93wNV+rZKQBVxTjioqPtCo8oBDWgQugIzOubVWYofrEVlTATgAD++/YdIcos6h2Zx9QYEj2lE4eLyK88STMaXcOrIwgRoO5p1URDOmryeN0bAOAmXwqnAIjX1mOVcsw+IefLCZV733rJvBdunccY3uibjueHE9Fp7xgZj1zEaexKHKC3dp5jslRCp7VYPQVBGPUROdBXxlBDMZ9rHPPQ114ygCvH9fhrUXmNxPz+fwgu1WaIGCY0FIJAxZOQniiEn424+CmuaII2C8shxivYd4B5caFTomsrIbKKaMbJVaWi1JAP8iTfxPUYfG0ATvdPnGfJ6ExED/m+WdmlnnyMruE0+OBDFQWmrqH9i+Fzrpp8KJ9K+iP05OJdDfeHNg3kIIZqkCoG5lbPwp1XtyRb691PFBpUnQMDqSE8wQyBIoMSJFbiXJU3/05ndTfsBmQWfiOKLGvGkg7L36C+LlFptA4SpomaS7kufFbtV48wjmmPKXuu+FnsGnq6zGabTqPubvmqY9JyjILlBgO2JKF1Afs2mPCqECp/sv78QWs64HwGd/s1dUYTa7bA7qNAkrr2d5ASFA9nCwNt2qzyHKDaj5tf9F8pjuy+1ToIMYW+KYGauTnyEqEYc+agfZIzzwoyKZQvy2cefhOfqhQKfOJ3Sh4crjyx6/HmhpYzw0AHFDXrP8xDji8lyEzYv/u/KP5rSDSkh38+tF/ANAAAAEFOTUagAgAAhQAAPgAAQwAAQgAAHgAAAEFMUEguAAAAAQ8w/xERgjEkSYLG4JBavc3yfbENENH/APh+pZCuMHB31wWZkRmphRTS9wDPAFZQOCBSAgAA1A0AnQEqRABDAD6RPplJgqVAvAABIJQBjMN7bMB2Uu6/e+Yi/aLmZGI/viAmfB7vsPl2COTfYNSIiG55KX05XCYZkwgzWtrMARAG8jdNcFdP8oG1wFTlovXCfEq+HtF5+PvnBBMz8+CX8DufwLVwbYE2zCRRKgAA/vv2CNL3VAXJ8xSSJTZ7GLRn4KJ/B5OT8cYC0ajOfMewkb6V+bYHoeRpOuFTrtbCTdfhSQ0buBid5qghcz0iQ8q0Xq76cley7CJ9cQ5ddeL2exKHI+3dp5js1el3nn23Ofm0p1e9p8IvTlZXQbV+gNJuLwDEppu75k744B66VRzKWgaevBF1P/nL4e+y2I4azq/tGokTr0pBwGVC7rv/B4gAx6n+aBD8n0AM3RBMGug5fhG/WH8201t/eZ4zhB9AP4Zxhb2o77eW31QuiliNuiunbcx2RmIeqxQ83kttv+85JumBZVlX9wh8e35IezaJYW6IXAsSi9YZfj+Lhxi99vu3GdfJgEDA5ICfJ+qg2/6v6eLfoo5JNj0t8nbXvLZTunZY2ndcKIlHoNU9mIFIumPdg5tRbwNXrBRku7vDpX1D3hAMlVvZj2271/jJ5F/UIPm8xvt3Fx29ecnkA1CEeN+b+opTzq0gtqSZoIw4jDbQFSM+FJVO1evRYJym2RAAgOMLRnZFIqbdl0NCQiP0S1tY2XZ9VLZtpabrLKndx5avFqZcGiOPfVuLybpCf4jZVAKgemwiVNhPcZrAF08ImZKSX0Cngb1ZxsqtTYJ3mVqxJZj95hODQAAAQU5NRswCAACFAAA+AABCAABCAAAeAAAAQUxQSDAAAAABDzD/ERECbdu2ydaz/Lo/45y2B0T0PwDOKjMlfU8KX8w0/WTqk/pC6ocU0vcAzwBWUDggfAIAALQOAJ0BKkMAQwA+kT6ZSQK5VbgAASCUAX+jfZSNuBdum89I1E974M6WJpU2I1R7LYQgRy85SPu+9eQ/Xnvl5o/TJQ4XJWR4VYMomgGrWZMxYCYtdMoKsuR87IOwf4nldo3zv9LYhly/D2ha+AF+nFV9Vn3zaj4ujSKV3FBsAAD++/YF1vEog0PMoDGxvEsP4sk8YT+gsNgzbxlHBPTlsLf9isvqJwF9dQo/NRpzYY6Oxq7ym+5SPRCUElo3HKxDbg2HODWA5EMRa+XUqmNrjD4+plahLji/VLotK36yBs07O40+f+P+ZQMusvrLNy3N50ufEHqGldoPsIJJP0i2I4iWJudO3jIqXo42irMvw/kXnA4DLEKWGNjqx5cz0M0jiloJ0vapTkhCUPkUttOPvHUj0xqM4kqvmBm5SwJT/bJV1IKLms4GACztCofnjaY7c4HvrPiNcVVcPUYytCQYE5xV6wezSj6oYCZP5RQYjZ5afgF0VscqX09wT5mzWM4a74btoFnB+48R4Lyr6xfQ8huIjDQX1oA4ocEkH/ScAKT80mpwEHP2CKP3o3yZWYgYlVEB9N2SaB2V7nZGSXUF3hkbUErqMtZA2218v3UiLEG+Q0yPle3CQmjJILii3QOgckVdJZis8IGUNbFs53cGEwBZAXs6eu2vr4tBNZ+ZhkpCS6jvJyVeZRH8mlhZyOyDTWVgY9O5/Wxm/hfYAc5WQVrYBoYfIJb2+EewemDcQ2B5+UoPLyGZ6ZD72gHWu+/Edv9eCIIalsGZRU6zx34Rc/Z6UxECcYKr2Cas4jldV7R7S6/qbLFPH4zzlnraTlOdzVdExi7MK82O9gAAAEFOTUZ0AwAAAAAAAAAAVwIAOgEAHgAAAlZQOCBcAwAAEDgAnQEqWAI7AT6RSKFNJaQjIqA0CBiwEglpbuF2sR3i86LHV25HPR6cAoEB5E1eBHwQ1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVOhNJsmIdVSbJiHVUmyYh1VH8FSbKwSCqKSrKyQkP9PQAQ1VJsmIdVSbJiHVUfwcxe06Gofwsq4YwHx2NeIewXoac30xl4jnr0ZeI569GXiOUYiVPwOCtNaRKf7GZlYGQJvGQ6HqIk2WoaKVvPiHVUmyYh1VJsmIdVSeND/ZJsctOPAGYNr/j95MxWeMe5NTc5AnRl4jnr0ZeI569GXiOe4c612IJxyCGqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNdAAD+/8EEAAAAAAAAABMwwAjpakFyJij9hTxHswnogqFDl41DqDkBrNCpGmK1D8jmnmW/rgrm5xXIzMCG5155jel6Dud5xE0RlBsSgqeiYJSYBZ/u8mRxf7wbZf+17beDtYAWuzQL58ckGuf921Bj5acKxj+TewPmY68ywXH/qb7tP/HAT1o+YaGzJWei/LmvaeOmx0xMFmfRp6xFDkWPWz337V0ilyouF3r9PVt+EaAAMlROcsxBdci8UyHMZFj/fIopTE8UddtA92KA/XRLK8tfgwGOdjKk9QL2E6przQFOIPXBzSpnDrVHj0OJQW7Y7dwSHU+fiRqPH53hCOsEwMzb8DtRhOMXzu0liOJUOA6c8k2/O9ax034apD2dNN8kypgz0H6FFv5qcdyMDVxgAC7PJu682yVuhMgMdvdHVO7u7/ibV/BwQxJIGaz6y4Z757ofliuaieq2IhHsuYt3CRgOV9E6RbGlbM/s+UZWOKLMqIkrupqw56EqHJ5evnv9U9UXbR0vya/hQAAAAAAAAAAAAABBTk1GqgIAAIUAAD8AAEIAAEEAAB4AAABBTFBIKgAAAAEPMP8REYJJJEmSlq2stt7Oku3efzSi/wEwFymk9wM8IWP0n6SekEL6HVZQOCBgAgAAdA8AnQEqQwBCAD6RQJpJgrk5oAABIJQBkXKLlO28u5LvWNf9jiUDZv5eSPnGi/GDgY/n3p555pNprd3B0l+hOg9TjNAKssbisMteGEYazVE/GAHSzgPA9VKbP5lsMkEka7JgPHtSYFyxyv1pXzzYgY6ey+l9WV3iHGERsAGibc5HkCQAAP7+elpGz/ORKrsguGJfGL3VgCW8kEWqvCaaarjWqPhPKdYFsY3qe0ydBcmYA9I2JJGv8iaEyygE+IsCqzaD9eXnWvrg5fZ63Jt7YRibwwZYpB4F6zT8YlXeRXSmStP7zZtrjYxBRnaFpBZRV6uNhKxo4ssB+UidvWRVBx2LsTrx6SqJ6E034pctyX2bFJn4DbVOFyDW94SmC3NQOQRZKmKFEdKA2NLadLrujvcfhnR9I/YA/EKfXazBgvSKGTjmwFYpa+C8MUnn3sZfhyLQcdwTEO09Qr9kImRT+fULle+unn/DxLLjTQSwt6ca3+9lei+NYgpjCZ0rSqZKfUA2gy5vuiP65J80jovL58lHmDKYWyf6/SiMoW4D7nQ9/YHvqZ2D9PrcDQUY52pJeu8DIccwEZ4u89ES7EqX8/XoxlMXKZ3yMS5WRuXF+NPL6F09+AKL4snxRr8naMcW4AV7UIIEqGYstbdiCTwXp6ucOib2oyBav44rfT4CVJkd0lZboJD++pOP0P5Bxo40vAiEt2d2JBBrZVxtuRlhVV9QD7b0G7wTu2v7C15jFj/MVcT364QMFWHMKuY6LMaKgucVZ0JlZeclGIWfEIsz3KkuPy4SUKTw74LjjYdAAAA=",FO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADACAMAAAB/Pny7AAAAKlBMVEXMzMzy8vLLy8vr6+vj4+Pa2trR0dH19fXv7+/IyMjo6Ojg4ODW1tbd3d2W3PvKAAAF1ElEQVR4nO2ci3bbIAxAMWDe/v/fnXg4BmynbuzISae7nZ12SWvuBEg8OsYIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAI4uPh6fcfgVv49Rd0OLdslEZMXy9jrVXeDIMetAlfbRNDIgath4z7UhkL7VZBGhCZVfRg1N3NegHOlVKT0PoRk8y39TMOU5YKozO6isnjA/9FMmACIl6YOiTQu4Rz2cfd3cKDxJCEUTozVF0LnIzzI3Q6nz4X6gtCw2H+zSJVRLSOIkHlXCnSK+OHy8TMHrwzdUhiNzMSRNic9a3UHz9oYkgmiEhNNJFjnIWrlvMxymj3qZNzrFIgk+SA6CwR/xB+s8WfPGhguHsxtIkERokMOwWldXnQoDf0KampMNyHJiXCh8ZNiu9WxtbHt2iP2dQfiG1Vo3dDTol6ziRG+JBKmPKbr63URw2aWcSsIgKZpG07pM7Qt9omfRMQW7xHrFJGL9vcHlMiTMCsNeEKIpc6XbO4zING355pYpUySTEs413HD4WcqkzyeLPKtQvMz01wyuQsMRveE6sUEOmqFC2alFgDLjNT+4LOkzNSw3sgJcJ6N4k0IXEpIjtfM5qHsmmyCk8v3LMMgHyhoAAeWmImKbPVNkxWg2qsX8kVTfN3FkWEQ+EY599+edV0tU2a9zRvW38lrKPfHiYOKdHoHY09uVfQ+t27Amk2urLJzzDvlmn/8ftB800ykFKq3RTIJJOYP7vQy8zd9c2R4azIpCoFOl2WMdN4HfC9vElT27u7mc0BMGNKmEVGhyez8SuwtCnwfpmcDlzOikXGXJ0R8vd9uwwPpYaqZLS4+qFIMrFWj81XTWROPBSKIqArf3hAkslDPlwkY2NR5KZeBisyPoVmqh76ugznPq1Ku6ITTYapNNHkBe5pmVJ3glC7usGSYSY95wqZPJtknWYSwZPJu0JheejLMmWDaSi5ankBTyYvcNNW6tluVtUw2t8ikwbNIC6WGXyVedFkeFnGK3aBTFWCj3fIMOYfu0JXjhl1j0zZFbLnI6PmdR6sKuv6Dk+Gq1w5XyCTM3DKM02tiinj0i4325c5vBPBc63fH2cidjNeKhq+K6MO7+VZNjknx84eUYaNabtP2D2ZyQzy6LlR2iBbRRZRJuRBs9PNYEzFTa/je5PrN2LKqLxlD4vlzcjINA7MiR19TJmyRPd2S4YHk88xTb9KOQ6mDM/9TGxHZt5Ohq6mXtwcQJUpO0xqSyZU9ZapbSxbj/SnD0DqZjwNi2GyKxnOqhIFkuFScVmYF9zBOQ5XZhpyRbOWGbvjcllSCGfpHOfY4TiuTBo0sDpcdzPX7arPW2zlRok+lIBQZRgTabc59DJdYMoczZaCTsdPf2wjrgx3abqaepkyM3Q2E0TjcZYZj2Z/mgiQZdKggWa1MnMV3NkMztfXgbQYf7BBlsmZUYR0UWx56IZK6V3tqZp8noGQxwzLIZmayFi5FZjNWIlx/yINuoyV6V/auVpGHT7UjJfOnkxr2DJjapSoIwOBOX7aCcEJu10Nu5upakTnh/LxsEmJjtzradgytpqEy0PdL0/O4375ds5Bl5mWlqeHQmB+faau9bQ5crBllnPnOTJ9IXNMx4WbV5oJu7QoPrSscX6P8evg4MuIRySSzPSaC+BWpTS6TFVTJhn5sow2/qZjwAXVyZy5UdMtsPFl+GOQnJfRzYnGHTKP5p+WSUVrFZwbZEItw14fMzPLpU18mXKENlzRzRLLHe0bZB5pskzNZ210XmHfJOMrGaa8OI+sr7Hgysz7faVqVucp3/gGmXnHZRA2LRvjBbST98z4jTJl0JiLf2ac57vcuN2MlWUATEP29O2/mnLBEFWGV5vk5sILp+VbIcuopXLeu2P+GjfIMHY+Uz4BWebEIuYIyJHZ2lu+Co39Q6g8ePk20P8jirQv8zaQZbZO8QmCIAiCIAiCIAiCIAiCIAiCIAiCIAiCIAiCIAiCIP53/gHGmTq/TG2J8QAAAABJRU5ErkJggg==";function VO(e){var t=e.value,n=cs(t),r="image"===n;return Y.jsx(HO,{style:{width:"100%",height:"100%"},once:!0,debounce:!0,placeholder:Y.jsx(QO,{src:RO,alt:t,isLoading:!0}),children:Y.jsx(QO,{src:t?r?t:us(n):FO,alt:t,notFoundImage:!t})})}function QO(e){var t=e.src,r=e.alt,o=e.notFoundImage,i=e.isLoading,a=o||i;return Y.jsx(n.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:Y.jsx("img",{src:t,alt:r,height:"94%",width:"50%",style:{borderRadius:"5px",objectFit:"cover",cursor:a?void 0:"pointer"},onClick:a?void 0:function(){return window.open(t,"_blank")}})})}var XO=require("lodash");function YO(e,t){var n,r,o,i,a,s,l,c,u,d,p=e.action,f=e.path,m=e.recordId;switch(p){case Zh.LIST:return null!==(r=null===(n=t[f])||void 0===n?void 0:n.list)&&void 0!==r?r:f;case Zh.NEW:return null!==(i=null===(o=t[f])||void 0===o?void 0:o.new)&&void 0!==i?i:f;case Zh.SHOW:return null!==(s=null===(a=t[f])||void 0===a?void 0:a.show(m))&&void 0!==s?s:f;case Zh.EDIT:return null!==(c=null===(l=t[f])||void 0===l?void 0:l.edit(m))&&void 0!==c?c:f;default:return null!==(d=null===(u=t[f])||void 0===u?void 0:u.list)&&void 0!==d?d:f}}function ZO(t){var o,i,a,s=t.resourceName,l=t.params,c=t.resources,u=t.dialogState,d=t.paramsState,p=t.extras;d[0];var f=d[1],m=e.useContext(fg).dashbaordUrlPrefix,h=e.useContext(wg).paths,g=Bg(),v=g.setSuccessAlert,A=g.setErrorAlert,y=g.setAlert,b=e.useState(null),x=b[0],w=b[1],j=function(e){w(e.currentTarget)},C=function(){w(null)},O=l.row,M=c[s],z=M.properties,D=z.actions,T=z.modelName,P=u[1],N=[],E=r.useNavigate(),B=r.useLocation(),k=Za("up","md");return D.show.isAccessible&&!(null===(o=O.hiddenActions)||void 0===o?void 0:o.includes("show"))&&N.push({href:"".concat(h[s].show(O._id)).concat(B.search),title:D.show.value,icon:Y.jsx(jo,{icon:"mdi:show-outline"}),key:"show",color:"primary.main",isMainAction:D.show.isMainAction}),D.edit.isAccessible&&lC(M,aC.EDIT)&&!(null===(i=O.hiddenActionKeys)||void 0===i?void 0:i.includes("edit"))&&N.push({onClick:function(e){var t=h[s].edit(e._id);E("".concat(t).concat(B.search))},title:D.edit.value,icon:Y.jsx(jo,{icon:"eva:edit-fill"}),key:"edit",color:"primary.main",isMainAction:D.edit.isMainAction}),D.delete.isAccessible&&lC(M,aC.DELETE)&&!(null===(a=O.hiddenActionKeys)||void 0===a?void 0:a.includes("delete"))&&N.push({onClick:function(e){P({title:D?D.delete.confirmationMessageTitle:"",message:D?D.delete.confirmationMessageBody:"",onClose:function(){P({open:!1})},onConfirm:function(){var e;P({open:!1}),v(null!==(e=null==p?void 0:p.afterDeleteSnackBarText)&&void 0!==e?e:"Deleted successfully"),f((function(e){return Z(Z({},e),{filters:void 0,filter:void 0})}))},action:function(){return ug.delete("".concat(m,"/").concat(c[s].properties.path,"/").concat(e._id))},open:!0})},title:D.delete.value,icon:Y.jsx(jo,{icon:"eva:trash-2-outline"}),key:"delete",color:"error.main",isMainAction:D.delete.isMainAction}),O.extraActionKeys&&D.extras&&0!==O.extraActionKeys.length&&O.extraActionKeys.forEach((function(e){var t;D.extras.record[e]&&N.push({onClick:function(t){var n,r,o;D.extras.record[e].guard||ug.post("".concat(m,"/actions/execute/").concat(e),{record:t,modelName:T}).then((function(t){var n,r,o=t.data.data.response;if(D.extras.record[e].handlerStrategy===qh.FILE_DOWNLOAD){var i=o.filePath;setTimeout((function(){window.open(i,"_blank")}))}else E(YO(o,h)),!1!==D.extras.record[e].showAlertMessage&&y(null!==(n=D.extras.record[e].message)&&void 0!==n?n:"Action executed Successfully",null!==(r=D.extras.record[e].severity)&&void 0!==r?r:"success")})).catch((function(){A("Error happened")})),P({title:null!==(r=null!==(n=D.extras.record[e].guardTitle)&&void 0!==n?n:D.extras.record[e].name)&&void 0!==r?r:"",message:null!==(o=D.extras.record[e].guard)&&void 0!==o?o:"Do you want to execute this action?",onClose:function(){P({open:!1})},onConfirm:function(t){var n,r,o,i;switch(P({open:!1}),D.extras.record[e].handlerStrategy){case qh.NORMAL:t.action===Zh.LIST?(f((function(e){return Z(Z({},e),{page:aM.page})})),y(null!==(n=D.extras.record[e].message)&&void 0!==n?n:"Action executed Successfully",null!==(r=D.extras.record[e].severity)&&void 0!==r?r:"success")):E(YO(t,h));break;case qh.FILE_DOWNLOAD:var a=t.filePath;setTimeout((function(){window.open(a,"_blank")}));break;default:y(null!==(o=D.extras.record[e].message)&&void 0!==o?o:"Action executed Successfully",null!==(i=D.extras.record[e].severity)&&void 0!==i?i:"success")}},action:function(){return ug.post("".concat(m,"/actions/execute/").concat(e),{record:t,modelName:T})},open:D.extras.record[e].guard})},title:D.extras.record[e].name,icon:eM(D.extras.record[e].icon),key:D.extras.record[e].name,color:null!==(t=D.extras.record[e].color)&&void 0!==t?t:"black",isMainAction:D.extras.record[e].isMainAction})})),k?Y.jsxs(n.Stack,{direction:"row",alignItems:"center",children:K(K([],KO(N.filter((function(e){var t;return(null===(t=null==c?void 0:c.appConfigurations)||void 0===t?void 0:t.showMainActions)&&e.isMainAction})),C,O),!0),[N.filter((function(e){var t;return!e.isMainAction||!(null===(t=null==c?void 0:c.appConfigurations)||void 0===t?void 0:t.showMainActions)})).length>0==!0&&Y.jsx(iO,{open:x,onOpen:j,onClose:C,actions:qO(N.filter((function(e){var t;return!e.isMainAction||!(null===(t=null==c?void 0:c.appConfigurations)||void 0===t?void 0:t.showMainActions)})),C,O)})],!1)}):Y.jsx(iO,{open:x,onOpen:j,onClose:C,actions:qO(N,C,O)})}function GO(e,t,o,i,a,s,l,c,u,d,p,f){var m,h,g,v,A,y,b=Hg.isEnglish();if(!(s&&s.hasOwnProperty(o.key)&&null!==s[o.key]||t.valuePath))return t.type===Uh.IMAGE?Y.jsx(VO,{value:void 0}):Y.jsx(n.Typography,Z({},a,{children:"--- "}));switch(t.type){case Uh.STRING:if(/^#[0-9A-F]{6}$/i.test(i)){a.color=i,a.variant="body2";break}if(!s||!s.hasOwnProperty(o.key)||null===s[o.key]){e="---",a.variant="subtitle2";break}if(o.key===c&&l&&l.show.isAccessible){var x=f[u].show(s._id);e=Y.jsx(n.Link,{align:"justify",component:r.Link,to:"".concat(x).concat(location.search),children:i})}break;case Uh.OBJECTID:if(o.key===c&&l&&l.show.isAccessible){e=Y.jsx(n.Link,{align:"justify",component:r.Link,to:f[u].show(s._id),children:i});break}a.variant="subtitle2";break;case Uh.NUMBER:case Uh.PHONENUMBER:a.variant="subtitle2";break;case Uh.DATE:var w=!(!p[o.key]||!p[o.key].withTime);a.variant="subtitle2";var j=_j(s[o.key],void 0,!b);e=w?Y.jsxs(n.Stack,{alignItems:"center",children:[Y.jsx(n.Typography,{variant:"subtitle2",children:j}),Y.jsx(n.Typography,{variant:"subtitle2",color:"rgb(99, 115, 129)",children:$j(new Date(s[o.key]),b?Tg.ENGLISH:Tg.ARABIC)})]}):j;break;case Uh.LOCALIZEDString:var C=s[o.key]&&s[o.key][0]?Hg.getLocalizedString(s[o.key]):"----";e=o.key===c&&l&&l.show.isAccessible?Y.jsx(n.Link,{align:"justify",component:r.Link,to:f[u].show(s._id),children:C}):C,a.variant="subtitle2";break;case Uh.ENUM:var O=p[o.key];if(!(O&&O.enumValues&&O.enumValues[i]))return Y.jsx(n.Chip,{label:DC.enhance(i),size:"small"});var M=null===(h=null===(m=p[o.key])||void 0===m?void 0:m.enumValues[i])||void 0===h?void 0:h.label,z=null===(v=null===(g=p[o.key])||void 0===g?void 0:g.enumValues[i])||void 0===v?void 0:v.color,D=null===(y=null===(A=p[o.key])||void 0===A?void 0:A.enumValues[i])||void 0===y?void 0:y.labelColor;return Y.jsx(n.Chip,{label:DC.enhance(null!=M?M:i),size:"small",sx:{background:z,color:D}});case Uh.IMAGE:return Y.jsx(VO,{value:i});case Uh.BOOLEAN:return Y.jsx(n.Chip,{label:"".concat(i),variant:"outlined",size:"small",component:"div"});case Uh.EXTERNAL_LINK:return Y.jsx(CC,{link:i});case Uh.LOCATION:case Uh.NESTEDSCHEMA:a.variant="caption",a.color="GrayText",e="Object {...}";break;case Uh.RICH_TEXT_I:case Uh.RICH_TEXT_II:a.variant="caption",a.color="GrayText",e="<HTML... />";break;case Uh.ARRAY:case Uh.MULTIPLE_TEXT:a.variant="caption",a.color="GrayText",e="Length ["+s[o.key].length+"]";break;case Uh.REFERENCE:if(!s[o.key])break;var T=s[o.key].pathOfTable?s[o.key].pathOfTable:o.path,P=d[T];if(!(P&&P.properties&&s[o.key]&&T)){a.variant="subtitle2",e=i._id;break}var N=P.properties.title,E=mA.checkLocalizedString(d,T,N)?Hg.getLocalizedString(s[o.key][N]):s[o.key][N]?s[o.key][N]:s[o.key]._id;if(!P.properties.actions.show.isAccessible||!lC(P,aC.VIEW)){e=i?E:s[o.key]?s[o.key]._id:"---";break}e=Y.jsx(n.Link,{align:"justify",href:f[T||o.key.toLowerCase()].show(i||s[o.key]&&s[o.key]._id?s[o.key]._id:""),children:i||s[o.key]._id?E:"---- "})}return Y.jsx(n.Typography,Z({},a,{children:e}))}function UO(e,t,o,i,a){var s=i[e].properties?i[e].properties.model:void 0,l=s[t.key],c=i[e].properties,u=c.title,d=c.actions,p=o.value,f=o.row,m={color:"black",noWrap:!1,sx:{fontWeight:50,wordWrap:"break-word",whiteSpace:"normal"},variant:"body1"},h=p;if(t.key.includes(".")){var g=t.key.split("."),v={key:g[g.length-1],value:t.value,path:t.path},A=$O(t.key,f),y=_O(t.key,s),b=A?A[v.key]:null;return GO(b,y,v,b,m,A,d,u,e,i,s,a)}return f.hasOwnProperty(t.key)&&null!==f[t.key]?t.key===u?Y.jsx(n.Typography,{variant:"body2",color:"black",sx:{wordWrap:l.type===Uh.STRING?"break-word":"normal",whiteSpace:l.type===Uh.STRING?"normal":"nowrap",textAlign:"center"},noWrap:l.type!==Uh.STRING,children:d.show.isAccessible?Y.jsx(n.Link,{align:"justify",component:r.Link,to:a[e].show(f._id),style:{cursor:"pointer"},children:s[t.key].type===Uh.LOCALIZEDString?f[t.key][0]?Hg.getLocalizedString(f[t.key]):"---":"object"==typeof f[t.key]?Hg.getLocalizedString(f[t.key]):f[t.key]}):Y.jsx(n.Typography,Z({},m,{children:s[t.key].type===Uh.LOCALIZEDString?Hg.getLocalizedString(f[t.key]):f[t.key]}))}):GO(h,s[t.key],t,p,m,f,d,u,e,i,s,a):s[t.key].valuePath?GO(h,s[t.key],t,XO.get(f,s[t.key].valuePath),m,f,d,u,e,i,s,a):s[t.key].type===Uh.IMAGE?Y.jsx(VO,{value:void 0}):Y.jsx(n.Typography,Z({},m,{children:"--- "}))}function qO(e,t,r){return e.map((function(e){return e.href?Y.jsxs(n.MenuItem,{component:"a",href:e.href,rel:"noopener noreferrer",sx:{color:e.color},onClick:t,children:[e.icon,e.title]},e.key):Y.jsxs(n.MenuItem,{onClick:function(){var n;null===(n=e.onClick)||void 0===n||n.call(e,r,e.key),t()},sx:{color:e.color},children:[e.icon,e.title]},e.key)}))}function KO(e,t,o){return e.map((function(e){return e.href?Y.jsx(n.Link,{component:r.Link,to:e.href,style:{textDecoration:"none",color:e.color},children:Y.jsx(n.Tooltip,{title:e.title,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-12]}}]}},children:Y.jsx(n.IconButton,{sx:{color:e.color},children:e.icon})})},e.key):Y.jsx(n.Tooltip,{title:e.title,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-12]}}]}},children:Y.jsx(n.IconButton,{onClick:function(){var n;null===(n=e.onClick)||void 0===n||n.call(e,o,e.key),t()},sx:{color:e.color},children:e.icon})},e.key)}))}function JO(t){var o=t.resources,i=t.resourceName,a=t.selected,s=t.bulkActionsDialogState,l=t.setBulkActionsDialogState,c=t.setSelected,u=e.useContext(fg).dashbaordUrlPrefix,d=e.useContext(wg).paths,p=o[i].properties,f=p.actions,m=p.modelName,h=t.dialogState[1],g=t.gridState[1],v=Bg(),A=v.setErrorAlert,y=v.setAlert,b=r.useNavigate();return o[i].properties.actions.extras&&o[i].properties.actions.extras.resource?Y.jsx(Y.Fragment,{children:Object.keys(o[i].properties.actions.extras.resource).map((function(e){var t,r,o,i,p;if(!f.extras.resource[e])return Y.jsx(Y.Fragment,{});var v=null!==(t=f.extras.resource[e].message)&&void 0!==t?t:"Action executed Successfully",x=null!==(r=f.extras.resource[e].severity)&&void 0!==r?r:"success";return Y.jsx(n.Button,{size:null!==(o=f.extras.resource[e].size)&&void 0!==o?o:"small",color:null!==(i=f.extras.resource[e].color)&&void 0!==i?i:"inherit",variant:null!==(p=f.extras.resource[e].variant)&&void 0!==p?p:"contained",startIcon:eM(f.extras.resource[e].icon),onClick:function(t){var n,r,o,i;if(!f.extras.resource[e].guard)switch(f.extras.resource[e].handlerStrategy){case qh.NORMAL:ug.post("".concat(u,"/actions/execute/").concat(e),{record:a,modelName:m}).then((function(e){var t=e.data.data.response;t.action===Zh.LIST?(g((function(e){return Z(Z({},e),{page:aM.page})})),y(v,x)):b(YO(t,d))})).catch((function(){A("Error happened")}));break;case qh.FILE_DOWNLOAD:ug.post("".concat(u,"/actions/execute/").concat(e),{record:a,modelName:m}).then((function(e){var t=e.data.data.response;setTimeout((function(){window.open(t.filePath,"_blank")}))})).catch((function(){}));break;case qh.CUSTOM_COMPONENT:var p=null!==(n=f.extras.resource[e].fullScreen)&&void 0!==n&&n;!function(e,t,n,r,o,i,a,c,u){var d=Z({},s);d[e]={state:t,modelName:n,saveLoadingState:r,fullScreen:i,setSelected:o,documentIds:null!=u?u:[],afterExecuteMessage:a,severity:c},l(d)}(e,!0,m,!1,c,p,v,x,a);break;default:y(v,x)}h({title:null!==(o=null!==(r=f.extras.resource[e].guardTitle)&&void 0!==r?r:f.extras.resource[e].name)&&void 0!==o?o:"",message:null!==(i=f.extras.resource[e].guard)&&void 0!==i?i:"Do you want to execute this action?",onClose:function(){h({open:!1})},onConfirm:function(t){switch(h({open:!1}),c((function(e){return[]})),f.extras.resource[e].handlerStrategy){case qh.NORMAL:t.action===Zh.LIST?(g((function(e){return Z(Z({},e),{page:aM.page})})),y(v,x)):b(YO(t,d));break;case qh.FILE_DOWNLOAD:t.filePath,setTimeout((function(){window.open(t.filePath,"_blank")}));break;default:y(v,x)}},action:function(){return ug.post("".concat(u,"/actions/execute/").concat(e),{record:a,modelName:m})},open:f.extras.resource[e].guard})},sx:{mr:1},children:f.extras.resource[e].name},e)}))}):Y.jsx(Y.Fragment,{})}function _O(e,t){var n=e.split("."),r=n[0];if(1===n.length)return t[r];for(var o="",i=1;i<n.length;i++)o+=n[i],i!==n.length-1&&(o+=".");return _O(o,t[r].schema)}function $O(e,t){var n=e.split("."),r=n[0];if(1===n.length)return t;for(var o="",i=1;i<n.length;i++)o+=n[i],i!==n.length-1&&(o+=".");return $O(o,t[r])}var eM=function(e){return Y.jsx(xg,{src:e,sx:{width:1,height:1}})};function tM(e,t,n,r,o,i){if(!r||!t||!r.hasOwnProperty(t.key)||null===r[t.key])return"---";switch(e.type){case Uh.STRING:if(!r.hasOwnProperty(t.key)||null===r[t.key])return"---";break;case Uh.DATE:return function(e,t){var n=(e=new Date(e)).getMonth()+1,r=e.getDate(),o=eC(n),i=eC(r),a=e.getFullYear()+"-"+o+"-"+i;return t&&(a=a+" "+$j(e,Tg.ENGLISH)),a}(n,!(!i[t.key]||!i[t.key].withTime));case Uh.LOCALIZEDString:var a=r[t.key]&&r[t.key][0]?Hg.getLocalizedString(r[t.key]):"----";return a||"---";case Uh.NESTEDSCHEMA:return"Object {...}";case Uh.ARRAY:return"Length ["+n.length+"]";case Uh.REFERENCE:if(!r[t.key])break;var s=o[t.path];if(!s||!s.properties||!r[t.key])return n._id;var l=o[t.path].properties.title,c=mA.checkLocalizedString(o,t.path,l)?Hg.getLocalizedString(r[t.key][l]):r[t.key][l];return s.properties.actions.show.isAccessible?n?c:"---- ":n?c:"---"}return n}function nM(e){var t,r=e.params,o=e.props,i=e.resourceName,a=e.extras,s=kg().paths,l=Eg().resources;if(!l)return Y.jsx(Y.Fragment,{});var c=null===(t=l[i].properties.model[o.key])||void 0===t?void 0:t.isClickable,u=null==a?void 0:a.onClickProperty;return c?Y.jsx(n.Button,{sx:{padding:0},onClick:function(){return u&&u[o.key]?u[o.key](o,i,r):void 0},children:UO(i,o,r,l,s)}):UO(i,o,r,l,s)}var rM=1,oM=[5,10,25,50,100],iM={currentPage:1,perPage:5,recordsCount:0},aM={page:rM,perPage:5};function sM(e,t,n,r,o,i,a){var s=null==t?void 0:t[n],l=e.map((function(e){var r,o,l=null===(o=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r.model)||void 0===o?void 0:o[e.key],c=i?null==l?void 0:l.minWidth:150;return{field:e.key,headerName:e.value,align:"center",headerAlign:"center",flex:e.flex?e.flex:i?1:void 0,minWidth:c,valueGetter:function(r){return function(e,t,n,r){var o=r[e].properties?r[e].properties.model:void 0,i=r[e].properties,a=i.title;i.actions;var s=n.value,l=n.row;if(t.key.includes(".")){var c=t.key.split("."),u={key:c[c.length-1],value:t.value,path:t.path},d=$O(t.key,l);return tM(_O(t.key,o),u,d?d[u.key]:null,d,r,o)}return l.hasOwnProperty(t.key)&&null!==l[t.key]?t.key===a?o[t.key].type===Uh.LOCALIZEDString?Hg.getLocalizedString(l[t.key]):l[t.key]:tM(o[t.key],t,s,l,r,o):"---"}(n,e,r,t)},renderCell:function(t){return e.renderCell?e.renderCell(t):Y.jsx(nM,{resourceName:n,params:t,props:e,extras:a})}}})),c={field:"actions",headerName:"",type:"number",editable:!1,align:"center",headerAlign:"left",disableColumnMenu:!0,flex:i?1:void 0,minWidth:i?void 0:150,hideable:!1,sortable:!1,disableExport:!0,renderCell:function(e){return Y.jsx(ZO,{resources:t,params:e,resourceName:n,dialogState:r,paramsState:o,extras:a})}};return!(null==a?void 0:a.hideActions)&&l.push(c),l}var lM=function(){function e(e,t){this.defaultrowsPerPage=t,this.searchParams=e}return e.prototype.get=function(){return{page:this.getPageNumber(),pageSize:this.getPageSize()}},e.prototype.getPageSize=function(){var e=this.searchParams.get("perPage");return e?isNaN(+e)||+e<=0?this.getDefaultPageSize():oM.reduce((function(t,n){return Math.abs(n-+e)<Math.abs(t-+e)?n:t})):this.defaultrowsPerPage},e.prototype.getPageNumber=function(){var e=this.searchParams.get("page"),t=aM.page;return e?isNaN(+e)||+e<=0?this.getDefaultPageNumber():+e:t},e.prototype.getDefaultPageSize=function(){return this.defaultrowsPerPage},e.prototype.getDefaultPageNumber=function(){return aM.page},e}();function cM(e){var t,n,r=e.defaultFilters,o=e.resource,i=e.searchParams,a=o.properties.filters,s=a&&a.scopes&&a.scopes.auto?a.scopes.auto.key:void 0,l=o.properties.model,c=a.scopes.options,u=void 0===(null===(t=a.scopes)||void 0===t?void 0:t.showAll)||(null===(n=a.scopes)||void 0===n?void 0:n.showAll),d=o.properties.defaultOrderBy,p=o.properties.defaultOrder,f=o.properties.defaultrowsPerPage,m={},h=void 0;new nO(o).getUniqueFields().forEach((function(e){"__v"!==e&&""!==e&&eO(l[e],e,m,i,l)})),h=tO(m,l,s);var g=new lM(i,f).get();return{page:g.page,order:p,orderBy:d,perPage:g.pageSize,filters:r?h.concat(r):h,scope:s&&i.get(s)?i.get(s):!u&&c?c[0].key:void 0}}var uM={},dM=ya;Object.defineProperty(uM,"__esModule",{value:!0});var pM=uM.default=void 0,fM=dM(wa()),mM=Y,hM=(0,fM.default)((0,mM.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");function gM(t){var o=t.schema,i=t.onClickClearFilter,a=t.onRemoveFilterValue,s=e.useState([]),l=s[0],c=s[1],u=r.useSearchParams(),d=u[0];return u[1],e.useEffect((function(){d&&c(function(e,t){var n=[];if(!e)return n;var r,o=function(o){var i=t[o],a=i.type;r=e.get(o);var s=sC.checkRefId(o)?sC.convertCamelCaseToWord(o.slice(0,-2)):sC.convertCamelCaseToWord(o);switch(a){case Uh.STRING:case Uh.PHONENUMBER:case Uh.LOCALIZEDString:case Uh.OBJECTID:case Uh.ENUM:r&&n.push({fieldKey:o,fieldTitle:s,filterValues:[{filterValueKey:o,filterValueTitle:r}]});break;case Uh.BOOLEAN:!1!==r&&!0!==r||n.push({fieldTitle:s,fieldKey:o,filterValues:[{filterValueKey:o,filterValueTitle:r}]});break;case Uh.NUMBER:case Uh.DATE:var l=o+"-from",c=o+"-to",u=e.get(o+"-from")?e.get(o+"-from"):void 0,d=e.get(o+"-to")?e.get(o+"-to"):void 0;if(u||d){var p=[];u&&p.push({filterValueKey:l,filterValueTitle:"From: ".concat(u)}),d&&p.push({filterValueKey:c,filterValueTitle:"To: ".concat(d)}),n.push({fieldTitle:s,fieldKey:o,filterValues:p})}break;case Uh.REFERENCE:if(i.multipleInFilter){var f=e.getAll(o+"-name");if(f&&f.length>0){var m=e.getAll(o+"-id");m&&m.length>0&&m.length===f.length&&n.push({fieldKey:o,fieldTitle:s,filterValues:f.map((function(e,t){return{filterValueKey:m[t],filterValueTitle:f[t]}}))})}}else{var h=e.get(o+"-name"),g=e.get(o+"-id");h&&g&&n.push({fieldKey:o,fieldTitle:s,filterValues:[{filterValueKey:g,filterValueTitle:h}]})}}};for(var i in t)o(i);return n}(d,o))}),[d]),Y.jsx(Y.Fragment,{children:0===l.length?Y.jsx(Y.Fragment,{children:" "}):Y.jsxs(n.Grid,{container:!0,justifyContent:"start",rowGap:{xs:"10px"},columnGap:{xs:"10px"},alignItems:"center",children:[l.map((function(e){return Y.jsxs(n.Stack,{direction:"row",alignItems:"center",padding:.6,borderRadius:"8px",sx:{border:"1px dashed rgba(145, 158, 171, 0.2)"},spacing:1,children:[Y.jsx(n.Typography,{fontSize:{xs:"13px",md:"14px"},fontWeight:600,children:"".concat(e.fieldTitle)}),Y.jsx(n.Stack,{direction:"row",alignItems:"center",spacing:1,children:e.filterValues.map((function(t){return Y.jsx(n.Chip,{size:"small",sx:{fontSize:{xs:"12px",md:"13px"},borderRadius:"8px",overflow:"hidden",textOverflow:"ellipsis",fontWeight:500},label:t.filterValueTitle,variant:"outlined",onDelete:a?function(){return a(e.fieldKey,t.filterValueKey)}:void 0},t.filterValueKey)}))})]},e.fieldKey)})),i&&Y.jsx(n.Button,{onClick:i,variant:"text",color:"error",startIcon:Y.jsx(pM,{}),children:"Clear"})]})})}function vM(t){var o=this,i=r.useParams().id,a=void 0===i?"":i,s=e.useState(),l=s[0],c=s[1],u=e.useState(void 0),d=u[0],p=u[1],f=e.useState([]),m=f[0],h=f[1],g=e.useState({}),v=g[0],A=g[1],y=JC(),b=t.isEdit,x=t.path,w=t.modelRoute,j=t.removeHeaderBreadcrumbs,C=t.afterCreateSnackText,O=t.afterEditSnackText,M=t.onSubmitForm,z=t.Component,D=t.redirectPath,T=t.Actions,P=t.HeadingView,N=t.BreadcrumbsChildren,E=t.BreadCrumbLinks,B=t.disableCreateNewButtonOnReference,k=t.keepFullWidthElements,L=t.defaultFilters,I=t.showFilterChips,S=t.hideHeaderBreadcrumbs,W=void 0!==S&&S,H=e.useState(!!b),R=H[0],F=H[1],V={},Q=r.useLocation(),X=e.useContext(Ag).resources,G=e.useContext(Og);G.textFieldSize;var K=G.themeStretch,_=e.useContext(fg).dashbaordUrlPrefix,$=e.useContext(wg),te=$.paths,ne=$.root,re=r.useNavigate(),oe=r.useSearchParams(),ie=oe[0];oe[1];var ae=Hg.isEnglish(),se=X[x],le=se.properties,ce=le.model,ue=le.name,de=le.title,pe=new Rg(ue,ae,de,l,ce,b),fe=cM({defaultFilters:L,searchParams:ie,resource:se});return e.useEffect((function(){U(o,void 0,void 0,(function(){var e,t;return q(this,(function(n){switch(n.label){case 0:return b?(F(!0),[4,ug.get("".concat(_,"/").concat(w)+"/"+a,{params:fe})]):[3,2];case 1:e=n.sent(),c(e.data.data.record),e.data.data.numberOfRecords&&e.data.data.recordIndex&&p({recordIndex:e.data.data.recordIndex,numberOfRecords:e.data.data.numberOfRecords}),F(!1),n.label=2;case 2:return(t=se.formProperties)&&t.map((function(e){"ref"===ce[e].type&&(V[e]=ce[e].apiRoute,ce[e].mediaUploader&&h((function(t){return t.concat(e)})))})),0!==Object.keys(V).length&&A(V),[2]}}))}))}),[y]),lC(se,b?aC.EDIT:aC.CREATE)?Y.jsx(J,{title:pe.getTitle(),children:Y.jsxs(n.Container,{maxWidth:!K&&"lg",children:[!W&&Y.jsx(ee,{headingView:P&&!R&&Y.jsx(P,{record:l}),heading:pe.getTitle(),links:j?[]:E&&!R?E(l):pe.getBreadCrumbLinks(te,x,ne),action:Y.jsxs(n.Stack,{spacing:2,children:[!se.properties.disableNextPreviousButtonsInEditPage&&b&&Y.jsx(KC,Z({},t,{params:fe,recordId:a,modelPath:w,navigateTo:function(e){var t=te[x].edit(e);re("".concat(t).concat(Q.search))},numberOfRecords:null==d?void 0:d.numberOfRecords,recordIndex:null==d?void 0:d.recordIndex})),Y.jsx(n.Stack,{direction:"row",spacing:2,children:l&&!R&&T&&Y.jsx(T,{record:l,setRecord:c})})]}),children:N&&!R&&Y.jsx(N,{record:l})}),Y.jsxs(n.Stack,{spacing:1,children:[I&&Y.jsx(gM,{schema:ce}),R?Y.jsx(n.Grid,{container:!0,alignItems:"center",children:Y.jsx(Wg,{loadingVertical:!0,sx:{height:50}},5)}):z?Y.jsx(z,{record:l,isEdit:b,refRoutes:v,id:a,path:x,modelRoute:w,resources:X,mediaUploaderFields:m,onSubmitForm:M,afterCreateSnackText:C,afterEditSnackText:O}):Y.jsx(UC,{isEdit:b,referencedMap:v,id:a,record:l,path:x,mediaUploaderFields:m,onSubmitForm:M,modelRoute:w,redirectPath:D,afterCreateSnackText:C,afterEditSnackText:O,enableCreateNewButtonOnReference:!B,keepFullWidthElements:k})]})]})}):Y.jsx($C,{})}function AM(e){var t=e.open,r=e.data,o=e.onDismiss,i=r.resource,a=r.resourcePath,s=Bg().setSuccessAlert,l=Hg.isEnglish(),c=i.properties,u=c.model,d=c.name,p=c.title,f=new Rg(d,l,p,void 0,u,!1);return Y.jsx(n.Drawer,{anchor:"right",open:t,onClose:o,sx:{overflowY:"auto",maxHeight:"calc(100vh - 100px)","&::-webkit-scrollbar":{width:"4px",height:"4px"},"&::-webkit-scrollbar-track":{borderRadius:"10px",background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#888",borderRadius:"10px"},"&::-webkit-scrollbar-thumb:hover":{background:"#555"}},children:Y.jsx("div",{style:{paddingTop:"24px",paddingBottom:"24px"},children:Y.jsx(vM,{isEdit:!1,modelRoute:i.properties.path,path:a,removeHeaderBreadcrumbs:!0,onSubmitForm:function(){o(),s("Created successfully")},disableCreateNewButtonOnReference:!0,keepFullWidthElements:!0,HeadingView:function(){return Y.jsxs(n.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[Y.jsx(n.Typography,{variant:"h4",gutterBottom:!0,children:f.getTitle()}),Y.jsx(n.IconButton,{onClick:o,children:Y.jsx(Ca,{})})]})}},"CreateNewDialog-".concat(a))})})}pM=uM.default=hM;var yM="AddMoreOption";function bM(t){var r=t.name,o=t.options,i=t.loading,a=t.multiple,s=t.onOptionChange,l=t.onOpenChanged,u=t.hasNext,d=t.loadMoreText,p=t.resource,f=t.resourcePath,m=t.enableCreateNewButtonOnReference,h=t.dependOn,g=t.relatedFields,v=t.fieldKey,A=G(t,["name","options","loading","multiple","onOptionChange","onOpenChanged","hasNext","loadMoreText","resource","resourcePath","enableCreateNewButtonOnReference","dependOn","relatedFields","fieldKey"]),y=c.useFormContext(),b=y.control,x=y.getValues,w=y.watch,j=y.reset;y.setValue;var C=e.useState(!1),O=C[0],M=C[1],z=e.useState({page:1,filter:void 0}),D=z[0],T=z[1],P=Ng().textFieldSize,N=Lg().openDialog,E=function(e){var t,n,r;t=e.target.value,n=B(),r="".concat(null!=t?t:"").concat(n?"&".concat(n):""),T({page:1,filter:r})},B=function(){if(null==h?void 0:h.length){var e=[];return h.forEach((function(t){var n=x(t);n&&n._id&&e.push("".concat(t,"=").concat(n._id,";;ref"))})),e.length?"filters=".concat(e.join("^^")):void 0}},k=w(null!=h?h:[]),L=function(e){var t,n=(null===(t=D.filter)||void 0===t?void 0:t.split("filters=")[0])||D.filter,r=B(),o="".concat(null!=n?n:"").concat(r?"&".concat(r):"");T((function(e){return Z(Z({},e),{filter:o})})),l(e,D.page,o),M(e)},I=e.useMemo((function(){return cg.debounce(E,500)}),[]);e.useEffect((function(){return function(){I.cancel()}}),[]),e.useEffect((function(){l(O,D.page,D.filter)}),[D]);var S=Y.jsx(hp,{fontSize:"small"}),W=Y.jsx(xp,{fontSize:"small"}),H=!!(null==h?void 0:h.length)&&k.some((function(e){return!e||!e._id}));return Y.jsxs(n.Stack,{spacing:0,children:[Y.jsx(c.Controller,{name:r,control:b,render:function(e){var t=e.field,l=e.fieldState.error;return p&&t&&t.value&&"object"==typeof t.value&&t.value._id&&!Array.isArray(t.value)&&(t.value={_id:t.value._id,title:HC.get(p,t.value),image:fA.getReferenceImage(p,t.value)}),H?Y.jsx(Y.Fragment,{}):Y.jsx(n.Autocomplete,Z({multiple:a,fullWidth:A.fullWidth,sx:A.sx},t,{value:t.value||null,filterOptions:function(e){var t=K([],e,!0);return u&&0!==e.length&&t.push({_id:yM,title:null!=d?d:"+ Load More"}),t},disableCloseOnSelect:a,id:r,size:"medium",open:O,disabled:A.disabled||(null==h?void 0:h.some((function(e,t){var n=k[t];return!n||!n._id}))),onOpen:function(){return L(!0)},onClose:function(){L(!1)},isOptionEqualToValue:function(e,t){return e._id===t._id},renderOption:function(e,t,r){var o=r.selected;return Y.jsx(Y.Fragment,{children:t._id===yM?Y.jsx(n.Stack,{justifyContent:"center",children:Y.jsx(n.Button,{sx:{margin:1},onClick:function(){return T({page:D.page+1,filter:D.filter})},children:t.title})}):Y.jsx("li",Z({},e,{style:{justifyContent:t._id===yM?"center":void 0},children:Y.jsxs(n.Stack,{direction:"row",spacing:1,alignItems:"center",children:[a&&Y.jsx(n.Checkbox,{icon:S,checkedIcon:W,style:{marginRight:1},checked:o}),t.image&&Y.jsx(n.Avatar,{alt:"-",src:t.image}),Y.jsx(n.Typography,{children:t.title?t.title:t.name})]})}))})},getOptionLabel:function(e){if(!e||!(e.title?e.title:e.name)||""===(e.title?e.title:e.name))return"";var t=e.title?e.title:e.name;return e.image&&!a&&t&&""!==t?t+";;"+e.image:t},options:null!=o?o:[],loading:i,onChange:function(e,n,r){if(g&&g.length>0){var o=x();g.forEach((function(e){o[e]=void 0})),"clear"===r&&v?o[v]=void 0:"selectOption"===r&&v&&(o[v]=n),j(o)}s&&s(n),t.onChange(a?n:Z({},n))},renderInput:function(e){var t,r,o,s=e.inputProps.value,c=void 0;if(!a&&"string"==typeof s&&s.includes(";;")){var u=s.split(";;");c=u[1],e.inputProps=Z(Z({},e.inputProps),{value:u[0]}),e.InputProps=Z(Z({},e.InputProps),{startAdornment:Y.jsx(n.Avatar,{src:c,alt:""})})}return Y.jsx(n.TextField,Z({},e,A,{size:P,error:!!l,onChange:I,helperText:null!==(t=null==l?void 0:l.message)&&void 0!==t?t:null===(o=null===(r=Object(l))||void 0===r?void 0:r._id)||void 0===o?void 0:o.message,InputProps:Z(Z({},e.InputProps),{endAdornment:Y.jsxs(Y.Fragment,{children:[i?Y.jsx(n.CircularProgress,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})})}))}}))}}),m&&Y.jsx(n.Button,{size:"small",onClick:function(){N(AM,{resource:p,resourcePath:f})},sx:{flexShrink:0,alignSelf:"end",padding:0,marginTop:0,fontSize:"13px",fontWeight:400,textDecoration:"underline"},style:{marginBottom:"5px"},children:"Create New"})]})}var xM=["true","false"];function wM(e,t,r,o,i,a,s,l,c,u,d,p){var f;if(r[t])switch(r[t].type){case Uh.STRING:return Y.jsx(dp,{name:a,size:e,label:r[t].value},t);case Uh.PHONENUMBER:return Y.jsx(b,{defaultCountry:r[t].defaultCountryCode?r[t].defaultCountryCode:r[t].countryCodes?r[t].countryCodes[0]:"sa",onChange:function(e){return u(a,e)},onlyCountries:r[t].countryCodes?r[t].countryCodes:[],name:a,size:e,label:r[t].value,value:d(a)?d(a):"",variant:"outlined",fullWidth:!0},t);case Uh.TIMEPICKER:case Uh.LOCALIZEDString:case Uh.OBJECTID:return Y.jsx(dp,{name:a,size:e,label:r[t].value},t);case Uh.NUMBER:return Y.jsxs(n.Card,{sx:{py:3,px:3},children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[t].value},t),Y.jsxs(n.Stack,{direction:"row",spacing:2,children:[Y.jsx(dp,{name:t+".from",style:{flex:1,width:90},size:e,label:s?"From":"من"}),Y.jsx(dp,{name:t+".to",style:{flex:1,width:90},size:e,label:s?"To":"إلى"})]})]},t);case Uh.DATE:return Y.jsxs(n.Card,{sx:{py:3,px:3},children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[t].value},t),Y.jsxs(n.Grid,{container:!0,spacing:2,children:[Y.jsx(n.Grid,{item:!0,xs:12,children:Y.jsx(Mp,{name:t+".from",size:e,label:s?"From":"من",fullWidth:!0},t)}),Y.jsx(n.Grid,{item:!0,xs:12,children:Y.jsx(Mp,{name:t+".to",size:e,label:s?"To":"إلى",fullWidth:!0},t)})]})]},t);case Uh.ENUM:return Y.jsx(pp,{name:a,size:e,label:r[t].value,SelectProps:{native:!1,sx:{textTransform:"capitalize"}},children:Object.keys(r[t].enumValues).map((function(e){var o,i,a,s=r[t].enumValues,l=(null===(o=s[e])||void 0===o?void 0:o.label)?e:s[e],c=null!==(a=null===(i=s[e])||void 0===i?void 0:i.label)&&void 0!==a?a:s[e];return Y.jsx(n.MenuItem,{value:l,sx:{mx:1,my:.5,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:DC.enhance(c)},l)}))},t);case Uh.BOOLEAN:return Y.jsx(pp,{name:a,size:e,label:r[t].value,SelectProps:{native:!1,sx:{textTransform:"capitalize"}},children:xM.map((function(e){return Y.jsx(n.MenuItem,{value:e,sx:{mx:1,my:.5,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:e},e)}))},t);case Uh.ARRAY:case Uh.REFERENCE:var m=p?p[null===(f=r[t])||void 0===f?void 0:f.path]:void 0,h=XC(r,t,WC.FILTER_LIST,m);return Y.jsx(bM,{name:a,size:e,label:r[t].value,multiple:!1,onOptionChange:function(e){return c(e,t)},options:o[t]&&o[t].data?o[t].data:[],loading:i[a],hasNext:o[t]&&o[t].hasNext,onOpenChanged:function(e,n,o){return l(r[t].apiRoute,r[t].path,e,t,a,n,o,h)}},t);default:return}}function jM(t){var r=this,o=t.schema,i=t.resources,a=t.filterProperties,s=t.searchParams,u=t.scopeKey,d=t.scopeValue,p=t.setParams,f=t.size;t.initialQueryParams;var m=t.isQuickFilter,h=t.quickFilterValues,g=t.onRefrenceChanged,v=t.setSearchParams,A=t.handleFilterDrawerClose,y=t.filterString,b=e.useState({}),x=b[0],w=b[1],j=e.useState({}),C=j[0],O=j[1],M=function(e,t,n,a,s,l,c,u){return U(r,void 0,void 0,(function(){return q(this,(function(r){switch(r.label){case 0:return[4,RC({apiRoute:e,referencedValues:C,value:n,loading:x,fullKey:s,key:a,pathRoute:t,resources:i,schema:o,setLoading:w,setReferencedValues:O,page:l,filter:c,filters:u})];case 1:return r.sent(),[2]}}))}))},z={},D={};a.map((function(e,t){"__v"!==e&&o[e]&&(z[e]=eg(o[e],e,D,s))}));var T=L.object().shape(z),P=Hg.isEnglish(),N=e.useMemo((function(){return D}),[]),E=c.useForm({resolver:Da(T),defaultValues:N}),B=E.handleSubmit,I=E.reset,S=E.setValue,W=E.getValues,H=function(e){return U(r,void 0,void 0,(function(){var t,n;return q(this,(function(r){return t=Z(Z({},e),h),n=ag(t,A,o,s,v,u,d),y&&y(n,e),[2]}))}))};return m?Y.jsx(rp,{methods:E,onSubmit:B(H),children:Y.jsxs(n.Stack,{direction:"row",spacing:2,justifyContent:"end",children:[a&&a.map((function(e,t){return Y.jsx(n.Grid,{minWidth:170,children:wM(f,e,o,C,x,e,P,M,g,S,W,i)},e+t)})),Y.jsx(l.LoadingButton,{size:"small",type:"submit",variant:"outlined",children:P?"Filter":"التصفية"})]},"grid1")}):Y.jsx("div",{children:Y.jsx(k.Fragment,{children:Y.jsxs(rp,{methods:E,onSubmit:B(H),children:[Y.jsx(og,{children:Y.jsx(n.Grid,{container:!0,spacing:2,justifyContent:"end",style:{padding:"2rem"},children:a&&a.map((function(e,t){return Y.jsx(n.Grid,{item:!0,xs:12,children:wM(f,e,o,C,x,e,P,M,g,S,W,i)},e+t)}))},"grid1")}),Y.jsx(wo,{sx:{marginTop:"2rem",paddingBottom:"2rem"},children:Y.jsx(n.Stack,{mt:2,ml:3,children:Y.jsxs(n.Grid,{flexDirection:"column",children:[Y.jsx(l.LoadingButton,{style:{flex:1,margin:8,width:150},type:"submit",variant:"contained",startIcon:bg("FilterAlt"),children:P?"Filter":"التصفية"}),Y.jsx(l.LoadingButton,{style:{flex:1},type:"reset",variant:"outlined",color:"inherit",startIcon:bg("RestartAlt"),onClick:function(){v({}),p((function(e){return Z(Z({},e),{filters:void 0})})),I(Z({},N)),A()},children:P?"Reset":"إلغاء"})]})})})]})})})}function CM(e){var t=e.schema,r=e.resources,o=e.size,i=e.open,a=e.scopeKey,s=e.scopeValue,l=e.filterProperties,c=e.searchParams,u=e.setSearchParams,d=e.setParams,p=e.initialQueryParams,f=e.quickFilterValues,m=e.onRefrenceChanged,h=e.handleFilterDrawerClose,g=e.filterString,v=Hg.isEnglish();return Y.jsx("div",{children:Y.jsx(k.Fragment,{children:Y.jsxs(sa,{anchor:"right",open:i,onClose:h,children:[Y.jsxs(n.Stack,{direction:"row",alignItems:"center",style:{minWidth:"340px",padding:"1rem",width:"20vw"},justifyContent:"space-between",sx:{px:1,py:1},children:[Y.jsx(n.Typography,{variant:"h6",children:v?"Filters":"التصفية"}),Y.jsx(n.IconButton,{onClick:h,children:Y.jsx(Ca,{})})]}),Y.jsx(ha,{}),Y.jsx(og,{children:Y.jsx(jM,{schema:t,size:o,resources:r,initialQueryParams:p,filterProperties:l,onRefrenceChanged:m,handleFilterDrawerClose:h,filterString:g,scopeKey:a,scopeValue:s,setParams:d,searchParams:c,setSearchParams:u,quickFilterValues:f})})]})})})}var OM=e.forwardRef((function(e,t){return Y.jsx(n.Slide,Z({direction:"up",ref:t},e))}));function MM(t){var r,o,i=t.open,a=t.onClose,s=t.title,c=t.onConfirm,u=t.message,d=t.action,p=t.extras,f=e.useState(!1),m=f[0],h=f[1];return Y.jsxs(n.Dialog,{open:i,fullWidth:!0,keepMounted:!0,onClose:function(e,t){"backdropClick"!==t&&a&&a()},"aria-describedby":"alert-dialog-slide-description",disableEscapeKeyDown:!0,TransitionComponent:OM,children:[Y.jsx(n.DialogTitle,{children:s}),Y.jsx(n.DialogContent,{children:Y.jsx(n.DialogContentText,{id:"alert-dialog-slide-description",children:u})}),Y.jsxs(n.DialogActions,{children:[Y.jsx(n.Button,{color:"inherit",onClick:a,disabled:m,children:null!==(r=null==p?void 0:p.cancelText)&&void 0!==r?r:"Cancel"}),Y.jsx(l.LoadingButton,{variant:"contained",onClick:function(){d&&(h(!0),d().then((function(e){var t=e.data.data?e.data.data.response:e.data.meta;h(!1),c&&c(t)})).catch((function(e){a&&a(),console.log(e)})))},loading:m,children:null!==(o=null==p?void 0:p.confirmText)&&void 0!==o?o:"Confirm"})]})]})}var zM=n.styled("div")((function(e){var t=e.theme;return{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%","& .ant-empty-img-1":{fill:"light"===t.palette.mode?"#aeb8c2":"#262626"},"& .ant-empty-img-2":{fill:"light"===t.palette.mode?"#f5f5f7":"#595959"},"& .ant-empty-img-3":{fill:"light"===t.palette.mode?"#dce0e6":"#434343"},"& .ant-empty-img-4":{fill:"light"===t.palette.mode?"#fff":"#1c1c1c"},"& .ant-empty-img-5":{fillOpacity:"light"===t.palette.mode?"0.8":"0.08",fill:"light"===t.palette.mode?"#f5f5f5":"#fff"}}}));function DM(e){var t=e.checkBox,r=e.numberOfColumns,o=G(e,["checkBox","numberOfColumns"]),i=Array.apply(null,Array(r)).map((function(e,t){return t}));return Y.jsx(n.TableRow,Z({},o,{children:Y.jsx(n.TableCell,{children:Y.jsxs(n.Stack,{spacing:2,gridRow:"auto",direction:"row",justifyContent:"space-around",width:920,children:[t&&Y.jsx(n.Skeleton,{variant:"rectangular",width:20,height:20,sx:{borderRadius:1,flexShrink:0}}),i.map((function(e){return Y.jsx(n.Skeleton,{variant:"text",width:150,height:20},e)}))]})})}))}var TM=n.styled("div")((function(e){var t=e.theme;return{right:24,zIndex:9,bottom:40,display:"flex",position:"fixed",alignItems:"center",boxShadow:t.customShadows.z20,padding:t.spacing(1.5,1,1.5,2),borderRadius:t.shape.borderRadius,backgroundColor:t.palette.text.primary}}));function PM(e){var t,r=e.action,o=e.selected;e.rowCount,e.numSelected;var i=e.extras;e.onSelectAllItems;var a=e.sx,s=G(e,["action","selected","rowCount","numSelected","extras","onSelectAllItems","sx"]);return Y.jsx(n.Portal,{children:Y.jsxs(TM,Z({sx:a},s,{children:[Y.jsxs(n.Typography,{variant:"subtitle2",sx:{mr:2,color:function(e){return"light"===e.palette.mode?"common.white":"grey.800"}},children:[o&&o.length,Y.jsx(n.Box,{component:"span",sx:{ml:.5},children:null!==(t=null==i?void 0:i.itemsSelectedText)&&void 0!==t?t:"items selected"})]}),r&&r]}))})}var NM={},EM=ya;Object.defineProperty(NM,"__esModule",{value:!0});var BM,kM=NM.default=void 0,LM=EM(wa()),IM=Y,SM=(0,LM.default)((0,IM.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}),"FileDownloadOutlined");function WM(e){if(!e)return[];for(var t=e.listProperties,n=e.properties.model,r=[],o=0,i=t;o<i.length;o++){var a=i[o],s=n[a.key];HM(null==s?void 0:s.type)&&r.push(Z(Z({},a),{name:a.value,_id:a.key,type:null==s?void 0:s.type}))}return r}function HM(e){switch(e){case Uh.BOOLEAN:case Uh.STRING:case Uh.ENUM:case Uh.DATE:case Uh.OBJECTID:case Uh.LOCALIZEDString:case Uh.PHONENUMBER:case Uh.REFERENCE:case Uh.COLOR:case Uh.TIMEPICKER:case Uh.LOCATION:case Uh.RICH_TEXT_I:case Uh.RICH_TEXT_II:case Uh.EXTERNAL_LINK:case Uh.NUMBER:return!0;default:return!1}}function RM(e,t,n){var r;if(e.type===BM.REFERENCE){var o=e.path,i=n[o];if(!i||!i.properties||!o)return"".concat(t,"._id");var a=null!==(r=i.properties.title)&&void 0!==r?r:"_id";return"".concat(t,".").concat(a)}}function FM(e,t,n){var r;if(e.type===BM.REFERENCE){var o=e.path,i=n[o];if(i&&i.properties&&o){var a=null!==(r=i.properties.title)&&void 0!==r?r:"_id",s=i.properties.model;if(s&&a&&s[a])return s[a].type}}}kM=NM.default=SM,function(e){e.STRING="String",e.NUMBER="Number",e.ENUM="enum",e.REFERENCE="ref",e.DATE="Date",e.PASSWORD="password",e.BOOLEAN="Boolean",e.OBJECTID="ObjectID",e.NESTEDSCHEMA="nestedSchema",e.ARRAY="Array",e.IMAGE="image"}(BM||(BM={}));var VM=[{label:"PDF",value:"pdf"},{label:"Excel sheet",value:"xlsx"}],QM=o.object().shape({fileType:o.string().default("xlsx").required("Please select a valid file type"),columns:o.array().of(o.object({_id:o.string(),label:o.string()})).required("Please select at least one day").min(1)});function XM(e){var t=e.open,r=e.setOpen,o=e.resource,i=e.resources,a=e.params,s=[];Object.keys(null==o?void 0:o.properties.model).forEach((function(e){var t,n,r=o.properties.model[e];HM(r.type)&&"__v"!==e&&"salt"!==e&&"hash"!==e&&s.push(Z(Z({},r),{label:null!==(t=r.value)&&void 0!==t?t:e,value:r.type===Uh.REFERENCE?e:null!==(n=r.valuePath)&&void 0!==n?n:e,type:r.type}))}));var u=mg(),d=u.requestState,p=u.get,f=c.useForm({resolver:Da(QM),defaultValues:{fileType:"xlsx",columns:WM(o)}}),m=f.handleSubmit,h=f.watch,g=f.setValue;return Y.jsx(n.Dialog,{open:t,maxWidth:"sm",fullWidth:!0,children:Y.jsxs(rp,{methods:f,onSubmit:m((function(e){var t=e.fileType,n=e.columns.map((function(e){return{value:e._id,label:e.name,type:e.type,titlePath:RM(e,e._id,i),titleType:FM(e,e._id,i)}}));p({url:"".concat(o.properties.path,"/report"),query:Z({fields:n,fileType:e.fileType},a),axiosRequestConfig:{responseType:"blob"},rowResponse:!0,onSuccess:function(e){var n=window.URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download="".concat(o.properties.path,".").concat(t),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}})})),children:[Y.jsx(n.DialogTitle,{sx:{mb:2},children:"Export Schedule"}),Y.jsx(n.Divider,{}),Y.jsx(n.DialogContent,{children:Y.jsxs(n.Stack,{spacing:2,divider:Y.jsx(n.Divider,{}),children:[Y.jsxs(n.Stack,{children:[Y.jsx(n.Typography,{sx:{color:"#637381",fontSize:"16px",fontStyle:"normal",fontWeight:700,lineHeight:"25px"},children:"Select the file type"}),Y.jsx($h,{name:"fileType",options:VM,row:!1})]}),Y.jsxs(n.Stack,{children:[Y.jsx(n.Typography,{sx:{color:"#637381",fontSize:"16px",fontStyle:"normal",fontWeight:700,lineHeight:"25px",mb:2},children:"Select Columns:"}),Y.jsx(Op,{name:"columns",loading:!1,onOpenChanged:function(){},multiple:!0,options:s.map((function(e){return{name:e.label,_id:e.value,type:e.type,path:e.path}})),label:"Select Columns"}),Y.jsx(n.Button,{size:"small",onClick:function(){g("columns",[])},sx:{flexShrink:0,alignSelf:"end",padding:0,marginTop:0,fontSize:"13px",fontWeight:400,textDecoration:"underline"},style:{marginBottom:"5px"},children:"Clear"})]})]})}),Y.jsx(n.DialogActions,{children:Y.jsxs(n.Stack,{direction:"row",spacing:1,children:[Y.jsx(n.Button,{variant:"outlined",color:"inherit",onClick:function(){return r(!1)},children:"Cancel"}),Y.jsx(l.LoadingButton,{variant:"contained",type:"submit",loading:d.state===exports.RequestState.LOADING,disabled:0===h("columns").length,children:"Export"})]})})]})})}function YM(t){var r=t.resource,o=t.resources,i=t.params,a=e.useState(!1),s=a[0],l=a[1];return Y.jsxs(T.GridToolbarContainer,{sx:{mt:2},children:[Y.jsx(T.GridToolbarColumnsButton,{}),Y.jsx(T.GridToolbarFilterButton,{}),Y.jsx(T.GridToolbarDensitySelector,{}),Y.jsx(n.Button,{startIcon:Y.jsx(kM,{}),onClick:function(){return l(!0)},children:"Export"}),Y.jsx(XM,{open:s,setOpen:l,resource:r,resources:o,params:i})]})}function ZM(e,t,n){return Y.jsx(Y.Fragment,{children:[1,2].map((function(e){return function(e,t,n){return Y.jsx(DM,{sx:{height:72},checkBox:t,numberOfColumns:n},e)}(e,t,n)}))})}function GM(t){var o,i,a=this,s=t.resources,c=t.resourceName,u=t.paramsState,d=t.bulkActionsDialogState,p=t.extras,f=t.setBulkActionsDialogState,m=t.hidePagination,h=e.useContext(fg).dashbaordUrlPrefix;e.useContext(wg).paths;var g=e.useState([]),v=(g[0],g[1]),A=e.useState([]),y=A[0],b=A[1],x=e.useState(!0),w=x[0],j=x[1],C=e.useState(iM),O=C[0],M=C[1],z=u[0],D=u[1],P=e.useState(!1),N=P[0],E=P[1],B=s[c];if(p&&p.overridenResource){var k=p.overridenResource(B);B=Z(Z({},B),k)}var L=B.properties.actions,I=e.useState([]),S=I[0],W=I[1],H=Za("up","lg"),R=r.useSearchParams(),F=R[0],V=R[1];e.useContext(Og).defaultRowsPerPage;var Q,X=Bg().setSuccessAlert,G=e.useState({open:!1,title:"",onClose:function(){},onConfirm:function(){}}),J=sM(B.listProperties,s,c,G,u,H,p);return e.useEffect((function(){!function(e){U(a,void 0,void 0,(function(){return q(this,(function(t){return j(!0),ug.get("".concat(h,"/").concat(B.properties.path),{params:e}).then((function(e){var t=e.data.data,n=t.pageInfo,r=t.records;v((function(e){return 1===n.currentPage?K([],r,!0):K(K([],e,!0),r,!0)})),b(r),M(n),j(!1)})),[2]}))}))}(z)}),[z,c,h]),Y.jsxs(Y.Fragment,{children:[Y.jsx(T.DataGrid,Z({rows:w?[]:y,columns:J,initialState:{sorting:{sortModel:[{sort:z.order,field:null!==(o=z.orderBy)&&void 0!==o?o:"_id"}]}},pageSizeOptions:oM,rowCount:null==O?void 0:O.recordsCount,checkboxSelection:!(null==p?void 0:p.hideBulkActions)&&(L.bulkDelete.isAccessible||L.extras&&L.extras.resource&&Object.keys(L.extras.resource).length>0),disableRowSelectionOnClick:!0,loading:w,slots:{loadingOverlay:function(){return ZM(0,L.bulkDelete.isAccessible,B.listProperties.length)},noRowsOverlay:function(){return e=null==p?void 0:p.noRowsText,Y.jsxs(zM,{children:[Y.jsx("svg",{width:"120",height:"100",viewBox:"0 0 184 152","aria-hidden":!0,focusable:"false",children:Y.jsxs("g",{fill:"none",fillRule:"evenodd",children:[Y.jsxs("g",{transform:"translate(24 31.67)",children:[Y.jsx("ellipse",{className:"ant-empty-img-5",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Y.jsx("path",{className:"ant-empty-img-1",d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),Y.jsx("path",{className:"ant-empty-img-2",d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),Y.jsx("path",{className:"ant-empty-img-3",d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})]}),Y.jsx("path",{className:"ant-empty-img-3",d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),Y.jsxs("g",{className:"ant-empty-img-4",transform:"translate(149.65 15.383)",children:[Y.jsx("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Y.jsx("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"})]})]})}),Y.jsx(n.Box,{sx:{mt:1},children:null!=e?e:"No Rows"})]});var e},toolbar:(null==p?void 0:p.hideToolbar)?null:YM},slotProps:{toolbar:{resource:B,resources:s,params:z}},density:(null==p?void 0:p.density)?p.density:"comfortable",editMode:"row"},(Q="server",{paginationMode:Q,sortingMode:Q,filterMode:Q}),{pagination:!0,hideFooter:m,hideFooterPagination:m,onPaginationModelChange:function(e,t){e.page!==O.currentPage-1&&(!function(e,t,n,r,o){var i=o[0];o[1];var a=t[1],s=e+1;i.perPage,i.perPage,i.perPage,a((function(e){return Z(Z({},e),{page:s})}))}(e.page,u,0,0,[O,M]),F.set("page",(e.page+1).toString()),V(F)),O.perPage!==e.pageSize&&(!function(e,t,n,r){if(e!==r.perPage){var o=t[1];n([]),o((function(t){return Z(Z({},t),{page:rM,perPage:e})}))}}(e.pageSize,u,v,O),F.set("perPage",e.pageSize.toString()),F.set("page","1"),V(F))},paginationModel:{page:O.currentPage-1,pageSize:O.perPage},keepNonExistentRowsSelected:!0,onRowSelectionModelChange:function(e){W(e)},onSortModelChange:function(e){!function(e,t,n){var r=n[0],o=n[1],i=e.map((function(e){return{order:e.sort,orderBy:e.field}}))[0];t([]),r&&i&&(r.order!==i.order||r.orderBy!==i.orderBy)&&o((function(e){return Z(Z(Z({},e),i),{page:rM})}))}(e,v,u)},autoHeight:!0,getRowId:function(e){return e._id},disableColumnFilter:!0,rowSelectionModel:S})),Y.jsx(MM,Z({},G[0],{extras:p})),S.length>0&&!(null==p?void 0:p.hideBulkActions)&&Y.jsx(PM,{numSelected:S.length,rowCount:y.length,selected:S.map((function(e){return e.toString()})),extras:p,action:Y.jsxs(Y.Fragment,{children:[L.bulkDelete.isAccessible&&lC(B,aC.DELETE)&&Y.jsx(l.LoadingButton,{size:"small",loading:N,color:"error",variant:"contained",startIcon:Y.jsx(jo,{icon:"eva:trash-2-outline"}),onClick:function(){return U(a,void 0,void 0,(function(){return q(this,(function(e){switch(e.label){case 0:return E(!0),[4,ug.delete("".concat(h,"/").concat(B.properties.path,"/all"),{data:S}).then((function(){E(!1),X(p&&p.afterBulkDeleteSnackBarText?p.afterBulkDeleteSnackBarText(S.length):"".concat(S.length," records are deleted successfully")),D((function(e){return Z(Z({},e),{page:aM.page,filters:void 0})})),L.bulkDelete.reloadAfterAction&&window.location.reload(),W((function(e){return[]}))}))];case 1:return e.sent(),[2]}}))}))},sx:{mr:1},children:null!==(i=null==p?void 0:p.bulkDeleteText)&&void 0!==i?i:"Delete"}),Y.jsx(JO,{resources:s,resourceName:c,dialogState:G,gridState:u,selected:S,setSelected:W,bulkActionsDialogState:d,setBulkActionsDialogState:f})]})})]})}function UM(t){var n=this,o=t.bulkActionsDialogState,i=t.bulkActionsComponents,a=t.setParams,s=t.setBulkActionsDialogState,l=r.useNavigate(),c=e.useContext(fg).dashbaordUrlPrefix,u=kg().paths,d=Bg().setSuccessAlert,p=function(e){var t=Z({},o);t[e]={state:!1,modelName:o?o[e].modelName:"",saveLoadingState:!1,fullScreen:!!o&&o[e].fullScreen,setSelected:o?o[e].setSelected:function(e){return""},documentIds:[],afterExecuteMessage:o[e].afterExecuteMessage,severity:o[e].severity},s(t)};return Y.jsx(Y.Fragment,{children:i&&i(o,p,(function(e,t){return U(n,void 0,void 0,(function(){var n,r,i;return q(this,(function(f){switch(f.label){case 0:return m=t,(h=Z({},o))[m]={state:o[m].state,modelName:o[m].modelName,fullScreen:o[m].fullScreen,saveLoadingState:!0,setSelected:o[m].setSelected,documentIds:o[m].documentIds,afterExecuteMessage:o[m].afterExecuteMessage,severity:o[m].severity},s(h),[4,ug.post("".concat(c,"/actions/execute/").concat(t),{record:e,modelName:o?o[t].modelName:""})];case 1:return n=f.sent(),p(t),o&&o[t].setSelected([]),r=n.data.data.response,i=r.action,d(o?o[t].afterExecuteMessage:""),i===Zh.LIST?a((function(e){return Z(Z({},e),{page:aM.page})})):l(YO(r,u)),[2]}var m,h}))}))}))})}var qM=["true","false"];function KM(e,t,r,o,i,a,s,l,c,u,d,p,f){var m,h;if(r[a])switch(r[a].type){case Uh.STRING:return Y.jsx(dp,{name:a,size:e,label:r[a].value,value:l[a],onChange:function(e){return u(a,e,[a])}},t);case Uh.PHONENUMBER:return Y.jsx(b,{defaultCountry:r[a].countryCodes?r[a].countryCodes[0]:"sa",onChange:function(e){return d(a,e)},onlyCountries:r[a].countryCodes?r[a].countryCodes:["eg","sa"],name:a,size:e,label:r[t].value,value:p(a)?p(a):"",variant:"outlined",fullWidth:!0},t);case Uh.TIMEPICKER:return Y.jsx(dp,{name:a,value:l[a],size:e,label:r[t].value},t);case Uh.LOCALIZEDString:return Y.jsx(dp,{name:a,size:e,label:r[a].value,value:l[a],onChange:function(e){return u(a,e,[a])}},t);case Uh.OBJECTID:return Y.jsx(dp,{name:a,size:e,label:r[a].value,value:l[a]},t);case Uh.NUMBER:return Y.jsxs(n.Card,{sx:{py:3,px:3},children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[a].value},t),Y.jsxs(n.Stack,{direction:"row",spacing:2,children:[Y.jsx(dp,{name:a+".from",style:{flex:1,width:90},size:e,label:s?"From":"من"}),Y.jsx(dp,{name:a+".to",style:{flex:1,width:90},size:e,label:s?"To":"إلى"})]})]},t);case Uh.DATE:return Y.jsxs(n.Card,{sx:{py:3,px:3},children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[a].value},t),Y.jsxs(n.Grid,{container:!0,spacing:2,children:[Y.jsx(n.Grid,{item:!0,xs:12,children:Y.jsx(Mp,{name:a+".from",size:e,label:s?"From":"من",fullWidth:!0},t)}),Y.jsx(n.Grid,{item:!0,xs:12,children:Y.jsx(Mp,{name:a+".to",size:e,label:s?"To":"إلى",fullWidth:!0},t)})]})]},t);case Uh.ENUM:return Y.jsx(pp,{name:a,size:e,label:r[a].value,value:null!==(m=l[a])&&void 0!==m?m:"",SelectProps:{native:!1,sx:{textTransform:"capitalize"}},onChange:function(e){return u(a,e.target.value,[a])},children:Object.keys(r[a].enumValues).map((function(e){var t,o,i,s=r[a].enumValues,l=(null===(t=s[e])||void 0===t?void 0:t.label)?e:s[e],c=null!==(i=null===(o=s[e])||void 0===o?void 0:o.label)&&void 0!==i?i:s[e];return Y.jsx(n.MenuItem,{value:l,sx:{mx:1,my:.5,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:DC.enhance(c)},e)}))},t);case Uh.BOOLEAN:return Y.jsx(pp,{name:a,size:e,label:r[a].value,SelectProps:{native:!1,sx:{textTransform:"capitalize"}},onChange:function(e){return u(a,e.target.value,[a])},children:qM.map((function(e){return Y.jsx(n.MenuItem,{value:e,sx:{mx:1,my:.5,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:e},e)}))},t);case Uh.ARRAY:case Uh.REFERENCE:var g=f?f[null===(h=r[a])||void 0===h?void 0:h.path]:void 0,v=XC(r,a,WC.FILTER_LIST,g);return Y.jsx(bM,{name:a,size:e,value:l[a]?l[a]:"",label:r[a].value,multiple:r[a].multipleInFilter,onOptionChange:function(e){return u(a,e,["".concat(a,"-name"),"".concat(a,"-id")])},options:o[a]&&o[a].data?o[a].data:[],loading:i[a],hasNext:o[a]&&o[a].hasNext,onOpenChanged:function(e,t,n){return c(r[a].apiRoute,r[a].path,e,a,a,t,n,v)}},t);default:return}}var JM=function(){function e(){}return e.modify=function(e){return"_id"===e?e.replace("_",""):e},e}();var _M=n.styled("span")((function(e){return{width:6,height:6,borderRadius:"50%",position:"absolute",backgroundColor:e.theme.palette.error.main}})),$M=[];function ez(t){var o,i,a=this,s=e.useState(!1),l=s[0],u=s[1],d=e.useState(!1),p=d[0],f=d[1],m=Hg.isEnglish(),h=e.useContext(Og),g=h.textFieldSize,v=h.themeStretch,A=e.useState(),y=A[0],b=A[1],x=e.useState({}),w=x[0],j=x[1],C=e.useState({});C[0],C[1];var O=e.useState({}),M=O[0],z=O[1],D=e.useState({}),T=D[0],P=D[1],N=e.useState({}),E=N[0],B=N[1],k=function(e,t,n,r,o,i,s,l){return U(a,void 0,void 0,(function(){return q(this,(function(a){switch(a.label){case 0:return[4,RC({apiRoute:e,referencedValues:M,value:n,loading:w,fullKey:o,key:r,pathRoute:t,resources:pe,schema:be,setLoading:j,setReferencedValues:z,page:i,filter:s,filters:l})];case 1:return a.sent(),[2]}}))}))},I=e.useState({state:!1,message:"",severity:"error"}),S=I[0],W=I[1],H=r.useLocation(),R=r.useSearchParams(),F=R[0],V=R[1],Q=e.useState(H.state?H.state.actionState:null),X=Q[0],G=Q[1],K=e.useContext(wg),_=K.paths,$=K.root,te=e.useState(void 0),ne=te[0],re=te[1],oe=t.path,ie=t.extras,ae=t.Actions,se=t.bulkActionsComponents,le=t.HeadingView,ce=t.disableFilterButton,ue=t.dataListComponent,de=t.defaultFilters,pe=e.useContext(Ag).resources,fe=pe[oe],me=fe.properties.defaultOrderBy,he=fe.properties.defaultOrder,ge=fe.properties.defaultrowsPerPage,ve=fe.quickFilterProperties,Ae=fe.properties.filters,ye=Ae&&Ae.scopes&&Ae.scopes.auto?Ae.scopes.auto.key:void 0,be=fe.properties.model,xe=Ae.scopes.options,we=void 0===(null===(o=Ae.scopes)||void 0===o?void 0:o.showAll)||(null===(i=Ae.scopes)||void 0===i?void 0:i.showAll),je={},Ce=void 0;new nO(fe).getUniqueFields().forEach((function(e){"__v"!==e&&""!==e&&eO(be[e],e,je,F,be)})),Ce=tO(je,be,ye);var Oe=new lM(F,ge).get(),Me=Oe.page,ze=Oe.pageSize,De=e.useState(Z(Z({},aM),{page:Me,order:he,orderBy:me,perPage:ze,filters:de?Ce.concat(de):Ce,scope:ye&&F.get(ye)?F.get(ye):!we&&xe?xe[0].key:void 0})),Te=De[0],Pe=De[1],Ne=function(t){var n=e.useState(t||""),r=n[0],o=n[1];return{currentTab:r,onChangeTab:function(e,t){o(t)},setCurrentTab:o}}(ye&&F.get(ye)?F.get(ye):!we&&xe?xe[0].key:"all"),Ee=Ne.currentTab,Be=Ne.onChangeTab,ke=Ne.setCurrentTab,Le={resources:pe,resourceName:oe,paramsState:[Te,Pe],bulkActionsDialogState:y,setBulkActionsDialogState:b,extras:ie,setCustomActions:re};$M=[],e.useEffect((function(){if(fe.filterProperties){var e={};fe.filterProperties.forEach((function(t){je[t]&&""!==je[t]&&(e[t]=je[t])})),B(e)}if(fe.quickFilterProperties){var t={};fe.quickFilterProperties.forEach((function(e){je[e]&&""!==je[e]&&(t[e]=je[e])})),P(t)}}),[]),e.useEffect((function(){X&&setTimeout((function(){G(null),window.history.replaceState({},document.title)}),4e3)}),[X]);var Ie=fe.properties.actions;fe.listProperties&&fe.listProperties.forEach((function(e){"__v"!==e.key&&""!==e&&$M.push({id:e.key,label:e.value,align:"left"})})),$M.push({id:"__v",label:""});var Se={},We={};ve.map((function(e,t){"__v"!==e&&be[e]&&(Se[e]=eg(be[e],e,We,F))}));var He=L.object().shape(Se),Re=c.useForm({resolver:Da(He),defaultValues:je}),Fe=Re.handleSubmit,Ve=Re.reset,Qe=Re.setValue,Xe=Re.getValues,Ye=Re.resetField,Ze=function(e){return U(a,void 0,void 0,(function(){var t;return q(this,(function(n){return t=ag(e,qe,be,F,V,ye,Ee),Pe((function(e){return Z(Z({},e),{filters:de?t.concat(de):t})})),[2]}))}))},Ge=function(e,t,n){return U(a,void 0,void 0,(function(){var r,o;return q(this,(function(i){switch(i.label){case 0:return t&&0!==t.length||n.forEach((function(e){F.delete(e)})),(r=Z({},T))[e]=t,P(r),o=Z(Z({},E),r),[4,Ze(o)];case 1:return i.sent(),[2]}}))}))},Ue=fe.properties.name,qe=function(){f(!1)},Ke=function(){Je(),V({}),ke("all"),Ve({}),P({}),B({}),Pe((function(e){return Z(Z({},e),{page:1,filters:null!=de?de:void 0,scope:!we&&xe?xe[0].key:void 0})}))},Je=function(){u(!l)};return lC(fe,aC.VIEW)?Y.jsx(J,{title:m?Ue+": List":"قائمة "+Ue,children:Y.jsxs(n.Container,{maxWidth:!v&&"lg",children:[Y.jsx(CM,{open:p,size:g,handleFilterDrawerClose:qe,schema:be,searchParams:F,setSearchParams:V,resources:pe,scopeKey:ye,scopeValue:Ee,initialQueryParams:aM,quickFilterValues:T,setParams:Pe,onRefrenceChanged:function(e,t){},filterProperties:fe.filterProperties,filterString:function(e,t){Pe((function(t){return Z(Z({},t),{filters:de?e.concat(de):e})})),B(t),ye&&F.get(ye)&&ke(F.get(ye))}}),Y.jsx(UM,{bulkActionsDialogState:y,setBulkActionsDialogState:b,setParams:Pe,bulkActionsComponents:se}),X&&Y.jsx(n.Snackbar,{open:!!X,anchorOrigin:{horizontal:"center",vertical:"top"},children:Y.jsx(n.Alert,{onClose:function(){G(null)},severity:X.severity,children:X.message})}),S.state&&Y.jsx(n.Snackbar,{open:!!S.state,anchorOrigin:{horizontal:"center",vertical:"top"},children:Y.jsx(n.Alert,{onClose:function(){W({state:!1})},severity:S.severity,children:S.message})}),fe.properties?Y.jsx(ee,{heading:Ue,headingView:le,links:[{name:m?"Dashboard":"الرئيسية",href:$},{name:Ue}],action:Y.jsxs(n.Stack,{direction:{xs:"column",sm:"row"},spacing:1,children:[ae&&Y.jsx(ae,{setParams:Pe,initialQueryParams:aM}),ne,Ie.new.isAccessible&&lC(fe,aC.CREATE)&&Y.jsx(n.Button,{variant:"contained",component:r.Link,to:_[oe].new,startIcon:Y.jsx(jo,{icon:"eva:plus-fill"}),children:Ie.new.value})]})}):Y.jsx(Co,{tuples:[]}),Y.jsxs(n.Card,{children:[fe.properties&&fe.properties.filters.scopes.isAccessible&&Y.jsx(n.Tabs,{allowScrollButtonsMobile:!0,variant:"scrollable",scrollButtons:"auto",value:Ee,onChange:function(e,t){Be(e,t),Pe((function(e){return Z(Z({},e),{scope:"all"===t?void 0:t})})),ye&&("all"===t?F.delete(ye):F.has(ye)?F.set(ye,t):F.append(ye,t),V(F))},sx:{px:2,bgcolor:"background.neutral"},children:fe.properties.filters.scopes.options.map((function(e){return Y.jsx(n.Tab,{disableRipple:!0,label:e.value,value:e.key},e.key)}))}),Y.jsx(n.Divider,{}),Y.jsxs(n.Stack,{spacing:{xs:"8px",md:"16px"},sx:{pt:3,px:3},children:[Y.jsxs(n.Stack,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",spacing:2,children:[Y.jsxs(Y.Fragment,{children:[fe.properties&&fe.properties.filters.searchBar.isAccessible&&Y.jsx(Gv,{size:g,placeholder:m?"Search by "+JM.modify(fe.properties.title)+"...":"ابحث هنا …",onInputChange:function(e){Pe((function(t){return Z(Z({},t),{filter:e})}))}}),ve.length>0&&Y.jsx(rp,{methods:Re,onSubmit:Fe(Ze),children:Y.jsx(n.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:ve&&ve.map((function(e,t){return Y.jsx(n.Grid,{minWidth:200,children:KM(g,e+l.toString(),be,M,w,e,m,T,k,Ge,Qe,Xe,pe)},e+t)}))},"grid1")})]}),!ce&&Y.jsxs(n.Stack,{direction:"row",spacing:1,children:[Y.jsx(n.Tooltip,{title:"Filter list",onClick:function(){f(!0)},children:Y.jsx(n.IconButton,{children:Y.jsx(jo,{icon:"ic:round-filter-list"})})}),Te.filters&&!p&&Te.filters!==de&&Y.jsx(_M,{}),Te.filters&&!p&&Te.filters!==de&&Y.jsx(n.Tooltip,{title:"Reset Filter",onClick:Ke,children:Y.jsx(n.IconButton,{children:bg("RestartAlt")})})]})]}),Y.jsx(gM,{schema:be,onClickClearFilter:Ke,onRemoveFilterValue:function(e,t){!function(e,t,n,r,o,i,a,s,l,c,u,d,p,f){var m,h,g=n.quickFilterProperties,v=n.properties.filters,A=v&&v.scopes&&v.scopes.auto?v.scopes.auto.key:void 0,y=n.properties.model,b=v.scopes.options,x=void 0===(null===(m=v.scopes)||void 0===m?void 0:m.showAll)||(null===(h=v.scopes)||void 0===h?void 0:h.showAll),w=Z({},s),j=Z({},c);A&&e.get(A)&&r===A&&i("all");var C=y[r],O=C.type,M=e.get(r),z=function(e){var t=r+"-to";return{from:o===r+"-from"?"":e[r].from,to:o===t?"":e[r].to}},D=function(t,n){var r=e.getAll(t);e.delete(t),r.forEach((function(r){r!==n&&e.append(t,r)}))};switch(O){case Uh.STRING:case Uh.PHONENUMBER:case Uh.LOCALIZEDString:case Uh.OBJECTID:case Uh.ENUM:case Uh.BOOLEAN:case Uh.COLOR:case Uh.EXTERNAL_LINK:M&&e.delete(r),s&&s[r]&&(w[r]=void 0),g&&g.includes(r)&&c[r]&&delete j[r];break;case Uh.NUMBER:case Uh.DATE:(M=e.get(o))&&e.delete(o),s&&s[r]&&(w[r]=z(w)),g&&g.includes(r)&&c[r]&&(j[r]=z(j));break;case Uh.REFERENCE:var T=r+"-id",P=r+"-name";if(C.multipleInFilter){var N=e.getAll(r+"-name");N&&N.length>0&&(e.getAll(r+"-id").forEach((function(e,t){e===o&&D(P,N[t])})),D(T,o)),g&&g.includes(r)&&c[r]&&(j[r]=j[r].filter((function(e){return e._id!==o})))}else e.delete(T),e.delete(P),s&&s[r]&&(w[r]=void 0),g&&g.includes(r)&&c[r]&&(d(r),f(),delete j[r])}var E={},B=void 0;new nO(n).getUniqueFields().forEach((function(t){"__v"!==t&&""!==t&&eO(y[t],t,E,e,y)})),B=tO(E,y,A),l(w),u(j),t(e),a((function(t){return Z(Z({},t),{page:1,filters:p?B.concat(p):B,scope:A&&e.get(A)?e.get(A):!x&&b?b[0].key:void 0})}))}(F,V,fe,e,t,ke,Pe,E,B,T,P,Ye,de,Je)}})]}),ue?ue(Le):Y.jsx(GM,Z({},Le))]})]})}):Y.jsx($C,{})}function tz(e){var t=e.text,o=e.to,i=e.icon;return Y.jsx(n.Button,{variant:"contained",component:r.Link,to:o,startIcon:Y.jsx(jo,{icon:i}),children:t})}function nz(e){return Y.jsx(tz,Z({},e,{icon:"eva:edit-fill"}))}var rz,oz=function(){function e(e,t,n,r,o){this.modelLocalizedName=t,this.modelName=e,this.isEnglish=n,this.title=r,this.record=o}return e.prototype.getTitle=function(){return this.isEnglish?this.modelLocalizedName+": Show":"عرض "+this.modelLocalizedName},e.prototype.getBreadCrumbHeading=function(){return this.isEnglish?this.modelName+" Data":"عرض "+this.modelLocalizedName},e.prototype.getBreadCrumbLinks=function(e,t,r,o){return[{name:this.isEnglish?"Dashboard":"الرئيسية",href:o},{name:this.modelLocalizedName,href:e[t].list},{name:this.record?r[this.title].type===Uh.LOCALIZEDString?this.getValue():"object"!=typeof this.record[this.title]?this.record[this.title]:this.getValue():Y.jsx(n.Skeleton,{variant:"text",width:100,height:20})}]},e.prototype.getValue=function(){return this.record[this.title][0]?Hg.getLocalizedString(this.record[this.title]):"---"},e}();function iz(t){var r=t.record,o=t.path,i=t.userPath,a=e.useContext(Ag).resources,s=a[o].showProperties,l=a[o].properties.model;return Y.jsx(n.Card,{sx:{pt:5,px:5},children:Y.jsx(n.Grid,{container:!0,columnSpacing:2,children:s&&s.map((function(e){return r.hasOwnProperty(e.key)&&null!==r[e.key]?Y.jsx(Hj,{property:e,schema:l,record:r,resources:a,userpath:i},e.key):Y.jsx(kj,{title:e.value,value:MC,fieldkey:e.key,resources:a,userpath:i},e.key)}))})})}function az(t){var o,i,a,s,l,c=r.useParams().id,u=void 0===c?"":c,d=t.path,p=t.modelRoute,f=t.disableDefaultActions,m=t.Component,h=t.HeadingView,g=t.Actions,v=t.BreadcrumbsChildren,A=t.BreadCrumbLinks,y=t.defaultFilters,b=t.showFilterChips,x=t.hideHeaderBreadcrumbs,w=void 0!==x&&x,j=r.useLocation(),C=Hg.isEnglish(),O=r.useSearchParams(),M=O[0];O[1];var z=e.useContext(Ag).resources,D=e.useContext(Og).themeStretch,T=e.useContext(wg),P=T.paths,N=T.root,E=r.useNavigate(),B=z[d],k=z[d],L=k.properties,I=L.model,S=L.name,W=L.actions,H=L.title,R=mA.convertCamelCaseToWord(d),F=mg(),V=F.requestState,Q=F.get,X=null===(o=V.data)||void 0===o?void 0:o.record,G=new oz(R,S,C,H,X),U=cM({defaultFilters:y,searchParams:M,resource:B});e.useEffect((function(){Q({url:"".concat(p,"/").concat(u),query:U})}),[u]);var q=V.state===exports.RequestState.SUCCEEDED;return lC(B,aC.VIEW)?Y.jsx(J,{title:G.getTitle(),children:Y.jsxs(n.Container,{maxWidth:!D&&"lg",children:[!w&&Y.jsx(ee,{headingView:h&&q&&Y.jsx(h,{record:V.data}),heading:G.getBreadCrumbHeading(),links:A&&q?A(V.data):G.getBreadCrumbLinks(P,d,I,N),action:Y.jsxs(n.Stack,{spacing:2,children:[!k.properties.disableNextPreviousButtonsInShowPage&&Y.jsx(KC,Z({},t,{recordId:u,params:U,modelPath:p,navigateTo:function(e){var t=P[d].show(e);E("".concat(t).concat(j.search))},recordIndex:null===(i=V.data)||void 0===i?void 0:i.recordIndex,numberOfRecords:null===(a=V.data)||void 0===a?void 0:a.numberOfRecords})),Y.jsxs(n.Stack,{direction:{xs:"column",md:"row"},spacing:2,children:[g&&q&&Y.jsx(g,{record:V.data}),!f&&L&&W.edit.isAccessible&&lC(k,aC.EDIT)&&X&&!(null===(s=X.hiddenActionKeys)||void 0===s?void 0:s.includes("edit"))&&Y.jsx(nz,{text:W.edit.value,to:"".concat(P[d].edit(u)).concat(j.search)})]})]}),children:v&&q&&Y.jsx(v,{record:V.data})}),Y.jsxs(n.Stack,{spacing:1,children:[b&&Y.jsx(gM,{schema:I}),q?m?Y.jsx(m,{record:V.data,path:d,userPath:P}):Y.jsx(iz,{record:null===(l=V.data)||void 0===l?void 0:l.record,path:d,userPath:P},u):Y.jsx(n.Grid,{container:!0,alignItems:"center",children:Y.jsx(Wg,{sx:{height:50}})})]})]})}):Y.jsx($C,{})}function sz(e){var t=e.name,r=e.checked,o=e.disabled,i=e.fieldKey,a=e.label,s=e.handleChange;return Y.jsx(n.FormControlLabel,{control:Y.jsx(n.Switch,{checked:r,onChange:function(e){s(e,i)},name:t,disabled:o}),label:a})}function lz(e){var t=e.getValues,r=e.checked,o=e.size,i=e.handleChange;function a(e,n,a){return Y.jsx(sz,{handleChange:i,getValues:t,name:e,size:o,label:n,disabled:!1,checked:r[a],fieldKey:a})}return Y.jsxs(n.Grid,{item:!0,xs:12,children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled",mb:0},children:"Actions"}),a("actions.show","Show","show"),a("actions.edit","Edit","edit"),a("actions.new","Create","new"),a("actions.delete","Delete","delete"),a("actions.bulkDelete","Bulk delete","bulkDelete")]})}function cz(t){var o=this,i=t.isEdit,a=t.record,s=t.path,u=t.apiRoute,d=t.resources,p=t.afterEditSnackText,f=r.useNavigate(),m=Bg(),h=m.setSuccessAlert,g=m.setErrorAlert,v=Eg().getResources,A=kg().paths,y=e.useState(!1),b=y[0],x=y[1],w=r.useParams().id,j=void 0===w?"":w,C=e.useState(a?a.actions:{}),O=C[0],M=C[1],z=Ng().textFieldSize,D=d[s].properties.model,T=d[s].formProperties,P=d[sC.lowerCaseFirstLetter(a.modelName)],N=P.properties.model,E=[];function B(e){E.push(e)}!function e(t,n){for(var r in t){var o=t[r];o.type!==Uh.NESTEDSCHEMA?B(n?"".concat(n,".").concat(r):r):e(o.schema,n?"".concat(n,".").concat(r):r)}}(N);var k=Hg.isEnglish(),I=k?"Create ":" اضافة ",S=k?"Save changes":"تعديل ",W={},H={};T.map((function(e){"_id"!==e&&"__v"!==e&&(W[e]=function(e,t){var n;switch(H[t]=void 0,e.type){case Uh.STRING:H[t]=a?a[t]:"",n=L.string();break;case Uh.NUMBER:H[t]=a?a[t]:void 0,n=L.number();break;case Uh.ENUM:H[t]=a?a[t]:D[t]&&D[t].defaultValue?D[t].defaultValue:void 0,n=L.string();break;case Uh.ARRAY:n=L.array(),H[t]=a&&a[t]?a[t]:void 0;break;case Uh.NESTEDSCHEMA:H[t]=a&&a[t]?a[t]:void 0,n=L.mixed()}return n}(D[e],e))}));var R=L.object().shape(W),F=e.useMemo((function(){return H}),[]),V=c.useForm({resolver:Da(R),defaultValues:F}),Q=V.reset,X=V.control,G=V.handleSubmit,K=V.getValues,J=V.setValue,_={},$={},ee=function(e,t){J(e.target.name,e.target.checked);var n=Z({},O);n[t]=e.target.checked,M(n)};function te(e){$[e]={},$[e][e]={type:D[e]?D[e].arrayType:"",enumValues:D[e]?D[e].enumValues:[]}}function ne(t,r,o){var s={name:o,key:o,size:z,label:r[t].value,disabled:i&&!1===r[t].isEditable};if("title"===t||"defaultOrderBy"===t)return Y.jsx(TC,Z({},s,{values:E}));if("actions"===t)return Y.jsx(lz,{handleChange:ee,getValues:K,size:z,checked:O});if(r[t])switch(r[t].type){case Uh.OBJECTID:case Uh.NUMBER:case Uh.STRING:if("listProperties"===t||"showProperties"===t||"filterProperties"===t||"quickFilterProperties"===t){var l=[];return l=a[t]&&0!==a[t].length?E.filter((function(e){return!K(t).includes(e)||e===K(o)})):E,e.createElement(TC,Z({},s,{key:o,values:l}))}return Y.jsx(dp,Z({},s));case Uh.ENUM:return Y.jsx(TC,Z({},s,{values:r[t].enumValues}));case Uh.ARRAY:return function(e){var t=c.useFieldArray({control:X,name:e}),n=t.fields,r=t.append,o=t.remove,i=t.move;_[e]={fields:n,append:r,remove:o,move:i}}(t),te(t),Y.jsxs(n.Grid,{item:!0,xs:12,children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[t].value},t),Y.jsx(xj,{handleRemove:function(e){return function(e,t){_[e].remove(t)}(t,e)},draggable:!0,handleDrop:function(e){return function(e,t){t.destination&&_[e].move(t.source.index,t.destination.index)}(t,e)},list:_[t].fields,itemComponent:function(e){return Y.jsxs(n.Stack,{direction:{xs:"column",md:"row"},spacing:2,sx:{width:1},children:[Y.jsx(n.Grid,{item:!0,xs:12,children:ne(t,$[t],"".concat(t,"[").concat(e,"]"))}),Y.jsx(n.Divider,{})]})},handleAdd:function(){return function(e){_[e].append()}(t)},addButtonText:k?"Add item":"إضافة"})]},t)}}return Y.jsx(Y.Fragment,{children:Y.jsx(rp,{methods:V,onSubmit:G((function(e){return U(o,void 0,void 0,(function(){var t,n,r,o,i,a;return q(this,(function(l){switch(l.label){case 0:x(!0),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,ug.patch(u+"/"+j,e)];case 2:return t=l.sent(),x(!1),201!==t.status&&200!==t.status||!t.data.data.record.document||(Q(),n=d[s].properties.title,r=t.data.data.record.document[n],o=mA.getRecordName(r,n,P),v(),i=p?p(o):"".concat(o," was updated successfully"),h(i),f(A[s].list,{replace:!0})),[3,4];case 3:return a=l.sent(),x(!1),Q(e),g("".concat(JSON.parse(a).meta.message)),[3,4];case 4:return[2]}}))}))})),children:Y.jsx(n.Card,{sx:{p:3},children:Y.jsxs(n.Grid,{container:!0,spacing:2,justifyContent:"end",children:[T&&T.map((function(e,t){return Y.jsx(n.Grid,{item:!0,xs:12,children:ne(e,D,e)},e+t)})),Y.jsx(n.Grid,{item:!0,alignSelf:"end",sx:{mt:3},children:Y.jsx(l.LoadingButton,{type:"submit",variant:"contained",loading:b,children:i?S:I})})]},"grid1")})},"form")})}function uz(e){var t=e.direction,n=e.sxProps,r=e.onClick,o=e.color,i=function(e){switch(e){case rz.LEFT:return"material-symbols:arrow-back-ios-new";case rz.RIGHT:return"eva:arrow-ios-forward-fill";case rz.DOWN:return"eva:arrow-ios-downward-fill";case rz.UP:return"eva:arrow-ios-upward-fill"}}(t);return Y.jsx(jo,{icon:i,onClick:r,sx:Z({width:16,height:16,color:null!=o?o:"white"},n)})}function dz(e){var t=e.onClickOpen,r=e.modelName,o=e.checked,i=rz.RIGHT;return Y.jsx(n.IconButton,{onClick:function(){return t(r)},children:Y.jsx(uz,{direction:o&&o[r].opened?rz.DOWN:i,color:"black"})})}function pz(t){var r=t.label,o=t.checked,i=t.onChange,a=e.memo((function(e){var t=e.checked,r=e.onChange;return Y.jsx(n.Checkbox,{checked:t,onChange:function(e,t){return r(e,t)}})}));return Y.jsx(n.FormControlLabel,{label:r,control:Y.jsx(a,{checked:o,onChange:i})})}function fz(){return Y.jsx(n.FormControlLabel,{label:Y.jsx(n.Skeleton,{variant:"text",width:160,height:20}),control:Y.jsx(n.Checkbox,{disabled:!0})})}function mz(){return Y.jsx(n.IconButton,{children:Y.jsx(uz,{direction:rz.DOWN,color:"black"})})}function hz(){return Y.jsx(Y.Fragment,{children:Array.from(Array(2).keys()).map((function(e){return Y.jsxs("div",{children:[Y.jsxs(n.Stack,{direction:"row",alignItems:"center",spacing:"1px",children:[Y.jsx(mz,{}),Y.jsx(fz,{})]}),Y.jsx(n.Box,{sx:{display:"flex",flexDirection:"column",ml:8},children:Array.from(Array(4).keys()).map((function(e){return Y.jsx(fz,{},e)}))})]},e)}))})}function gz(e){var t=e.modelPermissions,r=e.checked,o=e.fetchLoading,i=e.onCheckAll,a=e.handleChange,s=e.onClickOpen;return Y.jsxs(n.Stack,{children:[Y.jsxs(n.Stack,{direction:"row",justifyContent:"space-between",children:[Y.jsx(n.Typography,{sx:{py:1},fontWeight:700,fontSize:{xs:"14px",md:"18px"},children:"Permissions"}),Y.jsx(n.Button,{onClick:i,children:"Check all"})]}),o?Y.jsx(hz,{}):t.map((function(e){var t=e.modelName;return Y.jsxs("div",{children:[Y.jsxs(n.Stack,{direction:"row",alignItems:"center",spacing:"1px",children:[Y.jsx(dz,{modelName:t,checked:r,onClickOpen:s}),Y.jsx(pz,{label:e.label,checked:r&&r[t].all,onChange:function(e,n){return a(t,"all",n)}})]}),r&&r[t].opened&&Y.jsx(n.Box,{sx:{display:"flex",flexDirection:"column",ml:8},children:e.permissions.map((function(e){var n=e.id;return Y.jsx(pz,{label:e.label,checked:r&&r[t][n],onChange:function(e,r){return a(t,n,r)}},n)}))})]},t)}))]})}function vz(e){var t=Ng().textFieldSize;return Y.jsxs(n.Stack,{spacing:3,children:[Y.jsx(dp,{name:"name",label:"Name",size:t}),Y.jsx(gz,Z({},e))]})}function Az(t){var i=this,a=t.modelPermissions,s=t.fetchLoading,u=t.isEdit,d=t.permissionGroup,p=e.useState(void 0),f=p[0],m=p[1],h=r.useParams().id,g=void 0===h?"":h,v=e.useContext(fg).dashbaordUrlPrefix,A=kg().paths,y=L.object().shape({name:o.string().required("Please add permission group name").typeError("Please add permission group name")}),b=e.useState(!1),x=b[0],w=b[1],j=r.useNavigate(),C=e.useMemo((function(){return{name:null==d?void 0:d.name}}),[]),O=c.useForm({resolver:Da(y),defaultValues:C}),M=O.getValues,z=O.handleSubmit;e.useEffect((function(){a.length>0&&m(function(e){var t={};return e.forEach((function(e,n){t[e.modelName]={all:!1,opened:0===n};var r=!0;e.permissions.forEach((function(n){t[e.modelName][n.id]=n.checked,n.checked?t[e.modelName].opened=!0:r=!1})),r&&(t[e.modelName].all=!0)})),t}(a))}),[a]);return Y.jsxs(rp,{methods:O,onSubmit:z((function(e){return U(i,void 0,void 0,(function(){return q(this,(function(t){switch(t.label){case 0:return w(!0),u?[4,ug.patch("".concat(v,"/permissionGroups/").concat(g),Z(Z({},e),{checked:f}))]:[3,2];case 1:return t.sent(),[3,4];case 2:return[4,ug.post("".concat(v,"/permissionGroups"),Z(Z({},e),{checked:f}))];case 3:t.sent(),t.label=4;case 4:return w(!1),j(A.permissionGroup.list),[2]}}))}))})),children:[Y.jsx(vz,{checked:f,handleChange:function(e,t,n){var r,o,i,s=Z({},f);if(s[e][t]=n,"all"===t)(i=null===(r=a.find((function(t){return t.modelName===e})))||void 0===r?void 0:r.permissions)&&i.forEach((function(t){s[e][t.id]=n}));else if(i=null===(o=a.find((function(t){return t.modelName===e})))||void 0===o?void 0:o.permissions){var l=i.every((function(t){return s[e][t.id]}));s[e].all=l}m(s)},onClickOpen:function(e){var t=Z({},f);t[e].opened=!t[e].opened,m(t)},modelPermissions:a,getValues:M,fetchLoading:s,onCheckAll:function(){var e=Z({},f);for(var t in e)for(var n in e[t])e[t][n]=!0;m(e)}}),Y.jsx(n.Stack,{direction:"row",flexDirection:"row-reverse",children:Y.jsx(l.LoadingButton,{type:"submit",variant:"contained",size:"large",loading:x,children:"Save"})})]})}function yz(t){var n=e.useState(!!t),r=n[0],o=n[1];return{value:r,onTrue:e.useCallback((function(){o(!0)}),[]),onFalse:e.useCallback((function(){o(!1)}),[]),onToggle:e.useCallback((function(){o((function(e){return!e}))}),[]),setValue:o}}!function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN"}(rz||(rz={}));var bz={H_MOBILE:64,H_DESKTOP:80,H_DESKTOP_OFFSET:64},xz={W_VERTICAL:280,W_MINI:88},wz=8;function jz(t){var n=t.children,r=t.sx,o=G(t,["children","sx"]),i=e.useContext(Og),a=Za("up","lg"),s="horizontal"===i.themeLayout,l="mini"===i.themeLayout;return s?Y.jsx(wo,{component:"main",sx:Z({minHeight:1,display:"flex",flexDirection:"column",pt:"".concat(bz.H_MOBILE+24,"px"),pb:10},a&&{pt:"".concat(2*bz.H_MOBILE+40,"px"),pb:15}),children:n}):Y.jsx(wo,Z({component:"main",sx:Z(Z({flexGrow:1,py:"".concat(bz.H_MOBILE+wz,"px")},a&&Z({px:2,py:"".concat(bz.H_DESKTOP+wz,"px"),width:"calc(100% - ".concat(xz.W_VERTICAL,"px)")},l&&{width:"calc(100% - ".concat(xz.W_MINI,"px)")})),r)},o,{children:n}))}function Cz(e){return It("MuiAppBar",e)}var Oz=St("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Mz=["className","color","enableColorOnDark","position"],zz=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,Dz=go(Ki,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ke(n.position)}`],t[`color${Ke(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return re({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&re({},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&re({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&re({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:zz(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:zz(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:zz(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:zz(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),Tz=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiAppBar"}),{className:r,color:o="primary",enableColorOnDark:i=!1,position:a="fixed"}=n,s=Rt(n,Mz),l=re({},n,{color:o,position:a,enableColorOnDark:i}),c=(e=>{const{color:t,position:n,classes:r}=e;return Et({root:["root",`color${Ke(t)}`,`position${Ke(n)}`]},Cz,r)})(l);return Y.jsx(Dz,re({square:!0,component:"header",ownerState:l,elevation:4,className:$n(c.root,r,"fixed"===a&&"mui-fixed"),ref:t},s))}));"production"!==process.env.NODE_ENV&&(Tz.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,color:Ee.oneOfType([Ee.oneOf(["default","inherit","primary","secondary","transparent"]),Ee.string]),enableColorOnDark:Ee.bool,position:Ee.oneOf(["absolute","fixed","relative","static","sticky"]),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var Pz=Tz;function Nz(e){return It("MuiToolbar",e)}St("MuiToolbar",["root","gutters","regular","dense"]);const Ez=["className","component","disableGutters","variant"],Bz=go("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>re({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),kz=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:i=!1,variant:a="regular"}=n,s=Rt(n,Ez),l=re({},n,{component:o,disableGutters:i,variant:a}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return Et({root:["root",!n&&"gutters",r]},Nz,t)})(l);return Y.jsx(Bz,re({as:o,className:$n(c.root,r),ref:t,ownerState:l},s))}));"production"!==process.env.NODE_ENV&&(kz.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,disableGutters:Ee.bool,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),variant:Ee.oneOfType([Ee.oneOf(["dense","regular"]),Ee.string])});var Lz=kz;var Iz=e.forwardRef((function(e,t){var n=e.src,r=e.sx,o=G(e,["src","sx"]);return Y.jsx(wo,Z({component:"span",className:"svg-color",ref:t,sx:Z({width:24,height:24,display:"inline-block",bgcolor:"currentColor",mask:"url(".concat(n,") no-repeat center / contain"),WebkitMask:"url(".concat(n,") no-repeat center / contain")},r)},o))})),Sz={exports:{}};Sz.exports=(()=>{return e={772:(e,t,n)=>{const r=n(826).remove,o=/[.*+?^${}()|[\]\\]/g,i=/[a-z0-9_]/i,a=/\s+/;e.exports=function(e,t,n){var s,l;l={insideWords:!1,findAllOccurrences:!1,requireMatchAll:!1},s=(s=n)||{},Object.keys(s).forEach((e=>{l[e]=!!s[e]})),n=l;const c=Array.from(e).map((e=>r(e)));let u=c.join("");return(t=r(t)).trim().split(a).filter((e=>e.length>0)).reduce(((e,t)=>{const r=t.length,a=!n.insideWords&&i.test(t[0])?"\\b":"",s=new RegExp(a+t.replace(o,"\\$&"),"i");let l,d;if(l=s.exec(u),n.requireMatchAll&&null===l)return u="",[];for(;l;){d=l.index;const t=r-c.slice(d,d+r).join("").length,o=d-c.slice(0,d).join("").length,i=[d+o,d+r+o+t];if(i[0]!==i[1]&&e.push(i),u=u.slice(0,d)+new Array(r+1).join(" ")+u.slice(d+r),!n.findAllOccurrences)break;l=s.exec(u)}return e}),[]).sort(((e,t)=>e[0]-t[0]))}},826:e=>{var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"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","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,""),i=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=i,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=i}},t={},function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(772);var e,t})();var Wz=W(Sz.exports),Hz="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var Rz=go(wo)((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode,o="filled"===n.variant,i="outlined"===n.variant,a="soft"===n.variant,s=Z({},"default"===n.color&&Z(Z(Z({},o&&{color:r?t.palette.common.white:t.palette.grey[800],backgroundColor:t.palette.text.primary}),i&&{backgroundColor:"transparent",color:t.palette.text.primary,border:"2px solid ".concat(t.palette.text.primary)}),a&&{color:t.palette.text.secondary,backgroundColor:yr(t.palette.grey[500],.16)})),l=Z({},"default"!==n.color&&Z(Z(Z({},o&&{color:t.palette[n.color].contrastText,backgroundColor:t.palette[n.color].main}),i&&{backgroundColor:"transparent",color:t.palette[n.color].main,border:"2px solid ".concat(t.palette[n.color].main)}),a&&{color:t.palette[n.color][r?"dark":"light"],backgroundColor:yr(t.palette[n.color].main,.16)}));return Z(Z({height:24,minWidth:24,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"capitalize",padding:t.spacing(0,.75),fontSize:t.typography.pxToRem(12),fontWeight:t.typography.fontWeightBold,transition:t.transitions.create("all",{duration:t.transitions.duration.shorter})},s),l)})),Fz=e.forwardRef((function(e,t){var n=e.children,r=e.color,o=void 0===r?"default":r,i=e.variant,a=void 0===i?"soft":i,s=e.startIcon,l=e.endIcon,c=e.sx,u=G(e,["children","color","variant","startIcon","endIcon","sx"]),d=po(),p={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return Y.jsxs(Rz,Z({ref:t,component:"span",ownerState:{color:o,variant:a},sx:Z(Z(Z({},s&&{pl:.75}),l&&{pr:.75}),c),theme:d},u,{children:[s&&Y.jsxs(wo,{sx:Z({mr:.75},p),children:[" ",s," "]}),n,l&&Y.jsxs(wo,{sx:Z({ml:.75},p),children:[" ",l," "]})]}))}));function Vz(){var t=r.useNavigate();return e.useMemo((function(){return{back:function(){return t(-1)},forward:function(){return t(1)},reload:function(){return window.location.reload()},push:function(e){return t(e)},replace:function(e){return t(e,{replace:!0})}}}),[t])}function Qz(e){var t=e.query,n=e.sx,r=G(e,["query","sx"]);return t?Y.jsxs(Ki,Z({sx:Z({bgcolor:"unset",textAlign:"center"},n)},r,{children:[Y.jsx(Tu,{variant:"h6",gutterBottom:!0,children:"Not Found"}),Y.jsxs(Tu,{variant:"body2",children:["No results found for ",Y.jsxs("strong",{children:['"',t,'"']}),".",Y.jsx("br",{})," Try checking for typos or using complete words."]})]})):Y.jsx(Tu,{variant:"body2",sx:n,children:"Please enter keywords"})}function Xz(e){var t=e.title,n=e.path,r=e.groupLabel,o=e.onClickItem;return Y.jsxs(fx,{onClick:o,sx:{borderWidth:1,borderStyle:"dashed",borderColor:"transparent",borderBottomColor:function(e){return e.palette.divider},"&:hover":{borderRadius:1,borderColor:function(e){return e.palette.primary.main},backgroundColor:function(e){return yr(e.palette.primary.main,e.palette.action.hoverOpacity)}}},children:[Y.jsx(Lu,{primaryTypographyProps:{typography:"subtitle2",sx:{textTransform:"capitalize"}},secondaryTypographyProps:{typography:"caption"},primary:t.map((function(e,t){return Y.jsx(wo,{component:"span",sx:{color:e.highlight?"primary.main":"text.primary"},children:e.text},t)})),secondary:n.map((function(e,t){return Y.jsx(wo,{component:"span",sx:{color:e.highlight?"primary.main":"text.secondary"},children:e.text},t)}))}),r&&Y.jsx(Fz,{color:"info",children:r})]})}function Yz(e,t){void 0===t&&(t="children");var n=[],r=null==e?void 0:e.map((function(e){return e[t]&&e[t].length&&(n=K(K([],n,!0),e[t],!0)),e}));return null==r?void 0:r.concat(n.length?Yz(n,t):n)}function Zz(e){var t=e.data.map((function(e){return Gz(e.items,e.subheader)})).flat(),n=Yz(t).map((function(e){var n=function(e,t){var n,r=e.map((function(e){return{path:[e.title],currItem:e}})),o=function(){var e=r.pop(),o=e.path,i=e.currItem;if(i.path===t)return{value:o};(null===(n=i.children)||void 0===n?void 0:n.length)&&(r=r.concat(i.children.map((function(e){return{path:o.concat(e.title),currItem:e}}))))};for(;r.length;){var i=o();if("object"==typeof i)return i.value}return null}(t,e.path);return{group:n&&n.length>1?n[0]:e.subheader,title:e.title,path:e.path}}));return n}function Gz(e,t){return null==e?void 0:e.map((function(e){return Z(Z({subheader:t},e),e.children&&{children:Gz(e.children,t)})}))}var Uz=e.memo((function(){var t,n,r,o,i,a,s=po(),l=Vz(),c=yz(),u=Za("up","md"),d=e.useState(""),p=d[0],f=d[1],m=Cg(),h=e.useCallback((function(){c.onFalse(),f("")}),[c]);n="keydown",r=function(e){"k"===e.key&&e.metaKey&&(c.onToggle(),f(""))},a=e.useRef(r),Hz((function(){a.current=r}),[r]),e.useEffect((function(){var e=(null==o?void 0:o.current)||window;if(e&&e.addEventListener){var t=function(e){return a.current(e)};return e.addEventListener(n,t,i),function(){e.removeEventListener(n,t)}}}),[n,o,i]);var g,v=e.useCallback((function(e){e.includes("http")?window.open(e):l.push(e),h()}),[h,l]),A=e.useCallback((function(e){f(e.target.value)}),[]),y=function(e){var t=e.inputData,n=e.query;return n&&(t=t.filter((function(e){var t,r;return void 0!==e.path&&void 0!==e.title&&-1!==(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().indexOf(n.toLowerCase()))||-1!==(null===(r=e.path)||void 0===r?void 0:r.toLowerCase().indexOf(n.toLowerCase()))}))),t}({inputData:Zz({data:m}),query:p}),b=p&&!y.length,x=Y.jsxs(ms,{direction:"row",alignItems:"center",children:[Y.jsx(Zc,{onClick:c.onTrue,children:Y.jsx(jo,{icon:"eva:search-fill"})}),u&&Y.jsx(Fz,{sx:{px:.75,fontSize:12,color:"text.secondary"},children:"⌘K"})]});return Y.jsxs(Y.Fragment,{children:[x,Y.jsxs(sj,{fullWidth:!0,maxWidth:"sm",open:c.value,onClose:h,transitionDuration:{enter:s.transitions.duration.shortest,exit:0},PaperProps:{sx:{mt:15,overflow:"unset"}},sx:(t={},t["& .".concat(_w.container)]={alignItems:"flex-start"},t),children:[Y.jsx(wo,{sx:{p:3,borderBottom:"solid 1px ".concat(s.palette.divider)},children:Y.jsx(hd,{fullWidth:!0,autoFocus:!0,placeholder:"Search...",value:p,onChange:A,startAdornment:Y.jsx(Wb,{position:"start",children:Y.jsx(jo,{icon:"eva:search-fill",width:24,sx:{color:"text.disabled"}})}),endAdornment:Y.jsx(Fz,{sx:{letterSpacing:1,color:"text.secondary"},children:"esc"}),inputProps:{sx:{typography:"h6"}}})}),Y.jsx(og,{sx:{p:3,pt:2,height:400},children:b?Y.jsx(Qz,{query:p,sx:{py:10}}):(g=y.reduce((function(e,t){return e[t.group]=e[t.group]||[],e[t.group].push(t),e}),{}),Object.keys(g).sort((function(e,t){return-t.localeCompare(e)})).filter((function(e){return""!==e})).map((function(e,t){return Y.jsx(Nf,{disablePadding:!0,children:g[e].map((function(t){var n=t.title,r=t.path,o=nh(n,Wz(n,p)),i=nh(r,Wz(r,p));return Y.jsx(Xz,{path:i,title:o,groupLabel:p&&e,onClickItem:function(){return v(r)}},"".concat(n).concat(r))}))},e||t)})))})]})]})})),qz=Si(Y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Kz(e){return It("MuiAvatar",e)}St("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Jz=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],_z=go("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({theme:e,ownerState:t})=>re({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&re({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]})))),$z=go("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),eD=go(qz,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const tD=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiAvatar"}),{alt:r,children:o,className:i,component:a="div",imgProps:s,sizes:l,src:c,srcSet:u,variant:d="circular"}=n,p=Rt(n,Jz);let f=null;const m=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=k.useState(!1);return k.useEffect((()=>{if(!n&&!r)return;i(!1);let o=!0;const a=new Image;return a.onload=()=>{o&&i("loaded")},a.onerror=()=>{o&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{o=!1}}),[e,t,n,r]),o}(re({},s,{src:c,srcSet:u})),h=c||u,g=h&&"error"!==m,v=re({},n,{colorDefault:!g,component:a,variant:d}),A=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return Et({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Kz,t)})(v);return f=g?Y.jsx($z,re({alt:r,src:c,srcSet:u,sizes:l,ownerState:v,className:A.img},s)):null!=o?o:h&&r?r[0]:Y.jsx(eD,{ownerState:v,className:A.fallback}),Y.jsx(_z,re({as:a,ownerState:v,className:$n(A.root,i),ref:t},p,{children:f}))}));"production"!==process.env.NODE_ENV&&(tD.propTypes={alt:Ee.string,children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,imgProps:Ee.object,sizes:Ee.string,src:Ee.string,srcSet:Ee.string,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),variant:Ee.oneOfType([Ee.oneOf(["circular","rounded","square"]),Ee.string])});var nD=tD,rD=[];function oD(){var t,n,r,o,i=this,a=Vz(),s={photo:"",firstname:"Mohamed",lastname:"Ismail",email:"admin@test.com"},l=(t=e.useState(null),n=t[0],r=t[1],o=e.useCallback((function(e){r(e.currentTarget)}),[]),{open:n,onOpen:o,onClose:e.useCallback((function(){r(null)}),[]),setOpen:r});return Y.jsxs(Y.Fragment,{children:[Y.jsx(Zc,{component:p.m.button,whileTap:"tap",whileHover:"hover",variants:Ra(1.05),onClick:l.onOpen,sx:Z({width:40,height:40,background:function(e){return yr(e.palette.grey[500],.08)}},l.open&&{background:function(e){return"linear-gradient(135deg, ".concat(e.palette.primary.light," 0%, ").concat(e.palette.primary.main," 100%)")}}),children:Y.jsx(nD,{src:null==s?void 0:s.photo,alt:null==s?void 0:s.firstname,sx:{width:36,height:36,border:function(e){return"solid 2px ".concat(e.palette.background.default)}}})}),Y.jsxs(oO,{open:l.open,onClose:l.onClose,sx:{width:200,p:0},children:[Y.jsxs(wo,{sx:{p:2,pb:1.5},children:[Y.jsx(Tu,{variant:"subtitle2",noWrap:!0,children:(null==s?void 0:s.firstname)+" "+s.lastname}),Y.jsx(Tu,{variant:"body2",sx:{color:"text.secondary"},noWrap:!0,children:null==s?void 0:s.email})]}),Y.jsx(ms,{sx:{p:1},children:rD.map((function(e){return Y.jsx(Fu,{onClick:function(){return function(e){l.onClose(),a.push(e)}(e.linkTo)},children:e.label},e.label)}))}),Y.jsx(ha,{sx:{borderStyle:"dashed"}}),Y.jsx(Fu,{onClick:function(){return U(i,void 0,void 0,(function(){return q(this,(function(e){try{l.onClose(),a.replace("/")}catch(e){console.error(e)}return[2]}))}))},sx:{m:1,fontWeight:"fontWeightBold",color:"error.main"},children:"Logout"})]})]})}function iD(t){var n=t.onOpenNav,r=t.Logo,o=po(),i=e.useContext(Og),a="horizontal"===i.themeLayout,s="mini"===i.themeLayout,l=Za("up","lg"),c=function(t,n){void 0===t&&(t=0);var r=p.useScroll(n).scrollY,o=e.useState(!1),i=o[0],a=o[1],s=e.useCallback((function(){r.on("change",(function(e){a(e>t)}))}),[r,t]);return e.useEffect((function(){s()}),[s]),e.useMemo((function(){return i}),[i])}(bz.H_DESKTOP),u=c&&!a,d=Y.jsxs(Y.Fragment,{children:[l&&a&&r&&Y.jsx(r,{sx:{mr:2.5}}),!l&&Y.jsx(Zc,{onClick:n,children:Y.jsx(Iz,{src:"/assets/icons/navbar/ic_menu_item.svg"})}),Y.jsx(Uz,{}),Y.jsx(ms,{flexGrow:1,direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:{xs:.5,sm:1},children:Y.jsx(oD,{})})]});return Y.jsx(Pz,{sx:Z(Z(Z({height:bz.H_MOBILE,zIndex:o.zIndex.appBar+1},Yd({color:o.palette.background.default})),{transition:o.transitions.create(["height"],{duration:o.transitions.duration.shorter})}),l&&Z(Z(Z({width:"calc(100% - ".concat(xz.W_VERTICAL+1,"px)"),height:bz.H_DESKTOP},u&&{height:bz.H_DESKTOP_OFFSET}),a&&{width:1,bgcolor:"background.default",height:bz.H_DESKTOP_OFFSET,borderBottom:"dashed 1px ".concat(o.palette.divider)}),s&&{width:"calc(100% - ".concat(xz.W_MINI+1,"px)")})),children:Y.jsx(Lz,{sx:{height:1,px:{lg:5}},children:d})})}var aD=function(e){return{itemGap:(null==e?void 0:e.itemGap)||4,iconSize:(null==e?void 0:e.iconSize)||24,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||44,itemSubHeight:(null==e?void 0:e.itemSubHeight)||36,itemPadding:(null==e?void 0:e.itemPadding)||"4px 8px 4px 12px",itemRadius:(null==e?void 0:e.itemRadius)||8,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}},sD=function(e){return{itemGap:(null==e?void 0:e.itemGap)||4,iconSize:(null==e?void 0:e.iconSize)||22,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||56,itemSubHeight:(null==e?void 0:e.itemSubHeight)||34,itemPadding:(null==e?void 0:e.itemPadding)||"6px 0 0 0",itemRadius:(null==e?void 0:e.itemRadius)||6,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}},lD=function(e){return{itemGap:(null==e?void 0:e.itemGap)||6,iconSize:(null==e?void 0:e.iconSize)||22,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||32,itemSubHeight:(null==e?void 0:e.itemSubHeight)||34,itemPadding:(null==e?void 0:e.itemPadding)||"0 6px 0 6px",itemRadius:(null==e?void 0:e.itemRadius)||6,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}};function cD(e){return It("MuiLink",e)}var uD=St("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const dD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var pD=({theme:e,ownerState:t})=>{const n=(e=>dD[e]||e)(t.color),r=_t(e,`palette.${n}`,!1)||t.color,o=_t(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:yr(r,.4)};const fD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],mD=go(Tu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Ke(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>re({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&re({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:pD({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${uD.focusVisible}`]:{outline:"auto"}}))),hD=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:c="always",variant:u="inherit",sx:d}=n,p=Rt(n,fD),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=bt(),[v,A]=k.useState(!1),y=dt(t,g),b=re({},n,{color:o,component:i,focusVisible:v,underline:c,variant:u}),x=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Et({root:["root",`underline${Ke(o)}`,"button"===n&&"button",r&&"focusVisible"]},cD,t)})(b);return Y.jsx(mD,re({color:o,className:$n(x.root,r),classes:l,component:i,onBlur:e=>{m(e),!1===f.current&&A(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&A(!0),s&&s(e)},ref:y,ownerState:b,variant:u,sx:[...Object.keys(dD).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));"production"!==process.env.NODE_ENV&&(hD.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,color:Ee.any,component:Ie,onBlur:Ee.func,onFocus:Ee.func,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),TypographyClasses:Ee.object,underline:Ee.oneOf(["always","hover","none"]),variant:Ee.oneOfType([Ee.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),Ee.string])});var gD=hD,vD=e.forwardRef((function(e,t){var n=e.href,o=G(e,["href"]);return Y.jsx(r.Link,Z({ref:t,to:n},o))})),AD=go(fx,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.open,r=e.depth,o=e.config,i=e.theme,a=1!==r,s={root:{color:"light"===i.palette.mode?i.palette.primary.main:i.palette.primary.light,backgroundColor:yr(i.palette.primary.main,.08),"&:hover":{backgroundColor:yr(i.palette.primary.main,.16)}},sub:{color:i.palette.text.primary,backgroundColor:i.palette.action.selected,"&:hover":{backgroundColor:i.palette.action.hover}}};return Z(Z(Z(Z({flexDirection:"column",justifyContent:"center",borderRadius:o.itemRadius,minHeight:o.itemRootHeight,color:i.palette.text.secondary,margin:"0 ".concat(o.itemGap,"px ").concat(o.itemGap,"px ").concat(o.itemGap,"px")},o.hiddenLabel&&!a&&{padding:o.itemPadding}),t&&Z({},s.root)),a&&Z({margin:0,flexDirection:"row",padding:i.spacing(0,1),minHeight:o.itemSubHeight},t&&Z({},s.sub))),n&&!t&&{color:i.palette.text.primary,backgroundColor:i.palette.action.hover})})),yD=go(xu)((function(e){var t=e.size;return{width:t,height:t,marginRight:0}})),bD=e.forwardRef((function(e,t){var n=e.item,r=e.depth,o=e.open,i=e.active,a=e.externalLink,s=e.config,l=G(e,["item","depth","open","active","externalLink","config"]),c=po(),u=n.title,d=n.path,p=n.icon,f=n.children,m=n.disabled,h=n.caption,g=n.roles,v=1!==r,A=Y.jsxs(AD,Z({disableGutters:!0,ref:t,open:o,depth:r,active:i,disabled:m,config:s},l,{children:[p&&Y.jsx(yD,{size:s.iconSize,children:p}),!(s.hiddenLabel&&!v)&&Y.jsx(Lu,{sx:Z({width:1,flex:"unset"},!v&&{px:.5,mt:.5}),primary:u,primaryTypographyProps:Z({noWrap:!0,fontSize:10,lineHeight:"16px",textAlign:"center",textTransform:"capitalize",fontWeight:i?"fontWeightBold":"fontWeightSemiBold"},v&&{textAlign:"unset",fontSize:c.typography.body2.fontSize,lineHeight:c.typography.body2.lineHeight,fontWeight:i?"fontWeightSemiBold":"fontWeightMedium"})}),h&&Y.jsx(yc,{title:h,arrow:!0,placement:"right",children:Y.jsx(jo,{width:16,icon:"eva:info-outline",sx:Z({color:"text.disabled"},!v&&{top:11,left:6,position:"absolute"})})}),!!f&&Y.jsx(jo,{width:16,icon:"eva:arrow-ios-forward-fill",sx:{top:11,right:6,position:"absolute"}})]}));return g&&!g.includes("".concat(s.currentRole))?null:a?Y.jsx(gD,{href:d,target:"_blank",rel:"noopener",underline:"none",sx:Z({width:1},m&&{cursor:"default"}),children:A}):Y.jsx(gD,{component:vD,href:d,underline:"none",sx:Z({width:1},m&&{cursor:"default"}),children:A})}));function xD(e,t){void 0===t&&(t=!0);var n=r.useLocation().pathname,o=!!e&&!!r.matchPath({path:e,end:!0},n),i=!!e&&!!r.matchPath({path:e,end:!1},n);return t?i:o}function wD(t){var n,r,o=t.data,i=t.depth,a=t.hasChild,s=t.config,l=e.useRef(null),c=JC(),u=xD(o.path,a),d=null===(r=o.path)||void 0===r?void 0:r.includes("http"),p=e.useState(!1),f=p[0],m=p[1];e.useEffect((function(){f&&g()}),[c]),e.useEffect((function(){var e=Array.from(document.querySelectorAll(".".concat(Oz.root))),t=function(){document.body.style.overflow="",document.body.style.padding="",e.forEach((function(e){e.style.padding=""}))};t()}),[f]);var h=e.useCallback((function(){m(!0)}),[]),g=e.useCallback((function(){m(!1)}),[]);return Y.jsxs(Y.Fragment,{children:[Y.jsx(bD,{ref:l,item:o,depth:i,open:f,active:u,externalLink:d,onMouseEnter:h,onMouseLeave:g,config:s}),a&&Y.jsx(Jf,{open:f,anchorEl:l.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:h,onMouseLeave:g},sx:(n={pointerEvents:"none"},n["& .".concat(Rf.paper)]=Z({mt:.5,width:160},f&&{pointerEvents:"auto"}),n),children:Y.jsx(jD,{data:o.children,depth:i,config:s})})]})}function jD(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(ms,{spacing:.5,children:t.map((function(e){return Y.jsx(wD,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var CD=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(ms,Z({sx:r},o,{children:t.map((function(e,t){return Y.jsx(OD,{items:e.items,config:sD(n)},e.subheader||t)}))}))}));function OD(e){var t=e.items,n=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(wD,{data:e,depth:1,hasChild:!!e.children,config:n},e.title+e.path)}))})}function MD(t){var n=t.sx,r=G(t,["sx"]),o=po(),i=e.useContext(Og),a=i.themeLayout,s=i.setThemeLayout;return Za("up","lg")?Y.jsx(Zc,Z({size:"small",onClick:function(){s&&s("vertical"===a?"mini":"vertical")},sx:Z(Z(Z({p:.5,top:32,position:"fixed",left:xz.W_VERTICAL-12,zIndex:o.zIndex.appBar+1,border:"dashed 1px ".concat(o.palette.divider)},Yd({opacity:.48,color:o.palette.background.default})),{"&:hover":{bgcolor:"background.default"}}),n)},r,{children:Y.jsx(jo,{width:16,icon:"vertical"===a?"eva:arrow-ios-back-fill":"eva:arrow-ios-forward-fill"})})):null}function zD(e){var t=e.Logo,n=Cg();return Y.jsxs(wo,{component:"nav",sx:{flexShrink:{lg:0},width:{lg:xz.W_MINI}},children:[Y.jsx(MD,{sx:{top:22,left:xz.W_MINI-12}}),Y.jsxs(ms,{sx:Z({pb:2,height:1,position:"fixed",width:xz.W_MINI,borderRight:function(e){return"dashed 1px ".concat(e.palette.divider)}},Zd.x),children:[t&&Y.jsx(t,{sx:{mx:"auto",my:2}}),Y.jsx(CD,{data:n,config:{currentRole:"admin"}})]})]})}function DD(e){return It("MuiCollapse",e)}St("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const TD=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],PD=go("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>re({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&re({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),ND=go("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>re({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),ED=go("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>re({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),BD=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:i,collapsedSize:a="0px",component:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,orientation:g="vertical",style:v,timeout:A=ro.standard,TransitionComponent:y=li}=n,b=Rt(n,TD),x=re({},n,{orientation:g,collapsedSize:a}),w=(e=>{const{orientation:t,classes:n}=e;return Et({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},DD,n)})(x),j=po(),C=k.useRef(),O=k.useRef(null),M=k.useRef(),z="number"==typeof a?`${a}px`:a,D="horizontal"===g,T=D?"width":"height";k.useEffect((()=>()=>{clearTimeout(C.current)}),[]);const P=k.useRef(null),N=dt(t,P),E=e=>t=>{if(e){const n=P.current;void 0===t?e(n):e(n,t)}},B=()=>O.current?O.current[D?"clientWidth":"clientHeight"]:0,L=E(((e,t)=>{O.current&&D&&(O.current.style.position="absolute"),e.style[T]=z,u&&u(e,t)})),I=E(((e,t)=>{const n=B();O.current&&D&&(O.current.style.position="");const{duration:r,easing:o}=gi({style:v,timeout:A,easing:l},{mode:"enter"});if("auto"===A){const t=j.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,M.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[T]=`${n}px`,e.style.transitionTimingFunction=o,p&&p(e,t)})),S=E(((e,t)=>{e.style[T]="auto",d&&d(e,t)})),W=E((e=>{e.style[T]=`${B()}px`,f&&f(e)})),H=E(m),R=E((e=>{const t=B(),{duration:n,easing:r}=gi({style:v,timeout:A,easing:l},{mode:"exit"});if("auto"===A){const n=j.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,M.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[T]=z,e.style.transitionTimingFunction=r,h&&h(e)}));return Y.jsx(y,re({in:c,onEnter:L,onEntered:S,onEntering:I,onExit:W,onExited:H,onExiting:R,addEndListener:e=>{"auto"===A&&(C.current=setTimeout(e,M.current||0)),r&&r(P.current,e)},nodeRef:P,timeout:"auto"===A?null:A},b,{children:(e,t)=>Y.jsx(PD,re({as:s,className:$n(w.root,i,{entered:w.entered,exited:!c&&"0px"===z&&w.hidden}[e]),style:re({[D?"minWidth":"minHeight"]:z},v),ownerState:re({},x,{state:e}),ref:N},t,{children:Y.jsx(ND,{ownerState:re({},x,{state:e}),className:w.wrapper,ref:O,children:Y.jsx(ED,{ownerState:re({},x,{state:e}),className:w.wrapperInner,children:o})})}))}))}));"production"!==process.env.NODE_ENV&&(BD.propTypes={addEndListener:Ee.func,children:Ee.node,classes:Ee.object,className:Ee.string,collapsedSize:Ee.oneOfType([Ee.number,Ee.string]),component:Ie,easing:Ee.oneOfType([Ee.shape({enter:Ee.string,exit:Ee.string}),Ee.string]),in:Ee.bool,onEnter:Ee.func,onEntered:Ee.func,onEntering:Ee.func,onExit:Ee.func,onExited:Ee.func,onExiting:Ee.func,orientation:Ee.oneOf(["horizontal","vertical"]),style:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timeout:Ee.oneOfType([Ee.oneOf(["auto"]),Ee.number,Ee.shape({appear:Ee.number,enter:Ee.number,exit:Ee.number})])}),BD.muiSupportAuto=!0;var kD=BD,LD=go(fx,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.depth,r=e.config,o=e.theme,i=1!==n,a=n>2,s={root:{color:"light"===o.palette.mode?o.palette.primary.main:o.palette.primary.light,backgroundColor:yr(o.palette.primary.main,.08),"&:hover":{backgroundColor:yr(o.palette.primary.main,.16)}},sub:{color:o.palette.text.primary,backgroundColor:"transparent","&:hover":{backgroundColor:o.palette.action.hover}}};return Z(Z(Z({padding:r.itemPadding,marginBottom:r.itemGap,borderRadius:r.itemRadius,minHeight:r.itemRootHeight,color:o.palette.text.secondary},t&&Z({},s.root)),i&&Z({minHeight:r.itemSubHeight},t&&Z({},s.sub))),a&&{paddingLeft:o.spacing(n)})})),ID=go(xu)((function(e){var t=e.size;return{width:t,height:t,alignItems:"center",justifyContent:"center"}})),SD=go("span")((function(e){var t=e.active,n=e.theme;return Z({width:4,height:4,borderRadius:"50%",backgroundColor:n.palette.text.disabled,transition:n.transitions.create(["transform"],{duration:n.transitions.duration.shorter})},t&&{transform:"scale(2)",backgroundColor:n.palette.primary.main})})),WD=go(Zu)((function(e){var t=e.config,n=e.theme;return Z(Z({},n.typography.overline),{fontSize:11,cursor:"pointer",display:"inline-flex",padding:t.itemPadding,paddingTop:n.spacing(2),marginBottom:t.itemGap,paddingBottom:n.spacing(1),color:n.palette.text.disabled,transition:n.transitions.create(["color"],{duration:n.transitions.duration.shortest}),"&:hover":{color:n.palette.text.primary}})}));function HD(e){var t=e.item,n=e.open,r=e.depth,o=e.active,i=e.config,a=e.externalLink,s=G(e,["item","open","depth","active","config","externalLink"]),l=t.title,c=t.path,u=t.icon,d=t.info,p=t.children,f=t.disabled,m=t.caption,h=t.roles,g=1!==r,v=Y.jsxs(LD,Z({disableGutters:!0,disabled:f,active:o,depth:r,config:i},s,{children:[Y.jsxs(Y.Fragment,{children:[u&&Y.jsx(ID,{size:i.iconSize,children:u}),g&&Y.jsx(ID,{size:i.iconSize,children:Y.jsx(SD,{active:o})})]}),!(i.hiddenLabel&&!g)&&Y.jsx(Lu,{primary:l,secondary:m?Y.jsx(yc,{title:m,placement:"top-start",children:Y.jsx("span",{children:m})}):null,primaryTypographyProps:{noWrap:!0,typography:"body2",textTransform:"capitalize",fontWeight:o?"fontWeightSemiBold":"fontWeightMedium"},secondaryTypographyProps:{noWrap:!0,component:"span",typography:"caption",color:"text.disabled"}}),d&&Y.jsx(wo,{component:"span",sx:{ml:1,lineHeight:0},children:d}),!!p&&Y.jsx(jo,{width:16,icon:n?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]}));return h&&!h.includes("".concat(i.currentRole))?null:a?Y.jsx(gD,{href:c,target:"_blank",rel:"noopener",underline:"none",color:"inherit",sx:Z({},f&&{cursor:"default"}),children:v}):p?v:Y.jsx(gD,{component:vD,href:c,underline:"none",color:"inherit",sx:Z({},f&&{cursor:"default"}),children:v})}function RD(t){var n,r=t.data,o=t.depth,i=t.hasChild,a=t.config;JC();var s=xD(r.path,i),l=null===(n=r.path)||void 0===n?void 0:n.includes("http"),c=e.useState(s),u=c[0],d=c[1];e.useEffect((function(){s||f()}),[]);var p=e.useCallback((function(){d((function(e){return!e}))}),[]),f=e.useCallback((function(){d(!1)}),[]);return Y.jsxs(Y.Fragment,{children:[Y.jsx(HD,{item:r,depth:o,open:u,active:s,externalLink:l,onClick:p,config:a}),i&&Y.jsx(kD,{in:u,unmountOnExit:!0,children:Y.jsx(FD,{data:r.children,depth:o,config:a})})]})}function FD(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(RD,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var VD=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(ms,Z({sx:r},o,{children:t.map((function(e,t){return Y.jsx(QD,{subheader:e.subheader,items:e.items,config:aD(n)},e.subheader||t)}))}))}));function QD(t){var n=t.subheader,r=t.items,o=t.config,i=e.useState(!0),a=i[0],s=i[1],l=e.useCallback((function(){s((function(e){return!e}))}),[]),c=r.map((function(e){return Y.jsx(RD,{data:e,depth:1,hasChild:!!e.children,config:o},e.title+e.path)}));return Y.jsx(Nf,{disablePadding:!0,sx:{px:2},children:n?Y.jsxs(Y.Fragment,{children:[Y.jsx(WD,{disableGutters:!0,disableSticky:!0,onClick:l,config:o,children:n}),Y.jsx(kD,{in:a,children:c})]}):c})}function XD(t){var n=t.openNav,r=t.onCloseNav,o=t.Logo,i=JC(),a=Za("up","lg"),s=Cg();e.useEffect((function(){n&&r()}),[i]);var l=Y.jsxs(og,{sx:{height:1,"& .simplebar-content":{height:1,display:"flex",flexDirection:"column"}},children:[o&&Y.jsx(o,{sx:{mt:3,ml:4,mb:1}}),Y.jsx(VD,{data:s,config:{currentRole:"admin"}}),Y.jsx(wo,{sx:{flexGrow:1}})]});return Y.jsxs(wo,{component:"nav",sx:{flexShrink:{lg:0},width:{lg:xz.W_VERTICAL}},children:[Y.jsx(MD,{}),a?Y.jsx(ms,{sx:{height:1,position:"fixed",width:xz.W_VERTICAL,borderRight:function(e){return"dashed 1px ".concat(e.palette.divider)}},children:l}):Y.jsx(sa,{open:n,onClose:r,PaperProps:{sx:{width:xz.W_VERTICAL}},children:l})]})}var YD=go(fx,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.open,r=e.depth,o=e.config,i=e.theme,a=1!==r,s={color:i.palette.text.primary,backgroundColor:i.palette.action.selected};return Z(Z(Z({flexShrink:0,padding:o.itemPadding,marginRight:o.itemGap,borderRadius:o.itemRadius,minHeight:o.itemRootHeight,color:i.palette.text.secondary},t&&Z({},s)),a&&{margin:0,padding:i.spacing(0,1),minHeight:o.itemSubHeight}),n&&!t&&{color:i.palette.text.primary,backgroundColor:i.palette.action.hover})})),ZD=go(xu)((function(e){var t=e.size;return{width:t,height:t,flexShrink:0,marginRight:0}})),GD=e.forwardRef((function(e,t){var n=e.item,r=e.depth,o=e.open,i=e.active,a=e.externalLink,s=e.config,l=G(e,["item","depth","open","active","externalLink","config"]),c=n.title,u=n.path,d=n.icon,p=n.info,f=n.children,m=n.disabled,h=n.caption,g=n.roles,v=1!==r,A=Y.jsxs(YD,Z({disableGutters:!0,ref:t,open:o,depth:r,active:i,disabled:m,config:s},l,{children:[d&&Y.jsx(ZD,{size:s.iconSize,children:d}),!(s.hiddenLabel&&!v)&&Y.jsx(Lu,{sx:Z({},!v&&{ml:1}),primary:c,primaryTypographyProps:Z({noWrap:!0,typography:"body2",textTransform:"capitalize",fontWeight:i?"fontWeightBold":"fontWeightMedium"},v&&{fontWeight:i?"fontWeightSemiBold":"fontWeightMedium"})}),p&&Y.jsx(wo,{component:"span",sx:{ml:.5,lineHeight:0},children:p}),h&&Y.jsx(yc,{title:h,arrow:!0,children:Y.jsx(jo,{width:16,icon:"eva:info-outline",sx:{ml:.5,color:"text.disabled"}})}),!!f&&Y.jsx(jo,{icon:v?"eva:arrow-ios-forward-fill":"eva:arrow-ios-downward-fill",width:16,sx:{flexShrink:0,ml:.5}})]}));return g&&!g.includes("".concat(s.currentRole))?null:a?Y.jsx(gD,{href:u,target:"_blank",rel:"noopener",underline:"none",sx:Z({},m&&{cursor:"default"}),children:A}):Y.jsx(gD,{component:vD,href:u,underline:"none",sx:Z({},m&&{cursor:"default"}),children:A})}));function UD(t){var n,r,o=t.data,i=t.depth,a=t.hasChild,s=t.config,l=e.useRef(null),c=JC(),u=xD(o.path,a),d=null===(r=o.path)||void 0===r?void 0:r.includes("http"),p=e.useState(!1),f=p[0],m=p[1];e.useEffect((function(){f&&g()}),[c]),e.useEffect((function(){var e=Array.from(document.querySelectorAll(".".concat(Oz.root))),t=function(){document.body.style.overflow="",document.body.style.padding="",e.forEach((function(e){e.style.padding=""}))};t()}),[f]);var h=function(){m(!0)},g=function(){m(!1)};return Y.jsxs(Y.Fragment,{children:[Y.jsx(GD,{ref:l,item:o,depth:i,open:f,active:u,externalLink:d,onMouseEnter:h,onMouseLeave:g,config:s}),a&&Y.jsx(Jf,{open:f,anchorEl:l.current,anchorOrigin:1===i?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:1===i?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:h,onMouseLeave:g},sx:(n={pointerEvents:"none"},n["& .".concat(Rf.paper)]=Z({width:160},f&&{pointerEvents:"auto"}),n),children:Y.jsx(qD,{data:o.children,depth:i,config:s})})]})}function qD(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(ms,{spacing:.5,children:t.map((function(e){return Y.jsx(UD,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var KD=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(ms,Z({direction:"row",sx:Z(Z({mx:"auto"},Zd.y),r)},o,{children:t.map((function(e,t){return Y.jsx(JD,{items:e.items,config:lD(n)},e.subheader||t)}))}))}));function JD(e){var t=e.items,n=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(UD,{data:e,depth:1,hasChild:!!e.children,config:n},e.title+e.path)}))})}function _D(e){var t=e.sx,n=G(e,["sx"]);return Y.jsx(wo,Z({sx:Z({left:0,right:0,bottom:0,m:"auto",height:24,zIndex:-1,opacity:.48,borderRadius:"50%",position:"absolute",width:"calc(100% - 48px)",boxShadow:function(e){return e.customShadows.z8}},t)},n))}var $D=e.memo((function(){var e=po(),t=Cg();return Y.jsxs(Pz,{component:"nav",sx:{top:bz.H_DESKTOP_OFFSET},children:[Y.jsx(Lz,{sx:Z({},Yd({color:e.palette.background.default})),children:Y.jsx(KD,{data:t,config:{currentRole:"admin"}})}),Y.jsx(_D,{})]})}));function eT(t){var n=t.children,r=t.Logo,o=Za("up","lg"),i=e.useContext(Og),a=yz(),s="horizontal"===i.themeLayout,l="mini"===i.themeLayout,c=Y.jsx(zD,{Logo:r}),u=Y.jsx($D,{}),d=Y.jsx(XD,{openNav:a.value,onCloseNav:a.onFalse,Logo:r});return s?Y.jsxs(Y.Fragment,{children:[Y.jsx(iD,{onOpenNav:a.onTrue,Logo:r}),o?u:d,Y.jsx(jz,{children:n})]}):l?Y.jsxs(Y.Fragment,{children:[Y.jsx(iD,{onOpenNav:a.onTrue,Logo:r}),Y.jsxs(wo,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[o?c:d,Y.jsx(jz,{children:n})]})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(iD,{onOpenNav:a.onTrue,Logo:r}),Y.jsxs(wo,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[d,Y.jsx(jz,{children:n})]})]})}var tT=function(){this.__data__=[],this.size=0};var nT=function(e,t){return e===t||e!=e&&t!=t},rT=nT;var oT=function(e,t){for(var n=e.length;n--;)if(rT(e[n][0],t))return n;return-1},iT=oT,aT=Array.prototype.splice;var sT=oT;var lT=oT;var cT=oT;var uT=tT,dT=function(e){var t=this.__data__,n=iT(t,e);return!(n<0)&&(n==t.length-1?t.pop():aT.call(t,n,1),--this.size,!0)},pT=function(e){var t=this.__data__,n=sT(t,e);return n<0?void 0:t[n][1]},fT=function(e){return lT(this.__data__,e)>-1},mT=function(e,t){var n=this.__data__,r=cT(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function hT(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])}}hT.prototype.clear=uT,hT.prototype.delete=dT,hT.prototype.get=pT,hT.prototype.has=fT,hT.prototype.set=mT;var gT=hT,vT=gT;var AT=function(){this.__data__=new vT,this.size=0};var yT=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var bT=function(e){return this.__data__.get(e)};var xT=function(e){return this.__data__.has(e)},wT=Oh,jT=rh;var CT,OT=function(e){if(!jT(e))return!1;var t=wT(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},MT=sh["__core-js_shared__"],zT=(CT=/[^.]+$/.exec(MT&&MT.keys&&MT.keys.IE_PROTO||""))?"Symbol(src)_1."+CT:"";var DT=function(e){return!!zT&&zT in e},TT=Function.prototype.toString;var PT=OT,NT=DT,ET=rh,BT=function(e){if(null!=e){try{return TT.call(e)}catch(e){}try{return e+""}catch(e){}}return""},kT=/^\[object .+?Constructor\]$/,LT=Function.prototype,IT=Object.prototype,ST=LT.toString,WT=IT.hasOwnProperty,HT=RegExp("^"+ST.call(WT).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var RT=function(e){return!(!ET(e)||NT(e))&&(PT(e)?HT:kT).test(BT(e))},FT=function(e,t){return null==e?void 0:e[t]};var VT=function(e,t){var n=FT(e,t);return RT(n)?n:void 0},QT=VT(sh,"Map"),XT=VT(Object,"create"),YT=XT;var ZT=function(){this.__data__=YT?YT(null):{},this.size=0};var GT=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},UT=XT,qT=Object.prototype.hasOwnProperty;var KT=function(e){var t=this.__data__;if(UT){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return qT.call(t,e)?t[e]:void 0},JT=XT,_T=Object.prototype.hasOwnProperty;var $T=XT;var eP=ZT,tP=GT,nP=KT,rP=function(e){var t=this.__data__;return JT?void 0!==t[e]:_T.call(t,e)},oP=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$T&&void 0===t?"__lodash_hash_undefined__":t,this};function iP(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])}}iP.prototype.clear=eP,iP.prototype.delete=tP,iP.prototype.get=nP,iP.prototype.has=rP,iP.prototype.set=oP;var aP=iP,sP=gT,lP=QT;var cP=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var uP=function(e,t){var n=e.__data__;return cP(t)?n["string"==typeof t?"string":"hash"]:n.map},dP=uP;var pP=function(e){var t=dP(this,e).delete(e);return this.size-=t?1:0,t},fP=uP;var mP=uP;var hP=uP;var gP=function(){this.size=0,this.__data__={hash:new aP,map:new(lP||sP),string:new aP}},vP=pP,AP=function(e){return fP(this,e).get(e)},yP=function(e){return mP(this,e).has(e)},bP=function(e,t){var n=hP(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function xP(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])}}xP.prototype.clear=gP,xP.prototype.delete=vP,xP.prototype.get=AP,xP.prototype.has=yP,xP.prototype.set=bP;var wP=gT,jP=QT,CP=xP;var OP=gT,MP=AT,zP=yT,DP=bT,TP=xT,PP=function(e,t){var n=this.__data__;if(n instanceof wP){var r=n.__data__;if(!jP||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new CP(r)}return n.set(e,t),this.size=n.size,this};function NP(e){var t=this.__data__=new OP(e);this.size=t.size}NP.prototype.clear=MP,NP.prototype.delete=zP,NP.prototype.get=DP,NP.prototype.has=TP,NP.prototype.set=PP;var EP=NP,BP=VT,kP=function(){try{var e=BP(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),LP=kP;var IP=function(e,t,n){"__proto__"==t&&LP?LP(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},SP=IP,WP=nT;var HP=function(e,t,n){(void 0!==n&&!WP(e[t],n)||void 0===n&&!(t in e))&&SP(e,t,n)};var RP=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}(),FP={exports:{}};!function(e,t){var n=sh,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(FP,FP.exports);var VP=FP.exports,QP=sh.Uint8Array;var XP=function(e){var t=new e.constructor(e.byteLength);return new QP(t).set(new QP(e)),t},YP=XP;var ZP=function(e,t){var n=t?YP(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var GP=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},UP=rh,qP=Object.create,KP=function(){function e(){}return function(t){if(!UP(t))return{};if(qP)return qP(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),JP=KP;var _P=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),$P=Object.prototype;var eN=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$P)},tN=JP,nN=_P,rN=eN;var oN=function(e){return"function"!=typeof e.constructor||rN(e)?{}:tN(nN(e))},iN=Oh,aN=Mh;var sN=function(e){return aN(e)&&"[object Arguments]"==iN(e)},lN=Mh,cN=Object.prototype,uN=cN.hasOwnProperty,dN=cN.propertyIsEnumerable,pN=sN(function(){return arguments}())?sN:function(e){return lN(e)&&uN.call(e,"callee")&&!dN.call(e,"callee")},fN=Array.isArray;var mN=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},hN=OT,gN=mN;var vN=function(e){return null!=e&&gN(e.length)&&!hN(e)},AN=vN,yN=Mh;var bN=function(e){return yN(e)&&AN(e)},xN={exports:{}};var wN=function(){return!1};!function(e,t){var n=sh,r=wN,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(xN,xN.exports);var jN=xN.exports,CN=Oh,ON=_P,MN=Mh,zN=Function.prototype,DN=Object.prototype,TN=zN.toString,PN=DN.hasOwnProperty,NN=TN.call(Object);var EN=function(e){if(!MN(e)||"[object Object]"!=CN(e))return!1;var t=ON(e);if(null===t)return!0;var n=PN.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&TN.call(n)==NN},BN=Oh,kN=mN,LN=Mh,IN={};IN["[object Float32Array]"]=IN["[object Float64Array]"]=IN["[object Int8Array]"]=IN["[object Int16Array]"]=IN["[object Int32Array]"]=IN["[object Uint8Array]"]=IN["[object Uint8ClampedArray]"]=IN["[object Uint16Array]"]=IN["[object Uint32Array]"]=!0,IN["[object Arguments]"]=IN["[object Array]"]=IN["[object ArrayBuffer]"]=IN["[object Boolean]"]=IN["[object DataView]"]=IN["[object Date]"]=IN["[object Error]"]=IN["[object Function]"]=IN["[object Map]"]=IN["[object Number]"]=IN["[object Object]"]=IN["[object RegExp]"]=IN["[object Set]"]=IN["[object String]"]=IN["[object WeakMap]"]=!1;var SN=function(e){return LN(e)&&kN(e.length)&&!!IN[BN(e)]};var WN=function(e){return function(t){return e(t)}},HN={exports:{}};!function(e,t){var n=oh,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(HN,HN.exports);var RN=HN.exports,FN=SN,VN=WN,QN=RN&&RN.isTypedArray,XN=QN?VN(QN):FN;var YN=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},ZN=IP,GN=nT,UN=Object.prototype.hasOwnProperty;var qN=function(e,t,n){var r=e[t];UN.call(e,t)&&GN(r,n)&&(void 0!==n||t in e)||ZN(e,t,n)},KN=IP;var JN=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?KN(n,s,l):qN(n,s,l)}return n};var _N=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},$N=/^(?:0|[1-9]\d*)$/;var eE=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&$N.test(e))&&e>-1&&e%1==0&&e<t},tE=_N,nE=pN,rE=fN,oE=jN,iE=eE,aE=XN,sE=Object.prototype.hasOwnProperty;var lE=function(e,t){var n=rE(e),r=!n&&nE(e),o=!n&&!r&&oE(e),i=!n&&!r&&!o&&aE(e),a=n||r||o||i,s=a?tE(e.length,String):[],l=s.length;for(var c in e)!t&&!sE.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||iE(c,l))||s.push(c);return s};var cE=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},uE=rh,dE=eN,pE=cE,fE=Object.prototype.hasOwnProperty;var mE=function(e){if(!uE(e))return pE(e);var t=dE(e),n=[];for(var r in e)("constructor"!=r||!t&&fE.call(e,r))&&n.push(r);return n},hE=lE,gE=mE,vE=vN;var AE=function(e){return vE(e)?hE(e,!0):gE(e)},yE=JN,bE=AE;var xE=HP,wE=VP,jE=ZP,CE=GP,OE=oN,ME=pN,zE=fN,DE=bN,TE=jN,PE=OT,NE=rh,EE=EN,BE=XN,kE=YN,LE=function(e){return yE(e,bE(e))};var IE=EP,SE=HP,WE=RP,HE=function(e,t,n,r,o,i,a){var s=kE(e,n),l=kE(t,n),c=a.get(l);if(c)xE(e,n,c);else{var u=i?i(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var p=zE(l),f=!p&&TE(l),m=!p&&!f&&BE(l);u=l,p||f||m?zE(s)?u=s:DE(s)?u=CE(s):f?(d=!1,u=wE(l,!0)):m?(d=!1,u=jE(l,!0)):u=[]:EE(l)||ME(l)?(u=s,ME(s)?u=LE(s):NE(s)&&!PE(s)||(u=OE(l))):d=!1}d&&(a.set(l,u),o(u,l,r,i,a),a.delete(l)),xE(e,n,u)}},RE=rh,FE=AE,VE=YN;var QE=function e(t,n,r,o,i){t!==n&&WE(n,(function(a,s){if(i||(i=new IE),RE(a))HE(t,n,s,r,e,o,i);else{var l=o?o(VE(t,s),a,s+"",t,n,i):void 0;void 0===l&&(l=a),SE(t,s,l)}}),FE)};var XE=function(e){return e};var YE=function(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)},ZE=YE,GE=Math.max;var UE=function(e,t,n){return t=GE(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=GE(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),ZE(e,this,s)}};var qE=function(e){return function(){return e}},KE=kP,JE=KE?function(e,t){return KE(e,"toString",{configurable:!0,enumerable:!1,value:qE(t),writable:!0})}:XE,_E=Date.now;var $E=function(e){var t=0,n=0;return function(){var r=_E(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(JE),eB=XE,tB=UE,nB=$E;var rB=function(e,t){return nB(tB(e,t,eB),e+"")},oB=nT,iB=vN,aB=eE,sB=rh;var lB=rB,cB=function(e,t,n){if(!sB(n))return!1;var r=typeof t;return!!("number"==r?iB(n)&&aB(t,n.length):"string"==r&&t in n)&&oB(n[t],e)};var uB=QE,dB=W(function(e){return lB((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&cB(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t}))}((function(e,t,n){uB(e,t,n)})));const pB=(e,t)=>re({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),fB=e=>re({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),mB=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,n])=>{var o;r[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(o=n.palette)?void 0:o.mode}}));let o=re({html:pB(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:re({margin:0},fB(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function hB(e){const t=fo({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return Y.jsxs(k.Fragment,{children:[Y.jsx(rd,{styles:e=>mB(e,r)}),n]})}"production"!==process.env.NODE_ENV&&(hB.propTypes={children:Ee.node,enableColorScheme:Ee.bool});var gB={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},vB={lighter:"#C8FAD6",light:"#5BE49B",main:"#00A76F",dark:"#007867",darker:"#004B50",contrastText:"#FFFFFF"},AB={lighter:"#EFD6FF",light:"#C684FF",main:"#8E33FF",dark:"#5119B7",darker:"#27097A",contrastText:"#FFFFFF"},yB={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#FFFFFF"},bB={lighter:"#D3FCD2",light:"#77ED8B",main:"#22C55E",dark:"#118D57",darker:"#065E49",contrastText:"#ffffff"},xB={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:gB[800]},wB={lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#FFFFFF"},jB=function(e){return{common:{black:"#000000",white:"#FFFFFF"},primary:null!=e?e:vB,secondary:AB,info:yB,success:bB,warning:xB,error:wB,grey:gB,divider:yr(gB[500],.2),action:{hover:yr(gB[500],.08),selected:yr(gB[500],.16),disabled:yr(gB[500],.8),disabledBackground:yr(gB[500],.24),focus:yr(gB[500],.24),hoverOpacity:.08,disabledOpacity:.48}}};function CB(e,t){var n=Z(Z({},jB(t)),{mode:"light",text:{primary:gB[800],secondary:gB[600],disabled:gB[500]},background:{paper:"#FFFFFF",default:"#FFFFFF",neutral:gB[200]},action:Z(Z({},jB().action),{active:gB[600]})}),r=Z(Z({},jB(t)),{mode:"dark",text:{primary:"#FFFFFF",secondary:gB[500],disabled:gB[600]},background:{paper:gB[800],default:gB[900],neutral:yr(gB[500],.12)},action:Z(Z({},jB().action),{active:gB[500]})});return"light"===e?n:r}var OB=CB("light"),MB=OB.grey[500],zB=OB.common.black;function DB(e){var t=yr(e,.2),n=yr(e,.14),r=yr(e,.12);return["none","0px 2px 1px -1px ".concat(t,",0px 1px 1px 0px ").concat(n,",0px 1px 3px 0px ").concat(r),"0px 3px 1px -2px ".concat(t,",0px 2px 2px 0px ").concat(n,",0px 1px 5px 0px ").concat(r),"0px 3px 3px -2px ".concat(t,",0px 3px 4px 0px ").concat(n,",0px 1px 8px 0px ").concat(r),"0px 2px 4px -1px ".concat(t,",0px 4px 5px 0px ").concat(n,",0px 1px 10px 0px ").concat(r),"0px 3px 5px -1px ".concat(t,",0px 5px 8px 0px ").concat(n,",0px 1px 14px 0px ").concat(r),"0px 3px 5px -1px ".concat(t,",0px 6px 10px 0px ").concat(n,",0px 1px 18px 0px ").concat(r),"0px 4px 5px -2px ".concat(t,",0px 7px 10px 1px ").concat(n,",0px 2px 16px 1px ").concat(r),"0px 5px 5px -3px ".concat(t,",0px 8px 10px 1px ").concat(n,",0px 3px 14px 2px ").concat(r),"0px 5px 6px -3px ".concat(t,",0px 9px 12px 1px ").concat(n,",0px 3px 16px 2px ").concat(r),"0px 6px 6px -3px ".concat(t,",0px 10px 14px 1px ").concat(n,",0px 4px 18px 3px ").concat(r),"0px 6px 7px -4px ".concat(t,",0px 11px 15px 1px ").concat(n,",0px 4px 20px 3px ").concat(r),"0px 7px 8px -4px ".concat(t,",0px 12px 17px 2px ").concat(n,",0px 5px 22px 4px ").concat(r),"0px 7px 8px -4px ".concat(t,",0px 13px 19px 2px ").concat(n,",0px 5px 24px 4px ").concat(r),"0px 7px 9px -4px ".concat(t,",0px 14px 21px 2px ").concat(n,",0px 5px 26px 4px ").concat(r),"0px 8px 9px -5px ".concat(t,",0px 15px 22px 2px ").concat(n,",0px 6px 28px 5px ").concat(r),"0px 8px 10px -5px ".concat(t,",0px 16px 24px 2px ").concat(n,",0px 6px 30px 5px ").concat(r),"0px 8px 11px -5px ".concat(t,",0px 17px 26px 2px ").concat(n,",0px 6px 32px 5px ").concat(r),"0px 9px 11px -5px ".concat(t,",0px 18px 28px 2px ").concat(n,",0px 7px 34px 6px ").concat(r),"0px 9px 12px -6px ".concat(t,",0px 19px 29px 2px ").concat(n,",0px 7px 36px 6px ").concat(r),"0px 10px 13px -6px ".concat(t,",0px 20px 31px 3px ").concat(n,",0px 8px 38px 7px ").concat(r),"0px 10px 13px -6px ".concat(t,",0px 21px 33px 3px ").concat(n,",0px 8px 40px 7px ").concat(r),"0px 10px 14px -6px ".concat(t,",0px 22px 35px 3px ").concat(n,",0px 8px 42px 7px ").concat(r),"0px 11px 14px -7px ".concat(t,",0px 23px 36px 3px ").concat(n,",0px 9px 44px 8px ").concat(r),"0px 11px 15px -7px ".concat(t,",0px 24px 38px 3px ").concat(n,",0px 9px 46px 8px ").concat(r)]}function TB(e){return DB("light"===e?MB:zB)}function PB(e){return"".concat(e/16,"rem")}function NB(e){var t=e.sm,n=e.md,r=e.lg;return{"@media (min-width:600px)":{fontSize:PB(t)},"@media (min-width:900px)":{fontSize:PB(n)},"@media (min-width:1200px)":{fontSize:PB(r)}}}var EB={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,h1:Z({fontWeight:800,lineHeight:1.25,fontSize:PB(40)},NB({sm:52,md:58,lg:64})),h2:Z({fontWeight:800,lineHeight:64/48,fontSize:PB(32)},NB({sm:40,md:44,lg:48})),h3:Z({fontWeight:700,lineHeight:1.5,fontSize:PB(24)},NB({sm:26,md:30,lg:32})),h4:Z({fontWeight:700,lineHeight:1.5,fontSize:PB(20)},NB({sm:20,md:24,lg:24})),h5:Z({fontWeight:700,lineHeight:1.5,fontSize:PB(18)},NB({sm:19,md:20,lg:20})),h6:Z({fontWeight:700,lineHeight:28/18,fontSize:PB(17)},NB({sm:18,md:18,lg:18})),subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:PB(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:PB(14)},body1:{lineHeight:1.5,fontSize:PB(16)},body2:{lineHeight:22/14,fontSize:PB(14)},caption:{lineHeight:1.5,fontSize:PB(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:PB(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:PB(14),textTransform:"unset"}};function BB(e,t){var n=CB("light",t);n.grey[500],n.common.black;var r=yr(e,.16);return{z1:"0 1px 2px 0 ".concat(r),z4:"0 4px 8px 0 ".concat(r),z8:"0 8px 16px 0 ".concat(r),z12:"0 12px 24px -4px ".concat(r),z16:"0 16px 32px -4px ".concat(r),z20:"0 20px 40px -4px ".concat(r),z24:"0 24px 48px 0 ".concat(r),card:"0 0 2px 0 ".concat(yr(e,.2),", 0 12px 24px -4px ").concat(yr(e,.12)),dropdown:"0 0 2px 0 ".concat(yr(e,.24),", -20px 20px 40px -4px ").concat(yr(e,.24)),dialog:"-40px 40px 80px -8px ".concat(yr(n.common.black,.24)),primary:"0 8px 16px 0 ".concat(yr(n.primary.main,.24)),info:"0 8px 16px 0 ".concat(yr(n.info.main,.24)),secondary:"0 8px 16px 0 ".concat(yr(n.secondary.main,.24)),success:"0 8px 16px 0 ".concat(yr(n.success.main,.24)),warning:"0 8px 16px 0 ".concat(yr(n.warning.main,.24)),error:"0 8px 16px 0 ".concat(yr(n.error.main,.24))}}function kB(e,t){var n=CB("light"),r=n.grey[500],o=n.common.black;return BB("light"===e?r:o,t)}var LB=St("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),IB=["primary","secondary","info","success","warning","error"];function SB(e){var t="light"===e.palette.mode;return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:function(n){return function(n){var r,o="default"===n.color,i="inherit"===n.color,a="circular"===n.variant,s="extended"===n.variant,l="outlined"===n.variant,c="outlinedExtended"===n.variant,u="soft"===n.variant,d="softExtended"===n.variant,p=Z(Z(Z({"&:hover, &:active":{boxShadow:"none"}},(a||s)&&Z(Z({},(o||i)&&{boxShadow:e.customShadows.z8}),i&&{backgroundColor:e.palette.text.primary,color:t?e.palette.common.white:e.palette.grey[800],"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[400]}})),(l||c)&&Z(Z(Z({boxShadow:"none",backgroundColor:"transparent"},(o||i)&&{border:"solid 1px ".concat(yr(e.palette.grey[500],.32))}),o&&Z({},!t&&{color:e.palette.text.secondary})),{"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor",backgroundColor:e.palette.action.hover}})),(u||d)&&Z(Z({boxShadow:"none"},o&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}}),i&&{backgroundColor:yr(e.palette.grey[500],.08),"&:hover":{backgroundColor:yr(e.palette.grey[500],.24)}})),f=IB.map((function(r){return Z({},n.color===r&&Z(Z(Z({},(a||s)&&{boxShadow:e.customShadows[r],"&:hover":{backgroundColor:e.palette[r].dark}}),(l||c)&&{color:e.palette[r].main,border:"solid 1px ".concat(yr(e.palette[r].main,.48)),"&:hover":{backgroundColor:yr(e.palette[r].main,.08)}}),(u||d)&&{color:e.palette[r][t?"dark":"light"],backgroundColor:yr(e.palette[r].main,.16),"&:hover":{backgroundColor:yr(e.palette[r].main,.32)}}))})),m=((r={})["&.".concat(LB.disabled)]=Z({},(l||c)&&{backgroundColor:"transparent",border:"solid 1px ".concat(e.palette.action.disabledBackground)}),r),h=Z({},(s||c||d)&&Z(Z(Z({width:"auto","& svg":{marginRight:e.spacing(1)}},"small"===n.size&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)}),"medium"===n.size&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)}),"large"===n.size&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}));return K(K([p],f,!0),[m,h],!1)}(n.ownerState)}}}}}var WB=["primary","secondary","info","success","warning","error"];function HB(e){var t="light"===e.palette.mode;return{MuiChip:{defaultProps:{deleteIcon:Y.jsx(jo,{icon:"solar:close-circle-bold"})},styleOverrides:{root:function(n){return function(n){var r,o,i,a,s,l="default"===n.color,c="filled"===n.variant,u="outlined"===n.variant,d="soft"===n.variant,p=Z(((r={})["& .".concat(qu.deleteIcon)]={opacity:.48,color:"currentColor","&:hover":{opacity:1,color:"currentColor"}},r),l&&Z(Z(Z(((o={})["& .".concat(qu.avatar)]={color:e.palette.text.primary},o),c&&((i={color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[100]}})["& .".concat(qu.icon)]={color:t?e.palette.common.white:e.palette.grey[800]},i)),u&&{border:"solid 1px ".concat(yr(e.palette.grey[500],.32))}),d&&{color:e.palette.text.primary,backgroundColor:yr(e.palette.grey[500],.16),"&:hover":{backgroundColor:yr(e.palette.grey[500],.32)}})),f=WB.map((function(r){var o;return Z({},n.color===r&&Z(((o={})["& .".concat(qu.avatar)]={color:e.palette[r].lighter,backgroundColor:e.palette[r].dark},o),d&&{color:e.palette[r][t?"dark":"light"],backgroundColor:yr(e.palette[r].main,.16),"&:hover":{backgroundColor:yr(e.palette[r].main,.32)}}))})),m=((a={})["&.".concat(qu.disabled)]=Z(Z(Z(((s={opacity:1,color:e.palette.action.disabled})["& .".concat(qu.icon)]={color:e.palette.action.disabled},s["& .".concat(qu.avatar)]={color:e.palette.action.disabled,backgroundColor:e.palette.action.disabledBackground},s),c&&{backgroundColor:e.palette.action.disabledBackground}),u&&{borderColor:e.palette.action.disabledBackground}),d&&{backgroundColor:e.palette.action.disabledBackground}),a);return K(K([p],f,!0),[m,{fontWeight:500,borderRadius:e.shape.borderRadius}],!1)}(n.ownerState)}}}}}var RB=St("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var FB=St("MuiTableRow",["root","selected","hover","head","footer"]);var VB=St("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),QB=["info","success","warning","error"];function XB(e){var t="light"===e.palette.mode;return{MuiAlert:{defaultProps:{iconMapping:{error:Y.jsx(jo,{icon:"solar:danger-bold",width:24}),info:Y.jsx(jo,{icon:"eva:info-fill",width:24}),success:Y.jsx(jo,{icon:"eva:checkmark-circle-2-fill",width:24}),warning:Y.jsx(jo,{icon:"eva:alert-triangle-fill",width:24})}},styleOverrides:{root:function(n){return function(n){var r="standard"===n.variant,o="filled"===n.variant,i="outlined"===n.variant,a=QB.map((function(a){var s,l;return Z({},n.severity===a&&Z(Z(Z({},r&&((s={color:e.palette[a][t?"darker":"lighter"],backgroundColor:e.palette[a][t?"lighter":"darker"]})["& .".concat(VB.icon)]={color:e.palette[a][t?"main":"light"]},s)),o&&{color:e.palette[a].contrastText,backgroundColor:e.palette[a].main}),i&&((l={backgroundColor:yr(e.palette[a].main,.08),color:e.palette[a][t?"dark":"light"],border:"solid 1px ".concat(yr(e.palette[a].main,.16))})["& .".concat(VB.icon)]={color:e.palette[a].main},l)))}));return K([],a,!0)}(n.ownerState)},icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5),fontWeight:e.typography.fontWeightSemiBold}}}}}var YB=St("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);var ZB=St("MuiAvatarGroup",["root","avatar"]),GB=["default","primary","secondary","info","success","warning","error"],UB=function(e){var t=e.charAt(0);return["A","C","F"].includes(t)?"primary":["E","D","H"].includes(t)?"secondary":["I","K","L"].includes(t)?"info":["M","N","P"].includes(t)?"success":["Q","S","T"].includes(t)?"warning":["V","X","Y"].includes(t)?"error":"default"};var qB=St("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),KB=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})}))};var JB=St("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var _B=St("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);function $B(e){var t="light"===e.palette.mode;return{MuiSwitch:{styleOverrides:{root:function(n){return function(n){var r,o,i,a;return Z(Z({padding:"9px 13px 9px 12px",width:58,height:38},"small"===n.size&&{padding:"4px 8px 4px 7px",width:40,height:24}),((r={})["& .".concat(_B.thumb)]=Z({width:14,height:14,boxShadow:"none",color:e.palette.common.white},"small"===n.size&&{width:10,height:10}),r["& .".concat(_B.track)]={opacity:1,borderRadius:14,backgroundColor:yr(e.palette.grey[500],.48)},r["& .".concat(_B.switchBase)]=Z(Z({left:3,padding:12},"small"===n.size&&{padding:7}),((o={})["&.".concat(_B.checked)]=Z(((i={transform:"translateX(13px)"})["&+.".concat(_B.track)]={opacity:1},i),"small"===n.size&&{transform:"translateX(9px)"}),o["&.".concat(_B.disabled)]=((a={})["& .".concat(_B.thumb)]={opacity:t?1:.48},a["&+.".concat(_B.track)]={opacity:.48},a),o)),r))}(n.ownerState)}}}}}var ek=St("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),tk=["primary","secondary","info","success","warning","error"];function nk(e){return{MuiLinearProgress:{styleOverrides:{root:function(t){return function(t){var n,r="buffer"===t.variant,o=Z(((n={borderRadius:4})["& .".concat(ek.bar)]={borderRadius:4},n),r&&{backgroundColor:"transparent"}),i=tk.map((function(n){return Z({},t.color===n&&{backgroundColor:yr(e.palette[n].main,.24)})}));return K([o],i,!0)}(t.ownerState)}}}}}var rk=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})}))},ok=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})}))},ik=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})}))};var ak=St("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var sk=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})}))},lk=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})}))},ck=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})}))};var uk=St("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);var dk=St("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);var pk=St("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),fk=["primary","secondary","info","success","warning","error"];function mk(e){var t="light"===e.palette.mode;return{MuiPagination:{styleOverrides:{root:function(n){return function(n){var r,o,i="standard"===n.color,a="text"===n.variant,s="outlined"===n.variant,l="soft"===n.variant,c=((r={})["& .".concat(pk.root)]=Z(Z({},s&&{borderColor:yr(e.palette.grey[500],.24)}),((o={})["&.".concat(pk.selected)]=Z(Z({fontWeight:e.typography.fontWeightSemiBold},s&&{borderColor:"currentColor"}),i&&Z({backgroundColor:yr(e.palette.grey[500],.08)},a&&{color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[100]}})),o)),r),u=fk.map((function(r){var o,i;return Z({},n.color===r&&((o={})["& .".concat(pk.root)]=((i={})["&.".concat(pk.selected)]=Z({},n.color===r&&Z({},l&&{color:e.palette[r][t?"dark":"light"],backgroundColor:yr(e.palette[r].main,.08),"&:hover":{backgroundColor:yr(e.palette[r].main,.16)}})),i),o))}));return K([c],u,!0)}(n.ownerState)}}}}}var hk=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})}))},gk=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})}))};var vk=St("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]),Ak=["primary","secondary","info","success","warning","error"];function yk(e){return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:function(t){return function(t){var n,r,o,i="inherit"===t.color,a="contained"===t.variant,s="outlined"===t.variant,l="text"===t.variant,c="soft"===t.variant,u="horizontal"===t.orientation,d="vertical"===t.orientation,p=((n={})["& .".concat(vk.grouped)]={"&:not(:last-of-type)":Z({},!s&&Z(Z(Z({borderStyle:"solid"},i&&{borderColor:yr(e.palette.grey[500],.32)}),u&&{borderWidth:"0px 1px 0px 0px"}),d&&{borderWidth:"0px 0px 1px 0px"}))},n),f=Ak.map((function(n){var r;return(r={})["& .".concat(vk.grouped)]={"&:not(:last-of-type)":Z({},!s&&Z({},t.color===n&&Z(Z(Z({},a&&{borderColor:yr(e.palette[n].dark,.48)}),l&&{borderColor:yr(e.palette[n].main,.48)}),c&&{borderColor:yr(e.palette[n].dark,.24)})))},r})),m=((r={})["& .".concat(vk.grouped)]=((o={})["&.".concat(vk.disabled)]={"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}},o),r);return K(K([p],f,!0),[m],!1)}(t.ownerState)}}}}}var bk=function(){return Y.jsx(jo,{icon:"eva:chevron-down-fill",width:24})},xk=function(){return Y.jsx(jo,{icon:"eva:arrow-ios-back-fill",width:24})},wk=function(){return Y.jsx(jo,{icon:"eva:arrow-ios-forward-fill",width:24})},jk=function(){return Y.jsx(jo,{icon:"solar:calendar-mark-bold-duotone",width:24})},Ck=function(){return Y.jsx(jo,{icon:"solar:clock-circle-outline",width:24})},Ok=["DatePicker","DateTimePicker","StaticDatePicker","DesktopDatePicker","DesktopDateTimePicker","MobileDatePicker","MobileDateTimePicker"].reduce((function(e,t){return e["Mui".concat(t)]={defaultProps:{slots:{openPickerIcon:jk,leftArrowIcon:xk,rightArrowIcon:wk,switchViewIcon:bk}}},e}),{}),Mk=["TimePicker","MobileTimePicker","StaticTimePicker","DesktopTimePicker"].reduce((function(e,t){return e["Mui".concat(t)]={defaultProps:{slots:{openPickerIcon:Ck,rightArrowIcon:wk,switchViewIcon:bk}}},e}),{});var zk=St("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),Dk=["primary","secondary","info","success","warning","error"];function Tk(e){var t;return{MuiToggleButton:{styleOverrides:{root:function(t){return function(t){var n,r,o,i=((n={})["&.".concat(zk.selected)]={borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor"},n),a=Dk.map((function(n){return Z({},t.color===n&&{"&:hover":{borderColor:yr(e.palette[n].main,.48),backgroundColor:yr(e.palette[n].main,e.palette.action.hoverOpacity)}})})),s=((r={})["&.".concat(zk.disabled)]=((o={})["&.".concat(zk.selected)]={color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground},o),r);return K(K([i],a,!0),[s],!1)}(t.ownerState)}}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:"solid 1px ".concat(yr(e.palette.grey[500],.08))},grouped:(t={margin:4},t["&.".concat(zk.selected)]={boxShadow:"none"},t["&:not(:first-of-type), &:not(:last-of-type)"]={borderRadius:e.shape.borderRadius,borderColor:"transparent"},t)}}}}function Pk(e){var t=dB(SB(e),function(e){var t,n;return{MuiTabs:{defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{indicator:{backgroundColor:e.palette.text.primary},scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:(t={padding:0,opacity:1,minWidth:48,minHeight:48,fontWeight:e.typography.fontWeightSemiBold,"&:not(:last-of-type)":(n={marginRight:e.spacing(3)},n[e.breakpoints.up("sm")]={marginRight:e.spacing(5)},n)},t["&:not(.".concat(vv.selected,")")]={color:e.palette.text.secondary},t)}}}}(e),HB(e),function(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:2*e.shape.borderRadius,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}(e),function(e){return{MuiMenuItem:{styleOverrides:{root:Z({},Xd(e))}}}}(e),{MuiLink:{defaultProps:{underline:"hover"}}},{MuiStack:{defaultProps:{useFlexGap:!0}}},function(e){return{MuiBadge:{styleOverrides:{dot:{borderRadius:"50%"},root:function(t){var n,r,o,i,a,s,l=t.ownerState,c="alway"===l.variant,u="online"===l.variant,d="busy"===l.variant,p="offline"===l.variant,f="invisible"===l.variant,m=((n={})["&.".concat(YB.invisible)]={transform:"unset"},n.width=10,n.zIndex=9,n.padding=0,n.height=10,n.minWidth="auto",n["&:before, &:after"]={content:"''",borderRadius:1,backgroundColor:e.palette.common.white},n);return Z(Z(Z(Z(Z({},u&&((r={})["& .".concat(YB.badge)]=Z(Z({},m),{backgroundColor:e.palette.success.main}),r)),d&&((o={})["& .".concat(YB.badge)]=Z(Z({},m),{backgroundColor:e.palette.error.main,"&:before":{width:6,height:2}}),o)),p&&((i={})["& .".concat(YB.badge)]=Z(Z({},m),{backgroundColor:e.palette.text.disabled,"&:before":{width:6,height:6,borderRadius:"50%"}}),i)),c&&((a={})["& .".concat(YB.badge)]=Z(Z({},m),{backgroundColor:e.palette.warning.main,"&:before":{width:2,height:4,transform:"translateX(1px) translateY(-1px)"},"&:after":{width:2,height:4,transform:"translateY(1px) rotate(125deg)"}}),a)),f&&((s={})["& .".concat(YB.badge)]={display:"none"},s))}}}}}(e),function(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{defaultProps:{primaryTypographyProps:{typography:"subtitle2"},secondaryTypographyProps:{component:"span"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}}}}(e),function(e){var t,n;return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:(t={},t["&.".concat(FB.selected)]={backgroundColor:yr(e.palette.primary.dark,.04),"&:hover":{backgroundColor:yr(e.palette.primary.dark,.08)}},t["&:last-of-type"]=(n={},n["& .".concat(RB.root)]={borderColor:"transparent"},n),t)}},MuiTableCell:{styleOverrides:{root:{borderBottomStyle:"dashed"},head:{fontSize:14,color:e.palette.text.secondary,fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:"linear-gradient(to bottom, ".concat(e.palette.background.neutral," 0%, ").concat(e.palette.background.neutral," 100%)")},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"}},styleOverrides:{root:{width:"100%"},toolbar:{height:64},actions:{marginRight:8},select:{paddingLeft:8,"&:focus":{borderRadius:e.shape.borderRadius}},selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}}}}(e),function(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:{borderColor:yr(e.palette.grey[500],.16)}}}}}(e),XB(e),$B(e),function(e){var t=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})}))};return{MuiSelect:{defaultProps:{IconComponent:t},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},MuiNativeSelect:{defaultProps:{IconComponent:t},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}}}}(),function(e){return{MuiButton:{styleOverrides:{root:{"&:hover":{boxShadow:"none"}},sizeLarge:{height:48},containedInherit:{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},containedPrimary:{boxShadow:e.customShadows.primary},containedSecondary:{boxShadow:e.customShadows.secondary},containedInfo:{boxShadow:e.customShadows.info},containedSuccess:{boxShadow:e.customShadows.success},containedWarning:{boxShadow:e.customShadows.warning},containedError:{boxShadow:e.customShadows.error},outlinedInherit:{border:"1px solid ".concat(e.palette.grey[500]),"&:hover":{backgroundColor:e.palette.action.hover}},textInherit:{"&:hover":{backgroundColor:e.palette.action.hover}}}}}}(e),function(e){var t,n,r,o;return{MuiRating:{defaultProps:{emptyIcon:Y.jsx(KB,{}),icon:Y.jsx(KB,{})},styleOverrides:{root:(t={},t["&.".concat(qB.disabled)]={opacity:.48},t),iconEmpty:{color:yr(e.palette.grey[500],.48)},sizeSmall:(n={},n["& .".concat(Ei.root)]={width:20,height:20},n),sizeMedium:(r={},r["& .".concat(Ei.root)]={width:24,height:24},r),sizeLarge:(o={},o["& .".concat(Ei.root)]={width:28,height:28},o)}}}}(e),function(e){return{MuiDialog:{styleOverrides:{paper:function(t){var n=t.ownerState;return Z({boxShadow:e.customShadows.dialog,borderRadius:2*e.shape.borderRadius},!n.fullScreen&&{margin:e.spacing(2)})},paperFullScreen:{borderRadius:0}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{defaultProps:{disableSpacing:!0},styleOverrides:{root:{padding:e.spacing(3),"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}(e),{MuiAppBar:{defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}}},function(e){return{MuiAvatar:{variants:GB.map((function(t){return"default"===t?{props:{color:"default"},style:{color:e.palette.text.secondary,backgroundColor:yr(e.palette.grey[500],.24)}}:{props:{color:t},style:{color:e.palette[t].contrastText,backgroundColor:e.palette[t].main}}})),styleOverrides:{rounded:{borderRadius:1.5*e.shape.borderRadius},colorDefault:function(t){var n=t.ownerState,r=UB("".concat(n.alt));return Z({},!!n.alt&&Z({},"default"!==r?{color:e.palette[r].contrastText,backgroundColor:e.palette[r].main}:{color:e.palette.text.secondary,backgroundColor:yr(e.palette.grey[500],.24)}))}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:function(e){var t,n=e.ownerState;return Z({justifyContent:"flex-end"},"compact"===n.variant&&((t={width:40,height:40,position:"relative"})["& .".concat(ZB.avatar)]={margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}},t))},avatar:{fontSize:16,fontWeight:e.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:e.palette.primary.dark,backgroundColor:e.palette.primary.lighter}}}}}}(e),function(e){var t,n="light"===e.palette.mode;return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:(t={},t["&.".concat(JB.disabled)]={color:e.palette.action.disabled},t),rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[n?800:700]}}}}}(e),function(e){var t="light"===e.palette.mode;return{MuiDrawer:{styleOverrides:{root:function(n){var r,o=n.ownerState;return Z({},"temporary"===o.variant&&((r={})["& .".concat(_i.paper)]=Z(Z(Z({},Qd({theme:e})),"left"===o.anchor&&{boxShadow:"40px 40px 80px -8px ".concat(yr(t?e.palette.grey[500]:e.palette.common.black,.24))}),"right"===o.anchor&&{boxShadow:"-40px 40px 80px -8px ".concat(yr(t?e.palette.grey[500]:e.palette.common.black,.24))}),r))}}}}}(e),function(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}(e),function(e){var t="light"===e.palette.mode;return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}(e),function(e){var t;return{MuiPopover:{styleOverrides:{paper:Z(Z({},Qd({theme:e,dropdown:!0})),(t={},t["& .".concat(zf.root)]={paddingTop:0,paddingBottom:0},t))}}}}(e),{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}},function(e){return{MuiCheckbox:{defaultProps:{size:"small",icon:Y.jsx(rk,{}),checkedIcon:Y.jsx(ok,{}),indeterminateIcon:Y.jsx(ik,{})},styleOverrides:{root:{padding:e.spacing(1)}}}}}(e),function(e){var t,n,r,o,i=Qd({theme:e,dropdown:!0});return{MuiDataGrid:{styleOverrides:{root:(t={borderRadius:0,borderWidth:0},t["& .".concat(ak.root)]={borderTop:0},t["& .".concat(ak.toolbar)]={height:"auto"},t),cell:{borderBottom:"1px dashed ".concat(e.palette.divider)},selectedRowCount:{whiteSpace:"nowrap"},columnSeparator:{color:e.palette.divider},toolbarContainer:{padding:e.spacing(2),borderBottom:"1px dashed ".concat(e.palette.divider),backgroundColor:e.palette.background.neutral},paper:Z(Z({},i),{padding:0}),menu:(n={},n["& .".concat(Zi.root)]=Z({},i),n["& .".concat(zf.root)]=(r={padding:0},r["& .".concat(vu.root)]={minWidth:0,marginRight:e.spacing(2)},r),n),columnHeaders:{borderRadius:0,backgroundColor:e.palette.background.neutral},panelHeader:{padding:e.spacing(2)},panelFooter:(o={padding:e.spacing(2),justifyContent:"flex-end",borderTop:"dashed 1px ".concat(e.palette.divider)},o["& .".concat(eb.root)]={"&:first-of-type":{border:"solid 1px ".concat(yr(e.palette.grey[500],.24))},"&:last-of-type":{marginLeft:e.spacing(1.5),color:e.palette.background.paper,backgroundColor:e.palette.text.primary}},o),filterForm:{padding:e.spacing(2)},filterFormValueInput:{marginLeft:e.spacing(2)},filterFormColumnInput:{marginLeft:e.spacing(2)},filterFormOperatorInput:{marginLeft:e.spacing(2)}}}}}(e),function(e){return{MuiSkeleton:{defaultProps:{animation:"wave",variant:"rounded"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral},rounded:{borderRadius:2*e.shape.borderRadius}}}}}(e),function(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}(e),function(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:Y.jsx(sk,{}),defaultExpandIcon:Y.jsx(lk,{}),defaultEndIcon:Y.jsx(ck,{})}},MuiTreeItem:{styleOverrides:{label:Z({},e.typography.body2),iconContainer:{width:"auto"}}}}}(e),function(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:yr(e.palette.grey[900],.8)},invisible:{background:"transparent"}}}}}(e),nk(e),function(e){var t,n,r,o,i,a,s,l,c,u={focused:e.palette.text.primary,active:e.palette.text.secondary,placeholder:e.palette.text.disabled},d={label:e.typography.body1,value:e.typography.body2};return{MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:Z(Z({},d.value),(t={color:u.placeholder},t["&.".concat(nf.shrink)]=Z(Z({},d.label),(n={fontWeight:600,color:u.active},n["&.".concat(nf.focused)]={color:u.focused},n["&.".concat(nf.error)]={color:e.palette.error.main},n["&.".concat(nf.disabled)]={color:e.palette.text.disabled},n["&.".concat(nf.filled)]={transform:"translate(12px, 6px) scale(0.75)"},n)),t))}},MuiInputBase:{styleOverrides:{root:(r={},r["&.".concat(sd.disabled)]={"& svg":{color:e.palette.text.disabled}},r),input:Z(Z({},d.value),{"&::placeholder":{opacity:1,color:u.placeholder}})}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:yr(e.palette.grey[500],.32)},"&:after":{borderBottomColor:u.focused}}}},MuiOutlinedInput:{styleOverrides:{root:(o={},o["&.".concat(yd.focused)]=(i={},i["& .".concat(yd.notchedOutline)]={borderColor:u.focused},i),o["&.".concat(yd.error)]=(a={},a["& .".concat(yd.notchedOutline)]={borderColor:e.palette.error.main},a),o["&.".concat(yd.disabled)]=(s={},s["& .".concat(yd.notchedOutline)]={borderColor:e.palette.action.disabledBackground},s),o),notchedOutline:{borderColor:yr(e.palette.grey[500],.2),transition:e.transitions.create(["border-color"],{duration:e.transitions.duration.shortest})}}},MuiFilledInput:{defaultProps:{disableUnderline:!0},styleOverrides:{root:(l={borderRadius:e.shape.borderRadius,backgroundColor:yr(e.palette.grey[500],.08),"&:hover":{backgroundColor:yr(e.palette.grey[500],.16)}},l["&.".concat(xd.focused)]={backgroundColor:yr(e.palette.grey[500],.16)},l["&.".concat(xd.error)]=(c={backgroundColor:yr(e.palette.error.main,.08)},c["&.".concat(xd.focused)]={backgroundColor:yr(e.palette.error.main,.16)},c),l["&.".concat(xd.disabled)]={backgroundColor:e.palette.action.disabledBackground},l)}}}}(e),function(e){var t,n,r;return{MuiAccordion:{styleOverrides:{root:(t={backgroundColor:"transparent"},t["&.".concat(uk.expanded)]={boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},t["&.".concat(uk.disabled)]={backgroundColor:"transparent"},t)}},MuiAccordionSummary:{styleOverrides:{root:(n={paddingLeft:e.spacing(2),paddingRight:e.spacing(1)},n["&.".concat(dk.disabled)]=(r={opacity:1,color:e.palette.action.disabled},r["& .".concat(ju.root)]={color:"inherit"},r),n),expandIconWrapper:{color:"inherit"}}}}}(e),function(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}(e),mk(e),function(e){return{MuiFormControlLabel:{styleOverrides:{label:Z({},e.typography.body2)}},MuiRadio:{defaultProps:{size:"small",icon:Y.jsx(hk,{}),checkedIcon:Y.jsx(gk,{})},styleOverrides:{root:{padding:e.spacing(1)}}}}}(e),yk(e),function(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":Z({},e.typography.body2)}}}}}(e),{MuiCssBaseline:{styleOverrides:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%"},"#root, #__next":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}}},img:{maxWidth:"100%",display:"inline-block",verticalAlign:"bottom"}}}},function(e){var t,n,r;return{MuiAutocomplete:{defaultProps:{popupIcon:Y.jsx((function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})}))}),{})},styleOverrides:{root:(t={},t["& span.".concat(zd.tag)]=Z(Z({},e.typography.subtitle2),{height:24,minWidth:24,lineHeight:"24px",textAlign:"center",padding:e.spacing(0,.75),color:e.palette.text.secondary,borderRadius:e.shape.borderRadius,backgroundColor:yr(e.palette.grey[500],.16)}),t),paper:Z({},Qd({theme:e,dropdown:!0})),listbox:(n={padding:0},n["& .".concat(zd.option)]=Z({},Xd(e)),n),endAdornment:(r={},r["& .".concat(Ei.root)]={width:18,height:18},r)}}}}(e),Tk(e),function(e){var t;return Z(Z({MuiPickersLayout:{styleOverrides:{root:{"& .MuiPickersLayout-actionBar":(t={},t["& .".concat(eb.root,":last-of-type")]={backgroundColor:e.palette.text.primary,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[800]},t)}}}},Ok),Mk)}(e),{MuiLoadingButton:{styleOverrides:{root:{"&.MuiButton-text":{"& .MuiLoadingButton-startIconPendingStart":{marginLeft:0},"& .MuiLoadingButton-endIconPendingEnd":{marginRight:0}}}}}});return t}var Nk,Ek,Bk,kk,Lk=CB("light"),Ik=[Z({name:"default"},Lk.primary),{name:"cyan",lighter:"#CCF4FE",light:"#68CDF9",main:"#078DEE",dark:"#0351AB",darker:"#012972",contrastText:"#FFFFFF"},{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#FFFFFF"},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#FFFFFF"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:Lk.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#FFFFFF"}];function Sk(t){var n=t.children,r=t.themeDirection;e.useEffect((function(){document.dir=r}),[r]);var o=E({key:"rtl",prepend:!0,stylisPlugins:[P.prefixer,N]});return"rtl"===r?Y.jsx(s.CacheProvider,{value:o,children:n}):Y.jsx(Y.Fragment,{children:n})}function Wk(e){var t,r=e.notification,o=e.onClickNotification;return Y.jsx(n.ListItemButton,{sx:Z({py:1.5,px:2.5,mt:"1px"},!r.isRead&&{bgcolor:"action.selected"}),onClick:function(){return o(r)},disabled:!r.clickable,children:Y.jsx(n.ListItemText,{disableTypography:!0,primary:r.text,secondary:Y.jsxs(n.Stack,{justifyContent:"space-between",direction:"row",children:[Y.jsxs(n.Stack,{direction:"row",sx:{mt:.5,typography:"caption",color:"text.disabled"},alignItems:"center",children:[Y.jsx(jo,{icon:"eva:clock-fill",width:16,sx:{mr:.5}}),Y.jsx(n.Typography,{variant:"caption",children:(t=r.createdAt,z.formatDistanceToNow(new Date(t),{addSuffix:!0}))})]}),r.type&&r.clickable&&Y.jsx(n.Chip,{sx:{fontSize:"12px"},label:"Check Now"})]})})})}!function(e){e.NONE="NONE",e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL"}(Nk||(Nk={})),function(e){e.LOW="LOW",e.MEDIUM="MEDIUM",e.HIGH="HIGH"}(Ek||(Ek={})),function(e){e.notifications="إشعارات",e.youHave="لديك",e.unreadMessages="رسائل غير مقروءة",e.showMore="عرض المزيد",e.showLess="عرض أقل"}(Bk||(Bk={})),function(e){e.notifications="Notifications",e.youHave="You have",e.unreadMessages="unread messages",e.showMore="Show more",e.showLess="Show less"}(kk||(kk={}));var Hk=go("span")((function(e){var t,n=e.arrow,r=e.theme,o="solid 1px ".concat(yr(r.palette.grey[500],.12)),i={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},s={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},l={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(((t={display:"none"})[r.breakpoints.up("sm")]={zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:r.palette.background.paper},t),"top-left"===n&&Z(Z({},i),{left:20})),"top-center"===n&&Z(Z({},i),{left:0,right:0,margin:"auto"})),"top-right"===n&&Z(Z({},i),{right:20})),"bottom-left"===n&&Z(Z({},a),{left:20})),"bottom-center"===n&&Z(Z({},a),{left:0,right:0,margin:"auto"})),"bottom-right"===n&&Z(Z({},a),{right:20})),"left-top"===n&&Z(Z({},s),{top:20})),"left-center"===n&&Z(Z({},s),{top:0,bottom:0,margin:"auto"})),"left-bottom"===n&&Z(Z({},s),{bottom:20})),"right-top"===n&&Z(Z({},l),{top:20})),"right-center"===n&&Z(Z({},l),{top:0,bottom:0,margin:"auto"})),"right-bottom"===n&&Z(Z({},l),{bottom:20}))}));function Rk(e){var t=e.open,r=e.children,o=e.arrow,i=void 0===o?"top-right":o,a=e.disabledArrow,s=e.sx,l=G(e,["open","children","arrow","disabledArrow","sx"]),c=function(e){var t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}}}return t}(i),u=c.style,d=c.anchorOrigin,p=c.transformOrigin;return Y.jsxs(n.Popover,Z({open:Boolean(t),anchorEl:t,anchorOrigin:d,transformOrigin:p,PaperProps:{sx:Z(Z(Z({p:1,width:"auto",overflow:"inherit"},u),{"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}}}),s)}},l,{children:[!a&&Y.jsx(Hk,{arrow:i}),r]}))}var Fk=e.forwardRef((function(e,t){var r=e.children,o=e.size,i=void 0===o?"medium":o,a=G(e,["children","size"]);return Y.jsx(Yk,{size:i,children:Y.jsx(n.IconButton,Z({size:i,ref:t},a,{children:r}))})})),Vk={hover:{scale:1.1},tap:{scale:.95}},Qk={hover:{scale:1.09},tap:{scale:.97}},Xk={hover:{scale:1.08},tap:{scale:.99}};function Yk(e){var t=e.size,r=e.children,o="small"===t,i="large"===t;return Y.jsx(n.Box,{component:p.m.div,whileTap:"tap",whileHover:"hover",variants:o&&Vk||i&&Xk||Qk,sx:{display:"inline-flex"},children:r})}function Zk(e){return It("MuiCard",e)}St("MuiCard",["root"]);const Gk=["className","raised"],Uk=go(Ki,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),qk=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiCard"}),{className:r,raised:o=!1}=n,i=Rt(n,Gk),a=re({},n,{raised:o}),s=(e=>{const{classes:t}=e;return Et({root:["root"]},Zk,t)})(a);return Y.jsx(Uk,re({className:$n(s.root,r),elevation:o?8:void 0,ref:t,ownerState:a},i))}));"production"!==process.env.NODE_ENV&&(qk.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,raised:ne(Ee.bool,(e=>e.raised&&"outlined"===e.variant?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null)),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var Kk=qk;function Jk(e){return It("MuiCardHeader",e)}var _k=St("MuiCardHeader",["root","avatar","action","content","title","subheader"]);const $k=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],eL=go("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>re({[`& .${_k.title}`]:t.title,[`& .${_k.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),tL=go("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),nL=go("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),rL=go("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),oL=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiCardHeader"}),{action:r,avatar:o,className:i,component:a="div",disableTypography:s=!1,subheader:l,subheaderTypographyProps:c,title:u,titleTypographyProps:d}=n,p=Rt(n,$k),f=re({},n,{component:a,disableTypography:s}),m=(e=>{const{classes:t}=e;return Et({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Jk,t)})(f);let h=u;null==h||h.type===Tu||s||(h=Y.jsx(Tu,re({variant:o?"body2":"h5",className:m.title,component:"span",display:"block"},d,{children:h})));let g=l;return null==g||g.type===Tu||s||(g=Y.jsx(Tu,re({variant:o?"body2":"body1",className:m.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:g}))),Y.jsxs(eL,re({className:$n(m.root,i),as:a,ref:t,ownerState:f},p,{children:[o&&Y.jsx(tL,{className:m.avatar,ownerState:f,children:o}),Y.jsxs(rL,{className:m.content,ownerState:f,children:[h,g]}),r&&Y.jsx(nL,{className:m.action,ownerState:f,children:r})]}))}));"production"!==process.env.NODE_ENV&&(oL.propTypes={action:Ee.node,avatar:Ee.node,children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,disableTypography:Ee.bool,subheader:Ee.node,subheaderTypographyProps:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),title:Ee.node,titleTypographyProps:Ee.object});var iL=oL,aL={},sL=ya;Object.defineProperty(aL,"__esModule",{value:!0});var lL=aL.default=void 0,cL=sL(wa()),uL=Y,dL=(0,cL.default)((0,uL.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"StorageOutlined");lL=aL.default=dL,exports.ActionDialog=function(e){var t=e.open,r=e.title,o=e.message,i=e.secondaryTitle,a=e.secondaryMessage,s=e.isSecondaryAction,c=void 0!==s&&s,u=e.onClose,d=e.onAction,p=e.onSecondaryAction,f=e.secondaryButtonText,m=void 0===f?"Confirm":f,h=e.buttonText,g=void 0===h?"Confirm":h,v=e.loading,A=function(){c?p?p():u():d&&d()};return Y.jsxs(n.Dialog,{open:t,fullWidth:!0,keepMounted:!0,onClose:function(e,t){"backdropClick"!==t&&u()},"aria-describedby":"alert-dialog-slide-description",disableEscapeKeyDown:!0,children:[Y.jsx(n.DialogTitle,{children:c?i:r}),Y.jsx(n.DialogContent,{children:Y.jsx(n.DialogContentText,{id:"alert-dialog-slide-description",children:c?a:o})}),Y.jsxs(n.DialogActions,{children:[Y.jsx(n.Button,{color:"inherit",onClick:u,disabled:v,children:"Cancel"}),c?Y.jsx(l.LoadingButton,{variant:"contained",onClick:A,loading:v,children:m}):Y.jsx(l.LoadingButton,{variant:"contained",onClick:A,loading:v,children:g})]})]})},exports.ApiContext=fg,exports.ApiContextProvider=function(t){var n=e.useState({statusCode:null,dashbaordUrlPrefix:t.dashbaordUrlPrefix}),r=n[0],o=n[1],i=t.language,a=t.onLogout,s=t.baseUrl,l=t.sleepTime,c=t.dashbaordUrlPrefix;ug.defaults.baseURL=s;var u=Bg().setErrorAlert;return ug.interceptors.request.use((function(e){return e.headers=Z(Z({},e.headers),{Accept:"application/json","Content-Type":"application/json","accept-language":i,language:i}),e.withCredentials=!0,e._auth=!1!==e._auth,e}),(function(e){Promise.reject(e.request.response)})),ug.interceptors.response.use((function(e){return U(void 0,void 0,void 0,(function(){return q(this,(function(t){switch(t.label){case 0:return l?[4,(n=l,new Promise((function(e){return setTimeout(e,n)})))]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,e]}var n}))}))}),(function(e){var t,n,r,i,s;return U(this,void 0,void 0,(function(){var l;return q(this,(function(d){return l=e.config,x.isAxiosError(e)&&401===(null===(t=e.response)||void 0===t?void 0:t.status)&&l._auth?(o({statusCode:401,dashbaordUrlPrefix:c}),a()):o({statusCode:401,dashbaordUrlPrefix:c}),403===(null===(r=null===(n=function(e){try{return JSON.parse(e)}catch(e){return null}}(e))||void 0===n?void 0:n.meta)||void 0===r?void 0:r.status)&&u(JSON.parse(e).meta.message),[2,Promise.reject(null!==(s=null===(i=e.request)||void 0===i?void 0:i.response)&&void 0!==s?s:e)]}))}))})),Y.jsx(fg.Provider,{value:r,children:t.children})},exports.AppConfigurationsContext=Og,exports.AppConfigurationsContextProvider=function(t){var n,r,o,i,a=e.useContext(Ag).resources,s=null==a?void 0:a.appConfigurations,l=e.useState(null!==(n=null==s?void 0:s.themeLayout)&&void 0!==n?n:"vertical"),c=l[0],u=l[1],d=null!==(r=null==s?void 0:s.textFieldSize)&&void 0!==r?r:"small",p=null!==(o=null==s?void 0:s.defaultRowsPerPage)&&void 0!==o?o:50,f=null===(i=null==s?void 0:s.themeStretch)||void 0===i||i;return Y.jsx(Og.Provider,{value:{textFieldSize:d,themeLayout:c,defaultRowsPerPage:p,themeStretch:f,setThemeLayout:u},children:t.children})},exports.CredentialsContext=Mg,exports.CredentialsContextProvider=function(e){var t=e.identityPoolId,n=e.region,r=e.userPoolId,o=e.userPoolWebClientId,i=e.bucket,a=e.googleApiKey,s=e.bucketUrl;return j.Auth.configure({Auth:{identityPoolId:t,region:n,userPoolId:r,userPoolWebClientId:o}}),j.Storage.configure({region:n,bucket:i}),Y.jsx(Mg.Provider,{value:{identityPoolId:t,region:n,userPoolId:r,userPoolWebClientId:o,bucket:i,googleApiKey:a,bucketUrl:s},children:e.children})},exports.DashboardLayout=eT,exports.DialogContext=Dg,exports.DialogContextProvider=function(t){var n=t.children,r=e.useState(!1),o=r[0],i=r[1],a=e.useState(void 0),s=a[0],l=a[1],c=function(){i(!1)};return Y.jsxs(Dg.Provider,{value:{openDialog:function(e,t){i(!0),l(Y.jsx(e,{open:!0,onDismiss:c,data:t}))}},children:[o&&s,n]})},exports.IdenityModelConfiguration=function(t){var n=t.path,r=t.modelRoute,o=e.useContext(fg).dashbaordUrlPrefix;return Y.jsx(vM,{path:n,isEdit:!0,Component:function(e){return Y.jsx(cz,Z({},e,{baseApiRoute:o,apiRoute:"".concat(o,"/").concat(r),path:n}))},modelRoute:r})},exports.IdentityClient=ug,exports.IdentityDumpServiceAction=function(t){var r,o=t.baseUrl,i=e.useState(!1),a=i[0],s=i[1],c=e.useState([]),u=c[0],d=c[1],p=e.useState([]),f=p[0],m=p[1],h=e.useState([]),g=h[0],v=h[1],A=Bg(),y=A.setSuccessAlert,b=A.setErrorAlert,x=e.useState(!1),w=x[0],j=x[1],C=n.useTheme(),O=function(e){return function(){var t=u.indexOf(e),n=K([],u,!0);-1===t?n.push(e):n.splice(t,1),d(n)}},M=function(e){return(t=u,n=e,t.filter((function(e){return n.includes(e)}))).length;var t,n};return Y.jsxs(n.Box,{sx:{position:"relative"},children:[Y.jsx(l.LoadingButton,{onClick:function(){j(!0),fetch("".concat(o,"/identity/services/models"),{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}}).then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((function(e){var t=e.data.sort((function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}));j(!1),d(t),m(t),v(t),s(!0)})).catch((function(e){console.error("There was a problem with the fetch operation:",e)}))},startIcon:Y.jsx(lL,{}),loading:w,variant:"outlined",children:"Restore Database"}),Y.jsx(n.Dialog,{open:a,onClose:function(){return s(!1)},maxWidth:"md",fullWidth:!0,children:Y.jsx(eh,{container:!0,sx:{justifyContent:"center",alignItems:"center",width:"100%",position:"relative"},children:Y.jsx(eh,{item:!0,xs:12,children:Y.jsxs(Kk,{sx:{width:"100%",position:"relative",overflow:"visible",display:"flex",flexDirection:"column"},children:[Y.jsx(iL,{sx:{px:2,py:1,position:"sticky",top:"0px",zIndex:1e3,background:"white",borderColor:"rgba(145, 158, 171, 0.24)",borderBottomWidth:"thin",borderStyle:"solid"},title:Y.jsxs(n.Stack,{direction:"row",spacing:2,alignItems:"center",mb:1,children:[Y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",version:"1.1",width:"21",height:"24",viewBox:"0 0 21 24",children:[Y.jsx("defs",{children:Y.jsx("clipPath",{id:"master_svg0_2_166",children:Y.jsx("rect",{x:"0",y:"0",width:"21",height:"24",rx:"0"})})}),Y.jsx("g",{"clip-path":"url(#master_svg0_2_166)",children:Y.jsx("g",{transform:"matrix(1,0,0,-1,0,49.03125)",children:Y.jsx("g",{children:Y.jsx("path",{d:"M21,44.765625L21,42.515625L21,44.765625L21,42.515625Q20.9062,40.921825,17.9062,39.843725Q14.9531,38.812525,10.5,38.765625Q6.04688,38.812525,3.09375,39.843725Q0.09375,40.921825,0,42.515625L0,44.765625Q0.09375,46.359425,3.09375,47.437525Q6.04688,48.468725,10.5,48.515625Q14.9531,48.468725,17.9062,47.437525Q20.9062,46.359425,21,44.765625ZM18.4219,38.437525Q19.9219,38.953125,21,39.796825L21,35.015625Q20.9062,33.421875,17.9062,32.343745Q14.9531,31.312505,10.5,31.265625Q6.04688,31.312505,3.09375,32.343745Q0.09375,33.421875,0,35.015625L0,39.796825Q1.07812,38.953125,2.57812,38.437525Q5.85938,37.312525,10.5,37.265625Q15.1406,37.312525,18.4219,38.437525ZM0,32.296875Q1.07812,31.453125,2.57812,30.937505Q5.85938,29.812505,10.5,29.765625Q15.1406,29.812505,18.4219,30.937505Q19.9219,31.453125,21,32.296875L21,28.265625Q20.9062,26.671875,17.9062,25.593745Q14.9531,24.5625,10.5,24.515625Q6.04688,24.5625,3.09375,25.593745Q0.09375,26.671875,0,28.265625L0,32.296875Z",fill:C.palette.primary.main,"fill-opacity":"1"})})})})]}),Y.jsx(n.Typography,{variant:"h4",children:"Restore Database Models"})]}),subheader:Y.jsxs(n.Stack,{children:[Y.jsxs(n.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[Y.jsx(fu,{onClick:(r=f,function(){var e,t;M(r)===r.length?d(pg(u,r)):d((t=r,K(K([],e=u,!0),pg(t,e),!0)))}),checked:M(u)===g.length&&0!==g.length,indeterminate:M(u)!==g.length&&0!==M(u),disabled:0===g.length,inputProps:{"aria-label":"all items selected"}}),Y.jsxs(n.Typography,{variant:"subtitle2",children:[Y.jsx("strong",{children:"Selected Models:"}),M(u),"/",g.length," selected"]})]}),Y.jsx(Gv,{placeholder:"Search models by name...",onInputChange:function(e){if(e){var t=e.toLowerCase();m((function(e){return e.filter((function(e){return e.toLowerCase().includes(t)}))}))}else m(g)},size:"small"})]})}),Y.jsx(Nf,{sx:{width:"100%",minHeight:230,bgcolor:"background.paper",overflow:"auto"},dense:!0,component:"div",role:"list",children:f.map((function(e){var t="transfer-list-all-item-".concat(e,"-label");return Y.jsxs(fx,{role:"listitem",onClick:O(e),children:[Y.jsx(xu,{children:Y.jsx(fu,{checked:u.includes(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),Y.jsx(Lu,{id:t,primary:e})]},e)}))}),Y.jsxs(n.Alert,{severity:"warning",sx:{mx:2},children:[Y.jsx(n.AlertTitle,{children:"Warning"}),"After restoration, you will need to refresh the page for changes to take effect."]}),Y.jsx(l.LoadingButton,{onClick:function(){j(!0),fetch("".concat(o,"/identity/services/dump"),{method:"POST",body:JSON.stringify({models:pg(f,u)}),credentials:"include",headers:{"Content-Type":"application/json"}}).then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((function(e){j(!1),s(!1),y&&y("Database restoration successful! Page will refresh in 3 sec"),setTimeout((function(){window.location.reload()}),3e3)})).catch((function(e){b&&b("'There was a problem with the database restoration operation: ".concat(e)),console.error("There was a problem with the fetch operation:",e)}))},loading:w,variant:"contained",sx:{m:2,alignSelf:"end"},disabled:w,children:"Start Restore"})]})})})})]})},exports.IdentityEdit=vM,exports.IdentityGrid=GM,exports.IdentityList=ez,exports.IdentityPage=function(e){var t=e.Component,r=e.LoadingSkelton,o=e.Actions,i=e.HeadingView,a=e.BreadcrumbsChildren,s=e.DefaultActions,l=e.BreadCrumbLinks;e.variant;var c=e.loading,u=e.data,d=e.taptitle,p=e.headingTitle,f=e.themeStretch,m=void 0!==f&&f;return Y.jsx(J,{title:d,children:Y.jsxs(n.Container,{maxWidth:!m&&"lg",children:[!c&&Y.jsx(ee,{heading:p,headingView:i&&Y.jsx(i,{record:u}),links:l?l(u):[],action:Y.jsxs(n.Stack,{direction:"row",spacing:2,children:[o&&Y.jsx(o,{record:u}),s&&Y.jsx(s,{})]}),children:u&&a&&Y.jsx(a,{data:u})}),c?Y.jsx(n.Grid,{container:!0,alignItems:"center",children:Y.jsx(r,{})},"skeleton"):t&&Y.jsx(t,{data:u})]})})},exports.IdentityPermissionPage=function(t){var n=this,o=t.isEdit,i=r.useParams().id,a=void 0===i?"":i,s=e.useContext(fg).dashbaordUrlPrefix,l=e.useState([]),c=l[0],u=l[1],d=e.useState(void 0),p=d[0],f=d[1],m=e.useState(!0),h=m[0],g=m[1];return e.useEffect((function(){U(n,void 0,void 0,(function(){var e,t,n,r;return q(this,(function(i){switch(i.label){case 0:return e=o?"?id=".concat(a):"",[4,ug.get("".concat(s,"/permissions/all")+e)];case 1:return t=i.sent(),n=t.data.data.permissions,r=t.data.data.permissionGroup,u(n),f(r),g(!1),[2]}}))}))}),[]),Y.jsx(Y.Fragment,{children:o&&(h||0===c.length)||o&&!p?Y.jsx(Y.Fragment,{children:"... loading"}):Y.jsx(Az,{modelPermissions:c,fetchLoading:h,isEdit:o,permissionGroup:p})})},exports.IdentityRouter=function(t){var n=e.useContext(Ag).resources,o=e.useContext(wg),i=o.paths,a=o.root,s=o.home,l=e.useContext(Og).themeLayout,c=e.useContext(fg).dashbaordUrlPrefix,u=[];if(n)for(var d in(u=[]).push.apply(u,t.customs),n)if("modelParents"!==d&&"appConfigurations"!==d){var p=n[d],f=p.properties.path,m=p.properties.modelName,h={path:f,children:[{element:Y.jsx(r.Navigate,{to:i[d].list,replace:!0}),index:!0},{path:"list",element:Y.jsx(ez,{apiRoute:"".concat(c,"/").concat(f),path:d,modelName:m},"".concat(f,".list"))},{path:"new",element:Y.jsx(vM,{modelRoute:"".concat(f),path:d,isEdit:!1})},{path:":id/edit",element:Y.jsx(vM,{modelRoute:"".concat(f),path:d,isEdit:!0})},{path:":id/show",element:Y.jsx(az,{path:d,modelRoute:f},"".concat(d,".show"))}]};u.push(h)}return{path:a,children:[{path:"",element:n?Y.jsx(eT,{Logo:"mini"===l?t.MiniLogo:t.Logo,children:Y.jsx(r.Outlet,{})}):Y.jsx(Y.Fragment,{}),children:K(K([],u,!0),[{path:"",element:n?Y.jsx(r.Navigate,{to:i[s].root}):Y.jsx(Y.Fragment,{})}],!1)}]}},exports.IdentityShow=az,exports.NextPreviousButtons=KC,exports.NotificationContext=Pg,exports.NotificationPopover=function(){var t,o=e.useState(null),i=o[0],a=o[1],s=Ig().notifications,l=Hg.isEnglish(),c=e.useContext(fg).dashbaordUrlPrefix,u=l?kk:Bk,d=e.useState(s),p=d[0],f=d[1],m=e.useState(!1),h=m[0],g=m[1],v=null==p?void 0:p.filter((function(e){return!1===e.isRead})).length,A=r.useNavigate();e.useEffect((function(){f(s)}),[s]);var y=function(e){var t,n;a(null),ug.post("".concat(c,"/notifications/markAsRead/").concat(e.id)),f(null==p?void 0:p.map((function(t){return t.id===e.id?Z(Z({},t),{isRead:!0}):Z({},t)}))),e.redirectUrlType===Nk.INTERNAL?A(null!==(t=e.redirectUrl)&&void 0!==t?t:"/"):e.redirectUrlType===Nk.EXTERNAL&&window.open(null!==(n=e.redirectUrl)&&void 0!==n?n:"/")},b=h?p:null==p?void 0:p.slice(0,4);return Y.jsxs(Y.Fragment,{children:[Y.jsx(Fk,{color:i?"primary":"default",onClick:function(e){a(e.currentTarget)},sx:{width:40,height:40},children:Y.jsx(n.Badge,{badgeContent:v,color:"error",children:Y.jsx(jo,{icon:"eva:bell-fill"})})}),Y.jsxs(Rk,{open:i,onClose:function(){a(null)},sx:{width:360,p:0},children:[Y.jsxs(n.Box,{sx:{display:"flex",alignItems:"center",py:2,px:2.5},children:[Y.jsxs(n.Box,{sx:{flexGrow:1},children:[Y.jsx(n.Typography,{variant:"subtitle1",children:u.notifications}),Y.jsx(n.Typography,{variant:"body2",sx:{color:"text.secondary"},children:"".concat(u.youHave," ").concat(null!=v?v:0," ").concat(u.unreadMessages)})]}),v&&v>0&&Y.jsx(n.Tooltip,{title:" Mark all as read",children:Y.jsx(n.IconButton,{color:"primary",onClick:function(){ug.post("".concat(c,"/notifications/markAllAsRead")),f(null==p?void 0:p.map((function(e){return Z(Z({},e),{isRead:!0})})))},children:Y.jsx(jo,{icon:"eva:done-all-fill"})})})]}),Y.jsx(n.Divider,{sx:{borderStyle:"dashed"}}),Y.jsx(n.Paper,{style:{minHeight:200,maxHeight:400,overflow:"auto"},children:Y.jsx(n.List,{disablePadding:!0,children:null==b?void 0:b.map((function(e){return Y.jsx(Wk,{notification:e,onClickNotification:y},e.text)}))})}),Y.jsx(n.Divider,{sx:{borderStyle:"dashed"}}),(null!==(t=null==p?void 0:p.length)&&void 0!==t?t:0)>4&&Y.jsx(n.Box,{sx:{p:1},children:Y.jsx(n.Button,{fullWidth:!0,disableRipple:!0,onClick:function(){return g(!h)},children:h?u.showLess:u.showMore})})]})]})},exports.NotificationsContextProvider=function(t){var n=t.notificationsUrl,r=mg(),o=r.requestState,i=r.get,a=r.revertToIdle;e.useEffect((function(){s()}),[]);var s=e.useCallback((function(){i({url:n})}),[]);return Y.jsx(Pg.Provider,{value:{notifications:o.data,getNotifications:s,state:o.state,clearNotifications:function(){a()}},children:t.children})},exports.PathsContext=wg,exports.PathsContextProvider=function(t){var n=t.root,r=t.children,o=t.home,i=e.useContext(Ag).resources,a={},s=function(e){if("modelParents"===e||"appConfigurations"===e)return"continue";var t=i[e].properties.path;a[e]={root:jg(n,"/"+t),list:jg(n,"/"+t+"/list"),edit:function(e){return jg(n,"/"+t+"/".concat(e,"/edit"))},show:function(e){return jg(n,"/"+t+"/".concat(e,"/show"))},new:jg(n,"/"+t+"/new")}};for(var l in i)s(l);return Y.jsx(wg.Provider,{value:{paths:a,root:n,home:o},children:r})},exports.ResourcesContext=Ag,exports.ResourcesContextProvider=function(t){var n,r=t.resourcesUrl,o=t.laodingLogo,i=t.logoSxProps,a=mg(),s=a.requestState,l=a.get,c=a.revertToIdle;e.useEffect((function(){u()}),[]);var u=e.useCallback((function(){l({url:r})}),[]);return Y.jsx(Ag.Provider,{value:{resources:null===(n=s.data)||void 0===n?void 0:n.resources,getResources:u,state:s.state,clearResources:function(){c()}},children:s.state===exports.RequestState.LOADING?Y.jsx(vg,{loadingLogo:o,logoSxProps:i}):t.children})},exports.ShowRecord=iz,exports.SnackAlertContext=zg,exports.SnackAlertProvider=function(t){var r,o=t.children,i=e.useState({state:!1}),a=i[0],s=i[1],l=function(e,t,n,r){setTimeout((function(){s({state:!1})}),r||4e3),s({state:!0,message:e,severity:t,position:n})};return Y.jsxs(zg.Provider,{value:{setAlert:l,setErrorAlert:function(e,t,n){l(e,"error",t,n)},setSuccessAlert:function(e,t,n){l(e,"success",t,n)}},children:[a.state&&Y.jsx(n.Snackbar,{open:a.state,anchorOrigin:null!==(r=a.position)&&void 0!==r?r:{horizontal:"center",vertical:"top"},children:Y.jsx(n.Alert,{onClose:function(){s({state:!1})},severity:a.severity,children:a.message})}),o]})},exports.State=dg,exports.ThemeProvider=function(t){var n,r=t.children,o=t.themeColorPresets,i=t.themeContrast,a=t.themeDirection,s=t.themeMode,l=t.customColorPresets,c=function(e,t){return{palette:CB(e,t),shadows:TB(e),customShadows:kB(e,t)}}(null!=s?s:"light",l),u=l?{palette:{presetsColor:n=l},customShadows:{primary:"0 8px 16px 0 ".concat(yr("".concat(null==n?void 0:n.main),.24))}}:function(e){var t=Ik.find((function(t){return t.name===e}));return{palette:{primary:t},customShadows:{primary:"0 8px 16px 0 ".concat(yr("".concat(null==t?void 0:t.main),.24))}}}(null!=o?o:"default"),d=function(e,t,n){return{theme:Z({},e&&"light"===t&&{palette:{background:{default:CB(t,n).grey[100]}}}),components:Z({},e&&{MuiCard:{styleOverrides:{root:{boxShadow:kB(t,n).z4}}}})}}("bold"===i,null!=s?s:"light",l),p=function(e){return{direction:e}}(null!=a?a:"ltr"),f=e.useMemo((function(){return{palette:CB("light",l),shadows:TB("light"),customShadows:kB("light",l),typography:EB,shape:{borderRadius:8}}}),[]),m=co(e.useMemo((function(){return dB(f,p,c,u,d.theme)}),[f,p,c,u,d.theme]));return m.components=dB(Pk(m),d.components),Y.jsx(Ao,{theme:m,children:Y.jsxs(Sk,{themeDirection:null!=a?a:"ltr",children:[Y.jsx(hB,{}),r]})})},exports.path=jg,exports.useApi=mg,exports.useAppConfigurations=Ng,exports.useCredentials=function(){return e.useContext(Mg)},exports.useDialogs=Lg,exports.useNavData=Cg,exports.useNotifications=Ig,exports.usePaths=kg,exports.useResources=Eg,exports.useSnackAlert=Bg;
|
|
135
|
+
*/!function(){var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"==i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,n){e.exports=t},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,a,s;e.exports=(o=n(3),i=n(5),s={},r.m=a=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(0),o=n(1);function i(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat([[o,i.get(o)]])}function a(e){return i(e).toList()}function s(e){if(e)return a(e).get(0)}function l(e){if(e){var t=s(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach((function(e,n){e.get("key")===t.get("key")&&(r=n-1)})),-1<r)return n.get(r)}}function c(e){return e?e.getCurrentContent().getBlockMap().toList():new o.List}function u(e){var t=a(e);if(!t.some((function(e){return e.type!==t.get(0).type})))return t.get(0).type}function d(e){var t=r.RichUtils.tryToRemoveBlockStyle(e);return t?r.EditorState.push(e,t,"change-block-type"):e}function p(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),i=a(e);if(0<i.size){if(n.getIsBackward()){var s=r;r=o,o=s}for(var l=0;l<i.size;l+=1){var c=0===l?r:0,u=l===i.size-1?o:i.get(l).getText().length;t+=i.get(l).getText().slice(c,u)}}return t}function f(e){var t=e.getCurrentContent(),n=e.getSelection(),o=r.Modifier.removeRange(t,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());return o=r.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),r.EditorState.push(e,o,"insert-fragment")}function m(e){var t=r.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return d(r.EditorState.push(e,t,"split-block"))}function h(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),o=r.Modifier.removeRange(e.getCurrentContent(),n,"forward");return r.EditorState.push(e,o,"remove-range")}function g(e,t){var n=r.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return r.EditorState.push(e,n,"change-block-data")}function v(e){var t=new o.Map({}),n=a(e);if(n&&0<n.size)for(var r=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach((function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))})),0===t.size)return t=t.clear(),"break"},i=0;i<n.size&&"break"!==r(i);i+=1);return t}var A=Object(o.Map)({code:{element:"pre"}}),y=r.DefaultDraftBlockRenderMap.merge(A);function b(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function x(e,t,n){var o,a=e.getSelection();o=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var s=e.getCurrentContent(),l=s.getBlockForKey(o),c=l.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;var u=s.getBlockBefore(o);if(!u)return e;if(u.getType()!==c)return e;var d=l.getDepth();if(1===t&&d===n)return e;var p,f,m,h,g,v,A,y=Math.min(u.getDepth()+1,n),b=(f=t,m=y,h=(p=e).getSelection(),v=(g=p.getCurrentContent()).getBlockMap(),A=i(p).map((function(e){var t=e.getDepth()+f;return t=Math.max(0,Math.min(t,m)),e.set("depth",t)})),v=v.merge(A),g.merge({blockMap:v,selectionBefore:h,selectionAfter:h}));return r.EditorState.push(e,b,"adjust-depth")}function w(e,t){var n;return 13===(n=t).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?e.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(e):f(e):function(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!b(o)&&"unstyled"!==o.getType()&&o.getLength()===t.getStartOffset())return m(e);if(b(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return d(e);if(0<i)return x(e,-1,i)}}}(e)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){n[e]=0<=r.indexOf(e)})),n}var o=t.getStartOffset(),i=t.getEndOffset(),s=a(e);if(0<s.size){var l=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<s.size;t+=1){var n=0===t?o:0,r=t===s.size-1?i:s.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var a=function(n){var r=s.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){e[t]=e[t]&&r.get(t)===t}))},l=n;l<r;l+=1)a(l)}return{v:e}}();if("object"===O(l))return l.v}return{}}function z(e){var t,n=e.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var i=s(e),a=r;a<o;a+=1){var l=i.getEntityAt(a);if(!l){t=void 0;break}if(a===r)t=l;else if(t!==l){t=void 0;break}}return t}function D(e,t){var n,r=s(e);return r.findEntityRanges((function(e){return e.get("entity")===t}),(function(e,t){n={start:e,end:t,text:r.get("text").slice(e,t)}})),n}function T(e,t,n){N[e]["".concat(e.toLowerCase(),"-").concat(n)]=C({},"".concat(t),n)}function P(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},N.color,{},N.bgcolor,{},N.fontSize,{},N.fontFamily,{CODE:N.CODE,SUPERSCRIPT:N.SUPERSCRIPT,SUBSCRIPT:N.SUBSCRIPT})}var N={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function E(e,t,n){var o=e.getSelection(),i=Object.keys(N[t]).reduce((function(e,t){return r.Modifier.removeInlineStyle(e,o,t)}),e.getCurrentContent()),a=r.EditorState.push(e,i,"changeinline-style"),s=e.getCurrentInlineStyle();if(o.isCollapsed()&&(a=s.reduce((function(e,t){return r.RichUtils.toggleInlineStyle(e,t)}),a)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)s.has(n)||(a=r.RichUtils.toggleInlineStyle(a,n));else{var l="bgcolor"===t?"backgroundColor":t;s.has("".concat(l,"-").concat(n))||(a=r.RichUtils.toggleInlineStyle(a,"".concat(t.toLowerCase(),"-").concat(n)),T(t,l,n))}return a}function B(e){e&&e.getCurrentContent().getBlockMap().map((function(e){return e.get("characterList")})).toList().flatten().forEach((function(e){e&&0===e.indexOf("color-")?T("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?T("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?T("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&T("fontFamily","fontFamily",e.substr(11))}))}function k(e,t,n){var r=e.getInlineStyleAt(n).toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(r&&0<r.size)return r.get(0)}function L(e,t){if(e&&t&&0<t.length){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach((function(t){r[t]=function(e,t){var n=e.getCurrentInlineStyle().toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(n&&0<n.size)return n.get(0)}(e,t)})),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),s=a(e);if(0<s.size){for(var l=function(e){var n=0===e?o:0,a=e===s.size-1?i:s.get(e).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var l=function(o){o===n?t.forEach((function(t){r[t]=k(s.get(e),t,o)})):t.forEach((function(t){r[t]&&r[t]!==k(s.get(e),t,o)&&(r[t]=void 0)}))},c=n;c<a;c+=1)l(c)},c=0;c<s.size;c+=1)l(c);return{v:r}}}();if("object"===O(n))return n.v}return{}}function I(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach((function(t){n=r.Modifier.removeInlineStyle(n,e.getSelection(),t)})),r.EditorState.push(e,n,"change-inline-style")}n.d(t,"isListBlock",(function(){return b})),n.d(t,"changeDepth",(function(){return x})),n.d(t,"handleNewLine",(function(){return w})),n.d(t,"getEntityRange",(function(){return D})),n.d(t,"getCustomStyleMap",(function(){return P})),n.d(t,"toggleCustomInlineStyle",(function(){return E})),n.d(t,"getSelectionEntity",(function(){return z})),n.d(t,"extractInlineStyle",(function(){return B})),n.d(t,"removeAllInlineStyles",(function(){return I})),n.d(t,"getSelectionInlineStyle",(function(){return M})),n.d(t,"getSelectionCustomInlineStyle",(function(){return L})),n.d(t,"getSelectedBlocksMap",(function(){return i})),n.d(t,"getSelectedBlocksList",(function(){return a})),n.d(t,"getSelectedBlock",(function(){return s})),n.d(t,"getBlockBeforeSelectedBlock",(function(){return l})),n.d(t,"getAllBlocks",(function(){return c})),n.d(t,"getSelectedBlocksType",(function(){return u})),n.d(t,"removeSelectedBlocksStyle",(function(){return d})),n.d(t,"getSelectionText",(function(){return p})),n.d(t,"addLineBreakRemovingSelection",(function(){return f})),n.d(t,"insertNewUnstyledBlock",(function(){return m})),n.d(t,"clearEditorContent",(function(){return h})),n.d(t,"setBlockData",(function(){return g})),n.d(t,"getSelectedBlocksMetadata",(function(){return v})),n.d(t,"blockRenderMap",(function(){return y}))}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t){e.exports=n},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,a,s;e.exports=(o=n(5),i=n(3),s={},r.m=a=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(1),o=n(0),i=function(e,t,n){var r,i=e.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(t),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(){return{text:"",inlines:[],entities:[],blocks:[]}},l=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},c=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},u=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},d=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},p=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),f={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function m(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var h=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return y}));var g=" ",v=new RegExp(" ","g"),A=!0;function y(e,t){var n,y,b=(n=t,(y=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(v,g)))?(A=!0,{chunk:function e(t,n,o,g,v,y){var b=t.nodeName.toLowerCase();if(y){var x=y(b,t);if(x){var w=r.Entity.__create(x.type,x.mutability,x.data||{});return{chunk:u(w)}}}if("#text"===b&&"\n"!==t.textContent)return i(t,n,v);if("br"===b)return{chunk:a()};if("img"===b&&t instanceof HTMLImageElement){var j={};j.src=t.getAttribute&&t.getAttribute("src")||t.src,j.alt=t.alt,j.height=t.style.height,j.width=t.style.width,t.style.float&&(j.alignment=t.style.float);var C=r.Entity.__create("IMAGE","MUTABLE",j);return{chunk:u(C)}}if("video"===b&&t instanceof HTMLVideoElement){var O={};O.src=t.getAttribute&&t.getAttribute("src")||t.src,O.alt=t.alt,O.height=t.style.height,O.width=t.style.width,t.style.float&&(O.alignment=t.style.float);var M=r.Entity.__create("VIDEO","MUTABLE",O);return{chunk:u(M)}}if("iframe"===b&&t instanceof HTMLIFrameElement){var z={};z.src=t.getAttribute&&t.getAttribute("src")||t.src,z.height=t.height,z.width=t.width;var D=r.Entity.__create("EMBEDDED_LINK","MUTABLE",z);return{chunk:u(D)}}var T,P=function(e,t){var n=p.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,g);P&&("ul"===b||"ol"===b?(g=b,o+=1):("unordered-list-item"!==P&&"ordered-list-item"!==P&&(g="",o=-1),A?(T=l(P,m(t)),A=!1):T=c(P,o,m(t)))),T=T||s(),n=function(e,t,n){var r,o=f[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var i=t;r=(r=n).withMutations((function(e){var t=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,s=i.style.textDecoration,l=i.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===a&&e.add(f.strong),"underline"===s&&e.add(f.ins),"italic"===l&&e.add(f.em)})).toOrderedSet()}return r}(b,t,n);for(var N=t.firstChild;N;){var E=e(N,n,o,g,h(N)||v,y).chunk;T=d(T,E),N=N.nextSibling}return{chunk:T}}(y,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var x=b.chunk,w=new o.OrderedMap({});x.entities&&x.entities.forEach((function(e){e&&(w=w.set(e,r.Entity.__get(e)))}));var j=0;return{contentBlocks:x.text.split("\r").map((function(e,t){var n=j+e.length,i=x&&x.inlines.slice(j,n),a=x&&x.entities.slice(j,n),s=new o.List(i.map((function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),r.CharacterMetadata.create(n)})));return j=n,new r.ContentBlock({key:Object(r.genKey)(),type:x&&x.blocks[t]&&x.blocks[t].type||"unstyled",depth:x&&x.blocks[t]&&x.blocks[t].depth,data:x&&x.blocks[t]&&x.blocks[t].data||new o.Map({}),text:e,characterList:s})})),entityMap:w}}return null}}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t,n){function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function d(){return function(e,t){t.normalize(e)}}function p(e){var t=e.re=n(21)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):i(n.validate)?a.validate=n.validate:u(t,n),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?u(t,n):a.normalize=d());"[object String]"!==o(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:d()};var p,f=Object.keys(e.__compiled__).filter((function(t){return 0<t.length&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(p=e).__index__=-1,p.__text_cache__=""}function f(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function m(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},p(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(m(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(m(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),p(this),this},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){var r=n(11);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){n.r(t),n.d(t,"Editor",(function(){return ao}));var r=n(1),o=n.n(r),i=n(0),a=n.n(i),s=n(3),l=n(4),c=n(2),u=n.n(c);function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var f=p((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}));function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var g,v=h((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}})),A=[],y={onKeyDown:function(e){A.forEach((function(t){t(e)}))},registerCallBack:function(e){A.push(e)},deregisterCallBack:function(e){A=A.filter((function(t){return t!==e}))}},b=function(){g=!0},x=function(){g=!1},w=function(){return g};function j(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function C(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function O(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function M(e){e.stopPropagation()}function z(e){return e[e.options[0]].icon}function D(e,t){if(e&&void 0===t)return e;var n={};return C(e,(function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=D(r,t[e]):n[e]=void 0!==t[e]?t[e]:r})),n}var T=n(6),P=n.n(T),N=n(5);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9);var W=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(i,r.Component);var e,t,n=I(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(){var t=e.props,n=t.disabled,r=t.onClick,o=t.value;n||r(o)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,i=t.activeClassName,a=t.active,s=t.disabled,l=t.title;return o.a.createElement("div",{className:u()("rdw-option-wrapper",r,(B(e={},"rdw-option-active ".concat(i),a),B(e,"rdw-option-disabled",s),e)),onClick:this.onClick,"aria-selected":a,title:l},n)}}])&&k(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t){return(F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q(e);if(t){var o=Q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}W.propTypes={onClick:a.a.func.isRequired,children:a.a.any,value:a.a.string,className:a.a.string,activeClassName:a.a.string,active:a.a.bool,disabled:a.a.bool,title:a.a.string},W.defaultProps={activeClassName:""},n(12);var X=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(i,r.Component);var e,t,n=V(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={highlighted:-1},e.onChange=function(t){var n=e.props.onChange;n&&n(t),e.toggleExpansion()},e.setHighlighted=function(t){e.setState({highlighted:t})},e.toggleExpansion=function(){var t=e.props,n=t.doExpand,r=t.doCollapse;t.expanded?r():n()},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&this.setState({highlighted:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.expanded,r=t.children,i=t.className,a=t.optionWrapperClassName,s=t.ariaLabel,l=t.onExpandEvent,c=t.title,d=this.state.highlighted,p=r.slice(1,r.length);return o.a.createElement("div",{className:u()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":s||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:l,title:c},r[0],o.a.createElement("div",{className:u()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:u()("rdw-dropdown-optionwrapper",a),onClick:M},o.a.Children.map(p,(function(t,n){return t&&o.a.cloneElement(t,{onSelect:e.onChange,highlighted:d===n,setHighlighted:e.setHighlighted,index:n})}))):void 0)}}])&&R(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}X.propTypes={children:a.a.any,onChange:a.a.func,className:a.a.string,expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,optionWrapperClassName:a.a.string,ariaLabel:a.a.string,title:a.a.string},n(13);var J=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}(i,r.Component);var e,t,n=q(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(t){var n=e.props,r=n.onSelect,o=n.onClick,i=n.value;n.disabled||(r&&r(i),o&&(t.stopPropagation(),o(i)))},e.setHighlighted=function(){var t=e.props;(0,t.setHighlighted)(t.index)},e.resetHighlighted=function(){(0,e.props.setHighlighted)(-1)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,i=t.disabled,a=t.highlighted,s=t.className,l=t.activeClassName,c=t.disabledClassName,d=t.highlightedClassName,p=t.title;return o.a.createElement("li",{className:u()("rdw-dropdownoption-default",s,(Z(e={},"rdw-dropdownoption-active ".concat(l),r),Z(e,"rdw-dropdownoption-highlighted ".concat(d),a),Z(e,"rdw-dropdownoption-disabled ".concat(c),i),e)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:p},n)}}])&&G(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ne(e);if(t){var o=ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}J.propTypes={children:a.a.any,value:a.a.any,onClick:a.a.func,onSelect:a.a.func,setHighlighted:a.a.func,index:a.a.number,disabled:a.a.bool,active:a.a.bool,highlighted:a.a.bool,className:a.a.string,activeClassName:a.a.string,disabledClassName:a.a.string,highlightedClassName:a.a.string,title:a.a.string},J.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var re=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(i,r.Component);var e,t,n=te(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState,r=e.onChange,i=e.translations;return o.a.createElement("div",{className:u()("rdw-inline-wrapper",t.className),"aria-label":"rdw-inline-control"},t.options.map((function(e,a){return o.a.createElement(W,{key:a,value:e,onClick:r,className:u()(t[e].className),active:!0===n[e]||"MONOSPACE"===e&&n.CODE,title:t[e].title||i["components.controls.inline.".concat(e)]},o.a.createElement("img",{alt:"",src:t[e].icon}))})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState,l=e.onChange,c=e.translations,d=t.className,p=t.dropdownClassName,f=t.title;return o.a.createElement(X,{className:u()("rdw-inline-dropdown",d),optionWrapperClassName:u()(p),onChange:l,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-inline-control",title:f},o.a.createElement("img",{src:z(t),alt:""}),t.options.map((function(e,n){return o.a.createElement(J,{key:n,value:e,className:u()("rdw-inline-dropdownoption",t[e].className),active:!0===s[e]||"MONOSPACE"===e&&s.CODE,title:t[e].title||c["components.controls.inline.".concat(e)]},o.a.createElement("img",{src:t[e].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ae(e,t){return(ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}re.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ce=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ae(e,t)}(i,r.Component);var e,t,n=se(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.toggleInlineStyle=function(e){var n="monospace"===e?"CODE":e.toUpperCase(),r=t.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleInlineStyle(o,n);if("subscript"===e||"superscript"===e){var l="subscript"===e?"SUPERSCRIPT":"SUBSCRIPT",c=s.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),l);a=s.EditorState.push(a,c,"change-inline-style")}a&&i(a)},t.changeKeys=function(e){if(e){var t={};return C(e,(function(e,n){t["CODE"===e?"monospace":e.toLowerCase()]=n})),t}},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={currentStyles:o?t.changeKeys(Object(l.getSelectionInlineStyle)(o)):{}},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(l.getSelectionInlineStyle)(t))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentStyles,s=t.component||re;return o.a.createElement(s,{config:t,translations:n,currentState:a,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&ie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pe(e,t){return(pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=me(e);if(t){var o=me(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function me(e){return(me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ce.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(15);var he=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pe(e,t)}(i,r.Component);var e,t,n=fe(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).getBlockTypes=function(e){return[{label:"Normal",displayName:e["components.controls.blocktype.normal"]},{label:"H1",displayName:e["components.controls.blocktype.h1"]},{label:"H2",displayName:e["components.controls.blocktype.h2"]},{label:"H3",displayName:e["components.controls.blocktype.h3"]},{label:"H4",displayName:e["components.controls.blocktype.h4"]},{label:"H5",displayName:e["components.controls.blocktype.h5"]},{label:"H6",displayName:e["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:e["components.controls.blocktype.blockquote"]},{label:"Code",displayName:e["components.controls.blocktype.code"]}]},t.state={blockTypes:t.getBlockTypes(e.translations)},t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.translations;t!==e.translations&&this.setState({blockTypes:this.getBlockTypes(t)})}},{key:"renderFlat",value:function(e){var t=this.props,n=t.config.className,r=t.onChange,i=t.currentState.blockType;return o.a.createElement("div",{className:u()("rdw-inline-wrapper",n)},e.map((function(e,t){return o.a.createElement(W,{key:t,value:e.label,active:i===e.label,onClick:r},e.displayName)})))}},{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,a=n.title,s=t.currentState.blockType,l=t.expanded,c=t.doExpand,d=t.onExpandEvent,p=t.doCollapse,f=t.onChange,m=t.translations,h=this.state.blockTypes.filter((function(e){return e.label===s})),g=h&&h[0]&&h[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(X,{className:u()("rdw-block-dropdown",r),optionWrapperClassName:u()(i),onChange:f,expanded:l,doExpand:c,doCollapse:p,onExpandEvent:d,title:a||m["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,g||m["components.controls.blocktype.blocktype"]),e.map((function(e,t){return o.a.createElement(J,{active:s===e.label,value:e.label,key:t},e.displayName)}))))}},{key:"render",value:function(){var e=this.props.config,t=e.inDropdown,n=this.state.blockTypes.filter((function(t){var n=t.label;return-1<e.options.indexOf(n)}));return t?this.renderInDropdown(n):this.renderFlat(n)}}])&&de(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();he.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var ge=he;function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t){return(ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xe(e);if(t){var o=xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var we=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(i,r.Component);var e,t,n=be(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.blocksTypes.find((function(t){return t.label===e})).style,r=t.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleBlockType(o,n);a&&i(a)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:!1,currentBlockType:r?Object(l.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(l.getSelectedBlocksType)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentBlockType,s=t.component||ge,l=this.blocksTypes.find((function(e){return e.style===a}));return o.a.createElement(s,{config:t,translations:n,currentState:{blockType:l&&l.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();we.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var je=we;function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e,t){return(Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=De(e);if(t){var o=De(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(16);var Te=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Me(e,t)}(i,r.Component);var e,t,n=ze(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-size");t=t.substring(0,t.length-2),this.setState({defaultFontSize:t})}}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.dropdownClassName,a=t.options,s=t.title,l=e.onChange,c=e.expanded,d=e.doCollapse,p=e.onExpandEvent,f=e.doExpand,m=e.translations,h=this.props.currentState.fontSize,g=this.state.defaultFontSize;return g=Number(g),h=h||a&&0<=a.indexOf(g)&&g,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(X,{className:u()("rdw-fontsize-dropdown",r),optionWrapperClassName:u()(i),onChange:l,expanded:c,doExpand:f,doCollapse:d,onExpandEvent:p,title:s||m["components.controls.fontsize.fontsize"]},h?o.a.createElement("span",null,h):o.a.createElement("img",{src:n,alt:""}),a.map((function(e,t){return o.a.createElement(J,{className:"rdw-fontsize-option",active:h===e,value:e,key:t},e)}))))}}])&&Oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t){return(Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ke(e);if(t){var o=ke(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Te.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Le=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ee(e,t)}(i,r.Component);var e,t,n=Be(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontSize=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(l.toggleCustomInlineStyle)(r,"fontSize",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontSize:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(l.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentFontSize,s=t.component||Te,l=a&&Number(a.substring(9));return o.a.createElement(s,{config:t,translations:n,currentState:{fontSize:l},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t){return(We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function He(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Re(e);if(t){var o=Re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Re(e){return(Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Le.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(17);var Fe=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(i,r.Component);var e,t,n=He(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:t})}}},{key:"render",value:function(){var e=this.state.defaultFontFamily,t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,a=n.options,s=n.title,l=t.translations,c=t.onChange,d=t.expanded,p=t.doCollapse,f=t.onExpandEvent,m=t.doExpand,h=this.props.currentState.fontFamily;return h=h||a&&e&&a.some((function(t){return t.toLowerCase()===e.toLowerCase()}))&&e,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(X,{className:u()("rdw-fontfamily-dropdown",r),optionWrapperClassName:u()("rdw-fontfamily-optionwrapper",i),onChange:c,expanded:d,doExpand:m,doCollapse:p,onExpandEvent:f,title:s||l["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},h||l["components.controls.fontfamily.fontfamily"]),a.map((function(e,t){return o.a.createElement(J,{active:h===e,value:e,key:t},e)}))))}}])&&Se(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Fe.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Ve=Fe;function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ye(e,t){return(Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ge(e);if(t){var o=Ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ue=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ye(e,t)}(i,r.Component);var e,t,n=Ze(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontFamily=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(l.toggleCustomInlineStyle)(r,"fontFamily",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontFamily:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(l.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentFontFamily,s=t.component||Ve,l=a&&a.substring(11);return o.a.createElement(s,{translations:n,config:t,currentState:{fontFamily:l},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Xe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t){return(Je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$e(e);if(t){var o=$e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function $e(e){return($e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ue.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(18);var et=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Je(e,t)}(i,r.Component);var e,t,n=_e(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],e.toggleBlockType=function(t){(0,e.props.onChange)(t)},e.indent=function(){(0,e.props.onChange)("indent")},e.outdent=function(){(0,e.props.onChange)("outdent")},e}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState.listType,r=e.translations,i=e.indentDisabled,a=e.outdentDisabled,s=t.options,l=t.unordered,c=t.ordered,d=t.indent,p=t.outdent,f=t.className;return o.a.createElement("div",{className:u()("rdw-list-wrapper",f),"aria-label":"rdw-list-control"},0<=s.indexOf("unordered")&&o.a.createElement(W,{value:"unordered",onClick:this.toggleBlockType,className:u()(l.className),active:"unordered"===n,title:l.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:l.icon,alt:""})),0<=s.indexOf("ordered")&&o.a.createElement(W,{value:"ordered",onClick:this.toggleBlockType,className:u()(c.className),active:"ordered"===n,title:c.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:c.icon,alt:""})),0<=s.indexOf("indent")&&o.a.createElement(W,{onClick:this.indent,disabled:i,className:u()(d.className),title:d.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=s.indexOf("outdent")&&o.a.createElement(W,{onClick:this.outdent,disabled:a,className:u()(p.className),title:p.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:p.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this,t=this.props,n=t.config,r=t.expanded,i=t.doCollapse,a=t.doExpand,s=t.onExpandEvent,l=t.onChange,c=t.currentState.listType,d=t.translations,p=n.options,f=n.className,m=n.dropdownClassName,h=n.title;return o.a.createElement(X,{className:u()("rdw-list-dropdown",f),optionWrapperClassName:u()(m),onChange:l,expanded:r,doExpand:a,doCollapse:i,onExpandEvent:s,"aria-label":"rdw-list-control",title:h||d["components.controls.list.list"]},o.a.createElement("img",{src:z(n),alt:""}),this.options.filter((function(e){return 0<=p.indexOf(e)})).map((function(t,r){return o.a.createElement(J,{key:r,value:t,disabled:e.props["".concat(t,"Disabled")],className:u()("rdw-list-dropdownOption",n[t].className),active:c===t,title:n[t].title||d["components.controls.list.".concat(t)]},o.a.createElement("img",{src:n[t].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Ke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rt(e,t){return(rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=it(e);if(t){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}et.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object,indentDisabled:a.a.bool,outdentDisabled:a.a.bool};var at=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rt(e,t)}(i,r.Component);var e,t,n=ot(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){"unordered"===e?t.toggleBlockType("unordered-list-item"):"ordered"===e?t.toggleBlockType("ordered-list-item"):"indent"===e?t.adjustDepth(1):t.adjustDepth(-1)},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=s.RichUtils.toggleBlockType(o,e);i&&r(i)},t.adjustDepth=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=Object(l.changeDepth)(o,e,4);i&&r(i)},t.isIndentDisabled=function(){var e=t.props.editorState,n=t.state.currentBlock,r=Object(l.getBlockBeforeSelectedBlock)(e);return!r||!Object(l.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},t.isOutdentDisabled=function(){var e=t.state.currentBlock;return!e||!Object(l.isListBlock)(e)||e.get("depth")<=0};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={expanded:!1,currentBlock:o?Object(l.getSelectedBlock)(o):void 0},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(l.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,i=this.state,a=i.expanded,s=i.currentBlock,l=n.component||et;"unordered-list-item"===s.get("type")?e="unordered":"ordered-list-item"===s.get("type")&&(e="ordered");var c=this.isIndentDisabled(),u=this.isOutdentDisabled();return o.a.createElement(l,{config:n,translations:r,currentState:{listType:e},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:c,outdentDisabled:u})}}])&&nt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ct(e,t){return(ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===st(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}at.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(19);var pt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ct(e,t)}(i,r.Component);var e,t,n=ut(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,i=t.center,a=t.right,s=t.justify,l=t.className,c=e.onChange,d=e.currentState.textAlignment,p=e.translations;return o.a.createElement("div",{className:u()("rdw-text-align-wrapper",l),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(W,{value:"left",className:u()(r.className),active:"left"===d,onClick:c,title:r.title||p["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(W,{value:"center",className:u()(i.className),active:"center"===d,onClick:c,title:i.title||p["components.controls.textalign.center"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(W,{value:"right",className:u()(a.className),active:"right"===d,onClick:c,title:a.title||p["components.controls.textalign.right"]},o.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(W,{value:"justify",className:u()(s.className),active:"justify"===d,onClick:c,title:s.title||p["components.controls.textalign.justify"]},o.a.createElement("img",{src:s.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState.textAlignment,l=e.onChange,c=e.translations,d=t.options,p=t.left,f=t.center,m=t.right,h=t.justify,g=t.className,v=t.dropdownClassName,A=t.title;return o.a.createElement(X,{className:u()("rdw-text-align-dropdown",g),optionWrapperClassName:u()(v),onChange:l,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-textalign-control",title:A||c["components.controls.textalign.textalign"]},o.a.createElement("img",{src:s&&t[s]&&t[s].icon||z(t),alt:""}),0<=d.indexOf("left")&&o.a.createElement(J,{value:"left",active:"left"===s,className:u()("rdw-text-align-dropdownOption",p.className),title:p.title||c["components.controls.textalign.left"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=d.indexOf("center")&&o.a.createElement(J,{value:"center",active:"center"===s,className:u()("rdw-text-align-dropdownOption",f.className),title:f.title||c["components.controls.textalign.center"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=d.indexOf("right")&&o.a.createElement(J,{value:"right",active:"right"===s,className:u()("rdw-text-align-dropdownOption",m.className),title:m.title||c["components.controls.textalign.right"]},o.a.createElement("img",{src:m.icon,alt:""})),0<=d.indexOf("justify")&&o.a.createElement(J,{value:"justify",active:"justify"===s,className:u()("rdw-text-align-dropdownOption",h.className),title:h.title||c["components.controls.textalign.justify"]},o.a.createElement("img",{src:h.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&<(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ht(e,t){return(ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vt(e);if(t){var o=vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function vt(e){return(vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}pt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var At=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ht(e,t)}(i,r.Component);var e,t,n=gt(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addBlockAlignmentData=function(e){var n=t.props,r=n.editorState;(0,n.onChange)(t.state.currentTextAlignment!==e?Object(l.setBlockData)(r,{"text-align":e}):Object(l.setBlockData)(r,{"text-align":void 0}))};var r=t.props.modalHandler;return t.state={currentTextAlignment:void 0},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(l.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentTextAlignment,s=t.component||pt;return o.a.createElement(s,{config:t,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&mt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xt(e,t){return(xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jt(e);if(t){var o=jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function jt(e){return(jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}At.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(20);var Ct=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xt(e,t)}(i,r.Component);var e,t,n=wt(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(e=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},e.onChange=function(t){(0,e.props.onChange)(e.state.currentStyle,t)},e.setCurrentStyleColor=function(){e.setState({currentStyle:"color"})},e.setCurrentStyleBgcolor=function(){e.setState({currentStyle:"bgcolor"})},e.renderModal=function(){var t=e.props,n=t.config,r=n.popupClassName,i=n.colors,a=t.currentState,s=a.color,l=a.bgColor,c=t.translations,d=e.state.currentStyle,p="color"===d?s:l;return o.a.createElement("div",{className:u()("rdw-colorpicker-modal",r),onClick:M},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===d}),onClick:e.setCurrentStyleColor},c["components.controls.colorpicker.text"]),o.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===d}),onClick:e.setCurrentStyleBgcolor},c["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map((function(t,n){return o.a.createElement(W,{value:t,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:p===t,onClick:e.onChange},o.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))}))))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-color-picker",title:i||l["components.controls.colorpicker.colorpicker"]},o.a.createElement(W,{onClick:s,className:u()(r)},o.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&bt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Ct.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Ot=Ct;function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dt(e,t){return(Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pt(e);if(t){var o=Pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Mt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dt(e,t)}(i,r.Component);var e,t,n=Tt(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleColor=function(e,n){var r=t.props,o=r.editorState,i=r.onChange,a=Object(l.toggleCustomInlineStyle)(o,e,n);a&&i(a),t.doCollapse()};var r=e.editorState,o=e.modalHandler,a={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(a.currentColor=Object(l.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,a.currentBgColor=Object(l.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),t.state=a,o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentColor:Object(l.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR,currentBgColor:Object(l.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.currentColor,a=r.currentBgColor,s=r.expanded,l=t.component||Ot,c=i&&i.substring(6),u=a&&a.substring(8);return o.a.createElement(l,{config:t,translations:n,onChange:this.toggleColor,expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:c,bgColor:u}})}}])&&zt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Nt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Et=Nt,Bt=n(7),kt=n.n(Bt);function Lt(e){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function St(e,t){return(St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ht(e);if(t){var o=Ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(26);var Rt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&St(e,t)}(i,r.Component);var e,t,n=Wt(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:e.props.config.defaultTargetOption},e.removeLink=function(){(0,e.props.onChange)("unlink")},e.addLink=function(){var t=e.props.onChange,n=e.state;t("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.updateTargetOption=function(t){e.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},e.hideModal=function(){e.setState({showModal:!1})},e.signalExpandShowModal=function(){var t=e.props,n=t.onExpandEvent,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},e.forceExpandAndShowModal=function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,i=this.state,a=i.linkTitle,s=i.linkTarget,l=i.linkTargetOption;return o.a.createElement("div",{className:u()("rdw-link-modal",t),onClick:M},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:a}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:s}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===l,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!s||!a},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,i=t.unlink,a=t.className,s=e.currentState,l=e.expanded,c=e.translations,d=this.state.showModal;return o.a.createElement("div",{className:u()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(W,{value:"unordered-list-item",className:u()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":d,title:r.title||c["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(W,{disabled:!s.link,value:"ordered-list-item",className:u()(i.className),onClick:this.removeLink,title:i.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:i.icon,alt:""})),l&&d?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,i=e.doExpand,a=e.onChange,s=e.config,l=e.currentState,c=e.translations,d=s.options,p=s.link,f=s.unlink,m=s.className,h=s.dropdownClassName,g=s.title,v=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:g},o.a.createElement(X,{className:u()("rdw-link-dropdown",m),optionWrapperClassName:u()(h),onChange:a,expanded:t&&!v,doExpand:i,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:z(s),alt:""}),0<=d.indexOf("link")&&o.a.createElement(J,{onClick:this.forceExpandAndShowModal,className:u()("rdw-link-dropdownoption",p.className),title:p.title||c["components.controls.link.link"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=d.indexOf("unlink")&&o.a.createElement(J,{onClick:this.removeLink,disabled:!l.link,className:u()("rdw-link-dropdownoption",f.className),title:f.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:f.icon,alt:""}))),t&&v?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&It(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Rt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var Ft=Rt;function Vt(e){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xt(e,t){return(Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zt(e);if(t){var o=Zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Zt(e){return(Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e){var t=Jt.match(e.target);return Ut(Ut({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var Jt=kt()(),_t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}(i,r.Component);var e,t,n=Yt(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e,n,r,o){var i=t.props.config.linkCallback;if("link"===e){var a=(i||Kt)({title:n,target:r,targetOption:o});t.addLink(a.title,a.target,a.targetOption)}else t.removeLink()},t.getCurrentValues=function(){var e=t.props.editorState,n=t.state.currentEntity,r=e.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var i=n&&Object(l.getEntityRange)(e,n);o.link.target=n&&r.getEntity(n).get("data").url,o.link.targetOption=n&&r.getEntity(n).get("data").targetOption,o.link.title=i&&i.text}return o.selectionText=Object(l.getSelectionText)(e),o},t.doExpand=function(){t.setState({expanded:!0})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doCollapse=function(){t.setState({expanded:!1})},t.removeLink=function(){var e=t.props,n=e.editorState,r=e.onChange,o=t.state.currentEntity,i=n.getSelection();if(o){var a=Object(l.getEntityRange)(n,o);i=i.getIsBackward()?i.merge({anchorOffset:a.end,focusOffset:a.start}):i.merge({anchorOffset:a.start,focusOffset:a.end}),r(s.RichUtils.toggleLink(n,i,null))}},t.addLink=function(e,n,r){var o=t.props,i=o.editorState,a=o.onChange,c=t.state.currentEntity,u=i.getSelection();if(c){var d=Object(l.getEntityRange)(i,c);u=u.getIsBackward()?u.merge({anchorOffset:d.end,focusOffset:d.start}):u.merge({anchorOffset:d.start,focusOffset:d.end})}var p=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),f=s.Modifier.replaceText(i.getCurrentContent(),u,"".concat(e),i.getCurrentInlineStyle(),p),m=s.EditorState.push(i,f,"insert-characters");u=m.getSelection().merge({anchorOffset:u.get("anchorOffset")+e.length,focusOffset:u.get("anchorOffset")+e.length}),m=s.EditorState.acceptSelection(m,u),f=s.Modifier.insertText(m.getCurrentContent(),u," ",m.getCurrentInlineStyle(),void 0),a(s.EditorState.push(m,f,"insert-characters")),t.doCollapse()};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(l.getSelectionEntity)(o):void 0},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(l.getSelectionEntity)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=this.getCurrentValues(),a=i.link,s=i.selectionText,l=t.component||Ft;return o.a.createElement(l,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:s},onChange:this.onChange})}}])&&Qt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();_t.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var $t=_t;function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nn(e,t){return(nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=on(e);if(t){var o=on(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===en(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(27);var an=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nn(e,t)}(i,r.Component);var e,t,n=rn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width},e.onChange=function(){var t=e.props.onChange,n=e.state;t(n.embeddedLink,n.height,n.width)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,r=t.config;if(!n&&e.expanded){var o=r.defaultSize,i=o.height,a=o.width;this.setState({embeddedLink:"",height:i,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,r=e.width,i=this.props,a=i.config.popupClassName,s=i.doCollapse,l=i.translations;return o.a.createElement("div",{className:u()("rdw-embedded-modal",a),onClick:M},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},l["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:l["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!r},l["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:s},l["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},o.a.createElement(W,{className:u()(r),value:"unordered-list-item",onClick:s,title:i||l["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),a?this.rendeEmbeddedLinkModal():void 0)}}])&&tn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();an.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object,doCollapse:a.a.func};var sn=an;function ln(e){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function un(e,t){return(un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pn(e);if(t){var o=pn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ln(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function pn(e){return(pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&un(e,t)}(i,r.Component);var e,t,n=dn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmbeddedLink=function(t,n,r){var o=e.props,i=o.editorState,a=o.onChange,l=o.config.embedCallback,c=l?l(t):t,u=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:c,height:n,width:r}).getLastCreatedEntityKey();a(s.AtomicBlockUtils.insertAtomicBlock(i,u," ")),e.doCollapse()},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||sn;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&cn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();fn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var mn=fn;function hn(e){return(hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t){return(vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yn(e);if(t){var o=yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function yn(e){return(yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(28);var bn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vn(e,t)}(i,r.Component);var e,t,n=An(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t.target.innerHTML)},e}return e=i,(t=[{key:"renderEmojiModal",value:function(){var e=this,t=this.props.config,n=t.popupClassName,r=t.emojis;return o.a.createElement("div",{className:u()("rdw-emoji-modal",n),onClick:M},r.map((function(t,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:e.onChange},t)})))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":a,title:i||l["components.controls.emoji.emoji"]},o.a.createElement(W,{className:u()(r),value:"unordered-list-item",onClick:s},o.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&gn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();bn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var xn=bn;function wn(e){return(wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cn(e,t){return(Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function On(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mn(e);if(t){var o=Mn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===wn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Mn(e){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cn(e,t)}(i,r.Component);var e,t,n=On(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmoji=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=s.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());o(s.EditorState.push(r,i,"insert-characters")),e.doCollapse()},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||xn;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&jn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Dn(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nn(e,t){return(Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function En(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bn(e);if(t){var o=Bn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Tn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Bn(e){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}zn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(29),n(30);var kn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nn(e,t)}(i,r.Component);var e,t,n=En(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:e.props.config.uploadEnabled&&!!e.props.config.uploadCallback,showImageLoading:!1,height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width,alt:""},e.onDragEnter=function(t){e.stopPropagation(t),e.setState({dragEnter:!0})},e.onImageDrop=function(t){var n,r;t.preventDefault(),t.stopPropagation(),e.setState({dragEnter:!1}),r=t.dataTransfer.items?(n=t.dataTransfer.items,!0):(n=t.dataTransfer.files,!1);for(var o=0;o<n.length;o+=1)if((!r||"file"===n[o].kind)&&n[o].type.match("^image/")){var i=r?n[o].getAsFile():n[o];e.uploadImage(i)}},e.showImageUploadOption=function(){e.setState({uploadHighlighted:!0})},e.addImageFromState=function(){var t=e.state,n=t.imgSrc,r=t.alt,o=e.state,i=o.height,a=o.width,s=e.props.onChange;isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),s(n,i,a,r)},e.showImageURLOption=function(){e.setState({uploadHighlighted:!1})},e.toggleShowImageLoading=function(){var t=!e.state.showImageLoading;e.setState({showImageLoading:t})},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.selectImage=function(t){t.target.files&&0<t.target.files.length&&e.uploadImage(t.target.files[0])},e.uploadImage=function(t){e.toggleShowImageLoading(),(0,e.props.config.uploadCallback)(t).then((function(t){var n=t.data;e.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),e.fileUpload=!1})).catch((function(){e.setState({showImageLoading:!1,dragEnter:!1})}))},e.fileUploadClick=function(t){e.fileUpload=!0,t.stopPropagation()},e.stopPropagation=function(t){e.fileUpload?e.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"renderAddImageModal",value:function(){var e=this.state,t=e.imgSrc,n=e.uploadHighlighted,r=e.showImageLoading,i=e.dragEnter,a=e.height,s=e.width,l=e.alt,c=this.props,d=c.config,p=d.popupClassName,f=d.uploadCallback,m=d.uploadEnabled,h=d.urlEnabled,g=d.previewImage,v=d.inputAccept,A=d.alt,y=c.doCollapse,b=c.translations;return o.a.createElement("div",{className:u()("rdw-image-modal",p),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},m&&f&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},b["components.controls.image.fileUpload"],o.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),h&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},b["components.controls.image.byURL"],o.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:u()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":i})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},g&&t?o.a.createElement("img",{src:t,alt:t,className:"rdw-image-modal-upload-option-image-preview"}):t||b["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:v,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:b["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:t}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),A.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:l,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},A.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!t||!a||!s||A.mandatory&&!l},b["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:y},b["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement(Dn,null)):void 0)}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},o.a.createElement(W,{className:u()(r),value:"unordered-list-item",onClick:s,title:i||l["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),a?this.renderAddImageModal():void 0)}}])&&Pn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();kn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var Ln=kn;function In(e){return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wn(e,t){return(Wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Hn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Rn(e);if(t){var o=Rn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===In(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Rn(e){return(Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wn(e,t)}(i,r.Component);var e,t,n=Hn(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.addImage=function(e,n,r,o){var i=t.props,a=i.editorState,l=i.onChange,c={src:e,height:n,width:r};i.config.alt.present&&(c.alt=o);var u=a.getCurrentContent().createEntity("IMAGE","MUTABLE",c).getLastCreatedEntityKey();l(s.AtomicBlockUtils.insertAtomicBlock(a,u," ")),t.doCollapse()};var r=t.props.modalHandler;return t.state={expanded:!1},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||Ln;return o.a.createElement(i,{config:t,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Sn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Vn(e){var t=e.config,n=e.onChange,r=e.translations,i=t.icon,a=t.className,s=t.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(W,{className:u()(a),onClick:n,title:s||r["components.controls.remove.remove"]},o.a.createElement("img",{src:i,alt:""})))}Fn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Qn=Fn;n(31),Vn.propTypes={onChange:a.a.func,config:a.a.object,translations:a.a.object};var Xn=Vn;function Yn(e){return(Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gn(e,t){return(Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qn(e);if(t){var o=qn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function qn(e){return(qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gn(e,t)}(i,r.Component);var e,t,n=Un(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.removeInlineStyles=function(){var t=e.props,n=t.editorState;(0,t.onChange)(e.removeAllInlineStyles(n))},e.removeAllInlineStyles=function(e){var t=e.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(n){t=s.Modifier.removeInlineStyle(t,e.getSelection(),n)})),C(Object(l.getSelectionCustomInlineStyle)(e,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),(function(n,r){r&&(t=s.Modifier.removeInlineStyle(t,e.getSelection(),r))})),s.EditorState.push(e,t,"change-inline-style")},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||Xn;return o.a.createElement(i,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Zn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Jn(e){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $n(e,t){return($n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function er(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tr(e);if(t){var o=tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function tr(e){return(tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Kn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,config:a.a.object,translations:a.a.object,modalHandler:a.a.object},n(32);var nr=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$n(e,t)}(i,r.Component);var e,t,n=er(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t)},e}return e=i,(t=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState,l=s.undoDisabled,c=s.redoDisabled,d=e.translations,p=t.options,f=t.undo,m=t.redo,h=t.className,g=t.dropdownClassName,v=t.title;return o.a.createElement(X,{className:u()("rdw-history-dropdown",h),optionWrapperClassName:u()(g),expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-history-control",title:v||d["components.controls.history.history"]},o.a.createElement("img",{src:z(t),alt:""}),0<=p.indexOf("undo")&&o.a.createElement(J,{value:"undo",onClick:this.onChange,disabled:l,className:u()("rdw-history-dropdownoption",f.className),title:f.title||d["components.controls.history.undo"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("redo")&&o.a.createElement(J,{value:"redo",onClick:this.onChange,disabled:c,className:u()("rdw-history-dropdownoption",m.className),title:m.title||d["components.controls.history.redo"]},o.a.createElement("img",{src:m.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,i=t.redo,a=t.className,s=e.currentState,l=s.undoDisabled,c=s.redoDisabled,d=e.translations;return o.a.createElement("div",{className:u()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(W,{value:"undo",onClick:this.onChange,className:u()(r.className),disabled:l,title:r.title||d["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(W,{value:"redo",onClick:this.onChange,className:u()(i.className),disabled:c,title:i.title||d["components.controls.history.redo"]},o.a.createElement("img",{src:i.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&_n(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ir(e,t){return(ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ar(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sr(e);if(t){var o=sr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function sr(e){return(sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}nr.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var lr=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ir(e,t)}(i,r.Component);var e,t,n=ar(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=s.EditorState[e](r);i&&o(i)},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r={expanded:!(t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=e.editorState,a=e.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),t.state=r,a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.undoDisabled,a=r.redoDisabled,s=r.expanded,l=t.component||nr;return o.a.createElement(l,{config:t,translations:n,currentState:{undoDisabled:i,redoDisabled:a},expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&or(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();lr.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var cr={inline:ce,blockType:je,fontSize:Le,fontFamily:Ue,list:at,textAlign:At,colorPicker:Et,link:$t,embedded:mn,emoji:zn,image:Qn,remove:Kn,history:lr},ur=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,dr=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function pr(e){return String(e).replace(ur,"").match(dr)?e:"#"}function fr(e){return(fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hr(e,t){return(hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vr(e);if(t){var o=vr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function vr(e){return(vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ar(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()}),t)}function yr(e){var t,n=e.showOpenOptionOnHover;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hr(e,t)}(a,r.Component);var e,t,i=gr(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={showPopOver:!1},e.openLink=function(){var t=e.props,n=t.entityKey,r=t.contentState.getEntity(n).getData().url,o=window.open(pr(r),"blank");o&&o.focus()},e.toggleShowPopOver=function(){var t=!e.state.showPopOver;e.setState({showPopOver:t})},e}return e=a,(t=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.entityKey,i=e.contentState.getEntity(r).getData(),a=i.url,s=i.targetOption,l=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:pr(a),target:s},t),l&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&mr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}()).propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},t}function br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xr(e,t,n){return t&&br(e.prototype,t),n&&br(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n(33),n(34);var wr=xr((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getMentionComponent=function(){function e(e){var n=e.entityKey,r=e.children,i=e.contentState.getEntity(n).getData(),a=i.url,s=i.value;return o.a.createElement("a",{href:a||s,className:u()("rdw-mention-link",t)},r)}var t=n.className;return e.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},e},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=t}));wr.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()}),t)};var jr=wr;function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Or(e,t){return(Or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zr(e);if(t){var o=zr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Cr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function zr(e){return(zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tr(e,t,n){return t&&Dr(e.prototype,t),n&&Dr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(35);var Nr=Tr((function e(t){var n=this;Pr(this,e),this.findSuggestionEntities=function(e,t){if(n.config.getEditorState()){var r=n.config,o=r.separator,i=r.trigger,a=r.getSuggestions,s=(0,r.getEditorState)().getSelection();if(s.get("anchorKey")===e.get("key")&&s.get("anchorKey")===s.get("focusKey")){var l=e.getText(),c=(l=l.substr(0,s.get("focusOffset")===l.length-1?l.length:s.get("focusOffset")+1)).lastIndexOf(o+i),u=o+i;if((void 0===c||c<0)&&l[0]===i&&(c=0,u=i),0<=c){var d=l.substr(c+u.length,l.length);a().some((function(e){return!!e.value&&(n.config.caseSensitive?0<=e.value.indexOf(d):0<=e.value.toLowerCase().indexOf(d&&d.toLowerCase()))}))&&t(0===c?0:c+1,l.length)}}}},this.getSuggestionComponent=function(){var e,t=this.config;return(e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Or(e,t)}(n,r.Component);var e=Mr(n);function n(){var r;Pr(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=e.call.apply(e,[this].concat(i))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(e){var t=r.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=t+1):"ArrowUp"===e.key?n.activeOption=t<=0?r.filteredSuggestions.length-1:t-1:"Escape"===e.key?(n.showSuggestions=!1,x()):"Enter"===e.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(e){var t=e.target.getAttribute("data-index");r.setState({activeOption:t})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(e){r.suggestion=e},r.setDropdownReference=function(e){r.dropdown=e},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(e){var n=e.children[0].props.text.substr(1),o=t.getSuggestions();r.filteredSuggestions=o&&o.filter((function(e){return!n||0===n.length||(t.caseSensitive?0<=e.value.indexOf(n):0<=e.value.toLowerCase().indexOf(n&&n.toLowerCase()))}))},r.addMention=function(){var e=r.state.activeOption,n=t.getEditorState(),o=t.onChange,i=t.separator,a=t.trigger,c=r.filteredSuggestions[e];c&&function(e,t,n,r,o){var i=o.value,a=o.url,c=e.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(i),value:i,url:a}).getLastCreatedEntityKey(),u=Object(l.getSelectedBlock)(e).getText(),d=e.getSelection().focusOffset,p=(u.lastIndexOf(n+r,d)||0)+1,f=!1;u.length===p+1&&(d=u.length)," "===u[d]&&(f=!0);var m=e.getSelection().merge({anchorOffset:p,focusOffset:d}),h=s.EditorState.acceptSelection(e,m),g=s.Modifier.replaceText(h.getCurrentContent(),m,"".concat(r).concat(i),h.getCurrentInlineStyle(),c);h=s.EditorState.push(h,g,"insert-characters"),f||(m=h.getSelection().merge({anchorOffset:p+i.length+r.length,focusOffset:p+i.length+r.length}),h=s.EditorState.acceptSelection(h,m),g=s.Modifier.insertText(h.getCurrentContent(),m," ",h.getCurrentInlineStyle(),void 0)),t(s.EditorState.push(h,g,"insert-characters"))}(n,o,i,a,c)},r}return Tr(n,[{key:"componentDidMount",value:function(){var e,n,r,o=t.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();o.width<i.left-o.left+a.width?n=15:e=15,o.bottom<a.bottom&&(r=0),this.setState({style:{left:e,right:n,bottom:r}}),y.registerCallBack(this.onEditorKeyDown),b(),t.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.filterSuggestions(e),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){y.deregisterCallBack(this.onEditorKeyDown),x(),t.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e=this,n=this.props.children,r=this.state,i=r.activeOption,a=r.showSuggestions,s=t.dropdownClassName,l=t.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:t.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,n),a&&o.a.createElement("span",{className:u()("rdw-suggestion-dropdown",s),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map((function(t,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:e.addMention,"data-index":n,onMouseEnter:e.onOptionMouseEnter,onMouseLeave:e.onOptionMouseLeave,className:u()("rdw-suggestion-option",l,{"rdw-suggestion-option-active":n===i})},t.text)}))))}}]),n}()).propTypes={children:a.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=t.separator,c=t.trigger,d=t.getSuggestions,p=t.onChange,f=t.getEditorState,m=t.getWrapperRef,h=t.caseSensitive,g=t.dropdownClassName,v=t.optionClassName,A=t.modalHandler;this.config={separator:i,trigger:c,getSuggestions:d,onChange:p,getEditorState:f,getWrapperRef:m,caseSensitive:h,dropdownClassName:g,optionClassName:v,modalHandler:A}})),Er=function(e){return[new jr(e.mentionClassName).getMentionDecorator(),new Nr(e).getSuggestionDecorator()]};function Br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kr(e,t,n){return t&&Br(e.prototype,t),n&&Br(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(e){var t=e.block,n=e.contentState.getEntity(t.getEntityAt(0)).getData(),r=n.src,i=n.height,a=n.width;return o.a.createElement("iframe",{height:i,width:a,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var Ir=kr((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getHashtagComponent=function(){function e(e){var n=e.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:u()("rdw-hashtag-link",t)},n)}var t=n.className;return e.propTypes={children:a.a.object},e},this.findHashtagEntities=function(e,t){for(var r=e.getText(),o=0,i=0;0<r.length&&0<=o;)if(r[0]===n.hashCharacter?(i=o=0,r=r.substr(n.hashCharacter.length)):0<=(o=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(o+(n.separator+n.hashCharacter).length),i+=o+n.separator.length),0<=o){var a=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,s=r.substr(0,a);s&&0<s.length&&(t(i,i+s.length+n.hashCharacter.length),i+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "})),Sr=function(e){return new Ir(e).getHashtagDecorator()};Lr.propTypes={block:a.a.object,contentState:a.a.object};var Wr=Lr;function Hr(e){return(Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fr(e,t){return(Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qr(e);if(t){var o=Qr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Hr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Qr(e){return(Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(37);var Xr=function(e){var t;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fr(e,t)}(a,r.Component);var t,n,i=Vr(a);function a(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=i.call.apply(i,[this].concat(r))).state={hovered:!1},t.setEntityAlignmentLeft=function(){t.setEntityAlignment("left")},t.setEntityAlignmentRight=function(){t.setEntityAlignment("right")},t.setEntityAlignmentCenter=function(){t.setEntityAlignment("none")},t.setEntityAlignment=function(n){var r=t.props,o=r.block,i=r.contentState,a=o.getEntityAt(0);i.mergeEntityData(a,{alignment:n}),e.onChange(s.EditorState.push(e.getEditorState(),i,"change-block-data")),t.setState({dummy:!0})},t.toggleHovered=function(){var e=!t.state.hovered;t.setState({hovered:e})},t}return t=a,(n=[{key:"renderAlignmentOptions",value:function(e){return o.a.createElement("div",{className:u()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===e})},o.a.createElement(W,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(W,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(W,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var t=this.props,n=t.block,r=t.contentState,i=this.state.hovered,a=e.isReadOnly,s=e.isImageAlignmentEnabled,l=r.getEntity(n.getEntityAt(0)).getData(),c=l.src,d=l.alignment,p=l.height,f=l.width,m=l.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:u()("rdw-image-alignment",{"rdw-image-left":"left"===d,"rdw-image-right":"right"===d,"rdw-image-center":!d||"none"===d})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:c,alt:m,style:{height:p,width:f}}),!a()&&i&&s()?this.renderAlignmentOptions(d):void 0))}}])&&Rr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}()).propTypes={block:a.a.object,contentState:a.a.object},t},Yr=function(e,t){return function(n){if("function"==typeof t){var r=t(n,e,e.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=e.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:Xr(e),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:Wr,editable:!1}}}},Zr={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},Gr={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Précédent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"Téléchargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour télécharger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fenêtre","components.controls.link.link":"Lier","components.controls.link.unlink":"Délier","components.controls.list.list":"Liste","components.controls.list.unordered":"Désordonnée","components.controls.list.ordered":"Ordonnée","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"添加","generic.cancel":"取消","components.controls.blocktype.h1":"标题1","components.controls.blocktype.h2":"标题2","components.controls.blocktype.h3":"标题3","components.controls.blocktype.h4":"标题4","components.controls.blocktype.h5":"标题5","components.controls.blocktype.h6":"标题6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"源码","components.controls.blocktype.blocktype":"样式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"选色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"内嵌","components.controls.embedded.embeddedlink":"内嵌网页","components.controls.embedded.enterlink":"输入网页地址","components.controls.emoji.emoji":"表情符号","components.controls.fontfamily.fontfamily":"字体","components.controls.fontsize.fontsize":"字号","components.controls.history.history":"历史","components.controls.history.undo":"撤销","components.controls.history.redo":"恢复","components.controls.image.image":"图片","components.controls.image.fileUpload":"来自文件","components.controls.image.byURL":"在线图片","components.controls.image.dropFileText":"点击或者拖拽文件上传","components.controls.inline.bold":"粗体","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下划线","components.controls.inline.strikethrough":"删除线","components.controls.inline.monospace":"等宽字体","components.controls.inline.superscript":"上标","components.controls.inline.subscript":"下标","components.controls.link.linkTitle":"超链接","components.controls.link.linkTarget":"输入链接地址","components.controls.link.linkTargetOption":"在新窗口中打开链接","components.controls.link.link":"链接","components.controls.link.unlink":"删除链接","components.controls.list.list":"列表","components.controls.list.unordered":"项目符号","components.controls.list.ordered":"编号","components.controls.list.indent":"增加缩进量","components.controls.list.outdent":"减少缩进量","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文本对齐","components.controls.textalign.left":"文本左对齐","components.controls.textalign.center":"居中","components.controls.textalign.right":"文本右对齐","components.controls.textalign.justify":"两端对齐"},ru:{"generic.add":"Добавить","generic.cancel":"Отменить","components.controls.blocktype.h1":"Заголовок 1","components.controls.blocktype.h2":"Заголовок 2","components.controls.blocktype.h3":"Заголовок 3","components.controls.blocktype.h4":"Заголовок 4","components.controls.blocktype.h5":"Заголовок 5","components.controls.blocktype.h6":"Заголовок 6","components.controls.blocktype.blockquote":"Цитата","components.controls.blocktype.code":"Код","components.controls.blocktype.blocktype":"Форматирование","components.controls.blocktype.normal":"Обычный","components.controls.colorpicker.colorpicker":"Выбор цвета","components.controls.colorpicker.text":"Текст","components.controls.colorpicker.background":"Фон","components.controls.embedded.embedded":"Встраивание","components.controls.embedded.embeddedlink":"Ссылка в iFrame","components.controls.embedded.enterlink":"Вставьте ссылку","components.controls.emoji.emoji":"Эмодзи","components.controls.fontfamily.fontfamily":"Шрифт","components.controls.fontsize.fontsize":"Размер шрифта","components.controls.history.history":"История","components.controls.history.undo":"Отменить","components.controls.history.redo":"Вернуть","components.controls.image.image":"Изображение","components.controls.image.fileUpload":"Файлы","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Переместите в эту область файлы или кликните для загрузки","components.controls.inline.bold":"Жирный","components.controls.inline.italic":"Курсив","components.controls.inline.underline":"Подчеркивание","components.controls.inline.strikethrough":"Зачеркивание","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Верхний индекс","components.controls.inline.subscript":"Нижний индекс","components.controls.link.linkTitle":"Текст","components.controls.link.linkTarget":"Адрес ссылки","components.controls.link.linkTargetOption":"Открывать в новом окне","components.controls.link.link":"Ссылка","components.controls.link.unlink":"Убрать ссылку","components.controls.list.list":"Список","components.controls.list.unordered":"Неупорядоченный","components.controls.list.ordered":"Упорядоченный","components.controls.list.indent":"Отступ","components.controls.list.outdent":"Выступ","components.controls.remove.remove":"Удалить","components.controls.textalign.textalign":"Выравнивание текста","components.controls.textalign.left":"Слева","components.controls.textalign.center":"По центру","components.controls.textalign.right":"Справа","components.controls.textalign.justify":"Выравнить"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"Título 1","components.controls.blocktype.h2":"Título 2","components.controls.blocktype.h3":"Título 3","components.controls.blocktype.h4":"Título 4","components.controls.blocktype.h5":"Título 5","components.controls.blocktype.h6":"Título 6","components.controls.blocktype.blockquote":"Citação","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Histórico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"Itálico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"Título do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem ordenção","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"À Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"À Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"입력","generic.cancel":"취소","components.controls.blocktype.h1":"제목1","components.controls.blocktype.h2":"제목2","components.controls.blocktype.h3":"제목3","components.controls.blocktype.h4":"제목4","components.controls.blocktype.h5":"제목5","components.controls.blocktype.h6":"제목6","components.controls.blocktype.blockquote":"인용","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"블록","components.controls.blocktype.normal":"표준","components.controls.colorpicker.colorpicker":"색상 선택","components.controls.colorpicker.text":"글꼴색","components.controls.colorpicker.background":"배경색","components.controls.embedded.embedded":"임베드","components.controls.embedded.embeddedlink":"임베드 링크","components.controls.embedded.enterlink":"주소를 입력하세요","components.controls.emoji.emoji":"이모지","components.controls.fontfamily.fontfamily":"글꼴","components.controls.fontsize.fontsize":"글꼴 크기","components.controls.history.history":"히스토리","components.controls.history.undo":"실행 취소","components.controls.history.redo":"다시 실행","components.controls.image.image":"이미지","components.controls.image.fileUpload":"파일 업로드","components.controls.image.byURL":"주소","components.controls.image.dropFileText":"클릭하거나 파일을 드롭하여 업로드하세요","components.controls.inline.bold":"굵게","components.controls.inline.italic":"기울임꼴","components.controls.inline.underline":"밑줄","components.controls.inline.strikethrough":"취소선","components.controls.inline.monospace":"고정 너비","components.controls.inline.superscript":"위 첨자","components.controls.inline.subscript":"아래 첨자","components.controls.link.linkTitle":"링크 제목","components.controls.link.linkTarget":"링크 타겟","components.controls.link.linkTargetOption":"새창으로 열기","components.controls.link.link":"링크","components.controls.link.unlink":"링크 제거","components.controls.list.list":"리스트","components.controls.list.unordered":"일반 리스트","components.controls.list.ordered":"순서 리스트","components.controls.list.indent":"들여쓰기","components.controls.list.outdent":"내어쓰기","components.controls.remove.remove":"삭제","components.controls.textalign.textalign":"텍스트 정렬","components.controls.textalign.left":"왼쪽","components.controls.textalign.center":"중앙","components.controls.textalign.right":"오른쪽","components.controls.textalign.justify":"양쪽"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzufügen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"Überschrift 1","components.controls.blocktype.h2":"Überschrift 2","components.controls.blocktype.h3":"Überschrift 3","components.controls.blocktype.h4":"Überschrift 4","components.controls.blocktype.h5":"Überschrift 5","components.controls.blocktype.h6":"Überschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgröße","components.controls.history.history":"Historie","components.controls.history.undo":"Zurücknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster öffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufzählung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergrößern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksbündig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsbündig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilføj","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontstørrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverførsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hævet","components.controls.inline.subscript":"Sænket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link Mål","components.controls.link.linkTargetOption":"Åbn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"Højre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"新增","generic.cancel":"取消","components.controls.blocktype.h1":"標題1","components.controls.blocktype.h2":"標題2","components.controls.blocktype.h3":"標題3","components.controls.blocktype.h4":"標題4","components.controls.blocktype.h5":"標題5","components.controls.blocktype.h6":"標題6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"程式碼","components.controls.blocktype.blocktype":"樣式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"選色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"內嵌","components.controls.embedded.embeddedlink":"內嵌網頁","components.controls.embedded.enterlink":"輸入網頁地址","components.controls.emoji.emoji":"表情符號","components.controls.fontfamily.fontfamily":"字體","components.controls.fontsize.fontsize":"字體大小","components.controls.history.history":"歷史紀錄","components.controls.history.undo":"復原","components.controls.history.redo":"重做","components.controls.image.image":"圖片","components.controls.image.fileUpload":"檔案上傳","components.controls.image.byURL":"網址","components.controls.image.dropFileText":"點擊或拖曳檔案上傳","components.controls.inline.bold":"粗體","components.controls.inline.italic":"斜體","components.controls.inline.underline":"底線","components.controls.inline.strikethrough":"刪除線","components.controls.inline.monospace":"等寬字體","components.controls.inline.superscript":"上標","components.controls.inline.subscript":"下標","components.controls.link.linkTitle":"超連結","components.controls.link.linkTarget":"輸入連結位址","components.controls.link.linkTargetOption":"在新視窗打開連結","components.controls.link.link":"連結","components.controls.link.unlink":"刪除連結","components.controls.list.list":"列表","components.controls.list.unordered":"項目符號","components.controls.list.ordered":"編號","components.controls.list.indent":"增加縮排","components.controls.list.outdent":"減少縮排","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文字對齊","components.controls.textalign.left":"文字向左對齊","components.controls.textalign.center":"文字置中","components.controls.textalign.right":"文字向右對齊","components.controls.textalign.justify":"兩端對齊"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nagłówek 1","components.controls.blocktype.h2":"Nagłówek 2","components.controls.blocktype.h3":"Nagłówek 3","components.controls.blocktype.h4":"Nagłówek 4","components.controls.blocktype.h5":"Nagłówek 5","components.controls.blocktype.h6":"Nagłówek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Tło","components.controls.embedded.embedded":"Osadź","components.controls.embedded.embeddedlink":"Osadź odnośnik","components.controls.embedded.enterlink":"Wprowadź odnośnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Krój czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Ponów","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prześlij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upuść plik lub kliknij, aby przesłać","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkreślenie","components.controls.inline.strikethrough":"Przekreślenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks górny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytuł odnośnika","components.controls.link.linkTarget":"Adres odnośnika","components.controls.link.linkTargetOption":"Otwórz odnośnik w nowej karcie","components.controls.link.link":"Wstaw odnośnik","components.controls.link.unlink":"Usuń odnośnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporządkowana","components.controls.list.ordered":"Lista uporządkowana","components.controls.list.indent":"Zwiększ wcięcie","components.controls.list.outdent":"Zmniejsz wcięcie","components.controls.remove.remove":"Usuń","components.controls.textalign.textalign":"Wyrównaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do środka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"Añadir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Código","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tamaño de fuente","components.controls.history.history":"Histórico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobreíndice","components.controls.inline.subscript":"Subíndice","components.controls.link.linkTitle":"Título del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineación del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"追加","generic.cancel":"キャンセル","components.controls.blocktype.h1":"見出し1","components.controls.blocktype.h2":"見出し2","components.controls.blocktype.h3":"見出し3","components.controls.blocktype.h4":"見出し4","components.controls.blocktype.h5":"見出し5","components.controls.blocktype.h6":"見出し6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"コード","components.controls.blocktype.blocktype":"スタイル","components.controls.blocktype.normal":"標準テキスト","components.controls.colorpicker.colorpicker":"テキストの色","components.controls.colorpicker.text":"テキスト","components.controls.colorpicker.background":"ハイライト","components.controls.embedded.embedded":"埋め込み","components.controls.embedded.embeddedlink":"埋め込みリンク","components.controls.embedded.enterlink":"リンクを入力してください","components.controls.emoji.emoji":"絵文字","components.controls.fontfamily.fontfamily":"フォント","components.controls.fontsize.fontsize":"フォントサイズ","components.controls.history.history":"履歴","components.controls.history.undo":"元に戻す","components.controls.history.redo":"やり直し","components.controls.image.image":"画像","components.controls.image.fileUpload":"ファイルをアップロード","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"ここに画像をドラッグするか、クリックしてください","components.controls.inline.bold":"太字","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下線","components.controls.inline.strikethrough":"取り消し線","components.controls.inline.monospace":"等幅フォント","components.controls.inline.superscript":"上付き文字","components.controls.inline.subscript":"下付き文字","components.controls.link.linkTitle":"リンクタイトル","components.controls.link.linkTarget":"リンク対象","components.controls.link.linkTargetOption":"新しいウィンドウで開く","components.controls.link.link":"リンク","components.controls.link.unlink":"リンクを解除","components.controls.list.list":"リスト","components.controls.list.unordered":"箇条書き","components.controls.list.ordered":"番号付き","components.controls.list.indent":"インデント増","components.controls.list.outdent":"インデント減","components.controls.remove.remove":"書式をクリア","components.controls.textalign.textalign":"整列","components.controls.textalign.left":"左揃え","components.controls.textalign.center":"中央揃え","components.controls.textalign.right":"右揃え","components.controls.textalign.justify":"両端揃え"}};function Ur(e){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qr(){return(qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){_r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $r(e){return function(e){if(Array.isArray(e))return eo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function to(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function no(e,t){return(no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oo(e);if(t){var o=oo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function oo(e){return(oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(38),n(39);var io=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}(i,r.Component);var e,t,n=ro(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onEditorBlur=function(){t.setState({editorFocused:!1})},t.onEditorFocus=function(e){var n=t.props.onFocus;t.setState({editorFocused:!0});var r=t.focusHandler.isEditorFocused();n&&r&&n(e)},t.onEditorMouseDown=function(){t.focusHandler.onEditorMouseDown()},t.keyBindingFn=function(e){if("Tab"!==e.key)return"ArrowUp"!==e.key&&"ArrowDown"!==e.key||w()&&e.preventDefault(),Object(s.getDefaultKeyBinding)(e);var n=t.props.onTab;if(!n||!n(e)){var r=Object(l.changeDepth)(t.state.editorState,e.shiftKey?-1:1,4);r&&r!==t.state.editorState&&(t.onChange(r),e.preventDefault())}return null},t.onToolbarFocus=function(e){var n=t.props.onFocus;n&&t.focusHandler.isToolbarFocused()&&n(e)},t.onWrapperBlur=function(e){var n=t.props.onBlur;n&&t.focusHandler.isEditorBlur(e)&&n(e,t.getEditorState())},t.onChange=function(e){var n=t.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(l.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(o&&o(e,t.props.wrapperId),O(t.props,"editorState")?t.afterChange(e):t.setState({editorState:e},t.afterChange(e)))},t.setWrapperReference=function(e){t.wrapper=e},t.setEditorReference=function(e){t.props.editorRef&&t.props.editorRef(e),t.editor=e},t.getCompositeDecorator=function(e){var n=[].concat($r(t.props.customDecorators),[{strategy:Ar,component:yr({showOpenOptionOnHover:e.link.showOpenOptionOnHover})}]);return t.props.mention&&n.push.apply(n,$r(Er(Jr(Jr({},t.props.mention),{},{onChange:t.onChange,getEditorState:t.getEditorState,getSuggestions:t.getSuggestions,getWrapperRef:t.getWrapperRef,modalHandler:t.modalHandler})))),t.props.hashtag&&n.push(Sr(t.props.hashtag)),new s.CompositeDecorator(n)},t.getWrapperRef=function(){return t.wrapper},t.getEditorState=function(){return t.state?t.state.editorState:null},t.getSuggestions=function(){return t.props.mention&&t.props.mention.suggestions},t.afterChange=function(e){setTimeout((function(){var n=t.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(s.convertToRaw)(e.getCurrentContent())),o&&o(Object(s.convertToRaw)(e.getCurrentContent()))}))},t.isReadOnly=function(){return t.props.readOnly},t.isImageAlignmentEnabled=function(){return t.state.toolbar.image.alignmentEnabled},t.createEditorState=function(e){var n;if(O(t.props,"editorState"))t.props.editorState&&(n=s.EditorState.set(t.props.editorState,{decorator:e}));else if(O(t.props,"defaultEditorState"))t.props.defaultEditorState&&(n=s.EditorState.set(t.props.defaultEditorState,{decorator:e}));else if(O(t.props,"contentState")){if(t.props.contentState){var r=Object(s.convertFromRaw)(t.props.contentState);n=s.EditorState.createWithContent(r,e),n=s.EditorState.moveSelectionToEnd(n)}}else if(O(t.props,"defaultContentState")||O(t.props,"initialContentState")){var o=t.props.defaultContentState||t.props.initialContentState;o&&(o=Object(s.convertFromRaw)(o),n=s.EditorState.createWithContent(o,e),n=s.EditorState.moveSelectionToEnd(n))}return n||s.EditorState.createEmpty(e)},t.filterEditorProps=function(e){return t=e,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],r=Object.keys(t).filter((function(e){return n.indexOf(e)<0})),o={},r&&0<r.length&&r.forEach((function(e){o[e]=t[e]})),o;var t,n,r,o},t.getStyleMap=function(e){return Jr(Jr({},Object(l.getCustomStyleMap)()),e.customStyleMap)},t.changeEditorState=function(e){var n=Object(s.convertFromRaw)(e),r=t.state.editorState;return r=s.EditorState.push(r,n,"insert-characters"),s.EditorState.moveSelectionToEnd(r)},t.focusEditor=function(){setTimeout((function(){t.editor.focus()}))},t.handleKeyCommand=function(e){var n=t.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(e)){var i=s.RichUtils.handleKeyCommand(r,e);if(i)return t.onChange(i),!0}return!1},t.handleReturn=function(e){if(w())return!0;var n=t.state.editorState,r=Object(l.handleNewLine)(n,e);return!!r&&(t.onChange(r),!0)},t.handlePastedTextFn=function(e,n){var r=t.state.editorState,o=t.props,i=o.handlePastedText,a=o.stripPastedStyles;return i?i(e,n,r,t.onChange):!a&&function(e,t,n,r){var o=Object(l.getSelectedBlock)(n);if(o&&"code"===o.type){var i=s.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());return r(s.EditorState.push(n,i,"insert-characters")),!0}if(t){var a=P()(t),c=n.getCurrentContent();return a.entityMap.forEach((function(e,t){c=c.mergeEntityData(t,e)})),c=s.Modifier.replaceWithFragment(c,n.getSelection(),new N.List(a.contentBlocks)),r(s.EditorState.push(n,c,"insert-characters")),!0}return!1}(e,n,r,t.onChange)},t.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?t.focusHandler.onInputMouseDown():e.preventDefault()};var r=D(Zr,e.toolbar),o=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());t.wrapperId="rdw-wrapper-".concat(o),t.modalHandler=new f,t.focusHandler=new v,t.blockRendererFn=Yr({isReadOnly:t.isReadOnly,isImageAlignmentEnabled:t.isImageAlignmentEnabled,getEditorState:t.getEditorState,onChange:t.onChange},e.customBlockRenderFunc),t.editorProps=t.filterEditorProps(e),t.customStyleMap=t.getStyleMap(e),t.compositeDecorator=t.getCompositeDecorator(r);var a=t.createEditorState(t.compositeDecorator);return Object(l.extractInlineStyle)(a),t.state={editorState:a,editorFocused:!1,toolbar:r},t}return e=i,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var i=D(Zr,i);t.toolbar=i}if(O(this.props,"editorState")&&r!==e.editorState)t.editorState=r?s.EditorState.set(r,{decorator:this.compositeDecorator}):s.EditorState.createEmpty(this.compositeDecorator);else if(O(this.props,"contentState")&&o!==e.contentState)if(o){var a=this.changeEditorState(o);a&&(t.editorState=a)}else t.editorState=s.EditorState.createEmpty(this.compositeDecorator);e.editorState===r&&e.contentState===o||Object(l.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var e=this.state,t=e.editorState,n=e.editorFocused,r=e.toolbar,i=this.props,a=i.locale,c=i.localization,d=c.locale,p=c.translations,f=i.toolbarCustomButtons,m=i.toolbarOnFocus,h=i.toolbarClassName,g=i.toolbarHidden,v=i.editorClassName,A=i.wrapperClassName,b=i.toolbarStyle,x=i.editorStyle,w=i.wrapperStyle,C=i.uploadCallback,O=i.ariaLabel,M={modalHandler:this.modalHandler,editorState:t,onChange:this.onChange,translations:Jr(Jr({},Gr[a||d]),p)},z=n||this.focusHandler.isInputFocused()||!m;return o.a.createElement("div",{id:this.wrapperId,className:u()(A,"rdw-editor-wrapper"),style:w,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!g&&o.a.createElement("div",{className:u()("rdw-editor-toolbar",h),style:Jr({visibility:z?"visible":"hidden"},b),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&m).toString(),onFocus:this.onToolbarFocus},r.options.map((function(e,t){var n=cr[e],i=r[e];return"image"===e&&C&&(i.uploadCallback=C),o.a.createElement(n,qr({key:t},M,{config:i}))})),f&&f.map((function(e,t){return o.a.cloneElement(e,Jr({key:t},M))}))),o.a.createElement("div",{ref:this.setWrapperReference,className:u()(v,"rdw-editor-main"),style:x,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:y.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(s.Editor,qr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:j,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:O||"rdw-editor",blockRenderMap:l.blockRenderMap},this.editorProps))))}}])&&to(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();io.propTypes={onChange:a.a.func,onEditorStateChange:a.a.func,onContentStateChange:a.a.func,initialContentState:a.a.object,defaultContentState:a.a.object,contentState:a.a.object,editorState:a.a.object,defaultEditorState:a.a.object,toolbarOnFocus:a.a.bool,spellCheck:a.a.bool,stripPastedStyles:a.a.bool,toolbar:a.a.object,toolbarCustomButtons:a.a.array,toolbarClassName:a.a.string,toolbarHidden:a.a.bool,locale:a.a.string,localization:a.a.object,editorClassName:a.a.string,wrapperClassName:a.a.string,toolbarStyle:a.a.object,editorStyle:a.a.object,wrapperStyle:a.a.object,uploadCallback:a.a.func,onFocus:a.a.func,onBlur:a.a.func,onTab:a.a.func,mention:a.a.object,hashtag:a.a.object,textAlignment:a.a.string,readOnly:a.a.bool,tabIndex:a.a.number,placeholder:a.a.string,ariaLabel:a.a.string,ariaOwneeID:a.a.string,ariaActiveDescendantID:a.a.string,ariaAutoComplete:a.a.string,ariaDescribedBy:a.a.string,ariaExpanded:a.a.string,ariaHasPopup:a.a.string,customBlockRenderFunc:a.a.func,wrapperId:a.a.number,customDecorators:a.a.array,editorRef:a.a.func,handlePastedText:a.a.func},io.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var ao=io}],r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8);function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i}(e,D,bC());var jC=wC.exports;function CC(e){var t=e.html,n=void 0;"undefined"!=typeof document&&(n=xC(t));var r=n?D.EditorState.createWithContent(D.ContentState.createFromBlockArray(n.contentBlocks,n.entityMap)):D.EditorState.createEmpty();return Y.jsx(jC.Editor,{editorState:r,readOnly:!0,toolbarHidden:!0})}function OC(e){var t=e.value,r=e.type;return Y.jsx(n.Card,{sx:{py:1,px:3},children:r&&r===Uh.RICH_TEXT_I?Y.jsx(gC,{htmlString:t}):Y.jsx(CC,{html:t})})}function MC(e){var t=e.link,r=function(){var e="http"!==t.slice(0,4)?"https://"+t:t;window.open(e,"_blank")};return Y.jsx(n.Chip,{label:t,size:"medium",color:"primary",clickable:!0,onClick:r,deleteIcon:Y.jsx(jo,{icon:"gridicons:external"}),onDelete:r})}function zC(e){var t=e.value;return Y.jsx(n.Grid,{container:!0,justifyContent:"start",rowGap:"10px",columnGap:"10px",alignItems:"center",width:"100%",children:t.map((function(e){return Y.jsx(n.Chip,{label:e,size:"small"})}))})}var DC="---";function TC(e){var t=e.value,r=e.fieldschema,o=e.type,i=e.enumvalues,a=e.children;if(null==t)return Y.jsx(n.Typography,Z({},e,{children:DC}));switch(o){case Uh.STRING:case Uh.NUMBER:case Uh.OBJECTID:case Uh.PHONENUMBER:case Uh.TIMEPICKER:case Uh.PASSWORD:return Y.jsx(n.Typography,Z({},e,{sx:{wordWrap:"break-word"},children:t}));case Uh.NESTEDSCHEMA:return Y.jsx(Vj,Z({},e,{value:t,fieldschema:r}));case Uh.LOCALIZEDString:return Y.jsx(Qj,{value:t});case Uh.BOOLEAN:return Y.jsx(n.Chip,{label:t?t.toString():"false",variant:"outlined",size:"small"});case Uh.COLOR:return Y.jsx(n.Typography,Z({},e,{color:t,children:t}));case Uh.DATE:return Y.jsx(rC,Z({},e));case Uh.ENUM:return Y.jsx(oC,Z({enumvalues:i},e));case Uh.RICH_TEXT_I:case Uh.RICH_TEXT_II:return Y.jsx(OC,Z({},e));case Uh.LOCATION:return Y.jsx(iC,Z({},e));case Uh.IMAGE:return Y.jsx(dC,Z({},e));case Uh.MULTIPLE_TEXT:return Y.jsx(zC,Z({},e));case Uh.ARRAY:return t&&t.length>0?Y.jsx(aC,Z({},e,{value:t,children:a})):Y.jsx(n.Typography,Z({},e,{children:DC}));case Uh.REFERENCE:return Y.jsx(hC,Z({},e));case Uh.EXTERNAL_LINK:return Y.jsx(MC,{link:e.value});default:return Y.jsx(Y.Fragment,{})}}var PC=function(){function e(){}return e.enhance=function(e){var t=this;return e?e.includes("_")?e.split("_").map((function(e){return t.enhanceEnum(e)})).join(" "):this.enhanceEnum(e):DC},e.enhanceEnum=function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},e}();function NC(e){var t,r=e.values,o=e.name,i=e.label,a=e.size,s=e.disabled;return Y.jsx(pp,{name:o,size:a,label:i,disabled:s,SelectProps:{native:!1,sx:{textTransform:"capitalize"}},children:null===(t=Object.keys(r))||void 0===t?void 0:t.map((function(e){var t,o,i,a=(null===(t=r[e])||void 0===t?void 0:t.label)?e:r[e],s=null!==(i=null===(o=r[e])||void 0===o?void 0:o.label)&&void 0!==i?i:r[e];return Y.jsx(n.MenuItem,{value:a,sx:{mx:1,my:.5,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:PC.enhance(s)},a)}))})}function EC(e){var t=e.label,r=e.name,o=e.handleDrop;return Y.jsx(np,{name:r,label:t,accept:{"image/*":[".jpeg",".png","jpg",".webp"]},maxSize:3145728,onDrop:function(e){return o(e,r)},helperText:Y.jsxs(n.Typography,{variant:"caption",sx:{mt:2,mx:"auto",display:"block",textAlign:"center",color:"text.secondary"},children:["Add your ",t,Y.jsx("br",{}),Y.jsx("br",{})," max size of ",Na(3145728)]})})}function BC(e){var t=e.key,r=e.label,o=e.name,i=e.handleDrop;return Y.jsx(n.Grid,{item:!0,xs:12,md:3,children:Y.jsx(n.Box,{sx:{mb:5,mt:5},children:Y.jsx(EC,{label:r,name:o,handleDrop:i})})},t)}function kC(e){var t=e.name,n=e.minDate,r=e.maxDate,o=G(e,["name","minDate","maxDate"]),i=c.useFormContext().control;return Y.jsx(c.Controller,{name:t,control:i,render:function(e){var t=e.field,i=e.fieldState.error;return Y.jsx(v.DateTimePicker,{label:o.label,value:new Date(t.value),minDate:null==n?void 0:n.getDate(),maxDate:null==r?void 0:r.getDate(),onChange:function(e){t.onChange(e)},slotProps:{textField:{fullWidth:!0,margin:"normal",helperText:null==i?void 0:i.message,error:!!i}}})}})}var LC={exports:{}};LC.exports=function(){function e(e,t){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&t(n,e[n])}function t(e){return null==e||0===e.length||0===e.trim().length}var n={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function r(e){return e&&n[e]}function o(t){var n="";return e(t,(function(e,t){t&&(n+="".concat(e,":").concat(t,";"))})),n}function i(e,t){var n=[];if(t)for(var r=0,o=0,i=e,a=t.trigger||"#",s=t.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(s+a))>=0&&(i=i.substr(o+(s+a).length),r+=o+s.length),o>=0){var l=i.indexOf(s)>=0?i.indexOf(s):i.length,c=i.substr(0,l);c&&c.length>0&&n.push({offset:r,length:c.length+a.length,type:"HASHTAG"}),r+=a.length}return n}function a(e,t){var n=[],r=0,o=e.entityRanges.map((function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}}));return(o=(o=o.concat(i(e.text,t))).sort((function(e,t){return e.offset-t.offset}))).forEach((function(e){e.offset>r&&n.push({start:r,end:e.offset}),n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),r=e.offset+e.length})),r<e.text.length&&n.push({start:r,end:e.text.length}),n}function s(e){return!(!(e.entityRanges.length>0)||!t(e.text)&&"atomic"!==e.type)}function l(e){var t=e.text,n=e.inlineStyleRanges,r={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};return n&&n.length>0&&n.forEach((function(e){for(var t=e.offset,n=t+e.length,o=t;o<n;o+=1)0===e.style.indexOf("color-")?r.COLOR[o]=e.style.substring(6):0===e.style.indexOf("bgcolor-")?r.BGCOLOR[o]=e.style.substring(8):0===e.style.indexOf("fontsize-")?r.FONTSIZE[o]=e.style.substring(9):0===e.style.indexOf("fontfamily-")?r.FONTFAMILY[o]=e.style.substring(11):r[e.style]&&(r[e.style][o]=!0)})),r}function c(e,t){var n={};return e.COLOR[t]&&(n.COLOR=e.COLOR[t]),e.BGCOLOR[t]&&(n.BGCOLOR=e.BGCOLOR[t]),e.FONTSIZE[t]&&(n.FONTSIZE=e.FONTSIZE[t]),e.FONTFAMILY[t]&&(n.FONTFAMILY=e.FONTFAMILY[t]),e.UNDERLINE[t]&&(n.UNDERLINE=!0),e.ITALIC[t]&&(n.ITALIC=!0),e.BOLD[t]&&(n.BOLD=!0),e.STRIKETHROUGH[t]&&(n.STRIKETHROUGH=!0),e.CODE[t]&&(n.CODE=!0),e.SUBSCRIPT[t]&&(n.SUBSCRIPT=!0),e.SUPERSCRIPT[t]&&(n.SUPERSCRIPT=!0),n}function u(e,t,n){var r=!0;return n>0&&n<e.length?t.forEach((function(t){r=r&&e[t][n]===e[t][n-1]})):r=!1,r}function d(e,t){return"BOLD"===e?"<strong>".concat(t,"</strong>"):"ITALIC"===e?"<em>".concat(t,"</em>"):"UNDERLINE"===e?"<ins>".concat(t,"</ins>"):"STRIKETHROUGH"===e?"<del>".concat(t,"</del>"):"CODE"===e?"<code>".concat(t,"</code>"):"SUPERSCRIPT"===e?"<sup>".concat(t,"</sup>"):"SUBSCRIPT"===e?"<sub>".concat(t,"</sub>"):t}function p(e){return e&&e.length>0?e.map((function(e){switch(e){case"\n":return"<br>";case"&":return"&";case"<":return"<";case">":return">";default:return e}})).join(""):""}function f(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';return e.COLOR&&(n+="color: ".concat(e.COLOR,";")),e.BGCOLOR&&(n+="background-color: ".concat(e.BGCOLOR,";")),e.FONTSIZE&&(n+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";")),e.FONTFAMILY&&(n+="font-family: ".concat(e.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(t,"</span>")}return t}function m(e,t,n,r){var o=e[t];if("function"==typeof r){var i=r(o,n);if(i)return i}if("MENTION"===o.type)return'<a href="'.concat(o.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(o.data.value,'">').concat(n,"</a>");if("LINK"===o.type){var a=o.data.targetOption||"_self";return'<a href="'.concat(o.data.url,'" target="').concat(a,'">').concat(n,"</a>")}if("IMAGE"===o.type){var s=o.data.alignment;return s&&s.length?'<div style="text-align:'.concat(s,';"><img src="').concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/></div>'):'<img src="'.concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/>')}return"EMBEDDED_LINK"===o.type?'<iframe width="'.concat(o.data.width,'" height="').concat(o.data.height,'" src="').concat(o.data.src,'" frameBorder="0"></iframe>'):n}function h(e,t,n,r){var o=[],i=Array.from(e.text);if(i.length>0)for(var a,s=l(e),d=n;d<r;d+=1)d!==n&&u(s,t,d)?(a.text.push(i[d]),a.end=d+1):(a={styles:c(s,d),text:[i[d]],start:d,end:d+1},o.push(a));return o}function g(e){if(e){for(var t=e,n=0;n<t.length&&" "===e[n];n+=1)t=t.replace(" "," ");return t}return e}function v(e){if(e){for(var t=e,n=t.length-1;n>=0&&" "===t[n];n-=1)t="".concat(t.substring(0,n)," ").concat(t.substring(n+1));return t}return e}function A(t){var n=t.styles,r=p(t.text);return e(n,(function(e,t){r=d(e,r)})),r}function y(e,t){var n=h(e,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],t.start,t.end),r="";return n.forEach((function(e){r+=A(e)})),r=f(t.styles,r)}function b(e,t,n,r){var o=[];h(e,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach((function(t){o.push(y(e,t))}));var i=o.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(i=m(t,n.entityKey,i,r)):"HASHTAG"===n.type&&(i='<a href="'.concat(i,'" class="wysiwyg-hashtag">').concat(i,"</a>")),i}function x(e,t,n,r){var o=[],i=a(e,n);return i.forEach((function(n,a){var s=b(e,t,n,r);0===a&&(s=g(s)),a===i.length-1&&(s=v(s)),o.push(s)})),o.join("")}function w(e,t,n,i,a){var l=[];if(s(e))l.push(m(t,e.entityRanges[0].key,void 0,a));else{var c=r(e.type);if(c){l.push("<".concat(c));var u=o(e.data);u&&l.push(' style="'.concat(u,'"')),i&&l.push(' dir = "auto"'),l.push(">"),l.push(x(e,t,n,a)),l.push("</".concat(c,">"))}}return l.push("\n"),l.join("")}function j(e){return"unordered-list-item"===e||"ordered-list-item"===e}function C(e,t,n,i,a){var s,l=[],c=[];return e.forEach((function(e){var u=!1;if(s?s.type!==e.type?(l.push("</".concat(r(s.type),">\n")),l.push("<".concat(r(e.type),">\n"))):s.depth===e.depth?c&&c.length>0&&(l.push(C(c,t,n,i,a)),c=[]):(u=!0,c.push(e)):l.push("<".concat(r(e.type),">\n")),!u){l.push("<li");var d=o(e.data);d&&l.push(' style="'.concat(d,'"')),i&&l.push(' dir = "auto"'),l.push(">"),l.push(x(e,t,n,a)),l.push("</li>\n"),s=e}})),c&&c.length>0&&l.push(C(c,t,n,i,a)),l.push("</".concat(r(s.type),">\n")),l.join("")}function O(e,t,n,r){var o=[];if(e){var i=e.blocks,a=e.entityMap;if(i&&i.length>0){var s=[];if(i.forEach((function(e){if(j(e.type))s.push(e);else{if(s.length>0){var i=C(s,a,t,r);o.push(i),s=[]}var l=w(e,a,t,n,r);o.push(l)}})),s.length>0){var l=C(s,a,t,n,r);o.push(l),s=[]}}}return o.join("")}return O}();var IC,SC=W(LC.exports);function WC(t){var n=t.name,r=t.disabled,o=c.useFormContext(),i=o.control,a=o.setValue,s=o.getValues,l=e.useState({editorState:s(n)&&""!==s(n)?D.EditorState.createWithContent(D.ContentState.createFromBlockArray(xC(s(n)).contentBlocks,xC(s(n)).entityMap)):D.EditorState.createEmpty()}),u=l[0],d=l[1],p=function(e){d({editorState:e}),a(n,SC(D.convertToRaw(e.getCurrentContent())))},f=function(e,t,n){var r=D.convertFromHTML(t),o=D.ContentState.createFromBlockArray(r.contentBlocks,r.entityMap),i=n.getCurrentContent(),a=D.Modifier.replaceWithFragment(i,i.getSelectionAfter(),o.getBlockMap()),s=D.EditorState.push(n,a,"insert-fragment");return p(s),!0};return Y.jsx(c.Controller,{name:n,control:i,render:function(e){return e.field,e.fieldState.error,Y.jsxs("div",{children:[Y.jsx("style",{children:"\n .rdw-editor-toolbar {\n background-color: #E5E4E2;\n border-radius: 10px;\n }\n "}),Y.jsx(jC.Editor,{editorState:u.editorState,wrapperClassName:"wrapper",editorClassName:"editor",placeholder:"Write your text here",onEditorStateChange:p,readOnly:r,handlePastedText:f})]})}})}function HC(e){var t=e.label,r=e.type;return Y.jsxs(n.Stack,{spacing:1,children:[Y.jsx(n.Typography,{variant:"subtitle2",sx:{color:"text.secondary"},children:t}),r===IC.TYPE_ONE?Y.jsx(up,Z({simple:!0},e)):Y.jsx(WC,Z({},e))]})}!function(e){e[e.TYPE_ONE=0]="TYPE_ONE",e[e.TYPE_TWO=1]="TYPE_TWO"}(IC||(IC={}));var RC,FC=function(){function e(){}return e.get=function(e,t){if(!e||!e.properties)return"-";var n=e.properties.title,r=e.properties.model[n].type;return t[n]?r===Uh.LOCALIZEDString?Hg.getLocalizedString(t[n]):t[n]:this.getReferenceValue(t)},e.getReferenceValue=function(e){return e.name?e.name:e.firstName?e.firstName:e.lastName?e.lastName:e.email?e.email:e.title?e.title:e.phoneNumber?e.phoneNumber:e.phone?e.phone:e.number?e.number:e.key?e.key:e._id?e._id:"-"},e}();function VC(e){var t=e.referencedValues,n=e.value,r=e.loading,o=e.extraKey,i=e.fullKey,a=e.key,s=e.apiRoute,l=e.resources,c=e.pathRoute,u=e.schema,d=e.setLoading,p=e.setReferencedValues,f=e.page,m=e.filter,h=e.filters;return U(this,void 0,void 0,(function(){var e,g,v,A,y,b,x,w,j,C,O,M,z,D,T,P,N,E;return q(this,(function(B){switch(B.label){case 0:return n?(e=t[a],g=null==e?void 0:e.page,!e||e.hasNext||m||e.filter!==m?g===f&&e.filter===m?[2]:((v=Z({},r))[i]=!0,d(v),A=m?"&filter=".concat(m):"",h&&(A+="&filters=".concat(h)),y=s||u[a].apiRoute,[4,ug.get(y+"?page=".concat(f).concat(A))]):[2]):[2];case 1:for(b=B.sent(),x=b.data.data,w=x.records,j=x.pageInfo,C=[],O=0;O<w.length;O++)M=w[O],z=l[c||u[a].path],D=hA.getReferenceImage(z,M),T=FC.get(z,M),P={title:T,_id:M._id,image:D},o&&(P[o]=M[o]),C.push(P);return(N=Z({},t))[a]={data:g===f?C:N[a]&&N[a].data?N[a].data.concat(C):C,page:w.length>0?f:g,filter:m,hasNext:j.nextPage>0},p(N),(E=Z({},r))[i]=!1,d(E),[2]}}))}))}!function(e){e.FORM_LIST="formList",e.FILTER_LIST="filterList"}(RC||(RC={}));var QC,XC,YC,ZC=function(e,t,n,r){var o,i,a;if(!e[t])return"";var s=null===(o=e[t].filter)||void 0===o?void 0:o[n];if(!s||!r)return"";var l=null!==(a=null===(i=null==r?void 0:r.properties)||void 0===i?void 0:i.model)&&void 0!==a?a:{},c=Object.entries(s).filter((function(e){var t,n=e[0];return null===(t=l[n])||void 0===t?void 0:t.type})).map((function(e){var t,n=e[0],r=e[1];return"".concat(n,"=").concat(r,";;").concat(null===(t=l[n])||void 0===t?void 0:t.type,"^^")})).join("");return encodeURIComponent(c)};function GC(t){var r=t.name,o=t.label,i=t.placeholder;G(t,["name","label","placeholder"]);var a=c.useFormContext(),s=a.control,l=a.getValues;return Y.jsx(c.Controller,{control:s,name:r,render:function(t){var a=t.field.onChange,s=t.fieldState.error;return Y.jsx(n.Autocomplete,{defaultValue:l(r)?l(r):[],multiple:!0,id:"tags-filled",options:[],freeSolo:!0,renderTags:function(t,r){return t.map((function(t,o){return e.createElement(n.Chip,Z({variant:"outlined",label:t},r({index:o}),{key:"".concat(o)}))}))},onChange:function(e,t){a(t)},renderInput:function(e){var t,r,a;return Y.jsx(n.TextField,Z({},e,{label:o,size:"small",placeholder:i,error:!!s,helperText:null!==(t=null==s?void 0:s.message)&&void 0!==t?t:null===(a=null===(r=Object(s))||void 0===r?void 0:r._id)||void 0===a?void 0:a.message}))}})}})}function UC(e){var t=e.name,r=e.label,o=e.placeholder,i=e.options;G(e,["name","label","placeholder","options"]);var a=c.useFormContext(),s=a.control,l=a.getValues;return Y.jsx(c.Controller,{control:s,name:t,render:function(e){var a=e.field.onChange,s=e.fieldState.error;return Y.jsx(n.Autocomplete,{defaultValue:l(t)?l(t):[],multiple:!0,id:"tags-filled",options:i,getOptionLabel:function(e){return e.label},filterSelectedOptions:!0,onChange:function(e,t){a(t.map((function(e){return e.value})))},renderInput:function(e){var t,i,a;return Y.jsx(n.TextField,Z({},e,{label:r,size:"small",placeholder:o,error:!!s,helperText:null!==(t=null==s?void 0:s.message)&&void 0!==t?t:null===(a=null===(i=Object(s))||void 0===i?void 0:i._id)||void 0===a?void 0:a.message}))}})}})}function qC(e,t){var n=t[e].type;if(t[e].textArea)return QC.LARGE;switch(n){case Uh.PASSWORD:case Uh.OBJECTID:case Uh.NUMBER:case Uh.STRING:case Uh.BOOLEAN:case Uh.COLOR:case Uh.ENUM:case Uh.EXTERNAL_LINK:case Uh.LOCATION:case Uh.PHONENUMBER:case Uh.DATE:case Uh.MULTIPLE_TEXT:case Uh.TIMEPICKER:return QC.SMALL;case Uh.LOCALIZEDString:return QC.MEDIUM;case Uh.FILE:case Uh.IMAGE:return QC.LARGE;case Uh.REFERENCE:return t[e].mediaUploader?QC.LARGE:QC.SMALL;case Uh.ARRAY:return t[e].arrayType===Uh.ENUM?QC.SMALL:QC.CHANGEABLE;default:return QC.CHANGEABLE}}function KC(t){var o=this,i=t.isEdit,a=t.id,s=t.record,u=t.path,d=t.mediaUploaderFields,p=t.onSubmitForm,f=t.referencedMap,m=t.modelRoute,h=t.redirectPath,g=t.afterCreateSnackText,v=t.afterEditSnackText,A=t.enableCreateNewButtonOnReference,y=t.keepFullWidthElements,x=r.useNavigate(),w=e.useState({}),j=w[0],C=w[1],O=e.useState({}),M=O[0],z=O[1],D=e.useState(!1),T=D[0],P=D[1],N=r.useLocation(),E=e.useState("1"),B=E[0],k=E[1],I=e.useState({}),S=I[0],W=I[1],H=e.useState({}),R=H[0],F=H[1],V=e.useState({}),Q=V[0],X=V[1],G=e.useState(!1),J=G[0],_=G[1],$=e.useState(!1),ee=$[0],te=$[1],ne=e.useState({}),re=ne[0],oe=ne[1],ie=e.useContext(Mg).bucketUrl,ae=e.useContext(Ag).resources,se=e.useContext(Og).textFieldSize,le=e.useContext(fg).dashbaordUrlPrefix,ce=e.useContext(wg).paths,ue=ae[u].properties.model,de=ae[u].formProperties,pe=Hg.isEnglish(),fe=pe?"Create new":" اضافة ",me=pe?"Save changes":"تعديل ",he=Bg(),ge=he.setSuccessAlert,ve=he.setErrorAlert,Ae={},ye={};de.map((function(e,t){"_id"!==e&&"__v"!==e&&(Ae[e]=He(ue[e],e))}));var be=L.object().shape(Ae),xe=e.useMemo((function(){return ye}),[]),we=c.useForm({resolver:Da(be),defaultValues:xe}),je=we.reset,Ce=we.control,Oe=we.setValue,Me=we.getValues,ze=we.handleSubmit,De=we.watch,Te={},Pe={};var Ne=function(e){var t=Z({},R);t[e]=!0,F(t)},Ee=function(e,t){k(t)};function Be(e,t,n){var r=Z({},t);r[e]=!1,n(r)}function ke(e,t,n,r){var o=Z({},t);o[e]=r,n(o)}var Le=function(e){var t=Z({},Q);t[e]=void 0,X(t),Oe(e,void 0)};function Ie(e){Pe[e]={},Pe[e][e]={type:ue[e]?ue[e].arrayType:"",enumValues:ue[e]?ue[e].enumValues:[]}}var Se=function(e){k("1"),Te[e].append()},We=function(e,t){t.destination&&Te[e].move(t.source.index,t.destination.index)};function He(e,t){var n,r,o,a,l;switch(ye[t]=void 0,e.type){case Uh.RICH_TEXT_I:case Uh.RICH_TEXT_II:case Uh.EXTERNAL_LINK:case Uh.STRING:ye[t]=s?s[t]:"",l=L.string();break;case Uh.MULTIPLE_TEXT:ye[t]=s?s[t]:"",l=L.array();break;case Uh.OBJECTID:case Uh.PHONENUMBER:ye[t]=s?s[t]:"",l=L.string();break;case Uh.LOCALIZEDString:var c=!!(s&&s[t]&&s[t].length>0);ye[t]={en:c?s[t][0].value:"",ar:c?s[t].length>1?s[t][1].value:s[t][0].value:"",fr:e.includeFrench?c?s[t].length>2?s[t][2].value:s[t][0].value:"":void 0,de:e.includeGerman?c?s[t].length>3?s[t][3].value:s[t][0].value:"":void 0},l=L.mixed();break;case Uh.PASSWORD:ye[t]=s?s[t]:void 0,l=ue[t]&&ue[t].yupValidationSchema?ue[t].yupValidationSchema:L.string().min(6,"Password must be at least 6 characters");break;case Uh.BOOLEAN:ye[t]=!!s&&s[t],l=L.boolean();break;case Uh.IMAGE:ye[t]=s?s[t]:"",l=L.string().nullable();break;case Uh.REFERENCE:var u=ae[e.path];s&&s[t]&&!s[t].length&&(s[t]={_id:s[t]._id,title:FC.get(u,s[t]),url:s[t].url?s[t].url:void 0,image:hA.getReferenceImage(u,s[t])}),ye[t]=s&&s[t]?s[t].title:void 0,l=L.object().nullable();break;case Uh.LOCATION:var d=s&&s[t]?{description:null!==(r=null===(n=s[t])||void 0===n?void 0:n.address)&&void 0!==r?r:"",location:{type:"Point",coordinates:[null===(o=s[t])||void 0===o?void 0:o.longitude,null===(a=s[t])||void 0===a?void 0:a.latitude]}}:void 0;ye[t]=d;break;case Uh.DATE:ye[t]=s?s[t]:new Date,l=L.date().nullable();break;case Uh.NUMBER:ye[t]=s?s[t]:void 0,l=L.number();break;case Uh.TIMEPICKER:ye[t]=s?s[t]:"",l=L.string();break;case Uh.ENUM:ye[t]=s?s[t]:ue[t]&&ue[t].defaultValue?ue[t].defaultValue:void 0,l=L.string();break;case Uh.ARRAY:switch(ye[t]=s?s[t]:void 0,l=L.array(),e.arrayType){case Uh.NESTEDSCHEMA:var p=ue[t]?ue[t].keys:[],f=ue[t]?ue[t].schema:{},m={};ye[t]=s?s[t]:[],null==p||p.map((function(e){"_id"!==e&&(m[e]=He(f[e],e))})),l=l.of(L.object().shape(m));break;case Uh.IMAGE:var h=s&&s[t]&&s[t]?s[t]:[];ye[t]=h,l=l.of(L.mixed());break;case Uh.LOCALIZEDString:var g=[];if(s&&s[t]&&s[t].length)for(var v=0;v<s[t].length;v++){var A=s[t][v],y=K(K([{key:"en",value:A&&A[0]&&A[0].value?A[0].value:""},{key:"ar",value:A&&A[1]&&A[1].value?A[1].value:""}],e.includeFrench?[{key:"fr",value:A&&A[2]&&A[2].value?A[2].value:""}]:[],!0),e.includeGerman?[{key:"de",value:A&&A[3]&&A[3].value?A[3].value:""}]:[],!0);g.push(y)}ye[t]=g,l=l.of(L.mixed());break;case Uh.REFERENCE:u=ae?ae[e.path]:{};if(s&&s[t]&&s[t].length)for(var b=0;b<s[t].length;b++)s[t][b]={_id:s[t][b]._id,title:FC.get(u,s[t][b]),image:hA.getReferenceImage(u,s[t][b])};ye[t]=s&&s[t]?s[t]:[],l=l.of(L.object());break;case Uh.ENUM:ye[t]=s&&s[t]&&s[t].length>0?s[t].map((function(e){return{label:PC.enhance(e),value:e}})):[],l=L.array();break;default:ye[t]=s&&s[t]?s[t]:void 0}break;case Uh.NESTEDSCHEMA:p=ue[t]?ue[t].keys:[];var x=ue[t]?ue[t].schema:{},w={};ye[t]=s&&s[t]?s[t]:{},null==p||p.map((function(e){"_id"!==e&&(w[e]=He(x[e],e)),ye[t][e]=s&&s[t]&&s[t][e]?s[t][e]:void 0})),l=L.object().shape(w)}return l=e.required?e.type===Uh.PASSWORD&&i?null==l?void 0:l.optional():null==l?void 0:l.required(e.value+" is required"):null==l?void 0:l.optional()}var Re=function(e){Oe(e.target.name,e.target.checked);var t=Z({},j);t[e.target.name]=e.target.checked,C(t)},Fe=function(e,t,n,r,i,a,s,l){return U(o,void 0,void 0,(function(){return q(this,(function(o){switch(o.label){case 0:return[4,VC({apiRoute:e,referencedValues:S,value:n,loading:M,fullKey:i,key:r,pathRoute:t,resources:ae,schema:ue,setLoading:z,setReferencedValues:W,page:a,filter:s,filters:l})];case 1:return o.sent(),[2]}}))}))},Ve=e.useCallback((function(e,t,n){var r=e[0];r&&(Oe(t,Object.assign(r,{preview:URL.createObjectURL(r)})),_(!0),tA(r,!0,null!=n?n:qa.NORMAL,(function(e){Oe(t,ie+e),_(!1)})))}),[_]),Qe=function(e,t){Te[e].remove(t)};e.useEffect((function(){U(o,void 0,void 0,(function(){var e,t,n,r;return q(this,(function(o){if(i){if(je(s),e=Z({},Q),d&&d.map((function(t){e[t]=s[t]?s[t]:void 0})),xe)for(t in xe)(n=ue[t])&&n.type===Uh.ARRAY&&n.arrayType===Uh.IMAGE&&((r=Z({},re))[t]=xe[t],oe(r));X(e)}else je(xe);return[2]}))}))}),[]);function Xe(t,r,o){var a,s,l,d,p,f={key:t,name:o,size:se,label:r[t].value,disabled:i&&!1===r[t].isEditable};if(r[t]){var m=r[t].textArea;switch(r[t].type){case Uh.PASSWORD:return Y.jsx(Aj,Z({},f,{showPassword:T,setShowPassword:P}));case Uh.OBJECTID:case Uh.NUMBER:case Uh.STRING:case Uh.EXTERNAL_LINK:return Y.jsx(dp,Z({},f,{rows:m?5:void 0,multiline:m}));case Uh.MULTIPLE_TEXT:return Y.jsx(GC,Z({},f));case Uh.RICH_TEXT_I:return Y.jsx(HC,Z({},f,{type:IC.TYPE_ONE}));case Uh.RICH_TEXT_II:return Y.jsx(HC,Z({},f,{type:IC.TYPE_TWO}));case Uh.LOCATION:return Y.jsx(_h,Z({},f,{variant:"outlined",selectLocation:Oe}));case Uh.TIMEPICKER:return Y.jsx(vj,Z({},f,{fieldName:o,setValue:Oe,getValues:Me}));case Uh.PHONENUMBER:var h=r[t].defaultCountryCode?r[t].defaultCountryCode:r[t].countryCodes?r[t].countryCodes[0]:"sa";return Y.jsx(b,Z({},f,{defaultCountry:h.toLowerCase(),style:{border:2},onChange:function(e){return function(e,t){Oe(t,e)}(e,o)},onlyCountries:r[t].countryCodes?r[t].countryCodes:[],fullWidth:!0,value:Me(o)?Me(o):"",variant:"outlined",inputProps:{"aria-autocomplete":"none",autoCorrect:"none"},InputProps:{autoComplete:"new-password"},autoComplete:"new-password"}));case Uh.LOCALIZEDString:return Y.jsx(yA,{fieldName:o,title:null===(a=r[t])||void 0===a?void 0:a.value,size:se,isEdit:i,value:B,setValue:Oe,getValues:Me,handleChange:Ee,numberOfRows:m?5:void 0,includeFrench:r[t].includeFrench,includeGerman:r[t].includeGerman});case Uh.DATE:return r[t].withTime?Y.jsx(kC,Z({},f,{fullWidth:!0,minDate:new Date})):Y.jsx(Mp,Z({},f,{fullWidth:!0,minDate:new Date}));case Uh.ENUM:return Y.jsx(NC,Z({},f,{values:r[t].enumValues}));case Uh.IMAGE:return e.createElement(BC,Z({},f,{name:o,key:t,handleDrop:function(e,n){return Ve(e,n,r[t].imageOptimizingCategory)}}));case Uh.BOOLEAN:return Y.jsx(Cj,Z({},f,{handleChange:Re,getValues:Me}));case Uh.NESTEDSCHEMA:return Y.jsxs(n.Grid,{item:!0,xs:12,children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[t].value},t),Y.jsx(n.Card,{sx:{py:3,px:3},children:Y.jsx(n.Grid,{container:!0,spacing:2,children:r[t].keys.map((function(e,o){return Y.jsx(n.Grid,{item:!0,xs:12,children:Xe(e,r[t].schema,t+"."+e)},o)}))})})]},t);case Uh.ARRAY:!function(e){var t=c.useFieldArray({control:Ce,name:e}),n=t.fields,r=t.append,o=t.remove,i=t.move;Te[e]={fields:n,append:r,remove:o,move:i}}(t),Ie(t);var g=r[t],v=g.isDraggable,y=g.imageOptimizingCategory,x=Ze(ae[u].properties.model,t),w=De(x),j=null==w?void 0:w.some((function(e){return!e||!e._id}));switch(r[t].arrayType){case Uh.NESTEDSCHEMA:return Y.jsxs(n.Grid,{item:!0,xs:12,children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled",mt:{xs:"10px",md:"15px"},mb:"10px"},children:r[t].value},t),Y.jsx(jj,{handleRemove:function(e){return Qe(t,e)},draggable:v,handleDrop:function(e){return We(t,e)},list:Te[t].fields,itemComponent:function(e){return Y.jsx(n.Stack,{spacing:3,children:r[t].keys.map((function(o){return Y.jsxs(n.Stack,{direction:{xs:"column",md:"row"},spacing:2,sx:{width:1},children:[Y.jsx(n.Grid,{item:!0,xs:12,children:Xe(o,r[t].schema,"".concat(t,"[").concat(e,"].").concat(o))},o),Y.jsx(n.Divider,{})]},o)}))})},handleAdd:function(){return Se(t)},addButtonText:pe?"Add item":"إضافة"})]},t);case Uh.IMAGE:return r[t].mediaUploader?Y.jsx(fA,{image:re,keyValue:t,imageOptimizingCategory:null!==(s=r[t].imageOptimizingCategory)&&void 0!==s?s:qa.NORMAL,multiple:!0,dismissDialogState:Be,setImages:ke,isEnglish:pe,fileType:r[t].fileType?r[t].fileType:Ua.IMAGE,label:r[t].value,imageDialogState:R,handleEditImage:Ne,handleRemoveImage:Le,setImageDialogState:F,setImage:oe,setValue:Oe}):Y.jsx(jj,{handleRemove:function(e){return Qe(t,e)},draggable:v,handleDrop:function(e){return We(t,e)},list:Te[t].fields,itemComponent:function(e){return Y.jsx(EC,{name:"".concat(t,"[").concat(e,"]"),handleDrop:function(e,t){return Ve(e,t,y)},label:""},"".concat(t,"[").concat(e,"]"))},handleAdd:function(){return Se(t)},addButtonText:pe?"Add item":"إضافة"});case Uh.ENUM:return Y.jsx(UC,Z({},f,{options:r[t].enumValues.map((function(e){return{label:PC.enhance(e),value:e}}))}));default:return j&&x.length>0?Y.jsx(Y.Fragment,{}):Y.jsxs(n.Grid,{item:!0,xs:12,children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled",mt:{xs:"10px",md:"15px"},mb:"10px"},children:r[t].value},t),Y.jsx(jj,{handleRemove:function(e){return Qe(t,e)},draggable:v,handleDrop:function(e){return We(t,e)},list:Te[t].fields,itemComponent:function(e){return Y.jsxs(n.Stack,{direction:{xs:"column",md:"row"},spacing:2,sx:{width:1},children:[Y.jsx(n.Grid,{item:!0,xs:12,children:Xe(t,Pe[t],"".concat(t,"[").concat(e,"]"))}),Y.jsx(n.Divider,{})]})},handleAdd:function(){return Se(t)},addButtonText:pe?"Add item":"إضافة"})]},t)}case Uh.REFERENCE:var C=ae?ae[r[t].path]:void 0,O=ZC(r,t,RC.FORM_LIST,C);return r[t].mediaUploader?Y.jsx(fA,{image:Q,keyValue:t,dismissDialogState:Be,imageOptimizingCategory:null!==(l=r[t].imageOptimizingCategory)&&void 0!==l?l:qa.NORMAL,setImages:ke,isEnglish:pe,fileType:r[t].fileType?r[t].fileType:Ua.IMAGE,label:r[t].value,imageDialogState:R,handleEditImage:Ne,handleRemoveImage:Le,setImageDialogState:F,setImage:X,setValue:Oe}):Y.jsx(bM,Z({},f,{multiple:!1,onOptionChange:function(e){},options:S[t]&&S[t].data?S[t].data:[],loading:M[o],hasNext:S[t]&&S[t].hasNext,onOpenChanged:function(e,n,i){return Fe(r[t].apiRoute,r[t].path,e,t,o,n,i,O)},dependOn:Ze(ae[u].properties.model,t),relatedFields:null!==(p=null===(d=ae[u].properties.model[t])||void 0===d?void 0:d.relatedFields)&&void 0!==p?p:[],fieldKey:t,resource:C,resourcePath:r[t].path,enableCreateNewButtonOnReference:A&&r[t].enableCreateNewButtonOnReference}))}}}var Ye=!0;return Y.jsx(Y.Fragment,{children:Y.jsx(rp,{methods:we,onSubmit:ze((function(e){return U(o,void 0,void 0,(function(){var t,n,r,o,l,c,d,A,y,b;return q(this,(function(w){switch(w.label){case 0:te(!0),t=Z({},e),Object.keys(e).map((function(t){return Object.keys(f).includes(t)?e[t]=e[t]?e[t]._id:void 0:ue[t]&&ue[t].type===Uh.LOCATION?e[t]=e[t]?{address:e[t].description,longitude:e[t].location?e[t].location.coordinates[0]:s[t]?s[t].longitude:void 0,latitude:e[t].location?e[t].location.coordinates[1]:s[t]?s[t].latitude:void 0}:void 0:""})),w.label=1;case 1:return w.trys.push([1,6,,7]),i?[4,ug.patch("".concat(le,"/").concat(m)+"/"+a,e)]:[3,3];case 2:return r=w.sent(),[3,5];case 3:return[4,ug.post("".concat(le,"/").concat(m),e)];case 4:r=w.sent(),w.label=5;case 5:return n=r,te(!1),201!==n.status&&200!==n.status||!n.data.data.record.document||(je(),p?p():(o=(ae?ae[u].properties:"").title,l=n.data.data.record.document[o],c=gA.getRecordName(l,o,ae[u]),d=i?v?v(c):"".concat(c," was updated successfully"):g?g(c):"".concat(c," was created successfully"),ge("".concat(d)),A=ce[u].list,y=h?h(n.data.data.record.document._id):"".concat(A).concat(N.search),x(y,{replace:!0}))),[3,7];case 6:return b=w.sent(),te(!1),je(t),ve("".concat(JSON.parse(b).meta.message)),[3,7];case 7:return[2]}}))}))})),children:Y.jsx(n.Card,{sx:{p:3},children:Y.jsxs(n.Stack,{spacing:"10px",children:[Y.jsx(n.Grid,{container:!0,justifyContent:"space-between",rowGap:"10px",children:de&&de.map((function(e,t){var r=function(e,t,n,r,o){var i=XC.FULL,a=XC.HALF,s=n.length-1,l=r===s,c=0===r;function u(e){return c?l?i:qC(n[r+1],t)===e?a:i:l?qC(n[r-1],t)===e?a:i:o&&qC(n[r+1],t)===e?a:o||qC(n[r-1],t)!==e?i:a}if(t[e])switch(qC(e,t)){case QC.SMALL:return u(QC.SMALL);case QC.CHANGEABLE:return i;case QC.MEDIUM:return u(QC.MEDIUM);case QC.LARGE:return u(QC.LARGE)}return i}(e,ue,de,t,Ye);return Ye=r===XC.FULL||!Ye,Y.jsx(n.Grid,{item:!0,xs:12,md:ue[e].widthOfElement?ue[e].widthOfElement:y?12:r,style:{paddingLeft:0},children:Xe(e,ue,e)},e+t)}))},"grid1"),Y.jsx(l.LoadingButton,{type:"submit",variant:"contained",loading:ee||J,sx:{fontSize:{xs:"14px",md:"16px"},fontWeight:500,py:"12px",px:"20px",alignSelf:"end"},children:i?me:fe})]})})},"form")});function Ze(e,t){var n=[];return Object.entries(e).forEach((function(e){var r=e[0],o=e[1];(null==o?void 0:o.relatedFields)&&Array.isArray(null==o?void 0:o.relatedFields)&&o.relatedFields.includes(t)&&n.push(r)})),n}}function JC(e){var t=e.title,r=e.loading,o=e.disabled,i=e.icon,a=e.onClick;return Y.jsx(n.IconButton,{size:"small",title:t,onClick:a,disabled:o,children:Y.jsx(jo,{icon:r?"eos-icons:loading":i})})}function _C(t){var o=this,i=t.modelPath,a=t.onNoNextText,s=t.onNoPreviousText,l=t.recordId,c=t.nextButtonTitle,u=t.previousButtonTitle,d=t.recordIndex,p=t.numberOfRecords,f=t.params,m=t.navigateTo,h=t.onClickNext,g=t.onClickPrevious,v=Hg.isEnglish();r.useNavigate();var A=Bg().setAlert,y=e.useState({next:!1,previous:!1}),b=y[0],x=y[1],w=e.useContext(fg).dashbaordUrlPrefix,j="mdi:keyboard-arrow-left",C="mdi:keyboard-arrow-right",O=v?j:C,M=v?C:j,z=function(e){return U(o,void 0,void 0,(function(){var t,n,r,o,c;return q(this,(function(u){switch(u.label){case 0:return e===YC.NEXT?(t=null!=a?a:"No next records",x({next:!0,previous:!1})):(t=null!=s?s:"No previous records",x({next:!1,previous:!0})),[4,ug.get("".concat(w,"/").concat(i,"/neighbors/").concat(l,"?type=").concat(e),{params:f})];case 1:return n=u.sent(),x({next:!1,previous:!1}),r=n.data.data,o=r.hasNeighbor,c=r.neighborRecordId,o&&c?(m(c),[2]):(A(t,"warning"),[2])}}))}))};return Y.jsxs(n.Stack,{direction:"row",spacing:"5px",alignSelf:"end",alignItems:"center",children:[p&&d&&Y.jsx(n.Typography,{color:"#5e5e5e",fontSize:"0.8rem",fontFamily:'"Google Sans", Roboto, RobotoDraft, Helvetica, Arial, sans-serif',children:"".concat(d," of ").concat(p.toLocaleString())}),Y.jsx(JC,{title:null!=u?u:"Previous",icon:O,onClick:g?function(){return g(l)}:function(){return z(YC.PREVIOUS)},loading:b.previous,disabled:!(!p||!d||1!==d)}),Y.jsx(JC,{title:null!=c?c:"Next",icon:M,onClick:h?function(){return h(l)}:function(){return z(YC.NEXT)},loading:b.next,disabled:!(!p||!d||d!==p)})]})}function $C(){var t=r.useLocation().pathname;return e.useMemo((function(){return t}),[t])}!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.CHANGEABLE="changeable"}(QC||(QC={})),function(e){e[e.FULL=12]="FULL",e[e.HALF=5.8]="HALF"}(XC||(XC={})),function(e){e.NEXT="NEXT",e.PREVIOUS="PREVIOUS"}(YC||(YC={}));var eO=go("div")((function(e){return{maxWidth:480,margin:"auto",minHeight:"100vh",display:"flex",justifyContent:"center",flexDirection:"column",padding:e.theme.spacing(12,0)}}));function tO(){return Y.jsx(J,{title:"403 Forbidden",children:Y.jsx(n.Container,{component:Ga,children:Y.jsxs(eO,{sx:{textAlign:"center",alignItems:"center"},children:[Y.jsx(p.m.div,{variants:Ha().in,children:Y.jsx(n.Typography,{variant:"h3",paragraph:!0,children:"Sorry, request forbidden!"})}),Y.jsx(p.m.div,{variants:Ha().in,children:Y.jsx(n.Typography,{sx:{color:"text.secondary"},children:"Sorry, Not allowed to access this resource."})}),Y.jsx(p.m.div,{variants:Ha().in,children:Y.jsx(Pa,{sx:{height:260,my:{xs:5,sm:10}}})}),Y.jsx(n.Button,{to:"/",size:"large",variant:"contained",component:r.Link,children:"Go to Home"})]})})})}var nO=function(){function e(e){this.resource=e,this.uniqueFields=new Set,this.execute()}return e.prototype.getUniqueFields=function(){return this.uniqueFields},e.prototype.execute=function(){var e=this;this.resource.listProperties&&this.resource.listProperties.forEach((function(t){e.uniqueFields.add(t.key)})),this.resource.filterProperties&&this.resource.filterProperties.forEach((function(t){e.uniqueFields.add(t)})),this.resource.quickFilterProperties&&this.resource.quickFilterProperties.forEach((function(t){e.uniqueFields.add(t)}))},e}();var rO=go("span")((function(e){var t=e.arrow,n=e.theme,r=-6.5,o={top:r,transform:"rotate(135deg)"},i={bottom:r,transform:"rotate(-45deg)"},a={left:r,transform:"rotate(45deg)"},s={right:r,transform:"rotate(-135deg)"};return Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z({width:14,height:14,position:"absolute",borderBottomLeftRadius:3.5,clipPath:"polygon(0% 0%, 100% 100%, 0% 100%)",border:"solid 1px ".concat(yr("light"===n.palette.mode?n.palette.grey[500]:n.palette.common.black,.12))},Yd({color:n.palette.background.paper})),"top-left"===t&&Z(Z({},o),{left:20})),"top-center"===t&&Z(Z({},o),{left:0,right:0,margin:"auto"})),"top-right"===t&&Z(Z({},o),{right:20})),"bottom-left"===t&&Z(Z({},i),{left:20})),"bottom-center"===t&&Z(Z({},i),{left:0,right:0,margin:"auto"})),"bottom-right"===t&&Z(Z({},i),{right:20})),"left-top"===t&&Z(Z({},a),{top:20})),"left-center"===t&&Z(Z({},a),{top:0,bottom:0,margin:"auto"})),"left-bottom"===t&&Z(Z({},a),{bottom:20})),"right-top"===t&&Z(Z({},s),{top:20})),"right-center"===t&&Z(Z({},s),{top:0,bottom:0,margin:"auto"})),"right-bottom"===t&&Z(Z({},s),{bottom:20}))}));function oO(e){var t,n=e.open,r=e.children,o=e.arrow,i=void 0===o?"top-right":o,a=e.hiddenArrow,s=e.sx,l=G(e,["open","children","arrow","hiddenArrow","sx"]),c=function(e){var t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}}}return t}(i),u=c.style,d=c.anchorOrigin,p=c.transformOrigin;return Y.jsxs(Jf,Z({open:Boolean(n),anchorEl:n,anchorOrigin:d,transformOrigin:p,PaperProps:{sx:Z(Z(Z({width:"auto",overflow:"inherit"},u),(t={},t["& .".concat(Su.root)]={"& svg":{mr:2,flexShrink:0}},t)),s)}},l,{children:[!a&&Y.jsx(rO,{arrow:i}),r]}))}function iO(e){var t=e.actions,r=e.open,o=e.onClose,i=e.onOpen;return Y.jsxs(Y.Fragment,{children:[Y.jsx(n.IconButton,{onClick:i,children:Y.jsx(jo,{icon:"eva:more-vertical-fill",width:20,height:20})}),Y.jsx(oO,{open:r,anchorEl:r,onClose:o,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},arrow:"right-top",sx:{mt:-1,width:160,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20}}},children:t})]})}var aO={},sO={};Object.defineProperty(sO,"__esModule",{value:!0}),sO.on=function(e,t,n,r){r=r||!1,e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,(function(t){n.call(e,t||window.event)}))},sO.off=function(e,t,n,r){r=r||!1,e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on"+t,n)};var lO={};Object.defineProperty(lO,"__esModule",{value:!0}),lO.default=function(e){if(!(e instanceof HTMLElement))return document.documentElement;for(var t="absolute"===e.style.position,n=/(scroll|auto)/,r=e;r;){if(!r.parentNode)return e.ownerDocument||document.documentElement;var o=window.getComputedStyle(r),i=o.position,a=o.overflow,s=o["overflow-x"],l=o["overflow-y"];if("static"===i&&t)r=r.parentNode;else{if(n.test(a)&&n.test(s)&&n.test(l))return r;r=r.parentNode}}return e.ownerDocument||e.documentElement||document.documentElement};var cO={};Object.defineProperty(cO,"__esModule",{value:!0}),cO.default=function(e,t,n){var r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l=function l(){var c=+new Date-a;c<t&&c>=0?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(i,o),r||(i=null,o=null)))};return function(){i=this,o=arguments,a=+new Date;var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(s=e.apply(i,o),i=null,o=null),s}};var uO={};Object.defineProperty(uO,"__esModule",{value:!0}),uO.default=function(e,t,n){var r,o;return t||(t=250),function(){var i=n||this,a=+new Date,s=arguments;r&&a<r+t?(clearTimeout(o),o=setTimeout((function(){r=a,e.apply(i,s)}),t)):(r=a,e.apply(i,s))}},Object.defineProperty(aO,"__esModule",{value:!0}),aO.forceVisible=aO.forceCheck=aO.lazyload=void 0;var dO=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}}(),pO=e,fO=yO(pO),mO=yO(Ne),hO=sO,gO=yO(lO),vO=yO(cO),AO=yO(uO);function yO(e){return e&&e.__esModule?e:{default:e}}function bO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function wO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var jO=0,CO=0,OO=0,MO=0,zO="data-lazyload-listened",DO=[],TO=[],PO=!1;try{var NO=Object.defineProperty({},"passive",{get:function(){PO=!0}});window.addEventListener("test",null,NO)}catch($m){}var EO=!!PO&&{capture:!1,passive:!0},BO=function(e){var t=e.ref;if(t instanceof HTMLElement){var n=(0,gO.default)(t),r=e.props.overflow&&n!==t.ownerDocument&&n!==document&&n!==document.documentElement?function(e,t){var n=e.ref,r=void 0,o=void 0,i=void 0,a=void 0;try{var s=t.getBoundingClientRect();r=s.top,o=s.left,i=s.height,a=s.width}catch(e){r=jO,o=CO,i=MO,a=OO}var l=window.innerHeight||document.documentElement.clientHeight,c=window.innerWidth||document.documentElement.clientWidth,u=Math.max(r,0),d=Math.max(o,0),p=Math.min(l,r+i)-u,f=Math.min(c,o+a)-d,m=void 0,h=void 0,g=void 0,v=void 0;try{var A=n.getBoundingClientRect();m=A.top,h=A.left,g=A.height,v=A.width}catch(e){m=jO,h=CO,g=MO,v=OO}var y=m-u,b=h-d,x=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return y-x[0]<=p&&y+g+x[1]>=0&&b-x[0]<=f&&b+v+x[1]>=0}(e,n):function(e){var t=e.ref;if(!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))return!1;var n=void 0,r=void 0;try{var o=t.getBoundingClientRect();n=o.top,r=o.height}catch(e){n=jO,r=MO}var i=window.innerHeight||document.documentElement.clientHeight,a=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return n-a[0]<=i&&n+r+a[1]>=0}(e);r?e.visible||(e.props.once&&TO.push(e),e.visible=!0,e.forceUpdate()):e.props.once&&e.visible||(e.visible=!1,e.props.unmountIfInvisible&&e.forceUpdate())}},kO=function(){TO.forEach((function(e){var t=DO.indexOf(e);-1!==t&&DO.splice(t,1)})),TO=[]},LO=function(){for(var e=0;e<DO.length;++e){var t=DO[e];BO(t)}kO()},IO=void 0,SO=null,WO=function(e){function t(e){bO(this,t);var n=xO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.visible=!1,n.setRef=n.setRef.bind(n),n}return wO(t,pO.Component),dO(t,[{key:"componentDidMount",value:function(){var e=window,t=this.props.scrollContainer;t&&"string"==typeof t&&(e=e.document.querySelector(t));var n=void 0!==this.props.debounce&&"throttle"===IO||"debounce"===IO&&void 0===this.props.debounce;if(n&&((0,hO.off)(e,"scroll",SO,EO),(0,hO.off)(window,"resize",SO,EO),SO=null),SO||(void 0!==this.props.debounce?(SO=(0,vO.default)(LO,"number"==typeof this.props.debounce?this.props.debounce:300),IO="debounce"):void 0!==this.props.throttle?(SO=(0,AO.default)(LO,"number"==typeof this.props.throttle?this.props.throttle:300),IO="throttle"):SO=LO),this.props.overflow){var r=(0,gO.default)(this.ref);if(r&&"function"==typeof r.getAttribute){var o=+r.getAttribute(zO)+1;1===o&&r.addEventListener("scroll",SO,EO),r.setAttribute(zO,o)}}else if(0===DO.length||n){var i=this.props,a=i.scroll,s=i.resize;a&&(0,hO.on)(e,"scroll",SO,EO),s&&(0,hO.on)(window,"resize",SO,EO)}DO.push(this),BO(this)}},{key:"shouldComponentUpdate",value:function(){return this.visible}},{key:"componentWillUnmount",value:function(){if(this.props.overflow){var e=(0,gO.default)(this.ref);if(e&&"function"==typeof e.getAttribute){var t=+e.getAttribute(zO)-1;0===t?(e.removeEventListener("scroll",SO,EO),e.removeAttribute(zO)):e.setAttribute(zO,t)}}var n=DO.indexOf(this);-1!==n&&DO.splice(n,1),0===DO.length&&"undefined"!=typeof window&&((0,hO.off)(window,"resize",SO,EO),(0,hO.off)(window,"scroll",SO,EO))}},{key:"setRef",value:function(e){e&&(this.ref=e)}},{key:"render",value:function(){var e=this.props,t=e.height,n=e.children,r=e.placeholder,o=e.className,i=e.classNamePrefix,a=e.style;return fO.default.createElement("div",{className:i+"-wrapper "+o,ref:this.setRef,style:a},this.visible?n:r||fO.default.createElement("div",{style:{height:t},className:i+"-placeholder"}))}}]),t}();WO.propTypes={className:mO.default.string,classNamePrefix:mO.default.string,once:mO.default.bool,height:mO.default.oneOfType([mO.default.number,mO.default.string]),offset:mO.default.oneOfType([mO.default.number,mO.default.arrayOf(mO.default.number)]),overflow:mO.default.bool,resize:mO.default.bool,scroll:mO.default.bool,children:mO.default.node,throttle:mO.default.oneOfType([mO.default.number,mO.default.bool]),debounce:mO.default.oneOfType([mO.default.number,mO.default.bool]),placeholder:mO.default.node,scrollContainer:mO.default.oneOfType([mO.default.string,mO.default.object]),unmountIfInvisible:mO.default.bool,style:mO.default.object},WO.defaultProps={className:"",classNamePrefix:"lazyload",once:!1,offset:0,overflow:!1,resize:!1,scroll:!0,unmountIfInvisible:!1};aO.lazyload=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return function(n){function r(){bO(this,r);var e=xO(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return e.displayName="LazyLoad"+function(e){return e.displayName||e.name||"Component"}(t),e}return wO(r,pO.Component),dO(r,[{key:"render",value:function(){return fO.default.createElement(WO,e,fO.default.createElement(t,this.props))}}]),r}()}};var HO=aO.default=WO;aO.forceCheck=LO,aO.forceVisible=function(){for(var e=0;e<DO.length;++e){var t=DO[e];t.visible=!0,t.forceUpdate()}kO()};var RO="data:image/webp;base64,UklGRqxWAABXRUJQVlA4WAoAAAASAAAAVwIAOgEAQU5JTQYAAADNmZz/AABBTk1GmAMAAAAAAAAAAFcCADoBAB4AAAJWUDgggAMAALA3AJ0BKlgCOwE+kUihTKWkIyKgdVgQsBIJaW7hdrEd60OP3pnPgaarvPqOPmuYM+NiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUdCRCfuIvEFR/ljYi8QVH+WMMEyqaUAmjJ67+PWWkEuhsq8urdTe4i8QVH+WNiLw0hZc/FkWY7Oyy5BPgBwJD/tSmbelUqw/EFR/ljYi8QVH+WNheBpleRDronNegYg1oPRkpehtarOUIEAoU3uIvEFR/ljYi8QVH+Ti1+jaB/19CexyBTUVTOmmjpV7T3NafRl5f/LGxF4gqP8sbEXo86vljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QTYAA/v/BBAAAAAAAAAATJQBqsvxIXXLyeQXrZ+ZaOx4g52u/S8d7vZCWRSsl7BCamwV3y8ZfIWv9EMsN2Vyh09OYkunBAgNAcxv58Fyh0MgFSIgWuVBTz9JCgTXBwdRYwBVYo3ifnsbUCK4Um+eBsSgqejVKI5+P7Z40gFnP93RMv/a9U7NhKm7vlda4Wk2tEGLYwrzr/KvoFeH7CDoL+1LVgbHpkPMwgUree1s3WDG+VV4hJtiys+T/ExT0kCa+DHdPvYv17ngY7WXdAw3xkHkNQbjHBmoQAAUf4kleBzr7yt3xMOsDSMwnGEcLzv0zOPenX8wFAL9f7f1sTPeGEnMB5age4AMKcLq9wbx/PjBlKYm3Pi8SgqoqP3XENL1z/FdRud4QWmZjbMYI3/EAaZYmF+sThI16y8R1ax76i7yj9FtcM0TJbsw/0ZCn7v18VXIAMhEBYtw3aMM76exEoI/G5urcHo5Kfwnn0yuWA3zDzphHZ4ahbe+1cRIP075/8TpZjWXuFZw2aPGPzIHO62B3YbS+nq6c7kn1TQoXCeyx4Yq6l0r8MT1jGk/cXUvOAAAAAAAAAAAAAAAAQU5NRooCAACFAABAAABCAAA8AAAeAAAAQUxQSCoAAAABDzD/ERGCTdtIgrY7WEN9mLn/HwAR/Q+AN5DrzHXmulITUgsppP8DfARWUDggQAIAADQOAJ0BKkMAPQA+kT6aSQKzSbsAASCUAXyAvIqpb7td3nJ+PV24cdpExVrmSSQX07lr2YJsz633z1z3Ww5+cto2AzI5NXPky+EF6SIZovVmBdiTsFUSSxnUTPdFLDstBV3IjfH6q/3iGvHT5USqcpqyrPtXFfijYkcAAP7+YAtPJzCPpHg3HcmN4Gj/H2p0gtTuQ/NLFzSqpdcDLENmWEiIA9w7ruzbh0n4FR6SzqTXHGy3iC2ZCm/CzucUKS9hkucwmK9jgyWC736o4R12FgHhF/M/c0SMlET2TWJhYGIj6x/xDhZFaBrAR5WUy+G7UxqpyMAsRSV29oJWdSRFjqFfbBaMm5sRsCgztyE6d6DarAPQJtViuy3hQHRLw8+mzEJzc4lgqHZ+5C7Pd4hBtQvB22mJUBKJ0UYR9E5qo12g5BUSKY5ntKpv4O5en6U7K8m9Ou6FYVygcAOSye2wo50ZASVGPI1y2QP7Mf6dmDEiFwI4Q3/T/iUCh8dCyXAWqSJ28Htqahylo0XLT/1XZJi65M/mWPvbTLm+jOJ5uGdRH6aE5WrcRI9C+OOZaeM97bo6ekvlzQYBD9dVZ0F3eoXMe/XRKYVhDWbJXcksFN8LU2SECFMvx0rbuYJ2WG+rRai8snrqgYl39NL6u2QCl4HrWtgQs/L0tvHosJ+Jfi/BhGp80jT5NUxfD5tvSyNcENtLgr5CCYAU7RAdm2JFmTmmPigSyluFgOPR1P/TB7VttTJ+UPzh8K8F966OAqiAAEFOTUZuAgAAhQAAQAAAQgAAPgAAHgAAAEFMUEgpAAAAAQ8w/xERAjEjSdrfYY36mBXADUBE/wPgLaQjuevMdaUmpBZSSP8DfAMAVlA4ICQCAADUDgCdASpDAD8APpFCm0mCmyutgAEglAGTAOKGi00OXt65pzYAe5O6/TUFYrgu6T+BO2RLNb+JeBfBP3UqWC7V4s1AlcQaJzrodN1aUrKTvkc2mt3HOO9es1XgmUCAZpJXweVlzSIToLeGlEnuTeYE7V9JJbPy0Pj8SjysbMLAAP7+LpWdvF4gEF2L973f9P8EoBFLVd99v9v2clFv6DAIX3ZPwdoAYRqwUOrtNzWJyWpcSVlRKEfYhQrR5/Lmhvw8MF9tjjordbMilh/WEvIqKz3btNeHibkBptgpDYaAWJBOJZliX3LDOkMcATh7mbao746Vh9HddMqXqpSyyQgSY5X65lgsexi3Bx3uca3EvT0LmKMqXl9KDhlczuNMTkxAZEZG/bvy0EDxEYp0KLLjo8VEBVNRupKaXNfH2QHtz320ZZzxzadppb4DRdsys1q+LfAQCCJGDVLYVvs+Iy1O93bRQD2wIkJS9vcyyPrsSgURxgEjxlNLrI+Pg1ClXM39oHtZdv/+/csdGp3X3JrQM0rElKHHclVwMWmLqpGiFjdqgMhHfXogbZn9uZQ/xuPmNZ5CbNGxLpxpXp5Tivikk2H8fmURxXy5xo/PyMwHpj7YHgtG+G9Aopvqcbg0hygBjTNkIwGc04iPeHTVV/7KN99T8a3KFhqQr/OsnBPNKXTsIy3R+xlEMmZAhg6tyhbaxs6UjOFgR1hwp1hhv48GgAAAAEFOTUaSAgAAhQAAPgAAQgAAQgAAHgAAAEFMUEgsAAAAAQ8w/xERgkkkSZKWray23s4S73dHI/ofAHMphfQ8wAUyRv9J6oYU0vMAxwBWUDggRgIAAPQOAJ0BKkMAQwA+kUCaSQK5VagAASCUAZYyOkH9IG3Vu3TefK8qSHy09KhPQ+B2EhPx6c1iZyoMQDEwnCPgSJCbXygp2lidOdrUH8MuHJkFkNRXhrDkLJwEwrjqsVxdFL82PVwoxdyNtoAFBXzLIaqk+2HBS978VHrGndQVfDIAAP77b6FPyKaRZ++t3W9g60/nbbGM7ui5R2AVGAMKSJfIa/+C0Qb/4hm91w6+l2zQ2DDeZfrXvRht6gTwXjOhuVfc0Q27iGYxheyYCrkG6UeJI+SmAd/Y1MYSs+FfJvcP1GEfJVsbTP5usfuZVQPdv7ZCCaIG6coiagqv3khQvW4x87uOCqPgv1F7lL29ubr6/1UJytXyE1QEgRlb67MoGlVEka99A0sGiRUYnFlmb/JEoIikf747fa0wi3QMJIe6uwOe8UwSeSGb6njgwXgJcfal5Lt8Jcms9Fkg6cwxrbwxi8dvaottek9AkqYfI+pKeg1374h1J2d+DmC4Xfkrhtxb1H1iTGpdyqRGFApKXWOq6qdqOIOlq6uDMKZk6Bvzb4gP9cFqNY+ARzrYJFc5hNy1IvCt0cniag1uNNWkfpUle1FdjdSa2eXMIt+NtnlphH+9O9wJU5Xpi6KmGUC3f3YdCKyTqjBkGk7WF2ouTmTT0WLXko6f36YbAtyhqtwxk57vFR4I7bKvWh4qP0ljKNpZ293RQfCVuXOh9TGu2ELNETimDijgqa7RIlhgBsdPS/DnMAchQgFP7oGwYt2P+ZlGcAAAAEFOTUZ0AgAAhQAAPgAAQgAAQgAAHgAAAEFMUEgtAAAAAQ8w/xERgkkkSZKGray23s4S73OHI/ofAGsrhfQ+72Rm5m/KC1IvpJDeB7gGAFZQOCAmAgAAFA4AnQEqQwBDAD6RQJlJAs1NqoABIJQBm0r5k526t26bzqjddyJ/E/zfbIGkCy1WKSQUU27+gzcquChMMtEx+A+7TJCqSSlLF7xwClBoS1Kf4Iu09tH8wWnYL3PCZy0I+TDF48RDCFFBI0ElR6b96tBJ4CG4UsgaAAD++9gqr1qJHQSPpsEuzg1UxsDn9N8VNkb0pS+/quiw+9RNSUqE3dy1beRfHN7DnWYPzNGoTgsvWUFmUx4xvzQ8BnYusIbV7zgUC4c3z13NYgeAw4187x0XHs6jNtj1NBBgq1taTg2qeBWiqowkqEhZ4PmeBgQIrDf2h1EwZ9/23nM2uaen5BFrQ6M4HY7n2cr6OrLUq9+zKBo5etxbd2H2Eg3ZT7qyYqRCREtIb11W9ot4QKbUDvACYDdfXgxCPMQlN4sSMwzU9Eb8uwrAByRVFDvzUg9SEY9NT3WFBfaPv+y/wgI7TurX4teXl0VOLnnHo/OYX2whZ364rDwDDrF8V4RZCuhEX3R0zjBJcuL0ePckvFsL1ZRE3M/REP5sy/M3ass4j+amsHIeTPr2Z6OtaJAJnvte/Dr2l2vTqcunzLdK2XO0BoIUeaxFU44+GR8uYwD3EWJDEPYoRSslPT28FkSDDZTrMs4NN9Y/nX+98ov3wqLA+sHu+SYxEblnkbN1ytzC6KUnVn94PjTJG0/D72g8d7uACypheEbBxSaMOJuImoIJJ+8ugAAAAEFOTUaWAwAAAAAAAAAAVwIAOgEAHgAAAlZQOCB+AwAAUDgAnQEqWAI7AT6RSJ9NJaQioiBTOCCwEglpbuF2AR3p69ntpbtm3mnAXWLUfb0wbTIEfG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbU+XfRciRtQ5xeIv/ljahzi8TloQa3lWt1P9G1DnF4i/+WNqHOjUOWKjKyiAjJs8ltcLZvMJP3+6lD6TASJdT/RtQ5xeIv/ljahzi/VCkNcj5t8NqTltHYwpQNdT/RtQ5xeIv/ljahto7k9iYJMKw65iINSlMWcndjw/nZdr0vcNdT/RtQ5xeIv/ljakTXSBGZtMlkUTPEpmC7EPbfKDRGeQjvOf8sbUOcXiL/5Y2oc6o7Qc5agGup/o2oc4vEX/yxvsi/5nP+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/3gAP7/q3QAAAAAAAFzOALSEVQMV8t4YvlgoYxCNv7AsKuABXSFJvx9TdFf4DzzrWedRFs3jAySfKNu5iNgFSAFzR3HpcSf7MWfxJ6yWYEZhUq5mu/SXCPcGbew9SvSinTyY5GHozfD7PrymO1zP9DBpFkZXEiXBGY+ceQzEUFWm2Ugb+xu10DpaDEn7SyqCRzwUncPahpAOQMO2IXB2GbCz8QhTEYh4fs9XtTSWP2xAZY7yTKdrupQlDNbjSwShuJz9+HMbq2MKEWax+zoL/q8R4SiXvv/7CrQAvmIp6KomHDv3RKb1UVgqK0g8WqrxSmMphuetqM73LDtWdvrJVjAnMgEOvec10tKb2poFZOXzEwfNQJfzTVGzD+XK8Bd2IoqfJO2bPH5FZ3M8POmX1oNrFMHvRQd4p37ZKANWl7g444f1+31UwZ/9gLTMcEqHJxe61cqbumL7Z24iVuSbpACKQ4WrWwATlak5l/TTUPQfhzRoGt7lPODggRQGijDzbdz10EjEb10mkyFRaA4sctrD+XldznKS6tdbUI270HMxy7f2P3SMKAAAAAAAAAAAAAAAAAAQU5NRrACAACFAAA+AABCAABCAAAeAAAAQUxQSCwAAAABDzD/ERGCSSRJkpatrLbezhLvd0cj+h8AcymF9DzABTJG/0nqhhTS8wDHAFZQOCBkAgAAFA8AnQEqQwBDAD6RPplIguFGrYABIJQBnDtBEt24F2q7za/IjMG1Fu/2kDgKyQgOab/kLjaKlSm4idkAwmUl5AzTXeSW+W9roQ1Cx3xKi0dwVQsMJF9q2XO3+/xzoQtsRstc928+46Bx53ew8wPX9EXdOT9ocp+68QGBhI4hVuCAAP779ivtL9YTo+N8gsAVmmg9ZhrPuSxvQv81LpYllCXra1YvKGmZGf45kT3yJzgAqCXAlC7Cjm7QjeSy8Cj+WrB9irAEaLeMlWy6K3vADI220+9ig4kEAPdMmhl9QTpxVLly+sDZUbaPKMmbYlqpPNUvMgr5TogKZfKVkVHusgVlSSdZRQUeGilnbC2QQ2RJS761MfMUk/0PZdzLAkYlfaThM/ukNhFAYp6pHdjFaePBedsO2fa4sP4VsmiesunPQfREFPzGpk+/ZlAyoNnbRasUiPtiigYz2cZK45xbuCdYjNDwBFFfjzn2CBEAif0Iuzp6iXoBWspdpkaO3bW+8KvFur49Aycyn2PUhFthyd7U1LL51ce8JgKpm9OTU2XBZkrmGgff3PsRzkYYn61/ydPfCzfMiMvHmKYlPYY9x6Gy3z0MkrIJYRtQ+Bs5kYmkAl6Q4+R1L6AU5fS6vfiHX+keO2HfWpmLEg1vtQed9IJ5iXcCCP8m1xdoMlJ0AkRsGKvoDUAtM6mkIFnQnddQ3DIWhy1vVFA5te6D8yQBI24ZUWOh4Ki8fCjxlMgD43C7mrjoowaIVk+bBSKIzlNXHKH4Rq181F6zGovHGv60wgFU3EW70akLWM0F5F5sHNcAAAAAQU5NRnYCAACFAAA/AABCAAA8AAAeAAAAQUxQSC0AAAABDzD/ERGCSSRJkoatrLbezpLt/Ycj+h8Aa5NC+jzvyczMW8qfSL0hhfR5gFMAVlA4ICgCAAB0DQCdASpDAD0APo08mUeDAYCzAAEYliAMrVQwj+3LGgDnqTa+Za2ke8at/XMFKE7kY/obX4OxjGq9ZBwqB1qJ8G7wNBwXBeuhBUv0nENrSbVGtQ5atNB33Dv3ckjUl+iDvPM5D11YineqyCTqGxdTfHPFAAD+/pOUAKxK817/zeb96nrhUXdoiiRew8tbkuLR49XehVojfPARsEx0ksX0eJ5wh/Y6idCepNdBi640lflCUYi69vG4LNREpb/B7/yhdqVZSPm/K1eOsvPZdQzK0U4v6zCJ2vD/RnOEnPESgrueUACPdXB44prOmsj/BELl3ovvFvPXdkZXg+3NTkGE4MrWmz2aAe4qvZ6fOpC1sMlLvTDIv1nlCojFROGUQUEitlgD+h4/1Q3whBtUk3S8UiI3uO16Mqucful4G4K7WciZo4jehzYaIthgOLJJ9U2bhfz5bOufpLv/Fyx/I93DniOhsm2mLd2cqbEbQNrqAyjNBg2AOERaxswxd7jgLiSv3MUtjcaE6nJuICT56TGg7vWc7Y+ubg+Vat5QpRY66536qzGiBrXyjTyNjNUmQjzs699RbIdt93NbU6Lzg/nYobMAbXjxtsYYtROd2pXJILKNZcPJxb9Y3bqQy3pvaGxtXERRX+z03vjKsKpPK0a2+xyFLOPXPB6X/rY9p4xYg6Mi0Mq48wkMC9/UDKYn1aBTQX9M9rJiRl+gNfJjFgWw5LoVNgAAAABBTk1GogIAAIUAAD4AAD8AAEIAAB4AAABBTFBIKQAAAAEPMP8REQJR2zYas1IPs7xPOQAR/Z8Anw/V0fGDuyN31DDlsDRUR8csAFZQOCBYAgAAtA8AnQEqQABDAD6RPJhIAwEzwAABIJYgDOqJJ85cDGl25d2l7zk/KDO6yNI2IL5qHtokF7ZhfSIGj3rL3sp/20RWo7OJGnfrGVlIJkHTOOqX+ocqG/dUSginiwbNMMkUnwlfmyezRPYJyGasGya3CS9vl+dyVJSvfB25JPCjUkdvIrVas7AA/vv2L2FaOxcXvgkf0TNjiBVp/avTo2nbSoxb1LwfTG9SkdcOKnFsbaRv7SRGBPWE4Hj01iha7HKBl0QX/xLTpHtt+7x2JS70a+hvPqLWOa6A20eZNtnjARbtBvyDYTzY3Z2WkWnMdu/IvE5r219rd/aPu/2YAFGp2xBReKxeKMFR8V5eC6JWnI6CN/4R5KW2+pRV7kUtt9CtVta0vlHM9A1WeJiEcHQ+ezNfuU1fRR/64yDn7tfQOCeckqnrKvzKKtZhBOXs3yRS0SBa3IrCtkOQTD+Q0Z2uWs1nONhEtrKd9ZEmJR/YQxG7dEs8ssX7vEceFw2QrTtVFHVNY0ys3x5hhSqf0nT+ypaZ4lyD/LHkPZSOuF8ICwJGVC9Pje4TOJGCmfnyOQNyaRq69/OcusRIFg+0gEo0hW6BF7GxLa96w3IHqBct2k2rYwqG/1chcy0hVp4nXhm8x0sbPX9KDUlUgQUzaSzFiUF7P4ycNkvv1t1w5ktJDNCLwvEyHCwqQDynv3Pfe0pNBH7akNVhYZhWSh5h7IR3oStRSIxojEjtlXoysLsevno1LbidsoTLavtoq9/BdC0p026WRc4hYZFrnZOFjQvcPSXoVeCRAAAAQU5NRnIDAAAAAAAAAABXAgA6AQAeAAACVlA4IFoDAAAwNwCdASpYAjsBPpFIoE0lpCMioDVYILASCWlu4XaxH9V6wviBtjOeVsnBGtpANccC4ReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUc9sReIKjntiLxBUZSrxnPoy8vz2xF4gqOe2IvEE3CL9XESV4J+ujRdOCAmApfv0QDqszIg99ts5yCNiCo57Yi8QVHO9RAKmFosS63NPSaa7DzdoyGLcReIKjntiLxBUc9rSkdGKH+xoSYVgRVuLuXdKrWfXqbbEXiCo57Yi8QVHPb9KtO0XvO/f3Hlcyzud1cR+doweLBGxBUc9sReIKjntiLxB16VHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi8QVHPbEXiCo57Yi2AAA/v/ERAAAAAAAAAAR3XgthiQeF6cLU2MRBuFk6e7Mn29AAFfaQeMJNb6pF2GcUHjFI9JtxGwCnHDgAtDVXD6aTZYwHP09BpOiXJkKVqIMFoJKQ8THUxokfLRVc+BmNFsYKabTbTYXYf8yMv0+5CJvmhgk9dbHLIw9mBmbKsAr2w/l5xWfmPq+rE21Yxxgb3+mz1PJZp5+jmDIn0B8ARFOB4A+gNeoZAJOwaqYiweqsv4DVxJHHoNQ6lGR9hyr56mheCF9poa1hzQe2Jv14mrrfZbKqeqsbOutJOxFVxCQtFKpNcmuZvS++7j3UitYOx3uAl94JZ5T8C+KtwtKVAqZs6wlzKmCtdIzNVZmffFuYiJzJhbp18r47rLIMHDuJGcs5VKTAA+ndxxNXikcZGeVDhiEXHOqMjsoxp7KqmTI10hyldz1GmMojey7YxlQuVpKF2zJ9JZ/h7u+PHyYD5ewDcJdEnxZvz5OajUC8e5Dxpovbl4B2ZlKPBULD3k1ztlpJHAx3DPJuomduBJAAAAAAAAAAAAAAABBTk1GogIAAIUAAD4AAEMAAEIAAB4AAABBTFBILAAAAAEPMP8REYJNG0mSlsFCaurNzPF+d2lE/wNgLqWQnge4QMboX9UNKaTnAY4BVlA4IFYCAABUEACdASpEAEMAPpE8mkmCuRzHgAEgliANIZb37OBttw7ta3nZGnvpfBPSjz0PbMHLsT6FiCTFikPS1kKULWgMkK6C95NbsTa+kBKqfdBrp7IrdHNdPb8La3vdLg48RxLhBjMR3XGkevOvUINorQnemxL0xj3Twrcgtinfj4FQB3CMCj2W0GXZXS4QAP77lGCmuO+nqcJe2NiGfr+gV3urp8+AEoppQVYXnwQuBw5WdUnbZfV2HWxBgo97No3L7/jGvS0+7NcXoHHRuuCPipxaDmQCSZdPPITQuOAcqlVkAzGfVbuHPaOSIMu+1hH8RxA3ATdWYW23HsHOvmYJqMa1wTGRIzQazlixDvV5KWqXcoRy0O6s1NXHmKjDiDauAzS8mkYg+YPyBbTRyPolySQejzFsLr4Cc5okox+dqWkznKNdGWqgT4rKXbU765XUzuxod4H3X/I3IXhv3yrI3/S/exG27VaWvQ6PdzTAsEM23Cmo5RlNcVh+XoMUsFlCnYV2whg/vWIaRnCAwnp/MdPEf9kpwvk4HJ5EjRAl8cg1bejnD/2GeNiNoqk1fKxpGAxxIaxdVfzFWPBe5EfgQHQCp832T3Ra/5aeCjcUhgdOUWEVPvlDH9+gHNsixOJLCH0qg/U1LdFJmSnSqx7TWtnvsEq6/P2YuaEQbJJY9NiO2HrR/wvGdka0GB+0pdnJQ3kPizQVSIzbuaTbIuu8a8y7HMeQ4zDfCIUaRCFyefjZwFFotF0IR/aWjHKpgH02aFfv2UpIK/x5ehrQrBSuELEwLvMdAAAAQU5NRpQCAACFAAA+AABBAABCAAAeAAAAQUxQSCsAAAABDzD/ERGCTSNJjs4AG+rDrOJ7m0b0PwD2UQrp/QAPkDH6T1JPSCG9H+A2AFZQOCBIAgAA9A8AnQEqQgBDAD6RPppKAqUgtIABIJQBonAum0bM7bW7ZN57YA62e74zSlfjWeMN2NRDVkq8UaC3Tf3GZMJ3qZbB61i2gDZGlwRKhirEEG/14egVghbgKQUZHw/qNkgcmzNu+eWMDDC0X9rthozPwQ3ZeXsNBi2pZ4Eceryh3Xo52Uf3oA50AAD++5RSjM+616m/QopAj8mTaNDJHW7KxbH/dyRrUib3t6GB5TS2xoAqeDn6yqlo5INaPZUBzqQWmgBidysmar1AU0qhVOUPArd7MRLSpuDmWKq3SHW18dD141fYhdYBMhZgsqxptemleIN9026/xwNc+wUl8BZSgE5QUIpZFpvLwZEjapR+/EMi0G3bKfnakDWdqqcQ4dl4ZlRxplsz7Stx2bv18t1WkODzC0N6etE2EHPLBXMkm2Vl+/sGh1sDmr0H3636nmMyt4De4bdLsVbCtmx6myzNwM5kQ1AR4apDQqXNZpkew6ckvS0uTDf9WnPZ/CDmJvPaLsKF7tZLMjtt1tHpk63juHaVNQnGc+j5HAOfZKGkOwRvMgzlsLrwm/7P3bDUQjcGTlDlg14EfvCF8D7cC0sqFc/iTGENxVaOFH9Y+SW8P1wW38p1NUBBZMItKTi+19WnrGRRJC3ip3kAThb07gwrILW11PxsEgfzAEpx+B+pV67T8VDbY5e6VAgvYnG3epxaRiGVKDj5HQTE4d+0z4C8+tpCHQxN4E1bKlDNbterDCvXamscuQZnfPR3aDCQkl4w0RWAg8wAAABBTk1GfgIAAIUAAD4AAEMAAD4AAB4AAABBTFBIMAAAAAEPMP8REYJRJEmK2sFKKuvtbJkPvhH9n4DYDVtwhe+L3SdA8j+JSH4AjJF8X+wuAVZQOCAuAgAA9A0AnQEqRAA/AD6RQJtKAhrQgAEgliANBMhYwoTTze2yu1Deg2Ajtxu7szJVi1lla4zC+kxWAp0cRQVv8zYpJt39jc3CI9Drf5wZTtWxknISXdI1EDV5DqX9Xxk9AxikP5B8+iZ3xnJJjR+pzUNCAO4k3ot3MiAAAP78qCl/rdLUy8vasVlcVo2f8JLNX5vNihDoS6W4dJl6VkPXH+YiZASgFuwKFZ7VF3/nDL2pqh3pNWjRTnzwKoZYrTpqUBFOPIZlmFZyMvPX0vIo5XnlT8uMbn2fnSYzILdrchiEMC8hOxxGNVg47D9SucczyJ3cfDpWRCOic1LSuCz04oJzdOnYsRFdiKnb5nd0W9GaRHfWjPVtZeAYIUsF//V6LafNzfU6XVtuFz08Ct3czWcCN5XJ36tNS/8fWT8SASMF0BKA/JQDHd8AUIdxPL+cEL3Z+iZjyUY3SYqEbkjoVjlke3By7yjiIGX9BN6CGb8KJDLmfFp0D9q+91BrNLAC5XRIMG6bAh7GGBmaRVyk4xz7vqcJpC7/4bWcIWT5Sxl+8WaH5pS2+oJ6i9NkyHmv5deOQQGCF7jBpOvYzSjgSYfBiggsvpPMNmruMZHwAPqaV8RYUrUTu9xtcw2l2VGbLbYSn5N+769m1BIzpI/EyWJD5u5JzBGIPbn/XsHzWqXBWh5ChM5vktDdCRM3VKPkAZ7u09EARdWWeBQR8crWotkvtcxwMaHCfQc8NxbAAAAAQU5NRoYCAACFAAA+AABCAAA+AAAeAAAAQUxQSCwAAAABDzD/ERGCSSRJkoatrLbezpLu3ksj+h8A6yiF9H6AB8hM/0mekZKZ3g+wBVZQOCA6AgAAdA4AnQEqQwA/AD6ROppKAs0gwAABIJYgDIQWQI1t3LtuoDN97rJghHdPqLkgoDQLAjbHWGgOdPp17X8nS6VStp7Q2oL5e1UxD249af1tuGEKPgH660jSatqBMMg22Yg2ctLnITqoFfY8WbMNbY/uzLhx0CSs8dOWD1U8AAD+/KgKdXBbQJ21biv4JTTb1BBPRjedHJL+nMah5uni7dagqpV4uq7mLhBMK72QO3NDlw/NPR/QtBOv5hKRso3oyOYGzxIontDRGLomK3FCdjk750EjlWbNx1Lxma2roSK1rWuAeQeSU1DBwiFFVzJcll++T/jW/kSae801y04kQgdmNBgPTL4uqKB2DbBzshRPd1g6LfO92RtsJ46hkDUr29xWMm8SoyWt5Vj7fTyvOZO/xcOGk8fxaNRQ2MizXESKbe6LCP7dUhvLs9MIs1Jv2A4ZFAZK90RlA63WlaU8ix1LB7qN3apu2QPHkaaiBvBIYv8rJW/xQ2uUW/6gyv7QZsbj9+MQj6Wn1ZxFp0374spxAdZAbdOrKsDgD/Gwgk1gOEIP+5RfTReiknrKgwGr5gHUiCApBJYJcSWfW705GlJdtBgrp2erLzdF6IG8TCa+WFApRNSGLBu0lMciL45dklrMah0XJTFRRlb2mZisbbUxdYy/T9ZtGpjk/4qzZ+CFJY78QUBQvBBNN/q7AzKljcD/zowoL7s64fcSpeIdm2meB/RQ9emUExuemSUuvIi903GSqGnGTUsDAAAAQU5NRjADAAAAAAAAAABXAgA6AQAeAAACVlA4IBgDAABwNwCdASpYAjsBPpFIoUylpCMioFZoILASCWlu4XaxH9gavxKaLpCp24y6pEmW5SAR8bUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF1UPK5G1DnF4i/+WNqHOLxF+NMnHoVpgK32uLaEf+AMUZLY03pf3chFSRhhgGup/o2oc4vEX/yxsTEAdNU21XjmnGWRUL3JcfpZveoBrqf6NqHOLxF/8sbExnR9K0B9Kz85HjwhYuWRUrnGVtquFq6M5/yxtQ5xeIv/ljahzi6rpAjM9nNxzj84LPR+1sVjahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8Rf/LG1DnF4i/+WNqHOLxF/8sbUOcXiL/5Y2oc4vEX/yxtQ5xeIv/ljahzi8QoAD+/8EEAAAAAAAAABQZaBXf/XnRkzdUtnMTEqm+ACQFv+BIvJD1iH+X0UBrbVl9u/fBkTmTSQuRTR+r6WYDf/hdoRR7KrfSL/aAxh7R9UArYvjDj7P8gg5nKEFexM6QStkPTl17cIUqol/6ijMvM580R2hK4NVd8mW/2mKhtZD3n/mzWuYl0DPvmchxUgJWOn5iWedWA8dFR0UKxoKBJgU8Vm985hHm39+XbgEBBVUuf7iwYA0PlN8hta2GdPEQlinnGzwVStmTTqEOFNw3199jyh4HJOZQDncLhDMRy92m5JImjOVdT1pwARVX6ekWeRBsZfrvrtOqG5V4c1nbIbQbnpp1hWxyLn0u+UNn/FrycnWN4HMica+bvV62YT6DYIB1VbWdreIJSe7vwEuu1bd7n3Q+tLh56gAgu9QznRnFWWkhAunrZe4AAAAAAAAAAAAAAABBTk1GogIAAIUAAD4AAEMAAD8AAB4AAABBTFBILgAAAAEPMP8REUJRI0nKOjhJbX2cHTN9I/o/Ab7qpqAM7eerJ8BMf+KRPwHK0H6+OgdWUDggVAIAAFQOAJ0BKkQAQAA+kTiZSQKzJOIAASCWIAx6BWEBjcvd7cu7ilCGOZ/dYf1plB1yE8N2cTlHONNr59OyBlDPuL8Rp36xkZxDBZrRyQzcwc3im3ENK8PA7KI3VE7uRi8LcAVRQUrNJVphzNKuiaaC6nWFSqLK6fxLfOUGgAD++/YNu4Y4nvGJfxASr6azkwHV5SN/9fDSe4emNNjwHbJV/KN11Wi7Di9pdbD+puW0FXg2qAw8neVpcKkRdydb4JQMjDtdxCfn+geb8Ff8C00DdKbcbaVztGt69c2/nHrAogZny0YJ0t4nGzcckYiiUQqkk+DpV4/geJF45kZcR++5SgrjalBNXOBO2p7aeplRHpm09bzgQxJE3foWesKHuHCV3vm34zOLzMIfDLs/NBn71McBfYdhtXJlAgZK0WKyqqCKvK9wIMO454ZygIY91ifCM43t76fn4gJB5Qivpm6OqBN+7eDQBcpRyI/6R7vEChEiapewevaqUDlL9YrZ4xYYoJZbxC9XjnzBVJkFX/TJJuhgy75Urtvthw18a6lRJNpHo1SH62wsT37ogv7E2v78Oz8HH1IV0Y4mQYVU3ML0nw/5ctAjhgCcPiP18EpB1rMyxrcA0FjMQ49iiOvLN6kdHyaj0rqG+lUjn9tsQkVE0C2lGwvs/H+iax4ABRV9FCqGCNNo8t8zPCBk1YMMKNUfxm44bYLQZAADymKpApcH8ApxtsHACdOYZo4JoSVc9ShuycJGSlLhlUyJHPPg740T5G7clFzfo3euwUDlxnOSxgG7AAAAQU5NRoICAACFAAA+AABDAABCAAAeAAAAQUxQSCwAAAABDzD/ERGCTRtJkpbBQmrqzczxfndpRP8DYC6lkJ4HuEDG6D9J3ZBCeh7gGFZQOCA2AgAAtA4AnQEqRABDAD6RPJlKAs0au4ABIJQBmPLNkp27V3AKD0fDev8EtLW02cPQQNSsIVHKjnVntdAsr78RoE72y+RJSGYvTd3ZbuFlClmJUL5uyNQn2KiXfIHSQ2g2palztShSgbiItTt7O5hkp5Rzkoc1erSrBnVvm/NRC+2AAP779iB1tP7JIqQZbG2EXGcZ0NaVdB4ibv2SdeXx9uFp+D0kWH9r7YgxL294FdNGPv6kcy45mRAkr/o5eeou5KbQu6s01t1s6faDlVZ/v3lnGloV7VpEEURPJqgJ0qp0798tH7zf+t4a9xbMa6aSXL3YmgyhAUjeOV91P68wa0TT0X4noYBFxm+cW5/LLP/ghwzBd76vyE7pxHq4SYGrJEpVisO05cYtlA7AZ7oCATVWWXTE0FbEeDa/TbELVurTEwOq/0YwI7cLhgu9BSGyWlfTAO3JKXT70XckI+5k2lx25B9PmLywfKBh15CwyohAJlltWtYRjrvH/l8y6g/IeckaDAOTgyZHTxeCg+rYbDsdqm6Kp0Be8rTCesFK3zTRyn1pGzyAl+4yK8mQ+eV+eaK62TkIncn7c7KGVAFC0SVkmEspOlpLrREBoD9DRhLxUdpDLstn4RLrw1jMGlX1LzwTl5f2G7RXbpuyCDfKIcFXcAJdDS7MlLjfM3tWt5z3kBfZ7CKyghVLO6NkJCuyO3JYJhl+OMzz2U0cwafjlQHowD0ohzCdKCeCPI891hAyyOeCBncAAABBTk1GagIAAIUAAD4AAEIAAD4AAB4AAABBTFBILAAAAAEPMP8REYJJJEmShq2stt7Oku7eSyP6HwDrKIX0foAnZKZ/VU/INJXeD7AFVlA4IB4CAABUDQCdASpDAD8APpE8mkoCsySxAAEglAGIqM6Uvt1t7irNQOPAuKF9X9Efsoj5bHRHz16EG4qH1kLFFWvN9lw1HhZuenK/r1vBSF5vU4wc5mZnYA+7XlTZ/PoB1zX8vO7+5HQlL0Jm2L8sZAum9cHFKywAAP77lAiaOin6EN5XGUBF6rlta47dhwwK+D2LcD8NQnczKIOTbq5EjFHsq+yO2POezaV2JIRyv9vyiAd8UZeZUa6k1BzNGJ8uKvLpLMsO+rAJKTNugM7SxxGcKZnmBmySbAW0xbkG4NuKDG+uWL8U5przqiP17y1h3hYSfyVJ912Jx5kbT44rn7udjoZ8hkMvqMeazaZG8MzkaeoA4Lg1rTZgf9+haIKLkUz+LclnrYBFSP5HnD758UZ8G7iZdHPZoW5ufuBiDxbE+pz036zPkTUgVnQu79jfIrE5FLq6PIHwDG6dHhTEkL3KZHeIjR+MRpgO3N9MuguSsGyTChe0rWXH6PqxftcvPEYqXvWbp6Q16L4gIVE9Gez12Hq7A0oRtEqc7GfS6clKBIKsbyoB3mccwRhDPBVT3Kv7jx5SSV1NaBl8WYjV9ESAi/83y3huD80xVBfn8I/lUbj6F3PPNnPevjl4IL+RtmpwWjYOhorh5k3kPn0iU0A17nBrbN4KzEsPY0ng73ZBz19itAL0sCgoB558HOdiS5CXPEMgUMM6zNXuwfzygAAAAEFOTUaUAgAAhQAAPgAAQwAAQwAAHgAAAEFMUEgqAAAAAQ8w/xERgk0bSZKWwUJq6s3M8X53aUT/A2AupZCeB7ghY/Sf4IYU0u8AVlA4IEoCAADUDgCdASpEAEQAPpE8mkoCjyTOAAEglAGQCs56PBT26ZVpy09NO0ebjQcEXNq9Qbg8JeXf8GoBTP4G+8ZNrM18RpUhc58RgLtsNUZXJoLZK2W0DTBp7nsv5tZ1r1hd1GUnLMfakPIyTtzthXZJcTbZOxI9wBFaGZSsB26H1faAAP77lBHPJELpo6WAmOzgaKdixMYdlBFgAXyp5i6I+fqkXpVxGXrZvvex9HTvTXA5eCriGP2WCsV9S6gkcnkhCk75qAIlggWibI4SyrqaKTFcCGFQ4Nc1fbzYdMoggANEiIHND4bmF6subOPsiVvmYkWZvuOCGZjpJ2d1w4QnFfpZlDlpYstHeViE3dKVs7eNaSDy2e/xIBbLph7muVYg1ehoLImWRnLjjHrq9ShkqJcBhrViLe46jB4vzhTH1ob4fIlBFcHt3+cGFGpMagKr6auor20edd29ZPrHds5BmVt1lLafVhMDg4VjwQ5PVjHEaBnn9NkdvFDkbNdG/mGbwr7LwBC0yRXrI+KLDwHcCEin8cNMy6xhDLo7UEX3mmC5xus8qofzdqg3K5GxkXwlIuBIoUfTBL0QLw9b0uvHiLmEo/NK7gJLxnvn316ADrbCj/Vk3I5rKouez8IzK3JUc1Hj0oZZNU2vFA2sONdzTRJKdjpImG1BhHN/gvGNdO0BNXru5AX+J7aanE5umeOEyWx5f8hG+PM0yjZq+A7PY9cL2xv3OYZzh4S5VYULQcDY+gHVP0OOQg/1VnncZbt5HjxwzRWI1+OwAAAAQU5NRkIDAAAAAAAAAABXAgA6AQAeAAACVlA4ICoDAACwNQCdASpYAjsBPpFIoUylpKMioFSYGLASCWlu4XaxHeoar4APhF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8sbEXiCo/yxsReIKj/LGxF4gqP8nI7soO4i8QVH+WNiLxBUf5Y1pS09+kKh1avUdJvWuADRuHltSlTYcCPx/HsReIKj/LGxF4gqP8r9SAObqcqOkvKpS7WwHkh64sh13CNiCo/yxsReIKj/LGtKR3bOA2xUBcLvJ0ZVYPz7NxDtOcOcjYi8QVH+WNiLxBUfl0UJz4BgW5DkmHzPDgGgXEXiCo/yxsReIKj/LGxGrLsQVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNaAAA/v/BBAAAAAAAAAAUERYmnJ5UxWFq018AYYPffd84vYKd1gOI5ElVKrvJauH1C/Y+VabzpD35bdyO/Qviv6vpT70N053PvuBYyetK/E7mPoSmAWUN7C2HkaCbB6N7qnuTpJNmpNgq09F5KgLajjRiwhTWOFHDdfpu1k/zcg3FQH9xY3F7QVUvxAV4akDN1i1/WivHlEIRrFaSmWDmuuF4P71oXR96PQBbkfZxVC7/FFnLfN21uAAWDGfG9Aj25a9e+JqlBtN5riLoSqcCLgJIMfuQ/YFfjKOqvUEmJZzw5mWAw3qVUNaunuviOrB3FxQvoJAiSDmdQb99BgNVLOgVLzJx3+p9+WlHlk1+nAj9lpdEKSJCfGACEag/hFrOVDQ4VSXgeeu2d7sQCmCFv+hCetlyi6kHs/07BlLoOTotd3KHl2cFtSs6yGKeGMsBsk4MgO6uxczFAZyEuznBf8GhmupJ/zuNXmhQAAAAAAAAAAAAAABBTk1GsAIAAIUAAD4AAEIAAEMAAB4AAABBTFBIKwAAAAEPMP8REYJJJEmShq2stt7OEu9zhyP6HwBrK4X0PsALmemvZB5JpR5B+h8AVlA4IGQCAAA0DwCdASpDAEQAPpE+m0oCj0mxgAEglAGYKUsGi1IOxt/Dd9lgMDNKhPOeAr+PLUGNQs1rGIkM8Kylim90f4NyYv2bm79qAKyDDql/qAlS7g/c8BMOBFDQ4HdfSsa3blrdMnzf2Ij/nW7k8oTxsJqC+2ANnsZMBlXqsuaaVRHaBpwAAP77IalFDI2xmMdzr/Mf7oXvow7Am4OdliRJio82b/39hX0BvOTRCeZv2Jx9TWkObgGdduj9Mc+aKbixgLKJq0U8Gsa+NUalFfLbf5rTyKiOmQHg9qMYVpO02HA9Ocho1b2kbqjzpZ4ZucCVWwsWTMS+JZJfKjBzCivMeKENDkTw5PyhwEd0MeveeTLlL5hmtZ7afP4Qnc1bt4P0tyqR1iPxXpyz+DYDdpTIFMxGtWqAoA8rDcA0mbyqtwUwLhr6H3pZUakIh61xYMuWGAzhpkiDmZHuhOgzkD5xwGrrPDVscUSyOi7CgQapQQVfEtKAPMDDMis5Bvrw2GKwHWCFG/08wQ/zWorKrE2TPf29o3Gpp72gXSuSNPWiaGTfoCDFIE3F0yuexNaYptOMtgr83VyjIArpEZQN9bO7OTtNmACJW1fUrmtHjMNTKE/LTfhT5Ks8bYh5rTEXP2SjkuhdOBa7uxGFtLWxEt0zsmSMhQRtds2sKTe5xUcf9v+mjcG72jOUVkHPzV+0315kIBP6NZsqHmzgKKL6m0WScVInAgzUm5vGBPOOiO760z41v2ELQpgIdeAe4K2qusL6O6lMHicrFKk4sJjJ6l/Qw2421M4eegwoM1NvccEMqyAFYIAAAABBTk1GpAIAAIUAAD4AAEMAAEMAAB4AAABBTFBILwAAAAEPMP8REYJtJElxyICQJvXNbCx+kNyI/k+AzbqEqJLzbN6AUvJPJN6AqJIbEHIDAFZQOCBUAgAAFA4AnQEqRABEAD6RQJtKAntVtYABIJQBiuMr+7d4CrXQkG/93VGhTP3Y0yj3ve0mHr1GCD2Ckx7NKlic0DhB8Mfvs+grZNZb6fC508lcWr12T4z+ByxizMGidkEUTYHQbBGiPmLCKYHjrm9EnwTX6GT69G7BmnAtoAD++yGMizshkIpAv+nPqsacZ2qzn7P4DfJTS3UaW3YKilirfnlh5orncoU243VEsKRibCvRoOp2tZl5U2+T0OibtYBbJi+3qRpLHG/UepFRvoEIo5OzEw1f0iu+kYdz1I2awUStUb9E1UbAN1HINRP563qTgOinxM0tHNW579vfC3OBSkju4SswsfCNnHzPRBEscBjrUJM5qqcsHadKfUyB9FS8tRpBlOhFa6d+OrBRn69ShnbpOmRkz6XzoUkxfUy6yf3EDtT1rhaWqgKDd7t0ZhnChgwUJ4hH49k+nsAOvfliIBTgK1pfJR4Y9X8/rdFm/vCOa/7e0blA59FvsnkTGp2WxOoVOUrN6cJ7mVhNK+w5US9fFvcw5NSOhFGUKGfNWVFSGOmM765ZALW8RdJzuf6L7eV30P3T802YPVItN7hse0r8C1l7rrwBwFg/hUTPFk5Az7seldAmo6+SL7m2lHphSd705hcJd4SLaVFjV5qAkeqDPt+8le+08PSujcVqq120atciQFum+jGSfDGFN/497ZJax2GLj0uRYLh411IK3S38o2wSNYS0yNRWp7He1+ReiWaPPlSxPJs+uFShXaeQIXFHpF/quPTMIWTvXbcYbAQSb4wwAABBTk1GeAIAAIUAAD4AAEIAAEMAAB4AAABBTFBILwAAAAEPMP8REUJNJEnKZS9rrK+zZ6Y0ov8T4KtuCsrQfr56Asz0Jx75EyDvvUcnQOgEAFZQOCAoAgAA1A4AnQEqQwBEAD6RQJtJgntVtYABIJYwDLxXx76KqOWbpm2mCs3ZOLEiTQAC3ro3pxRE6+SRtWe/v7UnZ0HskG6X+yVqJCxhdvevNDkK4bUt4Zgjn5x6VntGyuJhe+Pyy0mYNnbzRHwZb4xLEXbeUwElNFZMrk7BegGywHavUAD++yGn6XDM0asjzta1omLQv7L0nlFPiBfrXPzG20smdzfVeAQ+3dA+7ePpCDhEHtu9OUfsUFd7qZD039TPoLEc5xtKtVAfBdZUd7yuMK5J1vTUvvBn5JcSkm0aQ6DxCaMFO9AMyfBmMJJXxMwFLYBTFwruPlu3qJgLJBO/ICCm1RM8H9hDeUC+zMggg/WAPAAd+ZIf8ZD7up1MDNU7cAEyNWiTGUzpPDvad+u2cLVMvVgqPhC6vjzqSFuT2f0xTOmPK/OSA/DeFDeXu3wlysh33nq9uMxJk+kwOGNZpeypqcWT0tham1VR4LX42DSMNS66cjb9vYSymqrvrtXucc9lZcrePOxfVYN2vjNrGsV50MGJ4n5puuYVMtL/P/MaL2hy1ewAoSFq2sYnrpQP/9tRWdEcD3J0o1f3Kc43wtLm6RBGgU184oOFcKuv4qYw+5RGa+XEPAXs4qa6na4D72pNNLIUJKeqmBdfo76YWxNTJlrfiXSFH4N7ymXbhy+JtQsr4HWiBrzdxNZUYjO/oYbcUCZkCIrk+GL9lC9uB4JbCPN+chcxYAAAQU5NRqICAACHAAA+AAA+AABDAAAeAAAAQUxQSDEAAAABDzD/ERFCkdu2TQB/u+PjBrpn0p4j+j8BqR/3gQ2cntSPmiDCv0tg0gSmlBKcJlAXAFZQOCBQAgAA9A0AnQEqPwBEAD6ROJdIAudx0QABIJQBiKi1n/29TRgwA9rt2JpNrLjG7oZ8xTbRHh/697H86CyDrPzncqSWhmcK+WVZ1xkYppaigjs5ar4r6rhOhkNP8fUssX61Uep6wOZaneqbSyVovhlFPGM1L2dbsLFjy/oAAP7+wiZ5qa89Lr0h5NOMjpibmhxxGBiZBZgDaEbtPKGth1n+mMLQztUTpi5ge3gkDV+drpCGfb955J3hJ+bO5Sy8pn2PLXX89EEUTVo1vXLn6+jRvl6SfaDDG5OR84J3FcRN/EmtmXYG0OeF5OnTi4V3xrxNCqwXOU+UrOWG+AUbOTQb6pfxue1ZuOnIKqIuukqyH9+uUQy7FumOb/OHBg4WHBreN1/23qBXMcbUp5j1hgUvoH1clTr3yf2yRIVPrpgTs9/3yxwqGHl+1McXhs9VjOVJOcUaf09HBL856dTmGMuULAiw9dMyFGlk+OAz3GHAF29hO3l8i9aZVX8vIc1U5Ne/iuqTnD7GXyeK2gu1ySFEpu92PsHXiUnXB9KYbGTImyEz17700gxK09qmYp8gischrIV9J1rJt8fftfm+dE6zGIybyIqqrs46CorzDZD882Q/cI43VArHg4fPgDwUBFxlPQ4TL48LZtt7ZkcxiAg8+WQPixGYa5BfOO2J42u3sx2sTdQ0TlHVIKserSIWTMAGs+0V87ivl//CYzmfsIL5PpZ0y9WBQWTY1f85eAFw0CLHduTPvKmFZfKiUe1QZ2h90Nzxmy/ZbaAB0All7+kwAAAAAEFOTUZUAwAAAAAAAAAAVwIAOgEAHgAAAlZQOCA8AwAA0DUAnQEqWAI7AT6RSKBNJaQjIqBVWBiwEglpbuF2sR3oBYCoGLeGDPjYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVHQkVYsbEXiCo/yxsReIKj/LGfzbLKXtxlFAIysvBN406jH8FVf/LGxF4gqP8sbEXiCcrp/PYgALhrgX+gF0NI8bBEW4i8QVH+WNiLxBUf3lIngEQfES4XDHAmKdflrFq868A39rGxF4gqP8sbEXiCo/yz6WvzTP3QOIIyORlsKs+pwzBiuqAgJQ5yNiLxBUf5Y2IvEFR/moOiznI2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvEFR/ljYi8QVH+WNiLxBUf5Y2IvDQAD+/8REAAAAAAAAABHDDo0MYSgyKn8cCpJChLYZFVIo1KqQ0Cou/RE5o08N1i+d/Khwa9qP6FcakZgh5FToSwafedDgL77edEIzk8GFajCra16K0+hsz96mEgRTC7pOHqy15RKA2aejvs1LBOjLLzgwSd+bRQ52mTEDNdkAAt0QVjZ18jfAL3twexdICSX3Cepr/T80OSA4sNOVuz22J44AqgmiMUjmu+fjNbUQlfv9bPwHfz7jJFnXwxpRzrSyOlp/P72yLgwnu8IYPjDYy7iVKu9LtYf3IXSNLj+zvenrf1015rfZPcKg6+reyCB7ibmN6DBGeMLWZ5gO1TZzJsGKjJBM7YUCgUgL30DsVeCWUB6OPo+lUQiEwLi6l2Oa6xCEbNwon9dcd63v76wlrWJH7UbQdSvP03OR8fMnOAhn9N7gEgdR1X+yLjyd5WLbcPYiZULgY8Kfs3kLlZIfGM01eLSC7Thi7FkF8EKtnwp7L0UXq2MAQRIoAAAAAAAAAAAAAAAAQU5NRkQCAACFAAA+AABCAAA/AAAeAAAAQUxQSDAAAAABDzD/ERGCTdtIgqZ7WEN9mLm+uwcQ0f8A+I6ajO49Hfwi2W+yv8wv9B+drtl7gDNWUDgg9AEAAJQMAJ0BKkMAQAA+kTyZSYLNILUAASCUAZzYz5CjV8PMfXH+wrPvFTTIl86Nj1+6cHi7zjUcacV0/C3KvEDtVxCSxkYNRNUB8hSnK4+fznHNQTlZ+Vm//7Lvf0jcByc+lPlAx2kVbvyehvgntQAA/vv2LGl08LBcGI1FSaJgyPOvo1652gCo48K6PUo8d7Hju91pdpl0uiSzosG1ARQ0B3RCAa0vCquDzWhkvULhYsSqd144ijRaeXUndrYA4T54RM+dwRTMeuWbkiREM9Q82ONvGnzo825+Uav20fa4bBlddJiJp3qviGcmnUzsc/mpsKTZGNZAB5zbvXPfdvxcfv+P26NNpcohRZx5cpUsJiQoMxn6S8RM5rWK8vq5vw/0uUo/mqa7McSzXDwxoAjMG/+NAtAHp2/E+GTj4AgQhyUZnT8eatNAAmi0WzeI+q5nkKUx2ThQOGbvAvw68l08+MIO1VYKj33Eu5nmM7h1oekdfMSNJkQST6L7zoIH9DDF85/8ufxrkS+9ErxoxOuJifFP63OjrQa0Kk2zAGoyLMuZXILtAb9f+oVWrWrr5Mlzu6zPKXG/+vnvtQCGpiaPHyYr6FjI8Kg5d9J25a1J6IIca8T7+QM8mj7bW8xgZpk++ENTtYy0tAmE70jW8ZzZbtIYAAAAQU5NRswCAACFAAA+AABBAABDAAAeAAAAQUxQSDEAAAABDzD/ERGCcds2kgxMYW7dnek15xr7juj/BDAdVxwApwUUkKQ0AP8OHBo4AE4Dx2kAAFZQOCB6AgAANA8AnQEqQgBEAD6RPplJgqVAvAABIJQBmeMO9vTTQv/pvN1QltMOXtF+PI5vKSjEVa97ZcpWYvjWXBLBupoJRWaihwYu9IxFx4SibbUJWShQeoY5fhNXSucU0Dzx93wNV+rZKQBVxTjioqPtCo8oBDWgQugIzOubVWYofrEVlTATgAD++/YdIcos6h2Zx9QYEj2lE4eLyK88STMaXcOrIwgRoO5p1URDOmryeN0bAOAmXwqnAIjX1mOVcsw+IefLCZV733rJvBdunccY3uibjueHE9Fp7xgZj1zEaexKHKC3dp5jslRCp7VYPQVBGPUROdBXxlBDMZ9rHPPQ114ygCvH9fhrUXmNxPz+fwgu1WaIGCY0FIJAxZOQniiEn424+CmuaII2C8shxivYd4B5caFTomsrIbKKaMbJVaWi1JAP8iTfxPUYfG0ATvdPnGfJ6ExED/m+WdmlnnyMruE0+OBDFQWmrqH9i+Fzrpp8KJ9K+iP05OJdDfeHNg3kIIZqkCoG5lbPwp1XtyRb691PFBpUnQMDqSE8wQyBIoMSJFbiXJU3/05ndTfsBmQWfiOKLGvGkg7L36C+LlFptA4SpomaS7kufFbtV48wjmmPKXuu+FnsGnq6zGabTqPubvmqY9JyjILlBgO2JKF1Afs2mPCqECp/sv78QWs64HwGd/s1dUYTa7bA7qNAkrr2d5ASFA9nCwNt2qzyHKDaj5tf9F8pjuy+1ToIMYW+KYGauTnyEqEYc+agfZIzzwoyKZQvy2cefhOfqhQKfOJ3Sh4crjyx6/HmhpYzw0AHFDXrP8xDji8lyEzYv/u/KP5rSDSkh38+tF/ANAAAAEFOTUagAgAAhQAAPgAAQwAAQgAAHgAAAEFMUEguAAAAAQ8w/xERgjEkSYLG4JBavc3yfbENENH/APh+pZCuMHB31wWZkRmphRTS9wDPAFZQOCBSAgAA1A0AnQEqRABDAD6RPplJgqVAvAABIJQBjMN7bMB2Uu6/e+Yi/aLmZGI/viAmfB7vsPl2COTfYNSIiG55KX05XCYZkwgzWtrMARAG8jdNcFdP8oG1wFTlovXCfEq+HtF5+PvnBBMz8+CX8DufwLVwbYE2zCRRKgAA/vv2CNL3VAXJ8xSSJTZ7GLRn4KJ/B5OT8cYC0ajOfMewkb6V+bYHoeRpOuFTrtbCTdfhSQ0buBid5qghcz0iQ8q0Xq76cley7CJ9cQ5ddeL2exKHI+3dp5js1el3nn23Ofm0p1e9p8IvTlZXQbV+gNJuLwDEppu75k744B66VRzKWgaevBF1P/nL4e+y2I4azq/tGokTr0pBwGVC7rv/B4gAx6n+aBD8n0AM3RBMGug5fhG/WH8201t/eZ4zhB9AP4Zxhb2o77eW31QuiliNuiunbcx2RmIeqxQ83kttv+85JumBZVlX9wh8e35IezaJYW6IXAsSi9YZfj+Lhxi99vu3GdfJgEDA5ICfJ+qg2/6v6eLfoo5JNj0t8nbXvLZTunZY2ndcKIlHoNU9mIFIumPdg5tRbwNXrBRku7vDpX1D3hAMlVvZj2271/jJ5F/UIPm8xvt3Fx29ecnkA1CEeN+b+opTzq0gtqSZoIw4jDbQFSM+FJVO1evRYJym2RAAgOMLRnZFIqbdl0NCQiP0S1tY2XZ9VLZtpabrLKndx5avFqZcGiOPfVuLybpCf4jZVAKgemwiVNhPcZrAF08ImZKSX0Cngb1ZxsqtTYJ3mVqxJZj95hODQAAAQU5NRswCAACFAAA+AABCAABCAAAeAAAAQUxQSDAAAAABDzD/ERECbdu2ydaz/Lo/45y2B0T0PwDOKjMlfU8KX8w0/WTqk/pC6ocU0vcAzwBWUDggfAIAALQOAJ0BKkMAQwA+kT6ZSQK5VbgAASCUAX+jfZSNuBdum89I1E974M6WJpU2I1R7LYQgRy85SPu+9eQ/Xnvl5o/TJQ4XJWR4VYMomgGrWZMxYCYtdMoKsuR87IOwf4nldo3zv9LYhly/D2ha+AF+nFV9Vn3zaj4ujSKV3FBsAAD++/YF1vEog0PMoDGxvEsP4sk8YT+gsNgzbxlHBPTlsLf9isvqJwF9dQo/NRpzYY6Oxq7ym+5SPRCUElo3HKxDbg2HODWA5EMRa+XUqmNrjD4+plahLji/VLotK36yBs07O40+f+P+ZQMusvrLNy3N50ufEHqGldoPsIJJP0i2I4iWJudO3jIqXo42irMvw/kXnA4DLEKWGNjqx5cz0M0jiloJ0vapTkhCUPkUttOPvHUj0xqM4kqvmBm5SwJT/bJV1IKLms4GACztCofnjaY7c4HvrPiNcVVcPUYytCQYE5xV6wezSj6oYCZP5RQYjZ5afgF0VscqX09wT5mzWM4a74btoFnB+48R4Lyr6xfQ8huIjDQX1oA4ocEkH/ScAKT80mpwEHP2CKP3o3yZWYgYlVEB9N2SaB2V7nZGSXUF3hkbUErqMtZA2218v3UiLEG+Q0yPle3CQmjJILii3QOgckVdJZis8IGUNbFs53cGEwBZAXs6eu2vr4tBNZ+ZhkpCS6jvJyVeZRH8mlhZyOyDTWVgY9O5/Wxm/hfYAc5WQVrYBoYfIJb2+EewemDcQ2B5+UoPLyGZ6ZD72gHWu+/Edv9eCIIalsGZRU6zx34Rc/Z6UxECcYKr2Cas4jldV7R7S6/qbLFPH4zzlnraTlOdzVdExi7MK82O9gAAAEFOTUZ0AwAAAAAAAAAAVwIAOgEAHgAAAlZQOCBcAwAAEDgAnQEqWAI7AT6RSKFNJaQjIqA0CBiwEglpbuF2sR3i86LHV25HPR6cAoEB5E1eBHwQ1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVSbJiHVUmyYh1VJsmIdVOhNJsmIdVSbJiHVUmyYh1VH8FSbKwSCqKSrKyQkP9PQAQ1VJsmIdVSbJiHVUfwcxe06Gofwsq4YwHx2NeIewXoac30xl4jnr0ZeI569GXiOUYiVPwOCtNaRKf7GZlYGQJvGQ6HqIk2WoaKVvPiHVUmyYh1VJsmIdVSeND/ZJsctOPAGYNr/j95MxWeMe5NTc5AnRl4jnr0ZeI569GXiOe4c612IJxyCGqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNkxDqqTZMQ6qk2TEOqpNdAAD+/8EEAAAAAAAAABMwwAjpakFyJij9hTxHswnogqFDl41DqDkBrNCpGmK1D8jmnmW/rgrm5xXIzMCG5155jel6Dud5xE0RlBsSgqeiYJSYBZ/u8mRxf7wbZf+17beDtYAWuzQL58ckGuf921Bj5acKxj+TewPmY68ywXH/qb7tP/HAT1o+YaGzJWei/LmvaeOmx0xMFmfRp6xFDkWPWz337V0ilyouF3r9PVt+EaAAMlROcsxBdci8UyHMZFj/fIopTE8UddtA92KA/XRLK8tfgwGOdjKk9QL2E6przQFOIPXBzSpnDrVHj0OJQW7Y7dwSHU+fiRqPH53hCOsEwMzb8DtRhOMXzu0liOJUOA6c8k2/O9ax034apD2dNN8kypgz0H6FFv5qcdyMDVxgAC7PJu682yVuhMgMdvdHVO7u7/ibV/BwQxJIGaz6y4Z757ofliuaieq2IhHsuYt3CRgOV9E6RbGlbM/s+UZWOKLMqIkrupqw56EqHJ5evnv9U9UXbR0vya/hQAAAAAAAAAAAAABBTk1GqgIAAIUAAD8AAEIAAEEAAB4AAABBTFBIKgAAAAEPMP8REYJJJEmSlq2stt7Oku3efzSi/wEwFymk9wM8IWP0n6SekEL6HVZQOCBgAgAAdA8AnQEqQwBCAD6RQJpJgrk5oAABIJQBkXKLlO28u5LvWNf9jiUDZv5eSPnGi/GDgY/n3p555pNprd3B0l+hOg9TjNAKssbisMteGEYazVE/GAHSzgPA9VKbP5lsMkEka7JgPHtSYFyxyv1pXzzYgY6ey+l9WV3iHGERsAGibc5HkCQAAP7+elpGz/ORKrsguGJfGL3VgCW8kEWqvCaaarjWqPhPKdYFsY3qe0ydBcmYA9I2JJGv8iaEyygE+IsCqzaD9eXnWvrg5fZ63Jt7YRibwwZYpB4F6zT8YlXeRXSmStP7zZtrjYxBRnaFpBZRV6uNhKxo4ssB+UidvWRVBx2LsTrx6SqJ6E034pctyX2bFJn4DbVOFyDW94SmC3NQOQRZKmKFEdKA2NLadLrujvcfhnR9I/YA/EKfXazBgvSKGTjmwFYpa+C8MUnn3sZfhyLQcdwTEO09Qr9kImRT+fULle+unn/DxLLjTQSwt6ca3+9lei+NYgpjCZ0rSqZKfUA2gy5vuiP65J80jovL58lHmDKYWyf6/SiMoW4D7nQ9/YHvqZ2D9PrcDQUY52pJeu8DIccwEZ4u89ES7EqX8/XoxlMXKZ3yMS5WRuXF+NPL6F09+AKL4snxRr8naMcW4AV7UIIEqGYstbdiCTwXp6ucOib2oyBav44rfT4CVJkd0lZboJD++pOP0P5Bxo40vAiEt2d2JBBrZVxtuRlhVV9QD7b0G7wTu2v7C15jFj/MVcT364QMFWHMKuY6LMaKgucVZ0JlZeclGIWfEIsz3KkuPy4SUKTw74LjjYdAAAA=",FO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADACAMAAAB/Pny7AAAAKlBMVEXMzMzy8vLLy8vr6+vj4+Pa2trR0dH19fXv7+/IyMjo6Ojg4ODW1tbd3d2W3PvKAAAF1ElEQVR4nO2ci3bbIAxAMWDe/v/fnXg4BmynbuzISae7nZ12SWvuBEg8OsYIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAI4uPh6fcfgVv49Rd0OLdslEZMXy9jrVXeDIMetAlfbRNDIgath4z7UhkL7VZBGhCZVfRg1N3NegHOlVKT0PoRk8y39TMOU5YKozO6isnjA/9FMmACIl6YOiTQu4Rz2cfd3cKDxJCEUTozVF0LnIzzI3Q6nz4X6gtCw2H+zSJVRLSOIkHlXCnSK+OHy8TMHrwzdUhiNzMSRNic9a3UHz9oYkgmiEhNNJFjnIWrlvMxymj3qZNzrFIgk+SA6CwR/xB+s8WfPGhguHsxtIkERokMOwWldXnQoDf0KampMNyHJiXCh8ZNiu9WxtbHt2iP2dQfiG1Vo3dDTol6ziRG+JBKmPKbr63URw2aWcSsIgKZpG07pM7Qt9omfRMQW7xHrFJGL9vcHlMiTMCsNeEKIpc6XbO4zING355pYpUySTEs413HD4WcqkzyeLPKtQvMz01wyuQsMRveE6sUEOmqFC2alFgDLjNT+4LOkzNSw3sgJcJ6N4k0IXEpIjtfM5qHsmmyCk8v3LMMgHyhoAAeWmImKbPVNkxWg2qsX8kVTfN3FkWEQ+EY599+edV0tU2a9zRvW38lrKPfHiYOKdHoHY09uVfQ+t27Amk2urLJzzDvlmn/8ftB800ykFKq3RTIJJOYP7vQy8zd9c2R4azIpCoFOl2WMdN4HfC9vElT27u7mc0BMGNKmEVGhyez8SuwtCnwfpmcDlzOikXGXJ0R8vd9uwwPpYaqZLS4+qFIMrFWj81XTWROPBSKIqArf3hAkslDPlwkY2NR5KZeBisyPoVmqh76ugznPq1Ku6ITTYapNNHkBe5pmVJ3glC7usGSYSY95wqZPJtknWYSwZPJu0JheejLMmWDaSi5ankBTyYvcNNW6tluVtUw2t8ikwbNIC6WGXyVedFkeFnGK3aBTFWCj3fIMOYfu0JXjhl1j0zZFbLnI6PmdR6sKuv6Dk+Gq1w5XyCTM3DKM02tiinj0i4325c5vBPBc63fH2cidjNeKhq+K6MO7+VZNjknx84eUYaNabtP2D2ZyQzy6LlR2iBbRRZRJuRBs9PNYEzFTa/je5PrN2LKqLxlD4vlzcjINA7MiR19TJmyRPd2S4YHk88xTb9KOQ6mDM/9TGxHZt5Ohq6mXtwcQJUpO0xqSyZU9ZapbSxbj/SnD0DqZjwNi2GyKxnOqhIFkuFScVmYF9zBOQ5XZhpyRbOWGbvjcllSCGfpHOfY4TiuTBo0sDpcdzPX7arPW2zlRok+lIBQZRgTabc59DJdYMoczZaCTsdPf2wjrgx3abqaepkyM3Q2E0TjcZYZj2Z/mgiQZdKggWa1MnMV3NkMztfXgbQYf7BBlsmZUYR0UWx56IZK6V3tqZp8noGQxwzLIZmayFi5FZjNWIlx/yINuoyV6V/auVpGHT7UjJfOnkxr2DJjapSoIwOBOX7aCcEJu10Nu5upakTnh/LxsEmJjtzradgytpqEy0PdL0/O4375ds5Bl5mWlqeHQmB+faau9bQ5crBllnPnOTJ9IXNMx4WbV5oJu7QoPrSscX6P8evg4MuIRySSzPSaC+BWpTS6TFVTJhn5sow2/qZjwAXVyZy5UdMtsPFl+GOQnJfRzYnGHTKP5p+WSUVrFZwbZEItw14fMzPLpU18mXKENlzRzRLLHe0bZB5pskzNZ210XmHfJOMrGaa8OI+sr7Hgysz7faVqVucp3/gGmXnHZRA2LRvjBbST98z4jTJl0JiLf2ac57vcuN2MlWUATEP29O2/mnLBEFWGV5vk5sILp+VbIcuopXLeu2P+GjfIMHY+Uz4BWebEIuYIyJHZ2lu+Co39Q6g8ePk20P8jirQv8zaQZbZO8QmCIAiCIAiCIAiCIAiCIAiCIAiCIAiCIAiCIAiCIP53/gHGmTq/TG2J8QAAAABJRU5ErkJggg==";function VO(e){var t=e.value,n=cs(t),r="image"===n;return Y.jsx(HO,{style:{width:"100%",height:"100%"},once:!0,debounce:!0,placeholder:Y.jsx(QO,{src:RO,alt:t,isLoading:!0}),children:Y.jsx(QO,{src:t?r?t:us(n):FO,alt:t,notFoundImage:!t})})}function QO(e){var t=e.src,r=e.alt,o=e.notFoundImage,i=e.isLoading,a=o||i;return Y.jsx(n.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:Y.jsx("img",{src:t,alt:r,height:"94%",width:"50%",style:{borderRadius:"5px",objectFit:"cover",cursor:a?void 0:"pointer"},onClick:a?void 0:function(){return window.open(t,"_blank")}})})}var XO=require("lodash");function YO(e,t){var n,r,o,i,a,s,l,c,u,d,p=e.action,f=e.path,m=e.recordId;switch(p){case Zh.LIST:return null!==(r=null===(n=t[f])||void 0===n?void 0:n.list)&&void 0!==r?r:f;case Zh.NEW:return null!==(i=null===(o=t[f])||void 0===o?void 0:o.new)&&void 0!==i?i:f;case Zh.SHOW:return null!==(s=null===(a=t[f])||void 0===a?void 0:a.show(m))&&void 0!==s?s:f;case Zh.EDIT:return null!==(c=null===(l=t[f])||void 0===l?void 0:l.edit(m))&&void 0!==c?c:f;default:return null!==(d=null===(u=t[f])||void 0===u?void 0:u.list)&&void 0!==d?d:f}}function ZO(t){var o,i,a,s=t.resourceName,l=t.params,c=t.resources,u=t.dialogState,d=t.paramsState,p=t.extras;d[0];var f=d[1],m=e.useContext(fg).dashbaordUrlPrefix,h=e.useContext(wg).paths,g=Bg(),v=g.setSuccessAlert,A=g.setErrorAlert,y=g.setAlert,b=e.useState(null),x=b[0],w=b[1],j=function(e){w(e.currentTarget)},C=function(){w(null)},O=l.row,M=c[s],z=M.properties,D=z.actions,T=z.modelName,P=u[1],N=[],E=r.useNavigate(),B=r.useLocation(),k=Za("up","md");return D.show.isAccessible&&!(null===(o=O.hiddenActions)||void 0===o?void 0:o.includes("show"))&&N.push({href:"".concat(h[s].show(O._id)).concat(B.search),title:D.show.value,icon:Y.jsx(jo,{icon:"mdi:show-outline"}),key:"show",color:"primary.main",isMainAction:D.show.isMainAction}),D.edit.isAccessible&&uC(M,lC.EDIT)&&!(null===(i=O.hiddenActionKeys)||void 0===i?void 0:i.includes("edit"))&&N.push({onClick:function(e){var t=h[s].edit(e._id);E("".concat(t).concat(B.search))},title:D.edit.value,icon:Y.jsx(jo,{icon:"eva:edit-fill"}),key:"edit",color:"primary.main",isMainAction:D.edit.isMainAction}),D.delete.isAccessible&&uC(M,lC.DELETE)&&!(null===(a=O.hiddenActionKeys)||void 0===a?void 0:a.includes("delete"))&&N.push({onClick:function(e){P({title:D?D.delete.confirmationMessageTitle:"",message:D?D.delete.confirmationMessageBody:"",onClose:function(){P({open:!1})},onConfirm:function(){var e;P({open:!1}),v(null!==(e=null==p?void 0:p.afterDeleteSnackBarText)&&void 0!==e?e:"Deleted successfully"),f((function(e){return Z(Z({},e),{filters:void 0,filter:void 0})}))},action:function(){return ug.delete("".concat(m,"/").concat(c[s].properties.path,"/").concat(e._id))},open:!0})},title:D.delete.value,icon:Y.jsx(jo,{icon:"eva:trash-2-outline"}),key:"delete",color:"error.main",isMainAction:D.delete.isMainAction}),O.extraActionKeys&&D.extras&&0!==O.extraActionKeys.length&&O.extraActionKeys.forEach((function(e){var t;D.extras.record[e]&&N.push({onClick:function(t){var n,r,o;D.extras.record[e].guard||ug.post("".concat(m,"/actions/execute/").concat(e),{record:t,modelName:T}).then((function(t){var n,r,o=t.data.data.response;if(D.extras.record[e].handlerStrategy===qh.FILE_DOWNLOAD){var i=o.filePath;setTimeout((function(){window.open(i,"_blank")}))}else E(YO(o,h)),!1!==D.extras.record[e].showAlertMessage&&y(null!==(n=D.extras.record[e].message)&&void 0!==n?n:"Action executed Successfully",null!==(r=D.extras.record[e].severity)&&void 0!==r?r:"success")})).catch((function(){A("Error happened")})),P({title:null!==(r=null!==(n=D.extras.record[e].guardTitle)&&void 0!==n?n:D.extras.record[e].name)&&void 0!==r?r:"",message:null!==(o=D.extras.record[e].guard)&&void 0!==o?o:"Do you want to execute this action?",onClose:function(){P({open:!1})},onConfirm:function(t){var n,r,o,i;switch(P({open:!1}),D.extras.record[e].handlerStrategy){case qh.NORMAL:t.action===Zh.LIST?(f((function(e){return Z(Z({},e),{page:aM.page})})),y(null!==(n=D.extras.record[e].message)&&void 0!==n?n:"Action executed Successfully",null!==(r=D.extras.record[e].severity)&&void 0!==r?r:"success")):E(YO(t,h));break;case qh.FILE_DOWNLOAD:var a=t.filePath;setTimeout((function(){window.open(a,"_blank")}));break;default:y(null!==(o=D.extras.record[e].message)&&void 0!==o?o:"Action executed Successfully",null!==(i=D.extras.record[e].severity)&&void 0!==i?i:"success")}},action:function(){return ug.post("".concat(m,"/actions/execute/").concat(e),{record:t,modelName:T})},open:D.extras.record[e].guard})},title:D.extras.record[e].name,icon:eM(D.extras.record[e].icon),key:D.extras.record[e].name,color:null!==(t=D.extras.record[e].color)&&void 0!==t?t:"black",isMainAction:D.extras.record[e].isMainAction})})),k?Y.jsxs(n.Stack,{direction:"row",alignItems:"center",children:K(K([],KO(N.filter((function(e){var t;return(null===(t=null==c?void 0:c.appConfigurations)||void 0===t?void 0:t.showMainActions)&&e.isMainAction})),C,O),!0),[N.filter((function(e){var t;return!e.isMainAction||!(null===(t=null==c?void 0:c.appConfigurations)||void 0===t?void 0:t.showMainActions)})).length>0==!0&&Y.jsx(iO,{open:x,onOpen:j,onClose:C,actions:qO(N.filter((function(e){var t;return!e.isMainAction||!(null===(t=null==c?void 0:c.appConfigurations)||void 0===t?void 0:t.showMainActions)})),C,O)})],!1)}):Y.jsx(iO,{open:x,onOpen:j,onClose:C,actions:qO(N,C,O)})}function GO(e,t,o,i,a,s,l,c,u,d,p,f){var m,h,g,v,A,y,b=Hg.isEnglish();if(!(s&&s.hasOwnProperty(o.key)&&null!==s[o.key]||t.valuePath))return t.type===Uh.IMAGE?Y.jsx(VO,{value:void 0}):Y.jsx(n.Typography,Z({},a,{children:"--- "}));switch(t.type){case Uh.STRING:if(/^#[0-9A-F]{6}$/i.test(i)){a.color=i,a.variant="body2";break}if(!s||!s.hasOwnProperty(o.key)||null===s[o.key]){e="---",a.variant="subtitle2";break}if(o.key===c&&l&&l.show.isAccessible){var x=f[u].show(s._id);e=Y.jsx(n.Link,{align:"justify",component:r.Link,to:"".concat(x).concat(location.search),children:i})}break;case Uh.OBJECTID:if(o.key===c&&l&&l.show.isAccessible){e=Y.jsx(n.Link,{align:"justify",component:r.Link,to:f[u].show(s._id),children:i});break}a.variant="subtitle2";break;case Uh.NUMBER:case Uh.PHONENUMBER:a.variant="subtitle2";break;case Uh.DATE:var w=!(!p[o.key]||!p[o.key].withTime);a.variant="subtitle2";var j=eC(s[o.key],void 0,!b);e=w?Y.jsxs(n.Stack,{alignItems:"center",children:[Y.jsx(n.Typography,{variant:"subtitle2",children:j}),Y.jsx(n.Typography,{variant:"subtitle2",color:"rgb(99, 115, 129)",children:tC(new Date(s[o.key]),b?Tg.ENGLISH:Tg.ARABIC)})]}):j;break;case Uh.LOCALIZEDString:var C=s[o.key]&&s[o.key][0]?Hg.getLocalizedString(s[o.key]):"----";e=o.key===c&&l&&l.show.isAccessible?Y.jsx(n.Link,{align:"justify",component:r.Link,to:f[u].show(s._id),children:C}):C,a.variant="subtitle2";break;case Uh.ENUM:var O=p[o.key];if(!(O&&O.enumValues&&O.enumValues[i]))return Y.jsx(n.Chip,{label:PC.enhance(i),size:"small"});var M=null===(h=null===(m=p[o.key])||void 0===m?void 0:m.enumValues[i])||void 0===h?void 0:h.label,z=null===(v=null===(g=p[o.key])||void 0===g?void 0:g.enumValues[i])||void 0===v?void 0:v.color,D=null===(y=null===(A=p[o.key])||void 0===A?void 0:A.enumValues[i])||void 0===y?void 0:y.labelColor;return Y.jsx(n.Chip,{label:PC.enhance(null!=M?M:i),size:"small",sx:{background:z,color:D}});case Uh.IMAGE:return Y.jsx(VO,{value:i});case Uh.BOOLEAN:return Y.jsx(n.Chip,{label:"".concat(i),variant:"outlined",size:"small",component:"div"});case Uh.EXTERNAL_LINK:return Y.jsx(MC,{link:i});case Uh.LOCATION:case Uh.NESTEDSCHEMA:a.variant="caption",a.color="GrayText",e="Object {...}";break;case Uh.RICH_TEXT_I:case Uh.RICH_TEXT_II:a.variant="caption",a.color="GrayText",e="<HTML... />";break;case Uh.ARRAY:case Uh.MULTIPLE_TEXT:a.variant="caption",a.color="GrayText",e="Length ["+s[o.key].length+"]";break;case Uh.REFERENCE:if(!s[o.key])break;var T=s[o.key].pathOfTable?s[o.key].pathOfTable:o.path,P=d[T];if(!(P&&P.properties&&s[o.key]&&T)){a.variant="subtitle2",e=i._id;break}var N=P.properties.title,E=gA.checkLocalizedString(d,T,N)?Hg.getLocalizedString(s[o.key][N]):s[o.key][N]?s[o.key][N]:s[o.key]._id;if(!P.properties.actions.show.isAccessible||!uC(P,lC.VIEW)){e=i?E:s[o.key]?s[o.key]._id:"---";break}e=Y.jsx(n.Link,{align:"justify",href:f[T||o.key.toLowerCase()].show(i||s[o.key]&&s[o.key]._id?s[o.key]._id:""),children:i||s[o.key]._id?E:"---- "})}return Y.jsx(n.Typography,Z({},a,{children:e}))}function UO(e,t,o,i,a){var s=i[e].properties?i[e].properties.model:void 0,l=s[t.key],c=i[e].properties,u=c.title,d=c.actions,p=o.value,f=o.row,m={color:"black",noWrap:!1,sx:{fontWeight:50,wordWrap:"break-word",whiteSpace:"normal"},variant:"body1"},h=p;if(t.key.includes(".")){var g=t.key.split("."),v={key:g[g.length-1],value:t.value,path:t.path},A=$O(t.key,f),y=_O(t.key,s),b=A?A[v.key]:null;return GO(b,y,v,b,m,A,d,u,e,i,s,a)}return f.hasOwnProperty(t.key)&&null!==f[t.key]?t.key===u?Y.jsx(n.Typography,{variant:"body2",color:"black",sx:{wordWrap:l.type===Uh.STRING?"break-word":"normal",whiteSpace:l.type===Uh.STRING?"normal":"nowrap",textAlign:"center"},noWrap:l.type!==Uh.STRING,children:d.show.isAccessible?Y.jsx(n.Link,{align:"justify",component:r.Link,to:a[e].show(f._id),style:{cursor:"pointer"},children:s[t.key].type===Uh.LOCALIZEDString?f[t.key][0]?Hg.getLocalizedString(f[t.key]):"---":"object"==typeof f[t.key]?Hg.getLocalizedString(f[t.key]):f[t.key]}):Y.jsx(n.Typography,Z({},m,{children:s[t.key].type===Uh.LOCALIZEDString?Hg.getLocalizedString(f[t.key]):f[t.key]}))}):GO(h,s[t.key],t,p,m,f,d,u,e,i,s,a):s[t.key].valuePath?GO(h,s[t.key],t,XO.get(f,s[t.key].valuePath),m,f,d,u,e,i,s,a):s[t.key].type===Uh.IMAGE?Y.jsx(VO,{value:void 0}):Y.jsx(n.Typography,Z({},m,{children:"--- "}))}function qO(e,t,r){return e.map((function(e){return e.href?Y.jsxs(n.MenuItem,{component:"a",href:e.href,rel:"noopener noreferrer",sx:{color:e.color},onClick:t,children:[e.icon,e.title]},e.key):Y.jsxs(n.MenuItem,{onClick:function(){var n;null===(n=e.onClick)||void 0===n||n.call(e,r,e.key),t()},sx:{color:e.color},children:[e.icon,e.title]},e.key)}))}function KO(e,t,o){return e.map((function(e){return e.href?Y.jsx(n.Link,{component:r.Link,to:e.href,style:{textDecoration:"none",color:e.color},children:Y.jsx(n.Tooltip,{title:e.title,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-12]}}]}},children:Y.jsx(n.IconButton,{sx:{color:e.color},children:e.icon})})},e.key):Y.jsx(n.Tooltip,{title:e.title,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-12]}}]}},children:Y.jsx(n.IconButton,{onClick:function(){var n;null===(n=e.onClick)||void 0===n||n.call(e,o,e.key),t()},sx:{color:e.color},children:e.icon})},e.key)}))}function JO(t){var o=t.resources,i=t.resourceName,a=t.selected,s=t.bulkActionsDialogState,l=t.setBulkActionsDialogState,c=t.setSelected,u=e.useContext(fg).dashbaordUrlPrefix,d=e.useContext(wg).paths,p=o[i].properties,f=p.actions,m=p.modelName,h=t.dialogState[1],g=t.gridState[1],v=Bg(),A=v.setErrorAlert,y=v.setAlert,b=r.useNavigate();return o[i].properties.actions.extras&&o[i].properties.actions.extras.resource?Y.jsx(Y.Fragment,{children:Object.keys(o[i].properties.actions.extras.resource).map((function(e){var t,r,o,i,p;if(!f.extras.resource[e])return Y.jsx(Y.Fragment,{});var v=null!==(t=f.extras.resource[e].message)&&void 0!==t?t:"Action executed Successfully",x=null!==(r=f.extras.resource[e].severity)&&void 0!==r?r:"success";return Y.jsx(n.Button,{size:null!==(o=f.extras.resource[e].size)&&void 0!==o?o:"small",color:null!==(i=f.extras.resource[e].color)&&void 0!==i?i:"inherit",variant:null!==(p=f.extras.resource[e].variant)&&void 0!==p?p:"contained",startIcon:eM(f.extras.resource[e].icon),onClick:function(t){var n,r,o,i;if(!f.extras.resource[e].guard)switch(f.extras.resource[e].handlerStrategy){case qh.NORMAL:ug.post("".concat(u,"/actions/execute/").concat(e),{record:a,modelName:m}).then((function(e){var t=e.data.data.response;t.action===Zh.LIST?(g((function(e){return Z(Z({},e),{page:aM.page})})),y(v,x)):b(YO(t,d))})).catch((function(){A("Error happened")}));break;case qh.FILE_DOWNLOAD:ug.post("".concat(u,"/actions/execute/").concat(e),{record:a,modelName:m}).then((function(e){var t=e.data.data.response;setTimeout((function(){window.open(t.filePath,"_blank")}))})).catch((function(){}));break;case qh.CUSTOM_COMPONENT:var p=null!==(n=f.extras.resource[e].fullScreen)&&void 0!==n&&n;!function(e,t,n,r,o,i,a,c,u){var d=Z({},s);d[e]={state:t,modelName:n,saveLoadingState:r,fullScreen:i,setSelected:o,documentIds:null!=u?u:[],afterExecuteMessage:a,severity:c},l(d)}(e,!0,m,!1,c,p,v,x,a);break;default:y(v,x)}h({title:null!==(o=null!==(r=f.extras.resource[e].guardTitle)&&void 0!==r?r:f.extras.resource[e].name)&&void 0!==o?o:"",message:null!==(i=f.extras.resource[e].guard)&&void 0!==i?i:"Do you want to execute this action?",onClose:function(){h({open:!1})},onConfirm:function(t){switch(h({open:!1}),c((function(e){return[]})),f.extras.resource[e].handlerStrategy){case qh.NORMAL:t.action===Zh.LIST?(g((function(e){return Z(Z({},e),{page:aM.page})})),y(v,x)):b(YO(t,d));break;case qh.FILE_DOWNLOAD:t.filePath,setTimeout((function(){window.open(t.filePath,"_blank")}));break;default:y(v,x)}},action:function(){return ug.post("".concat(u,"/actions/execute/").concat(e),{record:a,modelName:m})},open:f.extras.resource[e].guard})},sx:{mr:1},children:f.extras.resource[e].name},e)}))}):Y.jsx(Y.Fragment,{})}function _O(e,t){var n=e.split("."),r=n[0];if(1===n.length)return t[r];for(var o="",i=1;i<n.length;i++)o+=n[i],i!==n.length-1&&(o+=".");return _O(o,t[r].schema)}function $O(e,t){var n=e.split("."),r=n[0];if(1===n.length)return t;for(var o="",i=1;i<n.length;i++)o+=n[i],i!==n.length-1&&(o+=".");return $O(o,t[r])}var eM=function(e){return Y.jsx(xg,{src:e,sx:{width:1,height:1}})};function tM(e,t,n,r,o,i){if(!r||!t||!r.hasOwnProperty(t.key)||null===r[t.key])return"---";switch(e.type){case Uh.STRING:if(!r.hasOwnProperty(t.key)||null===r[t.key])return"---";break;case Uh.DATE:return function(e,t){var n=(e=new Date(e)).getMonth()+1,r=e.getDate(),o=nC(n),i=nC(r),a=e.getFullYear()+"-"+o+"-"+i;return t&&(a=a+" "+tC(e,Tg.ENGLISH)),a}(n,!(!i[t.key]||!i[t.key].withTime));case Uh.LOCALIZEDString:var a=r[t.key]&&r[t.key][0]?Hg.getLocalizedString(r[t.key]):"----";return a||"---";case Uh.NESTEDSCHEMA:return"Object {...}";case Uh.ARRAY:return"Length ["+n.length+"]";case Uh.REFERENCE:if(!r[t.key])break;var s=o[t.path];if(!s||!s.properties||!r[t.key])return n._id;var l=o[t.path].properties.title,c=gA.checkLocalizedString(o,t.path,l)?Hg.getLocalizedString(r[t.key][l]):r[t.key][l];return s.properties.actions.show.isAccessible?n?c:"---- ":n?c:"---"}return n}function nM(e){var t,r=e.params,o=e.props,i=e.resourceName,a=e.extras,s=kg().paths,l=Eg().resources;if(!l)return Y.jsx(Y.Fragment,{});var c=null===(t=l[i].properties.model[o.key])||void 0===t?void 0:t.isClickable,u=null==a?void 0:a.onClickProperty;return c?Y.jsx(n.Button,{sx:{padding:0},onClick:function(){return u&&u[o.key]?u[o.key](o,i,r):void 0},children:UO(i,o,r,l,s)}):UO(i,o,r,l,s)}var rM=1,oM=[5,10,25,50,100],iM={currentPage:1,perPage:5,recordsCount:0},aM={page:rM,perPage:5};function sM(e,t,n,r,o,i,a){var s=null==t?void 0:t[n],l=e.map((function(e){var r,o,l=null===(o=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r.model)||void 0===o?void 0:o[e.key],c=i?null==l?void 0:l.minWidth:150;return{field:e.key,headerName:e.value,align:"center",headerAlign:"center",flex:e.flex?e.flex:i?1:void 0,minWidth:c,valueGetter:function(r){return function(e,t,n,r){var o=r[e].properties?r[e].properties.model:void 0,i=r[e].properties,a=i.title;i.actions;var s=n.value,l=n.row;if(t.key.includes(".")){var c=t.key.split("."),u={key:c[c.length-1],value:t.value,path:t.path},d=$O(t.key,l);return tM(_O(t.key,o),u,d?d[u.key]:null,d,r,o)}return l.hasOwnProperty(t.key)&&null!==l[t.key]?t.key===a?o[t.key].type===Uh.LOCALIZEDString?Hg.getLocalizedString(l[t.key]):l[t.key]:tM(o[t.key],t,s,l,r,o):"---"}(n,e,r,t)},renderCell:function(t){return e.renderCell?e.renderCell(t):Y.jsx(nM,{resourceName:n,params:t,props:e,extras:a})}}})),c={field:"actions",headerName:"",type:"number",editable:!1,align:"center",headerAlign:"left",disableColumnMenu:!0,flex:i?1:void 0,minWidth:i?void 0:150,hideable:!1,sortable:!1,disableExport:!0,renderCell:function(e){return Y.jsx(ZO,{resources:t,params:e,resourceName:n,dialogState:r,paramsState:o,extras:a})}};return!(null==a?void 0:a.hideActions)&&l.push(c),l}var lM=function(){function e(e,t){this.defaultrowsPerPage=t,this.searchParams=e}return e.prototype.get=function(){return{page:this.getPageNumber(),pageSize:this.getPageSize()}},e.prototype.getPageSize=function(){var e=this.searchParams.get("perPage");return e?isNaN(+e)||+e<=0?this.getDefaultPageSize():oM.reduce((function(t,n){return Math.abs(n-+e)<Math.abs(t-+e)?n:t})):this.defaultrowsPerPage},e.prototype.getPageNumber=function(){var e=this.searchParams.get("page"),t=aM.page;return e?isNaN(+e)||+e<=0?this.getDefaultPageNumber():+e:t},e.prototype.getDefaultPageSize=function(){return this.defaultrowsPerPage},e.prototype.getDefaultPageNumber=function(){return aM.page},e}();function cM(e){var t,n,r=e.defaultFilters,o=e.resource,i=e.searchParams,a=o.properties.filters,s=a&&a.scopes&&a.scopes.auto?a.scopes.auto.key:void 0,l=o.properties.model,c=a.scopes.options,u=void 0===(null===(t=a.scopes)||void 0===t?void 0:t.showAll)||(null===(n=a.scopes)||void 0===n?void 0:n.showAll),d=o.properties.defaultOrderBy,p=o.properties.defaultOrder,f=o.properties.defaultrowsPerPage,m={},h=void 0;new nO(o).getUniqueFields().forEach((function(e){"__v"!==e&&""!==e&&sA(l[e],e,m,i,l)})),h=aA(m,l,s);var g=new lM(i,f).get();return{page:g.page,order:p,orderBy:d,perPage:g.pageSize,filters:r?h.concat(r):h,scope:s&&i.get(s)?i.get(s):!u&&c?c[0].key:void 0}}var uM={},dM=ya;Object.defineProperty(uM,"__esModule",{value:!0});var pM=uM.default=void 0,fM=dM(wa()),mM=Y,hM=(0,fM.default)((0,mM.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");function gM(t){var o=t.schema,i=t.onClickClearFilter,a=t.onRemoveFilterValue,s=e.useState([]),l=s[0],c=s[1],u=r.useSearchParams(),d=u[0];return u[1],e.useEffect((function(){d&&c(function(e,t){var n=[];if(!e)return n;var r,o=function(o){var i=t[o],a=i.type;r=e.get(o);var s=cC.checkRefId(o)?cC.convertCamelCaseToWord(o.slice(0,-2)):cC.convertCamelCaseToWord(o);switch(a){case Uh.STRING:case Uh.PHONENUMBER:case Uh.LOCALIZEDString:case Uh.OBJECTID:case Uh.ENUM:r&&n.push({fieldKey:o,fieldTitle:s,filterValues:[{filterValueKey:o,filterValueTitle:r}]});break;case Uh.BOOLEAN:!1!==r&&!0!==r||n.push({fieldTitle:s,fieldKey:o,filterValues:[{filterValueKey:o,filterValueTitle:r}]});break;case Uh.NUMBER:case Uh.DATE:var l=o+"-from",c=o+"-to",u=e.get(o+"-from")?e.get(o+"-from"):void 0,d=e.get(o+"-to")?e.get(o+"-to"):void 0;if(u||d){var p=[];u&&p.push({filterValueKey:l,filterValueTitle:"From: ".concat(u)}),d&&p.push({filterValueKey:c,filterValueTitle:"To: ".concat(d)}),n.push({fieldTitle:s,fieldKey:o,filterValues:p})}break;case Uh.REFERENCE:if(i.multipleInFilter){var f=e.getAll(o+"-name");if(f&&f.length>0){var m=e.getAll(o+"-id");m&&m.length>0&&m.length===f.length&&n.push({fieldKey:o,fieldTitle:s,filterValues:f.map((function(e,t){return{filterValueKey:m[t],filterValueTitle:f[t]}}))})}}else{var h=e.get(o+"-name"),g=e.get(o+"-id");h&&g&&n.push({fieldKey:o,fieldTitle:s,filterValues:[{filterValueKey:g,filterValueTitle:h}]})}}};for(var i in t)o(i);return n}(d,o))}),[d]),Y.jsx(Y.Fragment,{children:0===l.length?Y.jsx(Y.Fragment,{children:" "}):Y.jsxs(n.Grid,{container:!0,justifyContent:"start",rowGap:{xs:"10px"},columnGap:{xs:"10px"},alignItems:"center",children:[l.map((function(e){return Y.jsxs(n.Stack,{direction:"row",alignItems:"center",padding:.6,borderRadius:"8px",sx:{border:"1px dashed rgba(145, 158, 171, 0.2)"},spacing:1,children:[Y.jsx(n.Typography,{fontSize:{xs:"13px",md:"14px"},fontWeight:600,children:"".concat(e.fieldTitle)}),Y.jsx(n.Stack,{direction:"row",alignItems:"center",spacing:1,children:e.filterValues.map((function(t){return Y.jsx(n.Chip,{size:"small",sx:{fontSize:{xs:"12px",md:"13px"},borderRadius:"8px",overflow:"hidden",textOverflow:"ellipsis",fontWeight:500},label:t.filterValueTitle,variant:"outlined",onDelete:a?function(){return a(e.fieldKey,t.filterValueKey)}:void 0},t.filterValueKey)}))})]},e.fieldKey)})),i&&Y.jsx(n.Button,{onClick:i,variant:"text",color:"error",startIcon:Y.jsx(pM,{}),children:"Clear"})]})})}function vM(t){var o=this,i=r.useParams().id,a=void 0===i?"":i,s=e.useState(),l=s[0],c=s[1],u=e.useState(void 0),d=u[0],p=u[1],f=e.useState([]),m=f[0],h=f[1],g=e.useState({}),v=g[0],A=g[1],y=$C(),b=t.isEdit,x=t.path,w=t.modelRoute,j=t.removeHeaderBreadcrumbs,C=t.afterCreateSnackText,O=t.afterEditSnackText,M=t.onSubmitForm,z=t.Component,D=t.redirectPath,T=t.Actions,P=t.HeadingView,N=t.BreadcrumbsChildren,E=t.BreadCrumbLinks,B=t.disableCreateNewButtonOnReference,k=t.keepFullWidthElements,L=t.defaultFilters,I=t.showFilterChips,S=t.hideHeaderBreadcrumbs,W=void 0!==S&&S,H=e.useState(!!b),R=H[0],F=H[1],V={},Q=r.useLocation(),X=e.useContext(Ag).resources,G=e.useContext(Og);G.textFieldSize;var K=G.themeStretch,_=e.useContext(fg).dashbaordUrlPrefix,$=e.useContext(wg),te=$.paths,ne=$.root,re=r.useNavigate(),oe=r.useSearchParams(),ie=oe[0];oe[1];var ae=Hg.isEnglish(),se=X[x],le=se.properties,ce=le.model,ue=le.name,de=le.title,pe=new Rg(ue,ae,de,l,ce,b),fe=cM({defaultFilters:L,searchParams:ie,resource:se});return e.useEffect((function(){U(o,void 0,void 0,(function(){var e,t;return q(this,(function(n){switch(n.label){case 0:return b?(F(!0),[4,ug.get("".concat(_,"/").concat(w)+"/"+a,{params:fe})]):[3,2];case 1:e=n.sent(),c(e.data.data.record),e.data.data.numberOfRecords&&e.data.data.recordIndex&&p({recordIndex:e.data.data.recordIndex,numberOfRecords:e.data.data.numberOfRecords}),F(!1),n.label=2;case 2:return(t=se.formProperties)&&t.map((function(e){"ref"===ce[e].type&&(V[e]=ce[e].apiRoute,ce[e].mediaUploader&&h((function(t){return t.concat(e)})))})),0!==Object.keys(V).length&&A(V),[2]}}))}))}),[y]),uC(se,b?lC.EDIT:lC.CREATE)?Y.jsx(J,{title:pe.getTitle(),children:Y.jsxs(n.Container,{maxWidth:!K&&"lg",children:[!W&&Y.jsx(ee,{headingView:P&&!R&&Y.jsx(P,{record:l}),heading:pe.getTitle(),links:j?[]:E&&!R?E(l):pe.getBreadCrumbLinks(te,x,ne),action:Y.jsxs(n.Stack,{spacing:2,children:[!se.properties.disableNextPreviousButtonsInEditPage&&b&&Y.jsx(_C,Z({},t,{params:fe,recordId:a,modelPath:w,navigateTo:function(e){var t=te[x].edit(e);re("".concat(t).concat(Q.search))},numberOfRecords:null==d?void 0:d.numberOfRecords,recordIndex:null==d?void 0:d.recordIndex})),Y.jsx(n.Stack,{direction:"row",spacing:2,children:l&&!R&&T&&Y.jsx(T,{record:l,setRecord:c})})]}),children:N&&!R&&Y.jsx(N,{record:l})}),Y.jsxs(n.Stack,{spacing:1,children:[I&&Y.jsx(gM,{schema:ce}),R?Y.jsx(n.Grid,{container:!0,alignItems:"center",children:Y.jsx(Wg,{loadingVertical:!0,sx:{height:50}},5)}):z?Y.jsx(z,{record:l,isEdit:b,refRoutes:v,id:a,path:x,modelRoute:w,resources:X,mediaUploaderFields:m,onSubmitForm:M,afterCreateSnackText:C,afterEditSnackText:O}):Y.jsx(KC,{isEdit:b,referencedMap:v,id:a,record:l,path:x,mediaUploaderFields:m,onSubmitForm:M,modelRoute:w,redirectPath:D,afterCreateSnackText:C,afterEditSnackText:O,enableCreateNewButtonOnReference:!B,keepFullWidthElements:k})]})]})}):Y.jsx(tO,{})}function AM(e){var t=e.open,r=e.data,o=e.onDismiss,i=r.resource,a=r.resourcePath,s=Bg().setSuccessAlert,l=Hg.isEnglish(),c=i.properties,u=c.model,d=c.name,p=c.title,f=new Rg(d,l,p,void 0,u,!1);return Y.jsx(n.Drawer,{anchor:"right",open:t,onClose:o,sx:{overflowY:"auto",maxHeight:"calc(100vh - 100px)","&::-webkit-scrollbar":{width:"4px",height:"4px"},"&::-webkit-scrollbar-track":{borderRadius:"10px",background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#888",borderRadius:"10px"},"&::-webkit-scrollbar-thumb:hover":{background:"#555"}},children:Y.jsx("div",{style:{paddingTop:"24px",paddingBottom:"24px"},children:Y.jsx(vM,{isEdit:!1,modelRoute:i.properties.path,path:a,removeHeaderBreadcrumbs:!0,onSubmitForm:function(){o(),s("Created successfully")},disableCreateNewButtonOnReference:!0,keepFullWidthElements:!0,HeadingView:function(){return Y.jsxs(n.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[Y.jsx(n.Typography,{variant:"h4",gutterBottom:!0,children:f.getTitle()}),Y.jsx(n.IconButton,{onClick:o,children:Y.jsx(Ca,{})})]})}},"CreateNewDialog-".concat(a))})})}pM=uM.default=hM;var yM="AddMoreOption";function bM(t){var r=t.name,o=t.options,i=t.loading,a=t.multiple,s=t.onOptionChange,l=t.onOpenChanged,u=t.hasNext,d=t.loadMoreText,p=t.resource,f=t.resourcePath,m=t.enableCreateNewButtonOnReference,h=t.dependOn,g=t.relatedFields,v=t.fieldKey,A=G(t,["name","options","loading","multiple","onOptionChange","onOpenChanged","hasNext","loadMoreText","resource","resourcePath","enableCreateNewButtonOnReference","dependOn","relatedFields","fieldKey"]),y=c.useFormContext(),b=y.control,x=y.getValues,w=y.watch,j=y.reset;y.setValue;var C=e.useState(!1),O=C[0],M=C[1],z=e.useState({page:1,filter:void 0}),D=z[0],T=z[1],P=Ng().textFieldSize,N=Lg().openDialog,E=function(e){var t,n,r;t=e.target.value,n=B(),r="".concat(null!=t?t:"").concat(n?"&".concat(n):""),T({page:1,filter:r})},B=function(){if(null==h?void 0:h.length){var e=[];return h.forEach((function(t){var n=x(t);n&&n._id&&e.push("".concat(t,"=").concat(n._id,";;ref"))})),e.length?"filters=".concat(e.join("^^")):void 0}},k=w(null!=h?h:[]),L=function(e){var t,n=(null===(t=D.filter)||void 0===t?void 0:t.split("filters=")[0])||D.filter,r=B(),o="".concat(null!=n?n:"").concat(r?"&".concat(r):"");T((function(e){return Z(Z({},e),{filter:o})})),l(e,D.page,o),M(e)},I=e.useMemo((function(){return cg.debounce(E,500)}),[]);e.useEffect((function(){return function(){I.cancel()}}),[]),e.useEffect((function(){l(O,D.page,D.filter)}),[D]);var S=Y.jsx(hp,{fontSize:"small"}),W=Y.jsx(xp,{fontSize:"small"}),H=!!(null==h?void 0:h.length)&&k.some((function(e){return!e||!e._id}));return Y.jsxs(n.Stack,{spacing:0,children:[Y.jsx(c.Controller,{name:r,control:b,render:function(e){var t=e.field,l=e.fieldState.error;return p&&t&&t.value&&"object"==typeof t.value&&t.value._id&&!Array.isArray(t.value)&&(t.value={_id:t.value._id,title:FC.get(p,t.value),image:hA.getReferenceImage(p,t.value)}),H?Y.jsx(Y.Fragment,{}):Y.jsx(n.Autocomplete,Z({multiple:a,fullWidth:A.fullWidth,sx:A.sx},t,{value:t.value||null,filterOptions:function(e){var t=K([],e,!0);return u&&0!==e.length&&t.push({_id:yM,title:null!=d?d:"+ Load More"}),t},disableCloseOnSelect:a,id:r,size:"medium",open:O,disabled:A.disabled||(null==h?void 0:h.some((function(e,t){var n=k[t];return!n||!n._id}))),onOpen:function(){return L(!0)},onClose:function(){L(!1)},isOptionEqualToValue:function(e,t){return e._id===t._id},renderOption:function(e,t,r){var o=r.selected;return Y.jsx(Y.Fragment,{children:t._id===yM?Y.jsx(n.Stack,{justifyContent:"center",children:Y.jsx(n.Button,{sx:{margin:1},onClick:function(){return T({page:D.page+1,filter:D.filter})},children:t.title})}):Y.jsx("li",Z({},e,{style:{justifyContent:t._id===yM?"center":void 0},children:Y.jsxs(n.Stack,{direction:"row",spacing:1,alignItems:"center",children:[a&&Y.jsx(n.Checkbox,{icon:S,checkedIcon:W,style:{marginRight:1},checked:o}),t.image&&Y.jsx(n.Avatar,{alt:"-",src:t.image}),Y.jsx(n.Typography,{children:t.title?t.title:t.name})]})}))})},getOptionLabel:function(e){if(!e||!(e.title?e.title:e.name)||""===(e.title?e.title:e.name))return"";var t=e.title?e.title:e.name;return e.image&&!a&&t&&""!==t?t+";;"+e.image:t},options:null!=o?o:[],loading:i,onChange:function(e,n,r){if(g&&g.length>0){var o=x();g.forEach((function(e){o[e]=void 0})),"clear"===r&&v?o[v]=void 0:"selectOption"===r&&v&&(o[v]=n),j(o)}s&&s(n),t.onChange(a?n:Z({},n))},renderInput:function(e){var t,r,o,s=e.inputProps.value,c=void 0;if(!a&&"string"==typeof s&&s.includes(";;")){var u=s.split(";;");c=u[1],e.inputProps=Z(Z({},e.inputProps),{value:u[0]}),e.InputProps=Z(Z({},e.InputProps),{startAdornment:Y.jsx(n.Avatar,{src:c,alt:""})})}return Y.jsx(n.TextField,Z({},e,A,{size:P,error:!!l,onChange:I,helperText:null!==(t=null==l?void 0:l.message)&&void 0!==t?t:null===(o=null===(r=Object(l))||void 0===r?void 0:r._id)||void 0===o?void 0:o.message,InputProps:Z(Z({},e.InputProps),{endAdornment:Y.jsxs(Y.Fragment,{children:[i?Y.jsx(n.CircularProgress,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})})}))}}))}}),m&&Y.jsx(n.Button,{size:"small",onClick:function(){N(AM,{resource:p,resourcePath:f})},sx:{flexShrink:0,alignSelf:"end",padding:0,marginTop:0,fontSize:"13px",fontWeight:400,textDecoration:"underline"},style:{marginBottom:"5px"},children:"Create New"})]})}var xM=["true","false"];function wM(e,t,r,o,i,a,s,l,c,u,d,p){var f;if(r[t])switch(r[t].type){case Uh.STRING:return Y.jsx(dp,{name:a,size:e,label:r[t].value},t);case Uh.PHONENUMBER:return Y.jsx(b,{defaultCountry:r[t].defaultCountryCode?r[t].defaultCountryCode:r[t].countryCodes?r[t].countryCodes[0]:"sa",onChange:function(e){return u(a,e)},onlyCountries:r[t].countryCodes?r[t].countryCodes:[],name:a,size:e,label:r[t].value,value:d(a)?d(a):"",variant:"outlined",fullWidth:!0},t);case Uh.TIMEPICKER:case Uh.LOCALIZEDString:case Uh.OBJECTID:return Y.jsx(dp,{name:a,size:e,label:r[t].value},t);case Uh.NUMBER:return Y.jsxs(n.Card,{sx:{py:3,px:3},children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[t].value},t),Y.jsxs(n.Stack,{direction:"row",spacing:2,children:[Y.jsx(dp,{name:t+".from",style:{flex:1,width:90},size:e,label:s?"From":"من"}),Y.jsx(dp,{name:t+".to",style:{flex:1,width:90},size:e,label:s?"To":"إلى"})]})]},t);case Uh.DATE:return Y.jsxs(n.Card,{sx:{py:3,px:3},children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[t].value},t),Y.jsxs(n.Grid,{container:!0,spacing:2,children:[Y.jsx(n.Grid,{item:!0,xs:12,children:Y.jsx(Mp,{name:t+".from",size:e,label:s?"From":"من",fullWidth:!0},t)}),Y.jsx(n.Grid,{item:!0,xs:12,children:Y.jsx(Mp,{name:t+".to",size:e,label:s?"To":"إلى",fullWidth:!0},t)})]})]},t);case Uh.ENUM:return Y.jsx(pp,{name:a,size:e,label:r[t].value,SelectProps:{native:!1,sx:{textTransform:"capitalize"}},children:Object.keys(r[t].enumValues).map((function(e){var o,i,a,s=r[t].enumValues,l=(null===(o=s[e])||void 0===o?void 0:o.label)?e:s[e],c=null!==(a=null===(i=s[e])||void 0===i?void 0:i.label)&&void 0!==a?a:s[e];return Y.jsx(n.MenuItem,{value:l,sx:{mx:1,my:.5,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:PC.enhance(c)},l)}))},t);case Uh.BOOLEAN:return Y.jsx(pp,{name:a,size:e,label:r[t].value,SelectProps:{native:!1,sx:{textTransform:"capitalize"}},children:xM.map((function(e){return Y.jsx(n.MenuItem,{value:e,sx:{mx:1,my:.5,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:e},e)}))},t);case Uh.ARRAY:case Uh.REFERENCE:var m=p?p[null===(f=r[t])||void 0===f?void 0:f.path]:void 0,h=ZC(r,t,RC.FILTER_LIST,m);return Y.jsx(bM,{name:a,size:e,label:r[t].value,multiple:!1,onOptionChange:function(e){return c(e,t)},options:o[t]&&o[t].data?o[t].data:[],loading:i[a],hasNext:o[t]&&o[t].hasNext,onOpenChanged:function(e,n,o){return l(r[t].apiRoute,r[t].path,e,t,a,n,o,h)}},t);default:return}}function jM(t){var r=this,o=t.schema,i=t.resources,a=t.filterProperties,s=t.searchParams,u=t.scopeKey,d=t.scopeValue,p=t.setParams,f=t.size;t.initialQueryParams;var m=t.isQuickFilter,h=t.quickFilterValues,g=t.onRefrenceChanged,v=t.setSearchParams,A=t.handleFilterDrawerClose,y=t.filterString,b=e.useState({}),x=b[0],w=b[1],j=e.useState({}),C=j[0],O=j[1],M=function(e,t,n,a,s,l,c,u){return U(r,void 0,void 0,(function(){return q(this,(function(r){switch(r.label){case 0:return[4,VC({apiRoute:e,referencedValues:C,value:n,loading:x,fullKey:s,key:a,pathRoute:t,resources:i,schema:o,setLoading:w,setReferencedValues:O,page:l,filter:c,filters:u})];case 1:return r.sent(),[2]}}))}))},z={},D={};a.map((function(e,t){"__v"!==e&&o[e]&&(z[e]=eg(o[e],e,D,s))}));var T=L.object().shape(z),P=Hg.isEnglish(),N=e.useMemo((function(){return D}),[]),E=c.useForm({resolver:Da(T),defaultValues:N}),B=E.handleSubmit,I=E.reset,S=E.setValue,W=E.getValues,H=function(e){return U(r,void 0,void 0,(function(){var t,n;return q(this,(function(r){return t=Z(Z({},e),h),n=ag(t,A,o,s,v,u,d),y&&y(n,e),[2]}))}))};return m?Y.jsx(rp,{methods:E,onSubmit:B(H),children:Y.jsxs(n.Stack,{direction:"row",spacing:2,justifyContent:"end",children:[a&&a.map((function(e,t){return Y.jsx(n.Grid,{minWidth:170,children:wM(f,e,o,C,x,e,P,M,g,S,W,i)},e+t)})),Y.jsx(l.LoadingButton,{size:"small",type:"submit",variant:"outlined",children:P?"Filter":"التصفية"})]},"grid1")}):Y.jsx("div",{children:Y.jsx(k.Fragment,{children:Y.jsxs(rp,{methods:E,onSubmit:B(H),children:[Y.jsx(og,{children:Y.jsx(n.Grid,{container:!0,spacing:2,justifyContent:"end",style:{padding:"2rem"},children:a&&a.map((function(e,t){return Y.jsx(n.Grid,{item:!0,xs:12,children:wM(f,e,o,C,x,e,P,M,g,S,W,i)},e+t)}))},"grid1")}),Y.jsx(wo,{sx:{marginTop:"2rem",paddingBottom:"2rem"},children:Y.jsx(n.Stack,{mt:2,ml:3,children:Y.jsxs(n.Grid,{flexDirection:"column",children:[Y.jsx(l.LoadingButton,{style:{flex:1,margin:8,width:150},type:"submit",variant:"contained",startIcon:bg("FilterAlt"),children:P?"Filter":"التصفية"}),Y.jsx(l.LoadingButton,{style:{flex:1},type:"reset",variant:"outlined",color:"inherit",startIcon:bg("RestartAlt"),onClick:function(){v({}),p((function(e){return Z(Z({},e),{filters:void 0})})),I(Z({},N)),A()},children:P?"Reset":"إلغاء"})]})})})]})})})}function CM(e){var t=e.schema,r=e.resources,o=e.size,i=e.open,a=e.scopeKey,s=e.scopeValue,l=e.filterProperties,c=e.searchParams,u=e.setSearchParams,d=e.setParams,p=e.initialQueryParams,f=e.quickFilterValues,m=e.onRefrenceChanged,h=e.handleFilterDrawerClose,g=e.filterString,v=Hg.isEnglish();return Y.jsx("div",{children:Y.jsx(k.Fragment,{children:Y.jsxs(sa,{anchor:"right",open:i,onClose:h,children:[Y.jsxs(n.Stack,{direction:"row",alignItems:"center",style:{minWidth:"340px",padding:"1rem",width:"20vw"},justifyContent:"space-between",sx:{px:1,py:1},children:[Y.jsx(n.Typography,{variant:"h6",children:v?"Filters":"التصفية"}),Y.jsx(n.IconButton,{onClick:h,children:Y.jsx(Ca,{})})]}),Y.jsx(ha,{}),Y.jsx(og,{children:Y.jsx(jM,{schema:t,size:o,resources:r,initialQueryParams:p,filterProperties:l,onRefrenceChanged:m,handleFilterDrawerClose:h,filterString:g,scopeKey:a,scopeValue:s,setParams:d,searchParams:c,setSearchParams:u,quickFilterValues:f})})]})})})}var OM=e.forwardRef((function(e,t){return Y.jsx(n.Slide,Z({direction:"up",ref:t},e))}));function MM(t){var r,o,i=t.open,a=t.onClose,s=t.title,c=t.onConfirm,u=t.message,d=t.action,p=t.extras,f=e.useState(!1),m=f[0],h=f[1];return Y.jsxs(n.Dialog,{open:i,fullWidth:!0,keepMounted:!0,onClose:function(e,t){"backdropClick"!==t&&a&&a()},"aria-describedby":"alert-dialog-slide-description",disableEscapeKeyDown:!0,TransitionComponent:OM,children:[Y.jsx(n.DialogTitle,{children:s}),Y.jsx(n.DialogContent,{children:Y.jsx(n.DialogContentText,{id:"alert-dialog-slide-description",children:u})}),Y.jsxs(n.DialogActions,{children:[Y.jsx(n.Button,{color:"inherit",onClick:a,disabled:m,children:null!==(r=null==p?void 0:p.cancelText)&&void 0!==r?r:"Cancel"}),Y.jsx(l.LoadingButton,{variant:"contained",onClick:function(){d&&(h(!0),d().then((function(e){var t=e.data.data?e.data.data.response:e.data.meta;h(!1),c&&c(t)})).catch((function(e){a&&a(),console.log(e)})))},loading:m,children:null!==(o=null==p?void 0:p.confirmText)&&void 0!==o?o:"Confirm"})]})]})}var zM=n.styled("div")((function(e){var t=e.theme;return{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%","& .ant-empty-img-1":{fill:"light"===t.palette.mode?"#aeb8c2":"#262626"},"& .ant-empty-img-2":{fill:"light"===t.palette.mode?"#f5f5f7":"#595959"},"& .ant-empty-img-3":{fill:"light"===t.palette.mode?"#dce0e6":"#434343"},"& .ant-empty-img-4":{fill:"light"===t.palette.mode?"#fff":"#1c1c1c"},"& .ant-empty-img-5":{fillOpacity:"light"===t.palette.mode?"0.8":"0.08",fill:"light"===t.palette.mode?"#f5f5f5":"#fff"}}}));function DM(e){var t=e.checkBox,r=e.numberOfColumns,o=G(e,["checkBox","numberOfColumns"]),i=Array.apply(null,Array(r)).map((function(e,t){return t}));return Y.jsx(n.TableRow,Z({},o,{children:Y.jsx(n.TableCell,{children:Y.jsxs(n.Stack,{spacing:2,gridRow:"auto",direction:"row",justifyContent:"space-around",width:920,children:[t&&Y.jsx(n.Skeleton,{variant:"rectangular",width:20,height:20,sx:{borderRadius:1,flexShrink:0}}),i.map((function(e){return Y.jsx(n.Skeleton,{variant:"text",width:150,height:20},e)}))]})})}))}var TM=n.styled("div")((function(e){var t=e.theme;return{right:24,zIndex:9,bottom:40,display:"flex",position:"fixed",alignItems:"center",boxShadow:t.customShadows.z20,padding:t.spacing(1.5,1,1.5,2),borderRadius:t.shape.borderRadius,backgroundColor:t.palette.text.primary}}));function PM(e){var t,r=e.action,o=e.selected;e.rowCount,e.numSelected;var i=e.extras;e.onSelectAllItems;var a=e.sx,s=G(e,["action","selected","rowCount","numSelected","extras","onSelectAllItems","sx"]);return Y.jsx(n.Portal,{children:Y.jsxs(TM,Z({sx:a},s,{children:[Y.jsxs(n.Typography,{variant:"subtitle2",sx:{mr:2,color:function(e){return"light"===e.palette.mode?"common.white":"grey.800"}},children:[o&&o.length,Y.jsx(n.Box,{component:"span",sx:{ml:.5},children:null!==(t=null==i?void 0:i.itemsSelectedText)&&void 0!==t?t:"items selected"})]}),r&&r]}))})}var NM={},EM=ya;Object.defineProperty(NM,"__esModule",{value:!0});var BM,kM=NM.default=void 0,LM=EM(wa()),IM=Y,SM=(0,LM.default)((0,IM.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}),"FileDownloadOutlined");function WM(e){if(!e)return[];for(var t=e.listProperties,n=e.properties.model,r=[],o=0,i=t;o<i.length;o++){var a=i[o],s=n[a.key];HM(null==s?void 0:s.type)&&r.push(Z(Z({},a),{name:a.value,_id:a.key,type:null==s?void 0:s.type}))}return r}function HM(e){switch(e){case Uh.BOOLEAN:case Uh.STRING:case Uh.ENUM:case Uh.DATE:case Uh.OBJECTID:case Uh.LOCALIZEDString:case Uh.PHONENUMBER:case Uh.REFERENCE:case Uh.COLOR:case Uh.TIMEPICKER:case Uh.LOCATION:case Uh.RICH_TEXT_I:case Uh.RICH_TEXT_II:case Uh.EXTERNAL_LINK:case Uh.NUMBER:return!0;default:return!1}}function RM(e,t,n){var r;if(e.type===BM.REFERENCE){var o=e.path,i=n[o];if(!i||!i.properties||!o)return"".concat(t,"._id");var a=null!==(r=i.properties.title)&&void 0!==r?r:"_id";return"".concat(t,".").concat(a)}}function FM(e,t,n){var r;if(e.type===BM.REFERENCE){var o=e.path,i=n[o];if(i&&i.properties&&o){var a=null!==(r=i.properties.title)&&void 0!==r?r:"_id",s=i.properties.model;if(s&&a&&s[a])return s[a].type}}}kM=NM.default=SM,function(e){e.STRING="String",e.NUMBER="Number",e.ENUM="enum",e.REFERENCE="ref",e.DATE="Date",e.PASSWORD="password",e.BOOLEAN="Boolean",e.OBJECTID="ObjectID",e.NESTEDSCHEMA="nestedSchema",e.ARRAY="Array",e.IMAGE="image"}(BM||(BM={}));var VM=[{label:"PDF",value:"pdf"},{label:"Excel sheet",value:"xlsx"}],QM=o.object().shape({fileType:o.string().default("xlsx").required("Please select a valid file type"),columns:o.array().of(o.object({_id:o.string(),label:o.string()})).required("Please select at least one day").min(1)});function XM(e){var t=e.open,r=e.setOpen,o=e.resource,i=e.resources,a=e.params,s=[];Object.keys(null==o?void 0:o.properties.model).forEach((function(e){var t,n,r=o.properties.model[e];HM(r.type)&&"__v"!==e&&"salt"!==e&&"hash"!==e&&s.push(Z(Z({},r),{label:null!==(t=r.value)&&void 0!==t?t:e,value:r.type===Uh.REFERENCE?e:null!==(n=r.valuePath)&&void 0!==n?n:e,type:r.type}))}));var u=mg(),d=u.requestState,p=u.get,f=c.useForm({resolver:Da(QM),defaultValues:{fileType:"xlsx",columns:WM(o)}}),m=f.handleSubmit,h=f.watch,g=f.setValue;return Y.jsx(n.Dialog,{open:t,maxWidth:"sm",fullWidth:!0,children:Y.jsxs(rp,{methods:f,onSubmit:m((function(e){var t=e.fileType,n=e.columns.map((function(e){return{value:e._id,label:e.name,type:e.type,titlePath:RM(e,e._id,i),titleType:FM(e,e._id,i)}}));p({url:"".concat(o.properties.path,"/report"),query:Z({fields:n,fileType:e.fileType},a),axiosRequestConfig:{responseType:"blob"},rowResponse:!0,onSuccess:function(e){var n=window.URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download="".concat(o.properties.path,".").concat(t),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}})})),children:[Y.jsx(n.DialogTitle,{sx:{mb:2},children:"Export Schedule"}),Y.jsx(n.Divider,{}),Y.jsx(n.DialogContent,{children:Y.jsxs(n.Stack,{spacing:2,divider:Y.jsx(n.Divider,{}),children:[Y.jsxs(n.Stack,{children:[Y.jsx(n.Typography,{sx:{color:"#637381",fontSize:"16px",fontStyle:"normal",fontWeight:700,lineHeight:"25px"},children:"Select the file type"}),Y.jsx($h,{name:"fileType",options:VM,row:!1})]}),Y.jsxs(n.Stack,{children:[Y.jsx(n.Typography,{sx:{color:"#637381",fontSize:"16px",fontStyle:"normal",fontWeight:700,lineHeight:"25px",mb:2},children:"Select Columns:"}),Y.jsx(Op,{name:"columns",loading:!1,onOpenChanged:function(){},multiple:!0,options:s.map((function(e){return{name:e.label,_id:e.value,type:e.type,path:e.path}})),label:"Select Columns"}),Y.jsx(n.Button,{size:"small",onClick:function(){g("columns",[])},sx:{flexShrink:0,alignSelf:"end",padding:0,marginTop:0,fontSize:"13px",fontWeight:400,textDecoration:"underline"},style:{marginBottom:"5px"},children:"Clear"})]})]})}),Y.jsx(n.DialogActions,{children:Y.jsxs(n.Stack,{direction:"row",spacing:1,children:[Y.jsx(n.Button,{variant:"outlined",color:"inherit",onClick:function(){return r(!1)},children:"Cancel"}),Y.jsx(l.LoadingButton,{variant:"contained",type:"submit",loading:d.state===exports.RequestState.LOADING,disabled:0===h("columns").length,children:"Export"})]})})]})})}function YM(t){var r=t.resource,o=t.resources,i=t.params,a=e.useState(!1),s=a[0],l=a[1];return Y.jsxs(T.GridToolbarContainer,{sx:{mt:2},children:[Y.jsx(T.GridToolbarColumnsButton,{}),Y.jsx(T.GridToolbarFilterButton,{}),Y.jsx(T.GridToolbarDensitySelector,{}),Y.jsx(n.Button,{startIcon:Y.jsx(kM,{}),onClick:function(){return l(!0)},children:"Export"}),Y.jsx(XM,{open:s,setOpen:l,resource:r,resources:o,params:i})]})}function ZM(e,t,n){return Y.jsx(Y.Fragment,{children:[1,2].map((function(e){return function(e,t,n){return Y.jsx(DM,{sx:{height:72},checkBox:t,numberOfColumns:n},e)}(e,t,n)}))})}function GM(t){var o,i,a=this,s=t.resources,c=t.resourceName,u=t.paramsState,d=t.bulkActionsDialogState,p=t.extras,f=t.setBulkActionsDialogState,m=t.hidePagination,h=e.useContext(fg).dashbaordUrlPrefix;e.useContext(wg).paths;var g=e.useState([]),v=(g[0],g[1]),A=e.useState([]),y=A[0],b=A[1],x=e.useState(!0),w=x[0],j=x[1],C=e.useState(iM),O=C[0],M=C[1],z=u[0],D=u[1],P=e.useState(!1),N=P[0],E=P[1],B=s[c];if(p&&p.overridenResource){var k=p.overridenResource(B);B=Z(Z({},B),k)}var L=B.properties.actions,I=e.useState([]),S=I[0],W=I[1],H=Za("up","lg"),R=r.useSearchParams(),F=R[0],V=R[1];e.useContext(Og).defaultRowsPerPage;var Q,X=Bg().setSuccessAlert,G=e.useState({open:!1,title:"",onClose:function(){},onConfirm:function(){}}),J=sM(B.listProperties,s,c,G,u,H,p);return e.useEffect((function(){!function(e){U(a,void 0,void 0,(function(){return q(this,(function(t){return j(!0),ug.get("".concat(h,"/").concat(B.properties.path),{params:e}).then((function(e){var t=e.data.data,n=t.pageInfo,r=t.records;v((function(e){return 1===n.currentPage?K([],r,!0):K(K([],e,!0),r,!0)})),b(r),M(n),j(!1)})),[2]}))}))}(z)}),[z,c,h]),Y.jsxs(Y.Fragment,{children:[Y.jsx(T.DataGrid,Z({rows:w?[]:y,columns:J,initialState:{sorting:{sortModel:[{sort:z.order,field:null!==(o=z.orderBy)&&void 0!==o?o:"_id"}]}},pageSizeOptions:oM,rowCount:null==O?void 0:O.recordsCount,checkboxSelection:!(null==p?void 0:p.hideBulkActions)&&(L.bulkDelete.isAccessible||L.extras&&L.extras.resource&&Object.keys(L.extras.resource).length>0),disableRowSelectionOnClick:!0,loading:w,slots:{loadingOverlay:function(){return ZM(0,L.bulkDelete.isAccessible,B.listProperties.length)},noRowsOverlay:function(){return e=null==p?void 0:p.noRowsText,Y.jsxs(zM,{children:[Y.jsx("svg",{width:"120",height:"100",viewBox:"0 0 184 152","aria-hidden":!0,focusable:"false",children:Y.jsxs("g",{fill:"none",fillRule:"evenodd",children:[Y.jsxs("g",{transform:"translate(24 31.67)",children:[Y.jsx("ellipse",{className:"ant-empty-img-5",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Y.jsx("path",{className:"ant-empty-img-1",d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),Y.jsx("path",{className:"ant-empty-img-2",d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),Y.jsx("path",{className:"ant-empty-img-3",d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})]}),Y.jsx("path",{className:"ant-empty-img-3",d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),Y.jsxs("g",{className:"ant-empty-img-4",transform:"translate(149.65 15.383)",children:[Y.jsx("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Y.jsx("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"})]})]})}),Y.jsx(n.Box,{sx:{mt:1},children:null!=e?e:"No Rows"})]});var e},toolbar:(null==p?void 0:p.hideToolbar)?null:YM},slotProps:{toolbar:{resource:B,resources:s,params:z}},density:(null==p?void 0:p.density)?p.density:"comfortable",editMode:"row"},(Q="server",{paginationMode:Q,sortingMode:Q,filterMode:Q}),{pagination:!0,hideFooter:m,hideFooterPagination:m,onPaginationModelChange:function(e,t){e.page!==O.currentPage-1&&(!function(e,t,n,r,o){var i=o[0];o[1];var a=t[1],s=e+1;i.perPage,i.perPage,i.perPage,a((function(e){return Z(Z({},e),{page:s})}))}(e.page,u,0,0,[O,M]),F.set("page",(e.page+1).toString()),V(F)),O.perPage!==e.pageSize&&(!function(e,t,n,r){if(e!==r.perPage){var o=t[1];n([]),o((function(t){return Z(Z({},t),{page:rM,perPage:e})}))}}(e.pageSize,u,v,O),F.set("perPage",e.pageSize.toString()),F.set("page","1"),V(F))},paginationModel:{page:O.currentPage-1,pageSize:O.perPage},keepNonExistentRowsSelected:!0,onRowSelectionModelChange:function(e){W(e)},onSortModelChange:function(e){!function(e,t,n){var r=n[0],o=n[1],i=e.map((function(e){return{order:e.sort,orderBy:e.field}}))[0];t([]),r&&i&&(r.order!==i.order||r.orderBy!==i.orderBy)&&o((function(e){return Z(Z(Z({},e),i),{page:rM})}))}(e,v,u)},autoHeight:!0,getRowId:function(e){return e._id},disableColumnFilter:!0,rowSelectionModel:S})),Y.jsx(MM,Z({},G[0],{extras:p})),S.length>0&&!(null==p?void 0:p.hideBulkActions)&&Y.jsx(PM,{numSelected:S.length,rowCount:y.length,selected:S.map((function(e){return e.toString()})),extras:p,action:Y.jsxs(Y.Fragment,{children:[L.bulkDelete.isAccessible&&uC(B,lC.DELETE)&&Y.jsx(l.LoadingButton,{size:"small",loading:N,color:"error",variant:"contained",startIcon:Y.jsx(jo,{icon:"eva:trash-2-outline"}),onClick:function(){return U(a,void 0,void 0,(function(){return q(this,(function(e){switch(e.label){case 0:return E(!0),[4,ug.delete("".concat(h,"/").concat(B.properties.path,"/all"),{data:S}).then((function(){E(!1),X(p&&p.afterBulkDeleteSnackBarText?p.afterBulkDeleteSnackBarText(S.length):"".concat(S.length," records are deleted successfully")),D((function(e){return Z(Z({},e),{page:aM.page,filters:void 0})})),L.bulkDelete.reloadAfterAction&&window.location.reload(),W((function(e){return[]}))}))];case 1:return e.sent(),[2]}}))}))},sx:{mr:1},children:null!==(i=null==p?void 0:p.bulkDeleteText)&&void 0!==i?i:"Delete"}),Y.jsx(JO,{resources:s,resourceName:c,dialogState:G,gridState:u,selected:S,setSelected:W,bulkActionsDialogState:d,setBulkActionsDialogState:f})]})})]})}function UM(t){var n=this,o=t.bulkActionsDialogState,i=t.bulkActionsComponents,a=t.setParams,s=t.setBulkActionsDialogState,l=r.useNavigate(),c=e.useContext(fg).dashbaordUrlPrefix,u=kg().paths,d=Bg().setSuccessAlert,p=function(e){var t=Z({},o);t[e]={state:!1,modelName:o?o[e].modelName:"",saveLoadingState:!1,fullScreen:!!o&&o[e].fullScreen,setSelected:o?o[e].setSelected:function(e){return""},documentIds:[],afterExecuteMessage:o[e].afterExecuteMessage,severity:o[e].severity},s(t)};return Y.jsx(Y.Fragment,{children:i&&i(o,p,(function(e,t){return U(n,void 0,void 0,(function(){var n,r,i;return q(this,(function(f){switch(f.label){case 0:return m=t,(h=Z({},o))[m]={state:o[m].state,modelName:o[m].modelName,fullScreen:o[m].fullScreen,saveLoadingState:!0,setSelected:o[m].setSelected,documentIds:o[m].documentIds,afterExecuteMessage:o[m].afterExecuteMessage,severity:o[m].severity},s(h),[4,ug.post("".concat(c,"/actions/execute/").concat(t),{record:e,modelName:o?o[t].modelName:""})];case 1:return n=f.sent(),p(t),o&&o[t].setSelected([]),r=n.data.data.response,i=r.action,d(o?o[t].afterExecuteMessage:""),i===Zh.LIST?a((function(e){return Z(Z({},e),{page:aM.page})})):l(YO(r,u)),[2]}var m,h}))}))}))})}var qM=["true","false"];function KM(e,t,r,o,i,a,s,l,c,u,d,p,f){var m,h;if(r[a])switch(r[a].type){case Uh.STRING:return Y.jsx(dp,{name:a,size:e,label:r[a].value,value:l[a],onChange:function(e){return u(a,e,[a])}},t);case Uh.PHONENUMBER:return Y.jsx(b,{defaultCountry:r[a].countryCodes?r[a].countryCodes[0]:"sa",onChange:function(e){return d(a,e)},onlyCountries:r[a].countryCodes?r[a].countryCodes:["eg","sa"],name:a,size:e,label:r[t].value,value:p(a)?p(a):"",variant:"outlined",fullWidth:!0},t);case Uh.TIMEPICKER:return Y.jsx(dp,{name:a,value:l[a],size:e,label:r[t].value},t);case Uh.LOCALIZEDString:return Y.jsx(dp,{name:a,size:e,label:r[a].value,value:l[a],onChange:function(e){return u(a,e,[a])}},t);case Uh.OBJECTID:return Y.jsx(dp,{name:a,size:e,label:r[a].value,value:l[a]},t);case Uh.NUMBER:return Y.jsxs(n.Card,{sx:{py:3,px:3},children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[a].value},t),Y.jsxs(n.Stack,{direction:"row",spacing:2,children:[Y.jsx(dp,{name:a+".from",style:{flex:1,width:90},size:e,label:s?"From":"من"}),Y.jsx(dp,{name:a+".to",style:{flex:1,width:90},size:e,label:s?"To":"إلى"})]})]},t);case Uh.DATE:return Y.jsxs(n.Card,{sx:{py:3,px:3},children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[a].value},t),Y.jsxs(n.Grid,{container:!0,spacing:2,children:[Y.jsx(n.Grid,{item:!0,xs:12,children:Y.jsx(Mp,{name:a+".from",size:e,label:s?"From":"من",fullWidth:!0},t)}),Y.jsx(n.Grid,{item:!0,xs:12,children:Y.jsx(Mp,{name:a+".to",size:e,label:s?"To":"إلى",fullWidth:!0},t)})]})]},t);case Uh.ENUM:return Y.jsx(pp,{name:a,size:e,label:r[a].value,value:null!==(m=l[a])&&void 0!==m?m:"",SelectProps:{native:!1,sx:{textTransform:"capitalize"}},onChange:function(e){return u(a,e.target.value,[a])},children:Object.keys(r[a].enumValues).map((function(e){var t,o,i,s=r[a].enumValues,l=(null===(t=s[e])||void 0===t?void 0:t.label)?e:s[e],c=null!==(i=null===(o=s[e])||void 0===o?void 0:o.label)&&void 0!==i?i:s[e];return Y.jsx(n.MenuItem,{value:l,sx:{mx:1,my:.5,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:PC.enhance(c)},e)}))},t);case Uh.BOOLEAN:return Y.jsx(pp,{name:a,size:e,label:r[a].value,SelectProps:{native:!1,sx:{textTransform:"capitalize"}},onChange:function(e){return u(a,e.target.value,[a])},children:qM.map((function(e){return Y.jsx(n.MenuItem,{value:e,sx:{mx:1,my:.5,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:e},e)}))},t);case Uh.ARRAY:case Uh.REFERENCE:var g=f?f[null===(h=r[a])||void 0===h?void 0:h.path]:void 0,v=ZC(r,a,RC.FILTER_LIST,g);return Y.jsx(bM,{name:a,size:e,value:l[a]?l[a]:"",label:r[a].value,multiple:r[a].multipleInFilter,onOptionChange:function(e){return u(a,e,["".concat(a,"-name"),"".concat(a,"-id")])},options:o[a]&&o[a].data?o[a].data:[],loading:i[a],hasNext:o[a]&&o[a].hasNext,onOpenChanged:function(e,t,n){return c(r[a].apiRoute,r[a].path,e,a,a,t,n,v)}},t);default:return}}var JM=function(){function e(){}return e.modify=function(e){return"_id"===e?e.replace("_",""):e},e}();var _M=n.styled("span")((function(e){return{width:6,height:6,borderRadius:"50%",position:"absolute",backgroundColor:e.theme.palette.error.main}})),$M=[];function ez(t){var o,i,a=this,s=e.useState(!1),l=s[0],u=s[1],d=e.useState(!1),p=d[0],f=d[1],m=Hg.isEnglish(),h=e.useContext(Og),g=h.textFieldSize,v=h.themeStretch,A=e.useState(),y=A[0],b=A[1],x=e.useState({}),w=x[0],j=x[1],C=e.useState({});C[0],C[1];var O=e.useState({}),M=O[0],z=O[1],D=e.useState({}),T=D[0],P=D[1],N=e.useState({}),E=N[0],B=N[1],k=function(e,t,n,r,o,i,s,l){return U(a,void 0,void 0,(function(){return q(this,(function(a){switch(a.label){case 0:return[4,VC({apiRoute:e,referencedValues:M,value:n,loading:w,fullKey:o,key:r,pathRoute:t,resources:pe,schema:be,setLoading:j,setReferencedValues:z,page:i,filter:s,filters:l})];case 1:return a.sent(),[2]}}))}))},I=e.useState({state:!1,message:"",severity:"error"}),S=I[0],W=I[1],H=r.useLocation(),R=r.useSearchParams(),F=R[0],V=R[1],Q=e.useState(H.state?H.state.actionState:null),X=Q[0],G=Q[1],K=e.useContext(wg),_=K.paths,$=K.root,te=e.useState(void 0),ne=te[0],re=te[1],oe=t.path,ie=t.extras,ae=t.Actions,se=t.bulkActionsComponents,le=t.HeadingView,ce=t.disableFilterButton,ue=t.dataListComponent,de=t.defaultFilters,pe=e.useContext(Ag).resources,fe=pe[oe],me=fe.properties.defaultOrderBy,he=fe.properties.defaultOrder,ge=fe.properties.defaultrowsPerPage,ve=fe.quickFilterProperties,Ae=fe.properties.filters,ye=Ae&&Ae.scopes&&Ae.scopes.auto?Ae.scopes.auto.key:void 0,be=fe.properties.model,xe=Ae.scopes.options,we=void 0===(null===(o=Ae.scopes)||void 0===o?void 0:o.showAll)||(null===(i=Ae.scopes)||void 0===i?void 0:i.showAll),je={},Ce=void 0;new nO(fe).getUniqueFields().forEach((function(e){"__v"!==e&&""!==e&&sA(be[e],e,je,F,be)})),Ce=aA(je,be,ye);var Oe=new lM(F,ge).get(),Me=Oe.page,ze=Oe.pageSize,De=e.useState(Z(Z({},aM),{page:Me,order:he,orderBy:me,perPage:ze,filters:de?Ce.concat(de):Ce,scope:ye&&F.get(ye)?F.get(ye):!we&&xe?xe[0].key:void 0})),Te=De[0],Pe=De[1],Ne=function(t){var n=e.useState(t||""),r=n[0],o=n[1];return{currentTab:r,onChangeTab:function(e,t){o(t)},setCurrentTab:o}}(ye&&F.get(ye)?F.get(ye):!we&&xe?xe[0].key:"all"),Ee=Ne.currentTab,Be=Ne.onChangeTab,ke=Ne.setCurrentTab,Le={resources:pe,resourceName:oe,paramsState:[Te,Pe],bulkActionsDialogState:y,setBulkActionsDialogState:b,extras:ie,setCustomActions:re};$M=[],e.useEffect((function(){if(fe.filterProperties){var e={};fe.filterProperties.forEach((function(t){je[t]&&""!==je[t]&&(e[t]=je[t])})),B(e)}if(fe.quickFilterProperties){var t={};fe.quickFilterProperties.forEach((function(e){je[e]&&""!==je[e]&&(t[e]=je[e])})),P(t)}}),[]),e.useEffect((function(){X&&setTimeout((function(){G(null),window.history.replaceState({},document.title)}),4e3)}),[X]);var Ie=fe.properties.actions;fe.listProperties&&fe.listProperties.forEach((function(e){"__v"!==e.key&&""!==e&&$M.push({id:e.key,label:e.value,align:"left"})})),$M.push({id:"__v",label:""});var Se={},We={};ve.map((function(e,t){"__v"!==e&&be[e]&&(Se[e]=eg(be[e],e,We,F))}));var He=L.object().shape(Se),Re=c.useForm({resolver:Da(He),defaultValues:je}),Fe=Re.handleSubmit,Ve=Re.reset,Qe=Re.setValue,Xe=Re.getValues,Ye=Re.resetField,Ze=function(e){return U(a,void 0,void 0,(function(){var t;return q(this,(function(n){return t=ag(e,qe,be,F,V,ye,Ee),Pe((function(e){return Z(Z({},e),{filters:de?t.concat(de):t})})),[2]}))}))},Ge=function(e,t,n){return U(a,void 0,void 0,(function(){var r,o;return q(this,(function(i){switch(i.label){case 0:return t&&0!==t.length||n.forEach((function(e){F.delete(e)})),(r=Z({},T))[e]=t,P(r),o=Z(Z({},E),r),[4,Ze(o)];case 1:return i.sent(),[2]}}))}))},Ue=fe.properties.name,qe=function(){f(!1)},Ke=function(){Je(),V({}),ke("all"),Ve({}),P({}),B({}),Pe((function(e){return Z(Z({},e),{page:1,filters:null!=de?de:void 0,scope:!we&&xe?xe[0].key:void 0})}))},Je=function(){u(!l)};return uC(fe,lC.VIEW)?Y.jsx(J,{title:m?Ue+": List":"قائمة "+Ue,children:Y.jsxs(n.Container,{maxWidth:!v&&"lg",children:[Y.jsx(CM,{open:p,size:g,handleFilterDrawerClose:qe,schema:be,searchParams:F,setSearchParams:V,resources:pe,scopeKey:ye,scopeValue:Ee,initialQueryParams:aM,quickFilterValues:T,setParams:Pe,onRefrenceChanged:function(e,t){},filterProperties:fe.filterProperties,filterString:function(e,t){Pe((function(t){return Z(Z({},t),{filters:de?e.concat(de):e})})),B(t),ye&&F.get(ye)&&ke(F.get(ye))}}),Y.jsx(UM,{bulkActionsDialogState:y,setBulkActionsDialogState:b,setParams:Pe,bulkActionsComponents:se}),X&&Y.jsx(n.Snackbar,{open:!!X,anchorOrigin:{horizontal:"center",vertical:"top"},children:Y.jsx(n.Alert,{onClose:function(){G(null)},severity:X.severity,children:X.message})}),S.state&&Y.jsx(n.Snackbar,{open:!!S.state,anchorOrigin:{horizontal:"center",vertical:"top"},children:Y.jsx(n.Alert,{onClose:function(){W({state:!1})},severity:S.severity,children:S.message})}),fe.properties?Y.jsx(ee,{heading:Ue,headingView:le,links:[{name:m?"Dashboard":"الرئيسية",href:$},{name:Ue}],action:Y.jsxs(n.Stack,{direction:{xs:"column",sm:"row"},spacing:1,children:[ae&&Y.jsx(ae,{setParams:Pe,initialQueryParams:aM}),ne,Ie.new.isAccessible&&uC(fe,lC.CREATE)&&Y.jsx(n.Button,{variant:"contained",component:r.Link,to:_[oe].new,startIcon:Y.jsx(jo,{icon:"eva:plus-fill"}),children:Ie.new.value})]})}):Y.jsx(Co,{tuples:[]}),Y.jsxs(n.Card,{children:[fe.properties&&fe.properties.filters.scopes.isAccessible&&Y.jsx(n.Tabs,{allowScrollButtonsMobile:!0,variant:"scrollable",scrollButtons:"auto",value:Ee,onChange:function(e,t){Be(e,t),Pe((function(e){return Z(Z({},e),{scope:"all"===t?void 0:t})})),ye&&("all"===t?F.delete(ye):F.has(ye)?F.set(ye,t):F.append(ye,t),V(F))},sx:{px:2,bgcolor:"background.neutral"},children:fe.properties.filters.scopes.options.map((function(e){return Y.jsx(n.Tab,{disableRipple:!0,label:e.value,value:e.key},e.key)}))}),Y.jsx(n.Divider,{}),Y.jsxs(n.Stack,{spacing:{xs:"8px",md:"16px"},sx:{pt:3,px:3},children:[Y.jsxs(n.Stack,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",spacing:2,children:[Y.jsxs(Y.Fragment,{children:[fe.properties&&fe.properties.filters.searchBar.isAccessible&&Y.jsx(Gv,{size:g,placeholder:m?"Search by "+JM.modify(fe.properties.title)+"...":"ابحث هنا …",onInputChange:function(e){Pe((function(t){return Z(Z({},t),{filter:e})}))}}),ve.length>0&&Y.jsx(rp,{methods:Re,onSubmit:Fe(Ze),children:Y.jsx(n.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:ve&&ve.map((function(e,t){return Y.jsx(n.Grid,{minWidth:200,children:KM(g,e+l.toString(),be,M,w,e,m,T,k,Ge,Qe,Xe,pe)},e+t)}))},"grid1")})]}),!ce&&Y.jsxs(n.Stack,{direction:"row",spacing:1,children:[Y.jsx(n.Tooltip,{title:"Filter list",onClick:function(){f(!0)},children:Y.jsx(n.IconButton,{children:Y.jsx(jo,{icon:"ic:round-filter-list"})})}),Te.filters&&!p&&Te.filters!==de&&Y.jsx(_M,{}),Te.filters&&!p&&Te.filters!==de&&Y.jsx(n.Tooltip,{title:"Reset Filter",onClick:Ke,children:Y.jsx(n.IconButton,{children:bg("RestartAlt")})})]})]}),Y.jsx(gM,{schema:be,onClickClearFilter:Ke,onRemoveFilterValue:function(e,t){!function(e,t,n,r,o,i,a,s,l,c,u,d,p,f){var m,h,g=n.quickFilterProperties,v=n.properties.filters,A=v&&v.scopes&&v.scopes.auto?v.scopes.auto.key:void 0,y=n.properties.model,b=v.scopes.options,x=void 0===(null===(m=v.scopes)||void 0===m?void 0:m.showAll)||(null===(h=v.scopes)||void 0===h?void 0:h.showAll),w=Z({},s),j=Z({},c);A&&e.get(A)&&r===A&&i("all");var C=y[r],O=C.type,M=e.get(r),z=function(e){var t=r+"-to";return{from:o===r+"-from"?"":e[r].from,to:o===t?"":e[r].to}},D=function(t,n){var r=e.getAll(t);e.delete(t),r.forEach((function(r){r!==n&&e.append(t,r)}))};switch(O){case Uh.STRING:case Uh.PHONENUMBER:case Uh.LOCALIZEDString:case Uh.OBJECTID:case Uh.ENUM:case Uh.BOOLEAN:case Uh.COLOR:case Uh.EXTERNAL_LINK:M&&e.delete(r),s&&s[r]&&(w[r]=void 0),g&&g.includes(r)&&c[r]&&delete j[r];break;case Uh.NUMBER:case Uh.DATE:(M=e.get(o))&&e.delete(o),s&&s[r]&&(w[r]=z(w)),g&&g.includes(r)&&c[r]&&(j[r]=z(j));break;case Uh.REFERENCE:var T=r+"-id",P=r+"-name";if(C.multipleInFilter){var N=e.getAll(r+"-name");N&&N.length>0&&(e.getAll(r+"-id").forEach((function(e,t){e===o&&D(P,N[t])})),D(T,o)),g&&g.includes(r)&&c[r]&&(j[r]=j[r].filter((function(e){return e._id!==o})))}else e.delete(T),e.delete(P),s&&s[r]&&(w[r]=void 0),g&&g.includes(r)&&c[r]&&(d(r),f(),delete j[r])}var E={},B=void 0;new nO(n).getUniqueFields().forEach((function(t){"__v"!==t&&""!==t&&sA(y[t],t,E,e,y)})),B=aA(E,y,A),l(w),u(j),t(e),a((function(t){return Z(Z({},t),{page:1,filters:p?B.concat(p):B,scope:A&&e.get(A)?e.get(A):!x&&b?b[0].key:void 0})}))}(F,V,fe,e,t,ke,Pe,E,B,T,P,Ye,de,Je)}})]}),ue?ue(Le):Y.jsx(GM,Z({},Le))]})]})}):Y.jsx(tO,{})}function tz(e){var t=e.text,o=e.to,i=e.icon;return Y.jsx(n.Button,{variant:"contained",component:r.Link,to:o,startIcon:Y.jsx(jo,{icon:i}),children:t})}function nz(e){return Y.jsx(tz,Z({},e,{icon:"eva:edit-fill"}))}var rz,oz=function(){function e(e,t,n,r,o){this.modelLocalizedName=t,this.modelName=e,this.isEnglish=n,this.title=r,this.record=o}return e.prototype.getTitle=function(){return this.isEnglish?this.modelLocalizedName+": Show":"عرض "+this.modelLocalizedName},e.prototype.getBreadCrumbHeading=function(){return this.isEnglish?this.modelName+" Data":"عرض "+this.modelLocalizedName},e.prototype.getBreadCrumbLinks=function(e,t,r,o){return[{name:this.isEnglish?"Dashboard":"الرئيسية",href:o},{name:this.modelLocalizedName,href:e[t].list},{name:this.record?r[this.title].type===Uh.LOCALIZEDString?this.getValue():"object"!=typeof this.record[this.title]?this.record[this.title]:this.getValue():Y.jsx(n.Skeleton,{variant:"text",width:100,height:20})}]},e.prototype.getValue=function(){return this.record[this.title][0]?Hg.getLocalizedString(this.record[this.title]):"---"},e}();function iz(t){var r=t.record,o=t.path,i=t.userPath,a=e.useContext(Ag).resources,s=a[o].showProperties,l=a[o].properties.model;return Y.jsx(n.Card,{sx:{pt:5,px:5},children:Y.jsx(n.Grid,{container:!0,columnSpacing:2,children:s&&s.map((function(e){return r.hasOwnProperty(e.key)&&null!==r[e.key]?Y.jsx(Fj,{property:e,schema:l,record:r,resources:a,userpath:i},e.key):Y.jsx(Ij,{title:e.value,value:DC,fieldkey:e.key,resources:a,userpath:i},e.key)}))})})}function az(t){var o,i,a,s,l,c=r.useParams().id,u=void 0===c?"":c,d=t.path,p=t.modelRoute,f=t.disableDefaultActions,m=t.Component,h=t.HeadingView,g=t.Actions,v=t.BreadcrumbsChildren,A=t.BreadCrumbLinks,y=t.defaultFilters,b=t.showFilterChips,x=t.hideHeaderBreadcrumbs,w=void 0!==x&&x,j=r.useLocation(),C=Hg.isEnglish(),O=r.useSearchParams(),M=O[0];O[1];var z=e.useContext(Ag).resources,D=e.useContext(Og).themeStretch,T=e.useContext(wg),P=T.paths,N=T.root,E=r.useNavigate(),B=z[d],k=z[d],L=k.properties,I=L.model,S=L.name,W=L.actions,H=L.title,R=gA.convertCamelCaseToWord(d),F=mg(),V=F.requestState,Q=F.get,X=null===(o=V.data)||void 0===o?void 0:o.record,G=new oz(R,S,C,H,X),U=cM({defaultFilters:y,searchParams:M,resource:B});e.useEffect((function(){Q({url:"".concat(p,"/").concat(u),query:U})}),[u]);var q=V.state===exports.RequestState.SUCCEEDED;return uC(B,lC.VIEW)?Y.jsx(J,{title:G.getTitle(),children:Y.jsxs(n.Container,{maxWidth:!D&&"lg",children:[!w&&Y.jsx(ee,{headingView:h&&q&&Y.jsx(h,{record:V.data}),heading:G.getBreadCrumbHeading(),links:A&&q?A(V.data):G.getBreadCrumbLinks(P,d,I,N),action:Y.jsxs(n.Stack,{spacing:2,children:[!k.properties.disableNextPreviousButtonsInShowPage&&Y.jsx(_C,Z({},t,{recordId:u,params:U,modelPath:p,navigateTo:function(e){var t=P[d].show(e);E("".concat(t).concat(j.search))},recordIndex:null===(i=V.data)||void 0===i?void 0:i.recordIndex,numberOfRecords:null===(a=V.data)||void 0===a?void 0:a.numberOfRecords})),Y.jsxs(n.Stack,{direction:{xs:"column",md:"row"},spacing:2,children:[g&&q&&Y.jsx(g,{record:V.data}),!f&&L&&W.edit.isAccessible&&uC(k,lC.EDIT)&&X&&!(null===(s=X.hiddenActionKeys)||void 0===s?void 0:s.includes("edit"))&&Y.jsx(nz,{text:W.edit.value,to:"".concat(P[d].edit(u)).concat(j.search)})]})]}),children:v&&q&&Y.jsx(v,{record:V.data})}),Y.jsxs(n.Stack,{spacing:1,children:[b&&Y.jsx(gM,{schema:I}),q?m?Y.jsx(m,{record:V.data,path:d,userPath:P}):Y.jsx(iz,{record:null===(l=V.data)||void 0===l?void 0:l.record,path:d,userPath:P},u):Y.jsx(n.Grid,{container:!0,alignItems:"center",children:Y.jsx(Wg,{sx:{height:50}})})]})]})}):Y.jsx(tO,{})}function sz(e){var t=e.name,r=e.checked,o=e.disabled,i=e.fieldKey,a=e.label,s=e.handleChange;return Y.jsx(n.FormControlLabel,{control:Y.jsx(n.Switch,{checked:r,onChange:function(e){s(e,i)},name:t,disabled:o}),label:a})}function lz(e){var t=e.getValues,r=e.checked,o=e.size,i=e.handleChange;function a(e,n,a){return Y.jsx(sz,{handleChange:i,getValues:t,name:e,size:o,label:n,disabled:!1,checked:r[a],fieldKey:a})}return Y.jsxs(n.Grid,{item:!0,xs:12,children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled",mb:0},children:"Actions"}),a("actions.show","Show","show"),a("actions.edit","Edit","edit"),a("actions.new","Create","new"),a("actions.delete","Delete","delete"),a("actions.bulkDelete","Bulk delete","bulkDelete")]})}function cz(t){var o=this,i=t.isEdit,a=t.record,s=t.path,u=t.apiRoute,d=t.resources,p=t.afterEditSnackText,f=r.useNavigate(),m=Bg(),h=m.setSuccessAlert,g=m.setErrorAlert,v=Eg().getResources,A=kg().paths,y=e.useState(!1),b=y[0],x=y[1],w=r.useParams().id,j=void 0===w?"":w,C=e.useState(a?a.actions:{}),O=C[0],M=C[1],z=Ng().textFieldSize,D=d[s].properties.model,T=d[s].formProperties,P=d[cC.lowerCaseFirstLetter(a.modelName)],N=P.properties.model,E=[];function B(e){E.push(e)}!function e(t,n){for(var r in t){var o=t[r];o.type!==Uh.NESTEDSCHEMA?B(n?"".concat(n,".").concat(r):r):e(o.schema,n?"".concat(n,".").concat(r):r)}}(N);var k=Hg.isEnglish(),I=k?"Create ":" اضافة ",S=k?"Save changes":"تعديل ",W={},H={};T.map((function(e){"_id"!==e&&"__v"!==e&&(W[e]=function(e,t){var n;switch(H[t]=void 0,e.type){case Uh.STRING:H[t]=a?a[t]:"",n=L.string();break;case Uh.NUMBER:H[t]=a?a[t]:void 0,n=L.number();break;case Uh.ENUM:H[t]=a?a[t]:D[t]&&D[t].defaultValue?D[t].defaultValue:void 0,n=L.string();break;case Uh.ARRAY:n=L.array(),H[t]=a&&a[t]?a[t]:void 0;break;case Uh.NESTEDSCHEMA:H[t]=a&&a[t]?a[t]:void 0,n=L.mixed()}return n}(D[e],e))}));var R=L.object().shape(W),F=e.useMemo((function(){return H}),[]),V=c.useForm({resolver:Da(R),defaultValues:F}),Q=V.reset,X=V.control,G=V.handleSubmit,K=V.getValues,J=V.setValue,_={},$={},ee=function(e,t){J(e.target.name,e.target.checked);var n=Z({},O);n[t]=e.target.checked,M(n)};function te(e){$[e]={},$[e][e]={type:D[e]?D[e].arrayType:"",enumValues:D[e]?D[e].enumValues:[]}}function ne(t,r,o){var s={name:o,key:o,size:z,label:r[t].value,disabled:i&&!1===r[t].isEditable};if("title"===t||"defaultOrderBy"===t)return Y.jsx(NC,Z({},s,{values:E}));if("actions"===t)return Y.jsx(lz,{handleChange:ee,getValues:K,size:z,checked:O});if(r[t])switch(r[t].type){case Uh.OBJECTID:case Uh.NUMBER:case Uh.STRING:if("listProperties"===t||"showProperties"===t||"filterProperties"===t||"quickFilterProperties"===t){var l=[];return l=a[t]&&0!==a[t].length?E.filter((function(e){return!K(t).includes(e)||e===K(o)})):E,e.createElement(NC,Z({},s,{key:o,values:l}))}return Y.jsx(dp,Z({},s));case Uh.ENUM:return Y.jsx(NC,Z({},s,{values:r[t].enumValues}));case Uh.ARRAY:return function(e){var t=c.useFieldArray({control:X,name:e}),n=t.fields,r=t.append,o=t.remove,i=t.move;_[e]={fields:n,append:r,remove:o,move:i}}(t),te(t),Y.jsxs(n.Grid,{item:!0,xs:12,children:[Y.jsx(n.Typography,{paragraph:!0,variant:"overline",sx:{color:"text.disabled"},children:r[t].value},t),Y.jsx(jj,{handleRemove:function(e){return function(e,t){_[e].remove(t)}(t,e)},draggable:!0,handleDrop:function(e){return function(e,t){t.destination&&_[e].move(t.source.index,t.destination.index)}(t,e)},list:_[t].fields,itemComponent:function(e){return Y.jsxs(n.Stack,{direction:{xs:"column",md:"row"},spacing:2,sx:{width:1},children:[Y.jsx(n.Grid,{item:!0,xs:12,children:ne(t,$[t],"".concat(t,"[").concat(e,"]"))}),Y.jsx(n.Divider,{})]})},handleAdd:function(){return function(e){_[e].append()}(t)},addButtonText:k?"Add item":"إضافة"})]},t)}}return Y.jsx(Y.Fragment,{children:Y.jsx(rp,{methods:V,onSubmit:G((function(e){return U(o,void 0,void 0,(function(){var t,n,r,o,i,a;return q(this,(function(l){switch(l.label){case 0:x(!0),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,ug.patch(u+"/"+j,e)];case 2:return t=l.sent(),x(!1),201!==t.status&&200!==t.status||!t.data.data.record.document||(Q(),n=d[s].properties.title,r=t.data.data.record.document[n],o=gA.getRecordName(r,n,P),v(),i=p?p(o):"".concat(o," was updated successfully"),h(i),f(A[s].list,{replace:!0})),[3,4];case 3:return a=l.sent(),x(!1),Q(e),g("".concat(JSON.parse(a).meta.message)),[3,4];case 4:return[2]}}))}))})),children:Y.jsx(n.Card,{sx:{p:3},children:Y.jsxs(n.Grid,{container:!0,spacing:2,justifyContent:"end",children:[T&&T.map((function(e,t){return Y.jsx(n.Grid,{item:!0,xs:12,children:ne(e,D,e)},e+t)})),Y.jsx(n.Grid,{item:!0,alignSelf:"end",sx:{mt:3},children:Y.jsx(l.LoadingButton,{type:"submit",variant:"contained",loading:b,children:i?S:I})})]},"grid1")})},"form")})}function uz(e){var t=e.direction,n=e.sxProps,r=e.onClick,o=e.color,i=function(e){switch(e){case rz.LEFT:return"material-symbols:arrow-back-ios-new";case rz.RIGHT:return"eva:arrow-ios-forward-fill";case rz.DOWN:return"eva:arrow-ios-downward-fill";case rz.UP:return"eva:arrow-ios-upward-fill"}}(t);return Y.jsx(jo,{icon:i,onClick:r,sx:Z({width:16,height:16,color:null!=o?o:"white"},n)})}function dz(e){var t=e.onClickOpen,r=e.modelName,o=e.checked,i=rz.RIGHT;return Y.jsx(n.IconButton,{onClick:function(){return t(r)},children:Y.jsx(uz,{direction:o&&o[r].opened?rz.DOWN:i,color:"black"})})}function pz(t){var r=t.label,o=t.checked,i=t.onChange,a=e.memo((function(e){var t=e.checked,r=e.onChange;return Y.jsx(n.Checkbox,{checked:t,onChange:function(e,t){return r(e,t)}})}));return Y.jsx(n.FormControlLabel,{label:r,control:Y.jsx(a,{checked:o,onChange:i})})}function fz(){return Y.jsx(n.FormControlLabel,{label:Y.jsx(n.Skeleton,{variant:"text",width:160,height:20}),control:Y.jsx(n.Checkbox,{disabled:!0})})}function mz(){return Y.jsx(n.IconButton,{children:Y.jsx(uz,{direction:rz.DOWN,color:"black"})})}function hz(){return Y.jsx(Y.Fragment,{children:Array.from(Array(2).keys()).map((function(e){return Y.jsxs("div",{children:[Y.jsxs(n.Stack,{direction:"row",alignItems:"center",spacing:"1px",children:[Y.jsx(mz,{}),Y.jsx(fz,{})]}),Y.jsx(n.Box,{sx:{display:"flex",flexDirection:"column",ml:8},children:Array.from(Array(4).keys()).map((function(e){return Y.jsx(fz,{},e)}))})]},e)}))})}function gz(e){var t=e.modelPermissions,r=e.checked,o=e.fetchLoading,i=e.onCheckAll,a=e.handleChange,s=e.onClickOpen;return Y.jsxs(n.Stack,{children:[Y.jsxs(n.Stack,{direction:"row",justifyContent:"space-between",children:[Y.jsx(n.Typography,{sx:{py:1},fontWeight:700,fontSize:{xs:"14px",md:"18px"},children:"Permissions"}),Y.jsx(n.Button,{onClick:i,children:"Check all"})]}),o?Y.jsx(hz,{}):t.map((function(e){var t=e.modelName;return Y.jsxs("div",{children:[Y.jsxs(n.Stack,{direction:"row",alignItems:"center",spacing:"1px",children:[Y.jsx(dz,{modelName:t,checked:r,onClickOpen:s}),Y.jsx(pz,{label:e.label,checked:r&&r[t].all,onChange:function(e,n){return a(t,"all",n)}})]}),r&&r[t].opened&&Y.jsx(n.Box,{sx:{display:"flex",flexDirection:"column",ml:8},children:e.permissions.map((function(e){var n=e.id;return Y.jsx(pz,{label:e.label,checked:r&&r[t][n],onChange:function(e,r){return a(t,n,r)}},n)}))})]},t)}))]})}function vz(e){var t=Ng().textFieldSize;return Y.jsxs(n.Stack,{spacing:3,children:[Y.jsx(dp,{name:"name",label:"Name",size:t}),Y.jsx(gz,Z({},e))]})}function Az(t){var i=this,a=t.modelPermissions,s=t.fetchLoading,u=t.isEdit,d=t.permissionGroup,p=e.useState(void 0),f=p[0],m=p[1],h=r.useParams().id,g=void 0===h?"":h,v=e.useContext(fg).dashbaordUrlPrefix,A=kg().paths,y=L.object().shape({name:o.string().required("Please add permission group name").typeError("Please add permission group name")}),b=e.useState(!1),x=b[0],w=b[1],j=r.useNavigate(),C=e.useMemo((function(){return{name:null==d?void 0:d.name}}),[]),O=c.useForm({resolver:Da(y),defaultValues:C}),M=O.getValues,z=O.handleSubmit;e.useEffect((function(){a.length>0&&m(function(e){var t={};return e.forEach((function(e,n){t[e.modelName]={all:!1,opened:0===n};var r=!0;e.permissions.forEach((function(n){t[e.modelName][n.id]=n.checked,n.checked?t[e.modelName].opened=!0:r=!1})),r&&(t[e.modelName].all=!0)})),t}(a))}),[a]);return Y.jsxs(rp,{methods:O,onSubmit:z((function(e){return U(i,void 0,void 0,(function(){return q(this,(function(t){switch(t.label){case 0:return w(!0),u?[4,ug.patch("".concat(v,"/permissionGroups/").concat(g),Z(Z({},e),{checked:f}))]:[3,2];case 1:return t.sent(),[3,4];case 2:return[4,ug.post("".concat(v,"/permissionGroups"),Z(Z({},e),{checked:f}))];case 3:t.sent(),t.label=4;case 4:return w(!1),j(A.permissionGroup.list),[2]}}))}))})),children:[Y.jsx(vz,{checked:f,handleChange:function(e,t,n){var r,o,i,s=Z({},f);if(s[e][t]=n,"all"===t)(i=null===(r=a.find((function(t){return t.modelName===e})))||void 0===r?void 0:r.permissions)&&i.forEach((function(t){s[e][t.id]=n}));else if(i=null===(o=a.find((function(t){return t.modelName===e})))||void 0===o?void 0:o.permissions){var l=i.every((function(t){return s[e][t.id]}));s[e].all=l}m(s)},onClickOpen:function(e){var t=Z({},f);t[e].opened=!t[e].opened,m(t)},modelPermissions:a,getValues:M,fetchLoading:s,onCheckAll:function(){var e=Z({},f);for(var t in e)for(var n in e[t])e[t][n]=!0;m(e)}}),Y.jsx(n.Stack,{direction:"row",flexDirection:"row-reverse",children:Y.jsx(l.LoadingButton,{type:"submit",variant:"contained",size:"large",loading:x,children:"Save"})})]})}function yz(t){var n=e.useState(!!t),r=n[0],o=n[1];return{value:r,onTrue:e.useCallback((function(){o(!0)}),[]),onFalse:e.useCallback((function(){o(!1)}),[]),onToggle:e.useCallback((function(){o((function(e){return!e}))}),[]),setValue:o}}!function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN"}(rz||(rz={}));var bz={H_MOBILE:64,H_DESKTOP:80,H_DESKTOP_OFFSET:64},xz={W_VERTICAL:280,W_MINI:88},wz=8;function jz(t){var n=t.children,r=t.sx,o=G(t,["children","sx"]),i=e.useContext(Og),a=Za("up","lg"),s="horizontal"===i.themeLayout,l="mini"===i.themeLayout;return s?Y.jsx(wo,{component:"main",sx:Z({minHeight:1,display:"flex",flexDirection:"column",pt:"".concat(bz.H_MOBILE+24,"px"),pb:10},a&&{pt:"".concat(2*bz.H_MOBILE+40,"px"),pb:15}),children:n}):Y.jsx(wo,Z({component:"main",sx:Z(Z({flexGrow:1,py:"".concat(bz.H_MOBILE+wz,"px")},a&&Z({px:2,py:"".concat(bz.H_DESKTOP+wz,"px"),width:"calc(100% - ".concat(xz.W_VERTICAL,"px)")},l&&{width:"calc(100% - ".concat(xz.W_MINI,"px)")})),r)},o,{children:n}))}function Cz(e){return It("MuiAppBar",e)}var Oz=St("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Mz=["className","color","enableColorOnDark","position"],zz=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,Dz=go(Ki,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ke(n.position)}`],t[`color${Ke(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return re({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&re({},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&re({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&re({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:zz(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:zz(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:zz(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:zz(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),Tz=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiAppBar"}),{className:r,color:o="primary",enableColorOnDark:i=!1,position:a="fixed"}=n,s=Rt(n,Mz),l=re({},n,{color:o,position:a,enableColorOnDark:i}),c=(e=>{const{color:t,position:n,classes:r}=e;return Et({root:["root",`color${Ke(t)}`,`position${Ke(n)}`]},Cz,r)})(l);return Y.jsx(Dz,re({square:!0,component:"header",ownerState:l,elevation:4,className:$n(c.root,r,"fixed"===a&&"mui-fixed"),ref:t},s))}));"production"!==process.env.NODE_ENV&&(Tz.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,color:Ee.oneOfType([Ee.oneOf(["default","inherit","primary","secondary","transparent"]),Ee.string]),enableColorOnDark:Ee.bool,position:Ee.oneOf(["absolute","fixed","relative","static","sticky"]),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var Pz=Tz;function Nz(e){return It("MuiToolbar",e)}St("MuiToolbar",["root","gutters","regular","dense"]);const Ez=["className","component","disableGutters","variant"],Bz=go("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>re({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),kz=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:i=!1,variant:a="regular"}=n,s=Rt(n,Ez),l=re({},n,{component:o,disableGutters:i,variant:a}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return Et({root:["root",!n&&"gutters",r]},Nz,t)})(l);return Y.jsx(Bz,re({as:o,className:$n(c.root,r),ref:t,ownerState:l},s))}));"production"!==process.env.NODE_ENV&&(kz.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,disableGutters:Ee.bool,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),variant:Ee.oneOfType([Ee.oneOf(["dense","regular"]),Ee.string])});var Lz=kz;var Iz=e.forwardRef((function(e,t){var n=e.src,r=e.sx,o=G(e,["src","sx"]);return Y.jsx(wo,Z({component:"span",className:"svg-color",ref:t,sx:Z({width:24,height:24,display:"inline-block",bgcolor:"currentColor",mask:"url(".concat(n,") no-repeat center / contain"),WebkitMask:"url(".concat(n,") no-repeat center / contain")},r)},o))})),Sz={exports:{}};Sz.exports=(()=>{return e={772:(e,t,n)=>{const r=n(826).remove,o=/[.*+?^${}()|[\]\\]/g,i=/[a-z0-9_]/i,a=/\s+/;e.exports=function(e,t,n){var s,l;l={insideWords:!1,findAllOccurrences:!1,requireMatchAll:!1},s=(s=n)||{},Object.keys(s).forEach((e=>{l[e]=!!s[e]})),n=l;const c=Array.from(e).map((e=>r(e)));let u=c.join("");return(t=r(t)).trim().split(a).filter((e=>e.length>0)).reduce(((e,t)=>{const r=t.length,a=!n.insideWords&&i.test(t[0])?"\\b":"",s=new RegExp(a+t.replace(o,"\\$&"),"i");let l,d;if(l=s.exec(u),n.requireMatchAll&&null===l)return u="",[];for(;l;){d=l.index;const t=r-c.slice(d,d+r).join("").length,o=d-c.slice(0,d).join("").length,i=[d+o,d+r+o+t];if(i[0]!==i[1]&&e.push(i),u=u.slice(0,d)+new Array(r+1).join(" ")+u.slice(d+r),!n.findAllOccurrences)break;l=s.exec(u)}return e}),[]).sort(((e,t)=>e[0]-t[0]))}},826:e=>{var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"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","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,""),i=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=i,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=i}},t={},function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(772);var e,t})();var Wz=W(Sz.exports),Hz="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var Rz=go(wo)((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode,o="filled"===n.variant,i="outlined"===n.variant,a="soft"===n.variant,s=Z({},"default"===n.color&&Z(Z(Z({},o&&{color:r?t.palette.common.white:t.palette.grey[800],backgroundColor:t.palette.text.primary}),i&&{backgroundColor:"transparent",color:t.palette.text.primary,border:"2px solid ".concat(t.palette.text.primary)}),a&&{color:t.palette.text.secondary,backgroundColor:yr(t.palette.grey[500],.16)})),l=Z({},"default"!==n.color&&Z(Z(Z({},o&&{color:t.palette[n.color].contrastText,backgroundColor:t.palette[n.color].main}),i&&{backgroundColor:"transparent",color:t.palette[n.color].main,border:"2px solid ".concat(t.palette[n.color].main)}),a&&{color:t.palette[n.color][r?"dark":"light"],backgroundColor:yr(t.palette[n.color].main,.16)}));return Z(Z({height:24,minWidth:24,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"capitalize",padding:t.spacing(0,.75),fontSize:t.typography.pxToRem(12),fontWeight:t.typography.fontWeightBold,transition:t.transitions.create("all",{duration:t.transitions.duration.shorter})},s),l)})),Fz=e.forwardRef((function(e,t){var n=e.children,r=e.color,o=void 0===r?"default":r,i=e.variant,a=void 0===i?"soft":i,s=e.startIcon,l=e.endIcon,c=e.sx,u=G(e,["children","color","variant","startIcon","endIcon","sx"]),d=po(),p={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return Y.jsxs(Rz,Z({ref:t,component:"span",ownerState:{color:o,variant:a},sx:Z(Z(Z({},s&&{pl:.75}),l&&{pr:.75}),c),theme:d},u,{children:[s&&Y.jsxs(wo,{sx:Z({mr:.75},p),children:[" ",s," "]}),n,l&&Y.jsxs(wo,{sx:Z({ml:.75},p),children:[" ",l," "]})]}))}));function Vz(){var t=r.useNavigate();return e.useMemo((function(){return{back:function(){return t(-1)},forward:function(){return t(1)},reload:function(){return window.location.reload()},push:function(e){return t(e)},replace:function(e){return t(e,{replace:!0})}}}),[t])}function Qz(e){var t=e.query,n=e.sx,r=G(e,["query","sx"]);return t?Y.jsxs(Ki,Z({sx:Z({bgcolor:"unset",textAlign:"center"},n)},r,{children:[Y.jsx(Tu,{variant:"h6",gutterBottom:!0,children:"Not Found"}),Y.jsxs(Tu,{variant:"body2",children:["No results found for ",Y.jsxs("strong",{children:['"',t,'"']}),".",Y.jsx("br",{})," Try checking for typos or using complete words."]})]})):Y.jsx(Tu,{variant:"body2",sx:n,children:"Please enter keywords"})}function Xz(e){var t=e.title,n=e.path,r=e.groupLabel,o=e.onClickItem;return Y.jsxs(hx,{onClick:o,sx:{borderWidth:1,borderStyle:"dashed",borderColor:"transparent",borderBottomColor:function(e){return e.palette.divider},"&:hover":{borderRadius:1,borderColor:function(e){return e.palette.primary.main},backgroundColor:function(e){return yr(e.palette.primary.main,e.palette.action.hoverOpacity)}}},children:[Y.jsx(Lu,{primaryTypographyProps:{typography:"subtitle2",sx:{textTransform:"capitalize"}},secondaryTypographyProps:{typography:"caption"},primary:t.map((function(e,t){return Y.jsx(wo,{component:"span",sx:{color:e.highlight?"primary.main":"text.primary"},children:e.text},t)})),secondary:n.map((function(e,t){return Y.jsx(wo,{component:"span",sx:{color:e.highlight?"primary.main":"text.secondary"},children:e.text},t)}))}),r&&Y.jsx(Fz,{color:"info",children:r})]})}function Yz(e,t){void 0===t&&(t="children");var n=[],r=null==e?void 0:e.map((function(e){return e[t]&&e[t].length&&(n=K(K([],n,!0),e[t],!0)),e}));return null==r?void 0:r.concat(n.length?Yz(n,t):n)}function Zz(e){var t=e.data.map((function(e){return Gz(e.items,e.subheader)})).flat(),n=Yz(t).map((function(e){var n=function(e,t){var n,r=e.map((function(e){return{path:[e.title],currItem:e}})),o=function(){var e=r.pop(),o=e.path,i=e.currItem;if(i.path===t)return{value:o};(null===(n=i.children)||void 0===n?void 0:n.length)&&(r=r.concat(i.children.map((function(e){return{path:o.concat(e.title),currItem:e}}))))};for(;r.length;){var i=o();if("object"==typeof i)return i.value}return null}(t,e.path);return{group:n&&n.length>1?n[0]:e.subheader,title:e.title,path:e.path}}));return n}function Gz(e,t){return null==e?void 0:e.map((function(e){return Z(Z({subheader:t},e),e.children&&{children:Gz(e.children,t)})}))}var Uz=e.memo((function(){var t,n,r,o,i,a,s=po(),l=Vz(),c=yz(),u=Za("up","md"),d=e.useState(""),p=d[0],f=d[1],m=Cg(),h=e.useCallback((function(){c.onFalse(),f("")}),[c]);n="keydown",r=function(e){"k"===e.key&&e.metaKey&&(c.onToggle(),f(""))},a=e.useRef(r),Hz((function(){a.current=r}),[r]),e.useEffect((function(){var e=(null==o?void 0:o.current)||window;if(e&&e.addEventListener){var t=function(e){return a.current(e)};return e.addEventListener(n,t,i),function(){e.removeEventListener(n,t)}}}),[n,o,i]);var g,v=e.useCallback((function(e){e.includes("http")?window.open(e):l.push(e),h()}),[h,l]),A=e.useCallback((function(e){f(e.target.value)}),[]),y=function(e){var t=e.inputData,n=e.query;return n&&(t=t.filter((function(e){var t,r;return void 0!==e.path&&void 0!==e.title&&-1!==(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().indexOf(n.toLowerCase()))||-1!==(null===(r=e.path)||void 0===r?void 0:r.toLowerCase().indexOf(n.toLowerCase()))}))),t}({inputData:Zz({data:m}),query:p}),b=p&&!y.length,x=Y.jsxs(ms,{direction:"row",alignItems:"center",children:[Y.jsx(Zc,{onClick:c.onTrue,children:Y.jsx(jo,{icon:"eva:search-fill"})}),u&&Y.jsx(Fz,{sx:{px:.75,fontSize:12,color:"text.secondary"},children:"⌘K"})]});return Y.jsxs(Y.Fragment,{children:[x,Y.jsxs(cj,{fullWidth:!0,maxWidth:"sm",open:c.value,onClose:h,transitionDuration:{enter:s.transitions.duration.shortest,exit:0},PaperProps:{sx:{mt:15,overflow:"unset"}},sx:(t={},t["& .".concat(ej.container)]={alignItems:"flex-start"},t),children:[Y.jsx(wo,{sx:{p:3,borderBottom:"solid 1px ".concat(s.palette.divider)},children:Y.jsx(hd,{fullWidth:!0,autoFocus:!0,placeholder:"Search...",value:p,onChange:A,startAdornment:Y.jsx(Rb,{position:"start",children:Y.jsx(jo,{icon:"eva:search-fill",width:24,sx:{color:"text.disabled"}})}),endAdornment:Y.jsx(Fz,{sx:{letterSpacing:1,color:"text.secondary"},children:"esc"}),inputProps:{sx:{typography:"h6"}}})}),Y.jsx(og,{sx:{p:3,pt:2,height:400},children:b?Y.jsx(Qz,{query:p,sx:{py:10}}):(g=y.reduce((function(e,t){return e[t.group]=e[t.group]||[],e[t.group].push(t),e}),{}),Object.keys(g).sort((function(e,t){return-t.localeCompare(e)})).filter((function(e){return""!==e})).map((function(e,t){return Y.jsx(Nf,{disablePadding:!0,children:g[e].map((function(t){var n=t.title,r=t.path,o=nh(n,Wz(n,p)),i=nh(r,Wz(r,p));return Y.jsx(Xz,{path:i,title:o,groupLabel:p&&e,onClickItem:function(){return v(r)}},"".concat(n).concat(r))}))},e||t)})))})]})]})})),qz=Si(Y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Kz(e){return It("MuiAvatar",e)}St("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Jz=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],_z=go("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({theme:e,ownerState:t})=>re({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&re({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]})))),$z=go("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),eD=go(qz,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const tD=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiAvatar"}),{alt:r,children:o,className:i,component:a="div",imgProps:s,sizes:l,src:c,srcSet:u,variant:d="circular"}=n,p=Rt(n,Jz);let f=null;const m=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=k.useState(!1);return k.useEffect((()=>{if(!n&&!r)return;i(!1);let o=!0;const a=new Image;return a.onload=()=>{o&&i("loaded")},a.onerror=()=>{o&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{o=!1}}),[e,t,n,r]),o}(re({},s,{src:c,srcSet:u})),h=c||u,g=h&&"error"!==m,v=re({},n,{colorDefault:!g,component:a,variant:d}),A=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return Et({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Kz,t)})(v);return f=g?Y.jsx($z,re({alt:r,src:c,srcSet:u,sizes:l,ownerState:v,className:A.img},s)):null!=o?o:h&&r?r[0]:Y.jsx(eD,{ownerState:v,className:A.fallback}),Y.jsx(_z,re({as:a,ownerState:v,className:$n(A.root,i),ref:t},p,{children:f}))}));"production"!==process.env.NODE_ENV&&(tD.propTypes={alt:Ee.string,children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,imgProps:Ee.object,sizes:Ee.string,src:Ee.string,srcSet:Ee.string,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),variant:Ee.oneOfType([Ee.oneOf(["circular","rounded","square"]),Ee.string])});var nD=tD,rD=[];function oD(){var t,n,r,o,i=this,a=Vz(),s={photo:"",firstname:"Mohamed",lastname:"Ismail",email:"admin@test.com"},l=(t=e.useState(null),n=t[0],r=t[1],o=e.useCallback((function(e){r(e.currentTarget)}),[]),{open:n,onOpen:o,onClose:e.useCallback((function(){r(null)}),[]),setOpen:r});return Y.jsxs(Y.Fragment,{children:[Y.jsx(Zc,{component:p.m.button,whileTap:"tap",whileHover:"hover",variants:Ra(1.05),onClick:l.onOpen,sx:Z({width:40,height:40,background:function(e){return yr(e.palette.grey[500],.08)}},l.open&&{background:function(e){return"linear-gradient(135deg, ".concat(e.palette.primary.light," 0%, ").concat(e.palette.primary.main," 100%)")}}),children:Y.jsx(nD,{src:null==s?void 0:s.photo,alt:null==s?void 0:s.firstname,sx:{width:36,height:36,border:function(e){return"solid 2px ".concat(e.palette.background.default)}}})}),Y.jsxs(oO,{open:l.open,onClose:l.onClose,sx:{width:200,p:0},children:[Y.jsxs(wo,{sx:{p:2,pb:1.5},children:[Y.jsx(Tu,{variant:"subtitle2",noWrap:!0,children:(null==s?void 0:s.firstname)+" "+s.lastname}),Y.jsx(Tu,{variant:"body2",sx:{color:"text.secondary"},noWrap:!0,children:null==s?void 0:s.email})]}),Y.jsx(ms,{sx:{p:1},children:rD.map((function(e){return Y.jsx(Fu,{onClick:function(){return function(e){l.onClose(),a.push(e)}(e.linkTo)},children:e.label},e.label)}))}),Y.jsx(ha,{sx:{borderStyle:"dashed"}}),Y.jsx(Fu,{onClick:function(){return U(i,void 0,void 0,(function(){return q(this,(function(e){try{l.onClose(),a.replace("/")}catch(e){console.error(e)}return[2]}))}))},sx:{m:1,fontWeight:"fontWeightBold",color:"error.main"},children:"Logout"})]})]})}function iD(t){var n=t.onOpenNav,r=t.Logo,o=po(),i=e.useContext(Og),a="horizontal"===i.themeLayout,s="mini"===i.themeLayout,l=Za("up","lg"),c=function(t,n){void 0===t&&(t=0);var r=p.useScroll(n).scrollY,o=e.useState(!1),i=o[0],a=o[1],s=e.useCallback((function(){r.on("change",(function(e){a(e>t)}))}),[r,t]);return e.useEffect((function(){s()}),[s]),e.useMemo((function(){return i}),[i])}(bz.H_DESKTOP),u=c&&!a,d=Y.jsxs(Y.Fragment,{children:[l&&a&&r&&Y.jsx(r,{sx:{mr:2.5}}),!l&&Y.jsx(Zc,{onClick:n,children:Y.jsx(Iz,{src:"/assets/icons/navbar/ic_menu_item.svg"})}),Y.jsx(Uz,{}),Y.jsx(ms,{flexGrow:1,direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:{xs:.5,sm:1},children:Y.jsx(oD,{})})]});return Y.jsx(Pz,{sx:Z(Z(Z({height:bz.H_MOBILE,zIndex:o.zIndex.appBar+1},Yd({color:o.palette.background.default})),{transition:o.transitions.create(["height"],{duration:o.transitions.duration.shorter})}),l&&Z(Z(Z({width:"calc(100% - ".concat(xz.W_VERTICAL+1,"px)"),height:bz.H_DESKTOP},u&&{height:bz.H_DESKTOP_OFFSET}),a&&{width:1,bgcolor:"background.default",height:bz.H_DESKTOP_OFFSET,borderBottom:"dashed 1px ".concat(o.palette.divider)}),s&&{width:"calc(100% - ".concat(xz.W_MINI+1,"px)")})),children:Y.jsx(Lz,{sx:{height:1,px:{lg:5}},children:d})})}var aD=function(e){return{itemGap:(null==e?void 0:e.itemGap)||4,iconSize:(null==e?void 0:e.iconSize)||24,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||44,itemSubHeight:(null==e?void 0:e.itemSubHeight)||36,itemPadding:(null==e?void 0:e.itemPadding)||"4px 8px 4px 12px",itemRadius:(null==e?void 0:e.itemRadius)||8,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}},sD=function(e){return{itemGap:(null==e?void 0:e.itemGap)||4,iconSize:(null==e?void 0:e.iconSize)||22,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||56,itemSubHeight:(null==e?void 0:e.itemSubHeight)||34,itemPadding:(null==e?void 0:e.itemPadding)||"6px 0 0 0",itemRadius:(null==e?void 0:e.itemRadius)||6,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}},lD=function(e){return{itemGap:(null==e?void 0:e.itemGap)||6,iconSize:(null==e?void 0:e.iconSize)||22,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||32,itemSubHeight:(null==e?void 0:e.itemSubHeight)||34,itemPadding:(null==e?void 0:e.itemPadding)||"0 6px 0 6px",itemRadius:(null==e?void 0:e.itemRadius)||6,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1}};function cD(e){return It("MuiLink",e)}var uD=St("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const dD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var pD=({theme:e,ownerState:t})=>{const n=(e=>dD[e]||e)(t.color),r=_t(e,`palette.${n}`,!1)||t.color,o=_t(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:yr(r,.4)};const fD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],mD=go(Tu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Ke(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>re({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&re({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:pD({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${uD.focusVisible}`]:{outline:"auto"}}))),hD=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:c="always",variant:u="inherit",sx:d}=n,p=Rt(n,fD),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=bt(),[v,A]=k.useState(!1),y=dt(t,g),b=re({},n,{color:o,component:i,focusVisible:v,underline:c,variant:u}),x=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Et({root:["root",`underline${Ke(o)}`,"button"===n&&"button",r&&"focusVisible"]},cD,t)})(b);return Y.jsx(mD,re({color:o,className:$n(x.root,r),classes:l,component:i,onBlur:e=>{m(e),!1===f.current&&A(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&A(!0),s&&s(e)},ref:y,ownerState:b,variant:u,sx:[...Object.keys(dD).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));"production"!==process.env.NODE_ENV&&(hD.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,color:Ee.any,component:Ie,onBlur:Ee.func,onFocus:Ee.func,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),TypographyClasses:Ee.object,underline:Ee.oneOf(["always","hover","none"]),variant:Ee.oneOfType([Ee.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),Ee.string])});var gD=hD,vD=e.forwardRef((function(e,t){var n=e.href,o=G(e,["href"]);return Y.jsx(r.Link,Z({ref:t,to:n},o))})),AD=go(hx,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.open,r=e.depth,o=e.config,i=e.theme,a=1!==r,s={root:{color:"light"===i.palette.mode?i.palette.primary.main:i.palette.primary.light,backgroundColor:yr(i.palette.primary.main,.08),"&:hover":{backgroundColor:yr(i.palette.primary.main,.16)}},sub:{color:i.palette.text.primary,backgroundColor:i.palette.action.selected,"&:hover":{backgroundColor:i.palette.action.hover}}};return Z(Z(Z(Z({flexDirection:"column",justifyContent:"center",borderRadius:o.itemRadius,minHeight:o.itemRootHeight,color:i.palette.text.secondary,margin:"0 ".concat(o.itemGap,"px ").concat(o.itemGap,"px ").concat(o.itemGap,"px")},o.hiddenLabel&&!a&&{padding:o.itemPadding}),t&&Z({},s.root)),a&&Z({margin:0,flexDirection:"row",padding:i.spacing(0,1),minHeight:o.itemSubHeight},t&&Z({},s.sub))),n&&!t&&{color:i.palette.text.primary,backgroundColor:i.palette.action.hover})})),yD=go(xu)((function(e){var t=e.size;return{width:t,height:t,marginRight:0}})),bD=e.forwardRef((function(e,t){var n=e.item,r=e.depth,o=e.open,i=e.active,a=e.externalLink,s=e.config,l=G(e,["item","depth","open","active","externalLink","config"]),c=po(),u=n.title,d=n.path,p=n.icon,f=n.children,m=n.disabled,h=n.caption,g=n.roles,v=1!==r,A=Y.jsxs(AD,Z({disableGutters:!0,ref:t,open:o,depth:r,active:i,disabled:m,config:s},l,{children:[p&&Y.jsx(yD,{size:s.iconSize,children:p}),!(s.hiddenLabel&&!v)&&Y.jsx(Lu,{sx:Z({width:1,flex:"unset"},!v&&{px:.5,mt:.5}),primary:u,primaryTypographyProps:Z({noWrap:!0,fontSize:10,lineHeight:"16px",textAlign:"center",textTransform:"capitalize",fontWeight:i?"fontWeightBold":"fontWeightSemiBold"},v&&{textAlign:"unset",fontSize:c.typography.body2.fontSize,lineHeight:c.typography.body2.lineHeight,fontWeight:i?"fontWeightSemiBold":"fontWeightMedium"})}),h&&Y.jsx(yc,{title:h,arrow:!0,placement:"right",children:Y.jsx(jo,{width:16,icon:"eva:info-outline",sx:Z({color:"text.disabled"},!v&&{top:11,left:6,position:"absolute"})})}),!!f&&Y.jsx(jo,{width:16,icon:"eva:arrow-ios-forward-fill",sx:{top:11,right:6,position:"absolute"}})]}));return g&&!g.includes("".concat(s.currentRole))?null:a?Y.jsx(gD,{href:d,target:"_blank",rel:"noopener",underline:"none",sx:Z({width:1},m&&{cursor:"default"}),children:A}):Y.jsx(gD,{component:vD,href:d,underline:"none",sx:Z({width:1},m&&{cursor:"default"}),children:A})}));function xD(e,t){void 0===t&&(t=!0);var n=r.useLocation().pathname,o=!!e&&!!r.matchPath({path:e,end:!0},n),i=!!e&&!!r.matchPath({path:e,end:!1},n);return t?i:o}function wD(t){var n,r,o=t.data,i=t.depth,a=t.hasChild,s=t.config,l=e.useRef(null),c=$C(),u=xD(o.path,a),d=null===(r=o.path)||void 0===r?void 0:r.includes("http"),p=e.useState(!1),f=p[0],m=p[1];e.useEffect((function(){f&&g()}),[c]),e.useEffect((function(){var e=Array.from(document.querySelectorAll(".".concat(Oz.root))),t=function(){document.body.style.overflow="",document.body.style.padding="",e.forEach((function(e){e.style.padding=""}))};t()}),[f]);var h=e.useCallback((function(){m(!0)}),[]),g=e.useCallback((function(){m(!1)}),[]);return Y.jsxs(Y.Fragment,{children:[Y.jsx(bD,{ref:l,item:o,depth:i,open:f,active:u,externalLink:d,onMouseEnter:h,onMouseLeave:g,config:s}),a&&Y.jsx(Jf,{open:f,anchorEl:l.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:h,onMouseLeave:g},sx:(n={pointerEvents:"none"},n["& .".concat(Rf.paper)]=Z({mt:.5,width:160},f&&{pointerEvents:"auto"}),n),children:Y.jsx(jD,{data:o.children,depth:i,config:s})})]})}function jD(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(ms,{spacing:.5,children:t.map((function(e){return Y.jsx(wD,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var CD=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(ms,Z({sx:r},o,{children:t.map((function(e,t){return Y.jsx(OD,{items:e.items,config:sD(n)},e.subheader||t)}))}))}));function OD(e){var t=e.items,n=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(wD,{data:e,depth:1,hasChild:!!e.children,config:n},e.title+e.path)}))})}function MD(t){var n=t.sx,r=G(t,["sx"]),o=po(),i=e.useContext(Og),a=i.themeLayout,s=i.setThemeLayout;return Za("up","lg")?Y.jsx(Zc,Z({size:"small",onClick:function(){s&&s("vertical"===a?"mini":"vertical")},sx:Z(Z(Z({p:.5,top:32,position:"fixed",left:xz.W_VERTICAL-12,zIndex:o.zIndex.appBar+1,border:"dashed 1px ".concat(o.palette.divider)},Yd({opacity:.48,color:o.palette.background.default})),{"&:hover":{bgcolor:"background.default"}}),n)},r,{children:Y.jsx(jo,{width:16,icon:"vertical"===a?"eva:arrow-ios-back-fill":"eva:arrow-ios-forward-fill"})})):null}function zD(e){var t=e.Logo,n=Cg();return Y.jsxs(wo,{component:"nav",sx:{flexShrink:{lg:0},width:{lg:xz.W_MINI}},children:[Y.jsx(MD,{sx:{top:22,left:xz.W_MINI-12}}),Y.jsxs(ms,{sx:Z({pb:2,height:1,position:"fixed",width:xz.W_MINI,borderRight:function(e){return"dashed 1px ".concat(e.palette.divider)}},Zd.x),children:[t&&Y.jsx(t,{sx:{mx:"auto",my:2}}),Y.jsx(CD,{data:n,config:{currentRole:"admin"}})]})]})}function DD(e){return It("MuiCollapse",e)}St("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const TD=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],PD=go("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>re({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&re({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),ND=go("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>re({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),ED=go("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>re({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),BD=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:i,collapsedSize:a="0px",component:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,orientation:g="vertical",style:v,timeout:A=ro.standard,TransitionComponent:y=li}=n,b=Rt(n,TD),x=re({},n,{orientation:g,collapsedSize:a}),w=(e=>{const{orientation:t,classes:n}=e;return Et({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},DD,n)})(x),j=po(),C=k.useRef(),O=k.useRef(null),M=k.useRef(),z="number"==typeof a?`${a}px`:a,D="horizontal"===g,T=D?"width":"height";k.useEffect((()=>()=>{clearTimeout(C.current)}),[]);const P=k.useRef(null),N=dt(t,P),E=e=>t=>{if(e){const n=P.current;void 0===t?e(n):e(n,t)}},B=()=>O.current?O.current[D?"clientWidth":"clientHeight"]:0,L=E(((e,t)=>{O.current&&D&&(O.current.style.position="absolute"),e.style[T]=z,u&&u(e,t)})),I=E(((e,t)=>{const n=B();O.current&&D&&(O.current.style.position="");const{duration:r,easing:o}=gi({style:v,timeout:A,easing:l},{mode:"enter"});if("auto"===A){const t=j.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,M.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[T]=`${n}px`,e.style.transitionTimingFunction=o,p&&p(e,t)})),S=E(((e,t)=>{e.style[T]="auto",d&&d(e,t)})),W=E((e=>{e.style[T]=`${B()}px`,f&&f(e)})),H=E(m),R=E((e=>{const t=B(),{duration:n,easing:r}=gi({style:v,timeout:A,easing:l},{mode:"exit"});if("auto"===A){const n=j.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,M.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[T]=z,e.style.transitionTimingFunction=r,h&&h(e)}));return Y.jsx(y,re({in:c,onEnter:L,onEntered:S,onEntering:I,onExit:W,onExited:H,onExiting:R,addEndListener:e=>{"auto"===A&&(C.current=setTimeout(e,M.current||0)),r&&r(P.current,e)},nodeRef:P,timeout:"auto"===A?null:A},b,{children:(e,t)=>Y.jsx(PD,re({as:s,className:$n(w.root,i,{entered:w.entered,exited:!c&&"0px"===z&&w.hidden}[e]),style:re({[D?"minWidth":"minHeight"]:z},v),ownerState:re({},x,{state:e}),ref:N},t,{children:Y.jsx(ND,{ownerState:re({},x,{state:e}),className:w.wrapper,ref:O,children:Y.jsx(ED,{ownerState:re({},x,{state:e}),className:w.wrapperInner,children:o})})}))}))}));"production"!==process.env.NODE_ENV&&(BD.propTypes={addEndListener:Ee.func,children:Ee.node,classes:Ee.object,className:Ee.string,collapsedSize:Ee.oneOfType([Ee.number,Ee.string]),component:Ie,easing:Ee.oneOfType([Ee.shape({enter:Ee.string,exit:Ee.string}),Ee.string]),in:Ee.bool,onEnter:Ee.func,onEntered:Ee.func,onEntering:Ee.func,onExit:Ee.func,onExited:Ee.func,onExiting:Ee.func,orientation:Ee.oneOf(["horizontal","vertical"]),style:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),timeout:Ee.oneOfType([Ee.oneOf(["auto"]),Ee.number,Ee.shape({appear:Ee.number,enter:Ee.number,exit:Ee.number})])}),BD.muiSupportAuto=!0;var kD=BD,LD=go(hx,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.depth,r=e.config,o=e.theme,i=1!==n,a=n>2,s={root:{color:"light"===o.palette.mode?o.palette.primary.main:o.palette.primary.light,backgroundColor:yr(o.palette.primary.main,.08),"&:hover":{backgroundColor:yr(o.palette.primary.main,.16)}},sub:{color:o.palette.text.primary,backgroundColor:"transparent","&:hover":{backgroundColor:o.palette.action.hover}}};return Z(Z(Z({padding:r.itemPadding,marginBottom:r.itemGap,borderRadius:r.itemRadius,minHeight:r.itemRootHeight,color:o.palette.text.secondary},t&&Z({},s.root)),i&&Z({minHeight:r.itemSubHeight},t&&Z({},s.sub))),a&&{paddingLeft:o.spacing(n)})})),ID=go(xu)((function(e){var t=e.size;return{width:t,height:t,alignItems:"center",justifyContent:"center"}})),SD=go("span")((function(e){var t=e.active,n=e.theme;return Z({width:4,height:4,borderRadius:"50%",backgroundColor:n.palette.text.disabled,transition:n.transitions.create(["transform"],{duration:n.transitions.duration.shorter})},t&&{transform:"scale(2)",backgroundColor:n.palette.primary.main})})),WD=go(Zu)((function(e){var t=e.config,n=e.theme;return Z(Z({},n.typography.overline),{fontSize:11,cursor:"pointer",display:"inline-flex",padding:t.itemPadding,paddingTop:n.spacing(2),marginBottom:t.itemGap,paddingBottom:n.spacing(1),color:n.palette.text.disabled,transition:n.transitions.create(["color"],{duration:n.transitions.duration.shortest}),"&:hover":{color:n.palette.text.primary}})}));function HD(e){var t=e.item,n=e.open,r=e.depth,o=e.active,i=e.config,a=e.externalLink,s=G(e,["item","open","depth","active","config","externalLink"]),l=t.title,c=t.path,u=t.icon,d=t.info,p=t.children,f=t.disabled,m=t.caption,h=t.roles,g=1!==r,v=Y.jsxs(LD,Z({disableGutters:!0,disabled:f,active:o,depth:r,config:i},s,{children:[Y.jsxs(Y.Fragment,{children:[u&&Y.jsx(ID,{size:i.iconSize,children:u}),g&&Y.jsx(ID,{size:i.iconSize,children:Y.jsx(SD,{active:o})})]}),!(i.hiddenLabel&&!g)&&Y.jsx(Lu,{primary:l,secondary:m?Y.jsx(yc,{title:m,placement:"top-start",children:Y.jsx("span",{children:m})}):null,primaryTypographyProps:{noWrap:!0,typography:"body2",textTransform:"capitalize",fontWeight:o?"fontWeightSemiBold":"fontWeightMedium"},secondaryTypographyProps:{noWrap:!0,component:"span",typography:"caption",color:"text.disabled"}}),d&&Y.jsx(wo,{component:"span",sx:{ml:1,lineHeight:0},children:d}),!!p&&Y.jsx(jo,{width:16,icon:n?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]}));return h&&!h.includes("".concat(i.currentRole))?null:a?Y.jsx(gD,{href:c,target:"_blank",rel:"noopener",underline:"none",color:"inherit",sx:Z({},f&&{cursor:"default"}),children:v}):p?v:Y.jsx(gD,{component:vD,href:c,underline:"none",color:"inherit",sx:Z({},f&&{cursor:"default"}),children:v})}function RD(t){var n,r=t.data,o=t.depth,i=t.hasChild,a=t.config;$C();var s=xD(r.path,i),l=null===(n=r.path)||void 0===n?void 0:n.includes("http"),c=e.useState(s),u=c[0],d=c[1];e.useEffect((function(){s||f()}),[]);var p=e.useCallback((function(){d((function(e){return!e}))}),[]),f=e.useCallback((function(){d(!1)}),[]);return Y.jsxs(Y.Fragment,{children:[Y.jsx(HD,{item:r,depth:o,open:u,active:s,externalLink:l,onClick:p,config:a}),i&&Y.jsx(kD,{in:u,unmountOnExit:!0,children:Y.jsx(FD,{data:r.children,depth:o,config:a})})]})}function FD(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(RD,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var VD=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(ms,Z({sx:r},o,{children:t.map((function(e,t){return Y.jsx(QD,{subheader:e.subheader,items:e.items,config:aD(n)},e.subheader||t)}))}))}));function QD(t){var n=t.subheader,r=t.items,o=t.config,i=e.useState(!0),a=i[0],s=i[1],l=e.useCallback((function(){s((function(e){return!e}))}),[]),c=r.map((function(e){return Y.jsx(RD,{data:e,depth:1,hasChild:!!e.children,config:o},e.title+e.path)}));return Y.jsx(Nf,{disablePadding:!0,sx:{px:2},children:n?Y.jsxs(Y.Fragment,{children:[Y.jsx(WD,{disableGutters:!0,disableSticky:!0,onClick:l,config:o,children:n}),Y.jsx(kD,{in:a,children:c})]}):c})}function XD(t){var n=t.openNav,r=t.onCloseNav,o=t.Logo,i=$C(),a=Za("up","lg"),s=Cg();e.useEffect((function(){n&&r()}),[i]);var l=Y.jsxs(og,{sx:{height:1,"& .simplebar-content":{height:1,display:"flex",flexDirection:"column"}},children:[o&&Y.jsx(o,{sx:{mt:3,ml:4,mb:1}}),Y.jsx(VD,{data:s,config:{currentRole:"admin"}}),Y.jsx(wo,{sx:{flexGrow:1}})]});return Y.jsxs(wo,{component:"nav",sx:{flexShrink:{lg:0},width:{lg:xz.W_VERTICAL}},children:[Y.jsx(MD,{}),a?Y.jsx(ms,{sx:{height:1,position:"fixed",width:xz.W_VERTICAL,borderRight:function(e){return"dashed 1px ".concat(e.palette.divider)}},children:l}):Y.jsx(sa,{open:n,onClose:r,PaperProps:{sx:{width:xz.W_VERTICAL}},children:l})]})}var YD=go(hx,{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.open,r=e.depth,o=e.config,i=e.theme,a=1!==r,s={color:i.palette.text.primary,backgroundColor:i.palette.action.selected};return Z(Z(Z({flexShrink:0,padding:o.itemPadding,marginRight:o.itemGap,borderRadius:o.itemRadius,minHeight:o.itemRootHeight,color:i.palette.text.secondary},t&&Z({},s)),a&&{margin:0,padding:i.spacing(0,1),minHeight:o.itemSubHeight}),n&&!t&&{color:i.palette.text.primary,backgroundColor:i.palette.action.hover})})),ZD=go(xu)((function(e){var t=e.size;return{width:t,height:t,flexShrink:0,marginRight:0}})),GD=e.forwardRef((function(e,t){var n=e.item,r=e.depth,o=e.open,i=e.active,a=e.externalLink,s=e.config,l=G(e,["item","depth","open","active","externalLink","config"]),c=n.title,u=n.path,d=n.icon,p=n.info,f=n.children,m=n.disabled,h=n.caption,g=n.roles,v=1!==r,A=Y.jsxs(YD,Z({disableGutters:!0,ref:t,open:o,depth:r,active:i,disabled:m,config:s},l,{children:[d&&Y.jsx(ZD,{size:s.iconSize,children:d}),!(s.hiddenLabel&&!v)&&Y.jsx(Lu,{sx:Z({},!v&&{ml:1}),primary:c,primaryTypographyProps:Z({noWrap:!0,typography:"body2",textTransform:"capitalize",fontWeight:i?"fontWeightBold":"fontWeightMedium"},v&&{fontWeight:i?"fontWeightSemiBold":"fontWeightMedium"})}),p&&Y.jsx(wo,{component:"span",sx:{ml:.5,lineHeight:0},children:p}),h&&Y.jsx(yc,{title:h,arrow:!0,children:Y.jsx(jo,{width:16,icon:"eva:info-outline",sx:{ml:.5,color:"text.disabled"}})}),!!f&&Y.jsx(jo,{icon:v?"eva:arrow-ios-forward-fill":"eva:arrow-ios-downward-fill",width:16,sx:{flexShrink:0,ml:.5}})]}));return g&&!g.includes("".concat(s.currentRole))?null:a?Y.jsx(gD,{href:u,target:"_blank",rel:"noopener",underline:"none",sx:Z({},m&&{cursor:"default"}),children:A}):Y.jsx(gD,{component:vD,href:u,underline:"none",sx:Z({},m&&{cursor:"default"}),children:A})}));function UD(t){var n,r,o=t.data,i=t.depth,a=t.hasChild,s=t.config,l=e.useRef(null),c=$C(),u=xD(o.path,a),d=null===(r=o.path)||void 0===r?void 0:r.includes("http"),p=e.useState(!1),f=p[0],m=p[1];e.useEffect((function(){f&&g()}),[c]),e.useEffect((function(){var e=Array.from(document.querySelectorAll(".".concat(Oz.root))),t=function(){document.body.style.overflow="",document.body.style.padding="",e.forEach((function(e){e.style.padding=""}))};t()}),[f]);var h=function(){m(!0)},g=function(){m(!1)};return Y.jsxs(Y.Fragment,{children:[Y.jsx(GD,{ref:l,item:o,depth:i,open:f,active:u,externalLink:d,onMouseEnter:h,onMouseLeave:g,config:s}),a&&Y.jsx(Jf,{open:f,anchorEl:l.current,anchorOrigin:1===i?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:1===i?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:h,onMouseLeave:g},sx:(n={pointerEvents:"none"},n["& .".concat(Rf.paper)]=Z({width:160},f&&{pointerEvents:"auto"}),n),children:Y.jsx(qD,{data:o.children,depth:i,config:s})})]})}function qD(e){var t=e.data,n=e.depth,r=e.config;return Y.jsx(ms,{spacing:.5,children:t.map((function(e){return Y.jsx(UD,{data:e,depth:n+1,hasChild:!!e.children,config:r},e.title+e.path)}))})}var KD=e.memo((function(e){var t=e.data,n=e.config,r=e.sx,o=G(e,["data","config","sx"]);return Y.jsx(ms,Z({direction:"row",sx:Z(Z({mx:"auto"},Zd.y),r)},o,{children:t.map((function(e,t){return Y.jsx(JD,{items:e.items,config:lD(n)},e.subheader||t)}))}))}));function JD(e){var t=e.items,n=e.config;return Y.jsx(Y.Fragment,{children:t.map((function(e){return Y.jsx(UD,{data:e,depth:1,hasChild:!!e.children,config:n},e.title+e.path)}))})}function _D(e){var t=e.sx,n=G(e,["sx"]);return Y.jsx(wo,Z({sx:Z({left:0,right:0,bottom:0,m:"auto",height:24,zIndex:-1,opacity:.48,borderRadius:"50%",position:"absolute",width:"calc(100% - 48px)",boxShadow:function(e){return e.customShadows.z8}},t)},n))}var $D=e.memo((function(){var e=po(),t=Cg();return Y.jsxs(Pz,{component:"nav",sx:{top:bz.H_DESKTOP_OFFSET},children:[Y.jsx(Lz,{sx:Z({},Yd({color:e.palette.background.default})),children:Y.jsx(KD,{data:t,config:{currentRole:"admin"}})}),Y.jsx(_D,{})]})}));function eT(t){var n=t.children,r=t.Logo,o=Za("up","lg"),i=e.useContext(Og),a=yz(),s="horizontal"===i.themeLayout,l="mini"===i.themeLayout,c=Y.jsx(zD,{Logo:r}),u=Y.jsx($D,{}),d=Y.jsx(XD,{openNav:a.value,onCloseNav:a.onFalse,Logo:r});return s?Y.jsxs(Y.Fragment,{children:[Y.jsx(iD,{onOpenNav:a.onTrue,Logo:r}),o?u:d,Y.jsx(jz,{children:n})]}):l?Y.jsxs(Y.Fragment,{children:[Y.jsx(iD,{onOpenNav:a.onTrue,Logo:r}),Y.jsxs(wo,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[o?c:d,Y.jsx(jz,{children:n})]})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(iD,{onOpenNav:a.onTrue,Logo:r}),Y.jsxs(wo,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[d,Y.jsx(jz,{children:n})]})]})}var tT=function(){this.__data__=[],this.size=0};var nT=function(e,t){return e===t||e!=e&&t!=t},rT=nT;var oT=function(e,t){for(var n=e.length;n--;)if(rT(e[n][0],t))return n;return-1},iT=oT,aT=Array.prototype.splice;var sT=oT;var lT=oT;var cT=oT;var uT=tT,dT=function(e){var t=this.__data__,n=iT(t,e);return!(n<0)&&(n==t.length-1?t.pop():aT.call(t,n,1),--this.size,!0)},pT=function(e){var t=this.__data__,n=sT(t,e);return n<0?void 0:t[n][1]},fT=function(e){return lT(this.__data__,e)>-1},mT=function(e,t){var n=this.__data__,r=cT(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function hT(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])}}hT.prototype.clear=uT,hT.prototype.delete=dT,hT.prototype.get=pT,hT.prototype.has=fT,hT.prototype.set=mT;var gT=hT,vT=gT;var AT=function(){this.__data__=new vT,this.size=0};var yT=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var bT=function(e){return this.__data__.get(e)};var xT=function(e){return this.__data__.has(e)},wT=Oh,jT=rh;var CT,OT=function(e){if(!jT(e))return!1;var t=wT(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},MT=sh["__core-js_shared__"],zT=(CT=/[^.]+$/.exec(MT&&MT.keys&&MT.keys.IE_PROTO||""))?"Symbol(src)_1."+CT:"";var DT=function(e){return!!zT&&zT in e},TT=Function.prototype.toString;var PT=OT,NT=DT,ET=rh,BT=function(e){if(null!=e){try{return TT.call(e)}catch(e){}try{return e+""}catch(e){}}return""},kT=/^\[object .+?Constructor\]$/,LT=Function.prototype,IT=Object.prototype,ST=LT.toString,WT=IT.hasOwnProperty,HT=RegExp("^"+ST.call(WT).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var RT=function(e){return!(!ET(e)||NT(e))&&(PT(e)?HT:kT).test(BT(e))},FT=function(e,t){return null==e?void 0:e[t]};var VT=function(e,t){var n=FT(e,t);return RT(n)?n:void 0},QT=VT(sh,"Map"),XT=VT(Object,"create"),YT=XT;var ZT=function(){this.__data__=YT?YT(null):{},this.size=0};var GT=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},UT=XT,qT=Object.prototype.hasOwnProperty;var KT=function(e){var t=this.__data__;if(UT){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return qT.call(t,e)?t[e]:void 0},JT=XT,_T=Object.prototype.hasOwnProperty;var $T=XT;var eP=ZT,tP=GT,nP=KT,rP=function(e){var t=this.__data__;return JT?void 0!==t[e]:_T.call(t,e)},oP=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$T&&void 0===t?"__lodash_hash_undefined__":t,this};function iP(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])}}iP.prototype.clear=eP,iP.prototype.delete=tP,iP.prototype.get=nP,iP.prototype.has=rP,iP.prototype.set=oP;var aP=iP,sP=gT,lP=QT;var cP=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var uP=function(e,t){var n=e.__data__;return cP(t)?n["string"==typeof t?"string":"hash"]:n.map},dP=uP;var pP=function(e){var t=dP(this,e).delete(e);return this.size-=t?1:0,t},fP=uP;var mP=uP;var hP=uP;var gP=function(){this.size=0,this.__data__={hash:new aP,map:new(lP||sP),string:new aP}},vP=pP,AP=function(e){return fP(this,e).get(e)},yP=function(e){return mP(this,e).has(e)},bP=function(e,t){var n=hP(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function xP(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])}}xP.prototype.clear=gP,xP.prototype.delete=vP,xP.prototype.get=AP,xP.prototype.has=yP,xP.prototype.set=bP;var wP=gT,jP=QT,CP=xP;var OP=gT,MP=AT,zP=yT,DP=bT,TP=xT,PP=function(e,t){var n=this.__data__;if(n instanceof wP){var r=n.__data__;if(!jP||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new CP(r)}return n.set(e,t),this.size=n.size,this};function NP(e){var t=this.__data__=new OP(e);this.size=t.size}NP.prototype.clear=MP,NP.prototype.delete=zP,NP.prototype.get=DP,NP.prototype.has=TP,NP.prototype.set=PP;var EP=NP,BP=VT,kP=function(){try{var e=BP(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),LP=kP;var IP=function(e,t,n){"__proto__"==t&&LP?LP(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},SP=IP,WP=nT;var HP=function(e,t,n){(void 0!==n&&!WP(e[t],n)||void 0===n&&!(t in e))&&SP(e,t,n)};var RP=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}(),FP={exports:{}};!function(e,t){var n=sh,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(FP,FP.exports);var VP=FP.exports,QP=sh.Uint8Array;var XP=function(e){var t=new e.constructor(e.byteLength);return new QP(t).set(new QP(e)),t},YP=XP;var ZP=function(e,t){var n=t?YP(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var GP=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},UP=rh,qP=Object.create,KP=function(){function e(){}return function(t){if(!UP(t))return{};if(qP)return qP(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),JP=KP;var _P=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),$P=Object.prototype;var eN=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$P)},tN=JP,nN=_P,rN=eN;var oN=function(e){return"function"!=typeof e.constructor||rN(e)?{}:tN(nN(e))},iN=Oh,aN=Mh;var sN=function(e){return aN(e)&&"[object Arguments]"==iN(e)},lN=Mh,cN=Object.prototype,uN=cN.hasOwnProperty,dN=cN.propertyIsEnumerable,pN=sN(function(){return arguments}())?sN:function(e){return lN(e)&&uN.call(e,"callee")&&!dN.call(e,"callee")},fN=Array.isArray;var mN=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},hN=OT,gN=mN;var vN=function(e){return null!=e&&gN(e.length)&&!hN(e)},AN=vN,yN=Mh;var bN=function(e){return yN(e)&&AN(e)},xN={exports:{}};var wN=function(){return!1};!function(e,t){var n=sh,r=wN,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(xN,xN.exports);var jN=xN.exports,CN=Oh,ON=_P,MN=Mh,zN=Function.prototype,DN=Object.prototype,TN=zN.toString,PN=DN.hasOwnProperty,NN=TN.call(Object);var EN=function(e){if(!MN(e)||"[object Object]"!=CN(e))return!1;var t=ON(e);if(null===t)return!0;var n=PN.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&TN.call(n)==NN},BN=Oh,kN=mN,LN=Mh,IN={};IN["[object Float32Array]"]=IN["[object Float64Array]"]=IN["[object Int8Array]"]=IN["[object Int16Array]"]=IN["[object Int32Array]"]=IN["[object Uint8Array]"]=IN["[object Uint8ClampedArray]"]=IN["[object Uint16Array]"]=IN["[object Uint32Array]"]=!0,IN["[object Arguments]"]=IN["[object Array]"]=IN["[object ArrayBuffer]"]=IN["[object Boolean]"]=IN["[object DataView]"]=IN["[object Date]"]=IN["[object Error]"]=IN["[object Function]"]=IN["[object Map]"]=IN["[object Number]"]=IN["[object Object]"]=IN["[object RegExp]"]=IN["[object Set]"]=IN["[object String]"]=IN["[object WeakMap]"]=!1;var SN=function(e){return LN(e)&&kN(e.length)&&!!IN[BN(e)]};var WN=function(e){return function(t){return e(t)}},HN={exports:{}};!function(e,t){var n=oh,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(HN,HN.exports);var RN=HN.exports,FN=SN,VN=WN,QN=RN&&RN.isTypedArray,XN=QN?VN(QN):FN;var YN=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},ZN=IP,GN=nT,UN=Object.prototype.hasOwnProperty;var qN=function(e,t,n){var r=e[t];UN.call(e,t)&&GN(r,n)&&(void 0!==n||t in e)||ZN(e,t,n)},KN=IP;var JN=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?KN(n,s,l):qN(n,s,l)}return n};var _N=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},$N=/^(?:0|[1-9]\d*)$/;var eE=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&$N.test(e))&&e>-1&&e%1==0&&e<t},tE=_N,nE=pN,rE=fN,oE=jN,iE=eE,aE=XN,sE=Object.prototype.hasOwnProperty;var lE=function(e,t){var n=rE(e),r=!n&&nE(e),o=!n&&!r&&oE(e),i=!n&&!r&&!o&&aE(e),a=n||r||o||i,s=a?tE(e.length,String):[],l=s.length;for(var c in e)!t&&!sE.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||iE(c,l))||s.push(c);return s};var cE=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},uE=rh,dE=eN,pE=cE,fE=Object.prototype.hasOwnProperty;var mE=function(e){if(!uE(e))return pE(e);var t=dE(e),n=[];for(var r in e)("constructor"!=r||!t&&fE.call(e,r))&&n.push(r);return n},hE=lE,gE=mE,vE=vN;var AE=function(e){return vE(e)?hE(e,!0):gE(e)},yE=JN,bE=AE;var xE=HP,wE=VP,jE=ZP,CE=GP,OE=oN,ME=pN,zE=fN,DE=bN,TE=jN,PE=OT,NE=rh,EE=EN,BE=XN,kE=YN,LE=function(e){return yE(e,bE(e))};var IE=EP,SE=HP,WE=RP,HE=function(e,t,n,r,o,i,a){var s=kE(e,n),l=kE(t,n),c=a.get(l);if(c)xE(e,n,c);else{var u=i?i(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var p=zE(l),f=!p&&TE(l),m=!p&&!f&&BE(l);u=l,p||f||m?zE(s)?u=s:DE(s)?u=CE(s):f?(d=!1,u=wE(l,!0)):m?(d=!1,u=jE(l,!0)):u=[]:EE(l)||ME(l)?(u=s,ME(s)?u=LE(s):NE(s)&&!PE(s)||(u=OE(l))):d=!1}d&&(a.set(l,u),o(u,l,r,i,a),a.delete(l)),xE(e,n,u)}},RE=rh,FE=AE,VE=YN;var QE=function e(t,n,r,o,i){t!==n&&WE(n,(function(a,s){if(i||(i=new IE),RE(a))HE(t,n,s,r,e,o,i);else{var l=o?o(VE(t,s),a,s+"",t,n,i):void 0;void 0===l&&(l=a),SE(t,s,l)}}),FE)};var XE=function(e){return e};var YE=function(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)},ZE=YE,GE=Math.max;var UE=function(e,t,n){return t=GE(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=GE(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),ZE(e,this,s)}};var qE=function(e){return function(){return e}},KE=kP,JE=KE?function(e,t){return KE(e,"toString",{configurable:!0,enumerable:!1,value:qE(t),writable:!0})}:XE,_E=Date.now;var $E=function(e){var t=0,n=0;return function(){var r=_E(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(JE),eB=XE,tB=UE,nB=$E;var rB=function(e,t){return nB(tB(e,t,eB),e+"")},oB=nT,iB=vN,aB=eE,sB=rh;var lB=rB,cB=function(e,t,n){if(!sB(n))return!1;var r=typeof t;return!!("number"==r?iB(n)&&aB(t,n.length):"string"==r&&t in n)&&oB(n[t],e)};var uB=QE,dB=W(function(e){return lB((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&cB(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t}))}((function(e,t,n){uB(e,t,n)})));const pB=(e,t)=>re({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),fB=e=>re({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),mB=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,n])=>{var o;r[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(o=n.palette)?void 0:o.mode}}));let o=re({html:pB(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:re({margin:0},fB(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function hB(e){const t=fo({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return Y.jsxs(k.Fragment,{children:[Y.jsx(rd,{styles:e=>mB(e,r)}),n]})}"production"!==process.env.NODE_ENV&&(hB.propTypes={children:Ee.node,enableColorScheme:Ee.bool});var gB={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},vB={lighter:"#C8FAD6",light:"#5BE49B",main:"#00A76F",dark:"#007867",darker:"#004B50",contrastText:"#FFFFFF"},AB={lighter:"#EFD6FF",light:"#C684FF",main:"#8E33FF",dark:"#5119B7",darker:"#27097A",contrastText:"#FFFFFF"},yB={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#FFFFFF"},bB={lighter:"#D3FCD2",light:"#77ED8B",main:"#22C55E",dark:"#118D57",darker:"#065E49",contrastText:"#ffffff"},xB={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:gB[800]},wB={lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#FFFFFF"},jB=function(e){return{common:{black:"#000000",white:"#FFFFFF"},primary:null!=e?e:vB,secondary:AB,info:yB,success:bB,warning:xB,error:wB,grey:gB,divider:yr(gB[500],.2),action:{hover:yr(gB[500],.08),selected:yr(gB[500],.16),disabled:yr(gB[500],.8),disabledBackground:yr(gB[500],.24),focus:yr(gB[500],.24),hoverOpacity:.08,disabledOpacity:.48}}};function CB(e,t){var n=Z(Z({},jB(t)),{mode:"light",text:{primary:gB[800],secondary:gB[600],disabled:gB[500]},background:{paper:"#FFFFFF",default:"#FFFFFF",neutral:gB[200]},action:Z(Z({},jB().action),{active:gB[600]})}),r=Z(Z({},jB(t)),{mode:"dark",text:{primary:"#FFFFFF",secondary:gB[500],disabled:gB[600]},background:{paper:gB[800],default:gB[900],neutral:yr(gB[500],.12)},action:Z(Z({},jB().action),{active:gB[500]})});return"light"===e?n:r}var OB=CB("light"),MB=OB.grey[500],zB=OB.common.black;function DB(e){var t=yr(e,.2),n=yr(e,.14),r=yr(e,.12);return["none","0px 2px 1px -1px ".concat(t,",0px 1px 1px 0px ").concat(n,",0px 1px 3px 0px ").concat(r),"0px 3px 1px -2px ".concat(t,",0px 2px 2px 0px ").concat(n,",0px 1px 5px 0px ").concat(r),"0px 3px 3px -2px ".concat(t,",0px 3px 4px 0px ").concat(n,",0px 1px 8px 0px ").concat(r),"0px 2px 4px -1px ".concat(t,",0px 4px 5px 0px ").concat(n,",0px 1px 10px 0px ").concat(r),"0px 3px 5px -1px ".concat(t,",0px 5px 8px 0px ").concat(n,",0px 1px 14px 0px ").concat(r),"0px 3px 5px -1px ".concat(t,",0px 6px 10px 0px ").concat(n,",0px 1px 18px 0px ").concat(r),"0px 4px 5px -2px ".concat(t,",0px 7px 10px 1px ").concat(n,",0px 2px 16px 1px ").concat(r),"0px 5px 5px -3px ".concat(t,",0px 8px 10px 1px ").concat(n,",0px 3px 14px 2px ").concat(r),"0px 5px 6px -3px ".concat(t,",0px 9px 12px 1px ").concat(n,",0px 3px 16px 2px ").concat(r),"0px 6px 6px -3px ".concat(t,",0px 10px 14px 1px ").concat(n,",0px 4px 18px 3px ").concat(r),"0px 6px 7px -4px ".concat(t,",0px 11px 15px 1px ").concat(n,",0px 4px 20px 3px ").concat(r),"0px 7px 8px -4px ".concat(t,",0px 12px 17px 2px ").concat(n,",0px 5px 22px 4px ").concat(r),"0px 7px 8px -4px ".concat(t,",0px 13px 19px 2px ").concat(n,",0px 5px 24px 4px ").concat(r),"0px 7px 9px -4px ".concat(t,",0px 14px 21px 2px ").concat(n,",0px 5px 26px 4px ").concat(r),"0px 8px 9px -5px ".concat(t,",0px 15px 22px 2px ").concat(n,",0px 6px 28px 5px ").concat(r),"0px 8px 10px -5px ".concat(t,",0px 16px 24px 2px ").concat(n,",0px 6px 30px 5px ").concat(r),"0px 8px 11px -5px ".concat(t,",0px 17px 26px 2px ").concat(n,",0px 6px 32px 5px ").concat(r),"0px 9px 11px -5px ".concat(t,",0px 18px 28px 2px ").concat(n,",0px 7px 34px 6px ").concat(r),"0px 9px 12px -6px ".concat(t,",0px 19px 29px 2px ").concat(n,",0px 7px 36px 6px ").concat(r),"0px 10px 13px -6px ".concat(t,",0px 20px 31px 3px ").concat(n,",0px 8px 38px 7px ").concat(r),"0px 10px 13px -6px ".concat(t,",0px 21px 33px 3px ").concat(n,",0px 8px 40px 7px ").concat(r),"0px 10px 14px -6px ".concat(t,",0px 22px 35px 3px ").concat(n,",0px 8px 42px 7px ").concat(r),"0px 11px 14px -7px ".concat(t,",0px 23px 36px 3px ").concat(n,",0px 9px 44px 8px ").concat(r),"0px 11px 15px -7px ".concat(t,",0px 24px 38px 3px ").concat(n,",0px 9px 46px 8px ").concat(r)]}function TB(e){return DB("light"===e?MB:zB)}function PB(e){return"".concat(e/16,"rem")}function NB(e){var t=e.sm,n=e.md,r=e.lg;return{"@media (min-width:600px)":{fontSize:PB(t)},"@media (min-width:900px)":{fontSize:PB(n)},"@media (min-width:1200px)":{fontSize:PB(r)}}}var EB={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,h1:Z({fontWeight:800,lineHeight:1.25,fontSize:PB(40)},NB({sm:52,md:58,lg:64})),h2:Z({fontWeight:800,lineHeight:64/48,fontSize:PB(32)},NB({sm:40,md:44,lg:48})),h3:Z({fontWeight:700,lineHeight:1.5,fontSize:PB(24)},NB({sm:26,md:30,lg:32})),h4:Z({fontWeight:700,lineHeight:1.5,fontSize:PB(20)},NB({sm:20,md:24,lg:24})),h5:Z({fontWeight:700,lineHeight:1.5,fontSize:PB(18)},NB({sm:19,md:20,lg:20})),h6:Z({fontWeight:700,lineHeight:28/18,fontSize:PB(17)},NB({sm:18,md:18,lg:18})),subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:PB(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:PB(14)},body1:{lineHeight:1.5,fontSize:PB(16)},body2:{lineHeight:22/14,fontSize:PB(14)},caption:{lineHeight:1.5,fontSize:PB(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:PB(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:PB(14),textTransform:"unset"}};function BB(e,t){var n=CB("light",t);n.grey[500],n.common.black;var r=yr(e,.16);return{z1:"0 1px 2px 0 ".concat(r),z4:"0 4px 8px 0 ".concat(r),z8:"0 8px 16px 0 ".concat(r),z12:"0 12px 24px -4px ".concat(r),z16:"0 16px 32px -4px ".concat(r),z20:"0 20px 40px -4px ".concat(r),z24:"0 24px 48px 0 ".concat(r),card:"0 0 2px 0 ".concat(yr(e,.2),", 0 12px 24px -4px ").concat(yr(e,.12)),dropdown:"0 0 2px 0 ".concat(yr(e,.24),", -20px 20px 40px -4px ").concat(yr(e,.24)),dialog:"-40px 40px 80px -8px ".concat(yr(n.common.black,.24)),primary:"0 8px 16px 0 ".concat(yr(n.primary.main,.24)),info:"0 8px 16px 0 ".concat(yr(n.info.main,.24)),secondary:"0 8px 16px 0 ".concat(yr(n.secondary.main,.24)),success:"0 8px 16px 0 ".concat(yr(n.success.main,.24)),warning:"0 8px 16px 0 ".concat(yr(n.warning.main,.24)),error:"0 8px 16px 0 ".concat(yr(n.error.main,.24))}}function kB(e,t){var n=CB("light"),r=n.grey[500],o=n.common.black;return BB("light"===e?r:o,t)}var LB=St("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),IB=["primary","secondary","info","success","warning","error"];function SB(e){var t="light"===e.palette.mode;return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:function(n){return function(n){var r,o="default"===n.color,i="inherit"===n.color,a="circular"===n.variant,s="extended"===n.variant,l="outlined"===n.variant,c="outlinedExtended"===n.variant,u="soft"===n.variant,d="softExtended"===n.variant,p=Z(Z(Z({"&:hover, &:active":{boxShadow:"none"}},(a||s)&&Z(Z({},(o||i)&&{boxShadow:e.customShadows.z8}),i&&{backgroundColor:e.palette.text.primary,color:t?e.palette.common.white:e.palette.grey[800],"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[400]}})),(l||c)&&Z(Z(Z({boxShadow:"none",backgroundColor:"transparent"},(o||i)&&{border:"solid 1px ".concat(yr(e.palette.grey[500],.32))}),o&&Z({},!t&&{color:e.palette.text.secondary})),{"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor",backgroundColor:e.palette.action.hover}})),(u||d)&&Z(Z({boxShadow:"none"},o&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}}),i&&{backgroundColor:yr(e.palette.grey[500],.08),"&:hover":{backgroundColor:yr(e.palette.grey[500],.24)}})),f=IB.map((function(r){return Z({},n.color===r&&Z(Z(Z({},(a||s)&&{boxShadow:e.customShadows[r],"&:hover":{backgroundColor:e.palette[r].dark}}),(l||c)&&{color:e.palette[r].main,border:"solid 1px ".concat(yr(e.palette[r].main,.48)),"&:hover":{backgroundColor:yr(e.palette[r].main,.08)}}),(u||d)&&{color:e.palette[r][t?"dark":"light"],backgroundColor:yr(e.palette[r].main,.16),"&:hover":{backgroundColor:yr(e.palette[r].main,.32)}}))})),m=((r={})["&.".concat(LB.disabled)]=Z({},(l||c)&&{backgroundColor:"transparent",border:"solid 1px ".concat(e.palette.action.disabledBackground)}),r),h=Z({},(s||c||d)&&Z(Z(Z({width:"auto","& svg":{marginRight:e.spacing(1)}},"small"===n.size&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)}),"medium"===n.size&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)}),"large"===n.size&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}));return K(K([p],f,!0),[m,h],!1)}(n.ownerState)}}}}}var WB=["primary","secondary","info","success","warning","error"];function HB(e){var t="light"===e.palette.mode;return{MuiChip:{defaultProps:{deleteIcon:Y.jsx(jo,{icon:"solar:close-circle-bold"})},styleOverrides:{root:function(n){return function(n){var r,o,i,a,s,l="default"===n.color,c="filled"===n.variant,u="outlined"===n.variant,d="soft"===n.variant,p=Z(((r={})["& .".concat(qu.deleteIcon)]={opacity:.48,color:"currentColor","&:hover":{opacity:1,color:"currentColor"}},r),l&&Z(Z(Z(((o={})["& .".concat(qu.avatar)]={color:e.palette.text.primary},o),c&&((i={color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[100]}})["& .".concat(qu.icon)]={color:t?e.palette.common.white:e.palette.grey[800]},i)),u&&{border:"solid 1px ".concat(yr(e.palette.grey[500],.32))}),d&&{color:e.palette.text.primary,backgroundColor:yr(e.palette.grey[500],.16),"&:hover":{backgroundColor:yr(e.palette.grey[500],.32)}})),f=WB.map((function(r){var o;return Z({},n.color===r&&Z(((o={})["& .".concat(qu.avatar)]={color:e.palette[r].lighter,backgroundColor:e.palette[r].dark},o),d&&{color:e.palette[r][t?"dark":"light"],backgroundColor:yr(e.palette[r].main,.16),"&:hover":{backgroundColor:yr(e.palette[r].main,.32)}}))})),m=((a={})["&.".concat(qu.disabled)]=Z(Z(Z(((s={opacity:1,color:e.palette.action.disabled})["& .".concat(qu.icon)]={color:e.palette.action.disabled},s["& .".concat(qu.avatar)]={color:e.palette.action.disabled,backgroundColor:e.palette.action.disabledBackground},s),c&&{backgroundColor:e.palette.action.disabledBackground}),u&&{borderColor:e.palette.action.disabledBackground}),d&&{backgroundColor:e.palette.action.disabledBackground}),a);return K(K([p],f,!0),[m,{fontWeight:500,borderRadius:e.shape.borderRadius}],!1)}(n.ownerState)}}}}}var RB=St("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var FB=St("MuiTableRow",["root","selected","hover","head","footer"]);var VB=St("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),QB=["info","success","warning","error"];function XB(e){var t="light"===e.palette.mode;return{MuiAlert:{defaultProps:{iconMapping:{error:Y.jsx(jo,{icon:"solar:danger-bold",width:24}),info:Y.jsx(jo,{icon:"eva:info-fill",width:24}),success:Y.jsx(jo,{icon:"eva:checkmark-circle-2-fill",width:24}),warning:Y.jsx(jo,{icon:"eva:alert-triangle-fill",width:24})}},styleOverrides:{root:function(n){return function(n){var r="standard"===n.variant,o="filled"===n.variant,i="outlined"===n.variant,a=QB.map((function(a){var s,l;return Z({},n.severity===a&&Z(Z(Z({},r&&((s={color:e.palette[a][t?"darker":"lighter"],backgroundColor:e.palette[a][t?"lighter":"darker"]})["& .".concat(VB.icon)]={color:e.palette[a][t?"main":"light"]},s)),o&&{color:e.palette[a].contrastText,backgroundColor:e.palette[a].main}),i&&((l={backgroundColor:yr(e.palette[a].main,.08),color:e.palette[a][t?"dark":"light"],border:"solid 1px ".concat(yr(e.palette[a].main,.16))})["& .".concat(VB.icon)]={color:e.palette[a].main},l)))}));return K([],a,!0)}(n.ownerState)},icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5),fontWeight:e.typography.fontWeightSemiBold}}}}}var YB=St("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);var ZB=St("MuiAvatarGroup",["root","avatar"]),GB=["default","primary","secondary","info","success","warning","error"],UB=function(e){var t=e.charAt(0);return["A","C","F"].includes(t)?"primary":["E","D","H"].includes(t)?"secondary":["I","K","L"].includes(t)?"info":["M","N","P"].includes(t)?"success":["Q","S","T"].includes(t)?"warning":["V","X","Y"].includes(t)?"error":"default"};var qB=St("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),KB=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})}))};var JB=St("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var _B=St("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);function $B(e){var t="light"===e.palette.mode;return{MuiSwitch:{styleOverrides:{root:function(n){return function(n){var r,o,i,a;return Z(Z({padding:"9px 13px 9px 12px",width:58,height:38},"small"===n.size&&{padding:"4px 8px 4px 7px",width:40,height:24}),((r={})["& .".concat(_B.thumb)]=Z({width:14,height:14,boxShadow:"none",color:e.palette.common.white},"small"===n.size&&{width:10,height:10}),r["& .".concat(_B.track)]={opacity:1,borderRadius:14,backgroundColor:yr(e.palette.grey[500],.48)},r["& .".concat(_B.switchBase)]=Z(Z({left:3,padding:12},"small"===n.size&&{padding:7}),((o={})["&.".concat(_B.checked)]=Z(((i={transform:"translateX(13px)"})["&+.".concat(_B.track)]={opacity:1},i),"small"===n.size&&{transform:"translateX(9px)"}),o["&.".concat(_B.disabled)]=((a={})["& .".concat(_B.thumb)]={opacity:t?1:.48},a["&+.".concat(_B.track)]={opacity:.48},a),o)),r))}(n.ownerState)}}}}}var ek=St("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),tk=["primary","secondary","info","success","warning","error"];function nk(e){return{MuiLinearProgress:{styleOverrides:{root:function(t){return function(t){var n,r="buffer"===t.variant,o=Z(((n={borderRadius:4})["& .".concat(ek.bar)]={borderRadius:4},n),r&&{backgroundColor:"transparent"}),i=tk.map((function(n){return Z({},t.color===n&&{backgroundColor:yr(e.palette[n].main,.24)})}));return K([o],i,!0)}(t.ownerState)}}}}}var rk=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})}))},ok=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})}))},ik=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})}))};var ak=St("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var sk=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})}))},lk=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})}))},ck=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})}))};var uk=St("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);var dk=St("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);var pk=St("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),fk=["primary","secondary","info","success","warning","error"];function mk(e){var t="light"===e.palette.mode;return{MuiPagination:{styleOverrides:{root:function(n){return function(n){var r,o,i="standard"===n.color,a="text"===n.variant,s="outlined"===n.variant,l="soft"===n.variant,c=((r={})["& .".concat(pk.root)]=Z(Z({},s&&{borderColor:yr(e.palette.grey[500],.24)}),((o={})["&.".concat(pk.selected)]=Z(Z({fontWeight:e.typography.fontWeightSemiBold},s&&{borderColor:"currentColor"}),i&&Z({backgroundColor:yr(e.palette.grey[500],.08)},a&&{color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[100]}})),o)),r),u=fk.map((function(r){var o,i;return Z({},n.color===r&&((o={})["& .".concat(pk.root)]=((i={})["&.".concat(pk.selected)]=Z({},n.color===r&&Z({},l&&{color:e.palette[r][t?"dark":"light"],backgroundColor:yr(e.palette[r].main,.08),"&:hover":{backgroundColor:yr(e.palette[r].main,.16)}})),i),o))}));return K([c],u,!0)}(n.ownerState)}}}}}var hk=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})}))},gk=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})}))};var vk=St("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]),Ak=["primary","secondary","info","success","warning","error"];function yk(e){return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:function(t){return function(t){var n,r,o,i="inherit"===t.color,a="contained"===t.variant,s="outlined"===t.variant,l="text"===t.variant,c="soft"===t.variant,u="horizontal"===t.orientation,d="vertical"===t.orientation,p=((n={})["& .".concat(vk.grouped)]={"&:not(:last-of-type)":Z({},!s&&Z(Z(Z({borderStyle:"solid"},i&&{borderColor:yr(e.palette.grey[500],.32)}),u&&{borderWidth:"0px 1px 0px 0px"}),d&&{borderWidth:"0px 0px 1px 0px"}))},n),f=Ak.map((function(n){var r;return(r={})["& .".concat(vk.grouped)]={"&:not(:last-of-type)":Z({},!s&&Z({},t.color===n&&Z(Z(Z({},a&&{borderColor:yr(e.palette[n].dark,.48)}),l&&{borderColor:yr(e.palette[n].main,.48)}),c&&{borderColor:yr(e.palette[n].dark,.24)})))},r})),m=((r={})["& .".concat(vk.grouped)]=((o={})["&.".concat(vk.disabled)]={"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}},o),r);return K(K([p],f,!0),[m],!1)}(t.ownerState)}}}}}var bk=function(){return Y.jsx(jo,{icon:"eva:chevron-down-fill",width:24})},xk=function(){return Y.jsx(jo,{icon:"eva:arrow-ios-back-fill",width:24})},wk=function(){return Y.jsx(jo,{icon:"eva:arrow-ios-forward-fill",width:24})},jk=function(){return Y.jsx(jo,{icon:"solar:calendar-mark-bold-duotone",width:24})},Ck=function(){return Y.jsx(jo,{icon:"solar:clock-circle-outline",width:24})},Ok=["DatePicker","DateTimePicker","StaticDatePicker","DesktopDatePicker","DesktopDateTimePicker","MobileDatePicker","MobileDateTimePicker"].reduce((function(e,t){return e["Mui".concat(t)]={defaultProps:{slots:{openPickerIcon:jk,leftArrowIcon:xk,rightArrowIcon:wk,switchViewIcon:bk}}},e}),{}),Mk=["TimePicker","MobileTimePicker","StaticTimePicker","DesktopTimePicker"].reduce((function(e,t){return e["Mui".concat(t)]={defaultProps:{slots:{openPickerIcon:Ck,rightArrowIcon:wk,switchViewIcon:bk}}},e}),{});var zk=St("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),Dk=["primary","secondary","info","success","warning","error"];function Tk(e){var t;return{MuiToggleButton:{styleOverrides:{root:function(t){return function(t){var n,r,o,i=((n={})["&.".concat(zk.selected)]={borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor"},n),a=Dk.map((function(n){return Z({},t.color===n&&{"&:hover":{borderColor:yr(e.palette[n].main,.48),backgroundColor:yr(e.palette[n].main,e.palette.action.hoverOpacity)}})})),s=((r={})["&.".concat(zk.disabled)]=((o={})["&.".concat(zk.selected)]={color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground},o),r);return K(K([i],a,!0),[s],!1)}(t.ownerState)}}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:"solid 1px ".concat(yr(e.palette.grey[500],.08))},grouped:(t={margin:4},t["&.".concat(zk.selected)]={boxShadow:"none"},t["&:not(:first-of-type), &:not(:last-of-type)"]={borderRadius:e.shape.borderRadius,borderColor:"transparent"},t)}}}}function Pk(e){var t=dB(SB(e),function(e){var t,n;return{MuiTabs:{defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{indicator:{backgroundColor:e.palette.text.primary},scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:(t={padding:0,opacity:1,minWidth:48,minHeight:48,fontWeight:e.typography.fontWeightSemiBold,"&:not(:last-of-type)":(n={marginRight:e.spacing(3)},n[e.breakpoints.up("sm")]={marginRight:e.spacing(5)},n)},t["&:not(.".concat(vv.selected,")")]={color:e.palette.text.secondary},t)}}}}(e),HB(e),function(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:2*e.shape.borderRadius,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}(e),function(e){return{MuiMenuItem:{styleOverrides:{root:Z({},Xd(e))}}}}(e),{MuiLink:{defaultProps:{underline:"hover"}}},{MuiStack:{defaultProps:{useFlexGap:!0}}},function(e){return{MuiBadge:{styleOverrides:{dot:{borderRadius:"50%"},root:function(t){var n,r,o,i,a,s,l=t.ownerState,c="alway"===l.variant,u="online"===l.variant,d="busy"===l.variant,p="offline"===l.variant,f="invisible"===l.variant,m=((n={})["&.".concat(YB.invisible)]={transform:"unset"},n.width=10,n.zIndex=9,n.padding=0,n.height=10,n.minWidth="auto",n["&:before, &:after"]={content:"''",borderRadius:1,backgroundColor:e.palette.common.white},n);return Z(Z(Z(Z(Z({},u&&((r={})["& .".concat(YB.badge)]=Z(Z({},m),{backgroundColor:e.palette.success.main}),r)),d&&((o={})["& .".concat(YB.badge)]=Z(Z({},m),{backgroundColor:e.palette.error.main,"&:before":{width:6,height:2}}),o)),p&&((i={})["& .".concat(YB.badge)]=Z(Z({},m),{backgroundColor:e.palette.text.disabled,"&:before":{width:6,height:6,borderRadius:"50%"}}),i)),c&&((a={})["& .".concat(YB.badge)]=Z(Z({},m),{backgroundColor:e.palette.warning.main,"&:before":{width:2,height:4,transform:"translateX(1px) translateY(-1px)"},"&:after":{width:2,height:4,transform:"translateY(1px) rotate(125deg)"}}),a)),f&&((s={})["& .".concat(YB.badge)]={display:"none"},s))}}}}}(e),function(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{defaultProps:{primaryTypographyProps:{typography:"subtitle2"},secondaryTypographyProps:{component:"span"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}}}}(e),function(e){var t,n;return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:(t={},t["&.".concat(FB.selected)]={backgroundColor:yr(e.palette.primary.dark,.04),"&:hover":{backgroundColor:yr(e.palette.primary.dark,.08)}},t["&:last-of-type"]=(n={},n["& .".concat(RB.root)]={borderColor:"transparent"},n),t)}},MuiTableCell:{styleOverrides:{root:{borderBottomStyle:"dashed"},head:{fontSize:14,color:e.palette.text.secondary,fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:"linear-gradient(to bottom, ".concat(e.palette.background.neutral," 0%, ").concat(e.palette.background.neutral," 100%)")},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"}},styleOverrides:{root:{width:"100%"},toolbar:{height:64},actions:{marginRight:8},select:{paddingLeft:8,"&:focus":{borderRadius:e.shape.borderRadius}},selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}}}}(e),function(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:{borderColor:yr(e.palette.grey[500],.16)}}}}}(e),XB(e),$B(e),function(e){var t=function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})}))};return{MuiSelect:{defaultProps:{IconComponent:t},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},MuiNativeSelect:{defaultProps:{IconComponent:t},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}}}}(),function(e){return{MuiButton:{styleOverrides:{root:{"&:hover":{boxShadow:"none"}},sizeLarge:{height:48},containedInherit:{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},containedPrimary:{boxShadow:e.customShadows.primary},containedSecondary:{boxShadow:e.customShadows.secondary},containedInfo:{boxShadow:e.customShadows.info},containedSuccess:{boxShadow:e.customShadows.success},containedWarning:{boxShadow:e.customShadows.warning},containedError:{boxShadow:e.customShadows.error},outlinedInherit:{border:"1px solid ".concat(e.palette.grey[500]),"&:hover":{backgroundColor:e.palette.action.hover}},textInherit:{"&:hover":{backgroundColor:e.palette.action.hover}}}}}}(e),function(e){var t,n,r,o;return{MuiRating:{defaultProps:{emptyIcon:Y.jsx(KB,{}),icon:Y.jsx(KB,{})},styleOverrides:{root:(t={},t["&.".concat(qB.disabled)]={opacity:.48},t),iconEmpty:{color:yr(e.palette.grey[500],.48)},sizeSmall:(n={},n["& .".concat(Ei.root)]={width:20,height:20},n),sizeMedium:(r={},r["& .".concat(Ei.root)]={width:24,height:24},r),sizeLarge:(o={},o["& .".concat(Ei.root)]={width:28,height:28},o)}}}}(e),function(e){return{MuiDialog:{styleOverrides:{paper:function(t){var n=t.ownerState;return Z({boxShadow:e.customShadows.dialog,borderRadius:2*e.shape.borderRadius},!n.fullScreen&&{margin:e.spacing(2)})},paperFullScreen:{borderRadius:0}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{defaultProps:{disableSpacing:!0},styleOverrides:{root:{padding:e.spacing(3),"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}(e),{MuiAppBar:{defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}}},function(e){return{MuiAvatar:{variants:GB.map((function(t){return"default"===t?{props:{color:"default"},style:{color:e.palette.text.secondary,backgroundColor:yr(e.palette.grey[500],.24)}}:{props:{color:t},style:{color:e.palette[t].contrastText,backgroundColor:e.palette[t].main}}})),styleOverrides:{rounded:{borderRadius:1.5*e.shape.borderRadius},colorDefault:function(t){var n=t.ownerState,r=UB("".concat(n.alt));return Z({},!!n.alt&&Z({},"default"!==r?{color:e.palette[r].contrastText,backgroundColor:e.palette[r].main}:{color:e.palette.text.secondary,backgroundColor:yr(e.palette.grey[500],.24)}))}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:function(e){var t,n=e.ownerState;return Z({justifyContent:"flex-end"},"compact"===n.variant&&((t={width:40,height:40,position:"relative"})["& .".concat(ZB.avatar)]={margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}},t))},avatar:{fontSize:16,fontWeight:e.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:e.palette.primary.dark,backgroundColor:e.palette.primary.lighter}}}}}}(e),function(e){var t,n="light"===e.palette.mode;return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:(t={},t["&.".concat(JB.disabled)]={color:e.palette.action.disabled},t),rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[n?800:700]}}}}}(e),function(e){var t="light"===e.palette.mode;return{MuiDrawer:{styleOverrides:{root:function(n){var r,o=n.ownerState;return Z({},"temporary"===o.variant&&((r={})["& .".concat(_i.paper)]=Z(Z(Z({},Qd({theme:e})),"left"===o.anchor&&{boxShadow:"40px 40px 80px -8px ".concat(yr(t?e.palette.grey[500]:e.palette.common.black,.24))}),"right"===o.anchor&&{boxShadow:"-40px 40px 80px -8px ".concat(yr(t?e.palette.grey[500]:e.palette.common.black,.24))}),r))}}}}}(e),function(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}(e),function(e){var t="light"===e.palette.mode;return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}(e),function(e){var t;return{MuiPopover:{styleOverrides:{paper:Z(Z({},Qd({theme:e,dropdown:!0})),(t={},t["& .".concat(zf.root)]={paddingTop:0,paddingBottom:0},t))}}}}(e),{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}},function(e){return{MuiCheckbox:{defaultProps:{size:"small",icon:Y.jsx(rk,{}),checkedIcon:Y.jsx(ok,{}),indeterminateIcon:Y.jsx(ik,{})},styleOverrides:{root:{padding:e.spacing(1)}}}}}(e),function(e){var t,n,r,o,i=Qd({theme:e,dropdown:!0});return{MuiDataGrid:{styleOverrides:{root:(t={borderRadius:0,borderWidth:0},t["& .".concat(ak.root)]={borderTop:0},t["& .".concat(ak.toolbar)]={height:"auto"},t),cell:{borderBottom:"1px dashed ".concat(e.palette.divider)},selectedRowCount:{whiteSpace:"nowrap"},columnSeparator:{color:e.palette.divider},toolbarContainer:{padding:e.spacing(2),borderBottom:"1px dashed ".concat(e.palette.divider),backgroundColor:e.palette.background.neutral},paper:Z(Z({},i),{padding:0}),menu:(n={},n["& .".concat(Zi.root)]=Z({},i),n["& .".concat(zf.root)]=(r={padding:0},r["& .".concat(vu.root)]={minWidth:0,marginRight:e.spacing(2)},r),n),columnHeaders:{borderRadius:0,backgroundColor:e.palette.background.neutral},panelHeader:{padding:e.spacing(2)},panelFooter:(o={padding:e.spacing(2),justifyContent:"flex-end",borderTop:"dashed 1px ".concat(e.palette.divider)},o["& .".concat(nb.root)]={"&:first-of-type":{border:"solid 1px ".concat(yr(e.palette.grey[500],.24))},"&:last-of-type":{marginLeft:e.spacing(1.5),color:e.palette.background.paper,backgroundColor:e.palette.text.primary}},o),filterForm:{padding:e.spacing(2)},filterFormValueInput:{marginLeft:e.spacing(2)},filterFormColumnInput:{marginLeft:e.spacing(2)},filterFormOperatorInput:{marginLeft:e.spacing(2)}}}}}(e),function(e){return{MuiSkeleton:{defaultProps:{animation:"wave",variant:"rounded"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral},rounded:{borderRadius:2*e.shape.borderRadius}}}}}(e),function(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}(e),function(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:Y.jsx(sk,{}),defaultExpandIcon:Y.jsx(lk,{}),defaultEndIcon:Y.jsx(ck,{})}},MuiTreeItem:{styleOverrides:{label:Z({},e.typography.body2),iconContainer:{width:"auto"}}}}}(e),function(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:yr(e.palette.grey[900],.8)},invisible:{background:"transparent"}}}}}(e),nk(e),function(e){var t,n,r,o,i,a,s,l,c,u={focused:e.palette.text.primary,active:e.palette.text.secondary,placeholder:e.palette.text.disabled},d={label:e.typography.body1,value:e.typography.body2};return{MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:Z(Z({},d.value),(t={color:u.placeholder},t["&.".concat(nf.shrink)]=Z(Z({},d.label),(n={fontWeight:600,color:u.active},n["&.".concat(nf.focused)]={color:u.focused},n["&.".concat(nf.error)]={color:e.palette.error.main},n["&.".concat(nf.disabled)]={color:e.palette.text.disabled},n["&.".concat(nf.filled)]={transform:"translate(12px, 6px) scale(0.75)"},n)),t))}},MuiInputBase:{styleOverrides:{root:(r={},r["&.".concat(sd.disabled)]={"& svg":{color:e.palette.text.disabled}},r),input:Z(Z({},d.value),{"&::placeholder":{opacity:1,color:u.placeholder}})}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:yr(e.palette.grey[500],.32)},"&:after":{borderBottomColor:u.focused}}}},MuiOutlinedInput:{styleOverrides:{root:(o={},o["&.".concat(yd.focused)]=(i={},i["& .".concat(yd.notchedOutline)]={borderColor:u.focused},i),o["&.".concat(yd.error)]=(a={},a["& .".concat(yd.notchedOutline)]={borderColor:e.palette.error.main},a),o["&.".concat(yd.disabled)]=(s={},s["& .".concat(yd.notchedOutline)]={borderColor:e.palette.action.disabledBackground},s),o),notchedOutline:{borderColor:yr(e.palette.grey[500],.2),transition:e.transitions.create(["border-color"],{duration:e.transitions.duration.shortest})}}},MuiFilledInput:{defaultProps:{disableUnderline:!0},styleOverrides:{root:(l={borderRadius:e.shape.borderRadius,backgroundColor:yr(e.palette.grey[500],.08),"&:hover":{backgroundColor:yr(e.palette.grey[500],.16)}},l["&.".concat(xd.focused)]={backgroundColor:yr(e.palette.grey[500],.16)},l["&.".concat(xd.error)]=(c={backgroundColor:yr(e.palette.error.main,.08)},c["&.".concat(xd.focused)]={backgroundColor:yr(e.palette.error.main,.16)},c),l["&.".concat(xd.disabled)]={backgroundColor:e.palette.action.disabledBackground},l)}}}}(e),function(e){var t,n,r;return{MuiAccordion:{styleOverrides:{root:(t={backgroundColor:"transparent"},t["&.".concat(uk.expanded)]={boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},t["&.".concat(uk.disabled)]={backgroundColor:"transparent"},t)}},MuiAccordionSummary:{styleOverrides:{root:(n={paddingLeft:e.spacing(2),paddingRight:e.spacing(1)},n["&.".concat(dk.disabled)]=(r={opacity:1,color:e.palette.action.disabled},r["& .".concat(ju.root)]={color:"inherit"},r),n),expandIconWrapper:{color:"inherit"}}}}}(e),function(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}(e),mk(e),function(e){return{MuiFormControlLabel:{styleOverrides:{label:Z({},e.typography.body2)}},MuiRadio:{defaultProps:{size:"small",icon:Y.jsx(hk,{}),checkedIcon:Y.jsx(gk,{})},styleOverrides:{root:{padding:e.spacing(1)}}}}}(e),yk(e),function(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":Z({},e.typography.body2)}}}}}(e),{MuiCssBaseline:{styleOverrides:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%"},"#root, #__next":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}}},img:{maxWidth:"100%",display:"inline-block",verticalAlign:"bottom"}}}},function(e){var t,n,r;return{MuiAutocomplete:{defaultProps:{popupIcon:Y.jsx((function(e){return Y.jsx(Ii,Z({},e,{children:Y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})}))}),{})},styleOverrides:{root:(t={},t["& span.".concat(zd.tag)]=Z(Z({},e.typography.subtitle2),{height:24,minWidth:24,lineHeight:"24px",textAlign:"center",padding:e.spacing(0,.75),color:e.palette.text.secondary,borderRadius:e.shape.borderRadius,backgroundColor:yr(e.palette.grey[500],.16)}),t),paper:Z({},Qd({theme:e,dropdown:!0})),listbox:(n={padding:0},n["& .".concat(zd.option)]=Z({},Xd(e)),n),endAdornment:(r={},r["& .".concat(Ei.root)]={width:18,height:18},r)}}}}(e),Tk(e),function(e){var t;return Z(Z({MuiPickersLayout:{styleOverrides:{root:{"& .MuiPickersLayout-actionBar":(t={},t["& .".concat(nb.root,":last-of-type")]={backgroundColor:e.palette.text.primary,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[800]},t)}}}},Ok),Mk)}(e),{MuiLoadingButton:{styleOverrides:{root:{"&.MuiButton-text":{"& .MuiLoadingButton-startIconPendingStart":{marginLeft:0},"& .MuiLoadingButton-endIconPendingEnd":{marginRight:0}}}}}});return t}var Nk,Ek,Bk,kk,Lk=CB("light"),Ik=[Z({name:"default"},Lk.primary),{name:"cyan",lighter:"#CCF4FE",light:"#68CDF9",main:"#078DEE",dark:"#0351AB",darker:"#012972",contrastText:"#FFFFFF"},{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#FFFFFF"},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#FFFFFF"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:Lk.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#FFFFFF"}];function Sk(t){var n=t.children,r=t.themeDirection;e.useEffect((function(){document.dir=r}),[r]);var o=E({key:"rtl",prepend:!0,stylisPlugins:[P.prefixer,N]});return"rtl"===r?Y.jsx(s.CacheProvider,{value:o,children:n}):Y.jsx(Y.Fragment,{children:n})}function Wk(e){var t,r=e.notification,o=e.onClickNotification;return Y.jsx(n.ListItemButton,{sx:Z({py:1.5,px:2.5,mt:"1px"},!r.isRead&&{bgcolor:"action.selected"}),onClick:function(){return o(r)},disabled:!r.clickable,children:Y.jsx(n.ListItemText,{disableTypography:!0,primary:r.text,secondary:Y.jsxs(n.Stack,{justifyContent:"space-between",direction:"row",children:[Y.jsxs(n.Stack,{direction:"row",sx:{mt:.5,typography:"caption",color:"text.disabled"},alignItems:"center",children:[Y.jsx(jo,{icon:"eva:clock-fill",width:16,sx:{mr:.5}}),Y.jsx(n.Typography,{variant:"caption",children:(t=r.createdAt,z.formatDistanceToNow(new Date(t),{addSuffix:!0}))})]}),r.type&&r.clickable&&Y.jsx(n.Chip,{sx:{fontSize:"12px"},label:"Check Now"})]})})})}!function(e){e.NONE="NONE",e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL"}(Nk||(Nk={})),function(e){e.LOW="LOW",e.MEDIUM="MEDIUM",e.HIGH="HIGH"}(Ek||(Ek={})),function(e){e.notifications="إشعارات",e.youHave="لديك",e.unreadMessages="رسائل غير مقروءة",e.showMore="عرض المزيد",e.showLess="عرض أقل"}(Bk||(Bk={})),function(e){e.notifications="Notifications",e.youHave="You have",e.unreadMessages="unread messages",e.showMore="Show more",e.showLess="Show less"}(kk||(kk={}));var Hk=go("span")((function(e){var t,n=e.arrow,r=e.theme,o="solid 1px ".concat(yr(r.palette.grey[500],.12)),i={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},s={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},l={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(((t={display:"none"})[r.breakpoints.up("sm")]={zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:r.palette.background.paper},t),"top-left"===n&&Z(Z({},i),{left:20})),"top-center"===n&&Z(Z({},i),{left:0,right:0,margin:"auto"})),"top-right"===n&&Z(Z({},i),{right:20})),"bottom-left"===n&&Z(Z({},a),{left:20})),"bottom-center"===n&&Z(Z({},a),{left:0,right:0,margin:"auto"})),"bottom-right"===n&&Z(Z({},a),{right:20})),"left-top"===n&&Z(Z({},s),{top:20})),"left-center"===n&&Z(Z({},s),{top:0,bottom:0,margin:"auto"})),"left-bottom"===n&&Z(Z({},s),{bottom:20})),"right-top"===n&&Z(Z({},l),{top:20})),"right-center"===n&&Z(Z({},l),{top:0,bottom:0,margin:"auto"})),"right-bottom"===n&&Z(Z({},l),{bottom:20}))}));function Rk(e){var t=e.open,r=e.children,o=e.arrow,i=void 0===o?"top-right":o,a=e.disabledArrow,s=e.sx,l=G(e,["open","children","arrow","disabledArrow","sx"]),c=function(e){var t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}}}return t}(i),u=c.style,d=c.anchorOrigin,p=c.transformOrigin;return Y.jsxs(n.Popover,Z({open:Boolean(t),anchorEl:t,anchorOrigin:d,transformOrigin:p,PaperProps:{sx:Z(Z(Z({p:1,width:"auto",overflow:"inherit"},u),{"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}}}),s)}},l,{children:[!a&&Y.jsx(Hk,{arrow:i}),r]}))}var Fk=e.forwardRef((function(e,t){var r=e.children,o=e.size,i=void 0===o?"medium":o,a=G(e,["children","size"]);return Y.jsx(Yk,{size:i,children:Y.jsx(n.IconButton,Z({size:i,ref:t},a,{children:r}))})})),Vk={hover:{scale:1.1},tap:{scale:.95}},Qk={hover:{scale:1.09},tap:{scale:.97}},Xk={hover:{scale:1.08},tap:{scale:.99}};function Yk(e){var t=e.size,r=e.children,o="small"===t,i="large"===t;return Y.jsx(n.Box,{component:p.m.div,whileTap:"tap",whileHover:"hover",variants:o&&Vk||i&&Xk||Qk,sx:{display:"inline-flex"},children:r})}function Zk(e){return It("MuiCard",e)}St("MuiCard",["root"]);const Gk=["className","raised"],Uk=go(Ki,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),qk=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiCard"}),{className:r,raised:o=!1}=n,i=Rt(n,Gk),a=re({},n,{raised:o}),s=(e=>{const{classes:t}=e;return Et({root:["root"]},Zk,t)})(a);return Y.jsx(Uk,re({className:$n(s.root,r),elevation:o?8:void 0,ref:t,ownerState:a},i))}));"production"!==process.env.NODE_ENV&&(qk.propTypes={children:Ee.node,classes:Ee.object,className:Ee.string,raised:ne(Ee.bool,(e=>e.raised&&"outlined"===e.variant?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null)),sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object])});var Kk=qk;function Jk(e){return It("MuiCardHeader",e)}var _k=St("MuiCardHeader",["root","avatar","action","content","title","subheader"]);const $k=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],eL=go("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>re({[`& .${_k.title}`]:t.title,[`& .${_k.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),tL=go("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),nL=go("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),rL=go("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),oL=k.forwardRef((function(e,t){const n=fo({props:e,name:"MuiCardHeader"}),{action:r,avatar:o,className:i,component:a="div",disableTypography:s=!1,subheader:l,subheaderTypographyProps:c,title:u,titleTypographyProps:d}=n,p=Rt(n,$k),f=re({},n,{component:a,disableTypography:s}),m=(e=>{const{classes:t}=e;return Et({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Jk,t)})(f);let h=u;null==h||h.type===Tu||s||(h=Y.jsx(Tu,re({variant:o?"body2":"h5",className:m.title,component:"span",display:"block"},d,{children:h})));let g=l;return null==g||g.type===Tu||s||(g=Y.jsx(Tu,re({variant:o?"body2":"body1",className:m.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:g}))),Y.jsxs(eL,re({className:$n(m.root,i),as:a,ref:t,ownerState:f},p,{children:[o&&Y.jsx(tL,{className:m.avatar,ownerState:f,children:o}),Y.jsxs(rL,{className:m.content,ownerState:f,children:[h,g]}),r&&Y.jsx(nL,{className:m.action,ownerState:f,children:r})]}))}));"production"!==process.env.NODE_ENV&&(oL.propTypes={action:Ee.node,avatar:Ee.node,children:Ee.node,classes:Ee.object,className:Ee.string,component:Ee.elementType,disableTypography:Ee.bool,subheader:Ee.node,subheaderTypographyProps:Ee.object,sx:Ee.oneOfType([Ee.arrayOf(Ee.oneOfType([Ee.func,Ee.object,Ee.bool])),Ee.func,Ee.object]),title:Ee.node,titleTypographyProps:Ee.object});var iL=oL,aL={},sL=ya;Object.defineProperty(aL,"__esModule",{value:!0});var lL=aL.default=void 0,cL=sL(wa()),uL=Y,dL=(0,cL.default)((0,uL.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"StorageOutlined");lL=aL.default=dL,exports.ActionDialog=function(e){var t=e.open,r=e.title,o=e.message,i=e.secondaryTitle,a=e.secondaryMessage,s=e.isSecondaryAction,c=void 0!==s&&s,u=e.onClose,d=e.onAction,p=e.onSecondaryAction,f=e.secondaryButtonText,m=void 0===f?"Confirm":f,h=e.buttonText,g=void 0===h?"Confirm":h,v=e.loading,A=function(){c?p?p():u():d&&d()};return Y.jsxs(n.Dialog,{open:t,fullWidth:!0,keepMounted:!0,onClose:function(e,t){"backdropClick"!==t&&u()},"aria-describedby":"alert-dialog-slide-description",disableEscapeKeyDown:!0,children:[Y.jsx(n.DialogTitle,{children:c?i:r}),Y.jsx(n.DialogContent,{children:Y.jsx(n.DialogContentText,{id:"alert-dialog-slide-description",children:c?a:o})}),Y.jsxs(n.DialogActions,{children:[Y.jsx(n.Button,{color:"inherit",onClick:u,disabled:v,children:"Cancel"}),c?Y.jsx(l.LoadingButton,{variant:"contained",onClick:A,loading:v,children:m}):Y.jsx(l.LoadingButton,{variant:"contained",onClick:A,loading:v,children:g})]})]})},exports.ApiContext=fg,exports.ApiContextProvider=function(t){var n=e.useState({statusCode:null,dashbaordUrlPrefix:t.dashbaordUrlPrefix}),r=n[0],o=n[1],i=t.language,a=t.onLogout,s=t.baseUrl,l=t.sleepTime,c=t.dashbaordUrlPrefix;ug.defaults.baseURL=s;var u=Bg().setErrorAlert;return ug.interceptors.request.use((function(e){return e.headers=Z(Z({},e.headers),{Accept:"application/json","Content-Type":"application/json","accept-language":i,language:i}),e.withCredentials=!0,e._auth=!1!==e._auth,e}),(function(e){Promise.reject(e.request.response)})),ug.interceptors.response.use((function(e){return U(void 0,void 0,void 0,(function(){return q(this,(function(t){switch(t.label){case 0:return l?[4,(n=l,new Promise((function(e){return setTimeout(e,n)})))]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,e]}var n}))}))}),(function(e){var t,n,r,i,s;return U(this,void 0,void 0,(function(){var l;return q(this,(function(d){return l=e.config,x.isAxiosError(e)&&401===(null===(t=e.response)||void 0===t?void 0:t.status)&&l._auth?(o({statusCode:401,dashbaordUrlPrefix:c}),a()):o({statusCode:401,dashbaordUrlPrefix:c}),403===(null===(r=null===(n=function(e){try{return JSON.parse(e)}catch(e){return null}}(e))||void 0===n?void 0:n.meta)||void 0===r?void 0:r.status)&&u(JSON.parse(e).meta.message),[2,Promise.reject(null!==(s=null===(i=e.request)||void 0===i?void 0:i.response)&&void 0!==s?s:e)]}))}))})),Y.jsx(fg.Provider,{value:r,children:t.children})},exports.AppConfigurationsContext=Og,exports.AppConfigurationsContextProvider=function(t){var n,r,o,i,a=e.useContext(Ag).resources,s=null==a?void 0:a.appConfigurations,l=e.useState(null!==(n=null==s?void 0:s.themeLayout)&&void 0!==n?n:"vertical"),c=l[0],u=l[1],d=null!==(r=null==s?void 0:s.textFieldSize)&&void 0!==r?r:"small",p=null!==(o=null==s?void 0:s.defaultRowsPerPage)&&void 0!==o?o:50,f=null===(i=null==s?void 0:s.themeStretch)||void 0===i||i;return Y.jsx(Og.Provider,{value:{textFieldSize:d,themeLayout:c,defaultRowsPerPage:p,themeStretch:f,setThemeLayout:u},children:t.children})},exports.CredentialsContext=Mg,exports.CredentialsContextProvider=function(e){var t=e.identityPoolId,n=e.region,r=e.userPoolId,o=e.userPoolWebClientId,i=e.bucket,a=e.googleApiKey,s=e.bucketUrl;return j.Auth.configure({Auth:{identityPoolId:t,region:n,userPoolId:r,userPoolWebClientId:o}}),j.Storage.configure({region:n,bucket:i}),Y.jsx(Mg.Provider,{value:{identityPoolId:t,region:n,userPoolId:r,userPoolWebClientId:o,bucket:i,googleApiKey:a,bucketUrl:s},children:e.children})},exports.DashboardLayout=eT,exports.DialogContext=Dg,exports.DialogContextProvider=function(t){var n=t.children,r=e.useState(!1),o=r[0],i=r[1],a=e.useState(void 0),s=a[0],l=a[1],c=function(){i(!1)};return Y.jsxs(Dg.Provider,{value:{openDialog:function(e,t){i(!0),l(Y.jsx(e,{open:!0,onDismiss:c,data:t}))}},children:[o&&s,n]})},exports.IdenityModelConfiguration=function(t){var n=t.path,r=t.modelRoute,o=e.useContext(fg).dashbaordUrlPrefix;return Y.jsx(vM,{path:n,isEdit:!0,Component:function(e){return Y.jsx(cz,Z({},e,{baseApiRoute:o,apiRoute:"".concat(o,"/").concat(r),path:n}))},modelRoute:r})},exports.IdentityClient=ug,exports.IdentityDumpServiceAction=function(t){var r,o=t.baseUrl,i=e.useState(!1),a=i[0],s=i[1],c=e.useState([]),u=c[0],d=c[1],p=e.useState([]),f=p[0],m=p[1],h=e.useState([]),g=h[0],v=h[1],A=Bg(),y=A.setSuccessAlert,b=A.setErrorAlert,x=e.useState(!1),w=x[0],j=x[1],C=n.useTheme(),O=function(e){return function(){var t=u.indexOf(e),n=K([],u,!0);-1===t?n.push(e):n.splice(t,1),d(n)}},M=function(e){return(t=u,n=e,t.filter((function(e){return n.includes(e)}))).length;var t,n};return Y.jsxs(n.Box,{sx:{position:"relative"},children:[Y.jsx(l.LoadingButton,{onClick:function(){j(!0),fetch("".concat(o,"/identity/services/models"),{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}}).then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((function(e){var t=e.data.sort((function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}));j(!1),d(t),m(t),v(t),s(!0)})).catch((function(e){console.error("There was a problem with the fetch operation:",e)}))},startIcon:Y.jsx(lL,{}),loading:w,variant:"outlined",children:"Restore Database"}),Y.jsx(n.Dialog,{open:a,onClose:function(){return s(!1)},maxWidth:"md",fullWidth:!0,children:Y.jsx(eh,{container:!0,sx:{justifyContent:"center",alignItems:"center",width:"100%",position:"relative"},children:Y.jsx(eh,{item:!0,xs:12,children:Y.jsxs(Kk,{sx:{width:"100%",position:"relative",overflow:"visible",display:"flex",flexDirection:"column"},children:[Y.jsx(iL,{sx:{px:2,py:1,position:"sticky",top:"0px",zIndex:1e3,background:"white",borderColor:"rgba(145, 158, 171, 0.24)",borderBottomWidth:"thin",borderStyle:"solid"},title:Y.jsxs(n.Stack,{direction:"row",spacing:2,alignItems:"center",mb:1,children:[Y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",version:"1.1",width:"21",height:"24",viewBox:"0 0 21 24",children:[Y.jsx("defs",{children:Y.jsx("clipPath",{id:"master_svg0_2_166",children:Y.jsx("rect",{x:"0",y:"0",width:"21",height:"24",rx:"0"})})}),Y.jsx("g",{"clip-path":"url(#master_svg0_2_166)",children:Y.jsx("g",{transform:"matrix(1,0,0,-1,0,49.03125)",children:Y.jsx("g",{children:Y.jsx("path",{d:"M21,44.765625L21,42.515625L21,44.765625L21,42.515625Q20.9062,40.921825,17.9062,39.843725Q14.9531,38.812525,10.5,38.765625Q6.04688,38.812525,3.09375,39.843725Q0.09375,40.921825,0,42.515625L0,44.765625Q0.09375,46.359425,3.09375,47.437525Q6.04688,48.468725,10.5,48.515625Q14.9531,48.468725,17.9062,47.437525Q20.9062,46.359425,21,44.765625ZM18.4219,38.437525Q19.9219,38.953125,21,39.796825L21,35.015625Q20.9062,33.421875,17.9062,32.343745Q14.9531,31.312505,10.5,31.265625Q6.04688,31.312505,3.09375,32.343745Q0.09375,33.421875,0,35.015625L0,39.796825Q1.07812,38.953125,2.57812,38.437525Q5.85938,37.312525,10.5,37.265625Q15.1406,37.312525,18.4219,38.437525ZM0,32.296875Q1.07812,31.453125,2.57812,30.937505Q5.85938,29.812505,10.5,29.765625Q15.1406,29.812505,18.4219,30.937505Q19.9219,31.453125,21,32.296875L21,28.265625Q20.9062,26.671875,17.9062,25.593745Q14.9531,24.5625,10.5,24.515625Q6.04688,24.5625,3.09375,25.593745Q0.09375,26.671875,0,28.265625L0,32.296875Z",fill:C.palette.primary.main,"fill-opacity":"1"})})})})]}),Y.jsx(n.Typography,{variant:"h4",children:"Restore Database Models"})]}),subheader:Y.jsxs(n.Stack,{children:[Y.jsxs(n.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[Y.jsx(fu,{onClick:(r=f,function(){var e,t;M(r)===r.length?d(pg(u,r)):d((t=r,K(K([],e=u,!0),pg(t,e),!0)))}),checked:M(u)===g.length&&0!==g.length,indeterminate:M(u)!==g.length&&0!==M(u),disabled:0===g.length,inputProps:{"aria-label":"all items selected"}}),Y.jsxs(n.Typography,{variant:"subtitle2",children:[Y.jsx("strong",{children:"Selected Models:"}),M(u),"/",g.length," selected"]})]}),Y.jsx(Gv,{placeholder:"Search models by name...",onInputChange:function(e){if(e){var t=e.toLowerCase();m((function(e){return e.filter((function(e){return e.toLowerCase().includes(t)}))}))}else m(g)},size:"small"})]})}),Y.jsx(Nf,{sx:{width:"100%",minHeight:230,bgcolor:"background.paper",overflow:"auto"},dense:!0,component:"div",role:"list",children:f.map((function(e){var t="transfer-list-all-item-".concat(e,"-label");return Y.jsxs(hx,{role:"listitem",onClick:O(e),children:[Y.jsx(xu,{children:Y.jsx(fu,{checked:u.includes(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),Y.jsx(Lu,{id:t,primary:e})]},e)}))}),Y.jsxs(n.Alert,{severity:"warning",sx:{mx:2},children:[Y.jsx(n.AlertTitle,{children:"Warning"}),"After restoration, you will need to refresh the page for changes to take effect."]}),Y.jsx(l.LoadingButton,{onClick:function(){j(!0),fetch("".concat(o,"/identity/services/dump"),{method:"POST",body:JSON.stringify({models:pg(f,u)}),credentials:"include",headers:{"Content-Type":"application/json"}}).then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((function(e){j(!1),s(!1),y&&y("Database restoration successful! Page will refresh in 3 sec"),setTimeout((function(){window.location.reload()}),3e3)})).catch((function(e){b&&b("'There was a problem with the database restoration operation: ".concat(e)),console.error("There was a problem with the fetch operation:",e)}))},loading:w,variant:"contained",sx:{m:2,alignSelf:"end"},disabled:w,children:"Start Restore"})]})})})})]})},exports.IdentityEdit=vM,exports.IdentityGrid=GM,exports.IdentityList=ez,exports.IdentityPage=function(e){var t=e.Component,r=e.LoadingSkelton,o=e.Actions,i=e.HeadingView,a=e.BreadcrumbsChildren,s=e.DefaultActions,l=e.BreadCrumbLinks;e.variant;var c=e.loading,u=e.data,d=e.taptitle,p=e.headingTitle,f=e.themeStretch,m=void 0!==f&&f;return Y.jsx(J,{title:d,children:Y.jsxs(n.Container,{maxWidth:!m&&"lg",children:[!c&&Y.jsx(ee,{heading:p,headingView:i&&Y.jsx(i,{record:u}),links:l?l(u):[],action:Y.jsxs(n.Stack,{direction:"row",spacing:2,children:[o&&Y.jsx(o,{record:u}),s&&Y.jsx(s,{})]}),children:u&&a&&Y.jsx(a,{data:u})}),c?Y.jsx(n.Grid,{container:!0,alignItems:"center",children:Y.jsx(r,{})},"skeleton"):t&&Y.jsx(t,{data:u})]})})},exports.IdentityPermissionPage=function(t){var n=this,o=t.isEdit,i=r.useParams().id,a=void 0===i?"":i,s=e.useContext(fg).dashbaordUrlPrefix,l=e.useState([]),c=l[0],u=l[1],d=e.useState(void 0),p=d[0],f=d[1],m=e.useState(!0),h=m[0],g=m[1];return e.useEffect((function(){U(n,void 0,void 0,(function(){var e,t,n,r;return q(this,(function(i){switch(i.label){case 0:return e=o?"?id=".concat(a):"",[4,ug.get("".concat(s,"/permissions/all")+e)];case 1:return t=i.sent(),n=t.data.data.permissions,r=t.data.data.permissionGroup,u(n),f(r),g(!1),[2]}}))}))}),[]),Y.jsx(Y.Fragment,{children:o&&(h||0===c.length)||o&&!p?Y.jsx(Y.Fragment,{children:"... loading"}):Y.jsx(Az,{modelPermissions:c,fetchLoading:h,isEdit:o,permissionGroup:p})})},exports.IdentityRouter=function(t){var n=e.useContext(Ag).resources,o=e.useContext(wg),i=o.paths,a=o.root,s=o.home,l=e.useContext(Og).themeLayout,c=e.useContext(fg).dashbaordUrlPrefix,u=[];if(n)for(var d in(u=[]).push.apply(u,t.customs),n)if("modelParents"!==d&&"appConfigurations"!==d){var p=n[d],f=p.properties.path,m=p.properties.modelName,h={path:f,children:[{element:Y.jsx(r.Navigate,{to:i[d].list,replace:!0}),index:!0},{path:"list",element:Y.jsx(ez,{apiRoute:"".concat(c,"/").concat(f),path:d,modelName:m},"".concat(f,".list"))},{path:"new",element:Y.jsx(vM,{modelRoute:"".concat(f),path:d,isEdit:!1})},{path:":id/edit",element:Y.jsx(vM,{modelRoute:"".concat(f),path:d,isEdit:!0})},{path:":id/show",element:Y.jsx(az,{path:d,modelRoute:f},"".concat(d,".show"))}]};u.push(h)}return{path:a,children:[{path:"",element:n?Y.jsx(eT,{Logo:"mini"===l?t.MiniLogo:t.Logo,children:Y.jsx(r.Outlet,{})}):Y.jsx(Y.Fragment,{}),children:K(K([],u,!0),[{path:"",element:n?Y.jsx(r.Navigate,{to:i[s].root}):Y.jsx(Y.Fragment,{})}],!1)}]}},exports.IdentityShow=az,exports.NextPreviousButtons=_C,exports.NotificationContext=Pg,exports.NotificationPopover=function(){var t,o=e.useState(null),i=o[0],a=o[1],s=Ig().notifications,l=Hg.isEnglish(),c=e.useContext(fg).dashbaordUrlPrefix,u=l?kk:Bk,d=e.useState(s),p=d[0],f=d[1],m=e.useState(!1),h=m[0],g=m[1],v=null==p?void 0:p.filter((function(e){return!1===e.isRead})).length,A=r.useNavigate();e.useEffect((function(){f(s)}),[s]);var y=function(e){var t,n;a(null),ug.post("".concat(c,"/notifications/markAsRead/").concat(e.id)),f(null==p?void 0:p.map((function(t){return t.id===e.id?Z(Z({},t),{isRead:!0}):Z({},t)}))),e.redirectUrlType===Nk.INTERNAL?A(null!==(t=e.redirectUrl)&&void 0!==t?t:"/"):e.redirectUrlType===Nk.EXTERNAL&&window.open(null!==(n=e.redirectUrl)&&void 0!==n?n:"/")},b=h?p:null==p?void 0:p.slice(0,4);return Y.jsxs(Y.Fragment,{children:[Y.jsx(Fk,{color:i?"primary":"default",onClick:function(e){a(e.currentTarget)},sx:{width:40,height:40},children:Y.jsx(n.Badge,{badgeContent:v,color:"error",children:Y.jsx(jo,{icon:"eva:bell-fill"})})}),Y.jsxs(Rk,{open:i,onClose:function(){a(null)},sx:{width:360,p:0},children:[Y.jsxs(n.Box,{sx:{display:"flex",alignItems:"center",py:2,px:2.5},children:[Y.jsxs(n.Box,{sx:{flexGrow:1},children:[Y.jsx(n.Typography,{variant:"subtitle1",children:u.notifications}),Y.jsx(n.Typography,{variant:"body2",sx:{color:"text.secondary"},children:"".concat(u.youHave," ").concat(null!=v?v:0," ").concat(u.unreadMessages)})]}),v&&v>0&&Y.jsx(n.Tooltip,{title:" Mark all as read",children:Y.jsx(n.IconButton,{color:"primary",onClick:function(){ug.post("".concat(c,"/notifications/markAllAsRead")),f(null==p?void 0:p.map((function(e){return Z(Z({},e),{isRead:!0})})))},children:Y.jsx(jo,{icon:"eva:done-all-fill"})})})]}),Y.jsx(n.Divider,{sx:{borderStyle:"dashed"}}),Y.jsx(n.Paper,{style:{minHeight:200,maxHeight:400,overflow:"auto"},children:Y.jsx(n.List,{disablePadding:!0,children:null==b?void 0:b.map((function(e){return Y.jsx(Wk,{notification:e,onClickNotification:y},e.text)}))})}),Y.jsx(n.Divider,{sx:{borderStyle:"dashed"}}),(null!==(t=null==p?void 0:p.length)&&void 0!==t?t:0)>4&&Y.jsx(n.Box,{sx:{p:1},children:Y.jsx(n.Button,{fullWidth:!0,disableRipple:!0,onClick:function(){return g(!h)},children:h?u.showLess:u.showMore})})]})]})},exports.NotificationsContextProvider=function(t){var n=t.notificationsUrl,r=mg(),o=r.requestState,i=r.get,a=r.revertToIdle;e.useEffect((function(){s()}),[]);var s=e.useCallback((function(){i({url:n})}),[]);return Y.jsx(Pg.Provider,{value:{notifications:o.data,getNotifications:s,state:o.state,clearNotifications:function(){a()}},children:t.children})},exports.PathsContext=wg,exports.PathsContextProvider=function(t){var n=t.root,r=t.children,o=t.home,i=e.useContext(Ag).resources,a={},s=function(e){if("modelParents"===e||"appConfigurations"===e)return"continue";var t=i[e].properties.path;a[e]={root:jg(n,"/"+t),list:jg(n,"/"+t+"/list"),edit:function(e){return jg(n,"/"+t+"/".concat(e,"/edit"))},show:function(e){return jg(n,"/"+t+"/".concat(e,"/show"))},new:jg(n,"/"+t+"/new")}};for(var l in i)s(l);return Y.jsx(wg.Provider,{value:{paths:a,root:n,home:o},children:r})},exports.ResourcesContext=Ag,exports.ResourcesContextProvider=function(t){var n,r=t.resourcesUrl,o=t.laodingLogo,i=t.logoSxProps,a=mg(),s=a.requestState,l=a.get,c=a.revertToIdle;e.useEffect((function(){u()}),[]);var u=e.useCallback((function(){l({url:r})}),[]);return Y.jsx(Ag.Provider,{value:{resources:null===(n=s.data)||void 0===n?void 0:n.resources,getResources:u,state:s.state,clearResources:function(){c()}},children:s.state===exports.RequestState.LOADING?Y.jsx(vg,{loadingLogo:o,logoSxProps:i}):t.children})},exports.ShowRecord=iz,exports.SnackAlertContext=zg,exports.SnackAlertProvider=function(t){var r,o=t.children,i=e.useState({state:!1}),a=i[0],s=i[1],l=function(e,t,n,r){setTimeout((function(){s({state:!1})}),r||4e3),s({state:!0,message:e,severity:t,position:n})};return Y.jsxs(zg.Provider,{value:{setAlert:l,setErrorAlert:function(e,t,n){l(e,"error",t,n)},setSuccessAlert:function(e,t,n){l(e,"success",t,n)}},children:[a.state&&Y.jsx(n.Snackbar,{open:a.state,anchorOrigin:null!==(r=a.position)&&void 0!==r?r:{horizontal:"center",vertical:"top"},children:Y.jsx(n.Alert,{onClose:function(){s({state:!1})},severity:a.severity,children:a.message})}),o]})},exports.State=dg,exports.ThemeProvider=function(t){var n,r=t.children,o=t.themeColorPresets,i=t.themeContrast,a=t.themeDirection,s=t.themeMode,l=t.customColorPresets,c=function(e,t){return{palette:CB(e,t),shadows:TB(e),customShadows:kB(e,t)}}(null!=s?s:"light",l),u=l?{palette:{presetsColor:n=l},customShadows:{primary:"0 8px 16px 0 ".concat(yr("".concat(null==n?void 0:n.main),.24))}}:function(e){var t=Ik.find((function(t){return t.name===e}));return{palette:{primary:t},customShadows:{primary:"0 8px 16px 0 ".concat(yr("".concat(null==t?void 0:t.main),.24))}}}(null!=o?o:"default"),d=function(e,t,n){return{theme:Z({},e&&"light"===t&&{palette:{background:{default:CB(t,n).grey[100]}}}),components:Z({},e&&{MuiCard:{styleOverrides:{root:{boxShadow:kB(t,n).z4}}}})}}("bold"===i,null!=s?s:"light",l),p=function(e){return{direction:e}}(null!=a?a:"ltr"),f=e.useMemo((function(){return{palette:CB("light",l),shadows:TB("light"),customShadows:kB("light",l),typography:EB,shape:{borderRadius:8}}}),[]),m=co(e.useMemo((function(){return dB(f,p,c,u,d.theme)}),[f,p,c,u,d.theme]));return m.components=dB(Pk(m),d.components),Y.jsx(Ao,{theme:m,children:Y.jsxs(Sk,{themeDirection:null!=a?a:"ltr",children:[Y.jsx(hB,{}),r]})})},exports.path=jg,exports.useApi=mg,exports.useAppConfigurations=Ng,exports.useCredentials=function(){return e.useContext(Mg)},exports.useDialogs=Lg,exports.useNavData=Cg,exports.useNotifications=Ig,exports.usePaths=kg,exports.useResources=Eg,exports.useSnackAlert=Bg;
|