@ws-ui/store 0.0.18 → 0.0.20
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 +31 -31
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3104 -3089
- package/dist/index.es.js.map +1 -1
- package/dist/modules/modals/thunks.d.ts +2 -2
- package/dist/modules/model/types.d.ts +4 -0
- package/dist/modules/roles/reducer.d.ts +0 -8
- package/dist/modules/webforms/reducer.d.ts +0 -1
- package/dist/store.d.ts +9 -101
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("@ws-ui/shared"),Ke=require("react"),sS=require("react-dom");function Xe(e){for(var r=arguments.length,t=Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=gS[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 jr(e){return!!e&&!!e[ye]}function vr(e){var r;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)===vS}(e)||Array.isArray(e)||!!e[Fa]||!!(!((r=e.constructor)===null||r===void 0)&&r[Fa])||Os(e)||As(e))}function Br(e,r,t){t===void 0&&(t=!1),un(e)===0?(t?Object.keys:Kn)(e).forEach(function(a){t&&typeof a=="symbol"||r(a,e[a],e)}):e.forEach(function(a,s){return r(s,a,e)})}function un(e){var r=e[ye];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Os(e)?2:As(e)?3:0}function an(e,r){return un(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function ts(e,r){return un(e)===2?e.get(r):e[r]}function Qp(e,r,t){var a=un(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function eh(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Os(e){return pS&&e instanceof Map}function As(e){return hS&&e instanceof Set}function dt(e){return e.o||e.t}function _c(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=th(e);delete r[ye];for(var t=Kn(r),a=0;a<t.length;a++){var s=t[a],i=r[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),r)}function Ec(e,r){return r===void 0&&(r=!1),Sc(e)||jr(e)||!vr(e)||(un(e)>1&&(e.set=e.add=e.clear=e.delete=iS),Object.freeze(e),r&&Br(e,function(t,a){return Ec(a,!0)},!0)),e}function iS(){Xe(2)}function Sc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Er(e){var r=Vu[e];return r||Xe(18,e),r}function wc(e,r){Vu[e]||(Vu[e]=r)}function ja(){return process.env.NODE_ENV==="production"||ta||Xe(0),ta}function hu(e,r){r&&(Er("Patches"),e.u=[],e.s=[],e.v=r)}function cs(e){Yu(e),e.p.forEach(uS),e.p=null}function Yu(e){e===ta&&(ta=e.l)}function $d(e){return ta={p:[],l:ta,h:e,m:!0,_:0}}function uS(e){var r=e[ye];r.i===0||r.i===1?r.j():r.g=!0}function gu(e,r){r._=r.p.length;var t=r.p[0],a=e!==void 0&&e!==t;return r.h.O||Er("ES5").S(r,e,a),a?(t[ye].P&&(cs(r),Xe(4)),vr(e)&&(e=ls(r,e),r.l||fs(r,e)),r.u&&Er("Patches").M(t[ye].t,e,r.u,r.s)):e=ls(r,t,[]),cs(r),r.u&&r.v(r.u,r.s),e!==xc?e:void 0}function ls(e,r,t){if(Sc(r))return r;var a=r[ye];if(!a)return Br(r,function(l,d){return Md(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return fs(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=_c(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Br(i,function(l,d){return Md(e,a,s,l,d,t,c)}),fs(e,s,!1),t&&e.u&&Er("Patches").N(a,t,e.u,e.s)}return a.o}function Md(e,r,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Xe(5),jr(s)){var l=ls(e,s,i&&r&&r.i!==3&&!an(r.R,a)?i.concat(a):void 0);if(Qp(t,a,l),!jr(l))return;e.m=!1}else c&&t.add(s);if(vr(s)&&!Sc(s)){if(!e.h.D&&e._<1)return;ls(e,s),r&&r.A.l||fs(e,s)}}function fs(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&Ec(r,t)}function vu(e,r){var t=e[ye];return(t?dt(t):e)[r]}function Nd(e,r){if(r in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,r);if(a)return a;t=Object.getPrototypeOf(t)}}function Lt(e){e.P||(e.P=!0,e.l&&Lt(e.l))}function mu(e){e.o||(e.o=_c(e.t))}function Ba(e,r,t){var a=Os(r)?Er("MapSet").F(r,t):As(r)?Er("MapSet").T(r,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:ja(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=Wa;c&&(d=[l],p=Da);var g=Proxy.revocable(d,p),m=g.revoke,b=g.proxy;return l.k=b,l.j=m,b}(r,t):Er("ES5").J(r,t);return(t?t.A:ja()).p.push(a),a}function cS(e){return jr(e)||Xe(22,e),function r(t){if(!vr(t))return t;var a,s=t[ye],i=un(t);if(s){if(!s.P&&(s.i<4||!Er("ES5").K(s)))return s.t;s.I=!0,a=Ld(t,i),s.I=!1}else a=Ld(t,i);return Br(a,function(c,l){s&&ts(s.t,c)===l||Qp(a,c,r(l))}),i===3?new Set(a):a}(e)}function Ld(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return _c(e)}function lS(){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[ye];return process.env.NODE_ENV!=="production"&&s(p),Wa.get(p,c)},set:function(p){var g=this[ye];process.env.NODE_ENV!=="production"&&s(g),Wa.set(g,c,p)}},d}function r(c){for(var l=c.length-1;l>=0;l--){var d=c[l][ye];if(!d.P)switch(d.i){case 5:a(d)&&Lt(d);break;case 4:t(d)&&Lt(d)}}}function t(c){for(var l=c.t,d=c.k,p=Kn(d),g=p.length-1;g>=0;g--){var m=p[g];if(m!==ye){var b=l[m];if(b===void 0&&!an(l,m))return!0;var E=d[m],x=E&&E[ye];if(x?x.t!==b:!eh(E,b))return!0}}var C=!!l[ye];return p.length!==Kn(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&&Xe(3,JSON.stringify(dt(c)))}var i={};wc("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(m,b){if(m){for(var E=Array(b.length),x=0;x<b.length;x++)Object.defineProperty(E,""+x,e(x,!0));return E}var C=th(b);delete C[ye];for(var I=Kn(C),P=0;P<I.length;P++){var j=I[P];C[j]=e(j,m||!!C[j].enumerable)}return Object.create(Object.getPrototypeOf(b),C)}(d,c),g={i:d?5:4,A:l?l.A:ja(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ye,{value:g,writable:!0}),p},S:function(c,l,d){d?jr(l)&&l[ye].A===c&&r(c.p):(c.u&&function p(g){if(g&&typeof g=="object"){var m=g[ye];if(m){var b=m.t,E=m.k,x=m.R,C=m.i;if(C===4)Br(E,function(k){k!==ye&&(b[k]!==void 0||an(b,k)?x[k]||p(E[k]):(x[k]=!0,Lt(m)))}),Br(b,function(k){E[k]!==void 0||an(E,k)||(x[k]=!1,Lt(m))});else if(C===5){if(a(m)&&(Lt(m),x.length=!0),E.length<b.length)for(var I=E.length;I<b.length;I++)x[I]=!1;else for(var P=b.length;P<E.length;P++)x[P]=!0;for(var j=Math.min(E.length,b.length),M=0;M<j;M++)E.hasOwnProperty(M)||(x[M]=!0),x[M]===void 0&&p(E[M])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function fS(){function e(a){if(!vr(a))return a;if(Array.isArray(a))return a.map(e);if(Os(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(As(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 an(a,Fa)&&(s[Fa]=a[Fa]),s}function r(a){return jr(a)?e(a):a}var t="add";wc("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 g=un(d),m=c[p];typeof m!="string"&&typeof m!="number"&&(m=""+m),g!==0&&g!==1||m!=="__proto__"&&m!=="constructor"||Xe(24),typeof d=="function"&&m==="prototype"&&Xe(24),typeof(d=ts(d,m))!="object"&&Xe(15,c.join("/"))}var b=un(d),E=e(i.value),x=c[c.length-1];switch(l){case"replace":switch(b){case 2:return d.set(x,E);case 3:Xe(16);default:return d[x]=E}case t:switch(b){case 1:return x==="-"?d.push(E):d.splice(x,0,E);case 2:return d.set(x,E);case 3:return d.add(E);default:return d[x]=E}case"remove":switch(b){case 1:return d.splice(x,1);case 2:return d.delete(x);case 3:return d.delete(i.value);default:return delete d[x]}default:Xe(17,l)}}),a},N:function(a,s,i,c){switch(a.i){case 0:case 4:case 2:return function(l,d,p,g){var m=l.t,b=l.o;Br(l.R,function(E,x){var C=ts(m,E),I=ts(b,E),P=x?an(m,E)?"replace":t:"remove";if(C!==I||P!=="replace"){var j=d.concat(E);p.push(P==="remove"?{op:P,path:j}:{op:P,path:j,value:I}),g.push(P===t?{op:"remove",path:j}:P==="remove"?{op:t,path:j,value:r(C)}:{op:"replace",path:j,value:r(C)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,g){var m=l.t,b=l.R,E=l.o;if(E.length<m.length){var x=[E,m];m=x[0],E=x[1];var C=[g,p];p=C[0],g=C[1]}for(var I=0;I<m.length;I++)if(b[I]&&E[I]!==m[I]){var P=d.concat([I]);p.push({op:"replace",path:P,value:r(E[I])}),g.push({op:"replace",path:P,value:r(m[I])})}for(var j=m.length;j<E.length;j++){var M=d.concat([j]);p.push({op:t,path:M,value:r(E[j])})}m.length<E.length&&g.push({op:"replace",path:d.concat(["length"]),value:m.length})}(a,s,i,c);case 3:return function(l,d,p,g){var m=l.t,b=l.o,E=0;m.forEach(function(x){if(!b.has(x)){var C=d.concat([E]);p.push({op:"remove",path:C,value:x}),g.unshift({op:t,path:C,value:x})}E++}),E=0,b.forEach(function(x){if(!m.has(x)){var C=d.concat([E]);p.push({op:t,path:C,value:x}),g.unshift({op:"remove",path:C,value:x})}E++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===xc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function dS(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function r(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(vr(d)){var p=Ba(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&Xe(3,JSON.stringify(dt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var m in g)g.hasOwnProperty(m)&&(p[m]=g[m])})(l,d)},i=function(){function l(p,g){return this[ye]={i:2,l:g,A:g?g.A:ja(),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 dt(this[ye]).size}}),d.has=function(p){return dt(this[ye]).has(p)},d.set=function(p,g){var m=this[ye];return a(m),dt(m).has(p)&&dt(m).get(p)===g||(r(m),Lt(m),m.R.set(p,!0),m.o.set(p,g),m.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),r(g),Lt(g),g.t.has(p)?g.R.set(p,!1):g.R.delete(p),g.o.delete(p),!0},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(r(p),Lt(p),p.R=new Map,Br(p.t,function(g){p.R.set(g,!1)}),p.o.clear())},d.forEach=function(p,g){var m=this;dt(this[ye]).forEach(function(b,E){p.call(g,m.get(E),E,m)})},d.get=function(p){var g=this[ye];a(g);var m=dt(g).get(p);if(g.I||!vr(m)||m!==g.t.get(p))return m;var b=Ba(g.A.h,m,g);return r(g),g.o.set(p,b),b},d.keys=function(){return dt(this[ye]).keys()},d.values=function(){var p,g=this,m=this.keys();return(p={})[Vo]=function(){return g.values()},p.next=function(){var b=m.next();return b.done?b:{done:!1,value:g.get(b.value)}},p},d.entries=function(){var p,g=this,m=this.keys();return(p={})[Vo]=function(){return g.entries()},p.next=function(){var b=m.next();if(b.done)return b;var E=g.get(b.value);return{done:!1,value:[b.value,E]}},p},d[Vo]=function(){return this.entries()},l}(),c=function(){function l(p,g){return this[ye]={i:3,l:g,A:g?g.A:ja(),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 dt(this[ye]).size}}),d.has=function(p){var g=this[ye];return a(g),g.o?!!g.o.has(p)||!(!g.p.has(p)||!g.o.has(g.p.get(p))):g.t.has(p)},d.add=function(p){var g=this[ye];return a(g),this.has(p)||(t(g),Lt(g),g.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),t(g),Lt(g),g.o.delete(p)||!!g.p.has(p)&&g.o.delete(g.p.get(p))},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[ye];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[ye];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Vo]=function(){return this.values()},d.forEach=function(p,g){for(var m=this.values(),b=m.next();!b.done;)p.call(g,b.value,b.value,this),b=m.next()},l}();wc("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var kd,ta,Tc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",pS=typeof Map<"u",hS=typeof Set<"u",jd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",xc=Tc?Symbol.for("immer-nothing"):((kd={})["immer-nothing"]=!0,kd),Fa=Tc?Symbol.for("immer-draftable"):"__$immer_draftable",ye=Tc?Symbol.for("immer-state"):"__$immer_state",Vo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",gS={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"},vS=""+Object.prototype.constructor,Kn=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 r={};return Kn(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},Vu={},Wa={get:function(e,r){if(r===ye)return e;var t=dt(e);if(!an(t,r))return function(s,i,c){var l,d=Nd(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,r);var a=t[r];return e.I||!vr(a)?a:a===vu(e.t,r)?(mu(e),e.o[r]=Ba(e.A.h,a,e)):a},has:function(e,r){return r in dt(e)},ownKeys:function(e){return Reflect.ownKeys(dt(e))},set:function(e,r,t){var a=Nd(dt(e),r);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=vu(dt(e),r),i=s==null?void 0:s[ye];if(i&&i.t===t)return e.o[r]=t,e.R[r]=!1,!0;if(eh(t,s)&&(t!==void 0||an(e.t,r)))return!0;mu(e),Lt(e)}return e.o[r]===t&&(t!==void 0||r in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[r])||(e.o[r]=t,e.R[r]=!0),!0},deleteProperty:function(e,r){return vu(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,mu(e),Lt(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=dt(e),a=Reflect.getOwnPropertyDescriptor(t,r);return a&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:a.enumerable,value:t[r]}},defineProperty:function(){Xe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xe(12)}},Da={};Br(Wa,function(e,r){Da[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Da.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Xe(13),Da.set.call(this,e,r,void 0)},Da.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Xe(14),Wa.set.call(this,e[0],r,t,e[0])};var mS=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(C){var I=this;C===void 0&&(C=l);for(var P=arguments.length,j=Array(P>1?P-1:0),M=1;M<P;M++)j[M-1]=arguments[M];return d.produce(C,function(k){var O;return(O=i).call.apply(O,[I,k].concat(j))})}}var p;if(typeof i!="function"&&Xe(6),c!==void 0&&typeof c!="function"&&Xe(7),vr(s)){var g=$d(a),m=Ba(a,s,void 0),b=!0;try{p=i(m),b=!1}finally{b?cs(g):Yu(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return hu(g,c),gu(C,g)},function(C){throw cs(g),C}):(hu(g,c),gu(p,g))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===xc&&(p=void 0),a.D&&Ec(p,!0),c){var E=[],x=[];Er("Patches").M(s,p,E,x),c(E,x)}return p}Xe(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var g=arguments.length,m=Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(m))})};var c,l,d=a.produce(s,i,function(p,g){c=p,l=g});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 r=e.prototype;return r.createDraft=function(t){vr(t)||Xe(8),jr(t)&&(t=cS(t));var a=$d(this),s=Ba(this,t,void 0);return s[ye].C=!0,Yu(a),s},r.finishDraft=function(t,a){var s=t&&t[ye];process.env.NODE_ENV!=="production"&&(s&&s.C||Xe(9),s.I&&Xe(10));var i=s.A;return hu(i,a),gu(void 0,i)},r.setAutoFreeze=function(t){this.D=t},r.setUseProxies=function(t){t&&!jd&&Xe(20),this.O=t},r.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=Er("Patches").$;return jr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),zt=new mS,rs=zt.produce;zt.produceWithPatches.bind(zt);zt.setAutoFreeze.bind(zt);zt.setUseProxies.bind(zt);zt.applyPatches.bind(zt);zt.createDraft.bind(zt);zt.finishDraft.bind(zt);function Ua(e){"@babel/helpers - typeof";return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ua(e)}function yS(e,r){if(Ua(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(Ua(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function bS(e){var r=yS(e,"string");return Ua(r)==="symbol"?r:String(r)}function _S(e,r,t){return r=bS(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Bd(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function Wd(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Bd(Object(t),!0).forEach(function(a){_S(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Bd(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function xt(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 Ud=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),yu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rn={INIT:"@@redux/INIT"+yu(),REPLACE:"@@redux/REPLACE"+yu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+yu()}};function rh(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function ES(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(e))return"array";if(TS(e))return"date";if(wS(e))return"error";var t=SS(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}function SS(e){return typeof e.constructor=="function"?e.constructor.name:null}function wS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function TS(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Cn(e){var r=typeof e;return process.env.NODE_ENV!=="production"&&(r=ES(e)),r}function nh(e,r,t){var a;if(typeof r=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?xt(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 r=="function"&&typeof t>"u"&&(t=r,r=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?xt(1):"Expected the enhancer to be a function. Instead, received: '"+Cn(t)+"'");return t(nh)(e,r)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xt(2):"Expected the root reducer to be a function. Instead, received: '"+Cn(e)+"'");var s=e,i=r,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function g(){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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"?xt(4):"Expected the listener to be a function. Instead, received: '"+Cn(C)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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 I=!0;return p(),l.push(C),function(){if(I){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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.");I=!1,p();var j=l.indexOf(C);l.splice(j,1),c=null}}}function b(C){if(!rh(C))throw new Error(process.env.NODE_ENV==="production"?xt(7):"Actions must be plain objects. Instead, the actual type was: '"+Cn(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"?xt(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"?xt(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,C)}finally{d=!1}for(var I=c=l,P=0;P<I.length;P++){var j=I[P];j()}return C}function E(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?xt(10):"Expected the nextReducer to be a function. Instead, received: '"+Cn(C));s=C,b({type:Rn.REPLACE})}function x(){var C,I=m;return C={subscribe:function(j){if(typeof j!="object"||j===null)throw new Error(process.env.NODE_ENV==="production"?xt(11):"Expected the observer to be an object. Instead, received: '"+Cn(j)+"'");function M(){j.next&&j.next(g())}M();var k=I(M);return{unsubscribe:k}}},C[Ud]=function(){return this},C}return b({type:Rn.INIT}),a={dispatch:b,subscribe:m,getState:g,replaceReducer:E},a[Ud]=x,a}function Hd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function xS(e,r,t,a){var s=Object.keys(r),i=t&&t.type===Rn.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 "'+Cn(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var c=Object.keys(e).filter(function(l){return!r.hasOwnProperty(l)&&!a[l]});if(c.forEach(function(l){a[l]=!0}),!(t&&t.type===Rn.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 CS(e){Object.keys(e).forEach(function(r){var t=e[r],a=t(void 0,{type:Rn.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?xt(12):'The slice reducer for key "'+r+`" 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:Rn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?xt(13):'The slice reducer for key "'+r+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Rn.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 r=Object.keys(e),t={},a=0;a<r.length;a++){var s=r[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Hd('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{CS(t)}catch(d){l=d}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var m=xS(p,t,g,c);m&&Hd(m)}for(var b=!1,E={},x=0;x<i.length;x++){var C=i[x],I=t[C],P=p[C],j=I(P,g);if(typeof j>"u"){var M=g&&g.type;throw new Error(process.env.NODE_ENV==="production"?xt(14):"When called with an action of type "+(M?'"'+String(M)+'"':"(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.')}E[C]=j,b=b||j!==P}return b=b||i.length!==Object.keys(p).length,b?E:p}}function ds(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.length===0?function(a){return a}:r.length===1?r[0]:r.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function RS(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[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"?xt(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=r.map(function(d){return d(c)});return i=ds.apply(void 0,l)(s.dispatch),Wd(Wd({},s),{},{dispatch:i})}}}var ps="NOT_FOUND";function OS(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:ps},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function AS(e,r){var t=[];function a(l){var d=t.findIndex(function(g){return r(l,g.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return ps}function s(l,d){a(l)===ps&&(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 PS=function(r,t){return r===t};function DS(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 IS(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?PS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=DS(s),p=c===1?OS(d):AS(c,d);function g(){var m=p.get(arguments);if(m===ps){if(m=e.apply(null,arguments),l){var b=p.getEntries(),E=b.find(function(x){return l(x.value,m)});E&&(m=E.value)}p.put(arguments,m)}return m}return g.clearCache=function(){return p.clear()},g}function FS(e){var r=Array.isArray(e[0])?e[0]:e;if(!r.every(function(a){return typeof a=="function"})){var t=r.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 r}function $S(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;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,g,m={memoizeOptions:void 0},b=l.pop();if(typeof b=="object"&&(m=b,b=l.pop()),typeof b!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof b+"]");var E=m,x=E.memoizeOptions,C=x===void 0?t:x,I=Array.isArray(C)?C:[C],P=FS(l),j=e.apply(void 0,[function(){return p++,b.apply(null,arguments)}].concat(I)),M=e(function(){for(var O=[],Y=P.length,H=0;H<Y;H++)O.push(P[H].apply(null,arguments));return g=j.apply(null,O),g});return Object.assign(M,{resultFunc:b,memoizedResultFunc:j,dependencies:P,lastResult:function(){return g},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),M};return s}var q=$S(IS);function oh(e){var r=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 r}var sh=oh();sh.withExtraArgument=oh;const qd=sh;var MS=globalThis&&globalThis.__extends||function(){var e=function(r,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(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),NS=globalThis&&globalThis.__generator||function(e,r){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(g){return d([p,g])}}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=r.call(e,t)}catch(g){p=[6,g],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},hs=globalThis&&globalThis.__spreadArray||function(e,r){for(var t=0,a=r.length,s=e.length;t<a;t++,s++)e[s]=r[t];return e},LS=Object.defineProperty,kS=Object.defineProperties,jS=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,BS=Object.prototype.hasOwnProperty,WS=Object.prototype.propertyIsEnumerable,zd=function(e,r,t){return r in e?LS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},on=function(e,r){for(var t in r||(r={}))BS.call(r,t)&&zd(e,t,r[t]);if(Gd)for(var a=0,s=Gd(r);a<s.length;a++){var t=s[a];WS.call(r,t)&&zd(e,t,r[t])}return e},bu=function(e,r){return kS(e,jS(r))},US=function(e,r,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,r)).next())})},HS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ds:ds.apply(null,arguments)};function ih(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return r===t}function uh(e,r){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(r+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("@ws-ui/shared"),Ke=require("react"),rS=require("react-dom");function Xe(e){for(var r=arguments.length,t=Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=fS[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 jr(e){return!!e&&!!e[ye]}function vr(e){var r;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)===dS}(e)||Array.isArray(e)||!!e[Ia]||!!(!((r=e.constructor)===null||r===void 0)&&r[Ia])||Cs(e)||Rs(e))}function Br(e,r,t){t===void 0&&(t=!1),un(e)===0?(t?Object.keys:Vn)(e).forEach(function(a){t&&typeof a=="symbol"||r(a,e[a],e)}):e.forEach(function(a,s){return r(s,a,e)})}function un(e){var r=e[ye];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Cs(e)?2:Rs(e)?3:0}function an(e,r){return un(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Qo(e,r){return un(e)===2?e.get(r):e[r]}function Kp(e,r,t){var a=un(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function Jp(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Cs(e){return cS&&e instanceof Map}function Rs(e){return lS&&e instanceof Set}function dt(e){return e.o||e.t}function yc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Xp(e);delete r[ye];for(var t=Vn(r),a=0;a<t.length;a++){var s=t[a],i=r[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),r)}function bc(e,r){return r===void 0&&(r=!1),_c(e)||jr(e)||!vr(e)||(un(e)>1&&(e.set=e.add=e.clear=e.delete=nS),Object.freeze(e),r&&Br(e,function(t,a){return bc(a,!0)},!0)),e}function nS(){Xe(2)}function _c(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Er(e){var r=zu[e];return r||Xe(18,e),r}function Ec(e,r){zu[e]||(zu[e]=r)}function ka(){return process.env.NODE_ENV==="production"||ea||Xe(0),ea}function pu(e,r){r&&(Er("Patches"),e.u=[],e.s=[],e.v=r)}function is(e){Gu(e),e.p.forEach(aS),e.p=null}function Gu(e){e===ea&&(ea=e.l)}function Id(e){return ea={p:[],l:ea,h:e,m:!0,_:0}}function aS(e){var r=e[ye];r.i===0||r.i===1?r.j():r.g=!0}function hu(e,r){r._=r.p.length;var t=r.p[0],a=e!==void 0&&e!==t;return r.h.O||Er("ES5").S(r,e,a),a?(t[ye].P&&(is(r),Xe(4)),vr(e)&&(e=us(r,e),r.l||cs(r,e)),r.u&&Er("Patches").M(t[ye].t,e,r.u,r.s)):e=us(r,t,[]),is(r),r.u&&r.v(r.u,r.s),e!==wc?e:void 0}function us(e,r,t){if(_c(r))return r;var a=r[ye];if(!a)return Br(r,function(l,d){return Fd(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return cs(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),Br(i,function(l,d){return Fd(e,a,s,l,d,t,c)}),cs(e,s,!1),t&&e.u&&Er("Patches").N(a,t,e.u,e.s)}return a.o}function Fd(e,r,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Xe(5),jr(s)){var l=us(e,s,i&&r&&r.i!==3&&!an(r.R,a)?i.concat(a):void 0);if(Kp(t,a,l),!jr(l))return;e.m=!1}else c&&t.add(s);if(vr(s)&&!_c(s)){if(!e.h.D&&e._<1)return;us(e,s),r&&r.A.l||cs(e,s)}}function cs(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&bc(r,t)}function gu(e,r){var t=e[ye];return(t?dt(t):e)[r]}function $d(e,r){if(r in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,r);if(a)return a;t=Object.getPrototypeOf(t)}}function Lt(e){e.P||(e.P=!0,e.l&&Lt(e.l))}function vu(e){e.o||(e.o=yc(e.t))}function ja(e,r,t){var a=Cs(r)?Er("MapSet").F(r,t):Rs(r)?Er("MapSet").T(r,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:ka(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=Ba;c&&(d=[l],p=Pa);var g=Proxy.revocable(d,p),m=g.revoke,b=g.proxy;return l.k=b,l.j=m,b}(r,t):Er("ES5").J(r,t);return(t?t.A:ka()).p.push(a),a}function oS(e){return jr(e)||Xe(22,e),function r(t){if(!vr(t))return t;var a,s=t[ye],i=un(t);if(s){if(!s.P&&(s.i<4||!Er("ES5").K(s)))return s.t;s.I=!0,a=Md(t,i),s.I=!1}else a=Md(t,i);return Br(a,function(c,l){s&&Qo(s.t,c)===l||Kp(a,c,r(l))}),i===3?new Set(a):a}(e)}function Md(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return yc(e)}function sS(){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[ye];return process.env.NODE_ENV!=="production"&&s(p),Ba.get(p,c)},set:function(p){var g=this[ye];process.env.NODE_ENV!=="production"&&s(g),Ba.set(g,c,p)}},d}function r(c){for(var l=c.length-1;l>=0;l--){var d=c[l][ye];if(!d.P)switch(d.i){case 5:a(d)&&Lt(d);break;case 4:t(d)&&Lt(d)}}}function t(c){for(var l=c.t,d=c.k,p=Vn(d),g=p.length-1;g>=0;g--){var m=p[g];if(m!==ye){var b=l[m];if(b===void 0&&!an(l,m))return!0;var E=d[m],x=E&&E[ye];if(x?x.t!==b:!Jp(E,b))return!0}}var C=!!l[ye];return p.length!==Vn(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&&Xe(3,JSON.stringify(dt(c)))}var i={};Ec("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(m,b){if(m){for(var E=Array(b.length),x=0;x<b.length;x++)Object.defineProperty(E,""+x,e(x,!0));return E}var C=Xp(b);delete C[ye];for(var I=Vn(C),P=0;P<I.length;P++){var j=I[P];C[j]=e(j,m||!!C[j].enumerable)}return Object.create(Object.getPrototypeOf(b),C)}(d,c),g={i:d?5:4,A:l?l.A:ka(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ye,{value:g,writable:!0}),p},S:function(c,l,d){d?jr(l)&&l[ye].A===c&&r(c.p):(c.u&&function p(g){if(g&&typeof g=="object"){var m=g[ye];if(m){var b=m.t,E=m.k,x=m.R,C=m.i;if(C===4)Br(E,function(k){k!==ye&&(b[k]!==void 0||an(b,k)?x[k]||p(E[k]):(x[k]=!0,Lt(m)))}),Br(b,function(k){E[k]!==void 0||an(E,k)||(x[k]=!1,Lt(m))});else if(C===5){if(a(m)&&(Lt(m),x.length=!0),E.length<b.length)for(var I=E.length;I<b.length;I++)x[I]=!1;else for(var P=b.length;P<E.length;P++)x[P]=!0;for(var j=Math.min(E.length,b.length),M=0;M<j;M++)E.hasOwnProperty(M)||(x[M]=!0),x[M]===void 0&&p(E[M])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function iS(){function e(a){if(!vr(a))return a;if(Array.isArray(a))return a.map(e);if(Cs(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Rs(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 an(a,Ia)&&(s[Ia]=a[Ia]),s}function r(a){return jr(a)?e(a):a}var t="add";Ec("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 g=un(d),m=c[p];typeof m!="string"&&typeof m!="number"&&(m=""+m),g!==0&&g!==1||m!=="__proto__"&&m!=="constructor"||Xe(24),typeof d=="function"&&m==="prototype"&&Xe(24),typeof(d=Qo(d,m))!="object"&&Xe(15,c.join("/"))}var b=un(d),E=e(i.value),x=c[c.length-1];switch(l){case"replace":switch(b){case 2:return d.set(x,E);case 3:Xe(16);default:return d[x]=E}case t:switch(b){case 1:return x==="-"?d.push(E):d.splice(x,0,E);case 2:return d.set(x,E);case 3:return d.add(E);default:return d[x]=E}case"remove":switch(b){case 1:return d.splice(x,1);case 2:return d.delete(x);case 3:return d.delete(i.value);default:return delete d[x]}default:Xe(17,l)}}),a},N:function(a,s,i,c){switch(a.i){case 0:case 4:case 2:return function(l,d,p,g){var m=l.t,b=l.o;Br(l.R,function(E,x){var C=Qo(m,E),I=Qo(b,E),P=x?an(m,E)?"replace":t:"remove";if(C!==I||P!=="replace"){var j=d.concat(E);p.push(P==="remove"?{op:P,path:j}:{op:P,path:j,value:I}),g.push(P===t?{op:"remove",path:j}:P==="remove"?{op:t,path:j,value:r(C)}:{op:"replace",path:j,value:r(C)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,g){var m=l.t,b=l.R,E=l.o;if(E.length<m.length){var x=[E,m];m=x[0],E=x[1];var C=[g,p];p=C[0],g=C[1]}for(var I=0;I<m.length;I++)if(b[I]&&E[I]!==m[I]){var P=d.concat([I]);p.push({op:"replace",path:P,value:r(E[I])}),g.push({op:"replace",path:P,value:r(m[I])})}for(var j=m.length;j<E.length;j++){var M=d.concat([j]);p.push({op:t,path:M,value:r(E[j])})}m.length<E.length&&g.push({op:"replace",path:d.concat(["length"]),value:m.length})}(a,s,i,c);case 3:return function(l,d,p,g){var m=l.t,b=l.o,E=0;m.forEach(function(x){if(!b.has(x)){var C=d.concat([E]);p.push({op:"remove",path:C,value:x}),g.unshift({op:t,path:C,value:x})}E++}),E=0,b.forEach(function(x){if(!m.has(x)){var C=d.concat([E]);p.push({op:t,path:C,value:x}),g.unshift({op:"remove",path:C,value:x})}E++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===wc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function uS(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function r(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(vr(d)){var p=ja(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&Xe(3,JSON.stringify(dt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var m in g)g.hasOwnProperty(m)&&(p[m]=g[m])})(l,d)},i=function(){function l(p,g){return this[ye]={i:2,l:g,A:g?g.A:ka(),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 dt(this[ye]).size}}),d.has=function(p){return dt(this[ye]).has(p)},d.set=function(p,g){var m=this[ye];return a(m),dt(m).has(p)&&dt(m).get(p)===g||(r(m),Lt(m),m.R.set(p,!0),m.o.set(p,g),m.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),r(g),Lt(g),g.t.has(p)?g.R.set(p,!1):g.R.delete(p),g.o.delete(p),!0},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(r(p),Lt(p),p.R=new Map,Br(p.t,function(g){p.R.set(g,!1)}),p.o.clear())},d.forEach=function(p,g){var m=this;dt(this[ye]).forEach(function(b,E){p.call(g,m.get(E),E,m)})},d.get=function(p){var g=this[ye];a(g);var m=dt(g).get(p);if(g.I||!vr(m)||m!==g.t.get(p))return m;var b=ja(g.A.h,m,g);return r(g),g.o.set(p,b),b},d.keys=function(){return dt(this[ye]).keys()},d.values=function(){var p,g=this,m=this.keys();return(p={})[Yo]=function(){return g.values()},p.next=function(){var b=m.next();return b.done?b:{done:!1,value:g.get(b.value)}},p},d.entries=function(){var p,g=this,m=this.keys();return(p={})[Yo]=function(){return g.entries()},p.next=function(){var b=m.next();if(b.done)return b;var E=g.get(b.value);return{done:!1,value:[b.value,E]}},p},d[Yo]=function(){return this.entries()},l}(),c=function(){function l(p,g){return this[ye]={i:3,l:g,A:g?g.A:ka(),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 dt(this[ye]).size}}),d.has=function(p){var g=this[ye];return a(g),g.o?!!g.o.has(p)||!(!g.p.has(p)||!g.o.has(g.p.get(p))):g.t.has(p)},d.add=function(p){var g=this[ye];return a(g),this.has(p)||(t(g),Lt(g),g.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),t(g),Lt(g),g.o.delete(p)||!!g.p.has(p)&&g.o.delete(g.p.get(p))},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[ye];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[ye];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Yo]=function(){return this.values()},d.forEach=function(p,g){for(var m=this.values(),b=m.next();!b.done;)p.call(g,b.value,b.value,this),b=m.next()},l}();Ec("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Nd,ea,Sc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cS=typeof Map<"u",lS=typeof Set<"u",Ld=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wc=Sc?Symbol.for("immer-nothing"):((Nd={})["immer-nothing"]=!0,Nd),Ia=Sc?Symbol.for("immer-draftable"):"__$immer_draftable",ye=Sc?Symbol.for("immer-state"):"__$immer_state",Yo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",fS={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"},dS=""+Object.prototype.constructor,Vn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xp=Object.getOwnPropertyDescriptors||function(e){var r={};return Vn(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},zu={},Ba={get:function(e,r){if(r===ye)return e;var t=dt(e);if(!an(t,r))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,r);var a=t[r];return e.I||!vr(a)?a:a===gu(e.t,r)?(vu(e),e.o[r]=ja(e.A.h,a,e)):a},has:function(e,r){return r in dt(e)},ownKeys:function(e){return Reflect.ownKeys(dt(e))},set:function(e,r,t){var a=$d(dt(e),r);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=gu(dt(e),r),i=s==null?void 0:s[ye];if(i&&i.t===t)return e.o[r]=t,e.R[r]=!1,!0;if(Jp(t,s)&&(t!==void 0||an(e.t,r)))return!0;vu(e),Lt(e)}return e.o[r]===t&&(t!==void 0||r in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[r])||(e.o[r]=t,e.R[r]=!0),!0},deleteProperty:function(e,r){return gu(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,vu(e),Lt(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=dt(e),a=Reflect.getOwnPropertyDescriptor(t,r);return a&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:a.enumerable,value:t[r]}},defineProperty:function(){Xe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xe(12)}},Pa={};Br(Ba,function(e,r){Pa[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Pa.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Xe(13),Pa.set.call(this,e,r,void 0)},Pa.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Xe(14),Ba.set.call(this,e[0],r,t,e[0])};var pS=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 I=this;C===void 0&&(C=l);for(var P=arguments.length,j=Array(P>1?P-1:0),M=1;M<P;M++)j[M-1]=arguments[M];return d.produce(C,function(k){var O;return(O=i).call.apply(O,[I,k].concat(j))})}}var p;if(typeof i!="function"&&Xe(6),c!==void 0&&typeof c!="function"&&Xe(7),vr(s)){var g=Id(a),m=ja(a,s,void 0),b=!0;try{p=i(m),b=!1}finally{b?is(g):Gu(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return pu(g,c),hu(C,g)},function(C){throw is(g),C}):(pu(g,c),hu(p,g))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===wc&&(p=void 0),a.D&&bc(p,!0),c){var E=[],x=[];Er("Patches").M(s,p,E,x),c(E,x)}return p}Xe(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var g=arguments.length,m=Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(m))})};var c,l,d=a.produce(s,i,function(p,g){c=p,l=g});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 r=e.prototype;return r.createDraft=function(t){vr(t)||Xe(8),jr(t)&&(t=oS(t));var a=Id(this),s=ja(this,t,void 0);return s[ye].C=!0,Gu(a),s},r.finishDraft=function(t,a){var s=t&&t[ye];process.env.NODE_ENV!=="production"&&(s&&s.C||Xe(9),s.I&&Xe(10));var i=s.A;return pu(i,a),hu(void 0,i)},r.setAutoFreeze=function(t){this.D=t},r.setUseProxies=function(t){t&&!Ld&&Xe(20),this.O=t},r.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=Er("Patches").$;return jr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),zt=new pS,es=zt.produce;zt.produceWithPatches.bind(zt);zt.setAutoFreeze.bind(zt);zt.setUseProxies.bind(zt);zt.applyPatches.bind(zt);zt.createDraft.bind(zt);zt.finishDraft.bind(zt);function Wa(e){"@babel/helpers - typeof";return Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wa(e)}function hS(e,r){if(Wa(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(Wa(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function gS(e){var r=hS(e,"string");return Wa(r)==="symbol"?r:String(r)}function vS(e,r,t){return r=gS(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function kd(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function jd(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?kd(Object(t),!0).forEach(function(a){vS(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 xt(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"}(),mu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rn={INIT:"@@redux/INIT"+mu(),REPLACE:"@@redux/REPLACE"+mu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+mu()}};function Zp(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function mS(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(e))return"array";if(_S(e))return"date";if(bS(e))return"error";var t=yS(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}function yS(e){return typeof e.constructor=="function"?e.constructor.name:null}function bS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function _S(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Cn(e){var r=typeof e;return process.env.NODE_ENV!=="production"&&(r=mS(e)),r}function Qp(e,r,t){var a;if(typeof r=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?xt(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 r=="function"&&typeof t>"u"&&(t=r,r=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?xt(1):"Expected the enhancer to be a function. Instead, received: '"+Cn(t)+"'");return t(Qp)(e,r)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xt(2):"Expected the root reducer to be a function. Instead, received: '"+Cn(e)+"'");var s=e,i=r,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function g(){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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"?xt(4):"Expected the listener to be a function. Instead, received: '"+Cn(C)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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 I=!0;return p(),l.push(C),function(){if(I){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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.");I=!1,p();var j=l.indexOf(C);l.splice(j,1),c=null}}}function b(C){if(!Zp(C))throw new Error(process.env.NODE_ENV==="production"?xt(7):"Actions must be plain objects. Instead, the actual type was: '"+Cn(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"?xt(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"?xt(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,C)}finally{d=!1}for(var I=c=l,P=0;P<I.length;P++){var j=I[P];j()}return C}function E(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?xt(10):"Expected the nextReducer to be a function. Instead, received: '"+Cn(C));s=C,b({type:Rn.REPLACE})}function x(){var C,I=m;return C={subscribe:function(j){if(typeof j!="object"||j===null)throw new Error(process.env.NODE_ENV==="production"?xt(11):"Expected the observer to be an object. Instead, received: '"+Cn(j)+"'");function M(){j.next&&j.next(g())}M();var k=I(M);return{unsubscribe:k}}},C[Bd]=function(){return this},C}return b({type:Rn.INIT}),a={dispatch:b,subscribe:m,getState:g,replaceReducer:E},a[Bd]=x,a}function Wd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function ES(e,r,t,a){var s=Object.keys(r),i=t&&t.type===Rn.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(!Zp(e))return"The "+i+' has unexpected type of "'+Cn(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var c=Object.keys(e).filter(function(l){return!r.hasOwnProperty(l)&&!a[l]});if(c.forEach(function(l){a[l]=!0}),!(t&&t.type===Rn.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 SS(e){Object.keys(e).forEach(function(r){var t=e[r],a=t(void 0,{type:Rn.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?xt(12):'The slice reducer for key "'+r+`" 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:Rn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?xt(13):'The slice reducer for key "'+r+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Rn.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 eh(e){for(var r=Object.keys(e),t={},a=0;a<r.length;a++){var s=r[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{SS(t)}catch(d){l=d}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var m=ES(p,t,g,c);m&&Wd(m)}for(var b=!1,E={},x=0;x<i.length;x++){var C=i[x],I=t[C],P=p[C],j=I(P,g);if(typeof j>"u"){var M=g&&g.type;throw new Error(process.env.NODE_ENV==="production"?xt(14):"When called with an action of type "+(M?'"'+String(M)+'"':"(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.')}E[C]=j,b=b||j!==P}return b=b||i.length!==Object.keys(p).length,b?E:p}}function ls(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.length===0?function(a){return a}:r.length===1?r[0]:r.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function wS(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[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"?xt(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=r.map(function(d){return d(c)});return i=ls.apply(void 0,l)(s.dispatch),jd(jd({},s),{},{dispatch:i})}}}var fs="NOT_FOUND";function TS(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:fs},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function xS(e,r){var t=[];function a(l){var d=t.findIndex(function(g){return r(l,g.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return fs}function s(l,d){a(l)===fs&&(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 CS=function(r,t){return r===t};function RS(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 OS(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?CS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=RS(s),p=c===1?TS(d):xS(c,d);function g(){var m=p.get(arguments);if(m===fs){if(m=e.apply(null,arguments),l){var b=p.getEntries(),E=b.find(function(x){return l(x.value,m)});E&&(m=E.value)}p.put(arguments,m)}return m}return g.clearCache=function(){return p.clear()},g}function AS(e){var r=Array.isArray(e[0])?e[0]:e;if(!r.every(function(a){return typeof a=="function"})){var t=r.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 r}function PS(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;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,g,m={memoizeOptions:void 0},b=l.pop();if(typeof b=="object"&&(m=b,b=l.pop()),typeof b!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof b+"]");var E=m,x=E.memoizeOptions,C=x===void 0?t:x,I=Array.isArray(C)?C:[C],P=AS(l),j=e.apply(void 0,[function(){return p++,b.apply(null,arguments)}].concat(I)),M=e(function(){for(var O=[],Y=P.length,H=0;H<Y;H++)O.push(P[H].apply(null,arguments));return g=j.apply(null,O),g});return Object.assign(M,{resultFunc:b,memoizedResultFunc:j,dependencies:P,lastResult:function(){return g},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),M};return s}var q=PS(OS);function th(e){var r=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 r}var rh=th();rh.withExtraArgument=th;const Ud=rh;var DS=globalThis&&globalThis.__extends||function(){var e=function(r,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(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),IS=globalThis&&globalThis.__generator||function(e,r){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(g){return d([p,g])}}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=r.call(e,t)}catch(g){p=[6,g],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ds=globalThis&&globalThis.__spreadArray||function(e,r){for(var t=0,a=r.length,s=e.length;t<a;t++,s++)e[s]=r[t];return e},FS=Object.defineProperty,$S=Object.defineProperties,MS=Object.getOwnPropertyDescriptors,Hd=Object.getOwnPropertySymbols,NS=Object.prototype.hasOwnProperty,LS=Object.prototype.propertyIsEnumerable,qd=function(e,r,t){return r in e?FS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},on=function(e,r){for(var t in r||(r={}))NS.call(r,t)&&qd(e,t,r[t]);if(Hd)for(var a=0,s=Hd(r);a<s.length;a++){var t=s[a];LS.call(r,t)&&qd(e,t,r[t])}return e},yu=function(e,r){return $S(e,MS(r))},kS=function(e,r,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,r)).next())})},jS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ls:ls.apply(null,arguments)};function nh(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return r===t}function ah(e,r){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(r+" 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 BS=function(e){DS(r,e);function r(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var s=e.apply(this,t)||this;return Object.setPrototypeOf(s,r.prototype),s}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return e.prototype.concat.apply(this,t)},r.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(r.bind.apply(r,ds([void 0],t[0].concat(this)))):new(r.bind.apply(r,ds([void 0],t.concat(this))))},r}(Array),WS=process.env.NODE_ENV==="production",Gd="Invariant failed";function zd(e,r){if(!e)throw WS?new Error(Gd):new Error(Gd+": "+(r||""))}function US(e,r,t,a){return JSON.stringify(e,HS(r,a),t)}function HS(e,r){var t=[],a=[];return r||(r=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=r.call(this,s,i))}else t.push(i);return e==null?i:e.call(this,s,i)}}function qS(e){return typeof e!="object"||e===null||typeof e>"u"||Object.isFrozen(e)}function GS(e,r,t){var a=oh(e,r,t);return{detectMutations:function(){return sh(e,r,a,t)}}}function oh(e,r,t,a){r===void 0&&(r=[]),a===void 0&&(a="");var s={value:t};if(!e(t)){s.children={};for(var i in t){var c=a?a+"."+i:i;r.length&&r.indexOf(c)!==-1||(s.children[i]=oh(e,r,t[i],c))}}return s}function sh(e,r,t,a,s,i){r===void 0&&(r=[]),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 g=i?i+"."+p:p;if(!(r.length&&r.indexOf(g)!==-1)){var m=sh(e,r,t.children[p],a[p],l,g);if(m.wasMutated)return m}}return{wasMutated:!1}}function zS(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(d){return function(p){return d(p)}}};var r=e.isImmutable,t=r===void 0?qS:r,a=e.ignoredPaths,s=e.warnAfter,i=s===void 0?32:s,c=e.ignore;a=a||c;var l=GS.bind(null,t,a);return function(d){var p=d.getState,g=p(),m=l(g),b;return function(E){return function(x){var C=ah(i,"ImmutableStateInvariantMiddleware");C.measureTime(function(){g=p(),b=m.detectMutations(),m=l(g),zd(!b.wasMutated,"A state mutation was detected between dispatches, in the path '"+(b.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var I=E(x);return C.measureTime(function(){g=p(),b=m.detectMutations(),m=l(g),b.wasMutated&&zd(!b.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(b.path||"")+". Take a look at the reducer(s) handling the action "+US(x)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),C.warnIfExceeded(),I}}}}function ih(e){var r=typeof e;return r==="undefined"||e===null||r==="string"||r==="boolean"||r==="number"||Array.isArray(e)||nh(e)}function Yu(e,r,t,a,s){r===void 0&&(r=""),t===void 0&&(t=ih),s===void 0&&(s=[]);var i;if(!t(e))return{keyPath:r||"<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 g=p[d],m=g[0],b=g[1],E=r?r+"."+m:m;if(!(l&&s.indexOf(E)>=0)){if(!t(b))return{keyPath:E,value:b};if(typeof b=="object"&&(i=Yu(b,E,t,a,s),i))return i}}return!1}function YS(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(x){return function(C){return x(C)}}};var r=e.isSerializable,t=r===void 0?ih:r,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,g=e.warnAfter,m=g===void 0?32:g,b=e.ignoreState,E=b===void 0?!1:b;return function(x){return function(C){return function(I){if(i.length&&i.indexOf(I.type)!==-1)return C(I);var P=ah(m,"SerializableStateInvariantMiddleware");P.measureTime(function(){var M=Yu(I,"",t,a,l);if(M){var k=M.keyPath,O=M.value;console.error("A non-serializable value was detected in an action, in the path: `"+k+"`. Value:",O,`
|
|
4
4
|
Take a look at the logic that dispatched this action: `,I,`
|
|
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 j=C(I);return E||(P.measureTime(function(){var M=x.getState(),k=
|
|
6
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var j=C(I);return E||(P.measureTime(function(){var M=x.getState(),k=Yu(M,"",t,a,p);if(k){var O=k.keyPath,Y=k.value;console.error("A non-serializable value was detected in the state, in the path: `"+O+"`. Value:",Y,`
|
|
7
7
|
Take a look at the reducer(s) handling this action type: `+I.type+`.
|
|
8
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),P.warnIfExceeded()),j}}}}function _u(e){return typeof e=="boolean"}function ZS(){return function(r){return QS(r)}}function QS(e){e===void 0&&(e={});var r=e.thunk,t=r===void 0?!0:r,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=new qS;if(t&&(_u(t)?l.push(qd):l.push(qd.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};_u(s)||(d=s),l.unshift(JS(d))}if(c){var p={};_u(c)||(p=c),l.push(XS(p))}}return l}var Eu=process.env.NODE_ENV==="production";function ew(e){var r=ZS(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?r():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,g=p===void 0?void 0:p,m=t.enhancers,b=m===void 0?void 0:m,E;if(typeof s=="function")E=s;else if(ih(s))E=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 x=c;if(typeof x=="function"&&(x=x(r),!Eu&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Eu&&x.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=RS.apply(void 0,x),I=ds;d&&(I=HS(on({trace:!Eu},typeof d=="object"&&d)));var P=[C];Array.isArray(b)?P=hs([C],b):typeof b=="function"&&(P=b(P));var j=I.apply(void 0,P);return nh(E,g,j)}function Pt(e,r){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(r){var i=r.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return on(on({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 r={},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 r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[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),[r,t,a]}function tw(e){return typeof e=="function"}function rw(e,r,t,a){t===void 0&&(t=[]);var s=typeof r=="function"?dh(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(tw(e))d=function(){return rs(e(),function(){})};else{var p=rs(e,function(){});d=function(){return p}}function g(m,b){m===void 0&&(m=d());var E=hs([i[b.type]],c.filter(function(x){var C=x.matcher;return C(b)}).map(function(x){var C=x.reducer;return C}));return E.filter(function(x){return!!x}).length===0&&(E=[l]),E.reduce(function(x,C){if(C)if(jr(x)){var I=x,P=C(I,b);return typeof P>"u"?x:P}else{if(vr(x))return rs(x,function(j){return C(j,b)});var P=C(x,b);if(typeof P>"u"){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},m)}return g.getInitialState=d,g}function nw(e,r){return e+"/"+r}function or(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:rs(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(g){var m=a[g],b=nw(r,g),E,x;"reducer"in m?(E=m.reducer,x=m.prepare):E=m,i[g]=E,c[b]=E,l[g]=x?Pt(b,x):Pt(b)});function d(){var g=typeof e.extraReducers=="function"?dh(e.extraReducers):[e.extraReducers],m=g[0],b=m===void 0?{}:m,E=g[1],x=E===void 0?[]:E,C=g[2],I=C===void 0?void 0:C,P=on(on({},b),c);return rw(t,P,x,I)}var p;return{name:r,reducer:function(g,m){return p||(p=d()),p(g,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var aw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Cc=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=aw[Math.random()*64|0];return r},ow=["name","message","stack","code"],Su=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Kd=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),sw=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=ow;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(r[s]=e[s])}return r}return{message:String(e)}};function Q(e,r,t){var a=Pt(e+"/fulfilled",function(p,g,m,b){return{payload:p,meta:bu(on({},b||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),s=Pt(e+"/pending",function(p,g,m){return{payload:void 0,meta:bu(on({},m||{}),{arg:g,requestId:p,requestStatus:"pending"})}}),i=Pt(e+"/rejected",function(p,g,m,b,E){return{payload:b,error:(t&&t.serializeError||sw)(p||"Rejected"),meta:bu(on({},E||{}),{arg:m,requestId:g,rejectedWithValue:!!b,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(g,m,b){var E=t!=null&&t.idGenerator?t.idGenerator(p):Cc(),x=new l,C,I=new Promise(function(k,O){return x.signal.addEventListener("abort",function(){return O({name:"AbortError",message:C||"Aborted"})})}),P=!1;function j(k){P&&(C=k,x.abort())}var M=function(){return US(this,null,function(){var k,O,Y,H,z,te;return NS(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),H=(k=t==null?void 0:t.condition)==null?void 0:k.call(t,p,{getState:m,extra:b}),uw(H)?[4,H]:[3,2];case 1:H=We.sent(),We.label=2;case 2:if(H===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,g(s(E,p,(O=t==null?void 0:t.getPendingMeta)==null?void 0:O.call(t,{requestId:E,arg:p},{getState:m,extra:b}))),[4,Promise.race([I,Promise.resolve(r(p,{dispatch:g,getState:m,extra:b,requestId:E,signal:x.signal,rejectWithValue:function(Te,it){return new Su(Te,it)},fulfillWithValue:function(Te,it){return new Kd(Te,it)}})).then(function(Te){if(Te instanceof Su)throw Te;return Te instanceof Kd?a(Te.payload,E,p,Te.meta):a(Te,E,p)})])];case 3:return Y=We.sent(),[3,5];case 4:return z=We.sent(),Y=z instanceof Su?i(null,E,p,z.payload,z.meta):i(z,E,p),[3,5];case 5:return te=t&&!t.dispatchConditionRejection&&i.match(Y)&&Y.meta.condition,te||g(Y),[2,Y]}})})}();return Object.assign(M,{abort:j,requestId:E,arg:p,unwrap:function(){return M.then(iw)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function iw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function uw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var cw=function(e){return e&&typeof e.match=="function"},lw=function(e,r){return cw(e)?e.match(r):e(r)};function hr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return lw(a,t)})}}function Rc(e,r){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=r.indexOf(e.meta.requestStatus)>-1;return t&&a}function Oc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ph(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Rc(t,["pending"])}:Oc(e)?function(t){var a=e.map(function(i){return i.pending}),s=hr.apply(void 0,a);return s(t)}:ph()(e[0])}function hh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Rc(t,["rejected"])}:Oc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=hr.apply(void 0,a);return s(t)}:hh()(e[0])}function gh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Rc(t,["fulfilled"])}:Oc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=hr.apply(void 0,a);return s(t)}:gh()(e[0])}lS();var Mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fw(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function a(){return this instanceof a?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.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 dw(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var qa=dw,pw=typeof Mr=="object"&&Mr&&Mr.Object===Object&&Mr,vh=pw,hw=vh,gw=typeof self=="object"&&self&&self.Object===Object&&self,vw=hw||gw||Function("return this")(),wr=vw,mw=wr,yw=function(){return mw.Date.now()},bw=yw,_w=/\s/;function Ew(e){for(var r=e.length;r--&&_w.test(e.charAt(r)););return r}var Sw=Ew,ww=Sw,Tw=/^\s+/;function xw(e){return e&&e.slice(0,ww(e)+1).replace(Tw,"")}var Cw=xw,Rw=wr,Ow=Rw.Symbol,Ac=Ow,Jd=Ac,mh=Object.prototype,Aw=mh.hasOwnProperty,Pw=mh.toString,Pa=Jd?Jd.toStringTag:void 0;function Dw(e){var r=Aw.call(e,Pa),t=e[Pa];try{e[Pa]=void 0;var a=!0}catch{}var s=Pw.call(e);return a&&(r?e[Pa]=t:delete e[Pa]),s}var Iw=Dw,Fw=Object.prototype,$w=Fw.toString;function Mw(e){return $w.call(e)}var Nw=Mw,Xd=Ac,Lw=Iw,kw=Nw,jw="[object Null]",Bw="[object Undefined]",Zd=Xd?Xd.toStringTag:void 0;function Ww(e){return e==null?e===void 0?Bw:jw:Zd&&Zd in Object(e)?Lw(e):kw(e)}var Ds=Ww;function Uw(e){return e!=null&&typeof e=="object"}var Pc=Uw,Hw=Ds,qw=Pc,Gw="[object Symbol]";function zw(e){return typeof e=="symbol"||qw(e)&&Hw(e)==Gw}var Yw=zw,Vw=Cw,Qd=qa,Kw=Yw,ep=0/0,Jw=/^[-+]0x[0-9a-f]+$/i,Xw=/^0b[01]+$/i,Zw=/^0o[0-7]+$/i,Qw=parseInt;function eT(e){if(typeof e=="number")return e;if(Kw(e))return ep;if(Qd(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Qd(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Vw(e);var t=Xw.test(e);return t||Zw.test(e)?Qw(e.slice(2),t?2:8):Jw.test(e)?ep:+e}var tT=eT,rT=qa,wu=bw,tp=tT,nT="Expected a function",aT=Math.max,oT=Math.min;function sT(e,r,t){var a,s,i,c,l,d,p=0,g=!1,m=!1,b=!0;if(typeof e!="function")throw new TypeError(nT);r=tp(r)||0,rT(t)&&(g=!!t.leading,m="maxWait"in t,i=m?aT(tp(t.maxWait)||0,r):i,b="trailing"in t?!!t.trailing:b);function E(Y){var H=a,z=s;return a=s=void 0,p=Y,c=e.apply(z,H),c}function x(Y){return p=Y,l=setTimeout(P,r),g?E(Y):c}function C(Y){var H=Y-d,z=Y-p,te=r-H;return m?oT(te,i-z):te}function I(Y){var H=Y-d,z=Y-p;return d===void 0||H>=r||H<0||m&&z>=i}function P(){var Y=wu();if(I(Y))return j(Y);l=setTimeout(P,C(Y))}function j(Y){return l=void 0,b&&a?E(Y):(a=s=void 0,c)}function M(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function k(){return l===void 0?c:j(wu())}function O(){var Y=wu(),H=I(Y);if(a=arguments,s=this,d=Y,H){if(l===void 0)return x(d);if(m)return clearTimeout(l),l=setTimeout(P,r),E(d)}return l===void 0&&(l=setTimeout(P,r)),c}return O.cancel=M,O.flush=k,O}var iT=sT,uT=iT,cT=qa,lT="Expected a function";function fT(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(lT);return cT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),uT(e,r,{leading:a,maxWait:r,trailing:s})}var dT=fT;const pT=Ps(dT);var yh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(yh||{}),Lr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Lr||{}),gs=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(gs||{}),bh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(bh||{});const Dc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles"},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Lr.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}`;function Sh(e){var r,t;try{const a=((t=(r=window==null?void 0:window.$$datastores)==null?void 0:r.ds)==null?void 0:t.getBaseID())||"",s=JSON.stringify(e);localStorage.setItem(Eh(a),s)}catch(a){console.error(a)}}function wh(e){try{const r=JSON.stringify(e);localStorage.setItem(_h,r)}catch(r){console.error(r)}}function Th(){try{const e=localStorage.getItem(_h);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function na(){var t,a;const e=((a=(t=window==null?void 0:window.$$datastores)==null?void 0:t.ds)==null?void 0:a.getBaseID())||"",r=localStorage.getItem(Eh(e));if(r){const s=JSON.parse(r);return s.tabs=s.tabs.map(i=>({...i,flags:{...i.flags,enabled:!0}})),s}return Dc}function Is(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case _.FileFolderType.WEBFORM:return`${r}.WebForm`;case _.FileFolderType.METHOD:case _.FileFolderType.CLASS:return s?`${r}.${s}`:r;case _.FileFolderType.ROLES:return r;default:return`${r}.${t}`}}const xh=e=>{if(!e)return[];const r=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};r.set(t.name,s)}),Array.from(r.values())};function Ch(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function hT(){this.__data__=[],this.size=0}var gT=hT;function vT(e,r){return e===r||e!==e&&r!==r}var mT=vT,yT=mT;function bT(e,r){for(var t=e.length;t--;)if(yT(e[t][0],r))return t;return-1}var Fs=bT,_T=Fs,ET=Array.prototype,ST=ET.splice;function wT(e){var r=this.__data__,t=_T(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():ST.call(r,t,1),--this.size,!0}var TT=wT,xT=Fs;function CT(e){var r=this.__data__,t=xT(r,e);return t<0?void 0:r[t][1]}var RT=CT,OT=Fs;function AT(e){return OT(this.__data__,e)>-1}var PT=AT,DT=Fs;function IT(e,r){var t=this.__data__,a=DT(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var FT=IT,$T=gT,MT=TT,NT=RT,LT=PT,kT=FT;function aa(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}aa.prototype.clear=$T;aa.prototype.delete=MT;aa.prototype.get=NT;aa.prototype.has=LT;aa.prototype.set=kT;var $s=aa,jT=$s;function BT(){this.__data__=new jT,this.size=0}var WT=BT;function UT(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var HT=UT;function qT(e){return this.__data__.get(e)}var GT=qT;function zT(e){return this.__data__.has(e)}var YT=zT,VT=Ds,KT=qa,JT="[object AsyncFunction]",XT="[object Function]",ZT="[object GeneratorFunction]",QT="[object Proxy]";function ex(e){if(!KT(e))return!1;var r=VT(e);return r==XT||r==ZT||r==JT||r==QT}var tx=ex,rx=wr,nx=rx["__core-js_shared__"],ax=nx,Tu=ax,rp=function(){var e=/[^.]+$/.exec(Tu&&Tu.keys&&Tu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ox(e){return!!rp&&rp in e}var sx=ox,ix=Function.prototype,ux=ix.toString;function cx(e){if(e!=null){try{return ux.call(e)}catch{}try{return e+""}catch{}}return""}var Rh=cx,lx=tx,fx=sx,dx=qa,px=Rh,hx=/[\\^$.*+?()[\]{}|]/g,gx=/^\[object .+?Constructor\]$/,vx=Function.prototype,mx=Object.prototype,yx=vx.toString,bx=mx.hasOwnProperty,_x=RegExp("^"+yx.call(bx).replace(hx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ex(e){if(!dx(e)||fx(e))return!1;var r=lx(e)?_x:gx;return r.test(px(e))}var Sx=Ex;function wx(e,r){return e==null?void 0:e[r]}var Tx=wx,xx=Sx,Cx=Tx;function Rx(e,r){var t=Cx(e,r);return xx(t)?t:void 0}var oa=Rx,Ox=oa,Ax=wr,Px=Ox(Ax,"Map"),Ic=Px,Dx=oa,Ix=Dx(Object,"create"),Ms=Ix,np=Ms;function Fx(){this.__data__=np?np(null):{},this.size=0}var $x=Fx;function Mx(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Nx=Mx,Lx=Ms,kx="__lodash_hash_undefined__",jx=Object.prototype,Bx=jx.hasOwnProperty;function Wx(e){var r=this.__data__;if(Lx){var t=r[e];return t===kx?void 0:t}return Bx.call(r,e)?r[e]:void 0}var Ux=Wx,Hx=Ms,qx=Object.prototype,Gx=qx.hasOwnProperty;function zx(e){var r=this.__data__;return Hx?r[e]!==void 0:Gx.call(r,e)}var Yx=zx,Vx=Ms,Kx="__lodash_hash_undefined__";function Jx(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Vx&&r===void 0?Kx:r,this}var Xx=Jx,Zx=$x,Qx=Nx,eC=Ux,tC=Yx,rC=Xx;function sa(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}sa.prototype.clear=Zx;sa.prototype.delete=Qx;sa.prototype.get=eC;sa.prototype.has=tC;sa.prototype.set=rC;var nC=sa,ap=nC,aC=$s,oC=Ic;function sC(){this.size=0,this.__data__={hash:new ap,map:new(oC||aC),string:new ap}}var iC=sC;function uC(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var cC=uC,lC=cC;function fC(e,r){var t=e.__data__;return lC(r)?t[typeof r=="string"?"string":"hash"]:t.map}var Ns=fC,dC=Ns;function pC(e){var r=dC(this,e).delete(e);return this.size-=r?1:0,r}var hC=pC,gC=Ns;function vC(e){return gC(this,e).get(e)}var mC=vC,yC=Ns;function bC(e){return yC(this,e).has(e)}var _C=bC,EC=Ns;function SC(e,r){var t=EC(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var wC=SC,TC=iC,xC=hC,CC=mC,RC=_C,OC=wC;function ia(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}ia.prototype.clear=TC;ia.prototype.delete=xC;ia.prototype.get=CC;ia.prototype.has=RC;ia.prototype.set=OC;var Oh=ia,AC=$s,PC=Ic,DC=Oh,IC=200;function FC(e,r){var t=this.__data__;if(t instanceof AC){var a=t.__data__;if(!PC||a.length<IC-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new DC(a)}return t.set(e,r),this.size=t.size,this}var $C=FC,MC=$s,NC=WT,LC=HT,kC=GT,jC=YT,BC=$C;function Ga(e){var r=this.__data__=new MC(e);this.size=r.size}Ga.prototype.clear=NC;Ga.prototype.delete=LC;Ga.prototype.get=kC;Ga.prototype.has=jC;Ga.prototype.set=BC;var WC="__lodash_hash_undefined__";function UC(e){return this.__data__.set(e,WC),this}var HC=UC;function qC(e){return this.__data__.has(e)}var GC=qC,zC=Oh,YC=HC,VC=GC;function Ju(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new zC;++r<t;)this.add(e[r])}Ju.prototype.add=Ju.prototype.push=YC;Ju.prototype.has=VC;var KC=wr;KC.Uint8Array;var op=Ac,sp=op?op.prototype:void 0;sp&&sp.valueOf;var JC=Ds,XC=Pc,ZC="[object Arguments]";function QC(e){return XC(e)&&JC(e)==ZC}var eR=QC,ip=eR,tR=Pc,Ah=Object.prototype,rR=Ah.hasOwnProperty,nR=Ah.propertyIsEnumerable;ip(function(){return arguments}());var vs={exports:{}};function aR(){return!1}var oR=aR;vs.exports;(function(e,r){var t=wr,a=oR,s=r&&!r.nodeType&&r,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})(vs,vs.exports);vs.exports;var ms={exports:{}};ms.exports;(function(e,r){var t=vh,a=r&&!r.nodeType&&r,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})(ms,ms.exports);var sR=ms.exports,up=sR;up&&up.isTypedArray;var iR=oa,uR=wr,cR=iR(uR,"DataView"),lR=cR,fR=oa,dR=wr,pR=fR(dR,"Promise"),hR=pR,gR=oa,vR=wr,mR=gR(vR,"Set"),yR=mR,bR=oa,_R=wr,ER=bR(_R,"WeakMap"),SR=ER,Xu=lR,Zu=Ic,Qu=hR,ec=yR,tc=SR,Ph=Ds,ua=Rh,cp="[object Map]",wR="[object Object]",lp="[object Promise]",fp="[object Set]",dp="[object WeakMap]",pp="[object DataView]",TR=ua(Xu),xR=ua(Zu),CR=ua(Qu),RR=ua(ec),OR=ua(tc),Gn=Ph;(Xu&&Gn(new Xu(new ArrayBuffer(1)))!=pp||Zu&&Gn(new Zu)!=cp||Qu&&Gn(Qu.resolve())!=lp||ec&&Gn(new ec)!=fp||tc&&Gn(new tc)!=dp)&&(Gn=function(e){var r=Ph(e),t=r==wR?e.constructor:void 0,a=t?ua(t):"";if(a)switch(a){case TR:return pp;case xR:return cp;case CR:return lp;case RR:return fp;case OR:return dp}return r});const AR="ROOT";dS(),fS();var hp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(hp||(hp={}));var ys={exports:{}};/**
|
|
8
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),P.warnIfExceeded()),j}}}}function bu(e){return typeof e=="boolean"}function VS(){return function(r){return KS(r)}}function KS(e){e===void 0&&(e={});var r=e.thunk,t=r===void 0?!0:r,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=new BS;if(t&&(bu(t)?l.push(Ud):l.push(Ud.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};bu(s)||(d=s),l.unshift(zS(d))}if(c){var p={};bu(c)||(p=c),l.push(YS(p))}}return l}var _u=process.env.NODE_ENV==="production";function JS(e){var r=VS(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?r():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,g=p===void 0?void 0:p,m=t.enhancers,b=m===void 0?void 0:m,E;if(typeof s=="function")E=s;else if(nh(s))E=eh(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 x=c;if(typeof x=="function"&&(x=x(r),!_u&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!_u&&x.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=wS.apply(void 0,x),I=ls;d&&(I=jS(on({trace:!_u},typeof d=="object"&&d)));var P=[C];Array.isArray(b)?P=ds([C],b):typeof b=="function"&&(P=b(P));var j=I.apply(void 0,P);return Qp(E,g,j)}function Pt(e,r){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(r){var i=r.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return on(on({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 uh(e){var r={},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 r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[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),[r,t,a]}function XS(e){return typeof e=="function"}function ZS(e,r,t,a){t===void 0&&(t=[]);var s=typeof r=="function"?uh(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(XS(e))d=function(){return es(e(),function(){})};else{var p=es(e,function(){});d=function(){return p}}function g(m,b){m===void 0&&(m=d());var E=ds([i[b.type]],c.filter(function(x){var C=x.matcher;return C(b)}).map(function(x){var C=x.reducer;return C}));return E.filter(function(x){return!!x}).length===0&&(E=[l]),E.reduce(function(x,C){if(C)if(jr(x)){var I=x,P=C(I,b);return typeof P>"u"?x:P}else{if(vr(x))return es(x,function(j){return C(j,b)});var P=C(x,b);if(typeof P>"u"){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},m)}return g.getInitialState=d,g}function QS(e,r){return e+"/"+r}function or(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:es(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(g){var m=a[g],b=QS(r,g),E,x;"reducer"in m?(E=m.reducer,x=m.prepare):E=m,i[g]=E,c[b]=E,l[g]=x?Pt(b,x):Pt(b)});function d(){var g=typeof e.extraReducers=="function"?uh(e.extraReducers):[e.extraReducers],m=g[0],b=m===void 0?{}:m,E=g[1],x=E===void 0?[]:E,C=g[2],I=C===void 0?void 0:C,P=on(on({},b),c);return ZS(t,P,x,I)}var p;return{name:r,reducer:function(g,m){return p||(p=d()),p(g,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var ew="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Tc=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=ew[Math.random()*64|0];return r},tw=["name","message","stack","code"],Eu=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Yd=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),rw=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=tw;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(r[s]=e[s])}return r}return{message:String(e)}};function Q(e,r,t){var a=Pt(e+"/fulfilled",function(p,g,m,b){return{payload:p,meta:yu(on({},b||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),s=Pt(e+"/pending",function(p,g,m){return{payload:void 0,meta:yu(on({},m||{}),{arg:g,requestId:p,requestStatus:"pending"})}}),i=Pt(e+"/rejected",function(p,g,m,b,E){return{payload:b,error:(t&&t.serializeError||rw)(p||"Rejected"),meta:yu(on({},E||{}),{arg:m,requestId:g,rejectedWithValue:!!b,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(g,m,b){var E=t!=null&&t.idGenerator?t.idGenerator(p):Tc(),x=new l,C,I=new Promise(function(k,O){return x.signal.addEventListener("abort",function(){return O({name:"AbortError",message:C||"Aborted"})})}),P=!1;function j(k){P&&(C=k,x.abort())}var M=function(){return kS(this,null,function(){var k,O,Y,H,z,te;return IS(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),H=(k=t==null?void 0:t.condition)==null?void 0:k.call(t,p,{getState:m,extra:b}),aw(H)?[4,H]:[3,2];case 1:H=We.sent(),We.label=2;case 2:if(H===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,g(s(E,p,(O=t==null?void 0:t.getPendingMeta)==null?void 0:O.call(t,{requestId:E,arg:p},{getState:m,extra:b}))),[4,Promise.race([I,Promise.resolve(r(p,{dispatch:g,getState:m,extra:b,requestId:E,signal:x.signal,rejectWithValue:function(Te,it){return new Eu(Te,it)},fulfillWithValue:function(Te,it){return new Yd(Te,it)}})).then(function(Te){if(Te instanceof Eu)throw Te;return Te instanceof Yd?a(Te.payload,E,p,Te.meta):a(Te,E,p)})])];case 3:return Y=We.sent(),[3,5];case 4:return z=We.sent(),Y=z instanceof Eu?i(null,E,p,z.payload,z.meta):i(z,E,p),[3,5];case 5:return te=t&&!t.dispatchConditionRejection&&i.match(Y)&&Y.meta.condition,te||g(Y),[2,Y]}})})}();return Object.assign(M,{abort:j,requestId:E,arg:p,unwrap:function(){return M.then(nw)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function nw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function aw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ow=function(e){return e&&typeof e.match=="function"},sw=function(e,r){return ow(e)?e.match(r):e(r)};function hr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return sw(a,t)})}}function xc(e,r){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=r.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 ch(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return xc(t,["pending"])}:Cc(e)?function(t){var a=e.map(function(i){return i.pending}),s=hr.apply(void 0,a);return s(t)}:ch()(e[0])}function lh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return xc(t,["rejected"])}:Cc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=hr.apply(void 0,a);return s(t)}:lh()(e[0])}function fh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return xc(t,["fulfilled"])}:Cc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=hr.apply(void 0,a);return s(t)}:fh()(e[0])}sS();var Nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iw(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function a(){return this instanceof a?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.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 uw(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Ha=uw,cw=typeof Nr=="object"&&Nr&&Nr.Object===Object&&Nr,dh=cw,lw=dh,fw=typeof self=="object"&&self&&self.Object===Object&&self,dw=lw||fw||Function("return this")(),wr=dw,pw=wr,hw=function(){return pw.Date.now()},gw=hw,vw=/\s/;function mw(e){for(var r=e.length;r--&&vw.test(e.charAt(r)););return r}var yw=mw,bw=yw,_w=/^\s+/;function Ew(e){return e&&e.slice(0,bw(e)+1).replace(_w,"")}var Sw=Ew,ww=wr,Tw=ww.Symbol,Rc=Tw,Vd=Rc,ph=Object.prototype,xw=ph.hasOwnProperty,Cw=ph.toString,Oa=Vd?Vd.toStringTag:void 0;function Rw(e){var r=xw.call(e,Oa),t=e[Oa];try{e[Oa]=void 0;var a=!0}catch{}var s=Cw.call(e);return a&&(r?e[Oa]=t:delete e[Oa]),s}var Ow=Rw,Aw=Object.prototype,Pw=Aw.toString;function Dw(e){return Pw.call(e)}var Iw=Dw,Kd=Rc,Fw=Ow,$w=Iw,Mw="[object Null]",Nw="[object Undefined]",Jd=Kd?Kd.toStringTag:void 0;function Lw(e){return e==null?e===void 0?Nw:Mw:Jd&&Jd in Object(e)?Fw(e):$w(e)}var As=Lw;function kw(e){return e!=null&&typeof e=="object"}var Oc=kw,jw=As,Bw=Oc,Ww="[object Symbol]";function Uw(e){return typeof e=="symbol"||Bw(e)&&jw(e)==Ww}var Hw=Uw,qw=Sw,Xd=Ha,Gw=Hw,Zd=0/0,zw=/^[-+]0x[0-9a-f]+$/i,Yw=/^0b[01]+$/i,Vw=/^0o[0-7]+$/i,Kw=parseInt;function Jw(e){if(typeof e=="number")return e;if(Gw(e))return Zd;if(Xd(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Xd(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=qw(e);var t=Yw.test(e);return t||Vw.test(e)?Kw(e.slice(2),t?2:8):zw.test(e)?Zd:+e}var Xw=Jw,Zw=Ha,Su=gw,Qd=Xw,Qw="Expected a function",eT=Math.max,tT=Math.min;function rT(e,r,t){var a,s,i,c,l,d,p=0,g=!1,m=!1,b=!0;if(typeof e!="function")throw new TypeError(Qw);r=Qd(r)||0,Zw(t)&&(g=!!t.leading,m="maxWait"in t,i=m?eT(Qd(t.maxWait)||0,r):i,b="trailing"in t?!!t.trailing:b);function E(Y){var H=a,z=s;return a=s=void 0,p=Y,c=e.apply(z,H),c}function x(Y){return p=Y,l=setTimeout(P,r),g?E(Y):c}function C(Y){var H=Y-d,z=Y-p,te=r-H;return m?tT(te,i-z):te}function I(Y){var H=Y-d,z=Y-p;return d===void 0||H>=r||H<0||m&&z>=i}function P(){var Y=Su();if(I(Y))return j(Y);l=setTimeout(P,C(Y))}function j(Y){return l=void 0,b&&a?E(Y):(a=s=void 0,c)}function M(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function k(){return l===void 0?c:j(Su())}function O(){var Y=Su(),H=I(Y);if(a=arguments,s=this,d=Y,H){if(l===void 0)return x(d);if(m)return clearTimeout(l),l=setTimeout(P,r),E(d)}return l===void 0&&(l=setTimeout(P,r)),c}return O.cancel=M,O.flush=k,O}var nT=rT,aT=nT,oT=Ha,sT="Expected a function";function iT(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(sT);return oT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),aT(e,r,{leading:a,maxWait:r,trailing:s})}var uT=iT;const cT=Os(uT);var hh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(hh||{}),Mr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Mr||{}),ps=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ps||{}),gh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(gh||{});const Ac={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles"},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Mr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},vh="4DWS_PREFS",mh=e=>`APP_STATE_${e}`,yh=()=>{var e,r;return((r=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:r.getBaseID())||""};function bh(e){try{const r=yh(),t=JSON.stringify(e);localStorage.setItem(mh(r),t)}catch(r){console.error(r)}}function _h(e){try{const r=JSON.stringify(e);localStorage.setItem(vh,r)}catch(r){console.error(r)}}function Eh(){try{const e=localStorage.getItem(vh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function ta(){const e=yh(),r=localStorage.getItem(mh(e));if(r){const t=JSON.parse(r);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Ac}function Ps(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case _.FileFolderType.WEBFORM:return`${r}.WebForm`;case _.FileFolderType.METHOD:case _.FileFolderType.CLASS:return s?`${r}.${s}`:r;case _.FileFolderType.ROLES:return r;default:return`${r}.${t}`}}const Sh=e=>{if(!e)return[];const r=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};r.set(t.name,s)}),Array.from(r.values())};function wh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function lT(){this.__data__=[],this.size=0}var fT=lT;function dT(e,r){return e===r||e!==e&&r!==r}var pT=dT,hT=pT;function gT(e,r){for(var t=e.length;t--;)if(hT(e[t][0],r))return t;return-1}var Ds=gT,vT=Ds,mT=Array.prototype,yT=mT.splice;function bT(e){var r=this.__data__,t=vT(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():yT.call(r,t,1),--this.size,!0}var _T=bT,ET=Ds;function ST(e){var r=this.__data__,t=ET(r,e);return t<0?void 0:r[t][1]}var wT=ST,TT=Ds;function xT(e){return TT(this.__data__,e)>-1}var CT=xT,RT=Ds;function OT(e,r){var t=this.__data__,a=RT(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var AT=OT,PT=fT,DT=_T,IT=wT,FT=CT,$T=AT;function ra(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}ra.prototype.clear=PT;ra.prototype.delete=DT;ra.prototype.get=IT;ra.prototype.has=FT;ra.prototype.set=$T;var Is=ra,MT=Is;function NT(){this.__data__=new MT,this.size=0}var LT=NT;function kT(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var jT=kT;function BT(e){return this.__data__.get(e)}var WT=BT;function UT(e){return this.__data__.has(e)}var HT=UT,qT=As,GT=Ha,zT="[object AsyncFunction]",YT="[object Function]",VT="[object GeneratorFunction]",KT="[object Proxy]";function JT(e){if(!GT(e))return!1;var r=qT(e);return r==YT||r==VT||r==zT||r==KT}var XT=JT,ZT=wr,QT=ZT["__core-js_shared__"],ex=QT,wu=ex,ep=function(){var e=/[^.]+$/.exec(wu&&wu.keys&&wu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tx(e){return!!ep&&ep in e}var rx=tx,nx=Function.prototype,ax=nx.toString;function ox(e){if(e!=null){try{return ax.call(e)}catch{}try{return e+""}catch{}}return""}var Th=ox,sx=XT,ix=rx,ux=Ha,cx=Th,lx=/[\\^$.*+?()[\]{}|]/g,fx=/^\[object .+?Constructor\]$/,dx=Function.prototype,px=Object.prototype,hx=dx.toString,gx=px.hasOwnProperty,vx=RegExp("^"+hx.call(gx).replace(lx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mx(e){if(!ux(e)||ix(e))return!1;var r=sx(e)?vx:fx;return r.test(cx(e))}var yx=mx;function bx(e,r){return e==null?void 0:e[r]}var _x=bx,Ex=yx,Sx=_x;function wx(e,r){var t=Sx(e,r);return Ex(t)?t:void 0}var na=wx,Tx=na,xx=wr,Cx=Tx(xx,"Map"),Pc=Cx,Rx=na,Ox=Rx(Object,"create"),Fs=Ox,tp=Fs;function Ax(){this.__data__=tp?tp(null):{},this.size=0}var Px=Ax;function Dx(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Ix=Dx,Fx=Fs,$x="__lodash_hash_undefined__",Mx=Object.prototype,Nx=Mx.hasOwnProperty;function Lx(e){var r=this.__data__;if(Fx){var t=r[e];return t===$x?void 0:t}return Nx.call(r,e)?r[e]:void 0}var kx=Lx,jx=Fs,Bx=Object.prototype,Wx=Bx.hasOwnProperty;function Ux(e){var r=this.__data__;return jx?r[e]!==void 0:Wx.call(r,e)}var Hx=Ux,qx=Fs,Gx="__lodash_hash_undefined__";function zx(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=qx&&r===void 0?Gx:r,this}var Yx=zx,Vx=Px,Kx=Ix,Jx=kx,Xx=Hx,Zx=Yx;function aa(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}aa.prototype.clear=Vx;aa.prototype.delete=Kx;aa.prototype.get=Jx;aa.prototype.has=Xx;aa.prototype.set=Zx;var Qx=aa,rp=Qx,eC=Is,tC=Pc;function rC(){this.size=0,this.__data__={hash:new rp,map:new(tC||eC),string:new rp}}var nC=rC;function aC(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var oC=aC,sC=oC;function iC(e,r){var t=e.__data__;return sC(r)?t[typeof r=="string"?"string":"hash"]:t.map}var $s=iC,uC=$s;function cC(e){var r=uC(this,e).delete(e);return this.size-=r?1:0,r}var lC=cC,fC=$s;function dC(e){return fC(this,e).get(e)}var pC=dC,hC=$s;function gC(e){return hC(this,e).has(e)}var vC=gC,mC=$s;function yC(e,r){var t=mC(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var bC=yC,_C=nC,EC=lC,SC=pC,wC=vC,TC=bC;function oa(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}oa.prototype.clear=_C;oa.prototype.delete=EC;oa.prototype.get=SC;oa.prototype.has=wC;oa.prototype.set=TC;var xh=oa,xC=Is,CC=Pc,RC=xh,OC=200;function AC(e,r){var t=this.__data__;if(t instanceof xC){var a=t.__data__;if(!CC||a.length<OC-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new RC(a)}return t.set(e,r),this.size=t.size,this}var PC=AC,DC=Is,IC=LT,FC=jT,$C=WT,MC=HT,NC=PC;function qa(e){var r=this.__data__=new DC(e);this.size=r.size}qa.prototype.clear=IC;qa.prototype.delete=FC;qa.prototype.get=$C;qa.prototype.has=MC;qa.prototype.set=NC;var LC="__lodash_hash_undefined__";function kC(e){return this.__data__.set(e,LC),this}var jC=kC;function BC(e){return this.__data__.has(e)}var WC=BC,UC=xh,HC=jC,qC=WC;function Vu(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new UC;++r<t;)this.add(e[r])}Vu.prototype.add=Vu.prototype.push=HC;Vu.prototype.has=qC;var GC=wr;GC.Uint8Array;var np=Rc,ap=np?np.prototype:void 0;ap&&ap.valueOf;var zC=As,YC=Oc,VC="[object Arguments]";function KC(e){return YC(e)&&zC(e)==VC}var JC=KC,op=JC,XC=Oc,Ch=Object.prototype,ZC=Ch.hasOwnProperty,QC=Ch.propertyIsEnumerable;op(function(){return arguments}());var hs={exports:{}};function eR(){return!1}var tR=eR;hs.exports;(function(e,r){var t=wr,a=tR,s=r&&!r.nodeType&&r,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})(hs,hs.exports);hs.exports;var gs={exports:{}};gs.exports;(function(e,r){var t=dh,a=r&&!r.nodeType&&r,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})(gs,gs.exports);var rR=gs.exports,sp=rR;sp&&sp.isTypedArray;var nR=na,aR=wr,oR=nR(aR,"DataView"),sR=oR,iR=na,uR=wr,cR=iR(uR,"Promise"),lR=cR,fR=na,dR=wr,pR=fR(dR,"Set"),hR=pR,gR=na,vR=wr,mR=gR(vR,"WeakMap"),yR=mR,Ku=sR,Ju=Pc,Xu=lR,Zu=hR,Qu=yR,Rh=As,sa=Th,ip="[object Map]",bR="[object Object]",up="[object Promise]",cp="[object Set]",lp="[object WeakMap]",fp="[object DataView]",_R=sa(Ku),ER=sa(Ju),SR=sa(Xu),wR=sa(Zu),TR=sa(Qu),Gn=Rh;(Ku&&Gn(new Ku(new ArrayBuffer(1)))!=fp||Ju&&Gn(new Ju)!=ip||Xu&&Gn(Xu.resolve())!=up||Zu&&Gn(new Zu)!=cp||Qu&&Gn(new Qu)!=lp)&&(Gn=function(e){var r=Rh(e),t=r==bR?e.constructor:void 0,a=t?sa(t):"";if(a)switch(a){case _R:return fp;case ER:return ip;case SR:return up;case wR:return cp;case TR:return lp}return r});const xR="ROOT";uS(),iS();var dp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(dp||(dp={}));var vs={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
|
-
*/ys.exports;(function(e,r){(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,g="__lodash_placeholder__",m=1,b=2,E=4,x=1,C=2,I=1,P=2,j=4,M=8,k=16,O=32,Y=64,H=128,z=256,te=512,We=30,Te="...",it=800,X=16,Pe=1,ut=2,et=3,He=1/0,nt=9007199254740991,Yt=17976931348623157e292,W=0/0,G=4294967295,de=G-1,le=G>>>1,se=[["ary",H],["bind",I],["bindKey",P],["curry",M],["curryRight",k],["flip",te],["partial",O],["partialRight",Y],["rearg",z]],fe="[object Arguments]",ne="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",he="[object Date]",ge="[object DOMException]",K="[object Error]",F="[object Function]",Ye="[object GeneratorFunction]",qe="[object Map]",yt="[object Number]",Ja="[object Null]",Vt="[object Object]",ln="[object Promise]",Js="[object Proxy]",ir="[object RegExp]",Ct="[object Set]",fn="[object String]",dn="[object Symbol]",Xa="[object Undefined]",xr="[object WeakMap]",Xs="[object WeakSet]",pn="[object ArrayBuffer]",Gr="[object DataView]",la="[object Float32Array]",fa="[object Float64Array]",da="[object Int8Array]",pa="[object Int16Array]",hn="[object Int32Array]",Pn="[object Uint8Array]",mr="[object Uint8ClampedArray]",gn="[object Uint16Array]",vn="[object Uint32Array]",Za=/\b__p \+= '';/g,Zs=/\b(__p \+=) '' \+/g,Qa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eo=/&(?:amp|lt|gt|quot|#39);/g,ha=/[&<>"']/g,to=RegExp(eo.source),Qs=RegExp(ha.source),ei=/<%-([\s\S]+?)%>/g,ro=/<%([\s\S]+?)%>/g,no=/<%=([\s\S]+?)%>/g,ti=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ri=/^\w*$/,ni=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,U=RegExp(w.source),J=/^\s+/,ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,xe=/,? & /,Ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,tt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kt=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,ao=/^0b[01]+$/i,ur=/^\[object .+?Constructor\]$/,Kv=/^0o[0-7]+$/i,Jv=/^(?:0|[1-9]\d*)$/,Xv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,oo=/($^)/,Zv=/['\n\r\u2028\u2029\\]/g,so="\\ud800-\\udfff",Qv="\\u0300-\\u036f",em="\\ufe20-\\ufe2f",tm="\\u20d0-\\u20ff",ul=Qv+em+tm,cl="\\u2700-\\u27bf",ll="a-z\\xdf-\\xf6\\xf8-\\xff",rm="\\xac\\xb1\\xd7\\xf7",nm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",am="\\u2000-\\u206f",om=" \\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",fl="A-Z\\xc0-\\xd6\\xd8-\\xde",dl="\\ufe0e\\ufe0f",pl=rm+nm+am+om,ai="['’]",sm="["+so+"]",hl="["+pl+"]",io="["+ul+"]",gl="\\d+",im="["+cl+"]",vl="["+ll+"]",ml="[^"+so+pl+gl+cl+ll+fl+"]",oi="\\ud83c[\\udffb-\\udfff]",um="(?:"+io+"|"+oi+")",yl="[^"+so+"]",si="(?:\\ud83c[\\udde6-\\uddff]){2}",ii="[\\ud800-\\udbff][\\udc00-\\udfff]",Dn="["+fl+"]",bl="\\u200d",_l="(?:"+vl+"|"+ml+")",cm="(?:"+Dn+"|"+ml+")",El="(?:"+ai+"(?:d|ll|m|re|s|t|ve))?",Sl="(?:"+ai+"(?:D|LL|M|RE|S|T|VE))?",wl=um+"?",Tl="["+dl+"]?",lm="(?:"+bl+"(?:"+[yl,si,ii].join("|")+")"+Tl+wl+")*",fm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xl=Tl+wl+lm,pm="(?:"+[im,si,ii].join("|")+")"+xl,hm="(?:"+[yl+io+"?",io,si,ii,sm].join("|")+")",gm=RegExp(ai,"g"),vm=RegExp(io,"g"),ui=RegExp(oi+"(?="+oi+")|"+hm+xl,"g"),mm=RegExp([Dn+"?"+vl+"+"+El+"(?="+[hl,Dn,"$"].join("|")+")",cm+"+"+Sl+"(?="+[hl,Dn+_l,"$"].join("|")+")",Dn+"?"+_l+"+"+El,Dn+"+"+Sl,dm,fm,gl,pm].join("|"),"g"),ym=RegExp("["+bl+so+ul+dl+"]"),bm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_m=["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"],Em=-1,Ve={};Ve[la]=Ve[fa]=Ve[da]=Ve[pa]=Ve[hn]=Ve[Pn]=Ve[mr]=Ve[gn]=Ve[vn]=!0,Ve[fe]=Ve[ne]=Ve[pn]=Ve[ue]=Ve[Gr]=Ve[he]=Ve[K]=Ve[F]=Ve[qe]=Ve[yt]=Ve[Vt]=Ve[ir]=Ve[Ct]=Ve[fn]=Ve[xr]=!1;var Ge={};Ge[fe]=Ge[ne]=Ge[pn]=Ge[Gr]=Ge[ue]=Ge[he]=Ge[la]=Ge[fa]=Ge[da]=Ge[pa]=Ge[hn]=Ge[qe]=Ge[yt]=Ge[Vt]=Ge[ir]=Ge[Ct]=Ge[fn]=Ge[dn]=Ge[Pn]=Ge[mr]=Ge[gn]=Ge[vn]=!0,Ge[K]=Ge[F]=Ge[xr]=!1;var Sm={À:"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"},wm={"&":"&","<":"<",">":">",'"':""","'":"'"},Tm={"&":"&","<":"<",">":">",""":'"',"'":"'"},xm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cm=parseFloat,Rm=parseInt,Cl=typeof Mr=="object"&&Mr&&Mr.Object===Object&&Mr,Om=typeof self=="object"&&self&&self.Object===Object&&self,gt=Cl||Om||Function("return this")(),ci=r&&!r.nodeType&&r,mn=ci&&!0&&e&&!e.nodeType&&e,Rl=mn&&mn.exports===ci,li=Rl&&Cl.process,Jt=function(){try{var R=mn&&mn.require&&mn.require("util").types;return R||li&&li.binding&&li.binding("util")}catch{}}(),Ol=Jt&&Jt.isArrayBuffer,Al=Jt&&Jt.isDate,Pl=Jt&&Jt.isMap,Dl=Jt&&Jt.isRegExp,Il=Jt&&Jt.isSet,Fl=Jt&&Jt.isTypedArray;function jt(R,$,D){switch(D.length){case 0:return R.call($);case 1:return R.call($,D[0]);case 2:return R.call($,D[0],D[1]);case 3:return R.call($,D[0],D[1],D[2])}return R.apply($,D)}function Am(R,$,D,Z){for(var pe=-1,Oe=R==null?0:R.length;++pe<Oe;){var ct=R[pe];$(Z,ct,D(ct),R)}return Z}function Xt(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z&&$(R[D],D,R)!==!1;);return R}function Pm(R,$){for(var D=R==null?0:R.length;D--&&$(R[D],D,R)!==!1;);return R}function $l(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if(!$(R[D],D,R))return!1;return!0}function Yr(R,$){for(var D=-1,Z=R==null?0:R.length,pe=0,Oe=[];++D<Z;){var ct=R[D];$(ct,D,R)&&(Oe[pe++]=ct)}return Oe}function uo(R,$){var D=R==null?0:R.length;return!!D&&In(R,$,0)>-1}function fi(R,$,D){for(var Z=-1,pe=R==null?0:R.length;++Z<pe;)if(D($,R[Z]))return!0;return!1}function Je(R,$){for(var D=-1,Z=R==null?0:R.length,pe=Array(Z);++D<Z;)pe[D]=$(R[D],D,R);return pe}function Vr(R,$){for(var D=-1,Z=$.length,pe=R.length;++D<Z;)R[pe+D]=$[D];return R}function di(R,$,D,Z){var pe=-1,Oe=R==null?0:R.length;for(Z&&Oe&&(D=R[++pe]);++pe<Oe;)D=$(D,R[pe],pe,R);return D}function Dm(R,$,D,Z){var pe=R==null?0:R.length;for(Z&&pe&&(D=R[--pe]);pe--;)D=$(D,R[pe],pe,R);return D}function pi(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if($(R[D],D,R))return!0;return!1}var Im=hi("length");function Fm(R){return R.split("")}function $m(R){return R.match(Ee)||[]}function Ml(R,$,D){var Z;return D(R,function(pe,Oe,ct){if($(pe,Oe,ct))return Z=Oe,!1}),Z}function co(R,$,D,Z){for(var pe=R.length,Oe=D+(Z?1:-1);Z?Oe--:++Oe<pe;)if($(R[Oe],Oe,R))return Oe;return-1}function In(R,$,D){return $===$?zm(R,$,D):co(R,Nl,D)}function Mm(R,$,D,Z){for(var pe=D-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function Nl(R){return R!==R}function Ll(R,$){var D=R==null?0:R.length;return D?vi(R,$)/D:W}function hi(R){return function($){return $==null?t:$[R]}}function gi(R){return function($){return R==null?t:R[$]}}function kl(R,$,D,Z,pe){return pe(R,function(Oe,ct,Ue){D=Z?(Z=!1,Oe):$(D,Oe,ct,Ue)}),D}function Nm(R,$){var D=R.length;for(R.sort($);D--;)R[D]=R[D].value;return R}function vi(R,$){for(var D,Z=-1,pe=R.length;++Z<pe;){var Oe=$(R[Z]);Oe!==t&&(D=D===t?Oe:D+Oe)}return D}function mi(R,$){for(var D=-1,Z=Array(R);++D<R;)Z[D]=$(D);return Z}function Lm(R,$){return Je($,function(D){return[D,R[D]]})}function jl(R){return R&&R.slice(0,Hl(R)+1).replace(J,"")}function Bt(R){return function($){return R($)}}function yi(R,$){return Je($,function(D){return R[D]})}function ga(R,$){return R.has($)}function Bl(R,$){for(var D=-1,Z=R.length;++D<Z&&In($,R[D],0)>-1;);return D}function Wl(R,$){for(var D=R.length;D--&&In($,R[D],0)>-1;);return D}function km(R,$){for(var D=R.length,Z=0;D--;)R[D]===$&&++Z;return Z}var jm=gi(Sm),Bm=gi(wm);function Wm(R){return"\\"+xm[R]}function Um(R,$){return R==null?t:R[$]}function Fn(R){return ym.test(R)}function Hm(R){return bm.test(R)}function qm(R){for(var $,D=[];!($=R.next()).done;)D.push($.value);return D}function bi(R){var $=-1,D=Array(R.size);return R.forEach(function(Z,pe){D[++$]=[pe,Z]}),D}function Ul(R,$){return function(D){return R($(D))}}function Kr(R,$){for(var D=-1,Z=R.length,pe=0,Oe=[];++D<Z;){var ct=R[D];(ct===$||ct===g)&&(R[D]=g,Oe[pe++]=D)}return Oe}function lo(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=Z}),D}function Gm(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=[Z,Z]}),D}function zm(R,$,D){for(var Z=D-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Ym(R,$,D){for(var Z=D+1;Z--;)if(R[Z]===$)return Z;return Z}function $n(R){return Fn(R)?Km(R):Im(R)}function cr(R){return Fn(R)?Jm(R):Fm(R)}function Hl(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var Vm=gi(Tm);function Km(R){for(var $=ui.lastIndex=0;ui.test(R);)++$;return $}function Jm(R){return R.match(ui)||[]}function Xm(R){return R.match(mm)||[]}var Zm=function R($){$=$==null?gt:Mn.defaults(gt.Object(),$,Mn.pick(gt,_m));var D=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ct=$.Math,Ue=$.Object,_i=$.RegExp,Qm=$.String,Zt=$.TypeError,fo=D.prototype,ey=Oe.prototype,Nn=Ue.prototype,po=$["__core-js_shared__"],ho=ey.toString,ke=Nn.hasOwnProperty,ty=0,ql=function(){var n=/[^.]+$/.exec(po&&po.keys&&po.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),go=Nn.toString,ry=ho.call(Ue),ny=gt._,ay=_i("^"+ho.call(ke).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vo=Rl?$.Buffer:t,Jr=$.Symbol,mo=$.Uint8Array,Gl=vo?vo.allocUnsafe:t,yo=Ul(Ue.getPrototypeOf,Ue),zl=Ue.create,Yl=Nn.propertyIsEnumerable,bo=fo.splice,Vl=Jr?Jr.isConcatSpreadable:t,va=Jr?Jr.iterator:t,yn=Jr?Jr.toStringTag:t,_o=function(){try{var n=wn(Ue,"defineProperty");return n({},"",{}),n}catch{}}(),oy=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,sy=Z&&Z.now!==gt.Date.now&&Z.now,iy=$.setTimeout!==gt.setTimeout&&$.setTimeout,Eo=ct.ceil,So=ct.floor,Ei=Ue.getOwnPropertySymbols,uy=vo?vo.isBuffer:t,Kl=$.isFinite,cy=fo.join,ly=Ul(Ue.keys,Ue),lt=ct.max,bt=ct.min,fy=Z.now,dy=$.parseInt,Jl=ct.random,py=fo.reverse,Si=wn($,"DataView"),ma=wn($,"Map"),wi=wn($,"Promise"),Ln=wn($,"Set"),ya=wn($,"WeakMap"),ba=wn(Ue,"create"),wo=ya&&new ya,kn={},hy=Tn(Si),gy=Tn(ma),vy=Tn(wi),my=Tn(Ln),yy=Tn(ya),To=Jr?Jr.prototype:t,_a=To?To.valueOf:t,Xl=To?To.toString:t;function v(n){if(rt(n)&&!ve(n)&&!(n instanceof we)){if(n instanceof Qt)return n;if(ke.call(n,"__wrapped__"))return Qf(n)}return new Qt(n)}var jn=function(){function n(){}return function(o){if(!Qe(o))return{};if(zl)return zl(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function xo(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:ei,evaluate:ro,interpolate:no,variable:"",imports:{_:v}},v.prototype=xo.prototype,v.prototype.constructor=v,Qt.prototype=jn(xo.prototype),Qt.prototype.constructor=Qt;function we(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function by(){var n=new we(this.__wrapped__);return n.__actions__=Ft(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ft(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ft(this.__views__),n}function _y(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Ey(){var n=this.__wrapped__.value(),o=this.__dir__,u=ve(n),f=o<0,h=u?n.length:0,y=Fb(0,h,this.__views__),S=y.start,T=y.end,A=T-S,N=f?T:S-1,L=this.__iteratees__,B=L.length,V=0,ee=bt(A,this.__takeCount__);if(!u||!f&&h==A&&ee==A)return Sf(n,this.__actions__);var ae=[];e:for(;A--&&V<ee;){N+=o;for(var be=-1,oe=n[N];++be<B;){var Se=L[be],Ce=Se.iteratee,Ht=Se.type,At=Ce(oe);if(Ht==ut)oe=At;else if(!At){if(Ht==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=jn(xo.prototype),we.prototype.constructor=we;function bn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Sy(){this.__data__=ba?ba(null):{},this.size=0}function wy(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function Ty(n){var o=this.__data__;if(ba){var u=o[n];return u===d?t:u}return ke.call(o,n)?o[n]:t}function xy(n){var o=this.__data__;return ba?o[n]!==t:ke.call(o,n)}function Cy(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ba&&o===t?d:o,this}bn.prototype.clear=Sy,bn.prototype.delete=wy,bn.prototype.get=Ty,bn.prototype.has=xy,bn.prototype.set=Cy;function Cr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Ry(){this.__data__=[],this.size=0}function Oy(n){var o=this.__data__,u=Co(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():bo.call(o,u,1),--this.size,!0}function Ay(n){var o=this.__data__,u=Co(o,n);return u<0?t:o[u][1]}function Py(n){return Co(this.__data__,n)>-1}function Dy(n,o){var u=this.__data__,f=Co(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}Cr.prototype.clear=Ry,Cr.prototype.delete=Oy,Cr.prototype.get=Ay,Cr.prototype.has=Py,Cr.prototype.set=Dy;function Rr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Iy(){this.size=0,this.__data__={hash:new bn,map:new(ma||Cr),string:new bn}}function Fy(n){var o=ko(this,n).delete(n);return this.size-=o?1:0,o}function $y(n){return ko(this,n).get(n)}function My(n){return ko(this,n).has(n)}function Ny(n,o){var u=ko(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}Rr.prototype.clear=Iy,Rr.prototype.delete=Fy,Rr.prototype.get=$y,Rr.prototype.has=My,Rr.prototype.set=Ny;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Rr;++o<u;)this.add(n[o])}function Ly(n){return this.__data__.set(n,d),this}function ky(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Ly,_n.prototype.has=ky;function lr(n){var o=this.__data__=new Cr(n);this.size=o.size}function jy(){this.__data__=new Cr,this.size=0}function By(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Wy(n){return this.__data__.get(n)}function Uy(n){return this.__data__.has(n)}function Hy(n,o){var u=this.__data__;if(u instanceof Cr){var f=u.__data__;if(!ma||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new Rr(f)}return u.set(n,o),this.size=u.size,this}lr.prototype.clear=jy,lr.prototype.delete=By,lr.prototype.get=Wy,lr.prototype.has=Uy,lr.prototype.set=Hy;function Zl(n,o){var u=ve(n),f=!u&&xn(n),h=!u&&!f&&tn(n),y=!u&&!f&&!h&&Hn(n),S=u||f||h||y,T=S?mi(n.length,Qm):[],A=T.length;for(var N in n)(o||ke.call(n,N))&&!(S&&(N=="length"||h&&(N=="offset"||N=="parent")||y&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Dr(N,A)))&&T.push(N);return T}function Ql(n){var o=n.length;return o?n[$i(0,o-1)]:t}function qy(n,o){return jo(Ft(n),En(o,0,n.length))}function Gy(n){return jo(Ft(n))}function Ti(n,o,u){(u!==t&&!fr(n[o],u)||u===t&&!(o in n))&&Or(n,o,u)}function Ea(n,o,u){var f=n[o];(!(ke.call(n,o)&&fr(f,u))||u===t&&!(o in n))&&Or(n,o,u)}function Co(n,o){for(var u=n.length;u--;)if(fr(n[u][0],o))return u;return-1}function zy(n,o,u,f){return Xr(n,function(h,y,S){o(f,h,u(h),S)}),f}function ef(n,o){return n&&br(o,pt(o),n)}function Yy(n,o){return n&&br(o,Mt(o),n)}function Or(n,o,u){o=="__proto__"&&_o?_o(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function xi(n,o){for(var u=-1,f=o.length,h=D(f),y=n==null;++u<f;)h[u]=y?t:ou(n,o[u]);return h}function En(n,o,u){return n===n&&(u!==t&&(n=n<=u?n:u),o!==t&&(n=n>=o?n:o)),n}function er(n,o,u,f,h,y){var S,T=o&m,A=o&b,N=o&E;if(u&&(S=h?u(n,f,h,y):u(n)),S!==t)return S;if(!Qe(n))return n;var L=ve(n);if(L){if(S=Mb(n),!T)return Ft(n,S)}else{var B=_t(n),V=B==F||B==Ye;if(tn(n))return xf(n,T);if(B==Vt||B==fe||V&&!h){if(S=A||V?{}:qf(n),!T)return A?Tb(n,Yy(S,n)):wb(n,ef(S,n))}else{if(!Ge[B])return h?n:{};S=Nb(n,B,T)}}y||(y=new lr);var ee=y.get(n);if(ee)return ee;y.set(n,S),bd(n)?n.forEach(function(oe){S.add(er(oe,o,u,oe,n,y))}):md(n)&&n.forEach(function(oe,Se){S.set(Se,er(oe,o,u,Se,n,y))});var ae=N?A?Gi:qi:A?Mt:pt,be=L?t:ae(n);return Xt(be||n,function(oe,Se){be&&(Se=oe,oe=n[Se]),Ea(S,Se,er(oe,o,u,Se,n,y))}),S}function Vy(n){var o=pt(n);return function(u){return tf(u,n,o)}}function tf(n,o,u){var f=u.length;if(n==null)return!f;for(n=Ue(n);f--;){var h=u[f],y=o[h],S=n[h];if(S===t&&!(h in n)||!y(S))return!1}return!0}function rf(n,o,u){if(typeof n!="function")throw new Zt(c);return Oa(function(){n.apply(t,u)},o)}function Sa(n,o,u,f){var h=-1,y=uo,S=!0,T=n.length,A=[],N=o.length;if(!T)return A;u&&(o=Je(o,Bt(u))),f?(y=fi,S=!1):o.length>=s&&(y=ga,S=!1,o=new _n(o));e:for(;++h<T;){var L=n[h],B=u==null?L:u(L);if(L=f||L!==0?L:0,S&&B===B){for(var V=N;V--;)if(o[V]===B)continue e;A.push(L)}else y(o,B,f)||A.push(L)}return A}var Xr=Pf(yr),nf=Pf(Ri,!0);function Ky(n,o){var u=!0;return Xr(n,function(f,h,y){return u=!!o(f,h,y),u}),u}function Ro(n,o,u){for(var f=-1,h=n.length;++f<h;){var y=n[f],S=o(y);if(S!=null&&(T===t?S===S&&!Ut(S):u(S,T)))var T=S,A=y}return A}function Jy(n,o,u,f){var h=n.length;for(u=me(u),u<0&&(u=-u>h?0:h+u),f=f===t||f>h?h:me(f),f<0&&(f+=h),f=u>f?0:Ed(f);u<f;)n[u++]=o;return n}function af(n,o){var u=[];return Xr(n,function(f,h,y){o(f,h,y)&&u.push(f)}),u}function vt(n,o,u,f,h){var y=-1,S=n.length;for(u||(u=kb),h||(h=[]);++y<S;){var T=n[y];o>0&&u(T)?o>1?vt(T,o-1,u,f,h):Vr(h,T):f||(h[h.length]=T)}return h}var Ci=Df(),of=Df(!0);function yr(n,o){return n&&Ci(n,o,pt)}function Ri(n,o){return n&&of(n,o,pt)}function Oo(n,o){return Yr(o,function(u){return Ir(n[u])})}function Sn(n,o){o=Qr(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[_r(o[u++])];return u&&u==f?n:t}function sf(n,o,u){var f=o(n);return ve(n)?f:Vr(f,u(n))}function Rt(n){return n==null?n===t?Xa:Ja:yn&&yn in Ue(n)?Ib(n):Gb(n)}function Oi(n,o){return n>o}function Xy(n,o){return n!=null&&ke.call(n,o)}function Zy(n,o){return n!=null&&o in Ue(n)}function Qy(n,o,u){return n>=bt(o,u)&&n<lt(o,u)}function Ai(n,o,u){for(var f=u?fi:uo,h=n[0].length,y=n.length,S=y,T=D(y),A=1/0,N=[];S--;){var L=n[S];S&&o&&(L=Je(L,Bt(o))),A=bt(L.length,A),T[S]=!u&&(o||h>=120&&L.length>=120)?new _n(S&&L):t}L=n[0];var B=-1,V=T[0];e:for(;++B<h&&N.length<A;){var ee=L[B],ae=o?o(ee):ee;if(ee=u||ee!==0?ee:0,!(V?ga(V,ae):f(N,ae,u))){for(S=y;--S;){var be=T[S];if(!(be?ga(be,ae):f(n[S],ae,u)))continue e}V&&V.push(ae),N.push(ee)}}return N}function eb(n,o,u,f){return yr(n,function(h,y,S){o(f,u(h),y,S)}),f}function wa(n,o,u){o=Qr(o,n),n=Vf(n,o);var f=n==null?n:n[_r(rr(o))];return f==null?t:jt(f,n,u)}function uf(n){return rt(n)&&Rt(n)==fe}function tb(n){return rt(n)&&Rt(n)==pn}function rb(n){return rt(n)&&Rt(n)==he}function Ta(n,o,u,f,h){return n===o?!0:n==null||o==null||!rt(n)&&!rt(o)?n!==n&&o!==o:nb(n,o,u,f,Ta,h)}function nb(n,o,u,f,h,y){var S=ve(n),T=ve(o),A=S?ne:_t(n),N=T?ne:_t(o);A=A==fe?Vt:A,N=N==fe?Vt:N;var L=A==Vt,B=N==Vt,V=A==N;if(V&&tn(n)){if(!tn(o))return!1;S=!0,L=!1}if(V&&!L)return y||(y=new lr),S||Hn(n)?Wf(n,o,u,f,h,y):Pb(n,o,A,u,f,h,y);if(!(u&x)){var ee=L&&ke.call(n,"__wrapped__"),ae=B&&ke.call(o,"__wrapped__");if(ee||ae){var be=ee?n.value():n,oe=ae?o.value():o;return y||(y=new lr),h(be,oe,u,f,y)}}return V?(y||(y=new lr),Db(n,o,u,f,h,y)):!1}function ab(n){return rt(n)&&_t(n)==qe}function Pi(n,o,u,f){var h=u.length,y=h,S=!f;if(n==null)return!y;for(n=Ue(n);h--;){var T=u[h];if(S&&T[2]?T[1]!==n[T[0]]:!(T[0]in n))return!1}for(;++h<y;){T=u[h];var A=T[0],N=n[A],L=T[1];if(S&&T[2]){if(N===t&&!(A in n))return!1}else{var B=new lr;if(f)var V=f(N,L,A,n,o,B);if(!(V===t?Ta(L,N,x|C,f,B):V))return!1}}return!0}function cf(n){if(!Qe(n)||Bb(n))return!1;var o=Ir(n)?ay:ur;return o.test(Tn(n))}function ob(n){return rt(n)&&Rt(n)==ir}function sb(n){return rt(n)&&_t(n)==Ct}function ib(n){return rt(n)&&Go(n.length)&&!!Ve[Rt(n)]}function lf(n){return typeof n=="function"?n:n==null?Nt:typeof n=="object"?ve(n)?pf(n[0],n[1]):df(n):Id(n)}function Di(n){if(!Ra(n))return ly(n);var o=[];for(var u in Ue(n))ke.call(n,u)&&u!="constructor"&&o.push(u);return o}function ub(n){if(!Qe(n))return qb(n);var o=Ra(n),u=[];for(var f in n)f=="constructor"&&(o||!ke.call(n,f))||u.push(f);return u}function Ii(n,o){return n<o}function ff(n,o){var u=-1,f=$t(n)?D(n.length):[];return Xr(n,function(h,y,S){f[++u]=o(h,y,S)}),f}function df(n){var o=Yi(n);return o.length==1&&o[0][2]?zf(o[0][0],o[0][1]):function(u){return u===n||Pi(u,n,o)}}function pf(n,o){return Ki(n)&&Gf(o)?zf(_r(n),o):function(u){var f=ou(u,n);return f===t&&f===o?su(u,n):Ta(o,f,x|C)}}function Ao(n,o,u,f,h){n!==o&&Ci(o,function(y,S){if(h||(h=new lr),Qe(y))cb(n,o,S,u,Ao,f,h);else{var T=f?f(Xi(n,S),y,S+"",n,o,h):t;T===t&&(T=y),Ti(n,S,T)}},Mt)}function cb(n,o,u,f,h,y,S){var T=Xi(n,u),A=Xi(o,u),N=S.get(A);if(N){Ti(n,u,N);return}var L=y?y(T,A,u+"",n,o,S):t,B=L===t;if(B){var V=ve(A),ee=!V&&tn(A),ae=!V&&!ee&&Hn(A);L=A,V||ee||ae?ve(T)?L=T:at(T)?L=Ft(T):ee?(B=!1,L=xf(A,!0)):ae?(B=!1,L=Cf(A,!0)):L=[]:Aa(A)||xn(A)?(L=T,xn(T)?L=Sd(T):(!Qe(T)||Ir(T))&&(L=qf(A))):B=!1}B&&(S.set(A,L),h(L,A,f,y,S),S.delete(A)),Ti(n,u,L)}function hf(n,o){var u=n.length;if(u)return o+=o<0?u:0,Dr(o,u)?n[o]:t}function gf(n,o,u){o.length?o=Je(o,function(y){return ve(y)?function(S){return Sn(S,y.length===1?y[0]:y)}:y}):o=[Nt];var f=-1;o=Je(o,Bt(re()));var h=ff(n,function(y,S,T){var A=Je(o,function(N){return N(y)});return{criteria:A,index:++f,value:y}});return Nm(h,function(y,S){return Sb(y,S,u)})}function lb(n,o){return vf(n,o,function(u,f){return su(n,f)})}function vf(n,o,u){for(var f=-1,h=o.length,y={};++f<h;){var S=o[f],T=Sn(n,S);u(T,S)&&xa(y,Qr(S,n),T)}return y}function fb(n){return function(o){return Sn(o,n)}}function Fi(n,o,u,f){var h=f?Mm:In,y=-1,S=o.length,T=n;for(n===o&&(o=Ft(o)),u&&(T=Je(n,Bt(u)));++y<S;)for(var A=0,N=o[y],L=u?u(N):N;(A=h(T,L,A,f))>-1;)T!==n&&bo.call(T,A,1),bo.call(n,A,1);return n}function mf(n,o){for(var u=n?o.length:0,f=u-1;u--;){var h=o[u];if(u==f||h!==y){var y=h;Dr(h)?bo.call(n,h,1):Li(n,h)}}return n}function $i(n,o){return n+So(Jl()*(o-n+1))}function db(n,o,u,f){for(var h=-1,y=lt(Eo((o-n)/(u||1)),0),S=D(y);y--;)S[f?y:++h]=n,n+=u;return S}function Mi(n,o){var u="";if(!n||o<1||o>nt)return u;do o%2&&(u+=n),o=So(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Zi(Yf(n,o,Nt),n+"")}function pb(n){return Ql(qn(n))}function hb(n,o){var u=qn(n);return jo(u,En(o,0,u.length))}function xa(n,o,u,f){if(!Qe(n))return n;o=Qr(o,n);for(var h=-1,y=o.length,S=y-1,T=n;T!=null&&++h<y;){var A=_r(o[h]),N=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return n;if(h!=S){var L=T[A];N=f?f(L,A,T):t,N===t&&(N=Qe(L)?L:Dr(o[h+1])?[]:{})}Ea(T,A,N),T=T[A]}return n}var yf=wo?function(n,o){return wo.set(n,o),n}:Nt,gb=_o?function(n,o){return _o(n,"toString",{configurable:!0,enumerable:!1,value:uu(o),writable:!0})}:Nt;function vb(n){return jo(qn(n))}function tr(n,o,u){var f=-1,h=n.length;o<0&&(o=-o>h?0:h+o),u=u>h?h:u,u<0&&(u+=h),h=o>u?0:u-o>>>0,o>>>=0;for(var y=D(h);++f<h;)y[f]=n[f+o];return y}function mb(n,o){var u;return Xr(n,function(f,h,y){return u=o(f,h,y),!u}),!!u}function Po(n,o,u){var f=0,h=n==null?f:n.length;if(typeof o=="number"&&o===o&&h<=le){for(;f<h;){var y=f+h>>>1,S=n[y];S!==null&&!Ut(S)&&(u?S<=o:S<o)?f=y+1:h=y}return h}return Ni(n,o,Nt,u)}function Ni(n,o,u,f){var h=0,y=n==null?0:n.length;if(y===0)return 0;o=u(o);for(var S=o!==o,T=o===null,A=Ut(o),N=o===t;h<y;){var L=So((h+y)/2),B=u(n[L]),V=B!==t,ee=B===null,ae=B===B,be=Ut(B);if(S)var oe=f||ae;else N?oe=ae&&(f||V):T?oe=ae&&V&&(f||!ee):A?oe=ae&&V&&!ee&&(f||!be):ee||be?oe=!1:oe=f?B<=o:B<o;oe?h=L+1:y=L}return bt(y,de)}function bf(n,o){for(var u=-1,f=n.length,h=0,y=[];++u<f;){var S=n[u],T=o?o(S):S;if(!u||!fr(T,A)){var A=T;y[h++]=S===0?0:S}}return y}function _f(n){return typeof n=="number"?n:Ut(n)?W:+n}function Wt(n){if(typeof n=="string")return n;if(ve(n))return Je(n,Wt)+"";if(Ut(n))return Xl?Xl.call(n):"";var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Zr(n,o,u){var f=-1,h=uo,y=n.length,S=!0,T=[],A=T;if(u)S=!1,h=fi;else if(y>=s){var N=o?null:Ob(n);if(N)return lo(N);S=!1,h=ga,A=new _n}else A=o?[]:T;e:for(;++f<y;){var L=n[f],B=o?o(L):L;if(L=u||L!==0?L:0,S&&B===B){for(var V=A.length;V--;)if(A[V]===B)continue e;o&&A.push(B),T.push(L)}else h(A,B,u)||(A!==T&&A.push(B),T.push(L))}return T}function Li(n,o){return o=Qr(o,n),n=Vf(n,o),n==null||delete n[_r(rr(o))]}function Ef(n,o,u,f){return xa(n,o,u(Sn(n,o)),f)}function Do(n,o,u,f){for(var h=n.length,y=f?h:-1;(f?y--:++y<h)&&o(n[y],y,n););return u?tr(n,f?0:y,f?y+1:h):tr(n,f?y+1:0,f?h:y)}function Sf(n,o){var u=n;return u instanceof we&&(u=u.value()),di(o,function(f,h){return h.func.apply(h.thisArg,Vr([f],h.args))},u)}function ki(n,o,u){var f=n.length;if(f<2)return f?Zr(n[0]):[];for(var h=-1,y=D(f);++h<f;)for(var S=n[h],T=-1;++T<f;)T!=h&&(y[h]=Sa(y[h]||S,n[T],o,u));return Zr(vt(y,1),o,u)}function wf(n,o,u){for(var f=-1,h=n.length,y=o.length,S={};++f<h;){var T=f<y?o[f]:t;u(S,n[f],T)}return S}function ji(n){return at(n)?n:[]}function Bi(n){return typeof n=="function"?n:Nt}function Qr(n,o){return ve(n)?n:Ki(n,o)?[n]:Zf(De(n))}var yb=_e;function en(n,o,u){var f=n.length;return u=u===t?f:u,!o&&u>=f?n:tr(n,o,u)}var Tf=oy||function(n){return gt.clearTimeout(n)};function xf(n,o){if(o)return n.slice();var u=n.length,f=Gl?Gl(u):new n.constructor(u);return n.copy(f),f}function Wi(n){var o=new n.constructor(n.byteLength);return new mo(o).set(new mo(n)),o}function bb(n,o){var u=o?Wi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function _b(n){var o=new n.constructor(n.source,Kt.exec(n));return o.lastIndex=n.lastIndex,o}function Eb(n){return _a?Ue(_a.call(n)):{}}function Cf(n,o){var u=o?Wi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Rf(n,o){if(n!==o){var u=n!==t,f=n===null,h=n===n,y=Ut(n),S=o!==t,T=o===null,A=o===o,N=Ut(o);if(!T&&!N&&!y&&n>o||y&&S&&A&&!T&&!N||f&&S&&A||!u&&A||!h)return 1;if(!f&&!y&&!N&&n<o||N&&u&&h&&!f&&!y||T&&u&&h||!S&&h||!A)return-1}return 0}function Sb(n,o,u){for(var f=-1,h=n.criteria,y=o.criteria,S=h.length,T=u.length;++f<S;){var A=Rf(h[f],y[f]);if(A){if(f>=T)return A;var N=u[f];return A*(N=="desc"?-1:1)}}return n.index-o.index}function Of(n,o,u,f){for(var h=-1,y=n.length,S=u.length,T=-1,A=o.length,N=lt(y-S,0),L=D(A+N),B=!f;++T<A;)L[T]=o[T];for(;++h<S;)(B||h<y)&&(L[u[h]]=n[h]);for(;N--;)L[T++]=n[h++];return L}function Af(n,o,u,f){for(var h=-1,y=n.length,S=-1,T=u.length,A=-1,N=o.length,L=lt(y-T,0),B=D(L+N),V=!f;++h<L;)B[h]=n[h];for(var ee=h;++A<N;)B[ee+A]=o[A];for(;++S<T;)(V||h<y)&&(B[ee+u[S]]=n[h++]);return B}function Ft(n,o){var u=-1,f=n.length;for(o||(o=D(f));++u<f;)o[u]=n[u];return o}function br(n,o,u,f){var h=!u;u||(u={});for(var y=-1,S=o.length;++y<S;){var T=o[y],A=f?f(u[T],n[T],T,u,n):t;A===t&&(A=n[T]),h?Or(u,T,A):Ea(u,T,A)}return u}function wb(n,o){return br(n,Vi(n),o)}function Tb(n,o){return br(n,Uf(n),o)}function Io(n,o){return function(u,f){var h=ve(u)?Am:zy,y=o?o():{};return h(u,n,re(f,2),y)}}function Bn(n){return _e(function(o,u){var f=-1,h=u.length,y=h>1?u[h-1]:t,S=h>2?u[2]:t;for(y=n.length>3&&typeof y=="function"?(h--,y):t,S&&Ot(u[0],u[1],S)&&(y=h<3?t:y,h=1),o=Ue(o);++f<h;){var T=u[f];T&&n(o,T,f,y)}return o})}function Pf(n,o){return function(u,f){if(u==null)return u;if(!$t(u))return n(u,f);for(var h=u.length,y=o?h:-1,S=Ue(u);(o?y--:++y<h)&&f(S[y],y,S)!==!1;);return u}}function Df(n){return function(o,u,f){for(var h=-1,y=Ue(o),S=f(o),T=S.length;T--;){var A=S[n?T:++h];if(u(y[A],A,y)===!1)break}return o}}function xb(n,o,u){var f=o&I,h=Ca(n);function y(){var S=this&&this!==gt&&this instanceof y?h:n;return S.apply(f?u:this,arguments)}return y}function If(n){return function(o){o=De(o);var u=Fn(o)?cr(o):t,f=u?u[0]:o.charAt(0),h=u?en(u,1).join(""):o.slice(1);return f[n]()+h}}function Wn(n){return function(o){return di(Pd(Ad(o).replace(gm,"")),n,"")}}function Ca(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=jn(n.prototype),f=n.apply(u,o);return Qe(f)?f:u}}function Cb(n,o,u){var f=Ca(n);function h(){for(var y=arguments.length,S=D(y),T=y,A=Un(h);T--;)S[T]=arguments[T];var N=y<3&&S[0]!==A&&S[y-1]!==A?[]:Kr(S,A);if(y-=N.length,y<u)return Lf(n,o,Fo,h.placeholder,t,S,N,t,t,u-y);var L=this&&this!==gt&&this instanceof h?f:n;return jt(L,this,S)}return h}function Ff(n){return function(o,u,f){var h=Ue(o);if(!$t(o)){var y=re(u,3);o=pt(o),u=function(T){return y(h[T],T,h)}}var S=n(o,u,f);return S>-1?h[y?o[S]:S]:t}}function $f(n){return Pr(function(o){var u=o.length,f=u,h=Qt.prototype.thru;for(n&&o.reverse();f--;){var y=o[f];if(typeof y!="function")throw new Zt(c);if(h&&!S&&Lo(y)=="wrapper")var S=new Qt([],!0)}for(f=S?f:u;++f<u;){y=o[f];var T=Lo(y),A=T=="wrapper"?zi(y):t;A&&Ji(A[0])&&A[1]==(H|M|O|z)&&!A[4].length&&A[9]==1?S=S[Lo(A[0])].apply(S,A[3]):S=y.length==1&&Ji(y)?S[T]():S.thru(y)}return function(){var N=arguments,L=N[0];if(S&&N.length==1&&ve(L))return S.plant(L).value();for(var B=0,V=u?o[B].apply(this,N):L;++B<u;)V=o[B].call(this,V);return V}})}function Fo(n,o,u,f,h,y,S,T,A,N){var L=o&H,B=o&I,V=o&P,ee=o&(M|k),ae=o&te,be=V?t:Ca(n);function oe(){for(var Se=arguments.length,Ce=D(Se),Ht=Se;Ht--;)Ce[Ht]=arguments[Ht];if(ee)var At=Un(oe),qt=km(Ce,At);if(f&&(Ce=Of(Ce,f,h,ee)),y&&(Ce=Af(Ce,y,S,ee)),Se-=qt,ee&&Se<N){var ot=Kr(Ce,At);return Lf(n,o,Fo,oe.placeholder,u,Ce,ot,T,A,N-Se)}var dr=B?u:this,$r=V?dr[n]:n;return Se=Ce.length,T?Ce=zb(Ce,T):ae&&Se>1&&Ce.reverse(),L&&A<Se&&(Ce.length=A),this&&this!==gt&&this instanceof oe&&($r=be||Ca($r)),$r.apply(dr,Ce)}return oe}function Mf(n,o){return function(u,f){return eb(u,n,o(f),{})}}function $o(n,o){return function(u,f){var h;if(u===t&&f===t)return o;if(u!==t&&(h=u),f!==t){if(h===t)return f;typeof u=="string"||typeof f=="string"?(u=Wt(u),f=Wt(f)):(u=_f(u),f=_f(f)),h=n(u,f)}return h}}function Ui(n){return Pr(function(o){return o=Je(o,Bt(re())),_e(function(u){var f=this;return n(o,function(h){return jt(h,f,u)})})})}function Mo(n,o){o=o===t?" ":Wt(o);var u=o.length;if(u<2)return u?Mi(o,n):o;var f=Mi(o,Eo(n/$n(o)));return Fn(o)?en(cr(f),0,n).join(""):f.slice(0,n)}function Rb(n,o,u,f){var h=o&I,y=Ca(n);function S(){for(var T=-1,A=arguments.length,N=-1,L=f.length,B=D(L+A),V=this&&this!==gt&&this instanceof S?y:n;++N<L;)B[N]=f[N];for(;A--;)B[N++]=arguments[++T];return jt(V,h?u:this,B)}return S}function Nf(n){return function(o,u,f){return f&&typeof f!="number"&&Ot(o,u,f)&&(u=f=t),o=Fr(o),u===t?(u=o,o=0):u=Fr(u),f=f===t?o<u?1:-1:Fr(f),db(o,u,f,n)}}function No(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=nr(o),u=nr(u)),n(o,u)}}function Lf(n,o,u,f,h,y,S,T,A,N){var L=o&M,B=L?S:t,V=L?t:S,ee=L?y:t,ae=L?t:y;o|=L?O:Y,o&=~(L?Y:O),o&j||(o&=~(I|P));var be=[n,o,h,ee,B,ae,V,T,A,N],oe=u.apply(t,be);return Ji(n)&&Kf(oe,be),oe.placeholder=f,Jf(oe,n,o)}function Hi(n){var o=ct[n];return function(u,f){if(u=nr(u),f=f==null?0:bt(me(f),292),f&&Kl(u)){var h=(De(u)+"e").split("e"),y=o(h[0]+"e"+(+h[1]+f));return h=(De(y)+"e").split("e"),+(h[0]+"e"+(+h[1]-f))}return o(u)}}var Ob=Ln&&1/lo(new Ln([,-0]))[1]==He?function(n){return new Ln(n)}:fu;function kf(n){return function(o){var u=_t(o);return u==qe?bi(o):u==Ct?Gm(o):Lm(o,n(o))}}function Ar(n,o,u,f,h,y,S,T){var A=o&P;if(!A&&typeof n!="function")throw new Zt(c);var N=f?f.length:0;if(N||(o&=~(O|Y),f=h=t),S=S===t?S:lt(me(S),0),T=T===t?T:me(T),N-=h?h.length:0,o&Y){var L=f,B=h;f=h=t}var V=A?t:zi(n),ee=[n,o,u,f,h,L,B,y,S,T];if(V&&Hb(ee,V),n=ee[0],o=ee[1],u=ee[2],f=ee[3],h=ee[4],T=ee[9]=ee[9]===t?A?0:n.length:lt(ee[9]-N,0),!T&&o&(M|k)&&(o&=~(M|k)),!o||o==I)var ae=xb(n,o,u);else o==M||o==k?ae=Cb(n,o,T):(o==O||o==(I|O))&&!h.length?ae=Rb(n,o,u,f):ae=Fo.apply(t,ee);var be=V?yf:Kf;return Jf(be(ae,ee),n,o)}function jf(n,o,u,f){return n===t||fr(n,Nn[u])&&!ke.call(f,u)?o:n}function Bf(n,o,u,f,h,y){return Qe(n)&&Qe(o)&&(y.set(o,n),Ao(n,o,t,Bf,y),y.delete(o)),n}function Ab(n){return Aa(n)?t:n}function Wf(n,o,u,f,h,y){var S=u&x,T=n.length,A=o.length;if(T!=A&&!(S&&A>T))return!1;var N=y.get(n),L=y.get(o);if(N&&L)return N==o&&L==n;var B=-1,V=!0,ee=u&C?new _n:t;for(y.set(n,o),y.set(o,n);++B<T;){var ae=n[B],be=o[B];if(f)var oe=S?f(be,ae,B,o,n,y):f(ae,be,B,n,o,y);if(oe!==t){if(oe)continue;V=!1;break}if(ee){if(!pi(o,function(Se,Ce){if(!ga(ee,Ce)&&(ae===Se||h(ae,Se,u,f,y)))return ee.push(Ce)})){V=!1;break}}else if(!(ae===be||h(ae,be,u,f,y))){V=!1;break}}return y.delete(n),y.delete(o),V}function Pb(n,o,u,f,h,y,S){switch(u){case Gr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case pn:return!(n.byteLength!=o.byteLength||!y(new mo(n),new mo(o)));case ue:case he:case yt:return fr(+n,+o);case K:return n.name==o.name&&n.message==o.message;case ir:case fn:return n==o+"";case qe:var T=bi;case Ct:var A=f&x;if(T||(T=lo),n.size!=o.size&&!A)return!1;var N=S.get(n);if(N)return N==o;f|=C,S.set(n,o);var L=Wf(T(n),T(o),f,h,y,S);return S.delete(n),L;case dn:if(_a)return _a.call(n)==_a.call(o)}return!1}function Db(n,o,u,f,h,y){var S=u&x,T=qi(n),A=T.length,N=qi(o),L=N.length;if(A!=L&&!S)return!1;for(var B=A;B--;){var V=T[B];if(!(S?V in o:ke.call(o,V)))return!1}var ee=y.get(n),ae=y.get(o);if(ee&&ae)return ee==o&&ae==n;var be=!0;y.set(n,o),y.set(o,n);for(var oe=S;++B<A;){V=T[B];var Se=n[V],Ce=o[V];if(f)var Ht=S?f(Ce,Se,V,o,n,y):f(Se,Ce,V,n,o,y);if(!(Ht===t?Se===Ce||h(Se,Ce,u,f,y):Ht)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=n.constructor,qt=o.constructor;At!=qt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof qt=="function"&&qt instanceof qt)&&(be=!1)}return y.delete(n),y.delete(o),be}function Pr(n){return Zi(Yf(n,t,rd),n+"")}function qi(n){return sf(n,pt,Vi)}function Gi(n){return sf(n,Mt,Uf)}var zi=wo?function(n){return wo.get(n)}:fu;function Lo(n){for(var o=n.name+"",u=kn[o],f=ke.call(kn,o)?u.length:0;f--;){var h=u[f],y=h.func;if(y==null||y==n)return h.name}return o}function Un(n){var o=ke.call(v,"placeholder")?v:n;return o.placeholder}function re(){var n=v.iteratee||cu;return n=n===cu?lf:n,arguments.length?n(arguments[0],arguments[1]):n}function ko(n,o){var u=n.__data__;return jb(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Yi(n){for(var o=pt(n),u=o.length;u--;){var f=o[u],h=n[f];o[u]=[f,h,Gf(h)]}return o}function wn(n,o){var u=Um(n,o);return cf(u)?u:t}function Ib(n){var o=ke.call(n,yn),u=n[yn];try{n[yn]=t;var f=!0}catch{}var h=go.call(n);return f&&(o?n[yn]=u:delete n[yn]),h}var Vi=Ei?function(n){return n==null?[]:(n=Ue(n),Yr(Ei(n),function(o){return Yl.call(n,o)}))}:du,Uf=Ei?function(n){for(var o=[];n;)Vr(o,Vi(n)),n=yo(n);return o}:du,_t=Rt;(Si&&_t(new Si(new ArrayBuffer(1)))!=Gr||ma&&_t(new ma)!=qe||wi&&_t(wi.resolve())!=ln||Ln&&_t(new Ln)!=Ct||ya&&_t(new ya)!=xr)&&(_t=function(n){var o=Rt(n),u=o==Vt?n.constructor:t,f=u?Tn(u):"";if(f)switch(f){case hy:return Gr;case gy:return qe;case vy:return ln;case my:return Ct;case yy:return xr}return o});function Fb(n,o,u){for(var f=-1,h=u.length;++f<h;){var y=u[f],S=y.size;switch(y.type){case"drop":n+=S;break;case"dropRight":o-=S;break;case"take":o=bt(o,n+S);break;case"takeRight":n=lt(n,o-S);break}}return{start:n,end:o}}function $b(n){var o=n.match(Le);return o?o[1].split(xe):[]}function Hf(n,o,u){o=Qr(o,n);for(var f=-1,h=o.length,y=!1;++f<h;){var S=_r(o[f]);if(!(y=n!=null&&u(n,S)))break;n=n[S]}return y||++f!=h?y:(h=n==null?0:n.length,!!h&&Go(h)&&Dr(S,h)&&(ve(n)||xn(n)))}function Mb(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&ke.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function qf(n){return typeof n.constructor=="function"&&!Ra(n)?jn(yo(n)):{}}function Nb(n,o,u){var f=n.constructor;switch(o){case pn:return Wi(n);case ue:case he:return new f(+n);case Gr:return bb(n,u);case la:case fa:case da:case pa:case hn:case Pn:case mr:case gn:case vn:return Cf(n,u);case qe:return new f;case yt:case fn:return new f(n);case ir:return _b(n);case Ct:return new f;case dn:return Eb(n)}}function Lb(n,o){var u=o.length;if(!u)return n;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),n.replace(Ne,`{
|
|
15
|
+
*/vs.exports;(function(e,r){(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,g="__lodash_placeholder__",m=1,b=2,E=4,x=1,C=2,I=1,P=2,j=4,M=8,k=16,O=32,Y=64,H=128,z=256,te=512,We=30,Te="...",it=800,X=16,Pe=1,ut=2,et=3,He=1/0,nt=9007199254740991,Yt=17976931348623157e292,W=0/0,G=4294967295,de=G-1,le=G>>>1,se=[["ary",H],["bind",I],["bindKey",P],["curry",M],["curryRight",k],["flip",te],["partial",O],["partialRight",Y],["rearg",z]],fe="[object Arguments]",ne="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",he="[object Date]",ge="[object DOMException]",K="[object Error]",F="[object Function]",Ye="[object GeneratorFunction]",qe="[object Map]",yt="[object Number]",Ka="[object Null]",Vt="[object Object]",ln="[object Promise]",Ks="[object Proxy]",ir="[object RegExp]",Ct="[object Set]",fn="[object String]",dn="[object Symbol]",Ja="[object Undefined]",xr="[object WeakMap]",Js="[object WeakSet]",pn="[object ArrayBuffer]",Gr="[object DataView]",ua="[object Float32Array]",ca="[object Float64Array]",la="[object Int8Array]",fa="[object Int16Array]",hn="[object Int32Array]",Pn="[object Uint8Array]",mr="[object Uint8ClampedArray]",gn="[object Uint16Array]",vn="[object Uint32Array]",Xa=/\b__p \+= '';/g,Xs=/\b(__p \+=) '' \+/g,Za=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qa=/&(?:amp|lt|gt|quot|#39);/g,da=/[&<>"']/g,eo=RegExp(Qa.source),Zs=RegExp(da.source),Qs=/<%-([\s\S]+?)%>/g,to=/<%([\s\S]+?)%>/g,ro=/<%=([\s\S]+?)%>/g,ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ti=/^\w*$/,ri=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,U=RegExp(w.source),J=/^\s+/,ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,xe=/,? & /,Ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,tt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kt=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,no=/^0b[01]+$/i,ur=/^\[object .+?Constructor\]$/,Gv=/^0o[0-7]+$/i,zv=/^(?:0|[1-9]\d*)$/,Yv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ao=/($^)/,Vv=/['\n\r\u2028\u2029\\]/g,oo="\\ud800-\\udfff",Kv="\\u0300-\\u036f",Jv="\\ufe20-\\ufe2f",Xv="\\u20d0-\\u20ff",sl=Kv+Jv+Xv,il="\\u2700-\\u27bf",ul="a-z\\xdf-\\xf6\\xf8-\\xff",Zv="\\xac\\xb1\\xd7\\xf7",Qv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",em="\\u2000-\\u206f",tm=" \\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+Qv+em+tm,ni="['’]",rm="["+oo+"]",dl="["+fl+"]",so="["+sl+"]",pl="\\d+",nm="["+il+"]",hl="["+ul+"]",gl="[^"+oo+fl+pl+il+ul+cl+"]",ai="\\ud83c[\\udffb-\\udfff]",am="(?:"+so+"|"+ai+")",vl="[^"+oo+"]",oi="(?:\\ud83c[\\udde6-\\uddff]){2}",si="[\\ud800-\\udbff][\\udc00-\\udfff]",Dn="["+cl+"]",ml="\\u200d",yl="(?:"+hl+"|"+gl+")",om="(?:"+Dn+"|"+gl+")",bl="(?:"+ni+"(?:d|ll|m|re|s|t|ve))?",_l="(?:"+ni+"(?:D|LL|M|RE|S|T|VE))?",El=am+"?",Sl="["+ll+"]?",sm="(?:"+ml+"(?:"+[vl,oi,si].join("|")+")"+Sl+El+")*",im="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",um="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wl=Sl+El+sm,cm="(?:"+[nm,oi,si].join("|")+")"+wl,lm="(?:"+[vl+so+"?",so,oi,si,rm].join("|")+")",fm=RegExp(ni,"g"),dm=RegExp(so,"g"),ii=RegExp(ai+"(?="+ai+")|"+lm+wl,"g"),pm=RegExp([Dn+"?"+hl+"+"+bl+"(?="+[dl,Dn,"$"].join("|")+")",om+"+"+_l+"(?="+[dl,Dn+yl,"$"].join("|")+")",Dn+"?"+yl+"+"+bl,Dn+"+"+_l,um,im,pl,cm].join("|"),"g"),hm=RegExp("["+ml+oo+sl+ll+"]"),gm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vm=["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"],mm=-1,Ve={};Ve[ua]=Ve[ca]=Ve[la]=Ve[fa]=Ve[hn]=Ve[Pn]=Ve[mr]=Ve[gn]=Ve[vn]=!0,Ve[fe]=Ve[ne]=Ve[pn]=Ve[ue]=Ve[Gr]=Ve[he]=Ve[K]=Ve[F]=Ve[qe]=Ve[yt]=Ve[Vt]=Ve[ir]=Ve[Ct]=Ve[fn]=Ve[xr]=!1;var Ge={};Ge[fe]=Ge[ne]=Ge[pn]=Ge[Gr]=Ge[ue]=Ge[he]=Ge[ua]=Ge[ca]=Ge[la]=Ge[fa]=Ge[hn]=Ge[qe]=Ge[yt]=Ge[Vt]=Ge[ir]=Ge[Ct]=Ge[fn]=Ge[dn]=Ge[Pn]=Ge[mr]=Ge[gn]=Ge[vn]=!0,Ge[K]=Ge[F]=Ge[xr]=!1;var ym={À:"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"},bm={"&":"&","<":"<",">":">",'"':""","'":"'"},_m={"&":"&","<":"<",">":">",""":'"',"'":"'"},Em={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sm=parseFloat,wm=parseInt,Tl=typeof Nr=="object"&&Nr&&Nr.Object===Object&&Nr,Tm=typeof self=="object"&&self&&self.Object===Object&&self,gt=Tl||Tm||Function("return this")(),ui=r&&!r.nodeType&&r,mn=ui&&!0&&e&&!e.nodeType&&e,xl=mn&&mn.exports===ui,ci=xl&&Tl.process,Jt=function(){try{var R=mn&&mn.require&&mn.require("util").types;return R||ci&&ci.binding&&ci.binding("util")}catch{}}(),Cl=Jt&&Jt.isArrayBuffer,Rl=Jt&&Jt.isDate,Ol=Jt&&Jt.isMap,Al=Jt&&Jt.isRegExp,Pl=Jt&&Jt.isSet,Dl=Jt&&Jt.isTypedArray;function jt(R,$,D){switch(D.length){case 0:return R.call($);case 1:return R.call($,D[0]);case 2:return R.call($,D[0],D[1]);case 3:return R.call($,D[0],D[1],D[2])}return R.apply($,D)}function xm(R,$,D,Z){for(var pe=-1,Oe=R==null?0:R.length;++pe<Oe;){var ct=R[pe];$(Z,ct,D(ct),R)}return Z}function Xt(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z&&$(R[D],D,R)!==!1;);return R}function Cm(R,$){for(var D=R==null?0:R.length;D--&&$(R[D],D,R)!==!1;);return R}function Il(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if(!$(R[D],D,R))return!1;return!0}function Yr(R,$){for(var D=-1,Z=R==null?0:R.length,pe=0,Oe=[];++D<Z;){var ct=R[D];$(ct,D,R)&&(Oe[pe++]=ct)}return Oe}function io(R,$){var D=R==null?0:R.length;return!!D&&In(R,$,0)>-1}function li(R,$,D){for(var Z=-1,pe=R==null?0:R.length;++Z<pe;)if(D($,R[Z]))return!0;return!1}function Je(R,$){for(var D=-1,Z=R==null?0:R.length,pe=Array(Z);++D<Z;)pe[D]=$(R[D],D,R);return pe}function Vr(R,$){for(var D=-1,Z=$.length,pe=R.length;++D<Z;)R[pe+D]=$[D];return R}function fi(R,$,D,Z){var pe=-1,Oe=R==null?0:R.length;for(Z&&Oe&&(D=R[++pe]);++pe<Oe;)D=$(D,R[pe],pe,R);return D}function Rm(R,$,D,Z){var pe=R==null?0:R.length;for(Z&&pe&&(D=R[--pe]);pe--;)D=$(D,R[pe],pe,R);return D}function di(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if($(R[D],D,R))return!0;return!1}var Om=pi("length");function Am(R){return R.split("")}function Pm(R){return R.match(Ee)||[]}function Fl(R,$,D){var Z;return D(R,function(pe,Oe,ct){if($(pe,Oe,ct))return Z=Oe,!1}),Z}function uo(R,$,D,Z){for(var pe=R.length,Oe=D+(Z?1:-1);Z?Oe--:++Oe<pe;)if($(R[Oe],Oe,R))return Oe;return-1}function In(R,$,D){return $===$?Um(R,$,D):uo(R,$l,D)}function Dm(R,$,D,Z){for(var pe=D-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function $l(R){return R!==R}function Ml(R,$){var D=R==null?0:R.length;return D?gi(R,$)/D:W}function pi(R){return function($){return $==null?t:$[R]}}function hi(R){return function($){return R==null?t:R[$]}}function Nl(R,$,D,Z,pe){return pe(R,function(Oe,ct,Ue){D=Z?(Z=!1,Oe):$(D,Oe,ct,Ue)}),D}function Im(R,$){var D=R.length;for(R.sort($);D--;)R[D]=R[D].value;return R}function gi(R,$){for(var D,Z=-1,pe=R.length;++Z<pe;){var Oe=$(R[Z]);Oe!==t&&(D=D===t?Oe:D+Oe)}return D}function vi(R,$){for(var D=-1,Z=Array(R);++D<R;)Z[D]=$(D);return Z}function Fm(R,$){return Je($,function(D){return[D,R[D]]})}function Ll(R){return R&&R.slice(0,Wl(R)+1).replace(J,"")}function Bt(R){return function($){return R($)}}function mi(R,$){return Je($,function(D){return R[D]})}function pa(R,$){return R.has($)}function kl(R,$){for(var D=-1,Z=R.length;++D<Z&&In($,R[D],0)>-1;);return D}function jl(R,$){for(var D=R.length;D--&&In($,R[D],0)>-1;);return D}function $m(R,$){for(var D=R.length,Z=0;D--;)R[D]===$&&++Z;return Z}var Mm=hi(ym),Nm=hi(bm);function Lm(R){return"\\"+Em[R]}function km(R,$){return R==null?t:R[$]}function Fn(R){return hm.test(R)}function jm(R){return gm.test(R)}function Bm(R){for(var $,D=[];!($=R.next()).done;)D.push($.value);return D}function yi(R){var $=-1,D=Array(R.size);return R.forEach(function(Z,pe){D[++$]=[pe,Z]}),D}function Bl(R,$){return function(D){return R($(D))}}function Kr(R,$){for(var D=-1,Z=R.length,pe=0,Oe=[];++D<Z;){var ct=R[D];(ct===$||ct===g)&&(R[D]=g,Oe[pe++]=D)}return Oe}function co(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=Z}),D}function Wm(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=[Z,Z]}),D}function Um(R,$,D){for(var Z=D-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Hm(R,$,D){for(var Z=D+1;Z--;)if(R[Z]===$)return Z;return Z}function $n(R){return Fn(R)?Gm(R):Om(R)}function cr(R){return Fn(R)?zm(R):Am(R)}function Wl(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var qm=hi(_m);function Gm(R){for(var $=ii.lastIndex=0;ii.test(R);)++$;return $}function zm(R){return R.match(ii)||[]}function Ym(R){return R.match(pm)||[]}var Vm=function R($){$=$==null?gt:Mn.defaults(gt.Object(),$,Mn.pick(gt,vm));var D=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ct=$.Math,Ue=$.Object,bi=$.RegExp,Km=$.String,Zt=$.TypeError,lo=D.prototype,Jm=Oe.prototype,Nn=Ue.prototype,fo=$["__core-js_shared__"],po=Jm.toString,ke=Nn.hasOwnProperty,Xm=0,Ul=function(){var n=/[^.]+$/.exec(fo&&fo.keys&&fo.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),ho=Nn.toString,Zm=po.call(Ue),Qm=gt._,ey=bi("^"+po.call(ke).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),go=xl?$.Buffer:t,Jr=$.Symbol,vo=$.Uint8Array,Hl=go?go.allocUnsafe:t,mo=Bl(Ue.getPrototypeOf,Ue),ql=Ue.create,Gl=Nn.propertyIsEnumerable,yo=lo.splice,zl=Jr?Jr.isConcatSpreadable:t,ha=Jr?Jr.iterator:t,yn=Jr?Jr.toStringTag:t,bo=function(){try{var n=wn(Ue,"defineProperty");return n({},"",{}),n}catch{}}(),ty=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,ry=Z&&Z.now!==gt.Date.now&&Z.now,ny=$.setTimeout!==gt.setTimeout&&$.setTimeout,_o=ct.ceil,Eo=ct.floor,_i=Ue.getOwnPropertySymbols,ay=go?go.isBuffer:t,Yl=$.isFinite,oy=lo.join,sy=Bl(Ue.keys,Ue),lt=ct.max,bt=ct.min,iy=Z.now,uy=$.parseInt,Vl=ct.random,cy=lo.reverse,Ei=wn($,"DataView"),ga=wn($,"Map"),Si=wn($,"Promise"),Ln=wn($,"Set"),va=wn($,"WeakMap"),ma=wn(Ue,"create"),So=va&&new va,kn={},ly=Tn(Ei),fy=Tn(ga),dy=Tn(Si),py=Tn(Ln),hy=Tn(va),wo=Jr?Jr.prototype:t,ya=wo?wo.valueOf:t,Kl=wo?wo.toString:t;function v(n){if(rt(n)&&!ve(n)&&!(n instanceof we)){if(n instanceof Qt)return n;if(ke.call(n,"__wrapped__"))return Xf(n)}return new Qt(n)}var jn=function(){function n(){}return function(o){if(!Qe(o))return{};if(ql)return ql(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function To(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:Qs,evaluate:to,interpolate:ro,variable:"",imports:{_:v}},v.prototype=To.prototype,v.prototype.constructor=v,Qt.prototype=jn(To.prototype),Qt.prototype.constructor=Qt;function we(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function gy(){var n=new we(this.__wrapped__);return n.__actions__=Ft(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ft(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ft(this.__views__),n}function vy(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function my(){var n=this.__wrapped__.value(),o=this.__dir__,u=ve(n),f=o<0,h=u?n.length:0,y=A0(0,h,this.__views__),S=y.start,T=y.end,A=T-S,N=f?T:S-1,L=this.__iteratees__,B=L.length,V=0,ee=bt(A,this.__takeCount__);if(!u||!f&&h==A&&ee==A)return _f(n,this.__actions__);var ae=[];e:for(;A--&&V<ee;){N+=o;for(var be=-1,oe=n[N];++be<B;){var Se=L[be],Ce=Se.iteratee,Ht=Se.type,At=Ce(oe);if(Ht==ut)oe=At;else if(!At){if(Ht==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=jn(To.prototype),we.prototype.constructor=we;function bn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function yy(){this.__data__=ma?ma(null):{},this.size=0}function by(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function _y(n){var o=this.__data__;if(ma){var u=o[n];return u===d?t:u}return ke.call(o,n)?o[n]:t}function Ey(n){var o=this.__data__;return ma?o[n]!==t:ke.call(o,n)}function Sy(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ma&&o===t?d:o,this}bn.prototype.clear=yy,bn.prototype.delete=by,bn.prototype.get=_y,bn.prototype.has=Ey,bn.prototype.set=Sy;function Cr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function wy(){this.__data__=[],this.size=0}function Ty(n){var o=this.__data__,u=xo(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():yo.call(o,u,1),--this.size,!0}function xy(n){var o=this.__data__,u=xo(o,n);return u<0?t:o[u][1]}function Cy(n){return xo(this.__data__,n)>-1}function Ry(n,o){var u=this.__data__,f=xo(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}Cr.prototype.clear=wy,Cr.prototype.delete=Ty,Cr.prototype.get=xy,Cr.prototype.has=Cy,Cr.prototype.set=Ry;function Rr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Oy(){this.size=0,this.__data__={hash:new bn,map:new(ga||Cr),string:new bn}}function Ay(n){var o=Lo(this,n).delete(n);return this.size-=o?1:0,o}function Py(n){return Lo(this,n).get(n)}function Dy(n){return Lo(this,n).has(n)}function Iy(n,o){var u=Lo(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}Rr.prototype.clear=Oy,Rr.prototype.delete=Ay,Rr.prototype.get=Py,Rr.prototype.has=Dy,Rr.prototype.set=Iy;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Rr;++o<u;)this.add(n[o])}function Fy(n){return this.__data__.set(n,d),this}function $y(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Fy,_n.prototype.has=$y;function lr(n){var o=this.__data__=new Cr(n);this.size=o.size}function My(){this.__data__=new Cr,this.size=0}function Ny(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Ly(n){return this.__data__.get(n)}function ky(n){return this.__data__.has(n)}function jy(n,o){var u=this.__data__;if(u instanceof Cr){var f=u.__data__;if(!ga||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new Rr(f)}return u.set(n,o),this.size=u.size,this}lr.prototype.clear=My,lr.prototype.delete=Ny,lr.prototype.get=Ly,lr.prototype.has=ky,lr.prototype.set=jy;function Jl(n,o){var u=ve(n),f=!u&&xn(n),h=!u&&!f&&tn(n),y=!u&&!f&&!h&&Hn(n),S=u||f||h||y,T=S?vi(n.length,Km):[],A=T.length;for(var N in n)(o||ke.call(n,N))&&!(S&&(N=="length"||h&&(N=="offset"||N=="parent")||y&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Dr(N,A)))&&T.push(N);return T}function Xl(n){var o=n.length;return o?n[Fi(0,o-1)]:t}function By(n,o){return ko(Ft(n),En(o,0,n.length))}function Wy(n){return ko(Ft(n))}function wi(n,o,u){(u!==t&&!fr(n[o],u)||u===t&&!(o in n))&&Or(n,o,u)}function ba(n,o,u){var f=n[o];(!(ke.call(n,o)&&fr(f,u))||u===t&&!(o in n))&&Or(n,o,u)}function xo(n,o){for(var u=n.length;u--;)if(fr(n[u][0],o))return u;return-1}function Uy(n,o,u,f){return Xr(n,function(h,y,S){o(f,h,u(h),S)}),f}function Zl(n,o){return n&&br(o,pt(o),n)}function Hy(n,o){return n&&br(o,Mt(o),n)}function Or(n,o,u){o=="__proto__"&&bo?bo(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Ti(n,o){for(var u=-1,f=o.length,h=D(f),y=n==null;++u<f;)h[u]=y?t:au(n,o[u]);return h}function En(n,o,u){return n===n&&(u!==t&&(n=n<=u?n:u),o!==t&&(n=n>=o?n:o)),n}function er(n,o,u,f,h,y){var S,T=o&m,A=o&b,N=o&E;if(u&&(S=h?u(n,f,h,y):u(n)),S!==t)return S;if(!Qe(n))return n;var L=ve(n);if(L){if(S=D0(n),!T)return Ft(n,S)}else{var B=_t(n),V=B==F||B==Ye;if(tn(n))return wf(n,T);if(B==Vt||B==fe||V&&!h){if(S=A||V?{}:Uf(n),!T)return A?_0(n,Hy(S,n)):b0(n,Zl(S,n))}else{if(!Ge[B])return h?n:{};S=I0(n,B,T)}}y||(y=new lr);var ee=y.get(n);if(ee)return ee;y.set(n,S),md(n)?n.forEach(function(oe){S.add(er(oe,o,u,oe,n,y))}):gd(n)&&n.forEach(function(oe,Se){S.set(Se,er(oe,o,u,Se,n,y))});var ae=N?A?qi:Hi:A?Mt:pt,be=L?t:ae(n);return Xt(be||n,function(oe,Se){be&&(Se=oe,oe=n[Se]),ba(S,Se,er(oe,o,u,Se,n,y))}),S}function qy(n){var o=pt(n);return function(u){return Ql(u,n,o)}}function Ql(n,o,u){var f=u.length;if(n==null)return!f;for(n=Ue(n);f--;){var h=u[f],y=o[h],S=n[h];if(S===t&&!(h in n)||!y(S))return!1}return!0}function ef(n,o,u){if(typeof n!="function")throw new Zt(c);return Ca(function(){n.apply(t,u)},o)}function _a(n,o,u,f){var h=-1,y=io,S=!0,T=n.length,A=[],N=o.length;if(!T)return A;u&&(o=Je(o,Bt(u))),f?(y=li,S=!1):o.length>=s&&(y=pa,S=!1,o=new _n(o));e:for(;++h<T;){var L=n[h],B=u==null?L:u(L);if(L=f||L!==0?L:0,S&&B===B){for(var V=N;V--;)if(o[V]===B)continue e;A.push(L)}else y(o,B,f)||A.push(L)}return A}var Xr=Of(yr),tf=Of(Ci,!0);function Gy(n,o){var u=!0;return Xr(n,function(f,h,y){return u=!!o(f,h,y),u}),u}function Co(n,o,u){for(var f=-1,h=n.length;++f<h;){var y=n[f],S=o(y);if(S!=null&&(T===t?S===S&&!Ut(S):u(S,T)))var T=S,A=y}return A}function zy(n,o,u,f){var h=n.length;for(u=me(u),u<0&&(u=-u>h?0:h+u),f=f===t||f>h?h:me(f),f<0&&(f+=h),f=u>f?0:bd(f);u<f;)n[u++]=o;return n}function rf(n,o){var u=[];return Xr(n,function(f,h,y){o(f,h,y)&&u.push(f)}),u}function vt(n,o,u,f,h){var y=-1,S=n.length;for(u||(u=$0),h||(h=[]);++y<S;){var T=n[y];o>0&&u(T)?o>1?vt(T,o-1,u,f,h):Vr(h,T):f||(h[h.length]=T)}return h}var xi=Af(),nf=Af(!0);function yr(n,o){return n&&xi(n,o,pt)}function Ci(n,o){return n&&nf(n,o,pt)}function Ro(n,o){return Yr(o,function(u){return Ir(n[u])})}function Sn(n,o){o=Qr(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[_r(o[u++])];return u&&u==f?n:t}function af(n,o,u){var f=o(n);return ve(n)?f:Vr(f,u(n))}function Rt(n){return n==null?n===t?Ja:Ka:yn&&yn in Ue(n)?O0(n):W0(n)}function Ri(n,o){return n>o}function Yy(n,o){return n!=null&&ke.call(n,o)}function Vy(n,o){return n!=null&&o in Ue(n)}function Ky(n,o,u){return n>=bt(o,u)&&n<lt(o,u)}function Oi(n,o,u){for(var f=u?li:io,h=n[0].length,y=n.length,S=y,T=D(y),A=1/0,N=[];S--;){var L=n[S];S&&o&&(L=Je(L,Bt(o))),A=bt(L.length,A),T[S]=!u&&(o||h>=120&&L.length>=120)?new _n(S&&L):t}L=n[0];var B=-1,V=T[0];e:for(;++B<h&&N.length<A;){var ee=L[B],ae=o?o(ee):ee;if(ee=u||ee!==0?ee:0,!(V?pa(V,ae):f(N,ae,u))){for(S=y;--S;){var be=T[S];if(!(be?pa(be,ae):f(n[S],ae,u)))continue e}V&&V.push(ae),N.push(ee)}}return N}function Jy(n,o,u,f){return yr(n,function(h,y,S){o(f,u(h),y,S)}),f}function Ea(n,o,u){o=Qr(o,n),n=zf(n,o);var f=n==null?n:n[_r(rr(o))];return f==null?t:jt(f,n,u)}function of(n){return rt(n)&&Rt(n)==fe}function Xy(n){return rt(n)&&Rt(n)==pn}function Zy(n){return rt(n)&&Rt(n)==he}function Sa(n,o,u,f,h){return n===o?!0:n==null||o==null||!rt(n)&&!rt(o)?n!==n&&o!==o:Qy(n,o,u,f,Sa,h)}function Qy(n,o,u,f,h,y){var S=ve(n),T=ve(o),A=S?ne:_t(n),N=T?ne:_t(o);A=A==fe?Vt:A,N=N==fe?Vt:N;var L=A==Vt,B=N==Vt,V=A==N;if(V&&tn(n)){if(!tn(o))return!1;S=!0,L=!1}if(V&&!L)return y||(y=new lr),S||Hn(n)?jf(n,o,u,f,h,y):C0(n,o,A,u,f,h,y);if(!(u&x)){var ee=L&&ke.call(n,"__wrapped__"),ae=B&&ke.call(o,"__wrapped__");if(ee||ae){var be=ee?n.value():n,oe=ae?o.value():o;return y||(y=new lr),h(be,oe,u,f,y)}}return V?(y||(y=new lr),R0(n,o,u,f,h,y)):!1}function e0(n){return rt(n)&&_t(n)==qe}function Ai(n,o,u,f){var h=u.length,y=h,S=!f;if(n==null)return!y;for(n=Ue(n);h--;){var T=u[h];if(S&&T[2]?T[1]!==n[T[0]]:!(T[0]in n))return!1}for(;++h<y;){T=u[h];var A=T[0],N=n[A],L=T[1];if(S&&T[2]){if(N===t&&!(A in n))return!1}else{var B=new lr;if(f)var V=f(N,L,A,n,o,B);if(!(V===t?Sa(L,N,x|C,f,B):V))return!1}}return!0}function sf(n){if(!Qe(n)||N0(n))return!1;var o=Ir(n)?ey:ur;return o.test(Tn(n))}function t0(n){return rt(n)&&Rt(n)==ir}function r0(n){return rt(n)&&_t(n)==Ct}function n0(n){return rt(n)&&qo(n.length)&&!!Ve[Rt(n)]}function uf(n){return typeof n=="function"?n:n==null?Nt:typeof n=="object"?ve(n)?ff(n[0],n[1]):lf(n):Pd(n)}function Pi(n){if(!xa(n))return sy(n);var o=[];for(var u in Ue(n))ke.call(n,u)&&u!="constructor"&&o.push(u);return o}function a0(n){if(!Qe(n))return B0(n);var o=xa(n),u=[];for(var f in n)f=="constructor"&&(o||!ke.call(n,f))||u.push(f);return u}function Di(n,o){return n<o}function cf(n,o){var u=-1,f=$t(n)?D(n.length):[];return Xr(n,function(h,y,S){f[++u]=o(h,y,S)}),f}function lf(n){var o=zi(n);return o.length==1&&o[0][2]?qf(o[0][0],o[0][1]):function(u){return u===n||Ai(u,n,o)}}function ff(n,o){return Vi(n)&&Hf(o)?qf(_r(n),o):function(u){var f=au(u,n);return f===t&&f===o?ou(u,n):Sa(o,f,x|C)}}function Oo(n,o,u,f,h){n!==o&&xi(o,function(y,S){if(h||(h=new lr),Qe(y))o0(n,o,S,u,Oo,f,h);else{var T=f?f(Ji(n,S),y,S+"",n,o,h):t;T===t&&(T=y),wi(n,S,T)}},Mt)}function o0(n,o,u,f,h,y,S){var T=Ji(n,u),A=Ji(o,u),N=S.get(A);if(N){wi(n,u,N);return}var L=y?y(T,A,u+"",n,o,S):t,B=L===t;if(B){var V=ve(A),ee=!V&&tn(A),ae=!V&&!ee&&Hn(A);L=A,V||ee||ae?ve(T)?L=T:at(T)?L=Ft(T):ee?(B=!1,L=wf(A,!0)):ae?(B=!1,L=Tf(A,!0)):L=[]:Ra(A)||xn(A)?(L=T,xn(T)?L=_d(T):(!Qe(T)||Ir(T))&&(L=Uf(A))):B=!1}B&&(S.set(A,L),h(L,A,f,y,S),S.delete(A)),wi(n,u,L)}function df(n,o){var u=n.length;if(u)return o+=o<0?u:0,Dr(o,u)?n[o]:t}function pf(n,o,u){o.length?o=Je(o,function(y){return ve(y)?function(S){return Sn(S,y.length===1?y[0]:y)}:y}):o=[Nt];var f=-1;o=Je(o,Bt(re()));var h=cf(n,function(y,S,T){var A=Je(o,function(N){return N(y)});return{criteria:A,index:++f,value:y}});return Im(h,function(y,S){return y0(y,S,u)})}function s0(n,o){return hf(n,o,function(u,f){return ou(n,f)})}function hf(n,o,u){for(var f=-1,h=o.length,y={};++f<h;){var S=o[f],T=Sn(n,S);u(T,S)&&wa(y,Qr(S,n),T)}return y}function i0(n){return function(o){return Sn(o,n)}}function Ii(n,o,u,f){var h=f?Dm:In,y=-1,S=o.length,T=n;for(n===o&&(o=Ft(o)),u&&(T=Je(n,Bt(u)));++y<S;)for(var A=0,N=o[y],L=u?u(N):N;(A=h(T,L,A,f))>-1;)T!==n&&yo.call(T,A,1),yo.call(n,A,1);return n}function gf(n,o){for(var u=n?o.length:0,f=u-1;u--;){var h=o[u];if(u==f||h!==y){var y=h;Dr(h)?yo.call(n,h,1):Ni(n,h)}}return n}function Fi(n,o){return n+Eo(Vl()*(o-n+1))}function u0(n,o,u,f){for(var h=-1,y=lt(_o((o-n)/(u||1)),0),S=D(y);y--;)S[f?y:++h]=n,n+=u;return S}function $i(n,o){var u="";if(!n||o<1||o>nt)return u;do o%2&&(u+=n),o=Eo(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Xi(Gf(n,o,Nt),n+"")}function c0(n){return Xl(qn(n))}function l0(n,o){var u=qn(n);return ko(u,En(o,0,u.length))}function wa(n,o,u,f){if(!Qe(n))return n;o=Qr(o,n);for(var h=-1,y=o.length,S=y-1,T=n;T!=null&&++h<y;){var A=_r(o[h]),N=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return n;if(h!=S){var L=T[A];N=f?f(L,A,T):t,N===t&&(N=Qe(L)?L:Dr(o[h+1])?[]:{})}ba(T,A,N),T=T[A]}return n}var vf=So?function(n,o){return So.set(n,o),n}:Nt,f0=bo?function(n,o){return bo(n,"toString",{configurable:!0,enumerable:!1,value:iu(o),writable:!0})}:Nt;function d0(n){return ko(qn(n))}function tr(n,o,u){var f=-1,h=n.length;o<0&&(o=-o>h?0:h+o),u=u>h?h:u,u<0&&(u+=h),h=o>u?0:u-o>>>0,o>>>=0;for(var y=D(h);++f<h;)y[f]=n[f+o];return y}function p0(n,o){var u;return Xr(n,function(f,h,y){return u=o(f,h,y),!u}),!!u}function Ao(n,o,u){var f=0,h=n==null?f:n.length;if(typeof o=="number"&&o===o&&h<=le){for(;f<h;){var y=f+h>>>1,S=n[y];S!==null&&!Ut(S)&&(u?S<=o:S<o)?f=y+1:h=y}return h}return Mi(n,o,Nt,u)}function Mi(n,o,u,f){var h=0,y=n==null?0:n.length;if(y===0)return 0;o=u(o);for(var S=o!==o,T=o===null,A=Ut(o),N=o===t;h<y;){var L=Eo((h+y)/2),B=u(n[L]),V=B!==t,ee=B===null,ae=B===B,be=Ut(B);if(S)var oe=f||ae;else N?oe=ae&&(f||V):T?oe=ae&&V&&(f||!ee):A?oe=ae&&V&&!ee&&(f||!be):ee||be?oe=!1:oe=f?B<=o:B<o;oe?h=L+1:y=L}return bt(y,de)}function mf(n,o){for(var u=-1,f=n.length,h=0,y=[];++u<f;){var S=n[u],T=o?o(S):S;if(!u||!fr(T,A)){var A=T;y[h++]=S===0?0:S}}return y}function yf(n){return typeof n=="number"?n:Ut(n)?W:+n}function Wt(n){if(typeof n=="string")return n;if(ve(n))return Je(n,Wt)+"";if(Ut(n))return Kl?Kl.call(n):"";var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Zr(n,o,u){var f=-1,h=io,y=n.length,S=!0,T=[],A=T;if(u)S=!1,h=li;else if(y>=s){var N=o?null:T0(n);if(N)return co(N);S=!1,h=pa,A=new _n}else A=o?[]:T;e:for(;++f<y;){var L=n[f],B=o?o(L):L;if(L=u||L!==0?L:0,S&&B===B){for(var V=A.length;V--;)if(A[V]===B)continue e;o&&A.push(B),T.push(L)}else h(A,B,u)||(A!==T&&A.push(B),T.push(L))}return T}function Ni(n,o){return o=Qr(o,n),n=zf(n,o),n==null||delete n[_r(rr(o))]}function bf(n,o,u,f){return wa(n,o,u(Sn(n,o)),f)}function Po(n,o,u,f){for(var h=n.length,y=f?h:-1;(f?y--:++y<h)&&o(n[y],y,n););return u?tr(n,f?0:y,f?y+1:h):tr(n,f?y+1:0,f?h:y)}function _f(n,o){var u=n;return u instanceof we&&(u=u.value()),fi(o,function(f,h){return h.func.apply(h.thisArg,Vr([f],h.args))},u)}function Li(n,o,u){var f=n.length;if(f<2)return f?Zr(n[0]):[];for(var h=-1,y=D(f);++h<f;)for(var S=n[h],T=-1;++T<f;)T!=h&&(y[h]=_a(y[h]||S,n[T],o,u));return Zr(vt(y,1),o,u)}function Ef(n,o,u){for(var f=-1,h=n.length,y=o.length,S={};++f<h;){var T=f<y?o[f]:t;u(S,n[f],T)}return S}function ki(n){return at(n)?n:[]}function ji(n){return typeof n=="function"?n:Nt}function Qr(n,o){return ve(n)?n:Vi(n,o)?[n]:Jf(De(n))}var h0=_e;function en(n,o,u){var f=n.length;return u=u===t?f:u,!o&&u>=f?n:tr(n,o,u)}var Sf=ty||function(n){return gt.clearTimeout(n)};function wf(n,o){if(o)return n.slice();var u=n.length,f=Hl?Hl(u):new n.constructor(u);return n.copy(f),f}function Bi(n){var o=new n.constructor(n.byteLength);return new vo(o).set(new vo(n)),o}function g0(n,o){var u=o?Bi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function v0(n){var o=new n.constructor(n.source,Kt.exec(n));return o.lastIndex=n.lastIndex,o}function m0(n){return ya?Ue(ya.call(n)):{}}function Tf(n,o){var u=o?Bi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function xf(n,o){if(n!==o){var u=n!==t,f=n===null,h=n===n,y=Ut(n),S=o!==t,T=o===null,A=o===o,N=Ut(o);if(!T&&!N&&!y&&n>o||y&&S&&A&&!T&&!N||f&&S&&A||!u&&A||!h)return 1;if(!f&&!y&&!N&&n<o||N&&u&&h&&!f&&!y||T&&u&&h||!S&&h||!A)return-1}return 0}function y0(n,o,u){for(var f=-1,h=n.criteria,y=o.criteria,S=h.length,T=u.length;++f<S;){var A=xf(h[f],y[f]);if(A){if(f>=T)return A;var N=u[f];return A*(N=="desc"?-1:1)}}return n.index-o.index}function Cf(n,o,u,f){for(var h=-1,y=n.length,S=u.length,T=-1,A=o.length,N=lt(y-S,0),L=D(A+N),B=!f;++T<A;)L[T]=o[T];for(;++h<S;)(B||h<y)&&(L[u[h]]=n[h]);for(;N--;)L[T++]=n[h++];return L}function Rf(n,o,u,f){for(var h=-1,y=n.length,S=-1,T=u.length,A=-1,N=o.length,L=lt(y-T,0),B=D(L+N),V=!f;++h<L;)B[h]=n[h];for(var ee=h;++A<N;)B[ee+A]=o[A];for(;++S<T;)(V||h<y)&&(B[ee+u[S]]=n[h++]);return B}function Ft(n,o){var u=-1,f=n.length;for(o||(o=D(f));++u<f;)o[u]=n[u];return o}function br(n,o,u,f){var h=!u;u||(u={});for(var y=-1,S=o.length;++y<S;){var T=o[y],A=f?f(u[T],n[T],T,u,n):t;A===t&&(A=n[T]),h?Or(u,T,A):ba(u,T,A)}return u}function b0(n,o){return br(n,Yi(n),o)}function _0(n,o){return br(n,Bf(n),o)}function Do(n,o){return function(u,f){var h=ve(u)?xm:Uy,y=o?o():{};return h(u,n,re(f,2),y)}}function Bn(n){return _e(function(o,u){var f=-1,h=u.length,y=h>1?u[h-1]:t,S=h>2?u[2]:t;for(y=n.length>3&&typeof y=="function"?(h--,y):t,S&&Ot(u[0],u[1],S)&&(y=h<3?t:y,h=1),o=Ue(o);++f<h;){var T=u[f];T&&n(o,T,f,y)}return o})}function Of(n,o){return function(u,f){if(u==null)return u;if(!$t(u))return n(u,f);for(var h=u.length,y=o?h:-1,S=Ue(u);(o?y--:++y<h)&&f(S[y],y,S)!==!1;);return u}}function Af(n){return function(o,u,f){for(var h=-1,y=Ue(o),S=f(o),T=S.length;T--;){var A=S[n?T:++h];if(u(y[A],A,y)===!1)break}return o}}function E0(n,o,u){var f=o&I,h=Ta(n);function y(){var S=this&&this!==gt&&this instanceof y?h:n;return S.apply(f?u:this,arguments)}return y}function Pf(n){return function(o){o=De(o);var u=Fn(o)?cr(o):t,f=u?u[0]:o.charAt(0),h=u?en(u,1).join(""):o.slice(1);return f[n]()+h}}function Wn(n){return function(o){return fi(Od(Rd(o).replace(fm,"")),n,"")}}function Ta(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=jn(n.prototype),f=n.apply(u,o);return Qe(f)?f:u}}function S0(n,o,u){var f=Ta(n);function h(){for(var y=arguments.length,S=D(y),T=y,A=Un(h);T--;)S[T]=arguments[T];var N=y<3&&S[0]!==A&&S[y-1]!==A?[]:Kr(S,A);if(y-=N.length,y<u)return Mf(n,o,Io,h.placeholder,t,S,N,t,t,u-y);var L=this&&this!==gt&&this instanceof h?f:n;return jt(L,this,S)}return h}function Df(n){return function(o,u,f){var h=Ue(o);if(!$t(o)){var y=re(u,3);o=pt(o),u=function(T){return y(h[T],T,h)}}var S=n(o,u,f);return S>-1?h[y?o[S]:S]:t}}function If(n){return Pr(function(o){var u=o.length,f=u,h=Qt.prototype.thru;for(n&&o.reverse();f--;){var y=o[f];if(typeof y!="function")throw new Zt(c);if(h&&!S&&No(y)=="wrapper")var S=new Qt([],!0)}for(f=S?f:u;++f<u;){y=o[f];var T=No(y),A=T=="wrapper"?Gi(y):t;A&&Ki(A[0])&&A[1]==(H|M|O|z)&&!A[4].length&&A[9]==1?S=S[No(A[0])].apply(S,A[3]):S=y.length==1&&Ki(y)?S[T]():S.thru(y)}return function(){var N=arguments,L=N[0];if(S&&N.length==1&&ve(L))return S.plant(L).value();for(var B=0,V=u?o[B].apply(this,N):L;++B<u;)V=o[B].call(this,V);return V}})}function Io(n,o,u,f,h,y,S,T,A,N){var L=o&H,B=o&I,V=o&P,ee=o&(M|k),ae=o&te,be=V?t:Ta(n);function oe(){for(var Se=arguments.length,Ce=D(Se),Ht=Se;Ht--;)Ce[Ht]=arguments[Ht];if(ee)var At=Un(oe),qt=$m(Ce,At);if(f&&(Ce=Cf(Ce,f,h,ee)),y&&(Ce=Rf(Ce,y,S,ee)),Se-=qt,ee&&Se<N){var ot=Kr(Ce,At);return Mf(n,o,Io,oe.placeholder,u,Ce,ot,T,A,N-Se)}var dr=B?u:this,$r=V?dr[n]:n;return Se=Ce.length,T?Ce=U0(Ce,T):ae&&Se>1&&Ce.reverse(),L&&A<Se&&(Ce.length=A),this&&this!==gt&&this instanceof oe&&($r=be||Ta($r)),$r.apply(dr,Ce)}return oe}function Ff(n,o){return function(u,f){return Jy(u,n,o(f),{})}}function Fo(n,o){return function(u,f){var h;if(u===t&&f===t)return o;if(u!==t&&(h=u),f!==t){if(h===t)return f;typeof u=="string"||typeof f=="string"?(u=Wt(u),f=Wt(f)):(u=yf(u),f=yf(f)),h=n(u,f)}return h}}function Wi(n){return Pr(function(o){return o=Je(o,Bt(re())),_e(function(u){var f=this;return n(o,function(h){return jt(h,f,u)})})})}function $o(n,o){o=o===t?" ":Wt(o);var u=o.length;if(u<2)return u?$i(o,n):o;var f=$i(o,_o(n/$n(o)));return Fn(o)?en(cr(f),0,n).join(""):f.slice(0,n)}function w0(n,o,u,f){var h=o&I,y=Ta(n);function S(){for(var T=-1,A=arguments.length,N=-1,L=f.length,B=D(L+A),V=this&&this!==gt&&this instanceof S?y:n;++N<L;)B[N]=f[N];for(;A--;)B[N++]=arguments[++T];return jt(V,h?u:this,B)}return S}function $f(n){return function(o,u,f){return f&&typeof f!="number"&&Ot(o,u,f)&&(u=f=t),o=Fr(o),u===t?(u=o,o=0):u=Fr(u),f=f===t?o<u?1:-1:Fr(f),u0(o,u,f,n)}}function Mo(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=nr(o),u=nr(u)),n(o,u)}}function Mf(n,o,u,f,h,y,S,T,A,N){var L=o&M,B=L?S:t,V=L?t:S,ee=L?y:t,ae=L?t:y;o|=L?O:Y,o&=~(L?Y:O),o&j||(o&=~(I|P));var be=[n,o,h,ee,B,ae,V,T,A,N],oe=u.apply(t,be);return Ki(n)&&Yf(oe,be),oe.placeholder=f,Vf(oe,n,o)}function Ui(n){var o=ct[n];return function(u,f){if(u=nr(u),f=f==null?0:bt(me(f),292),f&&Yl(u)){var h=(De(u)+"e").split("e"),y=o(h[0]+"e"+(+h[1]+f));return h=(De(y)+"e").split("e"),+(h[0]+"e"+(+h[1]-f))}return o(u)}}var T0=Ln&&1/co(new Ln([,-0]))[1]==He?function(n){return new Ln(n)}:lu;function Nf(n){return function(o){var u=_t(o);return u==qe?yi(o):u==Ct?Wm(o):Fm(o,n(o))}}function Ar(n,o,u,f,h,y,S,T){var A=o&P;if(!A&&typeof n!="function")throw new Zt(c);var N=f?f.length:0;if(N||(o&=~(O|Y),f=h=t),S=S===t?S:lt(me(S),0),T=T===t?T:me(T),N-=h?h.length:0,o&Y){var L=f,B=h;f=h=t}var V=A?t:Gi(n),ee=[n,o,u,f,h,L,B,y,S,T];if(V&&j0(ee,V),n=ee[0],o=ee[1],u=ee[2],f=ee[3],h=ee[4],T=ee[9]=ee[9]===t?A?0:n.length:lt(ee[9]-N,0),!T&&o&(M|k)&&(o&=~(M|k)),!o||o==I)var ae=E0(n,o,u);else o==M||o==k?ae=S0(n,o,T):(o==O||o==(I|O))&&!h.length?ae=w0(n,o,u,f):ae=Io.apply(t,ee);var be=V?vf:Yf;return Vf(be(ae,ee),n,o)}function Lf(n,o,u,f){return n===t||fr(n,Nn[u])&&!ke.call(f,u)?o:n}function kf(n,o,u,f,h,y){return Qe(n)&&Qe(o)&&(y.set(o,n),Oo(n,o,t,kf,y),y.delete(o)),n}function x0(n){return Ra(n)?t:n}function jf(n,o,u,f,h,y){var S=u&x,T=n.length,A=o.length;if(T!=A&&!(S&&A>T))return!1;var N=y.get(n),L=y.get(o);if(N&&L)return N==o&&L==n;var B=-1,V=!0,ee=u&C?new _n:t;for(y.set(n,o),y.set(o,n);++B<T;){var ae=n[B],be=o[B];if(f)var oe=S?f(be,ae,B,o,n,y):f(ae,be,B,n,o,y);if(oe!==t){if(oe)continue;V=!1;break}if(ee){if(!di(o,function(Se,Ce){if(!pa(ee,Ce)&&(ae===Se||h(ae,Se,u,f,y)))return ee.push(Ce)})){V=!1;break}}else if(!(ae===be||h(ae,be,u,f,y))){V=!1;break}}return y.delete(n),y.delete(o),V}function C0(n,o,u,f,h,y,S){switch(u){case Gr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case pn:return!(n.byteLength!=o.byteLength||!y(new vo(n),new vo(o)));case ue:case he:case yt:return fr(+n,+o);case K:return n.name==o.name&&n.message==o.message;case ir:case fn:return n==o+"";case qe:var T=yi;case Ct:var A=f&x;if(T||(T=co),n.size!=o.size&&!A)return!1;var N=S.get(n);if(N)return N==o;f|=C,S.set(n,o);var L=jf(T(n),T(o),f,h,y,S);return S.delete(n),L;case dn:if(ya)return ya.call(n)==ya.call(o)}return!1}function R0(n,o,u,f,h,y){var S=u&x,T=Hi(n),A=T.length,N=Hi(o),L=N.length;if(A!=L&&!S)return!1;for(var B=A;B--;){var V=T[B];if(!(S?V in o:ke.call(o,V)))return!1}var ee=y.get(n),ae=y.get(o);if(ee&&ae)return ee==o&&ae==n;var be=!0;y.set(n,o),y.set(o,n);for(var oe=S;++B<A;){V=T[B];var Se=n[V],Ce=o[V];if(f)var Ht=S?f(Ce,Se,V,o,n,y):f(Se,Ce,V,n,o,y);if(!(Ht===t?Se===Ce||h(Se,Ce,u,f,y):Ht)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=n.constructor,qt=o.constructor;At!=qt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof qt=="function"&&qt instanceof qt)&&(be=!1)}return y.delete(n),y.delete(o),be}function Pr(n){return Xi(Gf(n,t,ed),n+"")}function Hi(n){return af(n,pt,Yi)}function qi(n){return af(n,Mt,Bf)}var Gi=So?function(n){return So.get(n)}:lu;function No(n){for(var o=n.name+"",u=kn[o],f=ke.call(kn,o)?u.length:0;f--;){var h=u[f],y=h.func;if(y==null||y==n)return h.name}return o}function Un(n){var o=ke.call(v,"placeholder")?v:n;return o.placeholder}function re(){var n=v.iteratee||uu;return n=n===uu?uf:n,arguments.length?n(arguments[0],arguments[1]):n}function Lo(n,o){var u=n.__data__;return M0(o)?u[typeof o=="string"?"string":"hash"]:u.map}function zi(n){for(var o=pt(n),u=o.length;u--;){var f=o[u],h=n[f];o[u]=[f,h,Hf(h)]}return o}function wn(n,o){var u=km(n,o);return sf(u)?u:t}function O0(n){var o=ke.call(n,yn),u=n[yn];try{n[yn]=t;var f=!0}catch{}var h=ho.call(n);return f&&(o?n[yn]=u:delete n[yn]),h}var Yi=_i?function(n){return n==null?[]:(n=Ue(n),Yr(_i(n),function(o){return Gl.call(n,o)}))}:fu,Bf=_i?function(n){for(var o=[];n;)Vr(o,Yi(n)),n=mo(n);return o}:fu,_t=Rt;(Ei&&_t(new Ei(new ArrayBuffer(1)))!=Gr||ga&&_t(new ga)!=qe||Si&&_t(Si.resolve())!=ln||Ln&&_t(new Ln)!=Ct||va&&_t(new va)!=xr)&&(_t=function(n){var o=Rt(n),u=o==Vt?n.constructor:t,f=u?Tn(u):"";if(f)switch(f){case ly:return Gr;case fy:return qe;case dy:return ln;case py:return Ct;case hy:return xr}return o});function A0(n,o,u){for(var f=-1,h=u.length;++f<h;){var y=u[f],S=y.size;switch(y.type){case"drop":n+=S;break;case"dropRight":o-=S;break;case"take":o=bt(o,n+S);break;case"takeRight":n=lt(n,o-S);break}}return{start:n,end:o}}function P0(n){var o=n.match(Le);return o?o[1].split(xe):[]}function Wf(n,o,u){o=Qr(o,n);for(var f=-1,h=o.length,y=!1;++f<h;){var S=_r(o[f]);if(!(y=n!=null&&u(n,S)))break;n=n[S]}return y||++f!=h?y:(h=n==null?0:n.length,!!h&&qo(h)&&Dr(S,h)&&(ve(n)||xn(n)))}function D0(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&ke.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Uf(n){return typeof n.constructor=="function"&&!xa(n)?jn(mo(n)):{}}function I0(n,o,u){var f=n.constructor;switch(o){case pn:return Bi(n);case ue:case he:return new f(+n);case Gr:return g0(n,u);case ua:case ca:case la:case fa:case hn:case Pn:case mr:case gn:case vn:return Tf(n,u);case qe:return new f;case yt:case fn:return new f(n);case ir:return v0(n);case Ct:return new f;case dn:return m0(n)}}function F0(n,o){var u=o.length;if(!u)return n;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),n.replace(Ne,`{
|
|
16
16
|
/* [wrapped with `+o+`] */
|
|
17
|
-
`)}function kb(n){return ve(n)||xn(n)||!!(Vl&&n&&n[Vl])}function Dr(n,o){var u=typeof n;return o=o??nt,!!o&&(u=="number"||u!="symbol"&&Jv.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Qe(u))return!1;var f=typeof o;return(f=="number"?$t(u)&&Dr(o,u.length):f=="string"&&o in u)?fr(u[o],n):!1}function Ki(n,o){if(ve(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Ut(n)?!0:ri.test(n)||!ti.test(n)||o!=null&&n in Ue(o)}function jb(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ji(n){var o=Lo(n),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(n===u)return!0;var f=zi(u);return!!f&&n===f[0]}function Bb(n){return!!ql&&ql in n}var Wb=po?Ir:pu;function Ra(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||Nn;return n===u}function Gf(n){return n===n&&!Qe(n)}function zf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in Ue(u))}}function Ub(n){var o=Ho(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function Hb(n,o){var u=n[1],f=o[1],h=u|f,y=h<(I|P|H),S=f==H&&u==M||f==H&&u==z&&n[7].length<=o[8]||f==(H|z)&&o[7].length<=o[8]&&u==M;if(!(y||S))return n;f&I&&(n[2]=o[2],h|=u&I?0:j);var T=o[3];if(T){var A=n[3];n[3]=A?Of(A,T,o[4]):T,n[4]=A?Kr(n[3],g):o[4]}return T=o[5],T&&(A=n[5],n[5]=A?Af(A,T,o[6]):T,n[6]=A?Kr(n[5],g):o[6]),T=o[7],T&&(n[7]=T),f&H&&(n[8]=n[8]==null?o[8]:bt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=h,n}function qb(n){var o=[];if(n!=null)for(var u in Ue(n))o.push(u);return o}function Gb(n){return go.call(n)}function Yf(n,o,u){return o=lt(o===t?n.length-1:o,0),function(){for(var f=arguments,h=-1,y=lt(f.length-o,0),S=D(y);++h<y;)S[h]=f[o+h];h=-1;for(var T=D(o+1);++h<o;)T[h]=f[h];return T[o]=u(S),jt(n,this,T)}}function Vf(n,o){return o.length<2?n:Sn(n,tr(o,0,-1))}function zb(n,o){for(var u=n.length,f=bt(o.length,u),h=Ft(n);f--;){var y=o[f];n[f]=Dr(y,u)?h[y]:t}return n}function Xi(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Kf=Xf(yf),Oa=iy||function(n,o){return gt.setTimeout(n,o)},Zi=Xf(gb);function Jf(n,o,u){var f=o+"";return Zi(n,Lb(f,Yb($b(f),u)))}function Xf(n){var o=0,u=0;return function(){var f=fy(),h=X-(f-u);if(u=f,h>0){if(++o>=it)return arguments[0]}else o=0;return n.apply(t,arguments)}}function jo(n,o){var u=-1,f=n.length,h=f-1;for(o=o===t?f:o;++u<o;){var y=$i(u,h),S=n[y];n[y]=n[u],n[u]=S}return n.length=o,n}var Zf=Ub(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(ni,function(u,f,h,y){o.push(h?y.replace(Ze,"$1"):f||u)}),o});function _r(n){if(typeof n=="string"||Ut(n))return n;var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Tn(n){if(n!=null){try{return ho.call(n)}catch{}try{return n+""}catch{}}return""}function Yb(n,o){return Xt(se,function(u){var f="_."+u[0];o&u[1]&&!uo(n,f)&&n.push(f)}),n.sort()}function Qf(n){if(n instanceof we)return n.clone();var o=new Qt(n.__wrapped__,n.__chain__);return o.__actions__=Ft(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Vb(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=lt(me(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var h=0,y=0,S=D(Eo(f/o));h<f;)S[y++]=tr(n,h,h+=o);return S}function Kb(n){for(var o=-1,u=n==null?0:n.length,f=0,h=[];++o<u;){var y=n[o];y&&(h[f++]=y)}return h}function Jb(){var n=arguments.length;if(!n)return[];for(var o=D(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return Vr(ve(u)?Ft(u):[u],vt(o,1))}var Xb=_e(function(n,o){return at(n)?Sa(n,vt(o,1,at,!0)):[]}),Zb=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?Sa(n,vt(o,1,at,!0),re(u,2)):[]}),Qb=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?Sa(n,vt(o,1,at,!0),t,u):[]});function e0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),tr(n,o<0?0:o,f)):[]}function t0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,0,o<0?0:o)):[]}function r0(n,o){return n&&n.length?Do(n,re(o,3),!0,!0):[]}function n0(n,o){return n&&n.length?Do(n,re(o,3),!0):[]}function a0(n,o,u,f){var h=n==null?0:n.length;return h?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,f=h),Jy(n,o,u,f)):[]}function ed(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:me(u);return h<0&&(h=lt(f+h,0)),co(n,re(o,3),h)}function td(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f-1;return u!==t&&(h=me(u),h=u<0?lt(f+h,0):bt(h,f-1)),co(n,re(o,3),h,!0)}function rd(n){var o=n==null?0:n.length;return o?vt(n,1):[]}function o0(n){var o=n==null?0:n.length;return o?vt(n,He):[]}function s0(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:me(o),vt(n,o)):[]}function i0(n){for(var o=-1,u=n==null?0:n.length,f={};++o<u;){var h=n[o];f[h[0]]=h[1]}return f}function nd(n){return n&&n.length?n[0]:t}function u0(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:me(u);return h<0&&(h=lt(f+h,0)),In(n,o,h)}function c0(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var l0=_e(function(n){var o=Je(n,ji);return o.length&&o[0]===n[0]?Ai(o):[]}),f0=_e(function(n){var o=rr(n),u=Je(n,ji);return o===rr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?Ai(u,re(o,2)):[]}),d0=_e(function(n){var o=rr(n),u=Je(n,ji);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?Ai(u,t,o):[]});function p0(n,o){return n==null?"":cy.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function h0(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f;return u!==t&&(h=me(u),h=h<0?lt(f+h,0):bt(h,f-1)),o===o?Ym(n,o,h):co(n,Nl,h,!0)}function g0(n,o){return n&&n.length?hf(n,me(o)):t}var v0=_e(ad);function ad(n,o){return n&&n.length&&o&&o.length?Fi(n,o):n}function m0(n,o,u){return n&&n.length&&o&&o.length?Fi(n,o,re(u,2)):n}function y0(n,o,u){return n&&n.length&&o&&o.length?Fi(n,o,t,u):n}var b0=Pr(function(n,o){var u=n==null?0:n.length,f=xi(n,o);return mf(n,Je(o,function(h){return Dr(h,u)?+h:h}).sort(Rf)),f});function _0(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,h=[],y=n.length;for(o=re(o,3);++f<y;){var S=n[f];o(S,f,n)&&(u.push(S),h.push(f))}return mf(n,h),u}function Qi(n){return n==null?n:py.call(n)}function E0(n,o,u){var f=n==null?0:n.length;return f?(u&&typeof u!="number"&&Ot(n,o,u)?(o=0,u=f):(o=o==null?0:me(o),u=u===t?f:me(u)),tr(n,o,u)):[]}function S0(n,o){return Po(n,o)}function w0(n,o,u){return Ni(n,o,re(u,2))}function T0(n,o){var u=n==null?0:n.length;if(u){var f=Po(n,o);if(f<u&&fr(n[f],o))return f}return-1}function x0(n,o){return Po(n,o,!0)}function C0(n,o,u){return Ni(n,o,re(u,2),!0)}function R0(n,o){var u=n==null?0:n.length;if(u){var f=Po(n,o,!0)-1;if(fr(n[f],o))return f}return-1}function O0(n){return n&&n.length?bf(n):[]}function A0(n,o){return n&&n.length?bf(n,re(o,2)):[]}function P0(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function D0(n,o,u){return n&&n.length?(o=u||o===t?1:me(o),tr(n,0,o<0?0:o)):[]}function I0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,o<0?0:o,f)):[]}function F0(n,o){return n&&n.length?Do(n,re(o,3),!1,!0):[]}function $0(n,o){return n&&n.length?Do(n,re(o,3)):[]}var M0=_e(function(n){return Zr(vt(n,1,at,!0))}),N0=_e(function(n){var o=rr(n);return at(o)&&(o=t),Zr(vt(n,1,at,!0),re(o,2))}),L0=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Zr(vt(n,1,at,!0),t,o)});function k0(n){return n&&n.length?Zr(n):[]}function j0(n,o){return n&&n.length?Zr(n,re(o,2)):[]}function B0(n,o){return o=typeof o=="function"?o:t,n&&n.length?Zr(n,t,o):[]}function eu(n){if(!(n&&n.length))return[];var o=0;return n=Yr(n,function(u){if(at(u))return o=lt(u.length,o),!0}),mi(o,function(u){return Je(n,hi(u))})}function od(n,o){if(!(n&&n.length))return[];var u=eu(n);return o==null?u:Je(u,function(f){return jt(o,t,f)})}var W0=_e(function(n,o){return at(n)?Sa(n,o):[]}),U0=_e(function(n){return ki(Yr(n,at))}),H0=_e(function(n){var o=rr(n);return at(o)&&(o=t),ki(Yr(n,at),re(o,2))}),q0=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,ki(Yr(n,at),t,o)}),G0=_e(eu);function z0(n,o){return wf(n||[],o||[],Ea)}function Y0(n,o){return wf(n||[],o||[],xa)}var V0=_e(function(n){var o=n.length,u=o>1?n[o-1]:t;return u=typeof u=="function"?(n.pop(),u):t,od(n,u)});function sd(n){var o=v(n);return o.__chain__=!0,o}function K0(n,o){return o(n),n}function Bo(n,o){return o(n)}var J0=Pr(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,h=function(y){return xi(y,n)};return o>1||this.__actions__.length||!(f instanceof we)||!Dr(u)?this.thru(h):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Bo,args:[h],thisArg:t}),new Qt(f,this.__chain__).thru(function(y){return o&&!y.length&&y.push(t),y}))});function X0(){return sd(this)}function Z0(){return new Qt(this.value(),this.__chain__)}function Q0(){this.__values__===t&&(this.__values__=_d(this.value()));var n=this.__index__>=this.__values__.length,o=n?t:this.__values__[this.__index__++];return{done:n,value:o}}function e_(){return this}function t_(n){for(var o,u=this;u instanceof xo;){var f=Qf(u);f.__index__=0,f.__values__=t,o?h.__wrapped__=f:o=f;var h=f;u=u.__wrapped__}return h.__wrapped__=n,o}function r_(){var n=this.__wrapped__;if(n instanceof we){var o=n;return this.__actions__.length&&(o=new we(this)),o=o.reverse(),o.__actions__.push({func:Bo,args:[Qi],thisArg:t}),new Qt(o,this.__chain__)}return this.thru(Qi)}function n_(){return Sf(this.__wrapped__,this.__actions__)}var a_=Io(function(n,o,u){ke.call(n,u)?++n[u]:Or(n,u,1)});function o_(n,o,u){var f=ve(n)?$l:Ky;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}function s_(n,o){var u=ve(n)?Yr:af;return u(n,re(o,3))}var i_=Ff(ed),u_=Ff(td);function c_(n,o){return vt(Wo(n,o),1)}function l_(n,o){return vt(Wo(n,o),He)}function f_(n,o,u){return u=u===t?1:me(u),vt(Wo(n,o),u)}function id(n,o){var u=ve(n)?Xt:Xr;return u(n,re(o,3))}function ud(n,o){var u=ve(n)?Pm:nf;return u(n,re(o,3))}var d_=Io(function(n,o,u){ke.call(n,u)?n[u].push(o):Or(n,u,[o])});function p_(n,o,u,f){n=$t(n)?n:qn(n),u=u&&!f?me(u):0;var h=n.length;return u<0&&(u=lt(h+u,0)),zo(n)?u<=h&&n.indexOf(o,u)>-1:!!h&&In(n,o,u)>-1}var h_=_e(function(n,o,u){var f=-1,h=typeof o=="function",y=$t(n)?D(n.length):[];return Xr(n,function(S){y[++f]=h?jt(o,S,u):wa(S,o,u)}),y}),g_=Io(function(n,o,u){Or(n,u,o)});function Wo(n,o){var u=ve(n)?Je:ff;return u(n,re(o,3))}function v_(n,o,u,f){return n==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),gf(n,o,u))}var m_=Io(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function y_(n,o,u){var f=ve(n)?di:kl,h=arguments.length<3;return f(n,re(o,4),u,h,Xr)}function b_(n,o,u){var f=ve(n)?Dm:kl,h=arguments.length<3;return f(n,re(o,4),u,h,nf)}function __(n,o){var u=ve(n)?Yr:af;return u(n,qo(re(o,3)))}function E_(n){var o=ve(n)?Ql:pb;return o(n)}function S_(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=me(o);var f=ve(n)?qy:hb;return f(n,o)}function w_(n){var o=ve(n)?Gy:vb;return o(n)}function T_(n){if(n==null)return 0;if($t(n))return zo(n)?$n(n):n.length;var o=_t(n);return o==qe||o==Ct?n.size:Di(n).length}function x_(n,o,u){var f=ve(n)?pi:mb;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}var C_=_e(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Ot(n,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),gf(n,vt(o,1),[])}),Uo=sy||function(){return gt.Date.now()};function R_(n,o){if(typeof o!="function")throw new Zt(c);return n=me(n),function(){if(--n<1)return o.apply(this,arguments)}}function cd(n,o,u){return o=u?t:o,o=n&&o==null?n.length:o,Ar(n,H,t,t,t,t,o)}function ld(n,o){var u;if(typeof o!="function")throw new Zt(c);return n=me(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=t),u}}var tu=_e(function(n,o,u){var f=I;if(u.length){var h=Kr(u,Un(tu));f|=O}return Ar(n,f,o,u,h)}),fd=_e(function(n,o,u){var f=I|P;if(u.length){var h=Kr(u,Un(fd));f|=O}return Ar(o,f,n,u,h)});function dd(n,o,u){o=u?t:o;var f=Ar(n,M,t,t,t,t,t,o);return f.placeholder=dd.placeholder,f}function pd(n,o,u){o=u?t:o;var f=Ar(n,k,t,t,t,t,t,o);return f.placeholder=pd.placeholder,f}function hd(n,o,u){var f,h,y,S,T,A,N=0,L=!1,B=!1,V=!0;if(typeof n!="function")throw new Zt(c);o=nr(o)||0,Qe(u)&&(L=!!u.leading,B="maxWait"in u,y=B?lt(nr(u.maxWait)||0,o):y,V="trailing"in u?!!u.trailing:V);function ee(ot){var dr=f,$r=h;return f=h=t,N=ot,S=n.apply($r,dr),S}function ae(ot){return N=ot,T=Oa(Se,o),L?ee(ot):S}function be(ot){var dr=ot-A,$r=ot-N,Fd=o-dr;return B?bt(Fd,y-$r):Fd}function oe(ot){var dr=ot-A,$r=ot-N;return A===t||dr>=o||dr<0||B&&$r>=y}function Se(){var ot=Uo();if(oe(ot))return Ce(ot);T=Oa(Se,be(ot))}function Ce(ot){return T=t,V&&f?ee(ot):(f=h=t,S)}function Ht(){T!==t&&Tf(T),N=0,f=A=h=T=t}function At(){return T===t?S:Ce(Uo())}function qt(){var ot=Uo(),dr=oe(ot);if(f=arguments,h=this,A=ot,dr){if(T===t)return ae(A);if(B)return Tf(T),T=Oa(Se,o),ee(A)}return T===t&&(T=Oa(Se,o)),S}return qt.cancel=Ht,qt.flush=At,qt}var O_=_e(function(n,o){return rf(n,1,o)}),A_=_e(function(n,o,u){return rf(n,nr(o)||0,u)});function P_(n){return Ar(n,te)}function Ho(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Zt(c);var u=function(){var f=arguments,h=o?o.apply(this,f):f[0],y=u.cache;if(y.has(h))return y.get(h);var S=n.apply(this,f);return u.cache=y.set(h,S)||y,S};return u.cache=new(Ho.Cache||Rr),u}Ho.Cache=Rr;function qo(n){if(typeof n!="function")throw new Zt(c);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function D_(n){return ld(2,n)}var I_=yb(function(n,o){o=o.length==1&&ve(o[0])?Je(o[0],Bt(re())):Je(vt(o,1),Bt(re()));var u=o.length;return _e(function(f){for(var h=-1,y=bt(f.length,u);++h<y;)f[h]=o[h].call(this,f[h]);return jt(n,this,f)})}),ru=_e(function(n,o){var u=Kr(o,Un(ru));return Ar(n,O,t,o,u)}),gd=_e(function(n,o){var u=Kr(o,Un(gd));return Ar(n,Y,t,o,u)}),F_=Pr(function(n,o){return Ar(n,z,t,t,t,o)});function $_(n,o){if(typeof n!="function")throw new Zt(c);return o=o===t?o:me(o),_e(n,o)}function M_(n,o){if(typeof n!="function")throw new Zt(c);return o=o==null?0:lt(me(o),0),_e(function(u){var f=u[o],h=en(u,0,o);return f&&Vr(h,f),jt(n,this,h)})}function N_(n,o,u){var f=!0,h=!0;if(typeof n!="function")throw new Zt(c);return Qe(u)&&(f="leading"in u?!!u.leading:f,h="trailing"in u?!!u.trailing:h),hd(n,o,{leading:f,maxWait:o,trailing:h})}function L_(n){return cd(n,1)}function k_(n,o){return ru(Bi(o),n)}function j_(){if(!arguments.length)return[];var n=arguments[0];return ve(n)?n:[n]}function B_(n){return er(n,E)}function W_(n,o){return o=typeof o=="function"?o:t,er(n,E,o)}function U_(n){return er(n,m|E)}function H_(n,o){return o=typeof o=="function"?o:t,er(n,m|E,o)}function q_(n,o){return o==null||tf(n,o,pt(o))}function fr(n,o){return n===o||n!==n&&o!==o}var G_=No(Oi),z_=No(function(n,o){return n>=o}),xn=uf(function(){return arguments}())?uf:function(n){return rt(n)&&ke.call(n,"callee")&&!Yl.call(n,"callee")},ve=D.isArray,Y_=Ol?Bt(Ol):tb;function $t(n){return n!=null&&Go(n.length)&&!Ir(n)}function at(n){return rt(n)&&$t(n)}function V_(n){return n===!0||n===!1||rt(n)&&Rt(n)==ue}var tn=uy||pu,K_=Al?Bt(Al):rb;function J_(n){return rt(n)&&n.nodeType===1&&!Aa(n)}function X_(n){if(n==null)return!0;if($t(n)&&(ve(n)||typeof n=="string"||typeof n.splice=="function"||tn(n)||Hn(n)||xn(n)))return!n.length;var o=_t(n);if(o==qe||o==Ct)return!n.size;if(Ra(n))return!Di(n).length;for(var u in n)if(ke.call(n,u))return!1;return!0}function Z_(n,o){return Ta(n,o)}function Q_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?Ta(n,o,t,u):!!f}function nu(n){if(!rt(n))return!1;var o=Rt(n);return o==K||o==ge||typeof n.message=="string"&&typeof n.name=="string"&&!Aa(n)}function eE(n){return typeof n=="number"&&Kl(n)}function Ir(n){if(!Qe(n))return!1;var o=Rt(n);return o==F||o==Ye||o==ce||o==Js}function vd(n){return typeof n=="number"&&n==me(n)}function Go(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=nt}function Qe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function rt(n){return n!=null&&typeof n=="object"}var md=Pl?Bt(Pl):ab;function tE(n,o){return n===o||Pi(n,o,Yi(o))}function rE(n,o,u){return u=typeof u=="function"?u:t,Pi(n,o,Yi(o),u)}function nE(n){return yd(n)&&n!=+n}function aE(n){if(Wb(n))throw new pe(i);return cf(n)}function oE(n){return n===null}function sE(n){return n==null}function yd(n){return typeof n=="number"||rt(n)&&Rt(n)==yt}function Aa(n){if(!rt(n)||Rt(n)!=Vt)return!1;var o=yo(n);if(o===null)return!0;var u=ke.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&ho.call(u)==ry}var au=Dl?Bt(Dl):ob;function iE(n){return vd(n)&&n>=-nt&&n<=nt}var bd=Il?Bt(Il):sb;function zo(n){return typeof n=="string"||!ve(n)&&rt(n)&&Rt(n)==fn}function Ut(n){return typeof n=="symbol"||rt(n)&&Rt(n)==dn}var Hn=Fl?Bt(Fl):ib;function uE(n){return n===t}function cE(n){return rt(n)&&_t(n)==xr}function lE(n){return rt(n)&&Rt(n)==Xs}var fE=No(Ii),dE=No(function(n,o){return n<=o});function _d(n){if(!n)return[];if($t(n))return zo(n)?cr(n):Ft(n);if(va&&n[va])return qm(n[va]());var o=_t(n),u=o==qe?bi:o==Ct?lo:qn;return u(n)}function Fr(n){if(!n)return n===0?n:0;if(n=nr(n),n===He||n===-He){var o=n<0?-1:1;return o*Yt}return n===n?n:0}function me(n){var o=Fr(n),u=o%1;return o===o?u?o-u:o:0}function Ed(n){return n?En(me(n),0,G):0}function nr(n){if(typeof n=="number")return n;if(Ut(n))return W;if(Qe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Qe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=jl(n);var u=ao.test(n);return u||Kv.test(n)?Rm(n.slice(2),u?2:8):zr.test(n)?W:+n}function Sd(n){return br(n,Mt(n))}function pE(n){return n?En(me(n),-nt,nt):n===0?n:0}function De(n){return n==null?"":Wt(n)}var hE=Bn(function(n,o){if(Ra(o)||$t(o)){br(o,pt(o),n);return}for(var u in o)ke.call(o,u)&&Ea(n,u,o[u])}),wd=Bn(function(n,o){br(o,Mt(o),n)}),Yo=Bn(function(n,o,u,f){br(o,Mt(o),n,f)}),gE=Bn(function(n,o,u,f){br(o,pt(o),n,f)}),vE=Pr(xi);function mE(n,o){var u=jn(n);return o==null?u:ef(u,o)}var yE=_e(function(n,o){n=Ue(n);var u=-1,f=o.length,h=f>2?o[2]:t;for(h&&Ot(o[0],o[1],h)&&(f=1);++u<f;)for(var y=o[u],S=Mt(y),T=-1,A=S.length;++T<A;){var N=S[T],L=n[N];(L===t||fr(L,Nn[N])&&!ke.call(n,N))&&(n[N]=y[N])}return n}),bE=_e(function(n){return n.push(t,Bf),jt(Td,t,n)});function _E(n,o){return Ml(n,re(o,3),yr)}function EE(n,o){return Ml(n,re(o,3),Ri)}function SE(n,o){return n==null?n:Ci(n,re(o,3),Mt)}function wE(n,o){return n==null?n:of(n,re(o,3),Mt)}function TE(n,o){return n&&yr(n,re(o,3))}function xE(n,o){return n&&Ri(n,re(o,3))}function CE(n){return n==null?[]:Oo(n,pt(n))}function RE(n){return n==null?[]:Oo(n,Mt(n))}function ou(n,o,u){var f=n==null?t:Sn(n,o);return f===t?u:f}function OE(n,o){return n!=null&&Hf(n,o,Xy)}function su(n,o){return n!=null&&Hf(n,o,Zy)}var AE=Mf(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=go.call(o)),n[o]=u},uu(Nt)),PE=Mf(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=go.call(o)),ke.call(n,o)?n[o].push(u):n[o]=[u]},re),DE=_e(wa);function pt(n){return $t(n)?Zl(n):Di(n)}function Mt(n){return $t(n)?Zl(n,!0):ub(n)}function IE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,o(f,h,y),f)}),u}function FE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,h,o(f,h,y))}),u}var $E=Bn(function(n,o,u){Ao(n,o,u)}),Td=Bn(function(n,o,u,f){Ao(n,o,u,f)}),ME=Pr(function(n,o){var u={};if(n==null)return u;var f=!1;o=Je(o,function(y){return y=Qr(y,n),f||(f=y.length>1),y}),br(n,Gi(n),u),f&&(u=er(u,m|b|E,Ab));for(var h=o.length;h--;)Li(u,o[h]);return u});function NE(n,o){return xd(n,qo(re(o)))}var LE=Pr(function(n,o){return n==null?{}:lb(n,o)});function xd(n,o){if(n==null)return{};var u=Je(Gi(n),function(f){return[f]});return o=re(o),vf(n,u,function(f,h){return o(f,h[0])})}function kE(n,o,u){o=Qr(o,n);var f=-1,h=o.length;for(h||(h=1,n=t);++f<h;){var y=n==null?t:n[_r(o[f])];y===t&&(f=h,y=u),n=Ir(y)?y.call(n):y}return n}function jE(n,o,u){return n==null?n:xa(n,o,u)}function BE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:xa(n,o,u,f)}var Cd=kf(pt),Rd=kf(Mt);function WE(n,o,u){var f=ve(n),h=f||tn(n)||Hn(n);if(o=re(o,4),u==null){var y=n&&n.constructor;h?u=f?new y:[]:Qe(n)?u=Ir(y)?jn(yo(n)):{}:u={}}return(h?Xt:yr)(n,function(S,T,A){return o(u,S,T,A)}),u}function UE(n,o){return n==null?!0:Li(n,o)}function HE(n,o,u){return n==null?n:Ef(n,o,Bi(u))}function qE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:Ef(n,o,Bi(u),f)}function qn(n){return n==null?[]:yi(n,pt(n))}function GE(n){return n==null?[]:yi(n,Mt(n))}function zE(n,o,u){return u===t&&(u=o,o=t),u!==t&&(u=nr(u),u=u===u?u:0),o!==t&&(o=nr(o),o=o===o?o:0),En(nr(n),o,u)}function YE(n,o,u){return o=Fr(o),u===t?(u=o,o=0):u=Fr(u),n=nr(n),Qy(n,o,u)}function VE(n,o,u){if(u&&typeof u!="boolean"&&Ot(n,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof n=="boolean"&&(u=n,n=t)),n===t&&o===t?(n=0,o=1):(n=Fr(n),o===t?(o=n,n=0):o=Fr(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var h=Jl();return bt(n+h*(o-n+Cm("1e-"+((h+"").length-1))),o)}return $i(n,o)}var KE=Wn(function(n,o,u){return o=o.toLowerCase(),n+(u?Od(o):o)});function Od(n){return iu(De(n).toLowerCase())}function Ad(n){return n=De(n),n&&n.replace(Xv,jm).replace(vm,"")}function JE(n,o,u){n=De(n),o=Wt(o);var f=n.length;u=u===t?f:En(me(u),0,f);var h=u;return u-=o.length,u>=0&&n.slice(u,h)==o}function XE(n){return n=De(n),n&&Qs.test(n)?n.replace(ha,Bm):n}function ZE(n){return n=De(n),n&&U.test(n)?n.replace(w,"\\$&"):n}var QE=Wn(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),e1=Wn(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),t1=If("toLowerCase");function r1(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;if(!o||f>=o)return n;var h=(o-f)/2;return Mo(So(h),u)+n+Mo(Eo(h),u)}function n1(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?n+Mo(o-f,u):n}function a1(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?Mo(o-f,u)+n:n}function o1(n,o,u){return u||o==null?o=0:o&&(o=+o),dy(De(n).replace(J,""),o||0)}function s1(n,o,u){return(u?Ot(n,o,u):o===t)?o=1:o=me(o),Mi(De(n),o)}function i1(){var n=arguments,o=De(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var u1=Wn(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function c1(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=t),u=u===t?G:u>>>0,u?(n=De(n),n&&(typeof o=="string"||o!=null&&!au(o))&&(o=Wt(o),!o&&Fn(n))?en(cr(n),0,u):n.split(o,u)):[]}var l1=Wn(function(n,o,u){return n+(u?" ":"")+iu(o)});function f1(n,o,u){return n=De(n),u=u==null?0:En(me(u),0,n.length),o=Wt(o),n.slice(u,u+o.length)==o}function d1(n,o,u){var f=v.templateSettings;u&&Ot(n,o,u)&&(o=t),n=De(n),o=Yo({},o,f,jf);var h=Yo({},o.imports,f.imports,jf),y=pt(h),S=yi(h,y),T,A,N=0,L=o.interpolate||oo,B="__p += '",V=_i((o.escape||oo).source+"|"+L.source+"|"+(L===no?tt:oo).source+"|"+(o.evaluate||oo).source+"|$","g"),ee="//# sourceURL="+(ke.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Em+"]")+`
|
|
18
|
-
`;n.replace(V,function(oe,Se,Ce,Ht,At,qt){return Ce||(Ce=Ht),B+=n.slice(N,qt).replace(
|
|
17
|
+
`)}function $0(n){return ve(n)||xn(n)||!!(zl&&n&&n[zl])}function Dr(n,o){var u=typeof n;return o=o??nt,!!o&&(u=="number"||u!="symbol"&&zv.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Qe(u))return!1;var f=typeof o;return(f=="number"?$t(u)&&Dr(o,u.length):f=="string"&&o in u)?fr(u[o],n):!1}function Vi(n,o){if(ve(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Ut(n)?!0:ti.test(n)||!ei.test(n)||o!=null&&n in Ue(o)}function M0(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ki(n){var o=No(n),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(n===u)return!0;var f=Gi(u);return!!f&&n===f[0]}function N0(n){return!!Ul&&Ul in n}var L0=fo?Ir:du;function xa(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||Nn;return n===u}function Hf(n){return n===n&&!Qe(n)}function qf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in Ue(u))}}function k0(n){var o=Uo(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function j0(n,o){var u=n[1],f=o[1],h=u|f,y=h<(I|P|H),S=f==H&&u==M||f==H&&u==z&&n[7].length<=o[8]||f==(H|z)&&o[7].length<=o[8]&&u==M;if(!(y||S))return n;f&I&&(n[2]=o[2],h|=u&I?0:j);var T=o[3];if(T){var A=n[3];n[3]=A?Cf(A,T,o[4]):T,n[4]=A?Kr(n[3],g):o[4]}return T=o[5],T&&(A=n[5],n[5]=A?Rf(A,T,o[6]):T,n[6]=A?Kr(n[5],g):o[6]),T=o[7],T&&(n[7]=T),f&H&&(n[8]=n[8]==null?o[8]:bt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=h,n}function B0(n){var o=[];if(n!=null)for(var u in Ue(n))o.push(u);return o}function W0(n){return ho.call(n)}function Gf(n,o,u){return o=lt(o===t?n.length-1:o,0),function(){for(var f=arguments,h=-1,y=lt(f.length-o,0),S=D(y);++h<y;)S[h]=f[o+h];h=-1;for(var T=D(o+1);++h<o;)T[h]=f[h];return T[o]=u(S),jt(n,this,T)}}function zf(n,o){return o.length<2?n:Sn(n,tr(o,0,-1))}function U0(n,o){for(var u=n.length,f=bt(o.length,u),h=Ft(n);f--;){var y=o[f];n[f]=Dr(y,u)?h[y]:t}return n}function Ji(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Yf=Kf(vf),Ca=ny||function(n,o){return gt.setTimeout(n,o)},Xi=Kf(f0);function Vf(n,o,u){var f=o+"";return Xi(n,F0(f,H0(P0(f),u)))}function Kf(n){var o=0,u=0;return function(){var f=iy(),h=X-(f-u);if(u=f,h>0){if(++o>=it)return arguments[0]}else o=0;return n.apply(t,arguments)}}function ko(n,o){var u=-1,f=n.length,h=f-1;for(o=o===t?f:o;++u<o;){var y=Fi(u,h),S=n[y];n[y]=n[u],n[u]=S}return n.length=o,n}var Jf=k0(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(ri,function(u,f,h,y){o.push(h?y.replace(Ze,"$1"):f||u)}),o});function _r(n){if(typeof n=="string"||Ut(n))return n;var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Tn(n){if(n!=null){try{return po.call(n)}catch{}try{return n+""}catch{}}return""}function H0(n,o){return Xt(se,function(u){var f="_."+u[0];o&u[1]&&!io(n,f)&&n.push(f)}),n.sort()}function Xf(n){if(n instanceof we)return n.clone();var o=new Qt(n.__wrapped__,n.__chain__);return o.__actions__=Ft(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function q0(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=lt(me(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var h=0,y=0,S=D(_o(f/o));h<f;)S[y++]=tr(n,h,h+=o);return S}function G0(n){for(var o=-1,u=n==null?0:n.length,f=0,h=[];++o<u;){var y=n[o];y&&(h[f++]=y)}return h}function z0(){var n=arguments.length;if(!n)return[];for(var o=D(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return Vr(ve(u)?Ft(u):[u],vt(o,1))}var Y0=_e(function(n,o){return at(n)?_a(n,vt(o,1,at,!0)):[]}),V0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?_a(n,vt(o,1,at,!0),re(u,2)):[]}),K0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?_a(n,vt(o,1,at,!0),t,u):[]});function J0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),tr(n,o<0?0:o,f)):[]}function X0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,0,o<0?0:o)):[]}function Z0(n,o){return n&&n.length?Po(n,re(o,3),!0,!0):[]}function Q0(n,o){return n&&n.length?Po(n,re(o,3),!0):[]}function eb(n,o,u,f){var h=n==null?0:n.length;return h?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,f=h),zy(n,o,u,f)):[]}function Zf(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:me(u);return h<0&&(h=lt(f+h,0)),uo(n,re(o,3),h)}function Qf(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f-1;return u!==t&&(h=me(u),h=u<0?lt(f+h,0):bt(h,f-1)),uo(n,re(o,3),h,!0)}function ed(n){var o=n==null?0:n.length;return o?vt(n,1):[]}function tb(n){var o=n==null?0:n.length;return o?vt(n,He):[]}function rb(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:me(o),vt(n,o)):[]}function nb(n){for(var o=-1,u=n==null?0:n.length,f={};++o<u;){var h=n[o];f[h[0]]=h[1]}return f}function td(n){return n&&n.length?n[0]:t}function ab(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:me(u);return h<0&&(h=lt(f+h,0)),In(n,o,h)}function ob(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var sb=_e(function(n){var o=Je(n,ki);return o.length&&o[0]===n[0]?Oi(o):[]}),ib=_e(function(n){var o=rr(n),u=Je(n,ki);return o===rr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?Oi(u,re(o,2)):[]}),ub=_e(function(n){var o=rr(n),u=Je(n,ki);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?Oi(u,t,o):[]});function cb(n,o){return n==null?"":oy.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function lb(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f;return u!==t&&(h=me(u),h=h<0?lt(f+h,0):bt(h,f-1)),o===o?Hm(n,o,h):uo(n,$l,h,!0)}function fb(n,o){return n&&n.length?df(n,me(o)):t}var db=_e(rd);function rd(n,o){return n&&n.length&&o&&o.length?Ii(n,o):n}function pb(n,o,u){return n&&n.length&&o&&o.length?Ii(n,o,re(u,2)):n}function hb(n,o,u){return n&&n.length&&o&&o.length?Ii(n,o,t,u):n}var gb=Pr(function(n,o){var u=n==null?0:n.length,f=Ti(n,o);return gf(n,Je(o,function(h){return Dr(h,u)?+h:h}).sort(xf)),f});function vb(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,h=[],y=n.length;for(o=re(o,3);++f<y;){var S=n[f];o(S,f,n)&&(u.push(S),h.push(f))}return gf(n,h),u}function Zi(n){return n==null?n:cy.call(n)}function mb(n,o,u){var f=n==null?0:n.length;return f?(u&&typeof u!="number"&&Ot(n,o,u)?(o=0,u=f):(o=o==null?0:me(o),u=u===t?f:me(u)),tr(n,o,u)):[]}function yb(n,o){return Ao(n,o)}function bb(n,o,u){return Mi(n,o,re(u,2))}function _b(n,o){var u=n==null?0:n.length;if(u){var f=Ao(n,o);if(f<u&&fr(n[f],o))return f}return-1}function Eb(n,o){return Ao(n,o,!0)}function Sb(n,o,u){return Mi(n,o,re(u,2),!0)}function wb(n,o){var u=n==null?0:n.length;if(u){var f=Ao(n,o,!0)-1;if(fr(n[f],o))return f}return-1}function Tb(n){return n&&n.length?mf(n):[]}function xb(n,o){return n&&n.length?mf(n,re(o,2)):[]}function Cb(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function Rb(n,o,u){return n&&n.length?(o=u||o===t?1:me(o),tr(n,0,o<0?0:o)):[]}function Ob(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,o<0?0:o,f)):[]}function Ab(n,o){return n&&n.length?Po(n,re(o,3),!1,!0):[]}function Pb(n,o){return n&&n.length?Po(n,re(o,3)):[]}var Db=_e(function(n){return Zr(vt(n,1,at,!0))}),Ib=_e(function(n){var o=rr(n);return at(o)&&(o=t),Zr(vt(n,1,at,!0),re(o,2))}),Fb=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Zr(vt(n,1,at,!0),t,o)});function $b(n){return n&&n.length?Zr(n):[]}function Mb(n,o){return n&&n.length?Zr(n,re(o,2)):[]}function Nb(n,o){return o=typeof o=="function"?o:t,n&&n.length?Zr(n,t,o):[]}function Qi(n){if(!(n&&n.length))return[];var o=0;return n=Yr(n,function(u){if(at(u))return o=lt(u.length,o),!0}),vi(o,function(u){return Je(n,pi(u))})}function nd(n,o){if(!(n&&n.length))return[];var u=Qi(n);return o==null?u:Je(u,function(f){return jt(o,t,f)})}var Lb=_e(function(n,o){return at(n)?_a(n,o):[]}),kb=_e(function(n){return Li(Yr(n,at))}),jb=_e(function(n){var o=rr(n);return at(o)&&(o=t),Li(Yr(n,at),re(o,2))}),Bb=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Li(Yr(n,at),t,o)}),Wb=_e(Qi);function Ub(n,o){return Ef(n||[],o||[],ba)}function Hb(n,o){return Ef(n||[],o||[],wa)}var qb=_e(function(n){var o=n.length,u=o>1?n[o-1]:t;return u=typeof u=="function"?(n.pop(),u):t,nd(n,u)});function ad(n){var o=v(n);return o.__chain__=!0,o}function Gb(n,o){return o(n),n}function jo(n,o){return o(n)}var zb=Pr(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,h=function(y){return Ti(y,n)};return o>1||this.__actions__.length||!(f instanceof we)||!Dr(u)?this.thru(h):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:jo,args:[h],thisArg:t}),new Qt(f,this.__chain__).thru(function(y){return o&&!y.length&&y.push(t),y}))});function Yb(){return ad(this)}function Vb(){return new Qt(this.value(),this.__chain__)}function Kb(){this.__values__===t&&(this.__values__=yd(this.value()));var n=this.__index__>=this.__values__.length,o=n?t:this.__values__[this.__index__++];return{done:n,value:o}}function Jb(){return this}function Xb(n){for(var o,u=this;u instanceof To;){var f=Xf(u);f.__index__=0,f.__values__=t,o?h.__wrapped__=f:o=f;var h=f;u=u.__wrapped__}return h.__wrapped__=n,o}function Zb(){var n=this.__wrapped__;if(n instanceof we){var o=n;return this.__actions__.length&&(o=new we(this)),o=o.reverse(),o.__actions__.push({func:jo,args:[Zi],thisArg:t}),new Qt(o,this.__chain__)}return this.thru(Zi)}function Qb(){return _f(this.__wrapped__,this.__actions__)}var e_=Do(function(n,o,u){ke.call(n,u)?++n[u]:Or(n,u,1)});function t_(n,o,u){var f=ve(n)?Il:Gy;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}function r_(n,o){var u=ve(n)?Yr:rf;return u(n,re(o,3))}var n_=Df(Zf),a_=Df(Qf);function o_(n,o){return vt(Bo(n,o),1)}function s_(n,o){return vt(Bo(n,o),He)}function i_(n,o,u){return u=u===t?1:me(u),vt(Bo(n,o),u)}function od(n,o){var u=ve(n)?Xt:Xr;return u(n,re(o,3))}function sd(n,o){var u=ve(n)?Cm:tf;return u(n,re(o,3))}var u_=Do(function(n,o,u){ke.call(n,u)?n[u].push(o):Or(n,u,[o])});function c_(n,o,u,f){n=$t(n)?n:qn(n),u=u&&!f?me(u):0;var h=n.length;return u<0&&(u=lt(h+u,0)),Go(n)?u<=h&&n.indexOf(o,u)>-1:!!h&&In(n,o,u)>-1}var l_=_e(function(n,o,u){var f=-1,h=typeof o=="function",y=$t(n)?D(n.length):[];return Xr(n,function(S){y[++f]=h?jt(o,S,u):Ea(S,o,u)}),y}),f_=Do(function(n,o,u){Or(n,u,o)});function Bo(n,o){var u=ve(n)?Je:cf;return u(n,re(o,3))}function d_(n,o,u,f){return n==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),pf(n,o,u))}var p_=Do(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function h_(n,o,u){var f=ve(n)?fi:Nl,h=arguments.length<3;return f(n,re(o,4),u,h,Xr)}function g_(n,o,u){var f=ve(n)?Rm:Nl,h=arguments.length<3;return f(n,re(o,4),u,h,tf)}function v_(n,o){var u=ve(n)?Yr:rf;return u(n,Ho(re(o,3)))}function m_(n){var o=ve(n)?Xl:c0;return o(n)}function y_(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=me(o);var f=ve(n)?By:l0;return f(n,o)}function b_(n){var o=ve(n)?Wy:d0;return o(n)}function __(n){if(n==null)return 0;if($t(n))return Go(n)?$n(n):n.length;var o=_t(n);return o==qe||o==Ct?n.size:Pi(n).length}function E_(n,o,u){var f=ve(n)?di:p0;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}var S_=_e(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Ot(n,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),pf(n,vt(o,1),[])}),Wo=ry||function(){return gt.Date.now()};function w_(n,o){if(typeof o!="function")throw new Zt(c);return n=me(n),function(){if(--n<1)return o.apply(this,arguments)}}function id(n,o,u){return o=u?t:o,o=n&&o==null?n.length:o,Ar(n,H,t,t,t,t,o)}function ud(n,o){var u;if(typeof o!="function")throw new Zt(c);return n=me(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=t),u}}var eu=_e(function(n,o,u){var f=I;if(u.length){var h=Kr(u,Un(eu));f|=O}return Ar(n,f,o,u,h)}),cd=_e(function(n,o,u){var f=I|P;if(u.length){var h=Kr(u,Un(cd));f|=O}return Ar(o,f,n,u,h)});function ld(n,o,u){o=u?t:o;var f=Ar(n,M,t,t,t,t,t,o);return f.placeholder=ld.placeholder,f}function fd(n,o,u){o=u?t:o;var f=Ar(n,k,t,t,t,t,t,o);return f.placeholder=fd.placeholder,f}function dd(n,o,u){var f,h,y,S,T,A,N=0,L=!1,B=!1,V=!0;if(typeof n!="function")throw new Zt(c);o=nr(o)||0,Qe(u)&&(L=!!u.leading,B="maxWait"in u,y=B?lt(nr(u.maxWait)||0,o):y,V="trailing"in u?!!u.trailing:V);function ee(ot){var dr=f,$r=h;return f=h=t,N=ot,S=n.apply($r,dr),S}function ae(ot){return N=ot,T=Ca(Se,o),L?ee(ot):S}function be(ot){var dr=ot-A,$r=ot-N,Dd=o-dr;return B?bt(Dd,y-$r):Dd}function oe(ot){var dr=ot-A,$r=ot-N;return A===t||dr>=o||dr<0||B&&$r>=y}function Se(){var ot=Wo();if(oe(ot))return Ce(ot);T=Ca(Se,be(ot))}function Ce(ot){return T=t,V&&f?ee(ot):(f=h=t,S)}function Ht(){T!==t&&Sf(T),N=0,f=A=h=T=t}function At(){return T===t?S:Ce(Wo())}function qt(){var ot=Wo(),dr=oe(ot);if(f=arguments,h=this,A=ot,dr){if(T===t)return ae(A);if(B)return Sf(T),T=Ca(Se,o),ee(A)}return T===t&&(T=Ca(Se,o)),S}return qt.cancel=Ht,qt.flush=At,qt}var T_=_e(function(n,o){return ef(n,1,o)}),x_=_e(function(n,o,u){return ef(n,nr(o)||0,u)});function C_(n){return Ar(n,te)}function Uo(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Zt(c);var u=function(){var f=arguments,h=o?o.apply(this,f):f[0],y=u.cache;if(y.has(h))return y.get(h);var S=n.apply(this,f);return u.cache=y.set(h,S)||y,S};return u.cache=new(Uo.Cache||Rr),u}Uo.Cache=Rr;function Ho(n){if(typeof n!="function")throw new Zt(c);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function R_(n){return ud(2,n)}var O_=h0(function(n,o){o=o.length==1&&ve(o[0])?Je(o[0],Bt(re())):Je(vt(o,1),Bt(re()));var u=o.length;return _e(function(f){for(var h=-1,y=bt(f.length,u);++h<y;)f[h]=o[h].call(this,f[h]);return jt(n,this,f)})}),tu=_e(function(n,o){var u=Kr(o,Un(tu));return Ar(n,O,t,o,u)}),pd=_e(function(n,o){var u=Kr(o,Un(pd));return Ar(n,Y,t,o,u)}),A_=Pr(function(n,o){return Ar(n,z,t,t,t,o)});function P_(n,o){if(typeof n!="function")throw new Zt(c);return o=o===t?o:me(o),_e(n,o)}function D_(n,o){if(typeof n!="function")throw new Zt(c);return o=o==null?0:lt(me(o),0),_e(function(u){var f=u[o],h=en(u,0,o);return f&&Vr(h,f),jt(n,this,h)})}function I_(n,o,u){var f=!0,h=!0;if(typeof n!="function")throw new Zt(c);return Qe(u)&&(f="leading"in u?!!u.leading:f,h="trailing"in u?!!u.trailing:h),dd(n,o,{leading:f,maxWait:o,trailing:h})}function F_(n){return id(n,1)}function $_(n,o){return tu(ji(o),n)}function M_(){if(!arguments.length)return[];var n=arguments[0];return ve(n)?n:[n]}function N_(n){return er(n,E)}function L_(n,o){return o=typeof o=="function"?o:t,er(n,E,o)}function k_(n){return er(n,m|E)}function j_(n,o){return o=typeof o=="function"?o:t,er(n,m|E,o)}function B_(n,o){return o==null||Ql(n,o,pt(o))}function fr(n,o){return n===o||n!==n&&o!==o}var W_=Mo(Ri),U_=Mo(function(n,o){return n>=o}),xn=of(function(){return arguments}())?of:function(n){return rt(n)&&ke.call(n,"callee")&&!Gl.call(n,"callee")},ve=D.isArray,H_=Cl?Bt(Cl):Xy;function $t(n){return n!=null&&qo(n.length)&&!Ir(n)}function at(n){return rt(n)&&$t(n)}function q_(n){return n===!0||n===!1||rt(n)&&Rt(n)==ue}var tn=ay||du,G_=Rl?Bt(Rl):Zy;function z_(n){return rt(n)&&n.nodeType===1&&!Ra(n)}function Y_(n){if(n==null)return!0;if($t(n)&&(ve(n)||typeof n=="string"||typeof n.splice=="function"||tn(n)||Hn(n)||xn(n)))return!n.length;var o=_t(n);if(o==qe||o==Ct)return!n.size;if(xa(n))return!Pi(n).length;for(var u in n)if(ke.call(n,u))return!1;return!0}function V_(n,o){return Sa(n,o)}function K_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?Sa(n,o,t,u):!!f}function ru(n){if(!rt(n))return!1;var o=Rt(n);return o==K||o==ge||typeof n.message=="string"&&typeof n.name=="string"&&!Ra(n)}function J_(n){return typeof n=="number"&&Yl(n)}function Ir(n){if(!Qe(n))return!1;var o=Rt(n);return o==F||o==Ye||o==ce||o==Ks}function hd(n){return typeof n=="number"&&n==me(n)}function qo(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=nt}function Qe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function rt(n){return n!=null&&typeof n=="object"}var gd=Ol?Bt(Ol):e0;function X_(n,o){return n===o||Ai(n,o,zi(o))}function Z_(n,o,u){return u=typeof u=="function"?u:t,Ai(n,o,zi(o),u)}function Q_(n){return vd(n)&&n!=+n}function eE(n){if(L0(n))throw new pe(i);return sf(n)}function tE(n){return n===null}function rE(n){return n==null}function vd(n){return typeof n=="number"||rt(n)&&Rt(n)==yt}function Ra(n){if(!rt(n)||Rt(n)!=Vt)return!1;var o=mo(n);if(o===null)return!0;var u=ke.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&po.call(u)==Zm}var nu=Al?Bt(Al):t0;function nE(n){return hd(n)&&n>=-nt&&n<=nt}var md=Pl?Bt(Pl):r0;function Go(n){return typeof n=="string"||!ve(n)&&rt(n)&&Rt(n)==fn}function Ut(n){return typeof n=="symbol"||rt(n)&&Rt(n)==dn}var Hn=Dl?Bt(Dl):n0;function aE(n){return n===t}function oE(n){return rt(n)&&_t(n)==xr}function sE(n){return rt(n)&&Rt(n)==Js}var iE=Mo(Di),uE=Mo(function(n,o){return n<=o});function yd(n){if(!n)return[];if($t(n))return Go(n)?cr(n):Ft(n);if(ha&&n[ha])return Bm(n[ha]());var o=_t(n),u=o==qe?yi:o==Ct?co:qn;return u(n)}function Fr(n){if(!n)return n===0?n:0;if(n=nr(n),n===He||n===-He){var o=n<0?-1:1;return o*Yt}return n===n?n:0}function me(n){var o=Fr(n),u=o%1;return o===o?u?o-u:o:0}function bd(n){return n?En(me(n),0,G):0}function nr(n){if(typeof n=="number")return n;if(Ut(n))return W;if(Qe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Qe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ll(n);var u=no.test(n);return u||Gv.test(n)?wm(n.slice(2),u?2:8):zr.test(n)?W:+n}function _d(n){return br(n,Mt(n))}function cE(n){return n?En(me(n),-nt,nt):n===0?n:0}function De(n){return n==null?"":Wt(n)}var lE=Bn(function(n,o){if(xa(o)||$t(o)){br(o,pt(o),n);return}for(var u in o)ke.call(o,u)&&ba(n,u,o[u])}),Ed=Bn(function(n,o){br(o,Mt(o),n)}),zo=Bn(function(n,o,u,f){br(o,Mt(o),n,f)}),fE=Bn(function(n,o,u,f){br(o,pt(o),n,f)}),dE=Pr(Ti);function pE(n,o){var u=jn(n);return o==null?u:Zl(u,o)}var hE=_e(function(n,o){n=Ue(n);var u=-1,f=o.length,h=f>2?o[2]:t;for(h&&Ot(o[0],o[1],h)&&(f=1);++u<f;)for(var y=o[u],S=Mt(y),T=-1,A=S.length;++T<A;){var N=S[T],L=n[N];(L===t||fr(L,Nn[N])&&!ke.call(n,N))&&(n[N]=y[N])}return n}),gE=_e(function(n){return n.push(t,kf),jt(Sd,t,n)});function vE(n,o){return Fl(n,re(o,3),yr)}function mE(n,o){return Fl(n,re(o,3),Ci)}function yE(n,o){return n==null?n:xi(n,re(o,3),Mt)}function bE(n,o){return n==null?n:nf(n,re(o,3),Mt)}function _E(n,o){return n&&yr(n,re(o,3))}function EE(n,o){return n&&Ci(n,re(o,3))}function SE(n){return n==null?[]:Ro(n,pt(n))}function wE(n){return n==null?[]:Ro(n,Mt(n))}function au(n,o,u){var f=n==null?t:Sn(n,o);return f===t?u:f}function TE(n,o){return n!=null&&Wf(n,o,Yy)}function ou(n,o){return n!=null&&Wf(n,o,Vy)}var xE=Ff(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ho.call(o)),n[o]=u},iu(Nt)),CE=Ff(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ho.call(o)),ke.call(n,o)?n[o].push(u):n[o]=[u]},re),RE=_e(Ea);function pt(n){return $t(n)?Jl(n):Pi(n)}function Mt(n){return $t(n)?Jl(n,!0):a0(n)}function OE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,o(f,h,y),f)}),u}function AE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,h,o(f,h,y))}),u}var PE=Bn(function(n,o,u){Oo(n,o,u)}),Sd=Bn(function(n,o,u,f){Oo(n,o,u,f)}),DE=Pr(function(n,o){var u={};if(n==null)return u;var f=!1;o=Je(o,function(y){return y=Qr(y,n),f||(f=y.length>1),y}),br(n,qi(n),u),f&&(u=er(u,m|b|E,x0));for(var h=o.length;h--;)Ni(u,o[h]);return u});function IE(n,o){return wd(n,Ho(re(o)))}var FE=Pr(function(n,o){return n==null?{}:s0(n,o)});function wd(n,o){if(n==null)return{};var u=Je(qi(n),function(f){return[f]});return o=re(o),hf(n,u,function(f,h){return o(f,h[0])})}function $E(n,o,u){o=Qr(o,n);var f=-1,h=o.length;for(h||(h=1,n=t);++f<h;){var y=n==null?t:n[_r(o[f])];y===t&&(f=h,y=u),n=Ir(y)?y.call(n):y}return n}function ME(n,o,u){return n==null?n:wa(n,o,u)}function NE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:wa(n,o,u,f)}var Td=Nf(pt),xd=Nf(Mt);function LE(n,o,u){var f=ve(n),h=f||tn(n)||Hn(n);if(o=re(o,4),u==null){var y=n&&n.constructor;h?u=f?new y:[]:Qe(n)?u=Ir(y)?jn(mo(n)):{}:u={}}return(h?Xt:yr)(n,function(S,T,A){return o(u,S,T,A)}),u}function kE(n,o){return n==null?!0:Ni(n,o)}function jE(n,o,u){return n==null?n:bf(n,o,ji(u))}function BE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:bf(n,o,ji(u),f)}function qn(n){return n==null?[]:mi(n,pt(n))}function WE(n){return n==null?[]:mi(n,Mt(n))}function UE(n,o,u){return u===t&&(u=o,o=t),u!==t&&(u=nr(u),u=u===u?u:0),o!==t&&(o=nr(o),o=o===o?o:0),En(nr(n),o,u)}function HE(n,o,u){return o=Fr(o),u===t?(u=o,o=0):u=Fr(u),n=nr(n),Ky(n,o,u)}function qE(n,o,u){if(u&&typeof u!="boolean"&&Ot(n,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof n=="boolean"&&(u=n,n=t)),n===t&&o===t?(n=0,o=1):(n=Fr(n),o===t?(o=n,n=0):o=Fr(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var h=Vl();return bt(n+h*(o-n+Sm("1e-"+((h+"").length-1))),o)}return Fi(n,o)}var GE=Wn(function(n,o,u){return o=o.toLowerCase(),n+(u?Cd(o):o)});function Cd(n){return su(De(n).toLowerCase())}function Rd(n){return n=De(n),n&&n.replace(Yv,Mm).replace(dm,"")}function zE(n,o,u){n=De(n),o=Wt(o);var f=n.length;u=u===t?f:En(me(u),0,f);var h=u;return u-=o.length,u>=0&&n.slice(u,h)==o}function YE(n){return n=De(n),n&&Zs.test(n)?n.replace(da,Nm):n}function VE(n){return n=De(n),n&&U.test(n)?n.replace(w,"\\$&"):n}var KE=Wn(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),JE=Wn(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),XE=Pf("toLowerCase");function ZE(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;if(!o||f>=o)return n;var h=(o-f)/2;return $o(Eo(h),u)+n+$o(_o(h),u)}function QE(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?n+$o(o-f,u):n}function e1(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?$o(o-f,u)+n:n}function t1(n,o,u){return u||o==null?o=0:o&&(o=+o),uy(De(n).replace(J,""),o||0)}function r1(n,o,u){return(u?Ot(n,o,u):o===t)?o=1:o=me(o),$i(De(n),o)}function n1(){var n=arguments,o=De(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var a1=Wn(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function o1(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=t),u=u===t?G:u>>>0,u?(n=De(n),n&&(typeof o=="string"||o!=null&&!nu(o))&&(o=Wt(o),!o&&Fn(n))?en(cr(n),0,u):n.split(o,u)):[]}var s1=Wn(function(n,o,u){return n+(u?" ":"")+su(o)});function i1(n,o,u){return n=De(n),u=u==null?0:En(me(u),0,n.length),o=Wt(o),n.slice(u,u+o.length)==o}function u1(n,o,u){var f=v.templateSettings;u&&Ot(n,o,u)&&(o=t),n=De(n),o=zo({},o,f,Lf);var h=zo({},o.imports,f.imports,Lf),y=pt(h),S=mi(h,y),T,A,N=0,L=o.interpolate||ao,B="__p += '",V=bi((o.escape||ao).source+"|"+L.source+"|"+(L===ro?tt:ao).source+"|"+(o.evaluate||ao).source+"|$","g"),ee="//# sourceURL="+(ke.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mm+"]")+`
|
|
18
|
+
`;n.replace(V,function(oe,Se,Ce,Ht,At,qt){return Ce||(Ce=Ht),B+=n.slice(N,qt).replace(Vv,Lm),Se&&(T=!0,B+=`' +
|
|
19
19
|
__e(`+Se+`) +
|
|
20
20
|
'`),At&&(A=!0,B+=`';
|
|
21
21
|
`+At+`;
|
|
@@ -25,70 +25,70 @@ __p += '`),Ce&&(B+=`' +
|
|
|
25
25
|
`;var ae=ke.call(o,"variable")&&o.variable;if(!ae)B=`with (obj) {
|
|
26
26
|
`+B+`
|
|
27
27
|
}
|
|
28
|
-
`;else if(ht.test(ae))throw new pe(l);B=(A?B.replace(
|
|
28
|
+
`;else if(ht.test(ae))throw new pe(l);B=(A?B.replace(Xa,""):B).replace(Xs,"$1").replace(Za,"$1;"),B="function("+(ae||"obj")+`) {
|
|
29
29
|
`+(ae?"":`obj || (obj = {});
|
|
30
30
|
`)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(A?`, __j = Array.prototype.join;
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+B+`return __p
|
|
34
|
-
}`;var be=Dd(function(){return Oe(y,ee+"return "+B).apply(t,S)});if(be.source=B,nu(be))throw be;return be}function p1(n){return De(n).toLowerCase()}function h1(n){return De(n).toUpperCase()}function g1(n,o,u){if(n=De(n),n&&(u||o===t))return jl(n);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=cr(o),y=Bl(f,h),S=Wl(f,h)+1;return en(f,y,S).join("")}function v1(n,o,u){if(n=De(n),n&&(u||o===t))return n.slice(0,Hl(n)+1);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=Wl(f,cr(o))+1;return en(f,0,h).join("")}function m1(n,o,u){if(n=De(n),n&&(u||o===t))return n.replace(J,"");if(!n||!(o=Wt(o)))return n;var f=cr(n),h=Bl(f,cr(o));return en(f,h).join("")}function y1(n,o){var u=We,f=Te;if(Qe(o)){var h="separator"in o?o.separator:h;u="length"in o?me(o.length):u,f="omission"in o?Wt(o.omission):f}n=De(n);var y=n.length;if(Fn(n)){var S=cr(n);y=S.length}if(u>=y)return n;var T=u-$n(f);if(T<1)return f;var A=S?en(S,0,T).join(""):n.slice(0,T);if(h===t)return A+f;if(S&&(T+=A.length-T),au(h)){if(n.slice(T).search(h)){var N,L=A;for(h.global||(h=_i(h.source,De(Kt.exec(h))+"g")),h.lastIndex=0;N=h.exec(L);)var B=N.index;A=A.slice(0,B===t?T:B)}}else if(n.indexOf(Wt(h),T)!=T){var V=A.lastIndexOf(h);V>-1&&(A=A.slice(0,V))}return A+f}function b1(n){return n=De(n),n&&to.test(n)?n.replace(eo,Vm):n}var _1=Wn(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),iu=If("toUpperCase");function Pd(n,o,u){return n=De(n),o=u?t:o,o===t?Hm(n)?Xm(n):$m(n):n.match(o)||[]}var Dd=_e(function(n,o){try{return jt(n,t,o)}catch(u){return nu(u)?u:new pe(u)}}),E1=Pr(function(n,o){return Xt(o,function(u){u=_r(u),Or(n,u,tu(n[u],n))}),n});function S1(n){var o=n==null?0:n.length,u=re();return n=o?Je(n,function(f){if(typeof f[1]!="function")throw new Zt(c);return[u(f[0]),f[1]]}):[],_e(function(f){for(var h=-1;++h<o;){var y=n[h];if(jt(y[0],this,f))return jt(y[1],this,f)}})}function w1(n){return Vy(er(n,m))}function uu(n){return function(){return n}}function T1(n,o){return n==null||n!==n?o:n}var x1=$f(),C1=$f(!0);function Nt(n){return n}function cu(n){return lf(typeof n=="function"?n:er(n,m))}function R1(n){return df(er(n,m))}function O1(n,o){return pf(n,er(o,m))}var A1=_e(function(n,o){return function(u){return wa(u,n,o)}}),P1=_e(function(n,o){return function(u){return wa(n,u,o)}});function lu(n,o,u){var f=pt(o),h=Oo(o,f);u==null&&!(Qe(o)&&(h.length||!f.length))&&(u=o,o=n,n=this,h=Oo(o,pt(o)));var y=!(Qe(u)&&"chain"in u)||!!u.chain,S=Ir(n);return Xt(h,function(T){var A=o[T];n[T]=A,S&&(n.prototype[T]=function(){var N=this.__chain__;if(y||N){var L=n(this.__wrapped__),B=L.__actions__=Ft(this.__actions__);return B.push({func:A,args:arguments,thisArg:n}),L.__chain__=N,L}return A.apply(n,Vr([this.value()],arguments))})}),n}function D1(){return gt._===this&&(gt._=ny),this}function fu(){}function I1(n){return n=me(n),_e(function(o){return hf(o,n)})}var F1=Ui(Je),$1=Ui($l),M1=Ui(pi);function Id(n){return Ki(n)?hi(_r(n)):fb(n)}function N1(n){return function(o){return n==null?t:Sn(n,o)}}var L1=Nf(),k1=Nf(!0);function du(){return[]}function pu(){return!1}function j1(){return{}}function B1(){return""}function W1(){return!0}function U1(n,o){if(n=me(n),n<1||n>nt)return[];var u=G,f=bt(n,G);o=re(o),n-=G;for(var h=mi(f,o);++u<n;)o(u);return h}function H1(n){return ve(n)?Je(n,_r):Ut(n)?[n]:Ft(Zf(De(n)))}function q1(n){var o=++ty;return De(n)+o}var G1=$o(function(n,o){return n+o},0),z1=Hi("ceil"),Y1=$o(function(n,o){return n/o},1),V1=Hi("floor");function K1(n){return n&&n.length?Ro(n,Nt,Oi):t}function J1(n,o){return n&&n.length?Ro(n,re(o,2),Oi):t}function X1(n){return Ll(n,Nt)}function Z1(n,o){return Ll(n,re(o,2))}function Q1(n){return n&&n.length?Ro(n,Nt,Ii):t}function eS(n,o){return n&&n.length?Ro(n,re(o,2),Ii):t}var tS=$o(function(n,o){return n*o},1),rS=Hi("round"),nS=$o(function(n,o){return n-o},0);function aS(n){return n&&n.length?vi(n,Nt):0}function oS(n,o){return n&&n.length?vi(n,re(o,2)):0}return v.after=R_,v.ary=cd,v.assign=hE,v.assignIn=wd,v.assignInWith=Yo,v.assignWith=gE,v.at=vE,v.before=ld,v.bind=tu,v.bindAll=E1,v.bindKey=fd,v.castArray=j_,v.chain=sd,v.chunk=Vb,v.compact=Kb,v.concat=Jb,v.cond=S1,v.conforms=w1,v.constant=uu,v.countBy=a_,v.create=mE,v.curry=dd,v.curryRight=pd,v.debounce=hd,v.defaults=yE,v.defaultsDeep=bE,v.defer=O_,v.delay=A_,v.difference=Xb,v.differenceBy=Zb,v.differenceWith=Qb,v.drop=e0,v.dropRight=t0,v.dropRightWhile=r0,v.dropWhile=n0,v.fill=a0,v.filter=s_,v.flatMap=c_,v.flatMapDeep=l_,v.flatMapDepth=f_,v.flatten=rd,v.flattenDeep=o0,v.flattenDepth=s0,v.flip=P_,v.flow=x1,v.flowRight=C1,v.fromPairs=i0,v.functions=CE,v.functionsIn=RE,v.groupBy=d_,v.initial=c0,v.intersection=l0,v.intersectionBy=f0,v.intersectionWith=d0,v.invert=AE,v.invertBy=PE,v.invokeMap=h_,v.iteratee=cu,v.keyBy=g_,v.keys=pt,v.keysIn=Mt,v.map=Wo,v.mapKeys=IE,v.mapValues=FE,v.matches=R1,v.matchesProperty=O1,v.memoize=Ho,v.merge=$E,v.mergeWith=Td,v.method=A1,v.methodOf=P1,v.mixin=lu,v.negate=qo,v.nthArg=I1,v.omit=ME,v.omitBy=NE,v.once=D_,v.orderBy=v_,v.over=F1,v.overArgs=I_,v.overEvery=$1,v.overSome=M1,v.partial=ru,v.partialRight=gd,v.partition=m_,v.pick=LE,v.pickBy=xd,v.property=Id,v.propertyOf=N1,v.pull=v0,v.pullAll=ad,v.pullAllBy=m0,v.pullAllWith=y0,v.pullAt=b0,v.range=L1,v.rangeRight=k1,v.rearg=F_,v.reject=__,v.remove=_0,v.rest=$_,v.reverse=Qi,v.sampleSize=S_,v.set=jE,v.setWith=BE,v.shuffle=w_,v.slice=E0,v.sortBy=C_,v.sortedUniq=O0,v.sortedUniqBy=A0,v.split=c1,v.spread=M_,v.tail=P0,v.take=D0,v.takeRight=I0,v.takeRightWhile=F0,v.takeWhile=$0,v.tap=K0,v.throttle=N_,v.thru=Bo,v.toArray=_d,v.toPairs=Cd,v.toPairsIn=Rd,v.toPath=H1,v.toPlainObject=Sd,v.transform=WE,v.unary=L_,v.union=M0,v.unionBy=N0,v.unionWith=L0,v.uniq=k0,v.uniqBy=j0,v.uniqWith=B0,v.unset=UE,v.unzip=eu,v.unzipWith=od,v.update=HE,v.updateWith=qE,v.values=qn,v.valuesIn=GE,v.without=W0,v.words=Pd,v.wrap=k_,v.xor=U0,v.xorBy=H0,v.xorWith=q0,v.zip=G0,v.zipObject=z0,v.zipObjectDeep=Y0,v.zipWith=V0,v.entries=Cd,v.entriesIn=Rd,v.extend=wd,v.extendWith=Yo,lu(v,v),v.add=G1,v.attempt=Dd,v.camelCase=KE,v.capitalize=Od,v.ceil=z1,v.clamp=zE,v.clone=B_,v.cloneDeep=U_,v.cloneDeepWith=H_,v.cloneWith=W_,v.conformsTo=q_,v.deburr=Ad,v.defaultTo=T1,v.divide=Y1,v.endsWith=JE,v.eq=fr,v.escape=XE,v.escapeRegExp=ZE,v.every=o_,v.find=i_,v.findIndex=ed,v.findKey=_E,v.findLast=u_,v.findLastIndex=td,v.findLastKey=EE,v.floor=V1,v.forEach=id,v.forEachRight=ud,v.forIn=SE,v.forInRight=wE,v.forOwn=TE,v.forOwnRight=xE,v.get=ou,v.gt=G_,v.gte=z_,v.has=OE,v.hasIn=su,v.head=nd,v.identity=Nt,v.includes=p_,v.indexOf=u0,v.inRange=YE,v.invoke=DE,v.isArguments=xn,v.isArray=ve,v.isArrayBuffer=Y_,v.isArrayLike=$t,v.isArrayLikeObject=at,v.isBoolean=V_,v.isBuffer=tn,v.isDate=K_,v.isElement=J_,v.isEmpty=X_,v.isEqual=Z_,v.isEqualWith=Q_,v.isError=nu,v.isFinite=eE,v.isFunction=Ir,v.isInteger=vd,v.isLength=Go,v.isMap=md,v.isMatch=tE,v.isMatchWith=rE,v.isNaN=nE,v.isNative=aE,v.isNil=sE,v.isNull=oE,v.isNumber=yd,v.isObject=Qe,v.isObjectLike=rt,v.isPlainObject=Aa,v.isRegExp=au,v.isSafeInteger=iE,v.isSet=bd,v.isString=zo,v.isSymbol=Ut,v.isTypedArray=Hn,v.isUndefined=uE,v.isWeakMap=cE,v.isWeakSet=lE,v.join=p0,v.kebabCase=QE,v.last=rr,v.lastIndexOf=h0,v.lowerCase=e1,v.lowerFirst=t1,v.lt=fE,v.lte=dE,v.max=K1,v.maxBy=J1,v.mean=X1,v.meanBy=Z1,v.min=Q1,v.minBy=eS,v.stubArray=du,v.stubFalse=pu,v.stubObject=j1,v.stubString=B1,v.stubTrue=W1,v.multiply=tS,v.nth=g0,v.noConflict=D1,v.noop=fu,v.now=Uo,v.pad=r1,v.padEnd=n1,v.padStart=a1,v.parseInt=o1,v.random=VE,v.reduce=y_,v.reduceRight=b_,v.repeat=s1,v.replace=i1,v.result=kE,v.round=rS,v.runInContext=R,v.sample=E_,v.size=T_,v.snakeCase=u1,v.some=x_,v.sortedIndex=S0,v.sortedIndexBy=w0,v.sortedIndexOf=T0,v.sortedLastIndex=x0,v.sortedLastIndexBy=C0,v.sortedLastIndexOf=R0,v.startCase=l1,v.startsWith=f1,v.subtract=nS,v.sum=aS,v.sumBy=oS,v.template=d1,v.times=U1,v.toFinite=Fr,v.toInteger=me,v.toLength=Ed,v.toLower=p1,v.toNumber=nr,v.toSafeInteger=pE,v.toString=De,v.toUpper=h1,v.trim=g1,v.trimEnd=v1,v.trimStart=m1,v.truncate=y1,v.unescape=b1,v.uniqueId=q1,v.upperCase=_1,v.upperFirst=iu,v.each=id,v.eachRight=ud,v.first=nd,lu(v,function(){var n={};return yr(v,function(o,u){ke.call(v.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),v.VERSION=a,Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),Xt(["drop","take"],function(n,o){we.prototype[n]=function(u){u=u===t?1:lt(me(u),0);var f=this.__filtered__&&!o?new we(this):this.clone();return f.__filtered__?f.__takeCount__=bt(u,f.__takeCount__):f.__views__.push({size:bt(u,G),type:n+(f.__dir__<0?"Right":"")}),f},we.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Xt(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==Pe||u==et;we.prototype[n]=function(h){var y=this.clone();return y.__iteratees__.push({iteratee:re(h,3),type:u}),y.__filtered__=y.__filtered__||f,y}}),Xt(["head","last"],function(n,o){var u="take"+(o?"Right":"");we.prototype[n]=function(){return this[u](1).value()[0]}}),Xt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");we.prototype[n]=function(){return this.__filtered__?new we(this):this[u](1)}}),we.prototype.compact=function(){return this.filter(Nt)},we.prototype.find=function(n){return this.filter(n).head()},we.prototype.findLast=function(n){return this.reverse().find(n)},we.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new we(this):this.map(function(u){return wa(u,n,o)})}),we.prototype.reject=function(n){return this.filter(qo(re(n)))},we.prototype.slice=function(n,o){n=me(n);var u=this;return u.__filtered__&&(n>0||o<0)?new we(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==t&&(o=me(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},we.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},we.prototype.toArray=function(){return this.take(G)},yr(we.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),h=v[f?"take"+(o=="last"?"Right":""):o],y=f||/^find/.test(o);h&&(v.prototype[o]=function(){var S=this.__wrapped__,T=f?[1]:arguments,A=S instanceof we,N=T[0],L=A||ve(S),B=function(Se){var Ce=h.apply(v,Vr([Se],T));return f&&V?Ce[0]:Ce};L&&u&&typeof N=="function"&&N.length!=1&&(A=L=!1);var V=this.__chain__,ee=!!this.__actions__.length,ae=y&&!V,be=A&&!ee;if(!y&&L){S=be?S:new we(this);var oe=n.apply(S,T);return oe.__actions__.push({func:Bo,args:[B],thisArg:t}),new Qt(oe,V)}return ae&&be?n.apply(this,T):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(n){var o=fo[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var h=arguments;if(f&&!this.__chain__){var y=this.value();return o.apply(ve(y)?y:[],h)}return this[u](function(S){return o.apply(ve(S)?S:[],h)})}}),yr(we.prototype,function(n,o){var u=v[o];if(u){var f=u.name+"";ke.call(kn,f)||(kn[f]=[]),kn[f].push({name:o,func:u})}}),kn[Fo(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=by,we.prototype.reverse=_y,we.prototype.value=Ey,v.prototype.at=J0,v.prototype.chain=X0,v.prototype.commit=Z0,v.prototype.next=Q0,v.prototype.plant=t_,v.prototype.reverse=r_,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=n_,v.prototype.first=v.prototype.head,va&&(v.prototype[va]=e_),v},Mn=Zm();mn?((mn.exports=Mn)._=Mn,ci._=Mn):gt._=Mn}).call(Mr)})(ys,ys.exports);var ze=ys.exports;const Dh=Ps(ze);function Fc(e){return`Debugger/${e}`}function Ih(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}var rc={exports:{}},Ko={exports:{}},Ie={};/** @license React v16.13.1
|
|
34
|
+
}`;var be=Ad(function(){return Oe(y,ee+"return "+B).apply(t,S)});if(be.source=B,ru(be))throw be;return be}function c1(n){return De(n).toLowerCase()}function l1(n){return De(n).toUpperCase()}function f1(n,o,u){if(n=De(n),n&&(u||o===t))return Ll(n);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=cr(o),y=kl(f,h),S=jl(f,h)+1;return en(f,y,S).join("")}function d1(n,o,u){if(n=De(n),n&&(u||o===t))return n.slice(0,Wl(n)+1);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=jl(f,cr(o))+1;return en(f,0,h).join("")}function p1(n,o,u){if(n=De(n),n&&(u||o===t))return n.replace(J,"");if(!n||!(o=Wt(o)))return n;var f=cr(n),h=kl(f,cr(o));return en(f,h).join("")}function h1(n,o){var u=We,f=Te;if(Qe(o)){var h="separator"in o?o.separator:h;u="length"in o?me(o.length):u,f="omission"in o?Wt(o.omission):f}n=De(n);var y=n.length;if(Fn(n)){var S=cr(n);y=S.length}if(u>=y)return n;var T=u-$n(f);if(T<1)return f;var A=S?en(S,0,T).join(""):n.slice(0,T);if(h===t)return A+f;if(S&&(T+=A.length-T),nu(h)){if(n.slice(T).search(h)){var N,L=A;for(h.global||(h=bi(h.source,De(Kt.exec(h))+"g")),h.lastIndex=0;N=h.exec(L);)var B=N.index;A=A.slice(0,B===t?T:B)}}else if(n.indexOf(Wt(h),T)!=T){var V=A.lastIndexOf(h);V>-1&&(A=A.slice(0,V))}return A+f}function g1(n){return n=De(n),n&&eo.test(n)?n.replace(Qa,qm):n}var v1=Wn(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),su=Pf("toUpperCase");function Od(n,o,u){return n=De(n),o=u?t:o,o===t?jm(n)?Ym(n):Pm(n):n.match(o)||[]}var Ad=_e(function(n,o){try{return jt(n,t,o)}catch(u){return ru(u)?u:new pe(u)}}),m1=Pr(function(n,o){return Xt(o,function(u){u=_r(u),Or(n,u,eu(n[u],n))}),n});function y1(n){var o=n==null?0:n.length,u=re();return n=o?Je(n,function(f){if(typeof f[1]!="function")throw new Zt(c);return[u(f[0]),f[1]]}):[],_e(function(f){for(var h=-1;++h<o;){var y=n[h];if(jt(y[0],this,f))return jt(y[1],this,f)}})}function b1(n){return qy(er(n,m))}function iu(n){return function(){return n}}function _1(n,o){return n==null||n!==n?o:n}var E1=If(),S1=If(!0);function Nt(n){return n}function uu(n){return uf(typeof n=="function"?n:er(n,m))}function w1(n){return lf(er(n,m))}function T1(n,o){return ff(n,er(o,m))}var x1=_e(function(n,o){return function(u){return Ea(u,n,o)}}),C1=_e(function(n,o){return function(u){return Ea(n,u,o)}});function cu(n,o,u){var f=pt(o),h=Ro(o,f);u==null&&!(Qe(o)&&(h.length||!f.length))&&(u=o,o=n,n=this,h=Ro(o,pt(o)));var y=!(Qe(u)&&"chain"in u)||!!u.chain,S=Ir(n);return Xt(h,function(T){var A=o[T];n[T]=A,S&&(n.prototype[T]=function(){var N=this.__chain__;if(y||N){var L=n(this.__wrapped__),B=L.__actions__=Ft(this.__actions__);return B.push({func:A,args:arguments,thisArg:n}),L.__chain__=N,L}return A.apply(n,Vr([this.value()],arguments))})}),n}function R1(){return gt._===this&&(gt._=Qm),this}function lu(){}function O1(n){return n=me(n),_e(function(o){return df(o,n)})}var A1=Wi(Je),P1=Wi(Il),D1=Wi(di);function Pd(n){return Vi(n)?pi(_r(n)):i0(n)}function I1(n){return function(o){return n==null?t:Sn(n,o)}}var F1=$f(),$1=$f(!0);function fu(){return[]}function du(){return!1}function M1(){return{}}function N1(){return""}function L1(){return!0}function k1(n,o){if(n=me(n),n<1||n>nt)return[];var u=G,f=bt(n,G);o=re(o),n-=G;for(var h=vi(f,o);++u<n;)o(u);return h}function j1(n){return ve(n)?Je(n,_r):Ut(n)?[n]:Ft(Jf(De(n)))}function B1(n){var o=++Xm;return De(n)+o}var W1=Fo(function(n,o){return n+o},0),U1=Ui("ceil"),H1=Fo(function(n,o){return n/o},1),q1=Ui("floor");function G1(n){return n&&n.length?Co(n,Nt,Ri):t}function z1(n,o){return n&&n.length?Co(n,re(o,2),Ri):t}function Y1(n){return Ml(n,Nt)}function V1(n,o){return Ml(n,re(o,2))}function K1(n){return n&&n.length?Co(n,Nt,Di):t}function J1(n,o){return n&&n.length?Co(n,re(o,2),Di):t}var X1=Fo(function(n,o){return n*o},1),Z1=Ui("round"),Q1=Fo(function(n,o){return n-o},0);function eS(n){return n&&n.length?gi(n,Nt):0}function tS(n,o){return n&&n.length?gi(n,re(o,2)):0}return v.after=w_,v.ary=id,v.assign=lE,v.assignIn=Ed,v.assignInWith=zo,v.assignWith=fE,v.at=dE,v.before=ud,v.bind=eu,v.bindAll=m1,v.bindKey=cd,v.castArray=M_,v.chain=ad,v.chunk=q0,v.compact=G0,v.concat=z0,v.cond=y1,v.conforms=b1,v.constant=iu,v.countBy=e_,v.create=pE,v.curry=ld,v.curryRight=fd,v.debounce=dd,v.defaults=hE,v.defaultsDeep=gE,v.defer=T_,v.delay=x_,v.difference=Y0,v.differenceBy=V0,v.differenceWith=K0,v.drop=J0,v.dropRight=X0,v.dropRightWhile=Z0,v.dropWhile=Q0,v.fill=eb,v.filter=r_,v.flatMap=o_,v.flatMapDeep=s_,v.flatMapDepth=i_,v.flatten=ed,v.flattenDeep=tb,v.flattenDepth=rb,v.flip=C_,v.flow=E1,v.flowRight=S1,v.fromPairs=nb,v.functions=SE,v.functionsIn=wE,v.groupBy=u_,v.initial=ob,v.intersection=sb,v.intersectionBy=ib,v.intersectionWith=ub,v.invert=xE,v.invertBy=CE,v.invokeMap=l_,v.iteratee=uu,v.keyBy=f_,v.keys=pt,v.keysIn=Mt,v.map=Bo,v.mapKeys=OE,v.mapValues=AE,v.matches=w1,v.matchesProperty=T1,v.memoize=Uo,v.merge=PE,v.mergeWith=Sd,v.method=x1,v.methodOf=C1,v.mixin=cu,v.negate=Ho,v.nthArg=O1,v.omit=DE,v.omitBy=IE,v.once=R_,v.orderBy=d_,v.over=A1,v.overArgs=O_,v.overEvery=P1,v.overSome=D1,v.partial=tu,v.partialRight=pd,v.partition=p_,v.pick=FE,v.pickBy=wd,v.property=Pd,v.propertyOf=I1,v.pull=db,v.pullAll=rd,v.pullAllBy=pb,v.pullAllWith=hb,v.pullAt=gb,v.range=F1,v.rangeRight=$1,v.rearg=A_,v.reject=v_,v.remove=vb,v.rest=P_,v.reverse=Zi,v.sampleSize=y_,v.set=ME,v.setWith=NE,v.shuffle=b_,v.slice=mb,v.sortBy=S_,v.sortedUniq=Tb,v.sortedUniqBy=xb,v.split=o1,v.spread=D_,v.tail=Cb,v.take=Rb,v.takeRight=Ob,v.takeRightWhile=Ab,v.takeWhile=Pb,v.tap=Gb,v.throttle=I_,v.thru=jo,v.toArray=yd,v.toPairs=Td,v.toPairsIn=xd,v.toPath=j1,v.toPlainObject=_d,v.transform=LE,v.unary=F_,v.union=Db,v.unionBy=Ib,v.unionWith=Fb,v.uniq=$b,v.uniqBy=Mb,v.uniqWith=Nb,v.unset=kE,v.unzip=Qi,v.unzipWith=nd,v.update=jE,v.updateWith=BE,v.values=qn,v.valuesIn=WE,v.without=Lb,v.words=Od,v.wrap=$_,v.xor=kb,v.xorBy=jb,v.xorWith=Bb,v.zip=Wb,v.zipObject=Ub,v.zipObjectDeep=Hb,v.zipWith=qb,v.entries=Td,v.entriesIn=xd,v.extend=Ed,v.extendWith=zo,cu(v,v),v.add=W1,v.attempt=Ad,v.camelCase=GE,v.capitalize=Cd,v.ceil=U1,v.clamp=UE,v.clone=N_,v.cloneDeep=k_,v.cloneDeepWith=j_,v.cloneWith=L_,v.conformsTo=B_,v.deburr=Rd,v.defaultTo=_1,v.divide=H1,v.endsWith=zE,v.eq=fr,v.escape=YE,v.escapeRegExp=VE,v.every=t_,v.find=n_,v.findIndex=Zf,v.findKey=vE,v.findLast=a_,v.findLastIndex=Qf,v.findLastKey=mE,v.floor=q1,v.forEach=od,v.forEachRight=sd,v.forIn=yE,v.forInRight=bE,v.forOwn=_E,v.forOwnRight=EE,v.get=au,v.gt=W_,v.gte=U_,v.has=TE,v.hasIn=ou,v.head=td,v.identity=Nt,v.includes=c_,v.indexOf=ab,v.inRange=HE,v.invoke=RE,v.isArguments=xn,v.isArray=ve,v.isArrayBuffer=H_,v.isArrayLike=$t,v.isArrayLikeObject=at,v.isBoolean=q_,v.isBuffer=tn,v.isDate=G_,v.isElement=z_,v.isEmpty=Y_,v.isEqual=V_,v.isEqualWith=K_,v.isError=ru,v.isFinite=J_,v.isFunction=Ir,v.isInteger=hd,v.isLength=qo,v.isMap=gd,v.isMatch=X_,v.isMatchWith=Z_,v.isNaN=Q_,v.isNative=eE,v.isNil=rE,v.isNull=tE,v.isNumber=vd,v.isObject=Qe,v.isObjectLike=rt,v.isPlainObject=Ra,v.isRegExp=nu,v.isSafeInteger=nE,v.isSet=md,v.isString=Go,v.isSymbol=Ut,v.isTypedArray=Hn,v.isUndefined=aE,v.isWeakMap=oE,v.isWeakSet=sE,v.join=cb,v.kebabCase=KE,v.last=rr,v.lastIndexOf=lb,v.lowerCase=JE,v.lowerFirst=XE,v.lt=iE,v.lte=uE,v.max=G1,v.maxBy=z1,v.mean=Y1,v.meanBy=V1,v.min=K1,v.minBy=J1,v.stubArray=fu,v.stubFalse=du,v.stubObject=M1,v.stubString=N1,v.stubTrue=L1,v.multiply=X1,v.nth=fb,v.noConflict=R1,v.noop=lu,v.now=Wo,v.pad=ZE,v.padEnd=QE,v.padStart=e1,v.parseInt=t1,v.random=qE,v.reduce=h_,v.reduceRight=g_,v.repeat=r1,v.replace=n1,v.result=$E,v.round=Z1,v.runInContext=R,v.sample=m_,v.size=__,v.snakeCase=a1,v.some=E_,v.sortedIndex=yb,v.sortedIndexBy=bb,v.sortedIndexOf=_b,v.sortedLastIndex=Eb,v.sortedLastIndexBy=Sb,v.sortedLastIndexOf=wb,v.startCase=s1,v.startsWith=i1,v.subtract=Q1,v.sum=eS,v.sumBy=tS,v.template=u1,v.times=k1,v.toFinite=Fr,v.toInteger=me,v.toLength=bd,v.toLower=c1,v.toNumber=nr,v.toSafeInteger=cE,v.toString=De,v.toUpper=l1,v.trim=f1,v.trimEnd=d1,v.trimStart=p1,v.truncate=h1,v.unescape=g1,v.uniqueId=B1,v.upperCase=v1,v.upperFirst=su,v.each=od,v.eachRight=sd,v.first=td,cu(v,function(){var n={};return yr(v,function(o,u){ke.call(v.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),v.VERSION=a,Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),Xt(["drop","take"],function(n,o){we.prototype[n]=function(u){u=u===t?1:lt(me(u),0);var f=this.__filtered__&&!o?new we(this):this.clone();return f.__filtered__?f.__takeCount__=bt(u,f.__takeCount__):f.__views__.push({size:bt(u,G),type:n+(f.__dir__<0?"Right":"")}),f},we.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Xt(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==Pe||u==et;we.prototype[n]=function(h){var y=this.clone();return y.__iteratees__.push({iteratee:re(h,3),type:u}),y.__filtered__=y.__filtered__||f,y}}),Xt(["head","last"],function(n,o){var u="take"+(o?"Right":"");we.prototype[n]=function(){return this[u](1).value()[0]}}),Xt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");we.prototype[n]=function(){return this.__filtered__?new we(this):this[u](1)}}),we.prototype.compact=function(){return this.filter(Nt)},we.prototype.find=function(n){return this.filter(n).head()},we.prototype.findLast=function(n){return this.reverse().find(n)},we.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new we(this):this.map(function(u){return Ea(u,n,o)})}),we.prototype.reject=function(n){return this.filter(Ho(re(n)))},we.prototype.slice=function(n,o){n=me(n);var u=this;return u.__filtered__&&(n>0||o<0)?new we(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==t&&(o=me(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},we.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},we.prototype.toArray=function(){return this.take(G)},yr(we.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),h=v[f?"take"+(o=="last"?"Right":""):o],y=f||/^find/.test(o);h&&(v.prototype[o]=function(){var S=this.__wrapped__,T=f?[1]:arguments,A=S instanceof we,N=T[0],L=A||ve(S),B=function(Se){var Ce=h.apply(v,Vr([Se],T));return f&&V?Ce[0]:Ce};L&&u&&typeof N=="function"&&N.length!=1&&(A=L=!1);var V=this.__chain__,ee=!!this.__actions__.length,ae=y&&!V,be=A&&!ee;if(!y&&L){S=be?S:new we(this);var oe=n.apply(S,T);return oe.__actions__.push({func:jo,args:[B],thisArg:t}),new Qt(oe,V)}return ae&&be?n.apply(this,T):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(n){var o=lo[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var h=arguments;if(f&&!this.__chain__){var y=this.value();return o.apply(ve(y)?y:[],h)}return this[u](function(S){return o.apply(ve(S)?S:[],h)})}}),yr(we.prototype,function(n,o){var u=v[o];if(u){var f=u.name+"";ke.call(kn,f)||(kn[f]=[]),kn[f].push({name:o,func:u})}}),kn[Io(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=gy,we.prototype.reverse=vy,we.prototype.value=my,v.prototype.at=zb,v.prototype.chain=Yb,v.prototype.commit=Vb,v.prototype.next=Kb,v.prototype.plant=Xb,v.prototype.reverse=Zb,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=Qb,v.prototype.first=v.prototype.head,ha&&(v.prototype[ha]=Jb),v},Mn=Vm();mn?((mn.exports=Mn)._=Mn,ui._=Mn):gt._=Mn}).call(Nr)})(vs,vs.exports);var ze=vs.exports;const Oh=Os(ze);function Dc(e){return`Debugger/${e}`}function Ah(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}var ec={exports:{}},Vo={exports:{}},Ie={};/** @license React v16.13.1
|
|
35
35
|
* react-is.production.min.js
|
|
36
36
|
*
|
|
37
37
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
41
|
+
*/var pp;function CR(){if(pp)return Ie;pp=1;var e=typeof Symbol=="function"&&Symbol.for,r=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,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function M(O){if(typeof O=="object"&&O!==null){var Y=O.$$typeof;switch(Y){case r:switch(O=O.type,O){case d:case p:case a:case i:case s:case m:return O;default:switch(O=O&&O.$$typeof,O){case l:case g:case x:case E:case c:return O;default:return Y}}case t:return Y}}}function k(O){return M(O)===p}return Ie.AsyncMode=d,Ie.ConcurrentMode=p,Ie.ContextConsumer=l,Ie.ContextProvider=c,Ie.Element=r,Ie.ForwardRef=g,Ie.Fragment=a,Ie.Lazy=x,Ie.Memo=E,Ie.Portal=t,Ie.Profiler=i,Ie.StrictMode=s,Ie.Suspense=m,Ie.isAsyncMode=function(O){return k(O)||M(O)===d},Ie.isConcurrentMode=k,Ie.isContextConsumer=function(O){return M(O)===l},Ie.isContextProvider=function(O){return M(O)===c},Ie.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===r},Ie.isForwardRef=function(O){return M(O)===g},Ie.isFragment=function(O){return M(O)===a},Ie.isLazy=function(O){return M(O)===x},Ie.isMemo=function(O){return M(O)===E},Ie.isPortal=function(O){return M(O)===t},Ie.isProfiler=function(O){return M(O)===i},Ie.isStrictMode=function(O){return M(O)===s},Ie.isSuspense=function(O){return M(O)===m},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===m||O===b||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===E||O.$$typeof===c||O.$$typeof===l||O.$$typeof===g||O.$$typeof===I||O.$$typeof===P||O.$$typeof===j||O.$$typeof===C)},Ie.typeOf=M,Ie}var Fe={};/** @license React v16.13.1
|
|
42
42
|
* react-is.development.js
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
48
|
+
*/var hp;function RR(){return hp||(hp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=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,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function M(F){return typeof F=="string"||typeof F=="function"||F===a||F===p||F===i||F===s||F===m||F===b||typeof F=="object"&&F!==null&&(F.$$typeof===x||F.$$typeof===E||F.$$typeof===c||F.$$typeof===l||F.$$typeof===g||F.$$typeof===I||F.$$typeof===P||F.$$typeof===j||F.$$typeof===C)}function k(F){if(typeof F=="object"&&F!==null){var Ye=F.$$typeof;switch(Ye){case r:var qe=F.type;switch(qe){case d:case p:case a:case i:case s:case m:return qe;default:var yt=qe&&qe.$$typeof;switch(yt){case l:case g:case x:case E:case c:return yt;default:return Ye}}case t:return Ye}}}var O=d,Y=p,H=l,z=c,te=r,We=g,Te=a,it=x,X=E,Pe=t,ut=i,et=s,He=m,nt=!1;function Yt(F){return nt||(nt=!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.")),W(F)||k(F)===d}function W(F){return k(F)===p}function G(F){return k(F)===l}function de(F){return k(F)===c}function le(F){return typeof F=="object"&&F!==null&&F.$$typeof===r}function se(F){return k(F)===g}function fe(F){return k(F)===a}function ne(F){return k(F)===x}function ce(F){return k(F)===E}function ue(F){return k(F)===t}function he(F){return k(F)===i}function ge(F){return k(F)===s}function K(F){return k(F)===m}Fe.AsyncMode=O,Fe.ConcurrentMode=Y,Fe.ContextConsumer=H,Fe.ContextProvider=z,Fe.Element=te,Fe.ForwardRef=We,Fe.Fragment=Te,Fe.Lazy=it,Fe.Memo=X,Fe.Portal=Pe,Fe.Profiler=ut,Fe.StrictMode=et,Fe.Suspense=He,Fe.isAsyncMode=Yt,Fe.isConcurrentMode=W,Fe.isContextConsumer=G,Fe.isContextProvider=de,Fe.isElement=le,Fe.isForwardRef=se,Fe.isFragment=fe,Fe.isLazy=ne,Fe.isMemo=ce,Fe.isPortal=ue,Fe.isProfiler=he,Fe.isStrictMode=ge,Fe.isSuspense=K,Fe.isValidElementType=M,Fe.typeOf=k}()),Fe}var gp;function Ph(){return gp||(gp=1,process.env.NODE_ENV==="production"?Vo.exports=CR():Vo.exports=RR()),Vo.exports}/*
|
|
49
49
|
object-assign
|
|
50
50
|
(c) Sindre Sorhus
|
|
51
51
|
@license MIT
|
|
52
|
-
*/var
|
|
53
|
-
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var F=K(ce,ge,se,fe,ne+"."+ge,t);if(F)return F}return null}return I(G)}function Pe(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Pe);if(W===null||l(W))return!0;var G=m(W);if(G){var de=G.call(W),le;if(G!==W.entries){for(;!(le=de.next()).done;)if(!Pe(le.value))return!1}else for(;!(le=de.next()).done;){var se=le.value;if(se&&!Pe(se[1]))return!1}}else return!1;return!0;default:return!1}}function ut(W,G){return W==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function et(W){var G=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":ut(G,W)?"symbol":G}function He(W){if(typeof W>"u"||W===null)return""+W;var G=et(W);if(G==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return G}function nt(W){var G=He(W);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function Yt(W){return!W.constructor||!W.constructor.name?b:W.constructor.name}return E.checkPropTypes=s,E.resetWarningCache=s.resetWarningCache,E.PropTypes=E,E},
|
|
52
|
+
*/var Tu,vp;function Ic(){if(vp)return Tu;vp=1;var e=Object.getOwnPropertySymbols,r=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(g){return c[g]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(g){p[g]=g}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tu=s()?Object.assign:function(i,c){for(var l,d=a(i),p,g=1;g<arguments.length;g++){l=Object(arguments[g]);for(var m in l)r.call(l,m)&&(d[m]=l[m]);if(e){p=e(l);for(var b=0;b<p.length;b++)t.call(l,p[b])&&(d[p[b]]=l[p[b]])}}return d},Tu}var xu,mp;function Fc(){if(mp)return xu;mp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xu=e,xu}var Cu,yp;function Dh(){return yp||(yp=1,Cu=Function.call.bind(Object.prototype.hasOwnProperty)),Cu}var Ru,bp;function OR(){if(bp)return Ru;bp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Fc(),t={},a=Dh();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 g in i)if(a(i,g)){var m;try{if(typeof i[g]!="function"){var b=Error((d||"React class")+": "+l+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}m=i[g](c,g,d,l,null,r)}catch(x){m=x}if(m&&!(m instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+g+"` 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 E=p?p():"";e("Failed "+l+" type: "+m.message+(E??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Ru=s,Ru}var Ou,_p;function AR(){if(_p)return Ou;_p=1;var e=Ph(),r=Ic(),t=Fc(),a=Dh(),s=OR(),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 Ou=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function m(W){var G=W&&(p&&W[p]||W[g]);if(typeof G=="function")return G}var b="<<anonymous>>",E={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:j(),arrayOf:M,element:k(),elementType:O(),instanceOf:Y,node:We(),objectOf:z,oneOf:H,oneOfType:te,shape:it,exact:X};function x(W,G){return W===G?W!==0||1/W===1/G:W!==W&&G!==G}function C(W,G){this.message=W,this.data=G&&typeof G=="object"?G:{},this.stack=""}C.prototype=Error.prototype;function I(W){if(process.env.NODE_ENV!=="production")var G={},de=0;function le(fe,ne,ce,ue,he,ge,K){if(ue=ue||b,ge=ge||ce,K!==t){if(d){var F=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 F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ye=ue+":"+ce;!G[Ye]&&de<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."),G[Ye]=!0,de++)}}return ne[ce]==null?fe?ne[ce]===null?new C("The "+he+" `"+ge+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new C("The "+he+" `"+ge+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:W(ne,ce,ue,he,ge)}var se=le.bind(null,!1);return se.isRequired=le.bind(null,!0),se}function P(W){function G(de,le,se,fe,ne,ce){var ue=de[le],he=et(ue);if(he!==W){var ge=He(ue);return new C("Invalid "+fe+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+se+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return I(G)}function j(){return I(c)}function M(W){function G(de,le,se,fe,ne){if(typeof W!="function")return new C("Property `"+ne+"` of component `"+se+"` has invalid PropType notation inside arrayOf.");var ce=de[le];if(!Array.isArray(ce)){var ue=et(ce);return new C("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected an array."))}for(var he=0;he<ce.length;he++){var ge=W(ce,he,se,fe,ne+"["+he+"]",t);if(ge instanceof Error)return ge}return null}return I(G)}function k(){function W(G,de,le,se,fe){var ne=G[de];if(!l(ne)){var ce=et(ne);return new C("Invalid "+se+" `"+fe+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return I(W)}function O(){function W(G,de,le,se,fe){var ne=G[de];if(!e.isValidElementType(ne)){var ce=et(ne);return new C("Invalid "+se+" `"+fe+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return I(W)}function Y(W){function G(de,le,se,fe,ne){if(!(de[le]instanceof W)){var ce=W.name||b,ue=Yt(de[le]);return new C("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected ")+("instance of `"+ce+"`."))}return null}return I(G)}function H(W){if(!Array.isArray(W))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 G(de,le,se,fe,ne){for(var ce=de[le],ue=0;ue<W.length;ue++)if(x(ce,W[ue]))return null;var he=JSON.stringify(W,function(K,F){var Ye=He(F);return Ye==="symbol"?String(F):F});return new C("Invalid "+fe+" `"+ne+"` of value `"+String(ce)+"` "+("supplied to `"+se+"`, expected one of "+he+"."))}return I(G)}function z(W){function G(de,le,se,fe,ne){if(typeof W!="function")return new C("Property `"+ne+"` of component `"+se+"` has invalid PropType notation inside objectOf.");var ce=de[le],ue=et(ce);if(ue!=="object")return new C("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected an object."));for(var he in ce)if(a(ce,he)){var ge=W(ce,he,se,fe,ne+"."+he,t);if(ge instanceof Error)return ge}return null}return I(G)}function te(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var G=0;G<W.length;G++){var de=W[G];if(typeof de!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+nt(de)+" at index "+G+"."),c}function le(se,fe,ne,ce,ue){for(var he=[],ge=0;ge<W.length;ge++){var K=W[ge],F=K(se,fe,ne,ce,ue,t);if(F==null)return null;F.data&&a(F.data,"expectedType")&&he.push(F.data.expectedType)}var Ye=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new C("Invalid "+ce+" `"+ue+"` supplied to "+("`"+ne+"`"+Ye+"."))}return I(le)}function We(){function W(G,de,le,se,fe){return Pe(G[de])?null:new C("Invalid "+se+" `"+fe+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return I(W)}function Te(W,G,de,le,se){return new C((W||"React class")+": "+G+" type `"+de+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function it(W){function G(de,le,se,fe,ne){var ce=de[le],ue=et(ce);if(ue!=="object")return new C("Invalid "+fe+" `"+ne+"` of type `"+ue+"` "+("supplied to `"+se+"`, expected `object`."));for(var he in W){var ge=W[he];if(typeof ge!="function")return Te(se,fe,ne,he,He(ge));var K=ge(ce,he,se,fe,ne+"."+he,t);if(K)return K}return null}return I(G)}function X(W){function G(de,le,se,fe,ne){var ce=de[le],ue=et(ce);if(ue!=="object")return new C("Invalid "+fe+" `"+ne+"` of type `"+ue+"` "+("supplied to `"+se+"`, expected `object`."));var he=r({},de[le],W);for(var ge in he){var K=W[ge];if(a(W,ge)&&typeof K!="function")return Te(se,fe,ne,ge,He(K));if(!K)return new C("Invalid "+fe+" `"+ne+"` key `"+ge+"` supplied to `"+se+"`.\nBad object: "+JSON.stringify(de[le],null," ")+`
|
|
53
|
+
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var F=K(ce,ge,se,fe,ne+"."+ge,t);if(F)return F}return null}return I(G)}function Pe(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Pe);if(W===null||l(W))return!0;var G=m(W);if(G){var de=G.call(W),le;if(G!==W.entries){for(;!(le=de.next()).done;)if(!Pe(le.value))return!1}else for(;!(le=de.next()).done;){var se=le.value;if(se&&!Pe(se[1]))return!1}}else return!1;return!0;default:return!1}}function ut(W,G){return W==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function et(W){var G=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":ut(G,W)?"symbol":G}function He(W){if(typeof W>"u"||W===null)return""+W;var G=et(W);if(G==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return G}function nt(W){var G=He(W);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function Yt(W){return!W.constructor||!W.constructor.name?b:W.constructor.name}return E.checkPropTypes=s,E.resetWarningCache=s.resetWarningCache,E.PropTypes=E,E},Ou}var Au,Ep;function PR(){if(Ep)return Au;Ep=1;var e=Fc();function r(){}function t(){}return t.resetWarningCache=r,Au=function(){function a(c,l,d,p,g,m){if(m!==e){var b=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 b.name="Invariant Violation",b}}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:r};return i.PropTypes=i,i},Au}if(process.env.NODE_ENV!=="production"){var DR=Ph(),IR=!0;ec.exports=AR()(DR.isElement,IR)}else ec.exports=PR()();var FR=ec.exports;const zn=Os(FR);var Wr=Ke.createContext(null);process.env.NODE_ENV!=="production"&&(Wr.displayName="ReactRedux");function $R(e){e()}var Ih=$R,MR=function(r){return Ih=r},NR=function(){return Ih};function LR(){var e=NR(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e(function(){for(var s=r;s;)s.callback(),s=s.next})},get:function(){for(var s=[],i=r;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:r=c,function(){!i||r===null||(i=!1,c.next?c.next.prev=c.prev:t=c.prev,c.prev?c.prev.next=c.next:r=c.next)}}}}var Sp={notify:function(){},get:function(){return[]}};function Fh(e,r){var t,a=Sp;function s(m){return d(),a.subscribe(m)}function i(){a.notify()}function c(){g.onStateChange&&g.onStateChange()}function l(){return!!t}function d(){t||(t=r?r.addNestedSub(c):e.subscribe(c),a=LR())}function p(){t&&(t(),t=void 0,a.clear(),a=Sp)}var g={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:c,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:function(){return a}};return g}var tc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Ke.useLayoutEffect:Ke.useEffect;function $h(e){var r=e.store,t=e.context,a=e.children,s=Ke.useMemo(function(){var l=Fh(r);return{store:r,subscription:l}},[r]),i=Ke.useMemo(function(){return r.getState()},[r]);tc(function(){var l=s.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==r.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[s,i]);var c=t||Wr;return Ke.createElement(c.Provider,{value:s},a)}process.env.NODE_ENV!=="production"&&($h.propTypes={store:zn.shape({subscribe:zn.func.isRequired,dispatch:zn.func.isRequired,getState:zn.func.isRequired}),context:zn.object,children:zn.any});var rc={exports:{}},$e={};/** @license React v16.13.1
|
|
54
54
|
* react-is.production.min.js
|
|
55
55
|
*
|
|
56
56
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
57
57
|
*
|
|
58
58
|
* This source code is licensed under the MIT license found in the
|
|
59
59
|
* LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/var
|
|
60
|
+
*/var wp;function kR(){if(wp)return $e;wp=1;var e=typeof Symbol=="function"&&Symbol.for,r=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,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function M(O){if(typeof O=="object"&&O!==null){var Y=O.$$typeof;switch(Y){case r:switch(O=O.type,O){case d:case p:case a:case i:case s:case m:return O;default:switch(O=O&&O.$$typeof,O){case l:case g:case x:case E:case c:return O;default:return Y}}case t:return Y}}}function k(O){return M(O)===p}return $e.AsyncMode=d,$e.ConcurrentMode=p,$e.ContextConsumer=l,$e.ContextProvider=c,$e.Element=r,$e.ForwardRef=g,$e.Fragment=a,$e.Lazy=x,$e.Memo=E,$e.Portal=t,$e.Profiler=i,$e.StrictMode=s,$e.Suspense=m,$e.isAsyncMode=function(O){return k(O)||M(O)===d},$e.isConcurrentMode=k,$e.isContextConsumer=function(O){return M(O)===l},$e.isContextProvider=function(O){return M(O)===c},$e.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===r},$e.isForwardRef=function(O){return M(O)===g},$e.isFragment=function(O){return M(O)===a},$e.isLazy=function(O){return M(O)===x},$e.isMemo=function(O){return M(O)===E},$e.isPortal=function(O){return M(O)===t},$e.isProfiler=function(O){return M(O)===i},$e.isStrictMode=function(O){return M(O)===s},$e.isSuspense=function(O){return M(O)===m},$e.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===m||O===b||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===E||O.$$typeof===c||O.$$typeof===l||O.$$typeof===g||O.$$typeof===I||O.$$typeof===P||O.$$typeof===j||O.$$typeof===C)},$e.typeOf=M,$e}var Me={};/** @license React v16.13.1
|
|
61
61
|
* react-is.development.js
|
|
62
62
|
*
|
|
63
63
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the MIT license found in the
|
|
66
66
|
* LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/var
|
|
67
|
+
*/var Tp;function jR(){return Tp||(Tp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=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,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function M(F){return typeof F=="string"||typeof F=="function"||F===a||F===p||F===i||F===s||F===m||F===b||typeof F=="object"&&F!==null&&(F.$$typeof===x||F.$$typeof===E||F.$$typeof===c||F.$$typeof===l||F.$$typeof===g||F.$$typeof===I||F.$$typeof===P||F.$$typeof===j||F.$$typeof===C)}function k(F){if(typeof F=="object"&&F!==null){var Ye=F.$$typeof;switch(Ye){case r:var qe=F.type;switch(qe){case d:case p:case a:case i:case s:case m:return qe;default:var yt=qe&&qe.$$typeof;switch(yt){case l:case g:case x:case E:case c:return yt;default:return Ye}}case t:return Ye}}}var O=d,Y=p,H=l,z=c,te=r,We=g,Te=a,it=x,X=E,Pe=t,ut=i,et=s,He=m,nt=!1;function Yt(F){return nt||(nt=!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.")),W(F)||k(F)===d}function W(F){return k(F)===p}function G(F){return k(F)===l}function de(F){return k(F)===c}function le(F){return typeof F=="object"&&F!==null&&F.$$typeof===r}function se(F){return k(F)===g}function fe(F){return k(F)===a}function ne(F){return k(F)===x}function ce(F){return k(F)===E}function ue(F){return k(F)===t}function he(F){return k(F)===i}function ge(F){return k(F)===s}function K(F){return k(F)===m}Me.AsyncMode=O,Me.ConcurrentMode=Y,Me.ContextConsumer=H,Me.ContextProvider=z,Me.Element=te,Me.ForwardRef=We,Me.Fragment=Te,Me.Lazy=it,Me.Memo=X,Me.Portal=Pe,Me.Profiler=ut,Me.StrictMode=et,Me.Suspense=He,Me.isAsyncMode=Yt,Me.isConcurrentMode=W,Me.isContextConsumer=G,Me.isContextProvider=de,Me.isElement=le,Me.isForwardRef=se,Me.isFragment=fe,Me.isLazy=ne,Me.isMemo=ce,Me.isPortal=ue,Me.isProfiler=he,Me.isStrictMode=ge,Me.isSuspense=K,Me.isValidElementType=M,Me.typeOf=k}()),Me}process.env.NODE_ENV==="production"?rc.exports=kR():rc.exports=jR();var BR=rc.exports,Mh=BR,WR={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Nh={};Nh[Mh.ForwardRef]=WR;Nh[Mh.Memo]=UR;var je={};/** @license React v17.0.2
|
|
68
68
|
* react-is.production.min.js
|
|
69
69
|
*
|
|
70
70
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
71
|
*
|
|
72
72
|
* This source code is licensed under the MIT license found in the
|
|
73
73
|
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/var
|
|
74
|
+
*/var xp;function HR(){if(xp)return je;xp=1;var e=60103,r=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,g=60115,m=60116,b=60121,E=60122,x=60117,C=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var P=Symbol.for;e=P("react.element"),r=P("react.portal"),t=P("react.fragment"),a=P("react.strict_mode"),s=P("react.profiler"),i=P("react.provider"),c=P("react.context"),l=P("react.forward_ref"),d=P("react.suspense"),p=P("react.suspense_list"),g=P("react.memo"),m=P("react.lazy"),b=P("react.block"),E=P("react.server.block"),x=P("react.fundamental"),C=P("react.debug_trace_mode"),I=P("react.legacy_hidden")}function j(X){if(typeof X=="object"&&X!==null){var Pe=X.$$typeof;switch(Pe){case e:switch(X=X.type,X){case t:case s:case a:case d:case p:return X;default:switch(X=X&&X.$$typeof,X){case c:case l:case m:case g:case i:return X;default:return Pe}}case r:return Pe}}}var M=i,k=e,O=l,Y=t,H=m,z=g,te=r,We=s,Te=a,it=d;return je.ContextConsumer=c,je.ContextProvider=M,je.Element=k,je.ForwardRef=O,je.Fragment=Y,je.Lazy=H,je.Memo=z,je.Portal=te,je.Profiler=We,je.StrictMode=Te,je.Suspense=it,je.isAsyncMode=function(){return!1},je.isConcurrentMode=function(){return!1},je.isContextConsumer=function(X){return j(X)===c},je.isContextProvider=function(X){return j(X)===i},je.isElement=function(X){return typeof X=="object"&&X!==null&&X.$$typeof===e},je.isForwardRef=function(X){return j(X)===l},je.isFragment=function(X){return j(X)===t},je.isLazy=function(X){return j(X)===m},je.isMemo=function(X){return j(X)===g},je.isPortal=function(X){return j(X)===r},je.isProfiler=function(X){return j(X)===s},je.isStrictMode=function(X){return j(X)===a},je.isSuspense=function(X){return j(X)===d},je.isValidElementType=function(X){return typeof X=="string"||typeof X=="function"||X===t||X===s||X===C||X===a||X===d||X===p||X===I||typeof X=="object"&&X!==null&&(X.$$typeof===m||X.$$typeof===g||X.$$typeof===i||X.$$typeof===c||X.$$typeof===l||X.$$typeof===x||X.$$typeof===b||X[0]===E)},je.typeOf=j,je}var Be={};/** @license React v17.0.2
|
|
75
75
|
* react-is.development.js
|
|
76
76
|
*
|
|
77
77
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the MIT license found in the
|
|
80
80
|
* LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/var
|
|
81
|
+
*/var Cp;function qR(){return Cp||(Cp=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,r=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,g=60115,m=60116,b=60121,E=60122,x=60117,C=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var P=Symbol.for;e=P("react.element"),r=P("react.portal"),t=P("react.fragment"),a=P("react.strict_mode"),s=P("react.profiler"),i=P("react.provider"),c=P("react.context"),l=P("react.forward_ref"),d=P("react.suspense"),p=P("react.suspense_list"),g=P("react.memo"),m=P("react.lazy"),b=P("react.block"),E=P("react.server.block"),x=P("react.fundamental"),P("react.scope"),P("react.opaque.id"),C=P("react.debug_trace_mode"),P("react.offscreen"),I=P("react.legacy_hidden")}var j=!1;function M(K){return!!(typeof K=="string"||typeof K=="function"||K===t||K===s||K===C||K===a||K===d||K===p||K===I||j||typeof K=="object"&&K!==null&&(K.$$typeof===m||K.$$typeof===g||K.$$typeof===i||K.$$typeof===c||K.$$typeof===l||K.$$typeof===x||K.$$typeof===b||K[0]===E))}function k(K){if(typeof K=="object"&&K!==null){var F=K.$$typeof;switch(F){case e:var Ye=K.type;switch(Ye){case t:case s:case a:case d:case p:return Ye;default:var qe=Ye&&Ye.$$typeof;switch(qe){case c:case l:case m:case g:case i:return qe;default:return F}}case r:return F}}}var O=c,Y=i,H=e,z=l,te=t,We=m,Te=g,it=r,X=s,Pe=a,ut=d,et=!1,He=!1;function nt(K){return et||(et=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Yt(K){return He||(He=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(K){return k(K)===c}function G(K){return k(K)===i}function de(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function le(K){return k(K)===l}function se(K){return k(K)===t}function fe(K){return k(K)===m}function ne(K){return k(K)===g}function ce(K){return k(K)===r}function ue(K){return k(K)===s}function he(K){return k(K)===a}function ge(K){return k(K)===d}Be.ContextConsumer=O,Be.ContextProvider=Y,Be.Element=H,Be.ForwardRef=z,Be.Fragment=te,Be.Lazy=We,Be.Memo=Te,Be.Portal=it,Be.Profiler=X,Be.StrictMode=Pe,Be.Suspense=ut,Be.isAsyncMode=nt,Be.isConcurrentMode=Yt,Be.isContextConsumer=W,Be.isContextProvider=G,Be.isElement=de,Be.isForwardRef=le,Be.isFragment=se,Be.isLazy=fe,Be.isMemo=ne,Be.isPortal=ce,Be.isProfiler=ue,Be.isStrictMode=he,Be.isSuspense=ge,Be.isValidElementType=M,Be.typeOf=k}()),Be}process.env.NODE_ENV==="production"?HR():qR();function Rp(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function Lh(e,r){if(Rp(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var t=Object.keys(e),a=Object.keys(r);if(t.length!==a.length)return!1;for(var s=0;s<t.length;s++)if(!Object.prototype.hasOwnProperty.call(r,t[s])||!Rp(e[t[s]],r[t[s]]))return!1;return!0}function kh(){var e=Ke.useContext(Wr);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 jh(e){e===void 0&&(e=Wr);var r=e===Wr?kh:function(){return Ke.useContext(e)};return function(){var a=r(),s=a.store;return s}}var GR=jh();function zR(e){e===void 0&&(e=Wr);var r=e===Wr?GR:jh(e);return function(){var a=r();return a.dispatch}}var Bh=zR(),YR=function(r,t){return r===t};function VR(e,r,t,a){var s=Ke.useReducer(function(x){return x+1},0),i=s[1],c=Ke.useMemo(function(){return Fh(t,a)},[t,a]),l=Ke.useRef(),d=Ke.useRef(),p=Ke.useRef(),g=Ke.useRef(),m=t.getState(),b;try{if(e!==d.current||m!==p.current||l.current){var E=e(m);g.current===void 0||!r(E,g.current)?b=E:b=g.current}else b=g.current}catch(x){throw l.current&&(x.message+=`
|
|
82
82
|
The error may be correlated with this previous error:
|
|
83
83
|
`+l.current.stack+`
|
|
84
84
|
|
|
85
|
-
`),x}return
|
|
85
|
+
`),x}return tc(function(){d.current=e,p.current=m,g.current=b,l.current=void 0}),tc(function(){function x(){try{var C=t.getState();if(C===p.current)return;var I=d.current(C);if(r(I,g.current))return;g.current=I,p.current=C}catch(P){l.current=P}i()}return c.onStateChange=x,c.trySubscribe(),x(),function(){return c.tryUnsubscribe()}},[t,c]),b}function KR(e){e===void 0&&(e=Wr);var r=e===Wr?kh:function(){return Ke.useContext(e)};return function(a,s){if(s===void 0&&(s=YR),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=r(),c=i.store,l=i.subscription,d=VR(a,s,c,l);return Ke.useDebugValue(d),d}}var JR=KR();MR(rS.unstable_batchedUpdates);const Kn=Q("catalog/fetchCatalog",async(e,{rejectWithValue:r})=>{var t;try{const a=await _.getCatalog(),s=new Map,i=new Map;return(t=a==null?void 0:a.dataClasses)==null||t.forEach(({methods:c=[],...l})=>{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 r("Error while loading the catalog")}});function XR(){const e=Bh();return{get:()=>Vs().getState().catalog,fetch:()=>e(Kn()),refresh:()=>Ga()}}function Ga(e=2e3){return setTimeout(()=>{Vs().dispatch(Kn())},e)}const ZR=typeof process=="object"&&process&&process.platform==="win32";var QR=ZR?{sep:"\\"}:{sep:"/"},eO=Wh;function Wh(e,r,t){e instanceof RegExp&&(e=Op(e,t)),r instanceof RegExp&&(r=Op(r,t));var a=Uh(e,r,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]+r.length)}}function Op(e,r){var t=r.match(e);return t?t[0]:null}Wh.range=Uh;function Uh(e,r,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(r,d+1),g=d;if(d>=0&&p>0){if(e===r)return[d,p];for(a=[],i=t.length;g>=0&&!l;)g==d?(a.push(g),d=t.indexOf(e,g+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(r,g+1)),g=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var Hh=eO,tO=aO,qh="\0SLASH"+Math.random()+"\0",Gh="\0OPEN"+Math.random()+"\0",$c="\0CLOSE"+Math.random()+"\0",zh="\0COMMA"+Math.random()+"\0",Yh="\0PERIOD"+Math.random()+"\0";function Pu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function rO(e){return e.split("\\\\").join(qh).split("\\{").join(Gh).split("\\}").join($c).split("\\,").join(zh).split("\\.").join(Yh)}function nO(e){return e.split(qh).join("\\").split(Gh).join("{").split($c).join("}").split(zh).join(",").split(Yh).join(".")}function Vh(e){if(!e)return[""];var r=[],t=Hh("{","}",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=Vh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),r.push.apply(r,c),r}function aO(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Da(rO(e),!0).map(nO)):[]}function oO(e){return"{"+e+"}"}function sO(e){return/^-?0\d/.test(e)}function iO(e,r){return e<=r}function uO(e,r){return e>=r}function Da(e,r){var t=[],a=Hh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?Da(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),g=d||p,m=a.body.indexOf(",")>=0;if(!g&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+$c+a.post,Da(e)):[e];var b;if(g)b=a.body.split(/\.\./);else if(b=Vh(a.body),b.length===1&&(b=Da(b[0],!1).map(oO),b.length===1))return i.map(function(We){return a.pre+b[0]+We});var E;if(g){var x=Pu(b[0]),C=Pu(b[1]),I=Math.max(b[0].length,b[1].length),P=b.length==3?Math.abs(Pu(b[2])):1,j=iO,M=C<x;M&&(P*=-1,j=uO);var k=b.some(sO);E=[];for(var O=x;j(O,C);O+=P){var Y;if(p)Y=String.fromCharCode(O),Y==="\\"&&(Y="");else if(Y=String(O),k){var H=I-Y.length;if(H>0){var z=new Array(H+1).join("0");O<0?Y="-"+z+Y.slice(1):Y=z+Y}}E.push(Y)}}else{E=[];for(var te=0;te<b.length;te++)E.push.apply(E,Da(b[te],!1))}for(var te=0;te<E.length;te++)for(var c=0;c<i.length;c++){var l=s+E[te]+i[c];(!r||g||l)&&t.push(l)}}return t}const Gt=Kh=(e,r,t={})=>(ms(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ms(r,t).match(e));var Kh=Gt;const nc=QR;Gt.sep=nc.sep;const pr=Symbol("globstar **");Gt.GLOBSTAR=pr;const cO=tO,Ap={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ac="[^/]",Du=ac+"*?",lO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",fO="(?:(?!(?:\\/|^)\\.).)*?",Jh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),Pp=Jh("().*{}+?[]^$\\!"),dO=Jh("[.("),Dp=/\/+/;Gt.filter=(e,r={})=>(t,a,s)=>Gt(t,e,r);const rn=(e,r={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(r).forEach(a=>t[a]=r[a]),t};Gt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Gt;const r=Gt,t=(a,s,i)=>r(a,s,rn(e,i));return t.Minimatch=class extends r.Minimatch{constructor(s,i){super(s,rn(e,i))}},t.Minimatch.defaults=a=>r.defaults(rn(e,a)).Minimatch,t.filter=(a,s)=>r.filter(a,rn(e,s)),t.defaults=a=>r.defaults(rn(e,a)),t.makeRe=(a,s)=>r.makeRe(a,rn(e,s)),t.braceExpand=(a,s)=>r.braceExpand(a,rn(e,s)),t.match=(a,s,i)=>r.match(a,s,rn(e,i)),t};Gt.braceExpand=(e,r)=>Xh(e,r);const Xh=(e,r={})=>(ms(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:cO(e)),pO=1024*64,ms=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>pO)throw new TypeError("pattern is too long")},Iu=Symbol("subparse");Gt.makeRe=(e,r)=>new Ms(e,r||{}).makeRe();Gt.match=(e,r,t={})=>{const a=new Ms(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const hO=e=>e.replace(/\\(.)/g,"$1"),gO=e=>e.replace(/\\([^-\]])/g,"$1"),vO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mO=e=>e.replace(/[[\]\\]/g,"\\$&");class Ms{constructor(r,t){ms(r),t||(t={}),this.options=t,this.set=[],this.pattern=r,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 r=this.pattern,t=this.options;if(!t.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){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(Dp)),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 r=this.pattern;let t=!1,a=0;for(let s=0;s<r.length&&r.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=r.slice(a)),this.negate=t}matchOne(r,t,a){var s=this.options;this.debug("matchOne",{this:this,file:r,pattern:t}),this.debug("matchOne",r.length,t.length);for(var i=0,c=0,l=r.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],g=r[i];if(this.debug(t,p,g),p===!1)return!1;if(p===pr){this.debug("GLOBSTAR",[t,p,g]);var m=i,b=c+1;if(b===d){for(this.debug("** at the end");i<l;i++)if(r[i]==="."||r[i]===".."||!s.dot&&r[i].charAt(0)===".")return!1;return!0}for(;m<l;){var E=r[m];if(this.debug(`
|
|
86
86
|
globstar while`,r,m,t,b,E),this.matchOne(r.slice(m),t.slice(b),a))return this.debug("globstar found match!",m,l,E),!0;if(E==="."||E===".."||!s.dot&&E.charAt(0)==="."){this.debug("dot detected!",r,m,t,b);break}this.debug("globstar swallow a segment, and continue"),m++}return!!(a&&(this.debug(`
|
|
87
|
-
>>> no match, partial?`,r,m,t,b),m===l))}var x;if(typeof p=="string"?(x=g===p,this.debug("string match",p,g,x)):(x=g.match(p),this.debug("pattern match",p,g,x)),!x)return!1}if(i===l&&c===d)return!0;if(i===l)return a;if(c===d)return i===l-1&&r[i]==="";throw new Error("wtf?")}braceExpand(){return
|
|
88
|
-
%s`,H,H,x,s);const z=x.type==="*"?
|
|
87
|
+
>>> no match, partial?`,r,m,t,b),m===l))}var x;if(typeof p=="string"?(x=g===p,this.debug("string match",p,g,x)):(x=g.match(p),this.debug("pattern match",p,g,x)),!x)return!1}if(i===l&&c===d)return!0;if(i===l)return a;if(c===d)return i===l-1&&r[i]==="";throw new Error("wtf?")}braceExpand(){return Xh(this.pattern,this.options)}parse(r,t){ms(r);const a=this.options;if(r==="**")if(a.noglobstar)r="*";else return pr;if(r==="")return"";let s="",i=!1,c=!1;const l=[],d=[];let p,g=!1,m=-1,b=-1,E,x,C,I=r.charAt(0)===".",P=a.dot||I;const j=()=>I?"":P?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",M=H=>H.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=()=>{if(p){switch(p){case"*":s+=Du,i=!0;break;case"?":s+=ac,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let H=0,z;H<r.length&&(z=r.charAt(H));H++){if(this.debug("%s %s %s %j",r,H,s,z),c){if(z==="/")return!1;Pp[z]&&(s+="\\"),s+=z,c=!1;continue}switch(z){case"/":return!1;case"\\":if(g&&r.charAt(H+1)==="-"){s+=z;continue}k(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",r,H,s,z),g){this.debug(" in class"),z==="!"&&H===b+1&&(z="^"),s+=z;continue}this.debug("call clearStateChar %j",p),k(),p=z,a.noext&&k();continue;case"(":{if(g){s+="(";continue}if(!p){s+="\\(";continue}const te={type:p,start:H-1,reStart:s.length,open:Ap[p].open,close:Ap[p].close};this.debug(this.pattern," ",te),l.push(te),s+=te.open,te.start===0&&te.type!=="!"&&(I=!0,s+=M(r.slice(H+1))),this.debug("plType %j %j",p,s),p=!1;continue}case")":{const te=l[l.length-1];if(g||!te){s+="\\)";continue}l.pop(),k(),i=!0,x=te,s+=x.close,x.type==="!"&&d.push(Object.assign(x,{reEnd:s.length}));continue}case"|":{const te=l[l.length-1];if(g||!te){s+="\\|";continue}k(),s+="|",te.start===0&&te.type!=="!"&&(I=!0,s+=M(r.slice(H+1)));continue}case"[":if(k(),g){s+="\\"+z;continue}g=!0,b=H,m=s.length,s+=z;continue;case"]":if(H===b+1||!g){s+="\\"+z;continue}E=r.substring(b+1,H);try{RegExp("["+mO(gO(E))+"]"),s+=z}catch{s=s.substring(0,m)+"(?:$.)"}i=!0,g=!1;continue;default:k(),Pp[z]&&!(z==="^"&&g)&&(s+="\\"),s+=z;break}}for(g&&(E=r.slice(b+1),C=this.parse(E,Iu),s=s.substring(0,m)+"\\["+C[0],i=i||C[1]),x=l.pop();x;x=l.pop()){let H;H=s.slice(x.reStart+x.open.length),this.debug("setting tail",s,x),H=H.replace(/((?:\\{2}){0,64})(\\?)\|/g,(te,We,Te)=>(Te||(Te="\\"),We+We+Te+"|")),this.debug(`tail=%j
|
|
88
|
+
%s`,H,H,x,s);const z=x.type==="*"?Du:x.type==="?"?ac:"\\"+x.type;i=!0,s=s.slice(0,x.reStart)+z+"\\("+H}k(),c&&(s+="\\\\");const O=dO[s.charAt(0)];for(let H=d.length-1;H>-1;H--){const z=d[H],te=s.slice(0,z.reStart),We=s.slice(z.reStart,z.reEnd-8);let Te=s.slice(z.reEnd);const it=s.slice(z.reEnd-8,z.reEnd)+Te,X=te.split(")").length,Pe=te.split("(").length-X;let ut=Te;for(let He=0;He<Pe;He++)ut=ut.replace(/\)[+*?]?/,"");Te=ut;const et=Te===""&&t!==Iu?"(?:$|\\/)":"";s=te+We+Te+et+it}if(s!==""&&i&&(s="(?=.)"+s),O&&(s=j()+s),t===Iu)return[s,i];if(a.nocase&&!i&&(i=r.toUpperCase()!==r.toLowerCase()),!i)return hO(r);const Y=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_glob:r,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const r=this.set;if(!r.length)return this.regexp=!1,this.regexp;const t=this.options,a=t.noglobstar?Du:t.dot?lO:fO,s=t.nocase?"i":"";let i=r.map(c=>(c=c.map(l=>typeof l=="string"?vO(l):l===pr?pr:l._src).reduce((l,d)=>(l[l.length-1]===pr&&d===pr||l.push(d),l),[]),c.forEach((l,d)=>{l!==pr||c[d-1]===pr||(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]=pr))}),c.filter(l=>l!==pr).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(r,t=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&t)return!0;const a=this.options;nc.sep!=="/"&&(r=r.split(nc.sep).join("/")),r=r.split(Dp),this.debug(this.pattern,"split",r);const s=this.set;this.debug(this.pattern,"set",s);let i;for(let c=r.length-1;c>=0&&(i=r[c],!i);c--);for(let c=0;c<s.length;c++){const l=s[c];let d=r;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(r){return Gt.defaults(r).Minimatch}}Gt.Minimatch=Ms;const Zh=Os(Kh),Qh=[{pattern:_.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:_.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"}}],eg=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function tg(e){const r=e.split("/");return r.pop(),r.join("/")}function gr(e){const r=Qh.find(({pattern:t})=>Zh(e,t,{nocase:!0}));return r||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function rg(e){const r=eg.find(({pattern:t})=>Zh(e,t,{nocase:!0}));return r?r.type:"text"}var oc=function(e,r){return oc=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])},oc(e,r)};function Ns(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");oc(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function sc(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],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(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ys(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),s,i=[],c;try{for(;(r===void 0||r-- >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 bs(e,r,t){if(t||arguments.length===2)for(var a=0,s=r.length,i;a<s;a++)(i||!(a in r))&&(i||(i=Array.prototype.slice.call(r,0,a)),i[a]=r[a]);return e.concat(i||Array.prototype.slice.call(r))}function kr(e){return typeof e=="function"}function ng(e){var r=function(a){Error.call(a),a.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Fu=ng(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
89
89
|
`+t.map(function(a,s){return s+1+") "+a.toString()}).join(`
|
|
90
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function cc(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var js=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,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=uc(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(C){r={error:C}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}else c.remove(this);var g=this.initialTeardown;if(kr(g))try{g()}catch(C){i=C instanceof $u?C.errors:[C]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var b=uc(m),E=b.next();!E.done;E=b.next()){var x=E.value;try{$p(x)}catch(C){i=i??[],C instanceof $u?i=Es(Es([],_s(i)),_s(C.errors)):i.push(C)}}}catch(C){a={error:C}}finally{try{E&&!E.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}if(i)throw new $u(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)$p(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&cc(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&cc(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),ig=js.EMPTY;function ug(e){return e instanceof js||e&&"closed"in e&&kr(e.remove)&&kr(e.add)&&kr(e.unsubscribe)}function $p(e){kr(e)?e():e.unsubscribe()}var cg={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},lc={setTimeout:function(e,r){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=lc.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,Es([e,r],_s(t))):setTimeout.apply(void 0,Es([e,r],_s(t)))},clearTimeout:function(e){var r=lc.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function SO(e){lc.setTimeout(function(){throw e})}function Mp(){}function ns(e){e()}var lg=function(e){ks(r,e);function r(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,ug(t)&&t.add(a)):a.destination=CO,a}return r.create=function(t,a,s){return new fc(t,a,s)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(js),wO=Function.prototype.bind;function Mu(e,r){return wO.call(e,r)}var TO=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(a){Jo(a)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(a){Jo(a)}else Jo(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){Jo(t)}},e}(),fc=function(e){ks(r,e);function r(t,a,s){var i=e.call(this)||this,c;if(kr(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&cg.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&Mu(t.next,l),error:t.error&&Mu(t.error,l),complete:t.complete&&Mu(t.complete,l)}):c=t}return i.destination=new TO(c),i}return r}(lg);function Jo(e){SO(e)}function xO(e){throw e}var CO={closed:!0,next:Mp,error:xO,complete:Mp},RO=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function OO(e){return e}function AO(e){return e.length===0?OO:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var Np=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(r,t,a){var s=this,i=DO(r)?r:new fc(r,t,a);return ns(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(r){try{return this._subscribe(r)}catch(t){r.error(t)}},e.prototype.forEach=function(r,t){var a=this;return t=Lp(t),new t(function(s,i){var c=new fc({next:function(l){try{r(l)}catch(d){i(d),c.unsubscribe()}},error:i,complete:s});a.subscribe(c)})},e.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},e.prototype[RO]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return AO(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=Lp(r),new r(function(a,s){var i;t.subscribe(function(c){return i=c},function(c){return s(c)},function(){return a(i)})})},e.create=function(r){return new e(r)},e}();function Lp(e){var r;return(r=e??cg.Promise)!==null&&r!==void 0?r:Promise}function PO(e){return e&&kr(e.next)&&kr(e.error)&&kr(e.complete)}function DO(e){return e&&e instanceof lg||PO(e)&&ug(e)}var IO=sg(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),fg=function(e){ks(r,e);function r(){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 r.prototype.lift=function(t){var a=new kp(this,this);return a.operator=t,a},r.prototype._throwIfClosed=function(){if(this.closed)throw new IO},r.prototype.next=function(t){var a=this;ns(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=uc(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}}}})},r.prototype.error=function(t){var a=this;ns(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)}})},r.prototype.complete=function(){var t=this;ns(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var a=t.observers;a.length;)a.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var a=this,s=this,i=s.hasError,c=s.isStopped,l=s.observers;return i||c?ig:(this.currentObservers=null,l.push(t),new js(function(){a.currentObservers=null,cc(l,t)}))},r.prototype._checkFinalizedStatuses=function(t){var a=this,s=a.hasError,i=a.thrownError,c=a.isStopped;s?t.error(i):c&&t.complete()},r.prototype.asObservable=function(){var t=new Np;return t.source=this,t},r.create=function(t,a){return new kp(t,a)},r}(Np),kp=function(e){ks(r,e);function r(t,a){var s=e.call(this)||this;return s.destination=t,s.source=a,s}return r.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)},r.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)},r.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)},r.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:ig},r}(fg);const dg=new fg,FO=()=>Hh(),Ur=eO,Lc=q(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),$O=q(Lc,e=>e?e.dataClasses:[]),MO=q(Lc,e=>e?e.methods:[]),pg=e=>q(r=>r,r=>{switch(r.catalog.state){case"loaded":const t=e?r.catalog.model.dataClasses[e]:r.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),NO=e=>Ur(pg(e),Bh),LO=(e,r)=>q(pg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),kO=(e,r,t)=>Ur(LO(e,`${t}.${r}`),Bh),hg=q(e=>e,e=>e),jO=e=>q(Hr,r=>{var s;const t=r.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]}))}),gg=e=>q(Hr,r=>{var a,s;const t=r.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)||[]}),BO=(e,r,t)=>q(hg,a=>{var s,i;if(r){const c=a.sharedDatasources.sources[r];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}}),vg=q(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),WO=(e,r,t,a)=>q(gg(e),vg,(s,i)=>{const c=ze.flatten(ze.values(i)),l=[...r!=="private"?s:[],...r!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:g=""})=>d.id!==p||(d.namespace||"")!==g))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),UO=q(e=>e.debugger,e=>e.meta),An=q(e=>e.debugger,e=>e.list),It=q(e=>e.debugger,e=>e.sessions),HO=q(It,e=>e.length),On=(e,r,t,a)=>e.find(s=>s.filePath===r&&s.methodName===t&&(!a||s.className===a)),st=(e,r)=>e.find(t=>t.threadId===r),mg=(e,r)=>e.find(t=>t.tabPath===r),qO=(e,r)=>q(An,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),GO=(e,r)=>q(An,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),zO=e=>q(An,r=>r.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)),YO=e=>q(An,r=>r.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)),VO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),KO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.activeLine:null}),JO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.expressions)||[]}),XO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stopped)||!1}),ZO=(e,r)=>q(An,t=>{var a;return(a=On(t,e,r))==null?void 0:a.source}),QO=e=>q(It,r=>{var t;return((t=mg(r,e))==null?void 0:t.threadId)||-1}),eA=e=>q(It,r=>{var t,a;return(a=(t=st(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),tA=e=>q(It,r=>{var t;return(t=st(r,e))==null?void 0:t.currentStackFrame}),rA=q(It,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),nA=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stackFrames)||[]}),aA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),oA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),sA=(e,r="saved")=>q(An,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),iA=(e,r,t,a)=>q(It,s=>{var p;const i=((p=st(s,e))==null?void 0:p.exceptions)||[],c=r===_.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(g=>g.location===l):i).map(g=>({...g,locationLine:c?g.locationLine:g.locationLine+1}))}),Hr=q(e=>e.root,e=>e),ca=q(Hr,e=>e.tabs),uA=q(Hr,e=>e.activeTab),cA=q(Hr,e=>e.recent.filter(({type:r})=>r!==_.FileFolderType.DEBUGGER)),lA=q(Hr,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),fA=q(Hr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),dA=q(ca,e=>e.filter(({type:r,flags:t})=>r===_.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),pA=q(ca,e=>e.length>0),Ya=e=>q(Hr,r=>r.tabs.find(({path:t})=>t===e)),yg=(e,r="")=>q(Ya(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:ze.get(t.content,r)),hA=e=>q(Ya(e),r=>r==null?void 0:r.extra),gA=(e,r=t=>t)=>q(yg(e,"components"),t=>r(t||{})),kc=q(ca,e=>e.filter(r=>r.flags.touched)),vA=q(kc,e=>e.length),mA=q(It,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Ih(r,t),path:a,type:_.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),yA=q(e=>e,e=>e.explorer||[]),bg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.WEBFORMS)),_g=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.METHODS)),Eg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.CLASSES)),bA=q(_g,e=>(e==null?void 0:e.children)||[]),_A=q(bg,e=>(e==null?void 0:e.children)||[]),EA=q(Eg,e=>(e==null?void 0:e.children)||[]),SA=q(e=>e.modals,e=>e.list),wA=q(e=>e.roles,e=>zs(e)),TA=q(e=>e.roles,({roles:e})=>e),xA=q(e=>e.roles,({privileges:e})=>e),CA=q(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),RA=q(e=>e.roles,({flags:e})=>e),OA=q(e=>e.roles,({selectedTab:e})=>e),AA=q(e=>e.roles,({date:e})=>e),Sg=q(e=>e.settings,e=>e.session),PA=q(e=>e.settings,e=>e.project),DA=q(e=>e.settings,e=>e),jc=q(e=>e.settings,e=>e.server),IA=q(jc,e=>e.remoteDebuggerMode),FA=q(jc,e=>e.qodly),$A=q(Sg,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:Cc(),content:"",name:e,parentId:null,scope:_.EWebFormStyleClassScope.THEME})),Bc=e=>q(Ya(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),MA=(e,r)=>q(Bc(e),t=>r.map(a=>{switch(!0){case a===_.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:_.EWebFormStyleClassScope.LOCAL}));case a===_.EWebFormStyleClassScope.THEME:return Tg;default:return[]}}).flat()),NA=e=>q(Bc(e),r=>[...r.map(t=>({...t,scope:_.EWebFormStyleClassScope.LOCAL})),...Tg]),LA=q(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:_.EWebFormStyleClassScope.SHARED}))]}),kA=e=>q(Ya(e),r=>r==null?void 0:r.flags),Va=q(e=>e.webforms,e=>e),xg=q(Va,e=>(e==null?void 0:e.components)||[]),Bs=q(Va,e=>e.inspector),jA=q(Bs,e=>e.css),BA=q(Bs,e=>e.datasource),Cg=q(Va,e=>e.templates||{data:[]}),WA=q(Cg,e=>e.data||[]),UA=e=>q(xg,r=>r.find(t=>t.id===e)),HA=e=>q(Bs,r=>r[e]),qA=q(Va,e=>e.datasources.theme),GA=q(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,r,t)=>[e.state,r.state,t.state].every(a=>["loaded","error"].includes(a)));var Wc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(Wc||{}),Rg=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Rg||{});const Og={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};var Xo,zA=new Uint8Array(16);function Ag(){if(!Xo&&(Xo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Xo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xo(zA)}const YA=/^(?:[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 Ws(e){return typeof e=="string"&&YA.test(e)}var mt=[];for(var Nu=0;Nu<256;++Nu)mt.push((Nu+256).toString(16).substr(1));function Us(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(mt[e[r+0]]+mt[e[r+1]]+mt[e[r+2]]+mt[e[r+3]]+"-"+mt[e[r+4]]+mt[e[r+5]]+"-"+mt[e[r+6]]+mt[e[r+7]]+"-"+mt[e[r+8]]+mt[e[r+9]]+"-"+mt[e[r+10]]+mt[e[r+11]]+mt[e[r+12]]+mt[e[r+13]]+mt[e[r+14]]+mt[e[r+15]]).toLowerCase();if(!Ws(t))throw TypeError("Stringified UUID is invalid");return t}var jp,Lu,ku=0,ju=0;function VA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||jp,c=e.clockseq!==void 0?e.clockseq:Lu;if(i==null||c==null){var l=e.random||(e.rng||Ag)();i==null&&(i=jp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Lu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:ju+1,g=d-ku+(p-ju)/1e4;if(g<0&&e.clockseq===void 0&&(c=c+1&16383),(g<0||d>ku)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ku=d,ju=p,Lu=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 b=d/4294967296*1e4&268435455;s[a++]=b>>>8&255,s[a++]=b&255,s[a++]=b>>>24&15|16,s[a++]=b>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var E=0;E<6;++E)s[a+E]=i[E];return r||Us(s)}function Pg(e){if(!Ws(e))throw TypeError("Invalid UUID");var r,t=new Uint8Array(16);return t[0]=(r=parseInt(e.slice(0,8),16))>>>24,t[1]=r>>>16&255,t[2]=r>>>8&255,t[3]=r&255,t[4]=(r=parseInt(e.slice(9,13),16))>>>8,t[5]=r&255,t[6]=(r=parseInt(e.slice(14,18),16))>>>8,t[7]=r&255,t[8]=(r=parseInt(e.slice(19,23),16))>>>8,t[9]=r&255,t[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=r/4294967296&255,t[12]=r>>>24&255,t[13]=r>>>16&255,t[14]=r>>>8&255,t[15]=r&255,t}function KA(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}var JA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",XA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Dg(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=KA(s)),typeof i=="string"&&(i=Pg(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|r,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 Us(d)}try{a.name=e}catch{}return a.DNS=JA,a.URL=XA,a}function ZA(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var t=0;t<r.length;++t)e[t]=r.charCodeAt(t)}return QA(eP(tP(e),e.length*8))}function QA(e){for(var r=[],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);r.push(c)}return r}function Ig(e){return(e+64>>>9<<4)+14+1}function eP(e,r){e[r>>5]|=128<<r%32,e[Ig(r)-1]=r;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,g=i;t=Et(t,a,s,i,e[c],7,-680876936),i=Et(i,t,a,s,e[c+1],12,-389564586),s=Et(s,i,t,a,e[c+2],17,606105819),a=Et(a,s,i,t,e[c+3],22,-1044525330),t=Et(t,a,s,i,e[c+4],7,-176418897),i=Et(i,t,a,s,e[c+5],12,1200080426),s=Et(s,i,t,a,e[c+6],17,-1473231341),a=Et(a,s,i,t,e[c+7],22,-45705983),t=Et(t,a,s,i,e[c+8],7,1770035416),i=Et(i,t,a,s,e[c+9],12,-1958414417),s=Et(s,i,t,a,e[c+10],17,-42063),a=Et(a,s,i,t,e[c+11],22,-1990404162),t=Et(t,a,s,i,e[c+12],7,1804603682),i=Et(i,t,a,s,e[c+13],12,-40341101),s=Et(s,i,t,a,e[c+14],17,-1502002290),a=Et(a,s,i,t,e[c+15],22,1236535329),t=St(t,a,s,i,e[c+1],5,-165796510),i=St(i,t,a,s,e[c+6],9,-1069501632),s=St(s,i,t,a,e[c+11],14,643717713),a=St(a,s,i,t,e[c],20,-373897302),t=St(t,a,s,i,e[c+5],5,-701558691),i=St(i,t,a,s,e[c+10],9,38016083),s=St(s,i,t,a,e[c+15],14,-660478335),a=St(a,s,i,t,e[c+4],20,-405537848),t=St(t,a,s,i,e[c+9],5,568446438),i=St(i,t,a,s,e[c+14],9,-1019803690),s=St(s,i,t,a,e[c+3],14,-187363961),a=St(a,s,i,t,e[c+8],20,1163531501),t=St(t,a,s,i,e[c+13],5,-1444681467),i=St(i,t,a,s,e[c+2],9,-51403784),s=St(s,i,t,a,e[c+7],14,1735328473),a=St(a,s,i,t,e[c+12],20,-1926607734),t=wt(t,a,s,i,e[c+5],4,-378558),i=wt(i,t,a,s,e[c+8],11,-2022574463),s=wt(s,i,t,a,e[c+11],16,1839030562),a=wt(a,s,i,t,e[c+14],23,-35309556),t=wt(t,a,s,i,e[c+1],4,-1530992060),i=wt(i,t,a,s,e[c+4],11,1272893353),s=wt(s,i,t,a,e[c+7],16,-155497632),a=wt(a,s,i,t,e[c+10],23,-1094730640),t=wt(t,a,s,i,e[c+13],4,681279174),i=wt(i,t,a,s,e[c],11,-358537222),s=wt(s,i,t,a,e[c+3],16,-722521979),a=wt(a,s,i,t,e[c+6],23,76029189),t=wt(t,a,s,i,e[c+9],4,-640364487),i=wt(i,t,a,s,e[c+12],11,-421815835),s=wt(s,i,t,a,e[c+15],16,530742520),a=wt(a,s,i,t,e[c+2],23,-995338651),t=Tt(t,a,s,i,e[c],6,-198630844),i=Tt(i,t,a,s,e[c+7],10,1126891415),s=Tt(s,i,t,a,e[c+14],15,-1416354905),a=Tt(a,s,i,t,e[c+5],21,-57434055),t=Tt(t,a,s,i,e[c+12],6,1700485571),i=Tt(i,t,a,s,e[c+3],10,-1894986606),s=Tt(s,i,t,a,e[c+10],15,-1051523),a=Tt(a,s,i,t,e[c+1],21,-2054922799),t=Tt(t,a,s,i,e[c+8],6,1873313359),i=Tt(i,t,a,s,e[c+15],10,-30611744),s=Tt(s,i,t,a,e[c+6],15,-1560198380),a=Tt(a,s,i,t,e[c+13],21,1309151649),t=Tt(t,a,s,i,e[c+4],6,-145523070),i=Tt(i,t,a,s,e[c+11],10,-1120210379),s=Tt(s,i,t,a,e[c+2],15,718787259),a=Tt(a,s,i,t,e[c+9],21,-343485551),t=nn(t,l),a=nn(a,d),s=nn(s,p),i=nn(i,g)}return[t,a,s,i]}function tP(e){if(e.length===0)return[];for(var r=e.length*8,t=new Uint32Array(Ig(r)),a=0;a<r;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function nn(e,r){var t=(e&65535)+(r&65535),a=(e>>16)+(r>>16)+(t>>16);return a<<16|t&65535}function rP(e,r){return e<<r|e>>>32-r}function Hs(e,r,t,a,s,i){return nn(rP(nn(nn(r,e),nn(a,i)),s),t)}function Et(e,r,t,a,s,i,c){return Hs(r&t|~r&a,e,r,s,i,c)}function St(e,r,t,a,s,i,c){return Hs(r&a|t&~a,e,r,s,i,c)}function wt(e,r,t,a,s,i,c){return Hs(r^t^a,e,r,s,i,c)}function Tt(e,r,t,a,s,i,c){return Hs(t^(r|~a),e,r,s,i,c)}var nP=Dg("v3",48,ZA);const aP=nP;function oP(e,r,t){e=e||{};var a=e.random||(e.rng||Ag)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,r){t=t||0;for(var s=0;s<16;++s)r[t+s]=a[s];return r}return Us(a)}function sP(e,r,t,a){switch(e){case 0:return r&t^~r&a;case 1:return r^t^a;case 2:return r&t^r&a^t&a;case 3:return r^t^a}}function Bu(e,r){return e<<r|e>>>32-r}function iP(e){var r=[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),g=0;g<16;++g)p[g]=e[d*64+g*4]<<24|e[d*64+g*4+1]<<16|e[d*64+g*4+2]<<8|e[d*64+g*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 b=new Uint32Array(80),E=0;E<16;++E)b[E]=l[m][E];for(var x=16;x<80;++x)b[x]=Bu(b[x-3]^b[x-8]^b[x-14]^b[x-16],1);for(var C=t[0],I=t[1],P=t[2],j=t[3],M=t[4],k=0;k<80;++k){var O=Math.floor(k/20),Y=Bu(C,5)+sP(O,I,P,j)+M+r[O]+b[k]>>>0;M=j,j=P,P=Bu(I,30)>>>0,I=C,C=Y}t[0]=t[0]+C>>>0,t[1]=t[1]+I>>>0,t[2]=t[2]+P>>>0,t[3]=t[3]+j>>>0,t[4]=t[4]+M>>>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 uP=Dg("v5",80,iP);const cP=uP,lP="00000000-0000-0000-0000-000000000000";function fP(e){if(!Ws(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const dP=Object.freeze(Object.defineProperty({__proto__:null,NIL:lP,parse:Pg,stringify:Us,v1:VA,v3:aP,v4:oP,v5:cP,validate:Ws,version:fP},Symbol.toStringTag,{value:"Module"})),pP=fw(dP);function Uc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Uc.prototype.convert=function(e){var r,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(r=0;r<l;r++)s[r]=this.srcAlphabet.indexOf(e[r]);do{for(t=0,a=0,r=0;r<l;r++)t=t*i+s[r],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 r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var hP=Uc,gP=hP;function Ka(e,r){var t=new gP(e,r);return function(a){return t.convert(a)}}Ka.BIN="01";Ka.OCT="01234567";Ka.DEC="0123456789";Ka.HEX="0123456789abcdef";var vP=Ka;const{v4:Wu}=pP,Zo=vP,Uu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",mP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",yP={consistentLength:!0};let Hu;const Bp=(e,r,t)=>{const a=r(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},bP=(e,r)=>{const a=r(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("-")},_P=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Ss=(()=>{const e=(r,t)=>{const a=r||Uu,s={...yP,...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=_P(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=Zo(Zo.HEX,a),d=Zo(a,Zo.HEX),p=()=>Bp(Wu(),l,c),g={new:p,generate:p,uuid:Wu,fromUUID:m=>Bp(m,l,c),toUUID:m=>bP(m,d),alphabet:a,maxLength:i};return Object.freeze(g),g};return e.constants={flickrBase58:Uu,cookieBase90:mP},e.uuid=Wu,e.generate=()=>(Hu||(Hu=e(Uu).generate),Hu()),e})(),Ae=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ae||{});const EP=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],ws="guest",Hc=[{key:"read",label:"Read",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ae.METHOD]}];function ar(e,...r){return Array.from(new Set([...e,...r]))}function Fg(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||Ss.generate();r[p]={...d,id:p,parents:[],includes:ar(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(r).forEach(([d,p])=>{const g=p.includes.map(m=>{const b=t.get(m);return b?(r[b].parents=ar(r[b].parents,b),b):""}).filter(Boolean);r[d]={...p,includes:g}});const a=$g(r),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=>r[p].parents.push(d.id))}),Object.values(r).find(({privilege:d})=>d===ws))return r;const l=Ss.generate();return{[l]:{id:l,privilege:ws,includes:[],parents:[],resources:[]},...r}}function $g(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function qs(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=ar(a,...qs(s,r),s)}),a}function Ts(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=ar(a,...Ts(s,r),s)}),a}function SP(e,r){const t=r[e];if(!t)return[];const a=[e,...qs(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function wP(e,r){return r[e]?Object.keys(r).reduce((a,s)=>s===e?a:{...a,[s]:{...r[s],parents:r[s].parents.filter(i=>i!==e),includes:r[s].includes.filter(i=>i!==e)}},{}):r}function TP(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:ar(a.includes,r)},[r]:{...t[r],parents:ar(s.parents,e)}}}function xP(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==r)},[r]:{...t[r],parents:t[r].parents.filter(i=>i!==e)}}}function Mg(e,r){_.validateName(e),Object.entries(r).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=Ss.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function CP(e,r,t,a,s){let i=Mg(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=jg(c[1].id,r,t,a,i),i):s}function RP(e,r,t){if(!e)throw new Error("Please enter a name");if(!t[r])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&r!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[r]:{...t[r],privilege:e}}}function OP(e,r){return e.map(t=>qr(t,r))}function qr(e,r){return r[e]?r[e]:null}function Ng({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=ze.find(Hc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=ar(a[d]||[],s)}),a},{})}const dc=(e,r=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${r?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${r?"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 ${r?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function qc(e){return{permissions:Hc.filter(({canApplyTo:r})=>r.includes(e.type)).map(({key:r,label:t})=>{const a={name:r,from:[]};switch(e.type){case Ae.DATASTORE:return{...a,info:dc(t,!0)};case Ae.DATACLASS:return{...a,info:dc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Lg(e,r){const t=kg(r),a={};return e.filter(({type:s})=>EP.includes(s)).forEach(s=>{const i=Ng(s);Object.entries(i).forEach(([c,l])=>{var g;const d=(g=t[c])==null?void 0:g.id;if(!d)return;a[d]=a[d]||{...r[d]};let p=ze.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)}))})}),{...r,...a}}function kg(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function Gs(e){var t;const r=Fg(e.privileges||[]);return{privileges:Lg(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=Ss.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:ar(i).map(c=>{var l;return(l=Object.values(r).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function zs(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>qs(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=ze.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:g})=>{g&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==ws).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 AP(e,r){const t=r[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const g=l.reduce((m,b)=>[...m,...r[b][d]],[]);return g.length===0?p:(p.push(g),s(g,d,p))}function i(l){const d=[],p=[];for(let g=l.length-1;g>=0;g-=1){const m=l[g].filter(b=>d.includes(b)?!1:(d.push(b),!0));m.length>0&&p.unshift(ar(m))}return p}function c(l,d){const p=[];return l.reduce((g,m)=>(m.forEach(b=>{r[b][d==="parents"?"includes":"parents"].forEach(x=>{p.includes(x)&&g.push(d==="parents"?{source:b,target:x}:{source:x,target:b})}),p.push(b)}),g),[])}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 PP(e,r,t){const a=qr(e,t);if(!a||ze.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,qc(r)]};return{...t,[e]:s}}function DP(e,r,t){const a=qr(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==r.applyTo||c!==r.type)};return{...t,[e]:s}}function IP(e,r){const t=qr(e,r);if(!t)return r;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{...r,[e]:a}}function jg(e,r,t,a,s){const i=qr(e,s);if(!i)return s;const l=ze.find(i.resources,{type:t,resource:r})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===r?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:r,permissions:Hc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:dc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function FP(e,r,t,a){const s=qr(e,a);if(!s)return a;const c=ze.find(s.resources,{type:r.type,resource:r.resource})?{...s,resources:s.resources.map(l=>l.type===r.type&&l.resource===r.resource?{...l,permissions:r.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...r,permissions:r.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function $P(e,r){var d;const t=Bg(e,r)||[],a=((d=qr(e,r))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Ae.METHOD)||[]).map(({resource:p})=>p);return Object.entries(r).reduce((p,[g,{resources:m}])=>(m.filter(({resource:b,type:E})=>E===Ae.METHOD&&c.includes(b)).forEach(({permissions:b,resource:E})=>{var C;((C=b.find(({name:I})=>I==="promote"))==null?void 0:C.checked)&&(p[E]=ar(p[E]||[],g))}),p),{})}function Bg(e,r){var c;const t=qr(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===ws))==null?void 0:c.id;return(a&&a!==e?ar(Ts(e,r),a):Ts(e,r)).reduce((l,d)=>(r[d].resources.forEach(g=>{if(g.permissions.filter(({checked:E})=>E).length===0)return;const b=ze.find(l,{type:g.type,resource:g.resource});if(!b){l.push({...g,permissions:g.permissions.map(E=>({...E,from:E.checked?[d]:[],checked:!1}))});return}b.permissions=b.permissions.map((E,x)=>{let{from:C=[]}=E;return g.permissions[x].checked&&!C.includes(d)&&(C=[...C,d]),{...E,from:C,checked:E.checked}})}),l),ze.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const MP=e=>e.reduce((r,t)=>({...r,[t.id]:{...t}}),{}),NP=(e,r)=>r[e]?Object.values(r).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):r,LP=(e,r,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:r}}:{...a,[s.id]:s},{}):t,kP=(e,r)=>{const t={id:e,role:"",privileges:[]};return{...r,[t.id]:t}},jP=(e,r)=>{if(_.validateName(e.role),Object.values(r).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(r).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},BP={list:[]},Wp=(e,r)=>e.list.filter(t=>t.id!==r),Wg=or({name:"modals",initialState:BP,reducers:{createModal:(e,r)=>{e.list.push(r.payload)},editModal:(e,r)=>{const{id:t,...a}=r.payload,s=e.list.find(_.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,r)=>{const t=r.payload;e.list=Wp(e,t)},closeModal:(e,r)=>{const{id:t,reason:a}=r.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=Wp(e,t)}}}),{createModal:Ug,removeModal:Hg,closeModal:WP,editModal:UP}=Wg.actions;var qg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Up=Ke.createContext&&Ke.createContext(qg),sn=globalThis&&globalThis.__assign||function(){return sn=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},sn.apply(this,arguments)},HP=globalThis&&globalThis.__rest||function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)r.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(t[a[s]]=e[a[s]]);return t};function Gg(e){return e&&e.map(function(r,t){return Ke.createElement(r.tag,sn({key:t},r.attr),Gg(r.child))})}function Ys(e){return function(r){return Ke.createElement(qP,sn({attr:sn({},e.attr)},r),Gg(e.child))}}function qP(e){var r=function(t){var a=e.attr,s=e.size,i=e.title,c=HP(e,["attr","size","title"]),l=s||t.size||"1em",d;return t.className&&(d=t.className),e.className&&(d=(d?d+" ":"")+e.className),Ke.createElement("svg",sn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,c,{className:d,style:sn(sn({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Ke.createElement("title",null,i),e.children)};return Up!==void 0?Ke.createElement(Up.Consumer,null,function(t){return r(t)}):r(qg)}function GP(e){return Ys({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"}}]})(e)}function zP(e){return Ys({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(e)}function YP(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z"}},{tag:"path",attr:{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}}]})(e)}function VP(e){return Ys({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"}}]})(e)}const KP={FaSave:GP,AiFillWarning:VP,BiErrorCircle:YP,BsFillInfoCircleFill:zP};var kt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(kt||{}),Tr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Tr||{}),Gc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Gc||{});const sr=Q("modals/open",async(e,{dispatch:r})=>{const{type:t=kt.ALERT,store:a=ra}=e,s=Cc();switch(r(Ug({id:s,type:t,isOpen:!0,...e})),t){case kt.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(g=>g.id===s);if(d&&!d.isOpen){const g=d.closeReason===Gc.CONFIRMED,m=ze.entries((p=d.views)==null?void 0:p.toggles).reduce((b,E)=>({...b,[E[0]]:E[1].value}),{});r(Hg(s)),c(),i({confirmed:g,options:m})}})});default:return{}}}),zg=()=>_.getFileContent({name:_.ROLES_TAB_PATH}),Yg="Roles & Privileges",xs=Q("roles/fetchRoles",async(e,{dispatch:r,rejectWithValue:t})=>{var i;let a;try{a=await zg()}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:_.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Yg,type:_.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:_.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return r(Dt(s)),{...a,content:Gs(a.content)}}),Vg=Q("roles/fetchRolesChanges",async(e,{getState:r})=>{const{tabs:t}=r().root;if(t.find(s=>s.path===_.ROLES_TAB_PATH)){const{date:s}=r().roles;if(s&&await zc(s))return{old:!0}}return{}}),zc=async e=>{if(!e)return!1;try{const r=await zg();if(r.date){const t=new Date(e),a=new Date(r.date);if(t>a)return!0}}catch(r){if(!Array.isArray(r==null?void 0:r.data.__ERROR))throw r}return!1},pc=Q("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await zc(i)){const{confirmed:d}=await a(sr({title:Yg,message:"New content has been found on the server. Are you sure you want to continue?",type:kt.CONFIRM,icon:"FaSave"})).unwrap();if(!d)return t({old:!0})}return await _.setFileContent({name:_.ROLES_TAB_PATH,content:zs(e)})}catch{return t("Error while loading the roles")}}),JP=na().roles,{roles:XP={},privileges:ZP={},flags:QP={touched:!1},date:eD,selectedTab:tD="roles"}=JP||{},rD={flags:QP,roles:XP,privileges:ZP,date:eD,selectedTab:tD},Kg=or({name:"roles",initialState:rD,reducers:{updatePrivileges:(e,r)=>{e.privileges=r.payload,e.flags.touched=!0},updateRoles:(e,r)=>{e.roles=r.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,r)=>{e.roles=r.payload.roles,e.privileges=r.payload.privileges},toggleTab:(e,r)=>{e.selectedTab=r.payload},setRolesContent(e,r){const{content:t,flags:a={},...s}=r.payload,i=Gs(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(xs.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase(xs.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(pc.fulfilled,(r,t)=>({...r,flags:{...r.flags,touched:!1,old:!1},date:t.payload.date})).addCase(pc.rejected,(r,t)=>Dh.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(Vg.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(Qn.fulfilled,(r,t)=>{!t.payload||t.payload.path!==_.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(Qc.fulfilled,(r,t)=>{t.meta.arg!==_.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:Jg,updateRoles:Xg,setRolesContent:Yc,toggleTab:nD,updateRolesAndPrivileges:Vc}=Kg.actions,aD=Kg.reducer,cn="qodlyApp.json",Kc=Q("settings/fetch",async()=>await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:cn,content:!0,as:"json"})),Zg=Q("settings/app",_.getAppSettings),oD=Th(),Hp={session:{"studio.tips":!0,"studio.notifications":!0,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":Wc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:_.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},sD={...Hp,session:{...Hp.session,...oD},welcometour:{}},Qg=or({name:"settings",initialState:sD,reducers:{setSetting(e,r){const{path:t,settingsKey:a,value:s}=r.payload;e[t][a]=s},setSettings(e,r){const{path:t,value:a}=r.payload;e[t]={...e[t],...a}},setSettingsAsText(e,r){const{path:t,settings:a}=r.payload;e[t]=a}},extraReducers(e){e.addCase(Kc.fulfilled,(r,t)=>{r.project={...r.project,...t.payload.content}}),e.addCase(Zg.fulfilled,(r,t)=>{r.server=t.payload,r.server.qodly&&(r.project["webforms.display-mode"]="airy")})}}),{setSetting:ev,setSettings:Vs,setSettingsAsText:iD}=Qg.actions,uD=Qg.reducer,hc=e=>{const r=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):r.indexOf(t.type)-r.indexOf(a.type))},Re=(e,r)=>e.reduce((t,a)=>a.path===r.path&&a.type===r.type?[...t,r]:a.children?[...t,{...a,children:hc(Re(a.children,r))}]:[...t,a],[]),ft=(e,r)=>e.reduce((t,a)=>t||(a.path===r?a:a.children?ft(a.children,r):null),null),cD=[{name:_.FolderRootPath.WEBFORMS,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:_.FolderRootPath.METHODS,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:_.FolderRootPath.CLASSES,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:_.FolderRootPath.SHARED,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:_.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:_.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:_.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:_.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],tv=or({name:"explorer",initialState:cD,reducers:{toggleExpandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!r.payload.flags.expanded}}),e),expandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!0}}),e),openAddFileInput:(e,r)=>Re(e,{...r.payload,flags:{...r.payload.flags,adding:!0}}),addNewFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,r)=>{const{parent:t,child:a}=r.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Re(e,{...t,children:[a,...s]})},setFolderChildren:(e,r)=>{const t=ft(e,r.payload.parentPath);return t?Re(e,{...t,children:r.payload.children}):e}},extraReducers:e=>{e.addCase(Zn.pending,(r,t)=>{const{file:a,newname:s}=t.meta.arg,i=ft(r,a.path);if(!i)return r;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":_.lspSubject.next({action:_.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(r,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(Zn.fulfilled,(r,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=ft(r,a.path);if(!i)return r;switch(s.old.ext){case"4dm":case"4qs":_.lspSubject.next({action:_.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(r,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(Zn.rejected,(r,t)=>{const{file:a}=t.meta.arg,s=ft(r,a.path);return s?Re(r,{...s,flags:{...s.flags,loading:!1}}):r}),e.addCase(Sr.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Sr.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:hc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):r}),e.addCase(Sr.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):r}),e.addCase($a.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase($a.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:hc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase($a.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):r}),e.addCase(as.pending,(r,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Re(r,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(as.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${a}${c?`.${c.toLowerCase()}`:""}`);return Re(r,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(as.rejected,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Re(r,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(os.pending,(r,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Re(r,{...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(os.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=gr(`${s}${i?`.${i.toLowerCase()}`:""}`);return Re(r,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(os.rejected,(r,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Re(r,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Na.pending,(r,t)=>{}),e.addCase(Na.fulfilled,(r,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=ag(a.path),c=ft(r,i),l=ft(r,s.path),d=(m=c==null?void 0:c.children)==null?void 0:m.filter(b=>b.path!==a.path),p=s.path.split("/").length,g=a.path.split("/").length;return p>=g?(r=Re(r,{...c,children:d}),r=Re(r,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(r=Re(r,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),r=Re(r,{...c,children:d})),r}),e.addCase(Na.rejected,(r,t)=>{_.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Xn.pending,(r,t)=>{var C;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=_.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:g,supportedEditors:m}=gr(p);switch(c){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.WILL_CREATE,payload:{filePath:p}});break}const b=(C=s.children)==null?void 0:C.filter(I=>I.path!==`${i}/${a}`),E=[{name:a,path:`${i}/${a}`,type:_.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:g,supportedEditors:m},ext:d,date:new Date().toISOString()},...b],x=Re(r,{...s,children:E});return Dh.merge(r,x)}),e.addCase(Xn.fulfilled,(r,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=_.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:g}=gr(d),m=Re(r,{name:a,path:`${s}/${a}`,type:_.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:g},ext:l,date:new Date().toISOString()});switch(i){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.DID_CREATE,payload:{filePath:d}});break}return r=m,r}),e.addCase(Xn.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${s}${c?`.${c.toLowerCase()}`:""}`);return r=Re(r,{name:a,path:`${s}/${a}`,type:_.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),r}),e.addMatcher(ph(Ma),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!0}})),r}),e.addMatcher(gh(Ma),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),r}),e.addMatcher(hh(Ma),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),_.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),r})}}),{toggleExpandFolder:lD,expandFolder:fD,openAddFileInput:dD,addNewFile:rv,refreshFile:pD,removeFile:gc,setFolderChildren:hD}=tv.actions;function nv(e){switch(e){case _.FileFolderType.WEBFORMS:return Og;case _.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
-
`;default:return""}}function
|
|
90
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function ic(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var Ls=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,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=sc(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(C){r={error:C}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}else c.remove(this);var g=this.initialTeardown;if(kr(g))try{g()}catch(C){i=C instanceof Fu?C.errors:[C]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var b=sc(m),E=b.next();!E.done;E=b.next()){var x=E.value;try{Ip(x)}catch(C){i=i??[],C instanceof Fu?i=bs(bs([],ys(i)),ys(C.errors)):i.push(C)}}}catch(C){a={error:C}}finally{try{E&&!E.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}if(i)throw new Fu(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)Ip(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&ic(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&ic(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),ag=Ls.EMPTY;function og(e){return e instanceof Ls||e&&"closed"in e&&kr(e.remove)&&kr(e.add)&&kr(e.unsubscribe)}function Ip(e){kr(e)?e():e.unsubscribe()}var sg={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},uc={setTimeout:function(e,r){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=uc.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,bs([e,r],ys(t))):setTimeout.apply(void 0,bs([e,r],ys(t)))},clearTimeout:function(e){var r=uc.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function yO(e){uc.setTimeout(function(){throw e})}function Fp(){}function ts(e){e()}var ig=function(e){Ns(r,e);function r(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,og(t)&&t.add(a)):a.destination=SO,a}return r.create=function(t,a,s){return new cc(t,a,s)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Ls),bO=Function.prototype.bind;function $u(e,r){return bO.call(e,r)}var _O=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(a){Ko(a)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(a){Ko(a)}else Ko(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){Ko(t)}},e}(),cc=function(e){Ns(r,e);function r(t,a,s){var i=e.call(this)||this,c;if(kr(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&sg.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&$u(t.next,l),error:t.error&&$u(t.error,l),complete:t.complete&&$u(t.complete,l)}):c=t}return i.destination=new _O(c),i}return r}(ig);function Ko(e){yO(e)}function EO(e){throw e}var SO={closed:!0,next:Fp,error:EO,complete:Fp},wO=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function TO(e){return e}function xO(e){return e.length===0?TO:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var $p=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(r,t,a){var s=this,i=RO(r)?r:new cc(r,t,a);return ts(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(r){try{return this._subscribe(r)}catch(t){r.error(t)}},e.prototype.forEach=function(r,t){var a=this;return t=Mp(t),new t(function(s,i){var c=new cc({next:function(l){try{r(l)}catch(d){i(d),c.unsubscribe()}},error:i,complete:s});a.subscribe(c)})},e.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},e.prototype[wO]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return xO(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=Mp(r),new r(function(a,s){var i;t.subscribe(function(c){return i=c},function(c){return s(c)},function(){return a(i)})})},e.create=function(r){return new e(r)},e}();function Mp(e){var r;return(r=e??sg.Promise)!==null&&r!==void 0?r:Promise}function CO(e){return e&&kr(e.next)&&kr(e.error)&&kr(e.complete)}function RO(e){return e&&e instanceof ig||CO(e)&&og(e)}var OO=ng(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ug=function(e){Ns(r,e);function r(){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 r.prototype.lift=function(t){var a=new Np(this,this);return a.operator=t,a},r.prototype._throwIfClosed=function(){if(this.closed)throw new OO},r.prototype.next=function(t){var a=this;ts(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=sc(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}}}})},r.prototype.error=function(t){var a=this;ts(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)}})},r.prototype.complete=function(){var t=this;ts(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var a=t.observers;a.length;)a.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var a=this,s=this,i=s.hasError,c=s.isStopped,l=s.observers;return i||c?ag:(this.currentObservers=null,l.push(t),new Ls(function(){a.currentObservers=null,ic(l,t)}))},r.prototype._checkFinalizedStatuses=function(t){var a=this,s=a.hasError,i=a.thrownError,c=a.isStopped;s?t.error(i):c&&t.complete()},r.prototype.asObservable=function(){var t=new $p;return t.source=this,t},r.create=function(t,a){return new Np(t,a)},r}($p),Np=function(e){Ns(r,e);function r(t,a){var s=e.call(this)||this;return s.destination=t,s.source=a,s}return r.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)},r.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)},r.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)},r.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:ag},r}(ug);const cg=new ug,AO=()=>Bh(),Ur=JR,Mc=q(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),PO=q(Mc,e=>e?e.dataClasses:[]),DO=q(Mc,e=>e?e.methods:[]),lg=e=>q(r=>r,r=>{switch(r.catalog.state){case"loaded":const t=e?r.catalog.model.dataClasses[e]:r.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),IO=e=>Ur(lg(e),Lh),FO=(e,r)=>q(lg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),$O=(e,r,t)=>Ur(FO(e,`${t}.${r}`),Lh),fg=q(e=>e,e=>e),MO=e=>q(Hr,r=>{var s;const t=r.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]}))}),dg=e=>q(Hr,r=>{var a,s;const t=r.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)||[]}),NO=(e,r,t)=>q(fg,a=>{var s,i;if(r){const c=a.sharedDatasources.sources[r];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}}),pg=q(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),LO=(e,r,t,a)=>q(dg(e),pg,(s,i)=>{const c=ze.flatten(ze.values(i)),l=[...r!=="private"?s:[],...r!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:g=""})=>d.id!==p||(d.namespace||"")!==g))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),kO=q(e=>e.debugger,e=>e.meta),An=q(e=>e.debugger,e=>e.list),It=q(e=>e.debugger,e=>e.sessions),jO=q(It,e=>e.length),On=(e,r,t,a)=>e.find(s=>s.filePath===r&&s.methodName===t&&(!a||s.className===a)),st=(e,r)=>e.find(t=>t.threadId===r),hg=(e,r)=>e.find(t=>t.tabPath===r),BO=(e,r)=>q(An,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),WO=(e,r)=>q(An,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),UO=e=>q(An,r=>r.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)),HO=e=>q(An,r=>r.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)),qO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),GO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.activeLine:null}),zO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.expressions)||[]}),YO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stopped)||!1}),VO=(e,r)=>q(An,t=>{var a;return(a=On(t,e,r))==null?void 0:a.source}),KO=e=>q(It,r=>{var t;return((t=hg(r,e))==null?void 0:t.threadId)||-1}),JO=e=>q(It,r=>{var t,a;return(a=(t=st(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),XO=e=>q(It,r=>{var t;return(t=st(r,e))==null?void 0:t.currentStackFrame}),ZO=q(It,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),QO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stackFrames)||[]}),eA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),tA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),rA=(e,r="saved")=>q(An,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),nA=(e,r,t,a)=>q(It,s=>{var p;const i=((p=st(s,e))==null?void 0:p.exceptions)||[],c=r===_.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(g=>g.location===l):i).map(g=>({...g,locationLine:c?g.locationLine:g.locationLine+1}))}),Hr=q(e=>e.root,e=>e),ia=q(Hr,e=>e.tabs),aA=q(Hr,e=>e.activeTab),oA=q(Hr,e=>e.recent.filter(({type:r})=>r!==_.FileFolderType.DEBUGGER)),sA=q(Hr,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),iA=q(Hr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),uA=q(ia,e=>e.filter(({type:r,flags:t})=>r===_.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),cA=q(ia,e=>e.length>0),za=e=>q(Hr,r=>r.tabs.find(({path:t})=>t===e)),gg=(e,r="")=>q(za(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:ze.get(t.content,r)),lA=e=>q(za(e),r=>r==null?void 0:r.extra),fA=(e,r=t=>t)=>q(gg(e,"components"),t=>r(t||{})),Nc=q(ia,e=>e.filter(r=>r.flags.touched)),dA=q(Nc,e=>e.length),pA=q(It,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Ah(r,t),path:a,type:_.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),hA=q(e=>e,e=>e.explorer||[]),vg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.WEBFORMS)),mg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.METHODS)),yg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.CLASSES)),gA=q(mg,e=>(e==null?void 0:e.children)||[]),vA=q(vg,e=>(e==null?void 0:e.children)||[]),mA=q(yg,e=>(e==null?void 0:e.children)||[]),yA=q(e=>e.modals,e=>e.list),bA=q(e=>e.roles,e=>qs(e)),_A=q(e=>e.roles,({roles:e})=>e),EA=q(e=>e.roles,({privileges:e})=>e),SA=q(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),wA=q(e=>e.roles,({flags:e})=>e),TA=q(e=>e.roles,({selectedTab:e})=>e),xA=q(e=>e.roles,({date:e})=>e),bg=q(e=>e.settings,e=>e.session),CA=q(e=>e.settings,e=>e.project),RA=q(e=>e.settings,e=>e),Lc=q(e=>e.settings,e=>e.server),OA=q(Lc,e=>e.remoteDebuggerMode),AA=q(Lc,e=>e.qodly),PA=q(bg,e=>e["monaco.zoom"]),_g=["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"],Eg=_g.map(e=>({id:Tc(),content:"",name:e,parentId:null,scope:_.EWebFormStyleClassScope.THEME})),kc=e=>q(za(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),DA=(e,r)=>q(kc(e),t=>r.map(a=>{switch(!0){case a===_.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:_.EWebFormStyleClassScope.LOCAL}));case a===_.EWebFormStyleClassScope.THEME:return Eg;default:return[]}}).flat()),IA=e=>q(kc(e),r=>[...r.map(t=>({...t,scope:_.EWebFormStyleClassScope.LOCAL})),...Eg]),FA=q(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:_.EWebFormStyleClassScope.SHARED}))]}),$A=e=>q(za(e),r=>r==null?void 0:r.flags),Ya=q(e=>e.webforms,e=>e),Sg=q(Ya,e=>(e==null?void 0:e.components)||[]),ks=q(Ya,e=>e.inspector),MA=q(ks,e=>e.css),NA=q(ks,e=>e.datasource),wg=q(Ya,e=>e.templates||{data:[]}),LA=q(wg,e=>e.data||[]),kA=e=>q(Sg,r=>r.find(t=>t.id===e)),jA=e=>q(ks,r=>r[e]),BA=q(Ya,e=>e.datasources.theme),WA=q(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,r,t)=>[e.state,r.state,t.state].every(a=>["loaded","error"].includes(a)));var jc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(jc||{}),Tg=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Tg||{});const xg={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};var Jo,UA=new Uint8Array(16);function Cg(){if(!Jo&&(Jo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Jo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jo(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 js(e){return typeof e=="string"&&HA.test(e)}var mt=[];for(var Mu=0;Mu<256;++Mu)mt.push((Mu+256).toString(16).substr(1));function Bs(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(mt[e[r+0]]+mt[e[r+1]]+mt[e[r+2]]+mt[e[r+3]]+"-"+mt[e[r+4]]+mt[e[r+5]]+"-"+mt[e[r+6]]+mt[e[r+7]]+"-"+mt[e[r+8]]+mt[e[r+9]]+"-"+mt[e[r+10]]+mt[e[r+11]]+mt[e[r+12]]+mt[e[r+13]]+mt[e[r+14]]+mt[e[r+15]]).toLowerCase();if(!js(t))throw TypeError("Stringified UUID is invalid");return t}var Lp,Nu,Lu=0,ku=0;function qA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||Lp,c=e.clockseq!==void 0?e.clockseq:Nu;if(i==null||c==null){var l=e.random||(e.rng||Cg)();i==null&&(i=Lp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Nu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:ku+1,g=d-Lu+(p-ku)/1e4;if(g<0&&e.clockseq===void 0&&(c=c+1&16383),(g<0||d>Lu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Lu=d,ku=p,Nu=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 b=d/4294967296*1e4&268435455;s[a++]=b>>>8&255,s[a++]=b&255,s[a++]=b>>>24&15|16,s[a++]=b>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var E=0;E<6;++E)s[a+E]=i[E];return r||Bs(s)}function Rg(e){if(!js(e))throw TypeError("Invalid UUID");var r,t=new Uint8Array(16);return t[0]=(r=parseInt(e.slice(0,8),16))>>>24,t[1]=r>>>16&255,t[2]=r>>>8&255,t[3]=r&255,t[4]=(r=parseInt(e.slice(9,13),16))>>>8,t[5]=r&255,t[6]=(r=parseInt(e.slice(14,18),16))>>>8,t[7]=r&255,t[8]=(r=parseInt(e.slice(19,23),16))>>>8,t[9]=r&255,t[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=r/4294967296&255,t[12]=r>>>24&255,t[13]=r>>>16&255,t[14]=r>>>8&255,t[15]=r&255,t}function GA(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}var zA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",YA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Og(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=GA(s)),typeof i=="string"&&(i=Rg(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|r,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 Bs(d)}try{a.name=e}catch{}return a.DNS=zA,a.URL=YA,a}function VA(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var t=0;t<r.length;++t)e[t]=r.charCodeAt(t)}return KA(JA(XA(e),e.length*8))}function KA(e){for(var r=[],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);r.push(c)}return r}function Ag(e){return(e+64>>>9<<4)+14+1}function JA(e,r){e[r>>5]|=128<<r%32,e[Ag(r)-1]=r;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,g=i;t=Et(t,a,s,i,e[c],7,-680876936),i=Et(i,t,a,s,e[c+1],12,-389564586),s=Et(s,i,t,a,e[c+2],17,606105819),a=Et(a,s,i,t,e[c+3],22,-1044525330),t=Et(t,a,s,i,e[c+4],7,-176418897),i=Et(i,t,a,s,e[c+5],12,1200080426),s=Et(s,i,t,a,e[c+6],17,-1473231341),a=Et(a,s,i,t,e[c+7],22,-45705983),t=Et(t,a,s,i,e[c+8],7,1770035416),i=Et(i,t,a,s,e[c+9],12,-1958414417),s=Et(s,i,t,a,e[c+10],17,-42063),a=Et(a,s,i,t,e[c+11],22,-1990404162),t=Et(t,a,s,i,e[c+12],7,1804603682),i=Et(i,t,a,s,e[c+13],12,-40341101),s=Et(s,i,t,a,e[c+14],17,-1502002290),a=Et(a,s,i,t,e[c+15],22,1236535329),t=St(t,a,s,i,e[c+1],5,-165796510),i=St(i,t,a,s,e[c+6],9,-1069501632),s=St(s,i,t,a,e[c+11],14,643717713),a=St(a,s,i,t,e[c],20,-373897302),t=St(t,a,s,i,e[c+5],5,-701558691),i=St(i,t,a,s,e[c+10],9,38016083),s=St(s,i,t,a,e[c+15],14,-660478335),a=St(a,s,i,t,e[c+4],20,-405537848),t=St(t,a,s,i,e[c+9],5,568446438),i=St(i,t,a,s,e[c+14],9,-1019803690),s=St(s,i,t,a,e[c+3],14,-187363961),a=St(a,s,i,t,e[c+8],20,1163531501),t=St(t,a,s,i,e[c+13],5,-1444681467),i=St(i,t,a,s,e[c+2],9,-51403784),s=St(s,i,t,a,e[c+7],14,1735328473),a=St(a,s,i,t,e[c+12],20,-1926607734),t=wt(t,a,s,i,e[c+5],4,-378558),i=wt(i,t,a,s,e[c+8],11,-2022574463),s=wt(s,i,t,a,e[c+11],16,1839030562),a=wt(a,s,i,t,e[c+14],23,-35309556),t=wt(t,a,s,i,e[c+1],4,-1530992060),i=wt(i,t,a,s,e[c+4],11,1272893353),s=wt(s,i,t,a,e[c+7],16,-155497632),a=wt(a,s,i,t,e[c+10],23,-1094730640),t=wt(t,a,s,i,e[c+13],4,681279174),i=wt(i,t,a,s,e[c],11,-358537222),s=wt(s,i,t,a,e[c+3],16,-722521979),a=wt(a,s,i,t,e[c+6],23,76029189),t=wt(t,a,s,i,e[c+9],4,-640364487),i=wt(i,t,a,s,e[c+12],11,-421815835),s=wt(s,i,t,a,e[c+15],16,530742520),a=wt(a,s,i,t,e[c+2],23,-995338651),t=Tt(t,a,s,i,e[c],6,-198630844),i=Tt(i,t,a,s,e[c+7],10,1126891415),s=Tt(s,i,t,a,e[c+14],15,-1416354905),a=Tt(a,s,i,t,e[c+5],21,-57434055),t=Tt(t,a,s,i,e[c+12],6,1700485571),i=Tt(i,t,a,s,e[c+3],10,-1894986606),s=Tt(s,i,t,a,e[c+10],15,-1051523),a=Tt(a,s,i,t,e[c+1],21,-2054922799),t=Tt(t,a,s,i,e[c+8],6,1873313359),i=Tt(i,t,a,s,e[c+15],10,-30611744),s=Tt(s,i,t,a,e[c+6],15,-1560198380),a=Tt(a,s,i,t,e[c+13],21,1309151649),t=Tt(t,a,s,i,e[c+4],6,-145523070),i=Tt(i,t,a,s,e[c+11],10,-1120210379),s=Tt(s,i,t,a,e[c+2],15,718787259),a=Tt(a,s,i,t,e[c+9],21,-343485551),t=nn(t,l),a=nn(a,d),s=nn(s,p),i=nn(i,g)}return[t,a,s,i]}function XA(e){if(e.length===0)return[];for(var r=e.length*8,t=new Uint32Array(Ag(r)),a=0;a<r;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function nn(e,r){var t=(e&65535)+(r&65535),a=(e>>16)+(r>>16)+(t>>16);return a<<16|t&65535}function ZA(e,r){return e<<r|e>>>32-r}function Ws(e,r,t,a,s,i){return nn(ZA(nn(nn(r,e),nn(a,i)),s),t)}function Et(e,r,t,a,s,i,c){return Ws(r&t|~r&a,e,r,s,i,c)}function St(e,r,t,a,s,i,c){return Ws(r&a|t&~a,e,r,s,i,c)}function wt(e,r,t,a,s,i,c){return Ws(r^t^a,e,r,s,i,c)}function Tt(e,r,t,a,s,i,c){return Ws(t^(r|~a),e,r,s,i,c)}var QA=Og("v3",48,VA);const eP=QA;function tP(e,r,t){e=e||{};var a=e.random||(e.rng||Cg)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,r){t=t||0;for(var s=0;s<16;++s)r[t+s]=a[s];return r}return Bs(a)}function rP(e,r,t,a){switch(e){case 0:return r&t^~r&a;case 1:return r^t^a;case 2:return r&t^r&a^t&a;case 3:return r^t^a}}function ju(e,r){return e<<r|e>>>32-r}function nP(e){var r=[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),g=0;g<16;++g)p[g]=e[d*64+g*4]<<24|e[d*64+g*4+1]<<16|e[d*64+g*4+2]<<8|e[d*64+g*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 b=new Uint32Array(80),E=0;E<16;++E)b[E]=l[m][E];for(var x=16;x<80;++x)b[x]=ju(b[x-3]^b[x-8]^b[x-14]^b[x-16],1);for(var C=t[0],I=t[1],P=t[2],j=t[3],M=t[4],k=0;k<80;++k){var O=Math.floor(k/20),Y=ju(C,5)+rP(O,I,P,j)+M+r[O]+b[k]>>>0;M=j,j=P,P=ju(I,30)>>>0,I=C,C=Y}t[0]=t[0]+C>>>0,t[1]=t[1]+I>>>0,t[2]=t[2]+P>>>0,t[3]=t[3]+j>>>0,t[4]=t[4]+M>>>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=Og("v5",80,nP);const oP=aP,sP="00000000-0000-0000-0000-000000000000";function iP(e){if(!js(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const uP=Object.freeze(Object.defineProperty({__proto__:null,NIL:sP,parse:Rg,stringify:Bs,v1:qA,v3:eP,v4:tP,v5:oP,validate:js,version:iP},Symbol.toStringTag,{value:"Module"})),cP=iw(uP);function Bc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Bc.prototype.convert=function(e){var r,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(r=0;r<l;r++)s[r]=this.srcAlphabet.indexOf(e[r]);do{for(t=0,a=0,r=0;r<l;r++)t=t*i+s[r],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};Bc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var lP=Bc,fP=lP;function Va(e,r){var t=new fP(e,r);return function(a){return t.convert(a)}}Va.BIN="01";Va.OCT="01234567";Va.DEC="0123456789";Va.HEX="0123456789abcdef";var dP=Va;const{v4:Bu}=cP,Xo=dP,Wu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",pP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",hP={consistentLength:!0};let Uu;const kp=(e,r,t)=>{const a=r(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},gP=(e,r)=>{const a=r(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 _s=(()=>{const e=(r,t)=>{const a=r||Wu,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=Xo(Xo.HEX,a),d=Xo(a,Xo.HEX),p=()=>kp(Bu(),l,c),g={new:p,generate:p,uuid:Bu,fromUUID:m=>kp(m,l,c),toUUID:m=>gP(m,d),alphabet:a,maxLength:i};return Object.freeze(g),g};return e.constants={flickrBase58:Wu,cookieBase90:pP},e.uuid=Bu,e.generate=()=>(Uu||(Uu=e(Wu).generate),Uu()),e})(),Ae=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ae||{});const mP=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],Es="guest",Wc=[{key:"read",label:"Read",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ae.METHOD]}];function ar(e,...r){return Array.from(new Set([...e,...r]))}function Pg(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||_s.generate();r[p]={...d,id:p,parents:[],includes:ar(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(r).forEach(([d,p])=>{const g=p.includes.map(m=>{const b=t.get(m);return b?(r[b].parents=ar(r[b].parents,b),b):""}).filter(Boolean);r[d]={...p,includes:g}});const a=Dg(r),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=>r[p].parents.push(d.id))}),Object.values(r).find(({privilege:d})=>d===Es))return r;const l=_s.generate();return{[l]:{id:l,privilege:Es,includes:[],parents:[],resources:[]},...r}}function Dg(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function Us(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=ar(a,...Us(s,r),s)}),a}function Ss(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=ar(a,...Ss(s,r),s)}),a}function yP(e,r){const t=r[e];if(!t)return[];const a=[e,...Us(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function bP(e,r){return r[e]?Object.keys(r).reduce((a,s)=>s===e?a:{...a,[s]:{...r[s],parents:r[s].parents.filter(i=>i!==e),includes:r[s].includes.filter(i=>i!==e)}},{}):r}function _P(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:ar(a.includes,r)},[r]:{...t[r],parents:ar(s.parents,e)}}}function EP(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==r)},[r]:{...t[r],parents:t[r].parents.filter(i=>i!==e)}}}function Ig(e,r){_.validateName(e),Object.entries(r).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=_s.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function SP(e,r,t,a,s){let i=Ig(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Ng(c[1].id,r,t,a,i),i):s}function wP(e,r,t){if(!e)throw new Error("Please enter a name");if(!t[r])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&r!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[r]:{...t[r],privilege:e}}}function TP(e,r){return e.map(t=>qr(t,r))}function qr(e,r){return r[e]?r[e]:null}function Fg({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=ze.find(Wc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=ar(a[d]||[],s)}),a},{})}const lc=(e,r=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${r?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${r?"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 ${r?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Uc(e){return{permissions:Wc.filter(({canApplyTo:r})=>r.includes(e.type)).map(({key:r,label:t})=>{const a={name:r,from:[]};switch(e.type){case Ae.DATASTORE:return{...a,info:lc(t,!0)};case Ae.DATACLASS:return{...a,info:lc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function $g(e,r){const t=Mg(r),a={};return e.filter(({type:s})=>mP.includes(s)).forEach(s=>{const i=Fg(s);Object.entries(i).forEach(([c,l])=>{var g;const d=(g=t[c])==null?void 0:g.id;if(!d)return;a[d]=a[d]||{...r[d]};let p=ze.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=Uc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...r,...a}}function Mg(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function Hs(e){var t;const r=Pg(e.privileges||[]);return{privileges:$g(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=_s.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:ar(i).map(c=>{var l;return(l=Object.values(r).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function qs(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>Us(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=ze.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:g})=>{g&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==Es).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 xP(e,r){const t=r[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const g=l.reduce((m,b)=>[...m,...r[b][d]],[]);return g.length===0?p:(p.push(g),s(g,d,p))}function i(l){const d=[],p=[];for(let g=l.length-1;g>=0;g-=1){const m=l[g].filter(b=>d.includes(b)?!1:(d.push(b),!0));m.length>0&&p.unshift(ar(m))}return p}function c(l,d){const p=[];return l.reduce((g,m)=>(m.forEach(b=>{r[b][d==="parents"?"includes":"parents"].forEach(x=>{p.includes(x)&&g.push(d==="parents"?{source:b,target:x}:{source:x,target:b})}),p.push(b)}),g),[])}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 CP(e,r,t){const a=qr(e,t);if(!a||ze.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,Uc(r)]};return{...t,[e]:s}}function RP(e,r,t){const a=qr(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==r.applyTo||c!==r.type)};return{...t,[e]:s}}function OP(e,r){const t=qr(e,r);if(!t)return r;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{...r,[e]:a}}function Ng(e,r,t,a,s){const i=qr(e,s);if(!i)return s;const l=ze.find(i.resources,{type:t,resource:r})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===r?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:r,permissions:Wc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:lc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function AP(e,r,t,a){const s=qr(e,a);if(!s)return a;const c=ze.find(s.resources,{type:r.type,resource:r.resource})?{...s,resources:s.resources.map(l=>l.type===r.type&&l.resource===r.resource?{...l,permissions:r.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...r,permissions:r.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function PP(e,r){var d;const t=Lg(e,r)||[],a=((d=qr(e,r))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Ae.METHOD)||[]).map(({resource:p})=>p);return Object.entries(r).reduce((p,[g,{resources:m}])=>(m.filter(({resource:b,type:E})=>E===Ae.METHOD&&c.includes(b)).forEach(({permissions:b,resource:E})=>{var C;((C=b.find(({name:I})=>I==="promote"))==null?void 0:C.checked)&&(p[E]=ar(p[E]||[],g))}),p),{})}function Lg(e,r){var c;const t=qr(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===Es))==null?void 0:c.id;return(a&&a!==e?ar(Ss(e,r),a):Ss(e,r)).reduce((l,d)=>(r[d].resources.forEach(g=>{if(g.permissions.filter(({checked:E})=>E).length===0)return;const b=ze.find(l,{type:g.type,resource:g.resource});if(!b){l.push({...g,permissions:g.permissions.map(E=>({...E,from:E.checked?[d]:[],checked:!1}))});return}b.permissions=b.permissions.map((E,x)=>{let{from:C=[]}=E;return g.permissions[x].checked&&!C.includes(d)&&(C=[...C,d]),{...E,from:C,checked:E.checked}})}),l),ze.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const DP=e=>e.reduce((r,t)=>({...r,[t.id]:{...t}}),{}),IP=(e,r)=>r[e]?Object.values(r).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):r,FP=(e,r,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:r}}:{...a,[s.id]:s},{}):t,$P=(e,r)=>{const t={id:e,role:"",privileges:[]};return{...r,[t.id]:t}},MP=(e,r)=>{if(_.validateName(e.role),Object.values(r).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(r).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},NP={list:[]},jp=(e,r)=>e.list.filter(t=>t.id!==r),kg=or({name:"modals",initialState:NP,reducers:{createModal:(e,r)=>{e.list.push(r.payload)},editModal:(e,r)=>{const{id:t,...a}=r.payload,s=e.list.find(_.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,r)=>{const t=r.payload;e.list=jp(e,t)},closeModal:(e,r)=>{const{id:t,reason:a}=r.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=jp(e,t)}}}),{createModal:jg,removeModal:Bg,closeModal:LP,editModal:kP}=kg.actions;var Wg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Bp=Ke.createContext&&Ke.createContext(Wg),sn=globalThis&&globalThis.__assign||function(){return sn=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},sn.apply(this,arguments)},jP=globalThis&&globalThis.__rest||function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)r.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(t[a[s]]=e[a[s]]);return t};function Ug(e){return e&&e.map(function(r,t){return Ke.createElement(r.tag,sn({key:t},r.attr),Ug(r.child))})}function Gs(e){return function(r){return Ke.createElement(BP,sn({attr:sn({},e.attr)},r),Ug(e.child))}}function BP(e){var r=function(t){var a=e.attr,s=e.size,i=e.title,c=jP(e,["attr","size","title"]),l=s||t.size||"1em",d;return t.className&&(d=t.className),e.className&&(d=(d?d+" ":"")+e.className),Ke.createElement("svg",sn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,c,{className:d,style:sn(sn({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Ke.createElement("title",null,i),e.children)};return Bp!==void 0?Ke.createElement(Bp.Consumer,null,function(t){return r(t)}):r(Wg)}function WP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"}}]})(e)}function UP(e){return Gs({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(e)}function HP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z"}},{tag:"path",attr:{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}}]})(e)}function qP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"}}]})(e)}const GP={FaSave:WP,AiFillWarning:qP,BiErrorCircle:HP,BsFillInfoCircleFill:UP};var kt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(kt||{}),Tr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Tr||{}),Hc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Hc||{});const sr=Q("modals/open",async(e,{dispatch:r})=>{const{type:t=kt.ALERT,store:a=Vs()}=e,s=Tc();switch(r(jg({id:s,type:t,isOpen:!0,...e})),t){case kt.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(g=>g.id===s);if(d&&!d.isOpen){const g=d.closeReason===Hc.CONFIRMED,m=ze.entries((p=d.views)==null?void 0:p.toggles).reduce((b,E)=>({...b,[E[0]]:E[1].value}),{});r(Bg(s)),c(),i({confirmed:g,options:m})}})});default:return{}}}),Hg=()=>_.getFileContent({name:_.ROLES_TAB_PATH}),qg="Roles & Privileges",ws=Q("roles/fetchRoles",async(e,{dispatch:r,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:_.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:qg,type:_.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:_.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return r(Dt(s)),{...a,content:Hs(a.content)}}),Gg=Q("roles/fetchRolesChanges",async(e,{getState:r})=>{const{tabs:t}=r().root;if(t.find(s=>s.path===_.ROLES_TAB_PATH)){const{date:s}=r().roles;if(s&&await qc(s))return{old:!0}}return{}}),qc=async e=>{if(!e)return!1;try{const r=await Hg();if(r.date){const t=new Date(e),a=new Date(r.date);if(t>a)return!0}}catch(r){if(!Array.isArray(r==null?void 0:r.data.__ERROR))throw r}return!1},fc=Q("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await qc(i)){const{confirmed:d}=await a(sr({title:qg,message:"New content has been found on the server. Are you sure you want to continue?",type:kt.CONFIRM,icon:"FaSave"})).unwrap();if(!d)return t({old:!0})}return await _.setFileContent({name:_.ROLES_TAB_PATH,content:qs(e)})}catch{return t("Error while loading the roles")}}),zg=or({name:"roles",initialState:()=>{const{roles:e}=ta(),{roles:r={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:r,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,r)=>{e.privileges=r.payload,e.flags.touched=!0},updateRoles:(e,r)=>{e.roles=r.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,r)=>{e.roles=r.payload.roles,e.privileges=r.payload.privileges},toggleTab:(e,r)=>{e.selectedTab=r.payload},setRolesContent(e,r){const{content:t,flags:a={},...s}=r.payload,i=Hs(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(ws.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase(ws.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(fc.fulfilled,(r,t)=>({...r,flags:{...r.flags,touched:!1,old:!1},date:t.payload.date})).addCase(fc.rejected,(r,t)=>Oh.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(Gg.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(Zn.fulfilled,(r,t)=>{!t.payload||t.payload.path!==_.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(Xc.fulfilled,(r,t)=>{t.meta.arg!==_.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:Yg,updateRoles:Vg,setRolesContent:Gc,toggleTab:zP,updateRolesAndPrivileges:zc}=zg.actions,YP=zg.reducer,cn="qodlyApp.json",Yc=Q("settings/fetch",async()=>await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:cn,content:!0,as:"json"})),Kg=Q("settings/app",_.getAppSettings),VP=Eh(),Wp={session:{"studio.tips":!0,"studio.notifications":!0,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":jc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:_.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},KP={...Wp,session:{...Wp.session,...VP},welcometour:{}},Jg=or({name:"settings",initialState:KP,reducers:{setSetting(e,r){const{path:t,settingsKey:a,value:s}=r.payload;e[t][a]=s},setSettings(e,r){const{path:t,value:a}=r.payload;e[t]={...e[t],...a}},setSettingsAsText(e,r){const{path:t,settings:a}=r.payload;e[t]=a}},extraReducers(e){e.addCase(Yc.fulfilled,(r,t)=>{r.project={...r.project,...t.payload.content}}),e.addCase(Kg.fulfilled,(r,t)=>{r.server=t.payload,r.server.qodly&&(r.project["webforms.display-mode"]="airy")})}}),{setSetting:Xg,setSettings:zs,setSettingsAsText:JP}=Jg.actions,XP=Jg.reducer,dc=e=>{const r=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):r.indexOf(t.type)-r.indexOf(a.type))},Re=(e,r)=>e.reduce((t,a)=>a.path===r.path&&a.type===r.type?[...t,r]:a.children?[...t,{...a,children:dc(Re(a.children,r))}]:[...t,a],[]),ft=(e,r)=>e.reduce((t,a)=>t||(a.path===r?a:a.children?ft(a.children,r):null),null),ZP=[{name:_.FolderRootPath.WEBFORMS,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:_.FolderRootPath.METHODS,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:_.FolderRootPath.CLASSES,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:_.FolderRootPath.SHARED,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:_.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:_.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:_.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:_.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Zg=or({name:"explorer",initialState:ZP,reducers:{toggleExpandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!r.payload.flags.expanded}}),e),expandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!0}}),e),openAddFileInput:(e,r)=>Re(e,{...r.payload,flags:{...r.payload.flags,adding:!0}}),addNewFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,r)=>{const{parent:t,child:a}=r.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Re(e,{...t,children:[a,...s]})},setFolderChildren:(e,r)=>{const t=ft(e,r.payload.parentPath);return t?Re(e,{...t,children:r.payload.children}):e}},extraReducers:e=>{e.addCase(Xn.pending,(r,t)=>{const{file:a,newname:s}=t.meta.arg,i=ft(r,a.path);if(!i)return r;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":_.lspSubject.next({action:_.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(r,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(Xn.fulfilled,(r,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=ft(r,a.path);if(!i)return r;switch(s.old.ext){case"4dm":case"4qs":_.lspSubject.next({action:_.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(r,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(Xn.rejected,(r,t)=>{const{file:a}=t.meta.arg,s=ft(r,a.path);return s?Re(r,{...s,flags:{...s.flags,loading:!1}}):r}),e.addCase(Sr.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Sr.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:dc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):r}),e.addCase(Sr.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):r}),e.addCase(Fa.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Fa.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:dc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase(Fa.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):r}),e.addCase(rs.pending,(r,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Re(r,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(rs.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${a}${c?`.${c.toLowerCase()}`:""}`);return Re(r,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(rs.rejected,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Re(r,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(ns.pending,(r,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Re(r,{...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(ns.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=gr(`${s}${i?`.${i.toLowerCase()}`:""}`);return Re(r,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(ns.rejected,(r,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Re(r,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Ma.pending,(r,t)=>{}),e.addCase(Ma.fulfilled,(r,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=tg(a.path),c=ft(r,i),l=ft(r,s.path),d=(m=c==null?void 0:c.children)==null?void 0:m.filter(b=>b.path!==a.path),p=s.path.split("/").length,g=a.path.split("/").length;return p>=g?(r=Re(r,{...c,children:d}),r=Re(r,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(r=Re(r,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),r=Re(r,{...c,children:d})),r}),e.addCase(Ma.rejected,(r,t)=>{_.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Jn.pending,(r,t)=>{var C;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=_.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:g,supportedEditors:m}=gr(p);switch(c){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.WILL_CREATE,payload:{filePath:p}});break}const b=(C=s.children)==null?void 0:C.filter(I=>I.path!==`${i}/${a}`),E=[{name:a,path:`${i}/${a}`,type:_.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:g,supportedEditors:m},ext:d,date:new Date().toISOString()},...b],x=Re(r,{...s,children:E});return Oh.merge(r,x)}),e.addCase(Jn.fulfilled,(r,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=_.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:g}=gr(d),m=Re(r,{name:a,path:`${s}/${a}`,type:_.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:g},ext:l,date:new Date().toISOString()});switch(i){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.DID_CREATE,payload:{filePath:d}});break}return r=m,r}),e.addCase(Jn.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${s}${c?`.${c.toLowerCase()}`:""}`);return r=Re(r,{name:a,path:`${s}/${a}`,type:_.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),r}),e.addMatcher(ch($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!0}})),r}),e.addMatcher(fh($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),r}),e.addMatcher(lh($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),_.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),r})}}),{toggleExpandFolder:QP,expandFolder:eD,openAddFileInput:tD,addNewFile:Qg,refreshFile:rD,removeFile:pc,setFolderChildren:nD}=Zg.actions;function ev(e){switch(e){case _.FileFolderType.WEBFORMS:return xg;case _.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
+
`;default:return""}}function tv(e,r,t){switch(r){case _.FileFolderType.MOBILEFORM:return`${e}.MForm`;case _.FileFolderType.WEBFORM:return`${e}.WebForm`;case _.FileFolderType.METHOD:case _.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function aD(e){switch(e){case _.FolderRootPath.WEBFORMS:return _.FileFolderType.WEBFORMS;case _.FolderRootPath.METHODS:return _.FileFolderType.METHODS;case _.FolderRootPath.CLASSES:return _.FileFolderType.CLASSES;case"Mobile":return _.FileFolderType.MOBILE;default:return e}}function rv(e){switch(e){case _.FileFolderType.WEBFORMS:return _.FileFolderType.WEBFORM;case _.FileFolderType.CLASSES:return _.FileFolderType.CLASS;case _.FileFolderType.METHODS:return _.FileFolderType.METHOD;case _.FileFolderType.FOLDER:return _.FileFolderType.FOLDER;case _.FileFolderType.MOBILE:return _.FileFolderType.MOBILEFORM;default:return e}}const oD=Q("files/tryEditMethod",async({method:e},{dispatch:r})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=gr(e.filePath);return await r(Vc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:_.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),hc=Q("explorer/createModelFiles",async(e,{dispatch:r,getState:t})=>{var m;const a=t(),s=_.FolderRootPath.CLASSES,i=a.settings.server.qodly,c=ft(a.explorer,s);if(!c)return;await r(Sr(s));const d=((m=t().explorer.find(b=>b.name===s))==null?void 0:m.children)||[];let p=[{content:"",name:""}];const g=b=>{switch(b){case"dataclass":return{name:e.type==="dataclass"?e.className:"DataStore",content:i?`extends DataClass
|
|
92
92
|
`:`Class extends DataClass
|
|
93
93
|
`};case"collection":return{name:e.type==="dataclass"?e.collectionName:"DataStore",content:i?`extends EntitySelection
|
|
94
94
|
`:`Class extends EntitySelection
|
|
@@ -96,35 +96,35 @@ globstar while`,r,m,t,b,E),this.matchOne(r.slice(m),t.slice(b),a))return this.de
|
|
|
96
96
|
`:`Class extends Entity
|
|
97
97
|
`};case"model":return{name:"DataStore",content:i?`extends DataStoreImplementation
|
|
98
98
|
`:`Class extends DataStoreImplementation
|
|
99
|
-
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...g("dataclass")},{...g("collection")},{...g("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...g(e.toCreate)}]:p=[{...g("model")}],p=p.filter(b=>!d.find(({name:E,ext:x})=>E===b.name&&x===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:b,content:E})=>{await r(Xn({type:_.FileFolderType.CLASS,path:s,fileName:b,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await r(Sr(s))}),Sr=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${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 r("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),$a=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${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 r("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function mD(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const yD=Q("explorer/uploadFile",async e=>{const r=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${r}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),bD=Q("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=gr(r),{name:c,ext:l}=mD(e.name);a(rv({parent:t,child:{name:c,path:`${r}/${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=${r}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(gc({parent:t,child:{name:c,path:`${r}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&_.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Sr(t.path)),{status:d.status,fileName:e.name}}catch{return a(gc({parent:t,child:{name:c,path:`${r}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),_.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Xn=Q("explorer/createNewFile",async({fileName:e,type:r,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{qodly:d}=l().settings.server;try{const p=await _.setFileContent({name:av(e,r,d),content:s||nv(r),path:t,asText:[_.FileFolderType.CLASS,_.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(Sr(a.path)):await i($a(a.path))),{qodly:d,file:p,parentNode:a}}catch{return c("failed to create folder")}});function sv(e,r){const{qodly:t=!0,withExtension:a=!0}=r||{},s=_.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case _.FileFolderType.WEBFORM:i=`${_.FolderRootPath.WEBFORMS}/${e.name}`;break;case _.FileFolderType.METHOD:i=`${_.FolderRootPath.METHODS}/${e.name}`;break;case _.FileFolderType.CLASS:i=`${_.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const _D=Q("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(Xn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=sv(i,{withExtension:!1,qodly:s}),{editor:l}=gr(c);await r(Ma({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),as=Q("explorer/createNewNode",async({fileName:e,path:r,parentNode:t},{rejectWithValue:a})=>{try{return{file:await _.createFolder({verb:_.DesignerRequestVerb.CREATE_FOLDER,path:`${r}/${e}`,recursive:!0}),parentNode:t}}catch{return _.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Ks=async e=>{try{const r=e.path.split(".").at(-1),t=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:Ch(r)?"json":"text"}),a={editor:e.editor},s=_.getTypeFromExtension(e.path);s===_.FileFolderType.METHOD&&(a.attributes=_.parseAttributes(t.content),t.content=_.addAttributesToContent(t.content,{}));const{content:i,date:c,ext:l}=t;return{date:c,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(l)},extra:a,name:e.name,path:e.path,type:s,initialContent:i,content:i}}catch(r){const{data:t}=r;if(t.__ERROR.find(a=>a.errCode===_.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case _.ROLES_TAB_PATH:{const a={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:_.FileFolderType.ROLES,initialContent:a,content:a}}case cn:{const a={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:_.FileFolderType.SETTINGS,initialContent:a,content:a}}}throw r}},Ma=Q("explorer/openFile",async({file:e,inactive:r,flags:t={}},{getState:a,dispatch:s})=>{const{root:{tabs:i},roles:c,debugger:{sessions:l}}=a(),d=i.find(({path:m})=>e.path===m);if(d){const m={...d,extra:{...d==null?void 0:d.extra,editor:e.editor},flags:{...d==null?void 0:d.flags,...t}};return s(Dt(m)),m}if(e.path.startsWith("Debugger")){const m=l.find(b=>`Debugger/${b.threadId}`===e.path);if(m){const{source:{content:b},source:E}=m.currentStackFrame,x={name:e.name,type:_.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:b,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:b,flags:{},extra:{source:E,editor:e.editor}};return s(Dt(x)),x}}let p=null;try{p=await Ks(e)}catch(m){const{data:b}=m;if(b.__ERROR.find(E=>[_.ERROR_CODES.JSON_MALFORMED,_.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(E.errCode))){const{confirmed:E}=await s(sr({title:"Corrupt file",type:kt.CONFIRM,color:Tr.WARNING,message:"Open in code editor ?"})).unwrap();if(E){const x=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:C,date:I,ext:P}=x;p={date:I,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(P)},extra:{editor:_.EDITOR.Code},name:e.name,path:e.path,type:_.getTypeFromExtension(e.path),initialContent:C,content:C}}}}return p&&(e.path===_.ROLES_TAB_PATH&&!c.flags.touched?s(Yc({content:p.content,date:p.date})):e.path===cn&&s(Vs({path:"project",value:p.content})),s((r?Wv:Dt)(p)),p)}),Jc=Q("explorer/openFileAtLine",async({file:e},{getState:r,dispatch:t})=>{const{tabs:a}=r().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(Dt(c)),c}const i=await Ks(e);return t(Dt(i)),i}),iv=Q("explorer/injectContentAtLine",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const s=r();e.path.split("/").pop();const c=ft(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Ks({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:_.FileFolderType.CLASS,editor:c.config.editor});return await t(Dt(l)),{...e,path:`${c.path}.${c.ext}`}}),uv=Q("explorer/openFileAtSelection",async({file:e},{getState:r,dispatch:t})=>{const{tabs:a}=r().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(Dt(c)),c}const i=await Ks(e);return t(Dt(i)),i}),mc=Q("explorer/deleteFile",async e=>{const{name:r,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await _.dropFile({root:_.FolderRootType.ROOT,type:ov(t),verb:_.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),ED=Q("explorer/deleteFolder",async e=>{const{path:r,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await _.removeItem({force:!0,path:r,verb:_.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),SD=Q("explorer/removeFileNode",async(e,{getState:r,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await _.removeItem({verb:_.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&za(),e.ext){const{tabs:s}=r().root,i=s.findIndex(c=>c.path===a);i>=0&&t(sl(i))}return{deleted:!0,node:e}}),Zn=Q("explorer/renameFile",async({file:e,newname:r})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${r}.${e.ext}`;return await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:r,path:i}}}const t=e.path.split("/");return t.pop(),await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${r}`}),{old:e,new:{...e,name:r,path:`${t.join("/")}/${r}`}}}),Na=Q("explorer/relocateNode",async({draggedNode:e,newLocation:r},{rejectWithValue:t})=>{try{await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${r.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),os=Q("explorer/duplicateNode",async({node:e,duplicateName:r},{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 _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),g=await _.setFileContent({name:`${r}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...g,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),wD=Q("explorer/executeMethod",async({methodName:e,params:r=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:r,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?_.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):_.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return _.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),TD=Q("files/fetchFiles",async()=>_.getFolders(_.FolderRootType.WEBFORMS,_.FolderRootType.METHODS,_.FolderRootType.CLASSES)),Xc=Q("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var E,x;const a=!!e.datasourceNamespace,{confirmed:s}=await r(sr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:kt.CONFIRM,color:Tr.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,g=t();let m=[];if(a){const C=g.sharedDatasources.sources[l]||[];m.push(...C)}else if(p){const C=g.root.tabs.find(_.by("path",p));if(m=(x=(E=C==null?void 0:C.content)==null?void 0:E.metadata)==null?void 0:x.datasources,!m)return null}const b=new RegExp(`^${c}\\b`,"");if(m=m.map(C=>{const I=(_.isObjectDatasource(C)||!_.isSimpleDatasource(C))&&C.from&&b.test(C.from),P=C.events?C.events.map(j=>{var M,k,O,Y;switch(j==null?void 0:j.type){case"method":{const H=j;return H.params?{...H,params:H.params.map(z=>{var te;return{...z,datasource:(te=z.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=H.returns)!=null&&M.datasource?{...H.returns,datasource:(k=H.returns.datasource)==null?void 0:k.replace(new RegExp(`^${c}`,""),d)}:H.returns}:H}case"simple-action":{const H=j;return H.datasource?{...H,datasource:{...H.datasource,name:(O=H.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(Y=H.datasource.from)==null?void 0:Y.replace(new RegExp(`^${c}`,""),d)}}:H}default:return j}}):C.events;return C.id===c?{...C,id:d,events:P}:I&&C.from?{...C,from:C.from.replace(new RegExp(`^${c}`,""),d),events:P}:{...C,events:P}}),i){const C=a?`${l}:${c}`:`${c}`,I=a?`${l}:${d}`:`${d}`;_.datasourcesSubject.next({path:p??"",action:_.DatasourcesActions.RENAME,old_reference:C,new_reference:I,is_shared:a})}return{path:p,namespace:l,datasources:m}}),Zc=Q("tabs/edit-datasource",(e,{getState:r})=>{var i,c;const t=r();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(_.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)}),cv=Q("tabs/fetchChanges",async(e,{getState:r})=>{const a=ca(r()).filter(s=>[_.FileFolderType.METHOD,_.FileFolderType.CLASS].includes(s.type));return _.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),xD=Q("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=kc(r());for(const s of a)t(Qn({tab:s}))}),Qc=Q("files/tryCloseTab",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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(sr({title:Is(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!c)return!1}return t(sl(s)),i.path===_.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:_.ROLES_TAB_PATH,content:!0,as:"json"});t(Yc({content:l.content,date:l.date}))})(),!0}),CD=Q("files/tryCloseOtherTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(sr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(kv(e))}),RD=Q("files/tryCloseAllTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(sr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Nv())}),OD=Q("files/tryCloseRightTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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(sr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Lv(e))}),AD=Q("files/tryCloseLeftTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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(sr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(jv(e))}),yc=Q("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(sr({title:Is(e),message:"Changes made to the file will be lost. Continue?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!s)return}const t=og(e.path),a=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===_.ROLES_TAB_PATH){const{roles:s,privileges:i}=Gs(a.content);r(Vc({roles:s,privileges:i}))}else if(e.path===cn){const{content:s}=a;r(Vs({path:"project",value:s}))}else{const{content:s}=a;e.type===_.FileFolderType.WEBFORM?_.webformSubject.next({path:e.path,action:_.WebformActions.RELOAD,payload:s.components}):e.type===_.FileFolderType.MODEL&&dg.next({action:"reload",payload:s})}return a}),Qn=Q("files/saveTab",async({tab:e},{dispatch:r,getState:t})=>{const{path:a,content:s}=e;if(e.type===_.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await _.getFilesInfo({path:a});if(c.files[0]){const g=new Date(e.date),m=new Date(c.files[0].date);if(g.getTime()<m.getTime()){const{confirmed:b}=await r(sr({title:Is(e),message:"New content has been found on the server. Are you sure you want to continue?",type:kt.CONFIRM,icon:"FaSave"})).unwrap();if(!b)return r(Mv({path:a,flags:{old:!0}})),null}}const l=await _.saveContent({verb:_.DesignerRequestVerb.SAVE_CONTENT,content:PD(e,t()),path:a});(e.type===_.FileFolderType.CLASS||e.type===_.FileFolderType.MODEL)&&za();const d=(l.modelErrors||[]).map(g=>g.message),p=(l.permissionsErrors||[]).map(g=>g.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}]:[]}}),PD=(e,r)=>{switch(!0){case e.path==="settings.json":case e.path===cn:return r.settings.project;case e.type===_.FileFolderType.ROLES:return zs(r.roles);case e.type===_.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},qp=async e=>{if(e.type===_.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 r=e.path.split("/").filter(Boolean)[0],t=await _.getFile({root:r,type:e.type,verb:_.DesignerRequestVerb.GET,name:e.name}),a={};t.type===_.FileFolderType.METHOD&&(a.attributes=_.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===_.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===_.FileFolderType.MODEL?xh(l):l}},lv=Q("files/tryInjectMethod",async({type:e,dataclass:r},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=_.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!r)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=r,d=`Classes/${r}.${c}`;break;case"collection":l=`${r}Selection`,d=`Classes/${r}Selection.${c}`;break;case"entity":l=`${r}Entity`,d=`Classes/${r}Entity.${c}`;break;default:return p}const g=s.find(_.by("path",d));if(g)return a(Dt(g)),g;try{p=await qp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS})}catch{r?await a(vc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(vc({type:"model"}))}return p=await qp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS}),p.path=d,a(Dt(p)),p}),DD=Q("roles/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===_.ROLES_TAB_PATH);if(s)return r(Dt(s)),s;r(xs())}),{debugger:Yn={meta:{state:Lr.DETACHED},list:[],sessions:[],expressions:[]}}=na();var Xp,Zp;const ID={meta:{...Yn.meta,state:((Xp=Yn.meta)==null?void 0:Xp.state)===Lr.ATTACHED?(Zp=Yn.meta)==null?void 0:Zp.state:Lr.DETACHED},list:Yn.list||[],sessions:Yn.sessions||[],expressions:Yn.expressions||[]};function Gp(e,r){const{line:t,offset:a,type:s="saved"}=r;e.breakpoints[s].locations.push({line:t}),ze.isNumber(a)&&(e.breakpoints[s].offset=a)}function zp(e,r,t,a){e.breakpoints[t].locations=r,ze.isNumber(a)&&(e.breakpoints[t].offset=a)}function Yp({filePath:e,fileType:r,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:r,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function Vp(e,r,t){let a=!1;const s=e.map(i=>i[t]!==r[t]?i:(a=!0,{...i,...r}));return a?s:[...s,r]}function Qo(e){return e.map(({label:r})=>({label:r}))}const fv=or({name:"debugger",initialState:ID,reducers:{addBreakpointDecoration(e,r){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=r.payload,p=On(e.list,t,s,i);if(p)Gp(p,d);else{if(a===_.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const g=Yp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Gp(g,d),e.list.push(g)}},removeBreakpointDecoration(e,r){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=r.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 g=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(m=>m.line+g!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(m=>m.line+g!==d))})}}else{const l=On(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,r){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:g="saved",clearDraft:m}=r.payload,b=On(e.list,t,s);if(b)zp(b,d,g,p),m&&g!=="draft"&&(b.breakpoints.draft.locations=[]);else{const E=Yp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});zp(E,d,g,p),e.list.push(E)}},clearBreakpoints(e,r){const{filePath:t,type:a="saved"}=r.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,r){const{threadId:t,line:a,highlight:s}=r.payload,i=st(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,r){const{threadId:t,label:a,save:s}=r.payload,i=st(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=Qo(i.expressions)))},removeExpression(e,r){const{threadId:t,index:a,save:s}=r.payload,i=st(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=Qo(i.expressions)))},removeAllExpressions(e,r){const{threadId:t,save:a}=r.payload,s=st(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,r){const{threadId:t,index:a,replacement:s,save:i}=r.payload,c=st(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=Qo(c.expressions)))},setExpression(e,r){const{threadId:t,expression:a}=r.payload,s=st(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,r){const{threadId:t,index:a,value:s}=r.payload,i=st(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,r){const{expressions:t}=r.payload;e.expressions=Qo(t)},addSession(e,r){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=r.payload,c=st(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Fc(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,r){const{threadId:t,changes:a}=r.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,r){const{threadId:t}=r.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,r){const t=r.payload;e.sessions.splice(t,1)},setSessions(e,r){const t=r.payload;e.sessions=t},setCallChainVariables(e,r){const{threadId:t,frameId:a,variables:s}=r.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:Vp((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,r){const{threadId:t,variablesReference:a,variables:s}=r.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:Vp((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,r){const{threadId:t,content:a}=r.payload,s=st(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,r){if(r.payload.state===Lr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:gs.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Lr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===gs.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Lr.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(pv.fulfilled,r=>{r.sessions=[]})}}),{addBreakpointDecoration:FD,removeBreakpointDecoration:$D,setBreakpointsDecoration:MD,clearBreakpoints:ND,setActiveLine:LD,addExpression:kD,renameExpression:jD,removeExpression:BD,removeAllExpressions:WD,setExpression:UD,updateExpressionAt:HD,saveExpressions:qD,addSession:GD,updateSession:zD,removeSession:YD,removeSessionByIndex:VD,setSessions:dv,setCallChainVariables:KD,setExpressionVariables:JD,setSourceContent:XD,setDebuggerMeta:ZD}=fv.actions,pv=Q("files/wipeDebuggerSessions",async(e,{getState:r,dispatch:t})=>{const{sessions:a}=r().debugger;for(const{threadId:s}of a){const i=Fc(s);t(Qc(i))}}),hv=Q("files/removeDebuggerSessionsNotIn",async(e,{getState:r,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=r().debugger,i=[],c=s.filter(l=>{const d=a.includes(l.threadId);return d||i.push(l.threadId),d});return t(dv(c)),{staleThreadIds:i}});var el=(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))(el||{}),Nr=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Nr||{});const QD=e=>["string","uuid","number","long"].includes(e.type),eI=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],tI=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],rI=[{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"}],nI=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],aI=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],oI=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],gv=Pt("model/add-dataclass"),vv=Pt("model/rename-dataclass"),mv=Pt("model/remove-dataclass"),yv=Pt("model/add-attribute"),sI=Pt("model/edit-attribute-property"),bv=Pt("model/remove-attribute"),_v=Pt("model/rename-attribute"),Ev=Pt("model/edit-primary-key"),iI=Pt("model/edit-dataclass-property"),Sv=Pt("model/rename-collection"),uI=(e,r)=>({toJSON:!0,extraProperties:r,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 ss(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const La=e=>e.kind===Nr.RELATEDENTITY,Cs=e=>e.kind===Nr.RELATEDENTITIES,cI=e=>Cs(e)||La(e),tl=Q("models/fetch",async()=>{try{return(await _.http(_.API_PREFIX,{method:"POST",body:JSON.stringify({verb:_.DesignerRequestVerb.GET_INFO,path:_.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),Rs=Q("models/save",async(e,{getState:r,rejectWithValue:t})=>{const{tabs:a}=r().root,s=a.find(i=>i.path===_.MODEL_TAB_PATH);if(!s)return t("Error while saving the model");try{const i=await _.http(_.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:s.path,content:s.content}),headers:new Headers({"Content-Type":"application/json"})});return za(),{...i,path:s.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return t("Error while saving the model")}}),lI=Q("models/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return r(Dt(s)),s;r(tl())}),fI=Q("model/rename-dataclass",async(e,{getState:r,dispatch:t})=>{var m,b;const{dataclassId:a,selectionId:s,name:i}=e;let c=r();const l=c.explorer.find(E=>E.path===_.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(Sr(l.path)),c=r();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`}};(b=(m=c.explorer.find(E=>E.path===_.FolderRootPath.CLASSES))==null?void 0:m.children)==null||b.forEach(E=>{E.name===d.class.filename_update&&(d.class.newNameTaken=!0),E.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),E.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),E.name===a?(d.class.found=!0,d.class.file=E):E.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=E):E.name===s&&(d.selection.found=!0,d.selection.file=E)});const p=Object.entries(d).reduce((E,x)=>{const[C,I]=x;return I.found?I.newNameTaken?[...E,{type:"error",message:`Cannot rename ${C} file to ${I.filename_update} because it already exists. The existing file will be used instead!`}]:E:[...E,{type:"warning",message:`${a} ${C} file was not found`}]},[]);p.length>0&&t(sr({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const g=Object.values(d).filter(E=>E.found&&E.file&&!E.newNameTaken);await Promise.all(g.map(async E=>await t(Zn({file:E.file,newname:E.filename_update})))),g.length>0&&t(Sr("Classes"))}),Ha={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},dI={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Ha.DATACLASS_DELETE]:!0,[Ha.DATACLASS_DRAGGABLE]:!0}},wv=or({name:"Models",initialState:dI,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(gv,({draft:{dataClasses:r}},t)=>{var c,l;const{dataclassID:a}=t.payload,s=ss(a||"DataClass","className",r),i={className:s,collectionName:`${s}Selection`,attributes:[{name:"ID",kind:Nr.STORAGE,type:el.LONG,scope:"public",indexKind:"auto",unique:!0,primKey:!0,autosequence:!0}],name:s,scope:"public",extraProperties:{position:{x:((c=t.payload.position)==null?void 0:c.x)||0,y:((l=t.payload.position)==null?void 0:l.y)||0}}};r[i.name]=i}).addCase(mv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a}=t.payload;r[a]&&(delete r[a],Object.values(r).forEach(i=>{i.attributes=i.attributes.filter(c=>c.type!==a&&c.type!==i.collectionName)}))}).addCase(vv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,newName:i}=a.payload;if(!r[s]||r[i])return;const c=r[s].collectionName,l=ss(`${i}Selection`,"collectionName",t);Object.values(r).forEach(d=>{d.className===s&&(d.className=i,d.name=i,d.collectionName=l),d.attributes.forEach(p=>{p.type===s?(p.type=i,p.path=i):p.type===c&&(p.type=l)})})}).addCase(yv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeName:s,attributeType:i,attributeKind:c,target:l}=t.payload;if(!r[a]||_.exists("name",s,r[a].attributes))return;const p={name:s,kind:c,type:i,exposed:!0,scope:"public"};if(c===Nr.RELATEDENTITY){if(!r[i])return;p.path=i;const m={name:ss(r[i].collectionName,"name",r[i].attributes),type:r[a].collectionName,kind:Nr.RELATEDENTITIES,reversePath:!0,path:s,scope:"public",exposed:!0};r[i].attributes.push(m)}else if(c===Nr.RELATEDENTITIES){const g=r[i];if(!g)return;const m=g.attributes.find(_.by("name",l));if(m){if(!La(m)||m.type!==r[a].className)return}else{p.path=l,p.reversePath=!0,p.type=i;const b={name:l,kind:Nr.RELATEDENTITY,scope:"public",path:g.className,type:g.className,exposed:!0};g.attributes.push(b)}}r[a].attributes.push(p)}).addCase(_v,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s,newName:i}=t.payload,c=r[a].attributes.find(_.by("name",s)),l=r[a].attributes.find(_.by("name",i));!c||l||Object.values(r).forEach(({collectionName:d,attributes:p,className:g})=>{p.forEach(m=>{La(c)&&Cs(m)&&m.type===d&&m.path===s&&(m.path=i),g===a&&m.name===s&&(m.name=i)})})}).addCase(bv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s}=t.payload;if(!r[a])return;const i=r[a].attributes.find(_.by("name",s));i&&(La(i)&&Object.values(r).forEach(c=>{c.attributes=c.attributes.filter(l=>!(Cs(l)&&l.type===c.collectionName&&l.path===i.name))}),r[a].attributes=r[a].attributes.filter(_.outBy("name",s)))}).addCase(Sv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,collectionName:i}=a.payload;if(!r[s])return;const c=r[s].collectionName;t[i]||(r[s].collectionName=i,t[i]=r[s],delete t[c],Object.values(r).forEach(l=>l.attributes.forEach(d=>{d.type===c&&(d.type=i)})))}).addCase(Ev,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,newPrimKey:s}=t.payload;r[a]&&r[a].attributes.forEach(i=>{i.name===s?i.primKey=!0:i.primKey=!1})}),e.addCase(tl.fulfilled,(r,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}),r.draft.dataClasses=a,r.draft.collections=s,r.draft.extraProperties=i,r.model.dataClasses=a,r.model.collections=s,r.model.extraProperties=i}),e.addCase(Rs.pending,()=>{}).addCase(Rs.fulfilled,(r,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),r.draft.dataClasses=a,r.draft.collections=s,r.draft.extraProperties=i,r.model.dataClasses=a,r.model.collections=s,r.model.extraProperties=i})}}),{setModelFlag:pI}=wv.actions,hI=()=>Ur(e=>e.model.draft.dataClasses),gI=()=>Ur(e=>e.model.draft.collections),vI=e=>Ur(r=>r.model.draft.dataClasses[e]),mI=(e,r)=>Ur(t=>t.model.draft.dataClasses[e].attributes.find(_.by("name",r))),yI=()=>Ur(e=>e.model.draft.extraProperties),bI=()=>{const e=Ur(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(Ha.DATACLASS_DELETE),a=r(Ha.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},_I=wv.reducer;function qu(e,r){const t=e.tabs.find(({path:a})=>a===cn);t&&(t.flags.touched=r)}const Tv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},{webforms:es}=na(),xv={[Tv.SIDEBAR_SECTION_RESIZABLE]:!0},Cv={...es,templates:{data:[],selectedGroup:""},datasources:{...Dc.webforms.datasources,...es==null?void 0:es.datasources},flags:xv},Rv=or({name:"webforms",initialState:Cv,reducers:{toggleInspector:(e,r)=>{const{type:t}=r.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,r)=>{const{type:t,data:a}=r.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,r)=>{e.components.push(r.payload)},editComponent:(e,r)=>{const{id:t,changes:a}=r.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,r)=>{const{payload:t}=r,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,r)=>{e.templates.selectedGroup=r.payload.selectedGroup},setTemplatesData:(e,r)=>{e.templates.data=r.payload},setTemplateData:(e,r)=>{const{group:t,components:a}=r.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,r)=>{e.datasources.theme=r.payload},setWebformsFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(Fv.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:EI,inspect:SI,addComponent:Ov,editComponent:Av,removeComponent:Pv,setSelectedGroup:wI,setTemplatesData:Dv,setTemplateData:Iv,setDatasourcesTheme:TI,setWebformsFlag:xI}=Rv.actions,CI=Rv.reducer,rl=ze.curry((e,r)=>{var s,i;const t={...r.sharedDatasources.sources},a=(i=((s=r.root.tabs.find(_.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),ze.cloneDeep(t)}),RI=Q("webforms/fetchTemplates",async(e,{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!ze.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return r(Dv(c)),c}catch{return[]}}),OI=Q("webforms/fetchTemplate",async({name:e},{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!ze.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return r(Iv({group:e,components:c})),c}catch{return[]}}),Fv=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({path:"WebForms/crafted_components.json",verb:_.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return r("Error while loading the crafted components")}}),AI=Q("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Ov(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),PI=Q("webforms/editCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Av(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),DI=Q("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Pv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),nl=Q("datasources/add-datasource",async(e,{getState:r,rejectWithValue:t})=>{var a,s;try{const i=r(),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 _.setSharedSources(p)}else(((s=(a=i.root.tabs.find(_.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=Q("datasources/edit-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=r(),c=!!e.namespace,l=rl(s,i);let d=ze.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await _.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),II=e=>e.type===ea.fulfilled.type,ea=Q("datasources/rename-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,c=rl(e.path,a),l=ze.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var m;const g=(_.isObjectDatasource(p)||!_.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((m=p.events)==null||m.forEach(b=>{var E,x,C,I,P;switch(b.type){case"method":{const j=b;j.params.forEach(M=>{M.datasource&&Object.assign(M,{datasource:M.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),j.returns&&Object.assign(j.returns,{datasource:(x=(E=j.returns)==null?void 0:E.datasource)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const j=b;j.datasource&&Object.assign(j.datasource,{name:(C=j.datasource.name)==null?void 0:C.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(I=j.datasource.from)==null?void 0:I.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(P=j.datasource.target)==null?void 0:P.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:g&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=_.getDatasourceId({id:e.id,namespace:e.namespace}),g=_.getDatasourceId({id:e.new_name,namespace:e.namespace});_.datasourcesSubject.next({path:e.path??"",action:_.DatasourcesActions.RENAME,old_reference:p,new_reference:g,is_shared:s})}return s&&await _.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}`)}}),ka=Q("datasources/delete-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,l=rl(e.path,a)[i].filter(_.outById(e.id));return s&&await _.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),Gu=na(),FI={filesLoading:!1,tabs:Gu.tabs||[],activeTab:Gu.activeTab,recent:Gu.recent||[]},ol=or({name:"root",initialState:FI,reducers:{setPanelState(e,r){const{path:t,...a}=r.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},addDataSource(e,r){var i;const{payload:{path:t,datasourceDef:a}}=r,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}))},openSettingsTab(e){const r={date:new Date().toISOString(),flags:{},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:cn,type:_.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===r.path);if(t||(e.tabs.push(r),t=e.tabs[e.tabs.length-1]),e.activeTab!==r.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=r.path,t.weight=((a==null?void 0:a.weight)||0)+1}},removeDataSource(e,r){const{path:t,datasourceID:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,r){const{payload:{path:t,datasourceArr:a}}=r;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,r){e.tabs=r.payload},closeTab(e,r){const t=r.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,r){e.tabs=e.tabs.filter(t=>t.path===r.payload),e.activeTab=r.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,r){e.tabs.splice(r.payload+1),e.activeTab=e.tabs[r.payload].path},closeLeftTabs(e,r){e.tabs.splice(0,r.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const r=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(r==null?void 0:r.path)||""},selectTab(e,r){const t=e.tabs.find(({path:s})=>s===r.payload);if(!t||e.activeTab===r.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=r.payload},openTabUnselected(e,r){const t=r.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,r){const t=r.payload;let a=e.tabs.find(({path:s})=>t.path===s);if(a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]),e.activeTab!==t.path){const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);e.activeTab=t.path,a.weight=((s==null?void 0:s.weight)||0)+1}a.extra={...a.extra,...t.extra},a.flags={...a.flags||{},...t.flags||{}}},setContent(e,r){const{path:t,content:a,contentPath:s}=r.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1;if(typeof a=="string")c=i.initialContent!==a;else{const l=JSON.stringify(ze.get(i.initialContent,s||"",i.initialContent)),d=JSON.stringify(ze.get(a,s||"",a));c=l!==d}return a&&typeof a=="object"&&(s?ze.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c}}})},setTabFlags(e,r){const{path:t,flags:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,r){const{tabs:t,flags:a}=r.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,r){const{path:t,extra:a,flags:s}=r.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,r){const{path:t,styles:a=[]}=r.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,r){return e.tabs=e.tabs.map(t=>t.path===r.payload.path?r.payload:t),e}},extraReducers:e=>{e.addCase(iv.fulfilled,(r,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=r.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
99
|
+
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...g("dataclass")},{...g("collection")},{...g("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...g(e.toCreate)}]:p=[{...g("model")}],p=p.filter(b=>!d.find(({name:E,ext:x})=>E===b.name&&x===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:b,content:E})=>{await r(Jn({type:_.FileFolderType.CLASS,path:s,fileName:b,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await r(Sr(s))}),Sr=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${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 r("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),Fa=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${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 r("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function sD(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const iD=Q("explorer/uploadFile",async e=>{const r=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${r}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),uD=Q("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=gr(r),{name:c,ext:l}=sD(e.name);a(Qg({parent:t,child:{name:c,path:`${r}/${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=${r}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(pc({parent:t,child:{name:c,path:`${r}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&_.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Sr(t.path)),{status:d.status,fileName:e.name}}catch{return a(pc({parent:t,child:{name:c,path:`${r}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),_.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Jn=Q("explorer/createNewFile",async({fileName:e,type:r,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{qodly:d}=l().settings.server;try{const p=await _.setFileContent({name:tv(e,r,d),content:s||ev(r),path:t,asText:[_.FileFolderType.CLASS,_.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(Sr(a.path)):await i(Fa(a.path))),{qodly:d,file:p,parentNode:a}}catch{return c("failed to create folder")}});function nv(e,r){const{qodly:t=!0,withExtension:a=!0}=r||{},s=_.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case _.FileFolderType.WEBFORM:i=`${_.FolderRootPath.WEBFORMS}/${e.name}`;break;case _.FileFolderType.METHOD:i=`${_.FolderRootPath.METHODS}/${e.name}`;break;case _.FileFolderType.CLASS:i=`${_.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const cD=Q("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(Jn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=nv(i,{withExtension:!1,qodly:s}),{editor:l}=gr(c);await r($a({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),rs=Q("explorer/createNewNode",async({fileName:e,path:r,parentNode:t},{rejectWithValue:a})=>{try{return{file:await _.createFolder({verb:_.DesignerRequestVerb.CREATE_FOLDER,path:`${r}/${e}`,recursive:!0}),parentNode:t}}catch{return _.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Ys=async e=>{try{const r=e.path.split(".").at(-1),t=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:wh(r)?"json":"text"}),a={editor:e.editor},s=_.getTypeFromExtension(e.path);s===_.FileFolderType.METHOD&&(a.attributes=_.parseAttributes(t.content),t.content=_.addAttributesToContent(t.content,{}));const{content:i,date:c,ext:l}=t;return{date:c,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(l)},extra:a,name:e.name,path:e.path,type:s,initialContent:i,content:i}}catch(r){const{data:t}=r;if(t.__ERROR.find(a=>a.errCode===_.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case _.ROLES_TAB_PATH:{const a={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:_.FileFolderType.ROLES,initialContent:a,content:a}}case cn:{const a={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:_.FileFolderType.SETTINGS,initialContent:a,content:a}}}throw r}},$a=Q("explorer/openFile",async({file:e,inactive:r,flags:t={}},{getState:a,dispatch:s})=>{const{root:{tabs:i},roles:c,debugger:{sessions:l}}=a(),d=i.find(({path:m})=>e.path===m);if(d){const m={...d,extra:{...d==null?void 0:d.extra,editor:e.editor},flags:{...d==null?void 0:d.flags,...t}};return s(Dt(m)),m}if(e.path.startsWith("Debugger")){const m=l.find(b=>`Debugger/${b.threadId}`===e.path);if(m){const{source:{content:b},source:E}=m.currentStackFrame,x={name:e.name,type:_.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:b,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:b,flags:{},extra:{source:E,editor:e.editor}};return s(Dt(x)),x}}let p=null;try{p=await Ys(e)}catch(m){const{data:b}=m;if(b.__ERROR.find(E=>[_.ERROR_CODES.JSON_MALFORMED,_.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(E.errCode))){const{confirmed:E}=await s(sr({title:"Corrupt file",type:kt.CONFIRM,color:Tr.WARNING,message:"Open in code editor ?"})).unwrap();if(E){const x=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:C,date:I,ext:P}=x;p={date:I,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(P)},extra:{editor:_.EDITOR.Code},name:e.name,path:e.path,type:_.getTypeFromExtension(e.path),initialContent:C,content:C}}}}return p&&(e.path===_.ROLES_TAB_PATH&&!c.flags.touched?s(Gc({content:p.content,date:p.date})):e.path===cn&&s(zs({path:"project",value:p.content})),s((r?Lv:Dt)(p)),p)}),Vc=Q("explorer/openFileAtLine",async({file:e},{getState:r,dispatch:t})=>{const{tabs:a}=r().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(Dt(c)),c}const i=await Ys(e);return t(Dt(i)),i}),av=Q("explorer/injectContentAtLine",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const s=r();e.path.split("/").pop();const c=ft(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Ys({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:_.FileFolderType.CLASS,editor:c.config.editor});return await t(Dt(l)),{...e,path:`${c.path}.${c.ext}`}}),ov=Q("explorer/openFileAtSelection",async({file:e},{getState:r,dispatch:t})=>{const{tabs:a}=r().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(Dt(c)),c}const i=await Ys(e);return t(Dt(i)),i}),gc=Q("explorer/deleteFile",async e=>{const{name:r,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await _.dropFile({root:_.FolderRootType.ROOT,type:rv(t),verb:_.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),lD=Q("explorer/deleteFolder",async e=>{const{path:r,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await _.removeItem({force:!0,path:r,verb:_.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),fD=Q("explorer/removeFileNode",async(e,{getState:r,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await _.removeItem({verb:_.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&Ga(),e.ext){const{tabs:s}=r().root,i=s.findIndex(c=>c.path===a);i>=0&&t(al(i))}return{deleted:!0,node:e}}),Xn=Q("explorer/renameFile",async({file:e,newname:r})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${r}.${e.ext}`;return await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:r,path:i}}}const t=e.path.split("/");return t.pop(),await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${r}`}),{old:e,new:{...e,name:r,path:`${t.join("/")}/${r}`}}}),Ma=Q("explorer/relocateNode",async({draggedNode:e,newLocation:r},{rejectWithValue:t})=>{try{await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${r.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),ns=Q("explorer/duplicateNode",async({node:e,duplicateName:r},{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 _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),g=await _.setFileContent({name:`${r}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...g,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),dD=Q("explorer/executeMethod",async({methodName:e,params:r=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:r,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?_.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):_.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return _.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),pD=Q("files/fetchFiles",async()=>_.getFolders(_.FolderRootType.WEBFORMS,_.FolderRootType.METHODS,_.FolderRootType.CLASSES)),Kc=Q("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var E,x;const a=!!e.datasourceNamespace,{confirmed:s}=await r(sr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:kt.CONFIRM,color:Tr.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,g=t();let m=[];if(a){const C=g.sharedDatasources.sources[l]||[];m.push(...C)}else if(p){const C=g.root.tabs.find(_.by("path",p));if(m=(x=(E=C==null?void 0:C.content)==null?void 0:E.metadata)==null?void 0:x.datasources,!m)return null}const b=new RegExp(`^${c}\\b`,"");if(m=m.map(C=>{const I=(_.isObjectDatasource(C)||!_.isSimpleDatasource(C))&&C.from&&b.test(C.from),P=C.events?C.events.map(j=>{var M,k,O,Y;switch(j==null?void 0:j.type){case"method":{const H=j;return H.params?{...H,params:H.params.map(z=>{var te;return{...z,datasource:(te=z.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=H.returns)!=null&&M.datasource?{...H.returns,datasource:(k=H.returns.datasource)==null?void 0:k.replace(new RegExp(`^${c}`,""),d)}:H.returns}:H}case"simple-action":{const H=j;return H.datasource?{...H,datasource:{...H.datasource,name:(O=H.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(Y=H.datasource.from)==null?void 0:Y.replace(new RegExp(`^${c}`,""),d)}}:H}default:return j}}):C.events;return C.id===c?{...C,id:d,events:P}:I&&C.from?{...C,from:C.from.replace(new RegExp(`^${c}`,""),d),events:P}:{...C,events:P}}),i){const C=a?`${l}:${c}`:`${c}`,I=a?`${l}:${d}`:`${d}`;_.datasourcesSubject.next({path:p??"",action:_.DatasourcesActions.RENAME,old_reference:C,new_reference:I,is_shared:a})}return{path:p,namespace:l,datasources:m}}),Jc=Q("tabs/edit-datasource",(e,{getState:r})=>{var i,c;const t=r();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(_.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=Q("tabs/fetchChanges",async(e,{getState:r})=>{const a=ia(r()).filter(s=>[_.FileFolderType.METHOD,_.FileFolderType.CLASS].includes(s.type));return _.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),hD=Q("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=Nc(r());for(const s of a)t(Zn({tab:s}))}),Xc=Q("files/tryCloseTab",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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(sr({title:Ps(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!c)return!1}return t(al(s)),i.path===_.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:_.ROLES_TAB_PATH,content:!0,as:"json"});t(Gc({content:l.content,date:l.date}))})(),!0}),gD=Q("files/tryCloseOtherTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(sr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t($v(e))}),vD=Q("files/tryCloseAllTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(sr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Iv())}),mD=Q("files/tryCloseRightTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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(sr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Fv(e))}),yD=Q("files/tryCloseLeftTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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(sr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Mv(e))}),vc=Q("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(sr({title:Ps(e),message:"Changes made to the file will be lost. Continue?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!s)return}const t=rg(e.path),a=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===_.ROLES_TAB_PATH){const{roles:s,privileges:i}=Hs(a.content);r(zc({roles:s,privileges:i}))}else if(e.path===cn){const{content:s}=a;r(zs({path:"project",value:s}))}else{const{content:s}=a;e.type===_.FileFolderType.WEBFORM?_.webformSubject.next({path:e.path,action:_.WebformActions.RELOAD,payload:s.components}):e.type===_.FileFolderType.MODEL&&cg.next({action:"reload",payload:s})}return a}),Zn=Q("files/saveTab",async({tab:e},{dispatch:r,getState:t})=>{const{path:a,content:s}=e;if(e.type===_.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await _.getFilesInfo({path:a});if(c.files[0]){const g=new Date(e.date),m=new Date(c.files[0].date);if(g.getTime()<m.getTime()){const{confirmed:b}=await r(sr({title:Ps(e),message:"New content has been found on the server. Are you sure you want to continue?",type:kt.CONFIRM,icon:"FaSave"})).unwrap();if(!b)return r(Dv({path:a,flags:{old:!0}})),null}}const l=await _.saveContent({verb:_.DesignerRequestVerb.SAVE_CONTENT,content:bD(e,t()),path:a});(e.type===_.FileFolderType.CLASS||e.type===_.FileFolderType.MODEL)&&Ga();const d=(l.modelErrors||[]).map(g=>g.message),p=(l.permissionsErrors||[]).map(g=>g.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,r)=>{switch(!0){case e.path==="settings.json":case e.path===cn:return r.settings.project;case e.type===_.FileFolderType.ROLES:return qs(r.roles);case e.type===_.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Up=async e=>{if(e.type===_.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 r=e.path.split("/").filter(Boolean)[0],t=await _.getFile({root:r,type:e.type,verb:_.DesignerRequestVerb.GET,name:e.name}),a={};t.type===_.FileFolderType.METHOD&&(a.attributes=_.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===_.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===_.FileFolderType.MODEL?Sh(l):l}},iv=Q("files/tryInjectMethod",async({type:e,dataclass:r},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=_.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!r)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=r,d=`Classes/${r}.${c}`;break;case"collection":l=`${r}Selection`,d=`Classes/${r}Selection.${c}`;break;case"entity":l=`${r}Entity`,d=`Classes/${r}Entity.${c}`;break;default:return p}const g=s.find(_.by("path",d));if(g)return a(Dt(g)),g;try{p=await Up({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS})}catch{r?await a(hc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(hc({type:"model"}))}return p=await Up({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS}),p.path=d,a(Dt(p)),p}),_D=Q("roles/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===_.ROLES_TAB_PATH);if(s)return r(Dt(s)),s;r(ws())});function Hp(e,r){const{line:t,offset:a,type:s="saved"}=r;e.breakpoints[s].locations.push({line:t}),ze.isNumber(a)&&(e.breakpoints[s].offset=a)}function qp(e,r,t,a){e.breakpoints[t].locations=r,ze.isNumber(a)&&(e.breakpoints[t].offset=a)}function Gp({filePath:e,fileType:r,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:r,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function zp(e,r,t){let a=!1;const s=e.map(i=>i[t]!==r[t]?i:(a=!0,{...i,...r}));return a?s:[...s,r]}function Zo(e){return e.map(({label:r})=>({label:r}))}const uv=or({name:"debugger",initialState:()=>{var r,t;const{debugger:e={meta:{state:Mr.DETACHED},list:[],sessions:[],expressions:[]}}=ta();return{meta:{...e.meta,state:((r=e.meta)==null?void 0:r.state)===Mr.ATTACHED?(t=e.meta)==null?void 0:t.state:Mr.DETACHED},list:e.list||[],sessions:e.sessions||[],expressions:e.expressions||[]}},reducers:{addBreakpointDecoration(e,r){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=r.payload,p=On(e.list,t,s,i);if(p)Hp(p,d);else{if(a===_.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const g=Gp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Hp(g,d),e.list.push(g)}},removeBreakpointDecoration(e,r){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=r.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 g=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(m=>m.line+g!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(m=>m.line+g!==d))})}}else{const l=On(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,r){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:g="saved",clearDraft:m}=r.payload,b=On(e.list,t,s);if(b)qp(b,d,g,p),m&&g!=="draft"&&(b.breakpoints.draft.locations=[]);else{const E=Gp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});qp(E,d,g,p),e.list.push(E)}},clearBreakpoints(e,r){const{filePath:t,type:a="saved"}=r.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,r){const{threadId:t,line:a,highlight:s}=r.payload,i=st(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,r){const{threadId:t,label:a,save:s}=r.payload,i=st(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=Zo(i.expressions)))},removeExpression(e,r){const{threadId:t,index:a,save:s}=r.payload,i=st(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=Zo(i.expressions)))},removeAllExpressions(e,r){const{threadId:t,save:a}=r.payload,s=st(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,r){const{threadId:t,index:a,replacement:s,save:i}=r.payload,c=st(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=Zo(c.expressions)))},setExpression(e,r){const{threadId:t,expression:a}=r.payload,s=st(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,r){const{threadId:t,index:a,value:s}=r.payload,i=st(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,r){const{expressions:t}=r.payload;e.expressions=Zo(t)},addSession(e,r){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=r.payload,c=st(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Dc(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,r){const{threadId:t,changes:a}=r.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,r){const{threadId:t}=r.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,r){const t=r.payload;e.sessions.splice(t,1)},setSessions(e,r){const t=r.payload;e.sessions=t},setCallChainVariables(e,r){const{threadId:t,frameId:a,variables:s}=r.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:zp((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,r){const{threadId:t,variablesReference:a,variables:s}=r.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:zp((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,r){const{threadId:t,content:a}=r.payload,s=st(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,r){if(r.payload.state===Mr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ps.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Mr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ps.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Mr.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(lv.fulfilled,r=>{r.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:cv,setCallChainVariables:LD,setExpressionVariables:kD,setSourceContent:jD,setDebuggerMeta:BD}=uv.actions,lv=Q("files/wipeDebuggerSessions",async(e,{getState:r,dispatch:t})=>{const{sessions:a}=r().debugger;for(const{threadId:s}of a){const i=Dc(s);t(Xc(i))}}),fv=Q("files/removeDebuggerSessionsNotIn",async(e,{getState:r,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=r().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}});var Zc=(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))(Zc||{}),Lr=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Lr||{});const WD=e=>["string","uuid","number","long"].includes(e.type),UD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],HD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],qD=[{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"}],GD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],zD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],YD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],dv=Pt("model/add-dataclass"),pv=Pt("model/rename-dataclass"),hv=Pt("model/remove-dataclass"),gv=Pt("model/add-attribute"),VD=Pt("model/edit-attribute-property"),vv=Pt("model/remove-attribute"),mv=Pt("model/rename-attribute"),yv=Pt("model/edit-primary-key"),KD=Pt("model/edit-dataclass-property"),bv=Pt("model/rename-collection"),JD=(e,r)=>({toJSON:!0,extraProperties:r,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 as(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const Na=e=>e.kind===Lr.RELATEDENTITY,Ts=e=>e.kind===Lr.RELATEDENTITIES,XD=e=>Ts(e)||Na(e),Qc=Q("models/fetch",async()=>{try{return(await _.http(_.API_PREFIX,{method:"POST",body:JSON.stringify({verb:_.DesignerRequestVerb.GET_INFO,path:_.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),xs=Q("models/save",async(e,{getState:r,rejectWithValue:t})=>{const{tabs:a}=r().root,s=a.find(i=>i.path===_.MODEL_TAB_PATH);if(!s)return t("Error while saving the model");try{const i=await _.http(_.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:s.path,content:s.content}),headers:new Headers({"Content-Type":"application/json"})});return Ga(),{...i,path:s.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return t("Error while saving the model")}}),ZD=Q("models/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return r(Dt(s)),s;r(Qc())}),QD=Q("model/rename-dataclass",async(e,{getState:r,dispatch:t})=>{var m,b;const{dataclassId:a,selectionId:s,name:i}=e;let c=r();const l=c.explorer.find(E=>E.path===_.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(Sr(l.path)),c=r();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`}};(b=(m=c.explorer.find(E=>E.path===_.FolderRootPath.CLASSES))==null?void 0:m.children)==null||b.forEach(E=>{E.name===d.class.filename_update&&(d.class.newNameTaken=!0),E.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),E.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),E.name===a?(d.class.found=!0,d.class.file=E):E.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=E):E.name===s&&(d.selection.found=!0,d.selection.file=E)});const p=Object.entries(d).reduce((E,x)=>{const[C,I]=x;return I.found?I.newNameTaken?[...E,{type:"error",message:`Cannot rename ${C} file to ${I.filename_update} because it already exists. The existing file will be used instead!`}]:E:[...E,{type:"warning",message:`${a} ${C} file was not found`}]},[]);p.length>0&&t(sr({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const g=Object.values(d).filter(E=>E.found&&E.file&&!E.newNameTaken);await Promise.all(g.map(async E=>await t(Xn({file:E.file,newname:E.filename_update})))),g.length>0&&t(Sr("Classes"))}),Ua={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},eI={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Ua.DATACLASS_DELETE]:!0,[Ua.DATACLASS_DRAGGABLE]:!0}},_v=or({name:"Models",initialState:eI,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(dv,({draft:{dataClasses:r}},t)=>{var c,l;const{dataclassID:a}=t.payload,s=as(a||"DataClass","className",r),i={className:s,collectionName:`${s}Selection`,attributes:[{name:"ID",kind:Lr.STORAGE,type:Zc.LONG,scope:"public",indexKind:"auto",unique:!0,primKey:!0,autosequence:!0}],name:s,scope:"public",extraProperties:{position:{x:((c=t.payload.position)==null?void 0:c.x)||0,y:((l=t.payload.position)==null?void 0:l.y)||0}}};r[i.name]=i}).addCase(hv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a}=t.payload;r[a]&&(delete r[a],Object.values(r).forEach(i=>{i.attributes=i.attributes.filter(c=>c.type!==a&&c.type!==i.collectionName)}))}).addCase(pv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,newName:i}=a.payload;if(!r[s]||r[i])return;const c=r[s].collectionName,l=as(`${i}Selection`,"collectionName",t);Object.values(r).forEach(d=>{d.className===s&&(d.className=i,d.name=i,d.collectionName=l),d.attributes.forEach(p=>{p.type===s?(p.type=i,p.path=i):p.type===c&&(p.type=l)})})}).addCase(gv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeName:s,attributeType:i,attributeKind:c,target:l}=t.payload;if(!r[a]||_.exists("name",s,r[a].attributes))return;const p={name:s,kind:c,type:i,exposed:!0,scope:"public"};if(c===Lr.RELATEDENTITY){if(!r[i])return;p.path=i;const m={name:as(r[i].collectionName,"name",r[i].attributes),type:r[a].collectionName,kind:Lr.RELATEDENTITIES,reversePath:!0,path:s,scope:"public",exposed:!0};r[i].attributes.push(m)}else if(c===Lr.RELATEDENTITIES){const g=r[i];if(!g)return;const m=g.attributes.find(_.by("name",l));if(m){if(!Na(m)||m.type!==r[a].className)return}else{p.path=l,p.reversePath=!0,p.type=i;const b={name:l,kind:Lr.RELATEDENTITY,scope:"public",path:g.className,type:g.className,exposed:!0};g.attributes.push(b)}}r[a].attributes.push(p)}).addCase(mv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s,newName:i}=t.payload,c=r[a].attributes.find(_.by("name",s)),l=r[a].attributes.find(_.by("name",i));!c||l||Object.values(r).forEach(({collectionName:d,attributes:p,className:g})=>{p.forEach(m=>{Na(c)&&Ts(m)&&m.type===d&&m.path===s&&(m.path=i),g===a&&m.name===s&&(m.name=i)})})}).addCase(vv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s}=t.payload;if(!r[a])return;const i=r[a].attributes.find(_.by("name",s));i&&(Na(i)&&Object.values(r).forEach(c=>{c.attributes=c.attributes.filter(l=>!(Ts(l)&&l.type===c.collectionName&&l.path===i.name))}),r[a].attributes=r[a].attributes.filter(_.outBy("name",s)))}).addCase(bv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,collectionName:i}=a.payload;if(!r[s])return;const c=r[s].collectionName;t[i]||(r[s].collectionName=i,t[i]=r[s],delete t[c],Object.values(r).forEach(l=>l.attributes.forEach(d=>{d.type===c&&(d.type=i)})))}).addCase(yv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,newPrimKey:s}=t.payload;r[a]&&r[a].attributes.forEach(i=>{i.name===s?i.primKey=!0:i.primKey=!1})}),e.addCase(Qc.fulfilled,(r,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}),r.draft.dataClasses=a,r.draft.collections=s,r.draft.extraProperties=i,r.model.dataClasses=a,r.model.collections=s,r.model.extraProperties=i}),e.addCase(xs.pending,()=>{}).addCase(xs.fulfilled,(r,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),r.draft.dataClasses=a,r.draft.collections=s,r.draft.extraProperties=i,r.model.dataClasses=a,r.model.collections=s,r.model.extraProperties=i})}}),{setModelFlag:tI}=_v.actions,rI=()=>Ur(e=>e.model.draft.dataClasses),nI=()=>Ur(e=>e.model.draft.collections),aI=e=>Ur(r=>r.model.draft.dataClasses[e]),oI=(e,r)=>Ur(t=>t.model.draft.dataClasses[e].attributes.find(_.by("name",r))),sI=()=>Ur(e=>e.model.draft.extraProperties),iI=()=>{const e=Ur(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(Ua.DATACLASS_DELETE),a=r(Ua.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},uI=_v.reducer;function Hu(e,r){const t=e.tabs.find(({path:a})=>a===cn);t&&(t.flags.touched=r)}const Ev={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},Sv={[Ev.SIDEBAR_SECTION_RESIZABLE]:!0},wv=or({name:"webforms",initialState:()=>{const{webforms:e}=ta();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Ac.webforms.datasources,...e==null?void 0:e.datasources},flags:Sv}},reducers:{toggleInspector:(e,r)=>{const{type:t}=r.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,r)=>{const{type:t,data:a}=r.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,r)=>{e.components.push(r.payload)},editComponent:(e,r)=>{const{id:t,changes:a}=r.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,r)=>{const{payload:t}=r,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,r)=>{e.templates.selectedGroup=r.payload.selectedGroup},setTemplatesData:(e,r)=>{e.templates.data=r.payload},setTemplateData:(e,r)=>{const{group:t,components:a}=r.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,r)=>{e.datasources.theme=r.payload},setWebformsFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(Av.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:cI,inspect:lI,addComponent:Tv,editComponent:xv,removeComponent:Cv,setSelectedGroup:fI,setTemplatesData:Rv,setTemplateData:Ov,setDatasourcesTheme:dI,setWebformsFlag:pI}=wv.actions,hI=wv.reducer,el=ze.curry((e,r)=>{var s,i;const t={...r.sharedDatasources.sources},a=(i=((s=r.root.tabs.find(_.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),ze.cloneDeep(t)}),gI=Q("webforms/fetchTemplates",async(e,{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!ze.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return r(Rv(c)),c}catch{return[]}}),vI=Q("webforms/fetchTemplate",async({name:e},{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!ze.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return r(Ov({group:e,components:c})),c}catch{return[]}}),Av=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({path:"WebForms/crafted_components.json",verb:_.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return r("Error while loading the crafted components")}}),mI=Q("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Tv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),yI=Q("webforms/editCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(xv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),bI=Q("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Cv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),tl=Q("datasources/add-datasource",async(e,{getState:r,rejectWithValue:t})=>{var a,s;try{const i=r(),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 _.setSharedSources(p)}else(((s=(a=i.root.tabs.find(_.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")}}),rl=Q("datasources/edit-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=r(),c=!!e.namespace,l=el(s,i);let d=ze.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await _.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===Qn.fulfilled.type,Qn=Q("datasources/rename-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,c=el(e.path,a),l=ze.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var m;const g=(_.isObjectDatasource(p)||!_.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((m=p.events)==null||m.forEach(b=>{var E,x,C,I,P;switch(b.type){case"method":{const j=b;j.params.forEach(M=>{M.datasource&&Object.assign(M,{datasource:M.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),j.returns&&Object.assign(j.returns,{datasource:(x=(E=j.returns)==null?void 0:E.datasource)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const j=b;j.datasource&&Object.assign(j.datasource,{name:(C=j.datasource.name)==null?void 0:C.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(I=j.datasource.from)==null?void 0:I.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(P=j.datasource.target)==null?void 0:P.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:g&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=_.getDatasourceId({id:e.id,namespace:e.namespace}),g=_.getDatasourceId({id:e.new_name,namespace:e.namespace});_.datasourcesSubject.next({path:e.path??"",action:_.DatasourcesActions.RENAME,old_reference:p,new_reference:g,is_shared:s})}return s&&await _.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}`)}}),La=Q("datasources/delete-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,l=el(e.path,a)[i].filter(_.outById(e.id));return s&&await _.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),nl=or({name:"root",initialState:()=>{const e=ta();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,r){const{path:t,...a}=r.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},addDataSource(e,r){var i;const{payload:{path:t,datasourceDef:a}}=r,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}))},openSettingsTab(e){const r={date:new Date().toISOString(),flags:{},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:cn,type:_.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===r.path);if(t||(e.tabs.push(r),t=e.tabs[e.tabs.length-1]),e.activeTab!==r.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=r.path,t.weight=((a==null?void 0:a.weight)||0)+1}},removeDataSource(e,r){const{path:t,datasourceID:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,r){const{payload:{path:t,datasourceArr:a}}=r;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,r){e.tabs=r.payload},closeTab(e,r){const t=r.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,r){e.tabs=e.tabs.filter(t=>t.path===r.payload),e.activeTab=r.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,r){e.tabs.splice(r.payload+1),e.activeTab=e.tabs[r.payload].path},closeLeftTabs(e,r){e.tabs.splice(0,r.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const r=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(r==null?void 0:r.path)||""},selectTab(e,r){const t=e.tabs.find(({path:s})=>s===r.payload);if(!t||e.activeTab===r.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=r.payload},openTabUnselected(e,r){const t=r.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,r){const t=r.payload;let a=e.tabs.find(({path:s})=>t.path===s);if(a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]),e.activeTab!==t.path){const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);e.activeTab=t.path,a.weight=((s==null?void 0:s.weight)||0)+1}a.extra={...a.extra,...t.extra},a.flags={...a.flags||{},...t.flags||{}}},setContent(e,r){const{path:t,content:a,contentPath:s}=r.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1;if(typeof a=="string")c=i.initialContent!==a;else{const l=JSON.stringify(ze.get(i.initialContent,s||"",i.initialContent)),d=JSON.stringify(ze.get(a,s||"",a));c=l!==d}return a&&typeof a=="object"&&(s?ze.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c}}})},setTabFlags(e,r){const{path:t,flags:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,r){const{tabs:t,flags:a}=r.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,r){const{path:t,extra:a,flags:s}=r.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,r){const{path:t,styles:a=[]}=r.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,r){return e.tabs=e.tabs.map(t=>t.path===r.payload.path?r.payload:t),e}},extraReducers:e=>{e.addCase(av.fulfilled,(r,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=r.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
100
100
|
`);l.splice(s,0,a),c.content=l.join(`
|
|
101
|
-
`)}}),e.addCase(
|
|
101
|
+
`)}}),e.addCase(Zn.pending,(r,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(Zn.fulfilled,(r,t)=>{if(!t.payload)return;const a=r.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.old=!1,a.type){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&_.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(Zn.rejected,(r,t)=>{_.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(sv.fulfilled,(r,t)=>{const a=[...t.payload.files];r.tabs=r.tabs.map(s=>{if([_.FileFolderType.CLASS,_.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(vc.pending,(r,t)=>{r.tabs=r.tabs.map(a=>a.path===t.meta.arg.path?{...a,flags:{...a.flags,loading:!0}}:a)}),e.addCase(vc.fulfilled,(r,t)=>{const a=t.payload;if(a){const s=t.meta.arg;r.tabs=r.tabs.map(i=>{if(i.name===s.name&&i.type===s.type){const c=i.extra||{};return i.type===_.FileFolderType.METHOD?(c.attributes=_.parseAttributes(a.content),a.content=_.addAttributesToContent(a.content,{})):i.type===_.FileFolderType.SETTINGS&&(a.content={}),{...i,initialContent:a.content,content:a.content,date:a.date,flags:{},extra:c}}return i})}}),e.addCase(Vc.fulfilled,(r,t)=>{if(!t.payload)return;const{line:a,offset:s}=t.meta.arg,i=r.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,(r,t)=>{if(!t.payload)return;const{selection:a}=t.meta.arg,s=r.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(Xn.fulfilled,(r,t)=>{t.payload.new!==t.payload.old&&(r.tabs=[...r.tabs].map(a=>a.path===t.payload.old.path?{...a,path:t.payload.new.path,name:t.payload.new.name}:a),r.activeTab===t.payload.old.path&&(r.activeTab=t.payload.new.path))}),e.addCase(gc.pending,(r,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":_.lspSubject.next({action:_.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(gc.fulfilled,(r,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":_.lspSubject.next({action:_.LspActions.DID_DELETE,payload:{filePath:i}});break}if(r.tabs=r.tabs.filter(c=>c.path!==i),r.recent=r.recent.filter(({path:c})=>i!==c),r.tabs.length){r.activeTab=r.tabs[r.tabs.length-1].path;return}r.activeTab=""}),e.addCase(Ma.fulfilled,(r,t)=>{const{draggedNode:a,newLocation:s}=t.meta.arg;if(r.tabs.find(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`))return r.tabs=r.tabs.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),r.recent=r.recent.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),r.activeTab=`${s.path}/${a.name}.${a.ext}`,r}),e.addCase(xs.fulfilled,(r,t)=>{const a=r.tabs.find(s=>s.path===t.payload.path);a&&(a.flags.touched=!1,a.date=t.payload.date,a.content=t.payload.content,a.initialContent=t.payload.content)}),e.addCase(iv.fulfilled,(r,t)=>{var i;if(!((i=t.payload)!=null&&i.path))return;const a=r.tabs.find(_.by("path",t.payload.path));if(!a)return;a.content=a.content+`
|
|
102
102
|
|
|
103
103
|
exposed Function ${t.meta.arg.name}()
|
|
104
104
|
`,a.flags={...a.flags,touched:!0};const s=a.content.split(`
|
|
105
|
-
`);a.extra={...a.extra,editor:_.EDITOR.Code,initialLineInfo:{line:s.length-2,lastModification:Date.now()}}}),e.addCase(
|
|
105
|
+
`);a.extra={...a.extra,editor:_.EDITOR.Code,initialLineInfo:{line:s.length-2,lastModification:Date.now()}}}),e.addCase(Kc.fulfilled,(r,t)=>{var i,c;if(!((i=t.payload)!=null&&i.path)||(c=t.payload)!=null&&c.namespace)return;const a=t.payload.path,s=r.tabs.find(_.by("path",a));!s||!s.content||!s.content.metadata||(Object.assign(s.content.metadata,{datasources:t.payload.datasources}),s.flags.touched=!0)}),e.addCase(Jc.fulfilled,(r,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace||r.tabs.forEach(i=>{i.path===s.path&&Object.assign(i.content,{metadata:{...i.content.metadata,datasources:a}})})}),e.addCase(fv.fulfilled,(r,t)=>{const{staleThreadIds:a}=t.payload;if(a.length===0)return;const s=a.map(i=>`Debugger/${i}`);if(r.tabs=r.tabs.filter(i=>!s.includes(i.path)),r.recent=r.recent.filter(({path:i})=>!s.includes(i)),r.tabs.length){r.activeTab=r.tabs[r.tabs.length-1].path;return}r.activeTab=""}),e.addCase(Yc.pending,r=>Hu(r,!1)),e.addMatcher(hr(Xg),(r,t)=>{["project"].includes(t.payload.path)&&Hu(r,!0)}),e.addMatcher(hr(zs),(r,t)=>{Hu(r,!1)}),e.addMatcher(hr(Nv,Dt),(r,t)=>{const{payload:a}=t;let s;typeof a=="string"?s=r.tabs.find(({path:i})=>a===i):s=a,s&&(r.recent=[s,...r.recent.filter(({path:i})=>![s.path,"settings"].includes(i))])}),e.addMatcher(hr(Vg,Yg),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===_.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!0}}:a)}),e.addMatcher(hr(zc),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===_.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!1}}:a)}),e.addMatcher(hr(tl.fulfilled,rl.fulfilled,La.fulfilled,Qn.fulfilled),(r,t)=>{var s,i,c;const a=r.tabs.find(_.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,Object.assign(a.content,{metadata:{...a.content.metadata,datasources:(c=t.payload)==null?void 0:c.list}}))}),e.addMatcher(hr(La.fulfilled,Qn.fulfilled),(r,t)=>{var l;const a=r.tabs.find(_.by("path",((l=t.payload)==null?void 0:l.path)||t.meta.arg.path));if(!a)return;const{panel:s}=a.view,i=_.getDatasourceId({id:t.meta.arg.id,namespace:t.meta.arg.namespace});if(s.type==="datasource"&&s.current===i)switch(t.type){case La.fulfilled.type:Object.assign(a.view.panel,{type:"component",current:xR});break;case Qn.fulfilled.type:const d=_.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:al,setContent:Pv,setTabFlags:Dv,setTabsFlags:SI,setTabExtra:wI,closeAllTabs:Iv,addDataSource:TI,closeRightTabs:Fv,closeOthers:$v,closeLeftTabs:Mv,closeSavedTabs:xI,setDataSources:CI,removeDataSource:RI,selectTab:Nv,selectTabByReference:Dt,openTabUnselected:Lv,addWebFormStyles:OI,changeTabEditor:AI,openSettingsTab:PI,setPanelState:DI}=nl.actions,kv=nl.reducer,II=uv.reducer,FI=or({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(Kn.pending,r=>({state:"loading"})).addCase(Kn.fulfilled,(r,{payload:t})=>({state:"loaded",model:t})).addCase(Kn.rejected,(r,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),$I=FI.reducer,MI=kg.reducer,os=Q("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:r})=>{try{return await _.getSharedDatasources()}catch{return r("Error while loading the shared datasources")}}),jv=Q("shared_datasources/addSharedSource",async(e,{rejectWithValue:r,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 r("Namespace is required");return await _.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),Bv=Q("shared_datasources/editSharedSource",async(e,{rejectWithValue:r,getState:t})=>{try{const a=t().sharedDatasources;if(!e.namespace)return r("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 r("Namespace not found");return await _.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),Wv=Q("shared_datasources/deleteSharedSource",async(e,{rejectWithValue:r,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 _.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),ol=Q("shared_datasources/updateSharedDatasources",async(e,{rejectWithValue:r,getState:t})=>{try{const a={...t().sharedDatasources};for(const s of e){if(!s.namespace)return r("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 r("Namespace not found")}return await _.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),NI=Q("shared_datasources/setDatasourceEvents",async({tabPath:e,name:r,namespace:t,events:a},{getState:s,dispatch:i})=>{var E,x,C;const{root:{tabs:c},sharedDatasources:l}=s(),d=((C=(x=(E=c.find(({path:I})=>I===e))==null?void 0:E.content)==null?void 0:x.metadata)==null?void 0:C.datasources)||[],p={local:!1,shared:!1},g=(I,P)=>I.id===r&&(!t&&!I.namespace||I.namespace===t)?(P==null||P(),{...I,events:a}):I,m=d.map(I=>g(I,()=>{p.local=!0})),b=ze.flatten(ze.values(l.sources)).map(I=>g(I,()=>{p.shared=!0}));p.local&&i(Pv({path:e,content:m,contentPath:"metadata.datasources"})),p.shared&&i(ol(b))}),Uv=or({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,r){e.sources[r.payload.name]=[]}},extraReducers(e){e.addCase(os.pending,r=>({state:"loading",sources:{}})).addCase(os.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(os.rejected,(r,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(ol.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(Jc.fulfilled,(r,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace&&Object.assign(r.sources,{[s.namespace]:a})}).addCase(jv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Wv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Bv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Kc.fulfilled,(r,t)=>{if(!t.payload)return r;const{datasources:a,namespace:s}=t.payload;s&&r.sources[s]&&Object.assign(r.sources[s],{[s]:a})}).addMatcher(hr(tl.fulfilled,La.fulfilled,rl.fulfilled,Qn.fulfilled),(r,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(r.sources,{[a]:s})})}}),{addEmptyNamespace:LI}=Uv.actions,kI=Uv.reducer,jI=Zg.reducer,ss=Q("shared_css/fetchSharedCSS",async(e,{rejectWithValue:r})=>{try{const{classes:t}=await _.getSharedCSS();return t}catch{return r("Error while loading the shared CSS")}}),BI=_.queue();async function WI(e){const r={verb:_.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_css.json",path:"",root:"shared",content:{classes:e.map(({scope:t,...a})=>({...a}))}};await BI(()=>_.http(_.API_PREFIX,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}))}const Hv=or({name:"shared-css",initialState:()=>{const{sharedCSS:e}=ta();return e||{state:"loading",styles:[]}},reducers:{updateSharedCss:(e,r)=>(e.styles=r.payload.classes,WI(r.payload.classes),e),initSharedCss:(e,r)=>(e.styles=r.payload.classes,e)},extraReducers(e){e.addCase(ss.pending,r=>({...r,state:"loading"})).addCase(ss.fulfilled,(r,{payload:t})=>({state:"loaded",styles:t})).addCase(ss.rejected,(r,t)=>({...r,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:UI,initSharedCss:HI}=Hv.actions,qI=Hv.reducer,GI={},zI=or({name:"tabs",initialState:GI,reducers:{}}),YI=e=>q(ia,r=>{var t,a;return(a=(t=r.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});zI.reducer;const qv=eh({root:kv,explorer:jI,debugger:II,settings:XP,catalog:$I,roles:YP,sharedDatasources:kI,webforms:hI,modals:MI,sharedCSS:qI,model:uI});let Aa;const Vs=()=>(Aa||(Aa=JS({reducer:qv}),Aa.subscribe(cT(()=>{const{root:{activeTab:e,tabs:r,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=Aa.getState();_h({...l}),bh({tabs:r,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3))),Aa);var mc={exports:{}},Yn={};/** @license React v17.0.2
|
|
106
106
|
* react-jsx-runtime.production.min.js
|
|
107
107
|
*
|
|
108
108
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
109
109
|
*
|
|
110
110
|
* This source code is licensed under the MIT license found in the
|
|
111
111
|
* LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/var
|
|
112
|
+
*/var Yp;function VI(){if(Yp)return Yn;Yp=1,Ic();var e=Ke,r=60103;if(Yn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;r=t("react.element"),Yn.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 g,m={},b=null,E=null;p!==void 0&&(b=""+p),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(E=d.ref);for(g in d)s.call(d,g)&&!i.hasOwnProperty(g)&&(m[g]=d[g]);if(l&&l.defaultProps)for(g in d=l.defaultProps,d)m[g]===void 0&&(m[g]=d[g]);return{$$typeof:r,type:l,key:b,ref:E,props:m,_owner:a.current}}return Yn.jsx=c,Yn.jsxs=c,Yn}var qu={};/** @license React v17.0.2
|
|
113
113
|
* react-jsx-runtime.development.js
|
|
114
114
|
*
|
|
115
115
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
116
116
|
*
|
|
117
117
|
* This source code is licensed under the MIT license found in the
|
|
118
118
|
* LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/var
|
|
119
|
+
*/var Vp;function KI(){return Vp||(Vp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=Ke,t=Ic(),a=60103,s=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,d=60110,p=60112,g=60113,m=60120,b=60115,E=60116,x=60121,C=60122,I=60117,P=60129,j=60131;if(typeof Symbol=="function"&&Symbol.for){var M=Symbol.for;a=M("react.element"),s=M("react.portal"),e.Fragment=M("react.fragment"),i=M("react.strict_mode"),c=M("react.profiler"),l=M("react.provider"),d=M("react.context"),p=M("react.forward_ref"),g=M("react.suspense"),m=M("react.suspense_list"),b=M("react.memo"),E=M("react.lazy"),x=M("react.block"),C=M("react.server.block"),I=M("react.fundamental"),M("react.scope"),M("react.opaque.id"),P=M("react.debug_trace_mode"),M("react.offscreen"),j=M("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,O="@@iterator";function Y(w){if(w===null||typeof w!="object")return null;var U=k&&w[k]||w[O];return typeof U=="function"?U:null}var H=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function z(w){{for(var U=arguments.length,J=new Array(U>1?U-1:0),ie=1;ie<U;ie++)J[ie-1]=arguments[ie];te("error",w,J)}}function te(w,U,J){{var ie=H.ReactDebugCurrentFrame,Ne=ie.getStackAddendum();Ne!==""&&(U+="%s",J=J.concat([Ne]));var Le=J.map(function(xe){return""+xe});Le.unshift("Warning: "+U),Function.prototype.apply.call(console[w],console,Le)}}var We=!1;function Te(w){return!!(typeof w=="string"||typeof w=="function"||w===e.Fragment||w===c||w===P||w===i||w===g||w===m||w===j||We||typeof w=="object"&&w!==null&&(w.$$typeof===E||w.$$typeof===b||w.$$typeof===l||w.$$typeof===d||w.$$typeof===p||w.$$typeof===I||w.$$typeof===x||w[0]===C))}function it(w,U,J){var ie=U.displayName||U.name||"";return w.displayName||(ie!==""?J+"("+ie+")":J)}function X(w){return w.displayName||"Context"}function Pe(w){if(w==null)return null;if(typeof w.tag=="number"&&z("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case e.Fragment:return"Fragment";case s:return"Portal";case c:return"Profiler";case i:return"StrictMode";case g:return"Suspense";case m:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case d:var U=w;return X(U)+".Consumer";case l:var J=w;return X(J._context)+".Provider";case p:return it(w,w.render,"ForwardRef");case b:return Pe(w.type);case x:return Pe(w._render);case E:{var ie=w,Ne=ie._payload,Le=ie._init;try{return Pe(Le(Ne))}catch{return null}}}return null}var ut=0,et,He,nt,Yt,W,G,de;function le(){}le.__reactDisabledLog=!0;function se(){{if(ut===0){et=console.log,He=console.info,nt=console.warn,Yt=console.error,W=console.group,G=console.groupCollapsed,de=console.groupEnd;var w={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}ut++}}function fe(){{if(ut--,ut===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},w,{value:et}),info:t({},w,{value:He}),warn:t({},w,{value:nt}),error:t({},w,{value:Yt}),group:t({},w,{value:W}),groupCollapsed:t({},w,{value:G}),groupEnd:t({},w,{value:de})})}ut<0&&z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=H.ReactCurrentDispatcher,ce;function ue(w,U,J){{if(ce===void 0)try{throw Error()}catch(Ne){var ie=Ne.stack.trim().match(/\n( *(at )?)/);ce=ie&&ie[1]||""}return`
|
|
120
120
|
`+ce+w}}var he=!1,ge;{var K=typeof WeakMap=="function"?WeakMap:Map;ge=new K}function F(w,U){if(!w||he)return"";{var J=ge.get(w);if(J!==void 0)return J}var ie;he=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Le;Le=ne.current,ne.current=null,se();try{if(U){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(ur){ie=ur}Reflect.construct(w,[],xe)}else{try{xe.call()}catch(ur){ie=ur}w.call(xe.prototype)}}else{try{throw Error()}catch(ur){ie=ur}w()}}catch(ur){if(ur&&ie&&typeof ur.stack=="string"){for(var Ee=ur.stack.split(`
|
|
121
121
|
`),ht=ie.stack.split(`
|
|
122
122
|
`),Ze=Ee.length-1,tt=ht.length-1;Ze>=1&&tt>=0&&Ee[Ze]!==ht[tt];)tt--;for(;Ze>=1&&tt>=0;Ze--,tt--)if(Ee[Ze]!==ht[tt]){if(Ze!==1||tt!==1)do if(Ze--,tt--,tt<0||Ee[Ze]!==ht[tt]){var Kt=`
|
|
123
|
-
`+Ee[Ze].replace(" at new "," at ");return typeof w=="function"&&ge.set(w,Kt),Kt}while(Ze>=1&&tt>=0);break}}}finally{he=!1,ne.current=Le,fe(),Error.prepareStackTrace=Ne}var zr=w?w.displayName||w.name:"",
|
|
123
|
+
`+Ee[Ze].replace(" at new "," at ");return typeof w=="function"&&ge.set(w,Kt),Kt}while(Ze>=1&&tt>=0);break}}}finally{he=!1,ne.current=Le,fe(),Error.prepareStackTrace=Ne}var zr=w?w.displayName||w.name:"",no=zr?ue(zr):"";return typeof w=="function"&&ge.set(w,no),no}function Ye(w,U,J){return F(w,!1)}function qe(w){var U=w.prototype;return!!(U&&U.isReactComponent)}function yt(w,U,J){if(w==null)return"";if(typeof w=="function")return F(w,qe(w));if(typeof w=="string")return ue(w);switch(w){case g:return ue("Suspense");case m:return ue("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case p:return Ye(w.render);case b:return yt(w.type,U,J);case x:return Ye(w._render);case E:{var ie=w,Ne=ie._payload,Le=ie._init;try{return yt(Le(Ne),U,J)}catch{}}}return""}var Ka={},Vt=H.ReactDebugCurrentFrame;function ln(w){if(w){var U=w._owner,J=yt(w.type,w._source,U?U.type:null);Vt.setExtraStackFrame(J)}else Vt.setExtraStackFrame(null)}function Ks(w,U,J,ie,Ne){{var Le=Function.call.bind(Object.prototype.hasOwnProperty);for(var xe in w)if(Le(w,xe)){var Ee=void 0;try{if(typeof w[xe]!="function"){var ht=Error((ie||"React class")+": "+J+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ht.name="Invariant Violation",ht}Ee=w[xe](U,xe,ie,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ze){Ee=Ze}Ee&&!(Ee instanceof Error)&&(ln(Ne),z("%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).",ie||"React class",J,xe,typeof Ee),ln(null)),Ee instanceof Error&&!(Ee.message in Ka)&&(Ka[Ee.message]=!0,ln(Ne),z("Failed %s type: %s",J,Ee.message),ln(null))}}}var ir=H.ReactCurrentOwner,Ct=Object.prototype.hasOwnProperty,fn={key:!0,ref:!0,__self:!0,__source:!0},dn,Ja,xr;xr={};function Js(w){if(Ct.call(w,"ref")){var U=Object.getOwnPropertyDescriptor(w,"ref").get;if(U&&U.isReactWarning)return!1}return w.ref!==void 0}function pn(w){if(Ct.call(w,"key")){var U=Object.getOwnPropertyDescriptor(w,"key").get;if(U&&U.isReactWarning)return!1}return w.key!==void 0}function Gr(w,U){if(typeof w.ref=="string"&&ir.current&&U&&ir.current.stateNode!==U){var J=Pe(ir.current.type);xr[J]||(z('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',Pe(ir.current.type),w.ref),xr[J]=!0)}}function ua(w,U){{var J=function(){dn||(dn=!0,z("%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)",U))};J.isReactWarning=!0,Object.defineProperty(w,"key",{get:J,configurable:!0})}}function ca(w,U){{var J=function(){Ja||(Ja=!0,z("%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)",U))};J.isReactWarning=!0,Object.defineProperty(w,"ref",{get:J,configurable:!0})}}var la=function(w,U,J,ie,Ne,Le,xe){var Ee={$$typeof:a,type:w,key:U,ref:J,props:xe,_owner:Le};return Ee._store={},Object.defineProperty(Ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Ee.props),Object.freeze(Ee)),Ee};function fa(w,U,J,ie,Ne){{var Le,xe={},Ee=null,ht=null;J!==void 0&&(Ee=""+J),pn(U)&&(Ee=""+U.key),Js(U)&&(ht=U.ref,Gr(U,Ne));for(Le in U)Ct.call(U,Le)&&!fn.hasOwnProperty(Le)&&(xe[Le]=U[Le]);if(w&&w.defaultProps){var Ze=w.defaultProps;for(Le in Ze)xe[Le]===void 0&&(xe[Le]=Ze[Le])}if(Ee||ht){var tt=typeof w=="function"?w.displayName||w.name||"Unknown":w;Ee&&ua(xe,tt),ht&&ca(xe,tt)}return la(w,Ee,ht,Ne,ie,ir.current,xe)}}var hn=H.ReactCurrentOwner,Pn=H.ReactDebugCurrentFrame;function mr(w){if(w){var U=w._owner,J=yt(w.type,w._source,U?U.type:null);Pn.setExtraStackFrame(J)}else Pn.setExtraStackFrame(null)}var gn;gn=!1;function vn(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function Xa(){{if(hn.current){var w=Pe(hn.current.type);if(w)return`
|
|
124
124
|
|
|
125
|
-
Check the render method of \``+w+"`."}return""}}function
|
|
125
|
+
Check the render method of \``+w+"`."}return""}}function Xs(w){{if(w!==void 0){var U=w.fileName.replace(/^.*[\\\/]/,""),J=w.lineNumber;return`
|
|
126
126
|
|
|
127
|
-
Check your code at `+U+":"+J+"."}return""}}var
|
|
127
|
+
Check your code at `+U+":"+J+"."}return""}}var Za={};function Qa(w){{var U=Xa();if(!U){var J=typeof w=="string"?w:w.displayName||w.name;J&&(U=`
|
|
128
128
|
|
|
129
|
-
Check the top-level render call using <`+J+">.")}return U}}function ha(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=eo(U);if(Qa[J])return;Qa[J]=!0;var ie="";w&&w._owner&&w._owner!==hn.current&&(ie=" It was passed a child from "+Pe(w._owner.type)+"."),mr(w),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,ie),mr(null)}}function to(w,U){{if(typeof w!="object")return;if(Array.isArray(w))for(var J=0;J<w.length;J++){var ie=w[J];vn(ie)&&ha(ie,U)}else if(vn(w))w._store&&(w._store.validated=!0);else if(w){var Ne=Y(w);if(typeof Ne=="function"&&Ne!==w.entries)for(var Le=Ne.call(w),xe;!(xe=Le.next()).done;)vn(xe.value)&&ha(xe.value,U)}}}function Qs(w){{var U=w.type;if(U==null||typeof U=="string")return;var J;if(typeof U=="function")J=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===p||U.$$typeof===b))J=U.propTypes;else return;if(J){var ie=Pe(U);Js(J,w.props,"prop",ie,w)}else if(U.PropTypes!==void 0&&!gn){gn=!0;var Ne=Pe(U);z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ei(w){{for(var U=Object.keys(w.props),J=0;J<U.length;J++){var ie=U[J];if(ie!=="children"&&ie!=="key"){mr(w),z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),mr(null);break}}w.ref!==null&&(mr(w),z("Invalid attribute `ref` supplied to `React.Fragment`."),mr(null))}}function ro(w,U,J,ie,Ne,Le){{var xe=Te(w);if(!xe){var Ee="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(Ee+=" 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 ht=Zs(Ne);ht?Ee+=ht:Ee+=Za();var Ze;w===null?Ze="null":Array.isArray(w)?Ze="array":w!==void 0&&w.$$typeof===a?(Ze="<"+(Pe(w.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof w,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,Ee)}var tt=pa(w,U,J,Ne,Le);if(tt==null)return tt;if(xe){var Kt=U.children;if(Kt!==void 0)if(ie)if(Array.isArray(Kt)){for(var zr=0;zr<Kt.length;zr++)to(Kt[zr],w);Object.freeze&&Object.freeze(Kt)}else z("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 to(Kt,w)}return w===e.Fragment?ei(tt):Qs(tt),tt}}function no(w,U,J){return ro(w,U,J,!0)}function ti(w,U,J){return ro(w,U,J,!1)}var ri=ti,ni=no;e.jsx=ri,e.jsxs=ni}()}(zu)),zu}process.env.NODE_ENV==="production"?bc.exports=uF():bc.exports=cF();var lF=bc.exports;const fF=({children:e,store:r})=>lF.jsx(Lh,{store:r,children:e});exports.DEFAULT_CACHE=Dc;exports.EAttributeKind=Nr;exports.EAttributeTypes=el;exports.EDebuggerErrorReason=bh;exports.EDebuggerErrorType=gs;exports.EDebuggerState=Lr;exports.EDisplayMode=Rg;exports.EPermissionType=Ae;exports.ETooltipBehavior=Wc;exports.ExpressionIndex=yh;exports.FLAGS_INIT_STATE=xv;exports.FLAGS_KEYS=Ha;exports.ModalCloseReason=Gc;exports.ModalColor=Tr;exports.ModalIcons=KP;exports.ModalType=kt;exports.ReduxProvider=fF;exports.SETTINGS_TAB_PATH=cn;exports.THEME_CLASSES=wg;exports.WEBFORMS_INITIAL_STATE=Cv;exports.WT_FLAGS_KEYS=Tv;exports.actionsToPrivs=Ng;exports.addAttribute=yv;exports.addBreakpointDecoration=FD;exports.addComponent=Ov;exports.addCraftedComponent=AI;exports.addDataSource=LI;exports.addDataclass=gv;exports.addDatasource=nl;exports.addEmptyNamespace=JI;exports.addExpression=kD;exports.addIn=TP;exports.addNewFile=rv;exports.addPermission=PP;exports.addSession=GD;exports.addSharedSource=Hv;exports.addWebFormStyles=WI;exports.allowed=SP;exports.attributeKinds=eI;exports.attributeScopes=aI;exports.attributeTypes=rI;exports.castToFileFolder=gD;exports.changeTabEditor=UI;exports.children=Ts;exports.clearBreakpoints=ND;exports.closeAllTabs=Nv;exports.closeLeftTabs=jv;exports.closeModal=WP;exports.closeOthers=kv;exports.closeRightTabs=Lv;exports.closeSavedTabs=kI;exports.closeTab=sl;exports.create=Mg;exports.createModal=Ug;exports.createModelFiles=vc;exports.createNewFile=Xn;exports.createNewFileAndOpen=_D;exports.createNewNode=as;exports.createRole=kP;exports.createWithResource=CP;exports.dataclassScopes=nI;exports.defaultWebformContent=Og;exports.deleteDatasource=ka;exports.deleteFile=mc;exports.deleteFolder=ED;exports.deleteSharedSource=Gv;exports.deserializeModel=xh;exports.duplicateNode=os;exports.editAttributeProperty=sI;exports.editComponent=Av;exports.editCraftedComponent=PI;exports.editDataSource=Zc;exports.editDataclassPrimaryKey=Ev;exports.editDataclassProperty=iI;exports.editDatasource=al;exports.editModal=UP;exports.editRole=LP;exports.editSharedSource=qv;exports.editors=rg;exports.executeMethod=wD;exports.expandFolder=fD;exports.extensions=ng;exports.fetchAppSettings=Zg;exports.fetchCatalog=Jn;exports.fetchChanges=cv;exports.fetchCraftedComponents=Fv;exports.fetchFiles=TD;exports.fetchFolderContent=Sr;exports.fetchFolderContentWithoutExpanding=$a;exports.fetchModel=tl;exports.fetchRoles=xs;exports.fetchRolesChanges=Vg;exports.fetchSettings=Kc;exports.fetchSharedCss=us;exports.fetchSharedDatasources=is;exports.fetchTemplate=OI;exports.fetchTemplates=RI;exports.findNodeByPath=ft;exports.findOne=On;exports.findSession=st;exports.findSessionByPath=mg;exports.getCachedState=na;exports.getCashedPrefrences=Th;exports.getDebuggerTabName=Ih;exports.getDebuggerTabPath=Fc;exports.getDefaultContent=nv;exports.getDefaultName=ss;exports.getDictByName=kg;exports.getEditors=gr;exports.getExtension=og;exports.getFilePath=sv;exports.getFileType=ov;exports.getFilenameFromType=av;exports.getGraphData=AP;exports.getInheritedResources=Bg;exports.getModalTitle=Is;exports.getNodeRelativePath=ag;exports.getPrivilegeById=qr;exports.getPromotions=$P;exports.getResourceFromType=qc;exports.indexTypes=oI;exports.initSharedCss=nF;exports.injectContentAtLine=iv;exports.inspect=SI;exports.isJSON=Ch;exports.isRelatedAttr=cI;exports.isRelatedEntitiesAttr=Cs;exports.isRelatedEntityAttr=La;exports.isRenameDatasource=II;exports.isRolesOutdated=zc;exports.isValidPrimaryKey=QD;exports.modelSubject=dg;exports.openAddFileInput=dD;exports.openFile=Ma;exports.openFileAtLine=Jc;exports.openFileAtSelection=uv;exports.openModal=sr;exports.openModel=lI;exports.openRoles=DD;exports.openSettingsTab=HI;exports.openTabUnselected=Wv;exports.parents=qs;exports.populateShallow=OP;exports.primaryKeyAttributes=tI;exports.refreshCatalog=za;exports.refreshFile=pD;exports.reloadTab=yc;exports.relocateNode=Na;exports.remove=wP;exports.removeAllExpressions=WD;exports.removeAttribute=bv;exports.removeBreakpointDecoration=$D;exports.removeComponent=Pv;exports.removeCraftedComponent=DI;exports.removeDataSource=BI;exports.removeDataclass=mv;exports.removeDebuggerSessionsNotIn=hv;exports.removeExpression=BD;exports.removeFile=gc;exports.removeFileNode=SD;exports.removeFrom=xP;exports.removeModal=Hg;exports.removePermission=DP;exports.removeRole=NP;exports.removeSession=YD;exports.removeSessionByIndex=VD;exports.rename=RP;exports.renameAttribute=_v;exports.renameCollection=Sv;exports.renameDataSource=Xc;exports.renameDataclass=vv;exports.renameDatasource=ea;exports.renameExpression=jD;exports.renameFile=Zn;exports.resetResources=IP;exports.rootReducer=Uv;exports.sanitize=Gs;exports.sanitizePermissions=Lg;exports.sanitizePrivileges=Fg;exports.saveAll=xD;exports.saveExpressions=qD;exports.saveModel=Rs;exports.savePrefrences=wh;exports.saveRole=jP;exports.saveRoles=pc;exports.saveState=Sh;exports.saveTab=Qn;exports.selectActiveLine=KO;exports.selectActiveTab=uA;exports.selectAllDatasourcesByPath=WO;exports.selectAppState=hg;exports.selectBreakpoints=qO;exports.selectCSSClassesByPath=NA;exports.selectCallChainVariables=aA;exports.selectCatalog=Lc;exports.selectCatalogMethods=MO;exports.selectClassBreakpoints=zO;exports.selectClassOffset=sA;exports.selectClasses=EA;exports.selectClassesFolder=Eg;exports.selectComponents=xg;exports.selectComponentsByPath=jO;exports.selectContentByPath=yg;exports.selectCraftedComponent=UA;exports.selectCurrentFrameByThreadId=tA;exports.selectCurrentTab=lA;exports.selectDataclasses=$O;exports.selectDatasource=BO;exports.selectDatasourcesByPath=gg;exports.selectDatasourcesTheme=qA;exports.selectDebuggerChannels=rA;exports.selectDebuggerData=An;exports.selectDebuggerMeta=UO;exports.selectDebuggerSessions=It;exports.selectDebuggerSessionsCount=HO;exports.selectDebuggers=mA;exports.selectDraftBreakpoints=GO;exports.selectDraftClassBreakpoints=YO;exports.selectExceptions=iA;exports.selectExplorer=yA;exports.selectExpressions=JO;exports.selectExpressionsVariables=oA;exports.selectFlagsByPath=kA;exports.selectGuestPrivilege=CA;exports.selectHasTabs=pA;exports.selectHighlightedLines=VO;exports.selectInspectedCSSClass=jA;exports.selectInspectedDatasource=BA;exports.selectInspector=Bs;exports.selectInspectorStateByType=HA;exports.selectIsLoaded=GA;exports.selectMethods=bA;exports.selectMethodsFolder=_g;exports.selectModals=SA;exports.selectMonacoZoom=$A;exports.selectPanelByPath=iF;exports.selectPreferences=DA;exports.selectPreviewedWebformsPaths=dA;exports.selectPrivileges=xA;exports.selectProjectSettings=PA;exports.selectQodly=FA;exports.selectRecentFiles=cA;exports.selectRemoteDebuggerMode=IA;exports.selectRoles=TA;exports.selectRolesAndPrivileges=wA;exports.selectRolesDate=AA;exports.selectRolesFlags=RA;exports.selectRoot=Hr;exports.selectSelectedTab=OA;exports.selectServerSettings=jc;exports.selectSessionSettings=Sg;exports.selectSharedCSS=LA;exports.selectSharedDatasources=vg;exports.selectSourceByPath=ZO;exports.selectSourceByThreadId=eA;exports.selectStackFrames=nA;exports.selectStoppedFromDebugSession=XO;exports.selectStylesByPath=MA;exports.selectTab=Bv;exports.selectTabByPath=Ya;exports.selectTabByReference=Dt;exports.selectTabExtraByPath=hA;exports.selectTabMaxWeight=fA;exports.selectTabs=ca;exports.selectTemplates=Cg;exports.selectTemplatesData=WA;exports.selectThreadIdByPath=QO;exports.selectTouchedTabs=kc;exports.selectTouchedTabsLength=vA;exports.selectWebForms=_A;exports.selectWebFormsFolder=bg;exports.selectWebformNodes=gA;exports.selectWebformStylesByPath=Bc;exports.selectWebforms=Va;exports.serializeModel=uI;exports.setActiveLine=LD;exports.setBreakpointsDecoration=MD;exports.setCallChainVariables=KD;exports.setContent=$v;exports.setDataSources=jI;exports.setDatasourceEvents=KI;exports.setDatasourcesTheme=TI;exports.setDebuggerMeta=ZD;exports.setExpression=UD;exports.setExpressionVariables=JD;exports.setFolderChildren=hD;exports.setModelFlag=pI;exports.setPanelState=qI;exports.setRolesContent=Yc;exports.setSelectedGroup=wI;exports.setSessions=dv;exports.setSetting=ev;exports.setSettings=Vs;exports.setSettingsAsText=iD;exports.setSourceContent=XD;exports.setTabExtra=NI;exports.setTabFlags=Mv;exports.setTabs=$I;exports.setTabsFlags=MI;exports.setTemplateData=Iv;exports.setTemplatesData=Dv;exports.setWebformsFlag=xI;exports.sort=$g;exports.stateReducer=Vv;exports.stateSlice=ol;exports.store=ra;exports.toAPI=zs;exports.toState=MP;exports.toggleExpandFolder=lD;exports.toggleInspector=EI;exports.togglePermission=FP;exports.togglePrivilegePermission=jg;exports.toggleTab=nD;exports.tryCloseAllTabs=RD;exports.tryCloseLeftTabs=AD;exports.tryCloseOtherTabs=CD;exports.tryCloseRightTabs=OD;exports.tryCloseTab=Qc;exports.tryEditMethod=vD;exports.tryInjectMethod=lv;exports.tryRenameDataclass=fI;exports.uniquePush=ar;exports.updateExpressionAt=HD;exports.updatePrivileges=Jg;exports.updateRoles=Xg;exports.updateRolesAndPrivileges=Vc;exports.updateSession=zD;exports.updateSharedCss=rF;exports.updateSharedDatasources=il;exports.uploadFile=bD;exports.uploadFileAndGetResponse=yD;exports.useAppDispatch=FO;exports.useAppSelector=Ur;exports.useAttribute=mI;exports.useCatalog=tO;exports.useCollections=gI;exports.useDataclass=vI;exports.useDataclasses=hI;exports.useMethod=kO;exports.useMethods=NO;exports.useModelFlags=bI;exports.useModelProperties=yI;exports.wipeDebuggerSessions=pv;
|
|
129
|
+
Check the top-level render call using <`+J+">.")}return U}}function da(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=Qa(U);if(Za[J])return;Za[J]=!0;var ie="";w&&w._owner&&w._owner!==hn.current&&(ie=" It was passed a child from "+Pe(w._owner.type)+"."),mr(w),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,ie),mr(null)}}function eo(w,U){{if(typeof w!="object")return;if(Array.isArray(w))for(var J=0;J<w.length;J++){var ie=w[J];vn(ie)&&da(ie,U)}else if(vn(w))w._store&&(w._store.validated=!0);else if(w){var Ne=Y(w);if(typeof Ne=="function"&&Ne!==w.entries)for(var Le=Ne.call(w),xe;!(xe=Le.next()).done;)vn(xe.value)&&da(xe.value,U)}}}function Zs(w){{var U=w.type;if(U==null||typeof U=="string")return;var J;if(typeof U=="function")J=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===p||U.$$typeof===b))J=U.propTypes;else return;if(J){var ie=Pe(U);Ks(J,w.props,"prop",ie,w)}else if(U.PropTypes!==void 0&&!gn){gn=!0;var Ne=Pe(U);z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qs(w){{for(var U=Object.keys(w.props),J=0;J<U.length;J++){var ie=U[J];if(ie!=="children"&&ie!=="key"){mr(w),z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),mr(null);break}}w.ref!==null&&(mr(w),z("Invalid attribute `ref` supplied to `React.Fragment`."),mr(null))}}function to(w,U,J,ie,Ne,Le){{var xe=Te(w);if(!xe){var Ee="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(Ee+=" 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 ht=Xs(Ne);ht?Ee+=ht:Ee+=Xa();var Ze;w===null?Ze="null":Array.isArray(w)?Ze="array":w!==void 0&&w.$$typeof===a?(Ze="<"+(Pe(w.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof w,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,Ee)}var tt=fa(w,U,J,Ne,Le);if(tt==null)return tt;if(xe){var Kt=U.children;if(Kt!==void 0)if(ie)if(Array.isArray(Kt)){for(var zr=0;zr<Kt.length;zr++)eo(Kt[zr],w);Object.freeze&&Object.freeze(Kt)}else z("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 eo(Kt,w)}return w===e.Fragment?Qs(tt):Zs(tt),tt}}function ro(w,U,J){return to(w,U,J,!0)}function ei(w,U,J){return to(w,U,J,!1)}var ti=ei,ri=ro;e.jsx=ti,e.jsxs=ri}()}(qu)),qu}process.env.NODE_ENV==="production"?mc.exports=VI():mc.exports=KI();var JI=mc.exports;const XI=({children:e,store:r})=>JI.jsx($h,{store:r,children:e});exports.DEFAULT_CACHE=Ac;exports.EAttributeKind=Lr;exports.EAttributeTypes=Zc;exports.EDebuggerErrorReason=gh;exports.EDebuggerErrorType=ps;exports.EDebuggerState=Mr;exports.EDisplayMode=Tg;exports.EPermissionType=Ae;exports.ETooltipBehavior=jc;exports.ExpressionIndex=hh;exports.FLAGS_INIT_STATE=Sv;exports.FLAGS_KEYS=Ua;exports.ModalCloseReason=Hc;exports.ModalColor=Tr;exports.ModalIcons=GP;exports.ModalType=kt;exports.ReduxProvider=XI;exports.SETTINGS_TAB_PATH=cn;exports.THEME_CLASSES=_g;exports.WT_FLAGS_KEYS=Ev;exports.actionsToPrivs=Fg;exports.addAttribute=gv;exports.addBreakpointDecoration=ED;exports.addComponent=Tv;exports.addCraftedComponent=mI;exports.addDataSource=TI;exports.addDataclass=dv;exports.addDatasource=tl;exports.addEmptyNamespace=LI;exports.addExpression=CD;exports.addIn=_P;exports.addNewFile=Qg;exports.addPermission=CP;exports.addSession=FD;exports.addSharedSource=jv;exports.addWebFormStyles=OI;exports.allowed=yP;exports.attributeKinds=UD;exports.attributeScopes=zD;exports.attributeTypes=qD;exports.castToFileFolder=aD;exports.changeTabEditor=AI;exports.children=Ss;exports.clearBreakpoints=TD;exports.closeAllTabs=Iv;exports.closeLeftTabs=Mv;exports.closeModal=LP;exports.closeOthers=$v;exports.closeRightTabs=Fv;exports.closeSavedTabs=xI;exports.closeTab=al;exports.create=Ig;exports.createModal=jg;exports.createModelFiles=hc;exports.createNewFile=Jn;exports.createNewFileAndOpen=cD;exports.createNewNode=rs;exports.createRole=$P;exports.createWithResource=SP;exports.dataclassScopes=GD;exports.defaultWebformContent=xg;exports.deleteDatasource=La;exports.deleteFile=gc;exports.deleteFolder=lD;exports.deleteSharedSource=Wv;exports.deserializeModel=Sh;exports.duplicateNode=ns;exports.editAttributeProperty=VD;exports.editComponent=xv;exports.editCraftedComponent=yI;exports.editDataSource=Jc;exports.editDataclassPrimaryKey=yv;exports.editDataclassProperty=KD;exports.editDatasource=rl;exports.editModal=kP;exports.editRole=FP;exports.editSharedSource=Bv;exports.editors=Qh;exports.executeMethod=dD;exports.expandFolder=eD;exports.extensions=eg;exports.fetchAppSettings=Kg;exports.fetchCatalog=Kn;exports.fetchChanges=sv;exports.fetchCraftedComponents=Av;exports.fetchFiles=pD;exports.fetchFolderContent=Sr;exports.fetchFolderContentWithoutExpanding=Fa;exports.fetchModel=Qc;exports.fetchRoles=ws;exports.fetchRolesChanges=Gg;exports.fetchSettings=Yc;exports.fetchSharedCss=ss;exports.fetchSharedDatasources=os;exports.fetchTemplate=vI;exports.fetchTemplates=gI;exports.findNodeByPath=ft;exports.findOne=On;exports.findSession=st;exports.findSessionByPath=hg;exports.getCachedState=ta;exports.getCashedPrefrences=Eh;exports.getDebuggerTabName=Ah;exports.getDebuggerTabPath=Dc;exports.getDefaultContent=ev;exports.getDefaultName=as;exports.getDictByName=Mg;exports.getEditors=gr;exports.getExtension=rg;exports.getFilePath=nv;exports.getFileType=rv;exports.getFilenameFromType=tv;exports.getGraphData=xP;exports.getInheritedResources=Lg;exports.getModalTitle=Ps;exports.getNodeRelativePath=tg;exports.getPrivilegeById=qr;exports.getPromotions=PP;exports.getResourceFromType=Uc;exports.getStore=Vs;exports.indexTypes=YD;exports.initSharedCss=HI;exports.injectContentAtLine=av;exports.inspect=lI;exports.isJSON=wh;exports.isRelatedAttr=XD;exports.isRelatedEntitiesAttr=Ts;exports.isRelatedEntityAttr=Na;exports.isRenameDatasource=_I;exports.isRolesOutdated=qc;exports.isValidPrimaryKey=WD;exports.modelSubject=cg;exports.openAddFileInput=tD;exports.openFile=$a;exports.openFileAtLine=Vc;exports.openFileAtSelection=ov;exports.openModal=sr;exports.openModel=ZD;exports.openRoles=_D;exports.openSettingsTab=PI;exports.openTabUnselected=Lv;exports.parents=Us;exports.populateShallow=TP;exports.primaryKeyAttributes=HD;exports.refreshCatalog=Ga;exports.refreshFile=rD;exports.reloadTab=vc;exports.relocateNode=Ma;exports.remove=bP;exports.removeAllExpressions=AD;exports.removeAttribute=vv;exports.removeBreakpointDecoration=SD;exports.removeComponent=Cv;exports.removeCraftedComponent=bI;exports.removeDataSource=RI;exports.removeDataclass=hv;exports.removeDebuggerSessionsNotIn=fv;exports.removeExpression=OD;exports.removeFile=pc;exports.removeFileNode=fD;exports.removeFrom=EP;exports.removeModal=Bg;exports.removePermission=RP;exports.removeRole=IP;exports.removeSession=MD;exports.removeSessionByIndex=ND;exports.rename=wP;exports.renameAttribute=mv;exports.renameCollection=bv;exports.renameDataSource=Kc;exports.renameDataclass=pv;exports.renameDatasource=Qn;exports.renameExpression=RD;exports.renameFile=Xn;exports.resetResources=OP;exports.rootReducer=kv;exports.sanitize=Hs;exports.sanitizePermissions=$g;exports.sanitizePrivileges=Pg;exports.saveAll=hD;exports.saveExpressions=ID;exports.saveModel=xs;exports.savePrefrences=_h;exports.saveRole=MP;exports.saveRoles=fc;exports.saveState=bh;exports.saveTab=Zn;exports.selectActiveLine=GO;exports.selectActiveTab=aA;exports.selectAllDatasourcesByPath=LO;exports.selectAppState=fg;exports.selectBreakpoints=BO;exports.selectCSSClassesByPath=IA;exports.selectCallChainVariables=eA;exports.selectCatalog=Mc;exports.selectCatalogMethods=DO;exports.selectClassBreakpoints=UO;exports.selectClassOffset=rA;exports.selectClasses=mA;exports.selectClassesFolder=yg;exports.selectComponents=Sg;exports.selectComponentsByPath=MO;exports.selectContentByPath=gg;exports.selectCraftedComponent=kA;exports.selectCurrentFrameByThreadId=XO;exports.selectCurrentTab=sA;exports.selectDataclasses=PO;exports.selectDatasource=NO;exports.selectDatasourcesByPath=dg;exports.selectDatasourcesTheme=BA;exports.selectDebuggerChannels=ZO;exports.selectDebuggerData=An;exports.selectDebuggerMeta=kO;exports.selectDebuggerSessions=It;exports.selectDebuggerSessionsCount=jO;exports.selectDebuggers=pA;exports.selectDraftBreakpoints=WO;exports.selectDraftClassBreakpoints=HO;exports.selectExceptions=nA;exports.selectExplorer=hA;exports.selectExpressions=zO;exports.selectExpressionsVariables=tA;exports.selectFlagsByPath=$A;exports.selectGuestPrivilege=SA;exports.selectHasTabs=cA;exports.selectHighlightedLines=qO;exports.selectInspectedCSSClass=MA;exports.selectInspectedDatasource=NA;exports.selectInspector=ks;exports.selectInspectorStateByType=jA;exports.selectIsLoaded=WA;exports.selectMethods=gA;exports.selectMethodsFolder=mg;exports.selectModals=yA;exports.selectMonacoZoom=PA;exports.selectPanelByPath=YI;exports.selectPreferences=RA;exports.selectPreviewedWebformsPaths=uA;exports.selectPrivileges=EA;exports.selectProjectSettings=CA;exports.selectQodly=AA;exports.selectRecentFiles=oA;exports.selectRemoteDebuggerMode=OA;exports.selectRoles=_A;exports.selectRolesAndPrivileges=bA;exports.selectRolesDate=xA;exports.selectRolesFlags=wA;exports.selectRoot=Hr;exports.selectSelectedTab=TA;exports.selectServerSettings=Lc;exports.selectSessionSettings=bg;exports.selectSharedCSS=FA;exports.selectSharedDatasources=pg;exports.selectSourceByPath=VO;exports.selectSourceByThreadId=JO;exports.selectStackFrames=QO;exports.selectStoppedFromDebugSession=YO;exports.selectStylesByPath=DA;exports.selectTab=Nv;exports.selectTabByPath=za;exports.selectTabByReference=Dt;exports.selectTabExtraByPath=lA;exports.selectTabMaxWeight=iA;exports.selectTabs=ia;exports.selectTemplates=wg;exports.selectTemplatesData=LA;exports.selectThreadIdByPath=KO;exports.selectTouchedTabs=Nc;exports.selectTouchedTabsLength=dA;exports.selectWebForms=vA;exports.selectWebFormsFolder=vg;exports.selectWebformNodes=fA;exports.selectWebformStylesByPath=kc;exports.selectWebforms=Ya;exports.serializeModel=JD;exports.setActiveLine=xD;exports.setBreakpointsDecoration=wD;exports.setCallChainVariables=LD;exports.setContent=Pv;exports.setDataSources=CI;exports.setDatasourceEvents=NI;exports.setDatasourcesTheme=dI;exports.setDebuggerMeta=BD;exports.setExpression=PD;exports.setExpressionVariables=kD;exports.setFolderChildren=nD;exports.setModelFlag=tI;exports.setPanelState=DI;exports.setRolesContent=Gc;exports.setSelectedGroup=fI;exports.setSessions=cv;exports.setSetting=Xg;exports.setSettings=zs;exports.setSettingsAsText=JP;exports.setSourceContent=jD;exports.setTabExtra=wI;exports.setTabFlags=Dv;exports.setTabs=EI;exports.setTabsFlags=SI;exports.setTemplateData=Ov;exports.setTemplatesData=Rv;exports.setWebformsFlag=pI;exports.sort=Dg;exports.stateReducer=qv;exports.stateSlice=nl;exports.toAPI=qs;exports.toState=DP;exports.toggleExpandFolder=QP;exports.toggleInspector=cI;exports.togglePermission=AP;exports.togglePrivilegePermission=Ng;exports.toggleTab=zP;exports.tryCloseAllTabs=vD;exports.tryCloseLeftTabs=yD;exports.tryCloseOtherTabs=gD;exports.tryCloseRightTabs=mD;exports.tryCloseTab=Xc;exports.tryEditMethod=oD;exports.tryInjectMethod=iv;exports.tryRenameDataclass=QD;exports.uniquePush=ar;exports.updateExpressionAt=DD;exports.updatePrivileges=Yg;exports.updateRoles=Vg;exports.updateRolesAndPrivileges=zc;exports.updateSession=$D;exports.updateSharedCss=UI;exports.updateSharedDatasources=ol;exports.uploadFile=uD;exports.uploadFileAndGetResponse=iD;exports.useAppDispatch=AO;exports.useAppSelector=Ur;exports.useAttribute=oI;exports.useCatalog=XR;exports.useCollections=nI;exports.useDataclass=aI;exports.useDataclasses=rI;exports.useMethod=$O;exports.useMethods=IO;exports.useModelFlags=iI;exports.useModelProperties=sI;exports.wipeDebuggerSessions=lv;
|
|
130
130
|
//# sourceMappingURL=index.cjs.js.map
|