@ws-ui/shared 0.1.14 → 0.1.15
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 +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -199,7 +199,7 @@ __p += '`),Ne&&(G+=`' +
|
|
|
199
199
|
function print() { __p += __j.call(arguments, '') }
|
|
200
200
|
`:`;
|
|
201
201
|
`)+G+`return __p
|
|
202
|
-
}`;var Pe=jd(function(){return Fe(b,re+"return "+G).apply(n,x)});if(Pe.source=G,vu(Pe))throw Pe;return Pe}function c_(t){return Ue(t).toLowerCase()}function f_(t){return Ue(t).toUpperCase()}function d_(t,i,s){if(t=Ue(t),t&&(s||i===n))return Kc(t);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=_n(i),b=Gc(c,h),x=Yc(c,h)+1;return dr(c,b,x).join("")}function p_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.slice(0,Vc(t)+1);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Yc(c,_n(i))+1;return dr(c,0,h).join("")}function h_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.replace(F,"");if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Gc(c,_n(i));return dr(c,h).join("")}function v_(t,i){var s=ee,c=ge;if(tt(i)){var h="separator"in i?i.separator:h;s="length"in i?Re(i.length):s,c="omission"in i?Jt(i.omission):c}t=Ue(t);var b=t.length;if(ui(t)){var x=_n(t);b=x.length}if(s>=b)return t;var R=s-li(c);if(R<1)return c;var M=x?dr(x,0,R).join(""):t.slice(0,R);if(h===n)return M+c;if(x&&(R+=M.length-R),mu(h)){if(t.slice(R).search(h)){var z,q=M;for(h.global||(h=Ls(h.source,Ue(it.exec(h))+"g")),h.lastIndex=0;z=h.exec(q);)var G=z.index;M=M.slice(0,G===n?R:G)}}else if(t.indexOf(Jt(h),R)!=R){var Z=M.lastIndexOf(h);Z>-1&&(M=M.slice(0,Z))}return M+c}function m_(t){return t=Ue(t),t&&Pr.test(t)?t.replace(ii,qg):t}var g_=mi(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),wu=Ff("toUpperCase");function $d(t,i,s){return t=Ue(t),i=s?n:i,i===n?Wg(t)?Yg(t):Ig(t):t.match(i)||[]}var jd=Ae(function(t,i){try{return Xt(t,n,i)}catch(s){return vu(s)?s:new Ee(s)}}),y_=Gn(function(t,i){return sn(i,function(s){s=Mn(s),qn(t,s,pu(t[s],t))}),t});function w_(t){var i=t==null?0:t.length,s=he();return t=i?et(t,function(c){if(typeof c[1]!="function")throw new un(l);return[s(c[0]),c[1]]}):[],Ae(function(c){for(var h=-1;++h<i;){var b=t[h];if(Xt(b[0],this,c))return Xt(b[1],this,c)}})}function b_(t){return q0(cn(t,_))}function bu(t){return function(){return t}}function __(t,i){return t==null||t!==t?i:t}var S_=Uf(),E_=Uf(!0);function zt(t){return t}function _u(t){return gf(typeof t=="function"?t:cn(t,_))}function x_(t){return wf(cn(t,_))}function O_(t,i){return bf(t,cn(i,_))}var T_=Ae(function(t,i){return function(s){return Xi(s,t,i)}}),C_=Ae(function(t,i){return function(s){return Xi(t,s,i)}});function Su(t,i,s){var c=gt(i),h=Qo(i,c);s==null&&!(tt(i)&&(h.length||!c.length))&&(s=i,i=t,t=this,h=Qo(i,gt(i)));var b=!(tt(s)&&"chain"in s)||!!s.chain,x=Xn(t);return sn(h,function(R){var M=i[R];t[R]=M,x&&(t.prototype[R]=function(){var z=this.__chain__;if(b||z){var q=t(this.__wrapped__),G=q.__actions__=Ut(this.__actions__);return G.push({func:M,args:arguments,thisArg:t}),q.__chain__=z,q}return M.apply(t,ar([this.value()],arguments))})}),t}function R_(){return _t._===this&&(_t._=e0),this}function Eu(){}function P_(t){return t=Re(t),Ae(function(i){return _f(i,t)})}var A_=eu(et),I_=eu(Uc),L_=eu(Os);function Fd(t){return su(t)?Ts(Mn(t)):uy(t)}function M_(t){return function(i){return t==null?n:$r(t,i)}}var D_=Hf(),k_=Hf(!0);function xu(){return[]}function Ou(){return!1}function N_(){return{}}function $_(){return""}function j_(){return!0}function F_(t,i){if(t=Re(t),t<1||t>We)return[];var s=X,c=Tt(t,X);i=he(i),t-=X;for(var h=Ps(c,i);++s<t;)i(s);return h}function W_(t){return Te(t)?et(t,Mn):Zt(t)?[t]:Ut(od(Ue(t)))}function U_(t){var i=++Zg;return Ue(t)+i}var B_=oa(function(t,i){return t+i},0),H_=tu("ceil"),z_=oa(function(t,i){return t/i},1),q_=tu("floor");function K_(t){return t&&t.length?Zo(t,zt,Ws):n}function G_(t,i){return t&&t.length?Zo(t,he(i,2),Ws):n}function Y_(t){return zc(t,zt)}function X_(t,i){return zc(t,he(i,2))}function V_(t){return t&&t.length?Zo(t,zt,zs):n}function J_(t,i){return t&&t.length?Zo(t,he(i,2),zs):n}var Z_=oa(function(t,i){return t*i},1),Q_=tu("round"),eS=oa(function(t,i){return t-i},0);function tS(t){return t&&t.length?Rs(t,zt):0}function nS(t,i){return t&&t.length?Rs(t,he(i,2)):0}return w.after=xw,w.ary=md,w.assign=fb,w.assignIn=Ad,w.assignInWith=ya,w.assignWith=db,w.at=pb,w.before=gd,w.bind=pu,w.bindAll=y_,w.bindKey=yd,w.castArray=Nw,w.chain=pd,w.chunk=qy,w.compact=Ky,w.concat=Gy,w.cond=w_,w.conforms=b_,w.constant=bu,w.countBy=tw,w.create=hb,w.curry=wd,w.curryRight=bd,w.debounce=_d,w.defaults=vb,w.defaultsDeep=mb,w.defer=Ow,w.delay=Tw,w.difference=Yy,w.differenceBy=Xy,w.differenceWith=Vy,w.drop=Jy,w.dropRight=Zy,w.dropRightWhile=Qy,w.dropWhile=e1,w.fill=t1,w.filter=rw,w.flatMap=aw,w.flatMapDeep=sw,w.flatMapDepth=uw,w.flatten=ld,w.flattenDeep=n1,w.flattenDepth=r1,w.flip=Cw,w.flow=S_,w.flowRight=E_,w.fromPairs=i1,w.functions=Eb,w.functionsIn=xb,w.groupBy=lw,w.initial=a1,w.intersection=s1,w.intersectionBy=u1,w.intersectionWith=l1,w.invert=Tb,w.invertBy=Cb,w.invokeMap=fw,w.iteratee=_u,w.keyBy=dw,w.keys=gt,w.keysIn=Ht,w.map=da,w.mapKeys=Pb,w.mapValues=Ab,w.matches=x_,w.matchesProperty=O_,w.memoize=ha,w.merge=Ib,w.mergeWith=Id,w.method=T_,w.methodOf=C_,w.mixin=Su,w.negate=va,w.nthArg=P_,w.omit=Lb,w.omitBy=Mb,w.once=Rw,w.orderBy=pw,w.over=A_,w.overArgs=Pw,w.overEvery=I_,w.overSome=L_,w.partial=hu,w.partialRight=Sd,w.partition=hw,w.pick=Db,w.pickBy=Ld,w.property=Fd,w.propertyOf=M_,w.pull=p1,w.pullAll=fd,w.pullAllBy=h1,w.pullAllWith=v1,w.pullAt=m1,w.range=D_,w.rangeRight=k_,w.rearg=Aw,w.reject=gw,w.remove=g1,w.rest=Iw,w.reverse=fu,w.sampleSize=ww,w.set=Nb,w.setWith=$b,w.shuffle=bw,w.slice=y1,w.sortBy=Ew,w.sortedUniq=O1,w.sortedUniqBy=T1,w.split=a_,w.spread=Lw,w.tail=C1,w.take=R1,w.takeRight=P1,w.takeRightWhile=A1,w.takeWhile=I1,w.tap=K1,w.throttle=Mw,w.thru=fa,w.toArray=Cd,w.toPairs=Md,w.toPairsIn=Dd,w.toPath=W_,w.toPlainObject=Pd,w.transform=jb,w.unary=Dw,w.union=L1,w.unionBy=M1,w.unionWith=D1,w.uniq=k1,w.uniqBy=N1,w.uniqWith=$1,w.unset=Fb,w.unzip=du,w.unzipWith=dd,w.update=Wb,w.updateWith=Ub,w.values=wi,w.valuesIn=Bb,w.without=j1,w.words=$d,w.wrap=kw,w.xor=F1,w.xorBy=W1,w.xorWith=U1,w.zip=B1,w.zipObject=H1,w.zipObjectDeep=z1,w.zipWith=q1,w.entries=Md,w.entriesIn=Dd,w.extend=Ad,w.extendWith=ya,Su(w,w),w.add=B_,w.attempt=jd,w.camelCase=Kb,w.capitalize=kd,w.ceil=H_,w.clamp=Hb,w.clone=$w,w.cloneDeep=Fw,w.cloneDeepWith=Ww,w.cloneWith=jw,w.conformsTo=Uw,w.deburr=Nd,w.defaultTo=__,w.divide=z_,w.endsWith=Gb,w.eq=En,w.escape=Yb,w.escapeRegExp=Xb,w.every=nw,w.find=iw,w.findIndex=sd,w.findKey=gb,w.findLast=ow,w.findLastIndex=ud,w.findLastKey=yb,w.floor=q_,w.forEach=hd,w.forEachRight=vd,w.forIn=wb,w.forInRight=bb,w.forOwn=_b,w.forOwnRight=Sb,w.get=gu,w.gt=Bw,w.gte=Hw,w.has=Ob,w.hasIn=yu,w.head=cd,w.identity=zt,w.includes=cw,w.indexOf=o1,w.inRange=zb,w.invoke=Rb,w.isArguments=Wr,w.isArray=Te,w.isArrayBuffer=zw,w.isArrayLike=Bt,w.isArrayLikeObject=lt,w.isBoolean=qw,w.isBuffer=pr,w.isDate=Kw,w.isElement=Gw,w.isEmpty=Yw,w.isEqual=Xw,w.isEqualWith=Vw,w.isError=vu,w.isFinite=Jw,w.isFunction=Xn,w.isInteger=Ed,w.isLength=ma,w.isMap=xd,w.isMatch=Zw,w.isMatchWith=Qw,w.isNaN=eb,w.isNative=tb,w.isNil=rb,w.isNull=nb,w.isNumber=Od,w.isObject=tt,w.isObjectLike=ot,w.isPlainObject=to,w.isRegExp=mu,w.isSafeInteger=ib,w.isSet=Td,w.isString=ga,w.isSymbol=Zt,w.isTypedArray=yi,w.isUndefined=ob,w.isWeakMap=ab,w.isWeakSet=sb,w.join=c1,w.kebabCase=Vb,w.last=dn,w.lastIndexOf=f1,w.lowerCase=Jb,w.lowerFirst=Zb,w.lt=ub,w.lte=lb,w.max=K_,w.maxBy=G_,w.mean=Y_,w.meanBy=X_,w.min=V_,w.minBy=J_,w.stubArray=xu,w.stubFalse=Ou,w.stubObject=N_,w.stubString=$_,w.stubTrue=j_,w.multiply=Z_,w.nth=d1,w.noConflict=R_,w.noop=Eu,w.now=pa,w.pad=Qb,w.padEnd=e_,w.padStart=t_,w.parseInt=n_,w.random=qb,w.reduce=vw,w.reduceRight=mw,w.repeat=r_,w.replace=i_,w.result=kb,w.round=Q_,w.runInContext=A,w.sample=yw,w.size=_w,w.snakeCase=o_,w.some=Sw,w.sortedIndex=w1,w.sortedIndexBy=b1,w.sortedIndexOf=_1,w.sortedLastIndex=S1,w.sortedLastIndexBy=E1,w.sortedLastIndexOf=x1,w.startCase=s_,w.startsWith=u_,w.subtract=eS,w.sum=tS,w.sumBy=nS,w.template=l_,w.times=F_,w.toFinite=Vn,w.toInteger=Re,w.toLength=Rd,w.toLower=c_,w.toNumber=pn,w.toSafeInteger=cb,w.toString=Ue,w.toUpper=f_,w.trim=d_,w.trimEnd=p_,w.trimStart=h_,w.truncate=v_,w.unescape=m_,w.uniqueId=U_,w.upperCase=g_,w.upperFirst=wu,w.each=hd,w.eachRight=vd,w.first=cd,Su(w,function(){var t={};return In(w,function(i,s){ze.call(w.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),w.VERSION=o,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){w[t].placeholder=w}),sn(["drop","take"],function(t,i){ke.prototype[t]=function(s){s=s===n?1:ht(Re(s),0);var c=this.__filtered__&&!i?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=Tt(s,c.__takeCount__):c.__views__.push({size:Tt(s,X),type:t+(c.__dir__<0?"Right":"")}),c},ke.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),sn(["filter","map","takeWhile"],function(t,i){var s=i+1,c=s==se||s==we;ke.prototype[t]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:he(h,3),type:s}),b.__filtered__=b.__filtered__||c,b}}),sn(["head","last"],function(t,i){var s="take"+(i?"Right":"");ke.prototype[t]=function(){return this[s](1).value()[0]}}),sn(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[s](1)}}),ke.prototype.compact=function(){return this.filter(zt)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=Ae(function(t,i){return typeof t=="function"?new ke(this):this.map(function(s){return Xi(s,t,i)})}),ke.prototype.reject=function(t){return this.filter(va(he(t)))},ke.prototype.slice=function(t,i){t=Re(t);var s=this;return s.__filtered__&&(t>0||i<0)?new ke(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Re(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(X)},In(ke.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),h=w[c?"take"+(i=="last"?"Right":""):i],b=c||/^find/.test(i);h&&(w.prototype[i]=function(){var x=this.__wrapped__,R=c?[1]:arguments,M=x instanceof ke,z=R[0],q=M||Te(x),G=function(De){var Ne=h.apply(w,ar([De],R));return c&&Z?Ne[0]:Ne};q&&s&&typeof z=="function"&&z.length!=1&&(M=q=!1);var Z=this.__chain__,re=!!this.__actions__.length,ve=b&&!Z,Pe=M&&!re;if(!b&&q){x=Pe?x:new ke(this);var me=t.apply(x,R);return me.__actions__.push({func:fa,args:[G],thisArg:n}),new ln(me,Z)}return ve&&Pe?t.apply(this,R):(me=this.thru(G),ve?c?me.value()[0]:me.value():me)})}),sn(["pop","push","shift","sort","splice","unshift"],function(t){var i=$o[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var b=this.value();return i.apply(Te(b)?b:[],h)}return this[s](function(x){return i.apply(Te(x)?x:[],h)})}}),In(ke.prototype,function(t,i){var s=w[i];if(s){var c=s.name+"";ze.call(pi,c)||(pi[c]=[]),pi[c].push({name:i,func:s})}}),pi[ia(n,D).name]=[{name:"wrapper",func:n}],ke.prototype.clone=m0,ke.prototype.reverse=g0,ke.prototype.value=y0,w.prototype.at=G1,w.prototype.chain=Y1,w.prototype.commit=X1,w.prototype.next=V1,w.prototype.plant=Z1,w.prototype.reverse=Q1,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=ew,w.prototype.first=w.prototype.head,Bi&&(w.prototype[Bi]=J1),w},ci=Xg();Lr?((Lr.exports=ci)._=ci,_s._=ci):_t._=ci}).call(zr)})(es,es.exports);var Dt=es.exports;const Ml={FdSave:AE,FdWarningDanger:Gl,FdInfoCircle:CE,FdInfoBold:yl};var cc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(cc||{}),Xr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Xr||{}),Ti=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Ti||{});const om={[Xr.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Xr.DANGER]:{icon:"red-500",button:"primary-dark"},[Xr.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ol=({color:e=Xr.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=om[e].button,l=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-white hover:text-${u}`;return $.jsx("button",{autoFocus:o,className:yt("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},fP=({name:e,color:r=Xr.PRIMARY,className:n="w-10 h-10"})=>{const o=Ml[e]||Ml.FdInfoCircle,a=`text-${om[r].icon}`;return $.jsx(o,{className:yt(n,a)})},dP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:f,width:d=520,hasOverlay:m=!0,onClose:g,onEdit:_})=>{const O=y=>{g({id:e,reason:y})};k.useEffect(()=>{function y(E){E.key==="Escape"&&O(Ti.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const v=Dt.merge(Dt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),S=(y,E)=>{var I;if(!(f!=null&&f.toggles))return;const D=Dt.cloneDeep(f);(I=D.toggles)!=null&&I[y]&&(D.toggles[y].value=E),_({id:e,views:D})};return yo.createPortal($.jsx(Qa,{appear:!0,show:!0,as:k.Fragment,children:$.jsx("div",{className:yt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:l},onClick:()=>O(Ti.CANCELED),children:$.jsx(Qa.Child,{as:k.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[o?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(fP,{name:o,color:u})}):null,$.jsx(pP,{condition:r,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white",children:r})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),$.jsx("div",{className:"text-xs text-white",children:Dt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(rm,{size:"xs",value:y.value,onChange:E=>S(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(hP,{warnings:v}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===cc.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(ol,{autoFocus:!0,color:u,onClick:()=>O(Ti.CONFIRMED),children:"Confirm"}),$.jsx(ol,{color:u,variant:"outlined",onClick:()=>O(Ti.CANCELED),children:"Cancel"})]}):$.jsx(ol,{autoFocus:!0,onClick:()=>O(),children:"OK"})})]})})})})}),document.querySelector("body"))},pP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,hP=e=>e.warnings?$.jsx(Qa,{appear:!0,show:!!e.warnings.length,as:k.Fragment,children:$.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((r,n)=>$.jsx(Qa.Child,{as:k.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(Gl,{className:yt({"h-3 w-3":!0,"text-orange-400":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;function vP(e,r){const n=k.useRef(!1);k.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var al=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function sl(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function am(e,r){for(var n=r.slice(0,r.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function sm(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var r=e.split(","),n=r.lastIndexOf("");n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function mP(e,r){for(var n=e.length>=r.length?e:r,o=e.length>=r.length?r:e,a=!0,u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}var vo={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":al?173:189,"=":al?61:187,";":al?59:186,"'":222,"[":219,"]":221,"\\":220},Un={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Dl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},xt={16:!1,18:!1,17:!1,91:!1},at={};for(var ka=1;ka<20;ka++)vo["f".concat(ka)]=111+ka;var Ve=[],ch=!1,um="all",lm=[],Po=function(r){return vo[r.toLowerCase()]||Un[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},gP=function(r){return Object.keys(vo).find(function(n){return vo[n]===r})},yP=function(r){return Object.keys(Un).find(function(n){return Un[n]===r})};function cm(e){um=e||"all"}function mo(){return um||"all"}function wP(){return Ve.slice(0)}function bP(){return Ve.map(function(e){return gP(e)||yP(e)||String.fromCharCode(e)})}function _P(){var e=[];return Object.keys(at).forEach(function(r){at[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,l=n.shortcut;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(function(f){return Po(f)})})})}),e}function SP(e){var r=e.target||e.srcElement,n=r.tagName,o=!0;return(r.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function EP(e){return typeof e=="string"&&(e=Po(e)),Ve.indexOf(e)!==-1}function xP(e,r){var n,o;e||(e=mo());for(var a in at)if(Object.prototype.hasOwnProperty.call(at,a))for(n=at[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;mo()===e&&cm(r||"all")}function OP(e){var r=e.keyCode||e.which||e.charCode,n=Ve.indexOf(r);if(n>=0&&Ve.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(r===93||r===224)&&(r=91),r in xt){xt[r]=!1;for(var o in Un)Un[o]===r&&(Pn[o]=!1)}}function TP(e){if(typeof e>"u")Object.keys(at).forEach(function(l){return delete at[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&ul(l)});else if(typeof e=="object")e.key&&ul(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=n[0],u=n[1];typeof a=="function"&&(u=a,a=""),ul({key:e,scope:a,method:u,splitKey:"+"})}}var ul=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,l=u===void 0?"+":u,f=sm(n);f.forEach(function(d){var m=d.split(l),g=m.length,_=m[g-1],O=_==="*"?"*":Po(_);if(at[O]){o||(o=mo());var v=g>1?am(Un,m):[];at[O]=at[O].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&mP(S.mods,v))})}})};function fh(e,r,n,o){if(r.element===o){var a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(!xt[u]&&r.mods.indexOf(+u)>-1||xt[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!xt[16]&&!xt[18]&&!xt[17]&&!xt[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(Ve),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function dh(e,r){var n=at["*"],o=e.keyCode||e.which||e.charCode;if(Pn.filter.call(this,e)){if((o===93||o===224)&&(o=91),Ve.indexOf(o)===-1&&o!==229&&Ve.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var y=Dl[S];e[S]&&Ve.indexOf(y)===-1?Ve.push(y):!e[S]&&Ve.indexOf(y)>-1?Ve.splice(Ve.indexOf(y),1):S==="metaKey"&&e[S]&&Ve.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ve=Ve.slice(Ve.indexOf(y))))}),o in xt){xt[o]=!0;for(var a in Un)Un[a]===o&&(Pn[a]=!0);if(!n)return}for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(xt[u]=e[Dl[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),xt[17]=!0,xt[18]=!0);var l=mo();if(n)for(var f=0;f<n.length;f++)n[f].scope===l&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&fh(e,n[f],l,r);if(o in at){for(var d=0;d<at[o].length;d++)if((e.type==="keydown"&&at[o][d].keydown||e.type==="keyup"&&at[o][d].keyup)&&at[o][d].key){for(var m=at[o][d],g=m.splitKey,_=m.key.split(g),O=[],v=0;v<_.length;v++)O.push(Po(_[v]));O.sort().join("")===Ve.sort().join("")&&fh(e,m,l,r)}}}}function CP(e){return lm.indexOf(e)>-1}function Pn(e,r,n){Ve=[];var o=sm(e),a=[],u="all",l=document,f=0,d=!1,m=!0,g="+",_=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(d=r.keyup),r.keydown!==void 0&&(m=r.keydown),r.capture!==void 0&&(_=r.capture),typeof r.splitKey=="string"&&(g=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(g),a=[],e.length>1&&(a=am(Un,e)),e=e[e.length-1],e=e==="*"?"*":Po(e),e in at||(at[e]=[]),at[e].push({keyup:d,keydown:m,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:g,element:l});typeof l<"u"&&!CP(l)&&window&&(lm.push(l),sl(l,"keydown",function(O){dh(O,l)},_),ch||(ch=!0,sl(window,"focus",function(){Ve=[]},_)),sl(l,"keyup",function(O){dh(O,l),OP(O)},_))}function RP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(at).forEach(function(n){var o=at[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var ll={getPressedKeyString:bP,setScope:cm,getScope:mo,deleteScope:xP,getPressedKeyCodes:wP,getAllKeyCodes:_P,isPressed:EP,filter:SP,trigger:RP,unbind:TP,keyMap:vo,modifier:Un,modifierMap:Dl};for(var cl in ll)Object.prototype.hasOwnProperty.call(ll,cl)&&(Pn[cl]=ll[cl]);if(typeof window<"u"){var PP=window.hotkeys;Pn.noConflict=function(e){return e&&window.hotkeys===Pn&&(window.hotkeys=PP),Pn},window.hotkeys=Pn}Pn.filter=()=>!0;function AP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=k.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>r(f,d))},o),l=()=>{Pn.unbind(e,u)};k.useEffect(()=>(Pn(e,n,u),l),[e,n,u])}const IP=e=>{const r=k.useRef(null);return k.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function LP(e){const r=k.useRef();return k.useEffect(()=>{r.current=e},[e]),r.current}function MP(e){const r=k.useRef(e);return k.useEffect(()=>{r.current=e},[e]),r}function DP(e){const r=k.useRef(null);return k.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}const kP={features:{debugger:{enabled:process.env.REACT_APP_DEBUGGER_ENABLED!=="false"},modelEditor:{enabled:process.env.REACT_APP_MODEL_EDITOR_ENABLED!=="false"},roles:{enabled:process.env.REACT_APP_ROLES_ENABLED!=="false"}}};function NP(){const[e,r]=k.useState(kP),n=(a,u)=>{r(l=>({...l,features:{...l.features,[a]:u}}))},o=k.useCallback((...a)=>a.every(u=>{var l;return(l=e.features[u])==null?void 0:l.enabled}),[e.features]);return{setFeature:n,isFeatureEnabled:o}}const fm=k.createContext(""),$P=e=>$.jsx(fm.Provider,{value:e.value,children:e.children}),jP=()=>{const e=k.useContext(fm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function FP(e){const[r,n]=k.useState(e),o=k.useMemo(()=>WP(r,n),[]);return{state:r,actions:{...o,set:n}}}function WP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${Dt.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const UP=(e,r,n={})=>{n={timeout:200,...n};const o=k.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return k.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function tr(e){return typeof e=="function"}function dm(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var fl=dm(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
202
|
+
}`;var Pe=jd(function(){return Fe(b,re+"return "+G).apply(n,x)});if(Pe.source=G,vu(Pe))throw Pe;return Pe}function c_(t){return Ue(t).toLowerCase()}function f_(t){return Ue(t).toUpperCase()}function d_(t,i,s){if(t=Ue(t),t&&(s||i===n))return Kc(t);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=_n(i),b=Gc(c,h),x=Yc(c,h)+1;return dr(c,b,x).join("")}function p_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.slice(0,Vc(t)+1);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Yc(c,_n(i))+1;return dr(c,0,h).join("")}function h_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.replace(F,"");if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Gc(c,_n(i));return dr(c,h).join("")}function v_(t,i){var s=ee,c=ge;if(tt(i)){var h="separator"in i?i.separator:h;s="length"in i?Re(i.length):s,c="omission"in i?Jt(i.omission):c}t=Ue(t);var b=t.length;if(ui(t)){var x=_n(t);b=x.length}if(s>=b)return t;var R=s-li(c);if(R<1)return c;var M=x?dr(x,0,R).join(""):t.slice(0,R);if(h===n)return M+c;if(x&&(R+=M.length-R),mu(h)){if(t.slice(R).search(h)){var z,q=M;for(h.global||(h=Ls(h.source,Ue(it.exec(h))+"g")),h.lastIndex=0;z=h.exec(q);)var G=z.index;M=M.slice(0,G===n?R:G)}}else if(t.indexOf(Jt(h),R)!=R){var Z=M.lastIndexOf(h);Z>-1&&(M=M.slice(0,Z))}return M+c}function m_(t){return t=Ue(t),t&&Pr.test(t)?t.replace(ii,qg):t}var g_=mi(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),wu=Ff("toUpperCase");function $d(t,i,s){return t=Ue(t),i=s?n:i,i===n?Wg(t)?Yg(t):Ig(t):t.match(i)||[]}var jd=Ae(function(t,i){try{return Xt(t,n,i)}catch(s){return vu(s)?s:new Ee(s)}}),y_=Gn(function(t,i){return sn(i,function(s){s=Mn(s),qn(t,s,pu(t[s],t))}),t});function w_(t){var i=t==null?0:t.length,s=he();return t=i?et(t,function(c){if(typeof c[1]!="function")throw new un(l);return[s(c[0]),c[1]]}):[],Ae(function(c){for(var h=-1;++h<i;){var b=t[h];if(Xt(b[0],this,c))return Xt(b[1],this,c)}})}function b_(t){return q0(cn(t,_))}function bu(t){return function(){return t}}function __(t,i){return t==null||t!==t?i:t}var S_=Uf(),E_=Uf(!0);function zt(t){return t}function _u(t){return gf(typeof t=="function"?t:cn(t,_))}function x_(t){return wf(cn(t,_))}function O_(t,i){return bf(t,cn(i,_))}var T_=Ae(function(t,i){return function(s){return Xi(s,t,i)}}),C_=Ae(function(t,i){return function(s){return Xi(t,s,i)}});function Su(t,i,s){var c=gt(i),h=Qo(i,c);s==null&&!(tt(i)&&(h.length||!c.length))&&(s=i,i=t,t=this,h=Qo(i,gt(i)));var b=!(tt(s)&&"chain"in s)||!!s.chain,x=Xn(t);return sn(h,function(R){var M=i[R];t[R]=M,x&&(t.prototype[R]=function(){var z=this.__chain__;if(b||z){var q=t(this.__wrapped__),G=q.__actions__=Ut(this.__actions__);return G.push({func:M,args:arguments,thisArg:t}),q.__chain__=z,q}return M.apply(t,ar([this.value()],arguments))})}),t}function R_(){return _t._===this&&(_t._=e0),this}function Eu(){}function P_(t){return t=Re(t),Ae(function(i){return _f(i,t)})}var A_=eu(et),I_=eu(Uc),L_=eu(Os);function Fd(t){return su(t)?Ts(Mn(t)):uy(t)}function M_(t){return function(i){return t==null?n:$r(t,i)}}var D_=Hf(),k_=Hf(!0);function xu(){return[]}function Ou(){return!1}function N_(){return{}}function $_(){return""}function j_(){return!0}function F_(t,i){if(t=Re(t),t<1||t>We)return[];var s=X,c=Tt(t,X);i=he(i),t-=X;for(var h=Ps(c,i);++s<t;)i(s);return h}function W_(t){return Te(t)?et(t,Mn):Zt(t)?[t]:Ut(od(Ue(t)))}function U_(t){var i=++Zg;return Ue(t)+i}var B_=oa(function(t,i){return t+i},0),H_=tu("ceil"),z_=oa(function(t,i){return t/i},1),q_=tu("floor");function K_(t){return t&&t.length?Zo(t,zt,Ws):n}function G_(t,i){return t&&t.length?Zo(t,he(i,2),Ws):n}function Y_(t){return zc(t,zt)}function X_(t,i){return zc(t,he(i,2))}function V_(t){return t&&t.length?Zo(t,zt,zs):n}function J_(t,i){return t&&t.length?Zo(t,he(i,2),zs):n}var Z_=oa(function(t,i){return t*i},1),Q_=tu("round"),eS=oa(function(t,i){return t-i},0);function tS(t){return t&&t.length?Rs(t,zt):0}function nS(t,i){return t&&t.length?Rs(t,he(i,2)):0}return w.after=xw,w.ary=md,w.assign=fb,w.assignIn=Ad,w.assignInWith=ya,w.assignWith=db,w.at=pb,w.before=gd,w.bind=pu,w.bindAll=y_,w.bindKey=yd,w.castArray=Nw,w.chain=pd,w.chunk=qy,w.compact=Ky,w.concat=Gy,w.cond=w_,w.conforms=b_,w.constant=bu,w.countBy=tw,w.create=hb,w.curry=wd,w.curryRight=bd,w.debounce=_d,w.defaults=vb,w.defaultsDeep=mb,w.defer=Ow,w.delay=Tw,w.difference=Yy,w.differenceBy=Xy,w.differenceWith=Vy,w.drop=Jy,w.dropRight=Zy,w.dropRightWhile=Qy,w.dropWhile=e1,w.fill=t1,w.filter=rw,w.flatMap=aw,w.flatMapDeep=sw,w.flatMapDepth=uw,w.flatten=ld,w.flattenDeep=n1,w.flattenDepth=r1,w.flip=Cw,w.flow=S_,w.flowRight=E_,w.fromPairs=i1,w.functions=Eb,w.functionsIn=xb,w.groupBy=lw,w.initial=a1,w.intersection=s1,w.intersectionBy=u1,w.intersectionWith=l1,w.invert=Tb,w.invertBy=Cb,w.invokeMap=fw,w.iteratee=_u,w.keyBy=dw,w.keys=gt,w.keysIn=Ht,w.map=da,w.mapKeys=Pb,w.mapValues=Ab,w.matches=x_,w.matchesProperty=O_,w.memoize=ha,w.merge=Ib,w.mergeWith=Id,w.method=T_,w.methodOf=C_,w.mixin=Su,w.negate=va,w.nthArg=P_,w.omit=Lb,w.omitBy=Mb,w.once=Rw,w.orderBy=pw,w.over=A_,w.overArgs=Pw,w.overEvery=I_,w.overSome=L_,w.partial=hu,w.partialRight=Sd,w.partition=hw,w.pick=Db,w.pickBy=Ld,w.property=Fd,w.propertyOf=M_,w.pull=p1,w.pullAll=fd,w.pullAllBy=h1,w.pullAllWith=v1,w.pullAt=m1,w.range=D_,w.rangeRight=k_,w.rearg=Aw,w.reject=gw,w.remove=g1,w.rest=Iw,w.reverse=fu,w.sampleSize=ww,w.set=Nb,w.setWith=$b,w.shuffle=bw,w.slice=y1,w.sortBy=Ew,w.sortedUniq=O1,w.sortedUniqBy=T1,w.split=a_,w.spread=Lw,w.tail=C1,w.take=R1,w.takeRight=P1,w.takeRightWhile=A1,w.takeWhile=I1,w.tap=K1,w.throttle=Mw,w.thru=fa,w.toArray=Cd,w.toPairs=Md,w.toPairsIn=Dd,w.toPath=W_,w.toPlainObject=Pd,w.transform=jb,w.unary=Dw,w.union=L1,w.unionBy=M1,w.unionWith=D1,w.uniq=k1,w.uniqBy=N1,w.uniqWith=$1,w.unset=Fb,w.unzip=du,w.unzipWith=dd,w.update=Wb,w.updateWith=Ub,w.values=wi,w.valuesIn=Bb,w.without=j1,w.words=$d,w.wrap=kw,w.xor=F1,w.xorBy=W1,w.xorWith=U1,w.zip=B1,w.zipObject=H1,w.zipObjectDeep=z1,w.zipWith=q1,w.entries=Md,w.entriesIn=Dd,w.extend=Ad,w.extendWith=ya,Su(w,w),w.add=B_,w.attempt=jd,w.camelCase=Kb,w.capitalize=kd,w.ceil=H_,w.clamp=Hb,w.clone=$w,w.cloneDeep=Fw,w.cloneDeepWith=Ww,w.cloneWith=jw,w.conformsTo=Uw,w.deburr=Nd,w.defaultTo=__,w.divide=z_,w.endsWith=Gb,w.eq=En,w.escape=Yb,w.escapeRegExp=Xb,w.every=nw,w.find=iw,w.findIndex=sd,w.findKey=gb,w.findLast=ow,w.findLastIndex=ud,w.findLastKey=yb,w.floor=q_,w.forEach=hd,w.forEachRight=vd,w.forIn=wb,w.forInRight=bb,w.forOwn=_b,w.forOwnRight=Sb,w.get=gu,w.gt=Bw,w.gte=Hw,w.has=Ob,w.hasIn=yu,w.head=cd,w.identity=zt,w.includes=cw,w.indexOf=o1,w.inRange=zb,w.invoke=Rb,w.isArguments=Wr,w.isArray=Te,w.isArrayBuffer=zw,w.isArrayLike=Bt,w.isArrayLikeObject=lt,w.isBoolean=qw,w.isBuffer=pr,w.isDate=Kw,w.isElement=Gw,w.isEmpty=Yw,w.isEqual=Xw,w.isEqualWith=Vw,w.isError=vu,w.isFinite=Jw,w.isFunction=Xn,w.isInteger=Ed,w.isLength=ma,w.isMap=xd,w.isMatch=Zw,w.isMatchWith=Qw,w.isNaN=eb,w.isNative=tb,w.isNil=rb,w.isNull=nb,w.isNumber=Od,w.isObject=tt,w.isObjectLike=ot,w.isPlainObject=to,w.isRegExp=mu,w.isSafeInteger=ib,w.isSet=Td,w.isString=ga,w.isSymbol=Zt,w.isTypedArray=yi,w.isUndefined=ob,w.isWeakMap=ab,w.isWeakSet=sb,w.join=c1,w.kebabCase=Vb,w.last=dn,w.lastIndexOf=f1,w.lowerCase=Jb,w.lowerFirst=Zb,w.lt=ub,w.lte=lb,w.max=K_,w.maxBy=G_,w.mean=Y_,w.meanBy=X_,w.min=V_,w.minBy=J_,w.stubArray=xu,w.stubFalse=Ou,w.stubObject=N_,w.stubString=$_,w.stubTrue=j_,w.multiply=Z_,w.nth=d1,w.noConflict=R_,w.noop=Eu,w.now=pa,w.pad=Qb,w.padEnd=e_,w.padStart=t_,w.parseInt=n_,w.random=qb,w.reduce=vw,w.reduceRight=mw,w.repeat=r_,w.replace=i_,w.result=kb,w.round=Q_,w.runInContext=A,w.sample=yw,w.size=_w,w.snakeCase=o_,w.some=Sw,w.sortedIndex=w1,w.sortedIndexBy=b1,w.sortedIndexOf=_1,w.sortedLastIndex=S1,w.sortedLastIndexBy=E1,w.sortedLastIndexOf=x1,w.startCase=s_,w.startsWith=u_,w.subtract=eS,w.sum=tS,w.sumBy=nS,w.template=l_,w.times=F_,w.toFinite=Vn,w.toInteger=Re,w.toLength=Rd,w.toLower=c_,w.toNumber=pn,w.toSafeInteger=cb,w.toString=Ue,w.toUpper=f_,w.trim=d_,w.trimEnd=p_,w.trimStart=h_,w.truncate=v_,w.unescape=m_,w.uniqueId=U_,w.upperCase=g_,w.upperFirst=wu,w.each=hd,w.eachRight=vd,w.first=cd,Su(w,function(){var t={};return In(w,function(i,s){ze.call(w.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),w.VERSION=o,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){w[t].placeholder=w}),sn(["drop","take"],function(t,i){ke.prototype[t]=function(s){s=s===n?1:ht(Re(s),0);var c=this.__filtered__&&!i?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=Tt(s,c.__takeCount__):c.__views__.push({size:Tt(s,X),type:t+(c.__dir__<0?"Right":"")}),c},ke.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),sn(["filter","map","takeWhile"],function(t,i){var s=i+1,c=s==se||s==we;ke.prototype[t]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:he(h,3),type:s}),b.__filtered__=b.__filtered__||c,b}}),sn(["head","last"],function(t,i){var s="take"+(i?"Right":"");ke.prototype[t]=function(){return this[s](1).value()[0]}}),sn(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[s](1)}}),ke.prototype.compact=function(){return this.filter(zt)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=Ae(function(t,i){return typeof t=="function"?new ke(this):this.map(function(s){return Xi(s,t,i)})}),ke.prototype.reject=function(t){return this.filter(va(he(t)))},ke.prototype.slice=function(t,i){t=Re(t);var s=this;return s.__filtered__&&(t>0||i<0)?new ke(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Re(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(X)},In(ke.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),h=w[c?"take"+(i=="last"?"Right":""):i],b=c||/^find/.test(i);h&&(w.prototype[i]=function(){var x=this.__wrapped__,R=c?[1]:arguments,M=x instanceof ke,z=R[0],q=M||Te(x),G=function(De){var Ne=h.apply(w,ar([De],R));return c&&Z?Ne[0]:Ne};q&&s&&typeof z=="function"&&z.length!=1&&(M=q=!1);var Z=this.__chain__,re=!!this.__actions__.length,ve=b&&!Z,Pe=M&&!re;if(!b&&q){x=Pe?x:new ke(this);var me=t.apply(x,R);return me.__actions__.push({func:fa,args:[G],thisArg:n}),new ln(me,Z)}return ve&&Pe?t.apply(this,R):(me=this.thru(G),ve?c?me.value()[0]:me.value():me)})}),sn(["pop","push","shift","sort","splice","unshift"],function(t){var i=$o[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var b=this.value();return i.apply(Te(b)?b:[],h)}return this[s](function(x){return i.apply(Te(x)?x:[],h)})}}),In(ke.prototype,function(t,i){var s=w[i];if(s){var c=s.name+"";ze.call(pi,c)||(pi[c]=[]),pi[c].push({name:i,func:s})}}),pi[ia(n,D).name]=[{name:"wrapper",func:n}],ke.prototype.clone=m0,ke.prototype.reverse=g0,ke.prototype.value=y0,w.prototype.at=G1,w.prototype.chain=Y1,w.prototype.commit=X1,w.prototype.next=V1,w.prototype.plant=Z1,w.prototype.reverse=Q1,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=ew,w.prototype.first=w.prototype.head,Bi&&(w.prototype[Bi]=J1),w},ci=Xg();Lr?((Lr.exports=ci)._=ci,_s._=ci):_t._=ci}).call(zr)})(es,es.exports);var Dt=es.exports;const Ml={FdSave:AE,FdWarningDanger:Gl,FdInfoCircle:CE,FdInfoBold:yl};var cc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(cc||{}),Xr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Xr||{}),Ti=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Ti||{});const om={[Xr.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Xr.DANGER]:{icon:"red-500",button:"primary-dark"},[Xr.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ol=({color:e=Xr.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=om[e].button,l=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-white hover:text-${u}`;return $.jsx("button",{autoFocus:o,className:yt("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},fP=({name:e,color:r=Xr.PRIMARY,className:n="w-10 h-10"})=>{const o=Ml[e]||Ml.FdInfoCircle,a=`text-${om[r].icon}`;return $.jsx(o,{className:yt(n,a)})},dP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:f,width:d=520,hasOverlay:m=!0,onClose:g,onEdit:_})=>{const O=y=>{g({id:e,reason:y})};k.useEffect(()=>{function y(E){E.key==="Escape"&&O(Ti.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const v=Dt.merge(Dt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),S=(y,E)=>{var I;if(!(f!=null&&f.toggles))return;const D=Dt.cloneDeep(f);(I=D.toggles)!=null&&I[y]&&(D.toggles[y].value=E),_({id:e,views:D})};return yo.createPortal($.jsx(Qa,{appear:!0,show:!0,as:k.Fragment,children:$.jsx("div",{className:yt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:l},onClick:()=>O(Ti.CANCELED),children:$.jsx(Qa.Child,{as:k.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[o?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(fP,{name:o,color:u})}):null,$.jsx(pP,{condition:r,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:r})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),$.jsx("div",{className:"text-xs text-white",children:Dt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(rm,{size:"xs",value:y.value,onChange:E=>S(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(hP,{warnings:v}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===cc.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(ol,{autoFocus:!0,color:u,onClick:()=>O(Ti.CONFIRMED),children:"Confirm"}),$.jsx(ol,{color:u,variant:"outlined",onClick:()=>O(Ti.CANCELED),children:"Cancel"})]}):$.jsx(ol,{autoFocus:!0,onClick:()=>O(),children:"OK"})})]})})})})}),document.querySelector("body"))},pP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,hP=e=>e.warnings?$.jsx(Qa,{appear:!0,show:!!e.warnings.length,as:k.Fragment,children:$.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((r,n)=>$.jsx(Qa.Child,{as:k.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(Gl,{className:yt({"h-3 w-3":!0,"text-orange-400":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;function vP(e,r){const n=k.useRef(!1);k.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var al=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function sl(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function am(e,r){for(var n=r.slice(0,r.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function sm(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var r=e.split(","),n=r.lastIndexOf("");n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function mP(e,r){for(var n=e.length>=r.length?e:r,o=e.length>=r.length?r:e,a=!0,u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}var vo={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":al?173:189,"=":al?61:187,";":al?59:186,"'":222,"[":219,"]":221,"\\":220},Un={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Dl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},xt={16:!1,18:!1,17:!1,91:!1},at={};for(var ka=1;ka<20;ka++)vo["f".concat(ka)]=111+ka;var Ve=[],ch=!1,um="all",lm=[],Po=function(r){return vo[r.toLowerCase()]||Un[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},gP=function(r){return Object.keys(vo).find(function(n){return vo[n]===r})},yP=function(r){return Object.keys(Un).find(function(n){return Un[n]===r})};function cm(e){um=e||"all"}function mo(){return um||"all"}function wP(){return Ve.slice(0)}function bP(){return Ve.map(function(e){return gP(e)||yP(e)||String.fromCharCode(e)})}function _P(){var e=[];return Object.keys(at).forEach(function(r){at[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,l=n.shortcut;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(function(f){return Po(f)})})})}),e}function SP(e){var r=e.target||e.srcElement,n=r.tagName,o=!0;return(r.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function EP(e){return typeof e=="string"&&(e=Po(e)),Ve.indexOf(e)!==-1}function xP(e,r){var n,o;e||(e=mo());for(var a in at)if(Object.prototype.hasOwnProperty.call(at,a))for(n=at[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;mo()===e&&cm(r||"all")}function OP(e){var r=e.keyCode||e.which||e.charCode,n=Ve.indexOf(r);if(n>=0&&Ve.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(r===93||r===224)&&(r=91),r in xt){xt[r]=!1;for(var o in Un)Un[o]===r&&(Pn[o]=!1)}}function TP(e){if(typeof e>"u")Object.keys(at).forEach(function(l){return delete at[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&ul(l)});else if(typeof e=="object")e.key&&ul(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=n[0],u=n[1];typeof a=="function"&&(u=a,a=""),ul({key:e,scope:a,method:u,splitKey:"+"})}}var ul=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,l=u===void 0?"+":u,f=sm(n);f.forEach(function(d){var m=d.split(l),g=m.length,_=m[g-1],O=_==="*"?"*":Po(_);if(at[O]){o||(o=mo());var v=g>1?am(Un,m):[];at[O]=at[O].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&mP(S.mods,v))})}})};function fh(e,r,n,o){if(r.element===o){var a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(!xt[u]&&r.mods.indexOf(+u)>-1||xt[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!xt[16]&&!xt[18]&&!xt[17]&&!xt[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(Ve),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function dh(e,r){var n=at["*"],o=e.keyCode||e.which||e.charCode;if(Pn.filter.call(this,e)){if((o===93||o===224)&&(o=91),Ve.indexOf(o)===-1&&o!==229&&Ve.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var y=Dl[S];e[S]&&Ve.indexOf(y)===-1?Ve.push(y):!e[S]&&Ve.indexOf(y)>-1?Ve.splice(Ve.indexOf(y),1):S==="metaKey"&&e[S]&&Ve.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ve=Ve.slice(Ve.indexOf(y))))}),o in xt){xt[o]=!0;for(var a in Un)Un[a]===o&&(Pn[a]=!0);if(!n)return}for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(xt[u]=e[Dl[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),xt[17]=!0,xt[18]=!0);var l=mo();if(n)for(var f=0;f<n.length;f++)n[f].scope===l&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&fh(e,n[f],l,r);if(o in at){for(var d=0;d<at[o].length;d++)if((e.type==="keydown"&&at[o][d].keydown||e.type==="keyup"&&at[o][d].keyup)&&at[o][d].key){for(var m=at[o][d],g=m.splitKey,_=m.key.split(g),O=[],v=0;v<_.length;v++)O.push(Po(_[v]));O.sort().join("")===Ve.sort().join("")&&fh(e,m,l,r)}}}}function CP(e){return lm.indexOf(e)>-1}function Pn(e,r,n){Ve=[];var o=sm(e),a=[],u="all",l=document,f=0,d=!1,m=!0,g="+",_=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(d=r.keyup),r.keydown!==void 0&&(m=r.keydown),r.capture!==void 0&&(_=r.capture),typeof r.splitKey=="string"&&(g=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(g),a=[],e.length>1&&(a=am(Un,e)),e=e[e.length-1],e=e==="*"?"*":Po(e),e in at||(at[e]=[]),at[e].push({keyup:d,keydown:m,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:g,element:l});typeof l<"u"&&!CP(l)&&window&&(lm.push(l),sl(l,"keydown",function(O){dh(O,l)},_),ch||(ch=!0,sl(window,"focus",function(){Ve=[]},_)),sl(l,"keyup",function(O){dh(O,l),OP(O)},_))}function RP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(at).forEach(function(n){var o=at[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var ll={getPressedKeyString:bP,setScope:cm,getScope:mo,deleteScope:xP,getPressedKeyCodes:wP,getAllKeyCodes:_P,isPressed:EP,filter:SP,trigger:RP,unbind:TP,keyMap:vo,modifier:Un,modifierMap:Dl};for(var cl in ll)Object.prototype.hasOwnProperty.call(ll,cl)&&(Pn[cl]=ll[cl]);if(typeof window<"u"){var PP=window.hotkeys;Pn.noConflict=function(e){return e&&window.hotkeys===Pn&&(window.hotkeys=PP),Pn},window.hotkeys=Pn}Pn.filter=()=>!0;function AP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=k.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>r(f,d))},o),l=()=>{Pn.unbind(e,u)};k.useEffect(()=>(Pn(e,n,u),l),[e,n,u])}const IP=e=>{const r=k.useRef(null);return k.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function LP(e){const r=k.useRef();return k.useEffect(()=>{r.current=e},[e]),r.current}function MP(e){const r=k.useRef(e);return k.useEffect(()=>{r.current=e},[e]),r}function DP(e){const r=k.useRef(null);return k.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}const kP={features:{debugger:{enabled:process.env.REACT_APP_DEBUGGER_ENABLED!=="false"},modelEditor:{enabled:process.env.REACT_APP_MODEL_EDITOR_ENABLED!=="false"},roles:{enabled:process.env.REACT_APP_ROLES_ENABLED!=="false"}}};function NP(){const[e,r]=k.useState(kP),n=(a,u)=>{r(l=>({...l,features:{...l.features,[a]:u}}))},o=k.useCallback((...a)=>a.every(u=>{var l;return(l=e.features[u])==null?void 0:l.enabled}),[e.features]);return{setFeature:n,isFeatureEnabled:o}}const fm=k.createContext(""),$P=e=>$.jsx(fm.Provider,{value:e.value,children:e.children}),jP=()=>{const e=k.useContext(fm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function FP(e){const[r,n]=k.useState(e),o=k.useMemo(()=>WP(r,n),[]);return{state:r,actions:{...o,set:n}}}function WP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${Dt.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const UP=(e,r,n={})=>{n={timeout:200,...n};const o=k.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return k.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function tr(e){return typeof e=="function"}function dm(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var fl=dm(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
203
203
|
`+n.map(function(o,a){return a+1+") "+o.toString()}).join(`
|
|
204
204
|
`):"",this.name="UnsubscriptionError",this.errors=n}});function kl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var hs=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var f=Sl(l),d=f.next();!d.done;d=f.next()){var m=d.value;m.remove(this)}}catch(y){r={error:y}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}else l.remove(this);var g=this.initialTeardown;if(tr(g))try{g()}catch(y){u=y instanceof fl?y.errors:[y]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var O=Sl(_),v=O.next();!v.done;v=O.next()){var S=v.value;try{ph(S)}catch(y){u=u??[],y instanceof fl?u=po(po([],Ya(u)),Ya(y.errors)):u.push(y)}}}catch(y){o={error:y}}finally{try{v&&!v.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}}if(u)throw new fl(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)ph(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&kl(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&kl(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),pm=hs.EMPTY;function hm(e){return e instanceof hs||e&&"closed"in e&&tr(e.remove)&&tr(e.add)&&tr(e.unsubscribe)}function ph(e){tr(e)?e():e.unsubscribe()}var vm={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Nl={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=Nl.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,po([e,r],Ya(n))):setTimeout.apply(void 0,po([e,r],Ya(n)))},clearTimeout:function(e){var r=Nl.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function BP(e){Nl.setTimeout(function(){throw e})}function hh(){}function Ha(e){e()}var mm=function(e){os(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,hm(n)&&n.add(o)):o.destination=KP,o}return r.create=function(n,o,a){return new $l(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},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(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(hs),HP=Function.prototype.bind;function dl(e,r){return HP.call(e,r)}var zP=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){Na(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){Na(o)}else Na(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){Na(n)}},e}(),$l=function(e){os(r,e);function r(n,o,a){var u=e.call(this)||this,l;if(tr(n)||!n)l={next:n??void 0,error:o??void 0,complete:a??void 0};else{var f;u&&vm.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return u.unsubscribe()},l={next:n.next&&dl(n.next,f),error:n.error&&dl(n.error,f),complete:n.complete&&dl(n.complete,f)}):l=n}return u.destination=new zP(l),u}return r}(mm);function Na(e){BP(e)}function qP(e){throw e}var KP={closed:!0,next:hh,error:qP,complete:hh},GP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function YP(e){return e}function XP(e){return e.length===0?YP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var vh=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=JP(r)?r:new $l(r,n,o);return Ha(function(){var l=a,f=l.operator,d=l.source;u.add(f?f.call(u,d):d?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=mh(n),new n(function(a,u){var l=new $l({next:function(f){try{r(f)}catch(d){u(d),l.unsubscribe()}},error:u,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[GP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return XP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=mh(r),new r(function(o,a){var u;n.subscribe(function(l){return u=l},function(l){return a(l)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function mh(e){var r;return(r=e??vm.Promise)!==null&&r!==void 0?r:Promise}function VP(e){return e&&tr(e.next)&&tr(e.error)&&tr(e.complete)}function JP(e){return e&&e instanceof mm||VP(e)&&hm(e)}var ZP=dm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ni=function(e){os(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new gh(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new ZP},r.prototype.next=function(n){var o=this;Ha(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=Sl(o.currentObservers),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(n)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;Ha(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;Ha(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,l=a.isStopped,f=a.observers;return u||l?pm:(this.currentObservers=null,f.push(n),new hs(function(){o.currentObservers=null,kl(f,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,l=o.isStopped;a?n.error(u):l&&n.complete()},r.prototype.asObservable=function(){var n=new vh;return n.source=this,n},r.create=function(n,o){return new gh(n,o)},r}(vh),gh=function(e){os(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:pm},r}(ni),gm=(e=>(e.RELOAD="reload",e))(gm||{}),ym=(e=>(e.RENAME="rename",e))(ym||{});const QP=new ni,eA=new ni,tA=new ni;var wm=(e=>(e.SAVE_ALL="save-all",e))(wm||{});const nA=new ni;var bm=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e))(bm||{});const rA=new ni;var _m=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(_m||{});const iA=new ni;function Sm(e){if(e==="")throw new Error("Please enter a valid name");if(!/^[\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF\u20000-\u2A6DFa-zA-Z]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF\u20000-\u2A6DFA-Za-z0-9_-]+$/.test(e))throw new Error("Invalid name");return!0}function oA(e){if(!e)return null;if(typeof e=="string")try{Sm(e)}catch(r){return r.message}}function vs(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"\\\\]*(?:\\\\.|"(?:[^"\\\\]*\\\\.)*[^"\\\\]*"))*[^"]*$)',"gm");return e.replace(r,"")}var fc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e))(fc||{});const Vr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms"};var Cn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.METHOD="method",e.CLASS="class",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Cn||{}),ri=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(ri||{}),dc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(dc||{});const Em="roles.json",xm="qodlyApp.json",aA="model.4DModel";function Om(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return Cn.MODEL;case n==="WebForm":return Cn.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===Vr.METHODS):return Cn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===Vr.CLASSES):return Cn.CLASS;case e===Em:return Cn.ROLES;case e===xm:return Cn.SETTINGS;default:return Cn.TEXT}}function sA(e,r=!1){switch(e){case Vr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Vr.CLASSES:case Vr.METHODS:return r?"4qs":"4dm";default:return""}}function uA(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Tm{constructor(){Ud(this,"current",Promise.resolve())}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function Cm(){const e=new Tm;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Rm=Dt.curry((e,r,n)=>e&&Dt.get(n,e)===r),lA=Dt.curry((e,r,n)=>Dt.get(n,e)!==r),cA=Dt.curry((e,r)=>Dt.get(r,"id")!==e),fA=Dt.curry((e,r)=>Dt.get(r,"id")===e),dA=Dt.curry((e,r)=>Dt.get(r,"path")===e);function pA(e="id",r,n){return n.findIndex(Rm(e,r))!==-1}function hA(e){if(!e)return"";const{id:r,namespace:n}=e;return n?`${n}:${r}`:r}function Pm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function vA(e){return e.type==="object"}function Am(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Im(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Pm(e)}function mA(e){return Am(e)||Im(e)}function gA(e){return e.applyTo==="dataStore"}function yA(e){return e.applyTo==="dataClass"}function wA(e){return e.applyTo==="entity"}function bA(e){return e.applyTo==="entityCollection"}function _A(e){return e.type==="entity"}function SA(e){return e.type==="entitysel"}function Lm(e){return e.dataType==="array"}function Mm(e){return e.dataType==="object"}function Dm(e){return e.type==="scalar"}function EA(e){return Lm(e)||Mm(e)||Dm(e)}const xA=e=>e!=null&&e.type==="entity",OA=e=>e.type==="entitysel",TA=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",CA=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",RA=e=>e.type==="scalar"&&e.dataType==="date";function PA(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}var go=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(go||{}),km=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(km||{}),pc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(pc||{});const AA={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function IA(e){var u;let r={};try{const l=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(l)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:go.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:pc.table}},...o}}function Nm(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[go.capable,go.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function LA(e,r,n=!1){const o=Dt.isString(r)?r:Nm(r);if(!n&&$m(e))return e;const a=jm(e);return`//%attributes = ${o}\r
|
|
205
205
|
${a}`}function $m(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function jm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const MA=()=>av.uuid().replaceAll("-","").toUpperCase(),vt="/rest/$designer",Ao="/rest/$designer-ext",hc="/$shared";function DA(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class jl extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function Ke(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new jl(e,n,u)}catch{a=new jl(e,n)}throw a.log(),a}return await n.json()}function kA(e){return Ke(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function NA(e){return Ke(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Fm=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:dc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function $A(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await Ke(vt,{method:"POST",body:JSON.stringify({verb:ri.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),Fm()}}async function Wm(e){return await Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function jA(...e){return(await Promise.all(e.map(o=>Wm({root:o,verb:ri.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function FA(e){return Ke(`/rest/$getWebForm/${e}`,{method:"GET"})}function WA(e){return Ke(vt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Cn.METHOD,Cn.CLASS].includes(r.type)?vs(r.content):r.content}))}function UA(e){return e.type==="folder"?Ke(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function BA(e){return e.type==="folder"?(await Ke(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function HA(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function zA(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function qA(e){return(await Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function KA(...e){return await Ke(vt,{method:"POST",body:JSON.stringify({verb:ri.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function GA(e){const r=await Ke("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function YA(){return await Ke("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function XA({name:e,path:r="",root:n="root",asText:o=!1}){return Ke(vt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function VA(){try{const e=await Ke(`${hc}/shared_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{}}}async function JA(){try{const e=await Ke(`${hc}/shared_css.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{classes:[]}}}async function ZA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const QA=Cm(),e2=async e=>{const r={verb:ri.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return QA(async()=>(await Ke(vt,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},Um=async e=>{const r=await Ke(vt,{method:"POST",body:JSON.stringify({...e,verb:ri.SET_FILE_CONTENT,root:fc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Om(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},t2=async e=>await Um({name:"crafted_components.json",path:Vr.WEBFORMS,content:e});function n2(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function r2(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function i2(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function o2(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?vs(r.content):r.content})}function a2(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function s2(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function u2(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function l2(e){const r=s2(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=u2(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function c2(e,r){const o=e.split(".").pop();try{const a=await Ke(vt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=vs(a.content);const{params:u,result:l}=l2(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var Bm=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Bm||{});function f2(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var Hm=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Hm||{}),zm=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(zm||{}),qm=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(qm||{});const d2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},p2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=vt;exports.AppLoader=cP;exports.ControlledSwitch=rm;exports.DATASOURCE_THEMES=d2;exports.DatasourcesActions=ym;exports.DebuggerActions=_m;exports.DesignerRequestVerb=ri;exports.Dialog=SE;exports.DialogBody=Lh;exports.EActivity=Bm;exports.EDITOR=p2;exports.EIDENTIFIERS=zm;exports.ERROR_CODES=qm;exports.EWebFormStyleClassScope=Hm;exports.EXT_API_PREFIX=Ao;exports.FileFolderType=Cn;exports.FolderRootPath=Vr;exports.FolderRootType=fc;exports.HTTPError=jl;exports.IPreemptive=go;exports.IPublished=km;exports.IPublishedRestScope=pc;exports.IdentityProvider=$P;exports.Incase=hO;exports.IndentLines=sv;exports.LogoSVG=im;exports.LspActions=bm;exports.MODEL_TAB_PATH=aA;exports.Modal=dP;exports.ModalCloseReason=Ti;exports.ModalColor=Xr;exports.ModalIcons=Ml;exports.ModalType=cc;exports.Mutex=Tm;exports.Overlay=Ih;exports.Portal=bh;exports.PublishOptions=AA;exports.ROLES_TAB_PATH=Em;exports.RemoteDebuggerMode=dc;exports.SETTINGS_TAB_PATH=xm;exports.SHARED_API_PREFIX=hc;exports.Switcher=uv;exports.TabEventsActions=wm;exports.Tip=dR;exports.TipsProvider=lR;exports.Toast=Dx;exports.Tooltip=uP;exports.Tree=pO;exports.TreeIcon=tv;exports.TreeNode=Jl;exports.WebformActions=gm;exports._isArrayDatasource=TA;exports._isObjectDatasource=CA;exports.addAttributesToContent=LA;exports.addFolder=HA;exports.by=Rm;exports.byId=fA;exports.byPath=dA;exports.checkUpdates=kA;exports.createFolder=n2;exports.datasourcesSubject=QP;exports.debuggerSubject=iA;exports.dropFile=BA;exports.dropFolder=qA;exports.exists=pA;exports.extractWebformName=uA;exports.generateUUID=MA;exports.getAppSettings=$A;exports.getCatalog=YA;exports.getDatasourceId=hA;exports.getDefaultAppSettings=Fm;exports.getFile=WA;exports.getFileContent=XA;exports.getFileExtentionFromType=sA;exports.getFilesInfo=KA;exports.getFolder=Wm;exports.getFolders=jA;exports.getFunctionContent=c2;exports.getMonacoTheme=ZA;exports.getNodeInfo=o2;exports.getSharedCSS=JA;exports.getSharedDatasources=VA;exports.getTypeFromExtension=Om;exports.getWebForm=FA;exports.hasAttributesString=$m;exports.http=Ke;exports.installUpdates=NA;exports.isArrayDatasource=Lm;exports.isDataClassMethod=yA;exports.isDataStoreMethod=gA;exports.isDateDatasource=RA;exports.isEntity=xA;exports.isEntityDatasource=_A;exports.isEntityMethod=wA;exports.isEntitySelection=OA;exports.isEntitySelectionDatasource=SA;exports.isEntitySelectionMethod=bA;exports.isObjectAttribute=vA;exports.isObjectDatasource=Mm;exports.isRelatedAttribute=mA;exports.isRelatedEntitiesAttribute=Am;exports.isRelatedEntityAttribute=Im;exports.isScalarDatasource=Dm;exports.isSimpleAttribute=Pm;exports.isSimpleDatasource=EA;exports.loadDS=PA;exports.log=f2;exports.login=GA;exports.lspSubject=rA;exports.moveItem=i2;exports.outBy=lA;exports.outById=cA;exports.parseAttributes=IA;exports.queue=Cm;exports.removeAttributesString=jm;exports.removeItem=r2;exports.renameFile=UA;exports.renameFolder=zA;exports.sanitizeContent=vs;exports.saveContent=a2;exports.setCraftedComponents=t2;exports.setFileContent=Um;exports.setSharedSources=e2;exports.stringifyAttributes=Nm;exports.tabEventsSubject=nA;exports.toastSubject=tA;exports.transformDates=DA;exports.useDidMountEffect=vP;exports.useDoubleClick=UP;exports.useFeatureFlags=NP;exports.useForwardedRef=DP;exports.useHotkeys=AP;exports.useIdentity=jP;exports.useOutsideClick=IP;exports.usePrevious=LP;exports.useStateObject=FP;exports.useStateRef=MP;exports.useTip=qv;exports.validateName=Sm;exports.validateServerSide=oA;exports.webformSubject=eA;
|