@ws-ui/store 0.1.8 → 0.1.9
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/dist/index.cjs.js +40 -40
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1963 -1961
- package/dist/index.es.js.map +1 -1
- package/dist/modules/root/types.d.ts +5 -0
- package/package.json +7 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@ws-ui/shared"),dt=require("react"),XE=require("react-dom");function rt(e){for(var n=arguments.length,t=Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=sS[e],i=s?typeof s=="function"?s.apply(null,t):s:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vr(e){return!!e&&!!e[xe]}function Sr(e){var n;return!!e&&(function(t){if(!t||typeof t!="object")return!1;var a=Object.getPrototypeOf(t);if(a===null)return!0;var s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===iS}(e)||Array.isArray(e)||!!e[Va]||!!(!((n=e.constructor)===null||n===void 0)&&n[Va])||Ps(e)||Ds(e))}function Kr(e,n,t){t===void 0&&(t=!1),gn(e)===0?(t?Object.keys:ia)(e).forEach(function(a){t&&typeof a=="symbol"||n(a,e[a],e)}):e.forEach(function(a,s){return n(s,a,e)})}function gn(e){var n=e[xe];return n?n.i>3?n.i-4:n.i:Array.isArray(e)?1:Ps(e)?2:Ds(e)?3:0}function pn(e,n){return gn(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function os(e,n){return gn(e)===2?e.get(n):e[n]}function Zp(e,n,t){var a=gn(e);a===2?e.set(n,t):a===3?e.add(t):e[n]=t}function Qp(e,n){return e===n?e!==0||1/e==1/n:e!=e&&n!=n}function Ps(e){return aS&&e instanceof Map}function Ds(e){return oS&&e instanceof Set}function yt(e){return e.o||e.t}function yc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var n=eh(e);delete n[xe];for(var t=ia(n),a=0;a<t.length;a++){var s=t[a],i=n[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),n)}function mc(e,n){return n===void 0&&(n=!1),bc(e)||Vr(e)||!Sr(e)||(gn(e)>1&&(e.set=e.add=e.clear=e.delete=ZE),Object.freeze(e),n&&Kr(e,function(t,a){return mc(a,!0)},!0)),e}function ZE(){rt(2)}function bc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Or(e){var n=Hu[e];return n||rt(18,e),n}function _c(e,n){Hu[e]||(Hu[e]=n)}function eo(){return process.env.NODE_ENV==="production"||da||rt(0),da}function cu(e,n){n&&(Or("Patches"),e.u=[],e.s=[],e.v=n)}function ds(e){Uu(e),e.p.forEach(QE),e.p=null}function Uu(e){e===da&&(da=e.l)}function Id(e){return da={p:[],l:da,h:e,m:!0,_:0}}function QE(e){var n=e[xe];n.i===0||n.i===1?n.j():n.g=!0}function lu(e,n){n._=n.p.length;var t=n.p[0],a=e!==void 0&&e!==t;return n.h.O||Or("ES5").S(n,e,a),a?(t[xe].P&&(ds(n),rt(4)),Sr(e)&&(e=ps(n,e),n.l||hs(n,e)),n.u&&Or("Patches").M(t[xe].t,e,n.u,n.s)):e=ps(n,t,[]),ds(n),n.u&&n.v(n.u,n.s),e!==Sc?e:void 0}function ps(e,n,t){if(bc(n))return n;var a=n[xe];if(!a)return Kr(n,function(l,d){return Fd(e,a,n,l,d,t)},!0),n;if(a.A!==e)return n;if(!a.P)return hs(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=yc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Kr(i,function(l,d){return Fd(e,a,s,l,d,t,c)}),hs(e,s,!1),t&&e.u&&Or("Patches").N(a,t,e.u,e.s)}return a.o}function Fd(e,n,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&rt(5),Vr(s)){var l=ps(e,s,i&&n&&n.i!==3&&!pn(n.R,a)?i.concat(a):void 0);if(Zp(t,a,l),!Vr(l))return;e.m=!1}else c&&t.add(s);if(Sr(s)&&!bc(s)){if(!e.h.D&&e._<1)return;ps(e,s),n&&n.A.l||hs(e,s)}}function hs(e,n,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&mc(n,t)}function fu(e,n){var t=e[xe];return(t?yt(t):e)[n]}function $d(e,n){if(n in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,n);if(a)return a;t=Object.getPrototypeOf(t)}}function Ht(e){e.P||(e.P=!0,e.l&&Ht(e.l))}function du(e){e.o||(e.o=yc(e.t))}function to(e,n,t){var a=Ps(n)?Or("MapSet").F(n,t):Ds(n)?Or("MapSet").T(n,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:eo(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=ro;c&&(d=[l],p=Ya);var h=Proxy.revocable(d,p),m=h.revoke,_=h.proxy;return l.k=_,l.j=m,_}(n,t):Or("ES5").J(n,t);return(t?t.A:eo()).p.push(a),a}function eS(e){return Vr(e)||rt(22,e),function n(t){if(!Sr(t))return t;var a,s=t[xe],i=gn(t);if(s){if(!s.P&&(s.i<4||!Or("ES5").K(s)))return s.t;s.I=!0,a=Md(t,i),s.I=!1}else a=Md(t,i);return Kr(a,function(c,l){s&&os(s.t,c)===l||Zp(a,c,n(l))}),i===3?new Set(a):a}(e)}function Md(e,n){switch(n){case 2:return new Map(e);case 3:return Array.from(e)}return yc(e)}function tS(){function e(c,l){var d=i[c];return d?d.enumerable=l:i[c]=d={configurable:!0,enumerable:l,get:function(){var p=this[xe];return process.env.NODE_ENV!=="production"&&s(p),ro.get(p,c)},set:function(p){var h=this[xe];process.env.NODE_ENV!=="production"&&s(h),ro.set(h,c,p)}},d}function n(c){for(var l=c.length-1;l>=0;l--){var d=c[l][xe];if(!d.P)switch(d.i){case 5:a(d)&&Ht(d);break;case 4:t(d)&&Ht(d)}}}function t(c){for(var l=c.t,d=c.k,p=ia(d),h=p.length-1;h>=0;h--){var m=p[h];if(m!==xe){var _=l[m];if(_===void 0&&!pn(l,m))return!0;var S=d[m],T=S&&S[xe];if(T?T.t!==_:!Qp(S,_))return!0}}var C=!!l[xe];return p.length!==ia(l).length+(C?0:1)}function a(c){var l=c.k;if(l.length!==c.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function s(c){c.g&&rt(3,JSON.stringify(yt(c)))}var i={};_c("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(m,_){if(m){for(var S=Array(_.length),T=0;T<_.length;T++)Object.defineProperty(S,""+T,e(T,!0));return S}var C=eh(_);delete C[xe];for(var F=ia(C),D=0;D<F.length;D++){var W=F[D];C[W]=e(W,m||!!C[W].enumerable)}return Object.create(Object.getPrototypeOf(_),C)}(d,c),h={i:d?5:4,A:l?l.A:eo(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,xe,{value:h,writable:!0}),p},S:function(c,l,d){d?Vr(l)&&l[xe].A===c&&n(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var m=h[xe];if(m){var _=m.t,S=m.k,T=m.R,C=m.i;if(C===4)Kr(S,function(j){j!==xe&&(_[j]!==void 0||pn(_,j)?T[j]||p(S[j]):(T[j]=!0,Ht(m)))}),Kr(_,function(j){S[j]!==void 0||pn(S,j)||(T[j]=!1,Ht(m))});else if(C===5){if(a(m)&&(Ht(m),T.length=!0),S.length<_.length)for(var F=S.length;F<_.length;F++)T[F]=!1;else for(var D=_.length;D<S.length;D++)T[D]=!0;for(var W=Math.min(S.length,_.length),$=0;$<W;$++)S.hasOwnProperty($)||(T[$]=!0),T[$]===void 0&&p(S[$])}}}}(c.p[0]),n(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function rS(){function e(a){if(!Sr(a))return a;if(Array.isArray(a))return a.map(e);if(Ps(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Ds(a))return new Set(Array.from(a).map(e));var s=Object.create(Object.getPrototypeOf(a));for(var i in a)s[i]=e(a[i]);return pn(a,Va)&&(s[Va]=a[Va]),s}function n(a){return Vr(a)?e(a):a}var t="add";_c("Patches",{$:function(a,s){return s.forEach(function(i){for(var c=i.path,l=i.op,d=a,p=0;p<c.length-1;p++){var h=gn(d),m=c[p];typeof m!="string"&&typeof m!="number"&&(m=""+m),h!==0&&h!==1||m!=="__proto__"&&m!=="constructor"||rt(24),typeof d=="function"&&m==="prototype"&&rt(24),typeof(d=os(d,m))!="object"&&rt(15,c.join("/"))}var _=gn(d),S=e(i.value),T=c[c.length-1];switch(l){case"replace":switch(_){case 2:return d.set(T,S);case 3:rt(16);default:return d[T]=S}case t:switch(_){case 1:return T==="-"?d.push(S):d.splice(T,0,S);case 2:return d.set(T,S);case 3:return d.add(S);default:return d[T]=S}case"remove":switch(_){case 1:return d.splice(T,1);case 2:return d.delete(T);case 3:return d.delete(i.value);default:return delete d[T]}default:rt(17,l)}}),a},N:function(a,s,i,c){switch(a.i){case 0:case 4:case 2:return function(l,d,p,h){var m=l.t,_=l.o;Kr(l.R,function(S,T){var C=os(m,S),F=os(_,S),D=T?pn(m,S)?"replace":t:"remove";if(C!==F||D!=="replace"){var W=d.concat(S);p.push(D==="remove"?{op:D,path:W}:{op:D,path:W,value:F}),h.push(D===t?{op:"remove",path:W}:D==="remove"?{op:t,path:W,value:n(C)}:{op:"replace",path:W,value:n(C)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,h){var m=l.t,_=l.R,S=l.o;if(S.length<m.length){var T=[S,m];m=T[0],S=T[1];var C=[h,p];p=C[0],h=C[1]}for(var F=0;F<m.length;F++)if(_[F]&&S[F]!==m[F]){var D=d.concat([F]);p.push({op:"replace",path:D,value:n(S[F])}),h.push({op:"replace",path:D,value:n(m[F])})}for(var W=m.length;W<S.length;W++){var $=d.concat([W]);p.push({op:t,path:$,value:n(S[W])})}m.length<S.length&&h.push({op:"replace",path:d.concat(["length"]),value:m.length})}(a,s,i,c);case 3:return function(l,d,p,h){var m=l.t,_=l.o,S=0;m.forEach(function(T){if(!_.has(T)){var C=d.concat([S]);p.push({op:"remove",path:C,value:T}),h.unshift({op:t,path:C,value:T})}S++}),S=0,_.forEach(function(T){if(!m.has(T)){var C=d.concat([S]);p.push({op:t,path:C,value:T}),h.unshift({op:"remove",path:C,value:T})}S++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===Sc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function nS(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function n(l){l.o||(l.R=new Map,l.o=new Map(l.t))}function t(l){l.o||(l.o=new Set,l.t.forEach(function(d){if(Sr(d)){var p=to(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&rt(3,JSON.stringify(yt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var m in h)h.hasOwnProperty(m)&&(p[m]=h[m])})(l,d)},i=function(){function l(p,h){return this[xe]={i:2,l:h,A:h?h.A:eo(),P:!1,I:!1,o:void 0,R:void 0,t:p,k:this,C:!1,g:!1},this}e(l,Map);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return yt(this[xe]).size}}),d.has=function(p){return yt(this[xe]).has(p)},d.set=function(p,h){var m=this[xe];return a(m),yt(m).has(p)&&yt(m).get(p)===h||(n(m),Ht(m),m.R.set(p,!0),m.o.set(p,h),m.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[xe];return a(h),n(h),Ht(h),h.t.has(p)?h.R.set(p,!1):h.R.delete(p),h.o.delete(p),!0},d.clear=function(){var p=this[xe];a(p),yt(p).size&&(n(p),Ht(p),p.R=new Map,Kr(p.t,function(h){p.R.set(h,!1)}),p.o.clear())},d.forEach=function(p,h){var m=this;yt(this[xe]).forEach(function(_,S){p.call(h,m.get(S),S,m)})},d.get=function(p){var h=this[xe];a(h);var m=yt(h).get(p);if(h.I||!Sr(m)||m!==h.t.get(p))return m;var _=to(h.A.h,m,h);return n(h),h.o.set(p,_),_},d.keys=function(){return yt(this[xe]).keys()},d.values=function(){var p,h=this,m=this.keys();return(p={})[Qo]=function(){return h.values()},p.next=function(){var _=m.next();return _.done?_:{done:!1,value:h.get(_.value)}},p},d.entries=function(){var p,h=this,m=this.keys();return(p={})[Qo]=function(){return h.entries()},p.next=function(){var _=m.next();if(_.done)return _;var S=h.get(_.value);return{done:!1,value:[_.value,S]}},p},d[Qo]=function(){return this.entries()},l}(),c=function(){function l(p,h){return this[xe]={i:3,l:h,A:h?h.A:eo(),P:!1,I:!1,o:void 0,t:p,k:this,p:new Map,g:!1,C:!1},this}e(l,Set);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return yt(this[xe]).size}}),d.has=function(p){var h=this[xe];return a(h),h.o?!!h.o.has(p)||!(!h.p.has(p)||!h.o.has(h.p.get(p))):h.t.has(p)},d.add=function(p){var h=this[xe];return a(h),this.has(p)||(t(h),Ht(h),h.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[xe];return a(h),t(h),Ht(h),h.o.delete(p)||!!h.p.has(p)&&h.o.delete(h.p.get(p))},d.clear=function(){var p=this[xe];a(p),yt(p).size&&(t(p),Ht(p),p.o.clear())},d.values=function(){var p=this[xe];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[xe];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Qo]=function(){return this.values()},d.forEach=function(p,h){for(var m=this.values(),_=m.next();!_.done;)p.call(h,_.value,_.value,this),_=m.next()},l}();_c("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Nd,da,Ec=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",aS=typeof Map<"u",oS=typeof Set<"u",Ld=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sc=Ec?Symbol.for("immer-nothing"):((Nd={})["immer-nothing"]=!0,Nd),Va=Ec?Symbol.for("immer-draftable"):"__$immer_draftable",xe=Ec?Symbol.for("immer-state"):"__$immer_state",Qo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",sS={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},iS=""+Object.prototype.constructor,ia=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,eh=Object.getOwnPropertyDescriptors||function(e){var n={};return ia(e).forEach(function(t){n[t]=Object.getOwnPropertyDescriptor(e,t)}),n},Hu={},ro={get:function(e,n){if(n===xe)return e;var t=yt(e);if(!pn(t,n))return function(s,i,c){var l,d=$d(i,c);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(s.k):void 0}(e,t,n);var a=t[n];return e.I||!Sr(a)?a:a===fu(e.t,n)?(du(e),e.o[n]=to(e.A.h,a,e)):a},has:function(e,n){return n in yt(e)},ownKeys:function(e){return Reflect.ownKeys(yt(e))},set:function(e,n,t){var a=$d(yt(e),n);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=fu(yt(e),n),i=s==null?void 0:s[xe];if(i&&i.t===t)return e.o[n]=t,e.R[n]=!1,!0;if(Qp(t,s)&&(t!==void 0||pn(e.t,n)))return!0;du(e),Ht(e)}return e.o[n]===t&&(t!==void 0||n in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[n])||(e.o[n]=t,e.R[n]=!0),!0},deleteProperty:function(e,n){return fu(e.t,n)!==void 0||n in e.t?(e.R[n]=!1,du(e),Ht(e)):delete e.R[n],e.o&&delete e.o[n],!0},getOwnPropertyDescriptor:function(e,n){var t=yt(e),a=Reflect.getOwnPropertyDescriptor(t,n);return a&&{writable:!0,configurable:e.i!==1||n!=="length",enumerable:a.enumerable,value:t[n]}},defineProperty:function(){rt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){rt(12)}},Ya={};Kr(ro,function(e,n){Ya[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),Ya.deleteProperty=function(e,n){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(n))&&rt(13),Ya.set.call(this,e,n,void 0)},Ya.set=function(e,n,t){return process.env.NODE_ENV!=="production"&&n!=="length"&&isNaN(parseInt(n))&&rt(14),ro.set.call(this,e[0],n,t,e[0])};var uS=function(){function e(t){var a=this;this.O=Ld,this.D=!0,this.produce=function(s,i,c){if(typeof s=="function"&&typeof i!="function"){var l=i;i=s;var d=a;return function(C){var F=this;C===void 0&&(C=l);for(var D=arguments.length,W=Array(D>1?D-1:0),$=1;$<D;$++)W[$-1]=arguments[$];return d.produce(C,function(j){var A;return(A=i).call.apply(A,[F,j].concat(W))})}}var p;if(typeof i!="function"&&rt(6),c!==void 0&&typeof c!="function"&&rt(7),Sr(s)){var h=Id(a),m=to(a,s,void 0),_=!0;try{p=i(m),_=!1}finally{_?ds(h):Uu(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return cu(h,c),lu(C,h)},function(C){throw ds(h),C}):(cu(h,c),lu(p,h))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===Sc&&(p=void 0),a.D&&mc(p,!0),c){var S=[],T=[];Or("Patches").M(s,p,S,T),c(S,T)}return p}rt(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var h=arguments.length,m=Array(h>1?h-1:0),_=1;_<h;_++)m[_-1]=arguments[_];return a.produceWithPatches(p,function(S){return s.apply(void 0,[S].concat(m))})};var c,l,d=a.produce(s,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,c,l]}):[d,c,l]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var n=e.prototype;return n.createDraft=function(t){Sr(t)||rt(8),Vr(t)&&(t=eS(t));var a=Id(this),s=to(this,t,void 0);return s[xe].C=!0,Uu(a),s},n.finishDraft=function(t,a){var s=t&&t[xe];process.env.NODE_ENV!=="production"&&(s&&s.C||rt(9),s.I&&rt(10));var i=s.A;return cu(i,a),lu(void 0,i)},n.setAutoFreeze=function(t){this.D=t},n.setUseProxies=function(t){t&&!Ld&&rt(20),this.O=t},n.applyPatches=function(t,a){var s;for(s=a.length-1;s>=0;s--){var i=a[s];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}s>-1&&(a=a.slice(s+1));var c=Or("Patches").$;return Vr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),Qt=new uS,ss=Qt.produce;Qt.produceWithPatches.bind(Qt);Qt.setAutoFreeze.bind(Qt);Qt.setUseProxies.bind(Qt);Qt.applyPatches.bind(Qt);Qt.createDraft.bind(Qt);Qt.finishDraft.bind(Qt);function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},no(e)}function cS(e,n){if(no(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,n||"default");if(no(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function lS(e){var n=cS(e,"string");return no(n)==="symbol"?n:String(n)}function fS(e,n,t){return n=lS(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function jd(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function kd(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?jd(Object(t),!0).forEach(function(a){fS(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jd(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Pt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Bd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),pu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ln={INIT:"@@redux/INIT"+pu(),REPLACE:"@@redux/REPLACE"+pu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pu()}};function th(e){if(typeof e!="object"||e===null)return!1;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function dS(e){if(e===void 0)return"undefined";if(e===null)return"null";var n=typeof e;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(e))return"array";if(gS(e))return"date";if(hS(e))return"error";var t=pS(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function pS(e){return typeof e.constructor=="function"?e.constructor.name:null}function hS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function gS(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Nn(e){var n=typeof e;return process.env.NODE_ENV!=="production"&&(n=dS(e)),n}function rh(e,n,t){var a;if(typeof n=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Pt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof n=="function"&&typeof t>"u"&&(t=n,n=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(1):"Expected the enhancer to be a function. Instead, received: '"+Nn(t)+"'");return t(rh)(e,n)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(2):"Expected the root reducer to be a function. Instead, received: '"+Nn(e)+"'");var s=e,i=n,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function h(){if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function m(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(4):"Expected the listener to be a function. Instead, received: '"+Nn(C)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var F=!0;return p(),l.push(C),function(){if(F){if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");F=!1,p();var W=l.indexOf(C);l.splice(W,1),c=null}}}function _(C){if(!th(C))throw new Error(process.env.NODE_ENV==="production"?Pt(7):"Actions must be plain objects. Instead, the actual type was: '"+Nn(C)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof C.type>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,C)}finally{d=!1}for(var F=c=l,D=0;D<F.length;D++){var W=F[D];W()}return C}function S(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(10):"Expected the nextReducer to be a function. Instead, received: '"+Nn(C));s=C,_({type:Ln.REPLACE})}function T(){var C,F=m;return C={subscribe:function(W){if(typeof W!="object"||W===null)throw new Error(process.env.NODE_ENV==="production"?Pt(11):"Expected the observer to be an object. Instead, received: '"+Nn(W)+"'");function $(){W.next&&W.next(h())}$();var j=F($);return{unsubscribe:j}}},C[Bd]=function(){return this},C}return _({type:Ln.INIT}),a={dispatch:_,subscribe:m,getState:h,replaceReducer:S},a[Bd]=T,a}function Wd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function vS(e,n,t,a){var s=Object.keys(n),i=t&&t.type===Ln.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!th(e))return"The "+i+' has unexpected type of "'+Nn(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var c=Object.keys(e).filter(function(l){return!n.hasOwnProperty(l)&&!a[l]});if(c.forEach(function(l){a[l]=!0}),!(t&&t.type===Ln.REPLACE)&&c.length>0)return"Unexpected "+(c.length>1?"keys":"key")+" "+('"'+c.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+s.join('", "')+'". Unexpected keys will be ignored.')}function yS(e){Object.keys(e).forEach(function(n){var t=e[n],a=t(void 0,{type:Ln.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(12):'The slice reducer for key "'+n+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof t(void 0,{type:Ln.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(13):'The slice reducer for key "'+n+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Ln.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function nh(e){for(var n=Object.keys(e),t={},a=0;a<n.length;a++){var s=n[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Wd('No reducer provided for key "'+s+'"'),typeof e[s]=="function"&&(t[s]=e[s])}var i=Object.keys(t),c;process.env.NODE_ENV!=="production"&&(c={});var l;try{yS(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var m=vS(p,t,h,c);m&&Wd(m)}for(var _=!1,S={},T=0;T<i.length;T++){var C=i[T],F=t[C],D=p[C],W=F(D,h);if(typeof W>"u"){var $=h&&h.type;throw new Error(process.env.NODE_ENV==="production"?Pt(14):"When called with an action of type "+($?'"'+String($)+'"':"(unknown type)")+', the slice reducer for key "'+C+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}S[C]=W,_=_||W!==D}return _=_||i.length!==Object.keys(p).length,_?S:p}}function gs(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.length===0?function(a){return a}:n.length===1?n[0]:n.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function mS(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(a){return function(){var s=a.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?Pt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},c={getState:s.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=n.map(function(d){return d(c)});return i=gs.apply(void 0,l)(s.dispatch),kd(kd({},s),{},{dispatch:i})}}}var vs="NOT_FOUND";function bS(e){var n;return{get:function(a){return n&&e(n.key,a)?n.value:vs},put:function(a,s){n={key:a,value:s}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}}function _S(e,n){var t=[];function a(l){var d=t.findIndex(function(h){return n(l,h.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return vs}function s(l,d){a(l)===vs&&(t.unshift({key:l,value:d}),t.length>e&&t.pop())}function i(){return t}function c(){t=[]}return{get:a,put:s,getEntries:i,clear:c}}var ES=function(n,t){return n===t};function SS(e){return function(t,a){if(t===null||a===null||t.length!==a.length)return!1;for(var s=t.length,i=0;i<s;i++)if(!e(t[i],a[i]))return!1;return!0}}function wS(e,n){var t=typeof n=="object"?n:{equalityCheck:n},a=t.equalityCheck,s=a===void 0?ES:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=SS(s),p=c===1?bS(d):_S(c,d);function h(){var m=p.get(arguments);if(m===vs){if(m=e.apply(null,arguments),l){var _=p.getEntries(),S=_.find(function(T){return l(T.value,m)});S&&(m=S.value)}p.put(arguments,m)}return m}return h.clearCache=function(){return p.clear()},h}function TS(e){var n=Array.isArray(e[0])?e[0]:e;if(!n.every(function(a){return typeof a=="function"})){var t=n.map(function(a){return typeof a=="function"?"function "+(a.name||"unnamed")+"()":typeof a}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t+"]")}return n}function xS(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];var s=function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var p=0,h,m={memoizeOptions:void 0},_=l.pop();if(typeof _=="object"&&(m=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var S=m,T=S.memoizeOptions,C=T===void 0?t:T,F=Array.isArray(C)?C:[C],D=TS(l),W=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat(F)),$=e(function(){for(var A=[],K=D.length,G=0;G<K;G++)A.push(D[G].apply(null,arguments));return h=W.apply(null,A),h});return Object.assign($,{resultFunc:_,memoizedResultFunc:W,dependencies:D,lastResult:function(){return h},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),$};return s}var z=xS(wS);function ah(e){var n=function(a){var s=a.dispatch,i=a.getState;return function(c){return function(l){return typeof l=="function"?l(s,i,e):c(l)}}};return n}var oh=ah();oh.withExtraArgument=ah;const Ud=oh;var CS=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(a[i]=s[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),RS=globalThis&&globalThis.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,s,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return d([p,h])}}function d(p){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,s&&(i=p[0]&2?s.return:p[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,p[1])).done)return i;switch(s=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,s=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=n.call(e,t)}catch(h){p=[6,h],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ys=globalThis&&globalThis.__spreadArray||function(e,n){for(var t=0,a=n.length,s=e.length;t<a;t++,s++)e[s]=n[t];return e},OS=Object.defineProperty,AS=Object.defineProperties,PS=Object.getOwnPropertyDescriptors,Hd=Object.getOwnPropertySymbols,DS=Object.prototype.hasOwnProperty,IS=Object.prototype.propertyIsEnumerable,Gd=function(e,n,t){return n in e?OS(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t},hn=function(e,n){for(var t in n||(n={}))DS.call(n,t)&&Gd(e,t,n[t]);if(Hd)for(var a=0,s=Hd(n);a<s.length;a++){var t=s[a];IS.call(n,t)&&Gd(e,t,n[t])}return e},hu=function(e,n){return AS(e,PS(n))},FS=function(e,n,t){return new Promise(function(a,s){var i=function(d){try{l(t.next(d))}catch(p){s(p)}},c=function(d){try{l(t.throw(d))}catch(p){s(p)}},l=function(d){return d.done?a(d.value):Promise.resolve(d.value).then(i,c)};l((t=t.apply(e,n)).next())})},$S=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gs:gs.apply(null,arguments)};function sh(e){if(typeof e!="object"||e===null)return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;for(var t=n;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return n===t}function ih(e,n){var t=0;return{measureTime:function(a){var s=Date.now();try{return a()}finally{var i=Date.now();t+=i-s}},warnIfExceeded:function(){t>e&&console.warn(n+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@ws-ui/shared"),dt=require("react"),ZE=require("react-dom");function rt(e){for(var n=arguments.length,t=Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=iS[e],i=s?typeof s=="function"?s.apply(null,t):s:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vr(e){return!!e&&!!e[Ce]}function Sr(e){var n;return!!e&&(function(t){if(!t||typeof t!="object")return!1;var a=Object.getPrototypeOf(t);if(a===null)return!0;var s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===uS}(e)||Array.isArray(e)||!!e[Va]||!!(!((n=e.constructor)===null||n===void 0)&&n[Va])||Ps(e)||Ds(e))}function Kr(e,n,t){t===void 0&&(t=!1),gn(e)===0?(t?Object.keys:ia)(e).forEach(function(a){t&&typeof a=="symbol"||n(a,e[a],e)}):e.forEach(function(a,s){return n(s,a,e)})}function gn(e){var n=e[Ce];return n?n.i>3?n.i-4:n.i:Array.isArray(e)?1:Ps(e)?2:Ds(e)?3:0}function pn(e,n){return gn(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function os(e,n){return gn(e)===2?e.get(n):e[n]}function Qp(e,n,t){var a=gn(e);a===2?e.set(n,t):a===3?e.add(t):e[n]=t}function eh(e,n){return e===n?e!==0||1/e==1/n:e!=e&&n!=n}function Ps(e){return oS&&e instanceof Map}function Ds(e){return sS&&e instanceof Set}function yt(e){return e.o||e.t}function yc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var n=th(e);delete n[Ce];for(var t=ia(n),a=0;a<t.length;a++){var s=t[a],i=n[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),n)}function mc(e,n){return n===void 0&&(n=!1),bc(e)||Vr(e)||!Sr(e)||(gn(e)>1&&(e.set=e.add=e.clear=e.delete=QE),Object.freeze(e),n&&Kr(e,function(t,a){return mc(a,!0)},!0)),e}function QE(){rt(2)}function bc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rr(e){var n=Hu[e];return n||rt(18,e),n}function _c(e,n){Hu[e]||(Hu[e]=n)}function eo(){return process.env.NODE_ENV==="production"||da||rt(0),da}function cu(e,n){n&&(Rr("Patches"),e.u=[],e.s=[],e.v=n)}function ds(e){Uu(e),e.p.forEach(eS),e.p=null}function Uu(e){e===da&&(da=e.l)}function Fd(e){return da={p:[],l:da,h:e,m:!0,_:0}}function eS(e){var n=e[Ce];n.i===0||n.i===1?n.j():n.g=!0}function lu(e,n){n._=n.p.length;var t=n.p[0],a=e!==void 0&&e!==t;return n.h.O||Rr("ES5").S(n,e,a),a?(t[Ce].P&&(ds(n),rt(4)),Sr(e)&&(e=ps(n,e),n.l||hs(n,e)),n.u&&Rr("Patches").M(t[Ce].t,e,n.u,n.s)):e=ps(n,t,[]),ds(n),n.u&&n.v(n.u,n.s),e!==Sc?e:void 0}function ps(e,n,t){if(bc(n))return n;var a=n[Ce];if(!a)return Kr(n,function(l,d){return $d(e,a,n,l,d,t)},!0),n;if(a.A!==e)return n;if(!a.P)return hs(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=yc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Kr(i,function(l,d){return $d(e,a,s,l,d,t,c)}),hs(e,s,!1),t&&e.u&&Rr("Patches").N(a,t,e.u,e.s)}return a.o}function $d(e,n,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&rt(5),Vr(s)){var l=ps(e,s,i&&n&&n.i!==3&&!pn(n.R,a)?i.concat(a):void 0);if(Qp(t,a,l),!Vr(l))return;e.m=!1}else c&&t.add(s);if(Sr(s)&&!bc(s)){if(!e.h.D&&e._<1)return;ps(e,s),n&&n.A.l||hs(e,s)}}function hs(e,n,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&mc(n,t)}function fu(e,n){var t=e[Ce];return(t?yt(t):e)[n]}function Md(e,n){if(n in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,n);if(a)return a;t=Object.getPrototypeOf(t)}}function Ht(e){e.P||(e.P=!0,e.l&&Ht(e.l))}function du(e){e.o||(e.o=yc(e.t))}function to(e,n,t){var a=Ps(n)?Rr("MapSet").F(n,t):Ds(n)?Rr("MapSet").T(n,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:eo(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=ro;c&&(d=[l],p=Ya);var h=Proxy.revocable(d,p),m=h.revoke,_=h.proxy;return l.k=_,l.j=m,_}(n,t):Rr("ES5").J(n,t);return(t?t.A:eo()).p.push(a),a}function tS(e){return Vr(e)||rt(22,e),function n(t){if(!Sr(t))return t;var a,s=t[Ce],i=gn(t);if(s){if(!s.P&&(s.i<4||!Rr("ES5").K(s)))return s.t;s.I=!0,a=Nd(t,i),s.I=!1}else a=Nd(t,i);return Kr(a,function(c,l){s&&os(s.t,c)===l||Qp(a,c,n(l))}),i===3?new Set(a):a}(e)}function Nd(e,n){switch(n){case 2:return new Map(e);case 3:return Array.from(e)}return yc(e)}function rS(){function e(c,l){var d=i[c];return d?d.enumerable=l:i[c]=d={configurable:!0,enumerable:l,get:function(){var p=this[Ce];return process.env.NODE_ENV!=="production"&&s(p),ro.get(p,c)},set:function(p){var h=this[Ce];process.env.NODE_ENV!=="production"&&s(h),ro.set(h,c,p)}},d}function n(c){for(var l=c.length-1;l>=0;l--){var d=c[l][Ce];if(!d.P)switch(d.i){case 5:a(d)&&Ht(d);break;case 4:t(d)&&Ht(d)}}}function t(c){for(var l=c.t,d=c.k,p=ia(d),h=p.length-1;h>=0;h--){var m=p[h];if(m!==Ce){var _=l[m];if(_===void 0&&!pn(l,m))return!0;var S=d[m],T=S&&S[Ce];if(T?T.t!==_:!eh(S,_))return!0}}var x=!!l[Ce];return p.length!==ia(l).length+(x?0:1)}function a(c){var l=c.k;if(l.length!==c.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function s(c){c.g&&rt(3,JSON.stringify(yt(c)))}var i={};_c("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(m,_){if(m){for(var S=Array(_.length),T=0;T<_.length;T++)Object.defineProperty(S,""+T,e(T,!0));return S}var x=th(_);delete x[Ce];for(var F=ia(x),D=0;D<F.length;D++){var W=F[D];x[W]=e(W,m||!!x[W].enumerable)}return Object.create(Object.getPrototypeOf(_),x)}(d,c),h={i:d?5:4,A:l?l.A:eo(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Ce,{value:h,writable:!0}),p},S:function(c,l,d){d?Vr(l)&&l[Ce].A===c&&n(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var m=h[Ce];if(m){var _=m.t,S=m.k,T=m.R,x=m.i;if(x===4)Kr(S,function(j){j!==Ce&&(_[j]!==void 0||pn(_,j)?T[j]||p(S[j]):(T[j]=!0,Ht(m)))}),Kr(_,function(j){S[j]!==void 0||pn(S,j)||(T[j]=!1,Ht(m))});else if(x===5){if(a(m)&&(Ht(m),T.length=!0),S.length<_.length)for(var F=S.length;F<_.length;F++)T[F]=!1;else for(var D=_.length;D<S.length;D++)T[D]=!0;for(var W=Math.min(S.length,_.length),$=0;$<W;$++)S.hasOwnProperty($)||(T[$]=!0),T[$]===void 0&&p(S[$])}}}}(c.p[0]),n(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function nS(){function e(a){if(!Sr(a))return a;if(Array.isArray(a))return a.map(e);if(Ps(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Ds(a))return new Set(Array.from(a).map(e));var s=Object.create(Object.getPrototypeOf(a));for(var i in a)s[i]=e(a[i]);return pn(a,Va)&&(s[Va]=a[Va]),s}function n(a){return Vr(a)?e(a):a}var t="add";_c("Patches",{$:function(a,s){return s.forEach(function(i){for(var c=i.path,l=i.op,d=a,p=0;p<c.length-1;p++){var h=gn(d),m=c[p];typeof m!="string"&&typeof m!="number"&&(m=""+m),h!==0&&h!==1||m!=="__proto__"&&m!=="constructor"||rt(24),typeof d=="function"&&m==="prototype"&&rt(24),typeof(d=os(d,m))!="object"&&rt(15,c.join("/"))}var _=gn(d),S=e(i.value),T=c[c.length-1];switch(l){case"replace":switch(_){case 2:return d.set(T,S);case 3:rt(16);default:return d[T]=S}case t:switch(_){case 1:return T==="-"?d.push(S):d.splice(T,0,S);case 2:return d.set(T,S);case 3:return d.add(S);default:return d[T]=S}case"remove":switch(_){case 1:return d.splice(T,1);case 2:return d.delete(T);case 3:return d.delete(i.value);default:return delete d[T]}default:rt(17,l)}}),a},N:function(a,s,i,c){switch(a.i){case 0:case 4:case 2:return function(l,d,p,h){var m=l.t,_=l.o;Kr(l.R,function(S,T){var x=os(m,S),F=os(_,S),D=T?pn(m,S)?"replace":t:"remove";if(x!==F||D!=="replace"){var W=d.concat(S);p.push(D==="remove"?{op:D,path:W}:{op:D,path:W,value:F}),h.push(D===t?{op:"remove",path:W}:D==="remove"?{op:t,path:W,value:n(x)}:{op:"replace",path:W,value:n(x)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,h){var m=l.t,_=l.R,S=l.o;if(S.length<m.length){var T=[S,m];m=T[0],S=T[1];var x=[h,p];p=x[0],h=x[1]}for(var F=0;F<m.length;F++)if(_[F]&&S[F]!==m[F]){var D=d.concat([F]);p.push({op:"replace",path:D,value:n(S[F])}),h.push({op:"replace",path:D,value:n(m[F])})}for(var W=m.length;W<S.length;W++){var $=d.concat([W]);p.push({op:t,path:$,value:n(S[W])})}m.length<S.length&&h.push({op:"replace",path:d.concat(["length"]),value:m.length})}(a,s,i,c);case 3:return function(l,d,p,h){var m=l.t,_=l.o,S=0;m.forEach(function(T){if(!_.has(T)){var x=d.concat([S]);p.push({op:"remove",path:x,value:T}),h.unshift({op:t,path:x,value:T})}S++}),S=0,_.forEach(function(T){if(!m.has(T)){var x=d.concat([S]);p.push({op:t,path:x,value:T}),h.unshift({op:"remove",path:x,value:T})}S++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===Sc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function aS(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function n(l){l.o||(l.R=new Map,l.o=new Map(l.t))}function t(l){l.o||(l.o=new Set,l.t.forEach(function(d){if(Sr(d)){var p=to(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&rt(3,JSON.stringify(yt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var m in h)h.hasOwnProperty(m)&&(p[m]=h[m])})(l,d)},i=function(){function l(p,h){return this[Ce]={i:2,l:h,A:h?h.A:eo(),P:!1,I:!1,o:void 0,R:void 0,t:p,k:this,C:!1,g:!1},this}e(l,Map);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return yt(this[Ce]).size}}),d.has=function(p){return yt(this[Ce]).has(p)},d.set=function(p,h){var m=this[Ce];return a(m),yt(m).has(p)&&yt(m).get(p)===h||(n(m),Ht(m),m.R.set(p,!0),m.o.set(p,h),m.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[Ce];return a(h),n(h),Ht(h),h.t.has(p)?h.R.set(p,!1):h.R.delete(p),h.o.delete(p),!0},d.clear=function(){var p=this[Ce];a(p),yt(p).size&&(n(p),Ht(p),p.R=new Map,Kr(p.t,function(h){p.R.set(h,!1)}),p.o.clear())},d.forEach=function(p,h){var m=this;yt(this[Ce]).forEach(function(_,S){p.call(h,m.get(S),S,m)})},d.get=function(p){var h=this[Ce];a(h);var m=yt(h).get(p);if(h.I||!Sr(m)||m!==h.t.get(p))return m;var _=to(h.A.h,m,h);return n(h),h.o.set(p,_),_},d.keys=function(){return yt(this[Ce]).keys()},d.values=function(){var p,h=this,m=this.keys();return(p={})[Qo]=function(){return h.values()},p.next=function(){var _=m.next();return _.done?_:{done:!1,value:h.get(_.value)}},p},d.entries=function(){var p,h=this,m=this.keys();return(p={})[Qo]=function(){return h.entries()},p.next=function(){var _=m.next();if(_.done)return _;var S=h.get(_.value);return{done:!1,value:[_.value,S]}},p},d[Qo]=function(){return this.entries()},l}(),c=function(){function l(p,h){return this[Ce]={i:3,l:h,A:h?h.A:eo(),P:!1,I:!1,o:void 0,t:p,k:this,p:new Map,g:!1,C:!1},this}e(l,Set);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return yt(this[Ce]).size}}),d.has=function(p){var h=this[Ce];return a(h),h.o?!!h.o.has(p)||!(!h.p.has(p)||!h.o.has(h.p.get(p))):h.t.has(p)},d.add=function(p){var h=this[Ce];return a(h),this.has(p)||(t(h),Ht(h),h.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[Ce];return a(h),t(h),Ht(h),h.o.delete(p)||!!h.p.has(p)&&h.o.delete(h.p.get(p))},d.clear=function(){var p=this[Ce];a(p),yt(p).size&&(t(p),Ht(p),p.o.clear())},d.values=function(){var p=this[Ce];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[Ce];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Qo]=function(){return this.values()},d.forEach=function(p,h){for(var m=this.values(),_=m.next();!_.done;)p.call(h,_.value,_.value,this),_=m.next()},l}();_c("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Ld,da,Ec=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",oS=typeof Map<"u",sS=typeof Set<"u",jd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sc=Ec?Symbol.for("immer-nothing"):((Ld={})["immer-nothing"]=!0,Ld),Va=Ec?Symbol.for("immer-draftable"):"__$immer_draftable",Ce=Ec?Symbol.for("immer-state"):"__$immer_state",Qo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",iS={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},uS=""+Object.prototype.constructor,ia=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,th=Object.getOwnPropertyDescriptors||function(e){var n={};return ia(e).forEach(function(t){n[t]=Object.getOwnPropertyDescriptor(e,t)}),n},Hu={},ro={get:function(e,n){if(n===Ce)return e;var t=yt(e);if(!pn(t,n))return function(s,i,c){var l,d=Md(i,c);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(s.k):void 0}(e,t,n);var a=t[n];return e.I||!Sr(a)?a:a===fu(e.t,n)?(du(e),e.o[n]=to(e.A.h,a,e)):a},has:function(e,n){return n in yt(e)},ownKeys:function(e){return Reflect.ownKeys(yt(e))},set:function(e,n,t){var a=Md(yt(e),n);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=fu(yt(e),n),i=s==null?void 0:s[Ce];if(i&&i.t===t)return e.o[n]=t,e.R[n]=!1,!0;if(eh(t,s)&&(t!==void 0||pn(e.t,n)))return!0;du(e),Ht(e)}return e.o[n]===t&&(t!==void 0||n in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[n])||(e.o[n]=t,e.R[n]=!0),!0},deleteProperty:function(e,n){return fu(e.t,n)!==void 0||n in e.t?(e.R[n]=!1,du(e),Ht(e)):delete e.R[n],e.o&&delete e.o[n],!0},getOwnPropertyDescriptor:function(e,n){var t=yt(e),a=Reflect.getOwnPropertyDescriptor(t,n);return a&&{writable:!0,configurable:e.i!==1||n!=="length",enumerable:a.enumerable,value:t[n]}},defineProperty:function(){rt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){rt(12)}},Ya={};Kr(ro,function(e,n){Ya[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),Ya.deleteProperty=function(e,n){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(n))&&rt(13),Ya.set.call(this,e,n,void 0)},Ya.set=function(e,n,t){return process.env.NODE_ENV!=="production"&&n!=="length"&&isNaN(parseInt(n))&&rt(14),ro.set.call(this,e[0],n,t,e[0])};var cS=function(){function e(t){var a=this;this.O=jd,this.D=!0,this.produce=function(s,i,c){if(typeof s=="function"&&typeof i!="function"){var l=i;i=s;var d=a;return function(x){var F=this;x===void 0&&(x=l);for(var D=arguments.length,W=Array(D>1?D-1:0),$=1;$<D;$++)W[$-1]=arguments[$];return d.produce(x,function(j){var A;return(A=i).call.apply(A,[F,j].concat(W))})}}var p;if(typeof i!="function"&&rt(6),c!==void 0&&typeof c!="function"&&rt(7),Sr(s)){var h=Fd(a),m=to(a,s,void 0),_=!0;try{p=i(m),_=!1}finally{_?ds(h):Uu(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(x){return cu(h,c),lu(x,h)},function(x){throw ds(h),x}):(cu(h,c),lu(p,h))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===Sc&&(p=void 0),a.D&&mc(p,!0),c){var S=[],T=[];Rr("Patches").M(s,p,S,T),c(S,T)}return p}rt(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var h=arguments.length,m=Array(h>1?h-1:0),_=1;_<h;_++)m[_-1]=arguments[_];return a.produceWithPatches(p,function(S){return s.apply(void 0,[S].concat(m))})};var c,l,d=a.produce(s,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,c,l]}):[d,c,l]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var n=e.prototype;return n.createDraft=function(t){Sr(t)||rt(8),Vr(t)&&(t=tS(t));var a=Fd(this),s=to(this,t,void 0);return s[Ce].C=!0,Uu(a),s},n.finishDraft=function(t,a){var s=t&&t[Ce];process.env.NODE_ENV!=="production"&&(s&&s.C||rt(9),s.I&&rt(10));var i=s.A;return cu(i,a),lu(void 0,i)},n.setAutoFreeze=function(t){this.D=t},n.setUseProxies=function(t){t&&!jd&&rt(20),this.O=t},n.applyPatches=function(t,a){var s;for(s=a.length-1;s>=0;s--){var i=a[s];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}s>-1&&(a=a.slice(s+1));var c=Rr("Patches").$;return Vr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),Qt=new cS,ss=Qt.produce;Qt.produceWithPatches.bind(Qt);Qt.setAutoFreeze.bind(Qt);Qt.setUseProxies.bind(Qt);Qt.applyPatches.bind(Qt);Qt.createDraft.bind(Qt);Qt.finishDraft.bind(Qt);function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},no(e)}function lS(e,n){if(no(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,n||"default");if(no(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function fS(e){var n=lS(e,"string");return no(n)==="symbol"?n:String(n)}function dS(e,n,t){return n=fS(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function kd(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function Bd(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?kd(Object(t),!0).forEach(function(a){dS(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kd(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Pt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Wd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),pu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ln={INIT:"@@redux/INIT"+pu(),REPLACE:"@@redux/REPLACE"+pu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pu()}};function rh(e){if(typeof e!="object"||e===null)return!1;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function pS(e){if(e===void 0)return"undefined";if(e===null)return"null";var n=typeof e;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(e))return"array";if(vS(e))return"date";if(gS(e))return"error";var t=hS(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function hS(e){return typeof e.constructor=="function"?e.constructor.name:null}function gS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function vS(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Nn(e){var n=typeof e;return process.env.NODE_ENV!=="production"&&(n=pS(e)),n}function nh(e,n,t){var a;if(typeof n=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Pt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof n=="function"&&typeof t>"u"&&(t=n,n=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(1):"Expected the enhancer to be a function. Instead, received: '"+Nn(t)+"'");return t(nh)(e,n)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(2):"Expected the root reducer to be a function. Instead, received: '"+Nn(e)+"'");var s=e,i=n,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function h(){if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function m(x){if(typeof x!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(4):"Expected the listener to be a function. Instead, received: '"+Nn(x)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var F=!0;return p(),l.push(x),function(){if(F){if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");F=!1,p();var W=l.indexOf(x);l.splice(W,1),c=null}}}function _(x){if(!rh(x))throw new Error(process.env.NODE_ENV==="production"?Pt(7):"Actions must be plain objects. Instead, the actual type was: '"+Nn(x)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof x.type>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,x)}finally{d=!1}for(var F=c=l,D=0;D<F.length;D++){var W=F[D];W()}return x}function S(x){if(typeof x!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(10):"Expected the nextReducer to be a function. Instead, received: '"+Nn(x));s=x,_({type:Ln.REPLACE})}function T(){var x,F=m;return x={subscribe:function(W){if(typeof W!="object"||W===null)throw new Error(process.env.NODE_ENV==="production"?Pt(11):"Expected the observer to be an object. Instead, received: '"+Nn(W)+"'");function $(){W.next&&W.next(h())}$();var j=F($);return{unsubscribe:j}}},x[Wd]=function(){return this},x}return _({type:Ln.INIT}),a={dispatch:_,subscribe:m,getState:h,replaceReducer:S},a[Wd]=T,a}function Ud(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function yS(e,n,t,a){var s=Object.keys(n),i=t&&t.type===Ln.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!rh(e))return"The "+i+' has unexpected type of "'+Nn(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var c=Object.keys(e).filter(function(l){return!n.hasOwnProperty(l)&&!a[l]});if(c.forEach(function(l){a[l]=!0}),!(t&&t.type===Ln.REPLACE)&&c.length>0)return"Unexpected "+(c.length>1?"keys":"key")+" "+('"'+c.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+s.join('", "')+'". Unexpected keys will be ignored.')}function mS(e){Object.keys(e).forEach(function(n){var t=e[n],a=t(void 0,{type:Ln.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(12):'The slice reducer for key "'+n+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof t(void 0,{type:Ln.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(13):'The slice reducer for key "'+n+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Ln.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function ah(e){for(var n=Object.keys(e),t={},a=0;a<n.length;a++){var s=n[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Ud('No reducer provided for key "'+s+'"'),typeof e[s]=="function"&&(t[s]=e[s])}var i=Object.keys(t),c;process.env.NODE_ENV!=="production"&&(c={});var l;try{mS(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var m=yS(p,t,h,c);m&&Ud(m)}for(var _=!1,S={},T=0;T<i.length;T++){var x=i[T],F=t[x],D=p[x],W=F(D,h);if(typeof W>"u"){var $=h&&h.type;throw new Error(process.env.NODE_ENV==="production"?Pt(14):"When called with an action of type "+($?'"'+String($)+'"':"(unknown type)")+', the slice reducer for key "'+x+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}S[x]=W,_=_||W!==D}return _=_||i.length!==Object.keys(p).length,_?S:p}}function gs(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.length===0?function(a){return a}:n.length===1?n[0]:n.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function bS(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(a){return function(){var s=a.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?Pt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},c={getState:s.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=n.map(function(d){return d(c)});return i=gs.apply(void 0,l)(s.dispatch),Bd(Bd({},s),{},{dispatch:i})}}}var vs="NOT_FOUND";function _S(e){var n;return{get:function(a){return n&&e(n.key,a)?n.value:vs},put:function(a,s){n={key:a,value:s}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}}function ES(e,n){var t=[];function a(l){var d=t.findIndex(function(h){return n(l,h.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return vs}function s(l,d){a(l)===vs&&(t.unshift({key:l,value:d}),t.length>e&&t.pop())}function i(){return t}function c(){t=[]}return{get:a,put:s,getEntries:i,clear:c}}var SS=function(n,t){return n===t};function wS(e){return function(t,a){if(t===null||a===null||t.length!==a.length)return!1;for(var s=t.length,i=0;i<s;i++)if(!e(t[i],a[i]))return!1;return!0}}function TS(e,n){var t=typeof n=="object"?n:{equalityCheck:n},a=t.equalityCheck,s=a===void 0?SS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=wS(s),p=c===1?_S(d):ES(c,d);function h(){var m=p.get(arguments);if(m===vs){if(m=e.apply(null,arguments),l){var _=p.getEntries(),S=_.find(function(T){return l(T.value,m)});S&&(m=S.value)}p.put(arguments,m)}return m}return h.clearCache=function(){return p.clear()},h}function CS(e){var n=Array.isArray(e[0])?e[0]:e;if(!n.every(function(a){return typeof a=="function"})){var t=n.map(function(a){return typeof a=="function"?"function "+(a.name||"unnamed")+"()":typeof a}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t+"]")}return n}function xS(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];var s=function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var p=0,h,m={memoizeOptions:void 0},_=l.pop();if(typeof _=="object"&&(m=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var S=m,T=S.memoizeOptions,x=T===void 0?t:T,F=Array.isArray(x)?x:[x],D=CS(l),W=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat(F)),$=e(function(){for(var A=[],K=D.length,G=0;G<K;G++)A.push(D[G].apply(null,arguments));return h=W.apply(null,A),h});return Object.assign($,{resultFunc:_,memoizedResultFunc:W,dependencies:D,lastResult:function(){return h},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),$};return s}var z=xS(TS);function oh(e){var n=function(a){var s=a.dispatch,i=a.getState;return function(c){return function(l){return typeof l=="function"?l(s,i,e):c(l)}}};return n}var sh=oh();sh.withExtraArgument=oh;const Hd=sh;var OS=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(a[i]=s[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),RS=globalThis&&globalThis.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,s,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return d([p,h])}}function d(p){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,s&&(i=p[0]&2?s.return:p[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,p[1])).done)return i;switch(s=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,s=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=n.call(e,t)}catch(h){p=[6,h],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ys=globalThis&&globalThis.__spreadArray||function(e,n){for(var t=0,a=n.length,s=e.length;t<a;t++,s++)e[s]=n[t];return e},AS=Object.defineProperty,PS=Object.defineProperties,DS=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,IS=Object.prototype.hasOwnProperty,FS=Object.prototype.propertyIsEnumerable,qd=function(e,n,t){return n in e?AS(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t},hn=function(e,n){for(var t in n||(n={}))IS.call(n,t)&&qd(e,t,n[t]);if(Gd)for(var a=0,s=Gd(n);a<s.length;a++){var t=s[a];FS.call(n,t)&&qd(e,t,n[t])}return e},hu=function(e,n){return PS(e,DS(n))},$S=function(e,n,t){return new Promise(function(a,s){var i=function(d){try{l(t.next(d))}catch(p){s(p)}},c=function(d){try{l(t.throw(d))}catch(p){s(p)}},l=function(d){return d.done?a(d.value):Promise.resolve(d.value).then(i,c)};l((t=t.apply(e,n)).next())})},MS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gs:gs.apply(null,arguments)};function ih(e){if(typeof e!="object"||e===null)return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;for(var t=n;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return n===t}function uh(e,n){var t=0;return{measureTime:function(a){var s=Date.now();try{return a()}finally{var i=Date.now();t+=i-s}},warnIfExceeded:function(){t>e&&console.warn(n+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
2
2
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
3
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var
|
|
3
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var NS=function(e){OS(n,e);function n(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var s=e.apply(this,t)||this;return Object.setPrototypeOf(s,n.prototype),s}return Object.defineProperty(n,Symbol.species,{get:function(){return n},enumerable:!1,configurable:!0}),n.prototype.concat=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return e.prototype.concat.apply(this,t)},n.prototype.prepend=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return t.length===1&&Array.isArray(t[0])?new(n.bind.apply(n,ys([void 0],t[0].concat(this)))):new(n.bind.apply(n,ys([void 0],t.concat(this))))},n}(Array),LS=process.env.NODE_ENV==="production",Yd="Invariant failed";function zd(e,n){if(!e)throw LS?new Error(Yd):new Error(Yd+": "+(n||""))}function jS(e,n,t,a){return JSON.stringify(e,kS(n,a),t)}function kS(e,n){var t=[],a=[];return n||(n=function(s,i){return t[0]===i?"[Circular ~]":"[Circular ~."+a.slice(0,t.indexOf(i)).join(".")+"]"}),function(s,i){if(t.length>0){var c=t.indexOf(this);~c?t.splice(c+1):t.push(this),~c?a.splice(c,1/0,s):a.push(s),~t.indexOf(i)&&(i=n.call(this,s,i))}else t.push(i);return e==null?i:e.call(this,s,i)}}function BS(e){return typeof e!="object"||e===null||typeof e>"u"||Object.isFrozen(e)}function WS(e,n,t){var a=ch(e,n,t);return{detectMutations:function(){return lh(e,n,a,t)}}}function ch(e,n,t,a){n===void 0&&(n=[]),a===void 0&&(a="");var s={value:t};if(!e(t)){s.children={};for(var i in t){var c=a?a+"."+i:i;n.length&&n.indexOf(c)!==-1||(s.children[i]=ch(e,n,t[i],c))}}return s}function lh(e,n,t,a,s,i){n===void 0&&(n=[]),s===void 0&&(s=!1),i===void 0&&(i="");var c=t?t.value:void 0,l=c===a;if(s&&!l&&!Number.isNaN(a))return{wasMutated:!0,path:i};if(e(c)||e(a))return{wasMutated:!1};var d={};for(var p in t.children)d[p]=!0;for(var p in a)d[p]=!0;for(var p in d){var h=i?i+"."+p:p;if(!(n.length&&n.indexOf(h)!==-1)){var m=lh(e,n,t.children[p],a[p],l,h);if(m.wasMutated)return m}}return{wasMutated:!1}}function US(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(d){return function(p){return d(p)}}};var n=e.isImmutable,t=n===void 0?BS:n,a=e.ignoredPaths,s=e.warnAfter,i=s===void 0?32:s,c=e.ignore;a=a||c;var l=WS.bind(null,t,a);return function(d){var p=d.getState,h=p(),m=l(h),_;return function(S){return function(T){var x=uh(i,"ImmutableStateInvariantMiddleware");x.measureTime(function(){h=p(),_=m.detectMutations(),m=l(h),zd(!_.wasMutated,"A state mutation was detected between dispatches, in the path '"+(_.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var F=S(T);return x.measureTime(function(){h=p(),_=m.detectMutations(),m=l(h),_.wasMutated&&zd(!_.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(_.path||"")+". Take a look at the reducer(s) handling the action "+jS(T)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),x.warnIfExceeded(),F}}}}function fh(e){var n=typeof e;return n==="undefined"||e===null||n==="string"||n==="boolean"||n==="number"||Array.isArray(e)||ih(e)}function Gu(e,n,t,a,s){n===void 0&&(n=""),t===void 0&&(t=fh),s===void 0&&(s=[]);var i;if(!t(e))return{keyPath:n||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var c=a!=null?a(e):Object.entries(e),l=s.length>0,d=0,p=c;d<p.length;d++){var h=p[d],m=h[0],_=h[1],S=n?n+"."+m:m;if(!(l&&s.indexOf(S)>=0)){if(!t(_))return{keyPath:S,value:_};if(typeof _=="object"&&(i=Gu(_,S,t,a,s),i))return i}}return!1}function HS(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(T){return function(x){return T(x)}}};var n=e.isSerializable,t=n===void 0?fh:n,a=e.getEntries,s=e.ignoredActions,i=s===void 0?[]:s,c=e.ignoredActionPaths,l=c===void 0?["meta.arg","meta.baseQueryMeta"]:c,d=e.ignoredPaths,p=d===void 0?[]:d,h=e.warnAfter,m=h===void 0?32:h,_=e.ignoreState,S=_===void 0?!1:_;return function(T){return function(x){return function(F){if(i.length&&i.indexOf(F.type)!==-1)return x(F);var D=uh(m,"SerializableStateInvariantMiddleware");D.measureTime(function(){var $=Gu(F,"",t,a,l);if($){var j=$.keyPath,A=$.value;console.error("A non-serializable value was detected in an action, in the path: `"+j+"`. Value:",A,`
|
|
4
4
|
Take a look at the logic that dispatched this action: `,F,`
|
|
5
5
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
6
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var W=
|
|
6
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var W=x(F);return S||(D.measureTime(function(){var $=T.getState(),j=Gu($,"",t,a,p);if(j){var A=j.keyPath,K=j.value;console.error("A non-serializable value was detected in the state, in the path: `"+A+"`. Value:",K,`
|
|
7
7
|
Take a look at the reducer(s) handling this action type: `+F.type+`.
|
|
8
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),D.warnIfExceeded()),W}}}}function gu(e){return typeof e=="boolean"}function HS(){return function(n){return GS(n)}}function GS(e){e===void 0&&(e={});var n=e.thunk,t=n===void 0?!0:n,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=new MS;if(t&&(gu(t)?l.push(Ud):l.push(Ud.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};gu(s)||(d=s),l.unshift(WS(d))}if(c){var p={};gu(c)||(p=c),l.push(US(p))}}return l}var vu=process.env.NODE_ENV==="production";function qS(e){var n=HS(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?n():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,m=t.enhancers,_=m===void 0?void 0:m,S;if(typeof s=="function")S=s;else if(sh(s))S=nh(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var T=c;if(typeof T=="function"&&(T=T(n),!vu&&!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!vu&&T.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=mS.apply(void 0,T),F=gs;d&&(F=$S(hn({trace:!vu},typeof d=="object"&&d)));var D=[C];Array.isArray(_)?D=ys([C],_):typeof _=="function"&&(D=_(D));var W=F.apply(void 0,D);return rh(S,h,W)}function Ka(e,n){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(n){var i=n.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return hn(hn({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:a[0]}}return t.toString=function(){return""+e},t.type=e,t.match=function(a){return a.type===e},t}function fh(e){var n={},t=[],a,s={addCase:function(i,c){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(a)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var l=typeof i=="string"?i:i.type;if(l in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[l]=c,s},addMatcher:function(i,c){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:i,reducer:c}),s},addDefaultCase:function(i){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addDefaultCase` can only be called once");return a=i,s}};return e(s),[n,t,a]}function YS(e){return typeof e=="function"}function zS(e,n,t,a){t===void 0&&(t=[]);var s=typeof n=="function"?fh(n):[n,t,a],i=s[0],c=s[1],l=s[2],d;if(YS(e))d=function(){return ss(e(),function(){})};else{var p=ss(e,function(){});d=function(){return p}}function h(m,_){m===void 0&&(m=d());var S=ys([i[_.type]],c.filter(function(T){var C=T.matcher;return C(_)}).map(function(T){var C=T.reducer;return C}));return S.filter(function(T){return!!T}).length===0&&(S=[l]),S.reduce(function(T,C){if(C)if(Vr(T)){var F=T,D=C(F,_);return typeof D>"u"?T:D}else{if(Sr(T))return ss(T,function(W){return C(W,_)});var D=C(T,_);if(typeof D>"u"){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return D}return T},m)}return h.getInitialState=d,h}function VS(e,n){return e+"/"+n}function lr(e){var n=e.name;if(!n)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:ss(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(h){var m=a[h],_=VS(n,h),S,T;"reducer"in m?(S=m.reducer,T=m.prepare):S=m,i[h]=S,c[_]=S,l[h]=T?Ka(_,T):Ka(_)});function d(){var h=typeof e.extraReducers=="function"?fh(e.extraReducers):[e.extraReducers],m=h[0],_=m===void 0?{}:m,S=h[1],T=S===void 0?[]:S,C=h[2],F=C===void 0?void 0:C,D=hn(hn({},_),c);return zS(t,D,T,F)}var p;return{name:n,reducer:function(h,m){return p||(p=d()),p(h,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var KS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wc=function(e){e===void 0&&(e=21);for(var n="",t=e;t--;)n+=KS[Math.random()*64|0];return n},JS=["name","message","stack","code"],yu=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),zd=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),XS=function(e){if(typeof e=="object"&&e!==null){for(var n={},t=0,a=JS;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(n[s]=e[s])}return n}return{message:String(e)}};function re(e,n,t){var a=Ka(e+"/fulfilled",function(p,h,m,_){return{payload:p,meta:hu(hn({},_||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),s=Ka(e+"/pending",function(p,h,m){return{payload:void 0,meta:hu(hn({},m||{}),{arg:h,requestId:p,requestStatus:"pending"})}}),i=Ka(e+"/rejected",function(p,h,m,_,S){return{payload:_,error:(t&&t.serializeError||XS)(p||"Rejected"),meta:hu(hn({},S||{}),{arg:m,requestId:h,rejectedWithValue:!!_,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return p.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(c||(c=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},p}();function d(p){return function(h,m,_){var S=t!=null&&t.idGenerator?t.idGenerator(p):wc(),T=new l,C,F=new Promise(function(j,A){return T.signal.addEventListener("abort",function(){return A({name:"AbortError",message:C||"Aborted"})})}),D=!1;function W(j){D&&(C=j,T.abort())}var $=function(){return FS(this,null,function(){var j,A,K,G,Y,ie;return RS(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),G=(j=t==null?void 0:t.condition)==null?void 0:j.call(t,p,{getState:m,extra:_}),QS(G)?[4,G]:[3,2];case 1:G=We.sent(),We.label=2;case 2:if(G===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return D=!0,h(s(S,p,(A=t==null?void 0:t.getPendingMeta)==null?void 0:A.call(t,{requestId:S,arg:p},{getState:m,extra:_}))),[4,Promise.race([F,Promise.resolve(n(p,{dispatch:h,getState:m,extra:_,requestId:S,signal:T.signal,rejectWithValue:function(Oe,st){return new yu(Oe,st)},fulfillWithValue:function(Oe,st){return new zd(Oe,st)}})).then(function(Oe){if(Oe instanceof yu)throw Oe;return Oe instanceof zd?a(Oe.payload,S,p,Oe.meta):a(Oe,S,p)})])];case 3:return K=We.sent(),[3,5];case 4:return Y=We.sent(),K=Y instanceof yu?i(null,S,p,Y.payload,Y.meta):i(Y,S,p),[3,5];case 5:return ie=t&&!t.dispatchConditionRejection&&i.match(K)&&K.meta.condition,ie||h(K),[2,K]}})})}();return Object.assign($,{abort:W,requestId:S,arg:p,unwrap:function(){return $.then(ZS)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function ZS(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function QS(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ew=function(e){return e&&typeof e.match=="function"},tw=function(e,n){return ew(e)?e.match(n):e(n)};function _r(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return e.some(function(a){return tw(a,t)})}}function Tc(e,n){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=n.indexOf(e.meta.requestStatus)>-1;return t&&a}function xc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function dh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["pending"])}:xc(e)?function(t){var a=e.map(function(i){return i.pending}),s=_r.apply(void 0,a);return s(t)}:dh()(e[0])}function ph(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["rejected"])}:xc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=_r.apply(void 0,a);return s(t)}:ph()(e[0])}function hh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["fulfilled"])}:xc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=_r.apply(void 0,a);return s(t)}:hh()(e[0])}tS();var qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rw(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),t}function nw(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var so=nw,aw=typeof qr=="object"&&qr&&qr.Object===Object&&qr,gh=aw,ow=gh,sw=typeof self=="object"&&self&&self.Object===Object&&self,iw=ow||sw||Function("return this")(),Pr=iw,uw=Pr,cw=function(){return uw.Date.now()},lw=cw,fw=/\s/;function dw(e){for(var n=e.length;n--&&fw.test(e.charAt(n)););return n}var pw=dw,hw=pw,gw=/^\s+/;function vw(e){return e&&e.slice(0,hw(e)+1).replace(gw,"")}var yw=vw,mw=Pr,bw=mw.Symbol,Cc=bw,Vd=Cc,vh=Object.prototype,_w=vh.hasOwnProperty,Ew=vh.toString,Ga=Vd?Vd.toStringTag:void 0;function Sw(e){var n=_w.call(e,Ga),t=e[Ga];try{e[Ga]=void 0;var a=!0}catch{}var s=Ew.call(e);return a&&(n?e[Ga]=t:delete e[Ga]),s}var ww=Sw,Tw=Object.prototype,xw=Tw.toString;function Cw(e){return xw.call(e)}var Rw=Cw,Kd=Cc,Ow=ww,Aw=Rw,Pw="[object Null]",Dw="[object Undefined]",Jd=Kd?Kd.toStringTag:void 0;function Iw(e){return e==null?e===void 0?Dw:Pw:Jd&&Jd in Object(e)?Ow(e):Aw(e)}var Fs=Iw;function Fw(e){return e!=null&&typeof e=="object"}var Rc=Fw,$w=Fs,Mw=Rc,Nw="[object Symbol]";function Lw(e){return typeof e=="symbol"||Mw(e)&&$w(e)==Nw}var jw=Lw,kw=yw,Xd=so,Bw=jw,Zd=0/0,Ww=/^[-+]0x[0-9a-f]+$/i,Uw=/^0b[01]+$/i,Hw=/^0o[0-7]+$/i,Gw=parseInt;function qw(e){if(typeof e=="number")return e;if(Bw(e))return Zd;if(Xd(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Xd(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=kw(e);var t=Uw.test(e);return t||Hw.test(e)?Gw(e.slice(2),t?2:8):Ww.test(e)?Zd:+e}var Yw=qw,zw=so,mu=lw,Qd=Yw,Vw="Expected a function",Kw=Math.max,Jw=Math.min;function Xw(e,n,t){var a,s,i,c,l,d,p=0,h=!1,m=!1,_=!0;if(typeof e!="function")throw new TypeError(Vw);n=Qd(n)||0,zw(t)&&(h=!!t.leading,m="maxWait"in t,i=m?Kw(Qd(t.maxWait)||0,n):i,_="trailing"in t?!!t.trailing:_);function S(K){var G=a,Y=s;return a=s=void 0,p=K,c=e.apply(Y,G),c}function T(K){return p=K,l=setTimeout(D,n),h?S(K):c}function C(K){var G=K-d,Y=K-p,ie=n-G;return m?Jw(ie,i-Y):ie}function F(K){var G=K-d,Y=K-p;return d===void 0||G>=n||G<0||m&&Y>=i}function D(){var K=mu();if(F(K))return W(K);l=setTimeout(D,C(K))}function W(K){return l=void 0,_&&a?S(K):(a=s=void 0,c)}function $(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function j(){return l===void 0?c:W(mu())}function A(){var K=mu(),G=F(K);if(a=arguments,s=this,d=K,G){if(l===void 0)return T(d);if(m)return clearTimeout(l),l=setTimeout(D,n),S(d)}return l===void 0&&(l=setTimeout(D,n)),c}return A.cancel=$,A.flush=j,A}var Zw=Xw,Qw=Zw,eT=so,tT="Expected a function";function rT(e,n,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(tT);return eT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),Qw(e,n,{leading:a,maxWait:n,trailing:s})}var nT=rT;const aT=Is(nT);var yh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(yh||{}),Gr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Gr||{}),ms=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ms||{}),mh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(mh||{});const $s=2e3,Oc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Gr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},bh="4DWS_PREFS",_h=e=>`APP_STATE_${e}`,Eh=()=>{var e,n;return((n=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:n.getBaseID())||""};function Sh(e){try{const n=Eh(),t=JSON.stringify(e);localStorage.setItem(_h(n),t)}catch(n){console.error(n)}}function wh(e){try{const n=JSON.stringify(e);localStorage.setItem(bh,n)}catch(n){console.error(n)}}function Th(){try{const e=localStorage.getItem(bh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function pa(){const e=Eh(),n=localStorage.getItem(_h(e));if(n){const t=JSON.parse(n);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Oc}function Ms(e){const{name:n,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case E.FileFolderType.WEBFORM:return`${n}.WebForm`;case E.FileFolderType.METHOD:case E.FileFolderType.CLASS:return s?`${n}.${s}`:n;case E.FileFolderType.ROLES:return n;default:return`${n}.${t}`}}const xh=e=>{if(!e)return[];const n=new Map;return e.dataClasses.forEach(t=>{var i,c;const a=t.extraProperties||{},s={id:t.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((c=a.position)==null?void 0:c.y)||0},dragHandle:".custom-drag-handle",data:t};n.set(t.name,s)}),Array.from(n.values())};function Ch(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function Rh(e,n){return{...e,components:Object.entries(e.components||{}).reduce((t,[a,s])=>({...t,[a]:{...s,custom:Object.entries(s.custom).reduce((i,[c,l])=>c===`states:${n}`?i:{...i,[c]:l},{}),props:Object.entries(s.props).reduce((i,[c,l])=>{let d=l;return c==="events"&&(d=d.map(p=>{var h,m;return p.type==="simple-action"?{...p,state:{...p.state,states:(m=(h=p.state)==null?void 0:h.states)==null?void 0:m.filter(_=>_!==n)}}:p})),{...i,[c]:d}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(t=>t.id!==n)}}}function oT(){this.__data__=[],this.size=0}var sT=oT;function iT(e,n){return e===n||e!==e&&n!==n}var uT=iT,cT=uT;function lT(e,n){for(var t=e.length;t--;)if(cT(e[t][0],n))return t;return-1}var Ns=lT,fT=Ns,dT=Array.prototype,pT=dT.splice;function hT(e){var n=this.__data__,t=fT(n,e);if(t<0)return!1;var a=n.length-1;return t==a?n.pop():pT.call(n,t,1),--this.size,!0}var gT=hT,vT=Ns;function yT(e){var n=this.__data__,t=vT(n,e);return t<0?void 0:n[t][1]}var mT=yT,bT=Ns;function _T(e){return bT(this.__data__,e)>-1}var ET=_T,ST=Ns;function wT(e,n){var t=this.__data__,a=ST(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this}var TT=wT,xT=sT,CT=gT,RT=mT,OT=ET,AT=TT;function ha(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}ha.prototype.clear=xT;ha.prototype.delete=CT;ha.prototype.get=RT;ha.prototype.has=OT;ha.prototype.set=AT;var Ls=ha,PT=Ls;function DT(){this.__data__=new PT,this.size=0}var IT=DT;function FT(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}var $T=FT;function MT(e){return this.__data__.get(e)}var NT=MT;function LT(e){return this.__data__.has(e)}var jT=LT,kT=Fs,BT=so,WT="[object AsyncFunction]",UT="[object Function]",HT="[object GeneratorFunction]",GT="[object Proxy]";function qT(e){if(!BT(e))return!1;var n=kT(e);return n==UT||n==HT||n==WT||n==GT}var YT=qT,zT=Pr,VT=zT["__core-js_shared__"],KT=VT,bu=KT,ep=function(){var e=/[^.]+$/.exec(bu&&bu.keys&&bu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function JT(e){return!!ep&&ep in e}var XT=JT,ZT=Function.prototype,QT=ZT.toString;function ex(e){if(e!=null){try{return QT.call(e)}catch{}try{return e+""}catch{}}return""}var Oh=ex,tx=YT,rx=XT,nx=so,ax=Oh,ox=/[\\^$.*+?()[\]{}|]/g,sx=/^\[object .+?Constructor\]$/,ix=Function.prototype,ux=Object.prototype,cx=ix.toString,lx=ux.hasOwnProperty,fx=RegExp("^"+cx.call(lx).replace(ox,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dx(e){if(!nx(e)||rx(e))return!1;var n=tx(e)?fx:sx;return n.test(ax(e))}var px=dx;function hx(e,n){return e==null?void 0:e[n]}var gx=hx,vx=px,yx=gx;function mx(e,n){var t=yx(e,n);return vx(t)?t:void 0}var ga=mx,bx=ga,_x=Pr,Ex=bx(_x,"Map"),Ac=Ex,Sx=ga,wx=Sx(Object,"create"),js=wx,tp=js;function Tx(){this.__data__=tp?tp(null):{},this.size=0}var xx=Tx;function Cx(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var Rx=Cx,Ox=js,Ax="__lodash_hash_undefined__",Px=Object.prototype,Dx=Px.hasOwnProperty;function Ix(e){var n=this.__data__;if(Ox){var t=n[e];return t===Ax?void 0:t}return Dx.call(n,e)?n[e]:void 0}var Fx=Ix,$x=js,Mx=Object.prototype,Nx=Mx.hasOwnProperty;function Lx(e){var n=this.__data__;return $x?n[e]!==void 0:Nx.call(n,e)}var jx=Lx,kx=js,Bx="__lodash_hash_undefined__";function Wx(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=kx&&n===void 0?Bx:n,this}var Ux=Wx,Hx=xx,Gx=Rx,qx=Fx,Yx=jx,zx=Ux;function va(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}va.prototype.clear=Hx;va.prototype.delete=Gx;va.prototype.get=qx;va.prototype.has=Yx;va.prototype.set=zx;var Vx=va,rp=Vx,Kx=Ls,Jx=Ac;function Xx(){this.size=0,this.__data__={hash:new rp,map:new(Jx||Kx),string:new rp}}var Zx=Xx;function Qx(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var eC=Qx,tC=eC;function rC(e,n){var t=e.__data__;return tC(n)?t[typeof n=="string"?"string":"hash"]:t.map}var ks=rC,nC=ks;function aC(e){var n=nC(this,e).delete(e);return this.size-=n?1:0,n}var oC=aC,sC=ks;function iC(e){return sC(this,e).get(e)}var uC=iC,cC=ks;function lC(e){return cC(this,e).has(e)}var fC=lC,dC=ks;function pC(e,n){var t=dC(this,e),a=t.size;return t.set(e,n),this.size+=t.size==a?0:1,this}var hC=pC,gC=Zx,vC=oC,yC=uC,mC=fC,bC=hC;function ya(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}ya.prototype.clear=gC;ya.prototype.delete=vC;ya.prototype.get=yC;ya.prototype.has=mC;ya.prototype.set=bC;var Ah=ya,_C=Ls,EC=Ac,SC=Ah,wC=200;function TC(e,n){var t=this.__data__;if(t instanceof _C){var a=t.__data__;if(!EC||a.length<wC-1)return a.push([e,n]),this.size=++t.size,this;t=this.__data__=new SC(a)}return t.set(e,n),this.size=t.size,this}var xC=TC,CC=Ls,RC=IT,OC=$T,AC=NT,PC=jT,DC=xC;function io(e){var n=this.__data__=new CC(e);this.size=n.size}io.prototype.clear=RC;io.prototype.delete=OC;io.prototype.get=AC;io.prototype.has=PC;io.prototype.set=DC;var IC="__lodash_hash_undefined__";function FC(e){return this.__data__.set(e,IC),this}var $C=FC;function MC(e){return this.__data__.has(e)}var NC=MC,LC=Ah,jC=$C,kC=NC;function qu(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new LC;++n<t;)this.add(e[n])}qu.prototype.add=qu.prototype.push=jC;qu.prototype.has=kC;var BC=Pr;BC.Uint8Array;var np=Cc,ap=np?np.prototype:void 0;ap&&ap.valueOf;var WC=Fs,UC=Rc,HC="[object Arguments]";function GC(e){return UC(e)&&WC(e)==HC}var qC=GC,op=qC,YC=Rc,Ph=Object.prototype,zC=Ph.hasOwnProperty,VC=Ph.propertyIsEnumerable;op(function(){return arguments}());var bs={exports:{}};function KC(){return!1}var JC=KC;bs.exports;(function(e,n){var t=Pr,a=JC,s=n&&!n.nodeType&&n,i=s&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===s,l=c?t.Buffer:void 0,d=l?l.isBuffer:void 0,p=d||a;e.exports=p})(bs,bs.exports);bs.exports;var _s={exports:{}};_s.exports;(function(e,n){var t=gh,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,c=i&&t.process,l=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(_s,_s.exports);var XC=_s.exports,sp=XC;sp&&sp.isTypedArray;var ZC=ga,QC=Pr,eR=ZC(QC,"DataView"),tR=eR,rR=ga,nR=Pr,aR=rR(nR,"Promise"),oR=aR,sR=ga,iR=Pr,uR=sR(iR,"Set"),cR=uR,lR=ga,fR=Pr,dR=lR(fR,"WeakMap"),pR=dR,Yu=tR,zu=Ac,Vu=oR,Ku=cR,Ju=pR,Dh=Fs,ma=Oh,ip="[object Map]",hR="[object Object]",up="[object Promise]",cp="[object Set]",lp="[object WeakMap]",fp="[object DataView]",gR=ma(Yu),vR=ma(zu),yR=ma(Vu),mR=ma(Ku),bR=ma(Ju),na=Dh;(Yu&&na(new Yu(new ArrayBuffer(1)))!=fp||zu&&na(new zu)!=ip||Vu&&na(Vu.resolve())!=up||Ku&&na(new Ku)!=cp||Ju&&na(new Ju)!=lp)&&(na=function(e){var n=Dh(e),t=n==hR?e.constructor:void 0,a=t?ma(t):"";if(a)switch(a){case gR:return fp;case vR:return ip;case yR:return up;case mR:return cp;case bR:return lp}return n});const _R="ROOT";nS(),rS();var dp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(dp||(dp={}));var Es={exports:{}};/**
|
|
8
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),D.warnIfExceeded()),W}}}}function gu(e){return typeof e=="boolean"}function GS(){return function(n){return qS(n)}}function qS(e){e===void 0&&(e={});var n=e.thunk,t=n===void 0?!0:n,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=new NS;if(t&&(gu(t)?l.push(Hd):l.push(Hd.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};gu(s)||(d=s),l.unshift(US(d))}if(c){var p={};gu(c)||(p=c),l.push(HS(p))}}return l}var vu=process.env.NODE_ENV==="production";function YS(e){var n=GS(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?n():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,m=t.enhancers,_=m===void 0?void 0:m,S;if(typeof s=="function")S=s;else if(ih(s))S=ah(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var T=c;if(typeof T=="function"&&(T=T(n),!vu&&!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!vu&&T.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=bS.apply(void 0,T),F=gs;d&&(F=MS(hn({trace:!vu},typeof d=="object"&&d)));var D=[x];Array.isArray(_)?D=ys([x],_):typeof _=="function"&&(D=_(D));var W=F.apply(void 0,D);return nh(S,h,W)}function Ka(e,n){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(n){var i=n.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return hn(hn({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:a[0]}}return t.toString=function(){return""+e},t.type=e,t.match=function(a){return a.type===e},t}function dh(e){var n={},t=[],a,s={addCase:function(i,c){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(a)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var l=typeof i=="string"?i:i.type;if(l in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[l]=c,s},addMatcher:function(i,c){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:i,reducer:c}),s},addDefaultCase:function(i){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addDefaultCase` can only be called once");return a=i,s}};return e(s),[n,t,a]}function zS(e){return typeof e=="function"}function VS(e,n,t,a){t===void 0&&(t=[]);var s=typeof n=="function"?dh(n):[n,t,a],i=s[0],c=s[1],l=s[2],d;if(zS(e))d=function(){return ss(e(),function(){})};else{var p=ss(e,function(){});d=function(){return p}}function h(m,_){m===void 0&&(m=d());var S=ys([i[_.type]],c.filter(function(T){var x=T.matcher;return x(_)}).map(function(T){var x=T.reducer;return x}));return S.filter(function(T){return!!T}).length===0&&(S=[l]),S.reduce(function(T,x){if(x)if(Vr(T)){var F=T,D=x(F,_);return typeof D>"u"?T:D}else{if(Sr(T))return ss(T,function(W){return x(W,_)});var D=x(T,_);if(typeof D>"u"){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return D}return T},m)}return h.getInitialState=d,h}function KS(e,n){return e+"/"+n}function lr(e){var n=e.name;if(!n)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:ss(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(h){var m=a[h],_=KS(n,h),S,T;"reducer"in m?(S=m.reducer,T=m.prepare):S=m,i[h]=S,c[_]=S,l[h]=T?Ka(_,T):Ka(_)});function d(){var h=typeof e.extraReducers=="function"?dh(e.extraReducers):[e.extraReducers],m=h[0],_=m===void 0?{}:m,S=h[1],T=S===void 0?[]:S,x=h[2],F=x===void 0?void 0:x,D=hn(hn({},_),c);return VS(t,D,T,F)}var p;return{name:n,reducer:function(h,m){return p||(p=d()),p(h,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var JS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wc=function(e){e===void 0&&(e=21);for(var n="",t=e;t--;)n+=JS[Math.random()*64|0];return n},XS=["name","message","stack","code"],yu=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),Vd=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),ZS=function(e){if(typeof e=="object"&&e!==null){for(var n={},t=0,a=XS;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(n[s]=e[s])}return n}return{message:String(e)}};function re(e,n,t){var a=Ka(e+"/fulfilled",function(p,h,m,_){return{payload:p,meta:hu(hn({},_||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),s=Ka(e+"/pending",function(p,h,m){return{payload:void 0,meta:hu(hn({},m||{}),{arg:h,requestId:p,requestStatus:"pending"})}}),i=Ka(e+"/rejected",function(p,h,m,_,S){return{payload:_,error:(t&&t.serializeError||ZS)(p||"Rejected"),meta:hu(hn({},S||{}),{arg:m,requestId:h,rejectedWithValue:!!_,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return p.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(c||(c=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},p}();function d(p){return function(h,m,_){var S=t!=null&&t.idGenerator?t.idGenerator(p):wc(),T=new l,x,F=new Promise(function(j,A){return T.signal.addEventListener("abort",function(){return A({name:"AbortError",message:x||"Aborted"})})}),D=!1;function W(j){D&&(x=j,T.abort())}var $=function(){return $S(this,null,function(){var j,A,K,G,Y,ie;return RS(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),G=(j=t==null?void 0:t.condition)==null?void 0:j.call(t,p,{getState:m,extra:_}),ew(G)?[4,G]:[3,2];case 1:G=We.sent(),We.label=2;case 2:if(G===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return D=!0,h(s(S,p,(A=t==null?void 0:t.getPendingMeta)==null?void 0:A.call(t,{requestId:S,arg:p},{getState:m,extra:_}))),[4,Promise.race([F,Promise.resolve(n(p,{dispatch:h,getState:m,extra:_,requestId:S,signal:T.signal,rejectWithValue:function(Re,st){return new yu(Re,st)},fulfillWithValue:function(Re,st){return new Vd(Re,st)}})).then(function(Re){if(Re instanceof yu)throw Re;return Re instanceof Vd?a(Re.payload,S,p,Re.meta):a(Re,S,p)})])];case 3:return K=We.sent(),[3,5];case 4:return Y=We.sent(),K=Y instanceof yu?i(null,S,p,Y.payload,Y.meta):i(Y,S,p),[3,5];case 5:return ie=t&&!t.dispatchConditionRejection&&i.match(K)&&K.meta.condition,ie||h(K),[2,K]}})})}();return Object.assign($,{abort:W,requestId:S,arg:p,unwrap:function(){return $.then(QS)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function QS(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ew(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var tw=function(e){return e&&typeof e.match=="function"},rw=function(e,n){return tw(e)?e.match(n):e(n)};function _r(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return e.some(function(a){return rw(a,t)})}}function Tc(e,n){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=n.indexOf(e.meta.requestStatus)>-1;return t&&a}function Cc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ph(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["pending"])}:Cc(e)?function(t){var a=e.map(function(i){return i.pending}),s=_r.apply(void 0,a);return s(t)}:ph()(e[0])}function hh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["rejected"])}:Cc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=_r.apply(void 0,a);return s(t)}:hh()(e[0])}function gh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["fulfilled"])}:Cc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=_r.apply(void 0,a);return s(t)}:gh()(e[0])}rS();var qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nw(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),t}function aw(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var so=aw,ow=typeof qr=="object"&&qr&&qr.Object===Object&&qr,vh=ow,sw=vh,iw=typeof self=="object"&&self&&self.Object===Object&&self,uw=sw||iw||Function("return this")(),Pr=uw,cw=Pr,lw=function(){return cw.Date.now()},fw=lw,dw=/\s/;function pw(e){for(var n=e.length;n--&&dw.test(e.charAt(n)););return n}var hw=pw,gw=hw,vw=/^\s+/;function yw(e){return e&&e.slice(0,gw(e)+1).replace(vw,"")}var mw=yw,bw=Pr,_w=bw.Symbol,xc=_w,Kd=xc,yh=Object.prototype,Ew=yh.hasOwnProperty,Sw=yh.toString,Ga=Kd?Kd.toStringTag:void 0;function ww(e){var n=Ew.call(e,Ga),t=e[Ga];try{e[Ga]=void 0;var a=!0}catch{}var s=Sw.call(e);return a&&(n?e[Ga]=t:delete e[Ga]),s}var Tw=ww,Cw=Object.prototype,xw=Cw.toString;function Ow(e){return xw.call(e)}var Rw=Ow,Jd=xc,Aw=Tw,Pw=Rw,Dw="[object Null]",Iw="[object Undefined]",Xd=Jd?Jd.toStringTag:void 0;function Fw(e){return e==null?e===void 0?Iw:Dw:Xd&&Xd in Object(e)?Aw(e):Pw(e)}var Fs=Fw;function $w(e){return e!=null&&typeof e=="object"}var Oc=$w,Mw=Fs,Nw=Oc,Lw="[object Symbol]";function jw(e){return typeof e=="symbol"||Nw(e)&&Mw(e)==Lw}var kw=jw,Bw=mw,Zd=so,Ww=kw,Qd=0/0,Uw=/^[-+]0x[0-9a-f]+$/i,Hw=/^0b[01]+$/i,Gw=/^0o[0-7]+$/i,qw=parseInt;function Yw(e){if(typeof e=="number")return e;if(Ww(e))return Qd;if(Zd(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Zd(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Bw(e);var t=Hw.test(e);return t||Gw.test(e)?qw(e.slice(2),t?2:8):Uw.test(e)?Qd:+e}var zw=Yw,Vw=so,mu=fw,ep=zw,Kw="Expected a function",Jw=Math.max,Xw=Math.min;function Zw(e,n,t){var a,s,i,c,l,d,p=0,h=!1,m=!1,_=!0;if(typeof e!="function")throw new TypeError(Kw);n=ep(n)||0,Vw(t)&&(h=!!t.leading,m="maxWait"in t,i=m?Jw(ep(t.maxWait)||0,n):i,_="trailing"in t?!!t.trailing:_);function S(K){var G=a,Y=s;return a=s=void 0,p=K,c=e.apply(Y,G),c}function T(K){return p=K,l=setTimeout(D,n),h?S(K):c}function x(K){var G=K-d,Y=K-p,ie=n-G;return m?Xw(ie,i-Y):ie}function F(K){var G=K-d,Y=K-p;return d===void 0||G>=n||G<0||m&&Y>=i}function D(){var K=mu();if(F(K))return W(K);l=setTimeout(D,x(K))}function W(K){return l=void 0,_&&a?S(K):(a=s=void 0,c)}function $(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function j(){return l===void 0?c:W(mu())}function A(){var K=mu(),G=F(K);if(a=arguments,s=this,d=K,G){if(l===void 0)return T(d);if(m)return clearTimeout(l),l=setTimeout(D,n),S(d)}return l===void 0&&(l=setTimeout(D,n)),c}return A.cancel=$,A.flush=j,A}var Qw=Zw,eT=Qw,tT=so,rT="Expected a function";function nT(e,n,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(rT);return tT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),eT(e,n,{leading:a,maxWait:n,trailing:s})}var aT=nT;const oT=Is(aT);var mh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(mh||{}),Gr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Gr||{}),ms=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ms||{}),bh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(bh||{});const $s=2e3,Rc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Gr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},_h="4DWS_PREFS",Eh=e=>`APP_STATE_${e}`,Sh=()=>{var e,n;return((n=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:n.getBaseID())||""};function wh(e){try{const n=Sh(),t=JSON.stringify(e);localStorage.setItem(Eh(n),t)}catch(n){console.error(n)}}function Th(e){try{const n=JSON.stringify(e);localStorage.setItem(_h,n)}catch(n){console.error(n)}}function Ch(){try{const e=localStorage.getItem(_h);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function pa(){const e=Sh(),n=localStorage.getItem(Eh(e));if(n){const t=JSON.parse(n);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Rc}function Ms(e){const{name:n,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case E.FileFolderType.WEBFORM:return`${n}.WebForm`;case E.FileFolderType.METHOD:case E.FileFolderType.CLASS:return s?`${n}.${s}`:n;case E.FileFolderType.ROLES:return n;default:return`${n}.${t}`}}const xh=e=>{if(!e)return[];const n=new Map;return e.dataClasses.forEach(t=>{var i,c;const a=t.extraProperties||{},s={id:t.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((c=a.position)==null?void 0:c.y)||0},dragHandle:".custom-drag-handle",data:t};n.set(t.name,s)}),Array.from(n.values())};function Oh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function Rh(e,n){return{...e,components:Object.entries(e.components||{}).reduce((t,[a,s])=>({...t,[a]:{...s,custom:Object.entries(s.custom).reduce((i,[c,l])=>c===`states:${n}`?i:{...i,[c]:l},{}),props:Object.entries(s.props).reduce((i,[c,l])=>{let d=l;return c==="events"&&(d=d.map(p=>{var h,m;return p.type==="simple-action"?{...p,state:{...p.state,states:(m=(h=p.state)==null?void 0:h.states)==null?void 0:m.filter(_=>_!==n)}}:p})),{...i,[c]:d}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(t=>t.id!==n)}}}function sT(){this.__data__=[],this.size=0}var iT=sT;function uT(e,n){return e===n||e!==e&&n!==n}var cT=uT,lT=cT;function fT(e,n){for(var t=e.length;t--;)if(lT(e[t][0],n))return t;return-1}var Ns=fT,dT=Ns,pT=Array.prototype,hT=pT.splice;function gT(e){var n=this.__data__,t=dT(n,e);if(t<0)return!1;var a=n.length-1;return t==a?n.pop():hT.call(n,t,1),--this.size,!0}var vT=gT,yT=Ns;function mT(e){var n=this.__data__,t=yT(n,e);return t<0?void 0:n[t][1]}var bT=mT,_T=Ns;function ET(e){return _T(this.__data__,e)>-1}var ST=ET,wT=Ns;function TT(e,n){var t=this.__data__,a=wT(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this}var CT=TT,xT=iT,OT=vT,RT=bT,AT=ST,PT=CT;function ha(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}ha.prototype.clear=xT;ha.prototype.delete=OT;ha.prototype.get=RT;ha.prototype.has=AT;ha.prototype.set=PT;var Ls=ha,DT=Ls;function IT(){this.__data__=new DT,this.size=0}var FT=IT;function $T(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}var MT=$T;function NT(e){return this.__data__.get(e)}var LT=NT;function jT(e){return this.__data__.has(e)}var kT=jT,BT=Fs,WT=so,UT="[object AsyncFunction]",HT="[object Function]",GT="[object GeneratorFunction]",qT="[object Proxy]";function YT(e){if(!WT(e))return!1;var n=BT(e);return n==HT||n==GT||n==UT||n==qT}var zT=YT,VT=Pr,KT=VT["__core-js_shared__"],JT=KT,bu=JT,tp=function(){var e=/[^.]+$/.exec(bu&&bu.keys&&bu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function XT(e){return!!tp&&tp in e}var ZT=XT,QT=Function.prototype,eC=QT.toString;function tC(e){if(e!=null){try{return eC.call(e)}catch{}try{return e+""}catch{}}return""}var Ah=tC,rC=zT,nC=ZT,aC=so,oC=Ah,sC=/[\\^$.*+?()[\]{}|]/g,iC=/^\[object .+?Constructor\]$/,uC=Function.prototype,cC=Object.prototype,lC=uC.toString,fC=cC.hasOwnProperty,dC=RegExp("^"+lC.call(fC).replace(sC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pC(e){if(!aC(e)||nC(e))return!1;var n=rC(e)?dC:iC;return n.test(oC(e))}var hC=pC;function gC(e,n){return e==null?void 0:e[n]}var vC=gC,yC=hC,mC=vC;function bC(e,n){var t=mC(e,n);return yC(t)?t:void 0}var ga=bC,_C=ga,EC=Pr,SC=_C(EC,"Map"),Ac=SC,wC=ga,TC=wC(Object,"create"),js=TC,rp=js;function CC(){this.__data__=rp?rp(null):{},this.size=0}var xC=CC;function OC(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var RC=OC,AC=js,PC="__lodash_hash_undefined__",DC=Object.prototype,IC=DC.hasOwnProperty;function FC(e){var n=this.__data__;if(AC){var t=n[e];return t===PC?void 0:t}return IC.call(n,e)?n[e]:void 0}var $C=FC,MC=js,NC=Object.prototype,LC=NC.hasOwnProperty;function jC(e){var n=this.__data__;return MC?n[e]!==void 0:LC.call(n,e)}var kC=jC,BC=js,WC="__lodash_hash_undefined__";function UC(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=BC&&n===void 0?WC:n,this}var HC=UC,GC=xC,qC=RC,YC=$C,zC=kC,VC=HC;function va(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}va.prototype.clear=GC;va.prototype.delete=qC;va.prototype.get=YC;va.prototype.has=zC;va.prototype.set=VC;var KC=va,np=KC,JC=Ls,XC=Ac;function ZC(){this.size=0,this.__data__={hash:new np,map:new(XC||JC),string:new np}}var QC=ZC;function ex(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var tx=ex,rx=tx;function nx(e,n){var t=e.__data__;return rx(n)?t[typeof n=="string"?"string":"hash"]:t.map}var ks=nx,ax=ks;function ox(e){var n=ax(this,e).delete(e);return this.size-=n?1:0,n}var sx=ox,ix=ks;function ux(e){return ix(this,e).get(e)}var cx=ux,lx=ks;function fx(e){return lx(this,e).has(e)}var dx=fx,px=ks;function hx(e,n){var t=px(this,e),a=t.size;return t.set(e,n),this.size+=t.size==a?0:1,this}var gx=hx,vx=QC,yx=sx,mx=cx,bx=dx,_x=gx;function ya(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}ya.prototype.clear=vx;ya.prototype.delete=yx;ya.prototype.get=mx;ya.prototype.has=bx;ya.prototype.set=_x;var Ph=ya,Ex=Ls,Sx=Ac,wx=Ph,Tx=200;function Cx(e,n){var t=this.__data__;if(t instanceof Ex){var a=t.__data__;if(!Sx||a.length<Tx-1)return a.push([e,n]),this.size=++t.size,this;t=this.__data__=new wx(a)}return t.set(e,n),this.size=t.size,this}var xx=Cx,Ox=Ls,Rx=FT,Ax=MT,Px=LT,Dx=kT,Ix=xx;function io(e){var n=this.__data__=new Ox(e);this.size=n.size}io.prototype.clear=Rx;io.prototype.delete=Ax;io.prototype.get=Px;io.prototype.has=Dx;io.prototype.set=Ix;var Fx="__lodash_hash_undefined__";function $x(e){return this.__data__.set(e,Fx),this}var Mx=$x;function Nx(e){return this.__data__.has(e)}var Lx=Nx,jx=Ph,kx=Mx,Bx=Lx;function qu(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new jx;++n<t;)this.add(e[n])}qu.prototype.add=qu.prototype.push=kx;qu.prototype.has=Bx;var Wx=Pr;Wx.Uint8Array;var ap=xc,op=ap?ap.prototype:void 0;op&&op.valueOf;var Ux=Fs,Hx=Oc,Gx="[object Arguments]";function qx(e){return Hx(e)&&Ux(e)==Gx}var Yx=qx,sp=Yx,zx=Oc,Dh=Object.prototype,Vx=Dh.hasOwnProperty,Kx=Dh.propertyIsEnumerable;sp(function(){return arguments}());var bs={exports:{}};function Jx(){return!1}var Xx=Jx;bs.exports;(function(e,n){var t=Pr,a=Xx,s=n&&!n.nodeType&&n,i=s&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===s,l=c?t.Buffer:void 0,d=l?l.isBuffer:void 0,p=d||a;e.exports=p})(bs,bs.exports);bs.exports;var _s={exports:{}};_s.exports;(function(e,n){var t=vh,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,c=i&&t.process,l=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(_s,_s.exports);var Zx=_s.exports,ip=Zx;ip&&ip.isTypedArray;var Qx=ga,eO=Pr,tO=Qx(eO,"DataView"),rO=tO,nO=ga,aO=Pr,oO=nO(aO,"Promise"),sO=oO,iO=ga,uO=Pr,cO=iO(uO,"Set"),lO=cO,fO=ga,dO=Pr,pO=fO(dO,"WeakMap"),hO=pO,Yu=rO,zu=Ac,Vu=sO,Ku=lO,Ju=hO,Ih=Fs,ma=Ah,up="[object Map]",gO="[object Object]",cp="[object Promise]",lp="[object Set]",fp="[object WeakMap]",dp="[object DataView]",vO=ma(Yu),yO=ma(zu),mO=ma(Vu),bO=ma(Ku),_O=ma(Ju),na=Ih;(Yu&&na(new Yu(new ArrayBuffer(1)))!=dp||zu&&na(new zu)!=up||Vu&&na(Vu.resolve())!=cp||Ku&&na(new Ku)!=lp||Ju&&na(new Ju)!=fp)&&(na=function(e){var n=Ih(e),t=n==gO?e.constructor:void 0,a=t?ma(t):"";if(a)switch(a){case vO:return dp;case yO:return up;case mO:return cp;case bO:return lp;case _O:return fp}return n});const EO="ROOT";aS(),nS();var pp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(pp||(pp={}));var Es={exports:{}};/**
|
|
9
9
|
* @license
|
|
10
10
|
* Lodash <https://lodash.com/>
|
|
11
11
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
12
12
|
* Released under MIT license <https://lodash.com/license>
|
|
13
13
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
14
14
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
15
|
-
*/Es.exports;(function(e,n){(function(){var t,a="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",m=1,_=2,S=4,T=1,C=2,F=1,D=2,W=4,$=8,j=16,A=32,K=64,G=128,Y=256,ie=512,We=30,Oe="...",st=800,Z=16,we=1,Xe=2,Ze=3,Ue=1/0,et=9007199254740991,Dt=17976931348623157e292,H=0/0,V=4294967295,ve=V-1,he=V>>>1,le=[["ary",G],["bind",F],["bindKey",D],["curry",$],["curryRight",j],["flip",ie],["partial",A],["partialRight",K],["rearg",Y]],ye="[object Arguments]",se="[object Array]",fe="[object AsyncFunction]",ue="[object Boolean]",me="[object Date]",ge="[object DOMException]",J="[object Error]",N="[object Function]",Ge="[object GeneratorFunction]",qe="[object Map]",it="[object Number]",vn="[object Null]",It="[object Object]",er="[object Promise]",Ea="[object Proxy]",bt="[object RegExp]",pt="[object Set]",Ir="[object String]",wr="[object Symbol]",yn="[object Undefined]",qt="[object WeakMap]",Sa="[object WeakSet]",Fr="[object ArrayBuffer]",Tr="[object DataView]",mn="[object Float32Array]",bn="[object Float64Array]",_n="[object Int8Array]",En="[object Int16Array]",dr="[object Int32Array]",$r="[object Uint8Array]",_t="[object Uint8ClampedArray]",pr="[object Uint16Array]",hr="[object Uint32Array]",Sn=/\b__p \+= '';/g,wa=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wn=/&(?:amp|lt|gt|quot|#39);/g,en=/[&<>"']/g,Tn=RegExp(Wn.source),Ta=RegExp(en.source),xa=/<%-([\s\S]+?)%>/g,xn=/<%([\s\S]+?)%>/g,Un=/<%=([\s\S]+?)%>/g,Ca=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ra=/^\w*$/,Oa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/[\\^$.*+?()[\]{}|]/g,R=RegExp(g.source),I=/^\s+/,q=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ee=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ie=/[()=,{}\[\]\/\s]/,be=/\\(\\)?/g,Ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,at=/\w*$/,Ft=/^[-+]0x[0-9a-f]+$/i,Cn=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,Bv=/^0o[0-7]+$/i,Wv=/^(?:0|[1-9]\d*)$/,Uv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lo=/($^)/,Hv=/['\n\r\u2028\u2029\\]/g,fo="\\ud800-\\udfff",Gv="\\u0300-\\u036f",qv="\\ufe20-\\ufe2f",Yv="\\u20d0-\\u20ff",sl=Gv+qv+Yv,il="\\u2700-\\u27bf",ul="a-z\\xdf-\\xf6\\xf8-\\xff",zv="\\xac\\xb1\\xd7\\xf7",Vv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Kv="\\u2000-\\u206f",Jv=" \\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",cl="A-Z\\xc0-\\xd6\\xd8-\\xde",ll="\\ufe0e\\ufe0f",fl=zv+Vv+Kv+Jv,Qs="['’]",Xv="["+fo+"]",dl="["+fl+"]",po="["+sl+"]",pl="\\d+",Zv="["+il+"]",hl="["+ul+"]",gl="[^"+fo+fl+pl+il+ul+cl+"]",ei="\\ud83c[\\udffb-\\udfff]",Qv="(?:"+po+"|"+ei+")",vl="[^"+fo+"]",ti="(?:\\ud83c[\\udde6-\\uddff]){2}",ri="[\\ud800-\\udbff][\\udc00-\\udfff]",Hn="["+cl+"]",yl="\\u200d",ml="(?:"+hl+"|"+gl+")",ey="(?:"+Hn+"|"+gl+")",bl="(?:"+Qs+"(?:d|ll|m|re|s|t|ve))?",_l="(?:"+Qs+"(?:D|LL|M|RE|S|T|VE))?",El=Qv+"?",Sl="["+ll+"]?",ty="(?:"+yl+"(?:"+[vl,ti,ri].join("|")+")"+Sl+El+")*",ry="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ny="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wl=Sl+El+ty,ay="(?:"+[Zv,ti,ri].join("|")+")"+wl,oy="(?:"+[vl+po+"?",po,ti,ri,Xv].join("|")+")",sy=RegExp(Qs,"g"),iy=RegExp(po,"g"),ni=RegExp(ei+"(?="+ei+")|"+oy+wl,"g"),uy=RegExp([Hn+"?"+hl+"+"+bl+"(?="+[dl,Hn,"$"].join("|")+")",ey+"+"+_l+"(?="+[dl,Hn+ml,"$"].join("|")+")",Hn+"?"+ml+"+"+bl,Hn+"+"+_l,ny,ry,pl,ay].join("|"),"g"),cy=RegExp("["+yl+fo+sl+ll+"]"),ly=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fy=["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"],dy=-1,Qe={};Qe[mn]=Qe[bn]=Qe[_n]=Qe[En]=Qe[dr]=Qe[$r]=Qe[_t]=Qe[pr]=Qe[hr]=!0,Qe[ye]=Qe[se]=Qe[Fr]=Qe[ue]=Qe[Tr]=Qe[me]=Qe[J]=Qe[N]=Qe[qe]=Qe[it]=Qe[It]=Qe[bt]=Qe[pt]=Qe[Ir]=Qe[qt]=!1;var Je={};Je[ye]=Je[se]=Je[Fr]=Je[Tr]=Je[ue]=Je[me]=Je[mn]=Je[bn]=Je[_n]=Je[En]=Je[dr]=Je[qe]=Je[it]=Je[It]=Je[bt]=Je[pt]=Je[Ir]=Je[wr]=Je[$r]=Je[_t]=Je[pr]=Je[hr]=!0,Je[J]=Je[N]=Je[qt]=!1;var py={À:"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"},hy={"&":"&","<":"<",">":">",'"':""","'":"'"},gy={"&":"&","<":"<",">":">",""":'"',"'":"'"},vy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yy=parseFloat,my=parseInt,Tl=typeof qr=="object"&&qr&&qr.Object===Object&&qr,by=typeof self=="object"&&self&&self.Object===Object&&self,Et=Tl||by||Function("return this")(),ai=n&&!n.nodeType&&n,Rn=ai&&!0&&e&&!e.nodeType&&e,xl=Rn&&Rn.exports===ai,oi=xl&&Tl.process,tr=function(){try{var O=Rn&&Rn.require&&Rn.require("util").types;return O||oi&&oi.binding&&oi.binding("util")}catch{}}(),Cl=tr&&tr.isArrayBuffer,Rl=tr&&tr.isDate,Ol=tr&&tr.isMap,Al=tr&&tr.isRegExp,Pl=tr&&tr.isSet,Dl=tr&&tr.isTypedArray;function Yt(O,L,M){switch(M.length){case 0:return O.call(L);case 1:return O.call(L,M[0]);case 2:return O.call(L,M[0],M[1]);case 3:return O.call(L,M[0],M[1],M[2])}return O.apply(L,M)}function _y(O,L,M,te){for(var _e=-1,$e=O==null?0:O.length;++_e<$e;){var ht=O[_e];L(te,ht,M(ht),O)}return te}function rr(O,L){for(var M=-1,te=O==null?0:O.length;++M<te&&L(O[M],M,O)!==!1;);return O}function Ey(O,L){for(var M=O==null?0:O.length;M--&&L(O[M],M,O)!==!1;);return O}function Il(O,L){for(var M=-1,te=O==null?0:O.length;++M<te;)if(!L(O[M],M,O))return!1;return!0}function tn(O,L){for(var M=-1,te=O==null?0:O.length,_e=0,$e=[];++M<te;){var ht=O[M];L(ht,M,O)&&($e[_e++]=ht)}return $e}function ho(O,L){var M=O==null?0:O.length;return!!M&&Gn(O,L,0)>-1}function si(O,L,M){for(var te=-1,_e=O==null?0:O.length;++te<_e;)if(M(L,O[te]))return!0;return!1}function tt(O,L){for(var M=-1,te=O==null?0:O.length,_e=Array(te);++M<te;)_e[M]=L(O[M],M,O);return _e}function rn(O,L){for(var M=-1,te=L.length,_e=O.length;++M<te;)O[_e+M]=L[M];return O}function ii(O,L,M,te){var _e=-1,$e=O==null?0:O.length;for(te&&$e&&(M=O[++_e]);++_e<$e;)M=L(M,O[_e],_e,O);return M}function Sy(O,L,M,te){var _e=O==null?0:O.length;for(te&&_e&&(M=O[--_e]);_e--;)M=L(M,O[_e],_e,O);return M}function ui(O,L){for(var M=-1,te=O==null?0:O.length;++M<te;)if(L(O[M],M,O))return!0;return!1}var wy=ci("length");function Ty(O){return O.split("")}function xy(O){return O.match(Q)||[]}function Fl(O,L,M){var te;return M(O,function(_e,$e,ht){if(L(_e,$e,ht))return te=$e,!1}),te}function go(O,L,M,te){for(var _e=O.length,$e=M+(te?1:-1);te?$e--:++$e<_e;)if(L(O[$e],$e,O))return $e;return-1}function Gn(O,L,M){return L===L?Ly(O,L,M):go(O,$l,M)}function Cy(O,L,M,te){for(var _e=M-1,$e=O.length;++_e<$e;)if(te(O[_e],L))return _e;return-1}function $l(O){return O!==O}function Ml(O,L){var M=O==null?0:O.length;return M?fi(O,L)/M:H}function ci(O){return function(L){return L==null?t:L[O]}}function li(O){return function(L){return O==null?t:O[L]}}function Nl(O,L,M,te,_e){return _e(O,function($e,ht,Ve){M=te?(te=!1,$e):L(M,$e,ht,Ve)}),M}function Ry(O,L){var M=O.length;for(O.sort(L);M--;)O[M]=O[M].value;return O}function fi(O,L){for(var M,te=-1,_e=O.length;++te<_e;){var $e=L(O[te]);$e!==t&&(M=M===t?$e:M+$e)}return M}function di(O,L){for(var M=-1,te=Array(O);++M<O;)te[M]=L(M);return te}function Oy(O,L){return tt(L,function(M){return[M,O[M]]})}function Ll(O){return O&&O.slice(0,Wl(O)+1).replace(I,"")}function zt(O){return function(L){return O(L)}}function pi(O,L){return tt(L,function(M){return O[M]})}function Aa(O,L){return O.has(L)}function jl(O,L){for(var M=-1,te=O.length;++M<te&&Gn(L,O[M],0)>-1;);return M}function kl(O,L){for(var M=O.length;M--&&Gn(L,O[M],0)>-1;);return M}function Ay(O,L){for(var M=O.length,te=0;M--;)O[M]===L&&++te;return te}var Py=li(py),Dy=li(hy);function Iy(O){return"\\"+vy[O]}function Fy(O,L){return O==null?t:O[L]}function qn(O){return cy.test(O)}function $y(O){return ly.test(O)}function My(O){for(var L,M=[];!(L=O.next()).done;)M.push(L.value);return M}function hi(O){var L=-1,M=Array(O.size);return O.forEach(function(te,_e){M[++L]=[_e,te]}),M}function Bl(O,L){return function(M){return O(L(M))}}function nn(O,L){for(var M=-1,te=O.length,_e=0,$e=[];++M<te;){var ht=O[M];(ht===L||ht===h)&&(O[M]=h,$e[_e++]=M)}return $e}function vo(O){var L=-1,M=Array(O.size);return O.forEach(function(te){M[++L]=te}),M}function Ny(O){var L=-1,M=Array(O.size);return O.forEach(function(te){M[++L]=[te,te]}),M}function Ly(O,L,M){for(var te=M-1,_e=O.length;++te<_e;)if(O[te]===L)return te;return-1}function jy(O,L,M){for(var te=M+1;te--;)if(O[te]===L)return te;return te}function Yn(O){return qn(O)?By(O):wy(O)}function gr(O){return qn(O)?Wy(O):Ty(O)}function Wl(O){for(var L=O.length;L--&&q.test(O.charAt(L)););return L}var ky=li(gy);function By(O){for(var L=ni.lastIndex=0;ni.test(O);)++L;return L}function Wy(O){return O.match(ni)||[]}function Uy(O){return O.match(uy)||[]}var Hy=function O(L){L=L==null?Et:zn.defaults(Et.Object(),L,zn.pick(Et,fy));var M=L.Array,te=L.Date,_e=L.Error,$e=L.Function,ht=L.Math,Ve=L.Object,gi=L.RegExp,Gy=L.String,nr=L.TypeError,yo=M.prototype,qy=$e.prototype,Vn=Ve.prototype,mo=L["__core-js_shared__"],bo=qy.toString,He=Vn.hasOwnProperty,Yy=0,Ul=function(){var r=/[^.]+$/.exec(mo&&mo.keys&&mo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),_o=Vn.toString,zy=bo.call(Ve),Vy=Et._,Ky=gi("^"+bo.call(He).replace(g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Eo=xl?L.Buffer:t,an=L.Symbol,So=L.Uint8Array,Hl=Eo?Eo.allocUnsafe:t,wo=Bl(Ve.getPrototypeOf,Ve),Gl=Ve.create,ql=Vn.propertyIsEnumerable,To=yo.splice,Yl=an?an.isConcatSpreadable:t,Pa=an?an.iterator:t,On=an?an.toStringTag:t,xo=function(){try{var r=Fn(Ve,"defineProperty");return r({},"",{}),r}catch{}}(),Jy=L.clearTimeout!==Et.clearTimeout&&L.clearTimeout,Xy=te&&te.now!==Et.Date.now&&te.now,Zy=L.setTimeout!==Et.setTimeout&&L.setTimeout,Co=ht.ceil,Ro=ht.floor,vi=Ve.getOwnPropertySymbols,Qy=Eo?Eo.isBuffer:t,zl=L.isFinite,em=yo.join,tm=Bl(Ve.keys,Ve),gt=ht.max,Tt=ht.min,rm=te.now,nm=L.parseInt,Vl=ht.random,am=yo.reverse,yi=Fn(L,"DataView"),Da=Fn(L,"Map"),mi=Fn(L,"Promise"),Kn=Fn(L,"Set"),Ia=Fn(L,"WeakMap"),Fa=Fn(Ve,"create"),Oo=Ia&&new Ia,Jn={},om=$n(yi),sm=$n(Da),im=$n(mi),um=$n(Kn),cm=$n(Ia),Ao=an?an.prototype:t,$a=Ao?Ao.valueOf:t,Kl=Ao?Ao.toString:t;function y(r){if(ot(r)&&!Se(r)&&!(r instanceof Pe)){if(r instanceof ar)return r;if(He.call(r,"__wrapped__"))return Xf(r)}return new ar(r)}var Xn=function(){function r(){}return function(o){if(!nt(o))return{};if(Gl)return Gl(o);r.prototype=o;var u=new r;return r.prototype=t,u}}();function Po(){}function ar(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}y.templateSettings={escape:xa,evaluate:xn,interpolate:Un,variable:"",imports:{_:y}},y.prototype=Po.prototype,y.prototype.constructor=y,ar.prototype=Xn(Po.prototype),ar.prototype.constructor=ar;function Pe(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function lm(){var r=new Pe(this.__wrapped__);return r.__actions__=kt(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=kt(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=kt(this.__views__),r}function fm(){if(this.__filtered__){var r=new Pe(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function dm(){var r=this.__wrapped__.value(),o=this.__dir__,u=Se(r),f=o<0,v=u?r.length:0,b=T0(0,v,this.__views__),w=b.start,x=b.end,P=x-w,k=f?x:w-1,B=this.__iteratees__,U=B.length,X=0,ne=Tt(P,this.__takeCount__);if(!u||!f&&v==P&&ne==P)return _f(r,this.__actions__);var de=[];e:for(;P--&&X<ne;){k+=o;for(var Ce=-1,pe=r[k];++Ce<U;){var Ae=B[Ce],De=Ae.iteratee,Jt=Ae.type,Nt=De(pe);if(Jt==Xe)pe=Nt;else if(!Nt){if(Jt==we)continue e;break e}}de[X++]=pe}return de}Pe.prototype=Xn(Po.prototype),Pe.prototype.constructor=Pe;function An(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function pm(){this.__data__=Fa?Fa(null):{},this.size=0}function hm(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function gm(r){var o=this.__data__;if(Fa){var u=o[r];return u===d?t:u}return He.call(o,r)?o[r]:t}function vm(r){var o=this.__data__;return Fa?o[r]!==t:He.call(o,r)}function ym(r,o){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=Fa&&o===t?d:o,this}An.prototype.clear=pm,An.prototype.delete=hm,An.prototype.get=gm,An.prototype.has=vm,An.prototype.set=ym;function Mr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function mm(){this.__data__=[],this.size=0}function bm(r){var o=this.__data__,u=Do(o,r);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():To.call(o,u,1),--this.size,!0}function _m(r){var o=this.__data__,u=Do(o,r);return u<0?t:o[u][1]}function Em(r){return Do(this.__data__,r)>-1}function Sm(r,o){var u=this.__data__,f=Do(u,r);return f<0?(++this.size,u.push([r,o])):u[f][1]=o,this}Mr.prototype.clear=mm,Mr.prototype.delete=bm,Mr.prototype.get=_m,Mr.prototype.has=Em,Mr.prototype.set=Sm;function Nr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function wm(){this.size=0,this.__data__={hash:new An,map:new(Da||Mr),string:new An}}function Tm(r){var o=Ho(this,r).delete(r);return this.size-=o?1:0,o}function xm(r){return Ho(this,r).get(r)}function Cm(r){return Ho(this,r).has(r)}function Rm(r,o){var u=Ho(this,r),f=u.size;return u.set(r,o),this.size+=u.size==f?0:1,this}Nr.prototype.clear=wm,Nr.prototype.delete=Tm,Nr.prototype.get=xm,Nr.prototype.has=Cm,Nr.prototype.set=Rm;function Pn(r){var o=-1,u=r==null?0:r.length;for(this.__data__=new Nr;++o<u;)this.add(r[o])}function Om(r){return this.__data__.set(r,d),this}function Am(r){return this.__data__.has(r)}Pn.prototype.add=Pn.prototype.push=Om,Pn.prototype.has=Am;function vr(r){var o=this.__data__=new Mr(r);this.size=o.size}function Pm(){this.__data__=new Mr,this.size=0}function Dm(r){var o=this.__data__,u=o.delete(r);return this.size=o.size,u}function Im(r){return this.__data__.get(r)}function Fm(r){return this.__data__.has(r)}function $m(r,o){var u=this.__data__;if(u instanceof Mr){var f=u.__data__;if(!Da||f.length<s-1)return f.push([r,o]),this.size=++u.size,this;u=this.__data__=new Nr(f)}return u.set(r,o),this.size=u.size,this}vr.prototype.clear=Pm,vr.prototype.delete=Dm,vr.prototype.get=Im,vr.prototype.has=Fm,vr.prototype.set=$m;function Jl(r,o){var u=Se(r),f=!u&&Mn(r),v=!u&&!f&&ln(r),b=!u&&!f&&!v&&ta(r),w=u||f||v||b,x=w?di(r.length,Gy):[],P=x.length;for(var k in r)(o||He.call(r,k))&&!(w&&(k=="length"||v&&(k=="offset"||k=="parent")||b&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||Br(k,P)))&&x.push(k);return x}function Xl(r){var o=r.length;return o?r[Ai(0,o-1)]:t}function Mm(r,o){return Go(kt(r),Dn(o,0,r.length))}function Nm(r){return Go(kt(r))}function bi(r,o,u){(u!==t&&!yr(r[o],u)||u===t&&!(o in r))&&Lr(r,o,u)}function Ma(r,o,u){var f=r[o];(!(He.call(r,o)&&yr(f,u))||u===t&&!(o in r))&&Lr(r,o,u)}function Do(r,o){for(var u=r.length;u--;)if(yr(r[u][0],o))return u;return-1}function Lm(r,o,u,f){return on(r,function(v,b,w){o(f,v,u(v),w)}),f}function Zl(r,o){return r&&Cr(o,mt(o),r)}function jm(r,o){return r&&Cr(o,Wt(o),r)}function Lr(r,o,u){o=="__proto__"&&xo?xo(r,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):r[o]=u}function _i(r,o){for(var u=-1,f=o.length,v=M(f),b=r==null;++u<f;)v[u]=b?t:eu(r,o[u]);return v}function Dn(r,o,u){return r===r&&(u!==t&&(r=r<=u?r:u),o!==t&&(r=r>=o?r:o)),r}function or(r,o,u,f,v,b){var w,x=o&m,P=o&_,k=o&S;if(u&&(w=v?u(r,f,v,b):u(r)),w!==t)return w;if(!nt(r))return r;var B=Se(r);if(B){if(w=C0(r),!x)return kt(r,w)}else{var U=xt(r),X=U==N||U==Ge;if(ln(r))return wf(r,x);if(U==It||U==ye||X&&!v){if(w=P||X?{}:Uf(r),!x)return P?g0(r,jm(w,r)):h0(r,Zl(w,r))}else{if(!Je[U])return v?r:{};w=R0(r,U,x)}}b||(b=new vr);var ne=b.get(r);if(ne)return ne;b.set(r,w),yd(r)?r.forEach(function(pe){w.add(or(pe,o,u,pe,r,b))}):gd(r)&&r.forEach(function(pe,Ae){w.set(Ae,or(pe,o,u,Ae,r,b))});var de=k?P?Bi:ki:P?Wt:mt,Ce=B?t:de(r);return rr(Ce||r,function(pe,Ae){Ce&&(Ae=pe,pe=r[Ae]),Ma(w,Ae,or(pe,o,u,Ae,r,b))}),w}function km(r){var o=mt(r);return function(u){return Ql(u,r,o)}}function Ql(r,o,u){var f=u.length;if(r==null)return!f;for(r=Ve(r);f--;){var v=u[f],b=o[v],w=r[v];if(w===t&&!(v in r)||!b(w))return!1}return!0}function ef(r,o,u){if(typeof r!="function")throw new nr(c);return Ua(function(){r.apply(t,u)},o)}function Na(r,o,u,f){var v=-1,b=ho,w=!0,x=r.length,P=[],k=o.length;if(!x)return P;u&&(o=tt(o,zt(u))),f?(b=si,w=!1):o.length>=s&&(b=Aa,w=!1,o=new Pn(o));e:for(;++v<x;){var B=r[v],U=u==null?B:u(B);if(B=f||B!==0?B:0,w&&U===U){for(var X=k;X--;)if(o[X]===U)continue e;P.push(B)}else b(o,U,f)||P.push(B)}return P}var on=Of(xr),tf=Of(Si,!0);function Bm(r,o){var u=!0;return on(r,function(f,v,b){return u=!!o(f,v,b),u}),u}function Io(r,o,u){for(var f=-1,v=r.length;++f<v;){var b=r[f],w=o(b);if(w!=null&&(x===t?w===w&&!Kt(w):u(w,x)))var x=w,P=b}return P}function Wm(r,o,u,f){var v=r.length;for(u=Te(u),u<0&&(u=-u>v?0:v+u),f=f===t||f>v?v:Te(f),f<0&&(f+=v),f=u>f?0:bd(f);u<f;)r[u++]=o;return r}function rf(r,o){var u=[];return on(r,function(f,v,b){o(f,v,b)&&u.push(f)}),u}function St(r,o,u,f,v){var b=-1,w=r.length;for(u||(u=A0),v||(v=[]);++b<w;){var x=r[b];o>0&&u(x)?o>1?St(x,o-1,u,f,v):rn(v,x):f||(v[v.length]=x)}return v}var Ei=Af(),nf=Af(!0);function xr(r,o){return r&&Ei(r,o,mt)}function Si(r,o){return r&&nf(r,o,mt)}function Fo(r,o){return tn(o,function(u){return Wr(r[u])})}function In(r,o){o=un(o,r);for(var u=0,f=o.length;r!=null&&u<f;)r=r[Rr(o[u++])];return u&&u==f?r:t}function af(r,o,u){var f=o(r);return Se(r)?f:rn(f,u(r))}function $t(r){return r==null?r===t?yn:vn:On&&On in Ve(r)?w0(r):N0(r)}function wi(r,o){return r>o}function Um(r,o){return r!=null&&He.call(r,o)}function Hm(r,o){return r!=null&&o in Ve(r)}function Gm(r,o,u){return r>=Tt(o,u)&&r<gt(o,u)}function Ti(r,o,u){for(var f=u?si:ho,v=r[0].length,b=r.length,w=b,x=M(b),P=1/0,k=[];w--;){var B=r[w];w&&o&&(B=tt(B,zt(o))),P=Tt(B.length,P),x[w]=!u&&(o||v>=120&&B.length>=120)?new Pn(w&&B):t}B=r[0];var U=-1,X=x[0];e:for(;++U<v&&k.length<P;){var ne=B[U],de=o?o(ne):ne;if(ne=u||ne!==0?ne:0,!(X?Aa(X,de):f(k,de,u))){for(w=b;--w;){var Ce=x[w];if(!(Ce?Aa(Ce,de):f(r[w],de,u)))continue e}X&&X.push(de),k.push(ne)}}return k}function qm(r,o,u,f){return xr(r,function(v,b,w){o(f,u(v),b,w)}),f}function La(r,o,u){o=un(o,r),r=Yf(r,o);var f=r==null?r:r[Rr(ir(o))];return f==null?t:Yt(f,r,u)}function of(r){return ot(r)&&$t(r)==ye}function Ym(r){return ot(r)&&$t(r)==Fr}function zm(r){return ot(r)&&$t(r)==me}function ja(r,o,u,f,v){return r===o?!0:r==null||o==null||!ot(r)&&!ot(o)?r!==r&&o!==o:Vm(r,o,u,f,ja,v)}function Vm(r,o,u,f,v,b){var w=Se(r),x=Se(o),P=w?se:xt(r),k=x?se:xt(o);P=P==ye?It:P,k=k==ye?It:k;var B=P==It,U=k==It,X=P==k;if(X&&ln(r)){if(!ln(o))return!1;w=!0,B=!1}if(X&&!B)return b||(b=new vr),w||ta(r)?kf(r,o,u,f,v,b):E0(r,o,P,u,f,v,b);if(!(u&T)){var ne=B&&He.call(r,"__wrapped__"),de=U&&He.call(o,"__wrapped__");if(ne||de){var Ce=ne?r.value():r,pe=de?o.value():o;return b||(b=new vr),v(Ce,pe,u,f,b)}}return X?(b||(b=new vr),S0(r,o,u,f,v,b)):!1}function Km(r){return ot(r)&&xt(r)==qe}function xi(r,o,u,f){var v=u.length,b=v,w=!f;if(r==null)return!b;for(r=Ve(r);v--;){var x=u[v];if(w&&x[2]?x[1]!==r[x[0]]:!(x[0]in r))return!1}for(;++v<b;){x=u[v];var P=x[0],k=r[P],B=x[1];if(w&&x[2]){if(k===t&&!(P in r))return!1}else{var U=new vr;if(f)var X=f(k,B,P,r,o,U);if(!(X===t?ja(B,k,T|C,f,U):X))return!1}}return!0}function sf(r){if(!nt(r)||D0(r))return!1;var o=Wr(r)?Ky:ut;return o.test($n(r))}function Jm(r){return ot(r)&&$t(r)==bt}function Xm(r){return ot(r)&&xt(r)==pt}function Zm(r){return ot(r)&&Jo(r.length)&&!!Qe[$t(r)]}function uf(r){return typeof r=="function"?r:r==null?Ut:typeof r=="object"?Se(r)?ff(r[0],r[1]):lf(r):Pd(r)}function Ci(r){if(!Wa(r))return tm(r);var o=[];for(var u in Ve(r))He.call(r,u)&&u!="constructor"&&o.push(u);return o}function Qm(r){if(!nt(r))return M0(r);var o=Wa(r),u=[];for(var f in r)f=="constructor"&&(o||!He.call(r,f))||u.push(f);return u}function Ri(r,o){return r<o}function cf(r,o){var u=-1,f=Bt(r)?M(r.length):[];return on(r,function(v,b,w){f[++u]=o(v,b,w)}),f}function lf(r){var o=Ui(r);return o.length==1&&o[0][2]?Gf(o[0][0],o[0][1]):function(u){return u===r||xi(u,r,o)}}function ff(r,o){return Gi(r)&&Hf(o)?Gf(Rr(r),o):function(u){var f=eu(u,r);return f===t&&f===o?tu(u,r):ja(o,f,T|C)}}function $o(r,o,u,f,v){r!==o&&Ei(o,function(b,w){if(v||(v=new vr),nt(b))e0(r,o,w,u,$o,f,v);else{var x=f?f(Yi(r,w),b,w+"",r,o,v):t;x===t&&(x=b),bi(r,w,x)}},Wt)}function e0(r,o,u,f,v,b,w){var x=Yi(r,u),P=Yi(o,u),k=w.get(P);if(k){bi(r,u,k);return}var B=b?b(x,P,u+"",r,o,w):t,U=B===t;if(U){var X=Se(P),ne=!X&&ln(P),de=!X&&!ne&&ta(P);B=P,X||ne||de?Se(x)?B=x:ct(x)?B=kt(x):ne?(U=!1,B=wf(P,!0)):de?(U=!1,B=Tf(P,!0)):B=[]:Ha(P)||Mn(P)?(B=x,Mn(x)?B=_d(x):(!nt(x)||Wr(x))&&(B=Uf(P))):U=!1}U&&(w.set(P,B),v(B,P,f,b,w),w.delete(P)),bi(r,u,B)}function df(r,o){var u=r.length;if(u)return o+=o<0?u:0,Br(o,u)?r[o]:t}function pf(r,o,u){o.length?o=tt(o,function(b){return Se(b)?function(w){return In(w,b.length===1?b[0]:b)}:b}):o=[Ut];var f=-1;o=tt(o,zt(ce()));var v=cf(r,function(b,w,x){var P=tt(o,function(k){return k(b)});return{criteria:P,index:++f,value:b}});return Ry(v,function(b,w){return p0(b,w,u)})}function t0(r,o){return hf(r,o,function(u,f){return tu(r,f)})}function hf(r,o,u){for(var f=-1,v=o.length,b={};++f<v;){var w=o[f],x=In(r,w);u(x,w)&&ka(b,un(w,r),x)}return b}function r0(r){return function(o){return In(o,r)}}function Oi(r,o,u,f){var v=f?Cy:Gn,b=-1,w=o.length,x=r;for(r===o&&(o=kt(o)),u&&(x=tt(r,zt(u)));++b<w;)for(var P=0,k=o[b],B=u?u(k):k;(P=v(x,B,P,f))>-1;)x!==r&&To.call(x,P,1),To.call(r,P,1);return r}function gf(r,o){for(var u=r?o.length:0,f=u-1;u--;){var v=o[u];if(u==f||v!==b){var b=v;Br(v)?To.call(r,v,1):Ii(r,v)}}return r}function Ai(r,o){return r+Ro(Vl()*(o-r+1))}function n0(r,o,u,f){for(var v=-1,b=gt(Co((o-r)/(u||1)),0),w=M(b);b--;)w[f?b:++v]=r,r+=u;return w}function Pi(r,o){var u="";if(!r||o<1||o>et)return u;do o%2&&(u+=r),o=Ro(o/2),o&&(r+=r);while(o);return u}function Re(r,o){return zi(qf(r,o,Ut),r+"")}function a0(r){return Xl(ra(r))}function o0(r,o){var u=ra(r);return Go(u,Dn(o,0,u.length))}function ka(r,o,u,f){if(!nt(r))return r;o=un(o,r);for(var v=-1,b=o.length,w=b-1,x=r;x!=null&&++v<b;){var P=Rr(o[v]),k=u;if(P==="__proto__"||P==="constructor"||P==="prototype")return r;if(v!=w){var B=x[P];k=f?f(B,P,x):t,k===t&&(k=nt(B)?B:Br(o[v+1])?[]:{})}Ma(x,P,k),x=x[P]}return r}var vf=Oo?function(r,o){return Oo.set(r,o),r}:Ut,s0=xo?function(r,o){return xo(r,"toString",{configurable:!0,enumerable:!1,value:nu(o),writable:!0})}:Ut;function i0(r){return Go(ra(r))}function sr(r,o,u){var f=-1,v=r.length;o<0&&(o=-o>v?0:v+o),u=u>v?v:u,u<0&&(u+=v),v=o>u?0:u-o>>>0,o>>>=0;for(var b=M(v);++f<v;)b[f]=r[f+o];return b}function u0(r,o){var u;return on(r,function(f,v,b){return u=o(f,v,b),!u}),!!u}function Mo(r,o,u){var f=0,v=r==null?f:r.length;if(typeof o=="number"&&o===o&&v<=he){for(;f<v;){var b=f+v>>>1,w=r[b];w!==null&&!Kt(w)&&(u?w<=o:w<o)?f=b+1:v=b}return v}return Di(r,o,Ut,u)}function Di(r,o,u,f){var v=0,b=r==null?0:r.length;if(b===0)return 0;o=u(o);for(var w=o!==o,x=o===null,P=Kt(o),k=o===t;v<b;){var B=Ro((v+b)/2),U=u(r[B]),X=U!==t,ne=U===null,de=U===U,Ce=Kt(U);if(w)var pe=f||de;else k?pe=de&&(f||X):x?pe=de&&X&&(f||!ne):P?pe=de&&X&&!ne&&(f||!Ce):ne||Ce?pe=!1:pe=f?U<=o:U<o;pe?v=B+1:b=B}return Tt(b,ve)}function yf(r,o){for(var u=-1,f=r.length,v=0,b=[];++u<f;){var w=r[u],x=o?o(w):w;if(!u||!yr(x,P)){var P=x;b[v++]=w===0?0:w}}return b}function mf(r){return typeof r=="number"?r:Kt(r)?H:+r}function Vt(r){if(typeof r=="string")return r;if(Se(r))return tt(r,Vt)+"";if(Kt(r))return Kl?Kl.call(r):"";var o=r+"";return o=="0"&&1/r==-Ue?"-0":o}function sn(r,o,u){var f=-1,v=ho,b=r.length,w=!0,x=[],P=x;if(u)w=!1,v=si;else if(b>=s){var k=o?null:b0(r);if(k)return vo(k);w=!1,v=Aa,P=new Pn}else P=o?[]:x;e:for(;++f<b;){var B=r[f],U=o?o(B):B;if(B=u||B!==0?B:0,w&&U===U){for(var X=P.length;X--;)if(P[X]===U)continue e;o&&P.push(U),x.push(B)}else v(P,U,u)||(P!==x&&P.push(U),x.push(B))}return x}function Ii(r,o){return o=un(o,r),r=Yf(r,o),r==null||delete r[Rr(ir(o))]}function bf(r,o,u,f){return ka(r,o,u(In(r,o)),f)}function No(r,o,u,f){for(var v=r.length,b=f?v:-1;(f?b--:++b<v)&&o(r[b],b,r););return u?sr(r,f?0:b,f?b+1:v):sr(r,f?b+1:0,f?v:b)}function _f(r,o){var u=r;return u instanceof Pe&&(u=u.value()),ii(o,function(f,v){return v.func.apply(v.thisArg,rn([f],v.args))},u)}function Fi(r,o,u){var f=r.length;if(f<2)return f?sn(r[0]):[];for(var v=-1,b=M(f);++v<f;)for(var w=r[v],x=-1;++x<f;)x!=v&&(b[v]=Na(b[v]||w,r[x],o,u));return sn(St(b,1),o,u)}function Ef(r,o,u){for(var f=-1,v=r.length,b=o.length,w={};++f<v;){var x=f<b?o[f]:t;u(w,r[f],x)}return w}function $i(r){return ct(r)?r:[]}function Mi(r){return typeof r=="function"?r:Ut}function un(r,o){return Se(r)?r:Gi(r,o)?[r]:Jf(Ne(r))}var c0=Re;function cn(r,o,u){var f=r.length;return u=u===t?f:u,!o&&u>=f?r:sr(r,o,u)}var Sf=Jy||function(r){return Et.clearTimeout(r)};function wf(r,o){if(o)return r.slice();var u=r.length,f=Hl?Hl(u):new r.constructor(u);return r.copy(f),f}function Ni(r){var o=new r.constructor(r.byteLength);return new So(o).set(new So(r)),o}function l0(r,o){var u=o?Ni(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function f0(r){var o=new r.constructor(r.source,at.exec(r));return o.lastIndex=r.lastIndex,o}function d0(r){return $a?Ve($a.call(r)):{}}function Tf(r,o){var u=o?Ni(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function xf(r,o){if(r!==o){var u=r!==t,f=r===null,v=r===r,b=Kt(r),w=o!==t,x=o===null,P=o===o,k=Kt(o);if(!x&&!k&&!b&&r>o||b&&w&&P&&!x&&!k||f&&w&&P||!u&&P||!v)return 1;if(!f&&!b&&!k&&r<o||k&&u&&v&&!f&&!b||x&&u&&v||!w&&v||!P)return-1}return 0}function p0(r,o,u){for(var f=-1,v=r.criteria,b=o.criteria,w=v.length,x=u.length;++f<w;){var P=xf(v[f],b[f]);if(P){if(f>=x)return P;var k=u[f];return P*(k=="desc"?-1:1)}}return r.index-o.index}function Cf(r,o,u,f){for(var v=-1,b=r.length,w=u.length,x=-1,P=o.length,k=gt(b-w,0),B=M(P+k),U=!f;++x<P;)B[x]=o[x];for(;++v<w;)(U||v<b)&&(B[u[v]]=r[v]);for(;k--;)B[x++]=r[v++];return B}function Rf(r,o,u,f){for(var v=-1,b=r.length,w=-1,x=u.length,P=-1,k=o.length,B=gt(b-x,0),U=M(B+k),X=!f;++v<B;)U[v]=r[v];for(var ne=v;++P<k;)U[ne+P]=o[P];for(;++w<x;)(X||v<b)&&(U[ne+u[w]]=r[v++]);return U}function kt(r,o){var u=-1,f=r.length;for(o||(o=M(f));++u<f;)o[u]=r[u];return o}function Cr(r,o,u,f){var v=!u;u||(u={});for(var b=-1,w=o.length;++b<w;){var x=o[b],P=f?f(u[x],r[x],x,u,r):t;P===t&&(P=r[x]),v?Lr(u,x,P):Ma(u,x,P)}return u}function h0(r,o){return Cr(r,Hi(r),o)}function g0(r,o){return Cr(r,Bf(r),o)}function Lo(r,o){return function(u,f){var v=Se(u)?_y:Lm,b=o?o():{};return v(u,r,ce(f,2),b)}}function Zn(r){return Re(function(o,u){var f=-1,v=u.length,b=v>1?u[v-1]:t,w=v>2?u[2]:t;for(b=r.length>3&&typeof b=="function"?(v--,b):t,w&&Mt(u[0],u[1],w)&&(b=v<3?t:b,v=1),o=Ve(o);++f<v;){var x=u[f];x&&r(o,x,f,b)}return o})}function Of(r,o){return function(u,f){if(u==null)return u;if(!Bt(u))return r(u,f);for(var v=u.length,b=o?v:-1,w=Ve(u);(o?b--:++b<v)&&f(w[b],b,w)!==!1;);return u}}function Af(r){return function(o,u,f){for(var v=-1,b=Ve(o),w=f(o),x=w.length;x--;){var P=w[r?x:++v];if(u(b[P],P,b)===!1)break}return o}}function v0(r,o,u){var f=o&F,v=Ba(r);function b(){var w=this&&this!==Et&&this instanceof b?v:r;return w.apply(f?u:this,arguments)}return b}function Pf(r){return function(o){o=Ne(o);var u=qn(o)?gr(o):t,f=u?u[0]:o.charAt(0),v=u?cn(u,1).join(""):o.slice(1);return f[r]()+v}}function Qn(r){return function(o){return ii(Od(Rd(o).replace(sy,"")),r,"")}}function Ba(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=Xn(r.prototype),f=r.apply(u,o);return nt(f)?f:u}}function y0(r,o,u){var f=Ba(r);function v(){for(var b=arguments.length,w=M(b),x=b,P=ea(v);x--;)w[x]=arguments[x];var k=b<3&&w[0]!==P&&w[b-1]!==P?[]:nn(w,P);if(b-=k.length,b<u)return Mf(r,o,jo,v.placeholder,t,w,k,t,t,u-b);var B=this&&this!==Et&&this instanceof v?f:r;return Yt(B,this,w)}return v}function Df(r){return function(o,u,f){var v=Ve(o);if(!Bt(o)){var b=ce(u,3);o=mt(o),u=function(x){return b(v[x],x,v)}}var w=r(o,u,f);return w>-1?v[b?o[w]:w]:t}}function If(r){return kr(function(o){var u=o.length,f=u,v=ar.prototype.thru;for(r&&o.reverse();f--;){var b=o[f];if(typeof b!="function")throw new nr(c);if(v&&!w&&Uo(b)=="wrapper")var w=new ar([],!0)}for(f=w?f:u;++f<u;){b=o[f];var x=Uo(b),P=x=="wrapper"?Wi(b):t;P&&qi(P[0])&&P[1]==(G|$|A|Y)&&!P[4].length&&P[9]==1?w=w[Uo(P[0])].apply(w,P[3]):w=b.length==1&&qi(b)?w[x]():w.thru(b)}return function(){var k=arguments,B=k[0];if(w&&k.length==1&&Se(B))return w.plant(B).value();for(var U=0,X=u?o[U].apply(this,k):B;++U<u;)X=o[U].call(this,X);return X}})}function jo(r,o,u,f,v,b,w,x,P,k){var B=o&G,U=o&F,X=o&D,ne=o&($|j),de=o&ie,Ce=X?t:Ba(r);function pe(){for(var Ae=arguments.length,De=M(Ae),Jt=Ae;Jt--;)De[Jt]=arguments[Jt];if(ne)var Nt=ea(pe),Xt=Ay(De,Nt);if(f&&(De=Cf(De,f,v,ne)),b&&(De=Rf(De,b,w,ne)),Ae-=Xt,ne&&Ae<k){var lt=nn(De,Nt);return Mf(r,o,jo,pe.placeholder,u,De,lt,x,P,k-Ae)}var mr=U?u:this,Hr=X?mr[r]:r;return Ae=De.length,x?De=L0(De,x):de&&Ae>1&&De.reverse(),B&&P<Ae&&(De.length=P),this&&this!==Et&&this instanceof pe&&(Hr=Ce||Ba(Hr)),Hr.apply(mr,De)}return pe}function Ff(r,o){return function(u,f){return qm(u,r,o(f),{})}}function ko(r,o){return function(u,f){var v;if(u===t&&f===t)return o;if(u!==t&&(v=u),f!==t){if(v===t)return f;typeof u=="string"||typeof f=="string"?(u=Vt(u),f=Vt(f)):(u=mf(u),f=mf(f)),v=r(u,f)}return v}}function Li(r){return kr(function(o){return o=tt(o,zt(ce())),Re(function(u){var f=this;return r(o,function(v){return Yt(v,f,u)})})})}function Bo(r,o){o=o===t?" ":Vt(o);var u=o.length;if(u<2)return u?Pi(o,r):o;var f=Pi(o,Co(r/Yn(o)));return qn(o)?cn(gr(f),0,r).join(""):f.slice(0,r)}function m0(r,o,u,f){var v=o&F,b=Ba(r);function w(){for(var x=-1,P=arguments.length,k=-1,B=f.length,U=M(B+P),X=this&&this!==Et&&this instanceof w?b:r;++k<B;)U[k]=f[k];for(;P--;)U[k++]=arguments[++x];return Yt(X,v?u:this,U)}return w}function $f(r){return function(o,u,f){return f&&typeof f!="number"&&Mt(o,u,f)&&(u=f=t),o=Ur(o),u===t?(u=o,o=0):u=Ur(u),f=f===t?o<u?1:-1:Ur(f),n0(o,u,f,r)}}function Wo(r){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=ur(o),u=ur(u)),r(o,u)}}function Mf(r,o,u,f,v,b,w,x,P,k){var B=o&$,U=B?w:t,X=B?t:w,ne=B?b:t,de=B?t:b;o|=B?A:K,o&=~(B?K:A),o&W||(o&=~(F|D));var Ce=[r,o,v,ne,U,de,X,x,P,k],pe=u.apply(t,Ce);return qi(r)&&zf(pe,Ce),pe.placeholder=f,Vf(pe,r,o)}function ji(r){var o=ht[r];return function(u,f){if(u=ur(u),f=f==null?0:Tt(Te(f),292),f&&zl(u)){var v=(Ne(u)+"e").split("e"),b=o(v[0]+"e"+(+v[1]+f));return v=(Ne(b)+"e").split("e"),+(v[0]+"e"+(+v[1]-f))}return o(u)}}var b0=Kn&&1/vo(new Kn([,-0]))[1]==Ue?function(r){return new Kn(r)}:su;function Nf(r){return function(o){var u=xt(o);return u==qe?hi(o):u==pt?Ny(o):Oy(o,r(o))}}function jr(r,o,u,f,v,b,w,x){var P=o&D;if(!P&&typeof r!="function")throw new nr(c);var k=f?f.length:0;if(k||(o&=~(A|K),f=v=t),w=w===t?w:gt(Te(w),0),x=x===t?x:Te(x),k-=v?v.length:0,o&K){var B=f,U=v;f=v=t}var X=P?t:Wi(r),ne=[r,o,u,f,v,B,U,b,w,x];if(X&&$0(ne,X),r=ne[0],o=ne[1],u=ne[2],f=ne[3],v=ne[4],x=ne[9]=ne[9]===t?P?0:r.length:gt(ne[9]-k,0),!x&&o&($|j)&&(o&=~($|j)),!o||o==F)var de=v0(r,o,u);else o==$||o==j?de=y0(r,o,x):(o==A||o==(F|A))&&!v.length?de=m0(r,o,u,f):de=jo.apply(t,ne);var Ce=X?vf:zf;return Vf(Ce(de,ne),r,o)}function Lf(r,o,u,f){return r===t||yr(r,Vn[u])&&!He.call(f,u)?o:r}function jf(r,o,u,f,v,b){return nt(r)&&nt(o)&&(b.set(o,r),$o(r,o,t,jf,b),b.delete(o)),r}function _0(r){return Ha(r)?t:r}function kf(r,o,u,f,v,b){var w=u&T,x=r.length,P=o.length;if(x!=P&&!(w&&P>x))return!1;var k=b.get(r),B=b.get(o);if(k&&B)return k==o&&B==r;var U=-1,X=!0,ne=u&C?new Pn:t;for(b.set(r,o),b.set(o,r);++U<x;){var de=r[U],Ce=o[U];if(f)var pe=w?f(Ce,de,U,o,r,b):f(de,Ce,U,r,o,b);if(pe!==t){if(pe)continue;X=!1;break}if(ne){if(!ui(o,function(Ae,De){if(!Aa(ne,De)&&(de===Ae||v(de,Ae,u,f,b)))return ne.push(De)})){X=!1;break}}else if(!(de===Ce||v(de,Ce,u,f,b))){X=!1;break}}return b.delete(r),b.delete(o),X}function E0(r,o,u,f,v,b,w){switch(u){case Tr:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case Fr:return!(r.byteLength!=o.byteLength||!b(new So(r),new So(o)));case ue:case me:case it:return yr(+r,+o);case J:return r.name==o.name&&r.message==o.message;case bt:case Ir:return r==o+"";case qe:var x=hi;case pt:var P=f&T;if(x||(x=vo),r.size!=o.size&&!P)return!1;var k=w.get(r);if(k)return k==o;f|=C,w.set(r,o);var B=kf(x(r),x(o),f,v,b,w);return w.delete(r),B;case wr:if($a)return $a.call(r)==$a.call(o)}return!1}function S0(r,o,u,f,v,b){var w=u&T,x=ki(r),P=x.length,k=ki(o),B=k.length;if(P!=B&&!w)return!1;for(var U=P;U--;){var X=x[U];if(!(w?X in o:He.call(o,X)))return!1}var ne=b.get(r),de=b.get(o);if(ne&&de)return ne==o&&de==r;var Ce=!0;b.set(r,o),b.set(o,r);for(var pe=w;++U<P;){X=x[U];var Ae=r[X],De=o[X];if(f)var Jt=w?f(De,Ae,X,o,r,b):f(Ae,De,X,r,o,b);if(!(Jt===t?Ae===De||v(Ae,De,u,f,b):Jt)){Ce=!1;break}pe||(pe=X=="constructor")}if(Ce&&!pe){var Nt=r.constructor,Xt=o.constructor;Nt!=Xt&&"constructor"in r&&"constructor"in o&&!(typeof Nt=="function"&&Nt instanceof Nt&&typeof Xt=="function"&&Xt instanceof Xt)&&(Ce=!1)}return b.delete(r),b.delete(o),Ce}function kr(r){return zi(qf(r,t,ed),r+"")}function ki(r){return af(r,mt,Hi)}function Bi(r){return af(r,Wt,Bf)}var Wi=Oo?function(r){return Oo.get(r)}:su;function Uo(r){for(var o=r.name+"",u=Jn[o],f=He.call(Jn,o)?u.length:0;f--;){var v=u[f],b=v.func;if(b==null||b==r)return v.name}return o}function ea(r){var o=He.call(y,"placeholder")?y:r;return o.placeholder}function ce(){var r=y.iteratee||au;return r=r===au?uf:r,arguments.length?r(arguments[0],arguments[1]):r}function Ho(r,o){var u=r.__data__;return P0(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Ui(r){for(var o=mt(r),u=o.length;u--;){var f=o[u],v=r[f];o[u]=[f,v,Hf(v)]}return o}function Fn(r,o){var u=Fy(r,o);return sf(u)?u:t}function w0(r){var o=He.call(r,On),u=r[On];try{r[On]=t;var f=!0}catch{}var v=_o.call(r);return f&&(o?r[On]=u:delete r[On]),v}var Hi=vi?function(r){return r==null?[]:(r=Ve(r),tn(vi(r),function(o){return ql.call(r,o)}))}:iu,Bf=vi?function(r){for(var o=[];r;)rn(o,Hi(r)),r=wo(r);return o}:iu,xt=$t;(yi&&xt(new yi(new ArrayBuffer(1)))!=Tr||Da&&xt(new Da)!=qe||mi&&xt(mi.resolve())!=er||Kn&&xt(new Kn)!=pt||Ia&&xt(new Ia)!=qt)&&(xt=function(r){var o=$t(r),u=o==It?r.constructor:t,f=u?$n(u):"";if(f)switch(f){case om:return Tr;case sm:return qe;case im:return er;case um:return pt;case cm:return qt}return o});function T0(r,o,u){for(var f=-1,v=u.length;++f<v;){var b=u[f],w=b.size;switch(b.type){case"drop":r+=w;break;case"dropRight":o-=w;break;case"take":o=Tt(o,r+w);break;case"takeRight":r=gt(r,o-w);break}}return{start:r,end:o}}function x0(r){var o=r.match(oe);return o?o[1].split(ee):[]}function Wf(r,o,u){o=un(o,r);for(var f=-1,v=o.length,b=!1;++f<v;){var w=Rr(o[f]);if(!(b=r!=null&&u(r,w)))break;r=r[w]}return b||++f!=v?b:(v=r==null?0:r.length,!!v&&Jo(v)&&Br(w,v)&&(Se(r)||Mn(r)))}function C0(r){var o=r.length,u=new r.constructor(o);return o&&typeof r[0]=="string"&&He.call(r,"index")&&(u.index=r.index,u.input=r.input),u}function Uf(r){return typeof r.constructor=="function"&&!Wa(r)?Xn(wo(r)):{}}function R0(r,o,u){var f=r.constructor;switch(o){case Fr:return Ni(r);case ue:case me:return new f(+r);case Tr:return l0(r,u);case mn:case bn:case _n:case En:case dr:case $r:case _t:case pr:case hr:return Tf(r,u);case qe:return new f;case it:case Ir:return new f(r);case bt:return f0(r);case pt:return new f;case wr:return d0(r)}}function O0(r,o){var u=o.length;if(!u)return r;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),r.replace(ae,`{
|
|
15
|
+
*/Es.exports;(function(e,n){(function(){var t,a="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",m=1,_=2,S=4,T=1,x=2,F=1,D=2,W=4,$=8,j=16,A=32,K=64,G=128,Y=256,ie=512,We=30,Re="...",st=800,Z=16,we=1,Xe=2,Ze=3,Ue=1/0,et=9007199254740991,Dt=17976931348623157e292,H=0/0,V=4294967295,ve=V-1,he=V>>>1,le=[["ary",G],["bind",F],["bindKey",D],["curry",$],["curryRight",j],["flip",ie],["partial",A],["partialRight",K],["rearg",Y]],ye="[object Arguments]",se="[object Array]",fe="[object AsyncFunction]",ue="[object Boolean]",me="[object Date]",ge="[object DOMException]",J="[object Error]",N="[object Function]",Ge="[object GeneratorFunction]",qe="[object Map]",it="[object Number]",vn="[object Null]",It="[object Object]",er="[object Promise]",Ea="[object Proxy]",bt="[object RegExp]",pt="[object Set]",Ir="[object String]",wr="[object Symbol]",yn="[object Undefined]",qt="[object WeakMap]",Sa="[object WeakSet]",Fr="[object ArrayBuffer]",Tr="[object DataView]",mn="[object Float32Array]",bn="[object Float64Array]",_n="[object Int8Array]",En="[object Int16Array]",dr="[object Int32Array]",$r="[object Uint8Array]",_t="[object Uint8ClampedArray]",pr="[object Uint16Array]",hr="[object Uint32Array]",Sn=/\b__p \+= '';/g,wa=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wn=/&(?:amp|lt|gt|quot|#39);/g,en=/[&<>"']/g,Tn=RegExp(Wn.source),Ta=RegExp(en.source),Ca=/<%-([\s\S]+?)%>/g,Cn=/<%([\s\S]+?)%>/g,Un=/<%=([\s\S]+?)%>/g,xa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oa=/^\w*$/,Ra=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/[\\^$.*+?()[\]{}|]/g,O=RegExp(g.source),I=/^\s+/,q=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ee=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ie=/[()=,{}\[\]\/\s]/,be=/\\(\\)?/g,Ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,at=/\w*$/,Ft=/^[-+]0x[0-9a-f]+$/i,xn=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,Wv=/^0o[0-7]+$/i,Uv=/^(?:0|[1-9]\d*)$/,Hv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lo=/($^)/,Gv=/['\n\r\u2028\u2029\\]/g,fo="\\ud800-\\udfff",qv="\\u0300-\\u036f",Yv="\\ufe20-\\ufe2f",zv="\\u20d0-\\u20ff",il=qv+Yv+zv,ul="\\u2700-\\u27bf",cl="a-z\\xdf-\\xf6\\xf8-\\xff",Vv="\\xac\\xb1\\xd7\\xf7",Kv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jv="\\u2000-\\u206f",Xv=" \\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",ll="A-Z\\xc0-\\xd6\\xd8-\\xde",fl="\\ufe0e\\ufe0f",dl=Vv+Kv+Jv+Xv,Qs="['’]",Zv="["+fo+"]",pl="["+dl+"]",po="["+il+"]",hl="\\d+",Qv="["+ul+"]",gl="["+cl+"]",vl="[^"+fo+dl+hl+ul+cl+ll+"]",ei="\\ud83c[\\udffb-\\udfff]",ey="(?:"+po+"|"+ei+")",yl="[^"+fo+"]",ti="(?:\\ud83c[\\udde6-\\uddff]){2}",ri="[\\ud800-\\udbff][\\udc00-\\udfff]",Hn="["+ll+"]",ml="\\u200d",bl="(?:"+gl+"|"+vl+")",ty="(?:"+Hn+"|"+vl+")",_l="(?:"+Qs+"(?:d|ll|m|re|s|t|ve))?",El="(?:"+Qs+"(?:D|LL|M|RE|S|T|VE))?",Sl=ey+"?",wl="["+fl+"]?",ry="(?:"+ml+"(?:"+[yl,ti,ri].join("|")+")"+wl+Sl+")*",ny="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ay="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tl=wl+Sl+ry,oy="(?:"+[Qv,ti,ri].join("|")+")"+Tl,sy="(?:"+[yl+po+"?",po,ti,ri,Zv].join("|")+")",iy=RegExp(Qs,"g"),uy=RegExp(po,"g"),ni=RegExp(ei+"(?="+ei+")|"+sy+Tl,"g"),cy=RegExp([Hn+"?"+gl+"+"+_l+"(?="+[pl,Hn,"$"].join("|")+")",ty+"+"+El+"(?="+[pl,Hn+bl,"$"].join("|")+")",Hn+"?"+bl+"+"+_l,Hn+"+"+El,ay,ny,hl,oy].join("|"),"g"),ly=RegExp("["+ml+fo+il+fl+"]"),fy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dy=["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"],py=-1,Qe={};Qe[mn]=Qe[bn]=Qe[_n]=Qe[En]=Qe[dr]=Qe[$r]=Qe[_t]=Qe[pr]=Qe[hr]=!0,Qe[ye]=Qe[se]=Qe[Fr]=Qe[ue]=Qe[Tr]=Qe[me]=Qe[J]=Qe[N]=Qe[qe]=Qe[it]=Qe[It]=Qe[bt]=Qe[pt]=Qe[Ir]=Qe[qt]=!1;var Je={};Je[ye]=Je[se]=Je[Fr]=Je[Tr]=Je[ue]=Je[me]=Je[mn]=Je[bn]=Je[_n]=Je[En]=Je[dr]=Je[qe]=Je[it]=Je[It]=Je[bt]=Je[pt]=Je[Ir]=Je[wr]=Je[$r]=Je[_t]=Je[pr]=Je[hr]=!0,Je[J]=Je[N]=Je[qt]=!1;var hy={À:"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"},gy={"&":"&","<":"<",">":">",'"':""","'":"'"},vy={"&":"&","<":"<",">":">",""":'"',"'":"'"},yy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},my=parseFloat,by=parseInt,Cl=typeof qr=="object"&&qr&&qr.Object===Object&&qr,_y=typeof self=="object"&&self&&self.Object===Object&&self,Et=Cl||_y||Function("return this")(),ai=n&&!n.nodeType&&n,On=ai&&!0&&e&&!e.nodeType&&e,xl=On&&On.exports===ai,oi=xl&&Cl.process,tr=function(){try{var R=On&&On.require&&On.require("util").types;return R||oi&&oi.binding&&oi.binding("util")}catch{}}(),Ol=tr&&tr.isArrayBuffer,Rl=tr&&tr.isDate,Al=tr&&tr.isMap,Pl=tr&&tr.isRegExp,Dl=tr&&tr.isSet,Il=tr&&tr.isTypedArray;function Yt(R,L,M){switch(M.length){case 0:return R.call(L);case 1:return R.call(L,M[0]);case 2:return R.call(L,M[0],M[1]);case 3:return R.call(L,M[0],M[1],M[2])}return R.apply(L,M)}function Ey(R,L,M,te){for(var _e=-1,$e=R==null?0:R.length;++_e<$e;){var ht=R[_e];L(te,ht,M(ht),R)}return te}function rr(R,L){for(var M=-1,te=R==null?0:R.length;++M<te&&L(R[M],M,R)!==!1;);return R}function Sy(R,L){for(var M=R==null?0:R.length;M--&&L(R[M],M,R)!==!1;);return R}function Fl(R,L){for(var M=-1,te=R==null?0:R.length;++M<te;)if(!L(R[M],M,R))return!1;return!0}function tn(R,L){for(var M=-1,te=R==null?0:R.length,_e=0,$e=[];++M<te;){var ht=R[M];L(ht,M,R)&&($e[_e++]=ht)}return $e}function ho(R,L){var M=R==null?0:R.length;return!!M&&Gn(R,L,0)>-1}function si(R,L,M){for(var te=-1,_e=R==null?0:R.length;++te<_e;)if(M(L,R[te]))return!0;return!1}function tt(R,L){for(var M=-1,te=R==null?0:R.length,_e=Array(te);++M<te;)_e[M]=L(R[M],M,R);return _e}function rn(R,L){for(var M=-1,te=L.length,_e=R.length;++M<te;)R[_e+M]=L[M];return R}function ii(R,L,M,te){var _e=-1,$e=R==null?0:R.length;for(te&&$e&&(M=R[++_e]);++_e<$e;)M=L(M,R[_e],_e,R);return M}function wy(R,L,M,te){var _e=R==null?0:R.length;for(te&&_e&&(M=R[--_e]);_e--;)M=L(M,R[_e],_e,R);return M}function ui(R,L){for(var M=-1,te=R==null?0:R.length;++M<te;)if(L(R[M],M,R))return!0;return!1}var Ty=ci("length");function Cy(R){return R.split("")}function xy(R){return R.match(Q)||[]}function $l(R,L,M){var te;return M(R,function(_e,$e,ht){if(L(_e,$e,ht))return te=$e,!1}),te}function go(R,L,M,te){for(var _e=R.length,$e=M+(te?1:-1);te?$e--:++$e<_e;)if(L(R[$e],$e,R))return $e;return-1}function Gn(R,L,M){return L===L?jy(R,L,M):go(R,Ml,M)}function Oy(R,L,M,te){for(var _e=M-1,$e=R.length;++_e<$e;)if(te(R[_e],L))return _e;return-1}function Ml(R){return R!==R}function Nl(R,L){var M=R==null?0:R.length;return M?fi(R,L)/M:H}function ci(R){return function(L){return L==null?t:L[R]}}function li(R){return function(L){return R==null?t:R[L]}}function Ll(R,L,M,te,_e){return _e(R,function($e,ht,Ve){M=te?(te=!1,$e):L(M,$e,ht,Ve)}),M}function Ry(R,L){var M=R.length;for(R.sort(L);M--;)R[M]=R[M].value;return R}function fi(R,L){for(var M,te=-1,_e=R.length;++te<_e;){var $e=L(R[te]);$e!==t&&(M=M===t?$e:M+$e)}return M}function di(R,L){for(var M=-1,te=Array(R);++M<R;)te[M]=L(M);return te}function Ay(R,L){return tt(L,function(M){return[M,R[M]]})}function jl(R){return R&&R.slice(0,Ul(R)+1).replace(I,"")}function zt(R){return function(L){return R(L)}}function pi(R,L){return tt(L,function(M){return R[M]})}function Aa(R,L){return R.has(L)}function kl(R,L){for(var M=-1,te=R.length;++M<te&&Gn(L,R[M],0)>-1;);return M}function Bl(R,L){for(var M=R.length;M--&&Gn(L,R[M],0)>-1;);return M}function Py(R,L){for(var M=R.length,te=0;M--;)R[M]===L&&++te;return te}var Dy=li(hy),Iy=li(gy);function Fy(R){return"\\"+yy[R]}function $y(R,L){return R==null?t:R[L]}function qn(R){return ly.test(R)}function My(R){return fy.test(R)}function Ny(R){for(var L,M=[];!(L=R.next()).done;)M.push(L.value);return M}function hi(R){var L=-1,M=Array(R.size);return R.forEach(function(te,_e){M[++L]=[_e,te]}),M}function Wl(R,L){return function(M){return R(L(M))}}function nn(R,L){for(var M=-1,te=R.length,_e=0,$e=[];++M<te;){var ht=R[M];(ht===L||ht===h)&&(R[M]=h,$e[_e++]=M)}return $e}function vo(R){var L=-1,M=Array(R.size);return R.forEach(function(te){M[++L]=te}),M}function Ly(R){var L=-1,M=Array(R.size);return R.forEach(function(te){M[++L]=[te,te]}),M}function jy(R,L,M){for(var te=M-1,_e=R.length;++te<_e;)if(R[te]===L)return te;return-1}function ky(R,L,M){for(var te=M+1;te--;)if(R[te]===L)return te;return te}function Yn(R){return qn(R)?Wy(R):Ty(R)}function gr(R){return qn(R)?Uy(R):Cy(R)}function Ul(R){for(var L=R.length;L--&&q.test(R.charAt(L)););return L}var By=li(vy);function Wy(R){for(var L=ni.lastIndex=0;ni.test(R);)++L;return L}function Uy(R){return R.match(ni)||[]}function Hy(R){return R.match(cy)||[]}var Gy=function R(L){L=L==null?Et:zn.defaults(Et.Object(),L,zn.pick(Et,dy));var M=L.Array,te=L.Date,_e=L.Error,$e=L.Function,ht=L.Math,Ve=L.Object,gi=L.RegExp,qy=L.String,nr=L.TypeError,yo=M.prototype,Yy=$e.prototype,Vn=Ve.prototype,mo=L["__core-js_shared__"],bo=Yy.toString,He=Vn.hasOwnProperty,zy=0,Hl=function(){var r=/[^.]+$/.exec(mo&&mo.keys&&mo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),_o=Vn.toString,Vy=bo.call(Ve),Ky=Et._,Jy=gi("^"+bo.call(He).replace(g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Eo=xl?L.Buffer:t,an=L.Symbol,So=L.Uint8Array,Gl=Eo?Eo.allocUnsafe:t,wo=Wl(Ve.getPrototypeOf,Ve),ql=Ve.create,Yl=Vn.propertyIsEnumerable,To=yo.splice,zl=an?an.isConcatSpreadable:t,Pa=an?an.iterator:t,Rn=an?an.toStringTag:t,Co=function(){try{var r=Fn(Ve,"defineProperty");return r({},"",{}),r}catch{}}(),Xy=L.clearTimeout!==Et.clearTimeout&&L.clearTimeout,Zy=te&&te.now!==Et.Date.now&&te.now,Qy=L.setTimeout!==Et.setTimeout&&L.setTimeout,xo=ht.ceil,Oo=ht.floor,vi=Ve.getOwnPropertySymbols,em=Eo?Eo.isBuffer:t,Vl=L.isFinite,tm=yo.join,rm=Wl(Ve.keys,Ve),gt=ht.max,Tt=ht.min,nm=te.now,am=L.parseInt,Kl=ht.random,om=yo.reverse,yi=Fn(L,"DataView"),Da=Fn(L,"Map"),mi=Fn(L,"Promise"),Kn=Fn(L,"Set"),Ia=Fn(L,"WeakMap"),Fa=Fn(Ve,"create"),Ro=Ia&&new Ia,Jn={},sm=$n(yi),im=$n(Da),um=$n(mi),cm=$n(Kn),lm=$n(Ia),Ao=an?an.prototype:t,$a=Ao?Ao.valueOf:t,Jl=Ao?Ao.toString:t;function y(r){if(ot(r)&&!Se(r)&&!(r instanceof Pe)){if(r instanceof ar)return r;if(He.call(r,"__wrapped__"))return Zf(r)}return new ar(r)}var Xn=function(){function r(){}return function(o){if(!nt(o))return{};if(ql)return ql(o);r.prototype=o;var u=new r;return r.prototype=t,u}}();function Po(){}function ar(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}y.templateSettings={escape:Ca,evaluate:Cn,interpolate:Un,variable:"",imports:{_:y}},y.prototype=Po.prototype,y.prototype.constructor=y,ar.prototype=Xn(Po.prototype),ar.prototype.constructor=ar;function Pe(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function fm(){var r=new Pe(this.__wrapped__);return r.__actions__=kt(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=kt(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=kt(this.__views__),r}function dm(){if(this.__filtered__){var r=new Pe(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function pm(){var r=this.__wrapped__.value(),o=this.__dir__,u=Se(r),f=o<0,v=u?r.length:0,b=C0(0,v,this.__views__),w=b.start,C=b.end,P=C-w,k=f?C:w-1,B=this.__iteratees__,U=B.length,X=0,ne=Tt(P,this.__takeCount__);if(!u||!f&&v==P&&ne==P)return Ef(r,this.__actions__);var de=[];e:for(;P--&&X<ne;){k+=o;for(var xe=-1,pe=r[k];++xe<U;){var Ae=B[xe],De=Ae.iteratee,Jt=Ae.type,Nt=De(pe);if(Jt==Xe)pe=Nt;else if(!Nt){if(Jt==we)continue e;break e}}de[X++]=pe}return de}Pe.prototype=Xn(Po.prototype),Pe.prototype.constructor=Pe;function An(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function hm(){this.__data__=Fa?Fa(null):{},this.size=0}function gm(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function vm(r){var o=this.__data__;if(Fa){var u=o[r];return u===d?t:u}return He.call(o,r)?o[r]:t}function ym(r){var o=this.__data__;return Fa?o[r]!==t:He.call(o,r)}function mm(r,o){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=Fa&&o===t?d:o,this}An.prototype.clear=hm,An.prototype.delete=gm,An.prototype.get=vm,An.prototype.has=ym,An.prototype.set=mm;function Mr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function bm(){this.__data__=[],this.size=0}function _m(r){var o=this.__data__,u=Do(o,r);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():To.call(o,u,1),--this.size,!0}function Em(r){var o=this.__data__,u=Do(o,r);return u<0?t:o[u][1]}function Sm(r){return Do(this.__data__,r)>-1}function wm(r,o){var u=this.__data__,f=Do(u,r);return f<0?(++this.size,u.push([r,o])):u[f][1]=o,this}Mr.prototype.clear=bm,Mr.prototype.delete=_m,Mr.prototype.get=Em,Mr.prototype.has=Sm,Mr.prototype.set=wm;function Nr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function Tm(){this.size=0,this.__data__={hash:new An,map:new(Da||Mr),string:new An}}function Cm(r){var o=Ho(this,r).delete(r);return this.size-=o?1:0,o}function xm(r){return Ho(this,r).get(r)}function Om(r){return Ho(this,r).has(r)}function Rm(r,o){var u=Ho(this,r),f=u.size;return u.set(r,o),this.size+=u.size==f?0:1,this}Nr.prototype.clear=Tm,Nr.prototype.delete=Cm,Nr.prototype.get=xm,Nr.prototype.has=Om,Nr.prototype.set=Rm;function Pn(r){var o=-1,u=r==null?0:r.length;for(this.__data__=new Nr;++o<u;)this.add(r[o])}function Am(r){return this.__data__.set(r,d),this}function Pm(r){return this.__data__.has(r)}Pn.prototype.add=Pn.prototype.push=Am,Pn.prototype.has=Pm;function vr(r){var o=this.__data__=new Mr(r);this.size=o.size}function Dm(){this.__data__=new Mr,this.size=0}function Im(r){var o=this.__data__,u=o.delete(r);return this.size=o.size,u}function Fm(r){return this.__data__.get(r)}function $m(r){return this.__data__.has(r)}function Mm(r,o){var u=this.__data__;if(u instanceof Mr){var f=u.__data__;if(!Da||f.length<s-1)return f.push([r,o]),this.size=++u.size,this;u=this.__data__=new Nr(f)}return u.set(r,o),this.size=u.size,this}vr.prototype.clear=Dm,vr.prototype.delete=Im,vr.prototype.get=Fm,vr.prototype.has=$m,vr.prototype.set=Mm;function Xl(r,o){var u=Se(r),f=!u&&Mn(r),v=!u&&!f&&ln(r),b=!u&&!f&&!v&&ta(r),w=u||f||v||b,C=w?di(r.length,qy):[],P=C.length;for(var k in r)(o||He.call(r,k))&&!(w&&(k=="length"||v&&(k=="offset"||k=="parent")||b&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||Br(k,P)))&&C.push(k);return C}function Zl(r){var o=r.length;return o?r[Ai(0,o-1)]:t}function Nm(r,o){return Go(kt(r),Dn(o,0,r.length))}function Lm(r){return Go(kt(r))}function bi(r,o,u){(u!==t&&!yr(r[o],u)||u===t&&!(o in r))&&Lr(r,o,u)}function Ma(r,o,u){var f=r[o];(!(He.call(r,o)&&yr(f,u))||u===t&&!(o in r))&&Lr(r,o,u)}function Do(r,o){for(var u=r.length;u--;)if(yr(r[u][0],o))return u;return-1}function jm(r,o,u,f){return on(r,function(v,b,w){o(f,v,u(v),w)}),f}function Ql(r,o){return r&&xr(o,mt(o),r)}function km(r,o){return r&&xr(o,Wt(o),r)}function Lr(r,o,u){o=="__proto__"&&Co?Co(r,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):r[o]=u}function _i(r,o){for(var u=-1,f=o.length,v=M(f),b=r==null;++u<f;)v[u]=b?t:eu(r,o[u]);return v}function Dn(r,o,u){return r===r&&(u!==t&&(r=r<=u?r:u),o!==t&&(r=r>=o?r:o)),r}function or(r,o,u,f,v,b){var w,C=o&m,P=o&_,k=o&S;if(u&&(w=v?u(r,f,v,b):u(r)),w!==t)return w;if(!nt(r))return r;var B=Se(r);if(B){if(w=O0(r),!C)return kt(r,w)}else{var U=Ct(r),X=U==N||U==Ge;if(ln(r))return Tf(r,C);if(U==It||U==ye||X&&!v){if(w=P||X?{}:Hf(r),!C)return P?v0(r,km(w,r)):g0(r,Ql(w,r))}else{if(!Je[U])return v?r:{};w=R0(r,U,C)}}b||(b=new vr);var ne=b.get(r);if(ne)return ne;b.set(r,w),md(r)?r.forEach(function(pe){w.add(or(pe,o,u,pe,r,b))}):vd(r)&&r.forEach(function(pe,Ae){w.set(Ae,or(pe,o,u,Ae,r,b))});var de=k?P?Bi:ki:P?Wt:mt,xe=B?t:de(r);return rr(xe||r,function(pe,Ae){xe&&(Ae=pe,pe=r[Ae]),Ma(w,Ae,or(pe,o,u,Ae,r,b))}),w}function Bm(r){var o=mt(r);return function(u){return ef(u,r,o)}}function ef(r,o,u){var f=u.length;if(r==null)return!f;for(r=Ve(r);f--;){var v=u[f],b=o[v],w=r[v];if(w===t&&!(v in r)||!b(w))return!1}return!0}function tf(r,o,u){if(typeof r!="function")throw new nr(c);return Ua(function(){r.apply(t,u)},o)}function Na(r,o,u,f){var v=-1,b=ho,w=!0,C=r.length,P=[],k=o.length;if(!C)return P;u&&(o=tt(o,zt(u))),f?(b=si,w=!1):o.length>=s&&(b=Aa,w=!1,o=new Pn(o));e:for(;++v<C;){var B=r[v],U=u==null?B:u(B);if(B=f||B!==0?B:0,w&&U===U){for(var X=k;X--;)if(o[X]===U)continue e;P.push(B)}else b(o,U,f)||P.push(B)}return P}var on=Af(Cr),rf=Af(Si,!0);function Wm(r,o){var u=!0;return on(r,function(f,v,b){return u=!!o(f,v,b),u}),u}function Io(r,o,u){for(var f=-1,v=r.length;++f<v;){var b=r[f],w=o(b);if(w!=null&&(C===t?w===w&&!Kt(w):u(w,C)))var C=w,P=b}return P}function Um(r,o,u,f){var v=r.length;for(u=Te(u),u<0&&(u=-u>v?0:v+u),f=f===t||f>v?v:Te(f),f<0&&(f+=v),f=u>f?0:_d(f);u<f;)r[u++]=o;return r}function nf(r,o){var u=[];return on(r,function(f,v,b){o(f,v,b)&&u.push(f)}),u}function St(r,o,u,f,v){var b=-1,w=r.length;for(u||(u=P0),v||(v=[]);++b<w;){var C=r[b];o>0&&u(C)?o>1?St(C,o-1,u,f,v):rn(v,C):f||(v[v.length]=C)}return v}var Ei=Pf(),af=Pf(!0);function Cr(r,o){return r&&Ei(r,o,mt)}function Si(r,o){return r&&af(r,o,mt)}function Fo(r,o){return tn(o,function(u){return Wr(r[u])})}function In(r,o){o=un(o,r);for(var u=0,f=o.length;r!=null&&u<f;)r=r[Or(o[u++])];return u&&u==f?r:t}function of(r,o,u){var f=o(r);return Se(r)?f:rn(f,u(r))}function $t(r){return r==null?r===t?yn:vn:Rn&&Rn in Ve(r)?T0(r):L0(r)}function wi(r,o){return r>o}function Hm(r,o){return r!=null&&He.call(r,o)}function Gm(r,o){return r!=null&&o in Ve(r)}function qm(r,o,u){return r>=Tt(o,u)&&r<gt(o,u)}function Ti(r,o,u){for(var f=u?si:ho,v=r[0].length,b=r.length,w=b,C=M(b),P=1/0,k=[];w--;){var B=r[w];w&&o&&(B=tt(B,zt(o))),P=Tt(B.length,P),C[w]=!u&&(o||v>=120&&B.length>=120)?new Pn(w&&B):t}B=r[0];var U=-1,X=C[0];e:for(;++U<v&&k.length<P;){var ne=B[U],de=o?o(ne):ne;if(ne=u||ne!==0?ne:0,!(X?Aa(X,de):f(k,de,u))){for(w=b;--w;){var xe=C[w];if(!(xe?Aa(xe,de):f(r[w],de,u)))continue e}X&&X.push(de),k.push(ne)}}return k}function Ym(r,o,u,f){return Cr(r,function(v,b,w){o(f,u(v),b,w)}),f}function La(r,o,u){o=un(o,r),r=zf(r,o);var f=r==null?r:r[Or(ir(o))];return f==null?t:Yt(f,r,u)}function sf(r){return ot(r)&&$t(r)==ye}function zm(r){return ot(r)&&$t(r)==Fr}function Vm(r){return ot(r)&&$t(r)==me}function ja(r,o,u,f,v){return r===o?!0:r==null||o==null||!ot(r)&&!ot(o)?r!==r&&o!==o:Km(r,o,u,f,ja,v)}function Km(r,o,u,f,v,b){var w=Se(r),C=Se(o),P=w?se:Ct(r),k=C?se:Ct(o);P=P==ye?It:P,k=k==ye?It:k;var B=P==It,U=k==It,X=P==k;if(X&&ln(r)){if(!ln(o))return!1;w=!0,B=!1}if(X&&!B)return b||(b=new vr),w||ta(r)?Bf(r,o,u,f,v,b):S0(r,o,P,u,f,v,b);if(!(u&T)){var ne=B&&He.call(r,"__wrapped__"),de=U&&He.call(o,"__wrapped__");if(ne||de){var xe=ne?r.value():r,pe=de?o.value():o;return b||(b=new vr),v(xe,pe,u,f,b)}}return X?(b||(b=new vr),w0(r,o,u,f,v,b)):!1}function Jm(r){return ot(r)&&Ct(r)==qe}function Ci(r,o,u,f){var v=u.length,b=v,w=!f;if(r==null)return!b;for(r=Ve(r);v--;){var C=u[v];if(w&&C[2]?C[1]!==r[C[0]]:!(C[0]in r))return!1}for(;++v<b;){C=u[v];var P=C[0],k=r[P],B=C[1];if(w&&C[2]){if(k===t&&!(P in r))return!1}else{var U=new vr;if(f)var X=f(k,B,P,r,o,U);if(!(X===t?ja(B,k,T|x,f,U):X))return!1}}return!0}function uf(r){if(!nt(r)||I0(r))return!1;var o=Wr(r)?Jy:ut;return o.test($n(r))}function Xm(r){return ot(r)&&$t(r)==bt}function Zm(r){return ot(r)&&Ct(r)==pt}function Qm(r){return ot(r)&&Jo(r.length)&&!!Qe[$t(r)]}function cf(r){return typeof r=="function"?r:r==null?Ut:typeof r=="object"?Se(r)?df(r[0],r[1]):ff(r):Dd(r)}function xi(r){if(!Wa(r))return rm(r);var o=[];for(var u in Ve(r))He.call(r,u)&&u!="constructor"&&o.push(u);return o}function e0(r){if(!nt(r))return N0(r);var o=Wa(r),u=[];for(var f in r)f=="constructor"&&(o||!He.call(r,f))||u.push(f);return u}function Oi(r,o){return r<o}function lf(r,o){var u=-1,f=Bt(r)?M(r.length):[];return on(r,function(v,b,w){f[++u]=o(v,b,w)}),f}function ff(r){var o=Ui(r);return o.length==1&&o[0][2]?qf(o[0][0],o[0][1]):function(u){return u===r||Ci(u,r,o)}}function df(r,o){return Gi(r)&&Gf(o)?qf(Or(r),o):function(u){var f=eu(u,r);return f===t&&f===o?tu(u,r):ja(o,f,T|x)}}function $o(r,o,u,f,v){r!==o&&Ei(o,function(b,w){if(v||(v=new vr),nt(b))t0(r,o,w,u,$o,f,v);else{var C=f?f(Yi(r,w),b,w+"",r,o,v):t;C===t&&(C=b),bi(r,w,C)}},Wt)}function t0(r,o,u,f,v,b,w){var C=Yi(r,u),P=Yi(o,u),k=w.get(P);if(k){bi(r,u,k);return}var B=b?b(C,P,u+"",r,o,w):t,U=B===t;if(U){var X=Se(P),ne=!X&&ln(P),de=!X&&!ne&&ta(P);B=P,X||ne||de?Se(C)?B=C:ct(C)?B=kt(C):ne?(U=!1,B=Tf(P,!0)):de?(U=!1,B=Cf(P,!0)):B=[]:Ha(P)||Mn(P)?(B=C,Mn(C)?B=Ed(C):(!nt(C)||Wr(C))&&(B=Hf(P))):U=!1}U&&(w.set(P,B),v(B,P,f,b,w),w.delete(P)),bi(r,u,B)}function pf(r,o){var u=r.length;if(u)return o+=o<0?u:0,Br(o,u)?r[o]:t}function hf(r,o,u){o.length?o=tt(o,function(b){return Se(b)?function(w){return In(w,b.length===1?b[0]:b)}:b}):o=[Ut];var f=-1;o=tt(o,zt(ce()));var v=lf(r,function(b,w,C){var P=tt(o,function(k){return k(b)});return{criteria:P,index:++f,value:b}});return Ry(v,function(b,w){return h0(b,w,u)})}function r0(r,o){return gf(r,o,function(u,f){return tu(r,f)})}function gf(r,o,u){for(var f=-1,v=o.length,b={};++f<v;){var w=o[f],C=In(r,w);u(C,w)&&ka(b,un(w,r),C)}return b}function n0(r){return function(o){return In(o,r)}}function Ri(r,o,u,f){var v=f?Oy:Gn,b=-1,w=o.length,C=r;for(r===o&&(o=kt(o)),u&&(C=tt(r,zt(u)));++b<w;)for(var P=0,k=o[b],B=u?u(k):k;(P=v(C,B,P,f))>-1;)C!==r&&To.call(C,P,1),To.call(r,P,1);return r}function vf(r,o){for(var u=r?o.length:0,f=u-1;u--;){var v=o[u];if(u==f||v!==b){var b=v;Br(v)?To.call(r,v,1):Ii(r,v)}}return r}function Ai(r,o){return r+Oo(Kl()*(o-r+1))}function a0(r,o,u,f){for(var v=-1,b=gt(xo((o-r)/(u||1)),0),w=M(b);b--;)w[f?b:++v]=r,r+=u;return w}function Pi(r,o){var u="";if(!r||o<1||o>et)return u;do o%2&&(u+=r),o=Oo(o/2),o&&(r+=r);while(o);return u}function Oe(r,o){return zi(Yf(r,o,Ut),r+"")}function o0(r){return Zl(ra(r))}function s0(r,o){var u=ra(r);return Go(u,Dn(o,0,u.length))}function ka(r,o,u,f){if(!nt(r))return r;o=un(o,r);for(var v=-1,b=o.length,w=b-1,C=r;C!=null&&++v<b;){var P=Or(o[v]),k=u;if(P==="__proto__"||P==="constructor"||P==="prototype")return r;if(v!=w){var B=C[P];k=f?f(B,P,C):t,k===t&&(k=nt(B)?B:Br(o[v+1])?[]:{})}Ma(C,P,k),C=C[P]}return r}var yf=Ro?function(r,o){return Ro.set(r,o),r}:Ut,i0=Co?function(r,o){return Co(r,"toString",{configurable:!0,enumerable:!1,value:nu(o),writable:!0})}:Ut;function u0(r){return Go(ra(r))}function sr(r,o,u){var f=-1,v=r.length;o<0&&(o=-o>v?0:v+o),u=u>v?v:u,u<0&&(u+=v),v=o>u?0:u-o>>>0,o>>>=0;for(var b=M(v);++f<v;)b[f]=r[f+o];return b}function c0(r,o){var u;return on(r,function(f,v,b){return u=o(f,v,b),!u}),!!u}function Mo(r,o,u){var f=0,v=r==null?f:r.length;if(typeof o=="number"&&o===o&&v<=he){for(;f<v;){var b=f+v>>>1,w=r[b];w!==null&&!Kt(w)&&(u?w<=o:w<o)?f=b+1:v=b}return v}return Di(r,o,Ut,u)}function Di(r,o,u,f){var v=0,b=r==null?0:r.length;if(b===0)return 0;o=u(o);for(var w=o!==o,C=o===null,P=Kt(o),k=o===t;v<b;){var B=Oo((v+b)/2),U=u(r[B]),X=U!==t,ne=U===null,de=U===U,xe=Kt(U);if(w)var pe=f||de;else k?pe=de&&(f||X):C?pe=de&&X&&(f||!ne):P?pe=de&&X&&!ne&&(f||!xe):ne||xe?pe=!1:pe=f?U<=o:U<o;pe?v=B+1:b=B}return Tt(b,ve)}function mf(r,o){for(var u=-1,f=r.length,v=0,b=[];++u<f;){var w=r[u],C=o?o(w):w;if(!u||!yr(C,P)){var P=C;b[v++]=w===0?0:w}}return b}function bf(r){return typeof r=="number"?r:Kt(r)?H:+r}function Vt(r){if(typeof r=="string")return r;if(Se(r))return tt(r,Vt)+"";if(Kt(r))return Jl?Jl.call(r):"";var o=r+"";return o=="0"&&1/r==-Ue?"-0":o}function sn(r,o,u){var f=-1,v=ho,b=r.length,w=!0,C=[],P=C;if(u)w=!1,v=si;else if(b>=s){var k=o?null:_0(r);if(k)return vo(k);w=!1,v=Aa,P=new Pn}else P=o?[]:C;e:for(;++f<b;){var B=r[f],U=o?o(B):B;if(B=u||B!==0?B:0,w&&U===U){for(var X=P.length;X--;)if(P[X]===U)continue e;o&&P.push(U),C.push(B)}else v(P,U,u)||(P!==C&&P.push(U),C.push(B))}return C}function Ii(r,o){return o=un(o,r),r=zf(r,o),r==null||delete r[Or(ir(o))]}function _f(r,o,u,f){return ka(r,o,u(In(r,o)),f)}function No(r,o,u,f){for(var v=r.length,b=f?v:-1;(f?b--:++b<v)&&o(r[b],b,r););return u?sr(r,f?0:b,f?b+1:v):sr(r,f?b+1:0,f?v:b)}function Ef(r,o){var u=r;return u instanceof Pe&&(u=u.value()),ii(o,function(f,v){return v.func.apply(v.thisArg,rn([f],v.args))},u)}function Fi(r,o,u){var f=r.length;if(f<2)return f?sn(r[0]):[];for(var v=-1,b=M(f);++v<f;)for(var w=r[v],C=-1;++C<f;)C!=v&&(b[v]=Na(b[v]||w,r[C],o,u));return sn(St(b,1),o,u)}function Sf(r,o,u){for(var f=-1,v=r.length,b=o.length,w={};++f<v;){var C=f<b?o[f]:t;u(w,r[f],C)}return w}function $i(r){return ct(r)?r:[]}function Mi(r){return typeof r=="function"?r:Ut}function un(r,o){return Se(r)?r:Gi(r,o)?[r]:Xf(Ne(r))}var l0=Oe;function cn(r,o,u){var f=r.length;return u=u===t?f:u,!o&&u>=f?r:sr(r,o,u)}var wf=Xy||function(r){return Et.clearTimeout(r)};function Tf(r,o){if(o)return r.slice();var u=r.length,f=Gl?Gl(u):new r.constructor(u);return r.copy(f),f}function Ni(r){var o=new r.constructor(r.byteLength);return new So(o).set(new So(r)),o}function f0(r,o){var u=o?Ni(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function d0(r){var o=new r.constructor(r.source,at.exec(r));return o.lastIndex=r.lastIndex,o}function p0(r){return $a?Ve($a.call(r)):{}}function Cf(r,o){var u=o?Ni(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function xf(r,o){if(r!==o){var u=r!==t,f=r===null,v=r===r,b=Kt(r),w=o!==t,C=o===null,P=o===o,k=Kt(o);if(!C&&!k&&!b&&r>o||b&&w&&P&&!C&&!k||f&&w&&P||!u&&P||!v)return 1;if(!f&&!b&&!k&&r<o||k&&u&&v&&!f&&!b||C&&u&&v||!w&&v||!P)return-1}return 0}function h0(r,o,u){for(var f=-1,v=r.criteria,b=o.criteria,w=v.length,C=u.length;++f<w;){var P=xf(v[f],b[f]);if(P){if(f>=C)return P;var k=u[f];return P*(k=="desc"?-1:1)}}return r.index-o.index}function Of(r,o,u,f){for(var v=-1,b=r.length,w=u.length,C=-1,P=o.length,k=gt(b-w,0),B=M(P+k),U=!f;++C<P;)B[C]=o[C];for(;++v<w;)(U||v<b)&&(B[u[v]]=r[v]);for(;k--;)B[C++]=r[v++];return B}function Rf(r,o,u,f){for(var v=-1,b=r.length,w=-1,C=u.length,P=-1,k=o.length,B=gt(b-C,0),U=M(B+k),X=!f;++v<B;)U[v]=r[v];for(var ne=v;++P<k;)U[ne+P]=o[P];for(;++w<C;)(X||v<b)&&(U[ne+u[w]]=r[v++]);return U}function kt(r,o){var u=-1,f=r.length;for(o||(o=M(f));++u<f;)o[u]=r[u];return o}function xr(r,o,u,f){var v=!u;u||(u={});for(var b=-1,w=o.length;++b<w;){var C=o[b],P=f?f(u[C],r[C],C,u,r):t;P===t&&(P=r[C]),v?Lr(u,C,P):Ma(u,C,P)}return u}function g0(r,o){return xr(r,Hi(r),o)}function v0(r,o){return xr(r,Wf(r),o)}function Lo(r,o){return function(u,f){var v=Se(u)?Ey:jm,b=o?o():{};return v(u,r,ce(f,2),b)}}function Zn(r){return Oe(function(o,u){var f=-1,v=u.length,b=v>1?u[v-1]:t,w=v>2?u[2]:t;for(b=r.length>3&&typeof b=="function"?(v--,b):t,w&&Mt(u[0],u[1],w)&&(b=v<3?t:b,v=1),o=Ve(o);++f<v;){var C=u[f];C&&r(o,C,f,b)}return o})}function Af(r,o){return function(u,f){if(u==null)return u;if(!Bt(u))return r(u,f);for(var v=u.length,b=o?v:-1,w=Ve(u);(o?b--:++b<v)&&f(w[b],b,w)!==!1;);return u}}function Pf(r){return function(o,u,f){for(var v=-1,b=Ve(o),w=f(o),C=w.length;C--;){var P=w[r?C:++v];if(u(b[P],P,b)===!1)break}return o}}function y0(r,o,u){var f=o&F,v=Ba(r);function b(){var w=this&&this!==Et&&this instanceof b?v:r;return w.apply(f?u:this,arguments)}return b}function Df(r){return function(o){o=Ne(o);var u=qn(o)?gr(o):t,f=u?u[0]:o.charAt(0),v=u?cn(u,1).join(""):o.slice(1);return f[r]()+v}}function Qn(r){return function(o){return ii(Ad(Rd(o).replace(iy,"")),r,"")}}function Ba(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=Xn(r.prototype),f=r.apply(u,o);return nt(f)?f:u}}function m0(r,o,u){var f=Ba(r);function v(){for(var b=arguments.length,w=M(b),C=b,P=ea(v);C--;)w[C]=arguments[C];var k=b<3&&w[0]!==P&&w[b-1]!==P?[]:nn(w,P);if(b-=k.length,b<u)return Nf(r,o,jo,v.placeholder,t,w,k,t,t,u-b);var B=this&&this!==Et&&this instanceof v?f:r;return Yt(B,this,w)}return v}function If(r){return function(o,u,f){var v=Ve(o);if(!Bt(o)){var b=ce(u,3);o=mt(o),u=function(C){return b(v[C],C,v)}}var w=r(o,u,f);return w>-1?v[b?o[w]:w]:t}}function Ff(r){return kr(function(o){var u=o.length,f=u,v=ar.prototype.thru;for(r&&o.reverse();f--;){var b=o[f];if(typeof b!="function")throw new nr(c);if(v&&!w&&Uo(b)=="wrapper")var w=new ar([],!0)}for(f=w?f:u;++f<u;){b=o[f];var C=Uo(b),P=C=="wrapper"?Wi(b):t;P&&qi(P[0])&&P[1]==(G|$|A|Y)&&!P[4].length&&P[9]==1?w=w[Uo(P[0])].apply(w,P[3]):w=b.length==1&&qi(b)?w[C]():w.thru(b)}return function(){var k=arguments,B=k[0];if(w&&k.length==1&&Se(B))return w.plant(B).value();for(var U=0,X=u?o[U].apply(this,k):B;++U<u;)X=o[U].call(this,X);return X}})}function jo(r,o,u,f,v,b,w,C,P,k){var B=o&G,U=o&F,X=o&D,ne=o&($|j),de=o&ie,xe=X?t:Ba(r);function pe(){for(var Ae=arguments.length,De=M(Ae),Jt=Ae;Jt--;)De[Jt]=arguments[Jt];if(ne)var Nt=ea(pe),Xt=Py(De,Nt);if(f&&(De=Of(De,f,v,ne)),b&&(De=Rf(De,b,w,ne)),Ae-=Xt,ne&&Ae<k){var lt=nn(De,Nt);return Nf(r,o,jo,pe.placeholder,u,De,lt,C,P,k-Ae)}var mr=U?u:this,Hr=X?mr[r]:r;return Ae=De.length,C?De=j0(De,C):de&&Ae>1&&De.reverse(),B&&P<Ae&&(De.length=P),this&&this!==Et&&this instanceof pe&&(Hr=xe||Ba(Hr)),Hr.apply(mr,De)}return pe}function $f(r,o){return function(u,f){return Ym(u,r,o(f),{})}}function ko(r,o){return function(u,f){var v;if(u===t&&f===t)return o;if(u!==t&&(v=u),f!==t){if(v===t)return f;typeof u=="string"||typeof f=="string"?(u=Vt(u),f=Vt(f)):(u=bf(u),f=bf(f)),v=r(u,f)}return v}}function Li(r){return kr(function(o){return o=tt(o,zt(ce())),Oe(function(u){var f=this;return r(o,function(v){return Yt(v,f,u)})})})}function Bo(r,o){o=o===t?" ":Vt(o);var u=o.length;if(u<2)return u?Pi(o,r):o;var f=Pi(o,xo(r/Yn(o)));return qn(o)?cn(gr(f),0,r).join(""):f.slice(0,r)}function b0(r,o,u,f){var v=o&F,b=Ba(r);function w(){for(var C=-1,P=arguments.length,k=-1,B=f.length,U=M(B+P),X=this&&this!==Et&&this instanceof w?b:r;++k<B;)U[k]=f[k];for(;P--;)U[k++]=arguments[++C];return Yt(X,v?u:this,U)}return w}function Mf(r){return function(o,u,f){return f&&typeof f!="number"&&Mt(o,u,f)&&(u=f=t),o=Ur(o),u===t?(u=o,o=0):u=Ur(u),f=f===t?o<u?1:-1:Ur(f),a0(o,u,f,r)}}function Wo(r){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=ur(o),u=ur(u)),r(o,u)}}function Nf(r,o,u,f,v,b,w,C,P,k){var B=o&$,U=B?w:t,X=B?t:w,ne=B?b:t,de=B?t:b;o|=B?A:K,o&=~(B?K:A),o&W||(o&=~(F|D));var xe=[r,o,v,ne,U,de,X,C,P,k],pe=u.apply(t,xe);return qi(r)&&Vf(pe,xe),pe.placeholder=f,Kf(pe,r,o)}function ji(r){var o=ht[r];return function(u,f){if(u=ur(u),f=f==null?0:Tt(Te(f),292),f&&Vl(u)){var v=(Ne(u)+"e").split("e"),b=o(v[0]+"e"+(+v[1]+f));return v=(Ne(b)+"e").split("e"),+(v[0]+"e"+(+v[1]-f))}return o(u)}}var _0=Kn&&1/vo(new Kn([,-0]))[1]==Ue?function(r){return new Kn(r)}:su;function Lf(r){return function(o){var u=Ct(o);return u==qe?hi(o):u==pt?Ly(o):Ay(o,r(o))}}function jr(r,o,u,f,v,b,w,C){var P=o&D;if(!P&&typeof r!="function")throw new nr(c);var k=f?f.length:0;if(k||(o&=~(A|K),f=v=t),w=w===t?w:gt(Te(w),0),C=C===t?C:Te(C),k-=v?v.length:0,o&K){var B=f,U=v;f=v=t}var X=P?t:Wi(r),ne=[r,o,u,f,v,B,U,b,w,C];if(X&&M0(ne,X),r=ne[0],o=ne[1],u=ne[2],f=ne[3],v=ne[4],C=ne[9]=ne[9]===t?P?0:r.length:gt(ne[9]-k,0),!C&&o&($|j)&&(o&=~($|j)),!o||o==F)var de=y0(r,o,u);else o==$||o==j?de=m0(r,o,C):(o==A||o==(F|A))&&!v.length?de=b0(r,o,u,f):de=jo.apply(t,ne);var xe=X?yf:Vf;return Kf(xe(de,ne),r,o)}function jf(r,o,u,f){return r===t||yr(r,Vn[u])&&!He.call(f,u)?o:r}function kf(r,o,u,f,v,b){return nt(r)&&nt(o)&&(b.set(o,r),$o(r,o,t,kf,b),b.delete(o)),r}function E0(r){return Ha(r)?t:r}function Bf(r,o,u,f,v,b){var w=u&T,C=r.length,P=o.length;if(C!=P&&!(w&&P>C))return!1;var k=b.get(r),B=b.get(o);if(k&&B)return k==o&&B==r;var U=-1,X=!0,ne=u&x?new Pn:t;for(b.set(r,o),b.set(o,r);++U<C;){var de=r[U],xe=o[U];if(f)var pe=w?f(xe,de,U,o,r,b):f(de,xe,U,r,o,b);if(pe!==t){if(pe)continue;X=!1;break}if(ne){if(!ui(o,function(Ae,De){if(!Aa(ne,De)&&(de===Ae||v(de,Ae,u,f,b)))return ne.push(De)})){X=!1;break}}else if(!(de===xe||v(de,xe,u,f,b))){X=!1;break}}return b.delete(r),b.delete(o),X}function S0(r,o,u,f,v,b,w){switch(u){case Tr:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case Fr:return!(r.byteLength!=o.byteLength||!b(new So(r),new So(o)));case ue:case me:case it:return yr(+r,+o);case J:return r.name==o.name&&r.message==o.message;case bt:case Ir:return r==o+"";case qe:var C=hi;case pt:var P=f&T;if(C||(C=vo),r.size!=o.size&&!P)return!1;var k=w.get(r);if(k)return k==o;f|=x,w.set(r,o);var B=Bf(C(r),C(o),f,v,b,w);return w.delete(r),B;case wr:if($a)return $a.call(r)==$a.call(o)}return!1}function w0(r,o,u,f,v,b){var w=u&T,C=ki(r),P=C.length,k=ki(o),B=k.length;if(P!=B&&!w)return!1;for(var U=P;U--;){var X=C[U];if(!(w?X in o:He.call(o,X)))return!1}var ne=b.get(r),de=b.get(o);if(ne&&de)return ne==o&&de==r;var xe=!0;b.set(r,o),b.set(o,r);for(var pe=w;++U<P;){X=C[U];var Ae=r[X],De=o[X];if(f)var Jt=w?f(De,Ae,X,o,r,b):f(Ae,De,X,r,o,b);if(!(Jt===t?Ae===De||v(Ae,De,u,f,b):Jt)){xe=!1;break}pe||(pe=X=="constructor")}if(xe&&!pe){var Nt=r.constructor,Xt=o.constructor;Nt!=Xt&&"constructor"in r&&"constructor"in o&&!(typeof Nt=="function"&&Nt instanceof Nt&&typeof Xt=="function"&&Xt instanceof Xt)&&(xe=!1)}return b.delete(r),b.delete(o),xe}function kr(r){return zi(Yf(r,t,td),r+"")}function ki(r){return of(r,mt,Hi)}function Bi(r){return of(r,Wt,Wf)}var Wi=Ro?function(r){return Ro.get(r)}:su;function Uo(r){for(var o=r.name+"",u=Jn[o],f=He.call(Jn,o)?u.length:0;f--;){var v=u[f],b=v.func;if(b==null||b==r)return v.name}return o}function ea(r){var o=He.call(y,"placeholder")?y:r;return o.placeholder}function ce(){var r=y.iteratee||au;return r=r===au?cf:r,arguments.length?r(arguments[0],arguments[1]):r}function Ho(r,o){var u=r.__data__;return D0(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Ui(r){for(var o=mt(r),u=o.length;u--;){var f=o[u],v=r[f];o[u]=[f,v,Gf(v)]}return o}function Fn(r,o){var u=$y(r,o);return uf(u)?u:t}function T0(r){var o=He.call(r,Rn),u=r[Rn];try{r[Rn]=t;var f=!0}catch{}var v=_o.call(r);return f&&(o?r[Rn]=u:delete r[Rn]),v}var Hi=vi?function(r){return r==null?[]:(r=Ve(r),tn(vi(r),function(o){return Yl.call(r,o)}))}:iu,Wf=vi?function(r){for(var o=[];r;)rn(o,Hi(r)),r=wo(r);return o}:iu,Ct=$t;(yi&&Ct(new yi(new ArrayBuffer(1)))!=Tr||Da&&Ct(new Da)!=qe||mi&&Ct(mi.resolve())!=er||Kn&&Ct(new Kn)!=pt||Ia&&Ct(new Ia)!=qt)&&(Ct=function(r){var o=$t(r),u=o==It?r.constructor:t,f=u?$n(u):"";if(f)switch(f){case sm:return Tr;case im:return qe;case um:return er;case cm:return pt;case lm:return qt}return o});function C0(r,o,u){for(var f=-1,v=u.length;++f<v;){var b=u[f],w=b.size;switch(b.type){case"drop":r+=w;break;case"dropRight":o-=w;break;case"take":o=Tt(o,r+w);break;case"takeRight":r=gt(r,o-w);break}}return{start:r,end:o}}function x0(r){var o=r.match(oe);return o?o[1].split(ee):[]}function Uf(r,o,u){o=un(o,r);for(var f=-1,v=o.length,b=!1;++f<v;){var w=Or(o[f]);if(!(b=r!=null&&u(r,w)))break;r=r[w]}return b||++f!=v?b:(v=r==null?0:r.length,!!v&&Jo(v)&&Br(w,v)&&(Se(r)||Mn(r)))}function O0(r){var o=r.length,u=new r.constructor(o);return o&&typeof r[0]=="string"&&He.call(r,"index")&&(u.index=r.index,u.input=r.input),u}function Hf(r){return typeof r.constructor=="function"&&!Wa(r)?Xn(wo(r)):{}}function R0(r,o,u){var f=r.constructor;switch(o){case Fr:return Ni(r);case ue:case me:return new f(+r);case Tr:return f0(r,u);case mn:case bn:case _n:case En:case dr:case $r:case _t:case pr:case hr:return Cf(r,u);case qe:return new f;case it:case Ir:return new f(r);case bt:return d0(r);case pt:return new f;case wr:return p0(r)}}function A0(r,o){var u=o.length;if(!u)return r;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),r.replace(ae,`{
|
|
16
16
|
/* [wrapped with `+o+`] */
|
|
17
|
-
`)}function A0(r){return Se(r)||Mn(r)||!!(Yl&&r&&r[Yl])}function Br(r,o){var u=typeof r;return o=o??et,!!o&&(u=="number"||u!="symbol"&&Wv.test(r))&&r>-1&&r%1==0&&r<o}function Mt(r,o,u){if(!nt(u))return!1;var f=typeof o;return(f=="number"?Bt(u)&&Br(o,u.length):f=="string"&&o in u)?yr(u[o],r):!1}function Gi(r,o){if(Se(r))return!1;var u=typeof r;return u=="number"||u=="symbol"||u=="boolean"||r==null||Kt(r)?!0:Ra.test(r)||!Ca.test(r)||o!=null&&r in Ve(o)}function P0(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function qi(r){var o=Uo(r),u=y[o];if(typeof u!="function"||!(o in Pe.prototype))return!1;if(r===u)return!0;var f=Wi(u);return!!f&&r===f[0]}function D0(r){return!!Ul&&Ul in r}var I0=mo?Wr:uu;function Wa(r){var o=r&&r.constructor,u=typeof o=="function"&&o.prototype||Vn;return r===u}function Hf(r){return r===r&&!nt(r)}function Gf(r,o){return function(u){return u==null?!1:u[r]===o&&(o!==t||r in Ve(u))}}function F0(r){var o=Vo(r,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function $0(r,o){var u=r[1],f=o[1],v=u|f,b=v<(F|D|G),w=f==G&&u==$||f==G&&u==Y&&r[7].length<=o[8]||f==(G|Y)&&o[7].length<=o[8]&&u==$;if(!(b||w))return r;f&F&&(r[2]=o[2],v|=u&F?0:W);var x=o[3];if(x){var P=r[3];r[3]=P?Cf(P,x,o[4]):x,r[4]=P?nn(r[3],h):o[4]}return x=o[5],x&&(P=r[5],r[5]=P?Rf(P,x,o[6]):x,r[6]=P?nn(r[5],h):o[6]),x=o[7],x&&(r[7]=x),f&G&&(r[8]=r[8]==null?o[8]:Tt(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=v,r}function M0(r){var o=[];if(r!=null)for(var u in Ve(r))o.push(u);return o}function N0(r){return _o.call(r)}function qf(r,o,u){return o=gt(o===t?r.length-1:o,0),function(){for(var f=arguments,v=-1,b=gt(f.length-o,0),w=M(b);++v<b;)w[v]=f[o+v];v=-1;for(var x=M(o+1);++v<o;)x[v]=f[v];return x[o]=u(w),Yt(r,this,x)}}function Yf(r,o){return o.length<2?r:In(r,sr(o,0,-1))}function L0(r,o){for(var u=r.length,f=Tt(o.length,u),v=kt(r);f--;){var b=o[f];r[f]=Br(b,u)?v[b]:t}return r}function Yi(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var zf=Kf(vf),Ua=Zy||function(r,o){return Et.setTimeout(r,o)},zi=Kf(s0);function Vf(r,o,u){var f=o+"";return zi(r,O0(f,j0(x0(f),u)))}function Kf(r){var o=0,u=0;return function(){var f=rm(),v=Z-(f-u);if(u=f,v>0){if(++o>=st)return arguments[0]}else o=0;return r.apply(t,arguments)}}function Go(r,o){var u=-1,f=r.length,v=f-1;for(o=o===t?f:o;++u<o;){var b=Ai(u,v),w=r[b];r[b]=r[u],r[u]=w}return r.length=o,r}var Jf=F0(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(Oa,function(u,f,v,b){o.push(v?b.replace(be,"$1"):f||u)}),o});function Rr(r){if(typeof r=="string"||Kt(r))return r;var o=r+"";return o=="0"&&1/r==-Ue?"-0":o}function $n(r){if(r!=null){try{return bo.call(r)}catch{}try{return r+""}catch{}}return""}function j0(r,o){return rr(le,function(u){var f="_."+u[0];o&u[1]&&!ho(r,f)&&r.push(f)}),r.sort()}function Xf(r){if(r instanceof Pe)return r.clone();var o=new ar(r.__wrapped__,r.__chain__);return o.__actions__=kt(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function k0(r,o,u){(u?Mt(r,o,u):o===t)?o=1:o=gt(Te(o),0);var f=r==null?0:r.length;if(!f||o<1)return[];for(var v=0,b=0,w=M(Co(f/o));v<f;)w[b++]=sr(r,v,v+=o);return w}function B0(r){for(var o=-1,u=r==null?0:r.length,f=0,v=[];++o<u;){var b=r[o];b&&(v[f++]=b)}return v}function W0(){var r=arguments.length;if(!r)return[];for(var o=M(r-1),u=arguments[0],f=r;f--;)o[f-1]=arguments[f];return rn(Se(u)?kt(u):[u],St(o,1))}var U0=Re(function(r,o){return ct(r)?Na(r,St(o,1,ct,!0)):[]}),H0=Re(function(r,o){var u=ir(o);return ct(u)&&(u=t),ct(r)?Na(r,St(o,1,ct,!0),ce(u,2)):[]}),G0=Re(function(r,o){var u=ir(o);return ct(u)&&(u=t),ct(r)?Na(r,St(o,1,ct,!0),t,u):[]});function q0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),sr(r,o<0?0:o,f)):[]}function Y0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),o=f-o,sr(r,0,o<0?0:o)):[]}function z0(r,o){return r&&r.length?No(r,ce(o,3),!0,!0):[]}function V0(r,o){return r&&r.length?No(r,ce(o,3),!0):[]}function K0(r,o,u,f){var v=r==null?0:r.length;return v?(u&&typeof u!="number"&&Mt(r,o,u)&&(u=0,f=v),Wm(r,o,u,f)):[]}function Zf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=u==null?0:Te(u);return v<0&&(v=gt(f+v,0)),go(r,ce(o,3),v)}function Qf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=f-1;return u!==t&&(v=Te(u),v=u<0?gt(f+v,0):Tt(v,f-1)),go(r,ce(o,3),v,!0)}function ed(r){var o=r==null?0:r.length;return o?St(r,1):[]}function J0(r){var o=r==null?0:r.length;return o?St(r,Ue):[]}function X0(r,o){var u=r==null?0:r.length;return u?(o=o===t?1:Te(o),St(r,o)):[]}function Z0(r){for(var o=-1,u=r==null?0:r.length,f={};++o<u;){var v=r[o];f[v[0]]=v[1]}return f}function td(r){return r&&r.length?r[0]:t}function Q0(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=u==null?0:Te(u);return v<0&&(v=gt(f+v,0)),Gn(r,o,v)}function eb(r){var o=r==null?0:r.length;return o?sr(r,0,-1):[]}var tb=Re(function(r){var o=tt(r,$i);return o.length&&o[0]===r[0]?Ti(o):[]}),rb=Re(function(r){var o=ir(r),u=tt(r,$i);return o===ir(u)?o=t:u.pop(),u.length&&u[0]===r[0]?Ti(u,ce(o,2)):[]}),nb=Re(function(r){var o=ir(r),u=tt(r,$i);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===r[0]?Ti(u,t,o):[]});function ab(r,o){return r==null?"":em.call(r,o)}function ir(r){var o=r==null?0:r.length;return o?r[o-1]:t}function ob(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=f;return u!==t&&(v=Te(u),v=v<0?gt(f+v,0):Tt(v,f-1)),o===o?jy(r,o,v):go(r,$l,v,!0)}function sb(r,o){return r&&r.length?df(r,Te(o)):t}var ib=Re(rd);function rd(r,o){return r&&r.length&&o&&o.length?Oi(r,o):r}function ub(r,o,u){return r&&r.length&&o&&o.length?Oi(r,o,ce(u,2)):r}function cb(r,o,u){return r&&r.length&&o&&o.length?Oi(r,o,t,u):r}var lb=kr(function(r,o){var u=r==null?0:r.length,f=_i(r,o);return gf(r,tt(o,function(v){return Br(v,u)?+v:v}).sort(xf)),f});function fb(r,o){var u=[];if(!(r&&r.length))return u;var f=-1,v=[],b=r.length;for(o=ce(o,3);++f<b;){var w=r[f];o(w,f,r)&&(u.push(w),v.push(f))}return gf(r,v),u}function Vi(r){return r==null?r:am.call(r)}function db(r,o,u){var f=r==null?0:r.length;return f?(u&&typeof u!="number"&&Mt(r,o,u)?(o=0,u=f):(o=o==null?0:Te(o),u=u===t?f:Te(u)),sr(r,o,u)):[]}function pb(r,o){return Mo(r,o)}function hb(r,o,u){return Di(r,o,ce(u,2))}function gb(r,o){var u=r==null?0:r.length;if(u){var f=Mo(r,o);if(f<u&&yr(r[f],o))return f}return-1}function vb(r,o){return Mo(r,o,!0)}function yb(r,o,u){return Di(r,o,ce(u,2),!0)}function mb(r,o){var u=r==null?0:r.length;if(u){var f=Mo(r,o,!0)-1;if(yr(r[f],o))return f}return-1}function bb(r){return r&&r.length?yf(r):[]}function _b(r,o){return r&&r.length?yf(r,ce(o,2)):[]}function Eb(r){var o=r==null?0:r.length;return o?sr(r,1,o):[]}function Sb(r,o,u){return r&&r.length?(o=u||o===t?1:Te(o),sr(r,0,o<0?0:o)):[]}function wb(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),o=f-o,sr(r,o<0?0:o,f)):[]}function Tb(r,o){return r&&r.length?No(r,ce(o,3),!1,!0):[]}function xb(r,o){return r&&r.length?No(r,ce(o,3)):[]}var Cb=Re(function(r){return sn(St(r,1,ct,!0))}),Rb=Re(function(r){var o=ir(r);return ct(o)&&(o=t),sn(St(r,1,ct,!0),ce(o,2))}),Ob=Re(function(r){var o=ir(r);return o=typeof o=="function"?o:t,sn(St(r,1,ct,!0),t,o)});function Ab(r){return r&&r.length?sn(r):[]}function Pb(r,o){return r&&r.length?sn(r,ce(o,2)):[]}function Db(r,o){return o=typeof o=="function"?o:t,r&&r.length?sn(r,t,o):[]}function Ki(r){if(!(r&&r.length))return[];var o=0;return r=tn(r,function(u){if(ct(u))return o=gt(u.length,o),!0}),di(o,function(u){return tt(r,ci(u))})}function nd(r,o){if(!(r&&r.length))return[];var u=Ki(r);return o==null?u:tt(u,function(f){return Yt(o,t,f)})}var Ib=Re(function(r,o){return ct(r)?Na(r,o):[]}),Fb=Re(function(r){return Fi(tn(r,ct))}),$b=Re(function(r){var o=ir(r);return ct(o)&&(o=t),Fi(tn(r,ct),ce(o,2))}),Mb=Re(function(r){var o=ir(r);return o=typeof o=="function"?o:t,Fi(tn(r,ct),t,o)}),Nb=Re(Ki);function Lb(r,o){return Ef(r||[],o||[],Ma)}function jb(r,o){return Ef(r||[],o||[],ka)}var kb=Re(function(r){var o=r.length,u=o>1?r[o-1]:t;return u=typeof u=="function"?(r.pop(),u):t,nd(r,u)});function ad(r){var o=y(r);return o.__chain__=!0,o}function Bb(r,o){return o(r),r}function qo(r,o){return o(r)}var Wb=kr(function(r){var o=r.length,u=o?r[0]:0,f=this.__wrapped__,v=function(b){return _i(b,r)};return o>1||this.__actions__.length||!(f instanceof Pe)||!Br(u)?this.thru(v):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:qo,args:[v],thisArg:t}),new ar(f,this.__chain__).thru(function(b){return o&&!b.length&&b.push(t),b}))});function Ub(){return ad(this)}function Hb(){return new ar(this.value(),this.__chain__)}function Gb(){this.__values__===t&&(this.__values__=md(this.value()));var r=this.__index__>=this.__values__.length,o=r?t:this.__values__[this.__index__++];return{done:r,value:o}}function qb(){return this}function Yb(r){for(var o,u=this;u instanceof Po;){var f=Xf(u);f.__index__=0,f.__values__=t,o?v.__wrapped__=f:o=f;var v=f;u=u.__wrapped__}return v.__wrapped__=r,o}function zb(){var r=this.__wrapped__;if(r instanceof Pe){var o=r;return this.__actions__.length&&(o=new Pe(this)),o=o.reverse(),o.__actions__.push({func:qo,args:[Vi],thisArg:t}),new ar(o,this.__chain__)}return this.thru(Vi)}function Vb(){return _f(this.__wrapped__,this.__actions__)}var Kb=Lo(function(r,o,u){He.call(r,u)?++r[u]:Lr(r,u,1)});function Jb(r,o,u){var f=Se(r)?Il:Bm;return u&&Mt(r,o,u)&&(o=t),f(r,ce(o,3))}function Xb(r,o){var u=Se(r)?tn:rf;return u(r,ce(o,3))}var Zb=Df(Zf),Qb=Df(Qf);function e_(r,o){return St(Yo(r,o),1)}function t_(r,o){return St(Yo(r,o),Ue)}function r_(r,o,u){return u=u===t?1:Te(u),St(Yo(r,o),u)}function od(r,o){var u=Se(r)?rr:on;return u(r,ce(o,3))}function sd(r,o){var u=Se(r)?Ey:tf;return u(r,ce(o,3))}var n_=Lo(function(r,o,u){He.call(r,u)?r[u].push(o):Lr(r,u,[o])});function a_(r,o,u,f){r=Bt(r)?r:ra(r),u=u&&!f?Te(u):0;var v=r.length;return u<0&&(u=gt(v+u,0)),Xo(r)?u<=v&&r.indexOf(o,u)>-1:!!v&&Gn(r,o,u)>-1}var o_=Re(function(r,o,u){var f=-1,v=typeof o=="function",b=Bt(r)?M(r.length):[];return on(r,function(w){b[++f]=v?Yt(o,w,u):La(w,o,u)}),b}),s_=Lo(function(r,o,u){Lr(r,u,o)});function Yo(r,o){var u=Se(r)?tt:cf;return u(r,ce(o,3))}function i_(r,o,u,f){return r==null?[]:(Se(o)||(o=o==null?[]:[o]),u=f?t:u,Se(u)||(u=u==null?[]:[u]),pf(r,o,u))}var u_=Lo(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function c_(r,o,u){var f=Se(r)?ii:Nl,v=arguments.length<3;return f(r,ce(o,4),u,v,on)}function l_(r,o,u){var f=Se(r)?Sy:Nl,v=arguments.length<3;return f(r,ce(o,4),u,v,tf)}function f_(r,o){var u=Se(r)?tn:rf;return u(r,Ko(ce(o,3)))}function d_(r){var o=Se(r)?Xl:a0;return o(r)}function p_(r,o,u){(u?Mt(r,o,u):o===t)?o=1:o=Te(o);var f=Se(r)?Mm:o0;return f(r,o)}function h_(r){var o=Se(r)?Nm:i0;return o(r)}function g_(r){if(r==null)return 0;if(Bt(r))return Xo(r)?Yn(r):r.length;var o=xt(r);return o==qe||o==pt?r.size:Ci(r).length}function v_(r,o,u){var f=Se(r)?ui:u0;return u&&Mt(r,o,u)&&(o=t),f(r,ce(o,3))}var y_=Re(function(r,o){if(r==null)return[];var u=o.length;return u>1&&Mt(r,o[0],o[1])?o=[]:u>2&&Mt(o[0],o[1],o[2])&&(o=[o[0]]),pf(r,St(o,1),[])}),zo=Xy||function(){return Et.Date.now()};function m_(r,o){if(typeof o!="function")throw new nr(c);return r=Te(r),function(){if(--r<1)return o.apply(this,arguments)}}function id(r,o,u){return o=u?t:o,o=r&&o==null?r.length:o,jr(r,G,t,t,t,t,o)}function ud(r,o){var u;if(typeof o!="function")throw new nr(c);return r=Te(r),function(){return--r>0&&(u=o.apply(this,arguments)),r<=1&&(o=t),u}}var Ji=Re(function(r,o,u){var f=F;if(u.length){var v=nn(u,ea(Ji));f|=A}return jr(r,f,o,u,v)}),cd=Re(function(r,o,u){var f=F|D;if(u.length){var v=nn(u,ea(cd));f|=A}return jr(o,f,r,u,v)});function ld(r,o,u){o=u?t:o;var f=jr(r,$,t,t,t,t,t,o);return f.placeholder=ld.placeholder,f}function fd(r,o,u){o=u?t:o;var f=jr(r,j,t,t,t,t,t,o);return f.placeholder=fd.placeholder,f}function dd(r,o,u){var f,v,b,w,x,P,k=0,B=!1,U=!1,X=!0;if(typeof r!="function")throw new nr(c);o=ur(o)||0,nt(u)&&(B=!!u.leading,U="maxWait"in u,b=U?gt(ur(u.maxWait)||0,o):b,X="trailing"in u?!!u.trailing:X);function ne(lt){var mr=f,Hr=v;return f=v=t,k=lt,w=r.apply(Hr,mr),w}function de(lt){return k=lt,x=Ua(Ae,o),B?ne(lt):w}function Ce(lt){var mr=lt-P,Hr=lt-k,Dd=o-mr;return U?Tt(Dd,b-Hr):Dd}function pe(lt){var mr=lt-P,Hr=lt-k;return P===t||mr>=o||mr<0||U&&Hr>=b}function Ae(){var lt=zo();if(pe(lt))return De(lt);x=Ua(Ae,Ce(lt))}function De(lt){return x=t,X&&f?ne(lt):(f=v=t,w)}function Jt(){x!==t&&Sf(x),k=0,f=P=v=x=t}function Nt(){return x===t?w:De(zo())}function Xt(){var lt=zo(),mr=pe(lt);if(f=arguments,v=this,P=lt,mr){if(x===t)return de(P);if(U)return Sf(x),x=Ua(Ae,o),ne(P)}return x===t&&(x=Ua(Ae,o)),w}return Xt.cancel=Jt,Xt.flush=Nt,Xt}var b_=Re(function(r,o){return ef(r,1,o)}),__=Re(function(r,o,u){return ef(r,ur(o)||0,u)});function E_(r){return jr(r,ie)}function Vo(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new nr(c);var u=function(){var f=arguments,v=o?o.apply(this,f):f[0],b=u.cache;if(b.has(v))return b.get(v);var w=r.apply(this,f);return u.cache=b.set(v,w)||b,w};return u.cache=new(Vo.Cache||Nr),u}Vo.Cache=Nr;function Ko(r){if(typeof r!="function")throw new nr(c);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function S_(r){return ud(2,r)}var w_=c0(function(r,o){o=o.length==1&&Se(o[0])?tt(o[0],zt(ce())):tt(St(o,1),zt(ce()));var u=o.length;return Re(function(f){for(var v=-1,b=Tt(f.length,u);++v<b;)f[v]=o[v].call(this,f[v]);return Yt(r,this,f)})}),Xi=Re(function(r,o){var u=nn(o,ea(Xi));return jr(r,A,t,o,u)}),pd=Re(function(r,o){var u=nn(o,ea(pd));return jr(r,K,t,o,u)}),T_=kr(function(r,o){return jr(r,Y,t,t,t,o)});function x_(r,o){if(typeof r!="function")throw new nr(c);return o=o===t?o:Te(o),Re(r,o)}function C_(r,o){if(typeof r!="function")throw new nr(c);return o=o==null?0:gt(Te(o),0),Re(function(u){var f=u[o],v=cn(u,0,o);return f&&rn(v,f),Yt(r,this,v)})}function R_(r,o,u){var f=!0,v=!0;if(typeof r!="function")throw new nr(c);return nt(u)&&(f="leading"in u?!!u.leading:f,v="trailing"in u?!!u.trailing:v),dd(r,o,{leading:f,maxWait:o,trailing:v})}function O_(r){return id(r,1)}function A_(r,o){return Xi(Mi(o),r)}function P_(){if(!arguments.length)return[];var r=arguments[0];return Se(r)?r:[r]}function D_(r){return or(r,S)}function I_(r,o){return o=typeof o=="function"?o:t,or(r,S,o)}function F_(r){return or(r,m|S)}function $_(r,o){return o=typeof o=="function"?o:t,or(r,m|S,o)}function M_(r,o){return o==null||Ql(r,o,mt(o))}function yr(r,o){return r===o||r!==r&&o!==o}var N_=Wo(wi),L_=Wo(function(r,o){return r>=o}),Mn=of(function(){return arguments}())?of:function(r){return ot(r)&&He.call(r,"callee")&&!ql.call(r,"callee")},Se=M.isArray,j_=Cl?zt(Cl):Ym;function Bt(r){return r!=null&&Jo(r.length)&&!Wr(r)}function ct(r){return ot(r)&&Bt(r)}function k_(r){return r===!0||r===!1||ot(r)&&$t(r)==ue}var ln=Qy||uu,B_=Rl?zt(Rl):zm;function W_(r){return ot(r)&&r.nodeType===1&&!Ha(r)}function U_(r){if(r==null)return!0;if(Bt(r)&&(Se(r)||typeof r=="string"||typeof r.splice=="function"||ln(r)||ta(r)||Mn(r)))return!r.length;var o=xt(r);if(o==qe||o==pt)return!r.size;if(Wa(r))return!Ci(r).length;for(var u in r)if(He.call(r,u))return!1;return!0}function H_(r,o){return ja(r,o)}function G_(r,o,u){u=typeof u=="function"?u:t;var f=u?u(r,o):t;return f===t?ja(r,o,t,u):!!f}function Zi(r){if(!ot(r))return!1;var o=$t(r);return o==J||o==ge||typeof r.message=="string"&&typeof r.name=="string"&&!Ha(r)}function q_(r){return typeof r=="number"&&zl(r)}function Wr(r){if(!nt(r))return!1;var o=$t(r);return o==N||o==Ge||o==fe||o==Ea}function hd(r){return typeof r=="number"&&r==Te(r)}function Jo(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=et}function nt(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function ot(r){return r!=null&&typeof r=="object"}var gd=Ol?zt(Ol):Km;function Y_(r,o){return r===o||xi(r,o,Ui(o))}function z_(r,o,u){return u=typeof u=="function"?u:t,xi(r,o,Ui(o),u)}function V_(r){return vd(r)&&r!=+r}function K_(r){if(I0(r))throw new _e(i);return sf(r)}function J_(r){return r===null}function X_(r){return r==null}function vd(r){return typeof r=="number"||ot(r)&&$t(r)==it}function Ha(r){if(!ot(r)||$t(r)!=It)return!1;var o=wo(r);if(o===null)return!0;var u=He.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&bo.call(u)==zy}var Qi=Al?zt(Al):Jm;function Z_(r){return hd(r)&&r>=-et&&r<=et}var yd=Pl?zt(Pl):Xm;function Xo(r){return typeof r=="string"||!Se(r)&&ot(r)&&$t(r)==Ir}function Kt(r){return typeof r=="symbol"||ot(r)&&$t(r)==wr}var ta=Dl?zt(Dl):Zm;function Q_(r){return r===t}function e1(r){return ot(r)&&xt(r)==qt}function t1(r){return ot(r)&&$t(r)==Sa}var r1=Wo(Ri),n1=Wo(function(r,o){return r<=o});function md(r){if(!r)return[];if(Bt(r))return Xo(r)?gr(r):kt(r);if(Pa&&r[Pa])return My(r[Pa]());var o=xt(r),u=o==qe?hi:o==pt?vo:ra;return u(r)}function Ur(r){if(!r)return r===0?r:0;if(r=ur(r),r===Ue||r===-Ue){var o=r<0?-1:1;return o*Dt}return r===r?r:0}function Te(r){var o=Ur(r),u=o%1;return o===o?u?o-u:o:0}function bd(r){return r?Dn(Te(r),0,V):0}function ur(r){if(typeof r=="number")return r;if(Kt(r))return H;if(nt(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=nt(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Ll(r);var u=Cn.test(r);return u||Bv.test(r)?my(r.slice(2),u?2:8):Ft.test(r)?H:+r}function _d(r){return Cr(r,Wt(r))}function a1(r){return r?Dn(Te(r),-et,et):r===0?r:0}function Ne(r){return r==null?"":Vt(r)}var o1=Zn(function(r,o){if(Wa(o)||Bt(o)){Cr(o,mt(o),r);return}for(var u in o)He.call(o,u)&&Ma(r,u,o[u])}),Ed=Zn(function(r,o){Cr(o,Wt(o),r)}),Zo=Zn(function(r,o,u,f){Cr(o,Wt(o),r,f)}),s1=Zn(function(r,o,u,f){Cr(o,mt(o),r,f)}),i1=kr(_i);function u1(r,o){var u=Xn(r);return o==null?u:Zl(u,o)}var c1=Re(function(r,o){r=Ve(r);var u=-1,f=o.length,v=f>2?o[2]:t;for(v&&Mt(o[0],o[1],v)&&(f=1);++u<f;)for(var b=o[u],w=Wt(b),x=-1,P=w.length;++x<P;){var k=w[x],B=r[k];(B===t||yr(B,Vn[k])&&!He.call(r,k))&&(r[k]=b[k])}return r}),l1=Re(function(r){return r.push(t,jf),Yt(Sd,t,r)});function f1(r,o){return Fl(r,ce(o,3),xr)}function d1(r,o){return Fl(r,ce(o,3),Si)}function p1(r,o){return r==null?r:Ei(r,ce(o,3),Wt)}function h1(r,o){return r==null?r:nf(r,ce(o,3),Wt)}function g1(r,o){return r&&xr(r,ce(o,3))}function v1(r,o){return r&&Si(r,ce(o,3))}function y1(r){return r==null?[]:Fo(r,mt(r))}function m1(r){return r==null?[]:Fo(r,Wt(r))}function eu(r,o,u){var f=r==null?t:In(r,o);return f===t?u:f}function b1(r,o){return r!=null&&Wf(r,o,Um)}function tu(r,o){return r!=null&&Wf(r,o,Hm)}var _1=Ff(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=_o.call(o)),r[o]=u},nu(Ut)),E1=Ff(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=_o.call(o)),He.call(r,o)?r[o].push(u):r[o]=[u]},ce),S1=Re(La);function mt(r){return Bt(r)?Jl(r):Ci(r)}function Wt(r){return Bt(r)?Jl(r,!0):Qm(r)}function w1(r,o){var u={};return o=ce(o,3),xr(r,function(f,v,b){Lr(u,o(f,v,b),f)}),u}function T1(r,o){var u={};return o=ce(o,3),xr(r,function(f,v,b){Lr(u,v,o(f,v,b))}),u}var x1=Zn(function(r,o,u){$o(r,o,u)}),Sd=Zn(function(r,o,u,f){$o(r,o,u,f)}),C1=kr(function(r,o){var u={};if(r==null)return u;var f=!1;o=tt(o,function(b){return b=un(b,r),f||(f=b.length>1),b}),Cr(r,Bi(r),u),f&&(u=or(u,m|_|S,_0));for(var v=o.length;v--;)Ii(u,o[v]);return u});function R1(r,o){return wd(r,Ko(ce(o)))}var O1=kr(function(r,o){return r==null?{}:t0(r,o)});function wd(r,o){if(r==null)return{};var u=tt(Bi(r),function(f){return[f]});return o=ce(o),hf(r,u,function(f,v){return o(f,v[0])})}function A1(r,o,u){o=un(o,r);var f=-1,v=o.length;for(v||(v=1,r=t);++f<v;){var b=r==null?t:r[Rr(o[f])];b===t&&(f=v,b=u),r=Wr(b)?b.call(r):b}return r}function P1(r,o,u){return r==null?r:ka(r,o,u)}function D1(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:ka(r,o,u,f)}var Td=Nf(mt),xd=Nf(Wt);function I1(r,o,u){var f=Se(r),v=f||ln(r)||ta(r);if(o=ce(o,4),u==null){var b=r&&r.constructor;v?u=f?new b:[]:nt(r)?u=Wr(b)?Xn(wo(r)):{}:u={}}return(v?rr:xr)(r,function(w,x,P){return o(u,w,x,P)}),u}function F1(r,o){return r==null?!0:Ii(r,o)}function $1(r,o,u){return r==null?r:bf(r,o,Mi(u))}function M1(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:bf(r,o,Mi(u),f)}function ra(r){return r==null?[]:pi(r,mt(r))}function N1(r){return r==null?[]:pi(r,Wt(r))}function L1(r,o,u){return u===t&&(u=o,o=t),u!==t&&(u=ur(u),u=u===u?u:0),o!==t&&(o=ur(o),o=o===o?o:0),Dn(ur(r),o,u)}function j1(r,o,u){return o=Ur(o),u===t?(u=o,o=0):u=Ur(u),r=ur(r),Gm(r,o,u)}function k1(r,o,u){if(u&&typeof u!="boolean"&&Mt(r,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof r=="boolean"&&(u=r,r=t)),r===t&&o===t?(r=0,o=1):(r=Ur(r),o===t?(o=r,r=0):o=Ur(o)),r>o){var f=r;r=o,o=f}if(u||r%1||o%1){var v=Vl();return Tt(r+v*(o-r+yy("1e-"+((v+"").length-1))),o)}return Ai(r,o)}var B1=Qn(function(r,o,u){return o=o.toLowerCase(),r+(u?Cd(o):o)});function Cd(r){return ru(Ne(r).toLowerCase())}function Rd(r){return r=Ne(r),r&&r.replace(Uv,Py).replace(iy,"")}function W1(r,o,u){r=Ne(r),o=Vt(o);var f=r.length;u=u===t?f:Dn(Te(u),0,f);var v=u;return u-=o.length,u>=0&&r.slice(u,v)==o}function U1(r){return r=Ne(r),r&&Ta.test(r)?r.replace(en,Dy):r}function H1(r){return r=Ne(r),r&&R.test(r)?r.replace(g,"\\$&"):r}var G1=Qn(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),q1=Qn(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),Y1=Pf("toLowerCase");function z1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;if(!o||f>=o)return r;var v=(o-f)/2;return Bo(Ro(v),u)+r+Bo(Co(v),u)}function V1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;return o&&f<o?r+Bo(o-f,u):r}function K1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;return o&&f<o?Bo(o-f,u)+r:r}function J1(r,o,u){return u||o==null?o=0:o&&(o=+o),nm(Ne(r).replace(I,""),o||0)}function X1(r,o,u){return(u?Mt(r,o,u):o===t)?o=1:o=Te(o),Pi(Ne(r),o)}function Z1(){var r=arguments,o=Ne(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var Q1=Qn(function(r,o,u){return r+(u?"_":"")+o.toLowerCase()});function eE(r,o,u){return u&&typeof u!="number"&&Mt(r,o,u)&&(o=u=t),u=u===t?V:u>>>0,u?(r=Ne(r),r&&(typeof o=="string"||o!=null&&!Qi(o))&&(o=Vt(o),!o&&qn(r))?cn(gr(r),0,u):r.split(o,u)):[]}var tE=Qn(function(r,o,u){return r+(u?" ":"")+ru(o)});function rE(r,o,u){return r=Ne(r),u=u==null?0:Dn(Te(u),0,r.length),o=Vt(o),r.slice(u,u+o.length)==o}function nE(r,o,u){var f=y.templateSettings;u&&Mt(r,o,u)&&(o=t),r=Ne(r),o=Zo({},o,f,Lf);var v=Zo({},o.imports,f.imports,Lf),b=mt(v),w=pi(v,b),x,P,k=0,B=o.interpolate||lo,U="__p += '",X=gi((o.escape||lo).source+"|"+B.source+"|"+(B===Un?Ee:lo).source+"|"+(o.evaluate||lo).source+"|$","g"),ne="//# sourceURL="+(He.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++dy+"]")+`
|
|
18
|
-
`;r.replace(X,function(pe,Ae,De,Jt,Nt,Xt){return De||(De=Jt),U+=r.slice(k,Xt).replace(
|
|
17
|
+
`)}function P0(r){return Se(r)||Mn(r)||!!(zl&&r&&r[zl])}function Br(r,o){var u=typeof r;return o=o??et,!!o&&(u=="number"||u!="symbol"&&Uv.test(r))&&r>-1&&r%1==0&&r<o}function Mt(r,o,u){if(!nt(u))return!1;var f=typeof o;return(f=="number"?Bt(u)&&Br(o,u.length):f=="string"&&o in u)?yr(u[o],r):!1}function Gi(r,o){if(Se(r))return!1;var u=typeof r;return u=="number"||u=="symbol"||u=="boolean"||r==null||Kt(r)?!0:Oa.test(r)||!xa.test(r)||o!=null&&r in Ve(o)}function D0(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function qi(r){var o=Uo(r),u=y[o];if(typeof u!="function"||!(o in Pe.prototype))return!1;if(r===u)return!0;var f=Wi(u);return!!f&&r===f[0]}function I0(r){return!!Hl&&Hl in r}var F0=mo?Wr:uu;function Wa(r){var o=r&&r.constructor,u=typeof o=="function"&&o.prototype||Vn;return r===u}function Gf(r){return r===r&&!nt(r)}function qf(r,o){return function(u){return u==null?!1:u[r]===o&&(o!==t||r in Ve(u))}}function $0(r){var o=Vo(r,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function M0(r,o){var u=r[1],f=o[1],v=u|f,b=v<(F|D|G),w=f==G&&u==$||f==G&&u==Y&&r[7].length<=o[8]||f==(G|Y)&&o[7].length<=o[8]&&u==$;if(!(b||w))return r;f&F&&(r[2]=o[2],v|=u&F?0:W);var C=o[3];if(C){var P=r[3];r[3]=P?Of(P,C,o[4]):C,r[4]=P?nn(r[3],h):o[4]}return C=o[5],C&&(P=r[5],r[5]=P?Rf(P,C,o[6]):C,r[6]=P?nn(r[5],h):o[6]),C=o[7],C&&(r[7]=C),f&G&&(r[8]=r[8]==null?o[8]:Tt(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=v,r}function N0(r){var o=[];if(r!=null)for(var u in Ve(r))o.push(u);return o}function L0(r){return _o.call(r)}function Yf(r,o,u){return o=gt(o===t?r.length-1:o,0),function(){for(var f=arguments,v=-1,b=gt(f.length-o,0),w=M(b);++v<b;)w[v]=f[o+v];v=-1;for(var C=M(o+1);++v<o;)C[v]=f[v];return C[o]=u(w),Yt(r,this,C)}}function zf(r,o){return o.length<2?r:In(r,sr(o,0,-1))}function j0(r,o){for(var u=r.length,f=Tt(o.length,u),v=kt(r);f--;){var b=o[f];r[f]=Br(b,u)?v[b]:t}return r}function Yi(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var Vf=Jf(yf),Ua=Qy||function(r,o){return Et.setTimeout(r,o)},zi=Jf(i0);function Kf(r,o,u){var f=o+"";return zi(r,A0(f,k0(x0(f),u)))}function Jf(r){var o=0,u=0;return function(){var f=nm(),v=Z-(f-u);if(u=f,v>0){if(++o>=st)return arguments[0]}else o=0;return r.apply(t,arguments)}}function Go(r,o){var u=-1,f=r.length,v=f-1;for(o=o===t?f:o;++u<o;){var b=Ai(u,v),w=r[b];r[b]=r[u],r[u]=w}return r.length=o,r}var Xf=$0(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(Ra,function(u,f,v,b){o.push(v?b.replace(be,"$1"):f||u)}),o});function Or(r){if(typeof r=="string"||Kt(r))return r;var o=r+"";return o=="0"&&1/r==-Ue?"-0":o}function $n(r){if(r!=null){try{return bo.call(r)}catch{}try{return r+""}catch{}}return""}function k0(r,o){return rr(le,function(u){var f="_."+u[0];o&u[1]&&!ho(r,f)&&r.push(f)}),r.sort()}function Zf(r){if(r instanceof Pe)return r.clone();var o=new ar(r.__wrapped__,r.__chain__);return o.__actions__=kt(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function B0(r,o,u){(u?Mt(r,o,u):o===t)?o=1:o=gt(Te(o),0);var f=r==null?0:r.length;if(!f||o<1)return[];for(var v=0,b=0,w=M(xo(f/o));v<f;)w[b++]=sr(r,v,v+=o);return w}function W0(r){for(var o=-1,u=r==null?0:r.length,f=0,v=[];++o<u;){var b=r[o];b&&(v[f++]=b)}return v}function U0(){var r=arguments.length;if(!r)return[];for(var o=M(r-1),u=arguments[0],f=r;f--;)o[f-1]=arguments[f];return rn(Se(u)?kt(u):[u],St(o,1))}var H0=Oe(function(r,o){return ct(r)?Na(r,St(o,1,ct,!0)):[]}),G0=Oe(function(r,o){var u=ir(o);return ct(u)&&(u=t),ct(r)?Na(r,St(o,1,ct,!0),ce(u,2)):[]}),q0=Oe(function(r,o){var u=ir(o);return ct(u)&&(u=t),ct(r)?Na(r,St(o,1,ct,!0),t,u):[]});function Y0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),sr(r,o<0?0:o,f)):[]}function z0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),o=f-o,sr(r,0,o<0?0:o)):[]}function V0(r,o){return r&&r.length?No(r,ce(o,3),!0,!0):[]}function K0(r,o){return r&&r.length?No(r,ce(o,3),!0):[]}function J0(r,o,u,f){var v=r==null?0:r.length;return v?(u&&typeof u!="number"&&Mt(r,o,u)&&(u=0,f=v),Um(r,o,u,f)):[]}function Qf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=u==null?0:Te(u);return v<0&&(v=gt(f+v,0)),go(r,ce(o,3),v)}function ed(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=f-1;return u!==t&&(v=Te(u),v=u<0?gt(f+v,0):Tt(v,f-1)),go(r,ce(o,3),v,!0)}function td(r){var o=r==null?0:r.length;return o?St(r,1):[]}function X0(r){var o=r==null?0:r.length;return o?St(r,Ue):[]}function Z0(r,o){var u=r==null?0:r.length;return u?(o=o===t?1:Te(o),St(r,o)):[]}function Q0(r){for(var o=-1,u=r==null?0:r.length,f={};++o<u;){var v=r[o];f[v[0]]=v[1]}return f}function rd(r){return r&&r.length?r[0]:t}function eb(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=u==null?0:Te(u);return v<0&&(v=gt(f+v,0)),Gn(r,o,v)}function tb(r){var o=r==null?0:r.length;return o?sr(r,0,-1):[]}var rb=Oe(function(r){var o=tt(r,$i);return o.length&&o[0]===r[0]?Ti(o):[]}),nb=Oe(function(r){var o=ir(r),u=tt(r,$i);return o===ir(u)?o=t:u.pop(),u.length&&u[0]===r[0]?Ti(u,ce(o,2)):[]}),ab=Oe(function(r){var o=ir(r),u=tt(r,$i);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===r[0]?Ti(u,t,o):[]});function ob(r,o){return r==null?"":tm.call(r,o)}function ir(r){var o=r==null?0:r.length;return o?r[o-1]:t}function sb(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=f;return u!==t&&(v=Te(u),v=v<0?gt(f+v,0):Tt(v,f-1)),o===o?ky(r,o,v):go(r,Ml,v,!0)}function ib(r,o){return r&&r.length?pf(r,Te(o)):t}var ub=Oe(nd);function nd(r,o){return r&&r.length&&o&&o.length?Ri(r,o):r}function cb(r,o,u){return r&&r.length&&o&&o.length?Ri(r,o,ce(u,2)):r}function lb(r,o,u){return r&&r.length&&o&&o.length?Ri(r,o,t,u):r}var fb=kr(function(r,o){var u=r==null?0:r.length,f=_i(r,o);return vf(r,tt(o,function(v){return Br(v,u)?+v:v}).sort(xf)),f});function db(r,o){var u=[];if(!(r&&r.length))return u;var f=-1,v=[],b=r.length;for(o=ce(o,3);++f<b;){var w=r[f];o(w,f,r)&&(u.push(w),v.push(f))}return vf(r,v),u}function Vi(r){return r==null?r:om.call(r)}function pb(r,o,u){var f=r==null?0:r.length;return f?(u&&typeof u!="number"&&Mt(r,o,u)?(o=0,u=f):(o=o==null?0:Te(o),u=u===t?f:Te(u)),sr(r,o,u)):[]}function hb(r,o){return Mo(r,o)}function gb(r,o,u){return Di(r,o,ce(u,2))}function vb(r,o){var u=r==null?0:r.length;if(u){var f=Mo(r,o);if(f<u&&yr(r[f],o))return f}return-1}function yb(r,o){return Mo(r,o,!0)}function mb(r,o,u){return Di(r,o,ce(u,2),!0)}function bb(r,o){var u=r==null?0:r.length;if(u){var f=Mo(r,o,!0)-1;if(yr(r[f],o))return f}return-1}function _b(r){return r&&r.length?mf(r):[]}function Eb(r,o){return r&&r.length?mf(r,ce(o,2)):[]}function Sb(r){var o=r==null?0:r.length;return o?sr(r,1,o):[]}function wb(r,o,u){return r&&r.length?(o=u||o===t?1:Te(o),sr(r,0,o<0?0:o)):[]}function Tb(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),o=f-o,sr(r,o<0?0:o,f)):[]}function Cb(r,o){return r&&r.length?No(r,ce(o,3),!1,!0):[]}function xb(r,o){return r&&r.length?No(r,ce(o,3)):[]}var Ob=Oe(function(r){return sn(St(r,1,ct,!0))}),Rb=Oe(function(r){var o=ir(r);return ct(o)&&(o=t),sn(St(r,1,ct,!0),ce(o,2))}),Ab=Oe(function(r){var o=ir(r);return o=typeof o=="function"?o:t,sn(St(r,1,ct,!0),t,o)});function Pb(r){return r&&r.length?sn(r):[]}function Db(r,o){return r&&r.length?sn(r,ce(o,2)):[]}function Ib(r,o){return o=typeof o=="function"?o:t,r&&r.length?sn(r,t,o):[]}function Ki(r){if(!(r&&r.length))return[];var o=0;return r=tn(r,function(u){if(ct(u))return o=gt(u.length,o),!0}),di(o,function(u){return tt(r,ci(u))})}function ad(r,o){if(!(r&&r.length))return[];var u=Ki(r);return o==null?u:tt(u,function(f){return Yt(o,t,f)})}var Fb=Oe(function(r,o){return ct(r)?Na(r,o):[]}),$b=Oe(function(r){return Fi(tn(r,ct))}),Mb=Oe(function(r){var o=ir(r);return ct(o)&&(o=t),Fi(tn(r,ct),ce(o,2))}),Nb=Oe(function(r){var o=ir(r);return o=typeof o=="function"?o:t,Fi(tn(r,ct),t,o)}),Lb=Oe(Ki);function jb(r,o){return Sf(r||[],o||[],Ma)}function kb(r,o){return Sf(r||[],o||[],ka)}var Bb=Oe(function(r){var o=r.length,u=o>1?r[o-1]:t;return u=typeof u=="function"?(r.pop(),u):t,ad(r,u)});function od(r){var o=y(r);return o.__chain__=!0,o}function Wb(r,o){return o(r),r}function qo(r,o){return o(r)}var Ub=kr(function(r){var o=r.length,u=o?r[0]:0,f=this.__wrapped__,v=function(b){return _i(b,r)};return o>1||this.__actions__.length||!(f instanceof Pe)||!Br(u)?this.thru(v):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:qo,args:[v],thisArg:t}),new ar(f,this.__chain__).thru(function(b){return o&&!b.length&&b.push(t),b}))});function Hb(){return od(this)}function Gb(){return new ar(this.value(),this.__chain__)}function qb(){this.__values__===t&&(this.__values__=bd(this.value()));var r=this.__index__>=this.__values__.length,o=r?t:this.__values__[this.__index__++];return{done:r,value:o}}function Yb(){return this}function zb(r){for(var o,u=this;u instanceof Po;){var f=Zf(u);f.__index__=0,f.__values__=t,o?v.__wrapped__=f:o=f;var v=f;u=u.__wrapped__}return v.__wrapped__=r,o}function Vb(){var r=this.__wrapped__;if(r instanceof Pe){var o=r;return this.__actions__.length&&(o=new Pe(this)),o=o.reverse(),o.__actions__.push({func:qo,args:[Vi],thisArg:t}),new ar(o,this.__chain__)}return this.thru(Vi)}function Kb(){return Ef(this.__wrapped__,this.__actions__)}var Jb=Lo(function(r,o,u){He.call(r,u)?++r[u]:Lr(r,u,1)});function Xb(r,o,u){var f=Se(r)?Fl:Wm;return u&&Mt(r,o,u)&&(o=t),f(r,ce(o,3))}function Zb(r,o){var u=Se(r)?tn:nf;return u(r,ce(o,3))}var Qb=If(Qf),e_=If(ed);function t_(r,o){return St(Yo(r,o),1)}function r_(r,o){return St(Yo(r,o),Ue)}function n_(r,o,u){return u=u===t?1:Te(u),St(Yo(r,o),u)}function sd(r,o){var u=Se(r)?rr:on;return u(r,ce(o,3))}function id(r,o){var u=Se(r)?Sy:rf;return u(r,ce(o,3))}var a_=Lo(function(r,o,u){He.call(r,u)?r[u].push(o):Lr(r,u,[o])});function o_(r,o,u,f){r=Bt(r)?r:ra(r),u=u&&!f?Te(u):0;var v=r.length;return u<0&&(u=gt(v+u,0)),Xo(r)?u<=v&&r.indexOf(o,u)>-1:!!v&&Gn(r,o,u)>-1}var s_=Oe(function(r,o,u){var f=-1,v=typeof o=="function",b=Bt(r)?M(r.length):[];return on(r,function(w){b[++f]=v?Yt(o,w,u):La(w,o,u)}),b}),i_=Lo(function(r,o,u){Lr(r,u,o)});function Yo(r,o){var u=Se(r)?tt:lf;return u(r,ce(o,3))}function u_(r,o,u,f){return r==null?[]:(Se(o)||(o=o==null?[]:[o]),u=f?t:u,Se(u)||(u=u==null?[]:[u]),hf(r,o,u))}var c_=Lo(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function l_(r,o,u){var f=Se(r)?ii:Ll,v=arguments.length<3;return f(r,ce(o,4),u,v,on)}function f_(r,o,u){var f=Se(r)?wy:Ll,v=arguments.length<3;return f(r,ce(o,4),u,v,rf)}function d_(r,o){var u=Se(r)?tn:nf;return u(r,Ko(ce(o,3)))}function p_(r){var o=Se(r)?Zl:o0;return o(r)}function h_(r,o,u){(u?Mt(r,o,u):o===t)?o=1:o=Te(o);var f=Se(r)?Nm:s0;return f(r,o)}function g_(r){var o=Se(r)?Lm:u0;return o(r)}function v_(r){if(r==null)return 0;if(Bt(r))return Xo(r)?Yn(r):r.length;var o=Ct(r);return o==qe||o==pt?r.size:xi(r).length}function y_(r,o,u){var f=Se(r)?ui:c0;return u&&Mt(r,o,u)&&(o=t),f(r,ce(o,3))}var m_=Oe(function(r,o){if(r==null)return[];var u=o.length;return u>1&&Mt(r,o[0],o[1])?o=[]:u>2&&Mt(o[0],o[1],o[2])&&(o=[o[0]]),hf(r,St(o,1),[])}),zo=Zy||function(){return Et.Date.now()};function b_(r,o){if(typeof o!="function")throw new nr(c);return r=Te(r),function(){if(--r<1)return o.apply(this,arguments)}}function ud(r,o,u){return o=u?t:o,o=r&&o==null?r.length:o,jr(r,G,t,t,t,t,o)}function cd(r,o){var u;if(typeof o!="function")throw new nr(c);return r=Te(r),function(){return--r>0&&(u=o.apply(this,arguments)),r<=1&&(o=t),u}}var Ji=Oe(function(r,o,u){var f=F;if(u.length){var v=nn(u,ea(Ji));f|=A}return jr(r,f,o,u,v)}),ld=Oe(function(r,o,u){var f=F|D;if(u.length){var v=nn(u,ea(ld));f|=A}return jr(o,f,r,u,v)});function fd(r,o,u){o=u?t:o;var f=jr(r,$,t,t,t,t,t,o);return f.placeholder=fd.placeholder,f}function dd(r,o,u){o=u?t:o;var f=jr(r,j,t,t,t,t,t,o);return f.placeholder=dd.placeholder,f}function pd(r,o,u){var f,v,b,w,C,P,k=0,B=!1,U=!1,X=!0;if(typeof r!="function")throw new nr(c);o=ur(o)||0,nt(u)&&(B=!!u.leading,U="maxWait"in u,b=U?gt(ur(u.maxWait)||0,o):b,X="trailing"in u?!!u.trailing:X);function ne(lt){var mr=f,Hr=v;return f=v=t,k=lt,w=r.apply(Hr,mr),w}function de(lt){return k=lt,C=Ua(Ae,o),B?ne(lt):w}function xe(lt){var mr=lt-P,Hr=lt-k,Id=o-mr;return U?Tt(Id,b-Hr):Id}function pe(lt){var mr=lt-P,Hr=lt-k;return P===t||mr>=o||mr<0||U&&Hr>=b}function Ae(){var lt=zo();if(pe(lt))return De(lt);C=Ua(Ae,xe(lt))}function De(lt){return C=t,X&&f?ne(lt):(f=v=t,w)}function Jt(){C!==t&&wf(C),k=0,f=P=v=C=t}function Nt(){return C===t?w:De(zo())}function Xt(){var lt=zo(),mr=pe(lt);if(f=arguments,v=this,P=lt,mr){if(C===t)return de(P);if(U)return wf(C),C=Ua(Ae,o),ne(P)}return C===t&&(C=Ua(Ae,o)),w}return Xt.cancel=Jt,Xt.flush=Nt,Xt}var __=Oe(function(r,o){return tf(r,1,o)}),E_=Oe(function(r,o,u){return tf(r,ur(o)||0,u)});function S_(r){return jr(r,ie)}function Vo(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new nr(c);var u=function(){var f=arguments,v=o?o.apply(this,f):f[0],b=u.cache;if(b.has(v))return b.get(v);var w=r.apply(this,f);return u.cache=b.set(v,w)||b,w};return u.cache=new(Vo.Cache||Nr),u}Vo.Cache=Nr;function Ko(r){if(typeof r!="function")throw new nr(c);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function w_(r){return cd(2,r)}var T_=l0(function(r,o){o=o.length==1&&Se(o[0])?tt(o[0],zt(ce())):tt(St(o,1),zt(ce()));var u=o.length;return Oe(function(f){for(var v=-1,b=Tt(f.length,u);++v<b;)f[v]=o[v].call(this,f[v]);return Yt(r,this,f)})}),Xi=Oe(function(r,o){var u=nn(o,ea(Xi));return jr(r,A,t,o,u)}),hd=Oe(function(r,o){var u=nn(o,ea(hd));return jr(r,K,t,o,u)}),C_=kr(function(r,o){return jr(r,Y,t,t,t,o)});function x_(r,o){if(typeof r!="function")throw new nr(c);return o=o===t?o:Te(o),Oe(r,o)}function O_(r,o){if(typeof r!="function")throw new nr(c);return o=o==null?0:gt(Te(o),0),Oe(function(u){var f=u[o],v=cn(u,0,o);return f&&rn(v,f),Yt(r,this,v)})}function R_(r,o,u){var f=!0,v=!0;if(typeof r!="function")throw new nr(c);return nt(u)&&(f="leading"in u?!!u.leading:f,v="trailing"in u?!!u.trailing:v),pd(r,o,{leading:f,maxWait:o,trailing:v})}function A_(r){return ud(r,1)}function P_(r,o){return Xi(Mi(o),r)}function D_(){if(!arguments.length)return[];var r=arguments[0];return Se(r)?r:[r]}function I_(r){return or(r,S)}function F_(r,o){return o=typeof o=="function"?o:t,or(r,S,o)}function $_(r){return or(r,m|S)}function M_(r,o){return o=typeof o=="function"?o:t,or(r,m|S,o)}function N_(r,o){return o==null||ef(r,o,mt(o))}function yr(r,o){return r===o||r!==r&&o!==o}var L_=Wo(wi),j_=Wo(function(r,o){return r>=o}),Mn=sf(function(){return arguments}())?sf:function(r){return ot(r)&&He.call(r,"callee")&&!Yl.call(r,"callee")},Se=M.isArray,k_=Ol?zt(Ol):zm;function Bt(r){return r!=null&&Jo(r.length)&&!Wr(r)}function ct(r){return ot(r)&&Bt(r)}function B_(r){return r===!0||r===!1||ot(r)&&$t(r)==ue}var ln=em||uu,W_=Rl?zt(Rl):Vm;function U_(r){return ot(r)&&r.nodeType===1&&!Ha(r)}function H_(r){if(r==null)return!0;if(Bt(r)&&(Se(r)||typeof r=="string"||typeof r.splice=="function"||ln(r)||ta(r)||Mn(r)))return!r.length;var o=Ct(r);if(o==qe||o==pt)return!r.size;if(Wa(r))return!xi(r).length;for(var u in r)if(He.call(r,u))return!1;return!0}function G_(r,o){return ja(r,o)}function q_(r,o,u){u=typeof u=="function"?u:t;var f=u?u(r,o):t;return f===t?ja(r,o,t,u):!!f}function Zi(r){if(!ot(r))return!1;var o=$t(r);return o==J||o==ge||typeof r.message=="string"&&typeof r.name=="string"&&!Ha(r)}function Y_(r){return typeof r=="number"&&Vl(r)}function Wr(r){if(!nt(r))return!1;var o=$t(r);return o==N||o==Ge||o==fe||o==Ea}function gd(r){return typeof r=="number"&&r==Te(r)}function Jo(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=et}function nt(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function ot(r){return r!=null&&typeof r=="object"}var vd=Al?zt(Al):Jm;function z_(r,o){return r===o||Ci(r,o,Ui(o))}function V_(r,o,u){return u=typeof u=="function"?u:t,Ci(r,o,Ui(o),u)}function K_(r){return yd(r)&&r!=+r}function J_(r){if(F0(r))throw new _e(i);return uf(r)}function X_(r){return r===null}function Z_(r){return r==null}function yd(r){return typeof r=="number"||ot(r)&&$t(r)==it}function Ha(r){if(!ot(r)||$t(r)!=It)return!1;var o=wo(r);if(o===null)return!0;var u=He.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&bo.call(u)==Vy}var Qi=Pl?zt(Pl):Xm;function Q_(r){return gd(r)&&r>=-et&&r<=et}var md=Dl?zt(Dl):Zm;function Xo(r){return typeof r=="string"||!Se(r)&&ot(r)&&$t(r)==Ir}function Kt(r){return typeof r=="symbol"||ot(r)&&$t(r)==wr}var ta=Il?zt(Il):Qm;function e1(r){return r===t}function t1(r){return ot(r)&&Ct(r)==qt}function r1(r){return ot(r)&&$t(r)==Sa}var n1=Wo(Oi),a1=Wo(function(r,o){return r<=o});function bd(r){if(!r)return[];if(Bt(r))return Xo(r)?gr(r):kt(r);if(Pa&&r[Pa])return Ny(r[Pa]());var o=Ct(r),u=o==qe?hi:o==pt?vo:ra;return u(r)}function Ur(r){if(!r)return r===0?r:0;if(r=ur(r),r===Ue||r===-Ue){var o=r<0?-1:1;return o*Dt}return r===r?r:0}function Te(r){var o=Ur(r),u=o%1;return o===o?u?o-u:o:0}function _d(r){return r?Dn(Te(r),0,V):0}function ur(r){if(typeof r=="number")return r;if(Kt(r))return H;if(nt(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=nt(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=jl(r);var u=xn.test(r);return u||Wv.test(r)?by(r.slice(2),u?2:8):Ft.test(r)?H:+r}function Ed(r){return xr(r,Wt(r))}function o1(r){return r?Dn(Te(r),-et,et):r===0?r:0}function Ne(r){return r==null?"":Vt(r)}var s1=Zn(function(r,o){if(Wa(o)||Bt(o)){xr(o,mt(o),r);return}for(var u in o)He.call(o,u)&&Ma(r,u,o[u])}),Sd=Zn(function(r,o){xr(o,Wt(o),r)}),Zo=Zn(function(r,o,u,f){xr(o,Wt(o),r,f)}),i1=Zn(function(r,o,u,f){xr(o,mt(o),r,f)}),u1=kr(_i);function c1(r,o){var u=Xn(r);return o==null?u:Ql(u,o)}var l1=Oe(function(r,o){r=Ve(r);var u=-1,f=o.length,v=f>2?o[2]:t;for(v&&Mt(o[0],o[1],v)&&(f=1);++u<f;)for(var b=o[u],w=Wt(b),C=-1,P=w.length;++C<P;){var k=w[C],B=r[k];(B===t||yr(B,Vn[k])&&!He.call(r,k))&&(r[k]=b[k])}return r}),f1=Oe(function(r){return r.push(t,kf),Yt(wd,t,r)});function d1(r,o){return $l(r,ce(o,3),Cr)}function p1(r,o){return $l(r,ce(o,3),Si)}function h1(r,o){return r==null?r:Ei(r,ce(o,3),Wt)}function g1(r,o){return r==null?r:af(r,ce(o,3),Wt)}function v1(r,o){return r&&Cr(r,ce(o,3))}function y1(r,o){return r&&Si(r,ce(o,3))}function m1(r){return r==null?[]:Fo(r,mt(r))}function b1(r){return r==null?[]:Fo(r,Wt(r))}function eu(r,o,u){var f=r==null?t:In(r,o);return f===t?u:f}function _1(r,o){return r!=null&&Uf(r,o,Hm)}function tu(r,o){return r!=null&&Uf(r,o,Gm)}var E1=$f(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=_o.call(o)),r[o]=u},nu(Ut)),S1=$f(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=_o.call(o)),He.call(r,o)?r[o].push(u):r[o]=[u]},ce),w1=Oe(La);function mt(r){return Bt(r)?Xl(r):xi(r)}function Wt(r){return Bt(r)?Xl(r,!0):e0(r)}function T1(r,o){var u={};return o=ce(o,3),Cr(r,function(f,v,b){Lr(u,o(f,v,b),f)}),u}function C1(r,o){var u={};return o=ce(o,3),Cr(r,function(f,v,b){Lr(u,v,o(f,v,b))}),u}var x1=Zn(function(r,o,u){$o(r,o,u)}),wd=Zn(function(r,o,u,f){$o(r,o,u,f)}),O1=kr(function(r,o){var u={};if(r==null)return u;var f=!1;o=tt(o,function(b){return b=un(b,r),f||(f=b.length>1),b}),xr(r,Bi(r),u),f&&(u=or(u,m|_|S,E0));for(var v=o.length;v--;)Ii(u,o[v]);return u});function R1(r,o){return Td(r,Ko(ce(o)))}var A1=kr(function(r,o){return r==null?{}:r0(r,o)});function Td(r,o){if(r==null)return{};var u=tt(Bi(r),function(f){return[f]});return o=ce(o),gf(r,u,function(f,v){return o(f,v[0])})}function P1(r,o,u){o=un(o,r);var f=-1,v=o.length;for(v||(v=1,r=t);++f<v;){var b=r==null?t:r[Or(o[f])];b===t&&(f=v,b=u),r=Wr(b)?b.call(r):b}return r}function D1(r,o,u){return r==null?r:ka(r,o,u)}function I1(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:ka(r,o,u,f)}var Cd=Lf(mt),xd=Lf(Wt);function F1(r,o,u){var f=Se(r),v=f||ln(r)||ta(r);if(o=ce(o,4),u==null){var b=r&&r.constructor;v?u=f?new b:[]:nt(r)?u=Wr(b)?Xn(wo(r)):{}:u={}}return(v?rr:Cr)(r,function(w,C,P){return o(u,w,C,P)}),u}function $1(r,o){return r==null?!0:Ii(r,o)}function M1(r,o,u){return r==null?r:_f(r,o,Mi(u))}function N1(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:_f(r,o,Mi(u),f)}function ra(r){return r==null?[]:pi(r,mt(r))}function L1(r){return r==null?[]:pi(r,Wt(r))}function j1(r,o,u){return u===t&&(u=o,o=t),u!==t&&(u=ur(u),u=u===u?u:0),o!==t&&(o=ur(o),o=o===o?o:0),Dn(ur(r),o,u)}function k1(r,o,u){return o=Ur(o),u===t?(u=o,o=0):u=Ur(u),r=ur(r),qm(r,o,u)}function B1(r,o,u){if(u&&typeof u!="boolean"&&Mt(r,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof r=="boolean"&&(u=r,r=t)),r===t&&o===t?(r=0,o=1):(r=Ur(r),o===t?(o=r,r=0):o=Ur(o)),r>o){var f=r;r=o,o=f}if(u||r%1||o%1){var v=Kl();return Tt(r+v*(o-r+my("1e-"+((v+"").length-1))),o)}return Ai(r,o)}var W1=Qn(function(r,o,u){return o=o.toLowerCase(),r+(u?Od(o):o)});function Od(r){return ru(Ne(r).toLowerCase())}function Rd(r){return r=Ne(r),r&&r.replace(Hv,Dy).replace(uy,"")}function U1(r,o,u){r=Ne(r),o=Vt(o);var f=r.length;u=u===t?f:Dn(Te(u),0,f);var v=u;return u-=o.length,u>=0&&r.slice(u,v)==o}function H1(r){return r=Ne(r),r&&Ta.test(r)?r.replace(en,Iy):r}function G1(r){return r=Ne(r),r&&O.test(r)?r.replace(g,"\\$&"):r}var q1=Qn(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),Y1=Qn(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),z1=Df("toLowerCase");function V1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;if(!o||f>=o)return r;var v=(o-f)/2;return Bo(Oo(v),u)+r+Bo(xo(v),u)}function K1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;return o&&f<o?r+Bo(o-f,u):r}function J1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;return o&&f<o?Bo(o-f,u)+r:r}function X1(r,o,u){return u||o==null?o=0:o&&(o=+o),am(Ne(r).replace(I,""),o||0)}function Z1(r,o,u){return(u?Mt(r,o,u):o===t)?o=1:o=Te(o),Pi(Ne(r),o)}function Q1(){var r=arguments,o=Ne(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var eE=Qn(function(r,o,u){return r+(u?"_":"")+o.toLowerCase()});function tE(r,o,u){return u&&typeof u!="number"&&Mt(r,o,u)&&(o=u=t),u=u===t?V:u>>>0,u?(r=Ne(r),r&&(typeof o=="string"||o!=null&&!Qi(o))&&(o=Vt(o),!o&&qn(r))?cn(gr(r),0,u):r.split(o,u)):[]}var rE=Qn(function(r,o,u){return r+(u?" ":"")+ru(o)});function nE(r,o,u){return r=Ne(r),u=u==null?0:Dn(Te(u),0,r.length),o=Vt(o),r.slice(u,u+o.length)==o}function aE(r,o,u){var f=y.templateSettings;u&&Mt(r,o,u)&&(o=t),r=Ne(r),o=Zo({},o,f,jf);var v=Zo({},o.imports,f.imports,jf),b=mt(v),w=pi(v,b),C,P,k=0,B=o.interpolate||lo,U="__p += '",X=gi((o.escape||lo).source+"|"+B.source+"|"+(B===Un?Ee:lo).source+"|"+(o.evaluate||lo).source+"|$","g"),ne="//# sourceURL="+(He.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++py+"]")+`
|
|
18
|
+
`;r.replace(X,function(pe,Ae,De,Jt,Nt,Xt){return De||(De=Jt),U+=r.slice(k,Xt).replace(Gv,Fy),Ae&&(C=!0,U+=`' +
|
|
19
19
|
__e(`+Ae+`) +
|
|
20
20
|
'`),Nt&&(P=!0,U+=`';
|
|
21
21
|
`+Nt+`;
|
|
@@ -27,96 +27,96 @@ __p += '`),De&&(U+=`' +
|
|
|
27
27
|
}
|
|
28
28
|
`;else if(Ie.test(de))throw new _e(l);U=(P?U.replace(Sn,""):U).replace(wa,"$1").replace(wn,"$1;"),U="function("+(de||"obj")+`) {
|
|
29
29
|
`+(de?"":`obj || (obj = {});
|
|
30
|
-
`)+"var __t, __p = ''"+(
|
|
30
|
+
`)+"var __t, __p = ''"+(C?", __e = _.escape":"")+(P?`, __j = Array.prototype.join;
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+U+`return __p
|
|
34
|
-
}`;var Ce=Ad(function(){return $e(b,ne+"return "+U).apply(t,w)});if(Ce.source=U,Zi(Ce))throw Ce;return Ce}function aE(r){return Ne(r).toLowerCase()}function oE(r){return Ne(r).toUpperCase()}function sE(r,o,u){if(r=Ne(r),r&&(u||o===t))return Ll(r);if(!r||!(o=Vt(o)))return r;var f=gr(r),v=gr(o),b=jl(f,v),w=kl(f,v)+1;return cn(f,b,w).join("")}function iE(r,o,u){if(r=Ne(r),r&&(u||o===t))return r.slice(0,Wl(r)+1);if(!r||!(o=Vt(o)))return r;var f=gr(r),v=kl(f,gr(o))+1;return cn(f,0,v).join("")}function uE(r,o,u){if(r=Ne(r),r&&(u||o===t))return r.replace(I,"");if(!r||!(o=Vt(o)))return r;var f=gr(r),v=jl(f,gr(o));return cn(f,v).join("")}function cE(r,o){var u=We,f=Oe;if(nt(o)){var v="separator"in o?o.separator:v;u="length"in o?Te(o.length):u,f="omission"in o?Vt(o.omission):f}r=Ne(r);var b=r.length;if(qn(r)){var w=gr(r);b=w.length}if(u>=b)return r;var x=u-Yn(f);if(x<1)return f;var P=w?cn(w,0,x).join(""):r.slice(0,x);if(v===t)return P+f;if(w&&(x+=P.length-x),Qi(v)){if(r.slice(x).search(v)){var k,B=P;for(v.global||(v=gi(v.source,Ne(at.exec(v))+"g")),v.lastIndex=0;k=v.exec(B);)var U=k.index;P=P.slice(0,U===t?x:U)}}else if(r.indexOf(Vt(v),x)!=x){var X=P.lastIndexOf(v);X>-1&&(P=P.slice(0,X))}return P+f}function lE(r){return r=Ne(r),r&&Tn.test(r)?r.replace(Wn,ky):r}var fE=Qn(function(r,o,u){return r+(u?" ":"")+o.toUpperCase()}),ru=Pf("toUpperCase");function Od(r,o,u){return r=Ne(r),o=u?t:o,o===t?$y(r)?Uy(r):xy(r):r.match(o)||[]}var Ad=Re(function(r,o){try{return Yt(r,t,o)}catch(u){return Zi(u)?u:new _e(u)}}),dE=kr(function(r,o){return rr(o,function(u){u=Rr(u),Lr(r,u,Ji(r[u],r))}),r});function pE(r){var o=r==null?0:r.length,u=ce();return r=o?tt(r,function(f){if(typeof f[1]!="function")throw new nr(c);return[u(f[0]),f[1]]}):[],Re(function(f){for(var v=-1;++v<o;){var b=r[v];if(Yt(b[0],this,f))return Yt(b[1],this,f)}})}function hE(r){return km(or(r,m))}function nu(r){return function(){return r}}function gE(r,o){return r==null||r!==r?o:r}var vE=If(),yE=If(!0);function Ut(r){return r}function au(r){return uf(typeof r=="function"?r:or(r,m))}function mE(r){return lf(or(r,m))}function bE(r,o){return ff(r,or(o,m))}var _E=Re(function(r,o){return function(u){return La(u,r,o)}}),EE=Re(function(r,o){return function(u){return La(r,u,o)}});function ou(r,o,u){var f=mt(o),v=Fo(o,f);u==null&&!(nt(o)&&(v.length||!f.length))&&(u=o,o=r,r=this,v=Fo(o,mt(o)));var b=!(nt(u)&&"chain"in u)||!!u.chain,w=Wr(r);return rr(v,function(x){var P=o[x];r[x]=P,w&&(r.prototype[x]=function(){var k=this.__chain__;if(b||k){var B=r(this.__wrapped__),U=B.__actions__=kt(this.__actions__);return U.push({func:P,args:arguments,thisArg:r}),B.__chain__=k,B}return P.apply(r,rn([this.value()],arguments))})}),r}function SE(){return Et._===this&&(Et._=Vy),this}function su(){}function wE(r){return r=Te(r),Re(function(o){return df(o,r)})}var TE=Li(tt),xE=Li(Il),CE=Li(ui);function Pd(r){return Gi(r)?ci(Rr(r)):r0(r)}function RE(r){return function(o){return r==null?t:In(r,o)}}var OE=$f(),AE=$f(!0);function iu(){return[]}function uu(){return!1}function PE(){return{}}function DE(){return""}function IE(){return!0}function FE(r,o){if(r=Te(r),r<1||r>et)return[];var u=V,f=Tt(r,V);o=ce(o),r-=V;for(var v=di(f,o);++u<r;)o(u);return v}function $E(r){return Se(r)?tt(r,Rr):Kt(r)?[r]:kt(Jf(Ne(r)))}function ME(r){var o=++Yy;return Ne(r)+o}var NE=ko(function(r,o){return r+o},0),LE=ji("ceil"),jE=ko(function(r,o){return r/o},1),kE=ji("floor");function BE(r){return r&&r.length?Io(r,Ut,wi):t}function WE(r,o){return r&&r.length?Io(r,ce(o,2),wi):t}function UE(r){return Ml(r,Ut)}function HE(r,o){return Ml(r,ce(o,2))}function GE(r){return r&&r.length?Io(r,Ut,Ri):t}function qE(r,o){return r&&r.length?Io(r,ce(o,2),Ri):t}var YE=ko(function(r,o){return r*o},1),zE=ji("round"),VE=ko(function(r,o){return r-o},0);function KE(r){return r&&r.length?fi(r,Ut):0}function JE(r,o){return r&&r.length?fi(r,ce(o,2)):0}return y.after=m_,y.ary=id,y.assign=o1,y.assignIn=Ed,y.assignInWith=Zo,y.assignWith=s1,y.at=i1,y.before=ud,y.bind=Ji,y.bindAll=dE,y.bindKey=cd,y.castArray=P_,y.chain=ad,y.chunk=k0,y.compact=B0,y.concat=W0,y.cond=pE,y.conforms=hE,y.constant=nu,y.countBy=Kb,y.create=u1,y.curry=ld,y.curryRight=fd,y.debounce=dd,y.defaults=c1,y.defaultsDeep=l1,y.defer=b_,y.delay=__,y.difference=U0,y.differenceBy=H0,y.differenceWith=G0,y.drop=q0,y.dropRight=Y0,y.dropRightWhile=z0,y.dropWhile=V0,y.fill=K0,y.filter=Xb,y.flatMap=e_,y.flatMapDeep=t_,y.flatMapDepth=r_,y.flatten=ed,y.flattenDeep=J0,y.flattenDepth=X0,y.flip=E_,y.flow=vE,y.flowRight=yE,y.fromPairs=Z0,y.functions=y1,y.functionsIn=m1,y.groupBy=n_,y.initial=eb,y.intersection=tb,y.intersectionBy=rb,y.intersectionWith=nb,y.invert=_1,y.invertBy=E1,y.invokeMap=o_,y.iteratee=au,y.keyBy=s_,y.keys=mt,y.keysIn=Wt,y.map=Yo,y.mapKeys=w1,y.mapValues=T1,y.matches=mE,y.matchesProperty=bE,y.memoize=Vo,y.merge=x1,y.mergeWith=Sd,y.method=_E,y.methodOf=EE,y.mixin=ou,y.negate=Ko,y.nthArg=wE,y.omit=C1,y.omitBy=R1,y.once=S_,y.orderBy=i_,y.over=TE,y.overArgs=w_,y.overEvery=xE,y.overSome=CE,y.partial=Xi,y.partialRight=pd,y.partition=u_,y.pick=O1,y.pickBy=wd,y.property=Pd,y.propertyOf=RE,y.pull=ib,y.pullAll=rd,y.pullAllBy=ub,y.pullAllWith=cb,y.pullAt=lb,y.range=OE,y.rangeRight=AE,y.rearg=T_,y.reject=f_,y.remove=fb,y.rest=x_,y.reverse=Vi,y.sampleSize=p_,y.set=P1,y.setWith=D1,y.shuffle=h_,y.slice=db,y.sortBy=y_,y.sortedUniq=bb,y.sortedUniqBy=_b,y.split=eE,y.spread=C_,y.tail=Eb,y.take=Sb,y.takeRight=wb,y.takeRightWhile=Tb,y.takeWhile=xb,y.tap=Bb,y.throttle=R_,y.thru=qo,y.toArray=md,y.toPairs=Td,y.toPairsIn=xd,y.toPath=$E,y.toPlainObject=_d,y.transform=I1,y.unary=O_,y.union=Cb,y.unionBy=Rb,y.unionWith=Ob,y.uniq=Ab,y.uniqBy=Pb,y.uniqWith=Db,y.unset=F1,y.unzip=Ki,y.unzipWith=nd,y.update=$1,y.updateWith=M1,y.values=ra,y.valuesIn=N1,y.without=Ib,y.words=Od,y.wrap=A_,y.xor=Fb,y.xorBy=$b,y.xorWith=Mb,y.zip=Nb,y.zipObject=Lb,y.zipObjectDeep=jb,y.zipWith=kb,y.entries=Td,y.entriesIn=xd,y.extend=Ed,y.extendWith=Zo,ou(y,y),y.add=NE,y.attempt=Ad,y.camelCase=B1,y.capitalize=Cd,y.ceil=LE,y.clamp=L1,y.clone=D_,y.cloneDeep=F_,y.cloneDeepWith=$_,y.cloneWith=I_,y.conformsTo=M_,y.deburr=Rd,y.defaultTo=gE,y.divide=jE,y.endsWith=W1,y.eq=yr,y.escape=U1,y.escapeRegExp=H1,y.every=Jb,y.find=Zb,y.findIndex=Zf,y.findKey=f1,y.findLast=Qb,y.findLastIndex=Qf,y.findLastKey=d1,y.floor=kE,y.forEach=od,y.forEachRight=sd,y.forIn=p1,y.forInRight=h1,y.forOwn=g1,y.forOwnRight=v1,y.get=eu,y.gt=N_,y.gte=L_,y.has=b1,y.hasIn=tu,y.head=td,y.identity=Ut,y.includes=a_,y.indexOf=Q0,y.inRange=j1,y.invoke=S1,y.isArguments=Mn,y.isArray=Se,y.isArrayBuffer=j_,y.isArrayLike=Bt,y.isArrayLikeObject=ct,y.isBoolean=k_,y.isBuffer=ln,y.isDate=B_,y.isElement=W_,y.isEmpty=U_,y.isEqual=H_,y.isEqualWith=G_,y.isError=Zi,y.isFinite=q_,y.isFunction=Wr,y.isInteger=hd,y.isLength=Jo,y.isMap=gd,y.isMatch=Y_,y.isMatchWith=z_,y.isNaN=V_,y.isNative=K_,y.isNil=X_,y.isNull=J_,y.isNumber=vd,y.isObject=nt,y.isObjectLike=ot,y.isPlainObject=Ha,y.isRegExp=Qi,y.isSafeInteger=Z_,y.isSet=yd,y.isString=Xo,y.isSymbol=Kt,y.isTypedArray=ta,y.isUndefined=Q_,y.isWeakMap=e1,y.isWeakSet=t1,y.join=ab,y.kebabCase=G1,y.last=ir,y.lastIndexOf=ob,y.lowerCase=q1,y.lowerFirst=Y1,y.lt=r1,y.lte=n1,y.max=BE,y.maxBy=WE,y.mean=UE,y.meanBy=HE,y.min=GE,y.minBy=qE,y.stubArray=iu,y.stubFalse=uu,y.stubObject=PE,y.stubString=DE,y.stubTrue=IE,y.multiply=YE,y.nth=sb,y.noConflict=SE,y.noop=su,y.now=zo,y.pad=z1,y.padEnd=V1,y.padStart=K1,y.parseInt=J1,y.random=k1,y.reduce=c_,y.reduceRight=l_,y.repeat=X1,y.replace=Z1,y.result=A1,y.round=zE,y.runInContext=O,y.sample=d_,y.size=g_,y.snakeCase=Q1,y.some=v_,y.sortedIndex=pb,y.sortedIndexBy=hb,y.sortedIndexOf=gb,y.sortedLastIndex=vb,y.sortedLastIndexBy=yb,y.sortedLastIndexOf=mb,y.startCase=tE,y.startsWith=rE,y.subtract=VE,y.sum=KE,y.sumBy=JE,y.template=nE,y.times=FE,y.toFinite=Ur,y.toInteger=Te,y.toLength=bd,y.toLower=aE,y.toNumber=ur,y.toSafeInteger=a1,y.toString=Ne,y.toUpper=oE,y.trim=sE,y.trimEnd=iE,y.trimStart=uE,y.truncate=cE,y.unescape=lE,y.uniqueId=ME,y.upperCase=fE,y.upperFirst=ru,y.each=od,y.eachRight=sd,y.first=td,ou(y,function(){var r={};return xr(y,function(o,u){He.call(y.prototype,u)||(r[u]=o)}),r}(),{chain:!1}),y.VERSION=a,rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){y[r].placeholder=y}),rr(["drop","take"],function(r,o){Pe.prototype[r]=function(u){u=u===t?1:gt(Te(u),0);var f=this.__filtered__&&!o?new Pe(this):this.clone();return f.__filtered__?f.__takeCount__=Tt(u,f.__takeCount__):f.__views__.push({size:Tt(u,V),type:r+(f.__dir__<0?"Right":"")}),f},Pe.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}}),rr(["filter","map","takeWhile"],function(r,o){var u=o+1,f=u==we||u==Ze;Pe.prototype[r]=function(v){var b=this.clone();return b.__iteratees__.push({iteratee:ce(v,3),type:u}),b.__filtered__=b.__filtered__||f,b}}),rr(["head","last"],function(r,o){var u="take"+(o?"Right":"");Pe.prototype[r]=function(){return this[u](1).value()[0]}}),rr(["initial","tail"],function(r,o){var u="drop"+(o?"":"Right");Pe.prototype[r]=function(){return this.__filtered__?new Pe(this):this[u](1)}}),Pe.prototype.compact=function(){return this.filter(Ut)},Pe.prototype.find=function(r){return this.filter(r).head()},Pe.prototype.findLast=function(r){return this.reverse().find(r)},Pe.prototype.invokeMap=Re(function(r,o){return typeof r=="function"?new Pe(this):this.map(function(u){return La(u,r,o)})}),Pe.prototype.reject=function(r){return this.filter(Ko(ce(r)))},Pe.prototype.slice=function(r,o){r=Te(r);var u=this;return u.__filtered__&&(r>0||o<0)?new Pe(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),o!==t&&(o=Te(o),u=o<0?u.dropRight(-o):u.take(o-r)),u)},Pe.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Pe.prototype.toArray=function(){return this.take(V)},xr(Pe.prototype,function(r,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),v=y[f?"take"+(o=="last"?"Right":""):o],b=f||/^find/.test(o);v&&(y.prototype[o]=function(){var w=this.__wrapped__,x=f?[1]:arguments,P=w instanceof Pe,k=x[0],B=P||Se(w),U=function(Ae){var De=v.apply(y,rn([Ae],x));return f&&X?De[0]:De};B&&u&&typeof k=="function"&&k.length!=1&&(P=B=!1);var X=this.__chain__,ne=!!this.__actions__.length,de=b&&!X,Ce=P&&!ne;if(!b&&B){w=Ce?w:new Pe(this);var pe=r.apply(w,x);return pe.__actions__.push({func:qo,args:[U],thisArg:t}),new ar(pe,X)}return de&&Ce?r.apply(this,x):(pe=this.thru(U),de?f?pe.value()[0]:pe.value():pe)})}),rr(["pop","push","shift","sort","splice","unshift"],function(r){var o=yo[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);y.prototype[r]=function(){var v=arguments;if(f&&!this.__chain__){var b=this.value();return o.apply(Se(b)?b:[],v)}return this[u](function(w){return o.apply(Se(w)?w:[],v)})}}),xr(Pe.prototype,function(r,o){var u=y[o];if(u){var f=u.name+"";He.call(Jn,f)||(Jn[f]=[]),Jn[f].push({name:o,func:u})}}),Jn[jo(t,D).name]=[{name:"wrapper",func:t}],Pe.prototype.clone=lm,Pe.prototype.reverse=fm,Pe.prototype.value=dm,y.prototype.at=Wb,y.prototype.chain=Ub,y.prototype.commit=Hb,y.prototype.next=Gb,y.prototype.plant=Yb,y.prototype.reverse=zb,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Vb,y.prototype.first=y.prototype.head,Pa&&(y.prototype[Pa]=qb),y},zn=Hy();Rn?((Rn.exports=zn)._=zn,ai._=zn):Et._=zn}).call(qr)})(Es,Es.exports);var Ke=Es.exports;const Ih=Is(Ke);function Pc(e){return`Debugger/${e}`}function Fh(e,n){var a;const t=(a=n.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const ER=typeof process=="object"&&process&&process.platform==="win32";var SR=ER?{sep:"\\"}:{sep:"/"},wR=$h;function $h(e,n,t){e instanceof RegExp&&(e=pp(e,t)),n instanceof RegExp&&(n=pp(n,t));var a=Mh(e,n,t);return a&&{start:a[0],end:a[1],pre:t.slice(0,a[0]),body:t.slice(a[0]+e.length,a[1]),post:t.slice(a[1]+n.length)}}function pp(e,n){var t=n.match(e);return t?t[0]:null}$h.range=Mh;function Mh(e,n,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(n,d+1),h=d;if(d>=0&&p>0){if(e===n)return[d,p];for(a=[],i=t.length;h>=0&&!l;)h==d?(a.push(h),d=t.indexOf(e,h+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(n,h+1)),h=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var Nh=wR,TR=RR,Lh="\0SLASH"+Math.random()+"\0",jh="\0OPEN"+Math.random()+"\0",Dc="\0CLOSE"+Math.random()+"\0",kh="\0COMMA"+Math.random()+"\0",Bh="\0PERIOD"+Math.random()+"\0";function _u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function xR(e){return e.split("\\\\").join(Lh).split("\\{").join(jh).split("\\}").join(Dc).split("\\,").join(kh).split("\\.").join(Bh)}function CR(e){return e.split(Lh).join("\\").split(jh).join("{").split(Dc).join("}").split(kh).join(",").split(Bh).join(".")}function Wh(e){if(!e)return[""];var n=[],t=Nh("{","}",e);if(!t)return e.split(",");var a=t.pre,s=t.body,i=t.post,c=a.split(",");c[c.length-1]+="{"+s+"}";var l=Wh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),n.push.apply(n,c),n}function RR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),za(xR(e),!0).map(CR)):[]}function OR(e){return"{"+e+"}"}function AR(e){return/^-?0\d/.test(e)}function PR(e,n){return e<=n}function DR(e,n){return e>=n}function za(e,n){var t=[],a=Nh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?za(a.post,!1):[""];if(/\$$/.test(a.pre))for(var c=0;c<i.length;c++){var l=s+"{"+a.body+"}"+i[c];t.push(l)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=d||p,m=a.body.indexOf(",")>=0;if(!h&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Dc+a.post,za(e)):[e];var _;if(h)_=a.body.split(/\.\./);else if(_=Wh(a.body),_.length===1&&(_=za(_[0],!1).map(OR),_.length===1))return i.map(function(We){return a.pre+_[0]+We});var S;if(h){var T=_u(_[0]),C=_u(_[1]),F=Math.max(_[0].length,_[1].length),D=_.length==3?Math.abs(_u(_[2])):1,W=PR,$=C<T;$&&(D*=-1,W=DR);var j=_.some(AR);S=[];for(var A=T;W(A,C);A+=D){var K;if(p)K=String.fromCharCode(A),K==="\\"&&(K="");else if(K=String(A),j){var G=F-K.length;if(G>0){var Y=new Array(G+1).join("0");A<0?K="-"+Y+K.slice(1):K=Y+K}}S.push(K)}}else{S=[];for(var ie=0;ie<_.length;ie++)S.push.apply(S,za(_[ie],!1))}for(var ie=0;ie<S.length;ie++)for(var c=0;c<i.length;c++){var l=s+S[ie]+i[c];(!n||h||l)&&t.push(l)}}return t}const Zt=Uh=(e,n,t={})=>(Ss(n),!t.nocomment&&n.charAt(0)==="#"?!1:new Bs(n,t).match(e));var Uh=Zt;const Xu=SR;Zt.sep=Xu.sep;const br=Symbol("globstar **");Zt.GLOBSTAR=br;const IR=TR,hp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Zu="[^/]",Eu=Zu+"*?",FR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",$R="(?:(?!(?:\\/|^)\\.).)*?",Hh=e=>e.split("").reduce((n,t)=>(n[t]=!0,n),{}),gp=Hh("().*{}+?[]^$\\!"),MR=Hh("[.("),vp=/\/+/;Zt.filter=(e,n={})=>(t,a,s)=>Zt(t,e,n);const fn=(e,n={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(n).forEach(a=>t[a]=n[a]),t};Zt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Zt;const n=Zt,t=(a,s,i)=>n(a,s,fn(e,i));return t.Minimatch=class extends n.Minimatch{constructor(s,i){super(s,fn(e,i))}},t.Minimatch.defaults=a=>n.defaults(fn(e,a)).Minimatch,t.filter=(a,s)=>n.filter(a,fn(e,s)),t.defaults=a=>n.defaults(fn(e,a)),t.makeRe=(a,s)=>n.makeRe(a,fn(e,s)),t.braceExpand=(a,s)=>n.braceExpand(a,fn(e,s)),t.match=(a,s,i)=>n.match(a,s,fn(e,i)),t};Zt.braceExpand=(e,n)=>Gh(e,n);const Gh=(e,n={})=>(Ss(e),n.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:IR(e)),NR=1024*64,Ss=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>NR)throw new TypeError("pattern is too long")},Su=Symbol("subparse");Zt.makeRe=(e,n)=>new Bs(e,n||{}).makeRe();Zt.match=(e,n,t={})=>{const a=new Bs(n,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(n),e};const LR=e=>e.replace(/\\(.)/g,"$1"),jR=e=>e.replace(/\\([^-\]])/g,"$1"),kR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),BR=e=>e.replace(/[[\]\\]/g,"\\$&");class Bs{constructor(n,t){Ss(n),t||(t={}),this.options=t,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const n=this.pattern,t=this.options;if(!t.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,a),a=this.globParts=a.map(s=>s.split(vp)),this.debug(this.pattern,a),a=a.map((s,i,c)=>s.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(s=>s.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const n=this.pattern;let t=!1,a=0;for(let s=0;s<n.length&&n.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=n.slice(a)),this.negate=t}matchOne(n,t,a){var s=this.options;this.debug("matchOne",{this:this,file:n,pattern:t}),this.debug("matchOne",n.length,t.length);for(var i=0,c=0,l=n.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],h=n[i];if(this.debug(t,p,h),p===!1)return!1;if(p===br){this.debug("GLOBSTAR",[t,p,h]);var m=i,_=c+1;if(_===d){for(this.debug("** at the end");i<l;i++)if(n[i]==="."||n[i]===".."||!s.dot&&n[i].charAt(0)===".")return!1;return!0}for(;m<l;){var S=n[m];if(this.debug(`
|
|
34
|
+
}`;var xe=Pd(function(){return $e(b,ne+"return "+U).apply(t,w)});if(xe.source=U,Zi(xe))throw xe;return xe}function oE(r){return Ne(r).toLowerCase()}function sE(r){return Ne(r).toUpperCase()}function iE(r,o,u){if(r=Ne(r),r&&(u||o===t))return jl(r);if(!r||!(o=Vt(o)))return r;var f=gr(r),v=gr(o),b=kl(f,v),w=Bl(f,v)+1;return cn(f,b,w).join("")}function uE(r,o,u){if(r=Ne(r),r&&(u||o===t))return r.slice(0,Ul(r)+1);if(!r||!(o=Vt(o)))return r;var f=gr(r),v=Bl(f,gr(o))+1;return cn(f,0,v).join("")}function cE(r,o,u){if(r=Ne(r),r&&(u||o===t))return r.replace(I,"");if(!r||!(o=Vt(o)))return r;var f=gr(r),v=kl(f,gr(o));return cn(f,v).join("")}function lE(r,o){var u=We,f=Re;if(nt(o)){var v="separator"in o?o.separator:v;u="length"in o?Te(o.length):u,f="omission"in o?Vt(o.omission):f}r=Ne(r);var b=r.length;if(qn(r)){var w=gr(r);b=w.length}if(u>=b)return r;var C=u-Yn(f);if(C<1)return f;var P=w?cn(w,0,C).join(""):r.slice(0,C);if(v===t)return P+f;if(w&&(C+=P.length-C),Qi(v)){if(r.slice(C).search(v)){var k,B=P;for(v.global||(v=gi(v.source,Ne(at.exec(v))+"g")),v.lastIndex=0;k=v.exec(B);)var U=k.index;P=P.slice(0,U===t?C:U)}}else if(r.indexOf(Vt(v),C)!=C){var X=P.lastIndexOf(v);X>-1&&(P=P.slice(0,X))}return P+f}function fE(r){return r=Ne(r),r&&Tn.test(r)?r.replace(Wn,By):r}var dE=Qn(function(r,o,u){return r+(u?" ":"")+o.toUpperCase()}),ru=Df("toUpperCase");function Ad(r,o,u){return r=Ne(r),o=u?t:o,o===t?My(r)?Hy(r):xy(r):r.match(o)||[]}var Pd=Oe(function(r,o){try{return Yt(r,t,o)}catch(u){return Zi(u)?u:new _e(u)}}),pE=kr(function(r,o){return rr(o,function(u){u=Or(u),Lr(r,u,Ji(r[u],r))}),r});function hE(r){var o=r==null?0:r.length,u=ce();return r=o?tt(r,function(f){if(typeof f[1]!="function")throw new nr(c);return[u(f[0]),f[1]]}):[],Oe(function(f){for(var v=-1;++v<o;){var b=r[v];if(Yt(b[0],this,f))return Yt(b[1],this,f)}})}function gE(r){return Bm(or(r,m))}function nu(r){return function(){return r}}function vE(r,o){return r==null||r!==r?o:r}var yE=Ff(),mE=Ff(!0);function Ut(r){return r}function au(r){return cf(typeof r=="function"?r:or(r,m))}function bE(r){return ff(or(r,m))}function _E(r,o){return df(r,or(o,m))}var EE=Oe(function(r,o){return function(u){return La(u,r,o)}}),SE=Oe(function(r,o){return function(u){return La(r,u,o)}});function ou(r,o,u){var f=mt(o),v=Fo(o,f);u==null&&!(nt(o)&&(v.length||!f.length))&&(u=o,o=r,r=this,v=Fo(o,mt(o)));var b=!(nt(u)&&"chain"in u)||!!u.chain,w=Wr(r);return rr(v,function(C){var P=o[C];r[C]=P,w&&(r.prototype[C]=function(){var k=this.__chain__;if(b||k){var B=r(this.__wrapped__),U=B.__actions__=kt(this.__actions__);return U.push({func:P,args:arguments,thisArg:r}),B.__chain__=k,B}return P.apply(r,rn([this.value()],arguments))})}),r}function wE(){return Et._===this&&(Et._=Ky),this}function su(){}function TE(r){return r=Te(r),Oe(function(o){return pf(o,r)})}var CE=Li(tt),xE=Li(Fl),OE=Li(ui);function Dd(r){return Gi(r)?ci(Or(r)):n0(r)}function RE(r){return function(o){return r==null?t:In(r,o)}}var AE=Mf(),PE=Mf(!0);function iu(){return[]}function uu(){return!1}function DE(){return{}}function IE(){return""}function FE(){return!0}function $E(r,o){if(r=Te(r),r<1||r>et)return[];var u=V,f=Tt(r,V);o=ce(o),r-=V;for(var v=di(f,o);++u<r;)o(u);return v}function ME(r){return Se(r)?tt(r,Or):Kt(r)?[r]:kt(Xf(Ne(r)))}function NE(r){var o=++zy;return Ne(r)+o}var LE=ko(function(r,o){return r+o},0),jE=ji("ceil"),kE=ko(function(r,o){return r/o},1),BE=ji("floor");function WE(r){return r&&r.length?Io(r,Ut,wi):t}function UE(r,o){return r&&r.length?Io(r,ce(o,2),wi):t}function HE(r){return Nl(r,Ut)}function GE(r,o){return Nl(r,ce(o,2))}function qE(r){return r&&r.length?Io(r,Ut,Oi):t}function YE(r,o){return r&&r.length?Io(r,ce(o,2),Oi):t}var zE=ko(function(r,o){return r*o},1),VE=ji("round"),KE=ko(function(r,o){return r-o},0);function JE(r){return r&&r.length?fi(r,Ut):0}function XE(r,o){return r&&r.length?fi(r,ce(o,2)):0}return y.after=b_,y.ary=ud,y.assign=s1,y.assignIn=Sd,y.assignInWith=Zo,y.assignWith=i1,y.at=u1,y.before=cd,y.bind=Ji,y.bindAll=pE,y.bindKey=ld,y.castArray=D_,y.chain=od,y.chunk=B0,y.compact=W0,y.concat=U0,y.cond=hE,y.conforms=gE,y.constant=nu,y.countBy=Jb,y.create=c1,y.curry=fd,y.curryRight=dd,y.debounce=pd,y.defaults=l1,y.defaultsDeep=f1,y.defer=__,y.delay=E_,y.difference=H0,y.differenceBy=G0,y.differenceWith=q0,y.drop=Y0,y.dropRight=z0,y.dropRightWhile=V0,y.dropWhile=K0,y.fill=J0,y.filter=Zb,y.flatMap=t_,y.flatMapDeep=r_,y.flatMapDepth=n_,y.flatten=td,y.flattenDeep=X0,y.flattenDepth=Z0,y.flip=S_,y.flow=yE,y.flowRight=mE,y.fromPairs=Q0,y.functions=m1,y.functionsIn=b1,y.groupBy=a_,y.initial=tb,y.intersection=rb,y.intersectionBy=nb,y.intersectionWith=ab,y.invert=E1,y.invertBy=S1,y.invokeMap=s_,y.iteratee=au,y.keyBy=i_,y.keys=mt,y.keysIn=Wt,y.map=Yo,y.mapKeys=T1,y.mapValues=C1,y.matches=bE,y.matchesProperty=_E,y.memoize=Vo,y.merge=x1,y.mergeWith=wd,y.method=EE,y.methodOf=SE,y.mixin=ou,y.negate=Ko,y.nthArg=TE,y.omit=O1,y.omitBy=R1,y.once=w_,y.orderBy=u_,y.over=CE,y.overArgs=T_,y.overEvery=xE,y.overSome=OE,y.partial=Xi,y.partialRight=hd,y.partition=c_,y.pick=A1,y.pickBy=Td,y.property=Dd,y.propertyOf=RE,y.pull=ub,y.pullAll=nd,y.pullAllBy=cb,y.pullAllWith=lb,y.pullAt=fb,y.range=AE,y.rangeRight=PE,y.rearg=C_,y.reject=d_,y.remove=db,y.rest=x_,y.reverse=Vi,y.sampleSize=h_,y.set=D1,y.setWith=I1,y.shuffle=g_,y.slice=pb,y.sortBy=m_,y.sortedUniq=_b,y.sortedUniqBy=Eb,y.split=tE,y.spread=O_,y.tail=Sb,y.take=wb,y.takeRight=Tb,y.takeRightWhile=Cb,y.takeWhile=xb,y.tap=Wb,y.throttle=R_,y.thru=qo,y.toArray=bd,y.toPairs=Cd,y.toPairsIn=xd,y.toPath=ME,y.toPlainObject=Ed,y.transform=F1,y.unary=A_,y.union=Ob,y.unionBy=Rb,y.unionWith=Ab,y.uniq=Pb,y.uniqBy=Db,y.uniqWith=Ib,y.unset=$1,y.unzip=Ki,y.unzipWith=ad,y.update=M1,y.updateWith=N1,y.values=ra,y.valuesIn=L1,y.without=Fb,y.words=Ad,y.wrap=P_,y.xor=$b,y.xorBy=Mb,y.xorWith=Nb,y.zip=Lb,y.zipObject=jb,y.zipObjectDeep=kb,y.zipWith=Bb,y.entries=Cd,y.entriesIn=xd,y.extend=Sd,y.extendWith=Zo,ou(y,y),y.add=LE,y.attempt=Pd,y.camelCase=W1,y.capitalize=Od,y.ceil=jE,y.clamp=j1,y.clone=I_,y.cloneDeep=$_,y.cloneDeepWith=M_,y.cloneWith=F_,y.conformsTo=N_,y.deburr=Rd,y.defaultTo=vE,y.divide=kE,y.endsWith=U1,y.eq=yr,y.escape=H1,y.escapeRegExp=G1,y.every=Xb,y.find=Qb,y.findIndex=Qf,y.findKey=d1,y.findLast=e_,y.findLastIndex=ed,y.findLastKey=p1,y.floor=BE,y.forEach=sd,y.forEachRight=id,y.forIn=h1,y.forInRight=g1,y.forOwn=v1,y.forOwnRight=y1,y.get=eu,y.gt=L_,y.gte=j_,y.has=_1,y.hasIn=tu,y.head=rd,y.identity=Ut,y.includes=o_,y.indexOf=eb,y.inRange=k1,y.invoke=w1,y.isArguments=Mn,y.isArray=Se,y.isArrayBuffer=k_,y.isArrayLike=Bt,y.isArrayLikeObject=ct,y.isBoolean=B_,y.isBuffer=ln,y.isDate=W_,y.isElement=U_,y.isEmpty=H_,y.isEqual=G_,y.isEqualWith=q_,y.isError=Zi,y.isFinite=Y_,y.isFunction=Wr,y.isInteger=gd,y.isLength=Jo,y.isMap=vd,y.isMatch=z_,y.isMatchWith=V_,y.isNaN=K_,y.isNative=J_,y.isNil=Z_,y.isNull=X_,y.isNumber=yd,y.isObject=nt,y.isObjectLike=ot,y.isPlainObject=Ha,y.isRegExp=Qi,y.isSafeInteger=Q_,y.isSet=md,y.isString=Xo,y.isSymbol=Kt,y.isTypedArray=ta,y.isUndefined=e1,y.isWeakMap=t1,y.isWeakSet=r1,y.join=ob,y.kebabCase=q1,y.last=ir,y.lastIndexOf=sb,y.lowerCase=Y1,y.lowerFirst=z1,y.lt=n1,y.lte=a1,y.max=WE,y.maxBy=UE,y.mean=HE,y.meanBy=GE,y.min=qE,y.minBy=YE,y.stubArray=iu,y.stubFalse=uu,y.stubObject=DE,y.stubString=IE,y.stubTrue=FE,y.multiply=zE,y.nth=ib,y.noConflict=wE,y.noop=su,y.now=zo,y.pad=V1,y.padEnd=K1,y.padStart=J1,y.parseInt=X1,y.random=B1,y.reduce=l_,y.reduceRight=f_,y.repeat=Z1,y.replace=Q1,y.result=P1,y.round=VE,y.runInContext=R,y.sample=p_,y.size=v_,y.snakeCase=eE,y.some=y_,y.sortedIndex=hb,y.sortedIndexBy=gb,y.sortedIndexOf=vb,y.sortedLastIndex=yb,y.sortedLastIndexBy=mb,y.sortedLastIndexOf=bb,y.startCase=rE,y.startsWith=nE,y.subtract=KE,y.sum=JE,y.sumBy=XE,y.template=aE,y.times=$E,y.toFinite=Ur,y.toInteger=Te,y.toLength=_d,y.toLower=oE,y.toNumber=ur,y.toSafeInteger=o1,y.toString=Ne,y.toUpper=sE,y.trim=iE,y.trimEnd=uE,y.trimStart=cE,y.truncate=lE,y.unescape=fE,y.uniqueId=NE,y.upperCase=dE,y.upperFirst=ru,y.each=sd,y.eachRight=id,y.first=rd,ou(y,function(){var r={};return Cr(y,function(o,u){He.call(y.prototype,u)||(r[u]=o)}),r}(),{chain:!1}),y.VERSION=a,rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){y[r].placeholder=y}),rr(["drop","take"],function(r,o){Pe.prototype[r]=function(u){u=u===t?1:gt(Te(u),0);var f=this.__filtered__&&!o?new Pe(this):this.clone();return f.__filtered__?f.__takeCount__=Tt(u,f.__takeCount__):f.__views__.push({size:Tt(u,V),type:r+(f.__dir__<0?"Right":"")}),f},Pe.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}}),rr(["filter","map","takeWhile"],function(r,o){var u=o+1,f=u==we||u==Ze;Pe.prototype[r]=function(v){var b=this.clone();return b.__iteratees__.push({iteratee:ce(v,3),type:u}),b.__filtered__=b.__filtered__||f,b}}),rr(["head","last"],function(r,o){var u="take"+(o?"Right":"");Pe.prototype[r]=function(){return this[u](1).value()[0]}}),rr(["initial","tail"],function(r,o){var u="drop"+(o?"":"Right");Pe.prototype[r]=function(){return this.__filtered__?new Pe(this):this[u](1)}}),Pe.prototype.compact=function(){return this.filter(Ut)},Pe.prototype.find=function(r){return this.filter(r).head()},Pe.prototype.findLast=function(r){return this.reverse().find(r)},Pe.prototype.invokeMap=Oe(function(r,o){return typeof r=="function"?new Pe(this):this.map(function(u){return La(u,r,o)})}),Pe.prototype.reject=function(r){return this.filter(Ko(ce(r)))},Pe.prototype.slice=function(r,o){r=Te(r);var u=this;return u.__filtered__&&(r>0||o<0)?new Pe(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),o!==t&&(o=Te(o),u=o<0?u.dropRight(-o):u.take(o-r)),u)},Pe.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Pe.prototype.toArray=function(){return this.take(V)},Cr(Pe.prototype,function(r,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),v=y[f?"take"+(o=="last"?"Right":""):o],b=f||/^find/.test(o);v&&(y.prototype[o]=function(){var w=this.__wrapped__,C=f?[1]:arguments,P=w instanceof Pe,k=C[0],B=P||Se(w),U=function(Ae){var De=v.apply(y,rn([Ae],C));return f&&X?De[0]:De};B&&u&&typeof k=="function"&&k.length!=1&&(P=B=!1);var X=this.__chain__,ne=!!this.__actions__.length,de=b&&!X,xe=P&&!ne;if(!b&&B){w=xe?w:new Pe(this);var pe=r.apply(w,C);return pe.__actions__.push({func:qo,args:[U],thisArg:t}),new ar(pe,X)}return de&&xe?r.apply(this,C):(pe=this.thru(U),de?f?pe.value()[0]:pe.value():pe)})}),rr(["pop","push","shift","sort","splice","unshift"],function(r){var o=yo[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);y.prototype[r]=function(){var v=arguments;if(f&&!this.__chain__){var b=this.value();return o.apply(Se(b)?b:[],v)}return this[u](function(w){return o.apply(Se(w)?w:[],v)})}}),Cr(Pe.prototype,function(r,o){var u=y[o];if(u){var f=u.name+"";He.call(Jn,f)||(Jn[f]=[]),Jn[f].push({name:o,func:u})}}),Jn[jo(t,D).name]=[{name:"wrapper",func:t}],Pe.prototype.clone=fm,Pe.prototype.reverse=dm,Pe.prototype.value=pm,y.prototype.at=Ub,y.prototype.chain=Hb,y.prototype.commit=Gb,y.prototype.next=qb,y.prototype.plant=zb,y.prototype.reverse=Vb,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Kb,y.prototype.first=y.prototype.head,Pa&&(y.prototype[Pa]=Yb),y},zn=Gy();On?((On.exports=zn)._=zn,ai._=zn):Et._=zn}).call(qr)})(Es,Es.exports);var Ke=Es.exports;const Fh=Is(Ke);function Pc(e){return`Debugger/${e}`}function $h(e,n){var a;const t=(a=n.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const SO=typeof process=="object"&&process&&process.platform==="win32";var wO=SO?{sep:"\\"}:{sep:"/"},TO=Mh;function Mh(e,n,t){e instanceof RegExp&&(e=hp(e,t)),n instanceof RegExp&&(n=hp(n,t));var a=Nh(e,n,t);return a&&{start:a[0],end:a[1],pre:t.slice(0,a[0]),body:t.slice(a[0]+e.length,a[1]),post:t.slice(a[1]+n.length)}}function hp(e,n){var t=n.match(e);return t?t[0]:null}Mh.range=Nh;function Nh(e,n,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(n,d+1),h=d;if(d>=0&&p>0){if(e===n)return[d,p];for(a=[],i=t.length;h>=0&&!l;)h==d?(a.push(h),d=t.indexOf(e,h+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(n,h+1)),h=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var Lh=TO,CO=RO,jh="\0SLASH"+Math.random()+"\0",kh="\0OPEN"+Math.random()+"\0",Dc="\0CLOSE"+Math.random()+"\0",Bh="\0COMMA"+Math.random()+"\0",Wh="\0PERIOD"+Math.random()+"\0";function _u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function xO(e){return e.split("\\\\").join(jh).split("\\{").join(kh).split("\\}").join(Dc).split("\\,").join(Bh).split("\\.").join(Wh)}function OO(e){return e.split(jh).join("\\").split(kh).join("{").split(Dc).join("}").split(Bh).join(",").split(Wh).join(".")}function Uh(e){if(!e)return[""];var n=[],t=Lh("{","}",e);if(!t)return e.split(",");var a=t.pre,s=t.body,i=t.post,c=a.split(",");c[c.length-1]+="{"+s+"}";var l=Uh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),n.push.apply(n,c),n}function RO(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),za(xO(e),!0).map(OO)):[]}function AO(e){return"{"+e+"}"}function PO(e){return/^-?0\d/.test(e)}function DO(e,n){return e<=n}function IO(e,n){return e>=n}function za(e,n){var t=[],a=Lh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?za(a.post,!1):[""];if(/\$$/.test(a.pre))for(var c=0;c<i.length;c++){var l=s+"{"+a.body+"}"+i[c];t.push(l)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=d||p,m=a.body.indexOf(",")>=0;if(!h&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Dc+a.post,za(e)):[e];var _;if(h)_=a.body.split(/\.\./);else if(_=Uh(a.body),_.length===1&&(_=za(_[0],!1).map(AO),_.length===1))return i.map(function(We){return a.pre+_[0]+We});var S;if(h){var T=_u(_[0]),x=_u(_[1]),F=Math.max(_[0].length,_[1].length),D=_.length==3?Math.abs(_u(_[2])):1,W=DO,$=x<T;$&&(D*=-1,W=IO);var j=_.some(PO);S=[];for(var A=T;W(A,x);A+=D){var K;if(p)K=String.fromCharCode(A),K==="\\"&&(K="");else if(K=String(A),j){var G=F-K.length;if(G>0){var Y=new Array(G+1).join("0");A<0?K="-"+Y+K.slice(1):K=Y+K}}S.push(K)}}else{S=[];for(var ie=0;ie<_.length;ie++)S.push.apply(S,za(_[ie],!1))}for(var ie=0;ie<S.length;ie++)for(var c=0;c<i.length;c++){var l=s+S[ie]+i[c];(!n||h||l)&&t.push(l)}}return t}const Zt=Hh=(e,n,t={})=>(Ss(n),!t.nocomment&&n.charAt(0)==="#"?!1:new Bs(n,t).match(e));var Hh=Zt;const Xu=wO;Zt.sep=Xu.sep;const br=Symbol("globstar **");Zt.GLOBSTAR=br;const FO=CO,gp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Zu="[^/]",Eu=Zu+"*?",$O="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",MO="(?:(?!(?:\\/|^)\\.).)*?",Gh=e=>e.split("").reduce((n,t)=>(n[t]=!0,n),{}),vp=Gh("().*{}+?[]^$\\!"),NO=Gh("[.("),yp=/\/+/;Zt.filter=(e,n={})=>(t,a,s)=>Zt(t,e,n);const fn=(e,n={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(n).forEach(a=>t[a]=n[a]),t};Zt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Zt;const n=Zt,t=(a,s,i)=>n(a,s,fn(e,i));return t.Minimatch=class extends n.Minimatch{constructor(s,i){super(s,fn(e,i))}},t.Minimatch.defaults=a=>n.defaults(fn(e,a)).Minimatch,t.filter=(a,s)=>n.filter(a,fn(e,s)),t.defaults=a=>n.defaults(fn(e,a)),t.makeRe=(a,s)=>n.makeRe(a,fn(e,s)),t.braceExpand=(a,s)=>n.braceExpand(a,fn(e,s)),t.match=(a,s,i)=>n.match(a,s,fn(e,i)),t};Zt.braceExpand=(e,n)=>qh(e,n);const qh=(e,n={})=>(Ss(e),n.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:FO(e)),LO=1024*64,Ss=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>LO)throw new TypeError("pattern is too long")},Su=Symbol("subparse");Zt.makeRe=(e,n)=>new Bs(e,n||{}).makeRe();Zt.match=(e,n,t={})=>{const a=new Bs(n,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(n),e};const jO=e=>e.replace(/\\(.)/g,"$1"),kO=e=>e.replace(/\\([^-\]])/g,"$1"),BO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),WO=e=>e.replace(/[[\]\\]/g,"\\$&");class Bs{constructor(n,t){Ss(n),t||(t={}),this.options=t,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const n=this.pattern,t=this.options;if(!t.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,a),a=this.globParts=a.map(s=>s.split(yp)),this.debug(this.pattern,a),a=a.map((s,i,c)=>s.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(s=>s.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const n=this.pattern;let t=!1,a=0;for(let s=0;s<n.length&&n.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=n.slice(a)),this.negate=t}matchOne(n,t,a){var s=this.options;this.debug("matchOne",{this:this,file:n,pattern:t}),this.debug("matchOne",n.length,t.length);for(var i=0,c=0,l=n.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],h=n[i];if(this.debug(t,p,h),p===!1)return!1;if(p===br){this.debug("GLOBSTAR",[t,p,h]);var m=i,_=c+1;if(_===d){for(this.debug("** at the end");i<l;i++)if(n[i]==="."||n[i]===".."||!s.dot&&n[i].charAt(0)===".")return!1;return!0}for(;m<l;){var S=n[m];if(this.debug(`
|
|
35
35
|
globstar while`,n,m,t,_,S),this.matchOne(n.slice(m),t.slice(_),a))return this.debug("globstar found match!",m,l,S),!0;if(S==="."||S===".."||!s.dot&&S.charAt(0)==="."){this.debug("dot detected!",n,m,t,_);break}this.debug("globstar swallow a segment, and continue"),m++}return!!(a&&(this.debug(`
|
|
36
|
-
>>> no match, partial?`,n,m,t,_),m===l))}var T;if(typeof p=="string"?(T=h===p,this.debug("string match",p,h,T)):(T=h.match(p),this.debug("pattern match",p,h,T)),!T)return!1}if(i===l&&c===d)return!0;if(i===l)return a;if(c===d)return i===l-1&&n[i]==="";throw new Error("wtf?")}braceExpand(){return
|
|
37
|
-
%s`,G,G,T,s);const Y=T.type==="*"?Eu:T.type==="?"?Zu:"\\"+T.type;i=!0,s=s.slice(0,T.reStart)+Y+"\\("+G}j(),c&&(s+="\\\\");const A=
|
|
36
|
+
>>> no match, partial?`,n,m,t,_),m===l))}var T;if(typeof p=="string"?(T=h===p,this.debug("string match",p,h,T)):(T=h.match(p),this.debug("pattern match",p,h,T)),!T)return!1}if(i===l&&c===d)return!0;if(i===l)return a;if(c===d)return i===l-1&&n[i]==="";throw new Error("wtf?")}braceExpand(){return qh(this.pattern,this.options)}parse(n,t){Ss(n);const a=this.options;if(n==="**")if(a.noglobstar)n="*";else return br;if(n==="")return"";let s="",i=!1,c=!1;const l=[],d=[];let p,h=!1,m=-1,_=-1,S,T,x,F=n.charAt(0)===".",D=a.dot||F;const W=()=>F?"":D?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",$=G=>G.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=()=>{if(p){switch(p){case"*":s+=Eu,i=!0;break;case"?":s+=Zu,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let G=0,Y;G<n.length&&(Y=n.charAt(G));G++){if(this.debug("%s %s %s %j",n,G,s,Y),c){if(Y==="/")return!1;vp[Y]&&(s+="\\"),s+=Y,c=!1;continue}switch(Y){case"/":return!1;case"\\":if(h&&n.charAt(G+1)==="-"){s+=Y;continue}j(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",n,G,s,Y),h){this.debug(" in class"),Y==="!"&&G===_+1&&(Y="^"),s+=Y;continue}this.debug("call clearStateChar %j",p),j(),p=Y,a.noext&&j();continue;case"(":{if(h){s+="(";continue}if(!p){s+="\\(";continue}const ie={type:p,start:G-1,reStart:s.length,open:gp[p].open,close:gp[p].close};this.debug(this.pattern," ",ie),l.push(ie),s+=ie.open,ie.start===0&&ie.type!=="!"&&(F=!0,s+=$(n.slice(G+1))),this.debug("plType %j %j",p,s),p=!1;continue}case")":{const ie=l[l.length-1];if(h||!ie){s+="\\)";continue}l.pop(),j(),i=!0,T=ie,s+=T.close,T.type==="!"&&d.push(Object.assign(T,{reEnd:s.length}));continue}case"|":{const ie=l[l.length-1];if(h||!ie){s+="\\|";continue}j(),s+="|",ie.start===0&&ie.type!=="!"&&(F=!0,s+=$(n.slice(G+1)));continue}case"[":if(j(),h){s+="\\"+Y;continue}h=!0,_=G,m=s.length,s+=Y;continue;case"]":if(G===_+1||!h){s+="\\"+Y;continue}S=n.substring(_+1,G);try{RegExp("["+WO(kO(S))+"]"),s+=Y}catch{s=s.substring(0,m)+"(?:$.)"}i=!0,h=!1;continue;default:j(),vp[Y]&&!(Y==="^"&&h)&&(s+="\\"),s+=Y;break}}for(h&&(S=n.slice(_+1),x=this.parse(S,Su),s=s.substring(0,m)+"\\["+x[0],i=i||x[1]),T=l.pop();T;T=l.pop()){let G;G=s.slice(T.reStart+T.open.length),this.debug("setting tail",s,T),G=G.replace(/((?:\\{2}){0,64})(\\?)\|/g,(ie,We,Re)=>(Re||(Re="\\"),We+We+Re+"|")),this.debug(`tail=%j
|
|
37
|
+
%s`,G,G,T,s);const Y=T.type==="*"?Eu:T.type==="?"?Zu:"\\"+T.type;i=!0,s=s.slice(0,T.reStart)+Y+"\\("+G}j(),c&&(s+="\\\\");const A=NO[s.charAt(0)];for(let G=d.length-1;G>-1;G--){const Y=d[G],ie=s.slice(0,Y.reStart),We=s.slice(Y.reStart,Y.reEnd-8);let Re=s.slice(Y.reEnd);const st=s.slice(Y.reEnd-8,Y.reEnd)+Re,Z=ie.split(")").length,we=ie.split("(").length-Z;let Xe=Re;for(let Ue=0;Ue<we;Ue++)Xe=Xe.replace(/\)[+*?]?/,"");Re=Xe;const Ze=Re===""&&t!==Su?"(?:$|\\/)":"";s=ie+We+Re+Ze+st}if(s!==""&&i&&(s="(?=.)"+s),A&&(s=W()+s),t===Su)return[s,i];if(a.nocase&&!i&&(i=n.toUpperCase()!==n.toLowerCase()),!i)return jO(n);const K=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",K),{_glob:n,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const n=this.set;if(!n.length)return this.regexp=!1,this.regexp;const t=this.options,a=t.noglobstar?Eu:t.dot?$O:MO,s=t.nocase?"i":"";let i=n.map(c=>(c=c.map(l=>typeof l=="string"?BO(l):l===br?br:l._src).reduce((l,d)=>(l[l.length-1]===br&&d===br||l.push(d),l),[]),c.forEach((l,d)=>{l!==br||c[d-1]===br||(d===0?c.length>1?c[d+1]="(?:\\/|"+a+"\\/)?"+c[d+1]:c[d]=a:d===c.length-1?c[d-1]+="(?:\\/|"+a+")?":(c[d-1]+="(?:\\/|\\/"+a+"\\/)"+c[d+1],c[d+1]=br))}),c.filter(l=>l!==br).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(n,t=this.partial){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&t)return!0;const a=this.options;Xu.sep!=="/"&&(n=n.split(Xu.sep).join("/")),n=n.split(yp),this.debug(this.pattern,"split",n);const s=this.set;this.debug(this.pattern,"set",s);let i;for(let c=n.length-1;c>=0&&(i=n[c],!i);c--);for(let c=0;c<s.length;c++){const l=s[c];let d=n;if(a.matchBase&&l.length===1&&(d=[i]),this.matchOne(d,l,t))return a.flipNegate?!0:!this.negate}return a.flipNegate?!1:this.negate}static defaults(n){return Zt.defaults(n).Minimatch}}Zt.Minimatch=Bs;const Yh=Is(Hh),zh=[{pattern:E.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:E.MODEL_TAB_PATH,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}],Vh=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function Kh(e){const n=e.split("/");return n.pop(),n.join("/")}function Er(e){const n=zh.find(({pattern:t})=>Yh(e,t,{nocase:!0}));return n||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function Jh(e){const n=Vh.find(({pattern:t})=>Yh(e,t,{nocase:!0}));return n?n.type:"text"}var Qu=function(e,n){return Qu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},Qu(e,n)};function Ws(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Qu(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function ec(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],a=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function ws(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),s,i=[],c;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)i.push(s.value)}catch(l){c={error:l}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(c)throw c.error}}return i}function Ts(e,n,t){if(t||arguments.length===2)for(var a=0,s=n.length,i;a<s;a++)(i||!(a in n))&&(i||(i=Array.prototype.slice.call(n,0,a)),i[a]=n[a]);return e.concat(i||Array.prototype.slice.call(n))}function Yr(e){return typeof e=="function"}function Xh(e){var n=function(a){Error.call(a),a.stack=new Error().stack},t=e(n);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var wu=Xh(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
38
38
|
`+t.map(function(a,s){return s+1+") "+a.toString()}).join(`
|
|
39
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function tc(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Us=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,t,a,s,i;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var l=ec(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(
|
|
39
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function tc(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Us=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,t,a,s,i;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var l=ec(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(x){n={error:x}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}else c.remove(this);var h=this.initialTeardown;if(Yr(h))try{h()}catch(x){i=x instanceof wu?x.errors:[x]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var _=ec(m),S=_.next();!S.done;S=_.next()){var T=S.value;try{mp(T)}catch(x){i=i??[],x instanceof wu?i=Ts(Ts([],ws(i)),ws(x.errors)):i.push(x)}}}catch(x){a={error:x}}finally{try{S&&!S.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}}if(i)throw new wu(i)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)mp(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&tc(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&tc(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),Zh=Us.EMPTY;function Qh(e){return e instanceof Us||e&&"closed"in e&&Yr(e.remove)&&Yr(e.add)&&Yr(e.unsubscribe)}function mp(e){Yr(e)?e():e.unsubscribe()}var eg={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},rc={setTimeout:function(e,n){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=rc.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,Ts([e,n],ws(t))):setTimeout.apply(void 0,Ts([e,n],ws(t)))},clearTimeout:function(e){var n=rc.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function UO(e){rc.setTimeout(function(){throw e})}function bp(){}function is(e){e()}var tg=function(e){Ws(n,e);function n(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,Qh(t)&&t.add(a)):a.destination=YO,a}return n.create=function(t,a,s){return new nc(t,a,s)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(Us),HO=Function.prototype.bind;function Tu(e,n){return HO.call(e,n)}var GO=function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var t=this.partialObserver;if(t.next)try{t.next(n)}catch(a){es(a)}},e.prototype.error=function(n){var t=this.partialObserver;if(t.error)try{t.error(n)}catch(a){es(a)}else es(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(t){es(t)}},e}(),nc=function(e){Ws(n,e);function n(t,a,s){var i=e.call(this)||this,c;if(Yr(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&eg.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&Tu(t.next,l),error:t.error&&Tu(t.error,l),complete:t.complete&&Tu(t.complete,l)}):c=t}return i.destination=new GO(c),i}return n}(tg);function es(e){UO(e)}function qO(e){throw e}var YO={closed:!0,next:bp,error:qO,complete:bp},zO=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function VO(e){return e}function KO(e){return e.length===0?VO:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var _p=function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,a){var s=this,i=XO(n)?n:new nc(n,t,a);return is(function(){var c=s,l=c.operator,d=c.source;i.add(l?l.call(i,d):d?s._subscribe(i):s._trySubscribe(i))}),i},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},e.prototype.forEach=function(n,t){var a=this;return t=Ep(t),new t(function(s,i){var c=new nc({next:function(l){try{n(l)}catch(d){i(d),c.unsubscribe()}},error:i,complete:s});a.subscribe(c)})},e.prototype._subscribe=function(n){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(n)},e.prototype[zO]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return KO(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=Ep(n),new n(function(a,s){var i;t.subscribe(function(c){return i=c},function(c){return s(c)},function(){return a(i)})})},e.create=function(n){return new e(n)},e}();function Ep(e){var n;return(n=e??eg.Promise)!==null&&n!==void 0?n:Promise}function JO(e){return e&&Yr(e.next)&&Yr(e.error)&&Yr(e.complete)}function XO(e){return e&&e instanceof tg||JO(e)&&Qh(e)}var ZO=Xh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),rg=function(e){Ws(n,e);function n(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype.lift=function(t){var a=new Sp(this,this);return a.operator=t,a},n.prototype._throwIfClosed=function(){if(this.closed)throw new ZO},n.prototype.next=function(t){var a=this;is(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=ec(a.currentObservers),l=c.next();!l.done;l=c.next()){var d=l.value;d.next(t)}}catch(p){s={error:p}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(s)throw s.error}}}})},n.prototype.error=function(t){var a=this;is(function(){if(a._throwIfClosed(),!a.isStopped){a.hasError=a.isStopped=!0,a.thrownError=t;for(var s=a.observers;s.length;)s.shift().error(t)}})},n.prototype.complete=function(){var t=this;is(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var a=t.observers;a.length;)a.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var a=this,s=this,i=s.hasError,c=s.isStopped,l=s.observers;return i||c?Zh:(this.currentObservers=null,l.push(t),new Us(function(){a.currentObservers=null,tc(l,t)}))},n.prototype._checkFinalizedStatuses=function(t){var a=this,s=a.hasError,i=a.thrownError,c=a.isStopped;s?t.error(i):c&&t.complete()},n.prototype.asObservable=function(){var t=new _p;return t.source=this,t},n.create=function(t,a){return new Sp(t,a)},n}(_p),Sp=function(e){Ws(n,e);function n(t,a){var s=e.call(this)||this;return s.destination=t,s.source=a,s}return n.prototype.next=function(t){var a,s;(s=(a=this.destination)===null||a===void 0?void 0:a.next)===null||s===void 0||s.call(a,t)},n.prototype.error=function(t){var a,s;(s=(a=this.destination)===null||a===void 0?void 0:a.error)===null||s===void 0||s.call(a,t)},n.prototype.complete=function(){var t,a;(a=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||a===void 0||a.call(t)},n.prototype._subscribe=function(t){var a,s;return(s=(a=this.source)===null||a===void 0?void 0:a.subscribe(t))!==null&&s!==void 0?s:Zh},n}(rg);const ng=new rg;var ac={exports:{}},ts={exports:{}},Le={};/** @license React v16.13.1
|
|
40
40
|
* react-is.production.min.js
|
|
41
41
|
*
|
|
42
42
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var
|
|
46
|
+
*/var wp;function QO(){if(wp)return Le;wp=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function $(A){if(typeof A=="object"&&A!==null){var K=A.$$typeof;switch(K){case n:switch(A=A.type,A){case d:case p:case a:case i:case s:case m:return A;default:switch(A=A&&A.$$typeof,A){case l:case h:case T:case S:case c:return A;default:return K}}case t:return K}}}function j(A){return $(A)===p}return Le.AsyncMode=d,Le.ConcurrentMode=p,Le.ContextConsumer=l,Le.ContextProvider=c,Le.Element=n,Le.ForwardRef=h,Le.Fragment=a,Le.Lazy=T,Le.Memo=S,Le.Portal=t,Le.Profiler=i,Le.StrictMode=s,Le.Suspense=m,Le.isAsyncMode=function(A){return j(A)||$(A)===d},Le.isConcurrentMode=j,Le.isContextConsumer=function(A){return $(A)===l},Le.isContextProvider=function(A){return $(A)===c},Le.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===n},Le.isForwardRef=function(A){return $(A)===h},Le.isFragment=function(A){return $(A)===a},Le.isLazy=function(A){return $(A)===T},Le.isMemo=function(A){return $(A)===S},Le.isPortal=function(A){return $(A)===t},Le.isProfiler=function(A){return $(A)===i},Le.isStrictMode=function(A){return $(A)===s},Le.isSuspense=function(A){return $(A)===m},Le.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===a||A===p||A===i||A===s||A===m||A===_||typeof A=="object"&&A!==null&&(A.$$typeof===T||A.$$typeof===S||A.$$typeof===c||A.$$typeof===l||A.$$typeof===h||A.$$typeof===F||A.$$typeof===D||A.$$typeof===W||A.$$typeof===x)},Le.typeOf=$,Le}var je={};/** @license React v16.13.1
|
|
47
47
|
* react-is.development.js
|
|
48
48
|
*
|
|
49
49
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
50
|
*
|
|
51
51
|
* This source code is licensed under the MIT license found in the
|
|
52
52
|
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/var
|
|
53
|
+
*/var Tp;function eR(){return Tp||(Tp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function $(N){return typeof N=="string"||typeof N=="function"||N===a||N===p||N===i||N===s||N===m||N===_||typeof N=="object"&&N!==null&&(N.$$typeof===T||N.$$typeof===S||N.$$typeof===c||N.$$typeof===l||N.$$typeof===h||N.$$typeof===F||N.$$typeof===D||N.$$typeof===W||N.$$typeof===x)}function j(N){if(typeof N=="object"&&N!==null){var Ge=N.$$typeof;switch(Ge){case n:var qe=N.type;switch(qe){case d:case p:case a:case i:case s:case m:return qe;default:var it=qe&&qe.$$typeof;switch(it){case l:case h:case T:case S:case c:return it;default:return Ge}}case t:return Ge}}}var A=d,K=p,G=l,Y=c,ie=n,We=h,Re=a,st=T,Z=S,we=t,Xe=i,Ze=s,Ue=m,et=!1;function Dt(N){return et||(et=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(N)||j(N)===d}function H(N){return j(N)===p}function V(N){return j(N)===l}function ve(N){return j(N)===c}function he(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function le(N){return j(N)===h}function ye(N){return j(N)===a}function se(N){return j(N)===T}function fe(N){return j(N)===S}function ue(N){return j(N)===t}function me(N){return j(N)===i}function ge(N){return j(N)===s}function J(N){return j(N)===m}je.AsyncMode=A,je.ConcurrentMode=K,je.ContextConsumer=G,je.ContextProvider=Y,je.Element=ie,je.ForwardRef=We,je.Fragment=Re,je.Lazy=st,je.Memo=Z,je.Portal=we,je.Profiler=Xe,je.StrictMode=Ze,je.Suspense=Ue,je.isAsyncMode=Dt,je.isConcurrentMode=H,je.isContextConsumer=V,je.isContextProvider=ve,je.isElement=he,je.isForwardRef=le,je.isFragment=ye,je.isLazy=se,je.isMemo=fe,je.isPortal=ue,je.isProfiler=me,je.isStrictMode=ge,je.isSuspense=J,je.isValidElementType=$,je.typeOf=j}()),je}var Cp;function ag(){return Cp||(Cp=1,process.env.NODE_ENV==="production"?ts.exports=QO():ts.exports=eR()),ts.exports}/*
|
|
54
54
|
object-assign
|
|
55
55
|
(c) Sindre Sorhus
|
|
56
56
|
@license MIT
|
|
57
|
-
*/var
|
|
58
|
-
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var N=J(fe,ge,le,ye,se+"."+ge,t);if(N)return N}return null}return F(V)}function we(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(we);if(H===null||l(H))return!0;var V=m(H);if(V){var ve=V.call(H),he;if(V!==H.entries){for(;!(he=ve.next()).done;)if(!we(he.value))return!1}else for(;!(he=ve.next()).done;){var le=he.value;if(le&&!we(le[1]))return!1}}else return!1;return!0;default:return!1}}function Xe(H,V){return H==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function Ze(H){var V=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":Xe(V,H)?"symbol":V}function Ue(H){if(typeof H>"u"||H===null)return""+H;var V=Ze(H);if(V==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return V}function et(H){var V=Ue(H);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function Dt(H){return!H.constructor||!H.constructor.name?_:H.constructor.name}return S.checkPropTypes=s,S.resetWarningCache=s.resetWarningCache,S.PropTypes=S,S},Au}var Pu,
|
|
57
|
+
*/var Cu,xp;function Ic(){if(xp)return Cu;xp=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(c).map(function(h){return c[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cu=s()?Object.assign:function(i,c){for(var l,d=a(i),p,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var m in l)n.call(l,m)&&(d[m]=l[m]);if(e){p=e(l);for(var _=0;_<p.length;_++)t.call(l,p[_])&&(d[p[_]]=l[p[_]])}}return d},Cu}var xu,Op;function Fc(){if(Op)return xu;Op=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xu=e,xu}var Ou,Rp;function og(){return Rp||(Rp=1,Ou=Function.call.bind(Object.prototype.hasOwnProperty)),Ou}var Ru,Ap;function tR(){if(Ap)return Ru;Ap=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Fc(),t={},a=og();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function s(i,c,l,d,p){if(process.env.NODE_ENV!=="production"){for(var h in i)if(a(i,h)){var m;try{if(typeof i[h]!="function"){var _=Error((d||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}m=i[h](c,h,d,l,null,n)}catch(T){m=T}if(m&&!(m instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in t)){t[m.message]=!0;var S=p?p():"";e("Failed "+l+" type: "+m.message+(S??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Ru=s,Ru}var Au,Pp;function rR(){if(Pp)return Au;Pp=1;var e=ag(),n=Ic(),t=Fc(),a=og(),s=tR(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function c(){return null}return Au=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(H){var V=H&&(p&&H[p]||H[h]);if(typeof V=="function")return V}var _="<<anonymous>>",S={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:W(),arrayOf:$,element:j(),elementType:A(),instanceOf:K,node:We(),objectOf:Y,oneOf:G,oneOfType:ie,shape:st,exact:Z};function T(H,V){return H===V?H!==0||1/H===1/V:H!==H&&V!==V}function x(H,V){this.message=H,this.data=V&&typeof V=="object"?V:{},this.stack=""}x.prototype=Error.prototype;function F(H){if(process.env.NODE_ENV!=="production")var V={},ve=0;function he(ye,se,fe,ue,me,ge,J){if(ue=ue||_,ge=ge||fe,J!==t){if(d){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ge=ue+":"+fe;!V[Ge]&&ve<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ge+"` prop on `"+ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[Ge]=!0,ve++)}}return se[fe]==null?ye?se[fe]===null?new x("The "+me+" `"+ge+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new x("The "+me+" `"+ge+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:H(se,fe,ue,me,ge)}var le=he.bind(null,!1);return le.isRequired=he.bind(null,!0),le}function D(H){function V(ve,he,le,ye,se,fe){var ue=ve[he],me=Ze(ue);if(me!==H){var ge=Ue(ue);return new x("Invalid "+ye+" `"+se+"` of type "+("`"+ge+"` supplied to `"+le+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return F(V)}function W(){return F(c)}function $(H){function V(ve,he,le,ye,se){if(typeof H!="function")return new x("Property `"+se+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var fe=ve[he];if(!Array.isArray(fe)){var ue=Ze(fe);return new x("Invalid "+ye+" `"+se+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected an array."))}for(var me=0;me<fe.length;me++){var ge=H(fe,me,le,ye,se+"["+me+"]",t);if(ge instanceof Error)return ge}return null}return F(V)}function j(){function H(V,ve,he,le,ye){var se=V[ve];if(!l(se)){var fe=Ze(se);return new x("Invalid "+le+" `"+ye+"` of type "+("`"+fe+"` supplied to `"+he+"`, expected a single ReactElement."))}return null}return F(H)}function A(){function H(V,ve,he,le,ye){var se=V[ve];if(!e.isValidElementType(se)){var fe=Ze(se);return new x("Invalid "+le+" `"+ye+"` of type "+("`"+fe+"` supplied to `"+he+"`, expected a single ReactElement type."))}return null}return F(H)}function K(H){function V(ve,he,le,ye,se){if(!(ve[he]instanceof H)){var fe=H.name||_,ue=Dt(ve[he]);return new x("Invalid "+ye+" `"+se+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected ")+("instance of `"+fe+"`."))}return null}return F(V)}function G(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function V(ve,he,le,ye,se){for(var fe=ve[he],ue=0;ue<H.length;ue++)if(T(fe,H[ue]))return null;var me=JSON.stringify(H,function(J,N){var Ge=Ue(N);return Ge==="symbol"?String(N):N});return new x("Invalid "+ye+" `"+se+"` of value `"+String(fe)+"` "+("supplied to `"+le+"`, expected one of "+me+"."))}return F(V)}function Y(H){function V(ve,he,le,ye,se){if(typeof H!="function")return new x("Property `"+se+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var fe=ve[he],ue=Ze(fe);if(ue!=="object")return new x("Invalid "+ye+" `"+se+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected an object."));for(var me in fe)if(a(fe,me)){var ge=H(fe,me,le,ye,se+"."+me,t);if(ge instanceof Error)return ge}return null}return F(V)}function ie(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var V=0;V<H.length;V++){var ve=H[V];if(typeof ve!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+et(ve)+" at index "+V+"."),c}function he(le,ye,se,fe,ue){for(var me=[],ge=0;ge<H.length;ge++){var J=H[ge],N=J(le,ye,se,fe,ue,t);if(N==null)return null;N.data&&a(N.data,"expectedType")&&me.push(N.data.expectedType)}var Ge=me.length>0?", expected one of type ["+me.join(", ")+"]":"";return new x("Invalid "+fe+" `"+ue+"` supplied to "+("`"+se+"`"+Ge+"."))}return F(he)}function We(){function H(V,ve,he,le,ye){return we(V[ve])?null:new x("Invalid "+le+" `"+ye+"` supplied to "+("`"+he+"`, expected a ReactNode."))}return F(H)}function Re(H,V,ve,he,le){return new x((H||"React class")+": "+V+" type `"+ve+"."+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function st(H){function V(ve,he,le,ye,se){var fe=ve[he],ue=Ze(fe);if(ue!=="object")return new x("Invalid "+ye+" `"+se+"` of type `"+ue+"` "+("supplied to `"+le+"`, expected `object`."));for(var me in H){var ge=H[me];if(typeof ge!="function")return Re(le,ye,se,me,Ue(ge));var J=ge(fe,me,le,ye,se+"."+me,t);if(J)return J}return null}return F(V)}function Z(H){function V(ve,he,le,ye,se){var fe=ve[he],ue=Ze(fe);if(ue!=="object")return new x("Invalid "+ye+" `"+se+"` of type `"+ue+"` "+("supplied to `"+le+"`, expected `object`."));var me=n({},ve[he],H);for(var ge in me){var J=H[ge];if(a(H,ge)&&typeof J!="function")return Re(le,ye,se,ge,Ue(J));if(!J)return new x("Invalid "+ye+" `"+se+"` key `"+ge+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(ve[he],null," ")+`
|
|
58
|
+
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var N=J(fe,ge,le,ye,se+"."+ge,t);if(N)return N}return null}return F(V)}function we(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(we);if(H===null||l(H))return!0;var V=m(H);if(V){var ve=V.call(H),he;if(V!==H.entries){for(;!(he=ve.next()).done;)if(!we(he.value))return!1}else for(;!(he=ve.next()).done;){var le=he.value;if(le&&!we(le[1]))return!1}}else return!1;return!0;default:return!1}}function Xe(H,V){return H==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function Ze(H){var V=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":Xe(V,H)?"symbol":V}function Ue(H){if(typeof H>"u"||H===null)return""+H;var V=Ze(H);if(V==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return V}function et(H){var V=Ue(H);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function Dt(H){return!H.constructor||!H.constructor.name?_:H.constructor.name}return S.checkPropTypes=s,S.resetWarningCache=s.resetWarningCache,S.PropTypes=S,S},Au}var Pu,Dp;function nR(){if(Dp)return Pu;Dp=1;var e=Fc();function n(){}function t(){}return t.resetWarningCache=n,Pu=function(){function a(c,l,d,p,h,m){if(m!==e){var _=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 _.name="Invariant Violation",_}}a.isRequired=a;function s(){return a}var i={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:n};return i.PropTypes=i,i},Pu}if(process.env.NODE_ENV!=="production"){var aR=ag(),oR=!0;ac.exports=rR()(aR.isElement,oR)}else ac.exports=nR()();var sR=ac.exports;const aa=Is(sR);var Jr=dt.createContext(null);process.env.NODE_ENV!=="production"&&(Jr.displayName="ReactRedux");function iR(e){e()}var sg=iR,uR=function(n){return sg=n},cR=function(){return sg};function lR(){var e=cR(),n=null,t=null;return{clear:function(){n=null,t=null},notify:function(){e(function(){for(var s=n;s;)s.callback(),s=s.next})},get:function(){for(var s=[],i=n;i;)s.push(i),i=i.next;return s},subscribe:function(s){var i=!0,c=t={callback:s,next:null,prev:t};return c.prev?c.prev.next=c:n=c,function(){!i||n===null||(i=!1,c.next?c.next.prev=c.prev:t=c.prev,c.prev?c.prev.next=c.next:n=c.next)}}}}var Ip={notify:function(){},get:function(){return[]}};function ig(e,n){var t,a=Ip;function s(m){return d(),a.subscribe(m)}function i(){a.notify()}function c(){h.onStateChange&&h.onStateChange()}function l(){return!!t}function d(){t||(t=n?n.addNestedSub(c):e.subscribe(c),a=lR())}function p(){t&&(t(),t=void 0,a.clear(),a=Ip)}var h={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:c,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:function(){return a}};return h}var oc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?dt.useLayoutEffect:dt.useEffect;function ug(e){var n=e.store,t=e.context,a=e.children,s=dt.useMemo(function(){var l=ig(n);return{store:n,subscription:l}},[n]),i=dt.useMemo(function(){return n.getState()},[n]);oc(function(){var l=s.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==n.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[s,i]);var c=t||Jr;return dt.createElement(c.Provider,{value:s},a)}process.env.NODE_ENV!=="production"&&(ug.propTypes={store:aa.shape({subscribe:aa.func.isRequired,dispatch:aa.func.isRequired,getState:aa.func.isRequired}),context:aa.object,children:aa.any});var sc={exports:{}},ke={};/** @license React v16.13.1
|
|
59
59
|
* react-is.production.min.js
|
|
60
60
|
*
|
|
61
61
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var
|
|
65
|
+
*/var Fp;function fR(){if(Fp)return ke;Fp=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function $(A){if(typeof A=="object"&&A!==null){var K=A.$$typeof;switch(K){case n:switch(A=A.type,A){case d:case p:case a:case i:case s:case m:return A;default:switch(A=A&&A.$$typeof,A){case l:case h:case T:case S:case c:return A;default:return K}}case t:return K}}}function j(A){return $(A)===p}return ke.AsyncMode=d,ke.ConcurrentMode=p,ke.ContextConsumer=l,ke.ContextProvider=c,ke.Element=n,ke.ForwardRef=h,ke.Fragment=a,ke.Lazy=T,ke.Memo=S,ke.Portal=t,ke.Profiler=i,ke.StrictMode=s,ke.Suspense=m,ke.isAsyncMode=function(A){return j(A)||$(A)===d},ke.isConcurrentMode=j,ke.isContextConsumer=function(A){return $(A)===l},ke.isContextProvider=function(A){return $(A)===c},ke.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===n},ke.isForwardRef=function(A){return $(A)===h},ke.isFragment=function(A){return $(A)===a},ke.isLazy=function(A){return $(A)===T},ke.isMemo=function(A){return $(A)===S},ke.isPortal=function(A){return $(A)===t},ke.isProfiler=function(A){return $(A)===i},ke.isStrictMode=function(A){return $(A)===s},ke.isSuspense=function(A){return $(A)===m},ke.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===a||A===p||A===i||A===s||A===m||A===_||typeof A=="object"&&A!==null&&(A.$$typeof===T||A.$$typeof===S||A.$$typeof===c||A.$$typeof===l||A.$$typeof===h||A.$$typeof===F||A.$$typeof===D||A.$$typeof===W||A.$$typeof===x)},ke.typeOf=$,ke}var Be={};/** @license React v16.13.1
|
|
66
66
|
* react-is.development.js
|
|
67
67
|
*
|
|
68
68
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the MIT license found in the
|
|
71
71
|
* LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var
|
|
72
|
+
*/var $p;function dR(){return $p||($p=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function $(N){return typeof N=="string"||typeof N=="function"||N===a||N===p||N===i||N===s||N===m||N===_||typeof N=="object"&&N!==null&&(N.$$typeof===T||N.$$typeof===S||N.$$typeof===c||N.$$typeof===l||N.$$typeof===h||N.$$typeof===F||N.$$typeof===D||N.$$typeof===W||N.$$typeof===x)}function j(N){if(typeof N=="object"&&N!==null){var Ge=N.$$typeof;switch(Ge){case n:var qe=N.type;switch(qe){case d:case p:case a:case i:case s:case m:return qe;default:var it=qe&&qe.$$typeof;switch(it){case l:case h:case T:case S:case c:return it;default:return Ge}}case t:return Ge}}}var A=d,K=p,G=l,Y=c,ie=n,We=h,Re=a,st=T,Z=S,we=t,Xe=i,Ze=s,Ue=m,et=!1;function Dt(N){return et||(et=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(N)||j(N)===d}function H(N){return j(N)===p}function V(N){return j(N)===l}function ve(N){return j(N)===c}function he(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function le(N){return j(N)===h}function ye(N){return j(N)===a}function se(N){return j(N)===T}function fe(N){return j(N)===S}function ue(N){return j(N)===t}function me(N){return j(N)===i}function ge(N){return j(N)===s}function J(N){return j(N)===m}Be.AsyncMode=A,Be.ConcurrentMode=K,Be.ContextConsumer=G,Be.ContextProvider=Y,Be.Element=ie,Be.ForwardRef=We,Be.Fragment=Re,Be.Lazy=st,Be.Memo=Z,Be.Portal=we,Be.Profiler=Xe,Be.StrictMode=Ze,Be.Suspense=Ue,Be.isAsyncMode=Dt,Be.isConcurrentMode=H,Be.isContextConsumer=V,Be.isContextProvider=ve,Be.isElement=he,Be.isForwardRef=le,Be.isFragment=ye,Be.isLazy=se,Be.isMemo=fe,Be.isPortal=ue,Be.isProfiler=me,Be.isStrictMode=ge,Be.isSuspense=J,Be.isValidElementType=$,Be.typeOf=j}()),Be}process.env.NODE_ENV==="production"?sc.exports=fR():sc.exports=dR();var pR=sc.exports,cg=pR,hR={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lg={};lg[cg.ForwardRef]=hR;lg[cg.Memo]=gR;var Ye={};/** @license React v17.0.2
|
|
73
73
|
* react-is.production.min.js
|
|
74
74
|
*
|
|
75
75
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the MIT license found in the
|
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/var
|
|
79
|
+
*/var Mp;function vR(){if(Mp)return Ye;Mp=1;var e=60103,n=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,h=60115,m=60116,_=60121,S=60122,T=60117,x=60129,F=60131;if(typeof Symbol=="function"&&Symbol.for){var D=Symbol.for;e=D("react.element"),n=D("react.portal"),t=D("react.fragment"),a=D("react.strict_mode"),s=D("react.profiler"),i=D("react.provider"),c=D("react.context"),l=D("react.forward_ref"),d=D("react.suspense"),p=D("react.suspense_list"),h=D("react.memo"),m=D("react.lazy"),_=D("react.block"),S=D("react.server.block"),T=D("react.fundamental"),x=D("react.debug_trace_mode"),F=D("react.legacy_hidden")}function W(Z){if(typeof Z=="object"&&Z!==null){var we=Z.$$typeof;switch(we){case e:switch(Z=Z.type,Z){case t:case s:case a:case d:case p:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case c:case l:case m:case h:case i:return Z;default:return we}}case n:return we}}}var $=i,j=e,A=l,K=t,G=m,Y=h,ie=n,We=s,Re=a,st=d;return Ye.ContextConsumer=c,Ye.ContextProvider=$,Ye.Element=j,Ye.ForwardRef=A,Ye.Fragment=K,Ye.Lazy=G,Ye.Memo=Y,Ye.Portal=ie,Ye.Profiler=We,Ye.StrictMode=Re,Ye.Suspense=st,Ye.isAsyncMode=function(){return!1},Ye.isConcurrentMode=function(){return!1},Ye.isContextConsumer=function(Z){return W(Z)===c},Ye.isContextProvider=function(Z){return W(Z)===i},Ye.isElement=function(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e},Ye.isForwardRef=function(Z){return W(Z)===l},Ye.isFragment=function(Z){return W(Z)===t},Ye.isLazy=function(Z){return W(Z)===m},Ye.isMemo=function(Z){return W(Z)===h},Ye.isPortal=function(Z){return W(Z)===n},Ye.isProfiler=function(Z){return W(Z)===s},Ye.isStrictMode=function(Z){return W(Z)===a},Ye.isSuspense=function(Z){return W(Z)===d},Ye.isValidElementType=function(Z){return typeof Z=="string"||typeof Z=="function"||Z===t||Z===s||Z===x||Z===a||Z===d||Z===p||Z===F||typeof Z=="object"&&Z!==null&&(Z.$$typeof===m||Z.$$typeof===h||Z.$$typeof===i||Z.$$typeof===c||Z.$$typeof===l||Z.$$typeof===T||Z.$$typeof===_||Z[0]===S)},Ye.typeOf=W,Ye}var ze={};/** @license React v17.0.2
|
|
80
80
|
* react-is.development.js
|
|
81
81
|
*
|
|
82
82
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the MIT license found in the
|
|
85
85
|
* LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/var
|
|
86
|
+
*/var Np;function yR(){return Np||(Np=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,n=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,h=60115,m=60116,_=60121,S=60122,T=60117,x=60129,F=60131;if(typeof Symbol=="function"&&Symbol.for){var D=Symbol.for;e=D("react.element"),n=D("react.portal"),t=D("react.fragment"),a=D("react.strict_mode"),s=D("react.profiler"),i=D("react.provider"),c=D("react.context"),l=D("react.forward_ref"),d=D("react.suspense"),p=D("react.suspense_list"),h=D("react.memo"),m=D("react.lazy"),_=D("react.block"),S=D("react.server.block"),T=D("react.fundamental"),D("react.scope"),D("react.opaque.id"),x=D("react.debug_trace_mode"),D("react.offscreen"),F=D("react.legacy_hidden")}var W=!1;function $(J){return!!(typeof J=="string"||typeof J=="function"||J===t||J===s||J===x||J===a||J===d||J===p||J===F||W||typeof J=="object"&&J!==null&&(J.$$typeof===m||J.$$typeof===h||J.$$typeof===i||J.$$typeof===c||J.$$typeof===l||J.$$typeof===T||J.$$typeof===_||J[0]===S))}function j(J){if(typeof J=="object"&&J!==null){var N=J.$$typeof;switch(N){case e:var Ge=J.type;switch(Ge){case t:case s:case a:case d:case p:return Ge;default:var qe=Ge&&Ge.$$typeof;switch(qe){case c:case l:case m:case h:case i:return qe;default:return N}}case n:return N}}}var A=c,K=i,G=e,Y=l,ie=t,We=m,Re=h,st=n,Z=s,we=a,Xe=d,Ze=!1,Ue=!1;function et(J){return Ze||(Ze=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Dt(J){return Ue||(Ue=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(J){return j(J)===c}function V(J){return j(J)===i}function ve(J){return typeof J=="object"&&J!==null&&J.$$typeof===e}function he(J){return j(J)===l}function le(J){return j(J)===t}function ye(J){return j(J)===m}function se(J){return j(J)===h}function fe(J){return j(J)===n}function ue(J){return j(J)===s}function me(J){return j(J)===a}function ge(J){return j(J)===d}ze.ContextConsumer=A,ze.ContextProvider=K,ze.Element=G,ze.ForwardRef=Y,ze.Fragment=ie,ze.Lazy=We,ze.Memo=Re,ze.Portal=st,ze.Profiler=Z,ze.StrictMode=we,ze.Suspense=Xe,ze.isAsyncMode=et,ze.isConcurrentMode=Dt,ze.isContextConsumer=H,ze.isContextProvider=V,ze.isElement=ve,ze.isForwardRef=he,ze.isFragment=le,ze.isLazy=ye,ze.isMemo=se,ze.isPortal=fe,ze.isProfiler=ue,ze.isStrictMode=me,ze.isSuspense=ge,ze.isValidElementType=$,ze.typeOf=j}()),ze}process.env.NODE_ENV==="production"?vR():yR();function Lp(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function fg(e,n){if(Lp(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var t=Object.keys(e),a=Object.keys(n);if(t.length!==a.length)return!1;for(var s=0;s<t.length;s++)if(!Object.prototype.hasOwnProperty.call(n,t[s])||!Lp(e[t[s]],n[t[s]]))return!1;return!0}function dg(){var e=dt.useContext(Jr);if(process.env.NODE_ENV!=="production"&&!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}function pg(e){e===void 0&&(e=Jr);var n=e===Jr?dg:function(){return dt.useContext(e)};return function(){var a=n(),s=a.store;return s}}var mR=pg();function bR(e){e===void 0&&(e=Jr);var n=e===Jr?mR:pg(e);return function(){var a=n();return a.dispatch}}var _R=bR(),ER=function(n,t){return n===t};function SR(e,n,t,a){var s=dt.useReducer(function(T){return T+1},0),i=s[1],c=dt.useMemo(function(){return ig(t,a)},[t,a]),l=dt.useRef(),d=dt.useRef(),p=dt.useRef(),h=dt.useRef(),m=t.getState(),_;try{if(e!==d.current||m!==p.current||l.current){var S=e(m);h.current===void 0||!n(S,h.current)?_=S:_=h.current}else _=h.current}catch(T){throw l.current&&(T.message+=`
|
|
87
87
|
The error may be correlated with this previous error:
|
|
88
88
|
`+l.current.stack+`
|
|
89
89
|
|
|
90
|
-
`),T}return oc(function(){d.current=e,p.current=m,h.current=_,l.current=void 0}),oc(function(){function T(){try{var C=t.getState();if(C===p.current)return;var F=d.current(C);if(n(F,h.current))return;h.current=F,p.current=C}catch(D){l.current=D}i()}return c.onStateChange=T,c.trySubscribe(),T(),function(){return c.tryUnsubscribe()}},[t,c]),_}function SO(e){e===void 0&&(e=Jr);var n=e===Jr?fg:function(){return dt.useContext(e)};return function(a,s){if(s===void 0&&(s=_O),process.env.NODE_ENV!=="production"){if(!a)throw new Error("You must pass a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}var i=n(),c=i.store,l=i.subscription,d=EO(a,s,c,l);return dt.useDebugValue(d),d}}var wO=SO();iO(XE.unstable_batchedUpdates);const TO=()=>bO(),Xr=wO,$c=z(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),xO=z(e=>e,({catalog:e})=>e.state),pg=z($c,e=>e?e.dataClasses:[]),CO=z(pg,e=>Object.values(e).filter(({virtual:n})=>n)),RO=z($c,e=>e?e.methods:[]),hg=e=>z(n=>n,n=>{switch(n.catalog.state){case"loaded":const t=e?n.catalog.model.dataClasses[e]:n.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),OO=e=>Xr(hg(e),lg),AO=(e,n)=>z(hg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===n)),PO=(e,n,t)=>Xr(AO(e,`${t}.${n}`),lg),gg=z(e=>e,e=>e),DO=e=>z(Zr,n=>{var s;const t=n.tabs.find(({path:i})=>i===e),a=t==null?void 0:t.content.components;return!t||!a?[]:(s=Object.keys(a))==null?void 0:s.map(i=>({id:i,...a[i]}))}),vg=e=>z(Zr,n=>{var a,s;const t=n.tabs.find(({path:i})=>i===e);return((s=(a=t==null?void 0:t.content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]}),IO=(e,n,t)=>z(gg,a=>{var s,i;if(n){const c=a.sharedDatasources.sources[n];return c?c.find(l=>l.id===e):void 0}else{const c=a.root.tabs.find(d=>d.path===t);return c?(i=(s=c.content.metadata)==null?void 0:s.datasources)==null?void 0:i.find(d=>d.id===e):void 0}}),yg=z(e=>e,e=>{var n;return((n=e.sharedDatasources)==null?void 0:n.sources)||[]}),FO=(e,n,t,a)=>z(vg(e),yg,(s,i)=>{const c=Ke.flatten(Ke.values(i)),l=[...n!=="private"?s:[],...n!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:h=""})=>d.id!==p||(d.namespace||"")!==h))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),$O=z(e=>e.debugger,e=>e.meta),Bn=z(e=>e.debugger,e=>e.list),jt=z(e=>e.debugger,e=>e.sessions),MO=z(jt,e=>e.length),jn=(e,n,t,a)=>e.find(s=>s.filePath===n&&s.methodName===t&&(!a||s.className===a)),ft=(e,n)=>e.find(t=>t.threadId===n),mg=(e,n)=>e.find(t=>t.tabPath===n),NO=(e,n)=>z(Bn,t=>{var a;return((a=jn(t,e,n))==null?void 0:a.breakpoints.saved.locations)||[]}),LO=(e,n)=>z(Bn,t=>{var a;return((a=jn(t,e,n))==null?void 0:a.breakpoints.draft.locations)||[]}),jO=e=>z(Bn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.saved.locations.map(s=>({...s,line:s.line+(a.breakpoints.saved.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),kO=e=>z(Bn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.draft.locations.map(s=>({...s,line:s.line+(a.breakpoints.draft.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),BO=e=>z(jt,n=>{const t=ft(n,e);return t!=null&&t.stopped?t.highlightedLines:null}),WO=e=>z(jt,n=>{const t=ft(n,e);return t!=null&&t.stopped?t.activeLine:null}),UO=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.expressions)||[]}),HO=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.stopped)||!1}),GO=(e,n)=>z(Bn,t=>{var a;return(a=jn(t,e,n))==null?void 0:a.source}),qO=e=>z(jt,n=>{var t;return((t=mg(n,e))==null?void 0:t.threadId)||-1}),YO=e=>z(jt,n=>{var t,a;return(a=(t=ft(n,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),zO=e=>z(jt,n=>{var t;return(t=ft(n,e))==null?void 0:t.currentStackFrame}),VO=z(jt,e=>e.map(({channelId:n,threadId:t})=>({id:n,threadId:t}))),KO=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.stackFrames)||[]}),JO=e=>z(jt,n=>{var t,a;return((a=(t=ft(n,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),XO=e=>z(jt,n=>{var t,a;return((a=(t=ft(n,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),ZO=(e,n="saved")=>z(Bn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[n].offset)||0}),QO=(e,n,t,a)=>z(jt,s=>{var p;const i=((p=ft(s,e))==null?void 0:p.exceptions)||[],c=n===E.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(h=>h.location===l):i).map(h=>({...h,locationLine:c?h.locationLine:h.locationLine+1}))}),Zr=z(e=>e.root,e=>e),ba=z(Zr,e=>e.tabs),eA=z(Zr,e=>e.activeTab),tA=z(Zr,e=>e.recent.filter(({type:n})=>n!==E.FileFolderType.DEBUGGER)),rA=z(Zr,({tabs:e,activeTab:n})=>e.find(({path:t})=>t===n)),nA=z(Zr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),aA=z(ba,e=>e.filter(({type:n,flags:t})=>n===E.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:n})=>n)),oA=z(ba,e=>e.length>0),_a=e=>z(Zr,n=>n.tabs.find(({path:t})=>t===e)),bg=(e,n="")=>z(_a(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:Ke.get(t.content,n)),sA=e=>z(_a(e),n=>n==null?void 0:n.extra),iA=(e,n=t=>t)=>z(bg(e,"components"),t=>n(t||{})),Mc=z(ba,e=>e.filter(n=>n.flags.touched)),uA=z(Mc,e=>e.length),cA=z(jt,e=>e.map(({threadId:n,currentStackFrame:{source:t},tabPath:a})=>({name:Fh(n,t),path:a,type:E.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),lA=z(e=>e,e=>e.explorer||[]),_g=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.WEBFORMS)),Eg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.METHODS)),Sg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.CLASSES)),fA=z(Eg,e=>(e==null?void 0:e.children)||[]),dA=z(_g,e=>(e==null?void 0:e.children)||[]),pA=z(Sg,e=>(e==null?void 0:e.children)||[]),hA=z(e=>e.modals,e=>e.list),gA=z(e=>e.roles,e=>Ks(e)),vA=z(e=>e.roles,({roles:e})=>e),yA=z(e=>e.roles,({privileges:e})=>e),mA=z(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:n})=>n==="guest")),bA=z(e=>e.roles,({flags:e})=>e),_A=z(e=>e.roles,({selectedTab:e})=>e),EA=z(e=>e.roles,({forceLogin:e})=>e),SA=z(e=>e.roles,({date:e})=>e),Nc=z(e=>e.settings,e=>e.session),wA=(...e)=>z(Nc,n=>e.length>0?Ke.pick(n,e):n),TA=z(e=>e.settings,e=>e.project),xA=z(e=>e.settings,e=>e),Lc=z(e=>e.settings,e=>e.server),CA=z(Lc,e=>e.remoteDebuggerMode),RA=z(Lc,e=>e.qodly),OA=z(Nc,e=>e["monaco.zoom"]),wg=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],Tg=wg.map(e=>({id:wc(),content:"",name:e,parentId:null,scope:E.EWebFormStyleClassScope.THEME})),jc=e=>z(_a(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),AA=(e,n)=>z(jc(e),t=>n.map(a=>{switch(!0){case a===E.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:E.EWebFormStyleClassScope.LOCAL}));case a===E.EWebFormStyleClassScope.THEME:return Tg;default:return[]}}).flat()),PA=e=>z(jc(e),n=>[...n.map(t=>({...t,scope:E.EWebFormStyleClassScope.LOCAL})),...Tg]),DA=z(e=>e,e=>{var n;return[...(((n=e.sharedCSS)==null?void 0:n.styles)||[]).map(t=>({...t,scope:E.EWebFormStyleClassScope.SHARED}))]}),IA=e=>z(_a(e),n=>n==null?void 0:n.flags),uo=z(e=>e.webforms,e=>e),xg=z(uo,e=>(e==null?void 0:e.components)||[]),Hs=z(uo,e=>e.inspector),FA=z(Hs,e=>e.css),$A=z(Hs,e=>e.datasource),Cg=z(uo,e=>e.templates||{data:[]}),MA=z(Cg,e=>e.data||[]),NA=e=>z(xg,n=>n.find(t=>t.id===e)),LA=e=>z(Hs,n=>n[e]),jA=z(uo,e=>e.datasources.theme),kA=z(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,n,t)=>[e.state,n.state,t.state].every(a=>["loaded","error"].includes(a))),kc={label:"Base",id:"root"},BA=e=>z(_a(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.states)||[kc]});var Bc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(Bc||{}),Wc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Wc||{}),rs,WA=new Uint8Array(16);function Rg(){if(!rs&&(rs=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!rs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rs(WA)}const UA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Gs(e){return typeof e=="string"&&UA.test(e)}var wt=[];for(var Du=0;Du<256;++Du)wt.push((Du+256).toString(16).substr(1));function qs(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(wt[e[n+0]]+wt[e[n+1]]+wt[e[n+2]]+wt[e[n+3]]+"-"+wt[e[n+4]]+wt[e[n+5]]+"-"+wt[e[n+6]]+wt[e[n+7]]+"-"+wt[e[n+8]]+wt[e[n+9]]+"-"+wt[e[n+10]]+wt[e[n+11]]+wt[e[n+12]]+wt[e[n+13]]+wt[e[n+14]]+wt[e[n+15]]).toLowerCase();if(!Gs(t))throw TypeError("Stringified UUID is invalid");return t}var Lp,Iu,Fu=0,$u=0;function HA(e,n,t){var a=n&&t||0,s=n||new Array(16);e=e||{};var i=e.node||Lp,c=e.clockseq!==void 0?e.clockseq:Iu;if(i==null||c==null){var l=e.random||(e.rng||Rg)();i==null&&(i=Lp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Iu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:$u+1,h=d-Fu+(p-$u)/1e4;if(h<0&&e.clockseq===void 0&&(c=c+1&16383),(h<0||d>Fu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Fu=d,$u=p,Iu=c,d+=122192928e5;var m=((d&268435455)*1e4+p)%4294967296;s[a++]=m>>>24&255,s[a++]=m>>>16&255,s[a++]=m>>>8&255,s[a++]=m&255;var _=d/4294967296*1e4&268435455;s[a++]=_>>>8&255,s[a++]=_&255,s[a++]=_>>>24&15|16,s[a++]=_>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var S=0;S<6;++S)s[a+S]=i[S];return n||qs(s)}function Og(e){if(!Gs(e))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}function GA(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}var qA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",YA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ag(e,n,t){function a(s,i,c,l){if(typeof s=="string"&&(s=GA(s)),typeof i=="string"&&(i=Og(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(i),d.set(s,i.length),d=t(d),d[6]=d[6]&15|n,d[8]=d[8]&63|128,c){l=l||0;for(var p=0;p<16;++p)c[l+p]=d[p];return c}return qs(d)}try{a.name=e}catch{}return a.DNS=qA,a.URL=YA,a}function zA(e){if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(var t=0;t<n.length;++t)e[t]=n.charCodeAt(t)}return VA(KA(JA(e),e.length*8))}function VA(e){for(var n=[],t=e.length*32,a="0123456789abcdef",s=0;s<t;s+=8){var i=e[s>>5]>>>s%32&255,c=parseInt(a.charAt(i>>>4&15)+a.charAt(i&15),16);n.push(c)}return n}function Pg(e){return(e+64>>>9<<4)+14+1}function KA(e,n){e[n>>5]|=128<<n%32,e[Pg(n)-1]=n;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,h=i;t=Ct(t,a,s,i,e[c],7,-680876936),i=Ct(i,t,a,s,e[c+1],12,-389564586),s=Ct(s,i,t,a,e[c+2],17,606105819),a=Ct(a,s,i,t,e[c+3],22,-1044525330),t=Ct(t,a,s,i,e[c+4],7,-176418897),i=Ct(i,t,a,s,e[c+5],12,1200080426),s=Ct(s,i,t,a,e[c+6],17,-1473231341),a=Ct(a,s,i,t,e[c+7],22,-45705983),t=Ct(t,a,s,i,e[c+8],7,1770035416),i=Ct(i,t,a,s,e[c+9],12,-1958414417),s=Ct(s,i,t,a,e[c+10],17,-42063),a=Ct(a,s,i,t,e[c+11],22,-1990404162),t=Ct(t,a,s,i,e[c+12],7,1804603682),i=Ct(i,t,a,s,e[c+13],12,-40341101),s=Ct(s,i,t,a,e[c+14],17,-1502002290),a=Ct(a,s,i,t,e[c+15],22,1236535329),t=Rt(t,a,s,i,e[c+1],5,-165796510),i=Rt(i,t,a,s,e[c+6],9,-1069501632),s=Rt(s,i,t,a,e[c+11],14,643717713),a=Rt(a,s,i,t,e[c],20,-373897302),t=Rt(t,a,s,i,e[c+5],5,-701558691),i=Rt(i,t,a,s,e[c+10],9,38016083),s=Rt(s,i,t,a,e[c+15],14,-660478335),a=Rt(a,s,i,t,e[c+4],20,-405537848),t=Rt(t,a,s,i,e[c+9],5,568446438),i=Rt(i,t,a,s,e[c+14],9,-1019803690),s=Rt(s,i,t,a,e[c+3],14,-187363961),a=Rt(a,s,i,t,e[c+8],20,1163531501),t=Rt(t,a,s,i,e[c+13],5,-1444681467),i=Rt(i,t,a,s,e[c+2],9,-51403784),s=Rt(s,i,t,a,e[c+7],14,1735328473),a=Rt(a,s,i,t,e[c+12],20,-1926607734),t=Ot(t,a,s,i,e[c+5],4,-378558),i=Ot(i,t,a,s,e[c+8],11,-2022574463),s=Ot(s,i,t,a,e[c+11],16,1839030562),a=Ot(a,s,i,t,e[c+14],23,-35309556),t=Ot(t,a,s,i,e[c+1],4,-1530992060),i=Ot(i,t,a,s,e[c+4],11,1272893353),s=Ot(s,i,t,a,e[c+7],16,-155497632),a=Ot(a,s,i,t,e[c+10],23,-1094730640),t=Ot(t,a,s,i,e[c+13],4,681279174),i=Ot(i,t,a,s,e[c],11,-358537222),s=Ot(s,i,t,a,e[c+3],16,-722521979),a=Ot(a,s,i,t,e[c+6],23,76029189),t=Ot(t,a,s,i,e[c+9],4,-640364487),i=Ot(i,t,a,s,e[c+12],11,-421815835),s=Ot(s,i,t,a,e[c+15],16,530742520),a=Ot(a,s,i,t,e[c+2],23,-995338651),t=At(t,a,s,i,e[c],6,-198630844),i=At(i,t,a,s,e[c+7],10,1126891415),s=At(s,i,t,a,e[c+14],15,-1416354905),a=At(a,s,i,t,e[c+5],21,-57434055),t=At(t,a,s,i,e[c+12],6,1700485571),i=At(i,t,a,s,e[c+3],10,-1894986606),s=At(s,i,t,a,e[c+10],15,-1051523),a=At(a,s,i,t,e[c+1],21,-2054922799),t=At(t,a,s,i,e[c+8],6,1873313359),i=At(i,t,a,s,e[c+15],10,-30611744),s=At(s,i,t,a,e[c+6],15,-1560198380),a=At(a,s,i,t,e[c+13],21,1309151649),t=At(t,a,s,i,e[c+4],6,-145523070),i=At(i,t,a,s,e[c+11],10,-1120210379),s=At(s,i,t,a,e[c+2],15,718787259),a=At(a,s,i,t,e[c+9],21,-343485551),t=dn(t,l),a=dn(a,d),s=dn(s,p),i=dn(i,h)}return[t,a,s,i]}function JA(e){if(e.length===0)return[];for(var n=e.length*8,t=new Uint32Array(Pg(n)),a=0;a<n;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function dn(e,n){var t=(e&65535)+(n&65535),a=(e>>16)+(n>>16)+(t>>16);return a<<16|t&65535}function XA(e,n){return e<<n|e>>>32-n}function Ys(e,n,t,a,s,i){return dn(XA(dn(dn(n,e),dn(a,i)),s),t)}function Ct(e,n,t,a,s,i,c){return Ys(n&t|~n&a,e,n,s,i,c)}function Rt(e,n,t,a,s,i,c){return Ys(n&a|t&~a,e,n,s,i,c)}function Ot(e,n,t,a,s,i,c){return Ys(n^t^a,e,n,s,i,c)}function At(e,n,t,a,s,i,c){return Ys(t^(n|~a),e,n,s,i,c)}var ZA=Ag("v3",48,zA);const QA=ZA;function eP(e,n,t){e=e||{};var a=e.random||(e.rng||Rg)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,n){t=t||0;for(var s=0;s<16;++s)n[t+s]=a[s];return n}return qs(a)}function tP(e,n,t,a){switch(e){case 0:return n&t^~n&a;case 1:return n^t^a;case 2:return n&t^n&a^t&a;case 3:return n^t^a}}function Mu(e,n){return e<<n|e>>>32-n}function rP(e){var n=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,c=Math.ceil(i/16),l=new Array(c),d=0;d<c;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];l[d]=p}l[c-1][14]=(e.length-1)*8/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=(e.length-1)*8&4294967295;for(var m=0;m<c;++m){for(var _=new Uint32Array(80),S=0;S<16;++S)_[S]=l[m][S];for(var T=16;T<80;++T)_[T]=Mu(_[T-3]^_[T-8]^_[T-14]^_[T-16],1);for(var C=t[0],F=t[1],D=t[2],W=t[3],$=t[4],j=0;j<80;++j){var A=Math.floor(j/20),K=Mu(C,5)+tP(A,F,D,W)+$+n[A]+_[j]>>>0;$=W,W=D,D=Mu(F,30)>>>0,F=C,C=K}t[0]=t[0]+C>>>0,t[1]=t[1]+F>>>0,t[2]=t[2]+D>>>0,t[3]=t[3]+W>>>0,t[4]=t[4]+$>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var nP=Ag("v5",80,rP);const aP=nP,oP="00000000-0000-0000-0000-000000000000";function sP(e){if(!Gs(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const iP=Object.freeze(Object.defineProperty({__proto__:null,NIL:oP,parse:Og,stringify:qs,v1:HA,v3:QA,v4:eP,v5:aP,validate:Gs,version:sP},Symbol.toStringTag,{value:"Module"})),uP=rw(iP);function Uc(e,n){if(!e||!n||!e.length||!n.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=n}Uc.prototype.convert=function(e){var n,t,a,s={},i=this.srcAlphabet.length,c=this.dstAlphabet.length,l=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(n=0;n<l;n++)s[n]=this.srcAlphabet.indexOf(e[n]);do{for(t=0,a=0,n=0;n<l;n++)t=t*i+s[n],t>=c?(s[a++]=parseInt(t/c,10),t=t%c):a>0&&(s[a++]=0);l=a,d=this.dstAlphabet.slice(t,t+1).concat(d)}while(a!==0);return d};Uc.prototype.isValid=function(e){for(var n=0;n<e.length;++n)if(this.srcAlphabet.indexOf(e[n])===-1)return!1;return!0};var cP=Uc,lP=cP;function co(e,n){var t=new lP(e,n);return function(a){return t.convert(a)}}co.BIN="01";co.OCT="01234567";co.DEC="0123456789";co.HEX="0123456789abcdef";var fP=co;const{v4:Nu}=uP,ns=fP,Lu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",dP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",pP={consistentLength:!0};let ju;const jp=(e,n,t)=>{const a=n(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},hP=(e,n)=>{const a=n(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[a[1],a[2],a[3],a[4],a[5]].join("-")},gP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var xs=(()=>{const e=(n,t)=>{const a=n||Lu,s={...pP,...t};if([...new Set(Array.from(a))].length!==a.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const i=gP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=ns(ns.HEX,a),d=ns(a,ns.HEX),p=()=>jp(Nu(),l,c),h={new:p,generate:p,uuid:Nu,fromUUID:m=>jp(m,l,c),toUUID:m=>hP(m,d),alphabet:a,maxLength:i};return Object.freeze(h),h};return e.constants={flickrBase58:Lu,cookieBase90:dP},e.uuid=Nu,e.generate=()=>(ju||(ju=e(Lu).generate),ju()),e})(),Me=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Me||{});const vP=[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE,Me.METHOD],Cs="guest",Hc=[{key:"read",label:"Read",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE,Me.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Me.METHOD]}];function cr(e,...n){return Array.from(new Set([...e,...n]))}function Dg(e){const n={},t=new Map;e.forEach(d=>{const p=d.id||xs.generate();n[p]={...d,id:p,parents:[],includes:cr(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(n).forEach(([d,p])=>{const h=p.includes.map(m=>{const _=t.get(m);return _?(n[_].parents=cr(n[_].parents,_),_):""}).filter(Boolean);n[d]={...p,includes:h}});const a=Ig(n),s=new Set;function i(d){s.add(d.id),d.includes=d.includes.filter(p=>!s.has(p))}if(a.forEach(i),a.forEach(d=>d.parents=[]),a.forEach(d=>{d.includes.forEach(p=>n[p].parents.push(d.id))}),Object.values(n).find(({privilege:d})=>d===Cs))return n;const l=xs.generate();return{[l]:{id:l,privilege:Cs,includes:[],parents:[],resources:[]},...n}}function Ig(e){return Object.values(e).sort((n,t)=>n.parents.length-t.parents.length)}function zs(e,n){const t=n[e];let a=[];return t&&t.parents.forEach(s=>{a=cr(a,...zs(s,n),s)}),a}function Rs(e,n){const t=n[e];let a=[];return t&&t.includes.forEach(s=>{a=cr(a,...Rs(s,n),s)}),a}function yP(e,n){const t=n[e];if(!t)return[];const a=[e,...zs(e,n),...t.includes];return Object.keys(n).filter(s=>!a.includes(s))}function mP(e,n){return n[e]?Object.keys(n).reduce((a,s)=>s===e?a:{...a,[s]:{...n[s],parents:n[s].parents.filter(i=>i!==e),includes:n[s].includes.filter(i=>i!==e)}},{}):n}function bP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:cr(a.includes,n)},[n]:{...t[n],parents:cr(s.parents,e)}}}function _P(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==n)},[n]:{...t[n],parents:t[n].parents.filter(i=>i!==e)}}}function Fg(e,n){E.validateName(e),Object.entries(n).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=xs.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...n}}function EP(e,n,t,a,s){let i=Fg(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Lg(c[1].id,n,t,a,i),i):s}function SP(e,n,t){if(!e)throw new Error("Please enter a name");if(!t[n])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&n!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[n]:{...t[n],privilege:e}}}function wP(e,n){return e.map(t=>Qr(t,n))}function Qr(e,n){return n[e]?n[e]:null}function $g({applyTo:e,type:n,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=Ke.find(Hc,["key",s]);return!c||!c.canApplyTo.includes(n)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=cr(a[d]||[],s)}),a},{})}const ic=(e,n=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${n?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${n?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${n?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Gc(e){return{permissions:Hc.filter(({canApplyTo:n})=>n.includes(e.type)).map(({key:n,label:t})=>{const a={name:n,from:[]};switch(e.type){case Me.DATASTORE:return{...a,info:ic(t,!0)};case Me.DATACLASS:return{...a,info:ic(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Mg(e,n){const t=Ng(n),a={};return e.filter(({type:s})=>vP.includes(s)).forEach(s=>{const i=$g(s);Object.entries(i).forEach(([c,l])=>{var h;const d=(h=t[c])==null?void 0:h.id;if(!d)return;a[d]=a[d]||{...n[d]};let p=Ke.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=Gc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...n,...a}}function Ng(e){return Object.values(e).reduce((n,t)=>({...n,[t.privilege]:t}),{})}function Vs(e){var t;const n=Dg(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:Mg(((t=e.permissions)==null?void 0:t.allowed)||[],n),roles:(e.roles||[]).map(({id:a=xs.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:cr(i).map(c=>{var l;return(l=Object.values(n).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function Ks(e){const n=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...n,...n.map(a=>zs(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{forceLogin:e.forceLogin,permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=Ke.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:h})=>{h&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==Cs).map(({id:a,includes:s,privilege:i})=>({id:a,privilege:i,includes:s.map(c=>e.privileges[c].privilege)})),roles:Object.values(e.roles).map(a=>({...a,privileges:a.privileges.map(s=>{var i;return(i=e.privileges[s])==null?void 0:i.privilege}).filter(Boolean)}))}}function TP(e,n){const t=n[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const h=l.reduce((m,_)=>[...m,...n[_][d]],[]);return h.length===0?p:(p.push(h),s(h,d,p))}function i(l){const d=[],p=[];for(let h=l.length-1;h>=0;h-=1){const m=l[h].filter(_=>d.includes(_)?!1:(d.push(_),!0));m.length>0&&p.unshift(cr(m))}return p}function c(l,d){const p=[];return l.reduce((h,m)=>(m.forEach(_=>{n[_][d==="parents"?"includes":"parents"].forEach(T=>{p.includes(T)&&h.push(d==="parents"?{source:_,target:T}:{source:T,target:_})}),p.push(_)}),h),[])}return a.children=s([e],"includes"),a.children=i(a.children),a.parents=s([e],"parents"),a.parents=i(a.parents),a.links=[...c([[e],...a.parents],"parents"),...c([[e],...a.children],"includes")],a}function xP(e,n,t){const a=Qr(e,t);if(!a||Ke.find(a.resources,{resource:n.applyTo,type:n.type}))return t;const s={...a,resources:[...a.resources,Gc(n)]};return{...t,[e]:s}}function CP(e,n,t){const a=Qr(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==n.applyTo||c!==n.type)};return{...t,[e]:s}}function RP(e,n){const t=Qr(e,n);if(!t)return n;const a={...t,resources:t.resources.filter(s=>s.permissions.some(i=>i.from.length)).map(s=>({...s,permissions:s.permissions.map(i=>({...i,checked:!1}))}))};return{...n,[e]:a}}function Lg(e,n,t,a,s){const i=Qr(e,s);if(!i)return s;const l=Ke.find(i.resources,{type:t,resource:n})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===n?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:n,permissions:Hc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:ic(d.key,t===Me.DATASTORE)}))}]};return{...s,[e]:l}}function OP(e,n,t,a){const s=Qr(e,a);if(!s)return a;const c=Ke.find(s.resources,{type:n.type,resource:n.resource})?{...s,resources:s.resources.map(l=>l.type===n.type&&l.resource===n.resource?{...l,permissions:n.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...n,permissions:n.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function AP(e,n){var d;const t=jg(e,n)||[],a=((d=Qr(e,n))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Me.METHOD)||[]).map(({resource:p})=>p);return Object.entries(n).reduce((p,[h,{resources:m}])=>(m.filter(({resource:_,type:S})=>S===Me.METHOD&&c.includes(_)).forEach(({permissions:_,resource:S})=>{var C;((C=_.find(({name:F})=>F==="promote"))==null?void 0:C.checked)&&(p[S]=cr(p[S]||[],h))}),p),{})}function jg(e,n){var c;const t=Qr(e,n);if(!t)return[];const a=(c=Object.values(n).find(l=>l.privilege===Cs))==null?void 0:c.id;return(a&&a!==e?cr(Rs(e,n),a):Rs(e,n)).reduce((l,d)=>(n[d].resources.forEach(h=>{if(h.permissions.filter(({checked:S})=>S).length===0)return;const _=Ke.find(l,{type:h.type,resource:h.resource});if(!_){l.push({...h,permissions:h.permissions.map(S=>({...S,from:S.checked?[d]:[],checked:!1}))});return}_.permissions=_.permissions.map((S,T)=>{let{from:C=[]}=S;return h.permissions[T].checked&&!C.includes(d)&&(C=[...C,d]),{...S,from:C,checked:S.checked}})}),l),Ke.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const PP=e=>e.reduce((n,t)=>({...n,[t.id]:{...t}}),{}),DP=(e,n)=>n[e]?Object.values(n).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):n,IP=(e,n,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:n}}:{...a,[s.id]:s},{}):t,FP=(e,n)=>{const t={id:e,role:"",privileges:[]};return{...n,[t.id]:t}},$P=(e,n)=>{if(E.validateName(e.role),Object.values(n).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(n).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},MP={list:[]},kp=(e,n)=>e.list.filter(t=>t.id!==n),kg=lr({name:"modals",initialState:MP,reducers:{createModal:(e,n)=>{e.list.push(n.payload)},editModal:(e,n)=>{const{id:t,...a}=n.payload,s=e.list.find(E.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,n)=>{const t=n.payload;e.list=kp(e,t)},closeModal:(e,n)=>{const{id:t,reason:a}=n.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=kp(e,t)}}}),{createModal:Bg,removeModal:Wg,closeModal:NP,editModal:LP}=kg.actions;var uc={exports:{}},oa={};/*
|
|
90
|
+
`),T}return oc(function(){d.current=e,p.current=m,h.current=_,l.current=void 0}),oc(function(){function T(){try{var x=t.getState();if(x===p.current)return;var F=d.current(x);if(n(F,h.current))return;h.current=F,p.current=x}catch(D){l.current=D}i()}return c.onStateChange=T,c.trySubscribe(),T(),function(){return c.tryUnsubscribe()}},[t,c]),_}function wR(e){e===void 0&&(e=Jr);var n=e===Jr?dg:function(){return dt.useContext(e)};return function(a,s){if(s===void 0&&(s=ER),process.env.NODE_ENV!=="production"){if(!a)throw new Error("You must pass a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}var i=n(),c=i.store,l=i.subscription,d=SR(a,s,c,l);return dt.useDebugValue(d),d}}var TR=wR();uR(ZE.unstable_batchedUpdates);const CR=()=>_R(),Xr=TR,$c=z(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),xR=z(e=>e,({catalog:e})=>e.state),hg=z($c,e=>e?e.dataClasses:[]),OR=z(hg,e=>Object.values(e).filter(({virtual:n})=>n)),RR=z($c,e=>e?e.methods:[]),gg=e=>z(n=>n,n=>{switch(n.catalog.state){case"loaded":const t=e?n.catalog.model.dataClasses[e]:n.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),AR=e=>Xr(gg(e),fg),PR=(e,n)=>z(gg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===n)),DR=(e,n,t)=>Xr(PR(e,`${t}.${n}`),fg),vg=z(e=>e,e=>e),IR=e=>z(Zr,n=>{var s;const t=n.tabs.find(({path:i})=>i===e),a=t==null?void 0:t.content.components;return!t||!a?[]:(s=Object.keys(a))==null?void 0:s.map(i=>({id:i,...a[i]}))}),yg=e=>z(Zr,n=>{var a,s;const t=n.tabs.find(({path:i})=>i===e);return((s=(a=t==null?void 0:t.content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]}),FR=(e,n,t)=>z(vg,a=>{var s,i;if(n){const c=a.sharedDatasources.sources[n];return c?c.find(l=>l.id===e):void 0}else{const c=a.root.tabs.find(d=>d.path===t);return c?(i=(s=c.content.metadata)==null?void 0:s.datasources)==null?void 0:i.find(d=>d.id===e):void 0}}),mg=z(e=>e,e=>{var n;return((n=e.sharedDatasources)==null?void 0:n.sources)||[]}),$R=(e,n,t,a)=>z(yg(e),mg,(s,i)=>{const c=Ke.flatten(Ke.values(i)),l=[...n!=="private"?s:[],...n!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:h=""})=>d.id!==p||(d.namespace||"")!==h))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),MR=z(e=>e.debugger,e=>e.meta),Bn=z(e=>e.debugger,e=>e.list),jt=z(e=>e.debugger,e=>e.sessions),NR=z(jt,e=>e.length),jn=(e,n,t,a)=>e.find(s=>s.filePath===n&&s.methodName===t&&(!a||s.className===a)),ft=(e,n)=>e.find(t=>t.threadId===n),bg=(e,n)=>e.find(t=>t.tabPath===n),LR=(e,n)=>z(Bn,t=>{var a;return((a=jn(t,e,n))==null?void 0:a.breakpoints.saved.locations)||[]}),jR=(e,n)=>z(Bn,t=>{var a;return((a=jn(t,e,n))==null?void 0:a.breakpoints.draft.locations)||[]}),kR=e=>z(Bn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.saved.locations.map(s=>({...s,line:s.line+(a.breakpoints.saved.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),BR=e=>z(Bn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.draft.locations.map(s=>({...s,line:s.line+(a.breakpoints.draft.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),WR=e=>z(jt,n=>{const t=ft(n,e);return t!=null&&t.stopped?t.highlightedLines:null}),UR=e=>z(jt,n=>{const t=ft(n,e);return t!=null&&t.stopped?t.activeLine:null}),HR=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.expressions)||[]}),GR=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.stopped)||!1}),qR=(e,n)=>z(Bn,t=>{var a;return(a=jn(t,e,n))==null?void 0:a.source}),YR=e=>z(jt,n=>{var t;return((t=bg(n,e))==null?void 0:t.threadId)||-1}),zR=e=>z(jt,n=>{var t,a;return(a=(t=ft(n,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),VR=e=>z(jt,n=>{var t;return(t=ft(n,e))==null?void 0:t.currentStackFrame}),KR=z(jt,e=>e.map(({channelId:n,threadId:t})=>({id:n,threadId:t}))),JR=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.stackFrames)||[]}),XR=e=>z(jt,n=>{var t,a;return((a=(t=ft(n,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),ZR=e=>z(jt,n=>{var t,a;return((a=(t=ft(n,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),QR=(e,n="saved")=>z(Bn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[n].offset)||0}),eA=(e,n,t,a)=>z(jt,s=>{var p;const i=((p=ft(s,e))==null?void 0:p.exceptions)||[],c=n===E.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(h=>h.location===l):i).map(h=>({...h,locationLine:c?h.locationLine:h.locationLine+1}))}),Zr=z(e=>e.root,e=>e),ba=z(Zr,e=>e.tabs),tA=z(Zr,e=>e.activeTab),rA=z(Zr,e=>e.recent.filter(({type:n})=>n!==E.FileFolderType.DEBUGGER)),nA=z(Zr,({tabs:e,activeTab:n})=>e.find(({path:t})=>t===n)),aA=z(Zr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),oA=z(ba,e=>e.filter(({type:n,flags:t})=>n===E.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:n})=>n)),sA=z(ba,e=>e.length>0),_a=e=>z(Zr,n=>n.tabs.find(({path:t})=>t===e)),_g=(e,n="")=>z(_a(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:Ke.get(t.content,n)),iA=e=>z(_a(e),n=>n==null?void 0:n.extra),uA=(e,n=t=>t)=>z(_g(e,"components"),t=>n(t||{})),Mc=z(ba,e=>e.filter(n=>n.flags.touched)),cA=z(Mc,e=>e.length),lA=z(jt,e=>e.map(({threadId:n,currentStackFrame:{source:t},tabPath:a})=>({name:$h(n,t),path:a,type:E.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),fA=z(e=>e,e=>e.explorer||[]),Eg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.WEBFORMS)),Sg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.METHODS)),wg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.CLASSES)),dA=z(Sg,e=>(e==null?void 0:e.children)||[]),pA=z(Eg,e=>(e==null?void 0:e.children)||[]),hA=z(wg,e=>(e==null?void 0:e.children)||[]),gA=z(e=>e.modals,e=>e.list),vA=z(e=>e.roles,e=>Ks(e)),yA=z(e=>e.roles,({roles:e})=>e),mA=z(e=>e.roles,({privileges:e})=>e),bA=z(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:n})=>n==="guest")),_A=z(e=>e.roles,({flags:e})=>e),EA=z(e=>e.roles,({selectedTab:e})=>e),SA=z(e=>e.roles,({forceLogin:e})=>e),wA=z(e=>e.roles,({date:e})=>e),Nc=z(e=>e.settings,e=>e.session),TA=(...e)=>z(Nc,n=>e.length>0?Ke.pick(n,e):n),CA=z(e=>e.settings,e=>e.project),xA=z(e=>e.settings,e=>e),Lc=z(e=>e.settings,e=>e.server),OA=z(Lc,e=>e.remoteDebuggerMode),RA=z(Lc,e=>e.qodly),AA=z(Nc,e=>e["monaco.zoom"]),Tg=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],Cg=Tg.map(e=>({id:wc(),content:"",name:e,parentId:null,scope:E.EWebFormStyleClassScope.THEME})),jc=e=>z(_a(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),PA=(e,n)=>z(jc(e),t=>n.map(a=>{switch(!0){case a===E.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:E.EWebFormStyleClassScope.LOCAL}));case a===E.EWebFormStyleClassScope.THEME:return Cg;default:return[]}}).flat()),DA=e=>z(jc(e),n=>[...n.map(t=>({...t,scope:E.EWebFormStyleClassScope.LOCAL})),...Cg]),IA=z(e=>e,e=>{var n;return[...(((n=e.sharedCSS)==null?void 0:n.styles)||[]).map(t=>({...t,scope:E.EWebFormStyleClassScope.SHARED}))]}),FA=e=>z(_a(e),n=>n==null?void 0:n.flags),uo=z(e=>e.webforms,e=>e),xg=z(uo,e=>(e==null?void 0:e.components)||[]),Hs=z(uo,e=>e.inspector),$A=z(Hs,e=>e.css),MA=z(Hs,e=>e.datasource),Og=z(uo,e=>e.templates||{data:[]}),NA=z(Og,e=>e.data||[]),LA=e=>z(xg,n=>n.find(t=>t.id===e)),jA=e=>z(Hs,n=>n[e]),kA=z(uo,e=>e.datasources.theme),BA=z(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,n,t)=>[e.state,n.state,t.state].every(a=>["loaded","error"].includes(a))),kc={label:"Base",id:"root"},WA=e=>z(_a(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.states)||[kc]});var Bc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(Bc||{}),Wc=(e=>(e.NONE="none",e.SAVE_ALL_AND_PROCEED="saved_all_and_proceed",e.PROCEED="proceed",e))(Wc||{}),Uc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Uc||{}),rs,UA=new Uint8Array(16);function Rg(){if(!rs&&(rs=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!rs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rs(UA)}const HA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Gs(e){return typeof e=="string"&&HA.test(e)}var wt=[];for(var Du=0;Du<256;++Du)wt.push((Du+256).toString(16).substr(1));function qs(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(wt[e[n+0]]+wt[e[n+1]]+wt[e[n+2]]+wt[e[n+3]]+"-"+wt[e[n+4]]+wt[e[n+5]]+"-"+wt[e[n+6]]+wt[e[n+7]]+"-"+wt[e[n+8]]+wt[e[n+9]]+"-"+wt[e[n+10]]+wt[e[n+11]]+wt[e[n+12]]+wt[e[n+13]]+wt[e[n+14]]+wt[e[n+15]]).toLowerCase();if(!Gs(t))throw TypeError("Stringified UUID is invalid");return t}var jp,Iu,Fu=0,$u=0;function GA(e,n,t){var a=n&&t||0,s=n||new Array(16);e=e||{};var i=e.node||jp,c=e.clockseq!==void 0?e.clockseq:Iu;if(i==null||c==null){var l=e.random||(e.rng||Rg)();i==null&&(i=jp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Iu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:$u+1,h=d-Fu+(p-$u)/1e4;if(h<0&&e.clockseq===void 0&&(c=c+1&16383),(h<0||d>Fu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Fu=d,$u=p,Iu=c,d+=122192928e5;var m=((d&268435455)*1e4+p)%4294967296;s[a++]=m>>>24&255,s[a++]=m>>>16&255,s[a++]=m>>>8&255,s[a++]=m&255;var _=d/4294967296*1e4&268435455;s[a++]=_>>>8&255,s[a++]=_&255,s[a++]=_>>>24&15|16,s[a++]=_>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var S=0;S<6;++S)s[a+S]=i[S];return n||qs(s)}function Ag(e){if(!Gs(e))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}function qA(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}var YA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",zA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Pg(e,n,t){function a(s,i,c,l){if(typeof s=="string"&&(s=qA(s)),typeof i=="string"&&(i=Ag(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(i),d.set(s,i.length),d=t(d),d[6]=d[6]&15|n,d[8]=d[8]&63|128,c){l=l||0;for(var p=0;p<16;++p)c[l+p]=d[p];return c}return qs(d)}try{a.name=e}catch{}return a.DNS=YA,a.URL=zA,a}function VA(e){if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(var t=0;t<n.length;++t)e[t]=n.charCodeAt(t)}return KA(JA(XA(e),e.length*8))}function KA(e){for(var n=[],t=e.length*32,a="0123456789abcdef",s=0;s<t;s+=8){var i=e[s>>5]>>>s%32&255,c=parseInt(a.charAt(i>>>4&15)+a.charAt(i&15),16);n.push(c)}return n}function Dg(e){return(e+64>>>9<<4)+14+1}function JA(e,n){e[n>>5]|=128<<n%32,e[Dg(n)-1]=n;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,h=i;t=xt(t,a,s,i,e[c],7,-680876936),i=xt(i,t,a,s,e[c+1],12,-389564586),s=xt(s,i,t,a,e[c+2],17,606105819),a=xt(a,s,i,t,e[c+3],22,-1044525330),t=xt(t,a,s,i,e[c+4],7,-176418897),i=xt(i,t,a,s,e[c+5],12,1200080426),s=xt(s,i,t,a,e[c+6],17,-1473231341),a=xt(a,s,i,t,e[c+7],22,-45705983),t=xt(t,a,s,i,e[c+8],7,1770035416),i=xt(i,t,a,s,e[c+9],12,-1958414417),s=xt(s,i,t,a,e[c+10],17,-42063),a=xt(a,s,i,t,e[c+11],22,-1990404162),t=xt(t,a,s,i,e[c+12],7,1804603682),i=xt(i,t,a,s,e[c+13],12,-40341101),s=xt(s,i,t,a,e[c+14],17,-1502002290),a=xt(a,s,i,t,e[c+15],22,1236535329),t=Ot(t,a,s,i,e[c+1],5,-165796510),i=Ot(i,t,a,s,e[c+6],9,-1069501632),s=Ot(s,i,t,a,e[c+11],14,643717713),a=Ot(a,s,i,t,e[c],20,-373897302),t=Ot(t,a,s,i,e[c+5],5,-701558691),i=Ot(i,t,a,s,e[c+10],9,38016083),s=Ot(s,i,t,a,e[c+15],14,-660478335),a=Ot(a,s,i,t,e[c+4],20,-405537848),t=Ot(t,a,s,i,e[c+9],5,568446438),i=Ot(i,t,a,s,e[c+14],9,-1019803690),s=Ot(s,i,t,a,e[c+3],14,-187363961),a=Ot(a,s,i,t,e[c+8],20,1163531501),t=Ot(t,a,s,i,e[c+13],5,-1444681467),i=Ot(i,t,a,s,e[c+2],9,-51403784),s=Ot(s,i,t,a,e[c+7],14,1735328473),a=Ot(a,s,i,t,e[c+12],20,-1926607734),t=Rt(t,a,s,i,e[c+5],4,-378558),i=Rt(i,t,a,s,e[c+8],11,-2022574463),s=Rt(s,i,t,a,e[c+11],16,1839030562),a=Rt(a,s,i,t,e[c+14],23,-35309556),t=Rt(t,a,s,i,e[c+1],4,-1530992060),i=Rt(i,t,a,s,e[c+4],11,1272893353),s=Rt(s,i,t,a,e[c+7],16,-155497632),a=Rt(a,s,i,t,e[c+10],23,-1094730640),t=Rt(t,a,s,i,e[c+13],4,681279174),i=Rt(i,t,a,s,e[c],11,-358537222),s=Rt(s,i,t,a,e[c+3],16,-722521979),a=Rt(a,s,i,t,e[c+6],23,76029189),t=Rt(t,a,s,i,e[c+9],4,-640364487),i=Rt(i,t,a,s,e[c+12],11,-421815835),s=Rt(s,i,t,a,e[c+15],16,530742520),a=Rt(a,s,i,t,e[c+2],23,-995338651),t=At(t,a,s,i,e[c],6,-198630844),i=At(i,t,a,s,e[c+7],10,1126891415),s=At(s,i,t,a,e[c+14],15,-1416354905),a=At(a,s,i,t,e[c+5],21,-57434055),t=At(t,a,s,i,e[c+12],6,1700485571),i=At(i,t,a,s,e[c+3],10,-1894986606),s=At(s,i,t,a,e[c+10],15,-1051523),a=At(a,s,i,t,e[c+1],21,-2054922799),t=At(t,a,s,i,e[c+8],6,1873313359),i=At(i,t,a,s,e[c+15],10,-30611744),s=At(s,i,t,a,e[c+6],15,-1560198380),a=At(a,s,i,t,e[c+13],21,1309151649),t=At(t,a,s,i,e[c+4],6,-145523070),i=At(i,t,a,s,e[c+11],10,-1120210379),s=At(s,i,t,a,e[c+2],15,718787259),a=At(a,s,i,t,e[c+9],21,-343485551),t=dn(t,l),a=dn(a,d),s=dn(s,p),i=dn(i,h)}return[t,a,s,i]}function XA(e){if(e.length===0)return[];for(var n=e.length*8,t=new Uint32Array(Dg(n)),a=0;a<n;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function dn(e,n){var t=(e&65535)+(n&65535),a=(e>>16)+(n>>16)+(t>>16);return a<<16|t&65535}function ZA(e,n){return e<<n|e>>>32-n}function Ys(e,n,t,a,s,i){return dn(ZA(dn(dn(n,e),dn(a,i)),s),t)}function xt(e,n,t,a,s,i,c){return Ys(n&t|~n&a,e,n,s,i,c)}function Ot(e,n,t,a,s,i,c){return Ys(n&a|t&~a,e,n,s,i,c)}function Rt(e,n,t,a,s,i,c){return Ys(n^t^a,e,n,s,i,c)}function At(e,n,t,a,s,i,c){return Ys(t^(n|~a),e,n,s,i,c)}var QA=Pg("v3",48,VA);const eP=QA;function tP(e,n,t){e=e||{};var a=e.random||(e.rng||Rg)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,n){t=t||0;for(var s=0;s<16;++s)n[t+s]=a[s];return n}return qs(a)}function rP(e,n,t,a){switch(e){case 0:return n&t^~n&a;case 1:return n^t^a;case 2:return n&t^n&a^t&a;case 3:return n^t^a}}function Mu(e,n){return e<<n|e>>>32-n}function nP(e){var n=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,c=Math.ceil(i/16),l=new Array(c),d=0;d<c;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];l[d]=p}l[c-1][14]=(e.length-1)*8/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=(e.length-1)*8&4294967295;for(var m=0;m<c;++m){for(var _=new Uint32Array(80),S=0;S<16;++S)_[S]=l[m][S];for(var T=16;T<80;++T)_[T]=Mu(_[T-3]^_[T-8]^_[T-14]^_[T-16],1);for(var x=t[0],F=t[1],D=t[2],W=t[3],$=t[4],j=0;j<80;++j){var A=Math.floor(j/20),K=Mu(x,5)+rP(A,F,D,W)+$+n[A]+_[j]>>>0;$=W,W=D,D=Mu(F,30)>>>0,F=x,x=K}t[0]=t[0]+x>>>0,t[1]=t[1]+F>>>0,t[2]=t[2]+D>>>0,t[3]=t[3]+W>>>0,t[4]=t[4]+$>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var aP=Pg("v5",80,nP);const oP=aP,sP="00000000-0000-0000-0000-000000000000";function iP(e){if(!Gs(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const uP=Object.freeze(Object.defineProperty({__proto__:null,NIL:sP,parse:Ag,stringify:qs,v1:GA,v3:eP,v4:tP,v5:oP,validate:Gs,version:iP},Symbol.toStringTag,{value:"Module"})),cP=nw(uP);function Hc(e,n){if(!e||!n||!e.length||!n.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=n}Hc.prototype.convert=function(e){var n,t,a,s={},i=this.srcAlphabet.length,c=this.dstAlphabet.length,l=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(n=0;n<l;n++)s[n]=this.srcAlphabet.indexOf(e[n]);do{for(t=0,a=0,n=0;n<l;n++)t=t*i+s[n],t>=c?(s[a++]=parseInt(t/c,10),t=t%c):a>0&&(s[a++]=0);l=a,d=this.dstAlphabet.slice(t,t+1).concat(d)}while(a!==0);return d};Hc.prototype.isValid=function(e){for(var n=0;n<e.length;++n)if(this.srcAlphabet.indexOf(e[n])===-1)return!1;return!0};var lP=Hc,fP=lP;function co(e,n){var t=new fP(e,n);return function(a){return t.convert(a)}}co.BIN="01";co.OCT="01234567";co.DEC="0123456789";co.HEX="0123456789abcdef";var dP=co;const{v4:Nu}=cP,ns=dP,Lu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",pP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",hP={consistentLength:!0};let ju;const kp=(e,n,t)=>{const a=n(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},gP=(e,n)=>{const a=n(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[a[1],a[2],a[3],a[4],a[5]].join("-")},vP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Cs=(()=>{const e=(n,t)=>{const a=n||Lu,s={...hP,...t};if([...new Set(Array.from(a))].length!==a.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const i=vP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=ns(ns.HEX,a),d=ns(a,ns.HEX),p=()=>kp(Nu(),l,c),h={new:p,generate:p,uuid:Nu,fromUUID:m=>kp(m,l,c),toUUID:m=>gP(m,d),alphabet:a,maxLength:i};return Object.freeze(h),h};return e.constants={flickrBase58:Lu,cookieBase90:pP},e.uuid=Nu,e.generate=()=>(ju||(ju=e(Lu).generate),ju()),e})(),Me=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Me||{});const yP=[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE,Me.METHOD],xs="guest",Gc=[{key:"read",label:"Read",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE,Me.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Me.METHOD]}];function cr(e,...n){return Array.from(new Set([...e,...n]))}function Ig(e){const n={},t=new Map;e.forEach(d=>{const p=d.id||Cs.generate();n[p]={...d,id:p,parents:[],includes:cr(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(n).forEach(([d,p])=>{const h=p.includes.map(m=>{const _=t.get(m);return _?(n[_].parents=cr(n[_].parents,_),_):""}).filter(Boolean);n[d]={...p,includes:h}});const a=Fg(n),s=new Set;function i(d){s.add(d.id),d.includes=d.includes.filter(p=>!s.has(p))}if(a.forEach(i),a.forEach(d=>d.parents=[]),a.forEach(d=>{d.includes.forEach(p=>n[p].parents.push(d.id))}),Object.values(n).find(({privilege:d})=>d===xs))return n;const l=Cs.generate();return{[l]:{id:l,privilege:xs,includes:[],parents:[],resources:[]},...n}}function Fg(e){return Object.values(e).sort((n,t)=>n.parents.length-t.parents.length)}function zs(e,n){const t=n[e];let a=[];return t&&t.parents.forEach(s=>{a=cr(a,...zs(s,n),s)}),a}function Os(e,n){const t=n[e];let a=[];return t&&t.includes.forEach(s=>{a=cr(a,...Os(s,n),s)}),a}function mP(e,n){const t=n[e];if(!t)return[];const a=[e,...zs(e,n),...t.includes];return Object.keys(n).filter(s=>!a.includes(s))}function bP(e,n){return n[e]?Object.keys(n).reduce((a,s)=>s===e?a:{...a,[s]:{...n[s],parents:n[s].parents.filter(i=>i!==e),includes:n[s].includes.filter(i=>i!==e)}},{}):n}function _P(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:cr(a.includes,n)},[n]:{...t[n],parents:cr(s.parents,e)}}}function EP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==n)},[n]:{...t[n],parents:t[n].parents.filter(i=>i!==e)}}}function $g(e,n){E.validateName(e),Object.entries(n).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=Cs.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...n}}function SP(e,n,t,a,s){let i=$g(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=jg(c[1].id,n,t,a,i),i):s}function wP(e,n,t){if(!e)throw new Error("Please enter a name");if(!t[n])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&n!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[n]:{...t[n],privilege:e}}}function TP(e,n){return e.map(t=>Qr(t,n))}function Qr(e,n){return n[e]?n[e]:null}function Mg({applyTo:e,type:n,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=Ke.find(Gc,["key",s]);return!c||!c.canApplyTo.includes(n)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=cr(a[d]||[],s)}),a},{})}const ic=(e,n=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${n?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${n?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${n?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function qc(e){return{permissions:Gc.filter(({canApplyTo:n})=>n.includes(e.type)).map(({key:n,label:t})=>{const a={name:n,from:[]};switch(e.type){case Me.DATASTORE:return{...a,info:ic(t,!0)};case Me.DATACLASS:return{...a,info:ic(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Ng(e,n){const t=Lg(n),a={};return e.filter(({type:s})=>yP.includes(s)).forEach(s=>{const i=Mg(s);Object.entries(i).forEach(([c,l])=>{var h;const d=(h=t[c])==null?void 0:h.id;if(!d)return;a[d]=a[d]||{...n[d]};let p=Ke.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=qc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...n,...a}}function Lg(e){return Object.values(e).reduce((n,t)=>({...n,[t.privilege]:t}),{})}function Vs(e){var t;const n=Ig(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:Ng(((t=e.permissions)==null?void 0:t.allowed)||[],n),roles:(e.roles||[]).map(({id:a=Cs.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:cr(i).map(c=>{var l;return(l=Object.values(n).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function Ks(e){const n=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...n,...n.map(a=>zs(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{forceLogin:e.forceLogin,permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=Ke.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:h})=>{h&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==xs).map(({id:a,includes:s,privilege:i})=>({id:a,privilege:i,includes:s.map(c=>e.privileges[c].privilege)})),roles:Object.values(e.roles).map(a=>({...a,privileges:a.privileges.map(s=>{var i;return(i=e.privileges[s])==null?void 0:i.privilege}).filter(Boolean)}))}}function CP(e,n){const t=n[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const h=l.reduce((m,_)=>[...m,...n[_][d]],[]);return h.length===0?p:(p.push(h),s(h,d,p))}function i(l){const d=[],p=[];for(let h=l.length-1;h>=0;h-=1){const m=l[h].filter(_=>d.includes(_)?!1:(d.push(_),!0));m.length>0&&p.unshift(cr(m))}return p}function c(l,d){const p=[];return l.reduce((h,m)=>(m.forEach(_=>{n[_][d==="parents"?"includes":"parents"].forEach(T=>{p.includes(T)&&h.push(d==="parents"?{source:_,target:T}:{source:T,target:_})}),p.push(_)}),h),[])}return a.children=s([e],"includes"),a.children=i(a.children),a.parents=s([e],"parents"),a.parents=i(a.parents),a.links=[...c([[e],...a.parents],"parents"),...c([[e],...a.children],"includes")],a}function xP(e,n,t){const a=Qr(e,t);if(!a||Ke.find(a.resources,{resource:n.applyTo,type:n.type}))return t;const s={...a,resources:[...a.resources,qc(n)]};return{...t,[e]:s}}function OP(e,n,t){const a=Qr(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==n.applyTo||c!==n.type)};return{...t,[e]:s}}function RP(e,n){const t=Qr(e,n);if(!t)return n;const a={...t,resources:t.resources.filter(s=>s.permissions.some(i=>i.from.length)).map(s=>({...s,permissions:s.permissions.map(i=>({...i,checked:!1}))}))};return{...n,[e]:a}}function jg(e,n,t,a,s){const i=Qr(e,s);if(!i)return s;const l=Ke.find(i.resources,{type:t,resource:n})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===n?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:n,permissions:Gc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:ic(d.key,t===Me.DATASTORE)}))}]};return{...s,[e]:l}}function AP(e,n,t,a){const s=Qr(e,a);if(!s)return a;const c=Ke.find(s.resources,{type:n.type,resource:n.resource})?{...s,resources:s.resources.map(l=>l.type===n.type&&l.resource===n.resource?{...l,permissions:n.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...n,permissions:n.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function PP(e,n){var d;const t=kg(e,n)||[],a=((d=Qr(e,n))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Me.METHOD)||[]).map(({resource:p})=>p);return Object.entries(n).reduce((p,[h,{resources:m}])=>(m.filter(({resource:_,type:S})=>S===Me.METHOD&&c.includes(_)).forEach(({permissions:_,resource:S})=>{var x;((x=_.find(({name:F})=>F==="promote"))==null?void 0:x.checked)&&(p[S]=cr(p[S]||[],h))}),p),{})}function kg(e,n){var c;const t=Qr(e,n);if(!t)return[];const a=(c=Object.values(n).find(l=>l.privilege===xs))==null?void 0:c.id;return(a&&a!==e?cr(Os(e,n),a):Os(e,n)).reduce((l,d)=>(n[d].resources.forEach(h=>{if(h.permissions.filter(({checked:S})=>S).length===0)return;const _=Ke.find(l,{type:h.type,resource:h.resource});if(!_){l.push({...h,permissions:h.permissions.map(S=>({...S,from:S.checked?[d]:[],checked:!1}))});return}_.permissions=_.permissions.map((S,T)=>{let{from:x=[]}=S;return h.permissions[T].checked&&!x.includes(d)&&(x=[...x,d]),{...S,from:x,checked:S.checked}})}),l),Ke.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const DP=e=>e.reduce((n,t)=>({...n,[t.id]:{...t}}),{}),IP=(e,n)=>n[e]?Object.values(n).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):n,FP=(e,n,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:n}}:{...a,[s.id]:s},{}):t,$P=(e,n)=>{const t={id:e,role:"",privileges:[]};return{...n,[t.id]:t}},MP=(e,n)=>{if(E.validateName(e.role),Object.values(n).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(n).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},NP={list:[]},Bp=(e,n)=>e.list.filter(t=>t.id!==n),Bg=lr({name:"modals",initialState:NP,reducers:{createModal:(e,n)=>{e.list.push(n.payload)},editModal:(e,n)=>{const{id:t,...a}=n.payload,s=e.list.find(E.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,n)=>{const t=n.payload;e.list=Bp(e,t)},closeModal:(e,n)=>{const{id:t,reason:a}=n.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=Bp(e,t)}}}),{createModal:Wg,removeModal:Ug,closeModal:LP,editModal:jP}=Bg.actions;var uc={exports:{}},oa={};/*
|
|
91
91
|
object-assign
|
|
92
92
|
(c) Sindre Sorhus
|
|
93
93
|
@license MIT
|
|
94
|
-
*/var ku,
|
|
94
|
+
*/var ku,Wp;function Hg(){if(Wp)return ku;Wp=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(c).map(function(h){return c[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ku=s()?Object.assign:function(i,c){for(var l,d=a(i),p,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var m in l)n.call(l,m)&&(d[m]=l[m]);if(e){p=e(l);for(var _=0;_<p.length;_++)t.call(l,p[_])&&(d[p[_]]=l[p[_]])}}return d},ku}/** @license React v17.0.2
|
|
95
95
|
* react-jsx-runtime.production.min.js
|
|
96
96
|
*
|
|
97
97
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the MIT license found in the
|
|
100
100
|
* LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/var
|
|
101
|
+
*/var Up;function kP(){if(Up)return oa;Up=1,Hg();var e=dt,n=60103;if(oa.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;n=t("react.element"),oa.Fragment=t("react.fragment")}var a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,p){var h,m={},_=null,S=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(S=d.ref);for(h in d)s.call(d,h)&&!i.hasOwnProperty(h)&&(m[h]=d[h]);if(l&&l.defaultProps)for(h in d=l.defaultProps,d)m[h]===void 0&&(m[h]=d[h]);return{$$typeof:n,type:l,key:_,ref:S,props:m,_owner:a.current}}return oa.jsx=c,oa.jsxs=c,oa}var Hp={};/** @license React v17.0.2
|
|
102
102
|
* react-jsx-runtime.development.js
|
|
103
103
|
*
|
|
104
104
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
105
105
|
*
|
|
106
106
|
* This source code is licensed under the MIT license found in the
|
|
107
107
|
* LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/var
|
|
109
|
-
`+fe+g}}var me=!1,ge;{var J=typeof WeakMap=="function"?WeakMap:Map;ge=new J}function N(g,
|
|
108
|
+
*/var Gp;function BP(){return Gp||(Gp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var n=dt,t=Hg(),a=60103,s=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,d=60110,p=60112,h=60113,m=60120,_=60115,S=60116,T=60121,x=60122,F=60117,D=60129,W=60131;if(typeof Symbol=="function"&&Symbol.for){var $=Symbol.for;a=$("react.element"),s=$("react.portal"),e.Fragment=$("react.fragment"),i=$("react.strict_mode"),c=$("react.profiler"),l=$("react.provider"),d=$("react.context"),p=$("react.forward_ref"),h=$("react.suspense"),m=$("react.suspense_list"),_=$("react.memo"),S=$("react.lazy"),T=$("react.block"),x=$("react.server.block"),F=$("react.fundamental"),$("react.scope"),$("react.opaque.id"),D=$("react.debug_trace_mode"),$("react.offscreen"),W=$("react.legacy_hidden")}var j=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function K(g){if(g===null||typeof g!="object")return null;var O=j&&g[j]||g[A];return typeof O=="function"?O:null}var G=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(g){{for(var O=arguments.length,I=new Array(O>1?O-1:0),q=1;q<O;q++)I[q-1]=arguments[q];ie("error",g,I)}}function ie(g,O,I){{var q=G.ReactDebugCurrentFrame,ae=q.getStackAddendum();ae!==""&&(O+="%s",I=I.concat([ae]));var oe=I.map(function(ee){return""+ee});oe.unshift("Warning: "+O),Function.prototype.apply.call(console[g],console,oe)}}var We=!1;function Re(g){return!!(typeof g=="string"||typeof g=="function"||g===e.Fragment||g===c||g===D||g===i||g===h||g===m||g===W||We||typeof g=="object"&&g!==null&&(g.$$typeof===S||g.$$typeof===_||g.$$typeof===l||g.$$typeof===d||g.$$typeof===p||g.$$typeof===F||g.$$typeof===T||g[0]===x))}function st(g,O,I){var q=O.displayName||O.name||"";return g.displayName||(q!==""?I+"("+q+")":I)}function Z(g){return g.displayName||"Context"}function we(g){if(g==null)return null;if(typeof g.tag=="number"&&Y("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case e.Fragment:return"Fragment";case s:return"Portal";case c:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case m:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case d:var O=g;return Z(O)+".Consumer";case l:var I=g;return Z(I._context)+".Provider";case p:return st(g,g.render,"ForwardRef");case _:return we(g.type);case T:return we(g._render);case S:{var q=g,ae=q._payload,oe=q._init;try{return we(oe(ae))}catch{return null}}}return null}var Xe=0,Ze,Ue,et,Dt,H,V,ve;function he(){}he.__reactDisabledLog=!0;function le(){{if(Xe===0){Ze=console.log,Ue=console.info,et=console.warn,Dt=console.error,H=console.group,V=console.groupCollapsed,ve=console.groupEnd;var g={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Xe++}}function ye(){{if(Xe--,Xe===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},g,{value:Ze}),info:t({},g,{value:Ue}),warn:t({},g,{value:et}),error:t({},g,{value:Dt}),group:t({},g,{value:H}),groupCollapsed:t({},g,{value:V}),groupEnd:t({},g,{value:ve})})}Xe<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=G.ReactCurrentDispatcher,fe;function ue(g,O,I){{if(fe===void 0)try{throw Error()}catch(ae){var q=ae.stack.trim().match(/\n( *(at )?)/);fe=q&&q[1]||""}return`
|
|
109
|
+
`+fe+g}}var me=!1,ge;{var J=typeof WeakMap=="function"?WeakMap:Map;ge=new J}function N(g,O){if(!g||me)return"";{var I=ge.get(g);if(I!==void 0)return I}var q;me=!0;var ae=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=se.current,se.current=null,le();try{if(O){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(ut){q=ut}Reflect.construct(g,[],ee)}else{try{ee.call()}catch(ut){q=ut}g.call(ee.prototype)}}else{try{throw Error()}catch(ut){q=ut}g()}}catch(ut){if(ut&&q&&typeof ut.stack=="string"){for(var Q=ut.stack.split(`
|
|
110
110
|
`),Ie=q.stack.split(`
|
|
111
111
|
`),be=Q.length-1,Ee=Ie.length-1;be>=1&&Ee>=0&&Q[be]!==Ie[Ee];)Ee--;for(;be>=1&&Ee>=0;be--,Ee--)if(Q[be]!==Ie[Ee]){if(be!==1||Ee!==1)do if(be--,Ee--,Ee<0||Q[be]!==Ie[Ee]){var at=`
|
|
112
|
-
`+Q[be].replace(" at new "," at ");return typeof g=="function"&&ge.set(g,at),at}while(be>=1&&Ee>=0);break}}}finally{me=!1,se.current=oe,ye(),Error.prepareStackTrace=ae}var Ft=g?g.displayName||g.name:"",
|
|
112
|
+
`+Q[be].replace(" at new "," at ");return typeof g=="function"&&ge.set(g,at),at}while(be>=1&&Ee>=0);break}}}finally{me=!1,se.current=oe,ye(),Error.prepareStackTrace=ae}var Ft=g?g.displayName||g.name:"",xn=Ft?ue(Ft):"";return typeof g=="function"&&ge.set(g,xn),xn}function Ge(g,O,I){return N(g,!1)}function qe(g){var O=g.prototype;return!!(O&&O.isReactComponent)}function it(g,O,I){if(g==null)return"";if(typeof g=="function")return N(g,qe(g));if(typeof g=="string")return ue(g);switch(g){case h:return ue("Suspense");case m:return ue("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case p:return Ge(g.render);case _:return it(g.type,O,I);case T:return Ge(g._render);case S:{var q=g,ae=q._payload,oe=q._init;try{return it(oe(ae),O,I)}catch{}}}return""}var vn={},It=G.ReactDebugCurrentFrame;function er(g){if(g){var O=g._owner,I=it(g.type,g._source,O?O.type:null);It.setExtraStackFrame(I)}else It.setExtraStackFrame(null)}function Ea(g,O,I,q,ae){{var oe=Function.call.bind(Object.prototype.hasOwnProperty);for(var ee in g)if(oe(g,ee)){var Q=void 0;try{if(typeof g[ee]!="function"){var Ie=Error((q||"React class")+": "+I+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}Q=g[ee](O,ee,q,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Q=be}Q&&!(Q instanceof Error)&&(er(ae),Y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",I,ee,typeof Q),er(null)),Q instanceof Error&&!(Q.message in vn)&&(vn[Q.message]=!0,er(ae),Y("Failed %s type: %s",I,Q.message),er(null))}}}var bt=G.ReactCurrentOwner,pt=Object.prototype.hasOwnProperty,Ir={key:!0,ref:!0,__self:!0,__source:!0},wr,yn,qt;qt={};function Sa(g){if(pt.call(g,"ref")){var O=Object.getOwnPropertyDescriptor(g,"ref").get;if(O&&O.isReactWarning)return!1}return g.ref!==void 0}function Fr(g){if(pt.call(g,"key")){var O=Object.getOwnPropertyDescriptor(g,"key").get;if(O&&O.isReactWarning)return!1}return g.key!==void 0}function Tr(g,O){if(typeof g.ref=="string"&&bt.current&&O&&bt.current.stateNode!==O){var I=we(bt.current.type);qt[I]||(Y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',we(bt.current.type),g.ref),qt[I]=!0)}}function mn(g,O){{var I=function(){wr||(wr=!0,Y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(g,"key",{get:I,configurable:!0})}}function bn(g,O){{var I=function(){yn||(yn=!0,Y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(g,"ref",{get:I,configurable:!0})}}var _n=function(g,O,I,q,ae,oe,ee){var Q={$$typeof:a,type:g,key:O,ref:I,props:ee,_owner:oe};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function En(g,O,I,q,ae){{var oe,ee={},Q=null,Ie=null;I!==void 0&&(Q=""+I),Fr(O)&&(Q=""+O.key),Sa(O)&&(Ie=O.ref,Tr(O,ae));for(oe in O)pt.call(O,oe)&&!Ir.hasOwnProperty(oe)&&(ee[oe]=O[oe]);if(g&&g.defaultProps){var be=g.defaultProps;for(oe in be)ee[oe]===void 0&&(ee[oe]=be[oe])}if(Q||Ie){var Ee=typeof g=="function"?g.displayName||g.name||"Unknown":g;Q&&mn(ee,Ee),Ie&&bn(ee,Ee)}return _n(g,Q,Ie,ae,q,bt.current,ee)}}var dr=G.ReactCurrentOwner,$r=G.ReactDebugCurrentFrame;function _t(g){if(g){var O=g._owner,I=it(g.type,g._source,O?O.type:null);$r.setExtraStackFrame(I)}else $r.setExtraStackFrame(null)}var pr;pr=!1;function hr(g){return typeof g=="object"&&g!==null&&g.$$typeof===a}function Sn(){{if(dr.current){var g=we(dr.current.type);if(g)return`
|
|
113
113
|
|
|
114
|
-
Check the render method of \``+g+"`."}return""}}function wa(g){{if(g!==void 0){var
|
|
114
|
+
Check the render method of \``+g+"`."}return""}}function wa(g){{if(g!==void 0){var O=g.fileName.replace(/^.*[\\\/]/,""),I=g.lineNumber;return`
|
|
115
115
|
|
|
116
|
-
Check your code at `+
|
|
116
|
+
Check your code at `+O+":"+I+"."}return""}}var wn={};function Wn(g){{var O=Sn();if(!O){var I=typeof g=="string"?g:g.displayName||g.name;I&&(O=`
|
|
117
117
|
|
|
118
|
-
Check the top-level render call using <`+I+">.")}return R}}function en(g,R){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=Wn(R);if(wn[I])return;wn[I]=!0;var q="";g&&g._owner&&g._owner!==dr.current&&(q=" It was passed a child from "+we(g._owner.type)+"."),_t(g),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,q),_t(null)}}function Tn(g,R){{if(typeof g!="object")return;if(Array.isArray(g))for(var I=0;I<g.length;I++){var q=g[I];hr(q)&&en(q,R)}else if(hr(g))g._store&&(g._store.validated=!0);else if(g){var ae=K(g);if(typeof ae=="function"&&ae!==g.entries)for(var oe=ae.call(g),ee;!(ee=oe.next()).done;)hr(ee.value)&&en(ee.value,R)}}}function Ta(g){{var R=g.type;if(R==null||typeof R=="string")return;var I;if(typeof R=="function")I=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===p||R.$$typeof===_))I=R.propTypes;else return;if(I){var q=we(R);Ea(I,g.props,"prop",q,g)}else if(R.PropTypes!==void 0&&!pr){pr=!0;var ae=we(R);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ae||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xa(g){{for(var R=Object.keys(g.props),I=0;I<R.length;I++){var q=R[I];if(q!=="children"&&q!=="key"){_t(g),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),_t(null);break}}g.ref!==null&&(_t(g),Y("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function xn(g,R,I,q,ae,oe){{var ee=Oe(g);if(!ee){var Q="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=wa(ae);Ie?Q+=Ie:Q+=Sn();var be;g===null?be="null":Array.isArray(g)?be="array":g!==void 0&&g.$$typeof===a?(be="<"+(we(g.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=En(g,R,I,ae,oe);if(Ee==null)return Ee;if(ee){var at=R.children;if(at!==void 0)if(q)if(Array.isArray(at)){for(var Ft=0;Ft<at.length;Ft++)Tn(at[Ft],g);Object.freeze&&Object.freeze(at)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Tn(at,g)}return g===e.Fragment?xa(Ee):Ta(Ee),Ee}}function Un(g,R,I){return xn(g,R,I,!0)}function Ca(g,R,I){return xn(g,R,I,!1)}var Ra=Ca,Oa=Un;e.jsx=Ra,e.jsxs=Oa}()}(Up)),Up}process.env.NODE_ENV==="production"?uc.exports=jP():uc.exports=kP();var zr=uc.exports;const BP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),WP=e=>zr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[zr.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),UP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),HP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})}),GP={FdSave:UP,FdWarningDanger:HP,FdInfoCircle:WP,FdInfoBold:BP};var Gt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Gt||{}),Dr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Dr||{}),qc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(qc||{});const fr=re("modals/open",async(e,{dispatch:n})=>{const{type:t=Gt.ALERT,store:a=kv()}=e,s=wc();switch(n(Bg({id:s,type:t,isOpen:!0,...e})),t){case Gt.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(h=>h.id===s);if(d&&!d.isOpen){const h=d.closeReason===qc.CONFIRMED,m=Ke.entries((p=d.views)==null?void 0:p.toggles).reduce((_,S)=>({..._,[S[0]]:S[1].value}),{});n(Wg(s)),c(),i({confirmed:h,options:m})}})});default:return{}}}),Hg=()=>E.getFileContent({name:E.ROLES_TAB_PATH}),Gg="Roles & Privileges",Os=re("roles/fetchRoles",async(e,{dispatch:n,rejectWithValue:t})=>{var i;let a;try{a=await Hg()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:E.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Gg,type:E.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:E.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return n(Lt(s)),{...a,content:Vs(a.content)}}),qg=re("roles/fetchRolesChanges",async(e,{getState:n})=>{const{tabs:t}=n().root;if(t.find(s=>s.path===E.ROLES_TAB_PATH)){const{date:s}=n().roles;if(s&&await Yc(s))return{old:!0}}return{}}),Yc=async e=>{if(!e)return!1;try{const n=await Hg();if(n.date){const t=new Date(e),a=new Date(n.date);if(t>a)return!0}}catch(n){if(!Array.isArray(n==null?void 0:n.data.__ERROR))throw n}return!1},cc=re("roles/saveRoles",async(e,{getState:n,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=n().roles;if(s.old||await Yc(i)){const{confirmed:d}=await a(fr({title:Gg,message:"New content has been found on the server. Are you sure you want to continue?",type:Gt.CONFIRM,icon:"FdSave"})).unwrap();if(!d)return t({old:!0})}return await E.setFileContent({name:E.ROLES_TAB_PATH,content:Ks(e)})}catch{return t("Error while loading the roles")}}),Yg=lr({name:"roles",initialState:()=>{const{roles:e}=pa(),{roles:n={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:n,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,n)=>{e.privileges=n.payload,e.flags.touched=!0},updateRoles:(e,n)=>{e.roles=n.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,n)=>{e.roles=n.payload.roles,e.privileges=n.payload.privileges},toggleTab:(e,n)=>{e.selectedTab=n.payload},toggleForceLogin:(e,n)=>{e.forceLogin!==n.payload&&(e.forceLogin=n.payload,e.flags.touched=!0)},setRolesContent(e,n){const{content:t,flags:a={},...s}=n.payload,i=Vs(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(Os.fulfilled,(n,t)=>{const{content:a,date:s}=t.payload;n={...n,...a,date:s}}).addCase(Os.rejected,n=>({...n,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(cc.fulfilled,(n,t)=>({...n,flags:{...n.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(cc.rejected,(n,t)=>Ih.isString(t.payload)?n:{...n,flags:{...n.flags,...t.payload}}).addCase(qg.fulfilled,(n,t)=>({...n,flags:{...n.flags,...t.payload}})).addCase(la.fulfilled,(n,t)=>{!t.payload||t.payload.path!==E.ROLES_TAB_PATH||(n.flags.touched=!1,n.flags.old=!1)}).addCase(Qc.fulfilled,(n,t)=>{t.meta.arg!==E.ROLES_TAB_PATH||!t.payload||(n.flags.touched=!1,n.flags.old=!1)})}}),{updatePrivileges:zg,updateRoles:Vg,setRolesContent:zc,toggleTab:qP,toggleForceLogin:YP,updateRolesAndPrivileges:Vc}=Yg.actions,zP=Yg.reducer,Kc=re("settings/fetch",async()=>await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:E.SETTINGS_TAB_PATH,content:!0,as:"json"})),Kg=re("settings/app",E.getAppSettings),VP=Th(),Gp={session:{"studio.tips":!0,"studio.notifications":!0,"studio.enablePreview":!1,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":Bc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:E.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},KP={...Gp,session:{...Gp.session,...VP},welcometour:{}},Jg=lr({name:"settings",initialState:KP,reducers:{setSetting(e,n){const{path:t,settingsKey:a,value:s}=n.payload;e[t][a]=s},setSettings(e,n){const{path:t,value:a}=n.payload;e[t]={...e[t],...a}},setSettingsAsText(e,n){const{path:t,settings:a}=n.payload;e[t]=a}},extraReducers(e){e.addCase(Kc.fulfilled,(n,t)=>{n.project={...n.project,...t.payload.content}}),e.addCase(Kg.fulfilled,(n,t)=>{n.server=t.payload,n.server.qodly&&(n.project["webforms.display-mode"]="airy")})}}),{setSetting:lc,setSettings:Js,setSettingsAsText:JP}=Jg.actions,XP=Jg.reducer,fc=e=>{const n=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):n.indexOf(t.type)-n.indexOf(a.type))},Fe=(e,n)=>e.reduce((t,a)=>a.path===n.path&&a.type===n.type?[...t,n]:a.children?[...t,{...a,children:fc(Fe(a.children,n))}]:[...t,a],[]),vt=(e,n)=>e.reduce((t,a)=>t||(a.path===n?a:a.children?vt(a.children,n):null),null),ZP=[{name:E.FolderRootPath.WEBFORMS,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:E.FolderRootPath.METHODS,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:E.FolderRootPath.CLASSES,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:E.FolderRootPath.SHARED,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:E.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:E.FileFolderType.FILE,ext:"json",path:"roles",error:null,flags:{},config:{editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},isRoot:!0},{name:"Model",type:E.FileFolderType.MODEL,ext:"4DModel",path:"model",error:null,flags:{},config:{editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]}},{name:"Settings",type:E.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Xg=lr({name:"explorer",initialState:ZP,reducers:{toggleExpandFolder:(e,n)=>(e=Fe(e,{...n.payload,flags:{...n.payload.flags,expanded:!n.payload.flags.expanded}}),e),expandFolder:(e,n)=>(e=Fe(e,{...n.payload,flags:{...n.payload.flags,expanded:!0}}),e),openAddFileInput:(e,n)=>Fe(e,{...n.payload,flags:{...n.payload.flags,adding:!0}}),addNewFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Fe(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Fe(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,n)=>{const{parent:t,child:a}=n.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Fe(e,{...t,children:[a,...s]})},setFolderChildren:(e,n)=>{const t=vt(e,n.payload.parentPath);return t?Fe(e,{...t,children:n.payload.children}):e}},extraReducers:e=>{e.addCase(ca.pending,(n,t)=>{const{file:a,newname:s}=t.meta.arg,i=vt(n,a.path);if(!i)return n;const c=a.path.split("/");c.pop();const l=`${c.join("/")}/${a.name}.${a.ext}`,d=`${c.join("/")}/${s}.${a.ext}`;switch(a.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Fe(n,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(ca.fulfilled,(n,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=vt(n,a.path);if(!i)return n;switch(s.old.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Fe(n,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(ca.rejected,(n,t)=>{const{file:a}=t.meta.arg,s=vt(n,a.path);return s?Fe(n,{...s,flags:{...s.flags,loading:!1}}):n}),e.addCase(Ar.pending,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Ar.fulfilled,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):n}),e.addCase(Ar.rejected,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):n}),e.addCase(Ja.pending,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Ja.fulfilled,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):n}),e.addCase(Ja.rejected,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):n}),e.addCase(us.pending,(n,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Fe(n,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(us.fulfilled,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=E.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=Er(`${a}${c?`.${c.toLowerCase()}`:""}`);return Fe(n,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(us.rejected,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Fe(n,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(cs.pending,(n,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Fe(n,{...s,children:[{name:`${a.name}_copy`,path:`${a.path}/${a.name}_copy`,type:a.type,error:null,flags:{loading:!0},permissions:{canRename:!0,canDelete:!0}},...s.children]})}),e.addCase(cs.fulfilled,(n,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=Er(`${s}${i?`.${i.toLowerCase()}`:""}`);return Fe(n,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(cs.rejected,(n,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Fe(n,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Za.pending,(n,t)=>{}),e.addCase(Za.fulfilled,(n,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=Vh(a.path),c=vt(n,i),l=vt(n,s.path),d=(m=c==null?void 0:c.children)==null?void 0:m.filter(_=>_.path!==a.path),p=s.path.split("/").length,h=a.path.split("/").length;return p>=h?(n=Fe(n,{...c,children:d}),n=Fe(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(n=Fe(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),n=Fe(n,{...c,children:d})),n}),e.addCase(Za.rejected,(n,t)=>{E.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(ua.pending,(n,t)=>{var C;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=E.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:h,supportedEditors:m}=Er(p);switch(c){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.WILL_CREATE,payload:{filePath:p}});break}const _=(C=s.children)==null?void 0:C.filter(F=>F.path!==`${i}/${a}`),S=[{name:a,path:`${i}/${a}`,type:E.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:h,supportedEditors:m},ext:d,date:new Date().toISOString()},..._],T=Fe(n,{...s,children:S});return Ih.merge(n,T)}),e.addCase(ua.fulfilled,(n,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=E.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:h}=Er(d),m=Fe(n,{name:a,path:`${s}/${a}`,type:E.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:h},ext:l,date:new Date().toISOString()});switch(i){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.DID_CREATE,payload:{filePath:d}});break}return n=m,n}),e.addCase(ua.rejected,(n,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=E.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=Er(`${s}${c?`.${c.toLowerCase()}`:""}`);return n=Fe(n,{name:a,path:`${s}/${a}`,type:E.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),n}),e.addMatcher(dh(Xa),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!0}})),n}),e.addMatcher(hh(Xa),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!1}})),n}),e.addMatcher(ph(Xa),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!1}})),E.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),n})}}),{toggleExpandFolder:QP,expandFolder:eD,openAddFileInput:tD,addNewFile:Zg,refreshFile:rD,removeFile:dc,setFolderChildren:nD}=Xg.actions;function Qg(e,n){switch(e){case E.FileFolderType.WEBFORMS:const t={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return n["webforms.display-mode"]===Wc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case E.FileFolderType.METHODS:return`//%attributes = {}
|
|
119
|
-
`;default:return""}}function
|
|
118
|
+
Check the top-level render call using <`+I+">.")}return O}}function en(g,O){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=Wn(O);if(wn[I])return;wn[I]=!0;var q="";g&&g._owner&&g._owner!==dr.current&&(q=" It was passed a child from "+we(g._owner.type)+"."),_t(g),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,q),_t(null)}}function Tn(g,O){{if(typeof g!="object")return;if(Array.isArray(g))for(var I=0;I<g.length;I++){var q=g[I];hr(q)&&en(q,O)}else if(hr(g))g._store&&(g._store.validated=!0);else if(g){var ae=K(g);if(typeof ae=="function"&&ae!==g.entries)for(var oe=ae.call(g),ee;!(ee=oe.next()).done;)hr(ee.value)&&en(ee.value,O)}}}function Ta(g){{var O=g.type;if(O==null||typeof O=="string")return;var I;if(typeof O=="function")I=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===p||O.$$typeof===_))I=O.propTypes;else return;if(I){var q=we(O);Ea(I,g.props,"prop",q,g)}else if(O.PropTypes!==void 0&&!pr){pr=!0;var ae=we(O);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ae||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ca(g){{for(var O=Object.keys(g.props),I=0;I<O.length;I++){var q=O[I];if(q!=="children"&&q!=="key"){_t(g),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),_t(null);break}}g.ref!==null&&(_t(g),Y("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function Cn(g,O,I,q,ae,oe){{var ee=Re(g);if(!ee){var Q="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=wa(ae);Ie?Q+=Ie:Q+=Sn();var be;g===null?be="null":Array.isArray(g)?be="array":g!==void 0&&g.$$typeof===a?(be="<"+(we(g.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=En(g,O,I,ae,oe);if(Ee==null)return Ee;if(ee){var at=O.children;if(at!==void 0)if(q)if(Array.isArray(at)){for(var Ft=0;Ft<at.length;Ft++)Tn(at[Ft],g);Object.freeze&&Object.freeze(at)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Tn(at,g)}return g===e.Fragment?Ca(Ee):Ta(Ee),Ee}}function Un(g,O,I){return Cn(g,O,I,!0)}function xa(g,O,I){return Cn(g,O,I,!1)}var Oa=xa,Ra=Un;e.jsx=Oa,e.jsxs=Ra}()}(Hp)),Hp}process.env.NODE_ENV==="production"?uc.exports=kP():uc.exports=BP();var zr=uc.exports;const WP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),UP=e=>zr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[zr.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),HP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),GP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})}),qP={FdSave:HP,FdWarningDanger:GP,FdInfoCircle:UP,FdInfoBold:WP};var Gt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Gt||{}),Dr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Dr||{}),Yc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Yc||{});const fr=re("modals/open",async(e,{dispatch:n})=>{const{type:t=Gt.ALERT,store:a=Bv()}=e,s=wc();switch(n(Wg({id:s,type:t,isOpen:!0,...e})),t){case Gt.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(h=>h.id===s);if(d&&!d.isOpen){const h=d.closeReason===Yc.CONFIRMED,m=Ke.entries((p=d.views)==null?void 0:p.toggles).reduce((_,S)=>({..._,[S[0]]:S[1].value}),{});n(Ug(s)),c(),i({confirmed:h,options:m})}})});default:return{}}}),Gg=()=>E.getFileContent({name:E.ROLES_TAB_PATH}),qg="Roles & Privileges",Rs=re("roles/fetchRoles",async(e,{dispatch:n,rejectWithValue:t})=>{var i;let a;try{a=await Gg()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:E.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:qg,type:E.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:E.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return n(Lt(s)),{...a,content:Vs(a.content)}}),Yg=re("roles/fetchRolesChanges",async(e,{getState:n})=>{const{tabs:t}=n().root;if(t.find(s=>s.path===E.ROLES_TAB_PATH)){const{date:s}=n().roles;if(s&&await zc(s))return{old:!0}}return{}}),zc=async e=>{if(!e)return!1;try{const n=await Gg();if(n.date){const t=new Date(e),a=new Date(n.date);if(t>a)return!0}}catch(n){if(!Array.isArray(n==null?void 0:n.data.__ERROR))throw n}return!1},cc=re("roles/saveRoles",async(e,{getState:n,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=n().roles;if(s.old||await zc(i)){const{confirmed:d}=await a(fr({title:qg,message:"New content has been found on the server. Are you sure you want to continue?",type:Gt.CONFIRM,icon:"FdSave"})).unwrap();if(!d)return t({old:!0})}return await E.setFileContent({name:E.ROLES_TAB_PATH,content:Ks(e)})}catch{return t("Error while loading the roles")}}),zg=lr({name:"roles",initialState:()=>{const{roles:e}=pa(),{roles:n={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:n,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,n)=>{e.privileges=n.payload,e.flags.touched=!0},updateRoles:(e,n)=>{e.roles=n.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,n)=>{e.roles=n.payload.roles,e.privileges=n.payload.privileges},toggleTab:(e,n)=>{e.selectedTab=n.payload},toggleForceLogin:(e,n)=>{e.forceLogin!==n.payload&&(e.forceLogin=n.payload,e.flags.touched=!0)},setRolesContent(e,n){const{content:t,flags:a={},...s}=n.payload,i=Vs(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(Rs.fulfilled,(n,t)=>{const{content:a,date:s}=t.payload;n={...n,...a,date:s}}).addCase(Rs.rejected,n=>({...n,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(cc.fulfilled,(n,t)=>({...n,flags:{...n.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(cc.rejected,(n,t)=>Fh.isString(t.payload)?n:{...n,flags:{...n.flags,...t.payload}}).addCase(Yg.fulfilled,(n,t)=>({...n,flags:{...n.flags,...t.payload}})).addCase(la.fulfilled,(n,t)=>{!t.payload||t.payload.path!==E.ROLES_TAB_PATH||(n.flags.touched=!1,n.flags.old=!1)}).addCase(el.fulfilled,(n,t)=>{t.meta.arg!==E.ROLES_TAB_PATH||!t.payload||(n.flags.touched=!1,n.flags.old=!1)})}}),{updatePrivileges:Vg,updateRoles:Kg,setRolesContent:Vc,toggleTab:YP,toggleForceLogin:zP,updateRolesAndPrivileges:Kc}=zg.actions,VP=zg.reducer,Jc=re("settings/fetch",async()=>await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:E.SETTINGS_TAB_PATH,content:!0,as:"json"})),Jg=re("settings/app",E.getAppSettings),KP=Ch(),qp={session:{"studio.tips":!0,"studio.notifications":!0,"studio.enablePreview":!1,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":Bc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.renderer.unsavedPopOverChoice":Wc.NONE,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:E.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},JP={...qp,session:{...qp.session,...KP},welcometour:{}},Xg=lr({name:"settings",initialState:JP,reducers:{setSetting(e,n){const{path:t,settingsKey:a,value:s}=n.payload;e[t][a]=s},setSettings(e,n){const{path:t,value:a}=n.payload;e[t]={...e[t],...a}},setSettingsAsText(e,n){const{path:t,settings:a}=n.payload;e[t]=a}},extraReducers(e){e.addCase(Jc.fulfilled,(n,t)=>{n.project={...n.project,...t.payload.content}}),e.addCase(Jg.fulfilled,(n,t)=>{n.server=t.payload,n.server.qodly&&(n.project["webforms.display-mode"]="airy")})}}),{setSetting:lc,setSettings:Js,setSettingsAsText:XP}=Xg.actions,ZP=Xg.reducer,fc=e=>{const n=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):n.indexOf(t.type)-n.indexOf(a.type))},Fe=(e,n)=>e.reduce((t,a)=>a.path===n.path&&a.type===n.type?[...t,n]:a.children?[...t,{...a,children:fc(Fe(a.children,n))}]:[...t,a],[]),vt=(e,n)=>e.reduce((t,a)=>t||(a.path===n?a:a.children?vt(a.children,n):null),null),QP=[{name:E.FolderRootPath.WEBFORMS,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:E.FolderRootPath.METHODS,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:E.FolderRootPath.CLASSES,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:E.FolderRootPath.SHARED,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:E.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:E.FileFolderType.FILE,ext:"json",path:"roles",error:null,flags:{},config:{editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},isRoot:!0},{name:"Model",type:E.FileFolderType.MODEL,ext:"4DModel",path:"model",error:null,flags:{},config:{editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]}},{name:"Settings",type:E.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Zg=lr({name:"explorer",initialState:QP,reducers:{toggleExpandFolder:(e,n)=>(e=Fe(e,{...n.payload,flags:{...n.payload.flags,expanded:!n.payload.flags.expanded}}),e),expandFolder:(e,n)=>(e=Fe(e,{...n.payload,flags:{...n.payload.flags,expanded:!0}}),e),openAddFileInput:(e,n)=>Fe(e,{...n.payload,flags:{...n.payload.flags,adding:!0}}),addNewFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Fe(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Fe(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,n)=>{const{parent:t,child:a}=n.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Fe(e,{...t,children:[a,...s]})},setFolderChildren:(e,n)=>{const t=vt(e,n.payload.parentPath);return t?Fe(e,{...t,children:n.payload.children}):e}},extraReducers:e=>{e.addCase(ca.pending,(n,t)=>{const{file:a,newname:s}=t.meta.arg,i=vt(n,a.path);if(!i)return n;const c=a.path.split("/");c.pop();const l=`${c.join("/")}/${a.name}.${a.ext}`,d=`${c.join("/")}/${s}.${a.ext}`;switch(a.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Fe(n,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(ca.fulfilled,(n,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=vt(n,a.path);if(!i)return n;switch(s.old.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Fe(n,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(ca.rejected,(n,t)=>{const{file:a}=t.meta.arg,s=vt(n,a.path);return s?Fe(n,{...s,flags:{...s.flags,loading:!1}}):n}),e.addCase(Ar.pending,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Ar.fulfilled,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):n}),e.addCase(Ar.rejected,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):n}),e.addCase(Ja.pending,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Ja.fulfilled,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):n}),e.addCase(Ja.rejected,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):n}),e.addCase(us.pending,(n,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Fe(n,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(us.fulfilled,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=E.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=Er(`${a}${c?`.${c.toLowerCase()}`:""}`);return Fe(n,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(us.rejected,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Fe(n,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(cs.pending,(n,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Fe(n,{...s,children:[{name:`${a.name}_copy`,path:`${a.path}/${a.name}_copy`,type:a.type,error:null,flags:{loading:!0},permissions:{canRename:!0,canDelete:!0}},...s.children]})}),e.addCase(cs.fulfilled,(n,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=Er(`${s}${i?`.${i.toLowerCase()}`:""}`);return Fe(n,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(cs.rejected,(n,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Fe(n,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Za.pending,(n,t)=>{}),e.addCase(Za.fulfilled,(n,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=Kh(a.path),c=vt(n,i),l=vt(n,s.path),d=(m=c==null?void 0:c.children)==null?void 0:m.filter(_=>_.path!==a.path),p=s.path.split("/").length,h=a.path.split("/").length;return p>=h?(n=Fe(n,{...c,children:d}),n=Fe(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(n=Fe(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),n=Fe(n,{...c,children:d})),n}),e.addCase(Za.rejected,(n,t)=>{E.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(ua.pending,(n,t)=>{var x;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=E.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:h,supportedEditors:m}=Er(p);switch(c){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.WILL_CREATE,payload:{filePath:p}});break}const _=(x=s.children)==null?void 0:x.filter(F=>F.path!==`${i}/${a}`),S=[{name:a,path:`${i}/${a}`,type:E.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:h,supportedEditors:m},ext:d,date:new Date().toISOString()},..._],T=Fe(n,{...s,children:S});return Fh.merge(n,T)}),e.addCase(ua.fulfilled,(n,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=E.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:h}=Er(d),m=Fe(n,{name:a,path:`${s}/${a}`,type:E.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:h},ext:l,date:new Date().toISOString()});switch(i){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.DID_CREATE,payload:{filePath:d}});break}return n=m,n}),e.addCase(ua.rejected,(n,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=E.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=Er(`${s}${c?`.${c.toLowerCase()}`:""}`);return n=Fe(n,{name:a,path:`${s}/${a}`,type:E.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),n}),e.addMatcher(ph(Xa),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!0}})),n}),e.addMatcher(gh(Xa),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!1}})),n}),e.addMatcher(hh(Xa),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!1}})),E.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),n})}}),{toggleExpandFolder:eD,expandFolder:tD,openAddFileInput:rD,addNewFile:Qg,refreshFile:nD,removeFile:dc,setFolderChildren:aD}=Zg.actions;function ev(e,n){switch(e){case E.FileFolderType.WEBFORMS:const t={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return n["webforms.display-mode"]===Uc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case E.FileFolderType.METHODS:return`//%attributes = {}
|
|
119
|
+
`;default:return""}}function tv(e,n,t){switch(n){case E.FileFolderType.MOBILEFORM:return`${e}.MForm`;case E.FileFolderType.WEBFORM:return`${e}.WebForm`;case E.FileFolderType.METHOD:case E.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function oD(e){switch(e){case E.FolderRootPath.WEBFORMS:return E.FileFolderType.WEBFORMS;case E.FolderRootPath.METHODS:return E.FileFolderType.METHODS;case E.FolderRootPath.CLASSES:return E.FileFolderType.CLASSES;case"Mobile":return E.FileFolderType.MOBILE;default:return e}}function rv(e){switch(e){case E.FileFolderType.WEBFORMS:return E.FileFolderType.WEBFORM;case E.FileFolderType.CLASSES:return E.FileFolderType.CLASS;case E.FileFolderType.METHODS:return E.FileFolderType.METHOD;case E.FileFolderType.FOLDER:return E.FileFolderType.FOLDER;case E.FileFolderType.MOBILE:return E.FileFolderType.MOBILEFORM;default:return e}}const sD=re("files/tryEditMethod",async({method:e},{dispatch:n})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=Er(e.filePath);return await n(Xc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:E.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),pc=re("explorer/createModelFiles",async(e,{dispatch:n,getState:t})=>{var m;const a=t(),s=E.FolderRootPath.CLASSES,i=a.settings.server.qodly,c=vt(a.explorer,s);if(!c)return;await n(Ar(s));const d=((m=t().explorer.find(_=>_.name===s))==null?void 0:m.children)||[];let p=[{content:"",name:""}];const h=_=>{switch(_){case"dataclass":return{name:e.type==="dataclass"?e.className:"DataStore",content:i?`extends DataClass
|
|
120
120
|
`:`Class extends DataClass
|
|
121
121
|
`};case"collection":return{name:e.type==="dataclass"?e.collectionName:"DataStore",content:i?`extends EntitySelection
|
|
122
122
|
`:`Class extends EntitySelection
|
|
@@ -124,34 +124,34 @@ Check the top-level render call using <`+I+">.")}return R}}function en(g,R){{if(
|
|
|
124
124
|
`:`Class extends Entity
|
|
125
125
|
`};case"model":return{name:"DataStore",content:i?`extends DataStoreImplementation
|
|
126
126
|
`:`Class extends DataStoreImplementation
|
|
127
|
-
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...h("dataclass")},{...h("collection")},{...h("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...h(e.toCreate)}]:p=[{...h("model")}],p=p.filter(_=>!d.find(({name:S,ext:T})=>S===_.name&&T===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:S})=>{await n(ua({type:E.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:S,qodly:a.settings.server.qodly}))})),await n(Ar(s))}),Ar=re("explorer/fetchFolderContent",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=Er(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),Ja=re("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=Er(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function sD(e){const n=e.split(".");return n.pop(),{name:n.join("."),ext:e.split(".")[e.split(".").length-1]}}const iD=re("explorer/uploadFile",async e=>{const n=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),uD=re("explorer/uploadFile",async({file:e,path:n,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=Er(n),{name:c,ext:l}=sD(e.name);a(Zg({parent:t,child:{name:c,path:`${n}/${e.name}?t=${Date.now()}`,type:e.type,error:null,flags:{loading:!0},config:{editor:s,supportedEditors:i},ext:l}}));try{const d=await fetch(`/rest/$upload?$sharedFolder=true&$filename=${e.name}&$path=${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(dc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&E.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Ar(t.path)),{status:d.status,fileName:e.name}}catch{return a(dc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),E.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),ua=re("explorer/createNewFile",async({fileName:e,type:n,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{server:{qodly:d},project:p}=l().settings;try{const h=await E.setFileContent({name:ev(e,n,d),content:s||Qg(n,p),path:t,asText:[E.FileFolderType.CLASS,E.FileFolderType.METHOD].includes(n)});return a.error&&(a.flags.expanded?await i(Ar(a.path)):await i(Ja(a.path))),{qodly:d,file:h,parentNode:a}}catch{return c("failed to create folder")}});function rv(e,n){const{qodly:t=!0,withExtension:a=!0}=n||{},s=E.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case E.FileFolderType.WEBFORM:i=`${E.FolderRootPath.WEBFORMS}/${e.name}`;break;case E.FileFolderType.METHOD:i=`${E.FolderRootPath.METHODS}/${e.name}`;break;case E.FileFolderType.CLASS:i=`${E.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const cD=re("explorer/createNewFileAndOpen",async(e,{dispatch:n,getState:t})=>{const a=await n(ua(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=rv(i,{withExtension:!1,qodly:s}),{editor:l}=Er(c);await n(Xa({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),us=re("explorer/createNewNode",async({fileName:e,path:n,parentNode:t},{rejectWithValue:a})=>{try{return{file:await E.createFolder({verb:E.DesignerRequestVerb.CREATE_FOLDER,path:`${n}/${e}`,recursive:!0}),parentNode:t}}catch{return E.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Xs=async(e,n={})=>{try{const t=e.path.split(".").at(-1),a=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:Ch(t)?"json":"text"}),s={editor:e.editor},i=E.getTypeFromExtension(e.path);i===E.FileFolderType.METHOD&&(s.attributes=E.parseAttributes(a.content),a.content=E.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return n.confirmed===void 0&&(n.confirmed=!0),{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:n.confirmed},extra:s,name:e.name,path:e.path,type:i,initialContent:c,content:c}}catch(t){const{data:a}=t;if(a.__ERROR.find(s=>s.errCode===E.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case E.ROLES_TAB_PATH:{const s={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:E.FileFolderType.ROLES,initialContent:s,content:s}}case E.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:E.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},Xa=re("explorer/openFile",async({file:e,inactive:n,isNew:t,flags:a={}},{getState:s,dispatch:i})=>{const{root:{tabs:c},roles:l,debugger:{sessions:d}}=s(),p=c.find(({path:_})=>e.path===_);if(p){const _={...p,extra:{...p==null?void 0:p.extra,editor:e.editor},flags:{...p==null?void 0:p.flags,...a}};return i(Lt(_)),_}if(e.path.startsWith("Debugger")){const _=d.find(S=>`Debugger/${S.threadId}`===e.path);if(_){const{source:{content:S},source:T}=_.currentStackFrame,C={name:e.name,type:E.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:S,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:S,flags:{confirmed:!0},extra:{source:T,editor:e.editor}};return i(Lt(C)),C}}let h=null;try{h=await Xs(e,a)}catch(_){const{data:S}=_;if(S.__ERROR.find(T=>[E.ERROR_CODES.JSON_MALFORMED,E.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(T.errCode))){const{confirmed:T}=await i(fr({title:"Corrupt file",type:Gt.CONFIRM,color:Dr.WARNING,message:"Open in code editor ?"})).unwrap();if(T){const C=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:F,date:D,ext:W}=C;h={date:D,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(W),confirmed:!0},extra:{editor:E.EDITOR.Code},name:e.name,path:e.path,type:E.getTypeFromExtension(e.path),initialContent:F,content:F}}}}return h&&(e.path===E.ROLES_TAB_PATH&&!l.flags.touched?i(zc({content:h.content,date:h.date})):e.path===E.SETTINGS_TAB_PATH&&i(Js({path:"project",value:h.content})),i((n?Dv:Lt)({...h,isNew:t})),h)}),Jc=re("explorer/openFileAtLine",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Lt(c)),c}const i=await Xs(e);return t(Lt(i)),i}),nv=re("explorer/injectContentAtLine",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const s=n();e.path.split("/").pop();const c=vt(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Xs({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:E.FileFolderType.CLASS,editor:c.config.editor});return await t(Lt(l)),{...e,path:`${c.path}.${c.ext}`}}),av=re("explorer/openFileAtSelection",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Lt(c)),c}const i=await Xs(e);return t(Lt(i)),i}),hc=re("explorer/deleteFile",async e=>{const{name:n,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await E.dropFile({root:E.FolderRootType.ROOT,type:tv(t),verb:E.DesignerRequestVerb.DROP,name:n,path:i.join("/")}),node:e}}),lD=re("explorer/deleteFolder",async e=>{const{path:n,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await E.removeItem({force:!0,path:n,verb:E.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),fD=re("explorer/removeFileNode",async(e,{getState:n,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await E.removeItem({verb:E.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&setTimeout(()=>{t(kn())},$s),e.ext){const{tabs:s}=n().root,i=s.findIndex(c=>c.path===a);i>=0&&t(al(i))}return{deleted:!0,node:e}}),ca=re("explorer/renameFile",async({file:e,newname:n})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${n}.${e.ext}`;return await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:n,path:i}}}const t=e.path.split("/");return t.pop(),await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${n}`}),{old:e,new:{...e,name:n,path:`${t.join("/")}/${n}`}}}),Za=re("explorer/relocateNode",async({draggedNode:e,newLocation:n},{rejectWithValue:t})=>{try{await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${n.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),cs=re("explorer/duplicateNode",async({node:e,duplicateName:n},{rejectWithValue:t,fulfillWithValue:a,getState:s})=>{const i=e.path.split("/");i.pop();try{const{tabs:c}=s().root,l=c.find(({path:m})=>m===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),h=await E.setFileContent({name:`${n}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...h,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),dD=re("explorer/executeMethod",async({methodName:e,params:n=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:n,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?E.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):E.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return E.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),pD=re("files/fetchFiles",async()=>E.getFolders(E.FolderRootType.WEBFORMS,E.FolderRootType.METHODS,E.FolderRootType.CLASSES)),Xc=re("tabs/renameDatasource",async(e,{dispatch:n,getState:t})=>{var S,T;const a=!!e.datasourceNamespace,{confirmed:s}=await n(fr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:Gt.CONFIRM,color:Dr.WARNING,views:{toggles:{},tips:a?[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated on opened web forms only"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]:[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]}})).unwrap();if(!s)return null;const{autoUpdateReferences:i,datasourceId:c,datasourceNamespace:l,value:d,path:p}=e,h=t();let m=[];if(a){const C=h.sharedDatasources.sources[l]||[];m.push(...C)}else if(p){const C=h.root.tabs.find(E.by("path",p));if(m=(T=(S=C==null?void 0:C.content)==null?void 0:S.metadata)==null?void 0:T.datasources,!m)return null}const _=new RegExp(`^${c}\\b`,"");if(m=m.map(C=>{const F=(E.isObjectDatasource(C)||!E.isSimpleDatasource(C))&&C.from&&_.test(C.from),D=C.events?C.events.map(W=>{var $,j,A,K;switch(W==null?void 0:W.type){case"method":{const G=W;return G.params?{...G,params:G.params.map(Y=>{var ie;return{...Y,datasource:(ie=Y.datasource)==null?void 0:ie.replace(new RegExp(`^${c}`,""),d)}}),returns:($=G.returns)!=null&&$.datasource?{...G.returns,datasource:(j=G.returns.datasource)==null?void 0:j.replace(new RegExp(`^${c}`,""),d)}:G.returns}:G}case"simple-action":{const G=W;return G.datasource?{...G,datasource:{...G.datasource,name:(A=G.datasource.name)==null?void 0:A.replace(new RegExp(`^${c}`,""),d),from:(K=G.datasource.from)==null?void 0:K.replace(new RegExp(`^${c}`,""),d)}}:G}default:return W}}):C.events;return C.id===c?{...C,id:d,events:D}:F&&C.from?{...C,from:C.from.replace(new RegExp(`^${c}`,""),d),events:D}:{...C,events:D}}),i){const C=a?`${l}:${c}`:`${c}`,F=a?`${l}:${d}`:`${d}`;E.datasourcesSubject.next({path:p??"",action:E.DatasourcesActions.RENAME,old_reference:C,new_reference:F,is_shared:a})}return{path:p,namespace:l,datasources:m}}),Zc=re("tabs/edit-datasource",(e,{getState:n})=>{var i,c;const t=n();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(E.by("path",e.path));l&&(a=((c=(i=l.content)==null?void 0:i.metadata)==null?void 0:c.datasources)||[])}return a.map(l=>l.id===e.datasourceId?Object.assign({},l,{[e.propertyKey]:e.value}):l)}),ov=re("tabs/fetchChanges",async(e,{getState:n})=>{const a=ba(n()).filter(s=>[E.FileFolderType.METHOD,E.FileFolderType.CLASS].includes(s.type));return E.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),hD=re("files/saveAll",async(e,{getState:n,dispatch:t})=>{const a=Mc(n());for(const s of a)t(la({tab:s}))}),Qc=re("files/tryCloseTab",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.findIndex(c=>c.path===e);if(s===-1)return!1;const i=a[s];if(i!=null&&i.flags.touched){const{confirmed:c}=await t(fr({title:Ms(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!c)return!1}return t(al(s)),i.path===E.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:E.ROLES_TAB_PATH,content:!0,as:"json"});t(zc({content:l.content,date:l.date}))})(),!0}),gD=re("files/tryCloseOtherTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(fr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Ov(e))}),vD=re("files/tryCloseAllTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(fr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Cv())}),yD=re("files/tryCloseRightTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=a.length-1;i>e;i-=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(fr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Rv(e))}),mD=re("files/tryCloseLeftTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=0;i<e;i+=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(fr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Av(e))}),gc=re("files/reloadTab",async(e,{dispatch:n})=>{if(e.flags.touched){const{confirmed:s}=await n(fr({title:Ms(e),message:"Changes made to the file will be lost. Continue?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!s)return}const t=Kh(e.path),a=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===E.ROLES_TAB_PATH){const{roles:s,privileges:i}=Vs(a.content);n(Vc({roles:s,privileges:i}))}else if(e.path===E.SETTINGS_TAB_PATH){const{content:s}=a;n(Js({path:"project",value:s}))}else{const{content:s}=a;e.type===E.FileFolderType.WEBFORM?E.webformSubject.next({path:e.path,action:E.WebformActions.RELOAD,payload:s.components}):e.type===E.FileFolderType.MODEL&&rg.next({action:"reload",payload:s})}return a}),la=re("files/saveTab",async({tab:e},{dispatch:n,getState:t})=>{const{path:a,content:s}=e;if(e.type===E.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await E.getFilesInfo({path:a});if(c.files[0]){const h=new Date(e.date),m=new Date(c.files[0].date);if(h.getTime()<m.getTime()){const{confirmed:_}=await n(fr({title:Ms(e),message:"New content has been found on the server. Are you sure you want to continue?",type:Gt.CONFIRM,icon:"FdSave"})).unwrap();if(!_)return n(xv({path:a,flags:{old:!0}})),null}}const l=await E.saveContent({verb:E.DesignerRequestVerb.SAVE_CONTENT,content:bD(e,t()),path:a});(e.type===E.FileFolderType.CLASS||e.type===E.FileFolderType.MODEL)&&setTimeout(()=>{n(kn())},$s);const d=(l.modelErrors||[]).map(h=>h.message),p=(l.permissionsErrors||[]).map(h=>h.message);return{...e,content:s,date:l.date,initialContent:s,errors:d.length>0||p.length>0?[{title:"Model errors",messages:d},{title:"Permissions errors",messages:p}]:[]}}),bD=(e,n)=>{switch(!0){case e.path==="settings.json":case e.path===E.SETTINGS_TAB_PATH:return n.settings.project;case e.type===E.FileFolderType.ROLES:return{...e.content,...Ks(n.roles)};case e.type===E.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},qp=async e=>{if(e.type===E.FileFolderType.DATA_EXPLORER)return{name:"Data Explorer",path:e.path,flags:{},view:{panel:{isOpen:!1,type:"",current:""}},type:e.type,date:new Date().toISOString()};const n=e.path.split("/").filter(Boolean)[0],t=await E.getFile({root:n,type:e.type,verb:E.DesignerRequestVerb.GET,name:e.name}),a={};t.type===E.FileFolderType.METHOD&&(a.attributes=E.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===E.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===E.FileFolderType.MODEL?xh(l):l}},sv=re("files/tryInjectMethod",async({type:e,dataclass:n},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=E.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!n)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=n,d=`Classes/${n}.${c}`;break;case"collection":l=`${n}Selection`,d=`Classes/${n}Selection.${c}`;break;case"entity":l=`${n}Entity`,d=`Classes/${n}Entity.${c}`;break;default:return p}const h=s.find(E.by("path",d));if(h)return a(Lt(h)),h;try{p=await qp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:E.FileFolderType.CLASS})}catch{n?await a(pc({type:"dataclass",className:n,collectionName:`${n}Selection`,toCreate:e})):await a(pc({type:"model"}))}return p=await qp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:E.FileFolderType.CLASS}),p.path=d,a(Lt(p)),p}),_D=re("roles/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===E.ROLES_TAB_PATH);if(s)return n(Lt(s)),s;n(Os())});function Yp(e,n){const{line:t,offset:a,type:s="saved"}=n;e.breakpoints[s].locations.push({line:t}),Ke.isNumber(a)&&(e.breakpoints[s].offset=a)}function zp(e,n,t,a){e.breakpoints[t].locations=n,Ke.isNumber(a)&&(e.breakpoints[t].offset=a)}function Vp({filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function Kp(e,n,t){let a=!1;const s=e.map(i=>i[t]!==n[t]?i:(a=!0,{...i,...n}));return a?s:[...s,n]}function as(e){return e.map(({label:n})=>({label:n}))}const iv=lr({name:"debugger",initialState:()=>{var n,t;const{debugger:e={meta:{state:Gr.DETACHED},list:[],sessions:[],expressions:[]}}=pa();return{meta:{...e.meta,state:((n=e.meta)==null?void 0:n.state)===Gr.ATTACHED?(t=e.meta)==null?void 0:t.state:Gr.DETACHED},list:e.list||[],sessions:e.sessions||[],expressions:e.expressions||[]}},reducers:{addBreakpointDecoration(e,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=n.payload,p=jn(e.list,t,s,i);if(p)Yp(p,d);else{if(a===E.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const h=Vp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Yp(h,d),e.list.push(h)}},removeBreakpointDecoration(e,n){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=n.payload;if(t.startsWith("Classes/")){const l=e.list.filter(d=>d.filePath===t);if(l.length>0){const d=s+i;l.forEach(p=>{const h=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(m=>m.line+h!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(m=>m.line+h!==d))})}}else{const l=jn(e.list,t,a);l&&(l.breakpoints[c].locations=l.breakpoints[c].locations.filter(d=>d.line!==s),c==="saved"&&(l.breakpoints.draft.locations=l.breakpoints.draft.locations.filter(d=>d.line!==s)))}},setBreakpointsDecoration(e,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:h="saved",clearDraft:m}=n.payload,_=jn(e.list,t,s);if(_)zp(_,d,h,p),m&&h!=="draft"&&(_.breakpoints.draft.locations=[]);else{const S=Vp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});zp(S,d,h,p),e.list.push(S)}},clearBreakpoints(e,n){const{filePath:t,type:a="saved"}=n.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath===t?{draft:!a||a==="draft"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},setActiveLine(e,n){const{threadId:t,line:a,highlight:s}=n.payload,i=ft(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,n){const{threadId:t,label:a,save:s}=n.payload,i=ft(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=as(i.expressions)))},removeExpression(e,n){const{threadId:t,index:a,save:s}=n.payload,i=ft(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=as(i.expressions)))},removeAllExpressions(e,n){const{threadId:t,save:a}=n.payload,s=ft(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,n){const{threadId:t,index:a,replacement:s,save:i}=n.payload,c=ft(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=as(c.expressions)))},setExpression(e,n){const{threadId:t,expression:a}=n.payload,s=ft(e.sessions,t);if(s){const i=a.index>=0?a.index:s.expressions.length>0?s.expressions.length-1:0,c=s.expressions[i];c?(c.result=a.result,c.nakedResult=a.nakedResult,c.variablesReference=a.variablesReference||0,c.presentationHint=a.presentationHint):s.expressions.push(a)}},updateExpressionAt(e,n){const{threadId:t,index:a,value:s}=n.payload,i=ft(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,n){const{expressions:t}=n.payload;e.expressions=as(t)},addSession(e,n){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=n.payload,c=ft(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Pc(t);e.sessions.push({tabPath:p,threadId:t,channelId:a,stackFrames:s,currentStackFrame:l,exceptions:i,expressions:d,variables:{callchain:[],expressions:[]},highlightedLines:null,activeLine:null,stopped:!0})}},updateSession(e,n){const{threadId:t,changes:a}=n.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,n){const{threadId:t}=n.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,n){const t=n.payload;e.sessions.splice(t,1)},setSessions(e,n){const t=n.payload;e.sessions=t},setCallChainVariables(e,n){const{threadId:t,frameId:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:Kp((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,n){const{threadId:t,variablesReference:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:Kp((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,n){const{threadId:t,content:a}=n.payload,s=ft(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,n){if(n.payload.state===Gr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ms.SOCKET_ERROR}}=n.payload;if((t||e.meta.state!==Gr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ms.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Gr.DETACHED)return}e.meta.state=n.payload.state}},extraReducers:e=>{e.addCase(cv.fulfilled,n=>{n.sessions=[]})}}),{addBreakpointDecoration:ED,removeBreakpointDecoration:SD,setBreakpointsDecoration:wD,clearBreakpoints:TD,setActiveLine:xD,addExpression:CD,renameExpression:RD,removeExpression:OD,removeAllExpressions:AD,setExpression:PD,updateExpressionAt:DD,saveExpressions:ID,addSession:FD,updateSession:$D,removeSession:MD,removeSessionByIndex:ND,setSessions:uv,setCallChainVariables:LD,setExpressionVariables:jD,setSourceContent:kD,setDebuggerMeta:BD}=iv.actions,cv=re("files/wipeDebuggerSessions",async(e,{getState:n,dispatch:t})=>{const{sessions:a}=n().debugger;for(const{threadId:s}of a){const i=Pc(s);t(Qc(i))}}),lv=re("files/removeDebuggerSessionsNotIn",async(e,{getState:n,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=n().debugger,i=[],c=s.filter(l=>{const d=a.includes(l.threadId);return d||i.push(l.threadId),d});return t(uv(c)),{staleThreadIds:i}}),el=re("models/fetch",async()=>{try{return(await E.http(E.API_PREFIX,{method:"POST",body:JSON.stringify({verb:E.DesignerRequestVerb.GET_INFO,path:E.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),As=re("models/save",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=n().root,i=s.find(c=>c.path===E.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await E.http(E.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:i.path,content:i.content}),headers:new Headers({"Content-Type":"application/json"})});return setTimeout(()=>{t(kn())},$s),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),WD=re("models/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return n(Lt(s)),s;n(el())}),UD=re("model/rename-dataclass",async(e,{getState:n,dispatch:t})=>{var m,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=n();const l=c.explorer.find(S=>S.path===E.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(Ar(l.path)),c=n();const d={class:{found:!1,newNameTaken:!1,file:null,filename_update:i},entity:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Entity`},selection:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Selection`}};(_=(m=c.explorer.find(S=>S.path===E.FolderRootPath.CLASSES))==null?void 0:m.children)==null||_.forEach(S=>{S.name===d.class.filename_update&&(d.class.newNameTaken=!0),S.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),S.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),S.name===a?(d.class.found=!0,d.class.file=S):S.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=S):S.name===s&&(d.selection.found=!0,d.selection.file=S)});const p=Object.entries(d).reduce((S,T)=>{const[C,F]=T;return F.found?F.newNameTaken?[...S,{type:"error",message:`Cannot rename ${C} file to ${F.filename_update} because it already exists. The existing file will be used instead!`}]:S:[...S,{type:"warning",message:`${a} ${C} file was not found`}]},[]);p.length>0&&t(fr({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const h=Object.values(d).filter(S=>S.found&&S.file&&!S.newNameTaken);await Promise.all(h.map(async S=>await t(ca({file:S.file,newname:S.filename_update})))),h.length>0&&t(Ar("Classes"))}),ao={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},HD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[ao.DATACLASS_DELETE]:!0,[ao.DATACLASS_DRAGGABLE]:!0}},fv=lr({name:"Models",initialState:HD,reducers:{setModelFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(el.fulfilled,(n,t)=>{var c;const a={},s={},i=t.payload.extraProperties||{};(c=t.payload.dataClasses)==null||c.forEach(l=>{a[l.name]=l,s[l.collectionName]=l}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i}),e.addCase(As.pending,()=>{}).addCase(As.fulfilled,(n,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i})}}),{setModelFlag:GD}=fv.actions;var dv=(e=>(e.UUID="uuid",e.STRING="string",e.TEXT="text",e.DATE="date",e.TIME="duration",e.BOOLEAN="bool",e.BYTE="byte",e.INTEGER="word",e.LONG="long",e.LONG64="long64",e.FLOAT="number",e.BLOB="blob",e.IMAGE="image",e.OBJECT="object",e))(dv||{}),Zs=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Zs||{});const qD=e=>["string","uuid","number","long"].includes(e.type),YD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],zD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],VD=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],KD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],JD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],XD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],ZD=(e,n)=>({toJSON:!0,extraProperties:n,dataClasses:e.map(t=>{var a;return{...t.data,extraProperties:{position:{x:t.position.x,y:t.position.y},panelColor:(a=t.data.extraProperties)==null?void 0:a.panelColor}}})});function QD(e,n,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const pv=e=>e.kind===Zs.RELATEDENTITY,hv=e=>e.kind===Zs.RELATEDENTITIES,eI=e=>hv(e)||pv(e),tI=()=>Xr(e=>e.model.draft.dataClasses),rI=()=>Xr(e=>e.model.draft.collections),nI=e=>Xr(n=>n.model.draft.dataClasses[e]),aI=(e,n)=>Xr(t=>t.model.draft.dataClasses[e].attributes.find(E.by("name",n))),oI=()=>Xr(e=>e.model.draft.extraProperties),sI=()=>{const e=Xr(s=>s.model.flags),n=s=>s in e?e[s]:void 0,t=n(ao.DATACLASS_DELETE),a=n(ao.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},iI=fv.reducer;function Bu(e,n){const t=e.tabs.find(({path:a})=>a===E.SETTINGS_TAB_PATH);t&&(t.flags.touched=n)}const gv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},vv={[gv.SIDEBAR_SECTION_RESIZABLE]:!0},yv=lr({name:"webforms",initialState:()=>{const{webforms:e}=pa();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Oc.webforms.datasources,...e==null?void 0:e.datasources},flags:vv}},reducers:{toggleInspector:(e,n)=>{const{type:t}=n.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,n)=>{const{type:t,data:a}=n.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,n)=>{e.components.push(n.payload)},editComponent:(e,n)=>{const{id:t,changes:a}=n.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,n)=>{const{payload:t}=n,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,n)=>{e.templates.selectedGroup=n.payload.selectedGroup},setTemplatesData:(e,n)=>{e.templates.data=n.payload},setTemplateData:(e,n)=>{const{group:t,components:a}=n.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,n)=>{e.datasources.theme=n.payload},setWebformsFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(wv.fulfilled,(n,t)=>{n.components=t.payload})}}),{toggleInspector:uI,inspect:cI,addComponent:mv,editComponent:bv,removeComponent:_v,setSelectedGroup:lI,setTemplatesData:Ev,setTemplateData:Sv,setDatasourcesTheme:fI,setWebformsFlag:dI}=yv.actions,pI=yv.reducer,tl=Ke.curry((e,n)=>{var s,i;const t={...n.sharedDatasources.sources},a=(i=((s=n.root.tabs.find(E.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),Ke.cloneDeep(t)}),hI=re("webforms/fetchTemplates",async(e,{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!Ke.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return n(Ev(c)),c}catch{return[]}}),gI=re("webforms/fetchTemplate",async({name:e},{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!Ke.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return n(Sv({group:e,components:c})),c}catch{return[]}}),wv=re("webforms/fetchCraftedComponents",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({path:"WebForms/crafted_components.json",verb:E.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return n("Error while loading the crafted components")}}),vI=re("webforms/addCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(mv(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),yI=re("webforms/editCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(bv(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),mI=re("webforms/removeCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(_v(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),rl=re("datasources/add-datasource",async(e,{getState:n,rejectWithValue:t})=>{var a,s;try{const i=n(),c=e.datasource,l=!!c.namespace,d=[];if(l){const p={...i.sharedDatasources.sources,[c.namespace]:[...i.sharedDatasources.sources[c.namespace],c]};d.push(...p[c.namespace]),await E.setSharedSources(p)}else(((s=(a=i.root.tabs.find(E.by("path",e.path)).content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]).push(c);return{list:d,path:e.path,namespace:e.datasource.namespace}}catch{console.error("Error while adding the datasource",e.datasource.id),t("Error while adding the datasource")}}),nl=re("datasources/edit-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=n(),c=!!e.namespace,l=tl(s,i);let d=Ke.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await E.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),bI=e=>e.type===fa.fulfilled.type,fa=re("datasources/rename-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,c=tl(e.path,a),l=Ke.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var m;const h=(E.isObjectDatasource(p)||!E.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((m=p.events)==null||m.forEach(_=>{var S,T,C,F,D;switch(_.type){case"method":{const W=_;W.params.forEach($=>{$.datasource&&Object.assign($,{datasource:$.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),W.returns&&Object.assign(W.returns,{datasource:(T=(S=W.returns)==null?void 0:S.datasource)==null?void 0:T.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const W=_;W.datasource&&Object.assign(W.datasource,{name:(C=W.datasource.name)==null?void 0:C.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(F=W.datasource.from)==null?void 0:F.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(D=W.datasource.target)==null?void 0:D.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:h&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=E.getDatasourceId({id:e.id,namespace:e.namespace}),h=E.getDatasourceId({id:e.new_name,namespace:e.namespace});E.datasourcesSubject.next({path:e.path??"",action:E.DatasourcesActions.RENAME,old_reference:p,new_reference:h,is_shared:s})}return s&&await E.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while renaming datasource ${e.namespace}:${e.id}`)}}),Qa=re("datasources/delete-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,l=tl(e.path,a)[i].filter(E.outById(e.id));return s&&await E.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),oo=lr({name:"root",initialState:()=>{const e=pa();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,n){const{path:t,...a}=n.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},openSettingsTab(e){const n={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:E.SETTINGS_TAB_PATH,type:E.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===n.path);if(t||(e.tabs.push(n),t=e.tabs[e.tabs.length-1]),e.activeTab!==n.path){const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=n.path,t.weight=((a==null?void 0:a.weight)||0)+1}},addDataSource(e,n){var i;const{payload:{path:t,datasourceDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0,confirmed:!0}))},addWebformState(e,n){var i;const{payload:{path:t,stateDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.states=s.content.metadata.states||[kc],(i=s.content.metadata.states)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.states=[...s.content.metadata.states,a],s.flags={...s.flags,touched:!0,confirmed:!0}))},removeWebformState(e,n){const{path:t,id:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:Rh(s.content,a)}:s)},editWebformState(e,n){const{path:t,state:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,states:s.content.metadata.states.map(i=>i.id===a.id?a:i)}}}:s)},removeDataSource(e,n){const{path:t,datasourceID:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,n){const{payload:{path:t,datasourceArr:a}}=n;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,n){e.tabs=n.payload},closeTab(e,n){const t=n.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,n){e.tabs=e.tabs.filter(t=>t.path===n.payload),e.activeTab=n.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,n){e.tabs.splice(n.payload+1),e.activeTab=e.tabs[n.payload].path},closeLeftTabs(e,n){e.tabs.splice(0,n.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const n=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(n==null?void 0:n.path)||""},confirmTab(e,n){const t=e.tabs.find(({path:a})=>a===n.payload);t&&(t.flags.confirmed||oo.caseReducers.setTabFlags(e,{type:n.type,payload:{path:n.payload,flags:{confirmed:!0}}}))},selectTab(e,n){const t=e.tabs.find(({path:s})=>s===n.payload);if(!t||e.activeTab===n.payload)return;const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);t.weight=a?(a.weight||0)+1:1,e.activeTab=n.payload},openTabUnselected(e,n){const t=n.payload;let a=e.tabs.find(({path:i})=>t.path===i);a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]);const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);a.weight=s?(s.weight||0)+1:1,a.extra={...a.extra,...t.extra}},selectTabByReference(e,n){const t=[E.FileFolderType.DEBUGGER],{isNew:a,...s}=n.payload;let i=s,c=e.tabs.find(({path:l})=>i.path===l);if((t.includes(i.type)||c!=null&&c.flags.confirmed)&&(i={...i,flags:{...i.flags,confirmed:!0}}),!c){const l=e.tabs.findIndex(({flags:{confirmed:d}})=>d===!1);l!==-1&&!t.includes(i.type)&&!a?e.activeTab===e.tabs[l].path?(e.tabs[l]=i,c=e.tabs[l]):(e.tabs.push(i),c=e.tabs[e.tabs.length-1],e.tabs.splice(l,1)):(e.tabs.push(i),c=e.tabs[e.tabs.length-1])}if(e.activeTab!==i.path){const l=e.tabs.reduce((d,p)=>(p==null?void 0:p.weight)>((d==null?void 0:d.weight)||0)?p:d,null);e.activeTab=i.path,c.weight=((l==null?void 0:l.weight)||0)+1}c.extra={...c.extra,...i.extra},c.flags={...c.flags||{},...i.flags||{}}},setContent(e,n){const{path:t,content:a,contentPath:s}=n.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1,l=i.flags.confirmed;if(typeof a=="string")c=i.initialContent!==a,l=!l&&c?!0:l;else{const d=JSON.stringify(Ke.get(i.initialContent,s||"",i.initialContent)),p=JSON.stringify(Ke.get(a,s||"",a));c=d!==p,l=!l&&c?!0:l}return a&&typeof a=="object"&&(s?Ke.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c,confirmed:l}}})},setTabFlags(e,n){const{path:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,n){const{tabs:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,n){const{path:t,extra:a,flags:s}=n.payload;e.tabs=e.tabs.map(i=>i.path===t?{...i,extra:{...i.extra,...a},flags:s?{...i.flags,...s}:i.flags}:i)},addWebFormStyles(e,n){const{path:t,styles:a=[]}=n.payload,s=e.tabs.find(i=>i.path===t);if(s){const i=s.content.metadata.styles.map(({name:l})=>l),c=a.filter(({name:l})=>!i.includes(l));s.content.metadata.styles=[...s.content.metadata.styles,...c].map(({scope:l,...d})=>({...d}))}},changeTabEditor(e,n){return e.tabs=e.tabs.map(t=>t.path===n.payload.path?n.payload:t),e}},extraReducers:e=>{e.addCase(lc,(n,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=n.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&oo.caseReducers.setTabFlags(n,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(nv.fulfilled,(n,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=n.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
127
|
+
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...h("dataclass")},{...h("collection")},{...h("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...h(e.toCreate)}]:p=[{...h("model")}],p=p.filter(_=>!d.find(({name:S,ext:T})=>S===_.name&&T===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:S})=>{await n(ua({type:E.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:S,qodly:a.settings.server.qodly}))})),await n(Ar(s))}),Ar=re("explorer/fetchFolderContent",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=Er(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),Ja=re("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=Er(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function iD(e){const n=e.split(".");return n.pop(),{name:n.join("."),ext:e.split(".")[e.split(".").length-1]}}const uD=re("explorer/uploadFile",async e=>{const n=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),cD=re("explorer/uploadFile",async({file:e,path:n,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=Er(n),{name:c,ext:l}=iD(e.name);a(Qg({parent:t,child:{name:c,path:`${n}/${e.name}?t=${Date.now()}`,type:e.type,error:null,flags:{loading:!0},config:{editor:s,supportedEditors:i},ext:l}}));try{const d=await fetch(`/rest/$upload?$sharedFolder=true&$filename=${e.name}&$path=${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(dc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&E.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Ar(t.path)),{status:d.status,fileName:e.name}}catch{return a(dc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),E.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),ua=re("explorer/createNewFile",async({fileName:e,type:n,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{server:{qodly:d},project:p}=l().settings;try{const h=await E.setFileContent({name:tv(e,n,d),content:s||ev(n,p),path:t,asText:[E.FileFolderType.CLASS,E.FileFolderType.METHOD].includes(n)});return a.error&&(a.flags.expanded?await i(Ar(a.path)):await i(Ja(a.path))),{qodly:d,file:h,parentNode:a}}catch{return c("failed to create folder")}});function nv(e,n){const{qodly:t=!0,withExtension:a=!0}=n||{},s=E.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case E.FileFolderType.WEBFORM:i=`${E.FolderRootPath.WEBFORMS}/${e.name}`;break;case E.FileFolderType.METHOD:i=`${E.FolderRootPath.METHODS}/${e.name}`;break;case E.FileFolderType.CLASS:i=`${E.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const lD=re("explorer/createNewFileAndOpen",async(e,{dispatch:n,getState:t})=>{const a=await n(ua(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=nv(i,{withExtension:!1,qodly:s}),{editor:l}=Er(c);await n(Xa({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),us=re("explorer/createNewNode",async({fileName:e,path:n,parentNode:t},{rejectWithValue:a})=>{try{return{file:await E.createFolder({verb:E.DesignerRequestVerb.CREATE_FOLDER,path:`${n}/${e}`,recursive:!0}),parentNode:t}}catch{return E.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Xs=async(e,n={})=>{try{const t=e.path.split(".").at(-1),a=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:Oh(t)?"json":"text"}),s={editor:e.editor},i=E.getTypeFromExtension(e.path);i===E.FileFolderType.METHOD&&(s.attributes=E.parseAttributes(a.content),a.content=E.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return n.confirmed===void 0&&(n.confirmed=!0),{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:n.confirmed},extra:s,name:e.name,path:e.path,type:i,initialContent:c,content:c}}catch(t){const{data:a}=t;if(a.__ERROR.find(s=>s.errCode===E.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case E.ROLES_TAB_PATH:{const s={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:E.FileFolderType.ROLES,initialContent:s,content:s}}case E.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:E.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},Xa=re("explorer/openFile",async({file:e,inactive:n,isNew:t,flags:a={}},{getState:s,dispatch:i})=>{const{root:{tabs:c},roles:l,debugger:{sessions:d}}=s(),p=c.find(({path:_})=>e.path===_);if(p){const _={...p,extra:{...p==null?void 0:p.extra,editor:e.editor},flags:{...p==null?void 0:p.flags,...a}};return i(Lt(_)),_}if(e.path.startsWith("Debugger")){const _=d.find(S=>`Debugger/${S.threadId}`===e.path);if(_){const{source:{content:S},source:T}=_.currentStackFrame,x={name:e.name,type:E.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:S,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:S,flags:{confirmed:!0},extra:{source:T,editor:e.editor}};return i(Lt(x)),x}}let h=null;try{h=await Xs(e,a)}catch(_){const{data:S}=_;if(S.__ERROR.find(T=>[E.ERROR_CODES.JSON_MALFORMED,E.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(T.errCode))){const{confirmed:T}=await i(fr({title:"Corrupt file",type:Gt.CONFIRM,color:Dr.WARNING,message:"Open in code editor ?"})).unwrap();if(T){const x=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:F,date:D,ext:W}=x;h={date:D,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(W),confirmed:!0},extra:{editor:E.EDITOR.Code},name:e.name,path:e.path,type:E.getTypeFromExtension(e.path),initialContent:F,content:F}}}}return h&&(e.path===E.ROLES_TAB_PATH&&!l.flags.touched?i(Vc({content:h.content,date:h.date})):e.path===E.SETTINGS_TAB_PATH&&i(Js({path:"project",value:h.content})),i((n?Iv:Lt)({...h,isNew:t})),h)}),Xc=re("explorer/openFileAtLine",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Lt(c)),c}const i=await Xs(e);return t(Lt(i)),i}),av=re("explorer/injectContentAtLine",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const s=n();e.path.split("/").pop();const c=vt(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Xs({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:E.FileFolderType.CLASS,editor:c.config.editor});return await t(Lt(l)),{...e,path:`${c.path}.${c.ext}`}}),ov=re("explorer/openFileAtSelection",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Lt(c)),c}const i=await Xs(e);return t(Lt(i)),i}),hc=re("explorer/deleteFile",async e=>{const{name:n,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await E.dropFile({root:E.FolderRootType.ROOT,type:rv(t),verb:E.DesignerRequestVerb.DROP,name:n,path:i.join("/")}),node:e}}),fD=re("explorer/deleteFolder",async e=>{const{path:n,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await E.removeItem({force:!0,path:n,verb:E.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),dD=re("explorer/removeFileNode",async(e,{getState:n,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await E.removeItem({verb:E.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&setTimeout(()=>{t(kn())},$s),e.ext){const{tabs:s}=n().root,i=s.findIndex(c=>c.path===a);i>=0&&t(ol(i))}return{deleted:!0,node:e}}),ca=re("explorer/renameFile",async({file:e,newname:n})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${n}.${e.ext}`;return await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:n,path:i}}}const t=e.path.split("/");return t.pop(),await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${n}`}),{old:e,new:{...e,name:n,path:`${t.join("/")}/${n}`}}}),Za=re("explorer/relocateNode",async({draggedNode:e,newLocation:n},{rejectWithValue:t})=>{try{await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${n.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),cs=re("explorer/duplicateNode",async({node:e,duplicateName:n},{rejectWithValue:t,fulfillWithValue:a,getState:s})=>{const i=e.path.split("/");i.pop();try{const{tabs:c}=s().root,l=c.find(({path:m})=>m===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),h=await E.setFileContent({name:`${n}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...h,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),pD=re("explorer/executeMethod",async({methodName:e,params:n=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:n,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?E.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):E.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return E.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),hD=re("files/fetchFiles",async()=>E.getFolders(E.FolderRootType.WEBFORMS,E.FolderRootType.METHODS,E.FolderRootType.CLASSES)),Zc=re("tabs/renameDatasource",async(e,{dispatch:n,getState:t})=>{var S,T;const a=!!e.datasourceNamespace,{confirmed:s}=await n(fr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:Gt.CONFIRM,color:Dr.WARNING,views:{toggles:{},tips:a?[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated on opened web forms only"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]:[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]}})).unwrap();if(!s)return null;const{autoUpdateReferences:i,datasourceId:c,datasourceNamespace:l,value:d,path:p}=e,h=t();let m=[];if(a){const x=h.sharedDatasources.sources[l]||[];m.push(...x)}else if(p){const x=h.root.tabs.find(E.by("path",p));if(m=(T=(S=x==null?void 0:x.content)==null?void 0:S.metadata)==null?void 0:T.datasources,!m)return null}const _=new RegExp(`^${c}\\b`,"");if(m=m.map(x=>{const F=(E.isObjectDatasource(x)||!E.isSimpleDatasource(x))&&x.from&&_.test(x.from),D=x.events?x.events.map(W=>{var $,j,A,K;switch(W==null?void 0:W.type){case"method":{const G=W;return G.params?{...G,params:G.params.map(Y=>{var ie;return{...Y,datasource:(ie=Y.datasource)==null?void 0:ie.replace(new RegExp(`^${c}`,""),d)}}),returns:($=G.returns)!=null&&$.datasource?{...G.returns,datasource:(j=G.returns.datasource)==null?void 0:j.replace(new RegExp(`^${c}`,""),d)}:G.returns}:G}case"simple-action":{const G=W;return G.datasource?{...G,datasource:{...G.datasource,name:(A=G.datasource.name)==null?void 0:A.replace(new RegExp(`^${c}`,""),d),from:(K=G.datasource.from)==null?void 0:K.replace(new RegExp(`^${c}`,""),d)}}:G}default:return W}}):x.events;return x.id===c?{...x,id:d,events:D}:F&&x.from?{...x,from:x.from.replace(new RegExp(`^${c}`,""),d),events:D}:{...x,events:D}}),i){const x=a?`${l}:${c}`:`${c}`,F=a?`${l}:${d}`:`${d}`;E.datasourcesSubject.next({path:p??"",action:E.DatasourcesActions.RENAME,old_reference:x,new_reference:F,is_shared:a})}return{path:p,namespace:l,datasources:m}}),Qc=re("tabs/edit-datasource",(e,{getState:n})=>{var i,c;const t=n();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(E.by("path",e.path));l&&(a=((c=(i=l.content)==null?void 0:i.metadata)==null?void 0:c.datasources)||[])}return a.map(l=>l.id===e.datasourceId?Object.assign({},l,{[e.propertyKey]:e.value}):l)}),sv=re("tabs/fetchChanges",async(e,{getState:n})=>{const a=ba(n()).filter(s=>[E.FileFolderType.METHOD,E.FileFolderType.CLASS].includes(s.type));return E.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),gD=re("files/saveAll",async(e,{getState:n,dispatch:t})=>{const a=Mc(n());for(const s of a)t(la({tab:s}))}),el=re("files/tryCloseTab",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.findIndex(c=>c.path===e);if(s===-1)return!1;const i=a[s];if(i!=null&&i.flags.touched){const{confirmed:c}=await t(fr({title:Ms(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!c)return!1}return t(ol(s)),i.path===E.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:E.ROLES_TAB_PATH,content:!0,as:"json"});t(Vc({content:l.content,date:l.date}))})(),!0}),vD=re("files/tryCloseOtherTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(fr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Av(e))}),yD=re("files/tryCloseAllTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(fr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Ov())}),mD=re("files/tryCloseRightTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=a.length-1;i>e;i-=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(fr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Rv(e))}),bD=re("files/tryCloseLeftTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=0;i<e;i+=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(fr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Pv(e))}),gc=re("files/reloadTab",async(e,{dispatch:n})=>{if(e.flags.touched){const{confirmed:s}=await n(fr({title:Ms(e),message:"Changes made to the file will be lost. Continue?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!s)return}const t=Jh(e.path),a=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===E.ROLES_TAB_PATH){const{roles:s,privileges:i}=Vs(a.content);n(Kc({roles:s,privileges:i}))}else if(e.path===E.SETTINGS_TAB_PATH){const{content:s}=a;n(Js({path:"project",value:s}))}else{const{content:s}=a;e.type===E.FileFolderType.WEBFORM?E.webformSubject.next({path:e.path,action:E.WebformActions.RELOAD,payload:s.components}):e.type===E.FileFolderType.MODEL&&ng.next({action:"reload",payload:s})}return a}),la=re("files/saveTab",async({tab:e},{dispatch:n,getState:t})=>{const{path:a,content:s}=e;if(e.type===E.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await E.getFilesInfo({path:a});if(c.files[0]){const h=new Date(e.date),m=new Date(c.files[0].date);if(h.getTime()<m.getTime()){const{confirmed:_}=await n(fr({title:Ms(e),message:"New content has been found on the server. Are you sure you want to continue?",type:Gt.CONFIRM,icon:"FdSave"})).unwrap();if(!_)return n(xv({path:a,flags:{old:!0}})),null}}const l=await E.saveContent({verb:E.DesignerRequestVerb.SAVE_CONTENT,content:_D(e,t()),path:a});(e.type===E.FileFolderType.CLASS||e.type===E.FileFolderType.MODEL)&&setTimeout(()=>{n(kn())},$s);const d=(l.modelErrors||[]).map(h=>h.message),p=(l.permissionsErrors||[]).map(h=>h.message);return{...e,content:s,date:l.date,initialContent:s,errors:d.length>0||p.length>0?[{title:"Model errors",messages:d},{title:"Permissions errors",messages:p}]:[]}}),_D=(e,n)=>{switch(!0){case e.path==="settings.json":case e.path===E.SETTINGS_TAB_PATH:return n.settings.project;case e.type===E.FileFolderType.ROLES:return{...e.content,...Ks(n.roles)};case e.type===E.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Yp=async e=>{if(e.type===E.FileFolderType.DATA_EXPLORER)return{name:"Data Explorer",path:e.path,flags:{},view:{panel:{isOpen:!1,type:"",current:""}},type:e.type,date:new Date().toISOString()};const n=e.path.split("/").filter(Boolean)[0],t=await E.getFile({root:n,type:e.type,verb:E.DesignerRequestVerb.GET,name:e.name}),a={};t.type===E.FileFolderType.METHOD&&(a.attributes=E.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===E.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===E.FileFolderType.MODEL?xh(l):l}},iv=re("files/tryInjectMethod",async({type:e,dataclass:n},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=E.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!n)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=n,d=`Classes/${n}.${c}`;break;case"collection":l=`${n}Selection`,d=`Classes/${n}Selection.${c}`;break;case"entity":l=`${n}Entity`,d=`Classes/${n}Entity.${c}`;break;default:return p}const h=s.find(E.by("path",d));if(h)return a(Lt(h)),h;try{p=await Yp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:E.FileFolderType.CLASS})}catch{n?await a(pc({type:"dataclass",className:n,collectionName:`${n}Selection`,toCreate:e})):await a(pc({type:"model"}))}return p=await Yp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:E.FileFolderType.CLASS}),p.path=d,a(Lt(p)),p}),ED=re("roles/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===E.ROLES_TAB_PATH);if(s)return n(Lt(s)),s;n(Rs())});function zp(e,n){const{line:t,offset:a,type:s="saved"}=n;e.breakpoints[s].locations.push({line:t}),Ke.isNumber(a)&&(e.breakpoints[s].offset=a)}function Vp(e,n,t,a){e.breakpoints[t].locations=n,Ke.isNumber(a)&&(e.breakpoints[t].offset=a)}function Kp({filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function Jp(e,n,t){let a=!1;const s=e.map(i=>i[t]!==n[t]?i:(a=!0,{...i,...n}));return a?s:[...s,n]}function as(e){return e.map(({label:n})=>({label:n}))}const uv=lr({name:"debugger",initialState:()=>{var n,t;const{debugger:e={meta:{state:Gr.DETACHED},list:[],sessions:[],expressions:[]}}=pa();return{meta:{...e.meta,state:((n=e.meta)==null?void 0:n.state)===Gr.ATTACHED?(t=e.meta)==null?void 0:t.state:Gr.DETACHED},list:e.list||[],sessions:e.sessions||[],expressions:e.expressions||[]}},reducers:{addBreakpointDecoration(e,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=n.payload,p=jn(e.list,t,s,i);if(p)zp(p,d);else{if(a===E.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const h=Kp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});zp(h,d),e.list.push(h)}},removeBreakpointDecoration(e,n){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=n.payload;if(t.startsWith("Classes/")){const l=e.list.filter(d=>d.filePath===t);if(l.length>0){const d=s+i;l.forEach(p=>{const h=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(m=>m.line+h!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(m=>m.line+h!==d))})}}else{const l=jn(e.list,t,a);l&&(l.breakpoints[c].locations=l.breakpoints[c].locations.filter(d=>d.line!==s),c==="saved"&&(l.breakpoints.draft.locations=l.breakpoints.draft.locations.filter(d=>d.line!==s)))}},setBreakpointsDecoration(e,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:h="saved",clearDraft:m}=n.payload,_=jn(e.list,t,s);if(_)Vp(_,d,h,p),m&&h!=="draft"&&(_.breakpoints.draft.locations=[]);else{const S=Kp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Vp(S,d,h,p),e.list.push(S)}},clearBreakpoints(e,n){const{filePath:t,type:a="saved"}=n.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath===t?{draft:!a||a==="draft"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},setActiveLine(e,n){const{threadId:t,line:a,highlight:s}=n.payload,i=ft(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,n){const{threadId:t,label:a,save:s}=n.payload,i=ft(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=as(i.expressions)))},removeExpression(e,n){const{threadId:t,index:a,save:s}=n.payload,i=ft(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=as(i.expressions)))},removeAllExpressions(e,n){const{threadId:t,save:a}=n.payload,s=ft(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,n){const{threadId:t,index:a,replacement:s,save:i}=n.payload,c=ft(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=as(c.expressions)))},setExpression(e,n){const{threadId:t,expression:a}=n.payload,s=ft(e.sessions,t);if(s){const i=a.index>=0?a.index:s.expressions.length>0?s.expressions.length-1:0,c=s.expressions[i];c?(c.result=a.result,c.nakedResult=a.nakedResult,c.variablesReference=a.variablesReference||0,c.presentationHint=a.presentationHint):s.expressions.push(a)}},updateExpressionAt(e,n){const{threadId:t,index:a,value:s}=n.payload,i=ft(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,n){const{expressions:t}=n.payload;e.expressions=as(t)},addSession(e,n){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=n.payload,c=ft(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Pc(t);e.sessions.push({tabPath:p,threadId:t,channelId:a,stackFrames:s,currentStackFrame:l,exceptions:i,expressions:d,variables:{callchain:[],expressions:[]},highlightedLines:null,activeLine:null,stopped:!0})}},updateSession(e,n){const{threadId:t,changes:a}=n.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,n){const{threadId:t}=n.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,n){const t=n.payload;e.sessions.splice(t,1)},setSessions(e,n){const t=n.payload;e.sessions=t},setCallChainVariables(e,n){const{threadId:t,frameId:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:Jp((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,n){const{threadId:t,variablesReference:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:Jp((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,n){const{threadId:t,content:a}=n.payload,s=ft(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,n){if(n.payload.state===Gr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ms.SOCKET_ERROR}}=n.payload;if((t||e.meta.state!==Gr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ms.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Gr.DETACHED)return}e.meta.state=n.payload.state}},extraReducers:e=>{e.addCase(lv.fulfilled,n=>{n.sessions=[]})}}),{addBreakpointDecoration:SD,removeBreakpointDecoration:wD,setBreakpointsDecoration:TD,clearBreakpoints:CD,setActiveLine:xD,addExpression:OD,renameExpression:RD,removeExpression:AD,removeAllExpressions:PD,setExpression:DD,updateExpressionAt:ID,saveExpressions:FD,addSession:$D,updateSession:MD,removeSession:ND,removeSessionByIndex:LD,setSessions:cv,setCallChainVariables:jD,setExpressionVariables:kD,setSourceContent:BD,setDebuggerMeta:WD}=uv.actions,lv=re("files/wipeDebuggerSessions",async(e,{getState:n,dispatch:t})=>{const{sessions:a}=n().debugger;for(const{threadId:s}of a){const i=Pc(s);t(el(i))}}),fv=re("files/removeDebuggerSessionsNotIn",async(e,{getState:n,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=n().debugger,i=[],c=s.filter(l=>{const d=a.includes(l.threadId);return d||i.push(l.threadId),d});return t(cv(c)),{staleThreadIds:i}}),tl=re("models/fetch",async()=>{try{return(await E.http(E.API_PREFIX,{method:"POST",body:JSON.stringify({verb:E.DesignerRequestVerb.GET_INFO,path:E.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),As=re("models/save",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=n().root,i=s.find(c=>c.path===E.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await E.http(E.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:i.path,content:i.content}),headers:new Headers({"Content-Type":"application/json"})});return setTimeout(()=>{t(kn())},$s),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),UD=re("models/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return n(Lt(s)),s;n(tl())}),HD=re("model/rename-dataclass",async(e,{getState:n,dispatch:t})=>{var m,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=n();const l=c.explorer.find(S=>S.path===E.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(Ar(l.path)),c=n();const d={class:{found:!1,newNameTaken:!1,file:null,filename_update:i},entity:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Entity`},selection:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Selection`}};(_=(m=c.explorer.find(S=>S.path===E.FolderRootPath.CLASSES))==null?void 0:m.children)==null||_.forEach(S=>{S.name===d.class.filename_update&&(d.class.newNameTaken=!0),S.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),S.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),S.name===a?(d.class.found=!0,d.class.file=S):S.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=S):S.name===s&&(d.selection.found=!0,d.selection.file=S)});const p=Object.entries(d).reduce((S,T)=>{const[x,F]=T;return F.found?F.newNameTaken?[...S,{type:"error",message:`Cannot rename ${x} file to ${F.filename_update} because it already exists. The existing file will be used instead!`}]:S:[...S,{type:"warning",message:`${a} ${x} file was not found`}]},[]);p.length>0&&t(fr({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const h=Object.values(d).filter(S=>S.found&&S.file&&!S.newNameTaken);await Promise.all(h.map(async S=>await t(ca({file:S.file,newname:S.filename_update})))),h.length>0&&t(Ar("Classes"))}),ao={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},GD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[ao.DATACLASS_DELETE]:!0,[ao.DATACLASS_DRAGGABLE]:!0}},dv=lr({name:"Models",initialState:GD,reducers:{setModelFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(tl.fulfilled,(n,t)=>{var c;const a={},s={},i=t.payload.extraProperties||{};(c=t.payload.dataClasses)==null||c.forEach(l=>{a[l.name]=l,s[l.collectionName]=l}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i}),e.addCase(As.pending,()=>{}).addCase(As.fulfilled,(n,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i})}}),{setModelFlag:qD}=dv.actions;var pv=(e=>(e.UUID="uuid",e.STRING="string",e.TEXT="text",e.DATE="date",e.TIME="duration",e.BOOLEAN="bool",e.BYTE="byte",e.INTEGER="word",e.LONG="long",e.LONG64="long64",e.FLOAT="number",e.BLOB="blob",e.IMAGE="image",e.OBJECT="object",e))(pv||{}),Zs=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Zs||{});const YD=e=>["string","uuid","number","long"].includes(e.type),zD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],VD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],KD=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],JD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],XD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],ZD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],QD=(e,n)=>({toJSON:!0,extraProperties:n,dataClasses:e.map(t=>{var a;return{...t.data,extraProperties:{position:{x:t.position.x,y:t.position.y},panelColor:(a=t.data.extraProperties)==null?void 0:a.panelColor}}})});function eI(e,n,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const hv=e=>e.kind===Zs.RELATEDENTITY,gv=e=>e.kind===Zs.RELATEDENTITIES,tI=e=>gv(e)||hv(e),rI=()=>Xr(e=>e.model.draft.dataClasses),nI=()=>Xr(e=>e.model.draft.collections),aI=e=>Xr(n=>n.model.draft.dataClasses[e]),oI=(e,n)=>Xr(t=>t.model.draft.dataClasses[e].attributes.find(E.by("name",n))),sI=()=>Xr(e=>e.model.draft.extraProperties),iI=()=>{const e=Xr(s=>s.model.flags),n=s=>s in e?e[s]:void 0,t=n(ao.DATACLASS_DELETE),a=n(ao.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},uI=dv.reducer;function Bu(e,n){const t=e.tabs.find(({path:a})=>a===E.SETTINGS_TAB_PATH);t&&(t.flags.touched=n)}const vv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},yv={[vv.SIDEBAR_SECTION_RESIZABLE]:!0},mv=lr({name:"webforms",initialState:()=>{const{webforms:e}=pa();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Rc.webforms.datasources,...e==null?void 0:e.datasources},flags:yv}},reducers:{toggleInspector:(e,n)=>{const{type:t}=n.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,n)=>{const{type:t,data:a}=n.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,n)=>{e.components.push(n.payload)},editComponent:(e,n)=>{const{id:t,changes:a}=n.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,n)=>{const{payload:t}=n,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,n)=>{e.templates.selectedGroup=n.payload.selectedGroup},setTemplatesData:(e,n)=>{e.templates.data=n.payload},setTemplateData:(e,n)=>{const{group:t,components:a}=n.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,n)=>{e.datasources.theme=n.payload},setWebformsFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(Tv.fulfilled,(n,t)=>{n.components=t.payload})}}),{toggleInspector:cI,inspect:lI,addComponent:bv,editComponent:_v,removeComponent:Ev,setSelectedGroup:fI,setTemplatesData:Sv,setTemplateData:wv,setDatasourcesTheme:dI,setWebformsFlag:pI}=mv.actions,hI=mv.reducer,rl=Ke.curry((e,n)=>{var s,i;const t={...n.sharedDatasources.sources},a=(i=((s=n.root.tabs.find(E.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),Ke.cloneDeep(t)}),gI=re("webforms/fetchTemplates",async(e,{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!Ke.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return n(Sv(c)),c}catch{return[]}}),vI=re("webforms/fetchTemplate",async({name:e},{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!Ke.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return n(wv({group:e,components:c})),c}catch{return[]}}),Tv=re("webforms/fetchCraftedComponents",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({path:"WebForms/crafted_components.json",verb:E.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return n("Error while loading the crafted components")}}),yI=re("webforms/addCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(bv(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),mI=re("webforms/editCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(_v(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),bI=re("webforms/removeCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(Ev(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),nl=re("datasources/add-datasource",async(e,{getState:n,rejectWithValue:t})=>{var a,s;try{const i=n(),c=e.datasource,l=!!c.namespace,d=[];if(l){const p={...i.sharedDatasources.sources,[c.namespace]:[...i.sharedDatasources.sources[c.namespace],c]};d.push(...p[c.namespace]),await E.setSharedSources(p)}else(((s=(a=i.root.tabs.find(E.by("path",e.path)).content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]).push(c);return{list:d,path:e.path,namespace:e.datasource.namespace}}catch{console.error("Error while adding the datasource",e.datasource.id),t("Error while adding the datasource")}}),al=re("datasources/edit-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=n(),c=!!e.namespace,l=rl(s,i);let d=Ke.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await E.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),_I=e=>e.type===fa.fulfilled.type,fa=re("datasources/rename-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,c=rl(e.path,a),l=Ke.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var m;const h=(E.isObjectDatasource(p)||!E.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((m=p.events)==null||m.forEach(_=>{var S,T,x,F,D;switch(_.type){case"method":{const W=_;W.params.forEach($=>{$.datasource&&Object.assign($,{datasource:$.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),W.returns&&Object.assign(W.returns,{datasource:(T=(S=W.returns)==null?void 0:S.datasource)==null?void 0:T.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const W=_;W.datasource&&Object.assign(W.datasource,{name:(x=W.datasource.name)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(F=W.datasource.from)==null?void 0:F.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(D=W.datasource.target)==null?void 0:D.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:h&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=E.getDatasourceId({id:e.id,namespace:e.namespace}),h=E.getDatasourceId({id:e.new_name,namespace:e.namespace});E.datasourcesSubject.next({path:e.path??"",action:E.DatasourcesActions.RENAME,old_reference:p,new_reference:h,is_shared:s})}return s&&await E.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while renaming datasource ${e.namespace}:${e.id}`)}}),Qa=re("datasources/delete-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,l=rl(e.path,a)[i].filter(E.outById(e.id));return s&&await E.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),oo=lr({name:"root",initialState:()=>{const e=pa();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,n){const{path:t,...a}=n.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},openSettingsTab(e){const n={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:E.SETTINGS_TAB_PATH,type:E.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===n.path);if(t||(e.tabs.push(n),t=e.tabs[e.tabs.length-1]),e.activeTab!==n.path){const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=n.path,t.weight=((a==null?void 0:a.weight)||0)+1}},addDataSource(e,n){var i;const{payload:{path:t,datasourceDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0,confirmed:!0}))},addWebformState(e,n){var i;const{payload:{path:t,stateDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.states=s.content.metadata.states||[kc],(i=s.content.metadata.states)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.states=[...s.content.metadata.states,a],s.flags={...s.flags,touched:!0,confirmed:!0}))},removeWebformState(e,n){const{path:t,id:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:Rh(s.content,a)}:s)},editWebformState(e,n){const{path:t,state:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,states:s.content.metadata.states.map(i=>i.id===a.id?a:i)}}}:s)},removeDataSource(e,n){const{path:t,datasourceID:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,n){const{payload:{path:t,datasourceArr:a}}=n;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,n){e.tabs=n.payload},closeTab(e,n){const t=n.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,n){e.tabs=e.tabs.filter(t=>t.path===n.payload),e.activeTab=n.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,n){e.tabs.splice(n.payload+1),e.activeTab=e.tabs[n.payload].path},closeLeftTabs(e,n){e.tabs.splice(0,n.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const n=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(n==null?void 0:n.path)||""},confirmTab(e,n){const t=e.tabs.find(({path:a})=>a===n.payload);t&&(t.flags.confirmed||oo.caseReducers.setTabFlags(e,{type:n.type,payload:{path:n.payload,flags:{confirmed:!0}}}))},selectTab(e,n){const t=e.tabs.find(({path:s})=>s===n.payload);if(!t||e.activeTab===n.payload)return;const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);t.weight=a?(a.weight||0)+1:1,e.activeTab=n.payload},openTabUnselected(e,n){const t=n.payload;let a=e.tabs.find(({path:i})=>t.path===i);a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]);const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);a.weight=s?(s.weight||0)+1:1,a.extra={...a.extra,...t.extra}},selectTabByReference(e,n){const t=[E.FileFolderType.DEBUGGER],{isNew:a,...s}=n.payload;let i=s,c=e.tabs.find(({path:l})=>i.path===l);if((t.includes(i.type)||c!=null&&c.flags.confirmed)&&(i={...i,flags:{...i.flags,confirmed:!0}}),!c){const l=e.tabs.findIndex(({flags:{confirmed:d}})=>d===!1);l!==-1&&!t.includes(i.type)&&!a?e.activeTab===e.tabs[l].path?(e.tabs[l]=i,c=e.tabs[l]):(e.tabs.push(i),c=e.tabs[e.tabs.length-1],e.tabs.splice(l,1)):(e.tabs.push(i),c=e.tabs[e.tabs.length-1])}if(e.activeTab!==i.path){const l=e.tabs.reduce((d,p)=>(p==null?void 0:p.weight)>((d==null?void 0:d.weight)||0)?p:d,null);e.activeTab=i.path,c.weight=((l==null?void 0:l.weight)||0)+1}c.extra={...c.extra,...i.extra},c.flags={...c.flags||{},...i.flags||{}}},setContent(e,n){const{path:t,content:a,contentPath:s}=n.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1,l=i.flags.confirmed;if(typeof a=="string")c=i.initialContent!==a,l=!l&&c?!0:l;else{const d=JSON.stringify(Ke.get(i.initialContent,s||"",i.initialContent)),p=JSON.stringify(Ke.get(a,s||"",a));c=d!==p,l=!l&&c?!0:l}return a&&typeof a=="object"&&(s?Ke.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c,confirmed:l}}})},setTabFlags(e,n){const{path:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,n){const{tabs:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,n){const{path:t,extra:a,flags:s}=n.payload;e.tabs=e.tabs.map(i=>i.path===t?{...i,extra:{...i.extra,...a},flags:s?{...i.flags,...s}:i.flags}:i)},addWebFormStyles(e,n){const{path:t,styles:a=[]}=n.payload,s=e.tabs.find(i=>i.path===t);if(s){const i=s.content.metadata.styles.map(({name:l})=>l),c=a.filter(({name:l})=>!i.includes(l));s.content.metadata.styles=[...s.content.metadata.styles,...c].map(({scope:l,...d})=>({...d}))}},changeTabEditor(e,n){return e.tabs=e.tabs.map(t=>t.path===n.payload.path?n.payload:t),e}},extraReducers:e=>{e.addCase(lc,(n,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=n.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&oo.caseReducers.setTabFlags(n,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(av.fulfilled,(n,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=n.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
128
128
|
`);l.splice(s,0,a),c.content=l.join(`
|
|
129
|
-
`)}}),e.addCase(la.pending,(n,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(la.fulfilled,(n,t)=>{if(!t.payload)return;const a=n.tabs.find(({path:s})=>{var i;return s===((i=t.payload)==null?void 0:i.path)});if(a){switch(a.content=t.payload.content,a.date=t.payload.date,a.initialContent=t.payload.initialContent,a.flags.touched=!1,a.flags.confirmed=!0,a.flags.old=!1,a.type){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&E.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(la.rejected,(n,t)=>{E.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(
|
|
129
|
+
`)}}),e.addCase(la.pending,(n,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(la.fulfilled,(n,t)=>{if(!t.payload)return;const a=n.tabs.find(({path:s})=>{var i;return s===((i=t.payload)==null?void 0:i.path)});if(a){switch(a.content=t.payload.content,a.date=t.payload.date,a.initialContent=t.payload.initialContent,a.flags.touched=!1,a.flags.confirmed=!0,a.flags.old=!1,a.type){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&E.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(la.rejected,(n,t)=>{E.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(sv.fulfilled,(n,t)=>{const a=[...t.payload.files];n.tabs=n.tabs.map(s=>{if([E.FileFolderType.CLASS,E.FileFolderType.METHOD].includes(s.type)){const i=a.find(c=>c.name===s.name&&c.type===s.type);if(i){const c=new Date(s.date),l=new Date(i.date);if(c.getTime()!==l.getTime())return{...s,flags:{...s.flags,old:!0}}}}return s})}),e.addCase(gc.pending,(n,t)=>{n.tabs=n.tabs.map(a=>a.path===t.meta.arg.path?{...a,flags:{...a.flags,loading:!0}}:a)}),e.addCase(gc.fulfilled,(n,t)=>{const a=t.payload;if(a){const s=t.meta.arg;n.tabs=n.tabs.map(i=>{if(i.name===s.name&&i.type===s.type){const c=i.extra||{};return i.type===E.FileFolderType.METHOD?(c.attributes=E.parseAttributes(a.content),a.content=E.addAttributesToContent(a.content,{})):i.type===E.FileFolderType.SETTINGS&&(a.content={}),{...i,initialContent:a.content,content:a.content,date:a.date,flags:{enabled:i.flags.enabled,confirmed:i.flags.confirmed},extra:c}}return i})}}),e.addCase(Xc.fulfilled,(n,t)=>{if(!t.payload)return;const{line:a,offset:s}=t.meta.arg,i=n.tabs.find(({path:c})=>{var l;return c===((l=t.payload)==null?void 0:l.path)});i&&(i.extra={...i.extra,initialLineInfo:{line:a,offset:s,lastModification:Date.now()}})}),e.addCase(ov.fulfilled,(n,t)=>{if(!t.payload)return;const{selection:a}=t.meta.arg,s=n.tabs.find(({path:i})=>{var c;return i===((c=t.payload)==null?void 0:c.path)});s&&(s.extra={...s.extra,initialSelectionInfo:{selection:a,lastModification:Date.now()}})}),e.addCase(ca.fulfilled,(n,t)=>{t.payload.new!==t.payload.old&&(n.tabs=[...n.tabs].map(a=>a.path===t.payload.old.path?{...a,path:t.payload.new.path,name:t.payload.new.name}:a),n.activeTab===t.payload.old.path&&(n.activeTab=t.payload.new.path))}),e.addCase(hc.pending,(n,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(hc.fulfilled,(n,t)=>{const{deleted:a,node:s}=t.payload;if(!a)return;const i=`${s.path}${s.ext?`.${s.ext}`:""}`;switch(s.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.DID_DELETE,payload:{filePath:i}});break}if(n.tabs=n.tabs.filter(c=>c.path!==i),n.recent=n.recent.filter(({path:c})=>i!==c),n.tabs.length){n.activeTab=n.tabs[n.tabs.length-1].path;return}n.activeTab=""}),e.addCase(Za.fulfilled,(n,t)=>{const{draggedNode:a,newLocation:s}=t.meta.arg;if(n.tabs.find(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`))return n.tabs=n.tabs.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),n.recent=n.recent.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),n.activeTab=`${s.path}/${a.name}.${a.ext}`,n}),e.addCase(As.fulfilled,(n,t)=>{const a=n.tabs.find(s=>s.path===t.payload.path);a&&(a.flags.touched=!1,a.flags.confirmed=!0,a.date=t.payload.date,a.content=t.payload.content,a.initialContent=t.payload.content)}),e.addCase(iv.fulfilled,(n,t)=>{var i;if(!((i=t.payload)!=null&&i.path))return;const a=n.tabs.find(E.by("path",t.payload.path));if(!a)return;a.content=a.content+`
|
|
130
130
|
exposed Function ${t.meta.arg.name}()
|
|
131
131
|
`,a.flags={...a.flags,touched:!0,confirmed:!0};const s=a.content.split(`
|
|
132
|
-
`);a.extra={...a.extra,editor:E.EDITOR.Code,initialLineInfo:{line:s.length-1,lastModification:Date.now()}}}),e.addCase(
|
|
132
|
+
`);a.extra={...a.extra,editor:E.EDITOR.Code,initialLineInfo:{line:s.length-1,lastModification:Date.now()}}}),e.addCase(Zc.fulfilled,(n,t)=>{var i,c;if(!((i=t.payload)!=null&&i.path)||(c=t.payload)!=null&&c.namespace)return;const a=t.payload.path,s=n.tabs.find(E.by("path",a));!s||!s.content||!s.content.metadata||(Object.assign(s.content.metadata,{datasources:t.payload.datasources}),s.flags.touched=!0,s.flags.confirmed=!0)}),e.addCase(Qc.fulfilled,(n,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace||n.tabs.forEach(i=>{i.path===s.path&&Object.assign(i.content,{metadata:{...i.content.metadata,datasources:a}})})}),e.addCase(fv.fulfilled,(n,t)=>{const{staleThreadIds:a}=t.payload;if(a.length===0)return;const s=a.map(i=>`Debugger/${i}`);if(n.tabs=n.tabs.filter(i=>!s.includes(i.path)),n.recent=n.recent.filter(({path:i})=>!s.includes(i)),n.tabs.length){n.activeTab=n.tabs[n.tabs.length-1].path;return}n.activeTab=""}),e.addCase(Jc.pending,n=>Bu(n,!1)),e.addMatcher(_r(lc),(n,t)=>{["project"].includes(t.payload.path)&&Bu(n,!0)}),e.addMatcher(_r(Js),(n,t)=>{Bu(n,!1)}),e.addMatcher(_r(Dv,Lt),(n,t)=>{const{payload:a}=t;let s;typeof a=="string"?s=n.tabs.find(({path:i})=>a===i):s=a,s&&(n.recent=[s,...n.recent.filter(({path:i})=>![s.path,"settings"].includes(i))])}),e.addMatcher(_r(Kg,Vg),(n,t)=>{n.tabs=n.tabs.map(a=>a.path===E.ROLES_TAB_PATH?{...a,flags:{...a.flags,confirmed:!0,touched:!0}}:a)}),e.addMatcher(_r(Kc),(n,t)=>{n.tabs=n.tabs.map(a=>a.path===E.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!1}}:a)}),e.addMatcher(_r(nl.fulfilled,al.fulfilled,Qa.fulfilled,fa.fulfilled),(n,t)=>{var s,i,c;const a=n.tabs.find(E.by("path",((s=t.payload)==null?void 0:s.path)||t.meta.arg.path));!a||(i=t.payload)!=null&&i.namespace||(a.flags.touched=!0,a.flags.confirmed=!0,Object.assign(a.content,{metadata:{...a.content.metadata,datasources:(c=t.payload)==null?void 0:c.list}}))}),e.addMatcher(_r(Qa.fulfilled,fa.fulfilled),(n,t)=>{var l;const a=n.tabs.find(E.by("path",((l=t.payload)==null?void 0:l.path)||t.meta.arg.path));if(!a)return;const{panel:s}=a.view,i=E.getDatasourceId({id:t.meta.arg.id,namespace:t.meta.arg.namespace});if(s.type==="datasource"&&s.current===i)switch(t.type){case Qa.fulfilled.type:Object.assign(a.view.panel,{type:"component",current:EO});break;case fa.fulfilled.type:const d=E.getDatasourceId({id:t.meta.arg.new_name,namespace:t.meta.arg.namespace});Object.assign(a.view.panel,{type:"datasource",current:d});break}})}}),{setTabs:EI,closeTab:ol,setContent:Cv,setTabFlags:xv,setTabsFlags:SI,setTabExtra:wI,closeAllTabs:Ov,addDataSource:TI,closeRightTabs:Rv,closeOthers:Av,closeLeftTabs:Pv,closeSavedTabs:CI,setDataSources:xI,removeDataSource:OI,confirmTab:RI,selectTab:Dv,selectTabByReference:Lt,openTabUnselected:Iv,addWebFormStyles:AI,changeTabEditor:PI,openSettingsTab:DI,setPanelState:II,addWebformState:FI,editWebformState:$I,removeWebformState:MI}=oo.actions,Fv=oo.reducer,NI=uv.reducer,kn=re("catalog/fetchCatalog",async(e,{rejectWithValue:n})=>{var t;try{const a=await E.getCatalog(),s=new Map,i=new Map;return(t=a==null?void 0:a.dataClasses)==null||t.forEach(({methods:c=[],...l})=>{if(l.uuid||Object.assign(l,{uuid:E.generateUUID()}),l.attributes){const p=["storage","relatedEntity"];l.attributes=l.attributes.map(h=>(p.includes(h.kind)&&!h.uuid&&Object.assign(h,{uuid:E.generateUUID()}),h))}const d={...l,methods:c};i.set(l.className,d),s.set(l.collectionName,d)}),{__BASEID:a.__BASEID,__UNIQID:a.__UNIQID,dataClassByCollectionName:Object.fromEntries(s.entries()),methods:a.methods||[],dataClasses:Object.fromEntries(i.entries())}}catch{return n("Error while loading the catalog")}}),LI=lr({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(kn.pending,()=>({state:"loading"})).addCase(kn.fulfilled,(n,{payload:t})=>({state:"loaded",model:t})).addCase(kn.rejected,(n,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),jI=LI.reducer,kI=Bg.reducer,ls=re("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:n})=>{try{return await E.getSharedDatasources()}catch{return n("Error while loading the shared datasources")}}),$v=re("shared_datasources/addSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a=JSON.parse(JSON.stringify(t().sharedDatasources));if(e.namespace)a.sources[e.namespace]?a.sources[e.namespace].push(e):a.sources[e.namespace]=[e];else return n("Namespace is required");return await E.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),Mv=re("shared_datasources/editSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a=t().sharedDatasources;if(!e.namespace)return n("Namespace is required");if(a.sources[e.namespace])a.sources[e.namespace]=a.sources[e.namespace].map(s=>s.id===e.id?{...e,id:s.id}:s);else return n("Namespace not found");return await E.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),Nv=re("shared_datasources/deleteSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a={...t().sharedDatasources};if(a.sources[e.namespace]){const s=a.sources[e.namespace].filter(i=>i.id!==e.id);if(s.length===0){const{[e.namespace]:i,...c}=a.sources;a.sources=c}else a.sources={...a.sources,[e.namespace]:s}}return await E.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),sl=re("shared_datasources/updateSharedDatasources",async(e,{rejectWithValue:n,getState:t})=>{try{const a={...t().sharedDatasources};for(const s of e){if(!s.namespace)return n("Namespace is required");if(a.sources[s.namespace])a.sources[s.namespace]=a.sources[s.namespace].map(i=>i.id===s.id?s:i);else return n("Namespace not found")}return await E.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),BI=re("shared_datasources/setDatasourceEvents",async({tabPath:e,name:n,namespace:t,events:a},{getState:s,dispatch:i})=>{var S,T,x;const{root:{tabs:c},sharedDatasources:l}=s(),d=((x=(T=(S=c.find(({path:F})=>F===e))==null?void 0:S.content)==null?void 0:T.metadata)==null?void 0:x.datasources)||[],p={local:!1,shared:!1},h=(F,D)=>F.id===n&&(!t&&!F.namespace||F.namespace===t)?(D==null||D(),{...F,events:a}):F,m=d.map(F=>h(F,()=>{p.local=!0})),_=Ke.flatten(Ke.values(l.sources)).map(F=>h(F,()=>{p.shared=!0}));p.local&&i(Cv({path:e,content:m,contentPath:"metadata.datasources"})),p.shared&&i(sl(_))}),Lv=lr({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,n){e.sources[n.payload.name]=[]}},extraReducers(e){e.addCase(ls.pending,n=>({state:"loading",sources:{}})).addCase(ls.fulfilled,(n,t)=>({state:"loaded",sources:t.payload})).addCase(ls.rejected,(n,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(sl.fulfilled,(n,t)=>({state:"loaded",sources:t.payload})).addCase(Qc.fulfilled,(n,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace&&Object.assign(n.sources,{[s.namespace]:a})}).addCase($v.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(Nv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(Mv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(Zc.fulfilled,(n,t)=>{if(!t.payload)return n;const{datasources:a,namespace:s}=t.payload;s&&n.sources[s]&&Object.assign(n.sources[s],{[s]:a})}).addMatcher(_r(nl.fulfilled,Qa.fulfilled,al.fulfilled,fa.fulfilled),(n,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(n.sources,{[a]:s})})}}),{addEmptyNamespace:WI}=Lv.actions,UI=Lv.reducer,HI=Zg.reducer,fs=re("shared_css/fetchSharedCSS",async(e,{rejectWithValue:n})=>{try{const{classes:t}=await E.getSharedCSS();return t}catch{return n("Error while loading the shared CSS")}}),GI=E.queue();async function qI(e){const n={verb:E.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_css.json",path:"",root:"shared",content:{classes:e.map(({scope:t,...a})=>({...a}))}};await GI(()=>E.http(E.API_PREFIX,{method:"POST",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}))}const jv=lr({name:"shared-css",initialState:()=>{const{sharedCSS:e}=pa();return e||{state:"loading",styles:[]}},reducers:{updateSharedCss:(e,n)=>(e.styles=n.payload.classes,qI(n.payload.classes),e),initSharedCss:(e,n)=>(e.styles=n.payload.classes,e)},extraReducers(e){e.addCase(fs.pending,n=>({...n,state:"loading"})).addCase(fs.fulfilled,(n,{payload:t})=>({state:"loaded",styles:t})).addCase(fs.rejected,(n,t)=>({...n,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:YI,initSharedCss:zI}=jv.actions,VI=jv.reducer,KI={},JI=lr({name:"tabs",initialState:KI,reducers:{}}),XI=e=>z(ba,n=>{var t,a;return(a=(t=n.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});JI.reducer;const kv=ah({root:Fv,explorer:HI,debugger:NI,settings:ZP,catalog:jI,roles:VP,sharedDatasources:UI,webforms:hI,modals:kI,sharedCSS:VI,model:uI});let qa;const Bv=()=>(qa||(qa=YS({reducer:kv}),qa.subscribe(oT(()=>{const{root:{activeTab:e,tabs:n,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=qa.getState();Th({...l}),wh({tabs:n,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3))),qa);var vc={exports:{}},sa={};/** @license React v17.0.2
|
|
133
133
|
* react-jsx-runtime.production.min.js
|
|
134
134
|
*
|
|
135
135
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
136
136
|
*
|
|
137
137
|
* This source code is licensed under the MIT license found in the
|
|
138
138
|
* LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/var
|
|
139
|
+
*/var Xp;function ZI(){if(Xp)return sa;Xp=1,Ic();var e=dt,n=60103;if(sa.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;n=t("react.element"),sa.Fragment=t("react.fragment")}var a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,p){var h,m={},_=null,S=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(S=d.ref);for(h in d)s.call(d,h)&&!i.hasOwnProperty(h)&&(m[h]=d[h]);if(l&&l.defaultProps)for(h in d=l.defaultProps,d)m[h]===void 0&&(m[h]=d[h]);return{$$typeof:n,type:l,key:_,ref:S,props:m,_owner:a.current}}return sa.jsx=c,sa.jsxs=c,sa}var Wu={};/** @license React v17.0.2
|
|
140
140
|
* react-jsx-runtime.development.js
|
|
141
141
|
*
|
|
142
142
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the MIT license found in the
|
|
145
145
|
* LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/var
|
|
147
|
-
`+fe+g}}var me=!1,ge;{var J=typeof WeakMap=="function"?WeakMap:Map;ge=new J}function N(g,
|
|
146
|
+
*/var Zp;function QI(){return Zp||(Zp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var n=dt,t=Ic(),a=60103,s=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,d=60110,p=60112,h=60113,m=60120,_=60115,S=60116,T=60121,x=60122,F=60117,D=60129,W=60131;if(typeof Symbol=="function"&&Symbol.for){var $=Symbol.for;a=$("react.element"),s=$("react.portal"),e.Fragment=$("react.fragment"),i=$("react.strict_mode"),c=$("react.profiler"),l=$("react.provider"),d=$("react.context"),p=$("react.forward_ref"),h=$("react.suspense"),m=$("react.suspense_list"),_=$("react.memo"),S=$("react.lazy"),T=$("react.block"),x=$("react.server.block"),F=$("react.fundamental"),$("react.scope"),$("react.opaque.id"),D=$("react.debug_trace_mode"),$("react.offscreen"),W=$("react.legacy_hidden")}var j=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function K(g){if(g===null||typeof g!="object")return null;var O=j&&g[j]||g[A];return typeof O=="function"?O:null}var G=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(g){{for(var O=arguments.length,I=new Array(O>1?O-1:0),q=1;q<O;q++)I[q-1]=arguments[q];ie("error",g,I)}}function ie(g,O,I){{var q=G.ReactDebugCurrentFrame,ae=q.getStackAddendum();ae!==""&&(O+="%s",I=I.concat([ae]));var oe=I.map(function(ee){return""+ee});oe.unshift("Warning: "+O),Function.prototype.apply.call(console[g],console,oe)}}var We=!1;function Re(g){return!!(typeof g=="string"||typeof g=="function"||g===e.Fragment||g===c||g===D||g===i||g===h||g===m||g===W||We||typeof g=="object"&&g!==null&&(g.$$typeof===S||g.$$typeof===_||g.$$typeof===l||g.$$typeof===d||g.$$typeof===p||g.$$typeof===F||g.$$typeof===T||g[0]===x))}function st(g,O,I){var q=O.displayName||O.name||"";return g.displayName||(q!==""?I+"("+q+")":I)}function Z(g){return g.displayName||"Context"}function we(g){if(g==null)return null;if(typeof g.tag=="number"&&Y("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case e.Fragment:return"Fragment";case s:return"Portal";case c:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case m:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case d:var O=g;return Z(O)+".Consumer";case l:var I=g;return Z(I._context)+".Provider";case p:return st(g,g.render,"ForwardRef");case _:return we(g.type);case T:return we(g._render);case S:{var q=g,ae=q._payload,oe=q._init;try{return we(oe(ae))}catch{return null}}}return null}var Xe=0,Ze,Ue,et,Dt,H,V,ve;function he(){}he.__reactDisabledLog=!0;function le(){{if(Xe===0){Ze=console.log,Ue=console.info,et=console.warn,Dt=console.error,H=console.group,V=console.groupCollapsed,ve=console.groupEnd;var g={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Xe++}}function ye(){{if(Xe--,Xe===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},g,{value:Ze}),info:t({},g,{value:Ue}),warn:t({},g,{value:et}),error:t({},g,{value:Dt}),group:t({},g,{value:H}),groupCollapsed:t({},g,{value:V}),groupEnd:t({},g,{value:ve})})}Xe<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=G.ReactCurrentDispatcher,fe;function ue(g,O,I){{if(fe===void 0)try{throw Error()}catch(ae){var q=ae.stack.trim().match(/\n( *(at )?)/);fe=q&&q[1]||""}return`
|
|
147
|
+
`+fe+g}}var me=!1,ge;{var J=typeof WeakMap=="function"?WeakMap:Map;ge=new J}function N(g,O){if(!g||me)return"";{var I=ge.get(g);if(I!==void 0)return I}var q;me=!0;var ae=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=se.current,se.current=null,le();try{if(O){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(ut){q=ut}Reflect.construct(g,[],ee)}else{try{ee.call()}catch(ut){q=ut}g.call(ee.prototype)}}else{try{throw Error()}catch(ut){q=ut}g()}}catch(ut){if(ut&&q&&typeof ut.stack=="string"){for(var Q=ut.stack.split(`
|
|
148
148
|
`),Ie=q.stack.split(`
|
|
149
149
|
`),be=Q.length-1,Ee=Ie.length-1;be>=1&&Ee>=0&&Q[be]!==Ie[Ee];)Ee--;for(;be>=1&&Ee>=0;be--,Ee--)if(Q[be]!==Ie[Ee]){if(be!==1||Ee!==1)do if(be--,Ee--,Ee<0||Q[be]!==Ie[Ee]){var at=`
|
|
150
|
-
`+Q[be].replace(" at new "," at ");return typeof g=="function"&&ge.set(g,at),at}while(be>=1&&Ee>=0);break}}}finally{me=!1,se.current=oe,ye(),Error.prepareStackTrace=ae}var Ft=g?g.displayName||g.name:"",
|
|
150
|
+
`+Q[be].replace(" at new "," at ");return typeof g=="function"&&ge.set(g,at),at}while(be>=1&&Ee>=0);break}}}finally{me=!1,se.current=oe,ye(),Error.prepareStackTrace=ae}var Ft=g?g.displayName||g.name:"",xn=Ft?ue(Ft):"";return typeof g=="function"&&ge.set(g,xn),xn}function Ge(g,O,I){return N(g,!1)}function qe(g){var O=g.prototype;return!!(O&&O.isReactComponent)}function it(g,O,I){if(g==null)return"";if(typeof g=="function")return N(g,qe(g));if(typeof g=="string")return ue(g);switch(g){case h:return ue("Suspense");case m:return ue("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case p:return Ge(g.render);case _:return it(g.type,O,I);case T:return Ge(g._render);case S:{var q=g,ae=q._payload,oe=q._init;try{return it(oe(ae),O,I)}catch{}}}return""}var vn={},It=G.ReactDebugCurrentFrame;function er(g){if(g){var O=g._owner,I=it(g.type,g._source,O?O.type:null);It.setExtraStackFrame(I)}else It.setExtraStackFrame(null)}function Ea(g,O,I,q,ae){{var oe=Function.call.bind(Object.prototype.hasOwnProperty);for(var ee in g)if(oe(g,ee)){var Q=void 0;try{if(typeof g[ee]!="function"){var Ie=Error((q||"React class")+": "+I+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}Q=g[ee](O,ee,q,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Q=be}Q&&!(Q instanceof Error)&&(er(ae),Y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",I,ee,typeof Q),er(null)),Q instanceof Error&&!(Q.message in vn)&&(vn[Q.message]=!0,er(ae),Y("Failed %s type: %s",I,Q.message),er(null))}}}var bt=G.ReactCurrentOwner,pt=Object.prototype.hasOwnProperty,Ir={key:!0,ref:!0,__self:!0,__source:!0},wr,yn,qt;qt={};function Sa(g){if(pt.call(g,"ref")){var O=Object.getOwnPropertyDescriptor(g,"ref").get;if(O&&O.isReactWarning)return!1}return g.ref!==void 0}function Fr(g){if(pt.call(g,"key")){var O=Object.getOwnPropertyDescriptor(g,"key").get;if(O&&O.isReactWarning)return!1}return g.key!==void 0}function Tr(g,O){if(typeof g.ref=="string"&&bt.current&&O&&bt.current.stateNode!==O){var I=we(bt.current.type);qt[I]||(Y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',we(bt.current.type),g.ref),qt[I]=!0)}}function mn(g,O){{var I=function(){wr||(wr=!0,Y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(g,"key",{get:I,configurable:!0})}}function bn(g,O){{var I=function(){yn||(yn=!0,Y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(g,"ref",{get:I,configurable:!0})}}var _n=function(g,O,I,q,ae,oe,ee){var Q={$$typeof:a,type:g,key:O,ref:I,props:ee,_owner:oe};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function En(g,O,I,q,ae){{var oe,ee={},Q=null,Ie=null;I!==void 0&&(Q=""+I),Fr(O)&&(Q=""+O.key),Sa(O)&&(Ie=O.ref,Tr(O,ae));for(oe in O)pt.call(O,oe)&&!Ir.hasOwnProperty(oe)&&(ee[oe]=O[oe]);if(g&&g.defaultProps){var be=g.defaultProps;for(oe in be)ee[oe]===void 0&&(ee[oe]=be[oe])}if(Q||Ie){var Ee=typeof g=="function"?g.displayName||g.name||"Unknown":g;Q&&mn(ee,Ee),Ie&&bn(ee,Ee)}return _n(g,Q,Ie,ae,q,bt.current,ee)}}var dr=G.ReactCurrentOwner,$r=G.ReactDebugCurrentFrame;function _t(g){if(g){var O=g._owner,I=it(g.type,g._source,O?O.type:null);$r.setExtraStackFrame(I)}else $r.setExtraStackFrame(null)}var pr;pr=!1;function hr(g){return typeof g=="object"&&g!==null&&g.$$typeof===a}function Sn(){{if(dr.current){var g=we(dr.current.type);if(g)return`
|
|
151
151
|
|
|
152
|
-
Check the render method of \``+g+"`."}return""}}function wa(g){{if(g!==void 0){var
|
|
152
|
+
Check the render method of \``+g+"`."}return""}}function wa(g){{if(g!==void 0){var O=g.fileName.replace(/^.*[\\\/]/,""),I=g.lineNumber;return`
|
|
153
153
|
|
|
154
|
-
Check your code at `+
|
|
154
|
+
Check your code at `+O+":"+I+"."}return""}}var wn={};function Wn(g){{var O=Sn();if(!O){var I=typeof g=="string"?g:g.displayName||g.name;I&&(O=`
|
|
155
155
|
|
|
156
|
-
Check the top-level render call using <`+I+">.")}return R}}function en(g,R){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=Wn(R);if(wn[I])return;wn[I]=!0;var q="";g&&g._owner&&g._owner!==dr.current&&(q=" It was passed a child from "+we(g._owner.type)+"."),_t(g),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,q),_t(null)}}function Tn(g,R){{if(typeof g!="object")return;if(Array.isArray(g))for(var I=0;I<g.length;I++){var q=g[I];hr(q)&&en(q,R)}else if(hr(g))g._store&&(g._store.validated=!0);else if(g){var ae=K(g);if(typeof ae=="function"&&ae!==g.entries)for(var oe=ae.call(g),ee;!(ee=oe.next()).done;)hr(ee.value)&&en(ee.value,R)}}}function Ta(g){{var R=g.type;if(R==null||typeof R=="string")return;var I;if(typeof R=="function")I=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===p||R.$$typeof===_))I=R.propTypes;else return;if(I){var q=we(R);Ea(I,g.props,"prop",q,g)}else if(R.PropTypes!==void 0&&!pr){pr=!0;var ae=we(R);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ae||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xa(g){{for(var R=Object.keys(g.props),I=0;I<R.length;I++){var q=R[I];if(q!=="children"&&q!=="key"){_t(g),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),_t(null);break}}g.ref!==null&&(_t(g),Y("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function xn(g,R,I,q,ae,oe){{var ee=Oe(g);if(!ee){var Q="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=wa(ae);Ie?Q+=Ie:Q+=Sn();var be;g===null?be="null":Array.isArray(g)?be="array":g!==void 0&&g.$$typeof===a?(be="<"+(we(g.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=En(g,R,I,ae,oe);if(Ee==null)return Ee;if(ee){var at=R.children;if(at!==void 0)if(q)if(Array.isArray(at)){for(var Ft=0;Ft<at.length;Ft++)Tn(at[Ft],g);Object.freeze&&Object.freeze(at)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Tn(at,g)}return g===e.Fragment?xa(Ee):Ta(Ee),Ee}}function Un(g,R,I){return xn(g,R,I,!0)}function Ca(g,R,I){return xn(g,R,I,!1)}var Ra=Ca,Oa=Un;e.jsx=Ra,e.jsxs=Oa}()}(Wu)),Wu}process.env.NODE_ENV==="production"?vc.exports=XI():vc.exports=ZI();var QI=vc.exports;const eF=({children:e,store:n})=>QI.jsx(ig,{store:n,children:e});exports.CATALOG_REFRESH_DELAY=$s;exports.DEFAULT_CACHE=Oc;exports.EAttributeKind=Zs;exports.EAttributeTypes=dv;exports.EDebuggerErrorReason=mh;exports.EDebuggerErrorType=ms;exports.EDebuggerState=Gr;exports.EDisplayMode=Wc;exports.EPermissionType=Me;exports.ETooltipBehavior=Bc;exports.ExpressionIndex=yh;exports.FLAGS_INIT_STATE=vv;exports.FLAGS_KEYS=ao;exports.ModalCloseReason=qc;exports.ModalColor=Dr;exports.ModalIcons=GP;exports.ModalType=Gt;exports.ROOT_WEBFORM_STATE=kc;exports.ReduxProvider=eF;exports.THEME_CLASSES=wg;exports.WT_FLAGS_KEYS=gv;exports.actionsToPrivs=$g;exports.addBreakpointDecoration=ED;exports.addComponent=mv;exports.addCraftedComponent=vI;exports.addDataSource=wI;exports.addDatasource=rl;exports.addEmptyNamespace=BI;exports.addExpression=CD;exports.addIn=bP;exports.addNewFile=Zg;exports.addPermission=xP;exports.addSession=FD;exports.addSharedSource=Fv;exports.addWebFormStyles=OI;exports.addWebformState=II;exports.allowed=yP;exports.attributeKinds=YD;exports.attributeScopes=JD;exports.attributeTypes=VD;exports.castToFileFolder=aD;exports.changeTabEditor=AI;exports.children=Rs;exports.clearBreakpoints=TD;exports.closeAllTabs=Cv;exports.closeLeftTabs=Av;exports.closeModal=NP;exports.closeOthers=Ov;exports.closeRightTabs=Rv;exports.closeSavedTabs=TI;exports.closeTab=al;exports.confirmTab=RI;exports.create=Fg;exports.createModal=Bg;exports.createModelFiles=pc;exports.createNewFile=ua;exports.createNewFileAndOpen=cD;exports.createNewNode=us;exports.createRole=FP;exports.createWithResource=EP;exports.dataclassScopes=KD;exports.deleteDatasource=Qa;exports.deleteFile=hc;exports.deleteFolder=lD;exports.deleteSharedSource=Mv;exports.deserializeModel=xh;exports.duplicateNode=cs;exports.editComponent=bv;exports.editCraftedComponent=yI;exports.editDataSource=Zc;exports.editDatasource=nl;exports.editModal=LP;exports.editRole=IP;exports.editSharedSource=$v;exports.editWebformState=FI;exports.editors=Yh;exports.executeMethod=dD;exports.expandFolder=eD;exports.extensions=zh;exports.fetchAppSettings=Kg;exports.fetchCatalog=kn;exports.fetchChanges=ov;exports.fetchCraftedComponents=wv;exports.fetchFiles=pD;exports.fetchFolderContent=Ar;exports.fetchFolderContentWithoutExpanding=Ja;exports.fetchModel=el;exports.fetchRoles=Os;exports.fetchRolesChanges=qg;exports.fetchSettings=Kc;exports.fetchSharedCss=fs;exports.fetchSharedDatasources=ls;exports.fetchTemplate=gI;exports.fetchTemplates=hI;exports.findNodeByPath=vt;exports.findOne=jn;exports.findSession=ft;exports.findSessionByPath=mg;exports.getCachedState=pa;exports.getCashedPrefrences=Th;exports.getDebuggerTabName=Fh;exports.getDebuggerTabPath=Pc;exports.getDefaultContent=Qg;exports.getDefaultName=QD;exports.getDictByName=Ng;exports.getEditors=Er;exports.getExtension=Kh;exports.getFilePath=rv;exports.getFileType=tv;exports.getFilenameFromType=ev;exports.getGraphData=TP;exports.getInheritedResources=jg;exports.getModalTitle=Ms;exports.getNodeRelativePath=Vh;exports.getPrivilegeById=Qr;exports.getPromotions=AP;exports.getResourceFromType=Gc;exports.getStore=kv;exports.indexTypes=XD;exports.initSharedCss=YI;exports.injectContentAtLine=nv;exports.inspect=cI;exports.isJSON=Ch;exports.isRelatedAttr=eI;exports.isRelatedEntitiesAttr=hv;exports.isRelatedEntityAttr=pv;exports.isRenameDatasource=bI;exports.isRolesOutdated=Yc;exports.isValidPrimaryKey=qD;exports.modelSubject=rg;exports.openAddFileInput=tD;exports.openFile=Xa;exports.openFileAtLine=Jc;exports.openFileAtSelection=av;exports.openModal=fr;exports.openModel=WD;exports.openRoles=_D;exports.openSettingsTab=PI;exports.openTabUnselected=Dv;exports.parents=zs;exports.populateShallow=wP;exports.primaryKeyAttributes=zD;exports.refactorWebform=Rh;exports.refreshFile=rD;exports.reloadTab=gc;exports.relocateNode=Za;exports.remove=mP;exports.removeAllExpressions=AD;exports.removeBreakpointDecoration=SD;exports.removeComponent=_v;exports.removeCraftedComponent=mI;exports.removeDataSource=CI;exports.removeDebuggerSessionsNotIn=lv;exports.removeExpression=OD;exports.removeFile=dc;exports.removeFileNode=fD;exports.removeFrom=_P;exports.removeModal=Wg;exports.removePermission=CP;exports.removeRole=DP;exports.removeSession=MD;exports.removeSessionByIndex=ND;exports.removeWebformState=$I;exports.rename=SP;exports.renameDataSource=Xc;exports.renameDatasource=fa;exports.renameExpression=RD;exports.renameFile=ca;exports.resetResources=RP;exports.rootReducer=Iv;exports.sanitize=Vs;exports.sanitizePermissions=Mg;exports.sanitizePrivileges=Dg;exports.saveAll=hD;exports.saveExpressions=ID;exports.saveModel=As;exports.savePrefrences=wh;exports.saveRole=$P;exports.saveRoles=cc;exports.saveState=Sh;exports.saveTab=la;exports.selectActiveLine=WO;exports.selectActiveTab=eA;exports.selectAllDatasourcesByPath=FO;exports.selectAppState=gg;exports.selectBreakpoints=NO;exports.selectCSSClassesByPath=PA;exports.selectCallChainVariables=JO;exports.selectCatalog=$c;exports.selectCatalogMethods=RO;exports.selectCatalogState=xO;exports.selectClassBreakpoints=jO;exports.selectClassOffset=ZO;exports.selectClasses=pA;exports.selectClassesFolder=Sg;exports.selectComponents=xg;exports.selectComponentsByPath=DO;exports.selectContentByPath=bg;exports.selectCraftedComponent=NA;exports.selectCurrentFrameByThreadId=zO;exports.selectCurrentTab=rA;exports.selectDataclasses=pg;exports.selectDatasource=IO;exports.selectDatasourcesByPath=vg;exports.selectDatasourcesTheme=jA;exports.selectDebuggerChannels=VO;exports.selectDebuggerData=Bn;exports.selectDebuggerMeta=$O;exports.selectDebuggerSessions=jt;exports.selectDebuggerSessionsCount=MO;exports.selectDebuggers=cA;exports.selectDraftBreakpoints=LO;exports.selectDraftClassBreakpoints=kO;exports.selectExceptions=QO;exports.selectExplorer=lA;exports.selectExpressions=UO;exports.selectExpressionsVariables=XO;exports.selectFlagsByPath=IA;exports.selectForceLogin=EA;exports.selectGuestPrivilege=mA;exports.selectHasTabs=oA;exports.selectHighlightedLines=BO;exports.selectInspectedCSSClass=FA;exports.selectInspectedDatasource=$A;exports.selectInspector=Hs;exports.selectInspectorStateByType=LA;exports.selectIsLoaded=kA;exports.selectMethods=fA;exports.selectMethodsFolder=Eg;exports.selectModals=hA;exports.selectMonacoZoom=OA;exports.selectPanelByPath=JI;exports.selectPartialSessionSettings=wA;exports.selectPreferences=xA;exports.selectPreviewedWebformsPaths=aA;exports.selectPrivileges=yA;exports.selectProjectSettings=TA;exports.selectQodly=RA;exports.selectRecentFiles=tA;exports.selectRemoteDebuggerMode=CA;exports.selectRoles=vA;exports.selectRolesAndPrivileges=gA;exports.selectRolesDate=SA;exports.selectRolesFlags=bA;exports.selectRoot=Zr;exports.selectSelectedTab=_A;exports.selectServerSettings=Lc;exports.selectSessionSettings=Nc;exports.selectSharedCSS=DA;exports.selectSharedDatasources=yg;exports.selectSourceByPath=GO;exports.selectSourceByThreadId=YO;exports.selectStackFrames=KO;exports.selectStoppedFromDebugSession=HO;exports.selectStylesByPath=AA;exports.selectTab=Pv;exports.selectTabByPath=_a;exports.selectTabByReference=Lt;exports.selectTabExtraByPath=sA;exports.selectTabMaxWeight=nA;exports.selectTabs=ba;exports.selectTemplates=Cg;exports.selectTemplatesData=MA;exports.selectThreadIdByPath=qO;exports.selectTouchedTabs=Mc;exports.selectTouchedTabsLength=uA;exports.selectVirtualDataClasses=CO;exports.selectWebForms=dA;exports.selectWebFormsFolder=_g;exports.selectWebformNodes=iA;exports.selectWebformStatesByPath=BA;exports.selectWebformStylesByPath=jc;exports.selectWebforms=uo;exports.serializeModel=ZD;exports.setActiveLine=xD;exports.setBreakpointsDecoration=wD;exports.setCallChainVariables=LD;exports.setContent=Tv;exports.setDataSources=xI;exports.setDatasourceEvents=kI;exports.setDatasourcesTheme=fI;exports.setDebuggerMeta=BD;exports.setExpression=PD;exports.setExpressionVariables=jD;exports.setFolderChildren=nD;exports.setModelFlag=GD;exports.setPanelState=DI;exports.setRolesContent=zc;exports.setSelectedGroup=lI;exports.setSessions=uv;exports.setSetting=lc;exports.setSettings=Js;exports.setSettingsAsText=JP;exports.setSourceContent=kD;exports.setTabExtra=SI;exports.setTabFlags=xv;exports.setTabs=_I;exports.setTabsFlags=EI;exports.setTemplateData=Sv;exports.setTemplatesData=Ev;exports.setWebformsFlag=dI;exports.sort=Ig;exports.stateReducer=jv;exports.stateSlice=oo;exports.toAPI=Ks;exports.toState=PP;exports.toggleExpandFolder=QP;exports.toggleForceLogin=YP;exports.toggleInspector=uI;exports.togglePermission=OP;exports.togglePrivilegePermission=Lg;exports.toggleTab=qP;exports.tryCloseAllTabs=vD;exports.tryCloseLeftTabs=mD;exports.tryCloseOtherTabs=gD;exports.tryCloseRightTabs=yD;exports.tryCloseTab=Qc;exports.tryEditMethod=oD;exports.tryInjectMethod=sv;exports.tryRenameDataclass=UD;exports.uniquePush=cr;exports.updateExpressionAt=DD;exports.updatePrivileges=zg;exports.updateRoles=Vg;exports.updateRolesAndPrivileges=Vc;exports.updateSession=$D;exports.updateSharedCss=qI;exports.updateSharedDatasources=ol;exports.uploadFile=uD;exports.uploadFileAndGetResponse=iD;exports.useAppDispatch=TO;exports.useAppSelector=Xr;exports.useAttribute=aI;exports.useCollections=rI;exports.useDataclass=nI;exports.useDataclasses=tI;exports.useMethod=PO;exports.useMethods=OO;exports.useModelFlags=sI;exports.useModelProperties=oI;exports.wipeDebuggerSessions=cv;
|
|
156
|
+
Check the top-level render call using <`+I+">.")}return O}}function en(g,O){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=Wn(O);if(wn[I])return;wn[I]=!0;var q="";g&&g._owner&&g._owner!==dr.current&&(q=" It was passed a child from "+we(g._owner.type)+"."),_t(g),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,q),_t(null)}}function Tn(g,O){{if(typeof g!="object")return;if(Array.isArray(g))for(var I=0;I<g.length;I++){var q=g[I];hr(q)&&en(q,O)}else if(hr(g))g._store&&(g._store.validated=!0);else if(g){var ae=K(g);if(typeof ae=="function"&&ae!==g.entries)for(var oe=ae.call(g),ee;!(ee=oe.next()).done;)hr(ee.value)&&en(ee.value,O)}}}function Ta(g){{var O=g.type;if(O==null||typeof O=="string")return;var I;if(typeof O=="function")I=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===p||O.$$typeof===_))I=O.propTypes;else return;if(I){var q=we(O);Ea(I,g.props,"prop",q,g)}else if(O.PropTypes!==void 0&&!pr){pr=!0;var ae=we(O);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ae||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ca(g){{for(var O=Object.keys(g.props),I=0;I<O.length;I++){var q=O[I];if(q!=="children"&&q!=="key"){_t(g),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),_t(null);break}}g.ref!==null&&(_t(g),Y("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function Cn(g,O,I,q,ae,oe){{var ee=Re(g);if(!ee){var Q="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=wa(ae);Ie?Q+=Ie:Q+=Sn();var be;g===null?be="null":Array.isArray(g)?be="array":g!==void 0&&g.$$typeof===a?(be="<"+(we(g.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=En(g,O,I,ae,oe);if(Ee==null)return Ee;if(ee){var at=O.children;if(at!==void 0)if(q)if(Array.isArray(at)){for(var Ft=0;Ft<at.length;Ft++)Tn(at[Ft],g);Object.freeze&&Object.freeze(at)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Tn(at,g)}return g===e.Fragment?Ca(Ee):Ta(Ee),Ee}}function Un(g,O,I){return Cn(g,O,I,!0)}function xa(g,O,I){return Cn(g,O,I,!1)}var Oa=xa,Ra=Un;e.jsx=Oa,e.jsxs=Ra}()}(Wu)),Wu}process.env.NODE_ENV==="production"?vc.exports=ZI():vc.exports=QI();var eF=vc.exports;const tF=({children:e,store:n})=>eF.jsx(ug,{store:n,children:e});exports.CATALOG_REFRESH_DELAY=$s;exports.DEFAULT_CACHE=Rc;exports.EAttributeKind=Zs;exports.EAttributeTypes=pv;exports.EDebuggerErrorReason=bh;exports.EDebuggerErrorType=ms;exports.EDebuggerState=Gr;exports.EDisplayMode=Uc;exports.EPermissionType=Me;exports.ETooltipBehavior=Bc;exports.EUnsavedPopOverChoice=Wc;exports.ExpressionIndex=mh;exports.FLAGS_INIT_STATE=yv;exports.FLAGS_KEYS=ao;exports.ModalCloseReason=Yc;exports.ModalColor=Dr;exports.ModalIcons=qP;exports.ModalType=Gt;exports.ROOT_WEBFORM_STATE=kc;exports.ReduxProvider=tF;exports.THEME_CLASSES=Tg;exports.WT_FLAGS_KEYS=vv;exports.actionsToPrivs=Mg;exports.addBreakpointDecoration=SD;exports.addComponent=bv;exports.addCraftedComponent=yI;exports.addDataSource=TI;exports.addDatasource=nl;exports.addEmptyNamespace=WI;exports.addExpression=OD;exports.addIn=_P;exports.addNewFile=Qg;exports.addPermission=xP;exports.addSession=$D;exports.addSharedSource=$v;exports.addWebFormStyles=AI;exports.addWebformState=FI;exports.allowed=mP;exports.attributeKinds=zD;exports.attributeScopes=XD;exports.attributeTypes=KD;exports.castToFileFolder=oD;exports.changeTabEditor=PI;exports.children=Os;exports.clearBreakpoints=CD;exports.closeAllTabs=Ov;exports.closeLeftTabs=Pv;exports.closeModal=LP;exports.closeOthers=Av;exports.closeRightTabs=Rv;exports.closeSavedTabs=CI;exports.closeTab=ol;exports.confirmTab=RI;exports.create=$g;exports.createModal=Wg;exports.createModelFiles=pc;exports.createNewFile=ua;exports.createNewFileAndOpen=lD;exports.createNewNode=us;exports.createRole=$P;exports.createWithResource=SP;exports.dataclassScopes=JD;exports.deleteDatasource=Qa;exports.deleteFile=hc;exports.deleteFolder=fD;exports.deleteSharedSource=Nv;exports.deserializeModel=xh;exports.duplicateNode=cs;exports.editComponent=_v;exports.editCraftedComponent=mI;exports.editDataSource=Qc;exports.editDatasource=al;exports.editModal=jP;exports.editRole=FP;exports.editSharedSource=Mv;exports.editWebformState=$I;exports.editors=zh;exports.executeMethod=pD;exports.expandFolder=tD;exports.extensions=Vh;exports.fetchAppSettings=Jg;exports.fetchCatalog=kn;exports.fetchChanges=sv;exports.fetchCraftedComponents=Tv;exports.fetchFiles=hD;exports.fetchFolderContent=Ar;exports.fetchFolderContentWithoutExpanding=Ja;exports.fetchModel=tl;exports.fetchRoles=Rs;exports.fetchRolesChanges=Yg;exports.fetchSettings=Jc;exports.fetchSharedCss=fs;exports.fetchSharedDatasources=ls;exports.fetchTemplate=vI;exports.fetchTemplates=gI;exports.findNodeByPath=vt;exports.findOne=jn;exports.findSession=ft;exports.findSessionByPath=bg;exports.getCachedState=pa;exports.getCashedPrefrences=Ch;exports.getDebuggerTabName=$h;exports.getDebuggerTabPath=Pc;exports.getDefaultContent=ev;exports.getDefaultName=eI;exports.getDictByName=Lg;exports.getEditors=Er;exports.getExtension=Jh;exports.getFilePath=nv;exports.getFileType=rv;exports.getFilenameFromType=tv;exports.getGraphData=CP;exports.getInheritedResources=kg;exports.getModalTitle=Ms;exports.getNodeRelativePath=Kh;exports.getPrivilegeById=Qr;exports.getPromotions=PP;exports.getResourceFromType=qc;exports.getStore=Bv;exports.indexTypes=ZD;exports.initSharedCss=zI;exports.injectContentAtLine=av;exports.inspect=lI;exports.isJSON=Oh;exports.isRelatedAttr=tI;exports.isRelatedEntitiesAttr=gv;exports.isRelatedEntityAttr=hv;exports.isRenameDatasource=_I;exports.isRolesOutdated=zc;exports.isValidPrimaryKey=YD;exports.modelSubject=ng;exports.openAddFileInput=rD;exports.openFile=Xa;exports.openFileAtLine=Xc;exports.openFileAtSelection=ov;exports.openModal=fr;exports.openModel=UD;exports.openRoles=ED;exports.openSettingsTab=DI;exports.openTabUnselected=Iv;exports.parents=zs;exports.populateShallow=TP;exports.primaryKeyAttributes=VD;exports.refactorWebform=Rh;exports.refreshFile=nD;exports.reloadTab=gc;exports.relocateNode=Za;exports.remove=bP;exports.removeAllExpressions=PD;exports.removeBreakpointDecoration=wD;exports.removeComponent=Ev;exports.removeCraftedComponent=bI;exports.removeDataSource=OI;exports.removeDebuggerSessionsNotIn=fv;exports.removeExpression=AD;exports.removeFile=dc;exports.removeFileNode=dD;exports.removeFrom=EP;exports.removeModal=Ug;exports.removePermission=OP;exports.removeRole=IP;exports.removeSession=ND;exports.removeSessionByIndex=LD;exports.removeWebformState=MI;exports.rename=wP;exports.renameDataSource=Zc;exports.renameDatasource=fa;exports.renameExpression=RD;exports.renameFile=ca;exports.resetResources=RP;exports.rootReducer=Fv;exports.sanitize=Vs;exports.sanitizePermissions=Ng;exports.sanitizePrivileges=Ig;exports.saveAll=gD;exports.saveExpressions=FD;exports.saveModel=As;exports.savePrefrences=Th;exports.saveRole=MP;exports.saveRoles=cc;exports.saveState=wh;exports.saveTab=la;exports.selectActiveLine=UR;exports.selectActiveTab=tA;exports.selectAllDatasourcesByPath=$R;exports.selectAppState=vg;exports.selectBreakpoints=LR;exports.selectCSSClassesByPath=DA;exports.selectCallChainVariables=XR;exports.selectCatalog=$c;exports.selectCatalogMethods=RR;exports.selectCatalogState=xR;exports.selectClassBreakpoints=kR;exports.selectClassOffset=QR;exports.selectClasses=hA;exports.selectClassesFolder=wg;exports.selectComponents=xg;exports.selectComponentsByPath=IR;exports.selectContentByPath=_g;exports.selectCraftedComponent=LA;exports.selectCurrentFrameByThreadId=VR;exports.selectCurrentTab=nA;exports.selectDataclasses=hg;exports.selectDatasource=FR;exports.selectDatasourcesByPath=yg;exports.selectDatasourcesTheme=kA;exports.selectDebuggerChannels=KR;exports.selectDebuggerData=Bn;exports.selectDebuggerMeta=MR;exports.selectDebuggerSessions=jt;exports.selectDebuggerSessionsCount=NR;exports.selectDebuggers=lA;exports.selectDraftBreakpoints=jR;exports.selectDraftClassBreakpoints=BR;exports.selectExceptions=eA;exports.selectExplorer=fA;exports.selectExpressions=HR;exports.selectExpressionsVariables=ZR;exports.selectFlagsByPath=FA;exports.selectForceLogin=SA;exports.selectGuestPrivilege=bA;exports.selectHasTabs=sA;exports.selectHighlightedLines=WR;exports.selectInspectedCSSClass=$A;exports.selectInspectedDatasource=MA;exports.selectInspector=Hs;exports.selectInspectorStateByType=jA;exports.selectIsLoaded=BA;exports.selectMethods=dA;exports.selectMethodsFolder=Sg;exports.selectModals=gA;exports.selectMonacoZoom=AA;exports.selectPanelByPath=XI;exports.selectPartialSessionSettings=TA;exports.selectPreferences=xA;exports.selectPreviewedWebformsPaths=oA;exports.selectPrivileges=mA;exports.selectProjectSettings=CA;exports.selectQodly=RA;exports.selectRecentFiles=rA;exports.selectRemoteDebuggerMode=OA;exports.selectRoles=yA;exports.selectRolesAndPrivileges=vA;exports.selectRolesDate=wA;exports.selectRolesFlags=_A;exports.selectRoot=Zr;exports.selectSelectedTab=EA;exports.selectServerSettings=Lc;exports.selectSessionSettings=Nc;exports.selectSharedCSS=IA;exports.selectSharedDatasources=mg;exports.selectSourceByPath=qR;exports.selectSourceByThreadId=zR;exports.selectStackFrames=JR;exports.selectStoppedFromDebugSession=GR;exports.selectStylesByPath=PA;exports.selectTab=Dv;exports.selectTabByPath=_a;exports.selectTabByReference=Lt;exports.selectTabExtraByPath=iA;exports.selectTabMaxWeight=aA;exports.selectTabs=ba;exports.selectTemplates=Og;exports.selectTemplatesData=NA;exports.selectThreadIdByPath=YR;exports.selectTouchedTabs=Mc;exports.selectTouchedTabsLength=cA;exports.selectVirtualDataClasses=OR;exports.selectWebForms=pA;exports.selectWebFormsFolder=Eg;exports.selectWebformNodes=uA;exports.selectWebformStatesByPath=WA;exports.selectWebformStylesByPath=jc;exports.selectWebforms=uo;exports.serializeModel=QD;exports.setActiveLine=xD;exports.setBreakpointsDecoration=TD;exports.setCallChainVariables=jD;exports.setContent=Cv;exports.setDataSources=xI;exports.setDatasourceEvents=BI;exports.setDatasourcesTheme=dI;exports.setDebuggerMeta=WD;exports.setExpression=DD;exports.setExpressionVariables=kD;exports.setFolderChildren=aD;exports.setModelFlag=qD;exports.setPanelState=II;exports.setRolesContent=Vc;exports.setSelectedGroup=fI;exports.setSessions=cv;exports.setSetting=lc;exports.setSettings=Js;exports.setSettingsAsText=XP;exports.setSourceContent=BD;exports.setTabExtra=wI;exports.setTabFlags=xv;exports.setTabs=EI;exports.setTabsFlags=SI;exports.setTemplateData=wv;exports.setTemplatesData=Sv;exports.setWebformsFlag=pI;exports.sort=Fg;exports.stateReducer=kv;exports.stateSlice=oo;exports.toAPI=Ks;exports.toState=DP;exports.toggleExpandFolder=eD;exports.toggleForceLogin=zP;exports.toggleInspector=cI;exports.togglePermission=AP;exports.togglePrivilegePermission=jg;exports.toggleTab=YP;exports.tryCloseAllTabs=yD;exports.tryCloseLeftTabs=bD;exports.tryCloseOtherTabs=vD;exports.tryCloseRightTabs=mD;exports.tryCloseTab=el;exports.tryEditMethod=sD;exports.tryInjectMethod=iv;exports.tryRenameDataclass=HD;exports.uniquePush=cr;exports.updateExpressionAt=ID;exports.updatePrivileges=Vg;exports.updateRoles=Kg;exports.updateRolesAndPrivileges=Kc;exports.updateSession=MD;exports.updateSharedCss=YI;exports.updateSharedDatasources=sl;exports.uploadFile=cD;exports.uploadFileAndGetResponse=uD;exports.useAppDispatch=CR;exports.useAppSelector=Xr;exports.useAttribute=oI;exports.useCollections=nI;exports.useDataclass=aI;exports.useDataclasses=rI;exports.useMethod=DR;exports.useMethods=AR;exports.useModelFlags=iI;exports.useModelProperties=sI;exports.wipeDebuggerSessions=lv;
|
|
157
157
|
//# sourceMappingURL=index.cjs.js.map
|