@applica-software-guru/react-admin 1.5.344 → 1.5.345
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/components/ra-buttons/DeleteWithConfirmButton.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +7 -0
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.gz +0 -0
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-buttons/DeleteWithConfirmButton.tsx +7 -0
package/dist/react-admin.umd.js
CHANGED
|
@@ -221,7 +221,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
221
221
|
}`;var Ke=HA(function(){return ut(L,Ie+"return "+me).apply(n,X)});if(Ke.source=me,wv(Ke))throw Ke;return Ke}function zce(a){return mt(a).toLowerCase()}function Uce(a){return mt(a).toUpperCase()}function Hce(a,c,v){if(a=mt(a),a&&(v||c===n))return $2(a);if(!a||!(c=or(c)))return a;var S=Rr(a),j=Rr(c),L=eT(S,j),X=tT(S,j)+1;return hi(S,L,X).join("")}function Gce(a,c,v){if(a=mt(a),a&&(v||c===n))return a.slice(0,rT(a)+1);if(!a||!(c=or(c)))return a;var S=Rr(a),j=tT(S,Rr(c))+1;return hi(S,0,j).join("")}function Yce(a,c,v){if(a=mt(a),a&&(v||c===n))return a.replace(Pt,"");if(!a||!(c=or(c)))return a;var S=Rr(a),j=eT(S,Rr(c));return hi(S,j).join("")}function Kce(a,c){var v=F,S=B;if(Dt(c)){var j="separator"in c?c.separator:j;v="length"in c?Ye(c.length):v,S="omission"in c?or(c.omission):S}a=mt(a);var L=a.length;if(ya(a)){var X=Rr(a);L=X.length}if(v>=L)return a;var q=v-ba(S);if(q<1)return S;var ie=X?hi(X,0,q).join(""):a.slice(0,q);if(j===n)return ie+S;if(X&&(q+=ie.length-q),Sv(j)){if(a.slice(q).search(j)){var de,pe=ie;for(j.global||(j=Nm(j.source,mt(Xd.exec(j))+"g")),j.lastIndex=0;de=j.exec(pe);)var me=de.index;ie=ie.slice(0,me===n?q:me)}}else if(a.indexOf(or(j),q)!=q){var Se=ie.lastIndexOf(j);Se>-1&&(ie=ie.slice(0,Se))}return ie+S}function Xce(a){return a=mt(a),a&&da.test(a)?a.replace(ua,Soe):a}var Zce=Aa(function(a,c,v){return a+(v?" ":"")+c.toUpperCase()}),Av=GT("toUpperCase");function UA(a,c,v){return a=mt(a),c=v?n:c,c===n?yoe(a)?Aoe(a):coe(a):a.match(c)||[]}var HA=Ze(function(a,c){try{return nr(a,n,c)}catch(v){return wv(v)?v:new ze(v)}}),Qce=Oo(function(a,c){return Tr(c,function(v){v=io(v),Ao(a,v,xv(a[v],a))}),a});function Jce(a){var c=a==null?0:a.length,v=_e();return a=c?_t(a,function(S){if(typeof S[1]!="function")throw new Ar(s);return[v(S[0]),S[1]]}):[],Ze(function(S){for(var j=-1;++j<c;){var L=a[j];if(nr(L[0],this,S))return nr(L[1],this,S)}})}function qce(a){return Sie(Or(a,g))}function Iv(a){return function(){return a}}function $ce(a,c){return a==null||a!==a?c:a}var eue=KT(),tue=KT(!0);function Hn(a){return a}function Ov(a){return ST(typeof a=="function"?a:Or(a,g))}function nue(a){return TT(Or(a,g))}function rue(a,c){return AT(a,Or(c,g))}var oue=Ze(function(a,c){return function(v){return rc(v,a,c)}}),iue=Ze(function(a,c){return function(v){return rc(a,v,c)}});function Pv(a,c,v){var S=sn(c),j=yf(c,S);v==null&&!(Dt(c)&&(j.length||!S.length))&&(v=c,c=a,a=this,j=yf(c,sn(c)));var L=!(Dt(v)&&"chain"in v)||!!v.chain,X=jo(a);return Tr(j,function(q){var ie=c[q];a[q]=ie,X&&(a.prototype[q]=function(){var de=this.__chain__;if(L||de){var pe=a(this.__wrapped__),me=pe.__actions__=Wn(this.__actions__);return me.push({func:ie,args:arguments,thisArg:a}),pe.__chain__=de,pe}return ie.apply(a,li([this.value()],arguments))})}),a}function sue(){return hn._===this&&(hn._=Moe),this}function jv(){}function aue(a){return a=Ye(a),Ze(function(c){return IT(c,a)})}var lue=av(_t),cue=av(X2),uue=av(Mm);function GA(a){return hv(a)?_m(io(a)):Vie(a)}function due(a){return function(c){return a==null?n:rs(a,c)}}var fue=ZT(),pue=ZT(!0);function kv(){return[]}function Mv(){return!1}function hue(){return{}}function gue(){return""}function mue(){return!0}function vue(a,c){if(a=Ye(a),a<1||a>H)return[];var v=W,S=wn(a,W);c=_e(c),a-=W;for(var j=Dm(S,c);++v<a;)c(v);return j}function yue(a){return Ue(a)?_t(a,io):ir(a)?[a]:Wn(dA(mt(a)))}function bue(a){var c=++joe;return mt(a)+c}var xue=Ef(function(a,c){return a+c},0),Cue=lv("ceil"),wue=Ef(function(a,c){return a/c},1),Sue=lv("floor");function Eue(a){return a&&a.length?vf(a,Hn,Km):n}function Tue(a,c){return a&&a.length?vf(a,_e(c,2),Km):n}function Aue(a){return J2(a,Hn)}function Iue(a,c){return J2(a,_e(c,2))}function Oue(a){return a&&a.length?vf(a,Hn,Jm):n}function Pue(a,c){return a&&a.length?vf(a,_e(c,2),Jm):n}var jue=Ef(function(a,c){return a*c},1),kue=lv("round"),Mue=Ef(function(a,c){return a-c},0);function _ue(a){return a&&a.length?Bm(a,Hn):0}function Fue(a,c){return a&&a.length?Bm(a,_e(c,2)):0}return D.after=nle,D.ary=wA,D.assign=Ule,D.assignIn=DA,D.assignInWith=Rf,D.assignWith=Hle,D.at=Gle,D.before=SA,D.bind=xv,D.bindAll=Qce,D.bindKey=EA,D.castArray=hle,D.chain=bA,D.chunk=Sse,D.compact=Ese,D.concat=Tse,D.cond=Jce,D.conforms=qce,D.constant=Iv,D.countBy=_ae,D.create=Yle,D.curry=TA,D.curryRight=AA,D.debounce=IA,D.defaults=Kle,D.defaultsDeep=Xle,D.defer=rle,D.delay=ole,D.difference=Ase,D.differenceBy=Ise,D.differenceWith=Ose,D.drop=Pse,D.dropRight=jse,D.dropRightWhile=kse,D.dropWhile=Mse,D.fill=_se,D.filter=Bae,D.flatMap=Lae,D.flatMapDeep=Nae,D.flatMapDepth=Vae,D.flatten=gA,D.flattenDeep=Fse,D.flattenDepth=Bse,D.flip=ile,D.flow=eue,D.flowRight=tue,D.fromPairs=Dse,D.functions=tce,D.functionsIn=nce,D.groupBy=Wae,D.initial=Lse,D.intersection=Nse,D.intersectionBy=Vse,D.intersectionWith=Wse,D.invert=oce,D.invertBy=ice,D.invokeMap=Uae,D.iteratee=Ov,D.keyBy=Hae,D.keys=sn,D.keysIn=Un,D.map=kf,D.mapKeys=ace,D.mapValues=lce,D.matches=nue,D.matchesProperty=rue,D.memoize=_f,D.merge=cce,D.mergeWith=RA,D.method=oue,D.methodOf=iue,D.mixin=Pv,D.negate=Ff,D.nthArg=aue,D.omit=uce,D.omitBy=dce,D.once=sle,D.orderBy=Gae,D.over=lue,D.overArgs=ale,D.overEvery=cue,D.overSome=uue,D.partial=Cv,D.partialRight=OA,D.partition=Yae,D.pick=fce,D.pickBy=LA,D.property=GA,D.propertyOf=due,D.pull=Gse,D.pullAll=vA,D.pullAllBy=Yse,D.pullAllWith=Kse,D.pullAt=Xse,D.range=fue,D.rangeRight=pue,D.rearg=lle,D.reject=Zae,D.remove=Zse,D.rest=cle,D.reverse=yv,D.sampleSize=Jae,D.set=hce,D.setWith=gce,D.shuffle=qae,D.slice=Qse,D.sortBy=tle,D.sortedUniq=rae,D.sortedUniqBy=oae,D.split=Lce,D.spread=ule,D.tail=iae,D.take=sae,D.takeRight=aae,D.takeRightWhile=lae,D.takeWhile=cae,D.tap=Eae,D.throttle=dle,D.thru=jf,D.toArray=_A,D.toPairs=NA,D.toPairsIn=VA,D.toPath=yue,D.toPlainObject=BA,D.transform=mce,D.unary=fle,D.union=uae,D.unionBy=dae,D.unionWith=fae,D.uniq=pae,D.uniqBy=hae,D.uniqWith=gae,D.unset=vce,D.unzip=bv,D.unzipWith=yA,D.update=yce,D.updateWith=bce,D.values=Pa,D.valuesIn=xce,D.without=mae,D.words=UA,D.wrap=ple,D.xor=vae,D.xorBy=yae,D.xorWith=bae,D.zip=xae,D.zipObject=Cae,D.zipObjectDeep=wae,D.zipWith=Sae,D.entries=NA,D.entriesIn=VA,D.extend=DA,D.extendWith=Rf,Pv(D,D),D.add=xue,D.attempt=HA,D.camelCase=Ece,D.capitalize=WA,D.ceil=Cue,D.clamp=Cce,D.clone=gle,D.cloneDeep=vle,D.cloneDeepWith=yle,D.cloneWith=mle,D.conformsTo=ble,D.deburr=zA,D.defaultTo=$ce,D.divide=wue,D.endsWith=Tce,D.eq=Nr,D.escape=Ace,D.escapeRegExp=Ice,D.every=Fae,D.find=Dae,D.findIndex=pA,D.findKey=Zle,D.findLast=Rae,D.findLastIndex=hA,D.findLastKey=Qle,D.floor=Sue,D.forEach=xA,D.forEachRight=CA,D.forIn=Jle,D.forInRight=qle,D.forOwn=$le,D.forOwnRight=ece,D.get=Ev,D.gt=xle,D.gte=Cle,D.has=rce,D.hasIn=Tv,D.head=mA,D.identity=Hn,D.includes=zae,D.indexOf=Rse,D.inRange=wce,D.invoke=sce,D.isArguments=ss,D.isArray=Ue,D.isArrayBuffer=wle,D.isArrayLike=zn,D.isArrayLikeObject=Yt,D.isBoolean=Sle,D.isBuffer=gi,D.isDate=Ele,D.isElement=Tle,D.isEmpty=Ale,D.isEqual=Ile,D.isEqualWith=Ole,D.isError=wv,D.isFinite=Ple,D.isFunction=jo,D.isInteger=PA,D.isLength=Bf,D.isMap=jA,D.isMatch=jle,D.isMatchWith=kle,D.isNaN=Mle,D.isNative=_le,D.isNil=Ble,D.isNull=Fle,D.isNumber=kA,D.isObject=Dt,D.isObjectLike=zt,D.isPlainObject=cc,D.isRegExp=Sv,D.isSafeInteger=Dle,D.isSet=MA,D.isString=Df,D.isSymbol=ir,D.isTypedArray=Oa,D.isUndefined=Rle,D.isWeakMap=Lle,D.isWeakSet=Nle,D.join=zse,D.kebabCase=Oce,D.last=jr,D.lastIndexOf=Use,D.lowerCase=Pce,D.lowerFirst=jce,D.lt=Vle,D.lte=Wle,D.max=Eue,D.maxBy=Tue,D.mean=Aue,D.meanBy=Iue,D.min=Oue,D.minBy=Pue,D.stubArray=kv,D.stubFalse=Mv,D.stubObject=hue,D.stubString=gue,D.stubTrue=mue,D.multiply=jue,D.nth=Hse,D.noConflict=sue,D.noop=jv,D.now=Mf,D.pad=kce,D.padEnd=Mce,D.padStart=_ce,D.parseInt=Fce,D.random=Sce,D.reduce=Kae,D.reduceRight=Xae,D.repeat=Bce,D.replace=Dce,D.result=pce,D.round=kue,D.runInContext=ne,D.sample=Qae,D.size=$ae,D.snakeCase=Rce,D.some=ele,D.sortedIndex=Jse,D.sortedIndexBy=qse,D.sortedIndexOf=$se,D.sortedLastIndex=eae,D.sortedLastIndexBy=tae,D.sortedLastIndexOf=nae,D.startCase=Nce,D.startsWith=Vce,D.subtract=Mue,D.sum=_ue,D.sumBy=Fue,D.template=Wce,D.times=vue,D.toFinite=ko,D.toInteger=Ye,D.toLength=FA,D.toLower=zce,D.toNumber=kr,D.toSafeInteger=zle,D.toString=mt,D.toUpper=Uce,D.trim=Hce,D.trimEnd=Gce,D.trimStart=Yce,D.truncate=Kce,D.unescape=Xce,D.uniqueId=bue,D.upperCase=Zce,D.upperFirst=Av,D.each=xA,D.eachRight=CA,D.first=mA,Pv(D,function(){var a={};return ro(D,function(c,v){bt.call(D.prototype,v)||(a[v]=c)}),a}(),{chain:!1}),D.VERSION=r,Tr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){D[a].placeholder=D}),Tr(["drop","take"],function(a,c){$e.prototype[a]=function(v){v=v===n?1:on(Ye(v),0);var S=this.__filtered__&&!c?new $e(this):this.clone();return S.__filtered__?S.__takeCount__=wn(v,S.__takeCount__):S.__views__.push({size:wn(v,W),type:a+(S.__dir__<0?"Right":"")}),S},$e.prototype[a+"Right"]=function(v){return this.reverse()[a](v).reverse()}}),Tr(["filter","map","takeWhile"],function(a,c){var v=c+1,S=v==K||v==z;$e.prototype[a]=function(j){var L=this.clone();return L.__iteratees__.push({iteratee:_e(j,3),type:v}),L.__filtered__=L.__filtered__||S,L}}),Tr(["head","last"],function(a,c){var v="take"+(c?"Right":"");$e.prototype[a]=function(){return this[v](1).value()[0]}}),Tr(["initial","tail"],function(a,c){var v="drop"+(c?"":"Right");$e.prototype[a]=function(){return this.__filtered__?new $e(this):this[v](1)}}),$e.prototype.compact=function(){return this.filter(Hn)},$e.prototype.find=function(a){return this.filter(a).head()},$e.prototype.findLast=function(a){return this.reverse().find(a)},$e.prototype.invokeMap=Ze(function(a,c){return typeof a=="function"?new $e(this):this.map(function(v){return rc(v,a,c)})}),$e.prototype.reject=function(a){return this.filter(Ff(_e(a)))},$e.prototype.slice=function(a,c){a=Ye(a);var v=this;return v.__filtered__&&(a>0||c<0)?new $e(v):(a<0?v=v.takeRight(-a):a&&(v=v.drop(a)),c!==n&&(c=Ye(c),v=c<0?v.dropRight(-c):v.take(c-a)),v)},$e.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},$e.prototype.toArray=function(){return this.take(W)},ro($e.prototype,function(a,c){var v=/^(?:filter|find|map|reject)|While$/.test(c),S=/^(?:head|last)$/.test(c),j=D[S?"take"+(c=="last"?"Right":""):c],L=S||/^find/.test(c);j&&(D.prototype[c]=function(){var X=this.__wrapped__,q=S?[1]:arguments,ie=X instanceof $e,de=q[0],pe=ie||Ue(X),me=function(Je){var et=j.apply(D,li([Je],q));return S&&Se?et[0]:et};pe&&v&&typeof de=="function"&&de.length!=1&&(ie=pe=!1);var Se=this.__chain__,Ie=!!this.__actions__.length,Fe=L&&!Se,Ke=ie&&!Ie;if(!L&&pe){X=Ke?X:new $e(this);var Be=a.apply(X,q);return Be.__actions__.push({func:jf,args:[me],thisArg:n}),new Ir(Be,Se)}return Fe&&Ke?a.apply(this,q):(Be=this.thru(me),Fe?S?Be.value()[0]:Be.value():Be)})}),Tr(["pop","push","shift","sort","splice","unshift"],function(a){var c=tf[a],v=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",S=/^(?:pop|shift)$/.test(a);D.prototype[a]=function(){var j=arguments;if(S&&!this.__chain__){var L=this.value();return c.apply(Ue(L)?L:[],j)}return this[v](function(X){return c.apply(Ue(X)?X:[],j)})}}),ro($e.prototype,function(a,c){var v=D[c];if(v){var S=v.name+"";bt.call(Sa,S)||(Sa[S]=[]),Sa[S].push({name:c,func:v})}}),Sa[Sf(n,E).name]=[{name:"wrapper",func:n}],$e.prototype.clone=Xoe,$e.prototype.reverse=Zoe,$e.prototype.value=Qoe,D.prototype.at=Tae,D.prototype.chain=Aae,D.prototype.commit=Iae,D.prototype.next=Oae,D.prototype.plant=jae,D.prototype.reverse=kae,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=Mae,D.prototype.first=D.prototype.head,Ql&&(D.prototype[Ql]=Pae),D},xa=Ioe();qi?((qi.exports=xa)._=xa,Om._=xa):hn._=xa}).call(Tn)}(dd,dd.exports);var qe=dd.exports;const se=_r(qe),RX=["e-","entities/"];function LX(e){let t=e;return RX.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t}function NX(e,t){var n,r;return((n=t.options)==null?void 0:n.group)===e.id||!((r=t.options)!=null&&r.group)&&e.id==="admin"}function VX(e,t){const n=LX(e.name);return(t==null?void 0:t.includes(`${n}:list`))||(t==null?void 0:t.includes(`${n}:find`))}function zg(e,t){let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=zg(o.children,t),n))return n}return n}function G4(e,t,n){let r=e.find(o=>["group","collapse"].indexOf(o.type)!==-1&&NX(o,t));if(!r)for(let o=0;o<e.length;o++){const i=e[o];if(i.children&&(r=G4(i.children,t),r))return r}return r}function Y4(e,t){let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=Y4(o.children,t),n))return n}return n}function K4(e){return e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(K4)),e.children&&e.children.length>0):!1}function X4(e){return e.children&&e.children.forEach(t=>{t.parent=e,X4(t)}),e}function WX(e,t,n,r,o){function i(g){return g.title=r(g.title,{_:g.title}),g.children&&g.children.forEach(h=>i(h)),g}const s=Object.keys(t);function l(g,h){return g.children&&(g.children=g.children.filter(m=>{if(m.resource===!1){const y=m.roles||[];return!!(y.length===0||y.some(x=>o.includes(x)))}return m.type==="item"?h.includes(m.id):(l(m,h),m.children&&m.children.length>0)})),g}const u=se.cloneDeep(e).map(g=>({children:[],...g,type:g.type||"group"})).map(i).map(g=>l(g,s)),d=Object.values(t).map(g=>{var h;return((h=g.options)==null?void 0:h.group)||"admin"}).filter((g,h,m)=>m.indexOf(g)===h).filter(g=>g!==void 0&&Y4(e,g)===null).map(g=>({id:g,title:r(`ra.menu.group.${g}`),type:"group",icon:He.AntDesignOutlined,children:[]})),f=[...u,...d];return Object.values(t).forEach(g=>{var I,w,A,O;const h=G4(f,g),m=(I=h==null?void 0:h.children)==null?void 0:I.find(k=>k.id===g.name),y=(w=h==null?void 0:h.children)==null?void 0:w.some(k=>k.id===g.name),x=(m==null?void 0:m.roles)||((A=g.options)==null?void 0:A.roles)||[],C=!x||x.length===0||x.some(k=>o.includes(k));if(!VX(g,n)||g.list||!C){y&&h&&h.children&&((O=h==null?void 0:h.children)==null?void 0:O.length)>0&&(h.children=h.children.filter(k=>k.id!==g.name));return}h&&(h.children||(h.children=[]))}),f.filter(K4).map(X4)}function Al(){throw new Error("Not implemented")}const Z4={openItem:[],openComponent:"buttons",selectedID:null,drawerOpen:!1,error:null,menu:[],activeItem:Al,openDrawer:Al,activeID:Al,hasError:Al,setMenu:Al},Q4=P.createContext(Z4);function J4({menu:e,children:t}){const[n,r]=P.useState({...Z4,menu:e});function o(d){r(f=>({...f,menu:d}))}function i(d){r(f=>({...f,openItem:d}))}function s(d){r(f=>({...f,selectedID:d}))}function l(d){r(f=>({...f,drawerOpen:d}))}function u(d){r(f=>({...f,error:d}))}return P.useEffect(()=>{o(e)},[e]),p.jsx(Q4.Provider,{value:{...n,setMenu:o,activeItem:i,openDrawer:l,activeID:s,hasError:u},children:t})}function fd(){return P.useContext(Q4)}function Ug(){const e=re.useResourceDefinitions(),{isLoading:t,data:n}=re.useGetIdentity(),r=!!n&&!!n.id,{permissions:o}=re.usePermissions(r),{menu:i}=fd(),s=re.useTranslate(),l=P.useMemo(()=>{if(t||!n)return null;const f=((n==null?void 0:n.roles)||[]).map(h=>h.id);return WX(i,e,o,s,f)},[t,n,e,o,s,i]),u=P.useMemo(()=>t,[t]);function d(f){if(l)return zg(l,f)}return{menu:l,isLoading:u,getItem:d,findInMenu:u?()=>{}:zg}}function q4(){const e=re.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=Ug(),{pathname:o}=vi.useLocation();return P.useMemo(()=>{var h;const i=o.split("/").filter(m=>m),s=se.cloneDeep(n);let l=o,u=r(s,o);if((!u||u.type==="collapse"||u.type==="group")&&(u=r(s,i[i.length-1]),l=u?u.id:l),!u||u.type==="collapse"||u.type==="group")for(let m=i.length;m>=0;m--){const y=i.slice(0,m).join("/");if(u=r(s,y),u){l=u.id;break}}const d=(h=u==null?void 0:u.url)==null?void 0:h.split("/"),f=(d==null?void 0:d.length)||0;if(i.length>=f){const m=i[i.length-1];if(u){const y=m==="create"||o===u.url?"create":"edit",x=`resources.${l}.breadcrumbs.${y}`,C={id:`${l}-${y}`,type:"item",title:e(x,{_:e(x,{_:x})}),url:o,breadcrumbs:!0,parent:u};u.type="collapse",u.breadcrumbs=!0,u.children=u.children||[],u.children.push(C),u=C}}let g=[];if(u){let m={...u,last:!0};for(;m;)g.push(m),m=m.parent;g=g.reverse()}return{isLoading:t,navigation:{items:s},breadcrumbs:g}},[t,o,n,r,e])}function Il(){return fd()}function Fr(e,t,n){const r=se.chain((e==null?void 0:e.sx)??{}).cloneDeepWith(s=>se.isFunction(s)?s:void 0).value();n!=null&&n.defaults?se.defaultsDeep(r,t):se.merge(r,t);const[o,i]=P.useState(r);return P.useEffect(()=>{se.isEqual(o,r)||i(r)},[o,r]),o}function zX(){let e=new Date().getTime();return window.performance&&typeof window.performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(n=="x"?r:r&3|8).toString(16)})}function Di(e){this._maxSize=e,this.clear()}Di.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Di.prototype.get=function(e){return this._values[e]},Di.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var UX=/[^.^\]^[]+|(?=\[\]|\.\.)/g,$4=/^\d+$/,HX=/^\d/,GX=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,YX=/^\s*(['"]?)(.*?)(\1)\s*$/,Hg=512,e3=new Di(Hg),t3=new Di(Hg),n3=new Di(Hg),Ri={Cache:Di,split:Yg,normalizePath:Gg,setter:function(e){var t=Gg(e);return t3.get(e)||t3.set(e,function(r,o){for(var i=0,s=t.length,l=r;i<s-1;){var u=t[i];if(u==="__proto__"||u==="constructor"||u==="prototype")return r;l=l[t[i++]]}l[t[i]]=o})},getter:function(e,t){var n=Gg(e);return n3.get(e)||n3.set(e,function(o){for(var i=0,s=n.length;i<s;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(Kg(n)||$4.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){KX(Array.isArray(e)?e:Yg(e),t,n)}};function Gg(e){return e3.get(e)||e3.set(e,Yg(e).map(function(t){return t.replace(YX,"$2")}))}function Yg(e){return e.match(UX)||[""]}function KX(e,t,n){var r=e.length,o,i,s,l;for(i=0;i<r;i++)o=e[i],o&&(QX(o)&&(o='"'+o+'"'),l=Kg(o),s=!l&&/^\d+$/.test(o),t.call(n,o,l,s,i,e))}function Kg(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function XX(e){return e.match(HX)&&!e.match($4)}function ZX(e){return GX.test(e)}function QX(e){return!Kg(e)&&(XX(e)||ZX(e))}const JX=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,pd=e=>e.match(JX)||[],hd=e=>e[0].toUpperCase()+e.slice(1),Xg=(e,t)=>pd(e).join(t).toLowerCase(),r3=e=>pd(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,"");var Zg={words:pd,upperFirst:hd,camelCase:r3,pascalCase:e=>hd(r3(e)),snakeCase:e=>Xg(e,"_"),kebabCase:e=>Xg(e,"-"),sentenceCase:e=>hd(Xg(e," ")),titleCase:e=>pd(e).map(hd).join(" ")},Qg={exports:{}};Qg.exports=function(e){return o3(qX(e),e)},Qg.exports.array=o3;function o3(e,t){var n=e.length,r=new Array(n),o={},i=n,s=$X(t),l=eZ(e);for(t.forEach(function(d){if(!l.has(d[0])||!l.has(d[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||u(e[i],i,new Set);return r;function u(d,f,g){if(g.has(d)){var h;try{h=", node was:"+JSON.stringify(d)}catch{h=""}throw new Error("Cyclic dependency"+h)}if(!l.has(d))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(d));if(!o[f]){o[f]=!0;var m=s.get(d)||new Set;if(m=Array.from(m),f=m.length){g.add(d);do{var y=m[--f];u(y,l.get(y),g)}while(f);g.delete(d)}r[--n]=d}}}function qX(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function $X(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function eZ(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var tZ=Qg.exports;const nZ=_r(tZ),rZ=Object.prototype.toString,oZ=Error.prototype.toString,iZ=RegExp.prototype.toString,sZ=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",aZ=/^Symbol\((.*)\)(.*)$/;function lZ(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function i3(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return lZ(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return sZ.call(e).replace(aZ,"Symbol($1)");const r=rZ.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+oZ.call(e)+"]":r==="RegExp"?iZ.call(e):null}function Qo(e,t){let n=i3(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=i3(this[r],t);return i!==null?i:o},2)}function s3(e){return e==null?[]:[].concat(e)}let a3,l3,c3,cZ=/\$\{\s*(\w+)\s*\}/g;a3=Symbol.toStringTag;class u3{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[a3]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],s3(t).forEach(i=>{if(Rn.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}l3=Symbol.hasInstance,c3=Symbol.toStringTag;class Rn extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(cZ,(o,i)=>Qo(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const s=new u3(t,n,r,o);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[c3]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Rn)}static[l3](t){return u3[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let qr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Qo(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Qo(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Qo(n,!0)}\``+o}},Ln={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Jo={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Jg={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},uZ={isValue:"${path} field must be ${value}"},gd={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:qr,string:Ln,number:Jo,date:Jg,object:gd,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:uZ,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Qo(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Qo(n,!0)}\``}return Rn.formatError(qr.notType,e)}}});const qg=e=>e&&e.__isYupSchema__;class md{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,s=typeof r=="function"?r:(...l)=>l.every(u=>u===r);return new md(t,(l,u)=>{var d;let f=s(...l)?o:i;return(d=f==null?void 0:f(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!qg(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const vd={context:"$",value:"."};class Li{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===vd.context,this.isValue=this.key[0]===vd.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?vd.context:this.isValue?vd.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ri.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Li.prototype.__isYupRef=!0;const xo=e=>e==null;function Hs(e){function t({value:n,path:r="",options:o,originalValue:i,schema:s},l,u){const{name:d,test:f,params:g,message:h,skipAbsent:m}=e;let{parent:y,context:x,abortEarly:C=s.spec.abortEarly,disableStackTrace:E=s.spec.disableStackTrace}=o;function I(B){return Li.isRef(B)?B.getValue(n,y,x):B}function w(B={}){const G=Object.assign({value:n,originalValue:i,label:s.spec.label,path:B.path||r,spec:s.spec,disableStackTrace:B.disableStackTrace||E},g,B.params);for(const K of Object.keys(G))G[K]=I(G[K]);const Y=new Rn(Rn.formatError(B.message||h,G),n,G.path,B.type||d,G.disableStackTrace);return Y.params=G,Y}const A=C?l:u;let O={path:r,parent:y,type:d,from:o.from,createError:w,resolve:I,options:o,originalValue:i,schema:s};const k=B=>{Rn.isError(B)?A(B):B?u(null):A(w())},M=B=>{Rn.isError(B)?A(B):l(B)};if(m&&xo(n))return k(!0);let V;try{var F;if(V=f.call(O,n,O),typeof((F=V)==null?void 0:F.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(V).then(k,M)}}catch(B){M(B);return}k(V)}return t.OPTIONS=e,t}function dZ(e,t,n,r=n){let o,i,s;return t?(Ri.forEach(t,(l,u,d)=>{let f=u?l.slice(1,l.length-1):l;e=e.resolve({context:r,parent:o,value:n});let g=e.type==="tuple",h=d?parseInt(f,10):0;if(e.innerType||g){if(g&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[h],e=g?e.spec.types[h]:e.innerType}if(!d){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);o=n,n=n&&n[f],e=e.fields[f]}i=f,s=u?"["+l+"]":"."+l}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class yd extends Set{describe(){const t=[];for(const n of this.values())t.push(Li.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new yd(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Gs(e,t=new Map){if(qg(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Gs(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Gs(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Gs(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Gs(o,t)}else throw Error(`Unable to clone ${e}`);return n}class br{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new yd,this._blacklist=new yd,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(qr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Gs(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&xo(i))return i;let s=Qo(t),l=Qo(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
222
222
|
|
|
223
223
|
attempted value: ${s}
|
|
224
|
-
`+(l!==s?`result of cast: ${l}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:s=t,strict:l=this.spec.strict}=n,u=t;l||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let f of Object.values(this.internalTests))f&&d.push(f);this.runTests({path:i,value:u,originalValue:s,options:n,tests:d},r,f=>{if(f.length)return o(f,u);this.runTests({path:i,value:u,originalValue:s,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:s,originalValue:l,path:u,options:d}=t,f=x=>{o||(o=!0,n(x,s))},g=x=>{o||(o=!0,r(x,s))},h=i.length,m=[];if(!h)return g([]);let y={value:s,originalValue:l,path:u,options:d,schema:this};for(let x=0;x<i.length;x++){const C=i[x];C(y,f,function(I){I&&(Array.isArray(I)?m.push(...I):m.push(I)),--h<=0&&g(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:s}){const l=t??n;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof l=="number";let d=r[l];const f=Object.assign({},s,{strict:!0,parent:r,value:d,originalValue:i[l],key:void 0,[u?"index":"key"]:l,path:u||l.includes(".")?`${o||""}[${u?l:`"${l}"`}]`:(o?`${o}.`:"")+t});return(g,h,m)=>this.resolve(f)._validate(d,f,h,m)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((s,l)=>o._validate(t,n,(u,d)=>{Rn.isError(u)&&(u.value=d),l(u)},(u,d)=>{u.length?l(new Rn(u,d,void 0,void 0,i)):s(d)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(l,u)=>{throw Rn.isError(l)&&(l.value=u),l},(l,u)=>{if(l.length)throw new Rn(l,t,void 0,void 0,s);i=u}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Rn.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Rn.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Gs(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Hs({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Hs({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=qr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=qr.notNull){return this.nullability(!1,t)}required(t=qr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=qr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Hs(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(i||s.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=s3(t).map(i=>new Li(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new md(o,n):md.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Hs({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=qr.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Hs({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(t,n=qr.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Hs({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:s}=n.spec;return{meta:o,label:r,optional:i,nullable:s,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,f)=>f.findIndex(g=>g.name===u.name)===d)}}}br.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])br.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:s}=dZ(this,t,n,r.context);return s[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])br.prototype[e]=br.prototype.oneOf;for(const e of["not","nope"])br.prototype[e]=br.prototype.notOneOf;const fZ=()=>!0;function d3(e){return new f3(e)}class f3 extends br{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:fZ},t))}}d3.prototype=f3.prototype;const pZ=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function hZ(e){const t=$g(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function $g(e){var t,n;const r=pZ.exec(e);return r?{year:Co(r[1]),month:Co(r[2],1)-1,day:Co(r[3],1),hour:Co(r[4]),minute:Co(r[5]),second:Co(r[6]),millisecond:r[7]?Co(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Co(r[10]),minuteOffset:Co(r[11])}:null}function Co(e,t=0){return Number(e)||t}let gZ=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,mZ=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,vZ=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,yZ="^\\d{4}-\\d{2}-\\d{2}",bZ="\\d{2}:\\d{2}:\\d{2}",xZ="(([+-]\\d{2}(:?\\d{2})?)|Z)",CZ=new RegExp(`${yZ}T${bZ}(\\.\\d+)?${xZ}$`),wZ=e=>xo(e)||e===e.trim(),SZ={}.toString();function wo(){return new p3}class p3 extends br{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===SZ?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||qr.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ln.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ln.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ln.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||Ln.matches,params:{regex:t},skipAbsent:!0,test:s=>s===""&&r||s.search(t)!==-1})}email(t=Ln.email){return this.matches(gZ,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ln.url){return this.matches(mZ,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ln.uuid){return this.matches(vZ,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(CZ,{name:"datetime",message:n||Ln.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ln.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=$g(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||Ln.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const s=$g(i);return s?s.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ln.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:wZ})}lowercase(t=Ln.lowercase){return this.transform(n=>xo(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xo(n)||n===n.toLowerCase()})}uppercase(t=Ln.uppercase){return this.transform(n=>xo(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xo(n)||n===n.toUpperCase()})}}wo.prototype=p3.prototype;let EZ=e=>e!=+e;function h3(){return new g3}class g3 extends br{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!EZ(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Jo.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Jo.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Jo.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Jo.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Jo.positive){return this.moreThan(0,t)}negative(t=Jo.negative){return this.lessThan(0,t)}integer(t=Jo.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>xo(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>xo(o)?o:Math[t](o))}}h3.prototype=g3.prototype;let TZ=new Date(""),AZ=e=>Object.prototype.toString.call(e)==="[object Date]";class bd extends br{constructor(){super({type:"date",check(t){return AZ(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=hZ(t),isNaN(t)?bd.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Li.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Jg.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Jg.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}bd.INVALID_DATE=TZ,bd.prototype;function IZ(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([s,l])=>`${s}-${l}`));function i(s,l){let u=Ri.split(s)[0];r.add(u),o.has(`${l}-${u}`)||n.push([l,u])}for(const s of Object.keys(e)){let l=e[s];r.add(s),Li.isRef(l)&&l.isSibling?i(l.path,s):qg(l)&&"deps"in l&&l.deps.forEach(u=>i(u,s))}return nZ.array(Array.from(r),n).reverse()}function m3(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function v3(e){return(t,n)=>m3(e,t)-m3(e,n)}const OZ=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function xd(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=xd(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=xd(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(xd)}):"optional"in e?e.optional():e}const PZ=(e,t)=>{const n=[...Ri.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Ri.getter(Ri.join(n),!0)(e);return!!(o&&r in o)};let y3=e=>Object.prototype.toString.call(e)==="[object Object]";function b3(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const jZ=v3([]);function e0(e){return new x3(e)}class x3 extends br{constructor(t){super({type:"object",check(n){return y3(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=jZ,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(o).filter(g=>!this._nodes.includes(g))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),f=!1;for(const g of l){let h=i[g],m=g in o;if(h){let y,x=o[g];d.path=(n.path?`${n.path}.`:"")+g,h=h.resolve({value:x,context:n.context,parent:u});let C=h instanceof br?h.spec:void 0,E=C==null?void 0:C.strict;if(C!=null&&C.strip){f=f||g in o;continue}y=!n.__validating||!E?h.cast(o[g],d):o[g],y!==void 0&&(u[g]=y)}else m&&!s&&(u[g]=o[g]);(m!==g in u||u[g]!==o[g])&&(f=!0)}return f?u:o}_validate(t,n={},r,o){let{from:i=[],originalValue:s=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(t,n,r,(u,d)=>{if(!l||!y3(d)){o(u,d);return}s=s||d;let f=[];for(let g of this._nodes){let h=this.fields[g];!h||Li.isRef(h)||f.push(h.asNestedTest({options:n,key:g,parent:d,parentPath:n.path,originalParent:s}))}this.runTests({tests:f,value:d,originalValue:s,options:n},r,g=>{o(g.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const s=r[o];r[o]=s===void 0?i:s}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=IZ(t,n),r._sortErrors=v3(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return xd(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Ri.getter(t,!0);return this.transform(i=>{if(!i)return i;let s=i;return PZ(i,t)&&(s=Object.assign({},i),r||delete s[t],s[n]=o(i)),s})}json(){return this.transform(OZ)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||gd.exact,test(n){if(n==null)return!0;const r=b3(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=gd.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=b3(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=gd.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(Zg.camelCase)}snakeCase(){return this.transformKeys(Zg.snakeCase)}constantCase(){return this.transformKeys(t=>Zg.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,s]of Object.entries(n.fields)){var o;let l=t;(o=l)!=null&&o.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=s.describe(l)}return r}}e0.prototype=x3.prototype;const C3=d3().test("function","Invalid function",e=>se.isFunction(e));class w3{constructor(){_o(this,Xi);_o(this,oi,[])}get(t){if(wo().required().validateSync(t),dc(this,Xi,fc).call(this)){const n=localStorage.getItem(t);return se.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return wo().required().validateSync(t),dc(this,Xi,fc).call(this)?(localStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){wo().required().validateSync(t),C3.validateSync(n),dc(this,Xi,fc).call(this)&&(Gn(this,oi).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===localStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){wo().required().validateSync(t),C3.optional().default(se.identity).validateSync(n),dc(this,Xi,fc).call(this)&&(n!==void 0?mi(this,oi,se.reject(Gn(this,oi),r=>r.key===t&&r.callback===n)):mi(this,oi,se.reject(Gn(this,oi),r=>r.key===t)))}}oi=new WeakMap,Xi=new WeakSet,fc=function(){return typeof window<"u"};function Cd(e={},t=[],n={}){const{isEmpty:r=se.isEmpty}=n;return!se.some(t,o=>r((e??{})[o.locale]))}function S3(e={},t=[],n={}){const{isEmpty:r=se.isEmpty}=n;return se.some(t,o=>!r((e??{})[o.locale]))}function t0(e,t,n){if(!se.isPlainObject(e)||t===void 0)return;const r=se.isPlainObject(n)?n:{},o=!!((r==null?void 0:r.fallback)??!0);let i=e[String(t)];if(i===void 0&&o){const s=se.isArray(r.fallbackLocales)&&!se.isEmpty(r.fallbackLocales)?r.fallbackLocales:["en"];i=se.chain(s).map(l=>e[String(l)]).reject(se.isUndefined).first().value(),i===void 0&&(i=se.chain(e).values().first().value())}return i}function wd(e=[],t){const n=se.isArray(e)?e:[e],r=se.filter(n,o=>P.isValidElement(o));se.each(r,o=>{var i;t(o),wd(((i=o==null?void 0:o.props)==null?void 0:i.children)??[],t)})}var E3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Tn,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",l="minute",u="hour",d="day",f="week",g="month",h="quarter",m="year",y="date",x="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var Z=["th","st","nd","rd"],z=K%100;return"["+K+(Z[(z-20)%10]||Z[z]||Z[0])+"]"}},w=function(K,Z,z){var J=String(K);return!J||J.length>=Z?K:""+Array(Z+1-J.length).join(z)+K},A={s:w,z:function(K){var Z=-K.utcOffset(),z=Math.abs(Z),J=Math.floor(z/60),H=z%60;return(Z<=0?"+":"-")+w(J,2,"0")+":"+w(H,2,"0")},m:function K(Z,z){if(Z.date()<z.date())return-K(z,Z);var J=12*(z.year()-Z.year())+(z.month()-Z.month()),H=Z.clone().add(J,g),ae=z-H<0,Q=Z.clone().add(J+(ae?-1:1),g);return+(-(J+(z-H)/(ae?H-Q:Q-H))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:g,y:m,w:f,d,D:y,h:u,m:l,s,ms:i,Q:h}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},O="en",k={};k[O]=I;var M="$isDayjsObject",R=function(K){return K instanceof G||!(!K||!K[M])},V=function K(Z,z,J){var H;if(!Z)return O;if(typeof Z=="string"){var ae=Z.toLowerCase();k[ae]&&(H=ae),z&&(k[ae]=z,H=ae);var Q=Z.split("-");if(!H&&Q.length>1)return K(Q[0])}else{var W=Z.name;k[W]=Z,H=W}return!J&&H&&(O=H),H||!J&&O},F=function(K,Z){if(R(K))return K.clone();var z=typeof Z=="object"?Z:{};return z.date=K,z.args=arguments,new G(z)},B=A;B.l=V,B.i=R,B.w=function(K,Z){return F(K,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var G=function(){function K(z){this.$L=V(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[M]=!0}var Z=K.prototype;return Z.parse=function(z){this.$d=function(J){var H=J.date,ae=J.utc;if(H===null)return new Date(NaN);if(B.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var Q=H.match(C);if(Q){var W=Q[2]-1||0,te=(Q[7]||"0").substring(0,3);return ae?new Date(Date.UTC(Q[1],W,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,te)):new Date(Q[1],W,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,te)}}return new Date(H)}(z),this.init()},Z.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},Z.$utils=function(){return B},Z.isValid=function(){return this.$d.toString()!==x},Z.isSame=function(z,J){var H=F(z);return this.startOf(J)<=H&&H<=this.endOf(J)},Z.isAfter=function(z,J){return F(z)<this.startOf(J)},Z.isBefore=function(z,J){return this.endOf(J)<F(z)},Z.$g=function(z,J,H){return B.u(z)?this[J]:this.set(H,z)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(z,J){var H=this,ae=!!B.u(J)||J,Q=B.p(z),W=function(xe,Ce){var Ae=B.w(H.$u?Date.UTC(H.$y,Ce,xe):new Date(H.$y,Ce,xe),H);return ae?Ae:Ae.endOf(d)},te=function(xe,Ce){return B.w(H.toDate()[xe].apply(H.toDate("s"),(ae?[0,0,0,0]:[23,59,59,999]).slice(Ce)),H)},oe=this.$W,$=this.$M,fe=this.$D,he="set"+(this.$u?"UTC":"");switch(Q){case m:return ae?W(1,0):W(31,11);case g:return ae?W(1,$):W(0,$+1);case f:var be=this.$locale().weekStart||0,ue=(oe<be?oe+7:oe)-be;return W(ae?fe-ue:fe+(6-ue),$);case d:case y:return te(he+"Hours",0);case u:return te(he+"Minutes",1);case l:return te(he+"Seconds",2);case s:return te(he+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(z){return this.startOf(z,!1)},Z.$set=function(z,J){var H,ae=B.p(z),Q="set"+(this.$u?"UTC":""),W=(H={},H[d]=Q+"Date",H[y]=Q+"Date",H[g]=Q+"Month",H[m]=Q+"FullYear",H[u]=Q+"Hours",H[l]=Q+"Minutes",H[s]=Q+"Seconds",H[i]=Q+"Milliseconds",H)[ae],te=ae===d?this.$D+(J-this.$W):J;if(ae===g||ae===m){var oe=this.clone().set(y,1);oe.$d[W](te),oe.init(),this.$d=oe.set(y,Math.min(this.$D,oe.daysInMonth())).$d}else W&&this.$d[W](te);return this.init(),this},Z.set=function(z,J){return this.clone().$set(z,J)},Z.get=function(z){return this[B.p(z)]()},Z.add=function(z,J){var H,ae=this;z=Number(z);var Q=B.p(J),W=function($){var fe=F(ae);return B.w(fe.date(fe.date()+Math.round($*z)),ae)};if(Q===g)return this.set(g,this.$M+z);if(Q===m)return this.set(m,this.$y+z);if(Q===d)return W(1);if(Q===f)return W(7);var te=(H={},H[l]=r,H[u]=o,H[s]=n,H)[Q]||1,oe=this.$d.getTime()+z*te;return B.w(oe,this)},Z.subtract=function(z,J){return this.add(-1*z,J)},Z.format=function(z){var J=this,H=this.$locale();if(!this.isValid())return H.invalidDate||x;var ae=z||"YYYY-MM-DDTHH:mm:ssZ",Q=B.z(this),W=this.$H,te=this.$m,oe=this.$M,$=H.weekdays,fe=H.months,he=H.meridiem,be=function(Ce,Ae,ve,Me){return Ce&&(Ce[Ae]||Ce(J,ae))||ve[Ae].slice(0,Me)},ue=function(Ce){return B.s(W%12||12,Ce,"0")},xe=he||function(Ce,Ae,ve){var Me=Ce<12?"AM":"PM";return ve?Me.toLowerCase():Me};return ae.replace(E,function(Ce,Ae){return Ae||function(ve){switch(ve){case"YY":return String(J.$y).slice(-2);case"YYYY":return B.s(J.$y,4,"0");case"M":return oe+1;case"MM":return B.s(oe+1,2,"0");case"MMM":return be(H.monthsShort,oe,fe,3);case"MMMM":return be(fe,oe);case"D":return J.$D;case"DD":return B.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return be(H.weekdaysMin,J.$W,$,2);case"ddd":return be(H.weekdaysShort,J.$W,$,3);case"dddd":return $[J.$W];case"H":return String(W);case"HH":return B.s(W,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return xe(W,te,!0);case"A":return xe(W,te,!1);case"m":return String(te);case"mm":return B.s(te,2,"0");case"s":return String(J.$s);case"ss":return B.s(J.$s,2,"0");case"SSS":return B.s(J.$ms,3,"0");case"Z":return Q}return null}(Ce)||Q.replace(":","")})},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(z,J,H){var ae,Q=this,W=B.p(J),te=F(z),oe=(te.utcOffset()-this.utcOffset())*r,$=this-te,fe=function(){return B.m(Q,te)};switch(W){case m:ae=fe()/12;break;case g:ae=fe();break;case h:ae=fe()/3;break;case f:ae=($-oe)/6048e5;break;case d:ae=($-oe)/864e5;break;case u:ae=$/o;break;case l:ae=$/r;break;case s:ae=$/n;break;default:ae=$}return H?ae:B.a(ae)},Z.daysInMonth=function(){return this.endOf(g).$D},Z.$locale=function(){return k[this.$L]},Z.locale=function(z,J){if(!z)return this.$L;var H=this.clone(),ae=V(z,J,!0);return ae&&(H.$L=ae),H},Z.clone=function(){return B.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},K}(),Y=G.prototype;return F.prototype=Y,[["$ms",i],["$s",s],["$m",l],["$H",u],["$W",d],["$M",g],["$y",m],["$D",y]].forEach(function(K){Y[K[1]]=function(Z){return this.$g(Z,K[0],K[1])}}),F.extend=function(K,Z){return K.$i||(K(Z,G,F),K.$i=!0),F},F.locale=V,F.isDayjs=R,F.unix=function(K){return F(1e3*K)},F.en=k[O],F.Ls=k,F.p={},F})})(E3);var T3=E3.exports;const Br=_r(T3);function A3(e){const t=e.split(":");t.length===1&&t.push("00");const n=parseInt(t[0]),r=parseInt(t[1]);return Br().hour(n).minute(r)}const Ol=new w3;function kZ(e,t,n){return function(r){const o=se.isFunction(r)?r(t):r;return Ol.set(e,o),n(o),o}}function n0(e,t){var u;wo().required().validateSync(e);const[n,r]=P.useState(Ol.get(e)??t),o=P.useRef(t),i=se.isEqual(o.current,t)?o.current:t,s=P.useRef(),l=s.current;return P.useEffect(()=>{r(Ol.get(e)??i)},[e,i,r]),P.useEffect(()=>{function d(f){r(f)}return Ol.watch(e,d),()=>{Ol.unwatch(e,d)}},[e,r]),(e!==(l==null?void 0:l.key)||!se.isEqual(n,l==null?void 0:l.value))&&(s.current={key:e,value:n,setter:kZ(e,n,r)}),[n,((u=s.current)==null?void 0:u.setter)??se.noop]}function I3(e){const[t]=re.useLocaleState();return e!==void 0?String(e):t}function MZ(e,t){const n=I3(t==null?void 0:t.locale);return t0(e,n,t)}function _Z(e){const t=I3(e==null?void 0:e.locale);return P.useCallback(r=>t0(r,t,e),[t,e])}function O3(e){if(!se.isPlainObject(e))throw new Error("[useMemoizedObject]: param must be a plain JS object");const[t,n]=P.useState(e);return P.useEffect(()=>{se.isEqual(e,t)||n(e)},[e,t]),t}function Ys(){const[e,t]=P.useState(null),n=!!e,r=P.useCallback(s=>t((s==null?void 0:s.currentTarget)??null),[t]),o=P.useCallback(()=>t(null),[t]),i=P.useCallback(s=>{n?o():r(s)},[n,r,o]);return{anchorEl:e,open:n,handleClick:r,handleClose:o,handleToggle:i}}function FZ(e,t){const[n,r]=P.useState({width:1,height:1}),o=e.current;return P.useEffect(()=>{function i(){var d;let l=0,u=0;switch(t){case"client":l=(o==null?void 0:o.clientWidth)??0,u=(o==null?void 0:o.clientHeight)??0;break;case"offset":l=(o==null?void 0:o.offsetWidth)??0,u=(o==null?void 0:o.offsetHeight)??0;break;case"scroll":l=(o==null?void 0:o.scrollWidth)??0,u=(o==null?void 0:o.scrollHeight)??0;break;case"bounding":default:{const f=((d=e.current)==null?void 0:d.getBoundingClientRect())??{width:0,height:0};l=f.width,u=f.height;break}}r({width:l,height:u})}const s=new ResizeObserver(i);return se.isEmpty(e==null?void 0:e.current)||(s.observe(e==null?void 0:e.current),i()),()=>{s.disconnect()}},[o,t,e]),n}function r0(e){const t=U.useRecordContext(),n=U.useTranslate(),r=U.useResourceContext(),o=t!=null&&t.id?"edit":"create";return P.useMemo(()=>{if(e===!1)return;const s=`resources.${r}.title`;return e||n(`resources.${r}.title.${o}`,{_:n(s,{_:s}),...t})},[o,t,r,n,e])}function P3(){const{mode:e}=An(),t=window.matchMedia("(prefers-color-scheme: dark)"),[n,r]=P.useState(()=>e==="auto"?t.matches?"dark":"light":e),o=P.useRef(n);return P.useEffect(()=>{function i(){const l=t.matches?"dark":"light";l!==o.current&&(r(l),o.current=l)}i();const s=t;return s.addEventListener("change",i),()=>{s.removeEventListener("change",i)}},[t]),n}function $r(){throw new Error("Method must be implemented")}const j3={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2,setFontFamily:$r,setMenuOrientation:$r,setMiniDrawer:$r,setContainer:$r,setMode:$r,setPresetColor:$r,setThemeDirection:$r,setAppDefaultPath:$r,setDrawerWidth:$r,setHorizontalMaxItems:$r,isVerticalLayout:e=>!1,isHorizontalLayout:e=>!1};function BZ(e){return e==="vertical"}function DZ(e){return e==="horizontal"}const o0=P.createContext(j3);function i0({initialConfig:e,children:t}){const[n,r]=n0("theme-config",{...j3,...e});function o(y){r(x=>({...x,fontFamily:y}))}function i(y){r(x=>({...x,menuOrientation:y}))}function s(y){r(x=>({...x,miniDrawer:y}))}function l(y){r(x=>({...x,container:y}))}function u(y){r(x=>({...x,mode:y}))}function d(y){r(x=>({...x,presetColor:y}))}function f(y){r(x=>({...x,themeDirection:y}))}function g(y){r(x=>({...x,appDefaultPath:y}))}function h(y){r(x=>({...x,drawerWidth:y}))}function m(y){r(x=>({...x,horizontalMaxItems:y}))}return p.jsx(o0.Provider,{value:{...n,setFontFamily:o,setMenuOrientation:i,setMiniDrawer:s,setContainer:l,setMode:u,setPresetColor:d,setThemeDirection:f,setAppDefaultPath:g,setDrawerWidth:h,setHorizontalMaxItems:m,isVerticalLayout:BZ,isHorizontalLayout:DZ},children:t})}function s0(){return P.useContext(o0)}function An(){return s0()}const RZ=sl(U.Toolbar,{slot:"Root"})(({theme:e})=>({...e.mixins.toolbar,backgroundColor:e.palette.background.paper,justifyContent:"flex-end",position:"initial !important","& .RaToolbar-defaultToolbar":{justifyContent:"right",paddingBottom:e.spacing(2),"& > *":{marginLeft:e.spacing(1)}},"& .MuiButtonBase-root":{marginLeft:e.spacing(1)}}));function qo(e){return p.jsx(RZ,{...e})}function k3({children:e,spacing:t,defaultValues:n,...r}){const{spacing:o}=An();return p.jsx(NZ,{defaultValues:n,spacing:t||o,children:p.jsx(T.Grid,{container:!0,...r,spacing:t||o,children:e})})}function LZ({children:e,content:t=!0,title:n,subheader:r=null,secondary:o=null,toolbar:i=!1,lg:s=12,md:l=12,sm:u=12,xs:d=12,...f}){const g=U.useTranslate(),h=U.useResourceContext(),{cardTitle:m,cardSubheader:y}=P.useMemo(()=>{const x=n||`resources.${h}.title`;return{cardTitle:g(x,{_:x}),cardSubheader:r!==null?g(r,{_:r}):null}},[h,r,n,g]);return p.jsx(T.Grid,{item:!0,...f,lg:s,md:l,sm:u,xs:d,children:p.jsx(Fn,{content:t,title:m,subheader:y,secondary:o,divider:!0,children:p.jsxs(p.Fragment,{children:[e,i===!0?p.jsx(qo,{children:p.jsx(U.SaveButton,{})}):i]})})})}const NZ=ge(U.Form,{slot:"root"})(({theme:e,spacing:t})=>({backgroundColor:"transparent","& .RaToolbar-desktopToolbar":{marginTop:e.spacing(t*1.25),padding:0,minHeight:"unset"},"& .RaToolbar-mobileToolbar":{paddingTop:`${e.spacing(2.5)} !important`,paddingRight:"0 !important",paddingLeft:"0 !important",paddingBottom:"0 !important"}}));k3.Section=LZ;function M3(e){const{confirmTitle:t,confirmContent:n,confirmColor:r="primary",dialogSx:o,icon:i=zZ,label:s="ra.action.delete",mutationMode:l="pessimistic",mutationOptions:u={},onClick:d,onSuccess:f,onError:g,...h}=e,{meta:m,...y}=u,{selectedIds:x,onUnselectItems:C}=re.useListContext(e),[E,I]=re.useSafeSetState(!1),w=re.useNotify(),A=re.useResourceContext(e),O=re.useRefresh(),k=re.useTranslate(),M=St(),[R,{isLoading:V}]=re.useDeleteMany(A,{ids:x,meta:m},{onSuccess:()=>{O(),w("ra.notification.deleted",{type:"info",messageArgs:{smart_count:x.length},undoable:l==="undoable"}),C(),I(!1),f&&se.isFunction(f)&&f()},onError:Y=>{w(typeof Y=="string"?Y:Y.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof Y=="string"?Y:Y&&Y.message?Y.message:void 0}}),I(!1),g&&se.isFunction(g)&&g()},mutationMode:l,...y});function F(Y){I(!0),Y.stopPropagation()}function B(){I(!1)}function G(Y){R(),typeof d=="function"&&d(Y)}return p.jsxs(p.Fragment,{children:[p.jsx(WZ,{onClick:F,label:s,...VZ(h),children:i}),p.jsx(U.Confirm,{isOpen:E,loading:V,sx:o||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:M.palette.primary.main,color:M.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:M.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${M.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:t?typeof t=="string"?k(t):t:p.jsx(T.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(T.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(He.DeleteFilled,{})})}),content:n||p.jsx(T.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:k("ra.message.bulk_delete_content",{_:"ra.message.bulk_delete_content",smart_count:x.length,name:k(`resources.${A}.forcedCaseName`,{smart_count:x.length,_:Ko.humanize(k(`resources.${A}.name`,{smart_count:x.length,_:Ko.inflect(A,x.length)}),!0)})})}),confirmColor:r,translateOptions:{smart_count:x.length,name:k(`resources.${A}.forcedCaseName`,{smart_count:x.length,_:Ko.humanize(k(`resources.${A}.name`,{smart_count:x.length,_:Ko.inflect(A,x.length)}),!0)})},onConfirm:G,onClose:B})]})}function VZ({classes:e,filterValues:t,label:n,selectedIds:r,...o}){return o}const WZ=ge(U.Button,{name:"RaBulkDeleteWithConfirmButton",overridesResolver:e=>e.root})(({theme:e})=>({color:e.palette.error.main,"&:hover":{backgroundColor:nt(e.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}})),zZ=p.jsx(lg,{});M3.propTypes={confirmTitle:b.node,confirmContent:b.node,confirmColor:b.string,dialogSx:b.object,icon:b.element,label:b.string,mutationMode:b.oneOf(["pessimistic","optimistic","undoable"]),resource:b.string,selectedIds:b.arrayOf(b.any),onSuccess:b.func,onError:b.func};const UZ="RaButton";function HZ(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}const GZ=ge(T.Button,{name:UZ,overridesResolver:(e,t)=>t.root})({"&.MuiButton-sizeSmall":{lineHeight:1.5}});function Ni(e){const{disableIconOnly:t=!1,label:n,children:r,className:o,color:i,size:s,disabled:l,alignIcon:u,to:d,...f}=e,g=U.useTranslate(),h=HZ(d);if(t){const m=n?g(n,{_:n}):void 0;return p.jsx(GZ,{className:o,color:i,size:s,"aria-label":m,disabled:l,startIcon:u==="left"&&r?r:void 0,endIcon:u==="right"&&r?r:void 0,...h,...f,children:m})}return p.jsx(U.Button,{...e})}function _3(e){const{className:t,icon:n=YZ,label:r="ra.action.create",resource:o,scrollToTop:i=!0,variant:s,to:l,state:u={},disableFloatingButton:d=!1,...f}=e,g=re.useResourceContext(e),h=re.useCreatePath(),m=re.useTranslate(),y=T.useMediaQuery(E=>E.breakpoints.down("md")),x=Gw({},KZ.get(String(i)),u),C=JZ(l);return!d&&y?p.jsx(XZ,{component:dt.Link,to:h({resource:g,type:"create"}),state:x,color:"primary",className:Ve(Ed.floating,t),"aria-label":r?m(r):"ra.action.create",...f,...C,children:n}):p.jsx(ZZ,{component:dt.Link,to:h({resource:g,type:"create"}),state:x,className:Ve(Ed.root,t),label:r,variant:s,...f,...C,children:n})}const YZ=p.jsx(Lh,{}),KZ=new Map([["true",{_scrollToTop:!0}],["false",{}]]);_3.propTypes={resource:b.string,className:b.string,icon:b.element,label:b.string};const Sd="RaCreateButton",Ed={root:`${Sd}-root`,floating:`${Sd}-floating`},XZ=ge(T.Fab,{name:Sd,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${Ed.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}})),ZZ=ge(Ni,{name:Sd,overridesResolver:(e,t)=>t.root})({});function QZ(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&bl(e.to,t.to)&&bl(e.state,t.state)}const F3=N.memo(_3,QZ);function JZ(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}function a0(e,t){const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]}function qZ(e,t){return e&&e.data?{data:a0(e.data,t),total:e.total+1}:e}function $Z(e,t){return e&&e.length>0?a0(e,t):e}function eQ(e,t){return e&&e.data?{...e,data:a0(e.data,t),total:e.total+1}:e}function tQ(e){const{disableFloatingButton:t,label:n="ra.action.create",startIcon:r=p.jsx(He.PlusCircleOutlined,{}),...o}=e,i=P.useCallback(s=>{var l;s.preventDefault(),(l=e==null?void 0:e.onClick)==null||l.call(e)},[e]);return t?p.jsx(Ni,{...o,onClick:i,label:n,children:r}):p.jsx($U,{...e,onClick:i,label:n,children:r})}function nQ(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=ln.useFormContext(),o=re.useTranslate(),i=P.useCallback(s=>{s.preventDefault(),s.stopPropagation(),r(l=>t(l,n))()},[r,t,n]);return p.jsx(T.Button,{onClick:i,color:"primary",variant:"contained",size:"medium",children:o("ra.action.save")})}function rQ(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,onSubmit:i,mutationOptions:s,scroll:l="body",...u}=e,d=yi.useQueryClient(),f=re.useResourceContext(),g=re.useTranslate(),h=P.Children.only(t),[m,y]=P.useState(!1),x=re.useNotify(),C=P.useCallback(()=>y(!0),[]),E=P.useCallback(()=>y(!1),[]),I=P.useCallback((w,A,O)=>{var R,V;const M=Date.now();d.setQueryData([f,"getOne",{id:w.id}],w),d.setQueriesData([f,"getList"],F=>eQ(F,w),{updatedAt:M}),d.setQueriesData([f,"getMany"],F=>$Z(F,w),{updatedAt:M}),d.setQueriesData([f,"getManyReference"],F=>qZ(F,w),{updatedAt:M}),E(),x("ra.notification.created",{messageArgs:{smart_count:1}}),(V=(R=e==null?void 0:e.mutationOptions)==null?void 0:R.onSuccess)==null||V.call(R,w,A,O)},[E,x,e.mutationOptions,d,f]);return p.jsxs(p.Fragment,{children:[p.jsx(tQ,{...u,onClick:C}),p.jsx(T.Dialog,{open:m,scroll:l,onClose:E,maxWidth:n,fullWidth:r,fullScreen:o,children:p.jsx(T.DialogContent,{sx:{m:0,p:0},children:p.jsx(re.CreateBase,{...e,mutationOptions:{...s,onSuccess:I},children:P.isValidElement(h)?P.cloneElement(h,{...h.props,modal:!0,toolbar:p.jsxs(qo,{children:[p.jsx(T.Button,{variant:"text",size:"medium",onClick:E,children:g("ra.action.cancel")}),i?p.jsx(nQ,{onSubmit:i,closeDialog:E}):p.jsx(Bg,{type:"button"})]})}):null})})})]})}function Vi(e){const{className:t,confirmTitle:n,confirmContent:r,confirmColor:o="primary",color:i="error",dialogSx:s,icon:l=p.jsx(lg,{}),label:u="ra.action.delete",mutationMode:d="pessimistic",mutationOptions:f,onClick:g,redirect:h="list",translateOptions:m={},onConfirm:y,...x}=e,C=re.useTranslate(),E=re.useRecordContext(e),I=re.useResourceContext(e),w=T.useTheme(),{open:A,isLoading:O,handleDialogOpen:k,handleDialogClose:M,handleDelete:R}=re.useDeleteWithConfirmController({record:E,redirect:h,mutationMode:d,onClick:g,mutationOptions:f,resource:I}),V=P.useCallback(F=>{y?y():R(F)},[R,y]);return p.jsxs(p.Fragment,{children:[p.jsx(Ni,{onClick:k,label:u,className:Ve("ra-delete-button",t),color:i,...x,children:l},"button"),p.jsx(a4,{isOpen:A,loading:O,sx:s||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:w.palette.primary.main,color:w.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:w.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${w.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:n?typeof n=="string"?C(n):n:p.jsx(T.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(T.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(He.DeleteFilled,{})})}),content:p.jsx(T.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:r||C("ra.message.delete_content",{_:"ra.message.delete_content",name:C(`resources.${I}.forcedCaseName`,{smart_count:1,_:Ko.humanize(C(`resources.${I}.name`,{smart_count:1,_:Ko.singularize(I)}),!0)}),id:E==null?void 0:E.id})}),confirmColor:o,translateOptions:{name:C(`resources.${I}.forcedCaseName`,{smart_count:1,_:Ko.humanize(C(`resources.${I}.name`,{smart_count:1,_:Ko.singularize(I)}),!0)}),id:E==null?void 0:E.id,...m},onConfirm:V,onClose:M})]})}Vi.propTypes={basePath:b.string,className:b.string,confirmColor:b.string,confirmContent:b.oneOfType([b.string,b.element]),confirmTitle:b.oneOfType([b.string,b.element]),icon:b.element,label:b.string,mutationMode:b.oneOf(["pessimistic","optimistic","undoable"]),onClick:b.func,record:b.any,redirect:b.oneOfType([b.string,b.bool,b.func]),resource:b.string,translateOptions:b.object};function oQ(e){const t=P.useCallback(n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e==null?void 0:e.onClick)==null||r.call(e)},[e]);return p.jsx(x4,{...e,onClick:t})}function iQ(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=ln.useFormContext(),o=P.useCallback(i=>{i.preventDefault(),i.stopPropagation(),r(s=>t(s,n))()},[r,t,n]);return p.jsx(Ni,{disableIconOnly:!0,onClick:o,color:"primary",variant:"contained",size:"medium",label:"ra.action.save"})}function sQ(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,mutationOptions:i,onSubmit:s,scroll:l="body",...u}=e,d=re.useNotify(),[f,g]=P.useState(!1),h=P.Children.only(t),m=P.useCallback(()=>g(!0),[]),y=P.useCallback(()=>g(!1),[]),x=P.useCallback((E,I,w)=>{var A,O;y(),d("ra.notification.updated",{messageArgs:{smart_count:1},undoable:(e==null?void 0:e.mutationMode)==="undoable"}),(O=(A=e==null?void 0:e.mutationOptions)==null?void 0:A.onSuccess)==null||O.call(A,E,I,w)},[y,d,e.mutationOptions,e.mutationMode]),C=re.useRecordContext();return p.jsxs(p.Fragment,{children:[p.jsx(oQ,{...u,onClick:m}),p.jsx(T.Dialog,{open:f,scroll:l,onClose:y,fullWidth:r,maxWidth:n,fullScreen:o,keepMounted:!1,children:p.jsx(T.DialogContent,{sx:{m:0,p:0},children:p.jsx(re.EditBase,{...e,id:C.id,mutationMode:"pessimistic",mutationOptions:{...i,onSuccess:x},children:P.isValidElement(h)?P.cloneElement(h,{...h.props,modal:!0,toolbar:p.jsxs(qo,{children:[p.jsx(Ni,{disableIconOnly:!0,variant:"text",size:"medium",onClick:y,label:"ra.action.cancel"}),s?p.jsx(iQ,{onSubmit:s,closeDialog:y}):p.jsx(Bg,{type:"button"})]})}):null})})})]})}var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},aQ={exports:{}},B3={exports:{}},D3;function rt(){return D3||(D3=1,function(e,t){(function(n,r){e.exports=r()})(tt,function(){var n=n||function(r,o){var i=Object.create||function(){function C(){}return function(E){var I;return C.prototype=E,I=new C,C.prototype=null,I}}(),s={},l=s.lib={},u=l.Base=function(){return{extend:function(C){var E=i(this);return C&&E.mixIn(C),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var E in C)C.hasOwnProperty(E)&&(this[E]=C[E]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=l.WordArray=u.extend({init:function(C,E){C=this.words=C||[],E!=o?this.sigBytes=E:this.sigBytes=C.length*4},toString:function(C){return(C||g).stringify(this)},concat:function(C){var E=this.words,I=C.words,w=this.sigBytes,A=C.sigBytes;if(this.clamp(),w%4)for(var O=0;O<A;O++){var k=I[O>>>2]>>>24-O%4*8&255;E[w+O>>>2]|=k<<24-(w+O)%4*8}else for(var O=0;O<A;O+=4)E[w+O>>>2]=I[O>>>2];return this.sigBytes+=A,this},clamp:function(){var C=this.words,E=this.sigBytes;C[E>>>2]&=4294967295<<32-E%4*8,C.length=r.ceil(E/4)},clone:function(){var C=u.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var E=[],I=function(M){var M=M,R=987654321,V=4294967295;return function(){R=36969*(R&65535)+(R>>16)&V,M=18e3*(M&65535)+(M>>16)&V;var F=(R<<16)+M&V;return F/=4294967296,F+=.5,F*(r.random()>.5?1:-1)}},w=0,A;w<C;w+=4){var O=I((A||r.random())*4294967296);A=O()*987654071,E.push(O()*4294967296|0)}return new d.init(E,C)}}),f=s.enc={},g=f.Hex={stringify:function(C){for(var E=C.words,I=C.sigBytes,w=[],A=0;A<I;A++){var O=E[A>>>2]>>>24-A%4*8&255;w.push((O>>>4).toString(16)),w.push((O&15).toString(16))}return w.join("")},parse:function(C){for(var E=C.length,I=[],w=0;w<E;w+=2)I[w>>>3]|=parseInt(C.substr(w,2),16)<<24-w%8*4;return new d.init(I,E/2)}},h=f.Latin1={stringify:function(C){for(var E=C.words,I=C.sigBytes,w=[],A=0;A<I;A++){var O=E[A>>>2]>>>24-A%4*8&255;w.push(String.fromCharCode(O))}return w.join("")},parse:function(C){for(var E=C.length,I=[],w=0;w<E;w++)I[w>>>2]|=(C.charCodeAt(w)&255)<<24-w%4*8;return new d.init(I,E)}},m=f.Utf8={stringify:function(C){try{return decodeURIComponent(escape(h.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return h.parse(unescape(encodeURIComponent(C)))}},y=l.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=m.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var E=this._data,I=E.words,w=E.sigBytes,A=this.blockSize,O=A*4,k=w/O;C?k=r.ceil(k):k=r.max((k|0)-this._minBufferSize,0);var M=k*A,R=r.min(M*4,w);if(M){for(var V=0;V<M;V+=A)this._doProcessBlock(I,V);var F=I.splice(0,M);E.sigBytes-=R}return new d.init(F,R)},clone:function(){var C=u.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});l.Hasher=y.extend({cfg:u.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){C&&this._append(C);var E=this._doFinalize();return E},blockSize:16,_createHelper:function(C){return function(E,I){return new C.init(I).finalize(E)}},_createHmacHelper:function(C){return function(E,I){return new x.HMAC.init(C,I).finalize(E)}}});var x=s.algo={};return s}(Math);return n})}(B3)),B3.exports}var R3={exports:{}},L3;function Td(){return L3||(L3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(r){var o=n,i=o.lib,s=i.Base,l=i.WordArray,u=o.x64={};u.Word=s.extend({init:function(d,f){this.high=d,this.low=f}}),u.WordArray=s.extend({init:function(d,f){d=this.words=d||[],f!=r?this.sigBytes=f:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,f=d.length,g=[],h=0;h<f;h++){var m=d[h];g.push(m.high),g.push(m.low)}return l.create(g,this.sigBytes)},clone:function(){for(var d=s.clone.call(this),f=d.words=this.words.slice(0),g=f.length,h=0;h<g;h++)f[h]=f[h].clone();return d}})}(),n})}(R3)),R3.exports}var N3={exports:{}},V3;function lQ(){return V3||(V3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,o=r.lib,i=o.WordArray,s=i.init,l=i.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray<"u"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var d=u.byteLength,f=[],g=0;g<d;g++)f[g>>>2]|=u[g]<<24-g%4*8;s.call(this,f,d)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(N3)),N3.exports}var W3={exports:{}},z3;function cQ(){return z3||(z3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(u){for(var d=u.words,f=u.sigBytes,g=[],h=0;h<f;h+=2){var m=d[h>>>2]>>>16-h%4*8&65535;g.push(String.fromCharCode(m))}return g.join("")},parse:function(u){for(var d=u.length,f=[],g=0;g<d;g++)f[g>>>1]|=u.charCodeAt(g)<<16-g%2*16;return i.create(f,d*2)}},s.Utf16LE={stringify:function(u){for(var d=u.words,f=u.sigBytes,g=[],h=0;h<f;h+=2){var m=l(d[h>>>2]>>>16-h%4*8&65535);g.push(String.fromCharCode(m))}return g.join("")},parse:function(u){for(var d=u.length,f=[],g=0;g<d;g++)f[g>>>1]|=l(u.charCodeAt(g)<<16-g%2*16);return i.create(f,d*2)}};function l(u){return u<<8&4278255360|u>>>8&16711935}}(),n.enc.Utf16})}(W3)),W3.exports}var U3={exports:{}},H3;function Ks(){return H3||(H3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Base64={stringify:function(u){var d=u.words,f=u.sigBytes,g=this._map;u.clamp();for(var h=[],m=0;m<f;m+=3)for(var y=d[m>>>2]>>>24-m%4*8&255,x=d[m+1>>>2]>>>24-(m+1)%4*8&255,C=d[m+2>>>2]>>>24-(m+2)%4*8&255,E=y<<16|x<<8|C,I=0;I<4&&m+I*.75<f;I++)h.push(g.charAt(E>>>6*(3-I)&63));var w=g.charAt(64);if(w)for(;h.length%4;)h.push(w);return h.join("")},parse:function(u){var d=u.length,f=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var h=0;h<f.length;h++)g[f.charCodeAt(h)]=h}var m=f.charAt(64);if(m){var y=u.indexOf(m);y!==-1&&(d=y)}return l(u,d,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(u,d,f){for(var g=[],h=0,m=0;m<d;m++)if(m%4){var y=f[u.charCodeAt(m-1)]<<m%4*2,x=f[u.charCodeAt(m)]>>>6-m%4*2;g[h>>>2]|=(y|x)<<24-h%4*8,h++}return i.create(g,h)}}(),n.enc.Base64})}(U3)),U3.exports}var G3={exports:{}},Y3;function Xs(){return Y3||(Y3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,u=o.algo,d=[];(function(){for(var x=0;x<64;x++)d[x]=r.abs(r.sin(x+1))*4294967296|0})();var f=u.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(x,C){for(var E=0;E<16;E++){var I=C+E,w=x[I];x[I]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var A=this._hash.words,O=x[C+0],k=x[C+1],M=x[C+2],R=x[C+3],V=x[C+4],F=x[C+5],B=x[C+6],G=x[C+7],Y=x[C+8],K=x[C+9],Z=x[C+10],z=x[C+11],J=x[C+12],H=x[C+13],ae=x[C+14],Q=x[C+15],W=A[0],te=A[1],oe=A[2],$=A[3];W=g(W,te,oe,$,O,7,d[0]),$=g($,W,te,oe,k,12,d[1]),oe=g(oe,$,W,te,M,17,d[2]),te=g(te,oe,$,W,R,22,d[3]),W=g(W,te,oe,$,V,7,d[4]),$=g($,W,te,oe,F,12,d[5]),oe=g(oe,$,W,te,B,17,d[6]),te=g(te,oe,$,W,G,22,d[7]),W=g(W,te,oe,$,Y,7,d[8]),$=g($,W,te,oe,K,12,d[9]),oe=g(oe,$,W,te,Z,17,d[10]),te=g(te,oe,$,W,z,22,d[11]),W=g(W,te,oe,$,J,7,d[12]),$=g($,W,te,oe,H,12,d[13]),oe=g(oe,$,W,te,ae,17,d[14]),te=g(te,oe,$,W,Q,22,d[15]),W=h(W,te,oe,$,k,5,d[16]),$=h($,W,te,oe,B,9,d[17]),oe=h(oe,$,W,te,z,14,d[18]),te=h(te,oe,$,W,O,20,d[19]),W=h(W,te,oe,$,F,5,d[20]),$=h($,W,te,oe,Z,9,d[21]),oe=h(oe,$,W,te,Q,14,d[22]),te=h(te,oe,$,W,V,20,d[23]),W=h(W,te,oe,$,K,5,d[24]),$=h($,W,te,oe,ae,9,d[25]),oe=h(oe,$,W,te,R,14,d[26]),te=h(te,oe,$,W,Y,20,d[27]),W=h(W,te,oe,$,H,5,d[28]),$=h($,W,te,oe,M,9,d[29]),oe=h(oe,$,W,te,G,14,d[30]),te=h(te,oe,$,W,J,20,d[31]),W=m(W,te,oe,$,F,4,d[32]),$=m($,W,te,oe,Y,11,d[33]),oe=m(oe,$,W,te,z,16,d[34]),te=m(te,oe,$,W,ae,23,d[35]),W=m(W,te,oe,$,k,4,d[36]),$=m($,W,te,oe,V,11,d[37]),oe=m(oe,$,W,te,G,16,d[38]),te=m(te,oe,$,W,Z,23,d[39]),W=m(W,te,oe,$,H,4,d[40]),$=m($,W,te,oe,O,11,d[41]),oe=m(oe,$,W,te,R,16,d[42]),te=m(te,oe,$,W,B,23,d[43]),W=m(W,te,oe,$,K,4,d[44]),$=m($,W,te,oe,J,11,d[45]),oe=m(oe,$,W,te,Q,16,d[46]),te=m(te,oe,$,W,M,23,d[47]),W=y(W,te,oe,$,O,6,d[48]),$=y($,W,te,oe,G,10,d[49]),oe=y(oe,$,W,te,ae,15,d[50]),te=y(te,oe,$,W,F,21,d[51]),W=y(W,te,oe,$,J,6,d[52]),$=y($,W,te,oe,R,10,d[53]),oe=y(oe,$,W,te,Z,15,d[54]),te=y(te,oe,$,W,k,21,d[55]),W=y(W,te,oe,$,Y,6,d[56]),$=y($,W,te,oe,Q,10,d[57]),oe=y(oe,$,W,te,B,15,d[58]),te=y(te,oe,$,W,H,21,d[59]),W=y(W,te,oe,$,V,6,d[60]),$=y($,W,te,oe,z,10,d[61]),oe=y(oe,$,W,te,M,15,d[62]),te=y(te,oe,$,W,K,21,d[63]),A[0]=A[0]+W|0,A[1]=A[1]+te|0,A[2]=A[2]+oe|0,A[3]=A[3]+$|0},_doFinalize:function(){var x=this._data,C=x.words,E=this._nDataBytes*8,I=x.sigBytes*8;C[I>>>5]|=128<<24-I%32;var w=r.floor(E/4294967296),A=E;C[(I+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C[(I+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,x.sigBytes=(C.length+1)*4,this._process();for(var O=this._hash,k=O.words,M=0;M<4;M++){var R=k[M];k[M]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return O},clone:function(){var x=l.clone.call(this);return x._hash=this._hash.clone(),x}});function g(x,C,E,I,w,A,O){var k=x+(C&E|~C&I)+w+O;return(k<<A|k>>>32-A)+C}function h(x,C,E,I,w,A,O){var k=x+(C&I|E&~I)+w+O;return(k<<A|k>>>32-A)+C}function m(x,C,E,I,w,A,O){var k=x+(C^E^I)+w+O;return(k<<A|k>>>32-A)+C}function y(x,C,E,I,w,A,O){var k=x+(E^(C|~I))+w+O;return(k<<A|k>>>32-A)+C}o.MD5=l._createHelper(f),o.HmacMD5=l._createHmacHelper(f)}(Math),n.MD5})}(G3)),G3.exports}var K3={exports:{}},X3;function l0(){return X3||(X3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=o.Hasher,l=r.algo,u=[],d=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,g){for(var h=this._hash.words,m=h[0],y=h[1],x=h[2],C=h[3],E=h[4],I=0;I<80;I++){if(I<16)u[I]=f[g+I]|0;else{var w=u[I-3]^u[I-8]^u[I-14]^u[I-16];u[I]=w<<1|w>>>31}var A=(m<<5|m>>>27)+E+u[I];I<20?A+=(y&x|~y&C)+1518500249:I<40?A+=(y^x^C)+1859775393:I<60?A+=(y&x|y&C|x&C)-1894007588:A+=(y^x^C)-899497514,E=C,C=x,x=y<<30|y>>>2,y=m,m=A}h[0]=h[0]+m|0,h[1]=h[1]+y|0,h[2]=h[2]+x|0,h[3]=h[3]+C|0,h[4]=h[4]+E|0},_doFinalize:function(){var f=this._data,g=f.words,h=this._nDataBytes*8,m=f.sigBytes*8;return g[m>>>5]|=128<<24-m%32,g[(m+64>>>9<<4)+14]=Math.floor(h/4294967296),g[(m+64>>>9<<4)+15]=h,f.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});r.SHA1=s._createHelper(d),r.HmacSHA1=s._createHmacHelper(d)}(),n.SHA1})}(K3)),K3.exports}var Z3={exports:{}},Q3;function J3(){return Q3||(Q3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,u=o.algo,d=[],f=[];(function(){function m(E){for(var I=r.sqrt(E),w=2;w<=I;w++)if(!(E%w))return!1;return!0}function y(E){return(E-(E|0))*4294967296|0}for(var x=2,C=0;C<64;)m(x)&&(C<8&&(d[C]=y(r.pow(x,1/2))),f[C]=y(r.pow(x,1/3)),C++),x++})();var g=[],h=u.SHA256=l.extend({_doReset:function(){this._hash=new s.init(d.slice(0))},_doProcessBlock:function(m,y){for(var x=this._hash.words,C=x[0],E=x[1],I=x[2],w=x[3],A=x[4],O=x[5],k=x[6],M=x[7],R=0;R<64;R++){if(R<16)g[R]=m[y+R]|0;else{var V=g[R-15],F=(V<<25|V>>>7)^(V<<14|V>>>18)^V>>>3,B=g[R-2],G=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;g[R]=F+g[R-7]+G+g[R-16]}var Y=A&O^~A&k,K=C&E^C&I^E&I,Z=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),z=(A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25),J=M+z+Y+f[R]+g[R],H=Z+K;M=k,k=O,O=A,A=w+J|0,w=I,I=E,E=C,C=J+H|0}x[0]=x[0]+C|0,x[1]=x[1]+E|0,x[2]=x[2]+I|0,x[3]=x[3]+w|0,x[4]=x[4]+A|0,x[5]=x[5]+O|0,x[6]=x[6]+k|0,x[7]=x[7]+M|0},_doFinalize:function(){var m=this._data,y=m.words,x=this._nDataBytes*8,C=m.sigBytes*8;return y[C>>>5]|=128<<24-C%32,y[(C+64>>>9<<4)+14]=r.floor(x/4294967296),y[(C+64>>>9<<4)+15]=x,m.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});o.SHA256=l._createHelper(h),o.HmacSHA256=l._createHmacHelper(h)}(Math),n.SHA256})}(Z3)),Z3.exports}var q3={exports:{}},$3;function uQ(){return $3||($3=1,function(e,t){(function(n,r,o){e.exports=r(rt(),J3())})(tt,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.algo,l=s.SHA256,u=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=4,d}});r.SHA224=l._createHelper(u),r.HmacSHA224=l._createHmacHelper(u)}(),n.SHA224})}(q3)),q3.exports}var eS={exports:{}},tS;function nS(){return tS||(tS=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Td())})(tt,function(n){return function(){var r=n,o=r.lib,i=o.Hasher,s=r.x64,l=s.Word,u=s.WordArray,d=r.algo;function f(){return l.create.apply(l,arguments)}var g=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],h=[];(function(){for(var y=0;y<80;y++)h[y]=f()})();var m=d.SHA512=i.extend({_doReset:function(){this._hash=new u.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,x){for(var C=this._hash.words,E=C[0],I=C[1],w=C[2],A=C[3],O=C[4],k=C[5],M=C[6],R=C[7],V=E.high,F=E.low,B=I.high,G=I.low,Y=w.high,K=w.low,Z=A.high,z=A.low,J=O.high,H=O.low,ae=k.high,Q=k.low,W=M.high,te=M.low,oe=R.high,$=R.low,fe=V,he=F,be=B,ue=G,xe=Y,Ce=K,Ae=Z,ve=z,Me=J,ye=H,Xe=ae,Wt=Q,xt=W,ct=te,pn=oe,vt=$,Qe=0;Qe<80;Qe++){var Bt=h[Qe];if(Qe<16)var ot=Bt.high=y[x+Qe*2]|0,st=Bt.low=y[x+Qe*2+1]|0;else{var Tt=h[Qe-15],je=Tt.high,ke=Tt.low,Oe=(je>>>1|ke<<31)^(je>>>8|ke<<24)^je>>>7,we=(ke>>>1|je<<31)^(ke>>>8|je<<24)^(ke>>>7|je<<25),yt=h[Qe-2],Ct=yt.high,Re=yt.low,Pe=(Ct>>>19|Re<<13)^(Ct<<3|Re>>>29)^Ct>>>6,en=(Re>>>19|Ct<<13)^(Re<<3|Ct>>>29)^(Re>>>6|Ct<<26),In=h[Qe-7],tr=In.high,So=In.low,Qi=h[Qe-16],Hl=Qi.high,ca=Qi.low,st=we+So,ot=Oe+tr+(st>>>0<we>>>0?1:0),st=st+en,ot=ot+Pe+(st>>>0<en>>>0?1:0),st=st+ca,ot=ot+Hl+(st>>>0<ca>>>0?1:0);Bt.high=ot,Bt.low=st}var ua=Me&Xe^~Me&xt,ii=ye&Wt^~ye&ct,da=fe&be^fe&xe^be&xe,fa=he&ue^he&Ce^ue&Ce,pa=(fe>>>28|he<<4)^(fe<<30|he>>>2)^(fe<<25|he>>>7),ha=(he>>>28|fe<<4)^(he<<30|fe>>>2)^(he<<25|fe>>>7),ga=(Me>>>14|ye<<18)^(Me>>>18|ye<<14)^(Me<<23|ye>>>9),Gl=(ye>>>14|Me<<18)^(ye>>>18|Me<<14)^(ye<<23|Me>>>9),si=g[Qe],Yl=si.high,Sr=si.low,nn=vt+Gl,Pt=pn+ga+(nn>>>0<vt>>>0?1:0),nn=nn+ii,Pt=Pt+ua+(nn>>>0<ii>>>0?1:0),nn=nn+Sr,Pt=Pt+Yl+(nn>>>0<Sr>>>0?1:0),nn=nn+st,Pt=Pt+ot+(nn>>>0<st>>>0?1:0),no=ha+fa,Kl=pa+da+(no>>>0<ha>>>0?1:0);pn=xt,vt=ct,xt=Xe,ct=Wt,Xe=Me,Wt=ye,ye=ve+nn|0,Me=Ae+Pt+(ye>>>0<ve>>>0?1:0)|0,Ae=xe,ve=Ce,xe=be,Ce=ue,be=fe,ue=he,he=nn+no|0,fe=Pt+Kl+(he>>>0<nn>>>0?1:0)|0}F=E.low=F+he,E.high=V+fe+(F>>>0<he>>>0?1:0),G=I.low=G+ue,I.high=B+be+(G>>>0<ue>>>0?1:0),K=w.low=K+Ce,w.high=Y+xe+(K>>>0<Ce>>>0?1:0),z=A.low=z+ve,A.high=Z+Ae+(z>>>0<ve>>>0?1:0),H=O.low=H+ye,O.high=J+Me+(H>>>0<ye>>>0?1:0),Q=k.low=Q+Wt,k.high=ae+Xe+(Q>>>0<Wt>>>0?1:0),te=M.low=te+ct,M.high=W+xt+(te>>>0<ct>>>0?1:0),$=R.low=$+vt,R.high=oe+pn+($>>>0<vt>>>0?1:0)},_doFinalize:function(){var y=this._data,x=y.words,C=this._nDataBytes*8,E=y.sigBytes*8;x[E>>>5]|=128<<24-E%32,x[(E+128>>>10<<5)+30]=Math.floor(C/4294967296),x[(E+128>>>10<<5)+31]=C,y.sigBytes=x.length*4,this._process();var I=this._hash.toX32();return I},clone:function(){var y=i.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});r.SHA512=i._createHelper(m),r.HmacSHA512=i._createHmacHelper(m)}(),n.SHA512})}(eS)),eS.exports}var rS={exports:{}},oS;function dQ(){return oS||(oS=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Td(),nS())})(tt,function(n){return function(){var r=n,o=r.x64,i=o.Word,s=o.WordArray,l=r.algo,u=l.SHA512,d=l.SHA384=u.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var f=u._doFinalize.call(this);return f.sigBytes-=16,f}});r.SHA384=u._createHelper(d),r.HmacSHA384=u._createHmacHelper(d)}(),n.SHA384})}(rS)),rS.exports}var iS={exports:{}},sS;function fQ(){return sS||(sS=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Td())})(tt,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,u=o.x64,d=u.Word,f=o.algo,g=[],h=[],m=[];(function(){for(var C=1,E=0,I=0;I<24;I++){g[C+5*E]=(I+1)*(I+2)/2%64;var w=E%5,A=(2*C+3*E)%5;C=w,E=A}for(var C=0;C<5;C++)for(var E=0;E<5;E++)h[C+5*E]=E+(2*C+3*E)%5*5;for(var O=1,k=0;k<24;k++){for(var M=0,R=0,V=0;V<7;V++){if(O&1){var F=(1<<V)-1;F<32?R^=1<<F:M^=1<<F-32}O&128?O=O<<1^113:O<<=1}m[k]=d.create(M,R)}})();var y=[];(function(){for(var C=0;C<25;C++)y[C]=d.create()})();var x=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],E=0;E<25;E++)C[E]=new d.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,E){for(var I=this._state,w=this.blockSize/2,A=0;A<w;A++){var O=C[E+2*A],k=C[E+2*A+1];O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var M=I[A];M.high^=k,M.low^=O}for(var R=0;R<24;R++){for(var V=0;V<5;V++){for(var F=0,B=0,G=0;G<5;G++){var M=I[V+5*G];F^=M.high,B^=M.low}var Y=y[V];Y.high=F,Y.low=B}for(var V=0;V<5;V++)for(var K=y[(V+4)%5],Z=y[(V+1)%5],z=Z.high,J=Z.low,F=K.high^(z<<1|J>>>31),B=K.low^(J<<1|z>>>31),G=0;G<5;G++){var M=I[V+5*G];M.high^=F,M.low^=B}for(var H=1;H<25;H++){var M=I[H],ae=M.high,Q=M.low,W=g[H];if(W<32)var F=ae<<W|Q>>>32-W,B=Q<<W|ae>>>32-W;else var F=Q<<W-32|ae>>>64-W,B=ae<<W-32|Q>>>64-W;var te=y[h[H]];te.high=F,te.low=B}var oe=y[0],$=I[0];oe.high=$.high,oe.low=$.low;for(var V=0;V<5;V++)for(var G=0;G<5;G++){var H=V+5*G,M=I[H],fe=y[H],he=y[(V+1)%5+5*G],be=y[(V+2)%5+5*G];M.high=fe.high^~he.high&be.high,M.low=fe.low^~he.low&be.low}var M=I[0],ue=m[R];M.high^=ue.high,M.low^=ue.low}},_doFinalize:function(){var C=this._data,E=C.words;this._nDataBytes*8;var I=C.sigBytes*8,w=this.blockSize*32;E[I>>>5]|=1<<24-I%32,E[(r.ceil((I+1)/w)*w>>>5)-1]|=128,C.sigBytes=E.length*4,this._process();for(var A=this._state,O=this.cfg.outputLength/8,k=O/8,M=[],R=0;R<k;R++){var V=A[R],F=V.high,B=V.low;F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,M.push(B),M.push(F)}return new s.init(M,O)},clone:function(){for(var C=l.clone.call(this),E=C._state=this._state.slice(0),I=0;I<25;I++)E[I]=E[I].clone();return C}});o.SHA3=l._createHelper(x),o.HmacSHA3=l._createHmacHelper(x)}(Math),n.SHA3})}(iS)),iS.exports}var aS={exports:{}},lS;function pQ(){return lS||(lS=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){/** @preserve
|
|
224
|
+
`+(l!==s?`result of cast: ${l}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:s=t,strict:l=this.spec.strict}=n,u=t;l||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let f of Object.values(this.internalTests))f&&d.push(f);this.runTests({path:i,value:u,originalValue:s,options:n,tests:d},r,f=>{if(f.length)return o(f,u);this.runTests({path:i,value:u,originalValue:s,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:s,originalValue:l,path:u,options:d}=t,f=x=>{o||(o=!0,n(x,s))},g=x=>{o||(o=!0,r(x,s))},h=i.length,m=[];if(!h)return g([]);let y={value:s,originalValue:l,path:u,options:d,schema:this};for(let x=0;x<i.length;x++){const C=i[x];C(y,f,function(I){I&&(Array.isArray(I)?m.push(...I):m.push(I)),--h<=0&&g(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:s}){const l=t??n;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof l=="number";let d=r[l];const f=Object.assign({},s,{strict:!0,parent:r,value:d,originalValue:i[l],key:void 0,[u?"index":"key"]:l,path:u||l.includes(".")?`${o||""}[${u?l:`"${l}"`}]`:(o?`${o}.`:"")+t});return(g,h,m)=>this.resolve(f)._validate(d,f,h,m)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((s,l)=>o._validate(t,n,(u,d)=>{Rn.isError(u)&&(u.value=d),l(u)},(u,d)=>{u.length?l(new Rn(u,d,void 0,void 0,i)):s(d)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(l,u)=>{throw Rn.isError(l)&&(l.value=u),l},(l,u)=>{if(l.length)throw new Rn(l,t,void 0,void 0,s);i=u}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Rn.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Rn.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Gs(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Hs({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Hs({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=qr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=qr.notNull){return this.nullability(!1,t)}required(t=qr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=qr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Hs(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(i||s.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=s3(t).map(i=>new Li(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new md(o,n):md.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Hs({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=qr.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Hs({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(t,n=qr.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Hs({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:s}=n.spec;return{meta:o,label:r,optional:i,nullable:s,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,f)=>f.findIndex(g=>g.name===u.name)===d)}}}br.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])br.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:s}=dZ(this,t,n,r.context);return s[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])br.prototype[e]=br.prototype.oneOf;for(const e of["not","nope"])br.prototype[e]=br.prototype.notOneOf;const fZ=()=>!0;function d3(e){return new f3(e)}class f3 extends br{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:fZ},t))}}d3.prototype=f3.prototype;const pZ=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function hZ(e){const t=$g(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function $g(e){var t,n;const r=pZ.exec(e);return r?{year:Co(r[1]),month:Co(r[2],1)-1,day:Co(r[3],1),hour:Co(r[4]),minute:Co(r[5]),second:Co(r[6]),millisecond:r[7]?Co(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Co(r[10]),minuteOffset:Co(r[11])}:null}function Co(e,t=0){return Number(e)||t}let gZ=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,mZ=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,vZ=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,yZ="^\\d{4}-\\d{2}-\\d{2}",bZ="\\d{2}:\\d{2}:\\d{2}",xZ="(([+-]\\d{2}(:?\\d{2})?)|Z)",CZ=new RegExp(`${yZ}T${bZ}(\\.\\d+)?${xZ}$`),wZ=e=>xo(e)||e===e.trim(),SZ={}.toString();function wo(){return new p3}class p3 extends br{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===SZ?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||qr.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ln.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ln.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ln.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||Ln.matches,params:{regex:t},skipAbsent:!0,test:s=>s===""&&r||s.search(t)!==-1})}email(t=Ln.email){return this.matches(gZ,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ln.url){return this.matches(mZ,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ln.uuid){return this.matches(vZ,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(CZ,{name:"datetime",message:n||Ln.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ln.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=$g(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||Ln.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const s=$g(i);return s?s.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ln.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:wZ})}lowercase(t=Ln.lowercase){return this.transform(n=>xo(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xo(n)||n===n.toLowerCase()})}uppercase(t=Ln.uppercase){return this.transform(n=>xo(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xo(n)||n===n.toUpperCase()})}}wo.prototype=p3.prototype;let EZ=e=>e!=+e;function h3(){return new g3}class g3 extends br{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!EZ(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Jo.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Jo.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Jo.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Jo.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Jo.positive){return this.moreThan(0,t)}negative(t=Jo.negative){return this.lessThan(0,t)}integer(t=Jo.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>xo(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>xo(o)?o:Math[t](o))}}h3.prototype=g3.prototype;let TZ=new Date(""),AZ=e=>Object.prototype.toString.call(e)==="[object Date]";class bd extends br{constructor(){super({type:"date",check(t){return AZ(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=hZ(t),isNaN(t)?bd.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Li.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Jg.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Jg.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}bd.INVALID_DATE=TZ,bd.prototype;function IZ(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([s,l])=>`${s}-${l}`));function i(s,l){let u=Ri.split(s)[0];r.add(u),o.has(`${l}-${u}`)||n.push([l,u])}for(const s of Object.keys(e)){let l=e[s];r.add(s),Li.isRef(l)&&l.isSibling?i(l.path,s):qg(l)&&"deps"in l&&l.deps.forEach(u=>i(u,s))}return nZ.array(Array.from(r),n).reverse()}function m3(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function v3(e){return(t,n)=>m3(e,t)-m3(e,n)}const OZ=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function xd(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=xd(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=xd(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(xd)}):"optional"in e?e.optional():e}const PZ=(e,t)=>{const n=[...Ri.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Ri.getter(Ri.join(n),!0)(e);return!!(o&&r in o)};let y3=e=>Object.prototype.toString.call(e)==="[object Object]";function b3(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const jZ=v3([]);function e0(e){return new x3(e)}class x3 extends br{constructor(t){super({type:"object",check(n){return y3(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=jZ,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(o).filter(g=>!this._nodes.includes(g))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),f=!1;for(const g of l){let h=i[g],m=g in o;if(h){let y,x=o[g];d.path=(n.path?`${n.path}.`:"")+g,h=h.resolve({value:x,context:n.context,parent:u});let C=h instanceof br?h.spec:void 0,E=C==null?void 0:C.strict;if(C!=null&&C.strip){f=f||g in o;continue}y=!n.__validating||!E?h.cast(o[g],d):o[g],y!==void 0&&(u[g]=y)}else m&&!s&&(u[g]=o[g]);(m!==g in u||u[g]!==o[g])&&(f=!0)}return f?u:o}_validate(t,n={},r,o){let{from:i=[],originalValue:s=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(t,n,r,(u,d)=>{if(!l||!y3(d)){o(u,d);return}s=s||d;let f=[];for(let g of this._nodes){let h=this.fields[g];!h||Li.isRef(h)||f.push(h.asNestedTest({options:n,key:g,parent:d,parentPath:n.path,originalParent:s}))}this.runTests({tests:f,value:d,originalValue:s,options:n},r,g=>{o(g.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const s=r[o];r[o]=s===void 0?i:s}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=IZ(t,n),r._sortErrors=v3(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return xd(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Ri.getter(t,!0);return this.transform(i=>{if(!i)return i;let s=i;return PZ(i,t)&&(s=Object.assign({},i),r||delete s[t],s[n]=o(i)),s})}json(){return this.transform(OZ)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||gd.exact,test(n){if(n==null)return!0;const r=b3(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=gd.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=b3(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=gd.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(Zg.camelCase)}snakeCase(){return this.transformKeys(Zg.snakeCase)}constantCase(){return this.transformKeys(t=>Zg.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,s]of Object.entries(n.fields)){var o;let l=t;(o=l)!=null&&o.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=s.describe(l)}return r}}e0.prototype=x3.prototype;const C3=d3().test("function","Invalid function",e=>se.isFunction(e));class w3{constructor(){_o(this,Xi);_o(this,oi,[])}get(t){if(wo().required().validateSync(t),dc(this,Xi,fc).call(this)){const n=localStorage.getItem(t);return se.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return wo().required().validateSync(t),dc(this,Xi,fc).call(this)?(localStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){wo().required().validateSync(t),C3.validateSync(n),dc(this,Xi,fc).call(this)&&(Gn(this,oi).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===localStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){wo().required().validateSync(t),C3.optional().default(se.identity).validateSync(n),dc(this,Xi,fc).call(this)&&(n!==void 0?mi(this,oi,se.reject(Gn(this,oi),r=>r.key===t&&r.callback===n)):mi(this,oi,se.reject(Gn(this,oi),r=>r.key===t)))}}oi=new WeakMap,Xi=new WeakSet,fc=function(){return typeof window<"u"};function Cd(e={},t=[],n={}){const{isEmpty:r=se.isEmpty}=n;return!se.some(t,o=>r((e??{})[o.locale]))}function S3(e={},t=[],n={}){const{isEmpty:r=se.isEmpty}=n;return se.some(t,o=>!r((e??{})[o.locale]))}function t0(e,t,n){if(!se.isPlainObject(e)||t===void 0)return;const r=se.isPlainObject(n)?n:{},o=!!((r==null?void 0:r.fallback)??!0);let i=e[String(t)];if(i===void 0&&o){const s=se.isArray(r.fallbackLocales)&&!se.isEmpty(r.fallbackLocales)?r.fallbackLocales:["en"];i=se.chain(s).map(l=>e[String(l)]).reject(se.isUndefined).first().value(),i===void 0&&(i=se.chain(e).values().first().value())}return i}function wd(e=[],t){const n=se.isArray(e)?e:[e],r=se.filter(n,o=>P.isValidElement(o));se.each(r,o=>{var i;t(o),wd(((i=o==null?void 0:o.props)==null?void 0:i.children)??[],t)})}var E3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Tn,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",l="minute",u="hour",d="day",f="week",g="month",h="quarter",m="year",y="date",x="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var Z=["th","st","nd","rd"],z=K%100;return"["+K+(Z[(z-20)%10]||Z[z]||Z[0])+"]"}},w=function(K,Z,z){var J=String(K);return!J||J.length>=Z?K:""+Array(Z+1-J.length).join(z)+K},A={s:w,z:function(K){var Z=-K.utcOffset(),z=Math.abs(Z),J=Math.floor(z/60),H=z%60;return(Z<=0?"+":"-")+w(J,2,"0")+":"+w(H,2,"0")},m:function K(Z,z){if(Z.date()<z.date())return-K(z,Z);var J=12*(z.year()-Z.year())+(z.month()-Z.month()),H=Z.clone().add(J,g),ae=z-H<0,Q=Z.clone().add(J+(ae?-1:1),g);return+(-(J+(z-H)/(ae?H-Q:Q-H))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:g,y:m,w:f,d,D:y,h:u,m:l,s,ms:i,Q:h}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},O="en",k={};k[O]=I;var M="$isDayjsObject",R=function(K){return K instanceof G||!(!K||!K[M])},V=function K(Z,z,J){var H;if(!Z)return O;if(typeof Z=="string"){var ae=Z.toLowerCase();k[ae]&&(H=ae),z&&(k[ae]=z,H=ae);var Q=Z.split("-");if(!H&&Q.length>1)return K(Q[0])}else{var W=Z.name;k[W]=Z,H=W}return!J&&H&&(O=H),H||!J&&O},F=function(K,Z){if(R(K))return K.clone();var z=typeof Z=="object"?Z:{};return z.date=K,z.args=arguments,new G(z)},B=A;B.l=V,B.i=R,B.w=function(K,Z){return F(K,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var G=function(){function K(z){this.$L=V(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[M]=!0}var Z=K.prototype;return Z.parse=function(z){this.$d=function(J){var H=J.date,ae=J.utc;if(H===null)return new Date(NaN);if(B.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var Q=H.match(C);if(Q){var W=Q[2]-1||0,te=(Q[7]||"0").substring(0,3);return ae?new Date(Date.UTC(Q[1],W,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,te)):new Date(Q[1],W,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,te)}}return new Date(H)}(z),this.init()},Z.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},Z.$utils=function(){return B},Z.isValid=function(){return this.$d.toString()!==x},Z.isSame=function(z,J){var H=F(z);return this.startOf(J)<=H&&H<=this.endOf(J)},Z.isAfter=function(z,J){return F(z)<this.startOf(J)},Z.isBefore=function(z,J){return this.endOf(J)<F(z)},Z.$g=function(z,J,H){return B.u(z)?this[J]:this.set(H,z)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(z,J){var H=this,ae=!!B.u(J)||J,Q=B.p(z),W=function(xe,Ce){var Ae=B.w(H.$u?Date.UTC(H.$y,Ce,xe):new Date(H.$y,Ce,xe),H);return ae?Ae:Ae.endOf(d)},te=function(xe,Ce){return B.w(H.toDate()[xe].apply(H.toDate("s"),(ae?[0,0,0,0]:[23,59,59,999]).slice(Ce)),H)},oe=this.$W,$=this.$M,fe=this.$D,he="set"+(this.$u?"UTC":"");switch(Q){case m:return ae?W(1,0):W(31,11);case g:return ae?W(1,$):W(0,$+1);case f:var be=this.$locale().weekStart||0,ue=(oe<be?oe+7:oe)-be;return W(ae?fe-ue:fe+(6-ue),$);case d:case y:return te(he+"Hours",0);case u:return te(he+"Minutes",1);case l:return te(he+"Seconds",2);case s:return te(he+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(z){return this.startOf(z,!1)},Z.$set=function(z,J){var H,ae=B.p(z),Q="set"+(this.$u?"UTC":""),W=(H={},H[d]=Q+"Date",H[y]=Q+"Date",H[g]=Q+"Month",H[m]=Q+"FullYear",H[u]=Q+"Hours",H[l]=Q+"Minutes",H[s]=Q+"Seconds",H[i]=Q+"Milliseconds",H)[ae],te=ae===d?this.$D+(J-this.$W):J;if(ae===g||ae===m){var oe=this.clone().set(y,1);oe.$d[W](te),oe.init(),this.$d=oe.set(y,Math.min(this.$D,oe.daysInMonth())).$d}else W&&this.$d[W](te);return this.init(),this},Z.set=function(z,J){return this.clone().$set(z,J)},Z.get=function(z){return this[B.p(z)]()},Z.add=function(z,J){var H,ae=this;z=Number(z);var Q=B.p(J),W=function($){var fe=F(ae);return B.w(fe.date(fe.date()+Math.round($*z)),ae)};if(Q===g)return this.set(g,this.$M+z);if(Q===m)return this.set(m,this.$y+z);if(Q===d)return W(1);if(Q===f)return W(7);var te=(H={},H[l]=r,H[u]=o,H[s]=n,H)[Q]||1,oe=this.$d.getTime()+z*te;return B.w(oe,this)},Z.subtract=function(z,J){return this.add(-1*z,J)},Z.format=function(z){var J=this,H=this.$locale();if(!this.isValid())return H.invalidDate||x;var ae=z||"YYYY-MM-DDTHH:mm:ssZ",Q=B.z(this),W=this.$H,te=this.$m,oe=this.$M,$=H.weekdays,fe=H.months,he=H.meridiem,be=function(Ce,Ae,ve,Me){return Ce&&(Ce[Ae]||Ce(J,ae))||ve[Ae].slice(0,Me)},ue=function(Ce){return B.s(W%12||12,Ce,"0")},xe=he||function(Ce,Ae,ve){var Me=Ce<12?"AM":"PM";return ve?Me.toLowerCase():Me};return ae.replace(E,function(Ce,Ae){return Ae||function(ve){switch(ve){case"YY":return String(J.$y).slice(-2);case"YYYY":return B.s(J.$y,4,"0");case"M":return oe+1;case"MM":return B.s(oe+1,2,"0");case"MMM":return be(H.monthsShort,oe,fe,3);case"MMMM":return be(fe,oe);case"D":return J.$D;case"DD":return B.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return be(H.weekdaysMin,J.$W,$,2);case"ddd":return be(H.weekdaysShort,J.$W,$,3);case"dddd":return $[J.$W];case"H":return String(W);case"HH":return B.s(W,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return xe(W,te,!0);case"A":return xe(W,te,!1);case"m":return String(te);case"mm":return B.s(te,2,"0");case"s":return String(J.$s);case"ss":return B.s(J.$s,2,"0");case"SSS":return B.s(J.$ms,3,"0");case"Z":return Q}return null}(Ce)||Q.replace(":","")})},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(z,J,H){var ae,Q=this,W=B.p(J),te=F(z),oe=(te.utcOffset()-this.utcOffset())*r,$=this-te,fe=function(){return B.m(Q,te)};switch(W){case m:ae=fe()/12;break;case g:ae=fe();break;case h:ae=fe()/3;break;case f:ae=($-oe)/6048e5;break;case d:ae=($-oe)/864e5;break;case u:ae=$/o;break;case l:ae=$/r;break;case s:ae=$/n;break;default:ae=$}return H?ae:B.a(ae)},Z.daysInMonth=function(){return this.endOf(g).$D},Z.$locale=function(){return k[this.$L]},Z.locale=function(z,J){if(!z)return this.$L;var H=this.clone(),ae=V(z,J,!0);return ae&&(H.$L=ae),H},Z.clone=function(){return B.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},K}(),Y=G.prototype;return F.prototype=Y,[["$ms",i],["$s",s],["$m",l],["$H",u],["$W",d],["$M",g],["$y",m],["$D",y]].forEach(function(K){Y[K[1]]=function(Z){return this.$g(Z,K[0],K[1])}}),F.extend=function(K,Z){return K.$i||(K(Z,G,F),K.$i=!0),F},F.locale=V,F.isDayjs=R,F.unix=function(K){return F(1e3*K)},F.en=k[O],F.Ls=k,F.p={},F})})(E3);var T3=E3.exports;const Br=_r(T3);function A3(e){const t=e.split(":");t.length===1&&t.push("00");const n=parseInt(t[0]),r=parseInt(t[1]);return Br().hour(n).minute(r)}const Ol=new w3;function kZ(e,t,n){return function(r){const o=se.isFunction(r)?r(t):r;return Ol.set(e,o),n(o),o}}function n0(e,t){var u;wo().required().validateSync(e);const[n,r]=P.useState(Ol.get(e)??t),o=P.useRef(t),i=se.isEqual(o.current,t)?o.current:t,s=P.useRef(),l=s.current;return P.useEffect(()=>{r(Ol.get(e)??i)},[e,i,r]),P.useEffect(()=>{function d(f){r(f)}return Ol.watch(e,d),()=>{Ol.unwatch(e,d)}},[e,r]),(e!==(l==null?void 0:l.key)||!se.isEqual(n,l==null?void 0:l.value))&&(s.current={key:e,value:n,setter:kZ(e,n,r)}),[n,((u=s.current)==null?void 0:u.setter)??se.noop]}function I3(e){const[t]=re.useLocaleState();return e!==void 0?String(e):t}function MZ(e,t){const n=I3(t==null?void 0:t.locale);return t0(e,n,t)}function _Z(e){const t=I3(e==null?void 0:e.locale);return P.useCallback(r=>t0(r,t,e),[t,e])}function O3(e){if(!se.isPlainObject(e))throw new Error("[useMemoizedObject]: param must be a plain JS object");const[t,n]=P.useState(e);return P.useEffect(()=>{se.isEqual(e,t)||n(e)},[e,t]),t}function Ys(){const[e,t]=P.useState(null),n=!!e,r=P.useCallback(s=>t((s==null?void 0:s.currentTarget)??null),[t]),o=P.useCallback(()=>t(null),[t]),i=P.useCallback(s=>{n?o():r(s)},[n,r,o]);return{anchorEl:e,open:n,handleClick:r,handleClose:o,handleToggle:i}}function FZ(e,t){const[n,r]=P.useState({width:1,height:1}),o=e.current;return P.useEffect(()=>{function i(){var d;let l=0,u=0;switch(t){case"client":l=(o==null?void 0:o.clientWidth)??0,u=(o==null?void 0:o.clientHeight)??0;break;case"offset":l=(o==null?void 0:o.offsetWidth)??0,u=(o==null?void 0:o.offsetHeight)??0;break;case"scroll":l=(o==null?void 0:o.scrollWidth)??0,u=(o==null?void 0:o.scrollHeight)??0;break;case"bounding":default:{const f=((d=e.current)==null?void 0:d.getBoundingClientRect())??{width:0,height:0};l=f.width,u=f.height;break}}r({width:l,height:u})}const s=new ResizeObserver(i);return se.isEmpty(e==null?void 0:e.current)||(s.observe(e==null?void 0:e.current),i()),()=>{s.disconnect()}},[o,t,e]),n}function r0(e){const t=U.useRecordContext(),n=U.useTranslate(),r=U.useResourceContext(),o=t!=null&&t.id?"edit":"create";return P.useMemo(()=>{if(e===!1)return;const s=`resources.${r}.title`;return e||n(`resources.${r}.title.${o}`,{_:n(s,{_:s}),...t})},[o,t,r,n,e])}function P3(){const{mode:e}=An(),t=window.matchMedia("(prefers-color-scheme: dark)"),[n,r]=P.useState(()=>e==="auto"?t.matches?"dark":"light":e),o=P.useRef(n);return P.useEffect(()=>{function i(){const l=t.matches?"dark":"light";l!==o.current&&(r(l),o.current=l)}i();const s=t;return s.addEventListener("change",i),()=>{s.removeEventListener("change",i)}},[t]),n}function $r(){throw new Error("Method must be implemented")}const j3={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2,setFontFamily:$r,setMenuOrientation:$r,setMiniDrawer:$r,setContainer:$r,setMode:$r,setPresetColor:$r,setThemeDirection:$r,setAppDefaultPath:$r,setDrawerWidth:$r,setHorizontalMaxItems:$r,isVerticalLayout:e=>!1,isHorizontalLayout:e=>!1};function BZ(e){return e==="vertical"}function DZ(e){return e==="horizontal"}const o0=P.createContext(j3);function i0({initialConfig:e,children:t}){const[n,r]=n0("theme-config",{...j3,...e});function o(y){r(x=>({...x,fontFamily:y}))}function i(y){r(x=>({...x,menuOrientation:y}))}function s(y){r(x=>({...x,miniDrawer:y}))}function l(y){r(x=>({...x,container:y}))}function u(y){r(x=>({...x,mode:y}))}function d(y){r(x=>({...x,presetColor:y}))}function f(y){r(x=>({...x,themeDirection:y}))}function g(y){r(x=>({...x,appDefaultPath:y}))}function h(y){r(x=>({...x,drawerWidth:y}))}function m(y){r(x=>({...x,horizontalMaxItems:y}))}return p.jsx(o0.Provider,{value:{...n,setFontFamily:o,setMenuOrientation:i,setMiniDrawer:s,setContainer:l,setMode:u,setPresetColor:d,setThemeDirection:f,setAppDefaultPath:g,setDrawerWidth:h,setHorizontalMaxItems:m,isVerticalLayout:BZ,isHorizontalLayout:DZ},children:t})}function s0(){return P.useContext(o0)}function An(){return s0()}const RZ=sl(U.Toolbar,{slot:"Root"})(({theme:e})=>({...e.mixins.toolbar,backgroundColor:e.palette.background.paper,justifyContent:"flex-end",position:"initial !important","& .RaToolbar-defaultToolbar":{justifyContent:"right",paddingBottom:e.spacing(2),"& > *":{marginLeft:e.spacing(1)}},"& .MuiButtonBase-root":{marginLeft:e.spacing(1)}}));function qo(e){return p.jsx(RZ,{...e})}function k3({children:e,spacing:t,defaultValues:n,...r}){const{spacing:o}=An();return p.jsx(NZ,{defaultValues:n,spacing:t||o,children:p.jsx(T.Grid,{container:!0,...r,spacing:t||o,children:e})})}function LZ({children:e,content:t=!0,title:n,subheader:r=null,secondary:o=null,toolbar:i=!1,lg:s=12,md:l=12,sm:u=12,xs:d=12,...f}){const g=U.useTranslate(),h=U.useResourceContext(),{cardTitle:m,cardSubheader:y}=P.useMemo(()=>{const x=n||`resources.${h}.title`;return{cardTitle:g(x,{_:x}),cardSubheader:r!==null?g(r,{_:r}):null}},[h,r,n,g]);return p.jsx(T.Grid,{item:!0,...f,lg:s,md:l,sm:u,xs:d,children:p.jsx(Fn,{content:t,title:m,subheader:y,secondary:o,divider:!0,children:p.jsxs(p.Fragment,{children:[e,i===!0?p.jsx(qo,{children:p.jsx(U.SaveButton,{})}):i]})})})}const NZ=ge(U.Form,{slot:"root"})(({theme:e,spacing:t})=>({backgroundColor:"transparent","& .RaToolbar-desktopToolbar":{marginTop:e.spacing(t*1.25),padding:0,minHeight:"unset"},"& .RaToolbar-mobileToolbar":{paddingTop:`${e.spacing(2.5)} !important`,paddingRight:"0 !important",paddingLeft:"0 !important",paddingBottom:"0 !important"}}));k3.Section=LZ;function M3(e){const{confirmTitle:t,confirmContent:n,confirmColor:r="primary",dialogSx:o,icon:i=zZ,label:s="ra.action.delete",mutationMode:l="pessimistic",mutationOptions:u={},onClick:d,onSuccess:f,onError:g,...h}=e,{meta:m,...y}=u,{selectedIds:x,onUnselectItems:C}=re.useListContext(e),[E,I]=re.useSafeSetState(!1),w=re.useNotify(),A=re.useResourceContext(e),O=re.useRefresh(),k=re.useTranslate(),M=St(),[R,{isLoading:V}]=re.useDeleteMany(A,{ids:x,meta:m},{onSuccess:()=>{O(),w("ra.notification.deleted",{type:"info",messageArgs:{smart_count:x.length},undoable:l==="undoable"}),C(),I(!1),f&&se.isFunction(f)&&f()},onError:Y=>{w(typeof Y=="string"?Y:Y.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof Y=="string"?Y:Y&&Y.message?Y.message:void 0}}),I(!1),g&&se.isFunction(g)&&g()},mutationMode:l,...y});function F(Y){I(!0),Y.stopPropagation()}function B(){I(!1)}function G(Y){R(),typeof d=="function"&&d(Y)}return p.jsxs(p.Fragment,{children:[p.jsx(WZ,{onClick:F,label:s,...VZ(h),children:i}),p.jsx(U.Confirm,{isOpen:E,loading:V,sx:o||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:M.palette.primary.main,color:M.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:M.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${M.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:t?typeof t=="string"?k(t):t:p.jsx(T.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(T.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(He.DeleteFilled,{})})}),content:n||p.jsx(T.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:k("ra.message.bulk_delete_content",{_:"ra.message.bulk_delete_content",smart_count:x.length,name:k(`resources.${A}.forcedCaseName`,{smart_count:x.length,_:Ko.humanize(k(`resources.${A}.name`,{smart_count:x.length,_:Ko.inflect(A,x.length)}),!0)})})}),confirmColor:r,translateOptions:{smart_count:x.length,name:k(`resources.${A}.forcedCaseName`,{smart_count:x.length,_:Ko.humanize(k(`resources.${A}.name`,{smart_count:x.length,_:Ko.inflect(A,x.length)}),!0)})},onConfirm:G,onClose:B})]})}function VZ({classes:e,filterValues:t,label:n,selectedIds:r,...o}){return o}const WZ=ge(U.Button,{name:"RaBulkDeleteWithConfirmButton",overridesResolver:e=>e.root})(({theme:e})=>({color:e.palette.error.main,"&:hover":{backgroundColor:nt(e.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}})),zZ=p.jsx(lg,{});M3.propTypes={confirmTitle:b.node,confirmContent:b.node,confirmColor:b.string,dialogSx:b.object,icon:b.element,label:b.string,mutationMode:b.oneOf(["pessimistic","optimistic","undoable"]),resource:b.string,selectedIds:b.arrayOf(b.any),onSuccess:b.func,onError:b.func};const UZ="RaButton";function HZ(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}const GZ=ge(T.Button,{name:UZ,overridesResolver:(e,t)=>t.root})({"&.MuiButton-sizeSmall":{lineHeight:1.5}});function Ni(e){const{disableIconOnly:t=!1,label:n,children:r,className:o,color:i,size:s,disabled:l,alignIcon:u,to:d,...f}=e,g=U.useTranslate(),h=HZ(d);if(t){const m=n?g(n,{_:n}):void 0;return p.jsx(GZ,{className:o,color:i,size:s,"aria-label":m,disabled:l,startIcon:u==="left"&&r?r:void 0,endIcon:u==="right"&&r?r:void 0,...h,...f,children:m})}return p.jsx(U.Button,{...e})}function _3(e){const{className:t,icon:n=YZ,label:r="ra.action.create",resource:o,scrollToTop:i=!0,variant:s,to:l,state:u={},disableFloatingButton:d=!1,...f}=e,g=re.useResourceContext(e),h=re.useCreatePath(),m=re.useTranslate(),y=T.useMediaQuery(E=>E.breakpoints.down("md")),x=Gw({},KZ.get(String(i)),u),C=JZ(l);return!d&&y?p.jsx(XZ,{component:dt.Link,to:h({resource:g,type:"create"}),state:x,color:"primary",className:Ve(Ed.floating,t),"aria-label":r?m(r):"ra.action.create",...f,...C,children:n}):p.jsx(ZZ,{component:dt.Link,to:h({resource:g,type:"create"}),state:x,className:Ve(Ed.root,t),label:r,variant:s,...f,...C,children:n})}const YZ=p.jsx(Lh,{}),KZ=new Map([["true",{_scrollToTop:!0}],["false",{}]]);_3.propTypes={resource:b.string,className:b.string,icon:b.element,label:b.string};const Sd="RaCreateButton",Ed={root:`${Sd}-root`,floating:`${Sd}-floating`},XZ=ge(T.Fab,{name:Sd,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${Ed.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}})),ZZ=ge(Ni,{name:Sd,overridesResolver:(e,t)=>t.root})({});function QZ(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&bl(e.to,t.to)&&bl(e.state,t.state)}const F3=N.memo(_3,QZ);function JZ(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}function a0(e,t){const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]}function qZ(e,t){return e&&e.data?{data:a0(e.data,t),total:e.total+1}:e}function $Z(e,t){return e&&e.length>0?a0(e,t):e}function eQ(e,t){return e&&e.data?{...e,data:a0(e.data,t),total:e.total+1}:e}function tQ(e){const{disableFloatingButton:t,label:n="ra.action.create",startIcon:r=p.jsx(He.PlusCircleOutlined,{}),...o}=e,i=P.useCallback(s=>{var l;s.preventDefault(),(l=e==null?void 0:e.onClick)==null||l.call(e)},[e]);return t?p.jsx(Ni,{...o,onClick:i,label:n,children:r}):p.jsx($U,{...e,onClick:i,label:n,children:r})}function nQ(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=ln.useFormContext(),o=re.useTranslate(),i=P.useCallback(s=>{s.preventDefault(),s.stopPropagation(),r(l=>t(l,n))()},[r,t,n]);return p.jsx(T.Button,{onClick:i,color:"primary",variant:"contained",size:"medium",children:o("ra.action.save")})}function rQ(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,onSubmit:i,mutationOptions:s,scroll:l="body",...u}=e,d=yi.useQueryClient(),f=re.useResourceContext(),g=re.useTranslate(),h=P.Children.only(t),[m,y]=P.useState(!1),x=re.useNotify(),C=P.useCallback(()=>y(!0),[]),E=P.useCallback(()=>y(!1),[]),I=P.useCallback((w,A,O)=>{var R,V;const M=Date.now();d.setQueryData([f,"getOne",{id:w.id}],w),d.setQueriesData([f,"getList"],F=>eQ(F,w),{updatedAt:M}),d.setQueriesData([f,"getMany"],F=>$Z(F,w),{updatedAt:M}),d.setQueriesData([f,"getManyReference"],F=>qZ(F,w),{updatedAt:M}),E(),x("ra.notification.created",{messageArgs:{smart_count:1}}),(V=(R=e==null?void 0:e.mutationOptions)==null?void 0:R.onSuccess)==null||V.call(R,w,A,O)},[E,x,e.mutationOptions,d,f]);return p.jsxs(p.Fragment,{children:[p.jsx(tQ,{...u,onClick:C}),p.jsx(T.Dialog,{open:m,scroll:l,onClose:E,maxWidth:n,fullWidth:r,fullScreen:o,children:p.jsx(T.DialogContent,{sx:{m:0,p:0},children:p.jsx(re.CreateBase,{...e,mutationOptions:{...s,onSuccess:I},children:P.isValidElement(h)?P.cloneElement(h,{...h.props,modal:!0,toolbar:p.jsxs(qo,{children:[p.jsx(T.Button,{variant:"text",size:"medium",onClick:E,children:g("ra.action.cancel")}),i?p.jsx(nQ,{onSubmit:i,closeDialog:E}):p.jsx(Bg,{type:"button"})]})}):null})})})]})}function Vi(e){const{className:t,confirmTitle:n,confirmContent:r,confirmColor:o="primary",color:i="error",dialogSx:s,icon:l=p.jsx(lg,{}),label:u="ra.action.delete",mutationMode:d="pessimistic",mutationOptions:f,onClick:g,redirect:h="list",translateOptions:m={},onConfirm:y,...x}=e,C=re.useTranslate(),E=re.useRecordContext(e),I=re.useResourceContext(e),w=T.useTheme(),{open:A,isLoading:O,handleDialogOpen:k,handleDialogClose:M,handleDelete:R}=re.useDeleteWithConfirmController({record:E,redirect:h,mutationMode:d,onClick:g,mutationOptions:f,resource:I}),V=P.useCallback(F=>{y?y():R(F)},[R,y]);return p.jsxs(p.Fragment,{children:[p.jsx(Ni,{onClick:k,label:u,className:Ve("ra-delete-button",t),color:i,...x,children:l},"button"),p.jsx(a4,{isOpen:A,loading:O,sx:s||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:w.palette.primary.main,color:w.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:w.palette.primary.dark},"&.Mui-disabled":{backgroundColor:w.palette.action.disabled,color:w.palette.primary.contrastText,outline:"none",boxShadow:"none",border:`1px solid ${w.palette.action.disabled}`}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${w.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:n?typeof n=="string"?C(n):n:p.jsx(T.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(T.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(He.DeleteFilled,{})})}),content:p.jsx(T.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:r||C("ra.message.delete_content",{_:"ra.message.delete_content",name:C(`resources.${I}.forcedCaseName`,{smart_count:1,_:Ko.humanize(C(`resources.${I}.name`,{smart_count:1,_:Ko.singularize(I)}),!0)}),id:E==null?void 0:E.id})}),confirmColor:o,translateOptions:{name:C(`resources.${I}.forcedCaseName`,{smart_count:1,_:Ko.humanize(C(`resources.${I}.name`,{smart_count:1,_:Ko.singularize(I)}),!0)}),id:E==null?void 0:E.id,...m},onConfirm:V,onClose:M})]})}Vi.propTypes={basePath:b.string,className:b.string,confirmColor:b.string,confirmContent:b.oneOfType([b.string,b.element]),confirmTitle:b.oneOfType([b.string,b.element]),icon:b.element,label:b.string,mutationMode:b.oneOf(["pessimistic","optimistic","undoable"]),onClick:b.func,record:b.any,redirect:b.oneOfType([b.string,b.bool,b.func]),resource:b.string,translateOptions:b.object};function oQ(e){const t=P.useCallback(n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e==null?void 0:e.onClick)==null||r.call(e)},[e]);return p.jsx(x4,{...e,onClick:t})}function iQ(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=ln.useFormContext(),o=P.useCallback(i=>{i.preventDefault(),i.stopPropagation(),r(s=>t(s,n))()},[r,t,n]);return p.jsx(Ni,{disableIconOnly:!0,onClick:o,color:"primary",variant:"contained",size:"medium",label:"ra.action.save"})}function sQ(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,mutationOptions:i,onSubmit:s,scroll:l="body",...u}=e,d=re.useNotify(),[f,g]=P.useState(!1),h=P.Children.only(t),m=P.useCallback(()=>g(!0),[]),y=P.useCallback(()=>g(!1),[]),x=P.useCallback((E,I,w)=>{var A,O;y(),d("ra.notification.updated",{messageArgs:{smart_count:1},undoable:(e==null?void 0:e.mutationMode)==="undoable"}),(O=(A=e==null?void 0:e.mutationOptions)==null?void 0:A.onSuccess)==null||O.call(A,E,I,w)},[y,d,e.mutationOptions,e.mutationMode]),C=re.useRecordContext();return p.jsxs(p.Fragment,{children:[p.jsx(oQ,{...u,onClick:m}),p.jsx(T.Dialog,{open:f,scroll:l,onClose:y,fullWidth:r,maxWidth:n,fullScreen:o,keepMounted:!1,children:p.jsx(T.DialogContent,{sx:{m:0,p:0},children:p.jsx(re.EditBase,{...e,id:C.id,mutationMode:"pessimistic",mutationOptions:{...i,onSuccess:x},children:P.isValidElement(h)?P.cloneElement(h,{...h.props,modal:!0,toolbar:p.jsxs(qo,{children:[p.jsx(Ni,{disableIconOnly:!0,variant:"text",size:"medium",onClick:y,label:"ra.action.cancel"}),s?p.jsx(iQ,{onSubmit:s,closeDialog:y}):p.jsx(Bg,{type:"button"})]})}):null})})})]})}var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},aQ={exports:{}},B3={exports:{}},D3;function rt(){return D3||(D3=1,function(e,t){(function(n,r){e.exports=r()})(tt,function(){var n=n||function(r,o){var i=Object.create||function(){function C(){}return function(E){var I;return C.prototype=E,I=new C,C.prototype=null,I}}(),s={},l=s.lib={},u=l.Base=function(){return{extend:function(C){var E=i(this);return C&&E.mixIn(C),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var E in C)C.hasOwnProperty(E)&&(this[E]=C[E]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=l.WordArray=u.extend({init:function(C,E){C=this.words=C||[],E!=o?this.sigBytes=E:this.sigBytes=C.length*4},toString:function(C){return(C||g).stringify(this)},concat:function(C){var E=this.words,I=C.words,w=this.sigBytes,A=C.sigBytes;if(this.clamp(),w%4)for(var O=0;O<A;O++){var k=I[O>>>2]>>>24-O%4*8&255;E[w+O>>>2]|=k<<24-(w+O)%4*8}else for(var O=0;O<A;O+=4)E[w+O>>>2]=I[O>>>2];return this.sigBytes+=A,this},clamp:function(){var C=this.words,E=this.sigBytes;C[E>>>2]&=4294967295<<32-E%4*8,C.length=r.ceil(E/4)},clone:function(){var C=u.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var E=[],I=function(M){var M=M,R=987654321,V=4294967295;return function(){R=36969*(R&65535)+(R>>16)&V,M=18e3*(M&65535)+(M>>16)&V;var F=(R<<16)+M&V;return F/=4294967296,F+=.5,F*(r.random()>.5?1:-1)}},w=0,A;w<C;w+=4){var O=I((A||r.random())*4294967296);A=O()*987654071,E.push(O()*4294967296|0)}return new d.init(E,C)}}),f=s.enc={},g=f.Hex={stringify:function(C){for(var E=C.words,I=C.sigBytes,w=[],A=0;A<I;A++){var O=E[A>>>2]>>>24-A%4*8&255;w.push((O>>>4).toString(16)),w.push((O&15).toString(16))}return w.join("")},parse:function(C){for(var E=C.length,I=[],w=0;w<E;w+=2)I[w>>>3]|=parseInt(C.substr(w,2),16)<<24-w%8*4;return new d.init(I,E/2)}},h=f.Latin1={stringify:function(C){for(var E=C.words,I=C.sigBytes,w=[],A=0;A<I;A++){var O=E[A>>>2]>>>24-A%4*8&255;w.push(String.fromCharCode(O))}return w.join("")},parse:function(C){for(var E=C.length,I=[],w=0;w<E;w++)I[w>>>2]|=(C.charCodeAt(w)&255)<<24-w%4*8;return new d.init(I,E)}},m=f.Utf8={stringify:function(C){try{return decodeURIComponent(escape(h.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return h.parse(unescape(encodeURIComponent(C)))}},y=l.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=m.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var E=this._data,I=E.words,w=E.sigBytes,A=this.blockSize,O=A*4,k=w/O;C?k=r.ceil(k):k=r.max((k|0)-this._minBufferSize,0);var M=k*A,R=r.min(M*4,w);if(M){for(var V=0;V<M;V+=A)this._doProcessBlock(I,V);var F=I.splice(0,M);E.sigBytes-=R}return new d.init(F,R)},clone:function(){var C=u.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});l.Hasher=y.extend({cfg:u.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){C&&this._append(C);var E=this._doFinalize();return E},blockSize:16,_createHelper:function(C){return function(E,I){return new C.init(I).finalize(E)}},_createHmacHelper:function(C){return function(E,I){return new x.HMAC.init(C,I).finalize(E)}}});var x=s.algo={};return s}(Math);return n})}(B3)),B3.exports}var R3={exports:{}},L3;function Td(){return L3||(L3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(r){var o=n,i=o.lib,s=i.Base,l=i.WordArray,u=o.x64={};u.Word=s.extend({init:function(d,f){this.high=d,this.low=f}}),u.WordArray=s.extend({init:function(d,f){d=this.words=d||[],f!=r?this.sigBytes=f:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,f=d.length,g=[],h=0;h<f;h++){var m=d[h];g.push(m.high),g.push(m.low)}return l.create(g,this.sigBytes)},clone:function(){for(var d=s.clone.call(this),f=d.words=this.words.slice(0),g=f.length,h=0;h<g;h++)f[h]=f[h].clone();return d}})}(),n})}(R3)),R3.exports}var N3={exports:{}},V3;function lQ(){return V3||(V3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,o=r.lib,i=o.WordArray,s=i.init,l=i.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray<"u"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var d=u.byteLength,f=[],g=0;g<d;g++)f[g>>>2]|=u[g]<<24-g%4*8;s.call(this,f,d)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(N3)),N3.exports}var W3={exports:{}},z3;function cQ(){return z3||(z3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(u){for(var d=u.words,f=u.sigBytes,g=[],h=0;h<f;h+=2){var m=d[h>>>2]>>>16-h%4*8&65535;g.push(String.fromCharCode(m))}return g.join("")},parse:function(u){for(var d=u.length,f=[],g=0;g<d;g++)f[g>>>1]|=u.charCodeAt(g)<<16-g%2*16;return i.create(f,d*2)}},s.Utf16LE={stringify:function(u){for(var d=u.words,f=u.sigBytes,g=[],h=0;h<f;h+=2){var m=l(d[h>>>2]>>>16-h%4*8&65535);g.push(String.fromCharCode(m))}return g.join("")},parse:function(u){for(var d=u.length,f=[],g=0;g<d;g++)f[g>>>1]|=l(u.charCodeAt(g)<<16-g%2*16);return i.create(f,d*2)}};function l(u){return u<<8&4278255360|u>>>8&16711935}}(),n.enc.Utf16})}(W3)),W3.exports}var U3={exports:{}},H3;function Ks(){return H3||(H3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Base64={stringify:function(u){var d=u.words,f=u.sigBytes,g=this._map;u.clamp();for(var h=[],m=0;m<f;m+=3)for(var y=d[m>>>2]>>>24-m%4*8&255,x=d[m+1>>>2]>>>24-(m+1)%4*8&255,C=d[m+2>>>2]>>>24-(m+2)%4*8&255,E=y<<16|x<<8|C,I=0;I<4&&m+I*.75<f;I++)h.push(g.charAt(E>>>6*(3-I)&63));var w=g.charAt(64);if(w)for(;h.length%4;)h.push(w);return h.join("")},parse:function(u){var d=u.length,f=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var h=0;h<f.length;h++)g[f.charCodeAt(h)]=h}var m=f.charAt(64);if(m){var y=u.indexOf(m);y!==-1&&(d=y)}return l(u,d,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(u,d,f){for(var g=[],h=0,m=0;m<d;m++)if(m%4){var y=f[u.charCodeAt(m-1)]<<m%4*2,x=f[u.charCodeAt(m)]>>>6-m%4*2;g[h>>>2]|=(y|x)<<24-h%4*8,h++}return i.create(g,h)}}(),n.enc.Base64})}(U3)),U3.exports}var G3={exports:{}},Y3;function Xs(){return Y3||(Y3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,u=o.algo,d=[];(function(){for(var x=0;x<64;x++)d[x]=r.abs(r.sin(x+1))*4294967296|0})();var f=u.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(x,C){for(var E=0;E<16;E++){var I=C+E,w=x[I];x[I]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var A=this._hash.words,O=x[C+0],k=x[C+1],M=x[C+2],R=x[C+3],V=x[C+4],F=x[C+5],B=x[C+6],G=x[C+7],Y=x[C+8],K=x[C+9],Z=x[C+10],z=x[C+11],J=x[C+12],H=x[C+13],ae=x[C+14],Q=x[C+15],W=A[0],te=A[1],oe=A[2],$=A[3];W=g(W,te,oe,$,O,7,d[0]),$=g($,W,te,oe,k,12,d[1]),oe=g(oe,$,W,te,M,17,d[2]),te=g(te,oe,$,W,R,22,d[3]),W=g(W,te,oe,$,V,7,d[4]),$=g($,W,te,oe,F,12,d[5]),oe=g(oe,$,W,te,B,17,d[6]),te=g(te,oe,$,W,G,22,d[7]),W=g(W,te,oe,$,Y,7,d[8]),$=g($,W,te,oe,K,12,d[9]),oe=g(oe,$,W,te,Z,17,d[10]),te=g(te,oe,$,W,z,22,d[11]),W=g(W,te,oe,$,J,7,d[12]),$=g($,W,te,oe,H,12,d[13]),oe=g(oe,$,W,te,ae,17,d[14]),te=g(te,oe,$,W,Q,22,d[15]),W=h(W,te,oe,$,k,5,d[16]),$=h($,W,te,oe,B,9,d[17]),oe=h(oe,$,W,te,z,14,d[18]),te=h(te,oe,$,W,O,20,d[19]),W=h(W,te,oe,$,F,5,d[20]),$=h($,W,te,oe,Z,9,d[21]),oe=h(oe,$,W,te,Q,14,d[22]),te=h(te,oe,$,W,V,20,d[23]),W=h(W,te,oe,$,K,5,d[24]),$=h($,W,te,oe,ae,9,d[25]),oe=h(oe,$,W,te,R,14,d[26]),te=h(te,oe,$,W,Y,20,d[27]),W=h(W,te,oe,$,H,5,d[28]),$=h($,W,te,oe,M,9,d[29]),oe=h(oe,$,W,te,G,14,d[30]),te=h(te,oe,$,W,J,20,d[31]),W=m(W,te,oe,$,F,4,d[32]),$=m($,W,te,oe,Y,11,d[33]),oe=m(oe,$,W,te,z,16,d[34]),te=m(te,oe,$,W,ae,23,d[35]),W=m(W,te,oe,$,k,4,d[36]),$=m($,W,te,oe,V,11,d[37]),oe=m(oe,$,W,te,G,16,d[38]),te=m(te,oe,$,W,Z,23,d[39]),W=m(W,te,oe,$,H,4,d[40]),$=m($,W,te,oe,O,11,d[41]),oe=m(oe,$,W,te,R,16,d[42]),te=m(te,oe,$,W,B,23,d[43]),W=m(W,te,oe,$,K,4,d[44]),$=m($,W,te,oe,J,11,d[45]),oe=m(oe,$,W,te,Q,16,d[46]),te=m(te,oe,$,W,M,23,d[47]),W=y(W,te,oe,$,O,6,d[48]),$=y($,W,te,oe,G,10,d[49]),oe=y(oe,$,W,te,ae,15,d[50]),te=y(te,oe,$,W,F,21,d[51]),W=y(W,te,oe,$,J,6,d[52]),$=y($,W,te,oe,R,10,d[53]),oe=y(oe,$,W,te,Z,15,d[54]),te=y(te,oe,$,W,k,21,d[55]),W=y(W,te,oe,$,Y,6,d[56]),$=y($,W,te,oe,Q,10,d[57]),oe=y(oe,$,W,te,B,15,d[58]),te=y(te,oe,$,W,H,21,d[59]),W=y(W,te,oe,$,V,6,d[60]),$=y($,W,te,oe,z,10,d[61]),oe=y(oe,$,W,te,M,15,d[62]),te=y(te,oe,$,W,K,21,d[63]),A[0]=A[0]+W|0,A[1]=A[1]+te|0,A[2]=A[2]+oe|0,A[3]=A[3]+$|0},_doFinalize:function(){var x=this._data,C=x.words,E=this._nDataBytes*8,I=x.sigBytes*8;C[I>>>5]|=128<<24-I%32;var w=r.floor(E/4294967296),A=E;C[(I+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C[(I+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,x.sigBytes=(C.length+1)*4,this._process();for(var O=this._hash,k=O.words,M=0;M<4;M++){var R=k[M];k[M]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return O},clone:function(){var x=l.clone.call(this);return x._hash=this._hash.clone(),x}});function g(x,C,E,I,w,A,O){var k=x+(C&E|~C&I)+w+O;return(k<<A|k>>>32-A)+C}function h(x,C,E,I,w,A,O){var k=x+(C&I|E&~I)+w+O;return(k<<A|k>>>32-A)+C}function m(x,C,E,I,w,A,O){var k=x+(C^E^I)+w+O;return(k<<A|k>>>32-A)+C}function y(x,C,E,I,w,A,O){var k=x+(E^(C|~I))+w+O;return(k<<A|k>>>32-A)+C}o.MD5=l._createHelper(f),o.HmacMD5=l._createHmacHelper(f)}(Math),n.MD5})}(G3)),G3.exports}var K3={exports:{}},X3;function l0(){return X3||(X3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=o.Hasher,l=r.algo,u=[],d=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,g){for(var h=this._hash.words,m=h[0],y=h[1],x=h[2],C=h[3],E=h[4],I=0;I<80;I++){if(I<16)u[I]=f[g+I]|0;else{var w=u[I-3]^u[I-8]^u[I-14]^u[I-16];u[I]=w<<1|w>>>31}var A=(m<<5|m>>>27)+E+u[I];I<20?A+=(y&x|~y&C)+1518500249:I<40?A+=(y^x^C)+1859775393:I<60?A+=(y&x|y&C|x&C)-1894007588:A+=(y^x^C)-899497514,E=C,C=x,x=y<<30|y>>>2,y=m,m=A}h[0]=h[0]+m|0,h[1]=h[1]+y|0,h[2]=h[2]+x|0,h[3]=h[3]+C|0,h[4]=h[4]+E|0},_doFinalize:function(){var f=this._data,g=f.words,h=this._nDataBytes*8,m=f.sigBytes*8;return g[m>>>5]|=128<<24-m%32,g[(m+64>>>9<<4)+14]=Math.floor(h/4294967296),g[(m+64>>>9<<4)+15]=h,f.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});r.SHA1=s._createHelper(d),r.HmacSHA1=s._createHmacHelper(d)}(),n.SHA1})}(K3)),K3.exports}var Z3={exports:{}},Q3;function J3(){return Q3||(Q3=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,u=o.algo,d=[],f=[];(function(){function m(E){for(var I=r.sqrt(E),w=2;w<=I;w++)if(!(E%w))return!1;return!0}function y(E){return(E-(E|0))*4294967296|0}for(var x=2,C=0;C<64;)m(x)&&(C<8&&(d[C]=y(r.pow(x,1/2))),f[C]=y(r.pow(x,1/3)),C++),x++})();var g=[],h=u.SHA256=l.extend({_doReset:function(){this._hash=new s.init(d.slice(0))},_doProcessBlock:function(m,y){for(var x=this._hash.words,C=x[0],E=x[1],I=x[2],w=x[3],A=x[4],O=x[5],k=x[6],M=x[7],R=0;R<64;R++){if(R<16)g[R]=m[y+R]|0;else{var V=g[R-15],F=(V<<25|V>>>7)^(V<<14|V>>>18)^V>>>3,B=g[R-2],G=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;g[R]=F+g[R-7]+G+g[R-16]}var Y=A&O^~A&k,K=C&E^C&I^E&I,Z=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),z=(A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25),J=M+z+Y+f[R]+g[R],H=Z+K;M=k,k=O,O=A,A=w+J|0,w=I,I=E,E=C,C=J+H|0}x[0]=x[0]+C|0,x[1]=x[1]+E|0,x[2]=x[2]+I|0,x[3]=x[3]+w|0,x[4]=x[4]+A|0,x[5]=x[5]+O|0,x[6]=x[6]+k|0,x[7]=x[7]+M|0},_doFinalize:function(){var m=this._data,y=m.words,x=this._nDataBytes*8,C=m.sigBytes*8;return y[C>>>5]|=128<<24-C%32,y[(C+64>>>9<<4)+14]=r.floor(x/4294967296),y[(C+64>>>9<<4)+15]=x,m.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});o.SHA256=l._createHelper(h),o.HmacSHA256=l._createHmacHelper(h)}(Math),n.SHA256})}(Z3)),Z3.exports}var q3={exports:{}},$3;function uQ(){return $3||($3=1,function(e,t){(function(n,r,o){e.exports=r(rt(),J3())})(tt,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.algo,l=s.SHA256,u=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=4,d}});r.SHA224=l._createHelper(u),r.HmacSHA224=l._createHmacHelper(u)}(),n.SHA224})}(q3)),q3.exports}var eS={exports:{}},tS;function nS(){return tS||(tS=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Td())})(tt,function(n){return function(){var r=n,o=r.lib,i=o.Hasher,s=r.x64,l=s.Word,u=s.WordArray,d=r.algo;function f(){return l.create.apply(l,arguments)}var g=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],h=[];(function(){for(var y=0;y<80;y++)h[y]=f()})();var m=d.SHA512=i.extend({_doReset:function(){this._hash=new u.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,x){for(var C=this._hash.words,E=C[0],I=C[1],w=C[2],A=C[3],O=C[4],k=C[5],M=C[6],R=C[7],V=E.high,F=E.low,B=I.high,G=I.low,Y=w.high,K=w.low,Z=A.high,z=A.low,J=O.high,H=O.low,ae=k.high,Q=k.low,W=M.high,te=M.low,oe=R.high,$=R.low,fe=V,he=F,be=B,ue=G,xe=Y,Ce=K,Ae=Z,ve=z,Me=J,ye=H,Xe=ae,Wt=Q,xt=W,ct=te,pn=oe,vt=$,Qe=0;Qe<80;Qe++){var Bt=h[Qe];if(Qe<16)var ot=Bt.high=y[x+Qe*2]|0,st=Bt.low=y[x+Qe*2+1]|0;else{var Tt=h[Qe-15],je=Tt.high,ke=Tt.low,Oe=(je>>>1|ke<<31)^(je>>>8|ke<<24)^je>>>7,we=(ke>>>1|je<<31)^(ke>>>8|je<<24)^(ke>>>7|je<<25),yt=h[Qe-2],Ct=yt.high,Re=yt.low,Pe=(Ct>>>19|Re<<13)^(Ct<<3|Re>>>29)^Ct>>>6,en=(Re>>>19|Ct<<13)^(Re<<3|Ct>>>29)^(Re>>>6|Ct<<26),In=h[Qe-7],tr=In.high,So=In.low,Qi=h[Qe-16],Hl=Qi.high,ca=Qi.low,st=we+So,ot=Oe+tr+(st>>>0<we>>>0?1:0),st=st+en,ot=ot+Pe+(st>>>0<en>>>0?1:0),st=st+ca,ot=ot+Hl+(st>>>0<ca>>>0?1:0);Bt.high=ot,Bt.low=st}var ua=Me&Xe^~Me&xt,ii=ye&Wt^~ye&ct,da=fe&be^fe&xe^be&xe,fa=he&ue^he&Ce^ue&Ce,pa=(fe>>>28|he<<4)^(fe<<30|he>>>2)^(fe<<25|he>>>7),ha=(he>>>28|fe<<4)^(he<<30|fe>>>2)^(he<<25|fe>>>7),ga=(Me>>>14|ye<<18)^(Me>>>18|ye<<14)^(Me<<23|ye>>>9),Gl=(ye>>>14|Me<<18)^(ye>>>18|Me<<14)^(ye<<23|Me>>>9),si=g[Qe],Yl=si.high,Sr=si.low,nn=vt+Gl,Pt=pn+ga+(nn>>>0<vt>>>0?1:0),nn=nn+ii,Pt=Pt+ua+(nn>>>0<ii>>>0?1:0),nn=nn+Sr,Pt=Pt+Yl+(nn>>>0<Sr>>>0?1:0),nn=nn+st,Pt=Pt+ot+(nn>>>0<st>>>0?1:0),no=ha+fa,Kl=pa+da+(no>>>0<ha>>>0?1:0);pn=xt,vt=ct,xt=Xe,ct=Wt,Xe=Me,Wt=ye,ye=ve+nn|0,Me=Ae+Pt+(ye>>>0<ve>>>0?1:0)|0,Ae=xe,ve=Ce,xe=be,Ce=ue,be=fe,ue=he,he=nn+no|0,fe=Pt+Kl+(he>>>0<nn>>>0?1:0)|0}F=E.low=F+he,E.high=V+fe+(F>>>0<he>>>0?1:0),G=I.low=G+ue,I.high=B+be+(G>>>0<ue>>>0?1:0),K=w.low=K+Ce,w.high=Y+xe+(K>>>0<Ce>>>0?1:0),z=A.low=z+ve,A.high=Z+Ae+(z>>>0<ve>>>0?1:0),H=O.low=H+ye,O.high=J+Me+(H>>>0<ye>>>0?1:0),Q=k.low=Q+Wt,k.high=ae+Xe+(Q>>>0<Wt>>>0?1:0),te=M.low=te+ct,M.high=W+xt+(te>>>0<ct>>>0?1:0),$=R.low=$+vt,R.high=oe+pn+($>>>0<vt>>>0?1:0)},_doFinalize:function(){var y=this._data,x=y.words,C=this._nDataBytes*8,E=y.sigBytes*8;x[E>>>5]|=128<<24-E%32,x[(E+128>>>10<<5)+30]=Math.floor(C/4294967296),x[(E+128>>>10<<5)+31]=C,y.sigBytes=x.length*4,this._process();var I=this._hash.toX32();return I},clone:function(){var y=i.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});r.SHA512=i._createHelper(m),r.HmacSHA512=i._createHmacHelper(m)}(),n.SHA512})}(eS)),eS.exports}var rS={exports:{}},oS;function dQ(){return oS||(oS=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Td(),nS())})(tt,function(n){return function(){var r=n,o=r.x64,i=o.Word,s=o.WordArray,l=r.algo,u=l.SHA512,d=l.SHA384=u.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var f=u._doFinalize.call(this);return f.sigBytes-=16,f}});r.SHA384=u._createHelper(d),r.HmacSHA384=u._createHmacHelper(d)}(),n.SHA384})}(rS)),rS.exports}var iS={exports:{}},sS;function fQ(){return sS||(sS=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Td())})(tt,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,u=o.x64,d=u.Word,f=o.algo,g=[],h=[],m=[];(function(){for(var C=1,E=0,I=0;I<24;I++){g[C+5*E]=(I+1)*(I+2)/2%64;var w=E%5,A=(2*C+3*E)%5;C=w,E=A}for(var C=0;C<5;C++)for(var E=0;E<5;E++)h[C+5*E]=E+(2*C+3*E)%5*5;for(var O=1,k=0;k<24;k++){for(var M=0,R=0,V=0;V<7;V++){if(O&1){var F=(1<<V)-1;F<32?R^=1<<F:M^=1<<F-32}O&128?O=O<<1^113:O<<=1}m[k]=d.create(M,R)}})();var y=[];(function(){for(var C=0;C<25;C++)y[C]=d.create()})();var x=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],E=0;E<25;E++)C[E]=new d.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,E){for(var I=this._state,w=this.blockSize/2,A=0;A<w;A++){var O=C[E+2*A],k=C[E+2*A+1];O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var M=I[A];M.high^=k,M.low^=O}for(var R=0;R<24;R++){for(var V=0;V<5;V++){for(var F=0,B=0,G=0;G<5;G++){var M=I[V+5*G];F^=M.high,B^=M.low}var Y=y[V];Y.high=F,Y.low=B}for(var V=0;V<5;V++)for(var K=y[(V+4)%5],Z=y[(V+1)%5],z=Z.high,J=Z.low,F=K.high^(z<<1|J>>>31),B=K.low^(J<<1|z>>>31),G=0;G<5;G++){var M=I[V+5*G];M.high^=F,M.low^=B}for(var H=1;H<25;H++){var M=I[H],ae=M.high,Q=M.low,W=g[H];if(W<32)var F=ae<<W|Q>>>32-W,B=Q<<W|ae>>>32-W;else var F=Q<<W-32|ae>>>64-W,B=ae<<W-32|Q>>>64-W;var te=y[h[H]];te.high=F,te.low=B}var oe=y[0],$=I[0];oe.high=$.high,oe.low=$.low;for(var V=0;V<5;V++)for(var G=0;G<5;G++){var H=V+5*G,M=I[H],fe=y[H],he=y[(V+1)%5+5*G],be=y[(V+2)%5+5*G];M.high=fe.high^~he.high&be.high,M.low=fe.low^~he.low&be.low}var M=I[0],ue=m[R];M.high^=ue.high,M.low^=ue.low}},_doFinalize:function(){var C=this._data,E=C.words;this._nDataBytes*8;var I=C.sigBytes*8,w=this.blockSize*32;E[I>>>5]|=1<<24-I%32,E[(r.ceil((I+1)/w)*w>>>5)-1]|=128,C.sigBytes=E.length*4,this._process();for(var A=this._state,O=this.cfg.outputLength/8,k=O/8,M=[],R=0;R<k;R++){var V=A[R],F=V.high,B=V.low;F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,M.push(B),M.push(F)}return new s.init(M,O)},clone:function(){for(var C=l.clone.call(this),E=C._state=this._state.slice(0),I=0;I<25;I++)E[I]=E[I].clone();return C}});o.SHA3=l._createHelper(x),o.HmacSHA3=l._createHmacHelper(x)}(Math),n.SHA3})}(iS)),iS.exports}var aS={exports:{}},lS;function pQ(){return lS||(lS=1,function(e,t){(function(n,r){e.exports=r(rt())})(tt,function(n){/** @preserve
|
|
225
225
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
226
226
|
|
|
227
227
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
Binary file
|