@ws-ui/store 1.7.8 → 1.8.1
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 +3 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -34,7 +34,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34
34
|
`)+B+`return __p
|
|
35
35
|
}`;var ve=hh(function(){return Ae(w,X+"return "+B).apply(r,x)});if(ve.source=B,su(ve))throw ve;return ve}function AC(n){return Oe(n).toLowerCase()}function xC(n){return Oe(n).toUpperCase()}function RC(n,o,c){if(n=Oe(n),n&&(c||o===r))return Td(n);if(!n||!(o=Mt(o)))return n;var p=tr(n),y=tr(o),w=wd(p,y),x=Cd(p,y)+1;return jr(p,w,x).join("")}function OC(n,o,c){if(n=Oe(n),n&&(c||o===r))return n.slice(0,xd(n)+1);if(!n||!(o=Mt(o)))return n;var p=tr(n),y=Cd(p,tr(o))+1;return jr(p,0,y).join("")}function PC(n,o,c){if(n=Oe(n),n&&(c||o===r))return n.replace(si,"");if(!n||!(o=Mt(o)))return n;var p=tr(n),y=wd(p,tr(o));return jr(p,y).join("")}function DC(n,o){var c=be,p=Q;if(Ge(o)){var y="separator"in o?o.separator:y;c="length"in o?he(o.length):c,p="omission"in o?Mt(o.omission):p}n=Oe(n);var w=n.length;if(wn(n)){var x=tr(n);w=x.length}if(c>=w)return n;var P=c-Cn(p);if(P<1)return p;var F=x?jr(x,0,P).join(""):n.slice(0,P);if(y===r)return F+p;if(x&&(P+=F.length-P),ou(y)){if(n.slice(P).search(y)){var $,k=F;for(y.global||(y=Ei(y.source,Oe(Gf.exec(y))+"g")),y.lastIndex=0;$=y.exec(k);)var B=$.index;F=F.slice(0,B===r?P:B)}}else if(n.indexOf(Mt(y),P)!=P){var z=F.lastIndexOf(y);z>-1&&(F=F.slice(0,z))}return F+p}function IC(n){return n=Oe(n),n&&Ub.test(n)?n.replace(Wf,i0):n}var FC=In(function(n,o,c){return n+(c?" ":"")+o.toUpperCase()}),cu=gp("toUpperCase");function ph(n,o,c){return n=Oe(n),o=c?r:o,o===r?r0(n)?l0(n):zS(n):n.match(o)||[]}var hh=_e(function(n,o){try{return It(n,r,o)}catch(c){return su(c)?c:new oe(c)}}),MC=Sr(function(n,o){return Bt(o,function(c){c=ir(c),_r(n,c,nu(n[c],n))}),n});function LC(n){var o=n==null?0:n.length,c=ee();return n=o?We(n,function(p){if(typeof p[1]!="function")throw new Wt(u);return[c(p[0]),p[1]]}):[],_e(function(p){for(var y=-1;++y<o;){var w=n[y];if(It(w[0],this,p))return It(w[1],this,p)}})}function NC(n){return iE(Ht(n,g))}function lu(n){return function(){return n}}function $C(n,o){return n==null||n!==n?o:n}var kC=yp(),qC=yp(!0);function Rt(n){return n}function fu(n){return zd(typeof n=="function"?n:Ht(n,g))}function jC(n){return Kd(Ht(n,g))}function BC(n,o){return Jd(n,Ht(o,g))}var WC=_e(function(n,o){return function(c){return ia(c,n,o)}}),UC=_e(function(n,o){return function(c){return ia(n,c,o)}});function du(n,o,c){var p=ct(o),y=ws(o,p);c==null&&!(Ge(o)&&(y.length||!p.length))&&(c=o,o=n,n=this,y=ws(o,ct(o)));var w=!(Ge(c)&&"chain"in c)||!!c.chain,x=Tr(n);return Bt(y,function(P){var F=o[P];n[P]=F,x&&(n.prototype[P]=function(){var $=this.__chain__;if(w||$){var k=n(this.__wrapped__),B=k.__actions__=Ct(this.__actions__);return B.push({func:F,args:arguments,thisArg:n}),k.__chain__=$,k}return F.apply(n,Mr([this.value()],arguments))})}),n}function HC(){return ft._===this&&(ft._=v0),this}function pu(){}function GC(n){return n=he(n),_e(function(o){return Qd(o,n)})}var VC=Hi(We),zC=Hi(md),YC=Hi(gi);function gh(n){return Qi(n)?vi(ir(n)):wE(n)}function KC(n){return function(o){return n==null?r:cn(n,o)}}var JC=_p(),QC=_p(!0);function hu(){return[]}function gu(){return!1}function ZC(){return{}}function XC(){return""}function eA(){return!0}function tA(n,o){if(n=he(n),n<1||n>ut)return[];var c=V,p=gt(n,V);o=ee(o),n-=V;for(var y=_i(p,o);++c<n;)o(c);return y}function rA(n){return ce(n)?We(n,ir):Lt(n)?[n]:Ct(Lp(Oe(n)))}function nA(n){var o=++h0;return Oe(n)+o}var aA=Ps(function(n,o){return n+o},0),sA=Gi("ceil"),oA=Ps(function(n,o){return n/o},1),iA=Gi("floor");function uA(n){return n&&n.length?Ts(n,Rt,Pi):r}function cA(n,o){return n&&n.length?Ts(n,ee(o,2),Pi):r}function lA(n){return Sd(n,Rt)}function fA(n,o){return Sd(n,ee(o,2))}function dA(n){return n&&n.length?Ts(n,Rt,Mi):r}function pA(n,o){return n&&n.length?Ts(n,ee(o,2),Mi):r}var hA=Ps(function(n,o){return n*o},1),gA=Gi("round"),vA=Ps(function(n,o){return n-o},0);function yA(n){return n&&n.length?mi(n,Rt):0}function mA(n,o){return n&&n.length?mi(n,ee(o,2)):0}return T.after=jw,T.ary=Vp,T.assign=x1,T.assignIn=oh,T.assignInWith=Us,T.assignWith=R1,T.at=O1,T.before=zp,T.bind=nu,T.bindAll=MC,T.bindKey=Yp,T.castArray=Zw,T.chain=Up,T.chunk=iT,T.compact=uT,T.concat=cT,T.cond=LC,T.conforms=NC,T.constant=lu,T.countBy=yw,T.create=P1,T.curry=Kp,T.curryRight=Jp,T.debounce=Qp,T.defaults=D1,T.defaultsDeep=I1,T.defer=Bw,T.delay=Ww,T.difference=lT,T.differenceBy=fT,T.differenceWith=dT,T.drop=pT,T.dropRight=hT,T.dropRightWhile=gT,T.dropWhile=vT,T.fill=yT,T.filter=_w,T.flatMap=Ew,T.flatMapDeep=Tw,T.flatMapDepth=ww,T.flatten=qp,T.flattenDeep=mT,T.flattenDepth=_T,T.flip=Uw,T.flow=kC,T.flowRight=qC,T.fromPairs=bT,T.functions=q1,T.functionsIn=j1,T.groupBy=Cw,T.initial=ET,T.intersection=TT,T.intersectionBy=wT,T.intersectionWith=CT,T.invert=W1,T.invertBy=U1,T.invokeMap=xw,T.iteratee=fu,T.keyBy=Rw,T.keys=ct,T.keysIn=xt,T.map=$s,T.mapKeys=G1,T.mapValues=V1,T.matches=jC,T.matchesProperty=BC,T.memoize=qs,T.merge=z1,T.mergeWith=ih,T.method=WC,T.methodOf=UC,T.mixin=du,T.negate=js,T.nthArg=GC,T.omit=Y1,T.omitBy=K1,T.once=Hw,T.orderBy=Ow,T.over=VC,T.overArgs=Gw,T.overEvery=zC,T.overSome=YC,T.partial=au,T.partialRight=Zp,T.partition=Pw,T.pick=J1,T.pickBy=uh,T.property=gh,T.propertyOf=KC,T.pull=OT,T.pullAll=Bp,T.pullAllBy=PT,T.pullAllWith=DT,T.pullAt=IT,T.range=JC,T.rangeRight=QC,T.rearg=Vw,T.reject=Fw,T.remove=FT,T.rest=zw,T.reverse=tu,T.sampleSize=Lw,T.set=Z1,T.setWith=X1,T.shuffle=Nw,T.slice=MT,T.sortBy=qw,T.sortedUniq=BT,T.sortedUniqBy=WT,T.split=EC,T.spread=Yw,T.tail=UT,T.take=HT,T.takeRight=GT,T.takeRightWhile=VT,T.takeWhile=zT,T.tap=uw,T.throttle=Kw,T.thru=Ns,T.toArray=nh,T.toPairs=ch,T.toPairsIn=lh,T.toPath=rA,T.toPlainObject=sh,T.transform=eC,T.unary=Jw,T.union=YT,T.unionBy=KT,T.unionWith=JT,T.uniq=QT,T.uniqBy=ZT,T.uniqWith=XT,T.unset=tC,T.unzip=ru,T.unzipWith=Wp,T.update=rC,T.updateWith=nC,T.values=Ln,T.valuesIn=aC,T.without=ew,T.words=ph,T.wrap=Qw,T.xor=tw,T.xorBy=rw,T.xorWith=nw,T.zip=aw,T.zipObject=sw,T.zipObjectDeep=ow,T.zipWith=iw,T.entries=ch,T.entriesIn=lh,T.extend=oh,T.extendWith=Us,du(T,T),T.add=aA,T.attempt=hh,T.camelCase=uC,T.capitalize=fh,T.ceil=sA,T.clamp=sC,T.clone=Xw,T.cloneDeep=t1,T.cloneDeepWith=r1,T.cloneWith=e1,T.conformsTo=n1,T.deburr=dh,T.defaultTo=$C,T.divide=oA,T.endsWith=cC,T.eq=nr,T.escape=lC,T.escapeRegExp=fC,T.every=mw,T.find=bw,T.findIndex=$p,T.findKey=F1,T.findLast=Sw,T.findLastIndex=kp,T.findLastKey=M1,T.floor=iA,T.forEach=Hp,T.forEachRight=Gp,T.forIn=L1,T.forInRight=N1,T.forOwn=$1,T.forOwnRight=k1,T.get=iu,T.gt=a1,T.gte=s1,T.has=B1,T.hasIn=uu,T.head=jp,T.identity=Rt,T.includes=Aw,T.indexOf=ST,T.inRange=oC,T.invoke=H1,T.isArguments=dn,T.isArray=ce,T.isArrayBuffer=o1,T.isArrayLike=At,T.isArrayLikeObject=Ke,T.isBoolean=i1,T.isBuffer=Br,T.isDate=u1,T.isElement=c1,T.isEmpty=l1,T.isEqual=f1,T.isEqualWith=d1,T.isError=su,T.isFinite=p1,T.isFunction=Tr,T.isInteger=Xp,T.isLength=Bs,T.isMap=eh,T.isMatch=h1,T.isMatchWith=g1,T.isNaN=v1,T.isNative=y1,T.isNil=_1,T.isNull=m1,T.isNumber=th,T.isObject=Ge,T.isObjectLike=Ye,T.isPlainObject=pa,T.isRegExp=ou,T.isSafeInteger=b1,T.isSet=rh,T.isString=Ws,T.isSymbol=Lt,T.isTypedArray=Mn,T.isUndefined=S1,T.isWeakMap=E1,T.isWeakSet=T1,T.join=AT,T.kebabCase=dC,T.last=Vt,T.lastIndexOf=xT,T.lowerCase=pC,T.lowerFirst=hC,T.lt=w1,T.lte=C1,T.max=uA,T.maxBy=cA,T.mean=lA,T.meanBy=fA,T.min=dA,T.minBy=pA,T.stubArray=hu,T.stubFalse=gu,T.stubObject=ZC,T.stubString=XC,T.stubTrue=eA,T.multiply=hA,T.nth=RT,T.noConflict=HC,T.noop=pu,T.now=ks,T.pad=gC,T.padEnd=vC,T.padStart=yC,T.parseInt=mC,T.random=iC,T.reduce=Dw,T.reduceRight=Iw,T.repeat=_C,T.replace=bC,T.result=Q1,T.round=gA,T.runInContext=D,T.sample=Mw,T.size=$w,T.snakeCase=SC,T.some=kw,T.sortedIndex=LT,T.sortedIndexBy=NT,T.sortedIndexOf=$T,T.sortedLastIndex=kT,T.sortedLastIndexBy=qT,T.sortedLastIndexOf=jT,T.startCase=TC,T.startsWith=wC,T.subtract=vA,T.sum=yA,T.sumBy=mA,T.template=CC,T.times=tA,T.toFinite=wr,T.toInteger=he,T.toLength=ah,T.toLower=AC,T.toNumber=zt,T.toSafeInteger=A1,T.toString=Oe,T.toUpper=xC,T.trim=RC,T.trimEnd=OC,T.trimStart=PC,T.truncate=DC,T.unescape=IC,T.uniqueId=nA,T.upperCase=FC,T.upperFirst=cu,T.each=Hp,T.eachRight=Gp,T.first=jp,du(T,(function(){var n={};return sr(T,function(o,c){Me.call(T.prototype,c)||(n[c]=o)}),n})(),{chain:!1}),T.VERSION=a,Bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){T[n].placeholder=T}),Bt(["drop","take"],function(n,o){Te.prototype[n]=function(c){c=c===r?1:at(he(c),0);var p=this.__filtered__&&!o?new Te(this):this.clone();return p.__filtered__?p.__takeCount__=gt(c,p.__takeCount__):p.__views__.push({size:gt(c,V),type:n+(p.__dir__<0?"Right":"")}),p},Te.prototype[n+"Right"]=function(c){return this.reverse()[n](c).reverse()}}),Bt(["filter","map","takeWhile"],function(n,o){var c=o+1,p=c==Re||c==Ve;Te.prototype[n]=function(y){var w=this.clone();return w.__iteratees__.push({iteratee:ee(y,3),type:c}),w.__filtered__=w.__filtered__||p,w}}),Bt(["head","last"],function(n,o){var c="take"+(o?"Right":"");Te.prototype[n]=function(){return this[c](1).value()[0]}}),Bt(["initial","tail"],function(n,o){var c="drop"+(o?"":"Right");Te.prototype[n]=function(){return this.__filtered__?new Te(this):this[c](1)}}),Te.prototype.compact=function(){return this.filter(Rt)},Te.prototype.find=function(n){return this.filter(n).head()},Te.prototype.findLast=function(n){return this.reverse().find(n)},Te.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new Te(this):this.map(function(c){return ia(c,n,o)})}),Te.prototype.reject=function(n){return this.filter(js(ee(n)))},Te.prototype.slice=function(n,o){n=he(n);var c=this;return c.__filtered__&&(n>0||o<0)?new Te(c):(n<0?c=c.takeRight(-n):n&&(c=c.drop(n)),o!==r&&(o=he(o),c=o<0?c.dropRight(-o):c.take(o-n)),c)},Te.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Te.prototype.toArray=function(){return this.take(V)},sr(Te.prototype,function(n,o){var c=/^(?:filter|find|map|reject)|While$/.test(o),p=/^(?:head|last)$/.test(o),y=T[p?"take"+(o=="last"?"Right":""):o],w=p||/^find/.test(o);y&&(T.prototype[o]=function(){var x=this.__wrapped__,P=p?[1]:arguments,F=x instanceof Te,$=P[0],k=F||ce(x),B=function(Ee){var we=y.apply(T,Mr([Ee],P));return p&&z?we[0]:we};k&&c&&typeof $=="function"&&$.length!=1&&(F=k=!1);var z=this.__chain__,X=!!this.__actions__.length,re=w&&!z,ve=F&&!X;if(!w&&k){x=ve?x:new Te(this);var ne=n.apply(x,P);return ne.__actions__.push({func:Ns,args:[B],thisArg:r}),new Ut(ne,z)}return re&&ve?n.apply(this,P):(ne=this.thru(B),re?p?ne.value()[0]:ne.value():ne)})}),Bt(["pop","push","shift","sort","splice","unshift"],function(n){var o=us[n],c=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",p=/^(?:pop|shift)$/.test(n);T.prototype[n]=function(){var y=arguments;if(p&&!this.__chain__){var w=this.value();return o.apply(ce(w)?w:[],y)}return this[c](function(x){return o.apply(ce(x)?x:[],y)})}}),sr(Te.prototype,function(n,o){var c=T[o];if(c){var p=c.name+"";Me.call(On,p)||(On[p]=[]),On[p].push({name:o,func:c})}}),On[Os(r,E).name]=[{name:"wrapper",func:r}],Te.prototype.clone=I0,Te.prototype.reverse=F0,Te.prototype.value=M0,T.prototype.at=cw,T.prototype.chain=lw,T.prototype.commit=fw,T.prototype.next=dw,T.prototype.plant=hw,T.prototype.reverse=gw,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=vw,T.prototype.first=T.prototype.head,ea&&(T.prototype[ea]=pw),T}),An=f0();nn?((nn.exports=An)._=An,fi._=An):ft._=An}).call(jx)})(Pa,Pa.exports)),Pa.exports}var ie=Bx();const Wx=sf(ie),Za=2e3,uf={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1,restrictedByDefault:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Gr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{i18n:{current:""},templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}},tasks:[]},Zy="4DWS_PREFS",Xy=e=>`APP_STATE_${e}`,em=()=>{var e,t;return((t=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:t.getBaseID())||""};function tm(e){try{const t=em(),r=JSON.stringify(e);localStorage.setItem(Xy(t),r)}catch(t){console.error(t)}}function rm(e){try{const t=JSON.stringify(e);localStorage.setItem(Zy,t)}catch(t){console.error(t)}}function cf(){try{const e=localStorage.getItem(Zy);return{...e?JSON.parse(e):{},"features.experimental.i18n":!0}}catch(e){console.error(e)}}function _n(){const e=em(),t=localStorage.getItem(Xy(e));if(t){const r=JSON.parse(t);return r.tabs=r.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),r}return uf}function xo(e){const{name:t,type:r,path:a}=e,s=a.split(".").at(-1);switch(r){case b.FileFolderType.WEBFORM:case b.FileFolderType.ROLES:case b.FileFolderType.HTTP_HANDLERS:case b.FileFolderType.SETTINGS:case b.FileFolderType.MODEL:return t;case b.FileFolderType.METHOD:case b.FileFolderType.CLASS:default:return s?`${t}.${s}`:t}}const nm=e=>{if(!e)return[];const t=new Map;return e.dataClasses.forEach(r=>{var i,u;const a=r.extraProperties||{},s={id:r.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((u=a.position)==null?void 0:u.y)||0},dragHandle:".custom-drag-handle",data:r};t.set(r.name,s)}),Array.from(t.values())};function am(e){return e?["json","4dmodel","webform","mform","qodoc"].includes(e.toLowerCase()):!1}const Gn=(e,t,r="")=>t?e.type==="currentState"&&e.value===t?{...e,value:r}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(a=>Gn(a,t,r))}:e:e;function sm(e,t){const{id:r,label:a}=t;return{...e,components:Object.entries(e.components||{}).reduce((s,[i,u])=>({...s,[i]:{...u,custom:Object.entries(u.custom).reduce((l,[f,d])=>f===`states:${r}`?l:{...l,[f]:d},{}),props:Object.entries(u.props).reduce((l,[f,d])=>{let h=d;return f==="events"&&(h=h.map(g=>{var _,m;return g.type==="simple-action"?{...g,state:{...g.state,states:(m=(_=g.state)==null?void 0:_.states)==null?void 0:m.filter(C=>C!==r)}}:g})),{...l,[f]:h}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(s=>(s==null?void 0:s.id)!==r).map(s=>s.conditions?{...s,conditions:Gn(s.conditions,a)}:s)}}}const Ux=(e,t)=>ie.isEqual(e,t),Hx=e=>e.type===b.FileFolderType.WEBFORM||e.ext==="WebForm",Hr=e=>{const t=new URL(window.location.href),r=t.searchParams;if(Hx(e)){const a=r.get("page");r.set("page",e.name),r.delete("path"),a!==e.name&&r.delete("editor")}else{const a=r.get("path");r.set("path",e.path),r.delete("page"),a!==e.path&&r.delete("editor")}t.search=r.toString(),window.history.replaceState(null,"",t.href)},to=()=>{const e=new URL(window.location.href),t=e.searchParams;t.delete("path"),t.delete("page"),t.delete("editor"),e.search=t.toString(),window.history.replaceState(null,"",e.href)},om=()=>{const t=new URL(window.location.href).searchParams;return{page:t.get("page"),path:t.get("path"),editor:t.get("editor")}};var ju,Zh;function Gx(){if(Zh)return ju;Zh=1;function e(){this.__data__=[],this.size=0}return ju=e,ju}var Bu,Xh;function im(){if(Xh)return Bu;Xh=1;function e(t,r){return t===r||t!==t&&r!==r}return Bu=e,Bu}var Wu,eg;function Ro(){if(eg)return Wu;eg=1;var e=im();function t(r,a){for(var s=r.length;s--;)if(e(r[s][0],a))return s;return-1}return Wu=t,Wu}var Uu,tg;function Vx(){if(tg)return Uu;tg=1;var e=Ro(),t=Array.prototype,r=t.splice;function a(s){var i=this.__data__,u=e(i,s);if(u<0)return!1;var l=i.length-1;return u==l?i.pop():r.call(i,u,1),--this.size,!0}return Uu=a,Uu}var Hu,rg;function zx(){if(rg)return Hu;rg=1;var e=Ro();function t(r){var a=this.__data__,s=e(a,r);return s<0?void 0:a[s][1]}return Hu=t,Hu}var Gu,ng;function Yx(){if(ng)return Gu;ng=1;var e=Ro();function t(r){return e(this.__data__,r)>-1}return Gu=t,Gu}var Vu,ag;function Kx(){if(ag)return Vu;ag=1;var e=Ro();function t(r,a){var s=this.__data__,i=e(s,r);return i<0?(++this.size,s.push([r,a])):s[i][1]=a,this}return Vu=t,Vu}var zu,sg;function Oo(){if(sg)return zu;sg=1;var e=Gx(),t=Vx(),r=zx(),a=Yx(),s=Kx();function i(u){var l=-1,f=u==null?0:u.length;for(this.clear();++l<f;){var d=u[l];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=a,i.prototype.set=s,zu=i,zu}var Yu,og;function Jx(){if(og)return Yu;og=1;var e=Oo();function t(){this.__data__=new e,this.size=0}return Yu=t,Yu}var Ku,ig;function Qx(){if(ig)return Ku;ig=1;function e(t){var r=this.__data__,a=r.delete(t);return this.size=r.size,a}return Ku=e,Ku}var Ju,ug;function Zx(){if(ug)return Ju;ug=1;function e(t){return this.__data__.get(t)}return Ju=e,Ju}var Qu,cg;function Xx(){if(cg)return Qu;cg=1;function e(t){return this.__data__.has(t)}return Qu=e,Qu}var Zu,lg;function um(){if(lg)return Zu;lg=1;var e=Ja(),t=Ka(),r="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",i="[object Proxy]";function u(l){if(!t(l))return!1;var f=e(l);return f==a||f==s||f==r||f==i}return Zu=u,Zu}var Xu,fg;function eR(){if(fg)return Xu;fg=1;var e=fr(),t=e["__core-js_shared__"];return Xu=t,Xu}var ec,dg;function tR(){if(dg)return ec;dg=1;var e=eR(),t=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function r(a){return!!t&&t in a}return ec=r,ec}var tc,pg;function cm(){if(pg)return tc;pg=1;var e=Function.prototype,t=e.toString;function r(a){if(a!=null){try{return t.call(a)}catch{}try{return a+""}catch{}}return""}return tc=r,tc}var rc,hg;function rR(){if(hg)return rc;hg=1;var e=um(),t=tR(),r=Ka(),a=cm(),s=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,f=u.toString,d=l.hasOwnProperty,h=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(_){if(!r(_)||t(_))return!1;var m=e(_)?h:i;return m.test(a(_))}return rc=g,rc}var nc,gg;function nR(){if(gg)return nc;gg=1;function e(t,r){return t==null?void 0:t[r]}return nc=e,nc}var ac,vg;function Yn(){if(vg)return ac;vg=1;var e=rR(),t=nR();function r(a,s){var i=t(a,s);return e(i)?i:void 0}return ac=r,ac}var sc,yg;function lf(){if(yg)return sc;yg=1;var e=Yn(),t=fr(),r=e(t,"Map");return sc=r,sc}var oc,mg;function Po(){if(mg)return oc;mg=1;var e=Yn(),t=e(Object,"create");return oc=t,oc}var ic,_g;function aR(){if(_g)return ic;_g=1;var e=Po();function t(){this.__data__=e?e(null):{},this.size=0}return ic=t,ic}var uc,bg;function sR(){if(bg)return uc;bg=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return uc=e,uc}var cc,Sg;function oR(){if(Sg)return cc;Sg=1;var e=Po(),t="__lodash_hash_undefined__",r=Object.prototype,a=r.hasOwnProperty;function s(i){var u=this.__data__;if(e){var l=u[i];return l===t?void 0:l}return a.call(u,i)?u[i]:void 0}return cc=s,cc}var lc,Eg;function iR(){if(Eg)return lc;Eg=1;var e=Po(),t=Object.prototype,r=t.hasOwnProperty;function a(s){var i=this.__data__;return e?i[s]!==void 0:r.call(i,s)}return lc=a,lc}var fc,Tg;function uR(){if(Tg)return fc;Tg=1;var e=Po(),t="__lodash_hash_undefined__";function r(a,s){var i=this.__data__;return this.size+=this.has(a)?0:1,i[a]=e&&s===void 0?t:s,this}return fc=r,fc}var dc,wg;function cR(){if(wg)return dc;wg=1;var e=aR(),t=sR(),r=oR(),a=iR(),s=uR();function i(u){var l=-1,f=u==null?0:u.length;for(this.clear();++l<f;){var d=u[l];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=a,i.prototype.set=s,dc=i,dc}var pc,Cg;function lR(){if(Cg)return pc;Cg=1;var e=cR(),t=Oo(),r=lf();function a(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return pc=a,pc}var hc,Ag;function fR(){if(Ag)return hc;Ag=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return hc=e,hc}var gc,xg;function Do(){if(xg)return gc;xg=1;var e=fR();function t(r,a){var s=r.__data__;return e(a)?s[typeof a=="string"?"string":"hash"]:s.map}return gc=t,gc}var vc,Rg;function dR(){if(Rg)return vc;Rg=1;var e=Do();function t(r){var a=e(this,r).delete(r);return this.size-=a?1:0,a}return vc=t,vc}var yc,Og;function pR(){if(Og)return yc;Og=1;var e=Do();function t(r){return e(this,r).get(r)}return yc=t,yc}var mc,Pg;function hR(){if(Pg)return mc;Pg=1;var e=Do();function t(r){return e(this,r).has(r)}return mc=t,mc}var _c,Dg;function gR(){if(Dg)return _c;Dg=1;var e=Do();function t(r,a){var s=e(this,r),i=s.size;return s.set(r,a),this.size+=s.size==i?0:1,this}return _c=t,_c}var bc,Ig;function lm(){if(Ig)return bc;Ig=1;var e=lR(),t=dR(),r=pR(),a=hR(),s=gR();function i(u){var l=-1,f=u==null?0:u.length;for(this.clear();++l<f;){var d=u[l];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=a,i.prototype.set=s,bc=i,bc}var Sc,Fg;function vR(){if(Fg)return Sc;Fg=1;var e=Oo(),t=lf(),r=lm(),a=200;function s(i,u){var l=this.__data__;if(l instanceof e){var f=l.__data__;if(!t||f.length<a-1)return f.push([i,u]),this.size=++l.size,this;l=this.__data__=new r(f)}return l.set(i,u),this.size=l.size,this}return Sc=s,Sc}var Ec,Mg;function yR(){if(Mg)return Ec;Mg=1;var e=Oo(),t=Jx(),r=Qx(),a=Zx(),s=Xx(),i=vR();function u(l){var f=this.__data__=new e(l);this.size=f.size}return u.prototype.clear=t,u.prototype.delete=r,u.prototype.get=a,u.prototype.has=s,u.prototype.set=i,Ec=u,Ec}var Tc,Lg;function mR(){if(Lg)return Tc;Lg=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Tc=t,Tc}var wc,Ng;function _R(){if(Ng)return wc;Ng=1;function e(t){return this.__data__.has(t)}return wc=e,wc}var Cc,$g;function bR(){if($g)return Cc;$g=1;var e=lm(),t=mR(),r=_R();function a(s){var i=-1,u=s==null?0:s.length;for(this.__data__=new e;++i<u;)this.add(s[i])}return a.prototype.add=a.prototype.push=t,a.prototype.has=r,Cc=a,Cc}var Ac,kg;function SR(){if(kg)return Ac;kg=1;function e(t,r){for(var a=-1,s=t==null?0:t.length;++a<s;)if(r(t[a],a,t))return!0;return!1}return Ac=e,Ac}var xc,qg;function ER(){if(qg)return xc;qg=1;function e(t,r){return t.has(r)}return xc=e,xc}var Rc,jg;function fm(){if(jg)return Rc;jg=1;var e=bR(),t=SR(),r=ER(),a=1,s=2;function i(u,l,f,d,h,g){var _=f&a,m=u.length,C=l.length;if(m!=C&&!(_&&C>m))return!1;var v=g.get(u),S=g.get(l);if(v&&S)return v==l&&S==u;var E=-1,A=!0,O=f&s?new e:void 0;for(g.set(u,l),g.set(l,u);++E<m;){var I=u[E],R=l[E];if(d)var j=_?d(R,I,E,l,u,g):d(I,R,E,u,l,g);if(j!==void 0){if(j)continue;A=!1;break}if(O){if(!t(l,function(W,Z){if(!r(O,Z)&&(I===W||h(I,W,f,d,g)))return O.push(Z)})){A=!1;break}}else if(!(I===R||h(I,R,f,d,g))){A=!1;break}}return g.delete(u),g.delete(l),A}return Rc=i,Rc}var Oc,Bg;function TR(){if(Bg)return Oc;Bg=1;var e=fr(),t=e.Uint8Array;return Oc=t,Oc}var Pc,Wg;function wR(){if(Wg)return Pc;Wg=1;function e(t){var r=-1,a=Array(t.size);return t.forEach(function(s,i){a[++r]=[i,s]}),a}return Pc=e,Pc}var Dc,Ug;function CR(){if(Ug)return Dc;Ug=1;function e(t){var r=-1,a=Array(t.size);return t.forEach(function(s){a[++r]=s}),a}return Dc=e,Dc}var Ic,Hg;function AR(){if(Hg)return Ic;Hg=1;var e=of(),t=TR(),r=im(),a=fm(),s=wR(),i=CR(),u=1,l=2,f="[object Boolean]",d="[object Date]",h="[object Error]",g="[object Map]",_="[object Number]",m="[object RegExp]",C="[object Set]",v="[object String]",S="[object Symbol]",E="[object ArrayBuffer]",A="[object DataView]",O=e?e.prototype:void 0,I=O?O.valueOf:void 0;function R(j,W,Z,te,be,Q,ye){switch(Z){case A:if(j.byteLength!=W.byteLength||j.byteOffset!=W.byteOffset)return!1;j=j.buffer,W=W.buffer;case E:return!(j.byteLength!=W.byteLength||!Q(new t(j),new t(W)));case f:case d:case _:return r(+j,+W);case h:return j.name==W.name&&j.message==W.message;case m:case v:return j==W+"";case g:var U=s;case C:var Re=te&u;if(U||(U=i),j.size!=W.size&&!Re)return!1;var et=ye.get(j);if(et)return et==W;te|=l,ye.set(j,W);var Ve=a(U(j),U(W),te,be,Q,ye);return ye.delete(j),Ve;case S:if(I)return I.call(j)==I.call(W)}return!1}return Ic=R,Ic}var Fc,Gg;function xR(){if(Gg)return Fc;Gg=1;function e(t,r){for(var a=-1,s=r.length,i=t.length;++a<s;)t[i+a]=r[a];return t}return Fc=e,Fc}var Mc,Vg;function ff(){if(Vg)return Mc;Vg=1;var e=Array.isArray;return Mc=e,Mc}var Lc,zg;function RR(){if(zg)return Lc;zg=1;var e=xR(),t=ff();function r(a,s,i){var u=s(a);return t(a)?u:e(u,i(a))}return Lc=r,Lc}var Nc,Yg;function OR(){if(Yg)return Nc;Yg=1;function e(t,r){for(var a=-1,s=t==null?0:t.length,i=0,u=[];++a<s;){var l=t[a];r(l,a,t)&&(u[i++]=l)}return u}return Nc=e,Nc}var $c,Kg;function PR(){if(Kg)return $c;Kg=1;function e(){return[]}return $c=e,$c}var kc,Jg;function DR(){if(Jg)return kc;Jg=1;var e=OR(),t=PR(),r=Object.prototype,a=r.propertyIsEnumerable,s=Object.getOwnPropertySymbols,i=s?function(u){return u==null?[]:(u=Object(u),e(s(u),function(l){return a.call(u,l)}))}:t;return kc=i,kc}var qc,Qg;function IR(){if(Qg)return qc;Qg=1;function e(t,r){for(var a=-1,s=Array(t);++a<t;)s[a]=r(a);return s}return qc=e,qc}var jc,Zg;function FR(){if(Zg)return jc;Zg=1;var e=Ja(),t=Qa(),r="[object Arguments]";function a(s){return t(s)&&e(s)==r}return jc=a,jc}var Bc,Xg;function MR(){if(Xg)return Bc;Xg=1;var e=FR(),t=Qa(),r=Object.prototype,a=r.hasOwnProperty,s=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(u){return t(u)&&a.call(u,"callee")&&!s.call(u,"callee")};return Bc=i,Bc}var Da={exports:{}},Wc,ev;function LR(){if(ev)return Wc;ev=1;function e(){return!1}return Wc=e,Wc}Da.exports;var tv;function dm(){return tv||(tv=1,(function(e,t){var r=fr(),a=LR(),s=t&&!t.nodeType&&t,i=s&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===s,l=u?r.Buffer:void 0,f=l?l.isBuffer:void 0,d=f||a;e.exports=d})(Da,Da.exports)),Da.exports}var Uc,rv;function NR(){if(rv)return Uc;rv=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(a,s){var i=typeof a;return s=s??e,!!s&&(i=="number"||i!="symbol"&&t.test(a))&&a>-1&&a%1==0&&a<s}return Uc=r,Uc}var Hc,nv;function pm(){if(nv)return Hc;nv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Hc=t,Hc}var Gc,av;function $R(){if(av)return Gc;av=1;var e=Ja(),t=pm(),r=Qa(),a="[object Arguments]",s="[object Array]",i="[object Boolean]",u="[object Date]",l="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",g="[object Object]",_="[object RegExp]",m="[object Set]",C="[object String]",v="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",O="[object Float64Array]",I="[object Int8Array]",R="[object Int16Array]",j="[object Int32Array]",W="[object Uint8Array]",Z="[object Uint8ClampedArray]",te="[object Uint16Array]",be="[object Uint32Array]",Q={};Q[A]=Q[O]=Q[I]=Q[R]=Q[j]=Q[W]=Q[Z]=Q[te]=Q[be]=!0,Q[a]=Q[s]=Q[S]=Q[i]=Q[E]=Q[u]=Q[l]=Q[f]=Q[d]=Q[h]=Q[g]=Q[_]=Q[m]=Q[C]=Q[v]=!1;function ye(U){return r(U)&&t(U.length)&&!!Q[e(U)]}return Gc=ye,Gc}var Vc,sv;function kR(){if(sv)return Vc;sv=1;function e(t){return function(r){return t(r)}}return Vc=e,Vc}var Ia={exports:{}};Ia.exports;var ov;function qR(){return ov||(ov=1,(function(e,t){var r=Ky(),a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,u=i&&r.process,l=(function(){try{var f=s&&s.require&&s.require("util").types;return f||u&&u.binding&&u.binding("util")}catch{}})();e.exports=l})(Ia,Ia.exports)),Ia.exports}var zc,iv;function hm(){if(iv)return zc;iv=1;var e=$R(),t=kR(),r=qR(),a=r&&r.isTypedArray,s=a?t(a):e;return zc=s,zc}var Yc,uv;function jR(){if(uv)return Yc;uv=1;var e=IR(),t=MR(),r=ff(),a=dm(),s=NR(),i=hm(),u=Object.prototype,l=u.hasOwnProperty;function f(d,h){var g=r(d),_=!g&&t(d),m=!g&&!_&&a(d),C=!g&&!_&&!m&&i(d),v=g||_||m||C,S=v?e(d.length,String):[],E=S.length;for(var A in d)(h||l.call(d,A))&&!(v&&(A=="length"||m&&(A=="offset"||A=="parent")||C&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||s(A,E)))&&S.push(A);return S}return Yc=f,Yc}var Kc,cv;function BR(){if(cv)return Kc;cv=1;var e=Object.prototype;function t(r){var a=r&&r.constructor,s=typeof a=="function"&&a.prototype||e;return r===s}return Kc=t,Kc}var Jc,lv;function WR(){if(lv)return Jc;lv=1;function e(t,r){return function(a){return t(r(a))}}return Jc=e,Jc}var Qc,fv;function UR(){if(fv)return Qc;fv=1;var e=WR(),t=e(Object.keys,Object);return Qc=t,Qc}var Zc,dv;function HR(){if(dv)return Zc;dv=1;var e=BR(),t=UR(),r=Object.prototype,a=r.hasOwnProperty;function s(i){if(!e(i))return t(i);var u=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&u.push(l);return u}return Zc=s,Zc}var Xc,pv;function GR(){if(pv)return Xc;pv=1;var e=um(),t=pm();function r(a){return a!=null&&t(a.length)&&!e(a)}return Xc=r,Xc}var el,hv;function VR(){if(hv)return el;hv=1;var e=jR(),t=HR(),r=GR();function a(s){return r(s)?e(s):t(s)}return el=a,el}var tl,gv;function zR(){if(gv)return tl;gv=1;var e=RR(),t=DR(),r=VR();function a(s){return e(s,r,t)}return tl=a,tl}var rl,vv;function YR(){if(vv)return rl;vv=1;var e=zR(),t=1,r=Object.prototype,a=r.hasOwnProperty;function s(i,u,l,f,d,h){var g=l&t,_=e(i),m=_.length,C=e(u),v=C.length;if(m!=v&&!g)return!1;for(var S=m;S--;){var E=_[S];if(!(g?E in u:a.call(u,E)))return!1}var A=h.get(i),O=h.get(u);if(A&&O)return A==u&&O==i;var I=!0;h.set(i,u),h.set(u,i);for(var R=g;++S<m;){E=_[S];var j=i[E],W=u[E];if(f)var Z=g?f(W,j,E,u,i,h):f(j,W,E,i,u,h);if(!(Z===void 0?j===W||d(j,W,l,f,h):Z)){I=!1;break}R||(R=E=="constructor")}if(I&&!R){var te=i.constructor,be=u.constructor;te!=be&&"constructor"in i&&"constructor"in u&&!(typeof te=="function"&&te instanceof te&&typeof be=="function"&&be instanceof be)&&(I=!1)}return h.delete(i),h.delete(u),I}return rl=s,rl}var nl,yv;function KR(){if(yv)return nl;yv=1;var e=Yn(),t=fr(),r=e(t,"DataView");return nl=r,nl}var al,mv;function JR(){if(mv)return al;mv=1;var e=Yn(),t=fr(),r=e(t,"Promise");return al=r,al}var sl,_v;function QR(){if(_v)return sl;_v=1;var e=Yn(),t=fr(),r=e(t,"Set");return sl=r,sl}var ol,bv;function ZR(){if(bv)return ol;bv=1;var e=Yn(),t=fr(),r=e(t,"WeakMap");return ol=r,ol}var il,Sv;function XR(){if(Sv)return il;Sv=1;var e=KR(),t=lf(),r=JR(),a=QR(),s=ZR(),i=Ja(),u=cm(),l="[object Map]",f="[object Object]",d="[object Promise]",h="[object Set]",g="[object WeakMap]",_="[object DataView]",m=u(e),C=u(t),v=u(r),S=u(a),E=u(s),A=i;return(e&&A(new e(new ArrayBuffer(1)))!=_||t&&A(new t)!=l||r&&A(r.resolve())!=d||a&&A(new a)!=h||s&&A(new s)!=g)&&(A=function(O){var I=i(O),R=I==f?O.constructor:void 0,j=R?u(R):"";if(j)switch(j){case m:return _;case C:return l;case v:return d;case S:return h;case E:return g}return I}),il=A,il}var ul,Ev;function eO(){if(Ev)return ul;Ev=1;var e=yR(),t=fm(),r=AR(),a=YR(),s=XR(),i=ff(),u=dm(),l=hm(),f=1,d="[object Arguments]",h="[object Array]",g="[object Object]",_=Object.prototype,m=_.hasOwnProperty;function C(v,S,E,A,O,I){var R=i(v),j=i(S),W=R?h:s(v),Z=j?h:s(S);W=W==d?g:W,Z=Z==d?g:Z;var te=W==g,be=Z==g,Q=W==Z;if(Q&&u(v)){if(!u(S))return!1;R=!0,te=!1}if(Q&&!te)return I||(I=new e),R||l(v)?t(v,S,E,A,O,I):r(v,S,W,E,A,O,I);if(!(E&f)){var ye=te&&m.call(v,"__wrapped__"),U=be&&m.call(S,"__wrapped__");if(ye||U){var Re=ye?v.value():v,et=U?S.value():S;return I||(I=new e),O(Re,et,E,A,I)}}return Q?(I||(I=new e),a(v,S,E,A,O,I)):!1}return ul=C,ul}var cl,Tv;function tO(){if(Tv)return cl;Tv=1;var e=eO(),t=Qa();function r(a,s,i,u,l){return a===s?!0:a==null||s==null||!t(a)&&!t(s)?a!==a&&s!==s:e(a,s,i,u,r,l)}return cl=r,cl}var ll,wv;function rO(){if(wv)return ll;wv=1;var e=tO();function t(r,a,s){s=typeof s=="function"?s:void 0;var i=s?s(r,a):void 0;return i===void 0?e(r,a,void 0,s):!!i}return ll=t,ll}rO();typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@ws-ui/craftjs-utils"]="0.2.3");const nO="ROOT";RA(),xA();var Cv;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(Cv||(Cv={}));function df(e){return`Debugger/${e}`}function gm(e,t){var a;const r=(a=t.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${r}`}const vm=(e,t,r)=>{const a=e instanceof RegExp?Av(e,r):e,s=t instanceof RegExp?Av(t,r):t,i=a!==null&&s!=null&&aO(a,s,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+a.length,i[1]),post:r.slice(i[1]+s.length)}},Av=(e,t)=>{const r=t.match(e);return r?r[0]:null},aO=(e,t,r)=>{let a,s,i,u,l,f=r.indexOf(e),d=r.indexOf(t,f+1),h=f;if(f>=0&&d>0){if(e===t)return[f,d];for(a=[],i=r.length;h>=0&&!l;){if(h===f)a.push(h),f=r.indexOf(e,h+1);else if(a.length===1){const g=a.pop();g!==void 0&&(l=[g,d])}else s=a.pop(),s!==void 0&&s<i&&(i=s,u=d),d=r.indexOf(t,h+1);h=f<d&&f>=0?f:d}a.length&&u!==void 0&&(l=[i,u])}return l},ym="\0SLASH"+Math.random()+"\0",mm="\0OPEN"+Math.random()+"\0",pf="\0CLOSE"+Math.random()+"\0",_m="\0COMMA"+Math.random()+"\0",bm="\0PERIOD"+Math.random()+"\0",sO=new RegExp(ym,"g"),oO=new RegExp(mm,"g"),iO=new RegExp(pf,"g"),uO=new RegExp(_m,"g"),cO=new RegExp(bm,"g"),lO=/\\\\/g,fO=/\\{/g,dO=/\\}/g,pO=/\\,/g,hO=/\\./g;function fl(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function gO(e){return e.replace(lO,ym).replace(fO,mm).replace(dO,pf).replace(pO,_m).replace(hO,bm)}function vO(e){return e.replace(sO,"\\").replace(oO,"{").replace(iO,"}").replace(uO,",").replace(cO,".")}function Sm(e){if(!e)return[""];const t=[],r=vm("{","}",e);if(!r)return e.split(",");const{pre:a,body:s,post:i}=r,u=a.split(",");u[u.length-1]+="{"+s+"}";const l=Sm(i);return i.length&&(u[u.length-1]+=l.shift(),u.push.apply(u,l)),t.push.apply(t,u),t}function yO(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Fa(gO(e),!0).map(vO)):[]}function mO(e){return"{"+e+"}"}function _O(e){return/^-?0\d/.test(e)}function bO(e,t){return e<=t}function SO(e,t){return e>=t}function Fa(e,t){const r=[],a=vm("{","}",e);if(!a)return[e];const s=a.pre,i=a.post.length?Fa(a.post,!1):[""];if(/\$$/.test(a.pre))for(let u=0;u<i.length;u++){const l=s+"{"+a.body+"}"+i[u];r.push(l)}else{const u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),f=u||l,d=a.body.indexOf(",")>=0;if(!f&&!d)return a.post.match(/,(?!,).*\}/)?(e=a.pre+"{"+a.body+pf+a.post,Fa(e)):[e];let h;if(f)h=a.body.split(/\.\./);else if(h=Sm(a.body),h.length===1&&h[0]!==void 0&&(h=Fa(h[0],!1).map(mO),h.length===1))return i.map(_=>a.pre+h[0]+_);let g;if(f&&h[0]!==void 0&&h[1]!==void 0){const _=fl(h[0]),m=fl(h[1]),C=Math.max(h[0].length,h[1].length);let v=h.length===3&&h[2]!==void 0?Math.abs(fl(h[2])):1,S=bO;m<_&&(v*=-1,S=SO);const A=h.some(_O);g=[];for(let O=_;S(O,m);O+=v){let I;if(l)I=String.fromCharCode(O),I==="\\"&&(I="");else if(I=String(O),A){const R=C-I.length;if(R>0){const j=new Array(R+1).join("0");O<0?I="-"+j+I.slice(1):I=j+I}}g.push(I)}}else{g=[];for(let _=0;_<h.length;_++)g.push.apply(g,Fa(h[_],!1))}for(let _=0;_<g.length;_++)for(let m=0;m<i.length;m++){const C=s+g[_]+i[m];(!t||f||C)&&r.push(C)}}return r}const EO=1024*64,mo=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>EO)throw new TypeError("pattern is too long")},TO={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ha=e=>e.replace(/[[\]\\-]/g,"\\$&"),wO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),xv=e=>e.join(""),CO=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const a=[],s=[];let i=r+1,u=!1,l=!1,f=!1,d=!1,h=r,g="";e:for(;i<e.length;){const v=e.charAt(i);if((v==="!"||v==="^")&&i===r+1){d=!0,i++;continue}if(v==="]"&&u&&!f){h=i+1;break}if(u=!0,v==="\\"&&!f){f=!0,i++;continue}if(v==="["&&!f){for(const[S,[E,A,O]]of Object.entries(TO))if(e.startsWith(S,i)){if(g)return["$.",!1,e.length-r,!0];i+=S.length,O?s.push(E):a.push(E),l=l||A;continue e}}if(f=!1,g){v>g?a.push(ha(g)+"-"+ha(v)):v===g&&a.push(ha(v)),g="",i++;continue}if(e.startsWith("-]",i+1)){a.push(ha(v+"-")),i+=2;continue}if(e.startsWith("-",i+1)){g=v,i+=2;continue}a.push(ha(v)),i++}if(h<i)return["",!1,0,!1];if(!a.length&&!s.length)return["$.",!1,e.length-r,!0];if(s.length===0&&a.length===1&&/^\\?.$/.test(a[0])&&!d){const v=a[0].length===2?a[0].slice(-1):a[0];return[wO(v),!1,h-r,!1]}const _="["+(d?"^":"")+xv(a)+"]",m="["+(d?"":"^")+xv(s)+"]";return[a.length&&s.length?"("+_+"|"+m+")":a.length?_:m,l,h-r,!0]},Ma=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),AO=new Set(["!","?","+","*","@"]),Rv=e=>AO.has(e),xO="(?!(?:^|/)\\.\\.?(?:$|/))",Vs="(?!\\.)",RO=new Set(["[","."]),OO=new Set(["..","."]),PO=new Set("().*{}+?[]^$\\!"),DO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hf="[^/]",Ov=hf+"*?",Pv=hf+"+?";var ot,lt,Ar,Ue,rt,Vr,gn,zr,ur,vn,Ya,mn,Em,tn,ro,Il,Tm;const Tt=class Tt{constructor(t,r,a={}){Ot(this,mn);st(this,"type");Ot(this,ot);Ot(this,lt);Ot(this,Ar,!1);Ot(this,Ue,[]);Ot(this,rt);Ot(this,Vr);Ot(this,gn);Ot(this,zr,!1);Ot(this,ur);Ot(this,vn);Ot(this,Ya,!1);this.type=t,t&&Qe(this,lt,!0),Qe(this,rt,r),Qe(this,ot,G(this,rt)?G(G(this,rt),ot):this),Qe(this,ur,G(this,ot)===this?a:G(G(this,ot),ur)),Qe(this,gn,G(this,ot)===this?[]:G(G(this,ot),gn)),t==="!"&&!G(G(this,ot),zr)&&G(this,gn).push(this),Qe(this,Vr,G(this,rt)?G(G(this,rt),Ue).length:0)}get hasMagic(){if(G(this,lt)!==void 0)return G(this,lt);for(const t of G(this,Ue))if(typeof t!="string"&&(t.type||t.hasMagic))return Qe(this,lt,!0);return G(this,lt)}toString(){return G(this,vn)!==void 0?G(this,vn):this.type?Qe(this,vn,this.type+"("+G(this,Ue).map(t=>String(t)).join("|")+")"):Qe(this,vn,G(this,Ue).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Tt&&G(r,rt)===this))throw new Error("invalid part: "+r);G(this,Ue).push(r)}}toJSON(){var r;const t=this.type===null?G(this,Ue).slice().map(a=>typeof a=="string"?a:a.toJSON()):[this.type,...G(this,Ue).map(a=>a.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===G(this,ot)||G(G(this,ot),zr)&&((r=G(this,rt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(G(this,ot)===this)return!0;if(!((r=G(this,rt))!=null&&r.isStart()))return!1;if(G(this,Vr)===0)return!0;const t=G(this,rt);for(let a=0;a<G(this,Vr);a++){const s=G(t,Ue)[a];if(!(s instanceof Tt&&s.type==="!"))return!1}return!0}isEnd(){var r,a,s;if(G(this,ot)===this||((r=G(this,rt))==null?void 0:r.type)==="!")return!0;if(!((a=G(this,rt))!=null&&a.isEnd()))return!1;if(!this.type)return(s=G(this,rt))==null?void 0:s.isEnd();const t=G(this,rt)?G(G(this,rt),Ue).length:0;return G(this,Vr)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Tt(this.type,t);for(const a of G(this,Ue))r.copyIn(a);return r}static fromGlob(t,r={}){var s;const a=new Tt(null,void 0,r);return Wr(s=Tt,tn,ro).call(s,t,a,0,r),a}toMMPattern(){if(this!==G(this,ot))return G(this,ot).toMMPattern();const t=this.toString(),[r,a,s,i]=this.toRegExpSource();if(!(s||G(this,lt)||G(this,ur).nocase&&!G(this,ur).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return a;const l=(G(this,ur).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${r}$`,l),{_src:r,_glob:t})}get options(){return G(this,ur)}toRegExpSource(t){var f;const r=t??!!G(this,ur).dot;if(G(this,ot)===this&&Wr(this,mn,Em).call(this),!this.type){const d=this.isStart()&&this.isEnd(),h=G(this,Ue).map(C=>{var O;const[v,S,E,A]=typeof C=="string"?Wr(O=Tt,tn,Tm).call(O,C,G(this,lt),d):C.toRegExpSource(t);return Qe(this,lt,G(this,lt)||E),Qe(this,Ar,G(this,Ar)||A),v}).join("");let g="";if(this.isStart()&&typeof G(this,Ue)[0]=="string"&&!(G(this,Ue).length===1&&OO.has(G(this,Ue)[0]))){const v=RO,S=r&&v.has(h.charAt(0))||h.startsWith("\\.")&&v.has(h.charAt(2))||h.startsWith("\\.\\.")&&v.has(h.charAt(4)),E=!r&&!t&&v.has(h.charAt(0));g=S?xO:E?Vs:""}let _="";return this.isEnd()&&G(G(this,ot),zr)&&((f=G(this,rt))==null?void 0:f.type)==="!"&&(_="(?:$|\\/)"),[g+h+_,Ma(h),Qe(this,lt,!!G(this,lt)),G(this,Ar)]}const a=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let i=Wr(this,mn,Il).call(this,r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const d=this.toString();return Qe(this,Ue,[d]),this.type=null,Qe(this,lt,void 0),[d,Ma(this.toString()),!1,!1]}let u=!a||t||r||!Vs?"":Wr(this,mn,Il).call(this,!0);u===i&&(u=""),u&&(i=`(?:${i})(?:${u})*?`);let l="";if(this.type==="!"&&G(this,Ya))l=(this.isStart()&&!r?Vs:"")+Pv;else{const d=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Vs:"")+Ov+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&u?")":this.type==="*"&&u?")?":`)${this.type}`;l=s+i+d}return[l,Ma(i),Qe(this,lt,!!G(this,lt)),G(this,Ar)]}};ot=new WeakMap,lt=new WeakMap,Ar=new WeakMap,Ue=new WeakMap,rt=new WeakMap,Vr=new WeakMap,gn=new WeakMap,zr=new WeakMap,ur=new WeakMap,vn=new WeakMap,Ya=new WeakMap,mn=new WeakSet,Em=function(){if(this!==G(this,ot))throw new Error("should only call on root");if(G(this,zr))return this;this.toString(),Qe(this,zr,!0);let t;for(;t=G(this,gn).pop();){if(t.type!=="!")continue;let r=t,a=G(r,rt);for(;a;){for(let s=G(r,Vr)+1;!a.type&&s<G(a,Ue).length;s++)for(const i of G(t,Ue)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(G(a,Ue)[s])}r=a,a=G(r,rt)}}return this},tn=new WeakSet,ro=function(t,r,a,s){var m,C;let i=!1,u=!1,l=-1,f=!1;if(r.type===null){let v=a,S="";for(;v<t.length;){const E=t.charAt(v++);if(i||E==="\\"){i=!i,S+=E;continue}if(u){v===l+1?(E==="^"||E==="!")&&(f=!0):E==="]"&&!(v===l+2&&f)&&(u=!1),S+=E;continue}else if(E==="["){u=!0,l=v,f=!1,S+=E;continue}if(!s.noext&&Rv(E)&&t.charAt(v)==="("){r.push(S),S="";const A=new Tt(E,r);v=Wr(m=Tt,tn,ro).call(m,t,A,v,s),r.push(A);continue}S+=E}return r.push(S),v}let d=a+1,h=new Tt(null,r);const g=[];let _="";for(;d<t.length;){const v=t.charAt(d++);if(i||v==="\\"){i=!i,_+=v;continue}if(u){d===l+1?(v==="^"||v==="!")&&(f=!0):v==="]"&&!(d===l+2&&f)&&(u=!1),_+=v;continue}else if(v==="["){u=!0,l=d,f=!1,_+=v;continue}if(Rv(v)&&t.charAt(d)==="("){h.push(_),_="";const S=new Tt(v,h);h.push(S),d=Wr(C=Tt,tn,ro).call(C,t,S,d,s);continue}if(v==="|"){h.push(_),_="",g.push(h),h=new Tt(null,r);continue}if(v===")")return _===""&&G(r,Ue).length===0&&Qe(r,Ya,!0),h.push(_),_="",r.push(...g,h),d;_+=v}return r.type=null,Qe(r,lt,void 0),Qe(r,Ue,[t.substring(a-1)]),d},Il=function(t){return G(this,Ue).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[a,s,i,u]=r.toRegExpSource(t);return Qe(this,Ar,G(this,Ar)||u),a}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Tm=function(t,r,a=!1){let s=!1,i="",u=!1;for(let l=0;l<t.length;l++){const f=t.charAt(l);if(s){s=!1,i+=(PO.has(f)?"\\":"")+f;continue}if(f==="\\"){l===t.length-1?i+="\\\\":s=!0;continue}if(f==="["){const[d,h,g,_]=CO(t,l);if(g){i+=d,u=u||h,l+=g-1,r=r||_;continue}}if(f==="*"){a&&t==="*"?i+=Pv:i+=Ov,r=!0;continue}if(f==="?"){i+=hf,r=!0;continue}i+=DO(f)}return[i,Ma(t),!!r,u]},Ot(Tt,tn);let _o=Tt;const IO=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),ht=(e,t,r={})=>(mo(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Io(t,r).match(e)),FO=/^\*+([^+@!?\*\[\(]*)$/,MO=e=>t=>!t.startsWith(".")&&t.endsWith(e),LO=e=>t=>t.endsWith(e),NO=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),$O=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),kO=/^\*+\.\*+$/,qO=e=>!e.startsWith(".")&&e.includes("."),jO=e=>e!=="."&&e!==".."&&e.includes("."),BO=/^\.\*+$/,WO=e=>e!=="."&&e!==".."&&e.startsWith("."),UO=/^\*+$/,HO=e=>e.length!==0&&!e.startsWith("."),GO=e=>e.length!==0&&e!=="."&&e!=="..",VO=/^\?+([^+@!?\*\[\(]*)?$/,zO=([e,t=""])=>{const r=wm([e]);return t?(t=t.toLowerCase(),a=>r(a)&&a.toLowerCase().endsWith(t)):r},YO=([e,t=""])=>{const r=Cm([e]);return t?(t=t.toLowerCase(),a=>r(a)&&a.toLowerCase().endsWith(t)):r},KO=([e,t=""])=>{const r=Cm([e]);return t?a=>r(a)&&a.endsWith(t):r},JO=([e,t=""])=>{const r=wm([e]);return t?a=>r(a)&&a.endsWith(t):r},wm=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},Cm=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Am=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Dv={win32:{sep:"\\"},posix:{sep:"/"}},QO=Am==="win32"?Dv.win32.sep:Dv.posix.sep;ht.sep=QO;const Kt=Symbol("globstar **");ht.GLOBSTAR=Kt;const ZO="[^/]",XO=ZO+"*?",eP="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",tP="(?:(?!(?:\\/|^)\\.).)*?",rP=(e,t={})=>r=>ht(r,e,t);ht.filter=rP;const Yt=(e,t={})=>Object.assign({},e,t),nP=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return ht;const t=ht;return Object.assign((a,s,i={})=>t(a,s,Yt(e,i)),{Minimatch:class extends t.Minimatch{constructor(s,i={}){super(s,Yt(e,i))}static defaults(s){return t.defaults(Yt(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,i,u={}){super(s,i,Yt(e,u))}static fromGlob(s,i={}){return t.AST.fromGlob(s,Yt(e,i))}},unescape:(a,s={})=>t.unescape(a,Yt(e,s)),escape:(a,s={})=>t.escape(a,Yt(e,s)),filter:(a,s={})=>t.filter(a,Yt(e,s)),defaults:a=>t.defaults(Yt(e,a)),makeRe:(a,s={})=>t.makeRe(a,Yt(e,s)),braceExpand:(a,s={})=>t.braceExpand(a,Yt(e,s)),match:(a,s,i={})=>t.match(a,s,Yt(e,i)),sep:t.sep,GLOBSTAR:Kt})};ht.defaults=nP;const xm=(e,t={})=>(mo(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:yO(e));ht.braceExpand=xm;const aP=(e,t={})=>new Io(e,t).makeRe();ht.makeRe=aP;const sP=(e,t,r={})=>{const a=new Io(t,r);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(t),e};ht.match=sP;const Iv=/[?*]|[+@!]\(.*?\)|\[|\]/,oP=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Io{constructor(t,r={}){st(this,"options");st(this,"set");st(this,"pattern");st(this,"windowsPathsNoEscape");st(this,"nonegate");st(this,"negate");st(this,"comment");st(this,"empty");st(this,"preserveMultipleSlashes");st(this,"partial");st(this,"globSet");st(this,"globParts");st(this,"nocase");st(this,"isWindows");st(this,"platform");st(this,"windowsNoMagicRoot");st(this,"regexp");mo(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Am,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);const a=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(a),this.debug(this.pattern,this.globParts);let s=this.globParts.map((i,u,l)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=i[0]===""&&i[1]===""&&(i[2]==="?"||!Iv.test(i[2]))&&!Iv.test(i[3]),d=/^[a-z]:/i.test(i[0]);if(f)return[...i.slice(0,4),...i.slice(4).map(h=>this.parse(h))];if(d)return[i[0],...i.slice(1).map(h=>this.parse(h))]}return i.map(f=>this.parse(f))});if(this.debug(this.pattern,s),this.set=s.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){const u=this.set[i];u[0]===""&&u[1]===""&&this.globParts[i][2]==="?"&&typeof u[3]=="string"&&/^[a-z]:$/i.test(u[3])&&(u[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let a=0;a<t.length;a++)for(let s=0;s<t[a].length;s++)t[a][s]==="**"&&(t[a][s]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let a=-1;for(;(a=r.indexOf("**",a+1))!==-1;){let s=a;for(;r[s+1]==="**";)s++;s!==a&&r.splice(a,s-a)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((a,s)=>{const i=a[a.length-1];return s==="**"&&i==="**"?a:s===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(a.pop(),a):(a.push(s),a)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){const i=t[s];s===1&&i===""&&t[0]===""||(i==="."||i==="")&&(r=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let a=0;for(;(a=t.indexOf("..",a+1))!==-1;){const s=t[a-1];s&&s!=="."&&s!==".."&&s!=="**"&&(r=!0,t.splice(a-1,2),a-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let a of t){let s=-1;for(;(s=a.indexOf("**",s+1))!==-1;){let u=s;for(;a[u+1]==="**";)u++;u>s&&a.splice(s+1,u-s);let l=a[s+1];const f=a[s+2],d=a[s+3];if(l!==".."||!f||f==="."||f===".."||!d||d==="."||d==="..")continue;r=!0,a.splice(s,1);const h=a.slice(0);h[s]="**",t.push(h),s--}if(!this.preserveMultipleSlashes){for(let u=1;u<a.length-1;u++){const l=a[u];u===1&&l===""&&a[0]===""||(l==="."||l==="")&&(r=!0,a.splice(u,1),u--)}a[0]==="."&&a.length===2&&(a[1]==="."||a[1]==="")&&(r=!0,a.pop())}let i=0;for(;(i=a.indexOf("..",i+1))!==-1;){const u=a[i-1];if(u&&u!=="."&&u!==".."&&u!=="**"){r=!0;const f=i===1&&a[i+1]==="**"?["."]:[];a.splice(i-1,2,...f),a.length===0&&a.push(""),i-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let a=r+1;a<t.length;a++){const s=this.partsMatch(t[r],t[a],!this.preserveMultipleSlashes);if(s){t[r]=[],t[a]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,a=!1){let s=0,i=0,u=[],l="";for(;s<t.length&&i<r.length;)if(t[s]===r[i])u.push(l==="b"?r[i]:t[s]),s++,i++;else if(a&&t[s]==="**"&&r[i]===t[s+1])u.push(t[s]),s++;else if(a&&r[i]==="**"&&t[s]===r[i+1])u.push(r[i]),i++;else if(t[s]==="*"&&r[i]&&(this.options.dot||!r[i].startsWith("."))&&r[i]!=="**"){if(l==="b")return!1;l="a",u.push(t[s]),s++,i++}else if(r[i]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(l==="a")return!1;l="b",u.push(r[i]),s++,i++}else return!1;return t.length===r.length&&u}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,a=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,a++;a&&(this.pattern=t.slice(a)),this.negate=r}matchOne(t,r,a=!1){const s=this.options;if(this.isWindows){const v=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),S=!v&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),E=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),A=!E&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),O=S?3:v?0:void 0,I=A?3:E?0:void 0;if(typeof O=="number"&&typeof I=="number"){const[R,j]=[t[O],r[I]];R.toLowerCase()===j.toLowerCase()&&(r[I]=R,I>O?r=r.slice(I):O>I&&(t=t.slice(O)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var u=0,l=0,f=t.length,d=r.length;u<f&&l<d;u++,l++){this.debug("matchOne loop");var h=r[l],g=t[u];if(this.debug(r,h,g),h===!1)return!1;if(h===Kt){this.debug("GLOBSTAR",[r,h,g]);var _=u,m=l+1;if(m===d){for(this.debug("** at the end");u<f;u++)if(t[u]==="."||t[u]===".."||!s.dot&&t[u].charAt(0)===".")return!1;return!0}for(;_<f;){var C=t[_];if(this.debug(`
|
|
36
36
|
globstar while`,t,_,r,m,C),this.matchOne(t.slice(_),r.slice(m),a))return this.debug("globstar found match!",_,f,C),!0;if(C==="."||C===".."||!s.dot&&C.charAt(0)==="."){this.debug("dot detected!",t,_,r,m);break}this.debug("globstar swallow a segment, and continue"),_++}return!!(a&&(this.debug(`
|
|
37
|
-
>>> no match, partial?`,t,_,r,m),_===f))}let v;if(typeof h=="string"?(v=g===h,this.debug("string match",h,g,v)):(v=h.test(g),this.debug("pattern match",h,g,v)),!v)return!1}if(u===f&&l===d)return!0;if(u===f)return a;if(l===d)return u===f-1&&t[u]==="";throw new Error("wtf?")}braceExpand(){return xm(this.pattern,this.options)}parse(t){mo(t);const r=this.options;if(t==="**")return Kt;if(t==="")return"";let a,s=null;(a=t.match(UO))?s=r.dot?GO:HO:(a=t.match(FO))?s=(r.nocase?r.dot?$O:NO:r.dot?LO:MO)(a[1]):(a=t.match(VO))?s=(r.nocase?r.dot?YO:zO:r.dot?KO:JO)(a):(a=t.match(kO))?s=r.dot?jO:qO:(a=t.match(BO))&&(s=WO);const i=_o.fromGlob(t,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,a=r.noglobstar?XO:r.dot?eP:tP,s=new Set(r.nocase?["i"]:[]);let i=t.map(f=>{const d=f.map(h=>{if(h instanceof RegExp)for(const g of h.flags.split(""))s.add(g);return typeof h=="string"?oP(h):h===Kt?Kt:h._src});return d.forEach((h,g)=>{const _=d[g+1],m=d[g-1];h!==Kt||m===Kt||(m===void 0?_!==void 0&&_!==Kt?d[g+1]="(?:\\/|"+a+"\\/)?"+_:d[g]=a:_===void 0?d[g-1]=m+"(?:\\/|"+a+")?":_!==Kt&&(d[g-1]=m+"(?:\\/|\\/"+a+"\\/)"+_,d[g+1]=Kt))}),d.filter(h=>h!==Kt).join("/")}).join("|");const[u,l]=t.length>1?["(?:",")"]:["",""];i="^"+u+i+l+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const a=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const i=this.set;this.debug(this.pattern,"set",i);let u=s[s.length-1];if(!u)for(let l=s.length-2;!u&&l>=0;l--)u=s[l];for(let l=0;l<i.length;l++){const f=i[l];let d=s;if(a.matchBase&&f.length===1&&(d=[u]),this.matchOne(d,f,r))return a.flipNegate?!0:!this.negate}return a.flipNegate?!1:this.negate}static defaults(t){return ht.defaults(t).Minimatch}}ht.AST=_o;ht.Minimatch=Io;ht.escape=IO;ht.unescape=Ma;const Rm=[{pattern:b.SETTINGS_TAB_PATH,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:b.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:b.HTTP_HANDLERS_TAB_PATH,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:b.LOCALIZATION_TAB_PATH,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:b.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"}}
|
|
37
|
+
>>> no match, partial?`,t,_,r,m),_===f))}let v;if(typeof h=="string"?(v=g===h,this.debug("string match",h,g,v)):(v=h.test(g),this.debug("pattern match",h,g,v)),!v)return!1}if(u===f&&l===d)return!0;if(u===f)return a;if(l===d)return u===f-1&&t[u]==="";throw new Error("wtf?")}braceExpand(){return xm(this.pattern,this.options)}parse(t){mo(t);const r=this.options;if(t==="**")return Kt;if(t==="")return"";let a,s=null;(a=t.match(UO))?s=r.dot?GO:HO:(a=t.match(FO))?s=(r.nocase?r.dot?$O:NO:r.dot?LO:MO)(a[1]):(a=t.match(VO))?s=(r.nocase?r.dot?YO:zO:r.dot?KO:JO)(a):(a=t.match(kO))?s=r.dot?jO:qO:(a=t.match(BO))&&(s=WO);const i=_o.fromGlob(t,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,a=r.noglobstar?XO:r.dot?eP:tP,s=new Set(r.nocase?["i"]:[]);let i=t.map(f=>{const d=f.map(h=>{if(h instanceof RegExp)for(const g of h.flags.split(""))s.add(g);return typeof h=="string"?oP(h):h===Kt?Kt:h._src});return d.forEach((h,g)=>{const _=d[g+1],m=d[g-1];h!==Kt||m===Kt||(m===void 0?_!==void 0&&_!==Kt?d[g+1]="(?:\\/|"+a+"\\/)?"+_:d[g]=a:_===void 0?d[g-1]=m+"(?:\\/|"+a+")?":_!==Kt&&(d[g-1]=m+"(?:\\/|\\/"+a+"\\/)"+_,d[g+1]=Kt))}),d.filter(h=>h!==Kt).join("/")}).join("|");const[u,l]=t.length>1?["(?:",")"]:["",""];i="^"+u+i+l+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const a=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const i=this.set;this.debug(this.pattern,"set",i);let u=s[s.length-1];if(!u)for(let l=s.length-2;!u&&l>=0;l--)u=s[l];for(let l=0;l<i.length;l++){const f=i[l];let d=s;if(a.matchBase&&f.length===1&&(d=[u]),this.matchOne(d,f,r))return a.flipNegate?!0:!this.negate}return a.flipNegate?!1:this.negate}static defaults(t){return ht.defaults(t).Minimatch}}ht.AST=_o;ht.Minimatch=Io;ht.escape=IO;ht.unescape=Ma;const Rm=[{pattern:b.SETTINGS_TAB_PATH,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:b.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:b.HTTP_HANDLERS_TAB_PATH,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:b.LOCALIZATION_TAB_PATH,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:b.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:event-report"},{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.qodoc",editor:{key:"editors:reports"},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"}}],Om=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function Pm(e){const t=e.split("/");return t.pop(),t.join("/")}function Fl(e,t,r){const{editor:a,supportedEditors:s}=pt(e);if(a.key===t)return a;const i=(s||[]).find(u=>u.key===t);return i||(r??a)}function pt(e){const t=Rm.find(({pattern:r})=>ht(e,r,{nocase:!0}));return t||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function gf(e){const t=Om.find(({pattern:r})=>ht(e,r,{nocase:!0}));return t?t.type:"text"}const hn=()=>({dataclass:({name:e,qodly:t})=>({name:e,content:t?`extends DataClass
|
|
38
38
|
`:`Class extends DataClass
|
|
39
39
|
`}),collection:({name:e,qodly:t})=>({name:`${e}Selection`,content:t?`extends EntitySelection
|
|
40
40
|
`:`Class extends EntitySelection
|