@ws-ui/store 1.7.5 → 1.7.6
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 +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -32,7 +32,7 @@ __p += '`),we&&(B+=`' +
|
|
|
32
32
|
function print() { __p += __j.call(arguments, '') }
|
|
33
33
|
`:`;
|
|
34
34
|
`)+B+`return __p
|
|
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=J;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 I=x?jr(x,0,P).join(""):n.slice(0,P);if(y===r)return I+p;if(x&&(P+=I.length-P),ou(y)){if(n.slice(P).search(y)){var $,k=I;for(y.global||(y=Ei(y.source,Oe(Gf.exec(y))+"g")),y.lastIndex=0;$=y.exec(k);)var B=$.index;I=I.slice(0,B===r?P:B)}}else if(n.indexOf(Mt(y),P)!=P){var z=I.lastIndexOf(y);z>-1&&(I=I.slice(0,z))}return I+p}function FC(n){return n=Oe(n),n&&Ub.test(n)?n.replace(Wf,i0):n}var IC=Fn(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 Ft(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(Ft(w[0],this,p))return Ft(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 Qd(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 I=o[P];n[P]=I,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:I,args:arguments,thisArg:n}),k.__chain__=$,k}return I.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 Jd(o,n)})}var VC=Hi(We),zC=Hi(md),YC=Hi(gi);function gh(n){return Ji(n)?vi(ir(n)):wE(n)}function KC(n){return function(o){return n==null?r:on(n,o)}}var QC=_p(),JC=_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=Qp,T.debounce=Jp,T.defaults=D1,T.defaultsDeep=F1,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=Q1,T.pickBy=uh,T.property=gh,T.propertyOf=KC,T.pull=OT,T.pullAll=Bp,T.pullAllBy=PT,T.pullAllWith=DT,T.pullAt=FT,T.range=QC,T.rangeRight=JC,T.rearg=Vw,T.reject=Iw,T.remove=IT,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=Qw,T.union=YT,T.unionBy=KT,T.unionWith=QT,T.uniq=JT,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=Jw,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=I1,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=ln,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=Fw,T.repeat=_C,T.replace=bC,T.result=J1,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=FC,T.uniqueId=nA,T.upperCase=IC,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,I=x instanceof Te,$=P[0],k=I||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&&(I=k=!1);var z=this.__chain__,X=!!this.__actions__.length,re=w&&!z,ve=I&&!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=F0,Te.prototype.reverse=I0,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();tn?((tn.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:Hr.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),dn=e=>{const t=new URL(window.location.href),r=t.searchParams;if(e.type===b.FileFolderType.WEBFORM){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"),r.delete("editor"),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 Hx(){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 Gx(){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 Vx(){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 zx(){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 Yx(){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=Hx(),t=Gx(),r=Vx(),a=zx(),s=Yx();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 Kx(){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 Qu,ug;function Jx(){if(ug)return Qu;ug=1;function e(t){return this.__data__.get(t)}return Qu=e,Qu}var Ju,cg;function Zx(){if(cg)return Ju;cg=1;function e(t){return this.__data__.has(t)}return Ju=e,Ju}var Zu,lg;function um(){if(lg)return Zu;lg=1;var e=Qa(),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 Xx(){if(fg)return Xu;fg=1;var e=fr(),t=e["__core-js_shared__"];return Xu=t,Xu}var ec,dg;function eR(){if(dg)return ec;dg=1;var e=Xx(),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 tR(){if(hg)return rc;hg=1;var e=um(),t=eR(),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 rR(){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=tR(),t=rR();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 nR(){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 aR(){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 sR(){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 oR(){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 iR(){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 uR(){if(wg)return dc;wg=1;var e=nR(),t=aR(),r=sR(),a=oR(),s=iR();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 cR(){if(Cg)return pc;Cg=1;var e=uR(),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 lR(){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=lR();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 fR(){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 dR(){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 pR(){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 hR(){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,Fg;function lm(){if(Fg)return bc;Fg=1;var e=cR(),t=fR(),r=dR(),a=pR(),s=hR();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,Ig;function gR(){if(Ig)return Sc;Ig=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 vR(){if(Mg)return Ec;Mg=1;var e=Oo(),t=Kx(),r=Qx(),a=Jx(),s=Zx(),i=gR();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 yR(){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 mR(){if(Ng)return wc;Ng=1;function e(t){return this.__data__.has(t)}return wc=e,wc}var Cc,$g;function _R(){if($g)return Cc;$g=1;var e=lm(),t=yR(),r=mR();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 bR(){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 SR(){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=_R(),t=bR(),r=SR(),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 F=u[E],R=l[E];if(d)var j=_?d(R,F,E,l,u,g):d(F,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)&&(F===W||h(F,W,f,d,g)))return O.push(Z)})){A=!1;break}}else if(!(F===R||h(F,R,f,d,g))){A=!1;break}}return g.delete(u),g.delete(l),A}return Rc=i,Rc}var Oc,Bg;function ER(){if(Bg)return Oc;Bg=1;var e=fr(),t=e.Uint8Array;return Oc=t,Oc}var Pc,Wg;function TR(){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 wR(){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 Fc,Hg;function CR(){if(Hg)return Fc;Hg=1;var e=of(),t=ER(),r=im(),a=fm(),s=TR(),i=wR(),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,F=O?O.valueOf:void 0;function R(j,W,Z,te,be,J,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||!J(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,J,ye);return ye.delete(j),Ve;case S:if(F)return F.call(j)==F.call(W)}return!1}return Fc=R,Fc}var Ic,Gg;function AR(){if(Gg)return Ic;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 Ic=e,Ic}var Mc,Vg;function ff(){if(Vg)return Mc;Vg=1;var e=Array.isArray;return Mc=e,Mc}var Lc,zg;function xR(){if(zg)return Lc;zg=1;var e=AR(),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 RR(){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 OR(){if(Kg)return $c;Kg=1;function e(){return[]}return $c=e,$c}var kc,Qg;function PR(){if(Qg)return kc;Qg=1;var e=RR(),t=OR(),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,Jg;function DR(){if(Jg)return qc;Jg=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=Qa(),t=Ja(),r="[object Arguments]";function a(s){return t(s)&&e(s)==r}return jc=a,jc}var Bc,Xg;function IR(){if(Xg)return Bc;Xg=1;var e=FR(),t=Ja(),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 MR(){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=MR(),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 LR(){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 NR(){if(av)return Gc;av=1;var e=Qa(),t=pm(),r=Ja(),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]",F="[object Int8Array]",R="[object Int16Array]",j="[object Int32Array]",W="[object Uint8Array]",Z="[object Uint8ClampedArray]",te="[object Uint16Array]",be="[object Uint32Array]",J={};J[A]=J[O]=J[F]=J[R]=J[j]=J[W]=J[Z]=J[te]=J[be]=!0,J[a]=J[s]=J[S]=J[i]=J[E]=J[u]=J[l]=J[f]=J[d]=J[h]=J[g]=J[_]=J[m]=J[C]=J[v]=!1;function ye(U){return r(U)&&t(U.length)&&!!J[e(U)]}return Gc=ye,Gc}var Vc,sv;function $R(){if(sv)return Vc;sv=1;function e(t){return function(r){return t(r)}}return Vc=e,Vc}var Fa={exports:{}};Fa.exports;var ov;function kR(){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})(Fa,Fa.exports)),Fa.exports}var zc,iv;function hm(){if(iv)return zc;iv=1;var e=NR(),t=$R(),r=kR(),a=r&&r.isTypedArray,s=a?t(a):e;return zc=s,zc}var Yc,uv;function qR(){if(uv)return Yc;uv=1;var e=DR(),t=IR(),r=ff(),a=dm(),s=LR(),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 jR(){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 Qc,lv;function BR(){if(lv)return Qc;lv=1;function e(t,r){return function(a){return t(r(a))}}return Qc=e,Qc}var Jc,fv;function WR(){if(fv)return Jc;fv=1;var e=BR(),t=e(Object.keys,Object);return Jc=t,Jc}var Zc,dv;function UR(){if(dv)return Zc;dv=1;var e=jR(),t=WR(),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 HR(){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 GR(){if(hv)return el;hv=1;var e=qR(),t=UR(),r=HR();function a(s){return r(s)?e(s):t(s)}return el=a,el}var tl,gv;function VR(){if(gv)return tl;gv=1;var e=xR(),t=PR(),r=GR();function a(s){return e(s,r,t)}return tl=a,tl}var rl,vv;function zR(){if(vv)return rl;vv=1;var e=VR(),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 F=!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)){F=!1;break}R||(R=E=="constructor")}if(F&&!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)&&(F=!1)}return h.delete(i),h.delete(u),F}return rl=s,rl}var nl,yv;function YR(){if(yv)return nl;yv=1;var e=Yn(),t=fr(),r=e(t,"DataView");return nl=r,nl}var al,mv;function KR(){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 JR(){if(bv)return ol;bv=1;var e=Yn(),t=fr(),r=e(t,"WeakMap");return ol=r,ol}var il,Sv;function ZR(){if(Sv)return il;Sv=1;var e=YR(),t=lf(),r=KR(),a=QR(),s=JR(),i=Qa(),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 F=i(O),R=F==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 F}),il=A,il}var ul,Ev;function XR(){if(Ev)return ul;Ev=1;var e=vR(),t=fm(),r=CR(),a=zR(),s=ZR(),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,F){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,J=W==Z;if(J&&u(v)){if(!u(S))return!1;R=!0,te=!1}if(J&&!te)return F||(F=new e),R||l(v)?t(v,S,E,A,O,F):r(v,S,W,E,A,O,F);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 F||(F=new e),O(Re,et,E,A,F)}}return J?(F||(F=new e),a(v,S,E,A,O,F)):!1}return ul=C,ul}var cl,Tv;function eO(){if(Tv)return cl;Tv=1;var e=XR(),t=Ja();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 tO(){if(wv)return ll;wv=1;var e=eO();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}tO();typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@ws-ui/craftjs-utils"]="0.2.3");const rO="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&&nO(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},nO=(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",aO=new RegExp(ym,"g"),sO=new RegExp(mm,"g"),oO=new RegExp(pf,"g"),iO=new RegExp(_m,"g"),uO=new RegExp(bm,"g"),cO=/\\\\/g,lO=/\\{/g,fO=/\\}/g,dO=/\\,/g,pO=/\\./g;function fl(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function hO(e){return e.replace(cO,ym).replace(lO,mm).replace(fO,pf).replace(dO,_m).replace(pO,bm)}function gO(e){return e.replace(aO,"\\").replace(sO,"{").replace(oO,"}").replace(iO,",").replace(uO,".")}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 vO(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Ia(hO(e),!0).map(gO)):[]}function yO(e){return"{"+e+"}"}function mO(e){return/^-?0\d/.test(e)}function _O(e,t){return e<=t}function bO(e,t){return e>=t}function Ia(e,t){const r=[],a=vm("{","}",e);if(!a)return[e];const s=a.pre,i=a.post.length?Ia(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,Ia(e)):[e];let h;if(f)h=a.body.split(/\.\./);else if(h=Sm(a.body),h.length===1&&h[0]!==void 0&&(h=Ia(h[0],!1).map(yO),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=_O;m<_&&(v*=-1,S=bO);const A=h.some(mO);g=[];for(let O=_;S(O,m);O+=v){let F;if(l)F=String.fromCharCode(O),F==="\\"&&(F="");else if(F=String(O),A){const R=C-F.length;if(R>0){const j=new Array(R+1).join("0");O<0?F="-"+j+F.slice(1):F=j+F}}g.push(F)}}else{g=[];for(let _=0;_<h.length;_++)g.push.apply(g,Ia(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 SO=1024*64,mo=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>SO)throw new TypeError("pattern is too long")},EO={"[: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,"\\$&"),TO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),xv=e=>e.join(""),wO=(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(EO))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[TO(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"),CO=new Set(["!","?","+","*","@"]),Rv=e=>CO.has(e),AO="(?!(?:^|/)\\.\\.?(?:$|/))",Vs="(?!\\.)",xO=new Set(["[","."]),RO=new Set(["..","."]),OO=new Set("().*{}+?[]^$\\!"),PO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hf="[^/]",Ov=hf+"*?",Pv=hf+"+?";var ot,lt,Ar,Ue,rt,Gr,hn,Vr,ur,gn,Ya,mn,Em,Xr,ro,Fl,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,Gr);Ot(this,hn);Ot(this,Vr,!1);Ot(this,ur);Ot(this,gn);Ot(this,Ya,!1);this.type=t,t&&Je(this,lt,!0),Je(this,rt,r),Je(this,ot,G(this,rt)?G(G(this,rt),ot):this),Je(this,ur,G(this,ot)===this?a:G(G(this,ot),ur)),Je(this,hn,G(this,ot)===this?[]:G(G(this,ot),hn)),t==="!"&&!G(G(this,ot),Vr)&&G(this,hn).push(this),Je(this,Gr,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 Je(this,lt,!0);return G(this,lt)}toString(){return G(this,gn)!==void 0?G(this,gn):this.type?Je(this,gn,this.type+"("+G(this,Ue).map(t=>String(t)).join("|")+")"):Je(this,gn,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),Vr)&&((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,Gr)===0)return!0;const t=G(this,rt);for(let a=0;a<G(this,Gr);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,Gr)===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,Xr,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,Xr,Tm).call(O,C,G(this,lt),d):C.toRegExpSource(t);return Je(this,lt,G(this,lt)||E),Je(this,Ar,G(this,Ar)||A),v}).join("");let g="";if(this.isStart()&&typeof G(this,Ue)[0]=="string"&&!(G(this,Ue).length===1&&RO.has(G(this,Ue)[0]))){const v=xO,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?AO:E?Vs:""}let _="";return this.isEnd()&&G(G(this,ot),Vr)&&((f=G(this,rt))==null?void 0:f.type)==="!"&&(_="(?:$|\\/)"),[g+h+_,Ma(h),Je(this,lt,!!G(this,lt)),G(this,Ar)]}const a=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let i=Wr(this,mn,Fl).call(this,r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const d=this.toString();return Je(this,Ue,[d]),this.type=null,Je(this,lt,void 0),[d,Ma(this.toString()),!1,!1]}let u=!a||t||r||!Vs?"":Wr(this,mn,Fl).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),Je(this,lt,!!G(this,lt)),G(this,Ar)]}};ot=new WeakMap,lt=new WeakMap,Ar=new WeakMap,Ue=new WeakMap,rt=new WeakMap,Gr=new WeakMap,hn=new WeakMap,Vr=new WeakMap,ur=new WeakMap,gn=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,Vr))return this;this.toString(),Je(this,Vr,!0);let t;for(;t=G(this,hn).pop();){if(t.type!=="!")continue;let r=t,a=G(r,rt);for(;a;){for(let s=G(r,Gr)+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},Xr=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,Xr,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,Xr,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&&Je(r,Ya,!0),h.push(_),_="",r.push(...g,h),d;_+=v}return r.type=null,Je(r,lt,void 0),Je(r,Ue,[t.substring(a-1)]),d},Fl=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 Je(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+=(OO.has(f)?"\\":"")+f;continue}if(f==="\\"){l===t.length-1?i+="\\\\":s=!0;continue}if(f==="["){const[d,h,g,_]=wO(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+=PO(f)}return[i,Ma(t),!!r,u]},Ot(Tt,Xr);let _o=Tt;const DO=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),ht=(e,t,r={})=>(mo(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Fo(t,r).match(e)),FO=/^\*+([^+@!?\*\[\(]*)$/,IO=e=>t=>!t.startsWith(".")&&t.endsWith(e),MO=e=>t=>t.endsWith(e),LO=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),NO=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),$O=/^\*+\.\*+$/,kO=e=>!e.startsWith(".")&&e.includes("."),qO=e=>e!=="."&&e!==".."&&e.includes("."),jO=/^\.\*+$/,BO=e=>e!=="."&&e!==".."&&e.startsWith("."),WO=/^\*+$/,UO=e=>e.length!==0&&!e.startsWith("."),HO=e=>e.length!==0&&e!=="."&&e!=="..",GO=/^\?+([^+@!?\*\[\(]*)?$/,VO=([e,t=""])=>{const r=wm([e]);return t?(t=t.toLowerCase(),a=>r(a)&&a.toLowerCase().endsWith(t)):r},zO=([e,t=""])=>{const r=Cm([e]);return t?(t=t.toLowerCase(),a=>r(a)&&a.toLowerCase().endsWith(t)):r},YO=([e,t=""])=>{const r=Cm([e]);return t?a=>r(a)&&a.endsWith(t):r},KO=([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 JO="[^/]",ZO=JO+"*?",XO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",eP="(?:(?!(?:\\/|^)\\.).)*?",tP=(e,t={})=>r=>ht(r,e,t);ht.filter=tP;const Yt=(e,t={})=>Object.assign({},e,t),rP=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=rP;const xm=(e,t={})=>(mo(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:vO(e));ht.braceExpand=xm;const nP=(e,t={})=>new Fo(e,t).makeRe();ht.makeRe=nP;const aP=(e,t,r={})=>{const a=new Fo(t,r);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(t),e};ht.match=aP;const Fv=/[?*]|[+@!]\(.*?\)|\[|\]/,sP=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Fo{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]==="?"||!Fv.test(i[2]))&&!Fv.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,F=A?3:E?0:void 0;if(typeof O=="number"&&typeof F=="number"){const[R,j]=[t[O],r[F]];R.toLowerCase()===j.toLowerCase()&&(r[F]=R,F>O?r=r.slice(F):O>F&&(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(`
|
|
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=J;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 I=x?jr(x,0,P).join(""):n.slice(0,P);if(y===r)return I+p;if(x&&(P+=I.length-P),ou(y)){if(n.slice(P).search(y)){var $,k=I;for(y.global||(y=Ei(y.source,Oe(Gf.exec(y))+"g")),y.lastIndex=0;$=y.exec(k);)var B=$.index;I=I.slice(0,B===r?P:B)}}else if(n.indexOf(Mt(y),P)!=P){var z=I.lastIndexOf(y);z>-1&&(I=I.slice(0,z))}return I+p}function FC(n){return n=Oe(n),n&&Ub.test(n)?n.replace(Wf,i0):n}var IC=Fn(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 Ft(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(Ft(w[0],this,p))return Ft(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 Qd(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 I=o[P];n[P]=I,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:I,args:arguments,thisArg:n}),k.__chain__=$,k}return I.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 Jd(o,n)})}var VC=Hi(We),zC=Hi(md),YC=Hi(gi);function gh(n){return Ji(n)?vi(ir(n)):wE(n)}function KC(n){return function(o){return n==null?r:on(n,o)}}var QC=_p(),JC=_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=Qp,T.debounce=Jp,T.defaults=D1,T.defaultsDeep=F1,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=Q1,T.pickBy=uh,T.property=gh,T.propertyOf=KC,T.pull=OT,T.pullAll=Bp,T.pullAllBy=PT,T.pullAllWith=DT,T.pullAt=FT,T.range=QC,T.rangeRight=JC,T.rearg=Vw,T.reject=Iw,T.remove=IT,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=Qw,T.union=YT,T.unionBy=KT,T.unionWith=QT,T.uniq=JT,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=Jw,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=I1,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=ln,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=Fw,T.repeat=_C,T.replace=bC,T.result=J1,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=FC,T.uniqueId=nA,T.upperCase=IC,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,I=x instanceof Te,$=P[0],k=I||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&&(I=k=!1);var z=this.__chain__,X=!!this.__actions__.length,re=w&&!z,ve=I&&!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=F0,Te.prototype.reverse=I0,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();tn?((tn.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:Hr.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),dn=e=>{const t=new URL(window.location.href),r=t.searchParams;if(e.type===b.FileFolderType.WEBFORM){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 Hx(){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 Gx(){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 Vx(){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 zx(){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 Yx(){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=Hx(),t=Gx(),r=Vx(),a=zx(),s=Yx();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 Kx(){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 Qu,ug;function Jx(){if(ug)return Qu;ug=1;function e(t){return this.__data__.get(t)}return Qu=e,Qu}var Ju,cg;function Zx(){if(cg)return Ju;cg=1;function e(t){return this.__data__.has(t)}return Ju=e,Ju}var Zu,lg;function um(){if(lg)return Zu;lg=1;var e=Qa(),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 Xx(){if(fg)return Xu;fg=1;var e=fr(),t=e["__core-js_shared__"];return Xu=t,Xu}var ec,dg;function eR(){if(dg)return ec;dg=1;var e=Xx(),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 tR(){if(hg)return rc;hg=1;var e=um(),t=eR(),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 rR(){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=tR(),t=rR();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 nR(){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 aR(){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 sR(){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 oR(){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 iR(){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 uR(){if(wg)return dc;wg=1;var e=nR(),t=aR(),r=sR(),a=oR(),s=iR();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 cR(){if(Cg)return pc;Cg=1;var e=uR(),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 lR(){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=lR();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 fR(){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 dR(){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 pR(){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 hR(){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,Fg;function lm(){if(Fg)return bc;Fg=1;var e=cR(),t=fR(),r=dR(),a=pR(),s=hR();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,Ig;function gR(){if(Ig)return Sc;Ig=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 vR(){if(Mg)return Ec;Mg=1;var e=Oo(),t=Kx(),r=Qx(),a=Jx(),s=Zx(),i=gR();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 yR(){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 mR(){if(Ng)return wc;Ng=1;function e(t){return this.__data__.has(t)}return wc=e,wc}var Cc,$g;function _R(){if($g)return Cc;$g=1;var e=lm(),t=yR(),r=mR();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 bR(){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 SR(){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=_R(),t=bR(),r=SR(),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 F=u[E],R=l[E];if(d)var j=_?d(R,F,E,l,u,g):d(F,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)&&(F===W||h(F,W,f,d,g)))return O.push(Z)})){A=!1;break}}else if(!(F===R||h(F,R,f,d,g))){A=!1;break}}return g.delete(u),g.delete(l),A}return Rc=i,Rc}var Oc,Bg;function ER(){if(Bg)return Oc;Bg=1;var e=fr(),t=e.Uint8Array;return Oc=t,Oc}var Pc,Wg;function TR(){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 wR(){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 Fc,Hg;function CR(){if(Hg)return Fc;Hg=1;var e=of(),t=ER(),r=im(),a=fm(),s=TR(),i=wR(),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,F=O?O.valueOf:void 0;function R(j,W,Z,te,be,J,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||!J(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,J,ye);return ye.delete(j),Ve;case S:if(F)return F.call(j)==F.call(W)}return!1}return Fc=R,Fc}var Ic,Gg;function AR(){if(Gg)return Ic;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 Ic=e,Ic}var Mc,Vg;function ff(){if(Vg)return Mc;Vg=1;var e=Array.isArray;return Mc=e,Mc}var Lc,zg;function xR(){if(zg)return Lc;zg=1;var e=AR(),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 RR(){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 OR(){if(Kg)return $c;Kg=1;function e(){return[]}return $c=e,$c}var kc,Qg;function PR(){if(Qg)return kc;Qg=1;var e=RR(),t=OR(),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,Jg;function DR(){if(Jg)return qc;Jg=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=Qa(),t=Ja(),r="[object Arguments]";function a(s){return t(s)&&e(s)==r}return jc=a,jc}var Bc,Xg;function IR(){if(Xg)return Bc;Xg=1;var e=FR(),t=Ja(),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 MR(){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=MR(),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 LR(){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 NR(){if(av)return Gc;av=1;var e=Qa(),t=pm(),r=Ja(),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]",F="[object Int8Array]",R="[object Int16Array]",j="[object Int32Array]",W="[object Uint8Array]",Z="[object Uint8ClampedArray]",te="[object Uint16Array]",be="[object Uint32Array]",J={};J[A]=J[O]=J[F]=J[R]=J[j]=J[W]=J[Z]=J[te]=J[be]=!0,J[a]=J[s]=J[S]=J[i]=J[E]=J[u]=J[l]=J[f]=J[d]=J[h]=J[g]=J[_]=J[m]=J[C]=J[v]=!1;function ye(U){return r(U)&&t(U.length)&&!!J[e(U)]}return Gc=ye,Gc}var Vc,sv;function $R(){if(sv)return Vc;sv=1;function e(t){return function(r){return t(r)}}return Vc=e,Vc}var Fa={exports:{}};Fa.exports;var ov;function kR(){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})(Fa,Fa.exports)),Fa.exports}var zc,iv;function hm(){if(iv)return zc;iv=1;var e=NR(),t=$R(),r=kR(),a=r&&r.isTypedArray,s=a?t(a):e;return zc=s,zc}var Yc,uv;function qR(){if(uv)return Yc;uv=1;var e=DR(),t=IR(),r=ff(),a=dm(),s=LR(),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 jR(){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 Qc,lv;function BR(){if(lv)return Qc;lv=1;function e(t,r){return function(a){return t(r(a))}}return Qc=e,Qc}var Jc,fv;function WR(){if(fv)return Jc;fv=1;var e=BR(),t=e(Object.keys,Object);return Jc=t,Jc}var Zc,dv;function UR(){if(dv)return Zc;dv=1;var e=jR(),t=WR(),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 HR(){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 GR(){if(hv)return el;hv=1;var e=qR(),t=UR(),r=HR();function a(s){return r(s)?e(s):t(s)}return el=a,el}var tl,gv;function VR(){if(gv)return tl;gv=1;var e=xR(),t=PR(),r=GR();function a(s){return e(s,r,t)}return tl=a,tl}var rl,vv;function zR(){if(vv)return rl;vv=1;var e=VR(),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 F=!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)){F=!1;break}R||(R=E=="constructor")}if(F&&!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)&&(F=!1)}return h.delete(i),h.delete(u),F}return rl=s,rl}var nl,yv;function YR(){if(yv)return nl;yv=1;var e=Yn(),t=fr(),r=e(t,"DataView");return nl=r,nl}var al,mv;function KR(){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 JR(){if(bv)return ol;bv=1;var e=Yn(),t=fr(),r=e(t,"WeakMap");return ol=r,ol}var il,Sv;function ZR(){if(Sv)return il;Sv=1;var e=YR(),t=lf(),r=KR(),a=QR(),s=JR(),i=Qa(),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 F=i(O),R=F==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 F}),il=A,il}var ul,Ev;function XR(){if(Ev)return ul;Ev=1;var e=vR(),t=fm(),r=CR(),a=zR(),s=ZR(),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,F){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,J=W==Z;if(J&&u(v)){if(!u(S))return!1;R=!0,te=!1}if(J&&!te)return F||(F=new e),R||l(v)?t(v,S,E,A,O,F):r(v,S,W,E,A,O,F);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 F||(F=new e),O(Re,et,E,A,F)}}return J?(F||(F=new e),a(v,S,E,A,O,F)):!1}return ul=C,ul}var cl,Tv;function eO(){if(Tv)return cl;Tv=1;var e=XR(),t=Ja();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 tO(){if(wv)return ll;wv=1;var e=eO();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}tO();typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@ws-ui/craftjs-utils"]="0.2.3");const rO="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&&nO(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},nO=(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",aO=new RegExp(ym,"g"),sO=new RegExp(mm,"g"),oO=new RegExp(pf,"g"),iO=new RegExp(_m,"g"),uO=new RegExp(bm,"g"),cO=/\\\\/g,lO=/\\{/g,fO=/\\}/g,dO=/\\,/g,pO=/\\./g;function fl(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function hO(e){return e.replace(cO,ym).replace(lO,mm).replace(fO,pf).replace(dO,_m).replace(pO,bm)}function gO(e){return e.replace(aO,"\\").replace(sO,"{").replace(oO,"}").replace(iO,",").replace(uO,".")}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 vO(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Ia(hO(e),!0).map(gO)):[]}function yO(e){return"{"+e+"}"}function mO(e){return/^-?0\d/.test(e)}function _O(e,t){return e<=t}function bO(e,t){return e>=t}function Ia(e,t){const r=[],a=vm("{","}",e);if(!a)return[e];const s=a.pre,i=a.post.length?Ia(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,Ia(e)):[e];let h;if(f)h=a.body.split(/\.\./);else if(h=Sm(a.body),h.length===1&&h[0]!==void 0&&(h=Ia(h[0],!1).map(yO),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=_O;m<_&&(v*=-1,S=bO);const A=h.some(mO);g=[];for(let O=_;S(O,m);O+=v){let F;if(l)F=String.fromCharCode(O),F==="\\"&&(F="");else if(F=String(O),A){const R=C-F.length;if(R>0){const j=new Array(R+1).join("0");O<0?F="-"+j+F.slice(1):F=j+F}}g.push(F)}}else{g=[];for(let _=0;_<h.length;_++)g.push.apply(g,Ia(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 SO=1024*64,mo=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>SO)throw new TypeError("pattern is too long")},EO={"[: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,"\\$&"),TO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),xv=e=>e.join(""),wO=(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(EO))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[TO(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"),CO=new Set(["!","?","+","*","@"]),Rv=e=>CO.has(e),AO="(?!(?:^|/)\\.\\.?(?:$|/))",Vs="(?!\\.)",xO=new Set(["[","."]),RO=new Set(["..","."]),OO=new Set("().*{}+?[]^$\\!"),PO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hf="[^/]",Ov=hf+"*?",Pv=hf+"+?";var ot,lt,Ar,Ue,rt,Gr,hn,Vr,ur,gn,Ya,mn,Em,Xr,ro,Fl,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,Gr);Ot(this,hn);Ot(this,Vr,!1);Ot(this,ur);Ot(this,gn);Ot(this,Ya,!1);this.type=t,t&&Je(this,lt,!0),Je(this,rt,r),Je(this,ot,G(this,rt)?G(G(this,rt),ot):this),Je(this,ur,G(this,ot)===this?a:G(G(this,ot),ur)),Je(this,hn,G(this,ot)===this?[]:G(G(this,ot),hn)),t==="!"&&!G(G(this,ot),Vr)&&G(this,hn).push(this),Je(this,Gr,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 Je(this,lt,!0);return G(this,lt)}toString(){return G(this,gn)!==void 0?G(this,gn):this.type?Je(this,gn,this.type+"("+G(this,Ue).map(t=>String(t)).join("|")+")"):Je(this,gn,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),Vr)&&((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,Gr)===0)return!0;const t=G(this,rt);for(let a=0;a<G(this,Gr);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,Gr)===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,Xr,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,Xr,Tm).call(O,C,G(this,lt),d):C.toRegExpSource(t);return Je(this,lt,G(this,lt)||E),Je(this,Ar,G(this,Ar)||A),v}).join("");let g="";if(this.isStart()&&typeof G(this,Ue)[0]=="string"&&!(G(this,Ue).length===1&&RO.has(G(this,Ue)[0]))){const v=xO,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?AO:E?Vs:""}let _="";return this.isEnd()&&G(G(this,ot),Vr)&&((f=G(this,rt))==null?void 0:f.type)==="!"&&(_="(?:$|\\/)"),[g+h+_,Ma(h),Je(this,lt,!!G(this,lt)),G(this,Ar)]}const a=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let i=Wr(this,mn,Fl).call(this,r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const d=this.toString();return Je(this,Ue,[d]),this.type=null,Je(this,lt,void 0),[d,Ma(this.toString()),!1,!1]}let u=!a||t||r||!Vs?"":Wr(this,mn,Fl).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),Je(this,lt,!!G(this,lt)),G(this,Ar)]}};ot=new WeakMap,lt=new WeakMap,Ar=new WeakMap,Ue=new WeakMap,rt=new WeakMap,Gr=new WeakMap,hn=new WeakMap,Vr=new WeakMap,ur=new WeakMap,gn=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,Vr))return this;this.toString(),Je(this,Vr,!0);let t;for(;t=G(this,hn).pop();){if(t.type!=="!")continue;let r=t,a=G(r,rt);for(;a;){for(let s=G(r,Gr)+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},Xr=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,Xr,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,Xr,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&&Je(r,Ya,!0),h.push(_),_="",r.push(...g,h),d;_+=v}return r.type=null,Je(r,lt,void 0),Je(r,Ue,[t.substring(a-1)]),d},Fl=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 Je(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+=(OO.has(f)?"\\":"")+f;continue}if(f==="\\"){l===t.length-1?i+="\\\\":s=!0;continue}if(f==="["){const[d,h,g,_]=wO(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+=PO(f)}return[i,Ma(t),!!r,u]},Ot(Tt,Xr);let _o=Tt;const DO=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),ht=(e,t,r={})=>(mo(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Fo(t,r).match(e)),FO=/^\*+([^+@!?\*\[\(]*)$/,IO=e=>t=>!t.startsWith(".")&&t.endsWith(e),MO=e=>t=>t.endsWith(e),LO=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),NO=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),$O=/^\*+\.\*+$/,kO=e=>!e.startsWith(".")&&e.includes("."),qO=e=>e!=="."&&e!==".."&&e.includes("."),jO=/^\.\*+$/,BO=e=>e!=="."&&e!==".."&&e.startsWith("."),WO=/^\*+$/,UO=e=>e.length!==0&&!e.startsWith("."),HO=e=>e.length!==0&&e!=="."&&e!=="..",GO=/^\?+([^+@!?\*\[\(]*)?$/,VO=([e,t=""])=>{const r=wm([e]);return t?(t=t.toLowerCase(),a=>r(a)&&a.toLowerCase().endsWith(t)):r},zO=([e,t=""])=>{const r=Cm([e]);return t?(t=t.toLowerCase(),a=>r(a)&&a.toLowerCase().endsWith(t)):r},YO=([e,t=""])=>{const r=Cm([e]);return t?a=>r(a)&&a.endsWith(t):r},KO=([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 JO="[^/]",ZO=JO+"*?",XO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",eP="(?:(?!(?:\\/|^)\\.).)*?",tP=(e,t={})=>r=>ht(r,e,t);ht.filter=tP;const Yt=(e,t={})=>Object.assign({},e,t),rP=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=rP;const xm=(e,t={})=>(mo(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:vO(e));ht.braceExpand=xm;const nP=(e,t={})=>new Fo(e,t).makeRe();ht.makeRe=nP;const aP=(e,t,r={})=>{const a=new Fo(t,r);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(t),e};ht.match=aP;const Fv=/[?*]|[+@!]\(.*?\)|\[|\]/,sP=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Fo{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]==="?"||!Fv.test(i[2]))&&!Fv.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,F=A?3:E?0:void 0;if(typeof O=="number"&&typeof F=="number"){const[R,j]=[t[O],r[F]];R.toLowerCase()===j.toLowerCase()&&(r[F]=R,F>O?r=r.slice(F):O>F&&(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
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(WO))?s=r.dot?HO:UO:(a=t.match(FO))?s=(r.nocase?r.dot?NO:LO:r.dot?MO:IO)(a[1]):(a=t.match(GO))?s=(r.nocase?r.dot?zO:VO:r.dot?YO:KO)(a):(a=t.match($O))?s=r.dot?qO:kO:(a=t.match(jO))&&(s=BO);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?ZO:r.dot?XO:eP,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"?sP(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=Fo;ht.escape=DO;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"}},{key:"editors:event-report"}]},{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 Il(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 pn=()=>({dataclass:({name:e,qodly:t})=>({name:e,content:t?`extends DataClass
|
|
38
38
|
`:`Class extends DataClass
|