@remoteoss/json-schema-form 1.2.18 → 1.2.19

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.mjs CHANGED
@@ -1,3 +1,3 @@
1
- var ba=Object.create;var jr=Object.defineProperty;var Oa=Object.getOwnPropertyDescriptor;var Sa=Object.getOwnPropertyNames;var xa=Object.getPrototypeOf,Ea=Object.prototype.hasOwnProperty;var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var va=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Sa(r))!Ea.call(e,i)&&i!==t&&jr(e,i,{get:()=>r[i],enumerable:!(n=Oa(r,i))||n.enumerable});return e};var I=(e,r,t)=>(t=e!=null?ba(xa(e)):{},va(r||!e||!e.__esModule?jr(t,"default",{value:e,enumerable:!0}):t,e));var Y=u((rg,_r)=>{"use strict";_r.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}});var Be=u(A=>{"use strict";var g=Y(),$e=()=>[{type:g.RANGE,from:48,to:57}],Rr=()=>[{type:g.CHAR,value:95},{type:g.RANGE,from:97,to:122},{type:g.RANGE,from:65,to:90}].concat($e()),Vr=()=>[{type:g.CHAR,value:9},{type:g.CHAR,value:10},{type:g.CHAR,value:11},{type:g.CHAR,value:12},{type:g.CHAR,value:13},{type:g.CHAR,value:32},{type:g.CHAR,value:160},{type:g.CHAR,value:5760},{type:g.RANGE,from:8192,to:8202},{type:g.CHAR,value:8232},{type:g.CHAR,value:8233},{type:g.CHAR,value:8239},{type:g.CHAR,value:8287},{type:g.CHAR,value:12288},{type:g.CHAR,value:65279}],Ta=()=>[{type:g.CHAR,value:10},{type:g.CHAR,value:13},{type:g.CHAR,value:8232},{type:g.CHAR,value:8233}];A.words=()=>({type:g.SET,set:Rr(),not:!1});A.notWords=()=>({type:g.SET,set:Rr(),not:!0});A.ints=()=>({type:g.SET,set:$e(),not:!1});A.notInts=()=>({type:g.SET,set:$e(),not:!0});A.whitespace=()=>({type:g.SET,set:Vr(),not:!1});A.notWhitespace=()=>({type:g.SET,set:Vr(),not:!0});A.anyChar=()=>({type:g.SET,set:Ta(),not:!0})});var Fr=u(X=>{"use strict";var Jr=Y(),J=Be(),wa="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",Ia={0:0,t:9,n:10,v:11,f:12,r:13};X.strToChars=function(e){var r=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return e=e.replace(r,function(t,n,i,o,s,a,f,l){if(i)return t;var c=n?8:o?parseInt(o,16):s?parseInt(s,16):a?parseInt(a,8):f?wa.indexOf(f):Ia[l],p=String.fromCharCode(c);return/[[\]{}^$.|?*+()]/.test(p)&&(p="\\"+p),p}),e};X.tokenizeClass=(e,r)=>{for(var t=[],n=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,i,o;(i=n.exec(e))!=null;)if(i[1])t.push(J.words());else if(i[2])t.push(J.ints());else if(i[3])t.push(J.whitespace());else if(i[4])t.push(J.notWords());else if(i[5])t.push(J.notInts());else if(i[6])t.push(J.notWhitespace());else if(i[7])t.push({type:Jr.RANGE,from:(i[8]||i[9]).charCodeAt(0),to:i[10].charCodeAt(0)});else if(o=i[12])t.push({type:Jr.CHAR,value:o.charCodeAt(0)});else return[t,n.lastIndex];X.error(r,"Unterminated character class")};X.error=(e,r)=>{throw new SyntaxError("Invalid regular expression: /"+e+"/: "+r)}});var Pr=u(Z=>{"use strict";var ye=Y();Z.wordBoundary=()=>({type:ye.POSITION,value:"b"});Z.nonWordBoundary=()=>({type:ye.POSITION,value:"B"});Z.begin=()=>({type:ye.POSITION,value:"^"});Z.end=()=>({type:ye.POSITION,value:"$"})});var Nr=u((og,He)=>{"use strict";var F=Fr(),E=Y(),q=Be(),be=Pr();He.exports=e=>{var r=0,t,n,i={type:E.ROOT,stack:[]},o=i,s=i.stack,a=[],f=De=>{F.error(e,`Nothing to repeat at column ${De-1}`)},l=F.strToChars(e);for(t=l.length;r<t;)switch(n=l[r++],n){case"\\":switch(n=l[r++],n){case"b":s.push(be.wordBoundary());break;case"B":s.push(be.nonWordBoundary());break;case"w":s.push(q.words());break;case"W":s.push(q.notWords());break;case"d":s.push(q.ints());break;case"D":s.push(q.notInts());break;case"s":s.push(q.whitespace());break;case"S":s.push(q.notWhitespace());break;default:/\d/.test(n)?s.push({type:E.REFERENCE,value:parseInt(n,10)}):s.push({type:E.CHAR,value:n.charCodeAt(0)})}break;case"^":s.push(be.begin());break;case"$":s.push(be.end());break;case"[":var c;l[r]==="^"?(c=!0,r++):c=!1;var p=F.tokenizeClass(l.slice(r),e);r+=p[1],s.push({type:E.SET,set:p[0],not:c});break;case".":s.push(q.anyChar());break;case"(":var d={type:E.GROUP,stack:[],remember:!0};n=l[r],n==="?"&&(n=l[r+1],r+=2,n==="="?d.followedBy=!0:n==="!"?d.notFollowedBy=!0:n!==":"&&F.error(e,`Invalid group, character '${n}' after '?' at column ${r-1}`),d.remember=!1),s.push(d),a.push(o),o=d,s=d.stack;break;case")":a.length===0&&F.error(e,`Unmatched ) at column ${r-1}`),o=a.pop(),s=o.options?o.options[o.options.length-1]:o.stack;break;case"|":o.options||(o.options=[o.stack],delete o.stack);var m=[];o.options.push(m),s=m;break;case"{":var h=/^(\d+)(,(\d+)?)?\}/.exec(l.slice(r)),w,ge;h!==null?(s.length===0&&f(r),w=parseInt(h[1],10),ge=h[2]?h[3]?parseInt(h[3],10):1/0:w,r+=h[0].length,s.push({type:E.REPETITION,min:w,max:ge,value:s.pop()})):s.push({type:E.CHAR,value:123});break;case"?":s.length===0&&f(r),s.push({type:E.REPETITION,min:0,max:1,value:s.pop()});break;case"+":s.length===0&&f(r),s.push({type:E.REPETITION,min:1,max:1/0,value:s.pop()});break;case"*":s.length===0&&f(r),s.push({type:E.REPETITION,min:0,max:1/0,value:s.pop()});break;default:s.push({type:E.CHAR,value:n.charCodeAt(0)})}return a.length!==0&&F.error(e,"Unterminated group"),i};He.exports.types=E});var Lr=u((sg,Mr)=>{"use strict";var P=class e{constructor(r,t){this.low=r,this.high=t,this.length=1+t-r}overlaps(r){return!(this.high<r.low||this.low>r.high)}touches(r){return!(this.high+1<r.low||this.low-1>r.high)}add(r){return new e(Math.min(this.low,r.low),Math.max(this.high,r.high))}subtract(r){return r.low<=this.low&&r.high>=this.high?[]:r.low>this.low&&r.high<this.high?[new e(this.low,r.low-1),new e(r.high+1,this.high)]:r.low<=this.low?[new e(r.high+1,this.high)]:[new e(this.low,r.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}},Ue=class e{constructor(r,t){this.ranges=[],this.length=0,r!=null&&this.add(r,t)}_update_length(){this.length=this.ranges.reduce((r,t)=>r+t.length,0)}add(r,t){var n=i=>{for(var o=0;o<this.ranges.length&&!i.touches(this.ranges[o]);)o++;for(var s=this.ranges.slice(0,o);o<this.ranges.length&&i.touches(this.ranges[o]);)i=i.add(this.ranges[o]),o++;s.push(i),this.ranges=s.concat(this.ranges.slice(o)),this._update_length()};return r instanceof e?r.ranges.forEach(n):(t==null&&(t=r),n(new P(r,t))),this}subtract(r,t){var n=i=>{for(var o=0;o<this.ranges.length&&!i.overlaps(this.ranges[o]);)o++;for(var s=this.ranges.slice(0,o);o<this.ranges.length&&i.overlaps(this.ranges[o]);)s=s.concat(this.ranges[o].subtract(i)),o++;this.ranges=s.concat(this.ranges.slice(o)),this._update_length()};return r instanceof e?r.ranges.forEach(n):(t==null&&(t=r),n(new P(r,t))),this}intersect(r,t){var n=[],i=o=>{for(var s=0;s<this.ranges.length&&!o.overlaps(this.ranges[s]);)s++;for(;s<this.ranges.length&&o.overlaps(this.ranges[s]);){var a=Math.max(this.ranges[s].low,o.low),f=Math.min(this.ranges[s].high,o.high);n.push(new P(a,f)),s++}};return r instanceof e?r.ranges.forEach(i):(t==null&&(t=r),i(new P(r,t))),this.ranges=n,this._update_length(),this}index(r){for(var t=0;t<this.ranges.length&&this.ranges[t].length<=r;)r-=this.ranges[t].length,t++;return this.ranges[t].low+r}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new e(this)}numbers(){return this.ranges.reduce((r,t)=>{for(var n=t.low;n<=t.high;)r.push(n),n++;return r},[])}subranges(){return this.ranges.map(r=>({low:r.low,high:r.high,length:1+r.high-r.low}))}};Mr.exports=Ue});var $r=u((ag,Dr)=>{"use strict";var Oe=Nr(),Q=Lr(),C=Oe.types;Dr.exports=class ee{constructor(r,t){if(this._setDefaults(r),r instanceof RegExp)this.ignoreCase=r.ignoreCase,this.multiline=r.multiline,r=r.source;else if(typeof r=="string")this.ignoreCase=t&&t.indexOf("i")!==-1,this.multiline=t&&t.indexOf("m")!==-1;else throw new Error("Expected a regexp or string");this.tokens=Oe(r)}_setDefaults(r){this.max=r.max!=null?r.max:ee.prototype.max!=null?ee.prototype.max:100,this.defaultRange=r.defaultRange?r.defaultRange:this.defaultRange.clone(),r.randInt&&(this.randInt=r.randInt)}gen(){return this._gen(this.tokens,[])}_gen(r,t){var n,i,o,s,a;switch(r.type){case C.ROOT:case C.GROUP:if(r.followedBy||r.notFollowedBy)return"";for(r.remember&&r.groupNumber===void 0&&(r.groupNumber=t.push(null)-1),n=r.options?this._randSelect(r.options):r.stack,i="",s=0,a=n.length;s<a;s++)i+=this._gen(n[s],t);return r.remember&&(t[r.groupNumber]=i),i;case C.POSITION:return"";case C.SET:var f=this._expand(r);return f.length?String.fromCharCode(this._randSelect(f)):"";case C.REPETITION:for(o=this.randInt(r.min,r.max===1/0?r.min+this.max:r.max),i="",s=0;s<o;s++)i+=this._gen(r.value,t);return i;case C.REFERENCE:return t[r.value-1]||"";case C.CHAR:var l=this.ignoreCase&&this._randBool()?this._toOtherCase(r.value):r.value;return String.fromCharCode(l)}}_toOtherCase(r){return r+(97<=r&&r<=122?-32:65<=r&&r<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(r){return r instanceof Q?r.index(this.randInt(0,r.length-1)):r[this.randInt(0,r.length-1)]}_expand(r){if(r.type===Oe.types.CHAR)return new Q(r.value);if(r.type===Oe.types.RANGE)return new Q(r.from,r.to);{let t=new Q;for(let n=0;n<r.set.length;n++){let i=this._expand(r.set[n]);if(t.add(i),this.ignoreCase)for(let o=0;o<i.length;o++){let s=i.index(o),a=this._toOtherCase(s);s!==a&&t.add(a)}}return r.not?this.defaultRange.clone().subtract(t):this.defaultRange.clone().intersect(t)}}randInt(r,t){return r+Math.floor(Math.random()*(1+t-r))}get defaultRange(){return this._range=this._range||new Q(32,126)}set defaultRange(r){this._range=r}static randexp(r,t){var n;return typeof r=="string"&&(r=new RegExp(r,t)),r._randexp===void 0?(n=new ee(r,t),r._randexp=n):(n=r._randexp,n._setDefaults(r)),n.gen()}static sugar(){RegExp.prototype.gen=function(){return ee.randexp(this)}}}});var et=u((dg,Qr)=>{"use strict";var Va=function(r){return Ja(r)&&!Fa(r)};function Ja(e){return!!e&&typeof e=="object"}function Fa(e){var r=Object.prototype.toString.call(e);return r==="[object RegExp]"||r==="[object Date]"||Ma(e)}var Pa=typeof Symbol=="function"&&Symbol.for,Na=Pa?Symbol.for("react.element"):60103;function Ma(e){return e.$$typeof===Na}function La(e){return Array.isArray(e)?[]:{}}function re(e,r){return r.clone!==!1&&r.isMergeableObject(e)?M(La(e),e,r):e}function Da(e,r,t){return e.concat(r).map(function(n){return re(n,t)})}function $a(e,r){if(!r.customMerge)return M;var t=r.customMerge(e);return typeof t=="function"?t:M}function Ba(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return Object.propertyIsEnumerable.call(e,r)}):[]}function Xr(e){return Object.keys(e).concat(Ba(e))}function Zr(e,r){try{return r in e}catch{return!1}}function Ha(e,r){return Zr(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))}function Ua(e,r,t){var n={};return t.isMergeableObject(e)&&Xr(e).forEach(function(i){n[i]=re(e[i],t)}),Xr(r).forEach(function(i){Ha(e,i)||(Zr(e,i)&&t.isMergeableObject(r[i])?n[i]=$a(i,t)(e[i],r[i],t):n[i]=re(r[i],t))}),n}function M(e,r,t){t=t||{},t.arrayMerge=t.arrayMerge||Da,t.isMergeableObject=t.isMergeableObject||Va,t.cloneUnlessOtherwiseSpecified=re;var n=Array.isArray(r),i=Array.isArray(e),o=n===i;return o?n?t.arrayMerge(e,r,t):Ua(e,r,t):re(r,t)}M.all=function(r,t){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(n,i){return M(n,i,t)},{})};var Ga=M;Qr.exports=Ga});var rr=u((Sy,jt)=>{"use strict";var vu=typeof global=="object"&&global&&global.Object===Object&&global;jt.exports=vu});var _=u((xy,_t)=>{"use strict";var Tu=rr(),wu=typeof self=="object"&&self&&self.Object===Object&&self,Iu=Tu||wu||Function("return this")();_t.exports=Iu});var ie=u((Ey,Rt)=>{"use strict";var Au=_(),qu=Au.Symbol;Rt.exports=qu});var Pt=u((vy,Ft)=>{"use strict";var Vt=ie(),Jt=Object.prototype,Cu=Jt.hasOwnProperty,ju=Jt.toString,oe=Vt?Vt.toStringTag:void 0;function _u(e){var r=Cu.call(e,oe),t=e[oe];try{e[oe]=void 0;var n=!0}catch{}var i=ju.call(e);return n&&(r?e[oe]=t:delete e[oe]),i}Ft.exports=_u});var Mt=u((Ty,Nt)=>{"use strict";var Ru=Object.prototype,Vu=Ru.toString;function Ju(e){return Vu.call(e)}Nt.exports=Ju});var D=u((wy,$t)=>{"use strict";var Lt=ie(),Fu=Pt(),Pu=Mt(),Nu="[object Null]",Mu="[object Undefined]",Dt=Lt?Lt.toStringTag:void 0;function Lu(e){return e==null?e===void 0?Mu:Nu:Dt&&Dt in Object(e)?Fu(e):Pu(e)}$t.exports=Lu});var T=u((Iy,Bt)=>{"use strict";function Du(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}Bt.exports=Du});var Ie=u((Ay,Ht)=>{"use strict";var $u=D(),Bu=T(),Hu="[object AsyncFunction]",Uu="[object Function]",Gu="[object GeneratorFunction]",zu="[object Proxy]";function ku(e){if(!Bu(e))return!1;var r=$u(e);return r==Uu||r==Gu||r==Hu||r==zu}Ht.exports=ku});var Gt=u((qy,Ut)=>{"use strict";var Wu=_(),Ku=Wu["__core-js_shared__"];Ut.exports=Ku});var Wt=u((Cy,kt)=>{"use strict";var tr=Gt(),zt=function(){var e=/[^.]+$/.exec(tr&&tr.keys&&tr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yu(e){return!!zt&&zt in e}kt.exports=Yu});var Yt=u((jy,Kt)=>{"use strict";var Xu=Function.prototype,Zu=Xu.toString;function Qu(e){if(e!=null){try{return Zu.call(e)}catch{}try{return e+""}catch{}}return""}Kt.exports=Qu});var Zt=u((_y,Xt)=>{"use strict";var ef=Ie(),rf=Wt(),tf=T(),nf=Yt(),of=/[\\^$.*+?()[\]{}|]/g,sf=/^\[object .+?Constructor\]$/,af=Function.prototype,uf=Object.prototype,ff=af.toString,lf=uf.hasOwnProperty,cf=RegExp("^"+ff.call(lf).replace(of,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pf(e){if(!tf(e)||rf(e))return!1;var r=ef(e)?cf:sf;return r.test(nf(e))}Xt.exports=pf});var en=u((Ry,Qt)=>{"use strict";function df(e,r){return e?.[r]}Qt.exports=df});var Ae=u((Vy,rn)=>{"use strict";var mf=Zt(),hf=en();function gf(e,r){var t=hf(e,r);return mf(t)?t:void 0}rn.exports=gf});var se=u((Jy,tn)=>{"use strict";var yf=Ae(),bf=yf(Object,"create");tn.exports=bf});var sn=u((Fy,on)=>{"use strict";var nn=se();function Of(){this.__data__=nn?nn(null):{},this.size=0}on.exports=Of});var un=u((Py,an)=>{"use strict";function Sf(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}an.exports=Sf});var ln=u((Ny,fn)=>{"use strict";var xf=se(),Ef="__lodash_hash_undefined__",vf=Object.prototype,Tf=vf.hasOwnProperty;function wf(e){var r=this.__data__;if(xf){var t=r[e];return t===Ef?void 0:t}return Tf.call(r,e)?r[e]:void 0}fn.exports=wf});var pn=u((My,cn)=>{"use strict";var If=se(),Af=Object.prototype,qf=Af.hasOwnProperty;function Cf(e){var r=this.__data__;return If?r[e]!==void 0:qf.call(r,e)}cn.exports=Cf});var mn=u((Ly,dn)=>{"use strict";var jf=se(),_f="__lodash_hash_undefined__";function Rf(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=jf&&r===void 0?_f:r,this}dn.exports=Rf});var gn=u((Dy,hn)=>{"use strict";var Vf=sn(),Jf=un(),Ff=ln(),Pf=pn(),Nf=mn();function $(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}$.prototype.clear=Vf;$.prototype.delete=Jf;$.prototype.get=Ff;$.prototype.has=Pf;$.prototype.set=Nf;hn.exports=$});var bn=u(($y,yn)=>{"use strict";function Mf(){this.__data__=[],this.size=0}yn.exports=Mf});var ae=u((By,On)=>{"use strict";function Lf(e,r){return e===r||e!==e&&r!==r}On.exports=Lf});var ue=u((Hy,Sn)=>{"use strict";var Df=ae();function $f(e,r){for(var t=e.length;t--;)if(Df(e[t][0],r))return t;return-1}Sn.exports=$f});var En=u((Uy,xn)=>{"use strict";var Bf=ue(),Hf=Array.prototype,Uf=Hf.splice;function Gf(e){var r=this.__data__,t=Bf(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Uf.call(r,t,1),--this.size,!0}xn.exports=Gf});var Tn=u((Gy,vn)=>{"use strict";var zf=ue();function kf(e){var r=this.__data__,t=zf(r,e);return t<0?void 0:r[t][1]}vn.exports=kf});var In=u((zy,wn)=>{"use strict";var Wf=ue();function Kf(e){return Wf(this.__data__,e)>-1}wn.exports=Kf});var qn=u((ky,An)=>{"use strict";var Yf=ue();function Xf(e,r){var t=this.__data__,n=Yf(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}An.exports=Xf});var fe=u((Wy,Cn)=>{"use strict";var Zf=bn(),Qf=En(),el=Tn(),rl=In(),tl=qn();function B(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}B.prototype.clear=Zf;B.prototype.delete=Qf;B.prototype.get=el;B.prototype.has=rl;B.prototype.set=tl;Cn.exports=B});var nr=u((Ky,jn)=>{"use strict";var nl=Ae(),il=_(),ol=nl(il,"Map");jn.exports=ol});var Vn=u((Yy,Rn)=>{"use strict";var _n=gn(),sl=fe(),al=nr();function ul(){this.size=0,this.__data__={hash:new _n,map:new(al||sl),string:new _n}}Rn.exports=ul});var Fn=u((Xy,Jn)=>{"use strict";function fl(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Jn.exports=fl});var le=u((Zy,Pn)=>{"use strict";var ll=Fn();function cl(e,r){var t=e.__data__;return ll(r)?t[typeof r=="string"?"string":"hash"]:t.map}Pn.exports=cl});var Mn=u((Qy,Nn)=>{"use strict";var pl=le();function dl(e){var r=pl(this,e).delete(e);return this.size-=r?1:0,r}Nn.exports=dl});var Dn=u((eb,Ln)=>{"use strict";var ml=le();function hl(e){return ml(this,e).get(e)}Ln.exports=hl});var Bn=u((rb,$n)=>{"use strict";var gl=le();function yl(e){return gl(this,e).has(e)}$n.exports=yl});var Un=u((tb,Hn)=>{"use strict";var bl=le();function Ol(e,r){var t=bl(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}Hn.exports=Ol});var qe=u((nb,Gn)=>{"use strict";var Sl=Vn(),xl=Mn(),El=Dn(),vl=Bn(),Tl=Un();function H(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}H.prototype.clear=Sl;H.prototype.delete=xl;H.prototype.get=El;H.prototype.has=vl;H.prototype.set=Tl;Gn.exports=H});var kn=u((ib,zn)=>{"use strict";var wl="__lodash_hash_undefined__";function Il(e){return this.__data__.set(e,wl),this}zn.exports=Il});var Kn=u((ob,Wn)=>{"use strict";function Al(e){return this.__data__.has(e)}Wn.exports=Al});var ir=u((sb,Yn)=>{"use strict";var ql=qe(),Cl=kn(),jl=Kn();function Ce(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new ql;++r<t;)this.add(e[r])}Ce.prototype.add=Ce.prototype.push=Cl;Ce.prototype.has=jl;Yn.exports=Ce});var Zn=u((ab,Xn)=>{"use strict";function _l(e,r,t,n){for(var i=e.length,o=t+(n?1:-1);n?o--:++o<i;)if(r(e[o],o,e))return o;return-1}Xn.exports=_l});var ei=u((ub,Qn)=>{"use strict";function Rl(e){return e!==e}Qn.exports=Rl});var ti=u((fb,ri)=>{"use strict";function Vl(e,r,t){for(var n=t-1,i=e.length;++n<i;)if(e[n]===r)return n;return-1}ri.exports=Vl});var ii=u((lb,ni)=>{"use strict";var Jl=Zn(),Fl=ei(),Pl=ti();function Nl(e,r,t){return r===r?Pl(e,r,t):Jl(e,Fl,t)}ni.exports=Nl});var or=u((cb,oi)=>{"use strict";var Ml=ii();function Ll(e,r){var t=e==null?0:e.length;return!!t&&Ml(e,r,0)>-1}oi.exports=Ll});var sr=u((pb,si)=>{"use strict";function Dl(e,r,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(r,e[n]))return!0;return!1}si.exports=Dl});var ce=u((db,ai)=>{"use strict";function $l(e,r){for(var t=-1,n=e==null?0:e.length,i=Array(n);++t<n;)i[t]=r(e[t],t,e);return i}ai.exports=$l});var je=u((mb,ui)=>{"use strict";function Bl(e){return function(r){return e(r)}}ui.exports=Bl});var ar=u((hb,fi)=>{"use strict";function Hl(e,r){return e.has(r)}fi.exports=Hl});var ci=u((gb,li)=>{"use strict";var Ul=ir(),Gl=or(),zl=sr(),kl=ce(),Wl=je(),Kl=ar(),Yl=200;function Xl(e,r,t,n){var i=-1,o=Gl,s=!0,a=e.length,f=[],l=r.length;if(!a)return f;t&&(r=kl(r,Wl(t))),n?(o=zl,s=!1):r.length>=Yl&&(o=Kl,s=!1,r=new Ul(r));e:for(;++i<a;){var c=e[i],p=t==null?c:t(c);if(c=n||c!==0?c:0,s&&p===p){for(var d=l;d--;)if(r[d]===p)continue e;f.push(c)}else o(r,p,n)||f.push(c)}return f}li.exports=Xl});var di=u((yb,pi)=>{"use strict";function Zl(e,r){for(var t=-1,n=r.length,i=e.length;++t<n;)e[i+t]=r[t];return e}pi.exports=Zl});var R=u((bb,mi)=>{"use strict";function Ql(e){return e!=null&&typeof e=="object"}mi.exports=Ql});var gi=u((Ob,hi)=>{"use strict";var ec=D(),rc=R(),tc="[object Arguments]";function nc(e){return rc(e)&&ec(e)==tc}hi.exports=nc});var _e=u((Sb,Oi)=>{"use strict";var yi=gi(),ic=R(),bi=Object.prototype,oc=bi.hasOwnProperty,sc=bi.propertyIsEnumerable,ac=yi(function(){return arguments}())?yi:function(e){return ic(e)&&oc.call(e,"callee")&&!sc.call(e,"callee")};Oi.exports=ac});var V=u((xb,Si)=>{"use strict";var uc=Array.isArray;Si.exports=uc});var Ti=u((Eb,vi)=>{"use strict";var xi=ie(),fc=_e(),lc=V(),Ei=xi?xi.isConcatSpreadable:void 0;function cc(e){return lc(e)||fc(e)||!!(Ei&&e&&e[Ei])}vi.exports=cc});var Ai=u((vb,Ii)=>{"use strict";var pc=di(),dc=Ti();function wi(e,r,t,n,i){var o=-1,s=e.length;for(t||(t=dc),i||(i=[]);++o<s;){var a=e[o];r>0&&t(a)?r>1?wi(a,r-1,t,n,i):pc(i,a):n||(i[i.length]=a)}return i}Ii.exports=wi});var ur=u((Tb,qi)=>{"use strict";function mc(e){return e}qi.exports=mc});var ji=u((wb,Ci)=>{"use strict";function hc(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}Ci.exports=hc});var Vi=u((Ib,Ri)=>{"use strict";var gc=ji(),_i=Math.max;function yc(e,r,t){return r=_i(r===void 0?e.length-1:r,0),function(){for(var n=arguments,i=-1,o=_i(n.length-r,0),s=Array(o);++i<o;)s[i]=n[r+i];i=-1;for(var a=Array(r+1);++i<r;)a[i]=n[i];return a[r]=t(s),gc(e,this,a)}}Ri.exports=yc});var Fi=u((Ab,Ji)=>{"use strict";function bc(e){return function(){return e}}Ji.exports=bc});var fr=u((qb,Pi)=>{"use strict";var Oc=Ae(),Sc=function(){try{var e=Oc(Object,"defineProperty");return e({},"",{}),e}catch{}}();Pi.exports=Sc});var Li=u((Cb,Mi)=>{"use strict";var xc=Fi(),Ni=fr(),Ec=ur(),vc=Ni?function(e,r){return Ni(e,"toString",{configurable:!0,enumerable:!1,value:xc(r),writable:!0})}:Ec;Mi.exports=vc});var $i=u((jb,Di)=>{"use strict";var Tc=800,wc=16,Ic=Date.now;function Ac(e){var r=0,t=0;return function(){var n=Ic(),i=wc-(n-t);if(t=n,i>0){if(++r>=Tc)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}Di.exports=Ac});var Hi=u((_b,Bi)=>{"use strict";var qc=Li(),Cc=$i(),jc=Cc(qc);Bi.exports=jc});var Re=u((Rb,Ui)=>{"use strict";var _c=ur(),Rc=Vi(),Vc=Hi();function Jc(e,r){return Vc(Rc(e,r,_c),e+"")}Ui.exports=Jc});var lr=u((Vb,Gi)=>{"use strict";var Fc=9007199254740991;function Pc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fc}Gi.exports=Pc});var Ve=u((Jb,zi)=>{"use strict";var Nc=Ie(),Mc=lr();function Lc(e){return e!=null&&Mc(e.length)&&!Nc(e)}zi.exports=Lc});var Je=u((Fb,ki)=>{"use strict";var Dc=Ve(),$c=R();function Bc(e){return $c(e)&&Dc(e)}ki.exports=Bc});var Yi=u((Pb,Ki)=>{"use strict";var Hc=ci(),Uc=Ai(),Gc=Re(),Wi=Je(),zc=Gc(function(e,r){return Wi(e)?Hc(e,Uc(r,1,Wi,!0)):[]});Ki.exports=zc});var Fe=u((Nb,Xi)=>{"use strict";var kc=D(),Wc=R(),Kc="[object Symbol]";function Yc(e){return typeof e=="symbol"||Wc(e)&&kc(e)==Kc}Xi.exports=Yc});var Qi=u((Mb,Zi)=>{"use strict";var Xc=V(),Zc=Fe(),Qc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ep=/^\w*$/;function rp(e,r){if(Xc(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Zc(e)?!0:ep.test(e)||!Qc.test(e)||r!=null&&e in Object(r)}Zi.exports=rp});var to=u((Lb,ro)=>{"use strict";var eo=qe(),tp="Expected a function";function cr(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(tp);var t=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=t.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return t.cache=o.set(i,s)||o,s};return t.cache=new(cr.Cache||eo),t}cr.Cache=eo;ro.exports=cr});var io=u((Db,no)=>{"use strict";var np=to(),ip=500;function op(e){var r=np(e,function(n){return t.size===ip&&t.clear(),n}),t=r.cache;return r}no.exports=op});var so=u(($b,oo)=>{"use strict";var sp=io(),ap=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,up=/\\(\\)?/g,fp=sp(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(ap,function(t,n,i,o){r.push(i?o.replace(up,"$1"):n||t)}),r});oo.exports=fp});var po=u((Bb,co)=>{"use strict";var ao=ie(),lp=ce(),cp=V(),pp=Fe(),dp=1/0,uo=ao?ao.prototype:void 0,fo=uo?uo.toString:void 0;function lo(e){if(typeof e=="string")return e;if(cp(e))return lp(e,lo)+"";if(pp(e))return fo?fo.call(e):"";var r=e+"";return r=="0"&&1/e==-dp?"-0":r}co.exports=lo});var ho=u((Hb,mo)=>{"use strict";var mp=po();function hp(e){return e==null?"":mp(e)}mo.exports=hp});var pr=u((Ub,go)=>{"use strict";var gp=V(),yp=Qi(),bp=so(),Op=ho();function Sp(e,r){return gp(e)?e:yp(e,r)?[e]:bp(Op(e))}go.exports=Sp});var dr=u((Gb,yo)=>{"use strict";var xp=Fe(),Ep=1/0;function vp(e){if(typeof e=="string"||xp(e))return e;var r=e+"";return r=="0"&&1/e==-Ep?"-0":r}yo.exports=vp});var Oo=u((zb,bo)=>{"use strict";var Tp=pr(),wp=dr();function Ip(e,r){r=Tp(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[wp(r[t++])];return t&&t==n?e:void 0}bo.exports=Ip});var xo=u((kb,So)=>{"use strict";var Ap=Oo();function qp(e,r,t){var n=e==null?void 0:Ap(e,r);return n===void 0?t:n}So.exports=qp});var To=u((Wb,vo)=>{"use strict";var Cp=ir(),jp=or(),_p=sr(),Rp=ce(),Vp=je(),Eo=ar(),Jp=Math.min;function Fp(e,r,t){for(var n=t?_p:jp,i=e[0].length,o=e.length,s=o,a=Array(o),f=1/0,l=[];s--;){var c=e[s];s&&r&&(c=Rp(c,Vp(r))),f=Jp(c.length,f),a[s]=!t&&(r||i>=120&&c.length>=120)?new Cp(s&&c):void 0}c=e[0];var p=-1,d=a[0];e:for(;++p<i&&l.length<f;){var m=c[p],h=r?r(m):m;if(m=t||m!==0?m:0,!(d?Eo(d,h):n(l,h,t))){for(s=o;--s;){var w=a[s];if(!(w?Eo(w,h):n(e[s],h,t)))continue e}d&&d.push(h),l.push(m)}}return l}vo.exports=Fp});var Io=u((Kb,wo)=>{"use strict";var Pp=Je();function Np(e){return Pp(e)?e:[]}wo.exports=Np});var qo=u((Yb,Ao)=>{"use strict";var Mp=ce(),Lp=To(),Dp=Re(),$p=Io(),Bp=Dp(function(e){var r=Mp(e,$p);return r.length&&r[0]===e[0]?Lp(r):[]});Ao.exports=Bp});var jo=u((Xb,Co)=>{"use strict";var Hp=fe();function Up(){this.__data__=new Hp,this.size=0}Co.exports=Up});var Ro=u((Zb,_o)=>{"use strict";function Gp(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}_o.exports=Gp});var Jo=u((Qb,Vo)=>{"use strict";function zp(e){return this.__data__.get(e)}Vo.exports=zp});var Po=u((eO,Fo)=>{"use strict";function kp(e){return this.__data__.has(e)}Fo.exports=kp});var Mo=u((rO,No)=>{"use strict";var Wp=fe(),Kp=nr(),Yp=qe(),Xp=200;function Zp(e,r){var t=this.__data__;if(t instanceof Wp){var n=t.__data__;if(!Kp||n.length<Xp-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Yp(n)}return t.set(e,r),this.size=t.size,this}No.exports=Zp});var Do=u((tO,Lo)=>{"use strict";var Qp=fe(),ed=jo(),rd=Ro(),td=Jo(),nd=Po(),id=Mo();function U(e){var r=this.__data__=new Qp(e);this.size=r.size}U.prototype.clear=ed;U.prototype.delete=rd;U.prototype.get=td;U.prototype.has=nd;U.prototype.set=id;Lo.exports=U});var Pe=u((nO,Bo)=>{"use strict";var $o=fr();function od(e,r,t){r=="__proto__"&&$o?$o(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}Bo.exports=od});var mr=u((iO,Ho)=>{"use strict";var sd=Pe(),ad=ae();function ud(e,r,t){(t!==void 0&&!ad(e[r],t)||t===void 0&&!(r in e))&&sd(e,r,t)}Ho.exports=ud});var Go=u((oO,Uo)=>{"use strict";function fd(e){return function(r,t,n){for(var i=-1,o=Object(r),s=n(r),a=s.length;a--;){var f=s[e?a:++i];if(t(o[f],f,o)===!1)break}return r}}Uo.exports=fd});var ko=u((sO,zo)=>{"use strict";var ld=Go(),cd=ld();zo.exports=cd});var Zo=u((pe,G)=>{"use strict";var pd=_(),Xo=typeof pe=="object"&&pe&&!pe.nodeType&&pe,Wo=Xo&&typeof G=="object"&&G&&!G.nodeType&&G,dd=Wo&&Wo.exports===Xo,Ko=dd?pd.Buffer:void 0,Yo=Ko?Ko.allocUnsafe:void 0;function md(e,r){if(r)return e.slice();var t=e.length,n=Yo?Yo(t):new e.constructor(t);return e.copy(n),n}G.exports=md});var es=u((aO,Qo)=>{"use strict";var hd=_(),gd=hd.Uint8Array;Qo.exports=gd});var ns=u((uO,ts)=>{"use strict";var rs=es();function yd(e){var r=new e.constructor(e.byteLength);return new rs(r).set(new rs(e)),r}ts.exports=yd});var os=u((fO,is)=>{"use strict";var bd=ns();function Od(e,r){var t=r?bd(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}is.exports=Od});var as=u((lO,ss)=>{"use strict";function Sd(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}ss.exports=Sd});var ls=u((cO,fs)=>{"use strict";var xd=T(),us=Object.create,Ed=function(){function e(){}return function(r){if(!xd(r))return{};if(us)return us(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}();fs.exports=Ed});var ps=u((pO,cs)=>{"use strict";function vd(e,r){return function(t){return e(r(t))}}cs.exports=vd});var hr=u((dO,ds)=>{"use strict";var Td=ps(),wd=Td(Object.getPrototypeOf,Object);ds.exports=wd});var gr=u((mO,ms)=>{"use strict";var Id=Object.prototype;function Ad(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Id;return e===t}ms.exports=Ad});var gs=u((hO,hs)=>{"use strict";var qd=ls(),Cd=hr(),jd=gr();function _d(e){return typeof e.constructor=="function"&&!jd(e)?qd(Cd(e)):{}}hs.exports=_d});var bs=u((gO,ys)=>{"use strict";function Rd(){return!1}ys.exports=Rd});var yr=u((de,z)=>{"use strict";var Vd=_(),Jd=bs(),xs=typeof de=="object"&&de&&!de.nodeType&&de,Os=xs&&typeof z=="object"&&z&&!z.nodeType&&z,Fd=Os&&Os.exports===xs,Ss=Fd?Vd.Buffer:void 0,Pd=Ss?Ss.isBuffer:void 0,Nd=Pd||Jd;z.exports=Nd});var Ts=u((yO,vs)=>{"use strict";var Md=D(),Ld=hr(),Dd=R(),$d="[object Object]",Bd=Function.prototype,Hd=Object.prototype,Es=Bd.toString,Ud=Hd.hasOwnProperty,Gd=Es.call(Object);function zd(e){if(!Dd(e)||Md(e)!=$d)return!1;var r=Ld(e);if(r===null)return!0;var t=Ud.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Es.call(t)==Gd}vs.exports=zd});var Is=u((bO,ws)=>{"use strict";var kd=D(),Wd=lr(),Kd=R(),Yd="[object Arguments]",Xd="[object Array]",Zd="[object Boolean]",Qd="[object Date]",em="[object Error]",rm="[object Function]",tm="[object Map]",nm="[object Number]",im="[object Object]",om="[object RegExp]",sm="[object Set]",am="[object String]",um="[object WeakMap]",fm="[object ArrayBuffer]",lm="[object DataView]",cm="[object Float32Array]",pm="[object Float64Array]",dm="[object Int8Array]",mm="[object Int16Array]",hm="[object Int32Array]",gm="[object Uint8Array]",ym="[object Uint8ClampedArray]",bm="[object Uint16Array]",Om="[object Uint32Array]",y={};y[cm]=y[pm]=y[dm]=y[mm]=y[hm]=y[gm]=y[ym]=y[bm]=y[Om]=!0;y[Yd]=y[Xd]=y[fm]=y[Zd]=y[lm]=y[Qd]=y[em]=y[rm]=y[tm]=y[nm]=y[im]=y[om]=y[sm]=y[am]=y[um]=!1;function Sm(e){return Kd(e)&&Wd(e.length)&&!!y[kd(e)]}ws.exports=Sm});var qs=u((me,k)=>{"use strict";var xm=rr(),As=typeof me=="object"&&me&&!me.nodeType&&me,he=As&&typeof k=="object"&&k&&!k.nodeType&&k,Em=he&&he.exports===As,br=Em&&xm.process,vm=function(){try{var e=he&&he.require&&he.require("util").types;return e||br&&br.binding&&br.binding("util")}catch{}}();k.exports=vm});var Or=u((OO,_s)=>{"use strict";var Tm=Is(),wm=je(),Cs=qs(),js=Cs&&Cs.isTypedArray,Im=js?wm(js):Tm;_s.exports=Im});var Sr=u((SO,Rs)=>{"use strict";function Am(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}Rs.exports=Am});var xr=u((xO,Vs)=>{"use strict";var qm=Pe(),Cm=ae(),jm=Object.prototype,_m=jm.hasOwnProperty;function Rm(e,r,t){var n=e[r];(!(_m.call(e,r)&&Cm(n,t))||t===void 0&&!(r in e))&&qm(e,r,t)}Vs.exports=Rm});var Fs=u((EO,Js)=>{"use strict";var Vm=xr(),Jm=Pe();function Fm(e,r,t,n){var i=!t;t||(t={});for(var o=-1,s=r.length;++o<s;){var a=r[o],f=n?n(t[a],e[a],a,t,e):void 0;f===void 0&&(f=e[a]),i?Jm(t,a,f):Vm(t,a,f)}return t}Js.exports=Fm});var Ns=u((vO,Ps)=>{"use strict";function Pm(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}Ps.exports=Pm});var Ne=u((TO,Ms)=>{"use strict";var Nm=9007199254740991,Mm=/^(?:0|[1-9]\d*)$/;function Lm(e,r){var t=typeof e;return r=r??Nm,!!r&&(t=="number"||t!="symbol"&&Mm.test(e))&&e>-1&&e%1==0&&e<r}Ms.exports=Lm});var Ds=u((wO,Ls)=>{"use strict";var Dm=Ns(),$m=_e(),Bm=V(),Hm=yr(),Um=Ne(),Gm=Or(),zm=Object.prototype,km=zm.hasOwnProperty;function Wm(e,r){var t=Bm(e),n=!t&&$m(e),i=!t&&!n&&Hm(e),o=!t&&!n&&!i&&Gm(e),s=t||n||i||o,a=s?Dm(e.length,String):[],f=a.length;for(var l in e)(r||km.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Um(l,f)))&&a.push(l);return a}Ls.exports=Wm});var Bs=u((IO,$s)=>{"use strict";function Km(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}$s.exports=Km});var Us=u((AO,Hs)=>{"use strict";var Ym=T(),Xm=gr(),Zm=Bs(),Qm=Object.prototype,eh=Qm.hasOwnProperty;function rh(e){if(!Ym(e))return Zm(e);var r=Xm(e),t=[];for(var n in e)n=="constructor"&&(r||!eh.call(e,n))||t.push(n);return t}Hs.exports=rh});var Er=u((qO,Gs)=>{"use strict";var th=Ds(),nh=Us(),ih=Ve();function oh(e){return ih(e)?th(e,!0):nh(e)}Gs.exports=oh});var ks=u((CO,zs)=>{"use strict";var sh=Fs(),ah=Er();function uh(e){return sh(e,ah(e))}zs.exports=uh});var Qs=u((jO,Zs)=>{"use strict";var Ws=mr(),fh=Zo(),lh=os(),ch=as(),ph=gs(),Ks=_e(),Ys=V(),dh=Je(),mh=yr(),hh=Ie(),gh=T(),yh=Ts(),bh=Or(),Xs=Sr(),Oh=ks();function Sh(e,r,t,n,i,o,s){var a=Xs(e,t),f=Xs(r,t),l=s.get(f);if(l){Ws(e,t,l);return}var c=o?o(a,f,t+"",e,r,s):void 0,p=c===void 0;if(p){var d=Ys(f),m=!d&&mh(f),h=!d&&!m&&bh(f);c=f,d||m||h?Ys(a)?c=a:dh(a)?c=ch(a):m?(p=!1,c=fh(f,!0)):h?(p=!1,c=lh(f,!0)):c=[]:yh(f)||Ks(f)?(c=a,Ks(a)?c=Oh(a):(!gh(a)||hh(a))&&(c=ph(f))):p=!1}p&&(s.set(f,c),i(c,f,n,o,s),s.delete(f)),Ws(e,t,c)}Zs.exports=Sh});var vr=u((_O,ra)=>{"use strict";var xh=Do(),Eh=mr(),vh=ko(),Th=Qs(),wh=T(),Ih=Er(),Ah=Sr();function ea(e,r,t,n,i){e!==r&&vh(r,function(o,s){if(i||(i=new xh),wh(o))Th(e,r,s,t,ea,n,i);else{var a=n?n(Ah(e,s),o,s+"",e,r,i):void 0;a===void 0&&(a=o),Eh(e,s,a)}},Ih)}ra.exports=ea});var na=u((RO,ta)=>{"use strict";var qh=ae(),Ch=Ve(),jh=Ne(),_h=T();function Rh(e,r,t){if(!_h(t))return!1;var n=typeof r;return(n=="number"?Ch(t)&&jh(r,t.length):n=="string"&&r in t)?qh(t[r],e):!1}ta.exports=Rh});var Tr=u((VO,ia)=>{"use strict";var Vh=Re(),Jh=na();function Fh(e){return Vh(function(r,t){var n=-1,i=t.length,o=i>1?t[i-1]:void 0,s=i>2?t[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&Jh(t[0],t[1],s)&&(o=i<3?void 0:o,i=1),r=Object(r);++n<i;){var a=t[n];a&&e(r,a,n,o)}return r})}ia.exports=Fh});var sa=u((JO,oa)=>{"use strict";var Ph=vr(),Nh=Tr(),Mh=Nh(function(e,r,t){Ph(e,r,t)});oa.exports=Mh});var ua=u((FO,aa)=>{"use strict";var Lh=vr(),Dh=Tr(),$h=Dh(function(e,r,t,n){Lh(e,r,t,n)});aa.exports=$h});var ca=u((PO,la)=>{"use strict";var Bh=xr(),Hh=pr(),Uh=Ne(),fa=T(),Gh=dr();function zh(e,r,t,n){if(!fa(e))return e;r=Hh(r,e);for(var i=-1,o=r.length,s=o-1,a=e;a!=null&&++i<o;){var f=Gh(r[i]),l=t;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(i!=s){var c=a[f];l=n?n(c,f,a):void 0,l===void 0&&(l=fa(c)?c:Uh(r[i+1])?[]:{})}Bh(a,f,l),a=a[f]}return e}la.exports=zh});var da=u((NO,pa)=>{"use strict";var kh=ca();function Wh(e,r,t){return e==null?e:kh(e,r,t)}pa.exports=Wh});var Kr=I($r(),1);function Hr(e){if(e===0)return 0;let r=e/1024;return Number.parseFloat(r.toFixed(2))}var Aa=["if","then","else"];function N(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function qa(e,r){switch(e){case"options":case"enum":return!0;case"oneOf":case"anyOf":return r.length>0&&r.every(t=>N(t)&&"const"in t);default:return!1}}function Se(e){if(N(e)){let r=e;if("const"in r)return r.const;if("value"in r)return r.value}return e}var Br=!1;function Ca(e){Br||(Br=!0,console.warn(`[json-schema-form] A conditional branch introduces option(s) not present on the base field: ${JSON.stringify(e)}. This currently works but is deprecated and will be disallowed in a future major version. Set \`disallowNewConditionalOptions: true\` to opt into the new behavior now. (see PR #265)`))}function Ge(e,r,t){if(!e||!r||typeof e!="object"||typeof r!="object")return;let{disallowNewConditionalOptions:n=!1}=t??{};for(let[i,o]of Object.entries(r)){if(Aa.includes(i))continue;let s=e[i];if(qa(i,o)){if(n){if(!Array.isArray(s)){e[i]=o;continue}let a=new Set(s.map(f=>Se(f)));e[i]=o.filter(f=>a.has(Se(f)));continue}else if(Array.isArray(s)){let a=new Set(s.map(l=>Se(l))),f=o.map(l=>Se(l)).filter(l=>!a.has(l));f.length>0&&Ca(f)}}if(N(o))N(s)?Ge(s,o,t):s!==o&&(e[i]=o);else if(s&&Array.isArray(o))if(i==="required")for(let a of o)s.includes(a)||s.push(a);else e[i]=o;else e[i]!==o&&(e[i]=o)}}function ze(e,r){for(let[t,n]of Object.entries(r)){let i=e[t];N(n)&&N(i)?ze(i,n):i!==n&&(e[t]=n)}}var Ur="yyyy-MM-dd";function Gr(e,r){let t=new Date(e).getTime(),n=new Date(r).getTime();return t<n?"LESSER":t>n?"GREATER":"EQUAL"}function ja(e,r){let t=Gr(e,r);return t==="GREATER"||t==="EQUAL"}function _a(e,r){let t=Gr(e,r);return t==="LESSER"||t==="EQUAL"}function zr(e,r,t,n=[]){let i=typeof e=="string",o=e==="",s=e===void 0||e===null&&t.treatNullAsUndefined,a=o||s,f=[];if(!i||a||r["x-jsf-presentation"]===void 0)return f;let{minDate:l,maxDate:c}=r["x-jsf-presentation"];return l&&!ja(e,l)&&f.push({path:n,validation:"minDate",schema:r,value:e}),c&&!_a(e,c)&&f.push({path:n,validation:"maxDate",schema:r,value:e}),f}function kr(e){return e["x-jsf-presentation"]?.inputType==="checkbox"}var Wr="Please acknowledge this field";function Yr(e,r,t,n){let i=e["x-jsf-presentation"];switch(t){case"type":return Ra(e.type);case"required":return kr(e)?Wr:"Required field";case"forbidden":return"Not allowed";case"const":return kr(e)&&r===!1?Wr:`The only accepted value is ${JSON.stringify(e.const)}.`;case"enum":return`The option "${ke(r)}" is not valid.`;case"oneOf":return`The option "${ke(r)}" is not valid.`;case"anyOf":return`The option "${ke(r)}" is not valid.`;case"not":return"The value must not satisfy the provided schema";case"minLength":return`Please insert at least ${e.minLength} characters`;case"maxLength":return`Please insert up to ${e.maxLength} characters`;case"pattern":return`Must have a valid format. E.g. ${(0,Kr.randexp)(e.pattern||"")}`;case"format":if(e.format==="email")return"Please enter a valid email address";if(e.format==="date"){let o=new Date().toISOString().split("T")[0];return`Must be a valid date in ${Ur.toLowerCase()} format. e.g. ${o}`}return`Must be a valid ${e.format} format`;case"multipleOf":return`Must be a multiple of ${e.multipleOf}`;case"maximum":return`Must be smaller or equal to ${e.maximum}`;case"exclusiveMaximum":return`Must be smaller than ${e.exclusiveMaximum}`;case"minimum":return`Must be greater or equal to ${e.minimum}`;case"exclusiveMinimum":return`Must be greater than ${e.exclusiveMinimum}`;case"minDate":return`The date must be ${i?.minDate} or after.`;case"maxDate":return`The date must be ${i?.maxDate} or before.`;case"fileStructure":return"Not a valid file.";case"maxFileSize":{let o=i?.maxFileSize,s=typeof o=="number"?Hr(o):void 0;return`File size too large.${s?` The limit is ${s} MB.`:""}`}case"accept":{let o=i?.accept;return`Unsupported file format.${o?` The acceptable formats are ${o}.`:""}`}case"minItems":{let o=e.minItems===1?"item":"items";return`Must have at least ${e.minItems} ${o}`}case"maxItems":{let o=e.maxItems===1?"item":"items";return`Must have at most ${e.maxItems} ${o}`}case"uniqueItems":return"Items must be unique";case"contains":throw new Error('"contains" is not implemented yet');case"minContains":throw new Error('"minContains" is not implemented yet');case"maxContains":throw new Error('"maxContains" is not implemented yet');case"additionalProperties":return"Additional property is not allowed";case"json-logic":return n||"The value is not valid"}}function Ra(e){if(Array.isArray(e))return`The value must be a ${e.map(t=>t==="integer"?"number":t).join(" or ")}`;switch(e){case"number":case"integer":return"The value must be a number";case"boolean":return"The value must be a boolean";case"null":return"The value must be null";case"string":return"The value must be a string";case"object":return"The value must be an object";case"array":return"The value must be an array";default:return e?`The value must be ${e}`:"Invalid value"}}function ke(e){return typeof e=="string"?e:JSON.stringify(e)}var it=I(et(),1);function za(e,r){let t={};return r.forEach((i,o)=>{t[i]=o}),e.sort((i,o)=>{let s=t[i.name]??1/0,a=t[o.name]??1/0;return s!==a?s-a:e.indexOf(i)-e.indexOf(o)})}function We(e,r){if(typeof e=="boolean")throw new TypeError("Schema must be an object");return e["x-jsf-order"]!==void 0?za(r,e["x-jsf-order"]):r}function ka(e,r,t){r.checkboxValue=t.const,(Array.isArray(t.type)?t.type.includes("boolean"):t.type==="boolean")&&(r.checkboxValue=!0)}function Wa(e,r){if(e.options===void 0){let t=Xa(r);t&&(e.options=t,r.type==="array"&&(e.multiple=!0))}}function rt(e,r,t,n){if(e.options===void 0){let i=eu(r,t,n);i&&(e.fields=i)}}function Ka(e,r){if(!e)return"text";switch(e){case"string":{let{oneOf:t,format:n}=r;return n==="email"?"email":n==="date"?"date":n==="data-url"?"file":t?"radio":"text"}case"number":case"integer":return"number";case"object":return"fieldset";case"array":{let{items:t}=r;return t?.properties?"group-array":"select"}case"boolean":return"checkbox";default:return"text"}}function tt(e,r,t,n){let i=t["x-jsf-presentation"];if(i?.inputType)return i.inputType;if(n&&r!=="root")throw new Error(`Strict error: Missing inputType to field "${t.title}".
1
+ var ba=Object.create;var jr=Object.defineProperty;var Oa=Object.getOwnPropertyDescriptor;var Sa=Object.getOwnPropertyNames;var xa=Object.getPrototypeOf,Ea=Object.prototype.hasOwnProperty;var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var va=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Sa(r))!Ea.call(e,i)&&i!==t&&jr(e,i,{get:()=>r[i],enumerable:!(n=Oa(r,i))||n.enumerable});return e};var I=(e,r,t)=>(t=e!=null?ba(xa(e)):{},va(r||!e||!e.__esModule?jr(t,"default",{value:e,enumerable:!0}):t,e));var Y=u((rg,_r)=>{"use strict";_r.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}});var Be=u(A=>{"use strict";var g=Y(),$e=()=>[{type:g.RANGE,from:48,to:57}],Rr=()=>[{type:g.CHAR,value:95},{type:g.RANGE,from:97,to:122},{type:g.RANGE,from:65,to:90}].concat($e()),Vr=()=>[{type:g.CHAR,value:9},{type:g.CHAR,value:10},{type:g.CHAR,value:11},{type:g.CHAR,value:12},{type:g.CHAR,value:13},{type:g.CHAR,value:32},{type:g.CHAR,value:160},{type:g.CHAR,value:5760},{type:g.RANGE,from:8192,to:8202},{type:g.CHAR,value:8232},{type:g.CHAR,value:8233},{type:g.CHAR,value:8239},{type:g.CHAR,value:8287},{type:g.CHAR,value:12288},{type:g.CHAR,value:65279}],Ta=()=>[{type:g.CHAR,value:10},{type:g.CHAR,value:13},{type:g.CHAR,value:8232},{type:g.CHAR,value:8233}];A.words=()=>({type:g.SET,set:Rr(),not:!1});A.notWords=()=>({type:g.SET,set:Rr(),not:!0});A.ints=()=>({type:g.SET,set:$e(),not:!1});A.notInts=()=>({type:g.SET,set:$e(),not:!0});A.whitespace=()=>({type:g.SET,set:Vr(),not:!1});A.notWhitespace=()=>({type:g.SET,set:Vr(),not:!0});A.anyChar=()=>({type:g.SET,set:Ta(),not:!0})});var Fr=u(X=>{"use strict";var Jr=Y(),J=Be(),wa="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",Ia={0:0,t:9,n:10,v:11,f:12,r:13};X.strToChars=function(e){var r=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return e=e.replace(r,function(t,n,i,o,s,a,f,l){if(i)return t;var c=n?8:o?parseInt(o,16):s?parseInt(s,16):a?parseInt(a,8):f?wa.indexOf(f):Ia[l],p=String.fromCharCode(c);return/[[\]{}^$.|?*+()]/.test(p)&&(p="\\"+p),p}),e};X.tokenizeClass=(e,r)=>{for(var t=[],n=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,i,o;(i=n.exec(e))!=null;)if(i[1])t.push(J.words());else if(i[2])t.push(J.ints());else if(i[3])t.push(J.whitespace());else if(i[4])t.push(J.notWords());else if(i[5])t.push(J.notInts());else if(i[6])t.push(J.notWhitespace());else if(i[7])t.push({type:Jr.RANGE,from:(i[8]||i[9]).charCodeAt(0),to:i[10].charCodeAt(0)});else if(o=i[12])t.push({type:Jr.CHAR,value:o.charCodeAt(0)});else return[t,n.lastIndex];X.error(r,"Unterminated character class")};X.error=(e,r)=>{throw new SyntaxError("Invalid regular expression: /"+e+"/: "+r)}});var Pr=u(Z=>{"use strict";var ye=Y();Z.wordBoundary=()=>({type:ye.POSITION,value:"b"});Z.nonWordBoundary=()=>({type:ye.POSITION,value:"B"});Z.begin=()=>({type:ye.POSITION,value:"^"});Z.end=()=>({type:ye.POSITION,value:"$"})});var Nr=u((og,He)=>{"use strict";var F=Fr(),E=Y(),q=Be(),be=Pr();He.exports=e=>{var r=0,t,n,i={type:E.ROOT,stack:[]},o=i,s=i.stack,a=[],f=De=>{F.error(e,`Nothing to repeat at column ${De-1}`)},l=F.strToChars(e);for(t=l.length;r<t;)switch(n=l[r++],n){case"\\":switch(n=l[r++],n){case"b":s.push(be.wordBoundary());break;case"B":s.push(be.nonWordBoundary());break;case"w":s.push(q.words());break;case"W":s.push(q.notWords());break;case"d":s.push(q.ints());break;case"D":s.push(q.notInts());break;case"s":s.push(q.whitespace());break;case"S":s.push(q.notWhitespace());break;default:/\d/.test(n)?s.push({type:E.REFERENCE,value:parseInt(n,10)}):s.push({type:E.CHAR,value:n.charCodeAt(0)})}break;case"^":s.push(be.begin());break;case"$":s.push(be.end());break;case"[":var c;l[r]==="^"?(c=!0,r++):c=!1;var p=F.tokenizeClass(l.slice(r),e);r+=p[1],s.push({type:E.SET,set:p[0],not:c});break;case".":s.push(q.anyChar());break;case"(":var d={type:E.GROUP,stack:[],remember:!0};n=l[r],n==="?"&&(n=l[r+1],r+=2,n==="="?d.followedBy=!0:n==="!"?d.notFollowedBy=!0:n!==":"&&F.error(e,`Invalid group, character '${n}' after '?' at column ${r-1}`),d.remember=!1),s.push(d),a.push(o),o=d,s=d.stack;break;case")":a.length===0&&F.error(e,`Unmatched ) at column ${r-1}`),o=a.pop(),s=o.options?o.options[o.options.length-1]:o.stack;break;case"|":o.options||(o.options=[o.stack],delete o.stack);var m=[];o.options.push(m),s=m;break;case"{":var h=/^(\d+)(,(\d+)?)?\}/.exec(l.slice(r)),w,ge;h!==null?(s.length===0&&f(r),w=parseInt(h[1],10),ge=h[2]?h[3]?parseInt(h[3],10):1/0:w,r+=h[0].length,s.push({type:E.REPETITION,min:w,max:ge,value:s.pop()})):s.push({type:E.CHAR,value:123});break;case"?":s.length===0&&f(r),s.push({type:E.REPETITION,min:0,max:1,value:s.pop()});break;case"+":s.length===0&&f(r),s.push({type:E.REPETITION,min:1,max:1/0,value:s.pop()});break;case"*":s.length===0&&f(r),s.push({type:E.REPETITION,min:0,max:1/0,value:s.pop()});break;default:s.push({type:E.CHAR,value:n.charCodeAt(0)})}return a.length!==0&&F.error(e,"Unterminated group"),i};He.exports.types=E});var Lr=u((sg,Mr)=>{"use strict";var P=class e{constructor(r,t){this.low=r,this.high=t,this.length=1+t-r}overlaps(r){return!(this.high<r.low||this.low>r.high)}touches(r){return!(this.high+1<r.low||this.low-1>r.high)}add(r){return new e(Math.min(this.low,r.low),Math.max(this.high,r.high))}subtract(r){return r.low<=this.low&&r.high>=this.high?[]:r.low>this.low&&r.high<this.high?[new e(this.low,r.low-1),new e(r.high+1,this.high)]:r.low<=this.low?[new e(r.high+1,this.high)]:[new e(this.low,r.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}},Ue=class e{constructor(r,t){this.ranges=[],this.length=0,r!=null&&this.add(r,t)}_update_length(){this.length=this.ranges.reduce((r,t)=>r+t.length,0)}add(r,t){var n=i=>{for(var o=0;o<this.ranges.length&&!i.touches(this.ranges[o]);)o++;for(var s=this.ranges.slice(0,o);o<this.ranges.length&&i.touches(this.ranges[o]);)i=i.add(this.ranges[o]),o++;s.push(i),this.ranges=s.concat(this.ranges.slice(o)),this._update_length()};return r instanceof e?r.ranges.forEach(n):(t==null&&(t=r),n(new P(r,t))),this}subtract(r,t){var n=i=>{for(var o=0;o<this.ranges.length&&!i.overlaps(this.ranges[o]);)o++;for(var s=this.ranges.slice(0,o);o<this.ranges.length&&i.overlaps(this.ranges[o]);)s=s.concat(this.ranges[o].subtract(i)),o++;this.ranges=s.concat(this.ranges.slice(o)),this._update_length()};return r instanceof e?r.ranges.forEach(n):(t==null&&(t=r),n(new P(r,t))),this}intersect(r,t){var n=[],i=o=>{for(var s=0;s<this.ranges.length&&!o.overlaps(this.ranges[s]);)s++;for(;s<this.ranges.length&&o.overlaps(this.ranges[s]);){var a=Math.max(this.ranges[s].low,o.low),f=Math.min(this.ranges[s].high,o.high);n.push(new P(a,f)),s++}};return r instanceof e?r.ranges.forEach(i):(t==null&&(t=r),i(new P(r,t))),this.ranges=n,this._update_length(),this}index(r){for(var t=0;t<this.ranges.length&&this.ranges[t].length<=r;)r-=this.ranges[t].length,t++;return this.ranges[t].low+r}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new e(this)}numbers(){return this.ranges.reduce((r,t)=>{for(var n=t.low;n<=t.high;)r.push(n),n++;return r},[])}subranges(){return this.ranges.map(r=>({low:r.low,high:r.high,length:1+r.high-r.low}))}};Mr.exports=Ue});var $r=u((ag,Dr)=>{"use strict";var Oe=Nr(),Q=Lr(),C=Oe.types;Dr.exports=class ee{constructor(r,t){if(this._setDefaults(r),r instanceof RegExp)this.ignoreCase=r.ignoreCase,this.multiline=r.multiline,r=r.source;else if(typeof r=="string")this.ignoreCase=t&&t.indexOf("i")!==-1,this.multiline=t&&t.indexOf("m")!==-1;else throw new Error("Expected a regexp or string");this.tokens=Oe(r)}_setDefaults(r){this.max=r.max!=null?r.max:ee.prototype.max!=null?ee.prototype.max:100,this.defaultRange=r.defaultRange?r.defaultRange:this.defaultRange.clone(),r.randInt&&(this.randInt=r.randInt)}gen(){return this._gen(this.tokens,[])}_gen(r,t){var n,i,o,s,a;switch(r.type){case C.ROOT:case C.GROUP:if(r.followedBy||r.notFollowedBy)return"";for(r.remember&&r.groupNumber===void 0&&(r.groupNumber=t.push(null)-1),n=r.options?this._randSelect(r.options):r.stack,i="",s=0,a=n.length;s<a;s++)i+=this._gen(n[s],t);return r.remember&&(t[r.groupNumber]=i),i;case C.POSITION:return"";case C.SET:var f=this._expand(r);return f.length?String.fromCharCode(this._randSelect(f)):"";case C.REPETITION:for(o=this.randInt(r.min,r.max===1/0?r.min+this.max:r.max),i="",s=0;s<o;s++)i+=this._gen(r.value,t);return i;case C.REFERENCE:return t[r.value-1]||"";case C.CHAR:var l=this.ignoreCase&&this._randBool()?this._toOtherCase(r.value):r.value;return String.fromCharCode(l)}}_toOtherCase(r){return r+(97<=r&&r<=122?-32:65<=r&&r<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(r){return r instanceof Q?r.index(this.randInt(0,r.length-1)):r[this.randInt(0,r.length-1)]}_expand(r){if(r.type===Oe.types.CHAR)return new Q(r.value);if(r.type===Oe.types.RANGE)return new Q(r.from,r.to);{let t=new Q;for(let n=0;n<r.set.length;n++){let i=this._expand(r.set[n]);if(t.add(i),this.ignoreCase)for(let o=0;o<i.length;o++){let s=i.index(o),a=this._toOtherCase(s);s!==a&&t.add(a)}}return r.not?this.defaultRange.clone().subtract(t):this.defaultRange.clone().intersect(t)}}randInt(r,t){return r+Math.floor(Math.random()*(1+t-r))}get defaultRange(){return this._range=this._range||new Q(32,126)}set defaultRange(r){this._range=r}static randexp(r,t){var n;return typeof r=="string"&&(r=new RegExp(r,t)),r._randexp===void 0?(n=new ee(r,t),r._randexp=n):(n=r._randexp,n._setDefaults(r)),n.gen()}static sugar(){RegExp.prototype.gen=function(){return ee.randexp(this)}}}});var et=u((dg,Qr)=>{"use strict";var Va=function(r){return Ja(r)&&!Fa(r)};function Ja(e){return!!e&&typeof e=="object"}function Fa(e){var r=Object.prototype.toString.call(e);return r==="[object RegExp]"||r==="[object Date]"||Ma(e)}var Pa=typeof Symbol=="function"&&Symbol.for,Na=Pa?Symbol.for("react.element"):60103;function Ma(e){return e.$$typeof===Na}function La(e){return Array.isArray(e)?[]:{}}function re(e,r){return r.clone!==!1&&r.isMergeableObject(e)?M(La(e),e,r):e}function Da(e,r,t){return e.concat(r).map(function(n){return re(n,t)})}function $a(e,r){if(!r.customMerge)return M;var t=r.customMerge(e);return typeof t=="function"?t:M}function Ba(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return Object.propertyIsEnumerable.call(e,r)}):[]}function Xr(e){return Object.keys(e).concat(Ba(e))}function Zr(e,r){try{return r in e}catch{return!1}}function Ha(e,r){return Zr(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))}function Ua(e,r,t){var n={};return t.isMergeableObject(e)&&Xr(e).forEach(function(i){n[i]=re(e[i],t)}),Xr(r).forEach(function(i){Ha(e,i)||(Zr(e,i)&&t.isMergeableObject(r[i])?n[i]=$a(i,t)(e[i],r[i],t):n[i]=re(r[i],t))}),n}function M(e,r,t){t=t||{},t.arrayMerge=t.arrayMerge||Da,t.isMergeableObject=t.isMergeableObject||Va,t.cloneUnlessOtherwiseSpecified=re;var n=Array.isArray(r),i=Array.isArray(e),o=n===i;return o?n?t.arrayMerge(e,r,t):Ua(e,r,t):re(r,t)}M.all=function(r,t){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(n,i){return M(n,i,t)},{})};var Ga=M;Qr.exports=Ga});var rr=u((Sy,jt)=>{"use strict";var vu=typeof global=="object"&&global&&global.Object===Object&&global;jt.exports=vu});var _=u((xy,_t)=>{"use strict";var Tu=rr(),wu=typeof self=="object"&&self&&self.Object===Object&&self,Iu=Tu||wu||Function("return this")();_t.exports=Iu});var ie=u((Ey,Rt)=>{"use strict";var Au=_(),qu=Au.Symbol;Rt.exports=qu});var Pt=u((vy,Ft)=>{"use strict";var Vt=ie(),Jt=Object.prototype,Cu=Jt.hasOwnProperty,ju=Jt.toString,oe=Vt?Vt.toStringTag:void 0;function _u(e){var r=Cu.call(e,oe),t=e[oe];try{e[oe]=void 0;var n=!0}catch{}var i=ju.call(e);return n&&(r?e[oe]=t:delete e[oe]),i}Ft.exports=_u});var Mt=u((Ty,Nt)=>{"use strict";var Ru=Object.prototype,Vu=Ru.toString;function Ju(e){return Vu.call(e)}Nt.exports=Ju});var D=u((wy,$t)=>{"use strict";var Lt=ie(),Fu=Pt(),Pu=Mt(),Nu="[object Null]",Mu="[object Undefined]",Dt=Lt?Lt.toStringTag:void 0;function Lu(e){return e==null?e===void 0?Mu:Nu:Dt&&Dt in Object(e)?Fu(e):Pu(e)}$t.exports=Lu});var T=u((Iy,Bt)=>{"use strict";function Du(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}Bt.exports=Du});var Ie=u((Ay,Ht)=>{"use strict";var $u=D(),Bu=T(),Hu="[object AsyncFunction]",Uu="[object Function]",Gu="[object GeneratorFunction]",zu="[object Proxy]";function ku(e){if(!Bu(e))return!1;var r=$u(e);return r==Uu||r==Gu||r==Hu||r==zu}Ht.exports=ku});var Gt=u((qy,Ut)=>{"use strict";var Wu=_(),Ku=Wu["__core-js_shared__"];Ut.exports=Ku});var Wt=u((Cy,kt)=>{"use strict";var tr=Gt(),zt=function(){var e=/[^.]+$/.exec(tr&&tr.keys&&tr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yu(e){return!!zt&&zt in e}kt.exports=Yu});var Yt=u((jy,Kt)=>{"use strict";var Xu=Function.prototype,Zu=Xu.toString;function Qu(e){if(e!=null){try{return Zu.call(e)}catch{}try{return e+""}catch{}}return""}Kt.exports=Qu});var Zt=u((_y,Xt)=>{"use strict";var ef=Ie(),rf=Wt(),tf=T(),nf=Yt(),of=/[\\^$.*+?()[\]{}|]/g,sf=/^\[object .+?Constructor\]$/,af=Function.prototype,uf=Object.prototype,ff=af.toString,lf=uf.hasOwnProperty,cf=RegExp("^"+ff.call(lf).replace(of,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pf(e){if(!tf(e)||rf(e))return!1;var r=ef(e)?cf:sf;return r.test(nf(e))}Xt.exports=pf});var en=u((Ry,Qt)=>{"use strict";function df(e,r){return e?.[r]}Qt.exports=df});var Ae=u((Vy,rn)=>{"use strict";var mf=Zt(),hf=en();function gf(e,r){var t=hf(e,r);return mf(t)?t:void 0}rn.exports=gf});var se=u((Jy,tn)=>{"use strict";var yf=Ae(),bf=yf(Object,"create");tn.exports=bf});var sn=u((Fy,on)=>{"use strict";var nn=se();function Of(){this.__data__=nn?nn(null):{},this.size=0}on.exports=Of});var un=u((Py,an)=>{"use strict";function Sf(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}an.exports=Sf});var ln=u((Ny,fn)=>{"use strict";var xf=se(),Ef="__lodash_hash_undefined__",vf=Object.prototype,Tf=vf.hasOwnProperty;function wf(e){var r=this.__data__;if(xf){var t=r[e];return t===Ef?void 0:t}return Tf.call(r,e)?r[e]:void 0}fn.exports=wf});var pn=u((My,cn)=>{"use strict";var If=se(),Af=Object.prototype,qf=Af.hasOwnProperty;function Cf(e){var r=this.__data__;return If?r[e]!==void 0:qf.call(r,e)}cn.exports=Cf});var mn=u((Ly,dn)=>{"use strict";var jf=se(),_f="__lodash_hash_undefined__";function Rf(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=jf&&r===void 0?_f:r,this}dn.exports=Rf});var gn=u((Dy,hn)=>{"use strict";var Vf=sn(),Jf=un(),Ff=ln(),Pf=pn(),Nf=mn();function $(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}$.prototype.clear=Vf;$.prototype.delete=Jf;$.prototype.get=Ff;$.prototype.has=Pf;$.prototype.set=Nf;hn.exports=$});var bn=u(($y,yn)=>{"use strict";function Mf(){this.__data__=[],this.size=0}yn.exports=Mf});var ae=u((By,On)=>{"use strict";function Lf(e,r){return e===r||e!==e&&r!==r}On.exports=Lf});var ue=u((Hy,Sn)=>{"use strict";var Df=ae();function $f(e,r){for(var t=e.length;t--;)if(Df(e[t][0],r))return t;return-1}Sn.exports=$f});var En=u((Uy,xn)=>{"use strict";var Bf=ue(),Hf=Array.prototype,Uf=Hf.splice;function Gf(e){var r=this.__data__,t=Bf(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Uf.call(r,t,1),--this.size,!0}xn.exports=Gf});var Tn=u((Gy,vn)=>{"use strict";var zf=ue();function kf(e){var r=this.__data__,t=zf(r,e);return t<0?void 0:r[t][1]}vn.exports=kf});var In=u((zy,wn)=>{"use strict";var Wf=ue();function Kf(e){return Wf(this.__data__,e)>-1}wn.exports=Kf});var qn=u((ky,An)=>{"use strict";var Yf=ue();function Xf(e,r){var t=this.__data__,n=Yf(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}An.exports=Xf});var fe=u((Wy,Cn)=>{"use strict";var Zf=bn(),Qf=En(),el=Tn(),rl=In(),tl=qn();function B(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}B.prototype.clear=Zf;B.prototype.delete=Qf;B.prototype.get=el;B.prototype.has=rl;B.prototype.set=tl;Cn.exports=B});var nr=u((Ky,jn)=>{"use strict";var nl=Ae(),il=_(),ol=nl(il,"Map");jn.exports=ol});var Vn=u((Yy,Rn)=>{"use strict";var _n=gn(),sl=fe(),al=nr();function ul(){this.size=0,this.__data__={hash:new _n,map:new(al||sl),string:new _n}}Rn.exports=ul});var Fn=u((Xy,Jn)=>{"use strict";function fl(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Jn.exports=fl});var le=u((Zy,Pn)=>{"use strict";var ll=Fn();function cl(e,r){var t=e.__data__;return ll(r)?t[typeof r=="string"?"string":"hash"]:t.map}Pn.exports=cl});var Mn=u((Qy,Nn)=>{"use strict";var pl=le();function dl(e){var r=pl(this,e).delete(e);return this.size-=r?1:0,r}Nn.exports=dl});var Dn=u((eb,Ln)=>{"use strict";var ml=le();function hl(e){return ml(this,e).get(e)}Ln.exports=hl});var Bn=u((rb,$n)=>{"use strict";var gl=le();function yl(e){return gl(this,e).has(e)}$n.exports=yl});var Un=u((tb,Hn)=>{"use strict";var bl=le();function Ol(e,r){var t=bl(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}Hn.exports=Ol});var qe=u((nb,Gn)=>{"use strict";var Sl=Vn(),xl=Mn(),El=Dn(),vl=Bn(),Tl=Un();function H(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}H.prototype.clear=Sl;H.prototype.delete=xl;H.prototype.get=El;H.prototype.has=vl;H.prototype.set=Tl;Gn.exports=H});var kn=u((ib,zn)=>{"use strict";var wl="__lodash_hash_undefined__";function Il(e){return this.__data__.set(e,wl),this}zn.exports=Il});var Kn=u((ob,Wn)=>{"use strict";function Al(e){return this.__data__.has(e)}Wn.exports=Al});var ir=u((sb,Yn)=>{"use strict";var ql=qe(),Cl=kn(),jl=Kn();function Ce(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new ql;++r<t;)this.add(e[r])}Ce.prototype.add=Ce.prototype.push=Cl;Ce.prototype.has=jl;Yn.exports=Ce});var Zn=u((ab,Xn)=>{"use strict";function _l(e,r,t,n){for(var i=e.length,o=t+(n?1:-1);n?o--:++o<i;)if(r(e[o],o,e))return o;return-1}Xn.exports=_l});var ei=u((ub,Qn)=>{"use strict";function Rl(e){return e!==e}Qn.exports=Rl});var ti=u((fb,ri)=>{"use strict";function Vl(e,r,t){for(var n=t-1,i=e.length;++n<i;)if(e[n]===r)return n;return-1}ri.exports=Vl});var ii=u((lb,ni)=>{"use strict";var Jl=Zn(),Fl=ei(),Pl=ti();function Nl(e,r,t){return r===r?Pl(e,r,t):Jl(e,Fl,t)}ni.exports=Nl});var or=u((cb,oi)=>{"use strict";var Ml=ii();function Ll(e,r){var t=e==null?0:e.length;return!!t&&Ml(e,r,0)>-1}oi.exports=Ll});var sr=u((pb,si)=>{"use strict";function Dl(e,r,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(r,e[n]))return!0;return!1}si.exports=Dl});var ce=u((db,ai)=>{"use strict";function $l(e,r){for(var t=-1,n=e==null?0:e.length,i=Array(n);++t<n;)i[t]=r(e[t],t,e);return i}ai.exports=$l});var je=u((mb,ui)=>{"use strict";function Bl(e){return function(r){return e(r)}}ui.exports=Bl});var ar=u((hb,fi)=>{"use strict";function Hl(e,r){return e.has(r)}fi.exports=Hl});var ci=u((gb,li)=>{"use strict";var Ul=ir(),Gl=or(),zl=sr(),kl=ce(),Wl=je(),Kl=ar(),Yl=200;function Xl(e,r,t,n){var i=-1,o=Gl,s=!0,a=e.length,f=[],l=r.length;if(!a)return f;t&&(r=kl(r,Wl(t))),n?(o=zl,s=!1):r.length>=Yl&&(o=Kl,s=!1,r=new Ul(r));e:for(;++i<a;){var c=e[i],p=t==null?c:t(c);if(c=n||c!==0?c:0,s&&p===p){for(var d=l;d--;)if(r[d]===p)continue e;f.push(c)}else o(r,p,n)||f.push(c)}return f}li.exports=Xl});var di=u((yb,pi)=>{"use strict";function Zl(e,r){for(var t=-1,n=r.length,i=e.length;++t<n;)e[i+t]=r[t];return e}pi.exports=Zl});var R=u((bb,mi)=>{"use strict";function Ql(e){return e!=null&&typeof e=="object"}mi.exports=Ql});var gi=u((Ob,hi)=>{"use strict";var ec=D(),rc=R(),tc="[object Arguments]";function nc(e){return rc(e)&&ec(e)==tc}hi.exports=nc});var _e=u((Sb,Oi)=>{"use strict";var yi=gi(),ic=R(),bi=Object.prototype,oc=bi.hasOwnProperty,sc=bi.propertyIsEnumerable,ac=yi(function(){return arguments}())?yi:function(e){return ic(e)&&oc.call(e,"callee")&&!sc.call(e,"callee")};Oi.exports=ac});var V=u((xb,Si)=>{"use strict";var uc=Array.isArray;Si.exports=uc});var Ti=u((Eb,vi)=>{"use strict";var xi=ie(),fc=_e(),lc=V(),Ei=xi?xi.isConcatSpreadable:void 0;function cc(e){return lc(e)||fc(e)||!!(Ei&&e&&e[Ei])}vi.exports=cc});var Ai=u((vb,Ii)=>{"use strict";var pc=di(),dc=Ti();function wi(e,r,t,n,i){var o=-1,s=e.length;for(t||(t=dc),i||(i=[]);++o<s;){var a=e[o];r>0&&t(a)?r>1?wi(a,r-1,t,n,i):pc(i,a):n||(i[i.length]=a)}return i}Ii.exports=wi});var ur=u((Tb,qi)=>{"use strict";function mc(e){return e}qi.exports=mc});var ji=u((wb,Ci)=>{"use strict";function hc(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}Ci.exports=hc});var Vi=u((Ib,Ri)=>{"use strict";var gc=ji(),_i=Math.max;function yc(e,r,t){return r=_i(r===void 0?e.length-1:r,0),function(){for(var n=arguments,i=-1,o=_i(n.length-r,0),s=Array(o);++i<o;)s[i]=n[r+i];i=-1;for(var a=Array(r+1);++i<r;)a[i]=n[i];return a[r]=t(s),gc(e,this,a)}}Ri.exports=yc});var Fi=u((Ab,Ji)=>{"use strict";function bc(e){return function(){return e}}Ji.exports=bc});var fr=u((qb,Pi)=>{"use strict";var Oc=Ae(),Sc=function(){try{var e=Oc(Object,"defineProperty");return e({},"",{}),e}catch{}}();Pi.exports=Sc});var Li=u((Cb,Mi)=>{"use strict";var xc=Fi(),Ni=fr(),Ec=ur(),vc=Ni?function(e,r){return Ni(e,"toString",{configurable:!0,enumerable:!1,value:xc(r),writable:!0})}:Ec;Mi.exports=vc});var $i=u((jb,Di)=>{"use strict";var Tc=800,wc=16,Ic=Date.now;function Ac(e){var r=0,t=0;return function(){var n=Ic(),i=wc-(n-t);if(t=n,i>0){if(++r>=Tc)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}Di.exports=Ac});var Hi=u((_b,Bi)=>{"use strict";var qc=Li(),Cc=$i(),jc=Cc(qc);Bi.exports=jc});var Re=u((Rb,Ui)=>{"use strict";var _c=ur(),Rc=Vi(),Vc=Hi();function Jc(e,r){return Vc(Rc(e,r,_c),e+"")}Ui.exports=Jc});var lr=u((Vb,Gi)=>{"use strict";var Fc=9007199254740991;function Pc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fc}Gi.exports=Pc});var Ve=u((Jb,zi)=>{"use strict";var Nc=Ie(),Mc=lr();function Lc(e){return e!=null&&Mc(e.length)&&!Nc(e)}zi.exports=Lc});var Je=u((Fb,ki)=>{"use strict";var Dc=Ve(),$c=R();function Bc(e){return $c(e)&&Dc(e)}ki.exports=Bc});var Yi=u((Pb,Ki)=>{"use strict";var Hc=ci(),Uc=Ai(),Gc=Re(),Wi=Je(),zc=Gc(function(e,r){return Wi(e)?Hc(e,Uc(r,1,Wi,!0)):[]});Ki.exports=zc});var Fe=u((Nb,Xi)=>{"use strict";var kc=D(),Wc=R(),Kc="[object Symbol]";function Yc(e){return typeof e=="symbol"||Wc(e)&&kc(e)==Kc}Xi.exports=Yc});var Qi=u((Mb,Zi)=>{"use strict";var Xc=V(),Zc=Fe(),Qc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ep=/^\w*$/;function rp(e,r){if(Xc(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Zc(e)?!0:ep.test(e)||!Qc.test(e)||r!=null&&e in Object(r)}Zi.exports=rp});var to=u((Lb,ro)=>{"use strict";var eo=qe(),tp="Expected a function";function cr(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(tp);var t=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=t.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return t.cache=o.set(i,s)||o,s};return t.cache=new(cr.Cache||eo),t}cr.Cache=eo;ro.exports=cr});var io=u((Db,no)=>{"use strict";var np=to(),ip=500;function op(e){var r=np(e,function(n){return t.size===ip&&t.clear(),n}),t=r.cache;return r}no.exports=op});var so=u(($b,oo)=>{"use strict";var sp=io(),ap=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,up=/\\(\\)?/g,fp=sp(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(ap,function(t,n,i,o){r.push(i?o.replace(up,"$1"):n||t)}),r});oo.exports=fp});var po=u((Bb,co)=>{"use strict";var ao=ie(),lp=ce(),cp=V(),pp=Fe(),dp=1/0,uo=ao?ao.prototype:void 0,fo=uo?uo.toString:void 0;function lo(e){if(typeof e=="string")return e;if(cp(e))return lp(e,lo)+"";if(pp(e))return fo?fo.call(e):"";var r=e+"";return r=="0"&&1/e==-dp?"-0":r}co.exports=lo});var ho=u((Hb,mo)=>{"use strict";var mp=po();function hp(e){return e==null?"":mp(e)}mo.exports=hp});var pr=u((Ub,go)=>{"use strict";var gp=V(),yp=Qi(),bp=so(),Op=ho();function Sp(e,r){return gp(e)?e:yp(e,r)?[e]:bp(Op(e))}go.exports=Sp});var dr=u((Gb,yo)=>{"use strict";var xp=Fe(),Ep=1/0;function vp(e){if(typeof e=="string"||xp(e))return e;var r=e+"";return r=="0"&&1/e==-Ep?"-0":r}yo.exports=vp});var Oo=u((zb,bo)=>{"use strict";var Tp=pr(),wp=dr();function Ip(e,r){r=Tp(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[wp(r[t++])];return t&&t==n?e:void 0}bo.exports=Ip});var xo=u((kb,So)=>{"use strict";var Ap=Oo();function qp(e,r,t){var n=e==null?void 0:Ap(e,r);return n===void 0?t:n}So.exports=qp});var To=u((Wb,vo)=>{"use strict";var Cp=ir(),jp=or(),_p=sr(),Rp=ce(),Vp=je(),Eo=ar(),Jp=Math.min;function Fp(e,r,t){for(var n=t?_p:jp,i=e[0].length,o=e.length,s=o,a=Array(o),f=1/0,l=[];s--;){var c=e[s];s&&r&&(c=Rp(c,Vp(r))),f=Jp(c.length,f),a[s]=!t&&(r||i>=120&&c.length>=120)?new Cp(s&&c):void 0}c=e[0];var p=-1,d=a[0];e:for(;++p<i&&l.length<f;){var m=c[p],h=r?r(m):m;if(m=t||m!==0?m:0,!(d?Eo(d,h):n(l,h,t))){for(s=o;--s;){var w=a[s];if(!(w?Eo(w,h):n(e[s],h,t)))continue e}d&&d.push(h),l.push(m)}}return l}vo.exports=Fp});var Io=u((Kb,wo)=>{"use strict";var Pp=Je();function Np(e){return Pp(e)?e:[]}wo.exports=Np});var qo=u((Yb,Ao)=>{"use strict";var Mp=ce(),Lp=To(),Dp=Re(),$p=Io(),Bp=Dp(function(e){var r=Mp(e,$p);return r.length&&r[0]===e[0]?Lp(r):[]});Ao.exports=Bp});var jo=u((Xb,Co)=>{"use strict";var Hp=fe();function Up(){this.__data__=new Hp,this.size=0}Co.exports=Up});var Ro=u((Zb,_o)=>{"use strict";function Gp(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}_o.exports=Gp});var Jo=u((Qb,Vo)=>{"use strict";function zp(e){return this.__data__.get(e)}Vo.exports=zp});var Po=u((eO,Fo)=>{"use strict";function kp(e){return this.__data__.has(e)}Fo.exports=kp});var Mo=u((rO,No)=>{"use strict";var Wp=fe(),Kp=nr(),Yp=qe(),Xp=200;function Zp(e,r){var t=this.__data__;if(t instanceof Wp){var n=t.__data__;if(!Kp||n.length<Xp-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Yp(n)}return t.set(e,r),this.size=t.size,this}No.exports=Zp});var Do=u((tO,Lo)=>{"use strict";var Qp=fe(),ed=jo(),rd=Ro(),td=Jo(),nd=Po(),id=Mo();function U(e){var r=this.__data__=new Qp(e);this.size=r.size}U.prototype.clear=ed;U.prototype.delete=rd;U.prototype.get=td;U.prototype.has=nd;U.prototype.set=id;Lo.exports=U});var Pe=u((nO,Bo)=>{"use strict";var $o=fr();function od(e,r,t){r=="__proto__"&&$o?$o(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}Bo.exports=od});var mr=u((iO,Ho)=>{"use strict";var sd=Pe(),ad=ae();function ud(e,r,t){(t!==void 0&&!ad(e[r],t)||t===void 0&&!(r in e))&&sd(e,r,t)}Ho.exports=ud});var Go=u((oO,Uo)=>{"use strict";function fd(e){return function(r,t,n){for(var i=-1,o=Object(r),s=n(r),a=s.length;a--;){var f=s[e?a:++i];if(t(o[f],f,o)===!1)break}return r}}Uo.exports=fd});var ko=u((sO,zo)=>{"use strict";var ld=Go(),cd=ld();zo.exports=cd});var Zo=u((pe,G)=>{"use strict";var pd=_(),Xo=typeof pe=="object"&&pe&&!pe.nodeType&&pe,Wo=Xo&&typeof G=="object"&&G&&!G.nodeType&&G,dd=Wo&&Wo.exports===Xo,Ko=dd?pd.Buffer:void 0,Yo=Ko?Ko.allocUnsafe:void 0;function md(e,r){if(r)return e.slice();var t=e.length,n=Yo?Yo(t):new e.constructor(t);return e.copy(n),n}G.exports=md});var es=u((aO,Qo)=>{"use strict";var hd=_(),gd=hd.Uint8Array;Qo.exports=gd});var ns=u((uO,ts)=>{"use strict";var rs=es();function yd(e){var r=new e.constructor(e.byteLength);return new rs(r).set(new rs(e)),r}ts.exports=yd});var os=u((fO,is)=>{"use strict";var bd=ns();function Od(e,r){var t=r?bd(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}is.exports=Od});var as=u((lO,ss)=>{"use strict";function Sd(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}ss.exports=Sd});var ls=u((cO,fs)=>{"use strict";var xd=T(),us=Object.create,Ed=function(){function e(){}return function(r){if(!xd(r))return{};if(us)return us(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}();fs.exports=Ed});var ps=u((pO,cs)=>{"use strict";function vd(e,r){return function(t){return e(r(t))}}cs.exports=vd});var hr=u((dO,ds)=>{"use strict";var Td=ps(),wd=Td(Object.getPrototypeOf,Object);ds.exports=wd});var gr=u((mO,ms)=>{"use strict";var Id=Object.prototype;function Ad(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Id;return e===t}ms.exports=Ad});var gs=u((hO,hs)=>{"use strict";var qd=ls(),Cd=hr(),jd=gr();function _d(e){return typeof e.constructor=="function"&&!jd(e)?qd(Cd(e)):{}}hs.exports=_d});var bs=u((gO,ys)=>{"use strict";function Rd(){return!1}ys.exports=Rd});var yr=u((de,z)=>{"use strict";var Vd=_(),Jd=bs(),xs=typeof de=="object"&&de&&!de.nodeType&&de,Os=xs&&typeof z=="object"&&z&&!z.nodeType&&z,Fd=Os&&Os.exports===xs,Ss=Fd?Vd.Buffer:void 0,Pd=Ss?Ss.isBuffer:void 0,Nd=Pd||Jd;z.exports=Nd});var Ts=u((yO,vs)=>{"use strict";var Md=D(),Ld=hr(),Dd=R(),$d="[object Object]",Bd=Function.prototype,Hd=Object.prototype,Es=Bd.toString,Ud=Hd.hasOwnProperty,Gd=Es.call(Object);function zd(e){if(!Dd(e)||Md(e)!=$d)return!1;var r=Ld(e);if(r===null)return!0;var t=Ud.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Es.call(t)==Gd}vs.exports=zd});var Is=u((bO,ws)=>{"use strict";var kd=D(),Wd=lr(),Kd=R(),Yd="[object Arguments]",Xd="[object Array]",Zd="[object Boolean]",Qd="[object Date]",em="[object Error]",rm="[object Function]",tm="[object Map]",nm="[object Number]",im="[object Object]",om="[object RegExp]",sm="[object Set]",am="[object String]",um="[object WeakMap]",fm="[object ArrayBuffer]",lm="[object DataView]",cm="[object Float32Array]",pm="[object Float64Array]",dm="[object Int8Array]",mm="[object Int16Array]",hm="[object Int32Array]",gm="[object Uint8Array]",ym="[object Uint8ClampedArray]",bm="[object Uint16Array]",Om="[object Uint32Array]",y={};y[cm]=y[pm]=y[dm]=y[mm]=y[hm]=y[gm]=y[ym]=y[bm]=y[Om]=!0;y[Yd]=y[Xd]=y[fm]=y[Zd]=y[lm]=y[Qd]=y[em]=y[rm]=y[tm]=y[nm]=y[im]=y[om]=y[sm]=y[am]=y[um]=!1;function Sm(e){return Kd(e)&&Wd(e.length)&&!!y[kd(e)]}ws.exports=Sm});var qs=u((me,k)=>{"use strict";var xm=rr(),As=typeof me=="object"&&me&&!me.nodeType&&me,he=As&&typeof k=="object"&&k&&!k.nodeType&&k,Em=he&&he.exports===As,br=Em&&xm.process,vm=function(){try{var e=he&&he.require&&he.require("util").types;return e||br&&br.binding&&br.binding("util")}catch{}}();k.exports=vm});var Or=u((OO,_s)=>{"use strict";var Tm=Is(),wm=je(),Cs=qs(),js=Cs&&Cs.isTypedArray,Im=js?wm(js):Tm;_s.exports=Im});var Sr=u((SO,Rs)=>{"use strict";function Am(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}Rs.exports=Am});var xr=u((xO,Vs)=>{"use strict";var qm=Pe(),Cm=ae(),jm=Object.prototype,_m=jm.hasOwnProperty;function Rm(e,r,t){var n=e[r];(!(_m.call(e,r)&&Cm(n,t))||t===void 0&&!(r in e))&&qm(e,r,t)}Vs.exports=Rm});var Fs=u((EO,Js)=>{"use strict";var Vm=xr(),Jm=Pe();function Fm(e,r,t,n){var i=!t;t||(t={});for(var o=-1,s=r.length;++o<s;){var a=r[o],f=n?n(t[a],e[a],a,t,e):void 0;f===void 0&&(f=e[a]),i?Jm(t,a,f):Vm(t,a,f)}return t}Js.exports=Fm});var Ns=u((vO,Ps)=>{"use strict";function Pm(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}Ps.exports=Pm});var Ne=u((TO,Ms)=>{"use strict";var Nm=9007199254740991,Mm=/^(?:0|[1-9]\d*)$/;function Lm(e,r){var t=typeof e;return r=r??Nm,!!r&&(t=="number"||t!="symbol"&&Mm.test(e))&&e>-1&&e%1==0&&e<r}Ms.exports=Lm});var Ds=u((wO,Ls)=>{"use strict";var Dm=Ns(),$m=_e(),Bm=V(),Hm=yr(),Um=Ne(),Gm=Or(),zm=Object.prototype,km=zm.hasOwnProperty;function Wm(e,r){var t=Bm(e),n=!t&&$m(e),i=!t&&!n&&Hm(e),o=!t&&!n&&!i&&Gm(e),s=t||n||i||o,a=s?Dm(e.length,String):[],f=a.length;for(var l in e)(r||km.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Um(l,f)))&&a.push(l);return a}Ls.exports=Wm});var Bs=u((IO,$s)=>{"use strict";function Km(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}$s.exports=Km});var Us=u((AO,Hs)=>{"use strict";var Ym=T(),Xm=gr(),Zm=Bs(),Qm=Object.prototype,eh=Qm.hasOwnProperty;function rh(e){if(!Ym(e))return Zm(e);var r=Xm(e),t=[];for(var n in e)n=="constructor"&&(r||!eh.call(e,n))||t.push(n);return t}Hs.exports=rh});var Er=u((qO,Gs)=>{"use strict";var th=Ds(),nh=Us(),ih=Ve();function oh(e){return ih(e)?th(e,!0):nh(e)}Gs.exports=oh});var ks=u((CO,zs)=>{"use strict";var sh=Fs(),ah=Er();function uh(e){return sh(e,ah(e))}zs.exports=uh});var Qs=u((jO,Zs)=>{"use strict";var Ws=mr(),fh=Zo(),lh=os(),ch=as(),ph=gs(),Ks=_e(),Ys=V(),dh=Je(),mh=yr(),hh=Ie(),gh=T(),yh=Ts(),bh=Or(),Xs=Sr(),Oh=ks();function Sh(e,r,t,n,i,o,s){var a=Xs(e,t),f=Xs(r,t),l=s.get(f);if(l){Ws(e,t,l);return}var c=o?o(a,f,t+"",e,r,s):void 0,p=c===void 0;if(p){var d=Ys(f),m=!d&&mh(f),h=!d&&!m&&bh(f);c=f,d||m||h?Ys(a)?c=a:dh(a)?c=ch(a):m?(p=!1,c=fh(f,!0)):h?(p=!1,c=lh(f,!0)):c=[]:yh(f)||Ks(f)?(c=a,Ks(a)?c=Oh(a):(!gh(a)||hh(a))&&(c=ph(f))):p=!1}p&&(s.set(f,c),i(c,f,n,o,s),s.delete(f)),Ws(e,t,c)}Zs.exports=Sh});var vr=u((_O,ra)=>{"use strict";var xh=Do(),Eh=mr(),vh=ko(),Th=Qs(),wh=T(),Ih=Er(),Ah=Sr();function ea(e,r,t,n,i){e!==r&&vh(r,function(o,s){if(i||(i=new xh),wh(o))Th(e,r,s,t,ea,n,i);else{var a=n?n(Ah(e,s),o,s+"",e,r,i):void 0;a===void 0&&(a=o),Eh(e,s,a)}},Ih)}ra.exports=ea});var na=u((RO,ta)=>{"use strict";var qh=ae(),Ch=Ve(),jh=Ne(),_h=T();function Rh(e,r,t){if(!_h(t))return!1;var n=typeof r;return(n=="number"?Ch(t)&&jh(r,t.length):n=="string"&&r in t)?qh(t[r],e):!1}ta.exports=Rh});var Tr=u((VO,ia)=>{"use strict";var Vh=Re(),Jh=na();function Fh(e){return Vh(function(r,t){var n=-1,i=t.length,o=i>1?t[i-1]:void 0,s=i>2?t[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&Jh(t[0],t[1],s)&&(o=i<3?void 0:o,i=1),r=Object(r);++n<i;){var a=t[n];a&&e(r,a,n,o)}return r})}ia.exports=Fh});var sa=u((JO,oa)=>{"use strict";var Ph=vr(),Nh=Tr(),Mh=Nh(function(e,r,t){Ph(e,r,t)});oa.exports=Mh});var ua=u((FO,aa)=>{"use strict";var Lh=vr(),Dh=Tr(),$h=Dh(function(e,r,t,n){Lh(e,r,t,n)});aa.exports=$h});var ca=u((PO,la)=>{"use strict";var Bh=xr(),Hh=pr(),Uh=Ne(),fa=T(),Gh=dr();function zh(e,r,t,n){if(!fa(e))return e;r=Hh(r,e);for(var i=-1,o=r.length,s=o-1,a=e;a!=null&&++i<o;){var f=Gh(r[i]),l=t;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(i!=s){var c=a[f];l=n?n(c,f,a):void 0,l===void 0&&(l=fa(c)?c:Uh(r[i+1])?[]:{})}Bh(a,f,l),a=a[f]}return e}la.exports=zh});var da=u((NO,pa)=>{"use strict";var kh=ca();function Wh(e,r,t){return e==null?e:kh(e,r,t)}pa.exports=Wh});var Kr=I($r(),1);function Hr(e){if(e===0)return 0;let r=e/1024;return Number.parseFloat(r.toFixed(2))}var Aa=["if","then","else"];function N(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function qa(e,r){switch(e){case"options":case"enum":return!0;case"oneOf":case"anyOf":return r.length>0&&r.every(t=>N(t)&&"const"in t);default:return!1}}function Se(e){if(N(e)){let r=e;if("const"in r)return r.const;if("value"in r)return r.value}return e}var Br=!1;function Ca(e){Br||(Br=!0,console.warn(`[json-schema-form] A conditional branch introduces option(s) not present on the base field: ${JSON.stringify(e)}. This currently works but is deprecated and will be disallowed in a future major version. Set \`disallowNewConditionalOptions: true\` to opt into the new behavior now. (see PR #265)`))}function Ge(e,r,t,n=!1){if(!e||!r||typeof e!="object"||typeof r!="object")return;let{disallowNewConditionalOptions:i=!1}=t??{};for(let[o,s]of Object.entries(r)){if(Aa.includes(o))continue;let a=e[o];if(!(n&&a===!1)){if(qa(o,s)){if(i){if(!Array.isArray(a)){e[o]=s;continue}let f=new Set(a.map(l=>Se(l)));e[o]=s.filter(l=>f.has(Se(l)));continue}else if(Array.isArray(a)){let f=new Set(a.map(c=>Se(c))),l=s.map(c=>Se(c)).filter(c=>!f.has(c));l.length>0&&Ca(l)}}if(N(s))N(a)?Ge(a,s,t,o==="properties"||o==="patternProperties"):a!==s&&(e[o]=s);else if(a&&Array.isArray(s))if(o==="required")for(let f of s)a.includes(f)||a.push(f);else e[o]=s;else e[o]!==s&&(e[o]=s)}}}function ze(e,r){for(let[t,n]of Object.entries(r)){let i=e[t];N(n)&&N(i)?ze(i,n):i!==n&&(e[t]=n)}}var Ur="yyyy-MM-dd";function Gr(e,r){let t=new Date(e).getTime(),n=new Date(r).getTime();return t<n?"LESSER":t>n?"GREATER":"EQUAL"}function ja(e,r){let t=Gr(e,r);return t==="GREATER"||t==="EQUAL"}function _a(e,r){let t=Gr(e,r);return t==="LESSER"||t==="EQUAL"}function zr(e,r,t,n=[]){let i=typeof e=="string",o=e==="",s=e===void 0||e===null&&t.treatNullAsUndefined,a=o||s,f=[];if(!i||a||r["x-jsf-presentation"]===void 0)return f;let{minDate:l,maxDate:c}=r["x-jsf-presentation"];return l&&!ja(e,l)&&f.push({path:n,validation:"minDate",schema:r,value:e}),c&&!_a(e,c)&&f.push({path:n,validation:"maxDate",schema:r,value:e}),f}function kr(e){return e["x-jsf-presentation"]?.inputType==="checkbox"}var Wr="Please acknowledge this field";function Yr(e,r,t,n){let i=e["x-jsf-presentation"];switch(t){case"type":return Ra(e.type);case"required":return kr(e)?Wr:"Required field";case"forbidden":return"Not allowed";case"const":return kr(e)&&r===!1?Wr:`The only accepted value is ${JSON.stringify(e.const)}.`;case"enum":return`The option "${ke(r)}" is not valid.`;case"oneOf":return`The option "${ke(r)}" is not valid.`;case"anyOf":return`The option "${ke(r)}" is not valid.`;case"not":return"The value must not satisfy the provided schema";case"minLength":return`Please insert at least ${e.minLength} characters`;case"maxLength":return`Please insert up to ${e.maxLength} characters`;case"pattern":return`Must have a valid format. E.g. ${(0,Kr.randexp)(e.pattern||"")}`;case"format":if(e.format==="email")return"Please enter a valid email address";if(e.format==="date"){let o=new Date().toISOString().split("T")[0];return`Must be a valid date in ${Ur.toLowerCase()} format. e.g. ${o}`}return`Must be a valid ${e.format} format`;case"multipleOf":return`Must be a multiple of ${e.multipleOf}`;case"maximum":return`Must be smaller or equal to ${e.maximum}`;case"exclusiveMaximum":return`Must be smaller than ${e.exclusiveMaximum}`;case"minimum":return`Must be greater or equal to ${e.minimum}`;case"exclusiveMinimum":return`Must be greater than ${e.exclusiveMinimum}`;case"minDate":return`The date must be ${i?.minDate} or after.`;case"maxDate":return`The date must be ${i?.maxDate} or before.`;case"fileStructure":return"Not a valid file.";case"maxFileSize":{let o=i?.maxFileSize,s=typeof o=="number"?Hr(o):void 0;return`File size too large.${s?` The limit is ${s} MB.`:""}`}case"accept":{let o=i?.accept;return`Unsupported file format.${o?` The acceptable formats are ${o}.`:""}`}case"minItems":{let o=e.minItems===1?"item":"items";return`Must have at least ${e.minItems} ${o}`}case"maxItems":{let o=e.maxItems===1?"item":"items";return`Must have at most ${e.maxItems} ${o}`}case"uniqueItems":return"Items must be unique";case"contains":throw new Error('"contains" is not implemented yet');case"minContains":throw new Error('"minContains" is not implemented yet');case"maxContains":throw new Error('"maxContains" is not implemented yet');case"additionalProperties":return"Additional property is not allowed";case"json-logic":return n||"The value is not valid"}}function Ra(e){if(Array.isArray(e))return`The value must be a ${e.map(t=>t==="integer"?"number":t).join(" or ")}`;switch(e){case"number":case"integer":return"The value must be a number";case"boolean":return"The value must be a boolean";case"null":return"The value must be null";case"string":return"The value must be a string";case"object":return"The value must be an object";case"array":return"The value must be an array";default:return e?`The value must be ${e}`:"Invalid value"}}function ke(e){return typeof e=="string"?e:JSON.stringify(e)}var it=I(et(),1);function za(e,r){let t={};return r.forEach((i,o)=>{t[i]=o}),e.sort((i,o)=>{let s=t[i.name]??1/0,a=t[o.name]??1/0;return s!==a?s-a:e.indexOf(i)-e.indexOf(o)})}function We(e,r){if(typeof e=="boolean")throw new TypeError("Schema must be an object");return e["x-jsf-order"]!==void 0?za(r,e["x-jsf-order"]):r}function ka(e,r,t){r.checkboxValue=t.const,(Array.isArray(t.type)?t.type.includes("boolean"):t.type==="boolean")&&(r.checkboxValue=!0)}function Wa(e,r){if(e.options===void 0){let t=Xa(r);t&&(e.options=t,r.type==="array"&&(e.multiple=!0))}}function rt(e,r,t,n){if(e.options===void 0){let i=eu(r,t,n);i&&(e.fields=i)}}function Ka(e,r){if(!e)return"text";switch(e){case"string":{let{oneOf:t,format:n}=r;return n==="email"?"email":n==="date"?"date":n==="data-url"?"file":t?"radio":"text"}case"number":case"integer":return"number";case"object":return"fieldset";case"array":{let{items:t}=r;return t?.properties?"group-array":"select"}case"boolean":return"checkbox";default:return"text"}}function tt(e,r,t,n){let i=t["x-jsf-presentation"];if(i?.inputType)return i.inputType;if(n&&r!=="root")throw new Error(`Strict error: Missing inputType to field "${t.title}".
2
2
  You can fix the json schema or skip this error by calling createHeadlessForm(schema, { strictInputType: false })`);if(!t.type){if(t.items?.properties)return"group-array";if(t.properties)return"select"}return Ka(e||t.type||"string",t)}var nt=new Map;function Ya(e){return e.length?JSON.stringify(e):"0"}function xe(e){let r=Ya(e),t=nt.get(r);if(t)return t;let n=e.filter(i=>i!==null&&typeof i=="object"&&i.const!==null).map(i=>{let o=i.title,s=i.const,a=typeof i["x-jsf-presentation"]=="object"?i["x-jsf-presentation"]:{},f={label:o||"",value:s},{title:l,const:c,"x-jsf-presentation":p,...d}=i;return{...f,...a,...d}});return nt.set(r,n),n}function Xa(e){if(e.oneOf)return xe(e.oneOf||[]);if(e.items?.anyOf)return xe(e.items.anyOf);if(e.anyOf)return xe(e.anyOf);if(e.enum){let r=e.enum?.map(t=>({title:typeof t=="string"?t:JSON.stringify(t),const:t}))||[];return xe(r)}return null}function Za(e,r,t){let n=[];for(let o in e.properties){let s=e.required?.includes(o)||!1,a=j({schema:e.properties[o],name:o,required:s,originalSchema:r.properties?.[o]||e.properties[o],strictInputType:t});a&&n.push(a)}return We(e,n)}function Qa(e,r,t){let n=[];if(typeof e.items!="object"||e.items===null)return[];if(e.items?.type==="object"){let o=e.items,s=r.items;for(let a in o.properties){let f=o.required?.includes(a)||!1,l=j({schema:o.properties[a],name:a,required:f,originalSchema:s?.properties?.[a]||o.properties[a],strictInputType:t});l&&(l.nameKey=a,n.push(l))}}else{let o=j({schema:e.items,name:"item",required:!1,originalSchema:r.items||e.items,strictInputType:t});o&&n.push(o)}return We(e.items,n)}function eu(e,r,t){return typeof e.properties=="object"&&e.properties!==null?Za(e,r,t):typeof e.items=="object"&&e.items!==null?Qa(e,r,t):null}var ru=["title","type","x-jsf-errorMessage","x-jsf-presentation","oneOf","anyOf","properties"];function j({schema:e,name:r,required:t=!1,originalSchema:n,strictInputType:i=!1,type:o=void 0}){if(e===!1){let d=tt(o,r,n,i),m={type:d,name:r,inputType:d,jsonType:o||n.type,required:t,isVisible:!1};return n.default!==void 0&&(m.default=n.default),rt(m,n,n),m}if(typeof e=="boolean")return null;let s=n["x-jsf-presentation"]||{},a=e["x-jsf-presentation"]||{},f=(0,it.default)(s,a,{arrayMerge:(d,m,h)=>m}),l=e["x-jsf-errorMessage"],c=tt(o,r,e,i),p={...Object.entries(e).filter(([d])=>!ru.includes(d)).reduce((d,[m,h])=>({...d,[m]:h}),{}),name:r,inputType:c,type:c,jsonType:o||e.type,required:t,isVisible:!0,...l&&{errorMessage:l}};return p.default===void 0&&n.default!==void 0&&(p.default=n.default),c==="checkbox"&&ka(c,p,e),e.title&&(p.label=e.title),Object.keys(f).length>0&&Object.entries(f).forEach(([d,m])=>{d!=="inputType"&&(p[d]=m)}),r!=="root"&&Wa(p,e),rt(p,e,n),p}import L from"json-logic-js";function ve(e,r){let{validations:t,computedValues:n}=e;return{schema:{validations:t,computedValues:n},value:r}}function ot(e){return/\{\{.*?\}\}/.test(e)}function Ee(e={}){return Object.entries(e).reduce((r,[t,n])=>({...r,[t]:n??Number.NaN}),{})}function st(e,r,t=[]){let n=e["x-jsf-logic-validations"];return!n||n.length===0?[]:n.map(i=>{let o=r?.schema?.validations?.[i],s=r?.value;if(!o)throw new Error(`[json-schema-form] json-logic error: "${e.title}" required validation "${i}" doesn't exist.`);if(L.apply(o.rule,Ee(s))===!1){let f=o.errorMessage;return f&&ot(f)&&(f=f.replace(/\{\{(.*?)\}\}/g,(l,c)=>{let p=c.trim(),d=r.schema.computedValues?.[p];return d?L.apply(d.rule,Ee(s)):L.apply({var:p},Ee(s))})),[{path:t,validation:"json-logic",customErrorMessage:f,schema:e,value:s}]}return[]}).flat()}function Te(e,r,t){if(!r)throw new Error(`[json-schema-form] json-logic error: Computed value "${e}" doesn't exist`);return L.apply(r,Ee(t))}function at(e,r,t){if(r){let n={};Object.entries(r).forEach(([i,o])=>{let s=Te(i,o.rule,t);n[i]=s}),te(e,n)}return e}function te(e,r){function t(n){if(typeof n!="object")return;let i=n["x-jsf-logic-computedAttrs"];if(i&&tu(n,r,i),typeof n.properties=="object")for(let o in n.properties)t(n.properties[o]);if(typeof n.if=="object"&&te(n.if,r),n.allOf&&n.allOf.length>0)for(let o of n.allOf)te(o,r);if(n.anyOf&&n.anyOf.length>0)for(let o of n.anyOf)te(o,r);if(n.oneOf&&n.oneOf.length>0)for(let o of n.oneOf)te(o,r);delete n["x-jsf-logic-computedAttrs"]}t(e)}function tu(e,r,t){if(typeof e!="object")return;function n(o){return ot(o)?o.replace(/\{\{(.*?)\}\}/g,(s,a)=>{let f=a.trim();return r[f]??`{{${f}}}`}):r[o]}function i(o,s,a,f){if(typeof o!="object")return;let l=s;o[l]||(o[l]={}),Object.entries(a).forEach(([c,p])=>{typeof p=="string"?o[l][c]=n(p):i(o[l],c,p,f)})}for(let o in t){let s=o,a=t[o];typeof a=="string"?e[s]=n(a):typeof e=="object"&&i(e,s,a,r)}}function Ke(e){if(e)for(let[r,t]of Object.entries(e))L.add_operation(r,t)}function Ye(e){if(e)for(let r of Object.keys(e))L.rm_operation(r)}function x(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function v(e,r){if(typeof e!=typeof r)return!1;if(e===r)return!0;if(e===null||r===null)return!1;if(Array.isArray(e)&&Array.isArray(r))return e.length!==r.length?!1:e.every((t,n)=>v(t,r[n]));if(x(e)&&x(r)){let t=Object.keys(e).sort(),n=Object.keys(r).sort();return t.length!==n.length||!v(t,n)?!1:t.every(i=>v(e[i],r[i]))}return!1}function ut(e){if(typeof structuredClone=="function")try{return structuredClone(e)}catch{}try{return JSON.parse(JSON.stringify(e))}catch{throw new Error("Deep clone failed: Object may contain circular references or non-serializable values")}}function ft(e,r,t,n,i){return Array.isArray(e)?[...nu(r,e,i),...au(r,e,i),...su(e,r,t,n,i),...ou(r,e,t,n,i),...iu(r,e,t,n,i)]:[]}function nu(e,r,t){let n=[],i=r.length;return e.maxItems!==void 0&&i>e.maxItems&&n.push({path:t,validation:"maxItems",schema:e,value:r}),e.minItems!==void 0&&i<e.minItems&&n.push({path:t,validation:"minItems",schema:e,value:r}),n}function iu(e,r,t,n,i){if(e.items===void 0)return[];let o=[],s=Array.isArray(e.prefixItems)?e.prefixItems.length:0;for(let[a,f]of r.slice(s).entries())o.push(...O(f,e.items,t,[...i,"items",a+s],n));return o}function ou(e,r,t,n,i){if(!Array.isArray(e.prefixItems))return[];let o=[];for(let[s,a]of r.entries())s<e.prefixItems.length&&o.push(...O(a,e.prefixItems[s],t,[...i,"prefixItems",s],n));return o}function su(e,r,t,n,i){if(!("contains"in r))return[];let o=[],s=e.filter(a=>O(a,r.contains,t,[...i,"contains"],n).length===0).length;return r.minContains===void 0&&r.maxContains===void 0?s<1&&o.push({path:i,validation:"contains",schema:r,value:e}):(r.minContains!==void 0&&s<r.minContains&&o.push({path:i,validation:"minContains",schema:r,value:e}),r.maxContains!==void 0&&s>r.maxContains&&o.push({path:i,validation:"maxContains",schema:r,value:e})),o}function au(e,r,t){if(e.uniqueItems!==!0)return[];let n=new Map;for(let i=0;i<r.length;i++){for(let o of n.values())if(v(r[i],o))return[{path:t,validation:"uniqueItems",schema:e,value:r[i]}];n.set(i,r[i])}return[]}function lt(e,r,t,n,i=[]){if(!r.allOf)return[];for(let o=0;o<r.allOf.length;o++){let s=r.allOf[o],a=O(e,s,t,[...i,"allOf",o],n);if(a.length>0)return a}return[]}function ct(e,r,t,n,i=[]){if(!r.anyOf)return[];if(i.length!==0){for(let a of r.anyOf)if(O(e,a,t,i,n).length===0)return[];return[{path:i,validation:"anyOf",schema:r,value:e}]}let o=[];for(let a of r.anyOf){let f=O(e,a,t,i,n);f.length!==0&&o.push(f)}return o.length<r.anyOf.length?[]:o.flat().reverse()}function pt(e,r,t,n,i=[]){if(!r.oneOf)return[];if(r.oneOf.length===0)return[];let o=0;for(let s=0;s<r.oneOf.length&&!(O(e,r.oneOf[s],t,i,n).length===0&&(o++,o>1));s++);return o===1?[]:[{path:i,validation:"oneOf",schema:r,value:e}]}function dt(e,r,t,n,i=[]){return r.not===void 0?[]:typeof r.not=="boolean"?r.not?[{path:i,validation:"not",schema:r,value:e}]:[]:O(e,r.not,t,i,n).length===0?[{path:i,validation:"not",schema:r,value:e}]:[]}function mt(e,r,t=[]){let n=typeof r.const<"u"?r.const:r.value;return n===void 0?[]:v(n,e)?[]:[{path:t,validation:"const",schema:r,value:e}]}function ht(e,r,t=[]){return r.enum===void 0?[]:r.enum.some(n=>v(n,e))?[]:[{path:t,validation:"enum",schema:r,value:e}]}function gt(e,r,t=[]){let n=r["x-jsf-presentation"],i=n?.inputType==="file",o=typeof n?.maxFileSize=="number"||typeof n?.accept=="string";if(!(i||o))return[];if(!Array.isArray(e))return[];if(e.length===0)return[];if(!e.every(l=>x(l)&&(typeof l.name=="string"||l instanceof File)))return[{path:t,validation:"fileStructure",schema:r,value:e}];let f=e;if(typeof n?.maxFileSize=="number"){let l=n.maxFileSize*1024;if(f.some(p=>(p.size??0)>l))return[{path:t,validation:"maxFileSize",schema:r,value:e}]}if(typeof n?.accept=="string"&&n.accept.trim()!==""){let l=n.accept.toLowerCase().split(",").map(c=>c.trim()).filter(c=>c).map(c=>c.startsWith(".")?c:`.${c}`);if(l.length>0&&!f.some(p=>{let d=p.name.toLowerCase(),m=d.includes(".")?`.${d.split(".").pop()}`:"";return m!==""&&l.includes(m)}))return[{path:t,validation:"accept",schema:r,value:e}]}return[]}function yt(e){let[r,t]=e.toString().split("e"),[n,i=""]=r.split(".");return{digits:BigInt(n+i),exponent:(t===void 0?0:Number(t))-i.length}}function uu(e,r){if(Number.isInteger(e)&&Number.isInteger(r))return e%r===0;if(!Number.isFinite(e)||!Number.isFinite(r)||r===0)return!1;let t=yt(e),n=yt(r),i=Math.min(t.exponent,n.exponent),o=t.digits*10n**BigInt(t.exponent-i),s=n.digits*10n**BigInt(n.exponent-i);return o%s===0n}function bt(e,r,t=[]){let n=[];return typeof e!="number"?[]:we(r,"number","integer")?(r.multipleOf!==void 0&&!uu(e,r.multipleOf)&&n.push({path:t,validation:"multipleOf",schema:r,value:e}),r.maximum!==void 0&&e>r.maximum&&n.push({path:t,validation:"maximum",schema:r,value:e}),r.exclusiveMaximum!==void 0&&e>=r.exclusiveMaximum&&n.push({path:t,validation:"exclusiveMaximum",schema:r,value:e}),r.minimum!==void 0&&e<r.minimum&&n.push({path:t,validation:"minimum",schema:r,value:e}),r.exclusiveMinimum!==void 0&&e<=r.exclusiveMinimum&&n.push({path:t,validation:"exclusiveMinimum",schema:r,value:e}),n):[]}function Ot(e,r,t,n,i=[]){if(typeof r=="object"&&r.properties&&x(e)){let o=[];for(let[s,a]of Object.entries(r.properties))o.push(...O(e[s],a,t,[...i,s],n));return o}return[]}var St;(function(e){e["7bit"]="7bit",e["8bit"]="8bit",e.Base64="base64",e.Binary="binary",e.IETFToken="ietf-token",e.QuotedPrintable="quoted-printable",e.XToken="x-token"})(St||(St={}));var b;(function(e){e.Date="date",e.DateTime="date-time",e.Duration="duration",e.Email="email",e.Hostname="hostname",e.IDNEmail="idn-email",e.IDNHostname="idn-hostname",e.IPv4="ipv4",e.IPv6="ipv6",e.IRI="iri",e.IRIReference="iri-reference",e.JSONPointer="json-pointer",e.JSONPointerURIFragment="json-pointer-uri-fragment",e.RegEx="regex",e.RelativeJSONPointer="relative-json-pointer",e.Time="time",e.URI="uri",e.URIReference="uri-reference",e.URITemplate="uri-template",e.UUID="uuid"})(b||(b={}));var xt;(function(e){e.Array="array",e.Boolean="boolean",e.Integer="integer",e.Null="null",e.Number="number",e.Object="object",e.String="string"})(xt||(xt={}));var S={DATE_TIME:/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/,DATE:/^\d{4}-\d{2}-\d{2}$/,TIME:/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/,DURATION:/^P(?!$)(?:\d+Y)?(?:\d+M)?(?:\d+D)?(?:T(?=\d)(?:\d+H)?(?:\d+M)?(?:\d+S)?)?$/,EMAIL:/^[\w.!#$%&'*+/=?^`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,IDN_EMAIL:/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/,HOSTNAME:/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/i,IDN_HOSTNAME:/^[^\s._-].*[^\s._-]$/,IPV6_PART:/^[0-9a-f]{1,4}$/i,PROTOCOL:/^[a-z]+:/,URI_REFERENCE:/^\S*$/,UUID:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,JSON_POINTER:/^(?:\/(?:[^~/]|~0|~1)*)*$/,JSON_POINTER_URI_FRAGMENT:/^#(?:\/(?:[\w\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,RELATIVE_JSON_POINTER:/^(?:0|[1-9]\d*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,URI_TEMPLATE:/^(?:[!#$&'()*+,/:;=?@\w\-.~]|%[0-9a-f]{2}|\{[+#./;?&=,!@|]?(?:\w|%[0-9a-f]{2})+(?::[1-9]\d{0,3}|\*)?(?:,(?:\w|%[0-9a-f]{2})+(?::[1-9]\d{0,3}|\*)?)*\})*$/i},fu={[b.DateTime]:e=>S.DATE_TIME.test(e),[b.Date]:e=>S.DATE.test(e),[b.Time]:e=>S.TIME.test(e),[b.Duration]:e=>S.DURATION.test(e),[b.Email]:e=>e.length<=254&&S.EMAIL.test(e),[b.IDNEmail]:e=>e.length<=254&&S.IDN_EMAIL.test(e),[b.Hostname]:e=>e.length>255?!1:e.split(".").every(t=>S.HOSTNAME.test(t)),[b.IDNHostname]:e=>e.length>255?!1:e.split(".").every(t=>t.length<=63&&S.IDN_HOSTNAME.test(t)),[b.IPv4]:e=>{let r=e.split(".");return r.length!==4?!1:r.every(t=>{let n=Number.parseInt(t,10);return n>=0&&n<=255&&t===n.toString()})},[b.IPv6]:e=>{let r=e.split(":");if(r.length>8)return!1;let t=!1;return r.every(n=>n===""?t?!1:(t=!0,!0):S.IPV6_PART.test(n))},[b.URI]:e=>{try{let r=new URL(e);return r.protocol!==""&&S.PROTOCOL.test(r.protocol)}catch{return!1}},[b.URIReference]:e=>{try{return e.startsWith("//")?S.URI_REFERENCE.test(e.slice(2)):(new URL(e,"http://example.com"),!0)}catch{return!1}},[b.IRI]:e=>{try{let r=new URL(e);return r.protocol!==""&&S.PROTOCOL.test(r.protocol)}catch{return!1}},[b.IRIReference]:e=>{try{return e.startsWith("//")?S.URI_REFERENCE.test(e.slice(2)):(new URL(e,"http://example.com"),!0)}catch{return!1}},[b.RegEx]:e=>{try{return new RegExp(e,"u"),!0}catch{return!1}},[b.UUID]:e=>S.UUID.test(e),[b.JSONPointer]:e=>S.JSON_POINTER.test(e),[b.JSONPointerURIFragment]:e=>S.JSON_POINTER_URI_FRAGMENT.test(e),[b.RelativeJSONPointer]:e=>S.RELATIVE_JSON_POINTER.test(e),[b.URITemplate]:e=>S.URI_TEMPLATE.test(e)};function Et(e,r,t=[]){let n=[];if(typeof e!="string")return n;let i=fu[r.format];return i&&!i(e)&&n.push({path:t,validation:"format",schema:r,value:e}),n}function vt(e,r,t=[]){let n=[];if(typeof e!="string")return[];if(!we(r,"string"))return[];let i=[...new Intl.Segmenter().segment(e)].length;if(r.minLength!==void 0&&i<r.minLength&&n.push({path:t,validation:"minLength",schema:r,value:e}),r.maxLength!==void 0&&i>r.maxLength&&n.push({path:t,validation:"maxLength",schema:r,value:e}),r.pattern!==void 0&&(new RegExp(r.pattern).test(e)||n.push({path:t,validation:"pattern",schema:r,value:e})),r.format!==void 0){let o=Et(e,r,t);n.push(...o)}return n}function Tt(e){if(typeof e=="boolean")return"boolean";if(e.type!==void 0)return e.type}function we(e,...r){let t=Tt(e);if(t===void 0)return!0;let n=Array.isArray(t)?t:[t];return r.some(i=>n.includes(i))}function lu(e,r,t=[]){let n=Tt(r);if(n===void 0)return[];if(n==="null"&&e===null)return[];let i=e===null?"null":Array.isArray(e)?"array":typeof e;if(Array.isArray(n)){if(e===null&&n.includes("null"))return[];for(let o of n){if(o==="array"&&Array.isArray(e))return[];if(i==="number"&&o==="integer"&&Number.isInteger(e))return[];if(i===o||o==="null"&&e===null)return[]}}else{if(n==="array"&&Array.isArray(e))return[];if(i==="number"&&n==="integer"&&Number.isInteger(e))return[];if(i===n)return[]}return[{path:t,validation:"type",schema:r,value:e}]}function cu(e,r,t={},n=[],i){return r?O(e,r,t,n,i):[]}function pu(e={}){return Object.keys(e).map(r=>({regex:new RegExp(r)}))}function O(e,r,t={},n=[],i){let o=i,s;if(!i&&r["x-jsf-logic"]){o=ve(r["x-jsf-logic"],e);let{validations:d,computedValues:m,...h}=r["x-jsf-logic"];s=h}let a=e===void 0||e===null&&t.treatNullAsUndefined,f=[];if(a)return[];if(typeof r=="boolean")return!r&&!t.allowForbiddenValues?[{path:n,validation:"forbidden",schema:r,value:e}]:[];let c=r["x-jsf-presentation"]?.inputType==="file",p=[];if(!c&&(p=lu(e,r,n),p.length>0))return p;if(r.required&&x(e)){let d=r.required.filter(m=>{let h=e[m];return Array.isArray(h)?h.length===0:x(h)?Object.keys(h).length===0:h===void 0||h===null&&t.treatNullAsUndefined});for(let m of d)f.push({path:[...n,m],validation:"required",schema:r?.properties?.[m]||r,value:e})}if(r.additionalProperties===!1&&x(e)){let d=new Set(Object.keys(r.properties||{})),m=pu(r.patternProperties);for(let h of Object.keys(e)){let w=d.has(h),ge=m.some(({regex:De})=>De.test(h));!w&&!ge&&f.push({path:[...n,h],validation:"additionalProperties",schema:r,value:e[h]})}}return[...f,...mt(e,r,n),...ht(e,r,n),...Ot(e,r,t,o,n),...ft(e,r,t,o,n),...vt(e,r,n),...bt(e,r,n),...gt(e,r,n),...dt(e,r,t,o,n),...lt(e,r,t,o,n),...ct(e,r,t,o,n),...pt(e,r,t,o,n),...wt(e,r,t,o,n),...zr(e,r,t,n),...cu(e,s,t,n,o),...st(r,o,n)]}function Xe(e,r,t,n,i=[]){let o=typeof r=="boolean",s=O(e,r,{...t,...o?{allowForbiddenValues:!1}:{}},i,n).length===0,a=!o&&"validations"in r?du(e,r.validations,n):!0,f=!o&&"computedValues"in r?mu(e,r.computedValues,n):!0;return s&&a&&f}function du(e,r,t){if(!t)throw new Error("`if` node with `validations` property but no `jsonLogicContext` present");return Object.entries(r??{}).every(([i,o])=>{let s=t?.schema?.validations?.[i]?.rule;if(!s)throw new Error(`\`if\` node with \`validations\` property but no validation rule present for ${i}`);let a=Te(i,s,e);return Object.hasOwn(o,"const")&&a===o.const})}function mu(e,r,t){if(!t)throw new Error("`if` node with `computedValues` property but no `jsonLogicContext` present");return Object.entries(r??{}).every(([i,o])=>{let s=t?.schema?.computedValues?.[i]?.rule;if(!s)throw new Error(`\`if\` node with \`computedValues\` property but no computed value rule present for ${i}`);let a=Te(i,s,e);return Object.hasOwn(o,"const")&&a===o.const})}function wt(e,r,t,n,i=[]){if(r.if===void 0)return[];let o=Xe(e,r.if,t,n,i);return o&&r.then!==void 0?O(e,r.then,t,[...i,"then"],n):!o&&r.else!==void 0?O(e,r.else,t,[...i,"else"],n):[]}function Ze({schema:e,values:r,options:t={}}){let n=e["x-jsf-logic"]?ve(e["x-jsf-logic"],r):void 0,i=ut(e);return ne(i,r,t,n),n?.schema.computedValues&&(at(i,n.schema.computedValues,r),ne(i,r,t,n)),i}function It(e,r,t,n={},i){let o=Xe(e,t.if,n.legacyOptions??{},i),s=!1;return o&&t.if?.required&&(s=t.if.required.some(f=>{if(!r.properties||!r.properties[f])return!1;let l=r.properties[f],c=e[f];return O(c,l,n.legacyOptions??{},[],i).some(d=>d.validation==="type")})),{rule:t,matches:o&&!s}}function At(e,r){return typeof e<"u"&&(!r||typeof e=="boolean")}function ne(e,r={},t={},n,i=!1){if(!x(r))return;let o=[];At(e.if,i)&&o.push(It(r,e,e,t,n));let s=e.allOf??[],a=e["x-jsf-logic"]?.allOf??[];[...s,...a].filter(f=>At(f.if,i)).forEach(f=>{let l=It(r,e,f,t,n);o.push(l)});for(let{rule:f,matches:l}of o)l&&f.then?(qt(e,r,f.then,t,n,i),delete f.then):!l&&f.else&&(qt(e,r,f.else,t,n,i),delete f.else);if(e.properties){for(let[f,l]of Object.entries(e.properties))if(typeof l=="object"){let c=l;c.type==="object"&&ne(c,r[f],t,n,i),c.items&&ne(c.items,{},t,n,!0)}}}function qt(e,r,t,n={},i,o=!1){let s=t;ne(s,r,n,i,o),Ge(e,s,n)}function Qe(e,r,t){let n=j({schema:r,name:"root",required:!0,originalSchema:t,strictInputType:!1})?.fields||[];for(let i of e){let o=n.find(s=>s.name===i.name);if(o){Ct(i,o),ze(i,o);let s=r.properties?.[i.name],a=t.properties?.[i.name];s&&typeof s=="object"&&i.fields&&s.type==="object"&&Qe(i.fields,s,a)}}}function Ct(e,r){for(let[t]of Object.entries(e))r[t]?e[t]&&typeof e[t]=="object"&&!Array.isArray(e[t])&&r[t]&&typeof r[t]=="object"&&!Array.isArray(r[t])&&Ct(e[t],r[t]):delete e[t]}function hu(e){let r=[];for(let t=0;t<e.length;t++){let n=e[t];if(["allOf","anyOf","oneOf"].includes(n)){t+1<e.length&&typeof e[t+1]=="number"&&t++;continue}n==="then"||n==="else"||(n==="items"&&typeof e[t+1]=="number"?(t++,r.push(e[t])):r.push(n))}return r}function gu(e){if(e.length===0)return null;let r={};for(let t of e){let{path:n}=t;if(n.length===0){r[""]=t.message;continue}let i=hu(n),o=r;for(let s=0;s<i.length-1;s++){let a=i[s];if(typeof a=="number"){if(!Array.isArray(o))throw new TypeError(`Expected an array at path: ${i.slice(0,s).join(".")}`);o[a]||(o[a]={}),o=o[a]}else typeof i[s+1]=="number"?a in o||(o[a]=[]):(!(a in o)||typeof o[a]=="string")&&(o[a]={}),o=o[a]}if(i.length>0){let s=i[i.length-1];o[s]=t.message}}return r}function yu(e){return e.map(r=>{let{schema:t,value:n,validation:i,customErrorMessage:o}=r;return{...r,message:Yr(t,n,i,o)}})}function bu(e,r){return typeof r!="object"||!r||!e.length?e:e.map(t=>{let n=t.schema,i=n["x-jsf-errorMessage"]?.[t.validation];return n&&i?{...t,message:i}:t})}function Ou(e,r,t={}){let n={},i=O(e,r,t),o=yu(i),s=bu(o,r),a=gu(s);return a&&(n.formErrors=a),n}function Su(e){let{schema:r,originalSchema:t,strictInputType:n}=e;return j({schema:r,name:"root",required:!0,originalSchema:t,strictInputType:n})?.fields||[]}function xu(e){if(Object.prototype.hasOwnProperty.call(e,"customProperties")&&console.error("[json-schema-form] `customProperties` is a deprecated option and it's not supported on json-schema-form v1"),e.customJsonLogicOps){if(typeof e.customJsonLogicOps!="object"||e.customJsonLogicOps===null)throw new TypeError("validationOptions.customJsonLogicOps must be an object.");for(let[r,t]of Object.entries(e.customJsonLogicOps))if(typeof t!="function")throw new TypeError(`Custom JSON Logic operator '${r}' must be a function, but received type '${typeof t}'.`)}}function er(e,r){if(typeof e=="boolean")return r;if(e.properties){let t=x(r)?{...r}:{};for(let[n,i]of Object.entries(e.properties)){let o=er(i,t[n]);o!==void 0&&(t[n]=o)}return t}if(e.items&&typeof e.items!="boolean"&&Array.isArray(r)){let t=e.items;return r.map(n=>er(t,n))}return r===void 0&&e.default!==void 0?e.default:r}function Eu(e,r={}){xu(r);let t=r.strictInputType||!1,n=r?.customJsonLogicOps;Ke(n);let i=er(e,r.initialValues||{}),o=Ze({schema:e,values:i,options:r}),s=Su({schema:o,originalSchema:e,strictInputType:t}),a=!1,f=l=>{try{Ke(n);let c=Ze({schema:e,values:l,options:r}),p=Ou(l,c,r.legacyOptions);return Qe(s,c,e),p}finally{Ye(n)}};return Ye(n),{fields:s,isError:a,error:null,handleValidation:f}}var ma=I(Yi(),1),K=I(xo(),1),W=I(qo(),1),ha=I(sa(),1),Me=I(ua(),1),Le=I(da(),1),Kh=new Set(["items"]);function ga(e){return e.split(".").reduce((t,n,i)=>i===0?n:Kh.has(n)?`${t}.${n}`:`${t}.properties.${n}`,"")}function Ir(e){let{errorMessage:r,presentation:t,properties:n,...i}=e;return{...i,...t?{"x-jsf-presentation":t}:{},...r?{"x-jsf-errorMessage":r}:{}}}function Ar(e,r){return Array.isArray(r)?r:void 0}function Yh(e,r){let{if:t,then:n,else:i}=e;return(0,W.default)(t?.required||[],r).length>0||((0,W.default)(n?.required||[],r)||(0,W.default)(Object.keys(n?.properties||{}),r)).length>0||((0,W.default)(i?.required||[],r)||(0,W.default)(Object.keys(i?.properties||{}),r)).length>0}function qr(e,r){if(!r)return{warnings:null};let t=[];return Object.entries(r).forEach(([i,o])=>{let s=ga(i),a=(0,K.default)(e.properties,s);if(!a){t.push({type:"FIELD_TO_CHANGE_NOT_FOUND",message:`Changing field "${i}" was ignored because it does not exist.`});return}let f=typeof o=="function"?o(a):o,l=Ir(f);if(delete l.items,(0,Me.default)(a,l,Ar),f.properties){let c=qr((0,K.default)(e.properties,s),f.properties);c.warnings&&t.push(...c.warnings)}if(f.items){let c=a.items;if(typeof c=="object"&&c!==null){let{properties:d,...m}=f.items;if((0,Me.default)(c,Ir(m),Ar),d&&typeof d=="object"){let h=qr(c,d);h.warnings&&t.push(...h.warnings)}}}}),{warnings:t.flat()}}function Cr(e,r,t){if(!r||typeof e!="object"||e===null)return{warnings:null};let n=t?.parent;return typeof e=="object"&&e.properties&&Object.entries(e.properties).forEach(([i,o])=>{let s=n?`${n}.${i}`:i,a=r(s,o),f=Ir(a);(0,Me.default)((0,K.default)(e.properties,i),{...o,...f},Ar),o.properties&&Cr(o,r,{parent:i}),o.items&&Cr(o.items,r,{parent:i})}),{warnings:null}}function Xh(e,r){if(!r)return{warnings:null};let t=[],n=e["x-jsf-order"]||[],i=typeof r=="function"?r(n):r,o=(0,ma.default)(n,i);return o.length>0&&t.push({type:"ORDER_MISSING_FIELDS",message:`Some fields got forgotten in the new order. They were automatically appended: ${o.join(", ")}`}),e["x-jsf-order"]=[...i,...o],{warnings:t}}function ya(e,r){if(!r)return{warnings:null};let t=[];return Object.entries(r).forEach(([i,o])=>{let s=ga(i);if(!o)return{warnings:null};if(o.properties){let l=(0,K.default)(e.properties,s);if(!l)return{warnings:null};let c=ya(l,o.properties);c.warnings&&t.push(...c.warnings)}if((0,K.default)(e.properties,s)){t.push({type:"FIELD_TO_CREATE_EXISTS",message:`Creating field "${i}" was ignored because it already exists.`});return}let f=(0,Le.default)({},s,o);(0,ha.default)(e.properties,f)}),{warnings:t.flat()}}function Zh(e,r){if(!r)return{schema:e,warnings:null};let t={properties:{}};Object.entries(e).forEach(([o,s])=>{switch(o){case"properties":r.forEach(a=>{(0,Le.default)(t.properties,a,s[a])});break;case"x-jsf-order":case"required":t[o]=s.filter(a=>r.includes(a));break;case"allOf":{let a=e[o]?.filter(f=>Yh(f,r));t[o]=a;break}default:t[o]=s}});let n={};t.allOf?.length&&t.allOf.forEach(o=>{let{if:s,then:a,else:f}=o,l=e.allOf?.indexOf(o);n={...n,...wr(s,{fields:r,path:`allOf[${l}].if`}),...wr(a,{fields:r,path:`allOf[${l}].then`}),...wr(f,{fields:r,path:`allOf[${l}].else`})}});let i=[];return Object.keys(n).length>0&&(Object.entries(n).forEach(([o])=>{(0,Le.default)(t.properties,o,e.properties?.[o])}),i.push({type:"PICK_MISSED_FIELD",message:`The picked fields are in conditionals that refeer other fields. They added automatically: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}. Check "meta" for more details.`,meta:n})),{schema:t,warnings:i}}function wr(e,{fields:r,path:t}){if(!e)return null;let n={};return e.required?.forEach(i=>{r.includes(i)||(n[i]={path:t})}),Object.entries(e.properties||[]).forEach(([i])=>{r.includes(i)||(n[i]={path:t})}),n}function Qh(e,r){let t=JSON.parse(JSON.stringify(e)),n=qr(t,r.fields),i=Cr(t,r.allFields),o=ya(t,r.create),s=Zh(t,r.pick),a=s.schema,f=Xh(a,r.orderRoot);r.muteLogging||console.warn("json-schema-form modify(): We highly recommend you to handle/report the returned `warnings` as they highlight possible bugs in your modifications. To mute this log, pass `muteLogging: true` to the config.");let l=[n.warnings,i.warnings,o.warnings,s.warnings,f.warnings].flat().filter(Boolean);return{schema:a,warnings:l}}export{Eu as createHeadlessForm,Qh as modify};
3
3
  //# sourceMappingURL=index.mjs.map