@entropic-bond/crud-panel 4.2.0 → 4.3.0

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.
@@ -1,46 +1,75 @@
1
- (function(ee,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(ee=typeof globalThis<"u"?globalThis:ee||self,J(ee["entropic-bond-crud-panel"]={}))})(this,function(ee){"use strict";class J{constructor(){this.subscribers=new Set}subscribe(t){return this.subscribers.add(t),()=>this.unsubscribe(t)}unsubscribe(t){this.subscribers.delete(t)}notify(t){this.subscribers.forEach(s=>s(t))}get subscribersCount(){return this.subscribers.size}}let we;const Bt=new Uint8Array(16);function zt(){if(!we&&(we=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!we))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return we(Bt)}const I=[];for(let n=0;n<256;++n)I.push((n+256).toString(16).slice(1));function qt(n,t=0){return I[n[t+0]]+I[n[t+1]]+I[n[t+2]]+I[n[t+3]]+"-"+I[n[t+4]]+I[n[t+5]]+"-"+I[n[t+6]]+I[n[t+7]]+"-"+I[n[t+8]]+I[n[t+9]]+"-"+I[n[t+10]]+I[n[t+11]]+I[n[t+12]]+I[n[t+13]]+I[n[t+14]]+I[n[t+15]]}const Kt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),nt={randomUUID:Kt};function Gt(n,t,s){if(nt.randomUUID&&!t&&!n)return nt.randomUUID();n=n||{};const c=n.random||(n.rng||zt)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,t){s=s||0;for(let l=0;l<16;++l)t[s+l]=c[l];return t}return qt(c)}var Jt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,Xt=(n,t,s,c)=>{for(var l=c>1?void 0:c?Qt(t,s):t,y=n.length-1,D;y>=0;y--)(D=n[y])&&(l=(c?D(t,s,l):D(l))||l);return c&&l&&Jt(t,s,l),l},V;const ot=(V=class{static registerFactory(n,t,s){this._factoryMap[n]={factory:t,annotation:s}}static classFactory(n){if(!n)throw new Error("You should provide a class name.");if(!this._factoryMap[n])throw new Error(`You should register class ${n} prior to use.`);return this._factoryMap[n].factory}static registeredClasses(){return Object.keys(this._factoryMap)}static classesExtending(n){return Object.entries(this._factoryMap).filter(([,t])=>new t.factory instanceof n).map(([t])=>t)}static annotations(n){if(n instanceof V?n=n.className:typeof n=="string"||(n=new n().className),!this._factoryMap[n])throw new Error(`You should register class ${n} prior to use.`);return this._factoryMap[n].annotation}constructor(n=Gt()){this._id=n}get className(){return this.__className}setId(n){this._id=n}get id(){return this._id}afterDeserialize(){}beforeSerialize(){}getPersistentProperties(){return this._persistentProperties?this._persistentProperties.map(n=>({...n,name:n.name.slice(1)})):[]}getPropInfo(n){const t=this.getPersistentProperties().find(s=>s.name===n);if(!t)throw new Error(`Property "${n}" has not been registered.`);return t}isRequired(n){return this.getPropInfo(n).validator!=null}isPropValueValid(n){const t=this.getPropInfo(n);return t.validator?t.validator(this[t.name],t,this):!0}clone(n){const t=n.toObject();return delete t.id,this.fromObject(t)}fromObject(n){return this.fromObj(n),this.afterDeserialize(),this}fromObj(n){return this._persistentProperties?(this._persistentProperties.forEach(t=>{const s=this.removeUnderscore(t),c=n[s];c!=null&&(this[t.name]=this.fromDeepObject(c))}),this):this}toObject(){const n={},t=this.toObj(n);return this.pushDocument(n,this.className,t),{...t,__rootCollections:n}}toObj(n){if(!this._persistentProperties)return{};this.beforeSerialize();const t={};if(!this.className)throw new Error("You should register this class prior to streaming it.");return this._persistentProperties.forEach(s=>{const c=this[s.name],l=this.removeUnderscore(s);c!=null&&(s.isReference?t[l]=this.toReferenceObj(s,n):t[l]=this.toDeepObj(c,n),s.searchableArray&&(t[V.searchableArrayNameFor(l)]=c.map(y=>y.id)))}),t.__className=this.className,t}static searchableArrayNameFor(n){return`__${n}_searchable`}fromDeepObject(n){if(n==null)return n;if(Array.isArray(n))return n.map(t=>this.fromDeepObject(t));if(n.__documentReference){const t=n,s=V.createInstance(t);return s.__documentReference=n.__documentReference,s}if(n.__className)return V.createInstance(n);if(typeof n=="object"){const t={};return Object.entries(n).forEach(([s,c])=>t[s]=this.fromDeepObject(c)),t}return n}toDeepObj(n,t){if(n!=null){if(Array.isArray(n))return n.map(s=>this.toDeepObj(s,t));if(n.__documentReference)return n;if(n instanceof V)return n.toObj(t);if(typeof n=="object"){const s={};return Object.entries(n).forEach(([c,l])=>s[c]=this.toDeepObj(l,t)),s}return n}}toReferenceObj(n,t){const s=this[n.name],c=l=>{let y;return typeof n.storeInCollection=="function"?y=n.storeInCollection(l,n):y=n.storeInCollection||l.className,y};return Array.isArray(s)?s.map(l=>(n.isPureReference||this.pushDocument(t,c(l),l),this.buildRefObject(l,c(l),n.forcedPersistentProps))):(n.isPureReference||this.pushDocument(t,c(s),s),this.buildRefObject(s,c(s),n.forcedPersistentProps))}buildRefObject(n,t,s){const c=s==null?void 0:s.reduce((l,y)=>(n[y]!==void 0&&(l[y]=n[y]),l),{});return{id:n.id,__className:n.className||n.__className,__documentReference:{storedInCollection:t},...c}}pushDocument(n,t,s){if("__documentReference"in s&&s.__documentReference)return;n[t]||(n[t]=[]);const c=this.toDeepObj(s,n);n[t].push(c)}removeUnderscore(n){return n.name.slice(1)}static createReference(n){const t=V.createInstance(n);return t.__documentReference=n.__documentReference||{storedInCollection:t.className},t}static createInstance(n){if(typeof n=="string")return new(V.classFactory(n));try{return new(V.classFactory(n.__className))().fromObject(n)}catch(t){const s=Object.entries(n).filter(([c,l])=>l!=null&&typeof l!="function").map(([c,l])=>`${c}: ${l}`).join(`,
1
+ (function(Re,de){typeof exports=="object"&&typeof module<"u"?de(exports):typeof define=="function"&&define.amd?define(["exports"],de):(Re=typeof globalThis<"u"?globalThis:Re||self,de(Re["entropic-bond-crud-panel"]={}))})(this,function(Re){"use strict";class de{constructor(){this.subscribers=new Set}subscribe(t){return this.subscribers.add(t),()=>this.unsubscribe(t)}unsubscribe(t){this.subscribers.delete(t)}notify(t){this.subscribers.forEach(i=>i(t))}get subscribersCount(){return this.subscribers.size}}const H=[];for(let r=0;r<256;++r)H.push((r+256).toString(16).slice(1));function Nt(r,t=0){return(H[r[t+0]]+H[r[t+1]]+H[r[t+2]]+H[r[t+3]]+"-"+H[r[t+4]]+H[r[t+5]]+"-"+H[r[t+6]]+H[r[t+7]]+"-"+H[r[t+8]]+H[r[t+9]]+"-"+H[r[t+10]]+H[r[t+11]]+H[r[t+12]]+H[r[t+13]]+H[r[t+14]]+H[r[t+15]]).toLowerCase()}let et;const kt=new Uint8Array(16);function Dt(){if(!et){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");et=crypto.getRandomValues.bind(crypto)}return et(kt)}const Mt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ut={randomUUID:Mt};function $t(r,t,i){var f;if(ut.randomUUID&&!r)return ut.randomUUID();r=r||{};const c=r.random??((f=r.rng)==null?void 0:f.call(r))??Dt();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,Nt(c)}var xt=Object.defineProperty,Yt=(r,t,i,f)=>{for(var c=void 0,g=r.length-1,S;g>=0;g--)(S=r[g])&&(c=S(t,i,c)||c);return c&&xt(t,i,c),c},Y;const at=(Y=class{static registerFactory(r,t,i){this._factoryMap[r]={factory:t,annotation:i}}static classFactory(r){if(!r)throw new Error("You should provide a class name.");if(!this._factoryMap[r])throw new Error(`You should register class ${r} prior to use.`);return this._factoryMap[r].factory}static registeredClasses(){return Object.keys(this._factoryMap)}static classesExtending(r){return Object.entries(this._factoryMap).filter(([,t])=>new t.factory instanceof r).map(([t])=>t)}static annotations(r){if(r instanceof Y?r=r.className:typeof r=="string"||(r=new r().className),!this._factoryMap[r])throw new Error(`You should register class ${r} prior to use.`);return this._factoryMap[r].annotation}constructor(r=$t()){this._id=r}get className(){return this.__className}setId(r){this._id=r}get id(){return this._id}afterDeserialize(){}beforeSerialize(){}getPersistentProperties(){return this._persistentProperties?this._persistentProperties.map(r=>({...r,name:r.name.slice(1)})):[]}getPropInfo(r){const t=this.getPersistentProperties().find(i=>i.name===r);if(!t)throw new Error(`Property "${r}" has not been registered.`);return t}isRequired(r){return this.getPropInfo(r).validator!=null}isPropValueValid(r){const t=this.getPropInfo(r);return t.validator?t.validator(this[t.name],t,this):!0}clone(r){const t=r.toObject();return delete t.id,this.fromObject(t)}fromObject(r){return this.fromObj(r),this.afterDeserialize(),this}fromObj(r){return this._persistentProperties?(this._persistentProperties.forEach(t=>{const i=this.removeUnderscore(t),f=r[i];f!=null&&(this[t.name]=this.fromDeepObject(f))}),this):this}toObject(){const r={},t=this.toObj(r);return this.pushDocument(r,this.className,t),{...t,__rootCollections:r}}toObj(r){if(!this._persistentProperties)return{};this.beforeSerialize();const t={};if(!this.className)throw new Error("You should register this class prior to streaming it.");return this._persistentProperties.forEach(i=>{const f=this[i.name],c=this.removeUnderscore(i);f!=null&&(i.isReference?t[c]=this.toReferenceObj(i,r):t[c]=this.toDeepObj(f,r),i.searchableArray&&(t[Y.searchableArrayNameFor(c)]=f.map(g=>g.id)))}),t.__className=this.className,t}static searchableArrayNameFor(r){return`__${r}_searchable`}fromDeepObject(r){if(r==null)return r;if(Array.isArray(r))return r.map(t=>this.fromDeepObject(t));if(r.__documentReference){const t=r,i=Y.createInstance(t);return i.__documentReference=r.__documentReference,i}if(r.__className)return Y.createInstance(r);if(typeof r=="object"){const t={};return Object.entries(r).forEach(([i,f])=>t[i]=this.fromDeepObject(f)),t}return r}toDeepObj(r,t){if(r!=null){if(Array.isArray(r))return r.map(i=>this.toDeepObj(i,t));if(r.__documentReference)return r;if(r instanceof Y)return r.toObj(t);if(typeof r=="object"){const i={};return Object.entries(r).forEach(([f,c])=>i[f]=this.toDeepObj(c,t)),i}return r}}static collectionPath(r,t){let i;return typeof t.storeInCollection=="function"?i=t.storeInCollection(r,t):i=t.storeInCollection??r.className,i}toReferenceObj(r,t){var i;const f=this[r.name];return Array.isArray(f)?f.map(c=>{var g;return r.isPureReference||this.pushDocument(t,Y.collectionPath(c,r),c),this.buildRefObject(c,Y.collectionPath(c,r),(g=r.cachedPropsConfig)==null?void 0:g.cachedProps)}):(r.isPureReference||this.pushDocument(t,Y.collectionPath(f,r),f),this.buildRefObject(f,Y.collectionPath(f,r),(i=r.cachedPropsConfig)==null?void 0:i.cachedProps))}buildRefObject(r,t,i){const f=i==null?void 0:i.reduce((c,g)=>(r[g]!==void 0&&(c[g]=r[g]),c),{});return{id:r.id,__className:r.className||r.__className,__documentReference:{storedInCollection:t},...f}}pushDocument(r,t,i){if("__documentReference"in i&&i.__documentReference)return;r[t]||(r[t]=[]);const f=this.toDeepObj(i,r);r[t].push(f)}removeUnderscore(r){return r.name.slice(1)}static createReference(r){const t=Y.createInstance(r);return t.__documentReference=r.__documentReference||{storedInCollection:t.className},t}static createInstance(r){if(typeof r=="string")return new(Y.classFactory(r));try{return new(Y.classFactory(r.__className))().fromObject(r)}catch(t){const i=Object.entries(r).filter(([f,c])=>c!=null&&typeof c!="function").map(([f,c])=>`${f}: ${c}`).join(`,
2
2
  `);throw new Error(`${t}
3
3
  -----> Class name not found in object:
4
4
  {
5
- ${s}
5
+ ${i}
6
6
  }
7
- `)}}static propInfo(n,t){return V.createInstance(n).getPropInfo(t)}},V._factoryMap={},V);Xt([se],ot.prototype,"_id",2);let it=ot;function se(n,t){return Zt()(n,t)}function Zt(n){return function(t,s){Object.getOwnPropertyDescriptor(t,"_persistentProperties")||(t._persistentProperties?t._persistentProperties=[...t._persistentProperties]:t._persistentProperties=[]);const c=t._persistentProperties.find(l=>l.name===s);c?Object.assign(c,n):t._persistentProperties.push({name:s,...n})}}function er(n,t){return s=>{it.registerFactory(n,s,t),s.prototype.__className=n}}const st=class me{static registerCloudStorage(t,s){me._cloudStorageFactoryMap[t]=s}static createInstance(t){const s=me._cloudStorageFactoryMap[t];if(!s)throw new Error(`You should register the ${t} cloud storage provider prior to use it`);return s()}get className(){return this.__className}static useCloudStorage(t){me._defaultCloudStorage=t}static get defaultCloudStorage(){if(!me._defaultCloudStorage)throw new Error("You should define a default cloud storage provider prior to use it");return me._defaultCloudStorage}};st._cloudStorageFactoryMap={};let ye=st;function tr(n,t){return ye.registerCloudStorage(n,t),s=>{s.prototype.__className=n}}var rr=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,or=(n,t,s,c)=>{for(var l=c>1?void 0:c?nr(t,s):t,y=n.length-1,D;y>=0;y--)(D=n[y])&&(l=(c?D(t,s,l):D(l))||l);return c&&l&&rr(t,s,l),l};let Ue=class extends ye{constructor(n=""){super(),this._simulateDelay=0,this._pendingPromises=[],this.mockFileSystem={},this._pathToMockFiles=n}simulateDelay(n){return this._simulateDelay=n,this}resolveWithDelay(n){if(this._simulateDelay<=0)return Promise.resolve(n);const t=new Promise(s=>{setTimeout(()=>s(n),this._simulateDelay)});return this._pendingPromises.push(t),t.finally(()=>this._pendingPromises=this._pendingPromises.filter(s=>s===t)),t}save(n,t){const s=n;this._onProgress&&this._onProgress(0,100),this.mockFileSystem[n]=JSON.stringify(t),this._onProgress&&this._onProgress(100,100);const c=t instanceof File?t.name:s;return this.resolveWithDelay(c)}uploadControl(){return{resume:()=>{},pause:()=>{},cancel:()=>{},onProgress:n=>this._onProgress=n}}getUrl(n){return Promise.resolve(this._pathToMockFiles+n)}delete(n){return delete this.mockFileSystem[n],this.resolveWithDelay()}};Ue=or([tr("MockCloudStorage",()=>new Ue)],Ue);var ir=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,ae=(n,t,s,c)=>{for(var l=c>1?void 0:c?sr(t,s):t,y=n.length-1,D;y>=0;y--)(D=n[y])&&(l=(c?D(t,s,l):D(l))||l);return c&&l&&ir(t,s,l),l};let te=class extends it{constructor(){super(...arguments),this._onChange=new J}async save({data:n,fileName:t,progress:s,cloudStorageProvider:c}={}){const l=n||this._pendingData;l&&(this._reference&&await this.delete(),this.provider=c||ye.defaultCloudStorage,this._originalFileName=t||(l instanceof File?l.name:void 0),this._reference=await this.provider.save(this.id,l,s),this._url=await this.provider.getUrl(this._reference),this._pendingData=void 0,this._onChange.notify({event:0,storedFile:this}))}uploadControl(){return this.provider.uploadControl()}async delete(){if(!this._reference)throw new Error("Cannot delete a not stored file");await this.provider.delete(this._reference),this._reference=void 0,this._url=void 0,this._onChange.notify({event:2,storedFile:this})}set provider(n){this._provider=n,this._cloudStorageProviderName=n.className}get provider(){if(!this._provider)try{this._provider=ye.createInstance(this._cloudStorageProviderName)}catch{this._provider=ye.defaultCloudStorage}return this._provider}get url(){return this._url}get mimeType(){return this._mimeType}setDataToStore(n){return this._pendingData=n,this._originalFileName=n instanceof File?n.name:void 0,this._mimeType=n instanceof Blob?n.type:void 0,this._onChange.notify({event:1,pendingData:n,storedFile:this}),this}get originalFileName(){return this._originalFileName}onChange(n){return this._onChange.subscribe(n)}};ae([se],te.prototype,"_reference",2),ae([se],te.prototype,"_url",2),ae([se],te.prototype,"_cloudStorageProviderName",2),ae([se],te.prototype,"_originalFileName",2),ae([se],te.prototype,"_mimeType",2),te=ae([er("StoredFile")],te);function ar(n,t="-"){if(!n)return"";const s=n.slice(1).replace(/( |[A-Z])/g,c=>c===" "?"-":t+c[0].toLowerCase());return n[0].toLocaleLowerCase()+s.replace(/--/g,"-")}class ur{constructor(){this._debug=!1,this._stages={},this._onProgress=new J}notifyBusy(t,s){this.pushStage({name:s??"",progress:t?0:1,total:1})}pushStage(t){this._stages[t.name]=t;const s=Object.values(this._stages).reduce((c,l,y,D)=>c+l.progress/l.total/D.length,0);this._onProgress.notify({busy:s<1,overallProgress:s,stages:this._stages}),s>=1&&(this._stages={}),this.debug&&console.log(`ProgressController ${t.name}: Progress: ${t.progress} Stages: ${t.total}`)}onProgress(t){return this._onProgress.subscribe(t)}set debug(t){this._debug=t}get debug(){return this._debug}}const re=class re{constructor(t){this.progressController=new ur,this.onChangeHdl=new J,this.onErrorHdl=new J,this.validator={},this.setDocument(t||this.createDocument())}allRequiredPropertiesFilled(){return this.nonFilledRequiredProperties.length<=0}get nonFilledRequiredProperties(){return this.requiredProperties.filter(t=>this.validateProp(t))}get requiredProperties(){if(!this.document)throw new Error(re.errorMessages.missedDocument);const t=this.document.getPersistentProperties().filter(c=>this.document.isRequired(c.name)).map(c=>c.name);return[...new Set(t.concat(Object.keys(this.validator)))]}addValidator(t,s,c){this.validator[t]={func:s,errorMessage:c}}removeValidator(t){delete this.validator[t]}failedValidationError(t){var s;return(s=this.validator[t])==null?void 0:s.errorMessage}validateProp(t){if(!this.document)throw new Error(re.errorMessages.missedDocument);const s=this.document[t];return this.validator[t]?!this.validator[t].func(s):!this.document.isPropValueValid(t)}storeDoc(){if(!this.document)throw new Error(re.errorMessages.missedDocument);return this.model.save(this.document)}deleteDoc(){if(!this.document)throw new Error(re.errorMessages.missedDocument);return this.model.delete(this.document.id)}queryDocs(t){let s=this.model.find();return t&&(s=s.limit(t)),s}findDocs(t){}async setFilter(t){return this._filter=t,this.onChangeHdl.notify({action:"filterChange"}),this}resetFilter(){return this._filter=void 0,this.onChangeHdl.notify({action:"filterChange"}),this}onChange(t){return this.onChangeHdl.subscribe(t)}onError(t){return this.onErrorHdl.subscribe(t)}notifyChange(t){this.onChangeHdl.notify(t)}newDocument(){return this.setDocument(this.createDocument())}async storeDocument(){const t="Saving main document";try{this.progressController.notifyBusy(!0,t),await this.storeDoc(),this.onChangeHdl.notify({documentCollection:await this.documentCollection(),action:"saved"})}catch(s){if(this.onChangeHdl.notify({error:this.errorToError(s)}),this.onErrorHdl.notify(this.errorToError(s)),this.throwOnError)throw s}finally{this.progressController.notifyBusy(!1,t)}}async deleteDocument(){const t="Delete main document";try{this.progressController.notifyBusy(!0,t),await this.deleteDoc(),this.onChangeHdl.notify({documentCollection:await this.documentCollection(),action:"deleted"})}catch(s){if(this.onChangeHdl.notify({error:this.errorToError(s)}),this.onErrorHdl.notify(this.errorToError(s)),this.throwOnError)throw s}finally{this.progressController.notifyBusy(!1,t)}}async documentCollection(t){const s="Retrieving document collection";let c=[];try{this.progressController.notifyBusy(!0,s);const l=this.findDocs(t);l?c=await l:c=await this.queryDocs(t).get()}catch(l){if(this.onChangeHdl.notify({error:this.errorToError(l)}),this.onErrorHdl.notify(this.errorToError(l)),this.throwOnError)throw l}finally{this.progressController.notifyBusy(!1,s)}return c}filter(t){return t.filter(s=>{var c;return((c=this._filter)==null?void 0:c.call(this,s))??!0})}onProgress(t){return this.progressController.onProgress(t)}get model(){return this._model||(this._model=this.getModel())}setDocument(t){return this._document!==t&&(this.unsubscribeDocument&&this.unsubscribeDocument(),t&&(this.unsubscribeDocument=t.onChange(s=>this.onChangeHdl.notify({documentProps:s}))),this._document=t,this.onChangeHdl.notify({documentChanged:this._document})),this}set document(t){this.setDocument(t)}get document(){return this._document}managedThrow(t){if(this.onChangeHdl.notify({error:this.errorToError(t)}),this.onErrorHdl.notify(this.errorToError(t)),this.throwOnError)throw this.errorToError(t)}errorToError(t){return t instanceof Error?t:typeof t=="string"?new Error(t):"code"in t?new Error(t.code):"message"in t?new Error(t.error):new Error(JSON.stringify(t))}get throwOnError(){return this.onErrorHdl.subscribersCount===0}};re.errorMessages={missedDocument:"No document to save"};let xe=re;function cr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var We={exports:{}},g={};/**
7
+ `)}}static propInfo(r,t){return Y.createInstance(r).getPropInfo(t)}static getSystemRegisteredReferencesWithCachedProps(){return Y.registeredClasses().reduce((r,t)=>{const i=Y.createInstance(t).getPersistentProperties().filter(f=>{var c;return(c=f.cachedPropsConfig)==null?void 0:c.cachedProps});return i.length>0&&(r[t]=i),r},{})}},Y._factoryMap={},Y);Yt([$e],at.prototype,"_id");let ct=at;function $e(r,t){return Ht()(r,t)}function Ht(r){return function(t,i){Object.getOwnPropertyDescriptor(t,"_persistentProperties")||(t._persistentProperties?t._persistentProperties=[...t._persistentProperties]:t._persistentProperties=[]);const f=t._persistentProperties.find(c=>c.name===i);f?Object.assign(f,r):t._persistentProperties.push({name:i,...r})}}function Ut(r,t){return i=>{ct.registerFactory(r,i,t),i.prototype.__className=r}}const lt=class Ue{static registerCloudStorage(t,i){Ue._cloudStorageFactoryMap[t]=i}static createInstance(t){const i=Ue._cloudStorageFactoryMap[t];if(!i)throw new Error(`You should register the ${t} cloud storage provider prior to use it`);return i()}get className(){return this.__className}static useCloudStorage(t){Ue._defaultCloudStorage=t}static get defaultCloudStorage(){if(!Ue._defaultCloudStorage)throw new Error("You should define a default cloud storage provider prior to use it");return Ue._defaultCloudStorage}};lt._cloudStorageFactoryMap={};let Ie=lt;function It(r,t){return Ie.registerCloudStorage(r,t),i=>{i.prototype.__className=r}}var qt=(r,t,i,f)=>{for(var c=t,g=r.length-1,S;g>=0;g--)(S=r[g])&&(c=S(c)||c);return c};let tt=class extends Ie{constructor(r=""){super(),this._simulateDelay=0,this._pendingPromises=[],this.mockFileSystem={},this._pathToMockFiles=r}simulateDelay(r){return this._simulateDelay=r,this}resolveWithDelay(r){if(this._simulateDelay<=0)return Promise.resolve(r);const t=new Promise(i=>{setTimeout(()=>i(r),this._simulateDelay)});return this._pendingPromises.push(t),t.finally(()=>this._pendingPromises=this._pendingPromises.filter(i=>i===t)),t}save(r,t){const i=r;this._onProgress&&this._onProgress(0,100),this.mockFileSystem[r]=JSON.stringify(t),this._onProgress&&this._onProgress(100,100);const f=t instanceof File?t.name:i;return this.resolveWithDelay(f)}uploadControl(){return{resume:()=>{},pause:()=>{},cancel:()=>{},onProgress:r=>this._onProgress=r}}getUrl(r){return Promise.resolve(this._pathToMockFiles+r)}delete(r){return delete this.mockFileSystem[r],this.resolveWithDelay()}};tt=qt([It("MockCloudStorage",()=>new tt)],tt);var Lt=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,xe=(r,t,i,f)=>{for(var c=f>1?void 0:f?Wt(t,i):t,g=r.length-1,S;g>=0;g--)(S=r[g])&&(c=(f?S(t,i,c):S(c))||c);return f&&c&&Lt(t,i,c),c};let Oe=class extends ct{constructor(){super(...arguments),this._onChange=new de}async save({data:r,fileName:t,progress:i,cloudStorageProvider:f}={}){const c=r||this._pendingData;c&&(this._reference&&await this.delete(),this.provider=f||Ie.defaultCloudStorage,this._originalFileName=t||(c instanceof File?c.name:void 0),this._reference=await this.provider.save(this.id,c,i),this._url=await this.provider.getUrl(this._reference),this._pendingData=void 0,this._onChange.notify({event:0,storedFile:this}))}uploadControl(){return this.provider.uploadControl()}async delete(){if(!this._reference)throw new Error("Cannot delete a not stored file");await this.provider.delete(this._reference),this._reference=void 0,this._url=void 0,this._onChange.notify({event:2,storedFile:this})}set provider(r){this._provider=r,this._cloudStorageProviderName=r.className}get provider(){if(!this._provider)try{this._provider=Ie.createInstance(this._cloudStorageProviderName)}catch{this._provider=Ie.defaultCloudStorage}return this._provider}get url(){return this._url}get mimeType(){return this._mimeType}setDataToStore(r){return this._pendingData=r,this._originalFileName=r instanceof File?r.name:void 0,this._mimeType=r instanceof Blob?r.type:void 0,this._onChange.notify({event:1,pendingData:r,storedFile:this}),this}get originalFileName(){return this._originalFileName}onChange(r){return this._onChange.subscribe(r)}};xe([$e],Oe.prototype,"_reference",2),xe([$e],Oe.prototype,"_url",2),xe([$e],Oe.prototype,"_cloudStorageProviderName",2),xe([$e],Oe.prototype,"_originalFileName",2),xe([$e],Oe.prototype,"_mimeType",2),Oe=xe([Ut("StoredFile")],Oe);function zt(r,t="-"){if(!r)return"";const i=r.slice(1).replace(/( |[A-Z])/g,f=>f===" "?"-":t+f[0].toLowerCase());return r[0].toLocaleLowerCase()+i.replace(/--/g,"-")}class Vt{constructor(){this._debug=!1,this._stages={},this._onProgress=new de}notifyBusy(t,i){this.pushStage({name:i??"",progress:t?0:1,total:1})}pushStage(t){this._stages[t.name]=t;const i=Object.values(this._stages).reduce((f,c,g,S)=>f+c.progress/c.total/S.length,0);this._onProgress.notify({busy:i<1,overallProgress:i,stages:this._stages}),i>=1&&(this._stages={}),this.debug&&console.log(`ProgressController ${t.name}: Progress: ${t.progress} Stages: ${t.total}`)}onProgress(t){return this._onProgress.subscribe(t)}set debug(t){this._debug=t}get debug(){return this._debug}}const he=class he{constructor(t){this.progressController=new Vt,this.onChangeHdl=new de,this.onErrorHdl=new de,this.validator={},this.setDocument(t||this.createDocument())}allRequiredPropertiesFilled(){return this.nonFilledRequiredProperties.length<=0&&this.validateGlobal()}get nonFilledRequiredProperties(){return this.requiredProperties.filter(t=>this.validateProp(t))}get requiredProperties(){if(!this.document)throw new Error(he.errorMessages.missedDocument);const t=this.document.getPersistentProperties().filter(f=>this.document.isRequired(f.name)).map(f=>f.name);return[...new Set(t.concat(Object.keys(this.validator)))]}addValidator(t,i,f){this.validator[t]={func:i,errorMessage:f}}removeValidator(t){delete this.validator[t]}addGlobalValidator(t,i){this.globalValidator={func:t,errorMessage:i}}removeGlobalValidator(){this.globalValidator=void 0}failedValidationError(t){var f,c,g;if(t)return(f=this.validator[t])==null?void 0:f.errorMessage;const i=this.nonFilledRequiredProperties[0];return i?(c=this.validator[i])==null?void 0:c.errorMessage:(g=this.globalValidator)==null?void 0:g.errorMessage}validateProp(t){if(!this.document)throw new Error(he.errorMessages.missedDocument);const i=this.document[t];return this.validator[t]?!this.validator[t].func(i):!this.document.isPropValueValid(t)}validateGlobal(){if(!this.document)throw new Error(he.errorMessages.missedDocument);return this.globalValidator?this.globalValidator.func(this.document):!0}storeDoc(){if(!this.document)throw new Error(he.errorMessages.missedDocument);return this.model.save(this.document)}deleteDoc(){if(!this.document)throw new Error(he.errorMessages.missedDocument);return this.model.delete(this.document.id)}queryDocs(t){let i=this.model.find();return t&&(i=i.limit(t)),i}findDocs(t){}async setFilter(t){return this._filter=t,this.onChangeHdl.notify({action:"filterChange"}),this}resetFilter(){return this._filter=void 0,this.onChangeHdl.notify({action:"filterChange"}),this}onChange(t){return this.onChangeHdl.subscribe(t)}onError(t){return this.onErrorHdl.subscribe(t)}notifyChange(t){this.onChangeHdl.notify(t)}newDocument(){return this.setDocument(this.createDocument())}async storeDocument(){const t="Saving main document";try{this.progressController.notifyBusy(!0,t),await this.storeDoc(),this.onChangeHdl.notify({documentCollection:await this.documentCollection(),action:"saved"})}catch(i){if(this.onChangeHdl.notify({error:this.errorToError(i)}),this.onErrorHdl.notify(this.errorToError(i)),this.throwOnError)throw i}finally{this.progressController.notifyBusy(!1,t)}}async deleteDocument(){const t="Delete main document";try{this.progressController.notifyBusy(!0,t),await this.deleteDoc(),this.onChangeHdl.notify({documentCollection:await this.documentCollection(),action:"deleted"})}catch(i){if(this.onChangeHdl.notify({error:this.errorToError(i)}),this.onErrorHdl.notify(this.errorToError(i)),this.throwOnError)throw i}finally{this.progressController.notifyBusy(!1,t)}}async documentCollection(t){const i="Retrieving document collection";let f=[];try{this.progressController.notifyBusy(!0,i);const c=this.findDocs(t);c?f=await c:f=await this.queryDocs(t).get()}catch(c){if(this.onChangeHdl.notify({error:this.errorToError(c)}),this.onErrorHdl.notify(this.errorToError(c)),this.throwOnError)throw c}finally{this.progressController.notifyBusy(!1,i)}return f}filter(t){return t.filter(i=>{var f;return((f=this._filter)==null?void 0:f.call(this,i))??!0})}onProgress(t){return this.progressController.onProgress(t)}get model(){return this._model||(this._model=this.getModel())}setDocument(t){return this._document!==t&&(this.unsubscribeDocument&&this.unsubscribeDocument(),t&&(this.unsubscribeDocument=t.onChange(i=>this.onChangeHdl.notify({documentProps:i}))),this._document=t,this.onChangeHdl.notify({documentChanged:this._document})),this}set document(t){this.setDocument(t)}get document(){return this._document}managedThrow(t){if(this.onChangeHdl.notify({error:this.errorToError(t)}),this.onErrorHdl.notify(this.errorToError(t)),this.throwOnError)throw this.errorToError(t)}errorToError(t){return t instanceof Error?t:typeof t=="string"?new Error(t):"code"in t?new Error(t.code):"message"in t?new Error(t.error):new Error(JSON.stringify(t))}get throwOnError(){return this.onErrorHdl.subscribersCount===0}};he.errorMessages={missedDocument:"No document to save"};let rt=he;var Fe={exports:{}},qe={};/**
8
8
  * @license React
9
- * react.production.min.js
9
+ * react-jsx-runtime.production.js
10
10
  *
11
- * Copyright (c) Facebook, Inc. and its affiliates.
11
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var at;function lr(){if(at)return g;at=1;var n=Symbol.for("react.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),D=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),B=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),H=Symbol.iterator;function ne(o){return o===null||typeof o!="object"?null:(o=H&&o[H]||o["@@iterator"],typeof o=="function"?o:null)}var W={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,Re={};function K(o,f,v){this.props=o,this.context=f,this.refs=Re,this.updater=v||W}K.prototype.isReactComponent={},K.prototype.setState=function(o,f){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,f,"setState")},K.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function Pe(){}Pe.prototype=K.prototype;function ce(o,f,v){this.props=o,this.context=f,this.refs=Re,this.updater=v||W}var le=ce.prototype=new Pe;le.constructor=ce,q(le,K.prototype),le.isPureReactComponent=!0;var G=Array.isArray,A=Object.prototype.hasOwnProperty,L={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function oe(o,f,v){var E,_={},w=null,k=null;if(f!=null)for(E in f.ref!==void 0&&(k=f.ref),f.key!==void 0&&(w=""+f.key),f)A.call(f,E)&&!Q.hasOwnProperty(E)&&(_[E]=f[E]);var R=arguments.length-2;if(R===1)_.children=v;else if(1<R){for(var P=Array(R),$=0;$<R;$++)P[$]=arguments[$+2];_.children=P}if(o&&o.defaultProps)for(E in R=o.defaultProps,R)_[E]===void 0&&(_[E]=R[E]);return{$$typeof:n,type:o,key:w,ref:k,props:_,_owner:L.current}}function Se(o,f){return{$$typeof:n,type:o.type,key:f,ref:o.ref,props:o.props,_owner:o._owner}}function ge(o){return typeof o=="object"&&o!==null&&o.$$typeof===n}function Ye(o){var f={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(v){return f[v]})}var Oe=/\/+/g;function _e(o,f){return typeof o=="object"&&o!==null&&o.key!=null?Ye(""+o.key):f.toString(36)}function fe(o,f,v,E,_){var w=typeof o;(w==="undefined"||w==="boolean")&&(o=null);var k=!1;if(o===null)k=!0;else switch(w){case"string":case"number":k=!0;break;case"object":switch(o.$$typeof){case n:case t:k=!0}}if(k)return k=o,_=_(k),o=E===""?"."+_e(k,0):E,G(_)?(v="",o!=null&&(v=o.replace(Oe,"$&/")+"/"),fe(_,f,v,"",function($){return $})):_!=null&&(ge(_)&&(_=Se(_,v+(!_.key||k&&k.key===_.key?"":(""+_.key).replace(Oe,"$&/")+"/")+o)),f.push(_)),1;if(k=0,E=E===""?".":E+":",G(o))for(var R=0;R<o.length;R++){w=o[R];var P=E+_e(w,R);k+=fe(w,f,v,P,_)}else if(P=ne(o),typeof P=="function")for(o=P.call(o),R=0;!(w=o.next()).done;)w=w.value,P=E+_e(w,R++),k+=fe(w,f,v,P,_);else if(w==="object")throw f=String(o),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.");return k}function Y(o,f,v){if(o==null)return o;var E=[],_=0;return fe(o,E,"","",function(w){return f.call(v,w,_++)}),E}function X(o){if(o._status===-1){var f=o._result;f=f(),f.then(function(v){(o._status===0||o._status===-1)&&(o._status=1,o._result=v)},function(v){(o._status===0||o._status===-1)&&(o._status=2,o._result=v)}),o._status===-1&&(o._status=0,o._result=f)}if(o._status===1)return o._result.default;throw o._result}var h={current:null},ie={transition:null},De={ReactCurrentDispatcher:h,ReactCurrentBatchConfig:ie,ReactCurrentOwner:L};return g.Children={map:Y,forEach:function(o,f,v){Y(o,function(){f.apply(this,arguments)},v)},count:function(o){var f=0;return Y(o,function(){f++}),f},toArray:function(o){return Y(o,function(f){return f})||[]},only:function(o){if(!ge(o))throw Error("React.Children.only expected to receive a single React element child.");return o}},g.Component=K,g.Fragment=s,g.Profiler=l,g.PureComponent=ce,g.StrictMode=c,g.Suspense=x,g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=De,g.cloneElement=function(o,f,v){if(o==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+o+".");var E=q({},o.props),_=o.key,w=o.ref,k=o._owner;if(f!=null){if(f.ref!==void 0&&(w=f.ref,k=L.current),f.key!==void 0&&(_=""+f.key),o.type&&o.type.defaultProps)var R=o.type.defaultProps;for(P in f)A.call(f,P)&&!Q.hasOwnProperty(P)&&(E[P]=f[P]===void 0&&R!==void 0?R[P]:f[P])}var P=arguments.length-2;if(P===1)E.children=v;else if(1<P){R=Array(P);for(var $=0;$<P;$++)R[$]=arguments[$+2];E.children=R}return{$$typeof:n,type:o.type,key:_,ref:w,props:E,_owner:k}},g.createContext=function(o){return o={$$typeof:D,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},o.Provider={$$typeof:y,_context:o},o.Consumer=o},g.createElement=oe,g.createFactory=function(o){var f=oe.bind(null,o);return f.type=o,f},g.createRef=function(){return{current:null}},g.forwardRef=function(o){return{$$typeof:F,render:o}},g.isValidElement=ge,g.lazy=function(o){return{$$typeof:z,_payload:{_status:-1,_result:o},_init:X}},g.memo=function(o,f){return{$$typeof:B,type:o,compare:f===void 0?null:f}},g.startTransition=function(o){var f=ie.transition;ie.transition={};try{o()}finally{ie.transition=f}},g.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},g.useCallback=function(o,f){return h.current.useCallback(o,f)},g.useContext=function(o){return h.current.useContext(o)},g.useDebugValue=function(){},g.useDeferredValue=function(o){return h.current.useDeferredValue(o)},g.useEffect=function(o,f){return h.current.useEffect(o,f)},g.useId=function(){return h.current.useId()},g.useImperativeHandle=function(o,f,v){return h.current.useImperativeHandle(o,f,v)},g.useInsertionEffect=function(o,f){return h.current.useInsertionEffect(o,f)},g.useLayoutEffect=function(o,f){return h.current.useLayoutEffect(o,f)},g.useMemo=function(o,f){return h.current.useMemo(o,f)},g.useReducer=function(o,f,v){return h.current.useReducer(o,f,v)},g.useRef=function(o){return h.current.useRef(o)},g.useState=function(o){return h.current.useState(o)},g.useSyncExternalStore=function(o,f,v){return h.current.useSyncExternalStore(o,f,v)},g.useTransition=function(){return h.current.useTransition()},g.version="18.2.0",g}var ve={exports:{}};/**
15
+ */var ft;function Bt(){if(ft)return qe;ft=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(f,c,g){var S=null;if(g!==void 0&&(S=""+g),c.key!==void 0&&(S=""+c.key),"key"in c){g={};for(var M in c)M!=="key"&&(g[M]=c[M])}else g=c;return c=g.ref,{$$typeof:r,type:f,key:S,ref:c!==void 0?c:null,props:g}}return qe.Fragment=t,qe.jsx=i,qe.jsxs=i,qe}var Le={},Ge={exports:{}},R={};/**
16
+ * @license React
17
+ * react.production.js
18
+ *
19
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
20
+ *
21
+ * This source code is licensed under the MIT license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */var dt;function Ft(){if(dt)return R;dt=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),S=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),V=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),ee=Symbol.iterator;function pe(s){return s===null||typeof s!="object"?null:(s=ee&&s[ee]||s["@@iterator"],typeof s=="function"?s:null)}var ie={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ue=Object.assign,te={};function B(s,a,_){this.props=s,this.context=a,this.refs=te,this.updater=_||ie}B.prototype.isReactComponent={},B.prototype.setState=function(s,a){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,a,"setState")},B.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function ae(){}ae.prototype=B.prototype;function re(s,a,_){this.props=s,this.context=a,this.refs=te,this.updater=_||ie}var me=re.prototype=new ae;me.constructor=re,ue(me,B.prototype),me.isPureReactComponent=!0;var ge=Array.isArray,k={H:null,A:null,T:null,S:null},oe=Object.prototype.hasOwnProperty;function ve(s,a,_,y,w,A){return _=A.ref,{$$typeof:r,type:s,key:a,ref:_!==void 0?_:null,props:A}}function Te(s,a){return ve(s.type,a,void 0,void 0,void 0,s.props)}function L(s){return typeof s=="object"&&s!==null&&s.$$typeof===r}function Se(s){var a={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(_){return a[_]})}var ye=/\/+/g;function ce(s,a){return typeof s=="object"&&s!==null&&s.key!=null?Se(""+s.key):a.toString(36)}function ne(){}function Ee(s){switch(s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(ne,ne):(s.status="pending",s.then(function(a){s.status==="pending"&&(s.status="fulfilled",s.value=a)},function(a){s.status==="pending"&&(s.status="rejected",s.reason=a)})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}}throw s}function Q(s,a,_,y,w){var A=typeof s;(A==="undefined"||A==="boolean")&&(s=null);var b=!1;if(s===null)b=!0;else switch(A){case"bigint":case"string":case"number":b=!0;break;case"object":switch(s.$$typeof){case r:case t:b=!0;break;case q:return b=s._init,Q(b(s._payload),a,_,y,w)}}if(b)return w=w(s),b=y===""?"."+ce(s,0):y,ge(w)?(_="",b!=null&&(_=b.replace(ye,"$&/")+"/"),Q(w,a,_,"",function(_e){return _e})):w!=null&&(L(w)&&(w=Te(w,_+(w.key==null||s&&s.key===w.key?"":(""+w.key).replace(ye,"$&/")+"/")+b)),a.push(w)),1;b=0;var W=y===""?".":y+":";if(ge(s))for(var D=0;D<s.length;D++)y=s[D],A=W+ce(y,D),b+=Q(y,a,_,A,w);else if(D=pe(s),typeof D=="function")for(s=D.call(s),D=0;!(y=s.next()).done;)y=y.value,A=W+ce(y,D++),b+=Q(y,a,_,A,w);else if(A==="object"){if(typeof s.then=="function")return Q(Ee(s),a,_,y,w);throw a=String(s),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return b}function F(s,a,_){if(s==null)return s;var y=[],w=0;return Q(s,y,"","",function(A){return a.call(_,A,w++)}),y}function le(s){if(s._status===-1){var a=s._result;a=a(),a.then(function(_){(s._status===0||s._status===-1)&&(s._status=1,s._result=_)},function(_){(s._status===0||s._status===-1)&&(s._status=2,s._result=_)}),s._status===-1&&(s._status=0,s._result=a)}if(s._status===1)return s._result.default;throw s._result}var Ye=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function j(){}return R.Children={map:F,forEach:function(s,a,_){F(s,function(){a.apply(this,arguments)},_)},count:function(s){var a=0;return F(s,function(){a++}),a},toArray:function(s){return F(s,function(a){return a})||[]},only:function(s){if(!L(s))throw Error("React.Children.only expected to receive a single React element child.");return s}},R.Component=B,R.Fragment=i,R.Profiler=c,R.PureComponent=re,R.StrictMode=f,R.Suspense=I,R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,R.act=function(){throw Error("act(...) is not supported in production builds of React.")},R.cache=function(s){return function(){return s.apply(null,arguments)}},R.cloneElement=function(s,a,_){if(s==null)throw Error("The argument must be a React element, but you passed "+s+".");var y=ue({},s.props),w=s.key,A=void 0;if(a!=null)for(b in a.ref!==void 0&&(A=void 0),a.key!==void 0&&(w=""+a.key),a)!oe.call(a,b)||b==="key"||b==="__self"||b==="__source"||b==="ref"&&a.ref===void 0||(y[b]=a[b]);var b=arguments.length-2;if(b===1)y.children=_;else if(1<b){for(var W=Array(b),D=0;D<b;D++)W[D]=arguments[D+2];y.children=W}return ve(s.type,w,void 0,void 0,A,y)},R.createContext=function(s){return s={$$typeof:S,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null},s.Provider=s,s.Consumer={$$typeof:g,_context:s},s},R.createElement=function(s,a,_){var y,w={},A=null;if(a!=null)for(y in a.key!==void 0&&(A=""+a.key),a)oe.call(a,y)&&y!=="key"&&y!=="__self"&&y!=="__source"&&(w[y]=a[y]);var b=arguments.length-2;if(b===1)w.children=_;else if(1<b){for(var W=Array(b),D=0;D<b;D++)W[D]=arguments[D+2];w.children=W}if(s&&s.defaultProps)for(y in b=s.defaultProps,b)w[y]===void 0&&(w[y]=b[y]);return ve(s,A,void 0,void 0,null,w)},R.createRef=function(){return{current:null}},R.forwardRef=function(s){return{$$typeof:M,render:s}},R.isValidElement=L,R.lazy=function(s){return{$$typeof:q,_payload:{_status:-1,_result:s},_init:le}},R.memo=function(s,a){return{$$typeof:V,type:s,compare:a===void 0?null:a}},R.startTransition=function(s){var a=k.T,_={};k.T=_;try{var y=s(),w=k.S;w!==null&&w(_,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(j,Ye)}catch(A){Ye(A)}finally{k.T=a}},R.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},R.use=function(s){return k.H.use(s)},R.useActionState=function(s,a,_){return k.H.useActionState(s,a,_)},R.useCallback=function(s,a){return k.H.useCallback(s,a)},R.useContext=function(s){return k.H.useContext(s)},R.useDebugValue=function(){},R.useDeferredValue=function(s,a){return k.H.useDeferredValue(s,a)},R.useEffect=function(s,a){return k.H.useEffect(s,a)},R.useId=function(){return k.H.useId()},R.useImperativeHandle=function(s,a,_){return k.H.useImperativeHandle(s,a,_)},R.useInsertionEffect=function(s,a){return k.H.useInsertionEffect(s,a)},R.useLayoutEffect=function(s,a){return k.H.useLayoutEffect(s,a)},R.useMemo=function(s,a){return k.H.useMemo(s,a)},R.useOptimistic=function(s,a){return k.H.useOptimistic(s,a)},R.useReducer=function(s,a,_){return k.H.useReducer(s,a,_)},R.useRef=function(s){return k.H.useRef(s)},R.useState=function(s){return k.H.useState(s)},R.useSyncExternalStore=function(s,a,_){return k.H.useSyncExternalStore(s,a,_)},R.useTransition=function(){return k.H.useTransition()},R.version="19.0.0",R}var We={exports:{}};/**
16
24
  * @license React
17
25
  * react.development.js
18
26
  *
19
- * Copyright (c) Facebook, Inc. and its affiliates.
27
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
20
28
  *
21
29
  * This source code is licensed under the MIT license found in the
22
30
  * LICENSE file in the root directory of this source tree.
23
- */ve.exports;var ut;function fr(){return ut||(ut=1,function(n,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var s="18.2.0",c=Symbol.for("react.element"),l=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),B=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Re=Symbol.for("react.offscreen"),K=Symbol.iterator,Pe="@@iterator";function ce(e){if(e===null||typeof e!="object")return null;var r=K&&e[K]||e[Pe];return typeof r=="function"?r:null}var le={current:null},G={transition:null},A={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},L={current:null},Q={},oe=null;function Se(e){oe=e}Q.setExtraStackFrame=function(e){oe=e},Q.getCurrentStack=null,Q.getStackAddendum=function(){var e="";oe&&(e+=oe);var r=Q.getCurrentStack;return r&&(e+=r()||""),e};var ge=!1,Ye=!1,Oe=!1,_e=!1,fe=!1,Y={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:G,ReactCurrentOwner:L};Y.ReactDebugCurrentFrame=Q,Y.ReactCurrentActQueue=A;function X(e){{for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];ie("warn",e,i)}}function h(e){{for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];ie("error",e,i)}}function ie(e,r,i){{var a=Y.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(r+="%s",i=i.concat([u]));var p=i.map(function(d){return String(d)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var De={};function o(e,r){{var i=e.constructor,a=i&&(i.displayName||i.name)||"ReactClass",u=a+"."+r;if(De[u])return;h("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",r,a),De[u]=!0}}var f={isMounted:function(e){return!1},enqueueForceUpdate:function(e,r,i){o(e,"forceUpdate")},enqueueReplaceState:function(e,r,i,a){o(e,"replaceState")},enqueueSetState:function(e,r,i,a){o(e,"setState")}},v=Object.assign,E={};Object.freeze(E);function _(e,r,i){this.props=e,this.context=r,this.refs=E,this.updater=i||f}_.prototype.isReactComponent={},_.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var w={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},k=function(e,r){Object.defineProperty(_.prototype,e,{get:function(){X("%s(...) is deprecated in plain JavaScript React classes. %s",r[0],r[1])}})};for(var R in w)w.hasOwnProperty(R)&&k(R,w[R])}function P(){}P.prototype=_.prototype;function $(e,r,i){this.props=e,this.context=r,this.refs=E,this.updater=i||f}var He=$.prototype=new P;He.constructor=$,v(He,_.prototype),He.isPureReactComponent=!0;function pr(){var e={current:null};return Object.seal(e),e}var hr=Array.isArray;function Te(e){return hr(e)}function mr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,i=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function yr(e){try{return ct(e),!1}catch{return!0}}function ct(e){return""+e}function ke(e){if(yr(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",mr(e)),ct(e)}function vr(e,r,i){var a=e.displayName;if(a)return a;var u=r.displayName||r.name||"";return u!==""?i+"("+u+")":i}function lt(e){return e.displayName||"Context"}function Z(e){if(e==null)return null;if(typeof e.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case y:return"Fragment";case l:return"Portal";case F:return"Profiler";case D:return"StrictMode";case H:return"Suspense";case ne:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case B:var r=e;return lt(r)+".Consumer";case x:var i=e;return lt(i._context)+".Provider";case z:return vr(e,e.render,"ForwardRef");case W:var a=e.displayName||null;return a!==null?a:Z(e.type)||"Memo";case q:{var u=e,p=u._payload,d=u._init;try{return Z(d(p))}catch{return null}}}return null}var be=Object.prototype.hasOwnProperty,ft={key:!0,ref:!0,__self:!0,__source:!0},dt,pt,Be;Be={};function ht(e){if(be.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function mt(e){if(be.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function gr(e,r){var i=function(){dt||(dt=!0,h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}function _r(e,r){var i=function(){pt||(pt=!0,h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}function br(e){if(typeof e.ref=="string"&&L.current&&e.__self&&L.current.stateNode!==e.__self){var r=Z(L.current.type);Be[r]||(h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,e.ref),Be[r]=!0)}}var ze=function(e,r,i,a,u,p,d){var m={$$typeof:c,type:e,key:r,ref:i,props:d,_owner:p};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function Er(e,r,i){var a,u={},p=null,d=null,m=null,b=null;if(r!=null){ht(r)&&(d=r.ref,br(r)),mt(r)&&(ke(r.key),p=""+r.key),m=r.__self===void 0?null:r.__self,b=r.__source===void 0?null:r.__source;for(a in r)be.call(r,a)&&!ft.hasOwnProperty(a)&&(u[a]=r[a])}var C=arguments.length-2;if(C===1)u.children=i;else if(C>1){for(var S=Array(C),O=0;O<C;O++)S[O]=arguments[O+2];Object.freeze&&Object.freeze(S),u.children=S}if(e&&e.defaultProps){var T=e.defaultProps;for(a in T)u[a]===void 0&&(u[a]=T[a])}if(p||d){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&gr(u,j),d&&_r(u,j)}return ze(e,p,d,m,b,L.current,u)}function Cr(e,r){var i=ze(e.type,r,e.ref,e._self,e._source,e._owner,e.props);return i}function wr(e,r,i){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a,u=v({},e.props),p=e.key,d=e.ref,m=e._self,b=e._source,C=e._owner;if(r!=null){ht(r)&&(d=r.ref,C=L.current),mt(r)&&(ke(r.key),p=""+r.key);var S;e.type&&e.type.defaultProps&&(S=e.type.defaultProps);for(a in r)be.call(r,a)&&!ft.hasOwnProperty(a)&&(r[a]===void 0&&S!==void 0?u[a]=S[a]:u[a]=r[a])}var O=arguments.length-2;if(O===1)u.children=i;else if(O>1){for(var T=Array(O),j=0;j<O;j++)T[j]=arguments[j+2];u.children=T}return ze(e.type,p,d,m,b,C,u)}function de(e){return typeof e=="object"&&e!==null&&e.$$typeof===c}var yt=".",Rr=":";function Pr(e){var r=/[=:]/g,i={"=":"=0",":":"=2"},a=e.replace(r,function(u){return i[u]});return"$"+a}var vt=!1,Sr=/\/+/g;function gt(e){return e.replace(Sr,"$&/")}function qe(e,r){return typeof e=="object"&&e!==null&&e.key!=null?(ke(e.key),Pr(""+e.key)):r.toString(36)}function je(e,r,i,a,u){var p=typeof e;(p==="undefined"||p==="boolean")&&(e=null);var d=!1;if(e===null)d=!0;else switch(p){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case c:case l:d=!0}}if(d){var m=e,b=u(m),C=a===""?yt+qe(m,0):a;if(Te(b)){var S="";C!=null&&(S=gt(C)+"/"),je(b,r,S,"",function(bn){return bn})}else b!=null&&(de(b)&&(b.key&&(!m||m.key!==b.key)&&ke(b.key),b=Cr(b,i+(b.key&&(!m||m.key!==b.key)?gt(""+b.key)+"/":"")+C)),r.push(b));return 1}var O,T,j=0,N=a===""?yt:a+Rr;if(Te(e))for(var Ve=0;Ve<e.length;Ve++)O=e[Ve],T=N+qe(O,Ve),j+=je(O,r,i,T,u);else{var rt=ce(e);if(typeof rt=="function"){var Wt=e;rt===Wt.entries&&(vt||X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),vt=!0);for(var gn=rt.call(Wt),Yt,_n=0;!(Yt=gn.next()).done;)O=Yt.value,T=N+qe(O,_n++),j+=je(O,r,i,T,u)}else if(p==="object"){var Ht=String(e);throw new Error("Objects are not valid as a React child (found: "+(Ht==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":Ht)+"). If you meant to render a collection of children, use an array instead.")}}return j}function Ae(e,r,i){if(e==null)return e;var a=[],u=0;return je(e,a,"","",function(p){return r.call(i,p,u++)}),a}function Or(e){var r=0;return Ae(e,function(){r++}),r}function Dr(e,r,i){Ae(e,function(){r.apply(this,arguments)},i)}function Tr(e){return Ae(e,function(r){return r})||[]}function kr(e){if(!de(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function jr(e){var r={$$typeof:B,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};r.Provider={$$typeof:x,_context:r};var i=!1,a=!1,u=!1;{var p={$$typeof:B,_context:r};Object.defineProperties(p,{Provider:{get:function(){return a||(a=!0,h("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(d){r.Provider=d}},_currentValue:{get:function(){return r._currentValue},set:function(d){r._currentValue=d}},_currentValue2:{get:function(){return r._currentValue2},set:function(d){r._currentValue2=d}},_threadCount:{get:function(){return r._threadCount},set:function(d){r._threadCount=d}},Consumer:{get:function(){return i||(i=!0,h("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(d){u||(X("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",d),u=!0)}}}),r.Consumer=p}return r._currentRenderer=null,r._currentRenderer2=null,r}var Ee=-1,Ke=0,_t=1,Ar=2;function Ir(e){if(e._status===Ee){var r=e._result,i=r();if(i.then(function(p){if(e._status===Ke||e._status===Ee){var d=e;d._status=_t,d._result=p}},function(p){if(e._status===Ke||e._status===Ee){var d=e;d._status=Ar,d._result=p}}),e._status===Ee){var a=e;a._status=Ke,a._result=i}}if(e._status===_t){var u=e._result;return u===void 0&&h(`lazy: Expected the result of a dynamic import() call. Instead received: %s
31
+ */We.exports;var ht;function Gt(){return ht||(ht=1,function(r,t){process.env.NODE_ENV!=="production"&&function(){function i(e,n){Object.defineProperty(g.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})}function f(e){return e===null||typeof e!="object"?null:(e=Ve&&e[Ve]||e["@@iterator"],typeof e=="function"?e:null)}function c(e,n){e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass";var u=e+"."+n;Be[u]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",n,e),Be[u]=!0)}function g(e,n,u){this.props=e,this.context=n,this.refs=h,this.updater=u||o}function S(){}function M(e,n,u){this.props=e,this.context=n,this.refs=h,this.updater=u||o}function I(e){return""+e}function V(e){try{I(e);var n=!1}catch{n=!0}if(n){n=console;var u=n.error,l=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return u.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",l),I(e)}}function q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===C?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case W:return"Portal";case He:return"Profiler";case _e:return"StrictMode";case be:return"Suspense";case Ne:return"SuspenseList"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Pe:return(e.displayName||"Context")+".Provider";case je:return(e._context.displayName||"Context")+".Consumer";case Ae:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return n=e.displayName||null,n!==null?n:q(e.type)||"Memo";case we:n=e._payload,e=e._init;try{return q(e(n))}catch{}}return null}function ee(e){return typeof e=="string"||typeof e=="function"||e===D||e===He||e===_e||e===be||e===Ne||e===Ke||typeof e=="object"&&e!==null&&(e.$$typeof===we||e.$$typeof===ke||e.$$typeof===Pe||e.$$typeof===je||e.$$typeof===Ae||e.$$typeof===U||e.getModuleId!==void 0)}function pe(){}function ie(){if(G===0){Ce=console.log,Z=console.info,De=console.warn,X=console.error,yt=console.group,Et=console.groupCollapsed,_t=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}function ue(){if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:d({},e,{value:Ce}),info:d({},e,{value:Z}),warn:d({},e,{value:De}),error:d({},e,{value:X}),group:d({},e,{value:yt}),groupCollapsed:d({},e,{value:Et}),groupEnd:d({},e,{value:_t})})}0>G&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function te(e){if(ot===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);ot=n&&n[1]||"",bt=-1<u.stack.indexOf(`
32
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
33
+ `+ot+e+bt}function B(e,n){if(!e||nt)return"";var u=st.get(e);if(u!==void 0)return u;nt=!0,u=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var l=null;l=E.H,E.H=null,ie();try{var p={DetermineComponentFrameRoot:function(){try{if(n){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(fe){var Ze=fe}Reflect.construct(e,[],se)}else{try{se.call()}catch(fe){Ze=fe}e.call(se.prototype)}}else{try{throw Error()}catch(fe){Ze=fe}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(fe){if(fe&&Ze&&typeof fe.stack=="string")return[fe.stack,Ze.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=p.DetermineComponentFrameRoot(),P=m[0],T=m[1];if(P&&T){var $=P.split(`
34
+ `),z=T.split(`
35
+ `);for(m=v=0;v<$.length&&!$[v].includes("DetermineComponentFrameRoot");)v++;for(;m<z.length&&!z[m].includes("DetermineComponentFrameRoot");)m++;if(v===$.length||m===z.length)for(v=$.length-1,m=z.length-1;1<=v&&0<=m&&$[v]!==z[m];)m--;for(;1<=v&&0<=m;v--,m--)if($[v]!==z[m]){if(v!==1||m!==1)do if(v--,m--,0>m||$[v]!==z[m]){var Me=`
36
+ `+$[v].replace(" at new "," at ");return e.displayName&&Me.includes("<anonymous>")&&(Me=Me.replace("<anonymous>",e.displayName)),typeof e=="function"&&st.set(e,Me),Me}while(1<=v&&0<=m);break}}}finally{nt=!1,E.H=l,ue(),Error.prepareStackTrace=u}return $=($=e?e.displayName||e.name:"")?te($):"",typeof e=="function"&&st.set(e,$),$}function ae(e){if(e==null)return"";if(typeof e=="function"){var n=e.prototype;return B(e,!(!n||!n.isReactComponent))}if(typeof e=="string")return te(e);switch(e){case be:return te("Suspense");case Ne:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case Ae:return e=B(e.render,!1),e;case ke:return ae(e.type);case we:n=e._payload,e=e._init;try{return ae(e(n))}catch{}}return""}function re(){var e=E.A;return e===null?null:e.getOwner()}function me(e){if(J.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function ge(e,n){function u(){wt||(wt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}u.isReactWarning=!0,Object.defineProperty(e,"key",{get:u,configurable:!0})}function k(){var e=q(this.type);return Rt[e]||(Rt[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function oe(e,n,u,l,p,v){return u=v.ref,e={$$typeof:b,type:e,key:n,props:v,_owner:p},(u!==void 0?u:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:k}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function ve(e,n){return n=oe(e.type,n,void 0,void 0,e._owner,e.props),n._store.validated=e._store.validated,n}function Te(e,n){if(typeof e=="object"&&e&&e.$$typeof!==Jt){if(N(e))for(var u=0;u<e.length;u++){var l=e[u];L(l)&&Se(l,n)}else if(L(e))e._store&&(e._store.validated=1);else if(u=f(e),typeof u=="function"&&u!==e.entries&&(u=u.call(e),u!==e))for(;!(e=u.next()).done;)L(e.value)&&Se(e.value,n)}}function L(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function Se(e,n){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,n=ye(n),!Ot[n])){Ot[n]=!0;var u="";e&&e._owner!=null&&e._owner!==re()&&(u=null,typeof e._owner.tag=="number"?u=q(e._owner.type):typeof e._owner.name=="string"&&(u=e._owner.name),u=" It was passed a child from "+u+".");var l=E.getCurrentStack;E.getCurrentStack=function(){var p=ae(e.type);return l&&(p+=l()||""),p},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,u),E.getCurrentStack=l}}function ye(e){var n="",u=re();return u&&(u=q(u.type))&&(n=`
37
+
38
+ Check the render method of \``+u+"`."),n||(e=q(e))&&(n=`
39
+
40
+ Check the top-level render call using <`+e+">."),n}function ce(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(u){return n[u]})}function ne(e,n){return typeof e=="object"&&e!==null&&e.key!=null?(V(e.key),ce(""+e.key)):n.toString(36)}function Ee(){}function Q(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Ee,Ee):(e.status="pending",e.then(function(n){e.status==="pending"&&(e.status="fulfilled",e.value=n)},function(n){e.status==="pending"&&(e.status="rejected",e.reason=n)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function F(e,n,u,l,p){var v=typeof e;(v==="undefined"||v==="boolean")&&(e=null);var m=!1;if(e===null)m=!0;else switch(v){case"bigint":case"string":case"number":m=!0;break;case"object":switch(e.$$typeof){case b:case W:m=!0;break;case we:return m=e._init,F(m(e._payload),n,u,l,p)}}if(m){m=e,p=p(m);var P=l===""?"."+ne(m,0):l;return N(p)?(u="",P!=null&&(u=P.replace(St,"$&/")+"/"),F(p,n,u,"",function($){return $})):p!=null&&(L(p)&&(p.key!=null&&(m&&m.key===p.key||V(p.key)),u=ve(p,u+(p.key==null||m&&m.key===p.key?"":(""+p.key).replace(St,"$&/")+"/")+P),l!==""&&m!=null&&L(m)&&m.key==null&&m._store&&!m._store.validated&&(u._store.validated=2),p=u),n.push(p)),1}if(m=0,P=l===""?".":l+":",N(e))for(var T=0;T<e.length;T++)l=e[T],v=P+ne(l,T),m+=F(l,n,u,v,p);else if(T=f(e),typeof T=="function")for(T===e.entries&&(Tt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Tt=!0),e=T.call(e),T=0;!(l=e.next()).done;)l=l.value,v=P+ne(l,T++),m+=F(l,n,u,v,p);else if(v==="object"){if(typeof e.then=="function")return F(Q(e),n,u,l,p);throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return m}function le(e,n,u){if(e==null)return e;var l=[],p=0;return F(e,l,"","",function(v){return n.call(u,v,p++)}),l}function Ye(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(u){(e._status===0||e._status===-1)&&(e._status=1,e._result=u)},function(u){(e._status===0||e._status===-1)&&(e._status=2,e._result=u)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return n=e._result,n===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
24
41
 
25
42
  Your code should look like:
26
43
  const MyComponent = lazy(() => import('./MyComponent'))
27
44
 
28
- Did you accidentally put curly braces around the import?`,u),"default"in u||h(`lazy: Expected the result of a dynamic import() call. Instead received: %s
45
+ Did you accidentally put curly braces around the import?`,n),"default"in n||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
29
46
 
30
47
  Your code should look like:
31
- const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default}else throw e._result}function Nr(e){var r={_status:Ee,_result:e},i={$$typeof:q,_payload:r,_init:Ir};{var a,u;Object.defineProperties(i,{defaultProps:{configurable:!0,get:function(){return a},set:function(p){h("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),a=p,Object.defineProperty(i,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return u},set:function(p){h("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),u=p,Object.defineProperty(i,"propTypes",{enumerable:!0})}}})}return i}function Fr(e){e!=null&&e.$$typeof===W?h("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?h("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&h("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&h("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var r={$$typeof:z,render:e};{var i;Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return i},set:function(a){i=a,!e.name&&!e.displayName&&(e.displayName=a)}})}return r}var bt;bt=Symbol.for("react.module.reference");function Et(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===F||fe||e===D||e===H||e===ne||_e||e===Re||ge||Ye||Oe||typeof e=="object"&&e!==null&&(e.$$typeof===q||e.$$typeof===W||e.$$typeof===x||e.$$typeof===B||e.$$typeof===z||e.$$typeof===bt||e.getModuleId!==void 0))}function $r(e,r){Et(e)||h("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var i={$$typeof:W,type:e,compare:r===void 0?null:r};{var a;Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(u){a=u,!e.name&&!e.displayName&&(e.displayName=u)}})}return i}function M(){var e=le.current;return e===null&&h(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
48
+ const MyComponent = lazy(() => import('./MyComponent'))`,n),n.default;throw e._result}function j(){var e=E.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
32
49
  1. You might have mismatching versions of React and the renderer (such as React DOM)
33
50
  2. You might be breaking the Rules of Hooks
34
51
  3. You might have more than one copy of React in the same app
35
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function Mr(e){var r=M();if(e._context!==void 0){var i=e._context;i.Consumer===e?h("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):i.Provider===e&&h("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e)}function Lr(e){var r=M();return r.useState(e)}function Vr(e,r,i){var a=M();return a.useReducer(e,r,i)}function Ur(e){var r=M();return r.useRef(e)}function xr(e,r){var i=M();return i.useEffect(e,r)}function Wr(e,r){var i=M();return i.useInsertionEffect(e,r)}function Yr(e,r){var i=M();return i.useLayoutEffect(e,r)}function Hr(e,r){var i=M();return i.useCallback(e,r)}function Br(e,r){var i=M();return i.useMemo(e,r)}function zr(e,r,i){var a=M();return a.useImperativeHandle(e,r,i)}function qr(e,r){{var i=M();return i.useDebugValue(e,r)}}function Kr(){var e=M();return e.useTransition()}function Gr(e){var r=M();return r.useDeferredValue(e)}function Jr(){var e=M();return e.useId()}function Qr(e,r,i){var a=M();return a.useSyncExternalStore(e,r,i)}var Ce=0,Ct,wt,Rt,Pt,St,Ot,Dt;function Tt(){}Tt.__reactDisabledLog=!0;function Xr(){{if(Ce===0){Ct=console.log,wt=console.info,Rt=console.warn,Pt=console.error,St=console.group,Ot=console.groupCollapsed,Dt=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Tt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ce++}}function Zr(){{if(Ce--,Ce===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:v({},e,{value:Ct}),info:v({},e,{value:wt}),warn:v({},e,{value:Rt}),error:v({},e,{value:Pt}),group:v({},e,{value:St}),groupCollapsed:v({},e,{value:Ot}),groupEnd:v({},e,{value:Dt})})}Ce<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ge=Y.ReactCurrentDispatcher,Je;function Ie(e,r,i){{if(Je===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);Je=a&&a[1]||""}return`
36
- `+Je+e}}var Qe=!1,Ne;{var en=typeof WeakMap=="function"?WeakMap:Map;Ne=new en}function kt(e,r){if(!e||Qe)return"";{var i=Ne.get(e);if(i!==void 0)return i}var a;Qe=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=Ge.current,Ge.current=null,Xr();try{if(r){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(N){a=N}Reflect.construct(e,[],d)}else{try{d.call()}catch(N){a=N}e.call(d.prototype)}}else{try{throw Error()}catch(N){a=N}e()}}catch(N){if(N&&a&&typeof N.stack=="string"){for(var m=N.stack.split(`
37
- `),b=a.stack.split(`
38
- `),C=m.length-1,S=b.length-1;C>=1&&S>=0&&m[C]!==b[S];)S--;for(;C>=1&&S>=0;C--,S--)if(m[C]!==b[S]){if(C!==1||S!==1)do if(C--,S--,S<0||m[C]!==b[S]){var O=`
39
- `+m[C].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&Ne.set(e,O),O}while(C>=1&&S>=0);break}}}finally{Qe=!1,Ge.current=p,Zr(),Error.prepareStackTrace=u}var T=e?e.displayName||e.name:"",j=T?Ie(T):"";return typeof e=="function"&&Ne.set(e,j),j}function tn(e,r,i){return kt(e,!1)}function rn(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Fe(e,r,i){if(e==null)return"";if(typeof e=="function")return kt(e,rn(e));if(typeof e=="string")return Ie(e);switch(e){case H:return Ie("Suspense");case ne:return Ie("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case z:return tn(e.render);case W:return Fe(e.type,r,i);case q:{var a=e,u=a._payload,p=a._init;try{return Fe(p(u),r,i)}catch{}}}return""}var jt={},At=Y.ReactDebugCurrentFrame;function $e(e){if(e){var r=e._owner,i=Fe(e.type,e._source,r?r.type:null);At.setExtraStackFrame(i)}else At.setExtraStackFrame(null)}function nn(e,r,i,a,u){{var p=Function.call.bind(be);for(var d in e)if(p(e,d)){var m=void 0;try{if(typeof e[d]!="function"){var b=Error((a||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}m=e[d](r,d,a,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){m=C}m&&!(m instanceof Error)&&($e(u),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",i,d,typeof m),$e(null)),m instanceof Error&&!(m.message in jt)&&(jt[m.message]=!0,$e(u),h("Failed %s type: %s",i,m.message),$e(null))}}}function pe(e){if(e){var r=e._owner,i=Fe(e.type,e._source,r?r.type:null);Se(i)}else Se(null)}var Xe;Xe=!1;function It(){if(L.current){var e=Z(L.current.type);if(e)return`
40
-
41
- Check the render method of \``+e+"`."}return""}function on(e){if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),i=e.lineNumber;return`
52
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function s(){}function a(e){if(Qe===null)try{var n=("require"+Math.random()).slice(0,7);Qe=(r&&r[n]).call(r,"timers").setImmediate}catch{Qe=function(l){Pt===!1&&(Pt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var p=new MessageChannel;p.port1.onmessage=l,p.port2.postMessage(void 0)}}return Qe(e)}function _(e){return 1<e.length&&typeof AggregateError=="function"?new AggregateError(e):e[0]}function y(e,n){n!==Xe-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Xe=n}function w(e,n,u){var l=E.actQueue;if(l!==null)if(l.length!==0)try{A(l),a(function(){return w(e,n,u)});return}catch(p){E.thrownErrors.push(p)}else E.actQueue=null;0<E.thrownErrors.length?(l=_(E.thrownErrors),E.thrownErrors.length=0,u(l)):n(e)}function A(e){if(!it){it=!0;var n=0;try{for(;n<e.length;n++){var u=e[n];do{E.didUsePromise=!1;var l=u(!1);if(l!==null){if(E.didUsePromise){e[n]=u,e.splice(0,n);return}u=l}else break}while(!0)}e.length=0}catch(p){e.splice(0,n+1),E.thrownErrors.push(p)}finally{it=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),_e=Symbol.for("react.strict_mode"),He=Symbol.for("react.profiler"),je=Symbol.for("react.consumer"),Pe=Symbol.for("react.context"),Ae=Symbol.for("react.forward_ref"),be=Symbol.for("react.suspense"),Ne=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),Ke=Symbol.for("react.offscreen"),Ve=Symbol.iterator,Be={},o={isMounted:function(){return!1},enqueueForceUpdate:function(e){c(e,"forceUpdate")},enqueueReplaceState:function(e){c(e,"replaceState")},enqueueSetState:function(e){c(e,"setState")}},d=Object.assign,h={};Object.freeze(h),g.prototype.isReactComponent={},g.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var O={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},x;for(x in O)O.hasOwnProperty(x)&&i(x,O[x]);S.prototype=g.prototype,O=M.prototype=new S,O.constructor=M,d(O,g.prototype),O.isPureReactComponent=!0;var N=Array.isArray,C=Symbol.for("react.client.reference"),E={H:null,A:null,T:null,S:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null},J=Object.prototype.hasOwnProperty,U=Symbol.for("react.client.reference"),G=0,Ce,Z,De,X,yt,Et,_t;pe.__reactDisabledLog=!0;var ot,bt,nt=!1,st=new(typeof WeakMap=="function"?WeakMap:Map),Jt=Symbol.for("react.client.reference"),wt,Ct,Rt={},Ot={},Tt=!1,St=/\/+/g,jt=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Pt=!1,Qe=null,Xe=0,Je=!1,it=!1,At=typeof queueMicrotask=="function"?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:a;t.Children={map:le,forEach:function(e,n,u){le(e,function(){n.apply(this,arguments)},u)},count:function(e){var n=0;return le(e,function(){n++}),n},toArray:function(e){return le(e,function(n){return n})||[]},only:function(e){if(!L(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=D,t.Profiler=He,t.PureComponent=M,t.StrictMode=_e,t.Suspense=be,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,t.act=function(e){var n=E.actQueue,u=Xe;Xe++;var l=E.actQueue=n!==null?n:[],p=!1;try{var v=e()}catch(T){E.thrownErrors.push(T)}if(0<E.thrownErrors.length)throw y(n,u),e=_(E.thrownErrors),E.thrownErrors.length=0,e;if(v!==null&&typeof v=="object"&&typeof v.then=="function"){var m=v;return At(function(){p||Je||(Je=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(T,$){p=!0,m.then(function(z){if(y(n,u),u===0){try{A(l),a(function(){return w(z,T,$)})}catch(se){E.thrownErrors.push(se)}if(0<E.thrownErrors.length){var Me=_(E.thrownErrors);E.thrownErrors.length=0,$(Me)}}else T(z)},function(z){y(n,u),0<E.thrownErrors.length&&(z=_(E.thrownErrors),E.thrownErrors.length=0),$(z)})}}}var P=v;if(y(n,u),u===0&&(A(l),l.length!==0&&At(function(){p||Je||(Je=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),E.actQueue=null),0<E.thrownErrors.length)throw e=_(E.thrownErrors),E.thrownErrors.length=0,e;return{then:function(T,$){p=!0,u===0?(E.actQueue=l,a(function(){return w(P,T,$)})):T(P)}}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,n,u){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var l=d({},e.props),p=e.key,v=e._owner;if(n!=null){var m;e:{if(J.call(n,"ref")&&(m=Object.getOwnPropertyDescriptor(n,"ref").get)&&m.isReactWarning){m=!1;break e}m=n.ref!==void 0}m&&(v=re()),me(n)&&(V(n.key),p=""+n.key);for(P in n)!J.call(n,P)||P==="key"||P==="__self"||P==="__source"||P==="ref"&&n.ref===void 0||(l[P]=n[P])}var P=arguments.length-2;if(P===1)l.children=u;else if(1<P){m=Array(P);for(var T=0;T<P;T++)m[T]=arguments[T+2];l.children=m}for(l=oe(e.type,p,void 0,void 0,v,l),p=2;p<arguments.length;p++)Te(arguments[p],l.type);return l},t.createContext=function(e){return e={$$typeof:Pe,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:je,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},t.createElement=function(e,n,u){if(ee(e))for(var l=2;l<arguments.length;l++)Te(arguments[l],e);else{if(l="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null)var p="null";else N(e)?p="array":e!==void 0&&e.$$typeof===b?(p="<"+(q(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):p=typeof e;console.error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",p,l)}var v;if(l={},p=null,n!=null)for(v in Ct||!("__self"in n)||"key"in n||(Ct=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),me(n)&&(V(n.key),p=""+n.key),n)J.call(n,v)&&v!=="key"&&v!=="__self"&&v!=="__source"&&(l[v]=n[v]);var m=arguments.length-2;if(m===1)l.children=u;else if(1<m){for(var P=Array(m),T=0;T<m;T++)P[T]=arguments[T+2];Object.freeze&&Object.freeze(P),l.children=P}if(e&&e.defaultProps)for(v in m=e.defaultProps,m)l[v]===void 0&&(l[v]=m[v]);return p&&ge(l,typeof e=="function"?e.displayName||e.name||"Unknown":e),oe(e,p,void 0,void 0,re(),l)},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){e!=null&&e.$$typeof===ke?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?console.error("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&e.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var n={$$typeof:Ae,render:e},u;return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(l){u=l,e.name||e.displayName||(Object.defineProperty(e,"name",{value:l}),e.displayName=l)}}),n},t.isValidElement=L,t.lazy=function(e){return{$$typeof:we,_payload:{_status:-1,_result:e},_init:Ye}},t.memo=function(e,n){ee(e)||console.error("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e),n={$$typeof:ke,type:e,compare:n===void 0?null:n};var u;return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(l){u=l,e.name||e.displayName||(Object.defineProperty(e,"name",{value:l}),e.displayName=l)}}),n},t.startTransition=function(e){var n=E.T,u={};E.T=u,u._updatedFibers=new Set;try{var l=e(),p=E.S;p!==null&&p(u,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(s,jt)}catch(v){jt(v)}finally{n===null&&u._updatedFibers&&(e=u._updatedFibers.size,u._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),E.T=n}},t.unstable_useCacheRefresh=function(){return j().useCacheRefresh()},t.use=function(e){return j().use(e)},t.useActionState=function(e,n,u){return j().useActionState(e,n,u)},t.useCallback=function(e,n){return j().useCallback(e,n)},t.useContext=function(e){var n=j();return e.$$typeof===je&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),n.useContext(e)},t.useDebugValue=function(e,n){return j().useDebugValue(e,n)},t.useDeferredValue=function(e,n){return j().useDeferredValue(e,n)},t.useEffect=function(e,n){return j().useEffect(e,n)},t.useId=function(){return j().useId()},t.useImperativeHandle=function(e,n,u){return j().useImperativeHandle(e,n,u)},t.useInsertionEffect=function(e,n){return j().useInsertionEffect(e,n)},t.useLayoutEffect=function(e,n){return j().useLayoutEffect(e,n)},t.useMemo=function(e,n){return j().useMemo(e,n)},t.useOptimistic=function(e,n){return j().useOptimistic(e,n)},t.useReducer=function(e,n,u){return j().useReducer(e,n,u)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().useState(e)},t.useSyncExternalStore=function(e,n,u){return j().useSyncExternalStore(e,n,u)},t.useTransition=function(){return j().useTransition()},t.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(We,We.exports)),We.exports}var pt;function mt(){return pt||(pt=1,process.env.NODE_ENV==="production"?Ge.exports=Ft():Ge.exports=Gt()),Ge.exports}/**
53
+ * @license React
54
+ * react-jsx-runtime.development.js
55
+ *
56
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
57
+ *
58
+ * This source code is licensed under the MIT license found in the
59
+ * LICENSE file in the root directory of this source tree.
60
+ */var gt;function Kt(){return gt||(gt=1,process.env.NODE_ENV!=="production"&&function(){function r(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===Ye?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case oe:return"Fragment";case k:return"Portal";case Te:return"Profiler";case ve:return"StrictMode";case ce:return"Suspense";case ne:return"SuspenseList"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case Se:return(o.displayName||"Context")+".Provider";case L:return(o._context.displayName||"Context")+".Consumer";case ye:var d=o.render;return o=o.displayName,o||(o=d.displayName||d.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Ee:return d=o.displayName||null,d!==null?d:r(o.type)||"Memo";case Q:d=o._payload,o=o._init;try{return r(o(d))}catch{}}return null}function t(o){return""+o}function i(o){try{t(o);var d=!1}catch{d=!0}if(d){d=console;var h=d.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return h.call(d,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(o)}}function f(){}function c(){if(w===0){A=console.log,b=console.info,W=console.warn,D=console.error,_e=console.group,He=console.groupCollapsed,je=console.groupEnd;var o={configurable:!0,enumerable:!0,value:f,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}w++}function g(){if(w--,w===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:a({},o,{value:A}),info:a({},o,{value:b}),warn:a({},o,{value:W}),error:a({},o,{value:D}),group:a({},o,{value:_e}),groupCollapsed:a({},o,{value:He}),groupEnd:a({},o,{value:je})})}0>w&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function S(o){if(Pe===void 0)try{throw Error()}catch(h){var d=h.stack.trim().match(/\n( *(at )?)/);Pe=d&&d[1]||"",Ae=-1<h.stack.indexOf(`
61
+ at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
62
+ `+Pe+o+Ae}function M(o,d){if(!o||be)return"";var h=Ne.get(o);if(h!==void 0)return h;be=!0,h=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var O=null;O=j.H,j.H=null,c();try{var x={DetermineComponentFrameRoot:function(){try{if(d){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(X){var De=X}Reflect.construct(o,[],Z)}else{try{Z.call()}catch(X){De=X}o.call(Z.prototype)}}else{try{throw Error()}catch(X){De=X}(Z=o())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(X){if(X&&De&&typeof X.stack=="string")return[X.stack,De.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var N=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");N&&N.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=x.DetermineComponentFrameRoot(),E=C[0],J=C[1];if(E&&J){var U=E.split(`
63
+ `),G=J.split(`
64
+ `);for(C=N=0;N<U.length&&!U[N].includes("DetermineComponentFrameRoot");)N++;for(;C<G.length&&!G[C].includes("DetermineComponentFrameRoot");)C++;if(N===U.length||C===G.length)for(N=U.length-1,C=G.length-1;1<=N&&0<=C&&U[N]!==G[C];)C--;for(;1<=N&&0<=C;N--,C--)if(U[N]!==G[C]){if(N!==1||C!==1)do if(N--,C--,0>C||U[N]!==G[C]){var Ce=`
65
+ `+U[N].replace(" at new "," at ");return o.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",o.displayName)),typeof o=="function"&&Ne.set(o,Ce),Ce}while(1<=N&&0<=C);break}}}finally{be=!1,j.H=O,g(),Error.prepareStackTrace=h}return U=(U=o?o.displayName||o.name:"")?S(U):"",typeof o=="function"&&Ne.set(o,U),U}function I(o){if(o==null)return"";if(typeof o=="function"){var d=o.prototype;return M(o,!(!d||!d.isReactComponent))}if(typeof o=="string")return S(o);switch(o){case ce:return S("Suspense");case ne:return S("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case ye:return o=M(o.render,!1),o;case Ee:return I(o.type);case Q:d=o._payload,o=o._init;try{return I(o(d))}catch{}}return""}function V(){var o=j.A;return o===null?null:o.getOwner()}function q(o){if(s.call(o,"key")){var d=Object.getOwnPropertyDescriptor(o,"key").get;if(d&&d.isReactWarning)return!1}return o.key!==void 0}function ee(o,d){function h(){we||(we=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",d))}h.isReactWarning=!0,Object.defineProperty(o,"key",{get:h,configurable:!0})}function pe(){var o=r(this.type);return Ke[o]||(Ke[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function ie(o,d,h,O,x,N){return h=N.ref,o={$$typeof:ge,type:o,key:d,props:N,_owner:x},(h!==void 0?h:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:pe}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function ue(o,d,h,O,x,N){if(typeof o=="string"||typeof o=="function"||o===oe||o===Te||o===ve||o===ce||o===ne||o===F||typeof o=="object"&&o!==null&&(o.$$typeof===Q||o.$$typeof===Ee||o.$$typeof===Se||o.$$typeof===L||o.$$typeof===ye||o.$$typeof===_||o.getModuleId!==void 0)){var C=d.children;if(C!==void 0)if(O)if(y(C)){for(O=0;O<C.length;O++)te(C[O],o);Object.freeze&&Object.freeze(C)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else te(C,o)}else C="",(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),o===null?O="null":y(o)?O="array":o!==void 0&&o.$$typeof===ge?(O="<"+(r(o.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):O=typeof o,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,C);if(s.call(d,"key")){C=r(o);var E=Object.keys(d).filter(function(U){return U!=="key"});O=0<E.length?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}",Ve[C+O]||(E=0<E.length?"{"+E.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
66
+ let props = %s;
67
+ <%s {...props} />
68
+ React keys must be passed directly to JSX without using spread:
69
+ let props = %s;
70
+ <%s key={someKey} {...props} />`,O,C,E,C),Ve[C+O]=!0)}if(C=null,h!==void 0&&(i(h),C=""+h),q(d)&&(i(d.key),C=""+d.key),"key"in d){h={};for(var J in d)J!=="key"&&(h[J]=d[J])}else h=d;return C&&ee(h,typeof o=="function"?o.displayName||o.name||"Unknown":o),ie(o,C,N,x,V(),h)}function te(o,d){if(typeof o=="object"&&o&&o.$$typeof!==ke){if(y(o))for(var h=0;h<o.length;h++){var O=o[h];B(O)&&ae(O,d)}else if(B(o))o._store&&(o._store.validated=1);else if(o===null||typeof o!="object"?h=null:(h=le&&o[le]||o["@@iterator"],h=typeof h=="function"?h:null),typeof h=="function"&&h!==o.entries&&(h=h.call(o),h!==o))for(;!(o=h.next()).done;)B(o.value)&&ae(o.value,d)}}function B(o){return typeof o=="object"&&o!==null&&o.$$typeof===ge}function ae(o,d){if(o._store&&!o._store.validated&&o.key==null&&(o._store.validated=1,d=re(d),!Be[d])){Be[d]=!0;var h="";o&&o._owner!=null&&o._owner!==V()&&(h=null,typeof o._owner.tag=="number"?h=r(o._owner.type):typeof o._owner.name=="string"&&(h=o._owner.name),h=" It was passed a child from "+h+".");var O=j.getCurrentStack;j.getCurrentStack=function(){var x=I(o.type);return O&&(x+=O()||""),x},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',d,h),j.getCurrentStack=O}}function re(o){var d="",h=V();return h&&(h=r(h.type))&&(d=`
42
71
 
43
- Check your code at `+r+":"+i+"."}return""}function sn(e){return e!=null?on(e.__source):""}var Nt={};function an(e){var r=It();if(!r){var i=typeof e=="string"?e:e.displayName||e.name;i&&(r=`
72
+ Check the render method of \``+h+"`."),d||(o=r(o))&&(d=`
44
73
 
45
- Check the top-level render call using <`+i+">.")}return r}function Ft(e,r){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var i=an(r);if(!Nt[i]){Nt[i]=!0;var a="";e&&e._owner&&e._owner!==L.current&&(a=" It was passed a child from "+Z(e._owner.type)+"."),pe(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,a),pe(null)}}}function $t(e,r){if(typeof e=="object"){if(Te(e))for(var i=0;i<e.length;i++){var a=e[i];de(a)&&Ft(a,r)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var u=ce(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),d;!(d=p.next()).done;)de(d.value)&&Ft(d.value,r)}}}function Mt(e){{var r=e.type;if(r==null||typeof r=="string")return;var i;if(typeof r=="function")i=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===z||r.$$typeof===W))i=r.propTypes;else return;if(i){var a=Z(r);nn(i,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Xe){Xe=!0;var u=Z(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function un(e){{for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!=="children"&&a!=="key"){pe(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),pe(null);break}}e.ref!==null&&(pe(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),pe(null))}}function Lt(e,r,i){var a=Et(e);if(!a){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var p=sn(r);p?u+=p:u+=It();var d;e===null?d="null":Te(e)?d="array":e!==void 0&&e.$$typeof===c?(d="<"+(Z(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,h("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,u)}var m=Er.apply(this,arguments);if(m==null)return m;if(a)for(var b=2;b<arguments.length;b++)$t(arguments[b],e);return e===y?un(m):Mt(m),m}var Vt=!1;function cn(e){var r=Lt.bind(null,e);return r.type=e,Vt||(Vt=!0,X("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(r,"type",{enumerable:!1,get:function(){return X("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),r}function ln(e,r,i){for(var a=wr.apply(this,arguments),u=2;u<arguments.length;u++)$t(arguments[u],a.type);return Mt(a),a}function fn(e,r){var i=G.transition;G.transition={};var a=G.transition;G.transition._updatedFibers=new Set;try{e()}finally{if(G.transition=i,i===null&&a._updatedFibers){var u=a._updatedFibers.size;u>10&&X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),a._updatedFibers.clear()}}}var Ut=!1,Me=null;function dn(e){if(Me===null)try{var r=("require"+Math.random()).slice(0,7),i=n&&n[r];Me=i.call(n,"timers").setImmediate}catch{Me=function(u){Ut===!1&&(Ut=!0,typeof MessageChannel>"u"&&h("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var p=new MessageChannel;p.port1.onmessage=u,p.port2.postMessage(void 0)}}return Me(e)}var he=0,xt=!1;function pn(e){{var r=he;he++,A.current===null&&(A.current=[]);var i=A.isBatchingLegacy,a;try{if(A.isBatchingLegacy=!0,a=e(),!i&&A.didScheduleLegacyUpdate){var u=A.current;u!==null&&(A.didScheduleLegacyUpdate=!1,tt(u))}}catch(T){throw Le(r),T}finally{A.isBatchingLegacy=i}if(a!==null&&typeof a=="object"&&typeof a.then=="function"){var p=a,d=!1,m={then:function(T,j){d=!0,p.then(function(N){Le(r),he===0?Ze(N,T,j):T(N)},function(N){Le(r),j(N)})}};return!xt&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){d||(xt=!0,h("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),m}else{var b=a;if(Le(r),he===0){var C=A.current;C!==null&&(tt(C),A.current=null);var S={then:function(T,j){A.current===null?(A.current=[],Ze(b,T,j)):T(b)}};return S}else{var O={then:function(T,j){T(b)}};return O}}}}function Le(e){e!==he-1&&h("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),he=e}function Ze(e,r,i){{var a=A.current;if(a!==null)try{tt(a),dn(function(){a.length===0?(A.current=null,r(e)):Ze(e,r,i)})}catch(u){i(u)}else r(e)}}var et=!1;function tt(e){if(!et){et=!0;var r=0;try{for(;r<e.length;r++){var i=e[r];do i=i(!0);while(i!==null)}e.length=0}catch(a){throw e=e.slice(r+1),a}finally{et=!1}}}var hn=Lt,mn=ln,yn=cn,vn={map:Ae,forEach:Dr,count:Or,toArray:Tr,only:kr};t.Children=vn,t.Component=_,t.Fragment=y,t.Profiler=F,t.PureComponent=$,t.StrictMode=D,t.Suspense=H,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,t.cloneElement=mn,t.createContext=jr,t.createElement=hn,t.createFactory=yn,t.createRef=pr,t.forwardRef=Fr,t.isValidElement=de,t.lazy=Nr,t.memo=$r,t.startTransition=fn,t.unstable_act=pn,t.useCallback=Hr,t.useContext=Mr,t.useDebugValue=qr,t.useDeferredValue=Gr,t.useEffect=xr,t.useId=Jr,t.useImperativeHandle=zr,t.useInsertionEffect=Wr,t.useLayoutEffect=Yr,t.useMemo=Br,t.useReducer=Vr,t.useRef=Ur,t.useState=Lr,t.useSyncExternalStore=Qr,t.useTransition=Kr,t.version=s,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(ve,ve.exports)),ve.exports}process.env.NODE_ENV==="production"?We.exports=lr():We.exports=fr();var ue=We.exports;const U=cr(ue);class dr extends ue.Component{constructor(t){super(t),this.unfilteredDocuments=[],this.state={documents:[],mode:0}}async componentDidMount(){const{controller:t}=this.props;this.unsubscriber=t.onChange(s=>{s.documentCollection&&(this.unfilteredDocuments=s.documentCollection,this.setState({documents:t.filter(this.unfilteredDocuments)})),s.action==="filterChange"?this.setState({documents:t.filter(this.unfilteredDocuments)}):this.setState({})}),this.unfilteredDocuments=await t.documentCollection(),this.setState({documents:t.filter(this.unfilteredDocuments)})}componentWillUnmount(){var t;(t=this.unsubscriber)==null||t.call(this)}newDocument(){this.props.controller.newDocument(),this.setState({mode:1})}editDocument(t){this.props.controller.setDocument(t),this.setState({mode:2})}async storeDocument(t){const{controller:s,layout:c}=this.props;s.setDocument(t),await s.storeDocument(),c==="formAndItems"?this.newDocument():this.setState({mode:0})}invokeContentViewChild(t){const{children:s,layout:c,controller:l}=this.props,{mode:y}=this.state,D=c!=="formAndItems";if(!l.document)return;const F={controller:l,submitButtonCaption:y==2?t==null?void 0:t.updateButtonLabel:t==null?void 0:t.addButtonLabel,onSubmit:x=>this.storeDocument(x),onCancel:D?()=>this.setState({mode:0}):()=>this.newDocument()};return typeof s[0]=="function"?ue.cloneElement(s[0](F),{key:l.document.id}):ue.cloneElement(s[0],{key:l.document.id,...F})}invokeDetailViewChild(t){const{children:s,controller:c}=this.props,l={document:t,onSelect:y=>this.editDocument(y),onDelete:y=>c.setDocument(y).deleteDocument()};return typeof s[1]=="function"?ue.cloneElement(s[1](l),{key:t.id}):ue.cloneElement(s[1],{key:t.id,...l})}render(){var W;const{mode:t,documents:s}=this.state,{className:c,cardAddButton:l,controller:y}=this.props,D=ar((W=y.document)==null?void 0:W.className);let F=this.props.labels||{};const x=this.props.layout||"itemsAlways";typeof F=="function"&&(F=F(y));const{addNewDocumentLabel:B,singularDocumentInCollectionCaption:z,documentsInCollectionCaption:H,noDocumentsFoundLabel:ne}=F;return U.createElement("div",{className:`crud-panel ${D} ${c||""}`},t===0&&x!=="formAndItems"&&!l&&U.createElement("div",{className:"header"},this.props.header?typeof this.props.header=="function"?this.props.header(y,()=>this.newDocument(),F):this.props.header:U.createElement("button",{onClick:()=>this.newDocument()},B)),(x==="formAndItems"||t===1||t===2)&&U.createElement("div",{className:"content-panel"},this.invokeContentViewChild(F)),(x==="itemsAlways"||x==="formAndItems"||t===0)&&U.createElement("div",{className:"collection-panel"},(s==null?void 0:s.length)>0&&U.createElement("h3",null,s.length>1?H:z||H),U.createElement("div",{className:"documents"},l&&U.createElement("div",{className:"crud-card card-add-button clickable",onClick:()=>this.newDocument()},U.createElement("div",{className:"button-element"},l),U.createElement("div",{className:"add-label"},B)),s!=null&&s.length?s.map(q=>this.invokeDetailViewChild(q)):U.createElement("p",null,ne))),U.createElement("div",{className:"footer"},this.props.footer&&typeof this.props.footer=="function"?this.props.footer(y,()=>this.newDocument(),F):this.props.footer))}}ee.CrudController=xe,ee.CrudPanel=dr,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})});
74
+ Check the top-level render call using <`+o+">."),d}var me=mt(),ge=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),Te=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),Se=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),Ee=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),F=Symbol.for("react.offscreen"),le=Symbol.iterator,Ye=Symbol.for("react.client.reference"),j=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,s=Object.prototype.hasOwnProperty,a=Object.assign,_=Symbol.for("react.client.reference"),y=Array.isArray,w=0,A,b,W,D,_e,He,je;f.__reactDisabledLog=!0;var Pe,Ae,be=!1,Ne=new(typeof WeakMap=="function"?WeakMap:Map),ke=Symbol.for("react.client.reference"),we,Ke={},Ve={},Be={};Le.Fragment=oe,Le.jsx=function(o,d,h,O,x){return ue(o,d,h,!1,O,x)},Le.jsxs=function(o,d,h,O,x){return ue(o,d,h,!0,O,x)}}()),Le}var vt;function Qt(){return vt||(vt=1,process.env.NODE_ENV==="production"?Fe.exports=Bt():Fe.exports=Kt()),Fe.exports}var K=Qt(),ze=mt();class Xt extends ze.Component{constructor(t){super(t),this.unfilteredDocuments=[],this.state={documents:[],mode:0}}async componentDidMount(){const{controller:t}=this.props;this.unsubscriber=t.onChange(i=>{i.documentCollection&&(this.unfilteredDocuments=i.documentCollection,this.setState({documents:t.filter(this.unfilteredDocuments)})),i.action==="filterChange"?this.setState({documents:t.filter(this.unfilteredDocuments)}):this.setState({})}),this.unfilteredDocuments=await t.documentCollection(),this.setState({documents:t.filter(this.unfilteredDocuments)})}componentWillUnmount(){var t;(t=this.unsubscriber)==null||t.call(this)}newDocument(){this.props.controller.newDocument(),this.setState({mode:1})}editDocument(t){this.props.controller.setDocument(t),this.setState({mode:2})}async storeDocument(t){const{controller:i,layout:f}=this.props;i.setDocument(t),await i.storeDocument(),f==="formAndItems"?this.newDocument():this.setState({mode:0})}invokeContentViewChild(t){const{children:i,layout:f,controller:c}=this.props,{mode:g}=this.state,S=f!=="formAndItems";if(!c.document)return;const M={controller:c,submitButtonCaption:g==2?t==null?void 0:t.updateButtonLabel:t==null?void 0:t.addButtonLabel,onSubmit:I=>this.storeDocument(I),onCancel:S?()=>this.setState({mode:0}):()=>this.newDocument()};return typeof i[0]=="function"?ze.cloneElement(i[0](M),{key:c.document.id}):ze.cloneElement(i[0],{key:c.document.id,...M})}invokeDetailViewChild(t){const{children:i,controller:f}=this.props,c={document:t,onSelect:g=>this.editDocument(g),onDelete:g=>f.setDocument(g).deleteDocument()};return typeof i[1]=="function"?ze.cloneElement(i[1](c),{key:t.id}):ze.cloneElement(i[1],{key:t.id,...c})}render(){var ie;const{mode:t,documents:i}=this.state,{className:f,cardAddButton:c,controller:g}=this.props,S=zt((ie=g.document)==null?void 0:ie.className);let M=this.props.labels||{};const I=this.props.layout||"itemsAlways";typeof M=="function"&&(M=M(g));const{addNewDocumentLabel:V,singularDocumentInCollectionCaption:q,documentsInCollectionCaption:ee,noDocumentsFoundLabel:pe}=M;return K.jsxs("div",{className:`crud-panel ${S} ${f||""}`,children:[t===0&&I!=="formAndItems"&&!c&&K.jsx("div",{className:"header",children:this.props.header?typeof this.props.header=="function"?this.props.header(g,()=>this.newDocument(),M):this.props.header:K.jsx("button",{onClick:()=>this.newDocument(),children:V})}),(I==="formAndItems"||t===1||t===2)&&K.jsx("div",{className:"content-panel",children:this.invokeContentViewChild(M)}),(I==="itemsAlways"||I==="formAndItems"||t===0)&&K.jsxs("div",{className:"collection-panel",children:[(i==null?void 0:i.length)>0&&K.jsx("h3",{children:i.length>1?ee:q||ee}),K.jsxs("div",{className:"documents",children:[c&&K.jsxs("div",{className:"crud-card card-add-button clickable",onClick:()=>this.newDocument(),children:[K.jsx("div",{className:"button-element",children:c}),K.jsx("div",{className:"add-label",children:V})]}),i!=null&&i.length?i.map(ue=>this.invokeDetailViewChild(ue)):K.jsx("p",{children:pe})]})]}),K.jsx("div",{className:"footer",children:this.props.footer&&typeof this.props.footer=="function"?this.props.footer(g,()=>this.newDocument(),M):this.props.footer})]})}}Re.CrudController=rt,Re.CrudPanel=Xt,Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"})});
46
75
  //# sourceMappingURL=entropic-bond-crud-panel.umd.cjs.map