diff --git a/lib/platform-bible-react/dist/index.cjs b/lib/platform-bible-react/dist/index.cjs index 79211f272d..4b3af9ccfb 100644 --- a/lib/platform-bible-react/dist/index.cjs +++ b/lib/platform-bible-react/dist/index.cjs @@ -1,23 +1,23 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),k=require("react"),Vs=require("platform-bible-utils"),Fs=require("@radix-ui/react-dropdown-menu"),fe=require("lucide-react"),Ne=require("clsx"),Wi=require("tailwind-merge"),mt=require("@tanstack/react-table"),Xi=require("@radix-ui/react-slot"),Kr=require("class-variance-authority"),Yi=require("@radix-ui/react-select"),ve=require("@mui/material"),Ar=require("@mui/styled-engine"),rn=require("react-dom"),Gi=require("@radix-ui/react-label"),Ki=require("@radix-ui/react-tabs"),Ji=require("@radix-ui/react-slider"),Zi=require("@radix-ui/react-switch");function ct(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const T=ct(k),he=ct(Fs),ye=ct(Yi),Qi=ct(rn),zs=ct(Gi),_e=ct(Ki),on=ct(Ji),Dr=ct(Zi);var el=Object.defineProperty,tl=(e,t,n)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,re=(e,t,n)=>tl(e,typeof t!="symbol"?t+"":t,n);const Tt=["GEN","EXO","LEV","NUM","DEU","JOS","JDG","RUT","1SA","2SA","1KI","2KI","1CH","2CH","EZR","NEH","EST","JOB","PSA","PRO","ECC","SNG","ISA","JER","LAM","EZK","DAN","HOS","JOL","AMO","OBA","JON","MIC","NAM","HAB","ZEP","HAG","ZEC","MAL","MAT","MRK","LUK","JHN","ACT","ROM","1CO","2CO","GAL","EPH","PHP","COL","1TH","2TH","1TI","2TI","TIT","PHM","HEB","JAS","1PE","2PE","1JN","2JN","3JN","JUD","REV","TOB","JDT","ESG","WIS","SIR","BAR","LJE","S3Y","SUS","BEL","1MA","2MA","3MA","4MA","1ES","2ES","MAN","PS2","ODA","PSS","JSA","JDB","TBS","SST","DNT","BLT","XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","3ES","EZA","5EZ","6EZ","INT","CNC","GLO","TDX","NDX","DAG","PS3","2BA","LBA","JUB","ENO","1MQ","2MQ","3MQ","REP","4BA","LAO"],Jr=["XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","INT","CNC","GLO","TDX","NDX"],Us=["Genesis","Exodus","Leviticus","Numbers","Deuteronomy","Joshua","Judges","Ruth","1 Samuel","2 Samuel","1 Kings","2 Kings","1 Chronicles","2 Chronicles","Ezra","Nehemiah","Esther (Hebrew)","Job","Psalms","Proverbs","Ecclesiastes","Song of Songs","Isaiah","Jeremiah","Lamentations","Ezekiel","Daniel (Hebrew)","Hosea","Joel","Amos","Obadiah","Jonah","Micah","Nahum","Habakkuk","Zephaniah","Haggai","Zechariah","Malachi","Matthew","Mark","Luke","John","Acts","Romans","1 Corinthians","2 Corinthians","Galatians","Ephesians","Philippians","Colossians","1 Thessalonians","2 Thessalonians","1 Timothy","2 Timothy","Titus","Philemon","Hebrews","James","1 Peter","2 Peter","1 John","2 John","3 John","Jude","Revelation","Tobit","Judith","Esther Greek","Wisdom of Solomon","Sirach (Ecclesiasticus)","Baruch","Letter of Jeremiah","Song of 3 Young Men","Susanna","Bel and the Dragon","1 Maccabees","2 Maccabees","3 Maccabees","4 Maccabees","1 Esdras (Greek)","2 Esdras (Latin)","Prayer of Manasseh","Psalm 151","Odes","Psalms of Solomon","Joshua A. *obsolete*","Judges B. *obsolete*","Tobit S. *obsolete*","Susanna Th. *obsolete*","Daniel Th. *obsolete*","Bel Th. *obsolete*","Extra A","Extra B","Extra C","Extra D","Extra E","Extra F","Extra G","Front Matter","Back Matter","Other Matter","3 Ezra *obsolete*","Apocalypse of Ezra","5 Ezra (Latin Prologue)","6 Ezra (Latin Epilogue)","Introduction","Concordance ","Glossary ","Topical Index","Names Index","Daniel Greek","Psalms 152-155","2 Baruch (Apocalypse)","Letter of Baruch","Jubilees","Enoch","1 Meqabyan","2 Meqabyan","3 Meqabyan","Reproof (Proverbs 25-31)","4 Baruch (Rest of Baruch)","Laodiceans"],zo=ul();function Ht(e,t=!0){return t&&(e=e.toUpperCase()),e in zo?zo[e]:0}function Zr(e){return Ht(e)>0}function nl(e){const t=typeof e=="string"?Ht(e):e;return t>=40&&t<=66}function rl(e){return(typeof e=="string"?Ht(e):e)<=39}function Hs(e){return e<=66}function ol(e){const t=typeof e=="string"?Ht(e):e;return Xs(t)&&!Hs(t)}function*sl(){for(let e=1;e<=Tt.length;e++)yield e}const al=1,qs=Tt.length;function il(){return["XXA","XXB","XXC","XXD","XXE","XXF","XXG"]}function Qr(e,t="***"){const n=e-1;return n<0||n>=Tt.length?t:Tt[n]}function Ws(e){return e<=0||e>qs?"******":Us[e-1]}function ll(e){return Ws(Ht(e))}function Xs(e){const t=typeof e=="number"?Qr(e):e;return Zr(t)&&!Jr.includes(t)}function cl(e){const t=typeof e=="number"?Qr(e):e;return Zr(t)&&Jr.includes(t)}function pl(e){return Us[e-1].includes("*obsolete*")}function ul(){const e={};for(let t=0;t(e[e.Unknown=0]="Unknown",e[e.Original=1]="Original",e[e.Septuagint=2]="Septuagint",e[e.Vulgate=3]="Vulgate",e[e.English=4]="English",e[e.RussianProtestant=5]="RussianProtestant",e[e.RussianOrthodox=6]="RussianOrthodox",e))(Xe||{});const Ae=class{constructor(t){if(re(this,"name"),re(this,"fullPath"),re(this,"isPresent"),re(this,"hasVerseSegments"),re(this,"isCustomized"),re(this,"baseVersification"),re(this,"scriptureBooks"),re(this,"_type"),t==null)throw new Error("Argument undefined");typeof t=="string"?(this.name=t,this._type=Xe[t]):(this._type=t,this.name=Xe[t])}get type(){return this._type}equals(t){return!t.type||!this.type?!1:t.type===this.type}};re(Ae,"Original",new Ae(Xe.Original)),re(Ae,"Septuagint",new Ae(Xe.Septuagint)),re(Ae,"Vulgate",new Ae(Xe.Vulgate)),re(Ae,"English",new Ae(Xe.English)),re(Ae,"RussianProtestant",new Ae(Xe.RussianProtestant)),re(Ae,"RussianOrthodox",new Ae(Xe.RussianOrthodox));let gt=Ae;function Uo(e,t){const n=t[0];for(let r=1;r(e[e.Valid=0]="Valid",e[e.UnknownVersification=1]="UnknownVersification",e[e.OutOfRange=2]="OutOfRange",e[e.VerseOutOfOrder=3]="VerseOutOfOrder",e[e.VerseRepeated=4]="VerseRepeated",e))(Ys||{});const Re=class ae{constructor(t,n,r,o){if(re(this,"firstChapter"),re(this,"lastChapter"),re(this,"lastVerse"),re(this,"hasSegmentsDefined"),re(this,"text"),re(this,"BBBCCCVVVS"),re(this,"longHashCode"),re(this,"versification"),re(this,"rtlMark","‏"),re(this,"_bookNum",0),re(this,"_chapterNum",0),re(this,"_verseNum",0),re(this,"_verse"),r==null&&o==null)if(t!=null&&typeof t=="string"){const s=t,i=n!=null&&n instanceof gt?n:void 0;this.setEmpty(i),this.parse(s)}else if(t!=null&&typeof t=="number"){const s=n!=null&&n instanceof gt?n:void 0;this.setEmpty(s),this._verseNum=t%ae.chapterDigitShifter,this._chapterNum=Math.floor(t%ae.bookDigitShifter/ae.chapterDigitShifter),this._bookNum=Math.floor(t/ae.bookDigitShifter)}else if(n==null)if(t!=null&&t instanceof ae){const s=t;this._bookNum=s.bookNum,this._chapterNum=s.chapterNum,this._verseNum=s.verseNum,this._verse=s.verse,this.versification=s.versification}else{if(t==null)return;const s=t instanceof gt?t:ae.defaultVersification;this.setEmpty(s)}else throw new Error("VerseRef constructor not supported.");else if(t!=null&&n!=null&&r!=null)if(typeof t=="string"&&typeof n=="string"&&typeof r=="string")this.setEmpty(o),this.updateInternal(t,n,r);else if(typeof t=="number"&&typeof n=="number"&&typeof r=="number")this._bookNum=t,this._chapterNum=n,this._verseNum=r,this.versification=o??ae.defaultVersification;else throw new Error("VerseRef constructor not supported.");else throw new Error("VerseRef constructor not supported.")}static isVerseParseable(t){return t.length>0&&"0123456789".includes(t[0])&&!t.endsWith(this.verseRangeSeparator)&&!t.endsWith(this.verseSequenceIndicator)}static tryParse(t){let n;try{return n=new ae(t),{success:!0,verseRef:n}}catch(r){if(r instanceof Jt)return n=new ae,{success:!1,verseRef:n};throw r}}static getBBBCCCVVV(t,n,r){return t%ae.bcvMaxValue*ae.bookDigitShifter+(n>=0?n%ae.bcvMaxValue*ae.chapterDigitShifter:0)+(r>=0?r%ae.bcvMaxValue:0)}static fromJSON(t){const{book:n,chapterNum:r,verseNum:o,verse:s,versificationStr:i}=t,l=s||o.toString();let c;return i&&(c=new gt(i)),n?new ae(n,r.toString(),l,c):new ae}static tryGetVerseNum(t){let n;if(!t)return n=-1,{success:!0,vNum:n};n=0;let r;for(let o=0;o"9")return o===0&&(n=-1),{success:!1,vNum:n};if(n=n*10+ +r-0,n>ae.bcvMaxValue)return n=-1,{success:!1,vNum:n}}return{success:!0,vNum:n}}get isDefault(){return this.bookNum===0&&this.chapterNum===0&&this.verseNum===0&&this.versification==null}get hasMultiple(){return this._verse!=null&&(this._verse.includes(ae.verseRangeSeparator)||this._verse.includes(ae.verseSequenceIndicator))}get book(){return de.bookNumberToId(this.bookNum,"")}set book(t){this.bookNum=de.bookIdToNumber(t)}get chapter(){return this.isDefault||this._chapterNum<0?"":this._chapterNum.toString()}set chapter(t){const n=+t;this._chapterNum=Number.isInteger(n)?n:-1}get verse(){return this._verse!=null?this._verse:this.isDefault||this._verseNum<0?"":this._verseNum.toString()}set verse(t){const{success:n,vNum:r}=ae.tryGetVerseNum(t);this._verse=n?void 0:t.replace(this.rtlMark,""),this._verseNum=r,!(this._verseNum>=0)&&({vNum:this._verseNum}=ae.tryGetVerseNum(this._verse))}get bookNum(){return this._bookNum}set bookNum(t){if(t<=0||t>de.lastBook)throw new Jt("BookNum must be greater than zero and less than or equal to last book");this._bookNum=t}get chapterNum(){return this._chapterNum}set chapterNum(t){this.chapterNum=t}get verseNum(){return this._verseNum}set verseNum(t){this._verseNum=t}get versificationStr(){var t;return(t=this.versification)==null?void 0:t.name}set versificationStr(t){this.versification=this.versification!=null?new gt(t):void 0}get valid(){return this.validStatus===0}get validStatus(){return this.validateVerse(ae.verseRangeSeparators,ae.verseSequenceIndicators)}get BBBCCC(){return ae.getBBBCCCVVV(this._bookNum,this._chapterNum,0)}get BBBCCCVVV(){return ae.getBBBCCCVVV(this._bookNum,this._chapterNum,this._verseNum)}get isExcluded(){return!1}parse(t){if(t=t.replace(this.rtlMark,""),t.includes("/")){const s=t.split("/");if(t=s[0],s.length>1)try{const i=+s[1].trim();this.versification=new gt(Xe[i])}catch{throw new Jt("Invalid reference : "+t)}}const n=t.trim().split(" ");if(n.length!==2)throw new Jt("Invalid reference : "+t);const r=n[1].split(":"),o=+r[0];if(r.length!==2||de.bookIdToNumber(n[0])===0||!Number.isInteger(o)||o<0||!ae.isVerseParseable(r[1]))throw new Jt("Invalid reference : "+t);this.updateInternal(n[0],r[0],r[1])}simplify(){this._verse=void 0}clone(){return new ae(this)}toString(){const t=this.book;return t===""?"":`${t} ${this.chapter}:${this.verse}`}toJSON(){let t=this.verse;return(t===""||t===this.verseNum.toString())&&(t=void 0),{book:this.book,chapterNum:this.chapterNum,verseNum:this.verseNum,verse:t,versificationStr:this.versificationStr}}equals(t){return t instanceof ae?t._bookNum===this._bookNum&&t._chapterNum===this._chapterNum&&t._verseNum===this._verseNum&&t.verse===this.verse&&(t.versification==null&&this.versification==null||t.versification!=null&&this.versification!=null&&t.versification.equals(this.versification)):!1}allVerses(t=!1,n=ae.verseRangeSeparators,r=ae.verseSequenceIndicators){if(this._verse==null||this.chapterNum<=0)return[this.clone()];const o=[],s=Uo(this._verse,r);for(const i of s.map(l=>Uo(l,n))){const l=this.clone();l.verse=i[0];const c=l.verseNum;if(o.push(l),i.length>1){const u=this.clone();if(u.verse=i[1],!t)for(let d=c+1;di)return 3;if(r===i)return 4;r=i}return 0}get internalValid(){return this.versification==null?1:this._bookNum<=0||this._bookNum>de.lastBook?2:(de.isCanonical(this._bookNum),0)}setEmpty(t=ae.defaultVersification){this._bookNum=0,this._chapterNum=-1,this._verse=void 0,this.versification=t}updateInternal(t,n,r){this.bookNum=de.bookIdToNumber(t),this.chapter=n,this.verse=r}};re(Re,"defaultVersification",gt.English),re(Re,"verseRangeSeparator","-"),re(Re,"verseSequenceIndicator",","),re(Re,"verseRangeSeparators",[Re.verseRangeSeparator]),re(Re,"verseSequenceIndicators",[Re.verseSequenceIndicator]),re(Re,"chapterDigitShifter",1e3),re(Re,"bookDigitShifter",Re.chapterDigitShifter*Re.chapterDigitShifter),re(Re,"bcvMaxValue",Re.chapterDigitShifter-1),re(Re,"ValidStatusType",Ys);class Jt extends Error{}const dl=Wi.extendTailwindMerge({prefix:"pr-"});function G(...e){return dl(Ne.clsx(e))}const eo=he.Root,Gs=he.Trigger,fl=he.Group,hl=he.Portal,ml=he.Sub,gl=he.RadioGroup,Ks=k.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(he.SubTrigger,{ref:o,className:G("pr-flex pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-px-2 pr-py-1.5 pr-text-sm pr-outline-none focus:pr-bg-accent data-[state=open]:pr-bg-accent",t&&"pr-pl-8",e),...r,children:[n,p.jsx(fe.ChevronRight,{className:"pr-ml-auto pr-h-4 pr-w-4"})]}));Ks.displayName=he.SubTrigger.displayName;const Js=k.forwardRef(({className:e,...t},n)=>p.jsx(he.SubContent,{ref:n,className:G("pr-z-50 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-p-1 pr-text-popover-foreground pr-shadow-lg data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2",e),...t}));Js.displayName=he.SubContent.displayName;const tr=k.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(he.Portal,{children:p.jsx(he.Content,{ref:r,sideOffset:t,className:G("pr-twp pr-z-50 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-p-1 pr-font-sans pr-text-popover-foreground pr-shadow-md data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2",e),...n})}));tr.displayName=he.Content.displayName;const to=k.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(he.Item,{ref:r,className:G("pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-px-2 pr-py-1.5 pr-text-sm pr-outline-none pr-transition-colors focus:pr-bg-accent data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50",t&&"pr-pl-8",e),...n}));to.displayName=he.Item.displayName;const no=k.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(he.CheckboxItem,{ref:o,className:G("pr-relative pr-flex pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-outline-none pr-transition-colors focus:pr-bg-accent focus:pr-text-accent-foreground data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center",children:p.jsx(he.ItemIndicator,{children:p.jsx(fe.Check,{className:"pr-h-4 pr-w-4"})})}),t]}));no.displayName=he.CheckboxItem.displayName;const Zs=k.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(he.RadioItem,{ref:r,className:G("pr-relative pr-flex pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-outline-none pr-transition-colors focus:pr-bg-accent focus:pr-text-accent-foreground data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50",e),...n,children:[p.jsx("span",{className:"pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center",children:p.jsx(he.ItemIndicator,{children:p.jsx(fe.Circle,{className:"pr-h-2 pr-w-2 pr-fill-current"})})}),t]}));Zs.displayName=he.RadioItem.displayName;const En=k.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(he.Label,{ref:r,className:G("pr-px-2 pr-py-1.5 pr-text-sm pr-font-semibold",t&&"pr-pl-8",e),...n}));En.displayName=he.Label.displayName;const nr=k.forwardRef(({className:e,...t},n)=>p.jsx(he.Separator,{ref:n,className:G("pr--mx-1 pr-my-1 pr-h-px pr-bg-muted",e),...t}));nr.displayName=he.Separator.displayName;function Qs({className:e,...t}){return p.jsx("span",{className:G("pr-ml-auto pr-text-xs pr-tracking-widest pr-opacity-60",e),...t})}Qs.displayName="DropdownMenuShortcut";const Tn=k.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:G("pr-flex pr-h-10 pr-rounded-md pr-bg-background pr-px-3 pr-py-2 pr-text-sm pr-ring-offset-background file:pr-border-0 file:pr-bg-transparent file:pr-text-sm file:pr-font-medium placeholder:pr-text-muted-foreground disabled:pr-cursor-not-allowed disabled:pr-opacity-50",e),ref:r,...n}));Tn.displayName="Input";const bl=k.forwardRef(({handleSearch:e,handleKeyDown:t,handleOnClick:n,handleSubmit:r,...o},s)=>p.jsxs("div",{className:"pr-relative",children:[p.jsx(Tn,{...o,type:"text",className:"pr-box-border pr-gap-2.5 pr-rounded-lg pr-border pr-border-solid pr-border-black pr-bg-white pr-py-2 pr-pl-4 pr-pr-3 pr-font-medium pr-text-slate-900 pr-shadow-none pr-outline-none",onChange:i=>e(i.target.value),onKeyDown:i=>{i.key==="Enter"&&r(),t(i)},onClick:n,ref:s}),p.jsx(fe.History,{className:"pr-absolute pr-right-3 pr-top-1/2 pr-h-4 pr-w-4 pr--translate-y-1/2 pr-transform pr-cursor-pointer pr-text-gray-500",onClick:()=>{console.log("back in history")}})]}));function vl({handleSelectChapter:e,endChapter:t,activeChapter:n,highlightedChapter:r,handleHighlightedChapter:o}){const s=Array.from({length:t},(l,c)=>c+1),i=k.useCallback(l=>{o(l)},[o]);return p.jsx("div",{className:G("pr-flex pr-flex-wrap pr-items-start pr-justify-start pr-self-stretch"),children:s.map(l=>p.jsx("div",{className:G("pr-flex pr-h-4 pr-w-4 pr-cursor-pointer pr-items-center pr-justify-end pr-rounded-md pr-p-2 pr-text-amber-800",{"pr-font-semibold pr-text-amber-900":l===n,"pr-bg-amber-200":l===r}),onClick:c=>{c.preventDefault(),c.stopPropagation(),e(l)},role:"button",onKeyDown:c=>{c.key==="Enter"&&e(l)},tabIndex:0,onMouseMove:()=>i(l),children:l},l))})}const yl=k.forwardRef(({bookId:e,handleSelectBook:t,isSelected:n,handleHighlightBook:r,handleKeyDown:o,bookType:s,children:i},l)=>p.jsxs(to,{ref:l,textValue:e,className:G("pr-font-normal pr-text-slate-700",{"pr-bg-amber-50 pr-text-yellow-900 data-[highlighted]:pr-bg-amber-100":n}),onSelect:c=>{c.preventDefault(),t()},onKeyDown:c=>{o(c)},onFocus:r,onMouseMove:r,children:[p.jsx("span",{className:G("pr-border-b-0 pr-border-l-2 pr-border-r-0 pr-border-t-0 pr-border-solid pr-px-2",{"pr-font-bold":n,"pr-border-l-red-200":s.toLowerCase()==="ot","pr-border-l-purple-200":s.toLowerCase()==="nt","pr-border-l-indigo-200":s.toLowerCase()==="dc"}),children:de.bookIdToEnglishName(e)}),n&&p.jsx("div",{children:i})]},e));function wl({handleSort:e,handleLocationHistory:t,handleBookmarks:n}){return p.jsxs(En,{className:"pr-flex pr-justify-between",children:[p.jsx("p",{className:"pr-inline-block pr-align-middle",children:"Go To"}),p.jsxs("div",{className:"pr-flex pr-items-center",children:[p.jsx(fe.ArrowDownWideNarrow,{onClick:e,className:"pr-h-4 pr-w-4 pr-cursor-pointer pr-gap-2 pr-p-2"}),p.jsx(fe.Clock,{onClick:t,className:"pr-h-4 pr-w-4 pr-cursor-pointer pr-gap-2 pr-p-2"}),p.jsx(fe.Bookmark,{onClick:n,className:"pr-h-4 pr-w-4 pr-cursor-pointer pr-gap-2 pr-p-2"})]})]})}const cn=de.allBookIds,xl={OT:"Old Testament",NT:"New Testament",DC:"Deuterocanon"},Ho=["OT","NT","DC"],El=32+32+32,Tl=[/^(\w+)$/i,/^(\w+)(?:\s(\d+))$/i,/^(\w+)(?:\s(\d+):(\d+))$/i],kl=e=>({OT:cn.filter(n=>de.isBookOT(n)),NT:cn.filter(n=>de.isBookNT(n)),DC:cn.filter(n=>de.isBookDC(n))})[e],Zt=e=>Vs.getChaptersForBook(de.bookIdToNumber(e));function Nl(){return cn.map(t=>de.bookIdToEnglishName(t))}function Sl(e){return Nl().includes(e)}function Cl(e){const t=e.toLowerCase().replace(/^\w/,n=>n.toUpperCase());if(Sl(t))return cn.find(r=>de.bookIdToEnglishName(r)===t)}function Ol({scrRef:e,handleSubmit:t}){const[n,r]=k.useState(""),[o,s]=k.useState(de.bookNumberToId(e.bookNum)),[i,l]=k.useState(e.chapterNum??0),[c,u]=k.useState(de.bookNumberToId(e.bookNum)),[d,h]=k.useState(!1),[f,b]=k.useState(d),y=k.useRef(void 0),v=k.useRef(void 0),m=k.useRef(void 0),x=k.useCallback(O=>kl(O).filter($=>{const _=de.bookIdToEnglishName($).toLowerCase(),L=n.replace(/[^a-zA-Z]/g,"").toLowerCase();return _.includes(L)||$.toLowerCase().includes(L)}),[n]),I=O=>{r(O)},w=k.useRef(!1),E=k.useCallback(O=>{if(w.current){w.current=!1;return}h(O)},[]),g=k.useCallback((O,$,_,L)=>{if(l(de.bookNumberToId(e.bookNum)!==O?1:e.chapterNum),$||Zt(O)===-1){t({bookNum:de.bookIdToNumber(O),chapterNum:_||1,verseNum:L||1}),h(!1),r("");return}s(o!==O?O:""),h(!$)},[t,e.bookNum,e.chapterNum,o]),C=O=>{O<=0||O>Zt(o)||g(o,!0,O)},P=k.useCallback(()=>{Tl.forEach(O=>{const $=n.match(O);if($){const[_,L=void 0,U=void 0]=$.slice(1),R=Cl(_);(de.isBookIdValid(_)||R)&&g(R??_,!0,L?parseInt(L,10):1,U?parseInt(U,10):1)}})},[g,n]),V=k.useCallback(O=>{d?(O.key==="ArrowDown"||O.key==="ArrowUp")&&(typeof m<"u"&&m.current!==null?m.current.focus():typeof v<"u"&&v.current!==null&&v.current.focus(),O.preventDefault()):h(!0)},[d]),D=O=>{const{key:$}=O;$==="ArrowRight"||$==="ArrowLeft"||$==="ArrowDown"||$==="ArrowUp"||$==="Enter"||(y.current.dispatchEvent(new KeyboardEvent("keydown",{key:$})),y.current.focus())},F=O=>{const{key:$}=O;if(c===o){if($==="Enter"){O.preventDefault(),g(o,!0,i);return}let _=0;if($==="ArrowRight")if(i1)_=-1;else{O.preventDefault();return}else $==="ArrowDown"?_=6:$==="ArrowUp"&&(_=-6);i+_<=0||i+_>Zt(c)?l(0):_!==0&&(l(i+_),O.preventDefault())}};return k.useEffect(()=>{o===c?o===de.bookNumberToId(e.bookNum)?l(e.chapterNum):l(1):l(0)},[c,e.bookNum,e.chapterNum,o]),k.useLayoutEffect(()=>{b(d)},[d]),k.useLayoutEffect(()=>{const O=setTimeout(()=>{if(f&&v.current&&m.current){const _=m.current.offsetTop-El;v.current.scrollTo({top:_,behavior:"instant"})}},10);return()=>{clearTimeout(O)}},[f]),p.jsx("div",{className:"pr-flex",children:p.jsxs(eo,{modal:!1,open:d,onOpenChange:E,children:[p.jsx(Gs,{asChild:!0,children:p.jsx(bl,{ref:y,value:n,handleSearch:I,handleKeyDown:V,handleOnClick:()=>{s(de.bookNumberToId(e.bookNum)),u(de.bookNumberToId(e.bookNum)),l(e.chapterNum>0?e.chapterNum:0),h(!0),y.current.focus()},onFocus:()=>{w.current=!0},handleSubmit:P,placeholder:`${de.bookNumberToEnglishName(e.bookNum)} ${e.chapterNum}:${e.verseNum}`})}),p.jsxs(tr,{className:"pr-overflow-y-auto pr-font-normal pr-text-slate-700",style:{width:"233px",maxHeight:"500px"},onKeyDown:D,align:"start",ref:v,children:[p.jsx(wl,{handleSort:()=>console.log("sorting"),handleLocationHistory:()=>console.log("location history"),handleBookmarks:()=>console.log("bookmarks")}),Ho.map((O,$)=>x(O).length>0&&p.jsxs("div",{children:[p.jsx(En,{className:"pr-font-semibold pr-text-slate-700",children:xl[O]}),x(O).map(_=>p.jsx("div",{children:p.jsx(yl,{bookId:_,handleSelectBook:()=>g(_,!1),isSelected:o===_,handleHighlightBook:()=>u(_),handleKeyDown:F,bookType:O,ref:L=>{o===_&&(m.current=L)},children:p.jsx(vl,{handleSelectChapter:C,endChapter:Zt(_),activeChapter:e.bookNum===de.bookIdToNumber(_)?e.chapterNum:0,highlightedChapter:i,handleHighlightedChapter:L=>{l(L)}})})},_)),Ho.length-1!==$?p.jsx(nr,{}):void 0]},O))]})]})})}const rr=k.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:"pr-relative pr-w-full pr-overflow-auto",children:p.jsx("table",{ref:n,className:G("pr-w-full pr-caption-bottom pr-text-sm",e),...t})}));rr.displayName="Table";const or=k.forwardRef(({className:e,...t},n)=>p.jsx("thead",{ref:n,className:G("[&_tr]:pr-border-b",e),...t}));or.displayName="TableHeader";const sr=k.forwardRef(({className:e,...t},n)=>p.jsx("tbody",{ref:n,className:G("[&_tr:last-child]:pr-border-0",e),...t}));sr.displayName="TableBody";const ea=k.forwardRef(({className:e,...t},n)=>p.jsx("tfoot",{ref:n,className:G("pr-border-t pr-bg-muted/50 pr-font-medium [&>tr]:last:pr-border-b-0",e),...t}));ea.displayName="TableFooter";const xt=k.forwardRef(({className:e,...t},n)=>p.jsx("tr",{ref:n,className:G("pr-border-b pr-transition-colors hover:pr-bg-muted/50 data-[state=selected]:pr-bg-muted",e),...t}));xt.displayName="TableRow";const hn=k.forwardRef(({className:e,...t},n)=>p.jsx("th",{ref:n,className:G("pr-h-12 pr-px-4 pr-text-left pr-align-middle pr-font-medium pr-text-muted-foreground [&:has([role=checkbox])]:pr-pr-0",e),...t}));hn.displayName="TableHead";const Dt=k.forwardRef(({className:e,...t},n)=>p.jsx("td",{ref:n,className:G("pr-p-4 pr-align-middle [&:has([role=checkbox])]:pr-pr-0",e),...t}));Dt.displayName="TableCell";const ta=k.forwardRef(({className:e,...t},n)=>p.jsx("caption",{ref:n,className:G("pr-mt-4 pr-text-sm pr-text-muted-foreground",e),...t}));ta.displayName="TableCaption";const na=Kr.cva("pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-md pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50",{variants:{variant:{default:"pr-bg-primary pr-text-primary-foreground hover:pr-bg-primary/90",destructive:"pr-bg-destructive pr-text-destructive-foreground hover:pr-bg-destructive/90",outline:"pr-border pr-border-input pr-bg-background hover:pr-bg-accent hover:pr-text-accent-foreground",secondary:"pr-bg-secondary pr-text-secondary-foreground hover:pr-bg-secondary/80",ghost:"hover:pr-bg-accent hover:pr-text-accent-foreground",link:"pr-text-primary pr-underline-offset-4 hover:pr-underline"},size:{default:"pr-h-10 pr-px-4 pr-py-2",sm:"pr-h-9 pr-rounded-md pr-px-3",lg:"pr-h-11 pr-rounded-md pr-px-8",icon:"pr-h-10 pr-w-10"}},defaultVariants:{variant:"default",size:"default"}}),ke=k.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Xi.Slot:"button";return p.jsx(i,{className:G(na({variant:t,size:n,className:e})),ref:s,...o})});ke.displayName="Button";const Hn=ye.Root,Pl=ye.Group,qn=ye.Value,mn=k.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(ye.Trigger,{ref:r,className:G("pr-flex pr-h-10 pr-w-full pr-items-center pr-justify-between pr-rounded-md pr-border pr-border-input pr-bg-background pr-px-3 pr-py-2 pr-text-sm pr-ring-offset-background placeholder:pr-text-muted-foreground focus:pr-outline-none focus:pr-ring-2 focus:pr-ring-ring focus:pr-ring-offset-2 disabled:pr-cursor-not-allowed disabled:pr-opacity-50 [&>span]:pr-line-clamp-1",e),...n,children:[t,p.jsx(ye.Icon,{asChild:!0,children:p.jsx(fe.ChevronDown,{className:"pr-h-4 pr-w-4 pr-opacity-50"})})]}));mn.displayName=ye.Trigger.displayName;const ro=k.forwardRef(({className:e,...t},n)=>p.jsx(ye.ScrollUpButton,{ref:n,className:G("pr-flex pr-cursor-default pr-items-center pr-justify-center pr-py-1",e),...t,children:p.jsx(fe.ChevronUp,{className:"pr-h-4 pr-w-4"})}));ro.displayName=ye.ScrollUpButton.displayName;const oo=k.forwardRef(({className:e,...t},n)=>p.jsx(ye.ScrollDownButton,{ref:n,className:G("pr-flex pr-cursor-default pr-items-center pr-justify-center pr-py-1",e),...t,children:p.jsx(fe.ChevronDown,{className:"pr-h-4 pr-w-4"})}));oo.displayName=ye.ScrollDownButton.displayName;const gn=k.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(ye.Portal,{children:p.jsxs(ye.Content,{ref:o,className:G("pr-relative pr-z-50 pr-max-h-96 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-text-popover-foreground pr-shadow-md data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:pr-translate-y-1 data-[side=left]:pr--translate-x-1 data-[side=right]:pr-translate-x-1 data-[side=top]:pr--translate-y-1",e),position:n,...r,children:[p.jsx(ro,{}),p.jsx(ye.Viewport,{className:G("pr-p-1",n==="popper"&&"pr-h-[var(--radix-select-trigger-height)] pr-w-full pr-min-w-[var(--radix-select-trigger-width)]"),children:t}),p.jsx(oo,{})]})}));gn.displayName=ye.Content.displayName;const ra=k.forwardRef(({className:e,...t},n)=>p.jsx(ye.Label,{ref:n,className:G("pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-font-semibold",e),...t}));ra.displayName=ye.Label.displayName;const We=k.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(ye.Item,{ref:r,className:G("pr-relative pr-flex pr-w-full pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-outline-none focus:pr-bg-accent focus:pr-text-accent-foreground data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50",e),...n,children:[p.jsx("span",{className:"pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center",children:p.jsx(ye.ItemIndicator,{children:p.jsx(fe.Check,{className:"pr-h-4 pr-w-4"})})}),p.jsx(ye.ItemText,{children:t})]}));We.displayName=ye.Item.displayName;const oa=k.forwardRef(({className:e,...t},n)=>p.jsx(ye.Separator,{ref:n,className:G("pr--mx-1 pr-my-1 pr-h-px pr-bg-muted",e),...t}));oa.displayName=ye.Separator.displayName;function Rl({table:e}){return p.jsx("div",{className:"pr-flex pr-items-center pr-justify-between pr-px-2 pr-pb-3 pr-pt-3",children:p.jsxs("div",{className:"pr-flex pr-items-center pr-space-x-6 lg:pr-space-x-8",children:[p.jsxs("div",{className:"pr-flex-1 pr-text-sm pr-text-muted-foreground",children:[e.getFilteredSelectedRowModel().rows.length," of"," ",e.getFilteredRowModel().rows.length," row(s) selected"]}),p.jsxs("div",{className:"pr-flex pr-items-center pr-space-x-2",children:[p.jsx("p",{className:"pr-text-nowrap pr-text-sm pr-font-medium",children:"Rows per page"}),p.jsxs(Hn,{value:`${e.getState().pagination.pageSize}`,onValueChange:t=>{e.setPageSize(Number(t))},children:[p.jsx(mn,{className:"pr-h-8 pr-w-[70px]",children:p.jsx(qn,{placeholder:e.getState().pagination.pageSize})}),p.jsx(gn,{side:"top",children:[10,20,30,40,50].map(t=>p.jsx(We,{value:`${t}`,children:t},t))})]})]}),p.jsxs("div",{className:"pr-flex pr-w-[100px] pr-items-center pr-justify-center pr-text-sm pr-font-medium",children:["Page ",e.getState().pagination.pageIndex+1," of ",e.getPageCount()]}),p.jsxs("div",{className:"pr-flex pr-items-center pr-space-x-2",children:[p.jsxs(ke,{variant:"outline",size:"icon",className:"pr-hidden pr-h-8 pr-w-8 pr-p-0 lg:pr-flex",onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage(),children:[p.jsx("span",{className:"pr-sr-only",children:"Go to first page"}),p.jsx(fe.ArrowLeftIcon,{className:"pr-h-4 pr-w-4"})]}),p.jsxs(ke,{variant:"outline",size:"icon",className:"pr-h-8 pr-w-8 pr-p-0",onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:[p.jsx("span",{className:"pr-sr-only",children:"Go to previous page"}),p.jsx(fe.ChevronLeftIcon,{className:"pr-h-4 pr-w-4"})]}),p.jsxs(ke,{variant:"outline",size:"icon",className:"pr-h-8 pr-w-8 pr-p-0",onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:[p.jsx("span",{className:"pr-sr-only",children:"Go to next page"}),p.jsx(fe.ChevronRightIcon,{className:"pr-h-4 pr-w-4"})]}),p.jsxs(ke,{variant:"outline",size:"icon",className:"pr-hidden pr-h-8 pr-w-8 pr-p-0 lg:pr-flex",onClick:()=>e.setPageIndex(e.getPageCount()-1),disabled:!e.getCanNextPage(),children:[p.jsx("span",{className:"pr-sr-only",children:"Go to last page"}),p.jsx(fe.ArrowRightIcon,{className:"pr-h-4 pr-w-4"})]})]})]})})}function jl({table:e}){return p.jsxs(eo,{children:[p.jsx(Fs.DropdownMenuTrigger,{asChild:!0,children:p.jsxs(ke,{variant:"outline",size:"sm",className:"pr-ml-auto pr-hidden pr-h-8 lg:pr-flex",children:[p.jsx(fe.FilterIcon,{className:"pr-mr-2 pr-h-4 pr-w-4"}),"View"]})}),p.jsxs(tr,{align:"end",className:"pr-w-[150px]",children:[p.jsx(En,{children:"Toggle columns"}),p.jsx(nr,{}),e.getAllColumns().filter(t=>t.getCanHide()).map(t=>p.jsx(no,{className:"pr-capitalize",checked:t.getIsVisible(),onCheckedChange:n=>t.toggleVisibility(!!n),children:t.id},t.id))]})]})}function sa({columns:e,data:t,enablePagination:n=!1,showPaginationControls:r=!1,showColumnVisibilityControls:o=!1,onRowClickHandler:s=()=>{}}){var v;const[i,l]=k.useState([]),[c,u]=k.useState([]),[d,h]=k.useState({}),[f,b]=k.useState({}),y=mt.useReactTable({data:t,columns:e,getCoreRowModel:mt.getCoreRowModel(),...n&&{getPaginationRowModel:mt.getPaginationRowModel()},onSortingChange:l,getSortedRowModel:mt.getSortedRowModel(),onColumnFiltersChange:u,getFilteredRowModel:mt.getFilteredRowModel(),onColumnVisibilityChange:h,onRowSelectionChange:b,state:{sorting:i,columnFilters:c,columnVisibility:d,rowSelection:f}});return p.jsxs("div",{children:[o&&p.jsx(jl,{table:y}),p.jsx("div",{className:"pr-twp pr-font-sans",children:p.jsxs(rr,{children:[p.jsx(or,{children:y.getHeaderGroups().map(m=>p.jsx(xt,{children:m.headers.map(x=>p.jsx(hn,{children:x.isPlaceholder?void 0:mt.flexRender(x.column.columnDef.header,x.getContext())},x.id))},m.id))}),p.jsx(sr,{children:(v=y.getRowModel().rows)!=null&&v.length?y.getRowModel().rows.map(m=>p.jsx(xt,{onClick:()=>s(m,y),"data-state":m.getIsSelected()&&"selected",children:m.getVisibleCells().map(x=>p.jsx(Dt,{children:mt.flexRender(x.column.columnDef.cell,x.getContext())},x.id))},m.id)):p.jsx(xt,{children:p.jsx(Dt,{colSpan:e.length,className:"pr-h-24 pr-text-center",children:"No results."})})})]})}),n&&p.jsxs("div",{className:"pr-flex pr-items-center pr-justify-end pr-space-x-2 pr-py-4",children:[p.jsx(ke,{variant:"outline",size:"sm",onClick:()=>y.previousPage(),disabled:!y.getCanPreviousPage(),children:"Previous"}),p.jsx(ke,{variant:"outline",size:"sm",onClick:()=>y.nextPage(),disabled:!y.getCanNextPage(),children:"Next"})]}),n&&r&&p.jsx(Rl,{table:y})]})}function Br({id:e,title:t,isDisabled:n=!1,isClearable:r=!0,hasError:o=!1,isFullWidth:s=!1,width:i,options:l=[],className:c,value:u,onChange:d,onFocus:h,onBlur:f,getOptionLabel:b}){return p.jsx(ve.Autocomplete,{id:e,disablePortal:!0,disabled:n,disableClearable:!r,fullWidth:s,options:l,className:`papi-combo-box ${o?"error":""} ${c??""}`,value:u,onChange:d,onFocus:h,onBlur:f,getOptionLabel:b,renderInput:y=>p.jsx(ve.TextField,{...y,error:o,fullWidth:s,disabled:n,label:t,style:{width:i}})})}function Ml({handleSelectStartChapter:e,handleSelectEndChapter:t,isDisabled:n=!1,chapterCount:r}){const[o,s]=k.useState(1),[i,l]=k.useState(r),[c,u]=k.useState(Array.from({length:r},(f,b)=>b+1));k.useEffect(()=>{s(1),e(1),l(r),t(r),u(Array.from({length:r},(f,b)=>b+1))},[r,t,e]);const d=(f,b)=>{s(b),e(b),b>i&&(l(b),t(b))},h=(f,b)=>{l(b),t(b),bd(f,b),className:"book-selection-chapter",isClearable:!1,options:c,getOptionLabel:f=>f.toString(),value:o,isDisabled:n},"start chapter"),label:"Chapters",labelPlacement:"start"}),p.jsx(ve.FormControlLabel,{className:"book-selection-chapter-form-label end",disabled:n,control:p.jsx(Br,{onChange:(f,b)=>h(f,b),className:"book-selection-chapter",isClearable:!1,options:c,getOptionLabel:f=>f.toString(),value:i,isDisabled:n},"end chapter"),label:"to",labelPlacement:"start"})]})}var yt=(e=>(e.After="after",e.Before="before",e.Above="above",e.Below="below",e))(yt||{});function aa({id:e,isChecked:t,labelText:n="",labelPosition:r=yt.After,isIndeterminate:o=!1,isDefaultChecked:s,isDisabled:i=!1,hasError:l=!1,className:c,onChange:u}){const d=p.jsx(ve.Checkbox,{id:e,checked:t,indeterminate:o,defaultChecked:s,disabled:i,className:`papi-checkbox ${l?"error":""} ${c??""}`,onChange:u});let h;if(n){const f=r===yt.Before||r===yt.Above,b=p.jsx("span",{className:`papi-checkbox-label ${l?"error":""} ${c??""}`,children:n}),y=r===yt.Before||r===yt.After,v=y?b:p.jsx("div",{children:b}),m=y?d:p.jsx("div",{children:d});h=p.jsxs(ve.FormLabel,{className:`papi-checkbox ${r.toString()}`,disabled:i,error:l,children:[f&&v,m,!f&&v]})}else h=d;return h}function _l({id:e,className:t,legend:n,listItems:r,selectedListItems:o,handleSelectListItem:s,createLabel:i}){return p.jsxs("fieldset",{id:e,className:t,children:[n&&p.jsx("legend",{children:n}),r.map(l=>p.jsx(aa,{className:"check-item",isChecked:o.includes(l),labelText:i?i(l):l,onChange:()=>s(l)},l))]})}function ue(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;te[n]})}}return t.default=e,Object.freeze(t)}const k=ft(N),me=ft(ps),we=ft(Al),Vl=ft(un),us=ft(Dl),_e=ft(Bl),dn=ft(Ll),Yr=ft(Fl);var zl=Object.defineProperty,Ul=(e,t,n)=>t in e?zl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,re=(e,t,n)=>Ul(e,typeof t!="symbol"?t+"":t,n);const Ot=["GEN","EXO","LEV","NUM","DEU","JOS","JDG","RUT","1SA","2SA","1KI","2KI","1CH","2CH","EZR","NEH","EST","JOB","PSA","PRO","ECC","SNG","ISA","JER","LAM","EZK","DAN","HOS","JOL","AMO","OBA","JON","MIC","NAM","HAB","ZEP","HAG","ZEC","MAL","MAT","MRK","LUK","JHN","ACT","ROM","1CO","2CO","GAL","EPH","PHP","COL","1TH","2TH","1TI","2TI","TIT","PHM","HEB","JAS","1PE","2PE","1JN","2JN","3JN","JUD","REV","TOB","JDT","ESG","WIS","SIR","BAR","LJE","S3Y","SUS","BEL","1MA","2MA","3MA","4MA","1ES","2ES","MAN","PS2","ODA","PSS","JSA","JDB","TBS","SST","DNT","BLT","XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","3ES","EZA","5EZ","6EZ","INT","CNC","GLO","TDX","NDX","DAG","PS3","2BA","LBA","JUB","ENO","1MQ","2MQ","3MQ","REP","4BA","LAO"],uo=["XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","INT","CNC","GLO","TDX","NDX"],ds=["Genesis","Exodus","Leviticus","Numbers","Deuteronomy","Joshua","Judges","Ruth","1 Samuel","2 Samuel","1 Kings","2 Kings","1 Chronicles","2 Chronicles","Ezra","Nehemiah","Esther (Hebrew)","Job","Psalms","Proverbs","Ecclesiastes","Song of Songs","Isaiah","Jeremiah","Lamentations","Ezekiel","Daniel (Hebrew)","Hosea","Joel","Amos","Obadiah","Jonah","Micah","Nahum","Habakkuk","Zephaniah","Haggai","Zechariah","Malachi","Matthew","Mark","Luke","John","Acts","Romans","1 Corinthians","2 Corinthians","Galatians","Ephesians","Philippians","Colossians","1 Thessalonians","2 Thessalonians","1 Timothy","2 Timothy","Titus","Philemon","Hebrews","James","1 Peter","2 Peter","1 John","2 John","3 John","Jude","Revelation","Tobit","Judith","Esther Greek","Wisdom of Solomon","Sirach (Ecclesiasticus)","Baruch","Letter of Jeremiah","Song of 3 Young Men","Susanna","Bel and the Dragon","1 Maccabees","2 Maccabees","3 Maccabees","4 Maccabees","1 Esdras (Greek)","2 Esdras (Latin)","Prayer of Manasseh","Psalm 151","Odes","Psalms of Solomon","Joshua A. *obsolete*","Judges B. *obsolete*","Tobit S. *obsolete*","Susanna Th. *obsolete*","Daniel Th. *obsolete*","Bel Th. *obsolete*","Extra A","Extra B","Extra C","Extra D","Extra E","Extra F","Extra G","Front Matter","Back Matter","Other Matter","3 Ezra *obsolete*","Apocalypse of Ezra","5 Ezra (Latin Prologue)","6 Ezra (Latin Epilogue)","Introduction","Concordance ","Glossary ","Topical Index","Names Index","Daniel Greek","Psalms 152-155","2 Baruch (Apocalypse)","Letter of Baruch","Jubilees","Enoch","1 Meqabyan","2 Meqabyan","3 Meqabyan","Reproof (Proverbs 25-31)","4 Baruch (Rest of Baruch)","Laodiceans"],oa=Ql();function Kt(e,t=!0){return t&&(e=e.toUpperCase()),e in oa?oa[e]:0}function fo(e){return Kt(e)>0}function Hl(e){const t=typeof e=="string"?Kt(e):e;return t>=40&&t<=66}function ql(e){return(typeof e=="string"?Kt(e):e)<=39}function fs(e){return e<=66}function Wl(e){const t=typeof e=="string"?Kt(e):e;return gs(t)&&!fs(t)}function*Xl(){for(let e=1;e<=Ot.length;e++)yield e}const Gl=1,hs=Ot.length;function Yl(){return["XXA","XXB","XXC","XXD","XXE","XXF","XXG"]}function ho(e,t="***"){const n=e-1;return n<0||n>=Ot.length?t:Ot[n]}function ms(e){return e<=0||e>hs?"******":ds[e-1]}function Kl(e){return ms(Kt(e))}function gs(e){const t=typeof e=="number"?ho(e):e;return fo(t)&&!uo.includes(t)}function Jl(e){const t=typeof e=="number"?ho(e):e;return fo(t)&&uo.includes(t)}function Zl(e){return ds[e-1].includes("*obsolete*")}function Ql(){const e={};for(let t=0;t(e[e.Unknown=0]="Unknown",e[e.Original=1]="Original",e[e.Septuagint=2]="Septuagint",e[e.Vulgate=3]="Vulgate",e[e.English=4]="English",e[e.RussianProtestant=5]="RussianProtestant",e[e.RussianOrthodox=6]="RussianOrthodox",e))(Ge||{});const De=class{constructor(t){if(re(this,"name"),re(this,"fullPath"),re(this,"isPresent"),re(this,"hasVerseSegments"),re(this,"isCustomized"),re(this,"baseVersification"),re(this,"scriptureBooks"),re(this,"_type"),t==null)throw new Error("Argument undefined");typeof t=="string"?(this.name=t,this._type=Ge[t]):(this._type=t,this.name=Ge[t])}get type(){return this._type}equals(t){return!t.type||!this.type?!1:t.type===this.type}};re(De,"Original",new De(Ge.Original)),re(De,"Septuagint",new De(Ge.Septuagint)),re(De,"Vulgate",new De(Ge.Vulgate)),re(De,"English",new De(Ge.English)),re(De,"RussianProtestant",new De(Ge.RussianProtestant)),re(De,"RussianOrthodox",new De(Ge.RussianOrthodox));let wt=De;function aa(e,t){const n=t[0];for(let r=1;r(e[e.Valid=0]="Valid",e[e.UnknownVersification=1]="UnknownVersification",e[e.OutOfRange=2]="OutOfRange",e[e.VerseOutOfOrder=3]="VerseOutOfOrder",e[e.VerseRepeated=4]="VerseRepeated",e))(bs||{});const je=class ie{constructor(t,n,r,o){if(re(this,"firstChapter"),re(this,"lastChapter"),re(this,"lastVerse"),re(this,"hasSegmentsDefined"),re(this,"text"),re(this,"BBBCCCVVVS"),re(this,"longHashCode"),re(this,"versification"),re(this,"rtlMark","‏"),re(this,"_bookNum",0),re(this,"_chapterNum",0),re(this,"_verseNum",0),re(this,"_verse"),r==null&&o==null)if(t!=null&&typeof t=="string"){const a=t,s=n!=null&&n instanceof wt?n:void 0;this.setEmpty(s),this.parse(a)}else if(t!=null&&typeof t=="number"){const a=n!=null&&n instanceof wt?n:void 0;this.setEmpty(a),this._verseNum=t%ie.chapterDigitShifter,this._chapterNum=Math.floor(t%ie.bookDigitShifter/ie.chapterDigitShifter),this._bookNum=Math.floor(t/ie.bookDigitShifter)}else if(n==null)if(t!=null&&t instanceof ie){const a=t;this._bookNum=a.bookNum,this._chapterNum=a.chapterNum,this._verseNum=a.verseNum,this._verse=a.verse,this.versification=a.versification}else{if(t==null)return;const a=t instanceof wt?t:ie.defaultVersification;this.setEmpty(a)}else throw new Error("VerseRef constructor not supported.");else if(t!=null&&n!=null&&r!=null)if(typeof t=="string"&&typeof n=="string"&&typeof r=="string")this.setEmpty(o),this.updateInternal(t,n,r);else if(typeof t=="number"&&typeof n=="number"&&typeof r=="number")this._bookNum=t,this._chapterNum=n,this._verseNum=r,this.versification=o??ie.defaultVersification;else throw new Error("VerseRef constructor not supported.");else throw new Error("VerseRef constructor not supported.")}static isVerseParseable(t){return t.length>0&&"0123456789".includes(t[0])&&!t.endsWith(this.verseRangeSeparator)&&!t.endsWith(this.verseSequenceIndicator)}static tryParse(t){let n;try{return n=new ie(t),{success:!0,verseRef:n}}catch(r){if(r instanceof rn)return n=new ie,{success:!1,verseRef:n};throw r}}static getBBBCCCVVV(t,n,r){return t%ie.bcvMaxValue*ie.bookDigitShifter+(n>=0?n%ie.bcvMaxValue*ie.chapterDigitShifter:0)+(r>=0?r%ie.bcvMaxValue:0)}static fromJSON(t){const{book:n,chapterNum:r,verseNum:o,verse:a,versificationStr:s}=t,l=a||o.toString();let c;return s&&(c=new wt(s)),n?new ie(n,r.toString(),l,c):new ie}static tryGetVerseNum(t){let n;if(!t)return n=-1,{success:!0,vNum:n};n=0;let r;for(let o=0;o"9")return o===0&&(n=-1),{success:!1,vNum:n};if(n=n*10+ +r-0,n>ie.bcvMaxValue)return n=-1,{success:!1,vNum:n}}return{success:!0,vNum:n}}get isDefault(){return this.bookNum===0&&this.chapterNum===0&&this.verseNum===0&&this.versification==null}get hasMultiple(){return this._verse!=null&&(this._verse.includes(ie.verseRangeSeparator)||this._verse.includes(ie.verseSequenceIndicator))}get book(){return he.bookNumberToId(this.bookNum,"")}set book(t){this.bookNum=he.bookIdToNumber(t)}get chapter(){return this.isDefault||this._chapterNum<0?"":this._chapterNum.toString()}set chapter(t){const n=+t;this._chapterNum=Number.isInteger(n)?n:-1}get verse(){return this._verse!=null?this._verse:this.isDefault||this._verseNum<0?"":this._verseNum.toString()}set verse(t){const{success:n,vNum:r}=ie.tryGetVerseNum(t);this._verse=n?void 0:t.replace(this.rtlMark,""),this._verseNum=r,!(this._verseNum>=0)&&({vNum:this._verseNum}=ie.tryGetVerseNum(this._verse))}get bookNum(){return this._bookNum}set bookNum(t){if(t<=0||t>he.lastBook)throw new rn("BookNum must be greater than zero and less than or equal to last book");this._bookNum=t}get chapterNum(){return this._chapterNum}set chapterNum(t){this.chapterNum=t}get verseNum(){return this._verseNum}set verseNum(t){this._verseNum=t}get versificationStr(){var t;return(t=this.versification)==null?void 0:t.name}set versificationStr(t){this.versification=this.versification!=null?new wt(t):void 0}get valid(){return this.validStatus===0}get validStatus(){return this.validateVerse(ie.verseRangeSeparators,ie.verseSequenceIndicators)}get BBBCCC(){return ie.getBBBCCCVVV(this._bookNum,this._chapterNum,0)}get BBBCCCVVV(){return ie.getBBBCCCVVV(this._bookNum,this._chapterNum,this._verseNum)}get isExcluded(){return!1}parse(t){if(t=t.replace(this.rtlMark,""),t.includes("/")){const a=t.split("/");if(t=a[0],a.length>1)try{const s=+a[1].trim();this.versification=new wt(Ge[s])}catch{throw new rn("Invalid reference : "+t)}}const n=t.trim().split(" ");if(n.length!==2)throw new rn("Invalid reference : "+t);const r=n[1].split(":"),o=+r[0];if(r.length!==2||he.bookIdToNumber(n[0])===0||!Number.isInteger(o)||o<0||!ie.isVerseParseable(r[1]))throw new rn("Invalid reference : "+t);this.updateInternal(n[0],r[0],r[1])}simplify(){this._verse=void 0}clone(){return new ie(this)}toString(){const t=this.book;return t===""?"":`${t} ${this.chapter}:${this.verse}`}toJSON(){let t=this.verse;return(t===""||t===this.verseNum.toString())&&(t=void 0),{book:this.book,chapterNum:this.chapterNum,verseNum:this.verseNum,verse:t,versificationStr:this.versificationStr}}equals(t){return t instanceof ie?t._bookNum===this._bookNum&&t._chapterNum===this._chapterNum&&t._verseNum===this._verseNum&&t.verse===this.verse&&(t.versification==null&&this.versification==null||t.versification!=null&&this.versification!=null&&t.versification.equals(this.versification)):!1}allVerses(t=!1,n=ie.verseRangeSeparators,r=ie.verseSequenceIndicators){if(this._verse==null||this.chapterNum<=0)return[this.clone()];const o=[],a=aa(this._verse,r);for(const s of a.map(l=>aa(l,n))){const l=this.clone();l.verse=s[0];const c=l.verseNum;if(o.push(l),s.length>1){const d=this.clone();if(d.verse=s[1],!t)for(let h=c+1;hs)return 3;if(r===s)return 4;r=s}return 0}get internalValid(){return this.versification==null?1:this._bookNum<=0||this._bookNum>he.lastBook?2:(he.isCanonical(this._bookNum),0)}setEmpty(t=ie.defaultVersification){this._bookNum=0,this._chapterNum=-1,this._verse=void 0,this.versification=t}updateInternal(t,n,r){this.bookNum=he.bookIdToNumber(t),this.chapter=n,this.verse=r}};re(je,"defaultVersification",wt.English),re(je,"verseRangeSeparator","-"),re(je,"verseSequenceIndicator",","),re(je,"verseRangeSeparators",[je.verseRangeSeparator]),re(je,"verseSequenceIndicators",[je.verseSequenceIndicator]),re(je,"chapterDigitShifter",1e3),re(je,"bookDigitShifter",je.chapterDigitShifter*je.chapterDigitShifter),re(je,"bcvMaxValue",je.chapterDigitShifter-1),re(je,"ValidStatusType",bs);let rn=class extends Error{};const ec=_l.extendTailwindMerge({prefix:"pr-"});function q(...e){return ec(Se.clsx(e))}const mo=me.Root,vs=me.Trigger,tc=me.Group,nc=me.Portal,rc=me.Sub,oc=me.RadioGroup,ys=N.forwardRef(({className:e,inset:t,children:n,...r},o)=>u.jsxs(me.SubTrigger,{ref:o,className:q("pr-flex pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-px-2 pr-py-1.5 pr-text-sm pr-outline-none focus:pr-bg-accent data-[state=open]:pr-bg-accent",t&&"pr-pl-8",e),...r,children:[n,u.jsx(de.ChevronRight,{className:"pr-ml-auto pr-h-4 pr-w-4"})]}));ys.displayName=me.SubTrigger.displayName;const ws=N.forwardRef(({className:e,...t},n)=>u.jsx(me.SubContent,{ref:n,className:q("pr-z-50 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-p-1 pr-text-popover-foreground pr-shadow-lg data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2",e),...t}));ws.displayName=me.SubContent.displayName;const cr=N.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(me.Portal,{children:u.jsx(me.Content,{ref:r,sideOffset:t,className:q("pr-twp pr-z-50 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-p-1 pr-text-popover-foreground pr-shadow-md data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2",e),...n})}));cr.displayName=me.Content.displayName;const go=N.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(me.Item,{ref:r,className:q("pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-px-2 pr-py-1.5 pr-text-sm pr-outline-none pr-transition-colors focus:pr-bg-accent data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50",t&&"pr-pl-8",e),...n}));go.displayName=me.Item.displayName;const bo=N.forwardRef(({className:e,children:t,checked:n,...r},o)=>u.jsxs(me.CheckboxItem,{ref:o,className:q("pr-relative pr-flex pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-outline-none pr-transition-colors focus:pr-bg-accent focus:pr-text-accent-foreground data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50",e),checked:n,...r,children:[u.jsx("span",{className:"pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center",children:u.jsx(me.ItemIndicator,{children:u.jsx(de.Check,{className:"pr-h-4 pr-w-4"})})}),t]}));bo.displayName=me.CheckboxItem.displayName;const xs=N.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(me.RadioItem,{ref:r,className:q("pr-relative pr-flex pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-outline-none pr-transition-colors focus:pr-bg-accent focus:pr-text-accent-foreground data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50",e),...n,children:[u.jsx("span",{className:"pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center",children:u.jsx(me.ItemIndicator,{children:u.jsx(de.Circle,{className:"pr-h-2 pr-w-2 pr-fill-current"})})}),t]}));xs.displayName=me.RadioItem.displayName;const Pn=N.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(me.Label,{ref:r,className:q("pr-px-2 pr-py-1.5 pr-text-sm pr-font-semibold",t&&"pr-pl-8",e),...n}));Pn.displayName=me.Label.displayName;const pr=N.forwardRef(({className:e,...t},n)=>u.jsx(me.Separator,{ref:n,className:q("pr--mx-1 pr-my-1 pr-h-px pr-bg-muted",e),...t}));pr.displayName=me.Separator.displayName;function Es({className:e,...t}){return u.jsx("span",{className:q("pr-ml-auto pr-text-xs pr-tracking-widest pr-opacity-60",e),...t})}Es.displayName="DropdownMenuShortcut";const Rn=N.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:q("pr-flex pr-h-10 pr-rounded-md pr-bg-background pr-px-3 pr-py-2 pr-text-sm pr-ring-offset-background file:pr-border-0 file:pr-bg-transparent file:pr-text-sm file:pr-font-medium placeholder:pr-text-muted-foreground disabled:pr-cursor-not-allowed disabled:pr-opacity-50",e),ref:r,...n}));Rn.displayName="Input";const ac=N.forwardRef(({handleSearch:e,handleKeyDown:t,handleOnClick:n,handleSubmit:r,...o},a)=>u.jsxs("div",{className:"pr-relative",children:[u.jsx(Rn,{...o,type:"text",className:"pr-box-border pr-gap-2.5 pr-rounded-lg pr-border pr-border-solid pr-border-black pr-bg-white pr-py-2 pr-pl-4 pr-pr-3 pr-font-medium pr-text-slate-900 pr-shadow-none pr-outline-none",onChange:s=>e(s.target.value),onKeyDown:s=>{s.key==="Enter"&&r(),t(s)},onClick:n,ref:a}),u.jsx(de.History,{className:"pr-absolute pr-right-3 pr-top-1/2 pr-h-4 pr-w-4 pr--translate-y-1/2 pr-transform pr-cursor-pointer pr-text-gray-500",onClick:()=>{console.log("back in history")}})]}));function sc({handleSelectChapter:e,endChapter:t,activeChapter:n,highlightedChapter:r,handleHighlightedChapter:o}){const a=Array.from({length:t},(l,c)=>c+1),s=N.useCallback(l=>{o(l)},[o]);return u.jsx("div",{className:q("pr-flex pr-flex-wrap pr-items-start pr-justify-start pr-self-stretch"),children:a.map(l=>u.jsx("div",{className:q("pr-flex pr-h-4 pr-w-4 pr-cursor-pointer pr-items-center pr-justify-end pr-rounded-md pr-p-2 pr-text-amber-800",{"pr-font-semibold pr-text-amber-900":l===n,"pr-bg-amber-200":l===r}),onClick:c=>{c.preventDefault(),c.stopPropagation(),e(l)},role:"button",onKeyDown:c=>{c.key==="Enter"&&e(l)},tabIndex:0,onMouseMove:()=>s(l),children:l},l))})}const ic=N.forwardRef(({bookId:e,handleSelectBook:t,isSelected:n,handleHighlightBook:r,handleKeyDown:o,bookType:a,children:s},l)=>u.jsxs(go,{ref:l,textValue:e,className:q("pr-font-normal pr-text-slate-700",{"pr-bg-amber-50 pr-text-yellow-900 data-[highlighted]:pr-bg-amber-100":n}),onSelect:c=>{c.preventDefault(),t()},onKeyDown:c=>{o(c)},onFocus:r,onMouseMove:r,children:[u.jsx("span",{className:q("pr-border-b-0 pr-border-l-2 pr-border-r-0 pr-border-t-0 pr-border-solid pr-px-2",{"pr-font-bold":n,"pr-border-l-red-200":a.toLowerCase()==="ot","pr-border-l-purple-200":a.toLowerCase()==="nt","pr-border-l-indigo-200":a.toLowerCase()==="dc"}),children:he.bookIdToEnglishName(e)}),n&&u.jsx("div",{children:s})]},e));function lc({handleSort:e,handleLocationHistory:t,handleBookmarks:n}){return u.jsxs(Pn,{className:"pr-flex pr-justify-between",children:[u.jsx("p",{className:"pr-inline-block pr-align-middle",children:"Go To"}),u.jsxs("div",{className:"pr-flex pr-items-center",children:[u.jsx(de.ArrowDownWideNarrow,{onClick:e,className:"pr-h-4 pr-w-4 pr-cursor-pointer pr-gap-2 pr-p-2"}),u.jsx(de.Clock,{onClick:t,className:"pr-h-4 pr-w-4 pr-cursor-pointer pr-gap-2 pr-p-2"}),u.jsx(de.Bookmark,{onClick:n,className:"pr-h-4 pr-w-4 pr-cursor-pointer pr-gap-2 pr-p-2"})]})]})}const gn=he.allBookIds,cc={OT:"Old Testament",NT:"New Testament",DC:"Deuterocanon"},sa=["OT","NT","DC"],pc=32+32+32,uc=[/^(\w+)$/i,/^(\w+)(?:\s(\d+))$/i,/^(\w+)(?:\s(\d+):(\d+))$/i],dc=e=>({OT:gn.filter(n=>he.isBookOT(n)),NT:gn.filter(n=>he.isBookNT(n)),DC:gn.filter(n=>he.isBookDC(n))})[e],on=e=>cs.getChaptersForBook(he.bookIdToNumber(e));function fc(){return gn.map(t=>he.bookIdToEnglishName(t))}function hc(e){return fc().includes(e)}function mc(e){const t=e.toLowerCase().replace(/^\w/,n=>n.toUpperCase());if(hc(t))return gn.find(r=>he.bookIdToEnglishName(r)===t)}function gc({scrRef:e,handleSubmit:t}){const[n,r]=N.useState(""),[o,a]=N.useState(he.bookNumberToId(e.bookNum)),[s,l]=N.useState(e.chapterNum??0),[c,d]=N.useState(he.bookNumberToId(e.bookNum)),[h,v]=N.useState(!1),[b,p]=N.useState(h),m=N.useRef(void 0),f=N.useRef(void 0),g=N.useRef(void 0),w=N.useCallback(R=>dc(R).filter(I=>{const A=he.bookIdToEnglishName(I).toLowerCase(),V=n.replace(/[^a-zA-Z]/g,"").toLowerCase();return A.includes(V)||I.toLowerCase().includes(V)}),[n]),P=R=>{r(R)},x=N.useRef(!1),E=N.useCallback(R=>{if(x.current){x.current=!1;return}v(R)},[]),y=N.useCallback((R,I,A,V)=>{if(l(he.bookNumberToId(e.bookNum)!==R?1:e.chapterNum),I||on(R)===-1){t({bookNum:he.bookIdToNumber(R),chapterNum:A||1,verseNum:V||1}),v(!1),r("");return}a(o!==R?R:""),v(!I)},[t,e.bookNum,e.chapterNum,o]),S=R=>{R<=0||R>on(o)||y(o,!0,R)},T=N.useCallback(()=>{uc.forEach(R=>{const I=n.match(R);if(I){const[A,V=void 0,U=void 0]=I.slice(1),j=mc(A);(he.isBookIdValid(A)||j)&&y(j??A,!0,V?parseInt(V,10):1,U?parseInt(U,10):1)}})},[y,n]),M=N.useCallback(R=>{h?(R.key==="ArrowDown"||R.key==="ArrowUp")&&(typeof g<"u"&&g.current!==null?g.current.focus():typeof f<"u"&&f.current!==null&&f.current.focus(),R.preventDefault()):v(!0)},[h]),D=R=>{const{key:I}=R;I==="ArrowRight"||I==="ArrowLeft"||I==="ArrowDown"||I==="ArrowUp"||I==="Enter"||(m.current.dispatchEvent(new KeyboardEvent("keydown",{key:I})),m.current.focus())},L=R=>{const{key:I}=R;if(c===o){if(I==="Enter"){R.preventDefault(),y(o,!0,s);return}let A=0;if(I==="ArrowRight")if(s1)A=-1;else{R.preventDefault();return}else I==="ArrowDown"?A=6:I==="ArrowUp"&&(A=-6);s+A<=0||s+A>on(c)?l(0):A!==0&&(l(s+A),R.preventDefault())}};return N.useEffect(()=>{o===c?o===he.bookNumberToId(e.bookNum)?l(e.chapterNum):l(1):l(0)},[c,e.bookNum,e.chapterNum,o]),N.useLayoutEffect(()=>{p(h)},[h]),N.useLayoutEffect(()=>{const R=setTimeout(()=>{if(b&&f.current&&g.current){const A=g.current.offsetTop-pc;f.current.scrollTo({top:A,behavior:"instant"})}},10);return()=>{clearTimeout(R)}},[b]),u.jsx("div",{className:"pr-flex",children:u.jsxs(mo,{modal:!1,open:h,onOpenChange:E,children:[u.jsx(vs,{asChild:!0,children:u.jsx(ac,{ref:m,value:n,handleSearch:P,handleKeyDown:M,handleOnClick:()=>{a(he.bookNumberToId(e.bookNum)),d(he.bookNumberToId(e.bookNum)),l(e.chapterNum>0?e.chapterNum:0),v(!0),m.current.focus()},onFocus:()=>{x.current=!0},handleSubmit:T,placeholder:`${he.bookNumberToEnglishName(e.bookNum)} ${e.chapterNum}:${e.verseNum}`})}),u.jsxs(cr,{className:"pr-overflow-y-auto pr-font-normal pr-text-slate-700",style:{width:"233px",maxHeight:"500px"},onKeyDown:D,align:"start",ref:f,children:[u.jsx(lc,{handleSort:()=>console.log("sorting"),handleLocationHistory:()=>console.log("location history"),handleBookmarks:()=>console.log("bookmarks")}),sa.map((R,I)=>w(R).length>0&&u.jsxs("div",{children:[u.jsx(Pn,{className:"pr-font-semibold pr-text-slate-700",children:cc[R]}),w(R).map(A=>u.jsx("div",{children:u.jsx(ic,{bookId:A,handleSelectBook:()=>y(A,!1),isSelected:o===A,handleHighlightBook:()=>d(A),handleKeyDown:L,bookType:R,ref:V=>{o===A&&(g.current=V)},children:u.jsx(sc,{handleSelectChapter:S,endChapter:on(A),activeChapter:e.bookNum===he.bookIdToNumber(A)?e.chapterNum:0,highlightedChapter:s,handleHighlightedChapter:V=>{l(V)}})})},A)),sa.length-1!==I?u.jsx(pr,{}):void 0]},R))]})]})})}const ur=N.forwardRef(({className:e,...t},n)=>u.jsx("div",{className:"pr-relative pr-w-full pr-overflow-auto",children:u.jsx("table",{ref:n,className:q("pr-w-full pr-caption-bottom pr-text-sm",e),...t})}));ur.displayName="Table";const dr=N.forwardRef(({className:e,...t},n)=>u.jsx("thead",{ref:n,className:q("[&_tr]:pr-border-b",e),...t}));dr.displayName="TableHeader";const fr=N.forwardRef(({className:e,...t},n)=>u.jsx("tbody",{ref:n,className:q("[&_tr:last-child]:pr-border-0",e),...t}));fr.displayName="TableBody";const ks=N.forwardRef(({className:e,...t},n)=>u.jsx("tfoot",{ref:n,className:q("pr-border-t pr-bg-muted/50 pr-font-medium [&>tr]:last:pr-border-b-0",e),...t}));ks.displayName="TableFooter";const St=N.forwardRef(({className:e,...t},n)=>u.jsx("tr",{ref:n,className:q("pr-border-b pr-transition-colors hover:pr-bg-muted/50 data-[state=selected]:pr-bg-muted",e),...t}));St.displayName="TableRow";const xn=N.forwardRef(({className:e,...t},n)=>u.jsx("th",{ref:n,className:q("pr-h-12 pr-px-4 pr-text-left pr-align-middle pr-font-medium pr-text-muted-foreground [&:has([role=checkbox])]:pr-pr-0",e),...t}));xn.displayName="TableHead";const Ut=N.forwardRef(({className:e,...t},n)=>u.jsx("td",{ref:n,className:q("pr-p-4 pr-align-middle [&:has([role=checkbox])]:pr-pr-0",e),...t}));Ut.displayName="TableCell";const Ts=N.forwardRef(({className:e,...t},n)=>u.jsx("caption",{ref:n,className:q("pr-mt-4 pr-text-sm pr-text-muted-foreground",e),...t}));Ts.displayName="TableCaption";const Ns=po.cva("pr-twp pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-md pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50",{variants:{variant:{default:"pr-bg-primary pr-text-primary-foreground hover:pr-bg-primary/90",destructive:"pr-bg-destructive pr-text-destructive-foreground hover:pr-bg-destructive/90",outline:"pr-border pr-border-input pr-bg-background hover:pr-bg-accent hover:pr-text-accent-foreground",secondary:"pr-bg-secondary pr-text-secondary-foreground hover:pr-bg-secondary/80",ghost:"hover:pr-bg-accent hover:pr-text-accent-foreground",link:"pr-text-primary pr-underline-offset-4 hover:pr-underline"},size:{default:"pr-h-10 pr-px-4 pr-py-2",sm:"pr-h-9 pr-rounded-md pr-px-3",lg:"pr-h-11 pr-rounded-md pr-px-8",icon:"pr-h-10 pr-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Te=N.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?Il.Slot:"button";return u.jsx(s,{className:q(Ns({variant:t,size:n,className:e})),ref:a,...o})});Te.displayName="Button";const Zn=we.Root,bc=we.Group,Qn=we.Value,En=N.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(we.Trigger,{ref:r,className:q("pr-flex pr-h-10 pr-w-full pr-items-center pr-justify-between pr-rounded-md pr-border pr-border-input pr-bg-background pr-px-3 pr-py-2 pr-text-sm pr-ring-offset-background placeholder:pr-text-muted-foreground focus:pr-outline-none focus:pr-ring-2 focus:pr-ring-ring focus:pr-ring-offset-2 disabled:pr-cursor-not-allowed disabled:pr-opacity-50 [&>span]:pr-line-clamp-1",e),...n,children:[t,u.jsx(we.Icon,{asChild:!0,children:u.jsx(de.ChevronDown,{className:"pr-h-4 pr-w-4 pr-opacity-50"})})]}));En.displayName=we.Trigger.displayName;const vo=N.forwardRef(({className:e,...t},n)=>u.jsx(we.ScrollUpButton,{ref:n,className:q("pr-flex pr-cursor-default pr-items-center pr-justify-center pr-py-1",e),...t,children:u.jsx(de.ChevronUp,{className:"pr-h-4 pr-w-4"})}));vo.displayName=we.ScrollUpButton.displayName;const yo=N.forwardRef(({className:e,...t},n)=>u.jsx(we.ScrollDownButton,{ref:n,className:q("pr-flex pr-cursor-default pr-items-center pr-justify-center pr-py-1",e),...t,children:u.jsx(de.ChevronDown,{className:"pr-h-4 pr-w-4"})}));yo.displayName=we.ScrollDownButton.displayName;const kn=N.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>u.jsx(we.Portal,{children:u.jsxs(we.Content,{ref:o,className:q("pr-relative pr-z-50 pr-max-h-96 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-text-popover-foreground pr-shadow-md data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:pr-translate-y-1 data-[side=left]:pr--translate-x-1 data-[side=right]:pr-translate-x-1 data-[side=top]:pr--translate-y-1",e),position:n,...r,children:[u.jsx(vo,{}),u.jsx(we.Viewport,{className:q("pr-p-1",n==="popper"&&"pr-h-[var(--radix-select-trigger-height)] pr-w-full pr-min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(yo,{})]})}));kn.displayName=we.Content.displayName;const Ss=N.forwardRef(({className:e,...t},n)=>u.jsx(we.Label,{ref:n,className:q("pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-font-semibold",e),...t}));Ss.displayName=we.Label.displayName;const Xe=N.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(we.Item,{ref:r,className:q("pr-relative pr-flex pr-w-full pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-outline-none focus:pr-bg-accent focus:pr-text-accent-foreground data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50",e),...n,children:[u.jsx("span",{className:"pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center",children:u.jsx(we.ItemIndicator,{children:u.jsx(de.Check,{className:"pr-h-4 pr-w-4"})})}),u.jsx(we.ItemText,{children:t})]}));Xe.displayName=we.Item.displayName;const Cs=N.forwardRef(({className:e,...t},n)=>u.jsx(we.Separator,{ref:n,className:q("pr--mx-1 pr-my-1 pr-h-px pr-bg-muted",e),...t}));Cs.displayName=we.Separator.displayName;function vc({table:e}){return u.jsx("div",{className:"pr-flex pr-items-center pr-justify-between pr-px-2 pr-pb-3 pr-pt-3",children:u.jsxs("div",{className:"pr-flex pr-items-center pr-space-x-6 lg:pr-space-x-8",children:[u.jsxs("div",{className:"pr-flex-1 pr-text-sm pr-text-muted-foreground",children:[e.getFilteredSelectedRowModel().rows.length," of"," ",e.getFilteredRowModel().rows.length," row(s) selected"]}),u.jsxs("div",{className:"pr-flex pr-items-center pr-space-x-2",children:[u.jsx("p",{className:"pr-text-nowrap pr-text-sm pr-font-medium",children:"Rows per page"}),u.jsxs(Zn,{value:`${e.getState().pagination.pageSize}`,onValueChange:t=>{e.setPageSize(Number(t))},children:[u.jsx(En,{className:"pr-h-8 pr-w-[70px]",children:u.jsx(Qn,{placeholder:e.getState().pagination.pageSize})}),u.jsx(kn,{side:"top",children:[10,20,30,40,50].map(t=>u.jsx(Xe,{value:`${t}`,children:t},t))})]})]}),u.jsxs("div",{className:"pr-flex pr-w-[100px] pr-items-center pr-justify-center pr-text-sm pr-font-medium",children:["Page ",e.getState().pagination.pageIndex+1," of ",e.getPageCount()]}),u.jsxs("div",{className:"pr-flex pr-items-center pr-space-x-2",children:[u.jsxs(Te,{variant:"outline",size:"icon",className:"pr-hidden pr-h-8 pr-w-8 pr-p-0 lg:pr-flex",onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage(),children:[u.jsx("span",{className:"pr-sr-only",children:"Go to first page"}),u.jsx(de.ArrowLeftIcon,{className:"pr-h-4 pr-w-4"})]}),u.jsxs(Te,{variant:"outline",size:"icon",className:"pr-h-8 pr-w-8 pr-p-0",onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:[u.jsx("span",{className:"pr-sr-only",children:"Go to previous page"}),u.jsx(de.ChevronLeftIcon,{className:"pr-h-4 pr-w-4"})]}),u.jsxs(Te,{variant:"outline",size:"icon",className:"pr-h-8 pr-w-8 pr-p-0",onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:[u.jsx("span",{className:"pr-sr-only",children:"Go to next page"}),u.jsx(de.ChevronRightIcon,{className:"pr-h-4 pr-w-4"})]}),u.jsxs(Te,{variant:"outline",size:"icon",className:"pr-hidden pr-h-8 pr-w-8 pr-p-0 lg:pr-flex",onClick:()=>e.setPageIndex(e.getPageCount()-1),disabled:!e.getCanNextPage(),children:[u.jsx("span",{className:"pr-sr-only",children:"Go to last page"}),u.jsx(de.ArrowRightIcon,{className:"pr-h-4 pr-w-4"})]})]})]})})}function yc({table:e}){return u.jsxs(mo,{children:[u.jsx(ps.DropdownMenuTrigger,{asChild:!0,children:u.jsxs(Te,{variant:"outline",size:"sm",className:"pr-ml-auto pr-hidden pr-h-8 lg:pr-flex",children:[u.jsx(de.FilterIcon,{className:"pr-mr-2 pr-h-4 pr-w-4"}),"View"]})}),u.jsxs(cr,{align:"end",className:"pr-w-[150px]",children:[u.jsx(Pn,{children:"Toggle columns"}),u.jsx(pr,{}),e.getAllColumns().filter(t=>t.getCanHide()).map(t=>u.jsx(bo,{className:"pr-capitalize",checked:t.getIsVisible(),onCheckedChange:n=>t.toggleVisibility(!!n),children:t.id},t.id))]})]})}function Os({columns:e,data:t,enablePagination:n=!1,showPaginationControls:r=!1,showColumnVisibilityControls:o=!1,onRowClickHandler:a=()=>{}}){var f;const[s,l]=N.useState([]),[c,d]=N.useState([]),[h,v]=N.useState({}),[b,p]=N.useState({}),m=yt.useReactTable({data:t,columns:e,getCoreRowModel:yt.getCoreRowModel(),...n&&{getPaginationRowModel:yt.getPaginationRowModel()},onSortingChange:l,getSortedRowModel:yt.getSortedRowModel(),onColumnFiltersChange:d,getFilteredRowModel:yt.getFilteredRowModel(),onColumnVisibilityChange:v,onRowSelectionChange:p,state:{sorting:s,columnFilters:c,columnVisibility:h,rowSelection:b}});return u.jsxs("div",{children:[o&&u.jsx(yc,{table:m}),u.jsx("div",{className:"pr-twp",children:u.jsxs(ur,{children:[u.jsx(dr,{children:m.getHeaderGroups().map(g=>u.jsx(St,{children:g.headers.map(w=>u.jsx(xn,{children:w.isPlaceholder?void 0:yt.flexRender(w.column.columnDef.header,w.getContext())},w.id))},g.id))}),u.jsx(fr,{children:(f=m.getRowModel().rows)!=null&&f.length?m.getRowModel().rows.map(g=>u.jsx(St,{onClick:()=>a(g,m),"data-state":g.getIsSelected()&&"selected",children:g.getVisibleCells().map(w=>u.jsx(Ut,{children:yt.flexRender(w.column.columnDef.cell,w.getContext())},w.id))},g.id)):u.jsx(St,{children:u.jsx(Ut,{colSpan:e.length,className:"pr-h-24 pr-text-center",children:"No results."})})})]})}),n&&u.jsxs("div",{className:"pr-flex pr-items-center pr-justify-end pr-space-x-2 pr-py-4",children:[u.jsx(Te,{variant:"outline",size:"sm",onClick:()=>m.previousPage(),disabled:!m.getCanPreviousPage(),children:"Previous"}),u.jsx(Te,{variant:"outline",size:"sm",onClick:()=>m.nextPage(),disabled:!m.getCanNextPage(),children:"Next"})]}),n&&r&&u.jsx(vc,{table:m})]})}function Kr({id:e,title:t,isDisabled:n=!1,isClearable:r=!0,hasError:o=!1,isFullWidth:a=!1,width:s,options:l=[],className:c,value:d,onChange:h,onFocus:v,onBlur:b,getOptionLabel:p}){return u.jsx(ye.Autocomplete,{id:e,disablePortal:!0,disabled:n,disableClearable:!r,fullWidth:a,options:l,className:`papi-combo-box ${o?"error":""} ${c??""}`,value:d,onChange:h,onFocus:v,onBlur:b,getOptionLabel:p,renderInput:m=>u.jsx(ye.TextField,{...m,error:o,fullWidth:a,disabled:n,label:t,style:{width:s}})})}function wc({handleSelectStartChapter:e,handleSelectEndChapter:t,isDisabled:n=!1,chapterCount:r}){const[o,a]=N.useState(1),[s,l]=N.useState(r),[c,d]=N.useState(Array.from({length:r},(b,p)=>p+1));N.useEffect(()=>{a(1),e(1),l(r),t(r),d(Array.from({length:r},(b,p)=>p+1))},[r,t,e]);const h=(b,p)=>{a(p),e(p),p>s&&(l(p),t(p))},v=(b,p)=>{l(p),t(p),ph(b,p),className:"book-selection-chapter",isClearable:!1,options:c,getOptionLabel:b=>b.toString(),value:o,isDisabled:n},"start chapter"),label:"Chapters",labelPlacement:"start"}),u.jsx(ye.FormControlLabel,{className:"book-selection-chapter-form-label end",disabled:n,control:u.jsx(Kr,{onChange:(b,p)=>v(b,p),className:"book-selection-chapter",isClearable:!1,options:c,getOptionLabel:b=>b.toString(),value:s,isDisabled:n},"end chapter"),label:"to",labelPlacement:"start"})]})}var kt=(e=>(e.After="after",e.Before="before",e.Above="above",e.Below="below",e))(kt||{});function Ps({id:e,isChecked:t,labelText:n="",labelPosition:r=kt.After,isIndeterminate:o=!1,isDefaultChecked:a,isDisabled:s=!1,hasError:l=!1,className:c,onChange:d}){const h=u.jsx(ye.Checkbox,{id:e,checked:t,indeterminate:o,defaultChecked:a,disabled:s,className:`papi-checkbox ${l?"error":""} ${c??""}`,onChange:d});let v;if(n){const b=r===kt.Before||r===kt.Above,p=u.jsx("span",{className:`papi-checkbox-label ${l?"error":""} ${c??""}`,children:n}),m=r===kt.Before||r===kt.After,f=m?p:u.jsx("div",{children:p}),g=m?h:u.jsx("div",{children:h});v=u.jsxs(ye.FormLabel,{className:`papi-checkbox ${r.toString()}`,disabled:s,error:l,children:[b&&f,g,!b&&f]})}else v=h;return v}function xc({id:e,className:t,legend:n,listItems:r,selectedListItems:o,handleSelectListItem:a,createLabel:s}){return u.jsxs("fieldset",{id:e,className:t,children:[n&&u.jsx("legend",{children:n}),r.map(l=>u.jsx(Ps,{className:"check-item",isChecked:o.includes(l),labelText:s?s(l):l,onChange:()=>a(l)},l))]})}function fe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function j(z,X,H,q,Y){for(var K=z[X],W=0;W0?", expected one of type ["+J.join(", ")+"]":"";return new v("Invalid "+K+" `"+W+"` supplied to "+("`"+Y+"`"+te+"."))}return m(X)}function F(){function N(j,z,X,H,q){return L(j[z])?null:new v("Invalid "+H+" `"+q+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return m(N)}function O(N,j,z,X,H){return new v((N||"React class")+": "+j+" type `"+z+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function $(N){function j(z,X,H,q,Y){var K=z[X],W=R(K);if(W!=="object")return new v("Invalid "+q+" `"+Y+"` of type `"+W+"` "+("supplied to `"+H+"`, expected `object`."));for(var J in N){var Q=N[J];if(typeof Q!="function")return O(H,q,Y,J,B(Q));var oe=Q(K,J,H,q,Y+"."+J,n);if(oe)return oe}return null}return m(j)}function _(N){function j(z,X,H,q,Y){var K=z[X],W=R(K);if(W!=="object")return new v("Invalid "+q+" `"+Y+"` of type `"+W+"` "+("supplied to `"+H+"`, expected `object`."));var J=t({},z[X],N);for(var Q in J){var oe=N[Q];if(r(N,Q)&&typeof oe!="function")return O(H,q,Y,Q,B(oe));if(!oe)return new v("Invalid "+q+" `"+Y+"` key `"+Q+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify(z[X],null," ")+` -Valid keys: `+JSON.stringify(Object.keys(N),null," "));var A=oe(K,Q,H,q,Y+"."+Q,n);if(A)return A}return null}return m(j)}function L(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(L);if(N===null||l(N))return!0;var j=h(N);if(j){var z=j.call(N),X;if(j!==N.entries){for(;!(X=z.next()).done;)if(!L(X.value))return!1}else for(;!(X=z.next()).done;){var H=X.value;if(H&&!L(H[1]))return!1}}else return!1;return!0;default:return!1}}function U(N,j){return N==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function R(N){var j=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":U(j,N)?"symbol":j}function B(N){if(typeof N>"u"||N===null)return""+N;var j=R(N);if(j==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return j}function ee(N){var j=B(N);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function Z(N){return!N.constructor||!N.constructor.name?f:N.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Cr}var Or,Qo;function Fl(){if(Qo)return Or;Qo=1;var e=so();function t(){}function n(){}return n.resetWarningCache=t,Or=function(){function r(i,l,c,u,d,h){if(h!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Or}if(process.env.NODE_ENV!=="production"){var zl=ia(),Ul=!0;Lr.exports=Vl()(zl.isElement,Ul)}else Lr.exports=Fl()();var Hl=Lr.exports;const a=$l(Hl);function qt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function wt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ca(e){if(!wt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ca(e[n])}),t}function tt(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(wt(t[o])&&o in e&&wt(e[o])?r[o]=tt(e[o],t[o],n):n.clone?r[o]=wt(t[o])?ca(t[o]):t[o]:r[o]=t[o])}),r}function ql(e){const{prototype:t={}}=e;return!!t.isReactComponent}function pa(e,t,n,r,o){const s=e[t],i=o||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!ql(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ua=qt(a.element,pa);ua.isRequired=qt(a.element.isRequired,pa);const kn=ua;function Wl(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Xl(e,t,n,r,o){const s=e[t],i=o||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!Wl(s)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Yl=qt(a.elementType,Xl),Gl="exact-prop: ​";function da(e){return process.env.NODE_ENV==="production"?e:S({},e,{[Gl]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function Bt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function $(z,G,H,W,Y){for(var K=z[G],X=0;X0?", expected one of type ["+J.join(", ")+"]":"";return new f("Invalid "+K+" `"+X+"` supplied to "+("`"+Y+"`"+te+"."))}return g(G)}function L(){function C($,z,G,H,W){return V($[z])?null:new f("Invalid "+H+" `"+W+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return g(C)}function R(C,$,z,G,H){return new f((C||"React class")+": "+$+" type `"+z+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function I(C){function $(z,G,H,W,Y){var K=z[G],X=j(K);if(X!=="object")return new f("Invalid "+W+" `"+Y+"` of type `"+X+"` "+("supplied to `"+H+"`, expected `object`."));for(var J in C){var Q=C[J];if(typeof Q!="function")return R(H,W,Y,J,F(Q));var ae=Q(K,J,H,W,Y+"."+J,n);if(ae)return ae}return null}return g($)}function A(C){function $(z,G,H,W,Y){var K=z[G],X=j(K);if(X!=="object")return new f("Invalid "+W+" `"+Y+"` of type `"+X+"` "+("supplied to `"+H+"`, expected `object`."));var J=t({},z[G],C);for(var Q in J){var ae=C[Q];if(r(C,Q)&&typeof ae!="function")return R(H,W,Y,Q,F(ae));if(!ae)return new f("Invalid "+W+" `"+Y+"` key `"+Q+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify(z[G],null," ")+` +Valid keys: `+JSON.stringify(Object.keys(C),null," "));var B=ae(K,Q,H,W,Y+"."+Q,n);if(B)return B}return null}return g($)}function V(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(V);if(C===null||l(C))return!0;var $=v(C);if($){var z=$.call(C),G;if($!==C.entries){for(;!(G=z.next()).done;)if(!V(G.value))return!1}else for(;!(G=z.next()).done;){var H=G.value;if(H&&!V(H[1]))return!1}}else return!1;return!0;default:return!1}}function U(C,$){return C==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function j(C){var $=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":U($,C)?"symbol":$}function F(C){if(typeof C>"u"||C===null)return""+C;var $=j(C);if($==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return $}function ee(C){var $=F(C);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function Z(C){return!C.constructor||!C.constructor.name?b:C.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Ir}var Ar,ma;function Pc(){if(ma)return Ar;ma=1;var e=wo();function t(){}function n(){}return n.resetWarningCache=t,Ar=function(){function r(s,l,c,d,h,v){if(v!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Ar}if(process.env.NODE_ENV!=="production"){var Rc=Rs(),jc=!0;Jr.exports=Oc()(Rc.isElement,jc)}else Jr.exports=Pc()();var $c=Jr.exports;const i=Ec($c);function Jt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Tt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $s(e){if(!Tt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$s(e[n])}),t}function rt(e,t,n={clone:!0}){const r=n.clone?O({},e):e;return Tt(e)&&Tt(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Tt(t[o])&&o in e&&Tt(e[o])?r[o]=rt(e[o],t[o],n):n.clone?r[o]=Tt(t[o])?$s(t[o]):t[o]:r[o]=t[o])}),r}function Mc(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Ms(e,t,n,r,o){const a=e[t],s=o||t;if(a==null||typeof window>"u")return null;let l;const c=a.type;return typeof c=="function"&&!Mc(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const _s=Jt(i.element,Ms);_s.isRequired=Jt(i.element.isRequired,Ms);const jn=_s;function _c(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Ic(e,t,n,r,o){const a=e[t],s=o||t;if(a==null||typeof window>"u")return null;let l;return typeof a=="function"&&!_c(a)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ac=Jt(i.elementType,Ic),Dc="exact-prop: ​";function Is(e){return process.env.NODE_ENV==="production"?e:O({},e,{[Dc]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function Ht(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ha(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function nc(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,s,i)=>{const l=o||"<>",c=i||r;return typeof n[r]<"u"?new Error(`The ${s} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function rc(e,t){var n,r;return T.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Se(e){return e&&e.ownerDocument||document}function Lt(e){return Se(e).defaultView||window}function oc(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?S({},t.propTypes):null;return o=>(s,i,l,c,u,...d)=>{const h=u||i,f=n==null?void 0:n[h];if(f){const b=f(s,i,l,c,u,...d);if(b)return b}return typeof s[i]<"u"&&!s[o]?new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Xn(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const sc=typeof window<"u"?T.useLayoutEffect:T.useEffect,kt=sc;let rs=0;function ac(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(rs+=1,n(`mui-${rs}`))},[t]),r}const os=T["useId".toString()];function ma(e){if(os!==void 0){const t=os();return e??t}return ac(e)}function ic(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function ga({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=T.useRef(e!==void 0),[s,i]=T.useState(t),l=o?e:s;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(` -`))},[r,n,e]);const{current:u}=T.useRef(t);T.useEffect(()=>{!o&&u!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(` -`))},[JSON.stringify(t)])}const c=T.useCallback(u=>{o||i(u)},[]);return[l,c]}function bn(e){const t=T.useRef(e);return kt(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function ze(...e){return T.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Xn(n,t)})},e)}const ss={};function lc(e,t){const n=T.useRef(ss);return n.current===ss&&(n.current=e(t)),n}const cc=[];function pc(e){T.useEffect(e,cc)}class Nn{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Nn}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function sn(){const e=lc(Nn.create).current;return pc(e.disposeEffect),e}let ar=!0,zr=!1;const uc=new Nn,dc={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fc(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&dc[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function hc(e){e.metaKey||e.altKey||e.ctrlKey||(ar=!0)}function Pr(){ar=!1}function mc(){this.visibilityState==="hidden"&&zr&&(ar=!0)}function gc(e){e.addEventListener("keydown",hc,!0),e.addEventListener("mousedown",Pr,!0),e.addEventListener("pointerdown",Pr,!0),e.addEventListener("touchstart",Pr,!0),e.addEventListener("visibilitychange",mc,!0)}function bc(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ar||fc(t)}function ba(){const e=T.useCallback(o=>{o!=null&&gc(o.ownerDocument)},[]),t=T.useRef(!1);function n(){return t.current?(zr=!0,uc.start(100,()=>{zr=!1}),t.current=!1,!0):!1}function r(o){return bc(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function va(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function vc(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function yc(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const wc=Number.isInteger||yc;function ya(e,t,n,r){const o=e[t];if(o==null||!wc(o)){const s=vc(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function wa(e,t,...n){return e[t]===void 0?null:ya(e,t,...n)}function Ur(){return null}wa.isRequired=ya;Ur.isRequired=Ur;const xa=process.env.NODE_ENV==="production"?Ur:wa;function Ea(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=S({},s),Object.keys(o).forEach(i=>{n[r][i]=Ea(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function st(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),n&&n[i]&&s.push(n[i])}return s},[]).join(" ")}),r}const as=e=>e,xc=()=>{let e=as;return{configure(t){e=t},generate(t){return e(t)},reset(){e=as}}},Ec=xc(),Ta=Ec,ka={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Je(e,t,n="Mui"){const r=ka[t];return r?`${n}-${r}`:`${Ta.generate(e)}-${t}`}function pt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Je(e,o,n)}),r}function Tc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Na(e){return typeof e=="string"}function an(e,t,n){return e===void 0||Na(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const kc={disableDefaultClasses:!1},Nc=T.createContext(kc);function Sc(e){const{disableDefaultClasses:t}=T.useContext(Nc);return n=>t?"":e(n)}function Sa(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Cc(e,t,n){return typeof e=="function"?e(t,n):e}function is(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Oc(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const b=Ne(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),y=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=S({},n,o,r);return b.length>0&&(v.className=b),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:void 0}}const i=Sa(S({},o,r)),l=is(r),c=is(o),u=t(i),d=Ne(u==null?void 0:u.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),h=S({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=S({},u,n,c,l);return d.length>0&&(f.className=d),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:u.ref}}const Pc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Nt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=ue(e,Pc),l=s?{}:Cc(r,o),{props:c,internalRef:u}=Oc(S({},i,{externalSlotProps:l})),d=ze(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return an(n,S({},c,{ref:d}),o)}const Ca="base";function Rc(e){return`${Ca}--${e}`}function jc(e,t){return`${Ca}-${e}-${t}`}function Oa(e,t){const n=ka[t];return n?Rc(n):jc(e,t)}function Mc(e,t){const n={};return t.forEach(r=>{n[r]=Oa(e,r)}),n}const _c=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $c(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Ic(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Ac(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ic(e))}function Dc(e){const t=[],n=[];return Array.from(e.querySelectorAll(_c)).forEach((r,o)=>{const s=$c(r);s===-1||!Ac(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Bc(){return!0}function Yn(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=Dc,isEnabled:i=Bc,open:l}=e,c=T.useRef(!1),u=T.useRef(null),d=T.useRef(null),h=T.useRef(null),f=T.useRef(null),b=T.useRef(!1),y=T.useRef(null),v=ze(t.ref,y),m=T.useRef(null);T.useEffect(()=>{!l||!y.current||(b.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!y.current)return;const w=Se(y.current);return y.current.contains(w.activeElement)||(y.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(` -`)),y.current.setAttribute("tabIndex","-1")),b.current&&y.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),T.useEffect(()=>{if(!l||!y.current)return;const w=Se(y.current),E=P=>{m.current=P,!(r||!i()||P.key!=="Tab")&&w.activeElement===y.current&&P.shiftKey&&(c.current=!0,d.current&&d.current.focus())},g=()=>{const P=y.current;if(P===null)return;if(!w.hasFocus()||!i()||c.current){c.current=!1;return}if(P.contains(w.activeElement)||r&&w.activeElement!==u.current&&w.activeElement!==d.current)return;if(w.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!b.current)return;let V=[];if((w.activeElement===u.current||w.activeElement===d.current)&&(V=s(y.current)),V.length>0){var D,F;const O=!!((D=m.current)!=null&&D.shiftKey&&((F=m.current)==null?void 0:F.key)==="Tab"),$=V[0],_=V[V.length-1];typeof $!="string"&&typeof _!="string"&&(O?_.focus():$.focus())}else P.focus()};w.addEventListener("focusin",g),w.addEventListener("keydown",E,!0);const C=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&g()},50);return()=>{clearInterval(C),w.removeEventListener("focusin",g),w.removeEventListener("keydown",E,!0)}},[n,r,o,i,l,s]);const x=w=>{h.current===null&&(h.current=w.relatedTarget),b.current=!0,f.current=w.target;const E=t.props.onFocus;E&&E(w)},I=w=>{h.current===null&&(h.current=w.relatedTarget),b.current=!0};return p.jsxs(T.Fragment,{children:[p.jsx("div",{tabIndex:l?0:-1,onFocus:I,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:v,onFocus:x}),p.jsx("div",{tabIndex:l?0:-1,onFocus:I,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Yn.propTypes={children:kn,disableAutoFocus:a.bool,disableEnforceFocus:a.bool,disableRestoreFocus:a.bool,getTabbable:a.func,isEnabled:a.func,open:a.bool.isRequired});process.env.NODE_ENV!=="production"&&(Yn["propTypes"]=da(Yn.propTypes));function Lc(e){return typeof e=="function"?e():e}const vn=T.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,l]=T.useState(null),c=ze(T.isValidElement(r)?r.ref:null,n);if(kt(()=>{s||l(Lc(o)||document.body)},[o,s]),kt(()=>{if(i&&!s)return Xn(n,i),()=>{Xn(n,null)}},[n,i,s]),s){if(T.isValidElement(r)){const u={ref:c};return T.cloneElement(r,u)}return p.jsx(T.Fragment,{children:r})}return p.jsx(T.Fragment,{children:i&&Qi.createPortal(r,i)})});process.env.NODE_ENV!=="production"&&(vn.propTypes={children:a.node,container:a.oneOfType([nt,a.func]),disablePortal:a.bool});process.env.NODE_ENV!=="production"&&(vn["propTypes"]=da(vn.propTypes));function Vc(e){const t=Se(e);return t.body===e?Lt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ls(e){return parseInt(Lt(e).getComputedStyle(e).paddingRight,10)||0}function Fc(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function cs(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const l=s.indexOf(i)===-1,c=!Fc(i);l&&c&&pn(i,o)})}function Rr(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function zc(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Vc(r)){const i=va(Se(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ls(r)+i}px`;const l=Se(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${ls(c)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Se(r).body;else{const i=r.parentElement,l=Lt(r);s=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:l})=>{s?i.style.setProperty(l,s):i.style.removeProperty(l)})}}function Uc(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Hc{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&pn(t.modalRef,!1);const o=Uc(n);cs(n,t.mount,t.modalRef,o,!0);const s=Rr(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Rr(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=zc(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Rr(this.containers,i=>i.modals.indexOf(t)!==-1),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&pn(t.modalRef,n),cs(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&pn(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function qc(e){return typeof e=="function"?e():e}function Wc(e){return e?e.props.hasOwnProperty("in"):!1}const Xc=new Hc;function Yc(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Xc,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:h}=e,f=T.useRef({}),b=T.useRef(null),y=T.useRef(null),v=ze(y,h),[m,x]=T.useState(!d),I=Wc(c);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const E=()=>Se(b.current),g=()=>(f.current.modalRef=y.current,f.current.mount=b.current,f.current),C=()=>{o.mount(g(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=bn(()=>{const R=qc(t)||E().body;o.add(g(),R),y.current&&C()}),V=T.useCallback(()=>o.isTopModal(g()),[o]),D=bn(R=>{b.current=R,R&&(d&&V()?C():y.current&&pn(y.current,w))}),F=T.useCallback(()=>{o.remove(g(),w)},[w,o]);T.useEffect(()=>()=>{F()},[F]),T.useEffect(()=>{d?P():(!I||!s)&&F()},[d,F,I,s,P]);const O=R=>B=>{var ee;(ee=R.onKeyDown)==null||ee.call(R,B),!(B.key!=="Escape"||B.which===229||!V())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},$=R=>B=>{var ee;(ee=R.onClick)==null||ee.call(R,B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(R={})=>{const B=Sa(e);delete B.onTransitionEnter,delete B.onTransitionExited;const ee=S({},B,R);return S({role:"presentation"},ee,{onKeyDown:O(ee),ref:v})},getBackdropProps:(R={})=>{const B=R;return S({"aria-hidden":!0},B,{onClick:$(B),open:d})},getTransitionProps:()=>{const R=()=>{x(!1),i&&i()},B=()=>{x(!0),l&&l(),s&&F()};return{onEnter:Fr(R,c==null?void 0:c.props.onEnter),onExited:Fr(B,c==null?void 0:c.props.onExited)}},rootRef:v,portalRef:D,isTopModal:V,exited:m,hasTransition:I}}var je="top",Ue="bottom",He="right",Me="left",io="auto",Sn=[je,Ue,He,Me],Vt="start",yn="end",Gc="clippingParents",Pa="viewport",Qt="popper",Kc="reference",ps=Sn.reduce(function(e,t){return e.concat([t+"-"+Vt,t+"-"+yn])},[]),Ra=[].concat(Sn,[io]).reduce(function(e,t){return e.concat([t,t+"-"+Vt,t+"-"+yn])},[]),Jc="beforeRead",Zc="read",Qc="afterRead",ep="beforeMain",tp="main",np="afterMain",rp="beforeWrite",op="write",sp="afterWrite",ap=[Jc,Zc,Qc,ep,tp,np,rp,op,sp];function Ke(e){return e?(e.nodeName||"").toLowerCase():null}function Be(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function St(e){var t=Be(e).Element;return e instanceof t||e instanceof Element}function Fe(e){var t=Be(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function lo(e){if(typeof ShadowRoot>"u")return!1;var t=Be(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ip(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Fe(s)||!Ke(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function lp(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(c,u){return c[u]="",c},{});!Fe(o)||!Ke(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const cp={name:"applyStyles",enabled:!0,phase:"write",fn:ip,effect:lp,requires:["computeStyles"]};function Ye(e){return e.split("-")[0]}var Et=Math.max,Gn=Math.min,Ft=Math.round;function Hr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ja(){return!/^((?!chrome|android).)*safari/i.test(Hr())}function zt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Fe(e)&&(o=e.offsetWidth>0&&Ft(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ft(r.height)/e.offsetHeight||1);var i=St(e)?Be(e):window,l=i.visualViewport,c=!ja()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/o,d=(r.top+(c&&l?l.offsetTop:0))/s,h=r.width/o,f=r.height/s;return{width:h,height:f,top:d,right:u+h,bottom:d+f,left:u,x:u,y:d}}function co(e){var t=zt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ma(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&lo(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rt(e){return Be(e).getComputedStyle(e)}function pp(e){return["table","td","th"].indexOf(Ke(e))>=0}function ut(e){return((St(e)?e.ownerDocument:e.document)||window.document).documentElement}function ir(e){return Ke(e)==="html"?e:e.assignedSlot||e.parentNode||(lo(e)?e.host:null)||ut(e)}function us(e){return!Fe(e)||rt(e).position==="fixed"?null:e.offsetParent}function up(e){var t=/firefox/i.test(Hr()),n=/Trident/i.test(Hr());if(n&&Fe(e)){var r=rt(e);if(r.position==="fixed")return null}var o=ir(e);for(lo(o)&&(o=o.host);Fe(o)&&["html","body"].indexOf(Ke(o))<0;){var s=rt(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Cn(e){for(var t=Be(e),n=us(e);n&&pp(n)&&rt(n).position==="static";)n=us(n);return n&&(Ke(n)==="html"||Ke(n)==="body"&&rt(n).position==="static")?t:n||up(e)||t}function po(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function un(e,t,n){return Et(e,Gn(t,n))}function dp(e,t,n){var r=un(e,t,n);return r>n?n:r}function _a(){return{top:0,right:0,bottom:0,left:0}}function $a(e){return Object.assign({},_a(),e)}function Ia(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fp=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,$a(typeof t!="number"?t:Ia(t,Sn))};function hp(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ye(n.placement),c=po(l),u=[Me,He].indexOf(l)>=0,d=u?"height":"width";if(!(!s||!i)){var h=fp(o.padding,n),f=co(s),b=c==="y"?je:Me,y=c==="y"?Ue:He,v=n.rects.reference[d]+n.rects.reference[c]-i[c]-n.rects.popper[d],m=i[c]-n.rects.reference[c],x=Cn(s),I=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,w=v/2-m/2,E=h[b],g=I-f[d]-h[y],C=I/2-f[d]/2+w,P=un(E,C,g),V=c;n.modifiersData[r]=(t={},t[V]=P,t.centerOffset=P-C,t)}}function mp(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ma(t.elements.popper,o)&&(t.elements.arrow=o))}const gp={name:"arrow",enabled:!0,phase:"main",fn:hp,effect:mp,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ut(e){return e.split("-")[1]}var bp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vp(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ft(n*o)/o||0,y:Ft(r*o)/o||0}}function ds(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,f=i.x,b=f===void 0?0:f,y=i.y,v=y===void 0?0:y,m=typeof d=="function"?d({x:b,y:v}):{x:b,y:v};b=m.x,v=m.y;var x=i.hasOwnProperty("x"),I=i.hasOwnProperty("y"),w=Me,E=je,g=window;if(u){var C=Cn(n),P="clientHeight",V="clientWidth";if(C===Be(n)&&(C=ut(n),rt(C).position!=="static"&&l==="absolute"&&(P="scrollHeight",V="scrollWidth")),C=C,o===je||(o===Me||o===He)&&s===yn){E=Ue;var D=h&&C===g&&g.visualViewport?g.visualViewport.height:C[P];v-=D-r.height,v*=c?1:-1}if(o===Me||(o===je||o===Ue)&&s===yn){w=He;var F=h&&C===g&&g.visualViewport?g.visualViewport.width:C[V];b-=F-r.width,b*=c?1:-1}}var O=Object.assign({position:l},u&&bp),$=d===!0?vp({x:b,y:v},Be(n)):{x:b,y:v};if(b=$.x,v=$.y,c){var _;return Object.assign({},O,(_={},_[E]=I?"0":"",_[w]=x?"0":"",_.transform=(g.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",_))}return Object.assign({},O,(t={},t[E]=I?v+"px":"",t[w]=x?b+"px":"",t.transform="",t))}function yp(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Ye(t.placement),variation:Ut(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ds(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ds(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const wp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yp,data:{}};var In={passive:!0};function xp(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,c=Be(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,In)}),l&&c.addEventListener("resize",n.update,In),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,In)}),l&&c.removeEventListener("resize",n.update,In)}}const Ep={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xp,data:{}};var Tp={left:"right",right:"left",bottom:"top",top:"bottom"};function Vn(e){return e.replace(/left|right|bottom|top/g,function(t){return Tp[t]})}var kp={start:"end",end:"start"};function fs(e){return e.replace(/start|end/g,function(t){return kp[t]})}function uo(e){var t=Be(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function fo(e){return zt(ut(e)).left+uo(e).scrollLeft}function Np(e,t){var n=Be(e),r=ut(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;var u=ja();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:l+fo(e),y:c}}function Sp(e){var t,n=ut(e),r=uo(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Et(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Et(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+fo(e),c=-r.scrollTop;return rt(o||n).direction==="rtl"&&(l+=Et(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:c}}function ho(e){var t=rt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Aa(e){return["html","body","#document"].indexOf(Ke(e))>=0?e.ownerDocument.body:Fe(e)&&ho(e)?e:Aa(ir(e))}function dn(e,t){var n;t===void 0&&(t=[]);var r=Aa(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Be(r),i=o?[s].concat(s.visualViewport||[],ho(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(dn(ir(i)))}function qr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Cp(e,t){var n=zt(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function hs(e,t,n){return t===Pa?qr(Np(e,n)):St(t)?Cp(t,n):qr(Sp(ut(e)))}function Op(e){var t=dn(ir(e)),n=["absolute","fixed"].indexOf(rt(e).position)>=0,r=n&&Fe(e)?Cn(e):e;return St(r)?t.filter(function(o){return St(o)&&Ma(o,r)&&Ke(o)!=="body"}):[]}function Pp(e,t,n,r){var o=t==="clippingParents"?Op(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(c,u){var d=hs(e,u,r);return c.top=Et(d.top,c.top),c.right=Gn(d.right,c.right),c.bottom=Gn(d.bottom,c.bottom),c.left=Et(d.left,c.left),c},hs(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Da(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ye(r):null,s=r?Ut(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case je:c={x:i,y:t.y-n.height};break;case Ue:c={x:i,y:t.y+t.height};break;case He:c={x:t.x+t.width,y:l};break;case Me:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?po(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Vt:c[u]=c[u]-(t[d]/2-n[d]/2);break;case yn:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function wn(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?Gc:l,u=n.rootBoundary,d=u===void 0?Pa:u,h=n.elementContext,f=h===void 0?Qt:h,b=n.altBoundary,y=b===void 0?!1:b,v=n.padding,m=v===void 0?0:v,x=$a(typeof m!="number"?m:Ia(m,Sn)),I=f===Qt?Kc:Qt,w=e.rects.popper,E=e.elements[y?I:f],g=Pp(St(E)?E:E.contextElement||ut(e.elements.popper),c,d,i),C=zt(e.elements.reference),P=Da({reference:C,element:w,strategy:"absolute",placement:o}),V=qr(Object.assign({},w,P)),D=f===Qt?V:C,F={top:g.top-D.top+x.top,bottom:D.bottom-g.bottom+x.bottom,left:g.left-D.left+x.left,right:D.right-g.right+x.right},O=e.modifiersData.offset;if(f===Qt&&O){var $=O[o];Object.keys(F).forEach(function(_){var L=[He,Ue].indexOf(_)>=0?1:-1,U=[je,Ue].indexOf(_)>=0?"y":"x";F[_]+=$[U]*L})}return F}function Rp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Ra:c,d=Ut(r),h=d?l?ps:ps.filter(function(y){return Ut(y)===d}):Sn,f=h.filter(function(y){return u.indexOf(y)>=0});f.length===0&&(f=h);var b=f.reduce(function(y,v){return y[v]=wn(e,{placement:v,boundary:o,rootBoundary:s,padding:i})[Ye(v)],y},{});return Object.keys(b).sort(function(y,v){return b[y]-b[v]})}function jp(e){if(Ye(e)===io)return[];var t=Vn(e);return[fs(e),t,fs(t)]}function Mp(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,c=n.fallbackPlacements,u=n.padding,d=n.boundary,h=n.rootBoundary,f=n.altBoundary,b=n.flipVariations,y=b===void 0?!0:b,v=n.allowedAutoPlacements,m=t.options.placement,x=Ye(m),I=x===m,w=c||(I||!y?[Vn(m)]:jp(m)),E=[m].concat(w).reduce(function(H,q){return H.concat(Ye(q)===io?Rp(t,{placement:q,boundary:d,rootBoundary:h,padding:u,flipVariations:y,allowedAutoPlacements:v}):q)},[]),g=t.rects.reference,C=t.rects.popper,P=new Map,V=!0,D=E[0],F=0;F=0,U=L?"width":"height",R=wn(t,{placement:O,boundary:d,rootBoundary:h,altBoundary:f,padding:u}),B=L?_?He:Me:_?Ue:je;g[U]>C[U]&&(B=Vn(B));var ee=Vn(B),Z=[];if(s&&Z.push(R[$]<=0),l&&Z.push(R[B]<=0,R[ee]<=0),Z.every(function(H){return H})){D=O,V=!1;break}P.set(O,Z)}if(V)for(var N=y?3:1,j=function(q){var Y=E.find(function(K){var W=P.get(K);if(W)return W.slice(0,q).every(function(J){return J})});if(Y)return D=Y,"break"},z=N;z>0;z--){var X=j(z);if(X==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const _p={name:"flip",enabled:!0,phase:"main",fn:Mp,requiresIfExists:["offset"],data:{_skip:!1}};function ms(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function gs(e){return[je,He,Ue,Me].some(function(t){return e[t]>=0})}function $p(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=wn(t,{elementContext:"reference"}),l=wn(t,{altBoundary:!0}),c=ms(i,r),u=ms(l,o,s),d=gs(c),h=gs(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const Ip={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$p};function Ap(e,t,n){var r=Ye(e),o=[Me,je].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],l=s[1];return i=i||0,l=(l||0)*o,[Me,He].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function Dp(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=Ra.reduce(function(d,h){return d[h]=Ap(h,t.rects,s),d},{}),l=i[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const Bp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Dp};function Lp(e){var t=e.state,n=e.name;t.modifiersData[n]=Da({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Vp={name:"popperOffsets",enabled:!0,phase:"read",fn:Lp,data:{}};function Fp(e){return e==="x"?"y":"x"}function zp(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,h=n.padding,f=n.tether,b=f===void 0?!0:f,y=n.tetherOffset,v=y===void 0?0:y,m=wn(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:d}),x=Ye(t.placement),I=Ut(t.placement),w=!I,E=po(x),g=Fp(E),C=t.modifiersData.popperOffsets,P=t.rects.reference,V=t.rects.popper,D=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,F=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(C){if(s){var _,L=E==="y"?je:Me,U=E==="y"?Ue:He,R=E==="y"?"height":"width",B=C[E],ee=B+m[L],Z=B-m[U],N=b?-V[R]/2:0,j=I===Vt?P[R]:V[R],z=I===Vt?-V[R]:-P[R],X=t.elements.arrow,H=b&&X?co(X):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:_a(),Y=q[L],K=q[U],W=un(0,P[R],H[R]),J=w?P[R]/2-N-W-Y-F.mainAxis:j-W-Y-F.mainAxis,Q=w?-P[R]/2+N+W+K+F.mainAxis:z+W+K+F.mainAxis,oe=t.elements.arrow&&Cn(t.elements.arrow),A=oe?E==="y"?oe.clientTop||0:oe.clientLeft||0:0,te=(_=O==null?void 0:O[E])!=null?_:0,M=B+J-te-A,se=B+Q-te,Ee=un(b?Gn(ee,M):ee,B,b?Et(Z,se):Z);C[E]=Ee,$[E]=Ee-B}if(l){var Oe,we=E==="x"?je:Me,ft=E==="x"?Ue:He,Pe=C[g],Ze=g==="y"?"height":"width",$e=Pe+m[we],Qe=Pe-m[ft],Te=[je,Me].indexOf(x)!==-1,Ot=(Oe=O==null?void 0:O[g])!=null?Oe:0,ht=Te?$e:Pe-P[Ze]-V[Ze]-Ot+F.altAxis,Wt=Te?Pe+P[Ze]+V[Ze]-Ot-F.altAxis:Qe,jn=b&&Te?dp(ht,Pe,Wt):un(b?ht:$e,Pe,b?Wt:Qe);C[g]=jn,$[g]=jn-Pe}t.modifiersData[r]=$}}const Up={name:"preventOverflow",enabled:!0,phase:"main",fn:zp,requiresIfExists:["offset"]};function Hp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qp(e){return e===Be(e)||!Fe(e)?uo(e):Hp(e)}function Wp(e){var t=e.getBoundingClientRect(),n=Ft(t.width)/e.offsetWidth||1,r=Ft(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Xp(e,t,n){n===void 0&&(n=!1);var r=Fe(t),o=Fe(t)&&Wp(t),s=ut(t),i=zt(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ke(t)!=="body"||ho(s))&&(l=qp(t)),Fe(t)?(c=zt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=fo(s))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function Yp(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Gp(e){var t=Yp(e);return ap.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Kp(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Jp(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var bs={placement:"bottom",modifiers:[],strategy:"absolute"};function vs(){for(var e=arguments.length,t=new Array(e),n=0;nst({root:["root"]},Sc(tu)),iu={},lu=T.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:i,disablePortal:l,modifiers:c,open:u,placement:d,popperOptions:h,popperRef:f,slotProps:b={},slots:y={},TransitionProps:v}=t,m=ue(t,nu),x=T.useRef(null),I=ze(x,n),w=T.useRef(null),E=ze(w,f),g=T.useRef(E);kt(()=>{g.current=E},[E]),T.useImperativeHandle(f,()=>w.current,[]);const C=ou(d,i),[P,V]=T.useState(C),[D,F]=T.useState(Kn(o));T.useEffect(()=>{w.current&&w.current.forceUpdate()}),T.useEffect(()=>{o&&F(Kn(o))},[o]),kt(()=>{if(!D||!u)return;const U=ee=>{V(ee.placement)};if(process.env.NODE_ENV!=="production"&&D&&lr(D)&&D.nodeType===1){const ee=D.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ee.top===0&&ee.left===0&&ee.right===0&&ee.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` -`))}let R=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ee})=>{U(ee)}}];c!=null&&(R=R.concat(c)),h&&h.modifiers!=null&&(R=R.concat(h.modifiers));const B=eu(D,x.current,S({placement:C},h,{modifiers:R}));return g.current(B),()=>{B.destroy(),g.current(null)}},[D,l,c,u,h,C]);const O={placement:P};v!==null&&(O.TransitionProps=v);const $=au(),_=(r=y.root)!=null?r:"div",L=Nt({elementType:_,externalSlotProps:b.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:$.root});return p.jsx(_,S({},L,{children:typeof s=="function"?s(O):s}))}),La=T.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:h="bottom",popperOptions:f=iu,popperRef:b,style:y,transition:v=!1,slotProps:m={},slots:x={}}=t,I=ue(t,ru),[w,E]=T.useState(!0),g=()=>{E(!1)},C=()=>{E(!0)};if(!c&&!d&&(!v||w))return null;let P;if(s)P=s;else if(r){const F=Kn(r);P=F&&lr(F)?Se(F).body:Se(null).body}const V=!d&&c&&(!v||w)?"none":void 0,D=v?{in:d,onEnter:g,onExited:C}:void 0;return p.jsx(vn,{disablePortal:l,container:P,children:p.jsx(lu,S({anchorEl:r,direction:i,disablePortal:l,modifiers:u,ref:n,open:v?!w:d,placement:h,popperOptions:f,popperRef:b,slotProps:m,slots:x},I,{style:S({position:"fixed",top:0,left:0,display:V},y),TransitionProps:D,children:o}))})});process.env.NODE_ENV!=="production"&&(La.propTypes={anchorEl:qt(a.oneOfType([nt,a.object,a.func]),e=>{if(e.open){const t=Kn(e.anchorEl);if(t&&lr(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` -`))}else if(!t||typeof t.getBoundingClientRect!="function"||su(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(` -`))}return null}),children:a.oneOfType([a.node,a.func]),container:a.oneOfType([nt,a.func]),direction:a.oneOf(["ltr","rtl"]),disablePortal:a.bool,keepMounted:a.bool,modifiers:a.arrayOf(a.shape({data:a.object,effect:a.func,enabled:a.bool,fn:a.func,name:a.any,options:a.object,phase:a.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:a.arrayOf(a.string),requiresIfExists:a.arrayOf(a.string)})),open:a.bool.isRequired,placement:a.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:a.shape({modifiers:a.array,onFirstUpdate:a.func,placement:a.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:a.oneOf(["absolute","fixed"])}),popperRef:ao,slotProps:a.shape({root:a.oneOfType([a.func,a.object])}),slots:a.shape({root:a.elementType}),transition:a.bool});const cu=["values","unit","step"],pu=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function uu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ue(e,cu),s=pu(t),i=Object.keys(s);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-r/100}${n})`}function d(f){return i.indexOf(f)+1`@media (min-width:${mo[e]}px)`};function ot(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||ys;return t.reduce((i,l,c)=>(i[s.up(s.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const s=r.breakpoints||ys;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||mo).indexOf(l)!==-1){const c=s.up(l);i[c]=n(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return n(t)}function mu(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function gu(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function cr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Jn(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=cr(e,n)||r,t&&(o=t(o,r,e)),o}function xe(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=cr(c,r)||{};return ot(i,l,h=>{let f=Jn(u,o,h);return h===f&&typeof h=="string"&&(f=Jn(u,o,`${t}${h==="default"?"":Ge(h)}`,h)),n===!1?f:{[n]:f}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:dt}:{},s.filterProps=[t],s}function bu(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const vu={m:"margin",p:"padding"},yu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ws={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wu=bu(e=>{if(e.length>2)if(ws[e])e=ws[e];else return[e];const[t,n]=e.split(""),r=vu[t],o=yu[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),pr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ur=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],xu=[...pr,...ur];function On(e,t,n,r){var o;const s=(o=cr(e,t,!1))!=null?o:n;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(` + */var ba;function Lc(){return ba||(ba=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=!1,f=!1,g=!1,w=!1,P=!1,x;x=Symbol.for("react.module.reference");function E(_){return!!(typeof _=="string"||typeof _=="function"||_===n||_===o||P||_===r||_===d||_===h||w||_===p||m||f||g||typeof _=="object"&&_!==null&&(_.$$typeof===b||_.$$typeof===v||_.$$typeof===a||_.$$typeof===s||_.$$typeof===c||_.$$typeof===x||_.getModuleId!==void 0))}function y(_){if(typeof _=="object"&&_!==null){var se=_.$$typeof;switch(se){case e:var ke=_.type;switch(ke){case n:case o:case r:case d:case h:return ke;default:var Pe=ke&&ke.$$typeof;switch(Pe){case l:case s:case c:case b:case v:case a:return Pe;default:return se}}case t:return se}}}var S=s,T=a,M=e,D=c,L=n,R=b,I=v,A=t,V=o,U=r,j=d,F=h,ee=!1,Z=!1;function C(_){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(_){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(_){return y(_)===s}function G(_){return y(_)===a}function H(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function W(_){return y(_)===c}function Y(_){return y(_)===n}function K(_){return y(_)===b}function X(_){return y(_)===v}function J(_){return y(_)===t}function Q(_){return y(_)===o}function ae(_){return y(_)===r}function B(_){return y(_)===d}function te(_){return y(_)===h}ue.ContextConsumer=S,ue.ContextProvider=T,ue.Element=M,ue.ForwardRef=D,ue.Fragment=L,ue.Lazy=R,ue.Memo=I,ue.Portal=A,ue.Profiler=V,ue.StrictMode=U,ue.Suspense=j,ue.SuspenseList=F,ue.isAsyncMode=C,ue.isConcurrentMode=$,ue.isContextConsumer=z,ue.isContextProvider=G,ue.isElement=H,ue.isForwardRef=W,ue.isFragment=Y,ue.isLazy=K,ue.isMemo=X,ue.isPortal=J,ue.isProfiler=Q,ue.isStrictMode=ae,ue.isSuspense=B,ue.isSuspenseList=te,ue.isValidElementType=E,ue.typeOf=y}()),ue}process.env.NODE_ENV==="production"?Zr.exports=Bc():Zr.exports=Lc();var er=Zr.exports;const Fc=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Vc(e){const t=`${e}`.match(Fc);return t&&t[1]||""}function As(e,t=""){return e.displayName||e.name||Vc(e)||t}function va(e,t,n){const r=As(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function zc(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return As(e,"Component");if(typeof e=="object")switch(e.$$typeof){case er.ForwardRef:return va(e,e.render,"ForwardRef");case er.Memo:return va(e,e.type,"memo");default:return}}}function ot(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const a=e[t],s=o||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Uc=i.oneOfType([i.func,i.object]),xo=Uc;function Ke(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ht(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Qr(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Ds(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Hc(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,a,s)=>{const l=o||"<>",c=s||r;return typeof n[r]<"u"?new Error(`The ${a} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function qc(e,t){var n,r;return k.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ce(e){return e&&e.ownerDocument||document}function qt(e){return Ce(e).defaultView||window}function Wc(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?O({},t.propTypes):null;return o=>(a,s,l,c,d,...h)=>{const v=d||s,b=n==null?void 0:n[v];if(b){const p=b(a,s,l,c,d,...h);if(p)return p}return typeof a[s]<"u"&&!a[o]?new Error(`The prop \`${v}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function tr(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Xc=typeof window<"u"?k.useLayoutEffect:k.useEffect,Pt=Xc;let ya=0;function Gc(e){const[t,n]=k.useState(e),r=e||t;return k.useEffect(()=>{t==null&&(ya+=1,n(`mui-${ya}`))},[t]),r}const wa=k["useId".toString()];function Bs(e){if(wa!==void 0){const t=wa();return e??t}return Gc(e)}function Yc(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const a=o||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function Ls({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=k.useRef(e!==void 0),[a,s]=k.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){k.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(` +`))},[r,n,e]);const{current:d}=k.useRef(t);k.useEffect(()=>{!o&&d!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(` +`))},[JSON.stringify(t)])}const c=k.useCallback(d=>{o||s(d)},[]);return[l,c]}function Tn(e){const t=k.useRef(e);return Pt(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Ue(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tr(n,t)})},e)}const xa={};function Kc(e,t){const n=k.useRef(xa);return n.current===xa&&(n.current=e(t)),n}const Jc=[];function Zc(e){k.useEffect(e,Jc)}class $n{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new $n}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function fn(){const e=Kc($n.create).current;return Zc(e.disposeEffect),e}let hr=!0,eo=!1;const Qc=new $n,ep={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function tp(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ep[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function np(e){e.metaKey||e.altKey||e.ctrlKey||(hr=!0)}function Dr(){hr=!1}function rp(){this.visibilityState==="hidden"&&eo&&(hr=!0)}function op(e){e.addEventListener("keydown",np,!0),e.addEventListener("mousedown",Dr,!0),e.addEventListener("pointerdown",Dr,!0),e.addEventListener("touchstart",Dr,!0),e.addEventListener("visibilitychange",rp,!0)}function ap(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return hr||tp(t)}function Fs(){const e=k.useCallback(o=>{o!=null&&op(o.ownerDocument)},[]),t=k.useRef(!1);function n(){return t.current?(eo=!0,Qc.start(100,()=>{eo=!1}),t.current=!1,!0):!1}function r(o){return ap(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Vs(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function sp(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function ip(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const lp=Number.isInteger||ip;function zs(e,t,n,r){const o=e[t];if(o==null||!lp(o)){const a=sp(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${a}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Us(e,t,...n){return e[t]===void 0?null:zs(e,t,...n)}function to(){return null}Us.isRequired=zs;to.isRequired=to;const Hs=process.env.NODE_ENV==="production"?to:Us;function qs(e,t){const n=O({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=O({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=O({},a),Object.keys(o).forEach(s=>{n[r][s]=qs(o[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function it(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,s)=>{if(s){const l=t(s);l!==""&&a.push(l),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}const Ea=e=>e,cp=()=>{let e=Ea;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ea}}},pp=cp(),Ws=pp,Xs={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ze(e,t,n="Mui"){const r=Xs[t];return r?`${n}-${r}`:`${Ws.generate(e)}-${t}`}function ht(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ze(e,o,n)}),r}function up(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Gs(e){return typeof e=="string"}function hn(e,t,n){return e===void 0||Gs(e)?t:O({},t,{ownerState:O({},t.ownerState,n)})}const dp={disableDefaultClasses:!1},fp=k.createContext(dp);function hp(e){const{disableDefaultClasses:t}=k.useContext(fp);return n=>t?"":e(n)}function Ys(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function mp(e,t,n){return typeof e=="function"?e(t,n):e}function ka(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function gp(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const p=Se(n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),m=O({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=O({},n,o,r);return p.length>0&&(f.className=p),Object.keys(m).length>0&&(f.style=m),{props:f,internalRef:void 0}}const s=Ys(O({},o,r)),l=ka(r),c=ka(o),d=t(s),h=Se(d==null?void 0:d.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),v=O({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=O({},d,n,c,l);return h.length>0&&(b.className=h),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:d.ref}}const bp=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Rt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,s=fe(e,bp),l=a?{}:mp(r,o),{props:c,internalRef:d}=gp(O({},s,{externalSlotProps:l})),h=Ue(d,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return hn(n,O({},c,{ref:h}),o)}const Ks="base";function vp(e){return`${Ks}--${e}`}function yp(e,t){return`${Ks}-${e}-${t}`}function Js(e,t){const n=Xs[t];return n?vp(n):yp(e,t)}function wp(e,t){const n={};return t.forEach(r=>{n[r]=Js(e,r)}),n}const xp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ep(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function kp(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Tp(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kp(e))}function Np(e){const t=[],n=[];return Array.from(e.querySelectorAll(xp)).forEach((r,o)=>{const a=Ep(r);a===-1||!Tp(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Sp(){return!0}function nr(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Np,isEnabled:s=Sp,open:l}=e,c=k.useRef(!1),d=k.useRef(null),h=k.useRef(null),v=k.useRef(null),b=k.useRef(null),p=k.useRef(!1),m=k.useRef(null),f=Ue(t.ref,m),g=k.useRef(null);k.useEffect(()=>{!l||!m.current||(p.current=!n)},[n,l]),k.useEffect(()=>{if(!l||!m.current)return;const x=Ce(m.current);return m.current.contains(x.activeElement)||(m.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(` +`)),m.current.setAttribute("tabIndex","-1")),p.current&&m.current.focus()),()=>{o||(v.current&&v.current.focus&&(c.current=!0,v.current.focus()),v.current=null)}},[l]),k.useEffect(()=>{if(!l||!m.current)return;const x=Ce(m.current),E=T=>{g.current=T,!(r||!s()||T.key!=="Tab")&&x.activeElement===m.current&&T.shiftKey&&(c.current=!0,h.current&&h.current.focus())},y=()=>{const T=m.current;if(T===null)return;if(!x.hasFocus()||!s()||c.current){c.current=!1;return}if(T.contains(x.activeElement)||r&&x.activeElement!==d.current&&x.activeElement!==h.current)return;if(x.activeElement!==b.current)b.current=null;else if(b.current!==null)return;if(!p.current)return;let M=[];if((x.activeElement===d.current||x.activeElement===h.current)&&(M=a(m.current)),M.length>0){var D,L;const R=!!((D=g.current)!=null&&D.shiftKey&&((L=g.current)==null?void 0:L.key)==="Tab"),I=M[0],A=M[M.length-1];typeof I!="string"&&typeof A!="string"&&(R?A.focus():I.focus())}else T.focus()};x.addEventListener("focusin",y),x.addEventListener("keydown",E,!0);const S=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&y()},50);return()=>{clearInterval(S),x.removeEventListener("focusin",y),x.removeEventListener("keydown",E,!0)}},[n,r,o,s,l,a]);const w=x=>{v.current===null&&(v.current=x.relatedTarget),p.current=!0,b.current=x.target;const E=t.props.onFocus;E&&E(x)},P=x=>{v.current===null&&(v.current=x.relatedTarget),p.current=!0};return u.jsxs(k.Fragment,{children:[u.jsx("div",{tabIndex:l?0:-1,onFocus:P,ref:d,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:f,onFocus:w}),u.jsx("div",{tabIndex:l?0:-1,onFocus:P,ref:h,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(nr.propTypes={children:jn,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired});process.env.NODE_ENV!=="production"&&(nr["propTypes"]=Is(nr.propTypes));function Cp(e){return typeof e=="function"?e():e}const Nn=k.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,l]=k.useState(null),c=Ue(k.isValidElement(r)?r.ref:null,n);if(Pt(()=>{a||l(Cp(o)||document.body)},[o,a]),Pt(()=>{if(s&&!a)return tr(n,s),()=>{tr(n,null)}},[n,s,a]),a){if(k.isValidElement(r)){const d={ref:c};return k.cloneElement(r,d)}return u.jsx(k.Fragment,{children:r})}return u.jsx(k.Fragment,{children:s&&Vl.createPortal(r,s)})});process.env.NODE_ENV!=="production"&&(Nn.propTypes={children:i.node,container:i.oneOfType([ot,i.func]),disablePortal:i.bool});process.env.NODE_ENV!=="production"&&(Nn["propTypes"]=Is(Nn.propTypes));function Op(e){const t=Ce(e);return t.body===e?qt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function bn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ta(e){return parseInt(qt(e).getComputedStyle(e).paddingRight,10)||0}function Pp(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Na(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=a.indexOf(s)===-1,c=!Pp(s);l&&c&&bn(s,o)})}function Br(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Rp(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Op(r)){const s=Vs(Ce(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ta(r)+s}px`;const l=Ce(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Ta(c)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Ce(r).body;else{const s=r.parentElement,l=qt(r);a=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:l})=>{a?s.style.setProperty(l,a):s.style.removeProperty(l)})}}function jp(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class $p{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&bn(t.modalRef,!1);const o=jp(n);Na(n,t.mount,t.modalRef,o,!0);const a=Br(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Br(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Rp(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Br(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&bn(t.modalRef,n),Na(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&bn(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Mp(e){return typeof e=="function"?e():e}function _p(e){return e?e.props.hasOwnProperty("in"):!1}const Ip=new $p;function Ap(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Ip,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:h,rootRef:v}=e,b=k.useRef({}),p=k.useRef(null),m=k.useRef(null),f=Ue(m,v),[g,w]=k.useState(!h),P=_p(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const E=()=>Ce(p.current),y=()=>(b.current.modalRef=m.current,b.current.mount=p.current,b.current),S=()=>{o.mount(y(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},T=Tn(()=>{const j=Mp(t)||E().body;o.add(y(),j),m.current&&S()}),M=k.useCallback(()=>o.isTopModal(y()),[o]),D=Tn(j=>{p.current=j,j&&(h&&M()?S():m.current&&bn(m.current,x))}),L=k.useCallback(()=>{o.remove(y(),x)},[x,o]);k.useEffect(()=>()=>{L()},[L]),k.useEffect(()=>{h?T():(!P||!a)&&L()},[h,L,P,a,T]);const R=j=>F=>{var ee;(ee=j.onKeyDown)==null||ee.call(j,F),!(F.key!=="Escape"||F.which===229||!M())&&(n||(F.stopPropagation(),d&&d(F,"escapeKeyDown")))},I=j=>F=>{var ee;(ee=j.onClick)==null||ee.call(j,F),F.target===F.currentTarget&&d&&d(F,"backdropClick")};return{getRootProps:(j={})=>{const F=Ys(e);delete F.onTransitionEnter,delete F.onTransitionExited;const ee=O({},F,j);return O({role:"presentation"},ee,{onKeyDown:R(ee),ref:f})},getBackdropProps:(j={})=>{const F=j;return O({"aria-hidden":!0},F,{onClick:I(F),open:h})},getTransitionProps:()=>{const j=()=>{w(!1),s&&s()},F=()=>{w(!0),l&&l(),a&&L()};return{onEnter:Qr(j,c==null?void 0:c.props.onEnter),onExited:Qr(F,c==null?void 0:c.props.onExited)}},rootRef:f,portalRef:D,isTopModal:M,exited:g,hasTransition:P}}var $e="top",He="bottom",qe="right",Me="left",Eo="auto",Mn=[$e,He,qe,Me],Wt="start",Sn="end",Dp="clippingParents",Zs="viewport",an="popper",Bp="reference",Sa=Mn.reduce(function(e,t){return e.concat([t+"-"+Wt,t+"-"+Sn])},[]),Qs=[].concat(Mn,[Eo]).reduce(function(e,t){return e.concat([t,t+"-"+Wt,t+"-"+Sn])},[]),Lp="beforeRead",Fp="read",Vp="afterRead",zp="beforeMain",Up="main",Hp="afterMain",qp="beforeWrite",Wp="write",Xp="afterWrite",Gp=[Lp,Fp,Vp,zp,Up,Hp,qp,Wp,Xp];function Je(e){return e?(e.nodeName||"").toLowerCase():null}function Le(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function jt(e){var t=Le(e).Element;return e instanceof t||e instanceof Element}function ze(e){var t=Le(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ko(e){if(typeof ShadowRoot>"u")return!1;var t=Le(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Yp(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!ze(a)||!Je(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function Kp(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,d){return c[d]="",c},{});!ze(o)||!Je(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const Jp={name:"applyStyles",enabled:!0,phase:"write",fn:Yp,effect:Kp,requires:["computeStyles"]};function Ye(e){return e.split("-")[0]}var Ct=Math.max,rr=Math.min,Xt=Math.round;function no(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ei(){return!/^((?!chrome|android).)*safari/i.test(no())}function Gt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ze(e)&&(o=e.offsetWidth>0&&Xt(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Xt(r.height)/e.offsetHeight||1);var s=jt(e)?Le(e):window,l=s.visualViewport,c=!ei()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/o,h=(r.top+(c&&l?l.offsetTop:0))/a,v=r.width/o,b=r.height/a;return{width:v,height:b,top:h,right:d+v,bottom:h+b,left:d,x:d,y:h}}function To(e){var t=Gt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ti(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ko(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function at(e){return Le(e).getComputedStyle(e)}function Zp(e){return["table","td","th"].indexOf(Je(e))>=0}function mt(e){return((jt(e)?e.ownerDocument:e.document)||window.document).documentElement}function mr(e){return Je(e)==="html"?e:e.assignedSlot||e.parentNode||(ko(e)?e.host:null)||mt(e)}function Ca(e){return!ze(e)||at(e).position==="fixed"?null:e.offsetParent}function Qp(e){var t=/firefox/i.test(no()),n=/Trident/i.test(no());if(n&&ze(e)){var r=at(e);if(r.position==="fixed")return null}var o=mr(e);for(ko(o)&&(o=o.host);ze(o)&&["html","body"].indexOf(Je(o))<0;){var a=at(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function _n(e){for(var t=Le(e),n=Ca(e);n&&Zp(n)&&at(n).position==="static";)n=Ca(n);return n&&(Je(n)==="html"||Je(n)==="body"&&at(n).position==="static")?t:n||Qp(e)||t}function No(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vn(e,t,n){return Ct(e,rr(t,n))}function eu(e,t,n){var r=vn(e,t,n);return r>n?n:r}function ni(){return{top:0,right:0,bottom:0,left:0}}function ri(e){return Object.assign({},ni(),e)}function oi(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var tu=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ri(typeof t!="number"?t:oi(t,Mn))};function nu(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Ye(n.placement),c=No(l),d=[Me,qe].indexOf(l)>=0,h=d?"height":"width";if(!(!a||!s)){var v=tu(o.padding,n),b=To(a),p=c==="y"?$e:Me,m=c==="y"?He:qe,f=n.rects.reference[h]+n.rects.reference[c]-s[c]-n.rects.popper[h],g=s[c]-n.rects.reference[c],w=_n(a),P=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=f/2-g/2,E=v[p],y=P-b[h]-v[m],S=P/2-b[h]/2+x,T=vn(E,S,y),M=c;n.modifiersData[r]=(t={},t[M]=T,t.centerOffset=T-S,t)}}function ru(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ti(t.elements.popper,o)&&(t.elements.arrow=o))}const ou={name:"arrow",enabled:!0,phase:"main",fn:nu,effect:ru,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yt(e){return e.split("-")[1]}var au={top:"auto",right:"auto",bottom:"auto",left:"auto"};function su(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Xt(n*o)/o||0,y:Xt(r*o)/o||0}}function Oa(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,v=e.isFixed,b=s.x,p=b===void 0?0:b,m=s.y,f=m===void 0?0:m,g=typeof h=="function"?h({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var w=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),x=Me,E=$e,y=window;if(d){var S=_n(n),T="clientHeight",M="clientWidth";if(S===Le(n)&&(S=mt(n),at(S).position!=="static"&&l==="absolute"&&(T="scrollHeight",M="scrollWidth")),S=S,o===$e||(o===Me||o===qe)&&a===Sn){E=He;var D=v&&S===y&&y.visualViewport?y.visualViewport.height:S[T];f-=D-r.height,f*=c?1:-1}if(o===Me||(o===$e||o===He)&&a===Sn){x=qe;var L=v&&S===y&&y.visualViewport?y.visualViewport.width:S[M];p-=L-r.width,p*=c?1:-1}}var R=Object.assign({position:l},d&&au),I=h===!0?su({x:p,y:f},Le(n)):{x:p,y:f};if(p=I.x,f=I.y,c){var A;return Object.assign({},R,(A={},A[E]=P?"0":"",A[x]=w?"0":"",A.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",A))}return Object.assign({},R,(t={},t[E]=P?f+"px":"",t[x]=w?p+"px":"",t.transform="",t))}function iu(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:Ye(t.placement),variation:Yt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Oa(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Oa(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const lu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iu,data:{}};var zn={passive:!0};function cu(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,c=Le(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(h){h.addEventListener("scroll",n.update,zn)}),l&&c.addEventListener("resize",n.update,zn),function(){a&&d.forEach(function(h){h.removeEventListener("scroll",n.update,zn)}),l&&c.removeEventListener("resize",n.update,zn)}}const pu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cu,data:{}};var uu={left:"right",right:"left",bottom:"top",top:"bottom"};function Xn(e){return e.replace(/left|right|bottom|top/g,function(t){return uu[t]})}var du={start:"end",end:"start"};function Pa(e){return e.replace(/start|end/g,function(t){return du[t]})}function So(e){var t=Le(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Co(e){return Gt(mt(e)).left+So(e).scrollLeft}function fu(e,t){var n=Le(e),r=mt(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var d=ei();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+Co(e),y:c}}function hu(e){var t,n=mt(e),r=So(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ct(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ct(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Co(e),c=-r.scrollTop;return at(o||n).direction==="rtl"&&(l+=Ct(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function Oo(e){var t=at(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ai(e){return["html","body","#document"].indexOf(Je(e))>=0?e.ownerDocument.body:ze(e)&&Oo(e)?e:ai(mr(e))}function yn(e,t){var n;t===void 0&&(t=[]);var r=ai(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Le(r),s=o?[a].concat(a.visualViewport||[],Oo(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(yn(mr(s)))}function ro(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mu(e,t){var n=Gt(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ra(e,t,n){return t===Zs?ro(fu(e,n)):jt(t)?mu(t,n):ro(hu(mt(e)))}function gu(e){var t=yn(mr(e)),n=["absolute","fixed"].indexOf(at(e).position)>=0,r=n&&ze(e)?_n(e):e;return jt(r)?t.filter(function(o){return jt(o)&&ti(o,r)&&Je(o)!=="body"}):[]}function bu(e,t,n,r){var o=t==="clippingParents"?gu(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,d){var h=Ra(e,d,r);return c.top=Ct(h.top,c.top),c.right=rr(h.right,c.right),c.bottom=rr(h.bottom,c.bottom),c.left=Ct(h.left,c.left),c},Ra(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function si(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ye(r):null,a=r?Yt(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case $e:c={x:s,y:t.y-n.height};break;case He:c={x:s,y:t.y+t.height};break;case qe:c={x:t.x+t.width,y:l};break;case Me:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?No(o):null;if(d!=null){var h=d==="y"?"height":"width";switch(a){case Wt:c[d]=c[d]-(t[h]/2-n[h]/2);break;case Sn:c[d]=c[d]+(t[h]/2-n[h]/2);break}}return c}function Cn(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,l=n.boundary,c=l===void 0?Dp:l,d=n.rootBoundary,h=d===void 0?Zs:d,v=n.elementContext,b=v===void 0?an:v,p=n.altBoundary,m=p===void 0?!1:p,f=n.padding,g=f===void 0?0:f,w=ri(typeof g!="number"?g:oi(g,Mn)),P=b===an?Bp:an,x=e.rects.popper,E=e.elements[m?P:b],y=bu(jt(E)?E:E.contextElement||mt(e.elements.popper),c,h,s),S=Gt(e.elements.reference),T=si({reference:S,element:x,strategy:"absolute",placement:o}),M=ro(Object.assign({},x,T)),D=b===an?M:S,L={top:y.top-D.top+w.top,bottom:D.bottom-y.bottom+w.bottom,left:y.left-D.left+w.left,right:D.right-y.right+w.right},R=e.modifiersData.offset;if(b===an&&R){var I=R[o];Object.keys(L).forEach(function(A){var V=[qe,He].indexOf(A)>=0?1:-1,U=[$e,He].indexOf(A)>=0?"y":"x";L[A]+=I[U]*V})}return L}function vu(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Qs:c,h=Yt(r),v=h?l?Sa:Sa.filter(function(m){return Yt(m)===h}):Mn,b=v.filter(function(m){return d.indexOf(m)>=0});b.length===0&&(b=v);var p=b.reduce(function(m,f){return m[f]=Cn(e,{placement:f,boundary:o,rootBoundary:a,padding:s})[Ye(f)],m},{});return Object.keys(p).sort(function(m,f){return p[m]-p[f]})}function yu(e){if(Ye(e)===Eo)return[];var t=Xn(e);return[Pa(e),t,Pa(t)]}function wu(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,h=n.boundary,v=n.rootBoundary,b=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,f=n.allowedAutoPlacements,g=t.options.placement,w=Ye(g),P=w===g,x=c||(P||!m?[Xn(g)]:yu(g)),E=[g].concat(x).reduce(function(H,W){return H.concat(Ye(W)===Eo?vu(t,{placement:W,boundary:h,rootBoundary:v,padding:d,flipVariations:m,allowedAutoPlacements:f}):W)},[]),y=t.rects.reference,S=t.rects.popper,T=new Map,M=!0,D=E[0],L=0;L=0,U=V?"width":"height",j=Cn(t,{placement:R,boundary:h,rootBoundary:v,altBoundary:b,padding:d}),F=V?A?qe:Me:A?He:$e;y[U]>S[U]&&(F=Xn(F));var ee=Xn(F),Z=[];if(a&&Z.push(j[I]<=0),l&&Z.push(j[F]<=0,j[ee]<=0),Z.every(function(H){return H})){D=R,M=!1;break}T.set(R,Z)}if(M)for(var C=m?3:1,$=function(W){var Y=E.find(function(K){var X=T.get(K);if(X)return X.slice(0,W).every(function(J){return J})});if(Y)return D=Y,"break"},z=C;z>0;z--){var G=$(z);if(G==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const xu={name:"flip",enabled:!0,phase:"main",fn:wu,requiresIfExists:["offset"],data:{_skip:!1}};function ja(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $a(e){return[$e,qe,He,Me].some(function(t){return e[t]>=0})}function Eu(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Cn(t,{elementContext:"reference"}),l=Cn(t,{altBoundary:!0}),c=ja(s,r),d=ja(l,o,a),h=$a(c),v=$a(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":v})}const ku={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Eu};function Tu(e,t,n){var r=Ye(e),o=[Me,$e].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[Me,qe].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function Nu(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=Qs.reduce(function(h,v){return h[v]=Tu(v,t.rects,a),h},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const Su={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nu};function Cu(e){var t=e.state,n=e.name;t.modifiersData[n]=si({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ou={name:"popperOffsets",enabled:!0,phase:"read",fn:Cu,data:{}};function Pu(e){return e==="x"?"y":"x"}function Ru(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,v=n.padding,b=n.tether,p=b===void 0?!0:b,m=n.tetherOffset,f=m===void 0?0:m,g=Cn(t,{boundary:c,rootBoundary:d,padding:v,altBoundary:h}),w=Ye(t.placement),P=Yt(t.placement),x=!P,E=No(w),y=Pu(E),S=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,D=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,L=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(S){if(a){var A,V=E==="y"?$e:Me,U=E==="y"?He:qe,j=E==="y"?"height":"width",F=S[E],ee=F+g[V],Z=F-g[U],C=p?-M[j]/2:0,$=P===Wt?T[j]:M[j],z=P===Wt?-M[j]:-T[j],G=t.elements.arrow,H=p&&G?To(G):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ni(),Y=W[V],K=W[U],X=vn(0,T[j],H[j]),J=x?T[j]/2-C-X-Y-L.mainAxis:$-X-Y-L.mainAxis,Q=x?-T[j]/2+C+X+K+L.mainAxis:z+X+K+L.mainAxis,ae=t.elements.arrow&&_n(t.elements.arrow),B=ae?E==="y"?ae.clientTop||0:ae.clientLeft||0:0,te=(A=R==null?void 0:R[E])!=null?A:0,_=F+J-te-B,se=F+Q-te,ke=vn(p?rr(ee,_):ee,F,p?Ct(Z,se):Z);S[E]=ke,I[E]=ke-F}if(l){var Pe,xe=E==="x"?$e:Me,bt=E==="x"?He:qe,Re=S[y],Qe=y==="y"?"height":"width",Ie=Re+g[xe],et=Re-g[bt],Ne=[$e,Me].indexOf(w)!==-1,Mt=(Pe=R==null?void 0:R[y])!=null?Pe:0,vt=Ne?Ie:Re-T[Qe]-M[Qe]-Mt+L.altAxis,Zt=Ne?Re+T[Qe]+M[Qe]-Mt-L.altAxis:et,Bn=p&&Ne?eu(vt,Re,Zt):vn(p?vt:Ie,Re,p?Zt:et);S[y]=Bn,I[y]=Bn-Re}t.modifiersData[r]=I}}const ju={name:"preventOverflow",enabled:!0,phase:"main",fn:Ru,requiresIfExists:["offset"]};function $u(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mu(e){return e===Le(e)||!ze(e)?So(e):$u(e)}function _u(e){var t=e.getBoundingClientRect(),n=Xt(t.width)/e.offsetWidth||1,r=Xt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Iu(e,t,n){n===void 0&&(n=!1);var r=ze(t),o=ze(t)&&_u(t),a=mt(t),s=Gt(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Je(t)!=="body"||Oo(a))&&(l=Mu(t)),ze(t)?(c=Gt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Co(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Au(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function Du(e){var t=Au(e);return Gp.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Bu(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Lu(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ma={placement:"bottom",modifiers:[],strategy:"absolute"};function _a(){for(var e=arguments.length,t=new Array(e),n=0;nit({root:["root"]},hp(Uu)),Yu={},Ku=k.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:s,disablePortal:l,modifiers:c,open:d,placement:h,popperOptions:v,popperRef:b,slotProps:p={},slots:m={},TransitionProps:f}=t,g=fe(t,Hu),w=k.useRef(null),P=Ue(w,n),x=k.useRef(null),E=Ue(x,b),y=k.useRef(E);Pt(()=>{y.current=E},[E]),k.useImperativeHandle(b,()=>x.current,[]);const S=Wu(h,s),[T,M]=k.useState(S),[D,L]=k.useState(or(o));k.useEffect(()=>{x.current&&x.current.forceUpdate()}),k.useEffect(()=>{o&&L(or(o))},[o]),Pt(()=>{if(!D||!d)return;const U=ee=>{M(ee.placement)};if(process.env.NODE_ENV!=="production"&&D&&gr(D)&&D.nodeType===1){const ee=D.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ee.top===0&&ee.left===0&&ee.right===0&&ee.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` +`))}let j=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ee})=>{U(ee)}}];c!=null&&(j=j.concat(c)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const F=zu(D,w.current,O({placement:S},v,{modifiers:j}));return y.current(F),()=>{F.destroy(),y.current(null)}},[D,l,c,d,v,S]);const R={placement:T};f!==null&&(R.TransitionProps=f);const I=Gu(),A=(r=m.root)!=null?r:"div",V=Rt({elementType:A,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:I.root});return u.jsx(A,O({},V,{children:typeof a=="function"?a(R):a}))}),li=k.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:h,placement:v="bottom",popperOptions:b=Yu,popperRef:p,style:m,transition:f=!1,slotProps:g={},slots:w={}}=t,P=fe(t,qu),[x,E]=k.useState(!0),y=()=>{E(!1)},S=()=>{E(!0)};if(!c&&!h&&(!f||x))return null;let T;if(a)T=a;else if(r){const L=or(r);T=L&&gr(L)?Ce(L).body:Ce(null).body}const M=!h&&c&&(!f||x)?"none":void 0,D=f?{in:h,onEnter:y,onExited:S}:void 0;return u.jsx(Nn,{disablePortal:l,container:T,children:u.jsx(Ku,O({anchorEl:r,direction:s,disablePortal:l,modifiers:d,ref:n,open:f?!x:h,placement:v,popperOptions:b,popperRef:p,slotProps:g,slots:w},P,{style:O({position:"fixed",top:0,left:0,display:M},m),TransitionProps:D,children:o}))})});process.env.NODE_ENV!=="production"&&(li.propTypes={anchorEl:Jt(i.oneOfType([ot,i.object,i.func]),e=>{if(e.open){const t=or(e.anchorEl);if(t&&gr(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` +`))}else if(!t||typeof t.getBoundingClientRect!="function"||Xu(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(` +`))}return null}),children:i.oneOfType([i.node,i.func]),container:i.oneOfType([ot,i.func]),direction:i.oneOf(["ltr","rtl"]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:i.oneOf(["absolute","fixed"])}),popperRef:xo,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),transition:i.bool});const Ju=["values","unit","step"],Zu=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>O({},n,{[r.key]:r.val}),{})};function Qu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=fe(e,Ju),a=Zu(t),s=Object.keys(a);function l(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n})`}function c(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-r/100}${n})`}function d(b,p){const m=s.indexOf(p);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:p)-r/100}${n})`}function h(b){return s.indexOf(b)+1`@media (min-width:${Po[e]}px)`};function st(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||Ia;return t.reduce((s,l,c)=>(s[a.up(a.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const a=r.breakpoints||Ia;return Object.keys(t).reduce((s,l)=>{if(Object.keys(a.values||Po).indexOf(l)!==-1){const c=a.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function rd(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function od(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function br(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ar(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=br(e,n)||r,t&&(o=t(o,r,e)),o}function Ee(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,d=br(c,r)||{};return st(s,l,v=>{let b=ar(d,o,v);return v===b&&typeof v=="string"&&(b=ar(d,o,`${t}${v==="default"?"":Ke(v)}`,v)),n===!1?b:{[n]:b}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:gt}:{},a.filterProps=[t],a}function ad(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const sd={m:"margin",p:"padding"},id={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Aa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ld=ad(e=>{if(e.length>2)if(Aa[e])e=Aa[e];else return[e];const[t,n]=e.split(""),r=sd[t],o=id[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),vr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],cd=[...vr,...yr];function In(e,t,n,r){var o;const a=(o=br(e,t,!1))!=null?o:n;return typeof a=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),a*s):Array.isArray(a)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>a.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${s} > ${a.length-1}, you need to add the missing values.`].join(` `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(` -`))),s[i]):typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(` -`)),()=>{})}function Va(e){return On(e,"spacing",8,"spacing")}function Pn(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Eu(e,t){return n=>e.reduce((r,o)=>(r[o]=Pn(t,n),r),{})}function Tu(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=wu(n),s=Eu(o,r),i=e[n];return ot(e,i,s)}function Fa(e,t){const n=Va(e.theme);return Object.keys(e).map(r=>Tu(e,t,r,n)).reduce(fn,{})}function ge(e){return Fa(e,pr)}ge.propTypes=process.env.NODE_ENV!=="production"?pr.reduce((e,t)=>(e[t]=dt,e),{}):{};ge.filterProps=pr;function be(e){return Fa(e,ur)}be.propTypes=process.env.NODE_ENV!=="production"?ur.reduce((e,t)=>(e[t]=dt,e),{}):{};be.filterProps=ur;process.env.NODE_ENV!=="production"&&xu.reduce((e,t)=>(e[t]=dt,e),{});function ku(e=8){if(e.mui)return e;const t=Va({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function dr(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?fn(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ve(e){return typeof e!="number"?e:`${e}px solid`}function qe(e,t){return xe({prop:e,themeKey:"borders",transform:t})}const Nu=qe("border",Ve),Su=qe("borderTop",Ve),Cu=qe("borderRight",Ve),Ou=qe("borderBottom",Ve),Pu=qe("borderLeft",Ve),Ru=qe("borderColor"),ju=qe("borderTopColor"),Mu=qe("borderRightColor"),_u=qe("borderBottomColor"),$u=qe("borderLeftColor"),Iu=qe("outline",Ve),Au=qe("outlineColor"),fr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=On(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Pn(t,r)});return ot(e,e.borderRadius,n)}return null};fr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:dt}:{};fr.filterProps=["borderRadius"];dr(Nu,Su,Cu,Ou,Pu,Ru,ju,Mu,_u,$u,fr,Iu,Au);const hr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=On(e.theme,"spacing",8,"gap"),n=r=>({gap:Pn(t,r)});return ot(e,e.gap,n)}return null};hr.propTypes=process.env.NODE_ENV!=="production"?{gap:dt}:{};hr.filterProps=["gap"];const mr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=On(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Pn(t,r)});return ot(e,e.columnGap,n)}return null};mr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:dt}:{};mr.filterProps=["columnGap"];const gr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=On(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Pn(t,r)});return ot(e,e.rowGap,n)}return null};gr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:dt}:{};gr.filterProps=["rowGap"];const Du=xe({prop:"gridColumn"}),Bu=xe({prop:"gridRow"}),Lu=xe({prop:"gridAutoFlow"}),Vu=xe({prop:"gridAutoColumns"}),Fu=xe({prop:"gridAutoRows"}),zu=xe({prop:"gridTemplateColumns"}),Uu=xe({prop:"gridTemplateRows"}),Hu=xe({prop:"gridTemplateAreas"}),qu=xe({prop:"gridArea"});dr(hr,mr,gr,Du,Bu,Lu,Vu,Fu,zu,Uu,Hu,qu);function At(e,t){return t==="grey"?t:e}const Wu=xe({prop:"color",themeKey:"palette",transform:At}),Xu=xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:At}),Yu=xe({prop:"backgroundColor",themeKey:"palette",transform:At});dr(Wu,Xu,Yu);function De(e){return e<=1&&e!==0?`${e*100}%`:e}const Gu=xe({prop:"width",transform:De}),go=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||mo[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:De(n)}};return ot(e,e.maxWidth,t)}return null};go.filterProps=["maxWidth"];const Ku=xe({prop:"minWidth",transform:De}),Ju=xe({prop:"height",transform:De}),Zu=xe({prop:"maxHeight",transform:De}),Qu=xe({prop:"minHeight",transform:De});xe({prop:"size",cssProperty:"width",transform:De});xe({prop:"size",cssProperty:"height",transform:De});const ed=xe({prop:"boxSizing"});dr(Gu,go,Ku,Ju,Zu,Qu,ed);const td={border:{themeKey:"borders",transform:Ve},borderTop:{themeKey:"borders",transform:Ve},borderRight:{themeKey:"borders",transform:Ve},borderBottom:{themeKey:"borders",transform:Ve},borderLeft:{themeKey:"borders",transform:Ve},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ve},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fr},color:{themeKey:"palette",transform:At},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:At},backgroundColor:{themeKey:"palette",transform:At},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:ge},mt:{style:ge},mr:{style:ge},mb:{style:ge},ml:{style:ge},mx:{style:ge},my:{style:ge},margin:{style:ge},marginTop:{style:ge},marginRight:{style:ge},marginBottom:{style:ge},marginLeft:{style:ge},marginX:{style:ge},marginY:{style:ge},marginInline:{style:ge},marginInlineStart:{style:ge},marginInlineEnd:{style:ge},marginBlock:{style:ge},marginBlockStart:{style:ge},marginBlockEnd:{style:ge},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:hr},rowGap:{style:gr},columnGap:{style:mr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:De},maxWidth:{style:go},minWidth:{transform:De},height:{transform:De},maxHeight:{transform:De},minHeight:{transform:De},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},bo=td;function nd(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function rd(e,t){return typeof e=="function"?e(t):e}function od(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:h}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=cr(o,u)||{};return h?h(i):ot(i,r,y=>{let v=Jn(f,d,y);return y===v&&typeof y=="string"&&(v=Jn(f,d,`${n}${y==="default"?"":Ge(y)}`,y)),c===!1?v:{[c]:v}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:bo;function l(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const d=mu(s.breakpoints),h=Object.keys(d);let f=d;return Object.keys(u).forEach(b=>{const y=rd(u[b],s);if(y!=null)if(typeof y=="object")if(i[b])f=fn(f,e(b,y,s,i));else{const v=ot({theme:s},y,m=>({[b]:m}));nd(v,y)?f[b]=t({sx:y,theme:s}):f=fn(f,v)}else f=fn(f,e(b,y,s,i))}),gu(h,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const za=od();za.filterProps=["sx"];const vo=za;function sd(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const ad=["breakpoints","palette","spacing","shape"];function yo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=ue(e,ad),l=uu(n),c=ku(o);let u=tt({breakpoints:l,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:c,shape:S({},fu,s)},i);return u.applyStyles=sd,u=t.reduce((d,h)=>tt(d,h),u),u.unstable_sxConfig=S({},bo,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return vo({sx:h,theme:this})},u}function id(e){return Object.keys(e).length===0}function Ua(e=null){const t=T.useContext(Ar.ThemeContext);return!t||id(t)?e:t}const ld=yo();function Ha(e=ld){return Ua(e)}const cd=["ownerState"],pd=["variants"],ud=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function dd(e){return Object.keys(e).length===0}function fd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Fn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hd=yo(),xs=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function An({defaultTheme:e,theme:t,themeId:n}){return dd(t)?e:t[n]||t}function md(e){return e?(t,n)=>n[e]:null}function zn(e,t){let{ownerState:n}=t,r=ue(t,cd);const o=typeof e=="function"?e(S({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>zn(s,S({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let l=ue(o,pd);return s.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(S({ownerState:n},r,n)):Object.keys(c.props).forEach(d=>{(n==null?void 0:n[d])!==c.props[d]&&r[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(S({ownerState:n},r,n)):c.style))}),l}return o}function gd(e={}){const{themeId:t,defaultTheme:n=hd,rootShouldForwardProp:r=Fn,slotShouldForwardProp:o=Fn}=e,s=i=>vo(S({},i,{theme:An(S({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{Ar.internal_processStyles(i,g=>g.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=md(xs(u))}=l,b=ue(l,ud),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=h||!1;let m;process.env.NODE_ENV!=="production"&&c&&(m=`${c}-${xs(u||"Root")}`);let x=Fn;u==="Root"||u==="root"?x=r:u?x=o:fd(i)&&(x=void 0);const I=Ar(i,S({shouldForwardProp:x,label:m},b)),w=g=>typeof g=="function"&&g.__emotion_real!==g||wt(g)?C=>zn(g,S({},C,{theme:An({theme:C.theme,defaultTheme:n,themeId:t})})):g,E=(g,...C)=>{let P=w(g);const V=C?C.map(w):[];c&&f&&V.push(O=>{const $=An(S({},O,{defaultTheme:n,themeId:t}));if(!$.components||!$.components[c]||!$.components[c].styleOverrides)return null;const _=$.components[c].styleOverrides,L={};return Object.entries(_).forEach(([U,R])=>{L[U]=zn(R,S({},O,{theme:$}))}),f(O,L)}),c&&!y&&V.push(O=>{var $;const _=An(S({},O,{defaultTheme:n,themeId:t})),L=_==null||($=_.components)==null||($=$[c])==null?void 0:$.variants;return zn({variants:L},S({},O,{theme:_}))}),v||V.push(s);const D=V.length-C.length;if(Array.isArray(g)&&D>0){const O=new Array(D).fill("");P=[...g,...O],P.raw=[...g.raw,...O]}const F=I(P,...V);if(process.env.NODE_ENV!=="production"){let O;c&&(O=`${c}${Ge(u||"")}`),O===void 0&&(O=`Styled(${ec(i)})`),F.displayName=O}return i.muiName&&(F.muiName=i.muiName),F};return I.withConfig&&(E.withConfig=I.withConfig),E}}function bd(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ea(t.components[n].defaultProps,r)}function vd({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ha(n);return r&&(o=o[r]||o),bd({theme:o,name:t,props:e})}function wo(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(en)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Tc(e,t,n)}function yd(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ct(e){if(e.type)return e;if(e.charAt(0)==="#")return Ct(yd(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color. -The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Bt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space. -The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Bt(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function br(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function wd(e){e=Ct(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(u,d=(u+n/30)%12)=>o-s*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),br({type:l,values:c})}function Es(e){e=Ct(e);let t=e.type==="hsl"||e.type==="hsla"?Ct(wd(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ts(e,t){const n=Es(e),r=Es(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Zn(e,t){return e=Ct(e),t=wo(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,br(e)}function xd(e,t){if(e=Ct(e),t=wo(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return br(e)}function Ed(e,t){if(e=Ct(e),t=wo(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return br(e)}function Td(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const kd={black:"#000",white:"#fff"},xn=kd,Nd={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Sd=Nd,Cd={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Pt=Cd,Od={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Rt=Od,Pd={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},en=Pd,Rd={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},jt=Rd,jd={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Mt=jd,Md={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},_t=Md,_d=["mode","contrastThreshold","tonalOffset"],ks={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xn.white,default:xn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},jr={text:{primary:xn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ns(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ed(e.main,o):t==="dark"&&(e.dark=xd(e.main,s)))}function $d(e="light"){return e==="dark"?{main:jt[200],light:jt[50],dark:jt[400]}:{main:jt[700],light:jt[400],dark:jt[800]}}function Id(e="light"){return e==="dark"?{main:Pt[200],light:Pt[50],dark:Pt[400]}:{main:Pt[500],light:Pt[300],dark:Pt[700]}}function Ad(e="light"){return e==="dark"?{main:Rt[500],light:Rt[300],dark:Rt[700]}:{main:Rt[700],light:Rt[400],dark:Rt[800]}}function Dd(e="light"){return e==="dark"?{main:Mt[400],light:Mt[300],dark:Mt[700]}:{main:Mt[700],light:Mt[500],dark:Mt[900]}}function Bd(e="light"){return e==="dark"?{main:_t[400],light:_t[300],dark:_t[700]}:{main:_t[800],light:_t[500],dark:_t[900]}}function Ld(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:"#ed6c02",light:en[500],dark:en[900]}}function Vd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ue(e,_d),s=e.primary||$d(t),i=e.secondary||Id(t),l=e.error||Ad(t),c=e.info||Dd(t),u=e.success||Bd(t),d=e.warning||Ld(t);function h(v){const m=Ts(v,jr.text.primary)>=n?jr.text.primary:ks.text.primary;if(process.env.NODE_ENV!=="production"){const x=Ts(v,m);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${m} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` -`))}return m}const f=({color:v,name:m,mainShade:x=500,lightShade:I=300,darkShade:w=700})=>{if(v=S({},v),!v.main&&v[x]&&(v.main=v[x]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid. -The color object needs to have a \`main\` property or a \`${x}\` property.`:Bt(11,m?` (${m})`:"",x));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid. -\`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead. +`))),a[s]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(` +`)),()=>{})}function ci(e){return In(e,"spacing",8,"spacing")}function An(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function pd(e,t){return n=>e.reduce((r,o)=>(r[o]=An(t,n),r),{})}function ud(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=ld(n),a=pd(o,r),s=e[n];return st(e,s,a)}function pi(e,t){const n=ci(e.theme);return Object.keys(e).map(r=>ud(e,t,r,n)).reduce(wn,{})}function be(e){return pi(e,vr)}be.propTypes=process.env.NODE_ENV!=="production"?vr.reduce((e,t)=>(e[t]=gt,e),{}):{};be.filterProps=vr;function ve(e){return pi(e,yr)}ve.propTypes=process.env.NODE_ENV!=="production"?yr.reduce((e,t)=>(e[t]=gt,e),{}):{};ve.filterProps=yr;process.env.NODE_ENV!=="production"&&cd.reduce((e,t)=>(e[t]=gt,e),{});function dd(e=8){if(e.mui)return e;const t=ci({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function wr(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?wn(o,t[a](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ve(e){return typeof e!="number"?e:`${e}px solid`}function We(e,t){return Ee({prop:e,themeKey:"borders",transform:t})}const fd=We("border",Ve),hd=We("borderTop",Ve),md=We("borderRight",Ve),gd=We("borderBottom",Ve),bd=We("borderLeft",Ve),vd=We("borderColor"),yd=We("borderTopColor"),wd=We("borderRightColor"),xd=We("borderBottomColor"),Ed=We("borderLeftColor"),kd=We("outline",Ve),Td=We("outlineColor"),xr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=In(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:An(t,r)});return st(e,e.borderRadius,n)}return null};xr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:gt}:{};xr.filterProps=["borderRadius"];wr(fd,hd,md,gd,bd,vd,yd,wd,xd,Ed,xr,kd,Td);const Er=e=>{if(e.gap!==void 0&&e.gap!==null){const t=In(e.theme,"spacing",8,"gap"),n=r=>({gap:An(t,r)});return st(e,e.gap,n)}return null};Er.propTypes=process.env.NODE_ENV!=="production"?{gap:gt}:{};Er.filterProps=["gap"];const kr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=In(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:An(t,r)});return st(e,e.columnGap,n)}return null};kr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:gt}:{};kr.filterProps=["columnGap"];const Tr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=In(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:An(t,r)});return st(e,e.rowGap,n)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:gt}:{};Tr.filterProps=["rowGap"];const Nd=Ee({prop:"gridColumn"}),Sd=Ee({prop:"gridRow"}),Cd=Ee({prop:"gridAutoFlow"}),Od=Ee({prop:"gridAutoColumns"}),Pd=Ee({prop:"gridAutoRows"}),Rd=Ee({prop:"gridTemplateColumns"}),jd=Ee({prop:"gridTemplateRows"}),$d=Ee({prop:"gridTemplateAreas"}),Md=Ee({prop:"gridArea"});wr(Er,kr,Tr,Nd,Sd,Cd,Od,Pd,Rd,jd,$d,Md);function zt(e,t){return t==="grey"?t:e}const _d=Ee({prop:"color",themeKey:"palette",transform:zt}),Id=Ee({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zt}),Ad=Ee({prop:"backgroundColor",themeKey:"palette",transform:zt});wr(_d,Id,Ad);function Be(e){return e<=1&&e!==0?`${e*100}%`:e}const Dd=Ee({prop:"width",transform:Be}),Ro=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Po[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Be(n)}};return st(e,e.maxWidth,t)}return null};Ro.filterProps=["maxWidth"];const Bd=Ee({prop:"minWidth",transform:Be}),Ld=Ee({prop:"height",transform:Be}),Fd=Ee({prop:"maxHeight",transform:Be}),Vd=Ee({prop:"minHeight",transform:Be});Ee({prop:"size",cssProperty:"width",transform:Be});Ee({prop:"size",cssProperty:"height",transform:Be});const zd=Ee({prop:"boxSizing"});wr(Dd,Ro,Bd,Ld,Fd,Vd,zd);const Ud={border:{themeKey:"borders",transform:Ve},borderTop:{themeKey:"borders",transform:Ve},borderRight:{themeKey:"borders",transform:Ve},borderBottom:{themeKey:"borders",transform:Ve},borderLeft:{themeKey:"borders",transform:Ve},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ve},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xr},color:{themeKey:"palette",transform:zt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zt},backgroundColor:{themeKey:"palette",transform:zt},p:{style:ve},pt:{style:ve},pr:{style:ve},pb:{style:ve},pl:{style:ve},px:{style:ve},py:{style:ve},padding:{style:ve},paddingTop:{style:ve},paddingRight:{style:ve},paddingBottom:{style:ve},paddingLeft:{style:ve},paddingX:{style:ve},paddingY:{style:ve},paddingInline:{style:ve},paddingInlineStart:{style:ve},paddingInlineEnd:{style:ve},paddingBlock:{style:ve},paddingBlockStart:{style:ve},paddingBlockEnd:{style:ve},m:{style:be},mt:{style:be},mr:{style:be},mb:{style:be},ml:{style:be},mx:{style:be},my:{style:be},margin:{style:be},marginTop:{style:be},marginRight:{style:be},marginBottom:{style:be},marginLeft:{style:be},marginX:{style:be},marginY:{style:be},marginInline:{style:be},marginInlineStart:{style:be},marginInlineEnd:{style:be},marginBlock:{style:be},marginBlockStart:{style:be},marginBlockEnd:{style:be},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Er},rowGap:{style:Tr},columnGap:{style:kr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Be},maxWidth:{style:Ro},minWidth:{transform:Be},height:{transform:Be},maxHeight:{transform:Be},minHeight:{transform:Be},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},jo=Ud;function Hd(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function qd(e,t){return typeof e=="function"?e(t):e}function Wd(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:h,style:v}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const b=br(o,d)||{};return v?v(s):st(s,r,m=>{let f=ar(b,h,m);return m===f&&typeof m=="string"&&(f=ar(b,h,`${n}${m==="default"?"":Ke(m)}`,m)),c===!1?f:{[c]:f}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const s=(r=a.unstable_sxConfig)!=null?r:jo;function l(c){let d=c;if(typeof c=="function")d=c(a);else if(typeof c!="object")return c;if(!d)return null;const h=rd(a.breakpoints),v=Object.keys(h);let b=h;return Object.keys(d).forEach(p=>{const m=qd(d[p],a);if(m!=null)if(typeof m=="object")if(s[p])b=wn(b,e(p,m,a,s));else{const f=st({theme:a},m,g=>({[p]:g}));Hd(f,m)?b[p]=t({sx:m,theme:a}):b=wn(b,f)}else b=wn(b,e(p,m,a,s))}),od(v,b)}return Array.isArray(o)?o.map(l):l(o)}return t}const ui=Wd();ui.filterProps=["sx"];const $o=ui;function Xd(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Gd=["breakpoints","palette","spacing","shape"];function Mo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,s=fe(e,Gd),l=Qu(n),c=dd(o);let d=rt({breakpoints:l,direction:"ltr",components:{},palette:O({mode:"light"},r),spacing:c,shape:O({},td,a)},s);return d.applyStyles=Xd,d=t.reduce((h,v)=>rt(h,v),d),d.unstable_sxConfig=O({},jo,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(v){return $o({sx:v,theme:this})},d}function Yd(e){return Object.keys(e).length===0}function di(e=null){const t=k.useContext(Gr.ThemeContext);return!t||Yd(t)?e:t}const Kd=Mo();function fi(e=Kd){return di(e)}const Jd=["ownerState"],Zd=["variants"],Qd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ef(e){return Object.keys(e).length===0}function tf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Gn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const nf=Mo(),Da=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Un({defaultTheme:e,theme:t,themeId:n}){return ef(t)?e:t[n]||t}function rf(e){return e?(t,n)=>n[e]:null}function Yn(e,t){let{ownerState:n}=t,r=fe(t,Jd);const o=typeof e=="function"?e(O({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(a=>Yn(a,O({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=fe(o,Zd);return a.forEach(c=>{let d=!0;typeof c.props=="function"?d=c.props(O({ownerState:n},r,n)):Object.keys(c.props).forEach(h=>{(n==null?void 0:n[h])!==c.props[h]&&r[h]!==c.props[h]&&(d=!1)}),d&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(O({ownerState:n},r,n)):c.style))}),l}return o}function of(e={}){const{themeId:t,defaultTheme:n=nf,rootShouldForwardProp:r=Gn,slotShouldForwardProp:o=Gn}=e,a=s=>$o(O({},s,{theme:Un(O({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,l={})=>{Gr.internal_processStyles(s,y=>y.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:h,skipSx:v,overridesResolver:b=rf(Da(d))}=l,p=fe(l,Qd),m=h!==void 0?h:d&&d!=="Root"&&d!=="root"||!1,f=v||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Da(d||"Root")}`);let w=Gn;d==="Root"||d==="root"?w=r:d?w=o:tf(s)&&(w=void 0);const P=Gr(s,O({shouldForwardProp:w,label:g},p)),x=y=>typeof y=="function"&&y.__emotion_real!==y||Tt(y)?S=>Yn(y,O({},S,{theme:Un({theme:S.theme,defaultTheme:n,themeId:t})})):y,E=(y,...S)=>{let T=x(y);const M=S?S.map(x):[];c&&b&&M.push(R=>{const I=Un(O({},R,{defaultTheme:n,themeId:t}));if(!I.components||!I.components[c]||!I.components[c].styleOverrides)return null;const A=I.components[c].styleOverrides,V={};return Object.entries(A).forEach(([U,j])=>{V[U]=Yn(j,O({},R,{theme:I}))}),b(R,V)}),c&&!m&&M.push(R=>{var I;const A=Un(O({},R,{defaultTheme:n,themeId:t})),V=A==null||(I=A.components)==null||(I=I[c])==null?void 0:I.variants;return Yn({variants:V},O({},R,{theme:A}))}),f||M.push(a);const D=M.length-S.length;if(Array.isArray(y)&&D>0){const R=new Array(D).fill("");T=[...y,...R],T.raw=[...y.raw,...R]}const L=P(T,...M);if(process.env.NODE_ENV!=="production"){let R;c&&(R=`${c}${Ke(d||"")}`),R===void 0&&(R=`Styled(${zc(s)})`),L.displayName=R}return s.muiName&&(L.muiName=s.muiName),L};return P.withConfig&&(E.withConfig=P.withConfig),E}}function af(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:qs(t.components[n].defaultProps,r)}function sf({props:e,name:t,defaultTheme:n,themeId:r}){let o=fi(n);return r&&(o=o[r]||o),af({theme:o,name:t,props:e})}function _o(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(en)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),up(e,t,n)}function lf(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function $t(e){if(e.type)return e;if(e.charAt(0)==="#")return $t(lf(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color. +The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ht(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space. +The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ht(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function Nr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function cf(e){e=$t(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(d,h=(d+n/30)%12)=>o-a*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Nr({type:l,values:c})}function Ba(e){e=$t(e);let t=e.type==="hsl"||e.type==="hsla"?$t(cf(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function La(e,t){const n=Ba(e),r=Ba(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function sr(e,t){return e=$t(e),t=_o(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Nr(e)}function pf(e,t){if(e=$t(e),t=_o(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Nr(e)}function uf(e,t){if(e=$t(e),t=_o(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Nr(e)}function df(e,t){return O({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const ff={black:"#000",white:"#fff"},On=ff,hf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},mf=hf,gf={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},_t=gf,bf={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},It=bf,vf={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},sn=vf,yf={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},At=yf,wf={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Dt=wf,xf={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Bt=xf,Ef=["mode","contrastThreshold","tonalOffset"],Fa={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:On.white,default:On.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Lr={text:{primary:On.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:On.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Va(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=uf(e.main,o):t==="dark"&&(e.dark=pf(e.main,a)))}function kf(e="light"){return e==="dark"?{main:At[200],light:At[50],dark:At[400]}:{main:At[700],light:At[400],dark:At[800]}}function Tf(e="light"){return e==="dark"?{main:_t[200],light:_t[50],dark:_t[400]}:{main:_t[500],light:_t[300],dark:_t[700]}}function Nf(e="light"){return e==="dark"?{main:It[500],light:It[300],dark:It[700]}:{main:It[700],light:It[400],dark:It[800]}}function Sf(e="light"){return e==="dark"?{main:Dt[400],light:Dt[300],dark:Dt[700]}:{main:Dt[700],light:Dt[500],dark:Dt[900]}}function Cf(e="light"){return e==="dark"?{main:Bt[400],light:Bt[300],dark:Bt[700]}:{main:Bt[800],light:Bt[500],dark:Bt[900]}}function Of(e="light"){return e==="dark"?{main:sn[400],light:sn[300],dark:sn[700]}:{main:"#ed6c02",light:sn[500],dark:sn[900]}}function Pf(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=fe(e,Ef),a=e.primary||kf(t),s=e.secondary||Tf(t),l=e.error||Nf(t),c=e.info||Sf(t),d=e.success||Cf(t),h=e.warning||Of(t);function v(f){const g=La(f,Lr.text.primary)>=n?Lr.text.primary:Fa.text.primary;if(process.env.NODE_ENV!=="production"){const w=La(f,g);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${g} on ${f}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` +`))}return g}const b=({color:f,name:g,mainShade:w=500,lightShade:P=300,darkShade:x=700})=>{if(f=O({},f),!f.main&&f[w]&&(f.main=f[w]),!f.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid. +The color object needs to have a \`main\` property or a \`${w}\` property.`:Ht(11,g?` (${g})`:"",w));if(typeof f.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid. +\`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead. Did you intend to use one of the following approaches? @@ -59,21 +59,42 @@ const theme1 = createTheme({ palette: { const theme2 = createTheme({ palette: { primary: { main: green[500] }, -} });`:Bt(12,m?` (${m})`:"",JSON.stringify(v.main)));return Ns(v,"light",I,r),Ns(v,"dark",w,r),v.contrastText||(v.contrastText=h(v.main)),v},b={dark:jr,light:ks};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(S({common:S({},xn),mode:t,primary:f({color:s,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:Sd,contrastThreshold:n,getContrastText:h,augmentColor:f,tonalOffset:r},b[t]),o)}const Fd=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function zd(e){return Math.round(e*1e5)/1e5}const Ss={textTransform:"uppercase"},Cs='"Roboto", "Helvetica", "Arial", sans-serif';function Ud(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Cs,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=n,f=ue(n,Fd);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,y=h||(x=>`${x/u*b}rem`),v=(x,I,w,E,g)=>S({fontFamily:r,fontWeight:x,fontSize:y(I),lineHeight:w},r===Cs?{letterSpacing:`${zd(E/I)}em`}:{},g,d),m={h1:v(s,96,1.167,-1.5),h2:v(s,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(l,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(l,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(l,14,1.75,.4,Ss),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,Ss),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tt(S({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},m),f,{clone:!1})}const Hd=.2,qd=.14,Wd=.12;function me(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Hd})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qd})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Wd})`].join(",")}const Xd=["none",me(0,2,1,-1,0,1,1,0,0,1,3,0),me(0,3,1,-2,0,2,2,0,0,1,5,0),me(0,3,3,-2,0,3,4,0,0,1,8,0),me(0,2,4,-1,0,4,5,0,0,1,10,0),me(0,3,5,-1,0,5,8,0,0,1,14,0),me(0,3,5,-1,0,6,10,0,0,1,18,0),me(0,4,5,-2,0,7,10,1,0,2,16,1),me(0,5,5,-3,0,8,10,1,0,3,14,2),me(0,5,6,-3,0,9,12,1,0,3,16,2),me(0,6,6,-3,0,10,14,1,0,4,18,3),me(0,6,7,-4,0,11,15,1,0,4,20,3),me(0,7,8,-4,0,12,17,2,0,5,22,4),me(0,7,8,-4,0,13,19,2,0,5,24,4),me(0,7,9,-4,0,14,21,2,0,5,26,4),me(0,8,9,-5,0,15,22,2,0,6,28,5),me(0,8,10,-5,0,16,24,2,0,6,30,5),me(0,8,11,-5,0,17,26,2,0,6,32,5),me(0,9,11,-5,0,18,28,2,0,7,34,6),me(0,9,12,-6,0,19,29,2,0,7,36,6),me(0,10,13,-6,0,20,31,3,0,8,38,7),me(0,10,13,-6,0,21,33,3,0,8,40,7),me(0,10,14,-6,0,22,35,3,0,8,42,7),me(0,11,14,-7,0,23,36,3,0,9,44,8),me(0,11,15,-7,0,24,38,3,0,9,46,8)],Yd=Xd,Gd=["duration","easing","delay"],Kd={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Jd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Os(e){return`${Math.round(e)}ms`}function Zd(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Qd(e){const t=S({},Kd,e.easing),n=S({},Jd,e.duration);return S({getAutoHeightDuration:Zd,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:c=0}=s,u=ue(s,Gd);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",h=f=>!isNaN(parseFloat(f));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` -`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Os(i)} ${l} ${typeof c=="string"?c:Os(c)}`).join(",")}},e,{easing:t,duration:n})}const ef={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tf=ef,nf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function rf(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=ue(e,nf);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Bt(18));const l=Vd(r),c=yo(e);let u=tt(c,{mixins:Td(c.breakpoints,n),palette:l,shadows:Yd.slice(),typography:Ud(l,s),transitions:Qd(o),zIndex:S({},tf)});if(u=tt(u,i),u=t.reduce((d,h)=>tt(d,h),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(f,b)=>{let y;for(y in f){const v=f[y];if(d.indexOf(y)!==-1&&Object.keys(v).length>0){if(process.env.NODE_ENV!=="production"){const m=Je("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${m}' syntax:`,JSON.stringify({root:{[`&.${m}`]:v}},null,2),"","https://mui.com/r/state-classes-guide"].join(` -`))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const b=u.components[f].styleOverrides;b&&f.indexOf("Mui")===0&&h(b,f)})}return u.unstable_sxConfig=S({},bo,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return vo({sx:h,theme:this})},u}const of=rf(),xo=of,Eo="$$material",qa=e=>Fn(e)&&e!=="classes",sf=gd({themeId:Eo,defaultTheme:xo,rootShouldForwardProp:qa}),Ce=sf;function Rn(){const e=Ha(xo);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[Eo]||e}function at({props:e,name:t}){return vd({props:e,name:t,defaultTheme:xo,themeId:Eo})}function Wr(e,t){return Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Wr(e,t)}function af(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wr(e,t)}const Ps={disabled:!1};var lf=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.shape({enter:a.number,exit:a.number,appear:a.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&a.oneOfType([a.string,a.shape({enter:a.string,exit:a.string,active:a.string}),a.shape({enter:a.string,enterDone:a.string,enterActive:a.string,exit:a.string,exitDone:a.string,exitActive:a.string})]);const Wa=k.createContext(null);var cf=function(t){return t.scrollTop},ln="unmounted",bt="exited",vt="entering",It="entered",Xr="exiting",it=function(e){af(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=bt,s.appearStatus=vt):c=It:r.unmountOnExit||r.mountOnEnter?c=ln:c=bt,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===ln?{status:bt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==vt&&i!==It&&(s=vt):(i===vt||i===It)&&(s=Xr)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,l;return s=i=l=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:rn.findDOMNode(this);i&&cf(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bt&&this.setState({status:ln})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[rn.findDOMNode(this),l],u=c[0],d=c[1],h=this.getTimeouts(),f=l?h.appear:h.enter;if(!o&&!i||Ps.disabled){this.safeSetState({status:It},function(){s.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:vt},function(){s.props.onEntering(u,d),s.onTransitionEnd(f,function(){s.safeSetState({status:It},function(){s.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:rn.findDOMNode(this);if(!s||Ps.disabled){this.safeSetState({status:bt},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Xr},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:bt},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:rn.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ln)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=ue(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return k.createElement(Wa.Provider,{value:null},typeof i=="function"?i(o,l):k.cloneElement(k.Children.only(i),l))},t}(k.Component);it.contextType=Wa;it.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:a.shape({current:typeof Element>"u"?a.any:function(e,t,n,r,o,s){var i=e[t];return a.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:a.oneOfType([a.func.isRequired,a.element.isRequired]).isRequired,in:a.bool,mountOnEnter:a.bool,unmountOnExit:a.bool,appear:a.bool,enter:a.bool,exit:a.bool,timeout:function(t){var n=lf;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;se.scrollTop;function Qn(e,t){var n,r;const{timeout:o,easing:s,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:i.transitionDelay}}const pf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Yr(e){return`scale(${e}, ${e**2})`}const uf={entering:{opacity:1,transform:Yr(1)},entered:{opacity:1,transform:"none"}},Mr=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),To=T.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:h,onExited:f,onExiting:b,style:y,timeout:v="auto",TransitionComponent:m=Xa}=t,x=ue(t,pf),I=sn(),w=T.useRef(),E=Rn(),g=T.useRef(null),C=ze(g,s.ref,n),P=U=>R=>{if(U){const B=g.current;R===void 0?U(B):U(B,R)}},V=P(d),D=P((U,R)=>{Ya(U);const{duration:B,delay:ee,easing:Z}=Qn({style:y,timeout:v,easing:i},{mode:"enter"});let N;v==="auto"?(N=E.transitions.getAutoHeightDuration(U.clientHeight),w.current=N):N=B,U.style.transition=[E.transitions.create("opacity",{duration:N,delay:ee}),E.transitions.create("transform",{duration:Mr?N:N*.666,delay:ee,easing:Z})].join(","),c&&c(U,R)}),F=P(u),O=P(b),$=P(U=>{const{duration:R,delay:B,easing:ee}=Qn({style:y,timeout:v,easing:i},{mode:"exit"});let Z;v==="auto"?(Z=E.transitions.getAutoHeightDuration(U.clientHeight),w.current=Z):Z=R,U.style.transition=[E.transitions.create("opacity",{duration:Z,delay:B}),E.transitions.create("transform",{duration:Mr?Z:Z*.666,delay:Mr?B:B||Z*.333,easing:ee})].join(","),U.style.opacity=0,U.style.transform=Yr(.75),h&&h(U)}),_=P(f),L=U=>{v==="auto"&&I.start(w.current||0,U),r&&r(g.current,U)};return p.jsx(m,S({appear:o,in:l,nodeRef:g,onEnter:D,onEntered:F,onEntering:V,onExit:$,onExited:_,onExiting:O,addEndListener:L,timeout:v==="auto"?null:v},x,{children:(U,R)=>T.cloneElement(s,S({style:S({opacity:0,transform:Yr(.75),visibility:U==="exited"&&!l?"hidden":void 0},uf[U],y,s.props.style),ref:C},R))}))});process.env.NODE_ENV!=="production"&&(To.propTypes={addEndListener:a.func,appear:a.bool,children:kn.isRequired,easing:a.oneOfType([a.shape({enter:a.string,exit:a.string}),a.string]),in:a.bool,onEnter:a.func,onEntered:a.func,onEntering:a.func,onExit:a.func,onExited:a.func,onExiting:a.func,style:a.object,timeout:a.oneOfType([a.oneOf(["auto"]),a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});To.muiSupportAuto=!0;const Gr=To,df=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Rs=df,ff=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],hf=Ce(La,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ga=T.forwardRef(function(t,n){var r;const o=Ua(),s=at({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:c,componentsProps:u,container:d,disablePortal:h,keepMounted:f,modifiers:b,open:y,placement:v,popperOptions:m,popperRef:x,transition:I,slots:w,slotProps:E}=s,g=ue(s,ff),C=(r=w==null?void 0:w.root)!=null?r:c==null?void 0:c.Root,P=S({anchorEl:i,container:d,disablePortal:h,keepMounted:f,modifiers:b,open:y,placement:v,popperOptions:m,popperRef:x,transition:I},g);return p.jsx(hf,S({as:l,direction:o==null?void 0:o.direction,slots:{root:C},slotProps:E??u},P,{ref:n}))});process.env.NODE_ENV!=="production"&&(Ga.propTypes={anchorEl:a.oneOfType([nt,a.object,a.func]),children:a.oneOfType([a.node,a.func]),component:a.elementType,components:a.shape({Root:a.elementType}),componentsProps:a.shape({root:a.oneOfType([a.func,a.object])}),container:a.oneOfType([nt,a.func]),disablePortal:a.bool,keepMounted:a.bool,modifiers:a.arrayOf(a.shape({data:a.object,effect:a.func,enabled:a.bool,fn:a.func,name:a.any,options:a.object,phase:a.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:a.arrayOf(a.string),requiresIfExists:a.arrayOf(a.string)})),open:a.bool.isRequired,placement:a.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:a.shape({modifiers:a.array,onFirstUpdate:a.func,placement:a.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:a.oneOf(["absolute","fixed"])}),popperRef:ao,slotProps:a.shape({root:a.oneOfType([a.func,a.object])}),slots:a.shape({root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),transition:a.bool});const Ka=Ga;function mf(e){return Je("MuiTooltip",e)}const gf=pt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),lt=gf,bf=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function vf(e){return Math.round(e*1e5)/1e5}const yf=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ge(s.split("-")[0])}`],arrow:["arrow"]};return st(i,mf,t)},wf=Ce(Ka,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${lt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${lt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${lt.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${lt.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xf=Ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ge(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Zn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${vf(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${lt.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${lt.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${lt.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${lt.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Ef=Ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Zn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Dn=!1;const js=new Nn;let tn={x:0,y:0};function Bn(e,t){return n=>{t&&t(n),e(n)}}const Ja=T.forwardRef(function(t,n){var r,o,s,i,l,c,u,d,h,f,b,y,v,m,x,I,w,E,g;const C=at({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:V,components:D={},componentsProps:F={},describeChild:O=!1,disableFocusListener:$=!1,disableHoverListener:_=!1,disableInteractive:L=!1,disableTouchListener:U=!1,enterDelay:R=100,enterNextDelay:B=0,enterTouchDelay:ee=700,followCursor:Z=!1,id:N,leaveDelay:j=0,leaveTouchDelay:z=1500,onClose:X,onOpen:H,open:q,placement:Y="bottom",PopperComponent:K,PopperProps:W={},slotProps:J={},slots:Q={},title:oe,TransitionComponent:A=Gr,TransitionProps:te}=C,M=ue(C,bf),se=T.isValidElement(V)?V:p.jsx("span",{children:V}),Ee=Rn(),Oe=Ee.direction==="rtl",[we,ft]=T.useState(),[Pe,Ze]=T.useState(null),$e=T.useRef(!1),Qe=L||Z,Te=sn(),Ot=sn(),ht=sn(),Wt=sn(),[jn,Oo]=ga({controlled:q,default:!1,name:"Tooltip",state:"open"});let et=jn;if(process.env.NODE_ENV!=="production"){const{current:ne}=T.useRef(q!==void 0);T.useEffect(()=>{we&&we.disabled&&!ne&&oe!==""&&we.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(` -`))},[oe,we,ne])}const vr=ma(N),Xt=T.useRef(),Mn=bn(()=>{Xt.current!==void 0&&(document.body.style.WebkitUserSelect=Xt.current,Xt.current=void 0),Wt.clear()});T.useEffect(()=>Mn,[Mn]);const Po=ne=>{js.clear(),Dn=!0,Oo(!0),H&&!et&&H(ne)},_n=bn(ne=>{js.start(800+j,()=>{Dn=!1}),Oo(!1),X&&et&&X(ne),Te.start(Ee.transitions.duration.shortest,()=>{$e.current=!1})}),yr=ne=>{$e.current&&ne.type!=="touchstart"||(we&&we.removeAttribute("title"),Ot.clear(),ht.clear(),R||Dn&&B?Ot.start(Dn?B:R,()=>{Po(ne)}):Po(ne))},Ro=ne=>{Ot.clear(),ht.start(j,()=>{_n(ne)})},{isFocusVisibleRef:jo,onBlur:$i,onFocus:Ii,ref:Ai}=ba(),[,Mo]=T.useState(!1),_o=ne=>{$i(ne),jo.current===!1&&(Mo(!1),Ro(ne))},$o=ne=>{we||ft(ne.currentTarget),Ii(ne),jo.current===!0&&(Mo(!0),yr(ne))},Io=ne=>{$e.current=!0;const Ie=se.props;Ie.onTouchStart&&Ie.onTouchStart(ne)},Ao=yr,Do=Ro,Di=ne=>{Io(ne),ht.clear(),Te.clear(),Mn(),Xt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Wt.start(ee,()=>{document.body.style.WebkitUserSelect=Xt.current,yr(ne)})},Bi=ne=>{se.props.onTouchEnd&&se.props.onTouchEnd(ne),Mn(),ht.start(z,()=>{_n(ne)})};T.useEffect(()=>{if(!et)return;function ne(Ie){(Ie.key==="Escape"||Ie.key==="Esc")&&_n(Ie)}return document.addEventListener("keydown",ne),()=>{document.removeEventListener("keydown",ne)}},[_n,et]);const Li=ze(se.ref,Ai,ft,n);!oe&&oe!==0&&(et=!1);const wr=T.useRef(),Vi=ne=>{const Ie=se.props;Ie.onMouseMove&&Ie.onMouseMove(ne),tn={x:ne.clientX,y:ne.clientY},wr.current&&wr.current.update()},Yt={},xr=typeof oe=="string";O?(Yt.title=!et&&xr&&!_?oe:null,Yt["aria-describedby"]=et?vr:null):(Yt["aria-label"]=xr?oe:null,Yt["aria-labelledby"]=et&&!xr?vr:null);const Le=S({},Yt,M,se.props,{className:Ne(M.className,se.props.className),onTouchStart:Io,ref:Li},Z?{onMouseMove:Vi}:{});process.env.NODE_ENV!=="production"&&(Le["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{we&&!we.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(` -`))},[we]));const Gt={};U||(Le.onTouchStart=Di,Le.onTouchEnd=Bi),_||(Le.onMouseOver=Bn(Ao,Le.onMouseOver),Le.onMouseLeave=Bn(Do,Le.onMouseLeave),Qe||(Gt.onMouseOver=Ao,Gt.onMouseLeave=Do)),$||(Le.onFocus=Bn($o,Le.onFocus),Le.onBlur=Bn(_o,Le.onBlur),Qe||(Gt.onFocus=$o,Gt.onBlur=_o)),process.env.NODE_ENV!=="production"&&se.props.title&&console.error(["MUI: You have provided a `title` prop to the child of .",`Remove this title prop \`${se.props.title}\` or the Tooltip component.`].join(` -`));const Fi=T.useMemo(()=>{var ne;let Ie=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(ne=W.popperOptions)!=null&&ne.modifiers&&(Ie=Ie.concat(W.popperOptions.modifiers)),S({},W.popperOptions,{modifiers:Ie})},[Pe,W]),Kt=S({},C,{isRtl:Oe,arrow:P,disableInteractive:Qe,placement:Y,PopperComponentProp:K,touch:$e.current}),Er=yf(Kt),Bo=(r=(o=Q.popper)!=null?o:D.Popper)!=null?r:wf,Lo=(s=(i=(l=Q.transition)!=null?l:D.Transition)!=null?i:A)!=null?s:Gr,Vo=(c=(u=Q.tooltip)!=null?u:D.Tooltip)!=null?c:xf,Fo=(d=(h=Q.arrow)!=null?h:D.Arrow)!=null?d:Ef,zi=an(Bo,S({},W,(f=J.popper)!=null?f:F.popper,{className:Ne(Er.popper,W==null?void 0:W.className,(b=(y=J.popper)!=null?y:F.popper)==null?void 0:b.className)}),Kt),Ui=an(Lo,S({},te,(v=J.transition)!=null?v:F.transition),Kt),Hi=an(Vo,S({},(m=J.tooltip)!=null?m:F.tooltip,{className:Ne(Er.tooltip,(x=(I=J.tooltip)!=null?I:F.tooltip)==null?void 0:x.className)}),Kt),qi=an(Fo,S({},(w=J.arrow)!=null?w:F.arrow,{className:Ne(Er.arrow,(E=(g=J.arrow)!=null?g:F.arrow)==null?void 0:E.className)}),Kt);return p.jsxs(T.Fragment,{children:[T.cloneElement(se,Le),p.jsx(Bo,S({as:K??Ka,placement:Y,anchorEl:Z?{getBoundingClientRect:()=>({top:tn.y,left:tn.x,right:tn.x,bottom:tn.y,width:0,height:0})}:we,popperRef:wr,open:we?et:!1,id:vr,transition:!0},Gt,zi,{popperOptions:Fi,children:({TransitionProps:ne})=>p.jsx(Lo,S({timeout:Ee.transitions.duration.shorter},ne,Ui,{children:p.jsxs(Vo,S({},Hi,{children:[oe,P?p.jsx(Fo,S({},qi,{ref:Ze})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(Ja.propTypes={arrow:a.bool,children:kn.isRequired,classes:a.object,className:a.string,components:a.shape({Arrow:a.elementType,Popper:a.elementType,Tooltip:a.elementType,Transition:a.elementType}),componentsProps:a.shape({arrow:a.object,popper:a.object,tooltip:a.object,transition:a.object}),describeChild:a.bool,disableFocusListener:a.bool,disableHoverListener:a.bool,disableInteractive:a.bool,disableTouchListener:a.bool,enterDelay:a.number,enterNextDelay:a.number,enterTouchDelay:a.number,followCursor:a.bool,id:a.string,leaveDelay:a.number,leaveTouchDelay:a.number,onClose:a.func,onOpen:a.func,open:a.bool,placement:a.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:a.elementType,PopperProps:a.object,slotProps:a.shape({arrow:a.object,popper:a.object,tooltip:a.object,transition:a.object}),slots:a.shape({arrow:a.elementType,popper:a.elementType,tooltip:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),title:a.node,TransitionComponent:a.elementType,TransitionProps:a.object});const Tf=Ja;var ko={},Za={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Za);var kf=Za.exports,_r={};function Nf(e){return Je("MuiSvgIcon",e)}pt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sf=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Cf=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ge(t)}`,`fontSize${Ge(n)}`]};return st(o,Nf,r)},Of=Ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ge(n.color)}`],t[`fontSize${Ge(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,i,l,c,u,d,h,f,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),No=T.forwardRef(function(t,n){const r=at({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=r,b=ue(r,Sf),y=T.isValidElement(o)&&o.type==="svg",v=S({},r,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:y}),m={};d||(m.viewBox=f);const x=Cf(v);return p.jsxs(Of,S({as:l,className:Ne(x.root,s),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},m,b,y&&o.props,{ownerState:v,children:[y?o.props.children:o,h?p.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(No.propTypes={children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),a.string]),component:a.elementType,fontSize:a.oneOfType([a.oneOf(["inherit","large","medium","small"]),a.string]),htmlColor:a.string,inheritViewBox:a.bool,shapeRendering:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),titleAccess:a.string,viewBox:a.string});No.muiName="SvgIcon";const Ms=No;function Qa(e,t){function n(r,o){return p.jsx(Ms,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ms.muiName,T.memo(T.forwardRef(n))}const Pf={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(` -`)),Ta.configure(e)}},Rf=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ge,createChainedFunction:Fr,createSvgIcon:Qa,debounce:ha,deprecatedPropType:nc,isMuiElement:rc,ownerDocument:Se,ownerWindow:Lt,requirePropFactory:oc,setRef:Xn,unstable_ClassNameGenerator:Pf,unstable_useEnhancedEffect:kt,unstable_useId:ma,unsupportedProp:ic,useControlled:ga,useEventCallback:bn,useForkRef:ze,useIsFocusVisible:ba},Symbol.toStringTag,{value:"Module"})),jf=Il(Rf);var _s;function Mf(){return _s||(_s=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=jf}(_r)),_r}var _f=kf;Object.defineProperty(ko,"__esModule",{value:!0});var ei=ko.default=void 0,$f=_f(Mf()),If=p;ei=ko.default=(0,$f.default)((0,If.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");function $s(e,t,n){return e?p.jsx(ve.ListItemIcon,{className:`papi-menu-icon-${n?"leading":"trailing"}`,children:p.jsx("img",{src:e,alt:`${n?"Leading":"Trailing"} icon for ${t}`})}):void 0}function So(e){const{onClick:t,label:n,tooltip:r,allowForLeadingIcons:o=!0,iconPathBefore:s=void 0,iconPathAfter:i=void 0,hasAutoFocus:l=!1,className:c,isDisabled:u=!1,isDense:d=!0,isSubMenuParent:h=!1,hasDisabledGutters:f=!1,hasDivider:b=!1,focusVisibleClassName:y,id:v,children:m}=e,x=p.jsx(ve.MenuItem,{sx:{lineHeight:.8},autoFocus:l,className:c,disabled:u,dense:d,disableGutters:f,divider:b,focusVisibleClassName:y,onClick:t,id:v,children:n?p.jsxs(p.Fragment,{children:[$s(s,n,!0),p.jsx(ve.ListItemText,{primary:n,inset:!s&&o}),h?p.jsx(ve.ListItemIcon,{className:"papi-menu-icon-trailing",children:p.jsx(ei,{})}):$s(i,n,!1)]}):m});return r?p.jsx(Tf,{title:r,placement:"right",children:p.jsx("div",{children:x})}):x}function ti(e){return Object.entries(e.groups).map(([n,r])=>({id:n,group:r}))}function Af(e){const[t,n]=k.useState(void 0),{parentMenuItem:r,parentItemProps:o,menuDefinition:s}=e,i=u=>{n(u.currentTarget)},l=()=>{n(void 0)},c=()=>{let u=ti(s).filter(d=>"menuItem"in d.group);if(!(r!=null&&r.id))throw new Error("A valid parent menu item is required for submenus.");return u=u.filter(d=>"menuItem"in d.group&&d.group.menuItem===r.id),p.jsx(Co,{...e,includedGroups:u})};return p.jsxs(p.Fragment,{children:[p.jsx(So,{onClick:i,...o,isSubMenuParent:!0}),p.jsx(ve.Menu,{anchorEl:t,open:!!t,onClose:l,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:c()},r.id)]})}const Df=(e,t)=>t.filter(o=>o.group===e).sort((o,s)=>(o.order||0)-(s.order||0));function Co(e){const{menuDefinition:t,onClick:n,commandHandler:r,includedGroups:o}=e,{items:s,allowForLeadingIcons:i}=k.useMemo(()=>{const d=o&&o.length>0?o:ti(t).filter(y=>!("menuItem"in y.group)),h=Object.values(d).sort((y,v)=>(y.group.order||0)-(v.group.order||0)),f=[];h.forEach(y=>{Df(y.id,t.items).forEach(v=>f.push({item:v,isLastItemInGroup:!1})),f.length>0&&(f[f.length-1].isLastItemInGroup=!0)}),f.length>0&&(f[f.length-1].isLastItemInGroup=!1);const b=f.some(y=>"iconPathBefore"in y.item&&y.item.iconPathBefore);return{items:f,allowForLeadingIcons:b}},[o,t]),l=({item:d,isLastItemInGroup:h})=>({className:"papi-menu-item",label:d.label,tooltip:d.tooltip,iconPathBefore:"iconPathBefore"in d?d.iconPathBefore:void 0,iconPathAfter:"iconPathAfter"in d?d.iconPathAfter:void 0,hasDivider:h,allowForLeadingIcons:i}),[c]=s;if(!c)return p.jsx("div",{});const u=c.item.group;return p.jsx("div",{role:"menu","aria-label":u,children:s.map((d,h)=>{const{item:f}=d,b=l(d);if("command"in f){const y=f.group+h;return p.jsx(So,{onClick:v=>{n==null||n(v),r(f)},...b},y)}return p.jsx(Af,{parentMenuItem:f,parentItemProps:b,...e},u+f.id)})},u)}function Bf(e){const{menuDefinition:t,columnId:n}=e;let s=Object.entries(t.groups).map(([i,l])=>({id:i,group:l})).filter(i=>"column"in i.group);return n&&"columns"in t&&t.columns[n]&&(s=s.filter(i=>"column"in i.group&&i.group.column===n)),p.jsx(Co,{...e,includedGroups:s})}function Lf({commandHandler:e,menuDefinition:t,id:n,metadata:r,onClick:o,className:s}){return p.jsxs(ve.Grid,{id:n,item:!0,xs:"auto",role:"menu","aria-label":n,className:`papi-menu-column ${s??""}`,children:[p.jsx("h3",{"aria-label":r.label,className:`papi-menu-column-header ${s??""}`,children:r.label}),p.jsx(ve.List,{id:n,dense:!0,className:s??"",children:p.jsx(Bf,{commandHandler:e,menuDefinition:t,columnId:n,onClick:o})})]})}function ni({commandHandler:e,className:t,multiColumnMenu:n,id:r}){const{columns:o}=n,s=k.useMemo(()=>{const i=new Map;return Object.getOwnPropertyNames(o).forEach(l=>{if(l==="isExtensible")return;const c=l,u=o[c];typeof u=="object"&&typeof u.order=="number"&&!Number.isNaN(u.order)?i.set(u.order,{id:c,metadata:u}):console.warn(`Property ${l} (${typeof u}) on menu ${r} is not a valid column and is being ignored. This might indicate data corruption`)}),Array.from(i.values()).sort((l,c)=>(l.metadata.order||0)-(c.metadata.order||0))},[o,r]);return p.jsx(ve.Grid,{container:!0,spacing:0,className:`papi-multi-column-menu ${t??""}`,columns:s.length,role:"menu","aria-label":"GridMenu",id:r,children:s.map((i,l)=>p.jsx(Lf,{commandHandler:e,menuDefinition:n,...i,className:t},l))})}const ri=T.createContext({});process.env.NODE_ENV!=="production"&&(ri.displayName="ListContext");const Vf=ri;function Ff(e){return Je("MuiList",e)}pt("MuiList",["root","padding","dense","subheader"]);const zf=["children","className","component","dense","disablePadding","subheader"],Uf=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return st({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Ff,t)},Hf=Ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),oi=T.forwardRef(function(t,n){const r=at({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:l=!1,disablePadding:c=!1,subheader:u}=r,d=ue(r,zf),h=T.useMemo(()=>({dense:l}),[l]),f=S({},r,{component:i,dense:l,disablePadding:c}),b=Uf(f);return p.jsx(Vf.Provider,{value:h,children:p.jsxs(Hf,S({as:i,className:Ne(b.root,s),ref:n,ownerState:f},d,{children:[u,o]}))})});process.env.NODE_ENV!=="production"&&(oi.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,dense:a.bool,disablePadding:a.bool,subheader:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});const qf=oi,Wf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function $r(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Is(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function si(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function nn(e,t,n,r,o,s){let i=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!si(l,s)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const ai=T.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:h="selectedMenu"}=t,f=ue(t,Wf),b=T.useRef(null),y=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});kt(()=>{o&&b.current.focus()},[o]),T.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,E)=>{const g=!b.current.style.width;if(w.clientHeight{const E=b.current,g=w.key,C=Se(E).activeElement;if(g==="ArrowDown")w.preventDefault(),nn(E,C,u,c,$r);else if(g==="ArrowUp")w.preventDefault(),nn(E,C,u,c,Is);else if(g==="Home")w.preventDefault(),nn(E,null,u,c,$r);else if(g==="End")w.preventDefault(),nn(E,null,u,c,Is);else if(g.length===1){const P=y.current,V=g.toLowerCase(),D=performance.now();P.keys.length>0&&(D-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&V!==P.keys[0]&&(P.repeating=!1)),P.lastTime=D,P.keys.push(V);const F=C&&!P.repeating&&si(C,P);P.previousKeyMatched&&(F||nn(E,C,!1,c,$r,P))?w.preventDefault():P.previousKeyMatched=!1}d&&d(w)},m=ze(b,n);let x=-1;T.Children.forEach(i,(w,E)=>{if(!T.isValidElement(w)){x===E&&(x+=1,x>=i.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&Wn.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` -`)),w.props.disabled||(h==="selectedMenu"&&w.props.selected||x===-1)&&(x=E),x===E&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const I=T.Children.map(i,(w,E)=>{if(E===x){const g={};return s&&(g.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(g.tabIndex=0),T.cloneElement(w,g)}return w});return p.jsx(qf,S({role:"menu",ref:m,className:l,onKeyDown:v,tabIndex:o?0:-1},f,{children:I}))});process.env.NODE_ENV!=="production"&&(ai.propTypes={autoFocus:a.bool,autoFocusItem:a.bool,children:a.node,className:a.string,disabledItemsFocusable:a.bool,disableListWrap:a.bool,onKeyDown:a.func,variant:a.oneOf(["menu","selectedMenu"])});const Xf=ai,Yf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Gf={entering:{opacity:1},entered:{opacity:1}},ii=T.forwardRef(function(t,n){const r=Rn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,easing:c,in:u,onEnter:d,onEntered:h,onEntering:f,onExit:b,onExited:y,onExiting:v,style:m,timeout:x=o,TransitionComponent:I=Xa}=t,w=ue(t,Yf),E=T.useRef(null),g=ze(E,l.ref,n),C=L=>U=>{if(L){const R=E.current;U===void 0?L(R):L(R,U)}},P=C(f),V=C((L,U)=>{Ya(L);const R=Qn({style:m,timeout:x,easing:c},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",R),L.style.transition=r.transitions.create("opacity",R),d&&d(L,U)}),D=C(h),F=C(v),O=C(L=>{const U=Qn({style:m,timeout:x,easing:c},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",U),L.style.transition=r.transitions.create("opacity",U),b&&b(L)}),$=C(y),_=L=>{s&&s(E.current,L)};return p.jsx(I,S({appear:i,in:u,nodeRef:E,onEnter:V,onEntered:D,onEntering:P,onExit:O,onExited:$,onExiting:F,addEndListener:_,timeout:x},w,{children:(L,U)=>T.cloneElement(l,S({style:S({opacity:0,visibility:L==="exited"&&!u?"hidden":void 0},Gf[L],m,l.props.style),ref:g},U))}))});process.env.NODE_ENV!=="production"&&(ii.propTypes={addEndListener:a.func,appear:a.bool,children:kn.isRequired,easing:a.oneOfType([a.shape({enter:a.string,exit:a.string}),a.string]),in:a.bool,onEnter:a.func,onEntered:a.func,onEntering:a.func,onExit:a.func,onExited:a.func,onExiting:a.func,style:a.object,timeout:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});const Kf=ii;function Jf(e){return Je("MuiBackdrop",e)}pt("MuiBackdrop",["root","invisible"]);const Zf=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qf=e=>{const{classes:t,invisible:n}=e;return st({root:["root",n&&"invisible"]},Jf,t)},eh=Ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),li=T.forwardRef(function(t,n){var r,o,s;const i=at({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:d={},componentsProps:h={},invisible:f=!1,open:b,slotProps:y={},slots:v={},TransitionComponent:m=Kf,transitionDuration:x}=i,I=ue(i,Zf),w=S({},i,{component:u,invisible:f}),E=Qf(w),g=(r=y.root)!=null?r:h.root;return p.jsx(m,S({in:b,timeout:x},I,{children:p.jsx(eh,S({"aria-hidden":!0},g,{as:(o=(s=v.root)!=null?s:d.Root)!=null?o:u,className:Ne(E.root,c,g==null?void 0:g.className),ownerState:S({},w,g==null?void 0:g.ownerState),classes:E,ref:n,children:l}))}))});process.env.NODE_ENV!=="production"&&(li.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,components:a.shape({Root:a.elementType}),componentsProps:a.shape({root:a.object}),invisible:a.bool,open:a.bool.isRequired,slotProps:a.shape({root:a.object}),slots:a.shape({root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});const th=li;function nh(e){return Je("MuiModal",e)}pt("MuiModal",["root","hidden","backdrop"]);const rh=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],oh=e=>{const{open:t,exited:n,classes:r}=e;return st({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},nh,r)},sh=Ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ah=Ce(th,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ci=T.forwardRef(function(t,n){var r,o,s,i,l,c;const u=at({name:"MuiModal",props:t}),{BackdropComponent:d=ah,BackdropProps:h,className:f,closeAfterTransition:b=!1,children:y,container:v,component:m,components:x={},componentsProps:I={},disableAutoFocus:w=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:g=!1,disablePortal:C=!1,disableRestoreFocus:P=!1,disableScrollLock:V=!1,hideBackdrop:D=!1,keepMounted:F=!1,onBackdropClick:O,open:$,slotProps:_,slots:L}=u,U=ue(u,rh),R=S({},u,{closeAfterTransition:b,disableAutoFocus:w,disableEnforceFocus:E,disableEscapeKeyDown:g,disablePortal:C,disableRestoreFocus:P,disableScrollLock:V,hideBackdrop:D,keepMounted:F}),{getRootProps:B,getBackdropProps:ee,getTransitionProps:Z,portalRef:N,isTopModal:j,exited:z,hasTransition:X}=Yc(S({},R,{rootRef:n})),H=S({},R,{exited:z}),q=oh(H),Y={};if(y.props.tabIndex===void 0&&(Y.tabIndex="-1"),X){const{onEnter:te,onExited:M}=Z();Y.onEnter=te,Y.onExited=M}const K=(r=(o=L==null?void 0:L.root)!=null?o:x.Root)!=null?r:sh,W=(s=(i=L==null?void 0:L.backdrop)!=null?i:x.Backdrop)!=null?s:d,J=(l=_==null?void 0:_.root)!=null?l:I.root,Q=(c=_==null?void 0:_.backdrop)!=null?c:I.backdrop,oe=Nt({elementType:K,externalSlotProps:J,externalForwardedProps:U,getSlotProps:B,additionalProps:{ref:n,as:m},ownerState:H,className:Ne(f,J==null?void 0:J.className,q==null?void 0:q.root,!H.open&&H.exited&&(q==null?void 0:q.hidden))}),A=Nt({elementType:W,externalSlotProps:Q,additionalProps:h,getSlotProps:te=>ee(S({},te,{onClick:M=>{O&&O(M),te!=null&&te.onClick&&te.onClick(M)}})),className:Ne(Q==null?void 0:Q.className,h==null?void 0:h.className,q==null?void 0:q.backdrop),ownerState:H});return!F&&!$&&(!X||z)?null:p.jsx(vn,{ref:N,container:v,disablePortal:C,children:p.jsxs(K,S({},oe,{children:[!D&&d?p.jsx(W,S({},A)):null,p.jsx(Yn,{disableEnforceFocus:E,disableAutoFocus:w,disableRestoreFocus:P,isEnabled:j,open:$,children:T.cloneElement(y,Y)})]}))})});process.env.NODE_ENV!=="production"&&(ci.propTypes={BackdropComponent:a.elementType,BackdropProps:a.object,children:kn.isRequired,classes:a.object,className:a.string,closeAfterTransition:a.bool,component:a.elementType,components:a.shape({Backdrop:a.elementType,Root:a.elementType}),componentsProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),container:a.oneOfType([nt,a.func]),disableAutoFocus:a.bool,disableEnforceFocus:a.bool,disableEscapeKeyDown:a.bool,disablePortal:a.bool,disableRestoreFocus:a.bool,disableScrollLock:a.bool,hideBackdrop:a.bool,keepMounted:a.bool,onBackdropClick:a.func,onClose:a.func,onTransitionEnter:a.func,onTransitionExited:a.func,open:a.bool.isRequired,slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});const ih=ci;function lh(e){return Je("MuiPaper",e)}pt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const ch=["className","component","elevation","square","variant"],ph=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return st(s,lh,o)},uh=Ce("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Zn("#fff",Rs(t.elevation))}, ${Zn("#fff",Rs(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),pi=T.forwardRef(function(t,n){const r=at({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:i=1,square:l=!1,variant:c="elevation"}=r,u=ue(r,ch),d=S({},r,{component:s,elevation:i,square:l,variant:c}),h=ph(d);return process.env.NODE_ENV!=="production"&&Rn().shadows[i]===void 0&&console.error([`MUI: The elevation provided is not available in the theme.`,`Please make sure that \`theme.shadows[${i}]\` is defined.`].join(` -`)),p.jsx(uh,S({as:s,ownerState:d,className:Ne(h.root,o),ref:n},u))});process.env.NODE_ENV!=="production"&&(pi.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,elevation:qt(xa,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["elevation","outlined"]),a.string])});const dh=pi;function fh(e){return Je("MuiPopover",e)}pt("MuiPopover",["root","paper"]);const hh=["onEntering"],mh=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gh=["slotProps"];function As(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ds(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Bs(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Un(e){return typeof e=="function"?e():e}const bh=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"]},fh,t)},vh=Ce(ih,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ui=Ce(dh,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),di=T.forwardRef(function(t,n){var r,o,s;const i=at({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:f,className:b,container:y,elevation:v=8,marginThreshold:m=16,open:x,PaperProps:I={},slots:w,slotProps:E,transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:C=Gr,transitionDuration:P="auto",TransitionProps:{onEntering:V}={},disableScrollLock:D=!1}=i,F=ue(i.TransitionProps,hh),O=ue(i,mh),$=(r=E==null?void 0:E.paper)!=null?r:I,_=T.useRef(),L=ze(_,$.ref),U=S({},i,{anchorOrigin:u,anchorReference:h,elevation:v,marginThreshold:m,externalPaperSlotProps:$,transformOrigin:g,TransitionComponent:C,transitionDuration:P,TransitionProps:F}),R=bh(U),B=T.useCallback(()=>{if(h==="anchorPosition")return process.env.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using .')),d;const te=Un(c),M=te&&te.nodeType===1?te:Se(_.current).body,se=M.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Ee=M.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Ee.top===0&&Ee.left===0&&Ee.right===0&&Ee.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` -`))}return{top:se.top+As(se,u.vertical),left:se.left+Ds(se,u.horizontal)}},[c,u.horizontal,u.vertical,d,h]),ee=T.useCallback(te=>({vertical:As(te,g.vertical),horizontal:Ds(te,g.horizontal)}),[g.horizontal,g.vertical]),Z=T.useCallback(te=>{const M={width:te.offsetWidth,height:te.offsetHeight},se=ee(M);if(h==="none")return{top:null,left:null,transformOrigin:Bs(se)};const Ee=B();let Oe=Ee.top-se.vertical,we=Ee.left-se.horizontal;const ft=Oe+M.height,Pe=we+M.width,Ze=Lt(Un(c)),$e=Ze.innerHeight-m,Qe=Ze.innerWidth-m;if(m!==null&&Oe$e){const Te=ft-$e;Oe-=Te,se.vertical+=Te}if(process.env.NODE_ENV!=="production"&&M.height>$e&&M.height&&$e&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${M.height-$e}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(` -`)),m!==null&&weQe){const Te=Pe-Qe;we-=Te,se.horizontal+=Te}return{top:`${Math.round(Oe)}px`,left:`${Math.round(we)}px`,transformOrigin:Bs(se)}},[c,h,B,ee,m]),[N,j]=T.useState(x),z=T.useCallback(()=>{const te=_.current;if(!te)return;const M=Z(te);M.top!==null&&(te.style.top=M.top),M.left!==null&&(te.style.left=M.left),te.style.transformOrigin=M.transformOrigin,j(!0)},[Z]);T.useEffect(()=>(D&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[c,D,z]);const X=(te,M)=>{V&&V(te,M),z()},H=()=>{j(!1)};T.useEffect(()=>{x&&z()}),T.useImperativeHandle(l,()=>x?{updatePosition:()=>{z()}}:null,[x,z]),T.useEffect(()=>{if(!x)return;const te=ha(()=>{z()}),M=Lt(c);return M.addEventListener("resize",te),()=>{te.clear(),M.removeEventListener("resize",te)}},[c,x,z]);let q=P;P==="auto"&&!C.muiSupportAuto&&(q=void 0);const Y=y||(c?Se(Un(c)).body:void 0),K=(o=w==null?void 0:w.root)!=null?o:vh,W=(s=w==null?void 0:w.paper)!=null?s:ui,J=Nt({elementType:W,externalSlotProps:S({},$,{style:N?$.style:S({},$.style,{opacity:0})}),additionalProps:{elevation:v,ref:L},ownerState:U,className:Ne(R.paper,$==null?void 0:$.className)}),Q=Nt({elementType:K,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:O,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Y,open:x},ownerState:U,className:Ne(R.root,b)}),{slotProps:oe}=Q,A=ue(Q,gh);return p.jsx(K,S({},A,!Na(K)&&{slotProps:oe,disableScrollLock:D},{children:p.jsx(C,S({appear:!0,in:x,onEntering:X,onExited:H,timeout:q},F,{children:p.jsx(W,S({},J,{children:f}))}))}))});process.env.NODE_ENV!=="production"&&(di.propTypes={action:ao,anchorEl:qt(a.oneOfType([nt,a.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Un(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` +} });`:Ht(12,g?` (${g})`:"",JSON.stringify(f.main)));return Va(f,"light",P,r),Va(f,"dark",x,r),f.contrastText||(f.contrastText=v(f.main)),f},p={dark:Lr,light:Fa};return process.env.NODE_ENV!=="production"&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),rt(O({common:O({},On),mode:t,primary:b({color:a,name:"primary"}),secondary:b({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:l,name:"error"}),warning:b({color:h,name:"warning"}),info:b({color:c,name:"info"}),success:b({color:d,name:"success"}),grey:mf,contrastThreshold:n,getContrastText:v,augmentColor:b,tonalOffset:r},p[t]),o)}const Rf=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function jf(e){return Math.round(e*1e5)/1e5}const za={textTransform:"uppercase"},Ua='"Roboto", "Helvetica", "Arial", sans-serif';function $f(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ua,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:h,pxToRem:v}=n,b=fe(n,Rf);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,m=v||(w=>`${w/d*p}rem`),f=(w,P,x,E,y)=>O({fontFamily:r,fontWeight:w,fontSize:m(P),lineHeight:x},r===Ua?{letterSpacing:`${jf(E/P)}em`}:{},y,h),g={h1:f(a,96,1.167,-1.5),h2:f(a,60,1.2,-.5),h3:f(s,48,1.167,0),h4:f(s,34,1.235,.25),h5:f(s,24,1.334,0),h6:f(l,20,1.6,.15),subtitle1:f(s,16,1.75,.15),subtitle2:f(l,14,1.57,.1),body1:f(s,16,1.5,.15),body2:f(s,14,1.43,.15),button:f(l,14,1.75,.4,za),caption:f(s,12,1.66,.4),overline:f(s,12,2.66,1,za),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rt(O({htmlFontSize:d,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c},g),b,{clone:!1})}const Mf=.2,_f=.14,If=.12;function ge(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Mf})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${_f})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${If})`].join(",")}const Af=["none",ge(0,2,1,-1,0,1,1,0,0,1,3,0),ge(0,3,1,-2,0,2,2,0,0,1,5,0),ge(0,3,3,-2,0,3,4,0,0,1,8,0),ge(0,2,4,-1,0,4,5,0,0,1,10,0),ge(0,3,5,-1,0,5,8,0,0,1,14,0),ge(0,3,5,-1,0,6,10,0,0,1,18,0),ge(0,4,5,-2,0,7,10,1,0,2,16,1),ge(0,5,5,-3,0,8,10,1,0,3,14,2),ge(0,5,6,-3,0,9,12,1,0,3,16,2),ge(0,6,6,-3,0,10,14,1,0,4,18,3),ge(0,6,7,-4,0,11,15,1,0,4,20,3),ge(0,7,8,-4,0,12,17,2,0,5,22,4),ge(0,7,8,-4,0,13,19,2,0,5,24,4),ge(0,7,9,-4,0,14,21,2,0,5,26,4),ge(0,8,9,-5,0,15,22,2,0,6,28,5),ge(0,8,10,-5,0,16,24,2,0,6,30,5),ge(0,8,11,-5,0,17,26,2,0,6,32,5),ge(0,9,11,-5,0,18,28,2,0,7,34,6),ge(0,9,12,-6,0,19,29,2,0,7,36,6),ge(0,10,13,-6,0,20,31,3,0,8,38,7),ge(0,10,13,-6,0,21,33,3,0,8,40,7),ge(0,10,14,-6,0,22,35,3,0,8,42,7),ge(0,11,14,-7,0,23,36,3,0,9,44,8),ge(0,11,15,-7,0,24,38,3,0,9,46,8)],Df=Af,Bf=["duration","easing","delay"],Lf={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ff={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ha(e){return`${Math.round(e)}ms`}function Vf(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function zf(e){const t=O({},Lf,e.easing),n=O({},Ff,e.duration);return O({getAutoHeightDuration:Vf,create:(o=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0}=a,d=fe(a,Bf);if(process.env.NODE_ENV!=="production"){const h=b=>typeof b=="string",v=b=>!isNaN(parseFloat(b));!h(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!v(s)&&!h(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),h(l)||console.error('MUI: Argument "easing" must be a string.'),!v(c)&&!h(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` +`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof s=="string"?s:Ha(s)} ${l} ${typeof c=="string"?c:Ha(c)}`).join(",")}},e,{easing:t,duration:n})}const Uf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Hf=Uf,qf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wf(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,s=fe(e,qf);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Ht(18));const l=Pf(r),c=Mo(e);let d=rt(c,{mixins:df(c.breakpoints,n),palette:l,shadows:Df.slice(),typography:$f(l,a),transitions:zf(o),zIndex:O({},Hf)});if(d=rt(d,s),d=t.reduce((h,v)=>rt(h,v),d),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],v=(b,p)=>{let m;for(m in b){const f=b[m];if(h.indexOf(m)!==-1&&Object.keys(f).length>0){if(process.env.NODE_ENV!=="production"){const g=Ze("",m);console.error([`MUI: The \`${p}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:f}},null,2),"","https://mui.com/r/state-classes-guide"].join(` +`))}b[m]={}}}};Object.keys(d.components).forEach(b=>{const p=d.components[b].styleOverrides;p&&b.indexOf("Mui")===0&&v(p,b)})}return d.unstable_sxConfig=O({},jo,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(v){return $o({sx:v,theme:this})},d}const Xf=Wf(),Io=Xf,Ao="$$material",hi=e=>Gn(e)&&e!=="classes",Gf=of({themeId:Ao,defaultTheme:Io,rootShouldForwardProp:hi}),Oe=Gf;function Dn(){const e=fi(Io);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[Ao]||e}function lt({props:e,name:t}){return sf({props:e,name:t,defaultTheme:Io,themeId:Ao})}function oo(e,t){return oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},oo(e,t)}function Yf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,oo(e,t)}const qa={disabled:!1};var Kf=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const mi=N.createContext(null);var Jf=function(t){return t.scrollTop},mn="unmounted",xt="exited",Et="entering",Vt="entered",ao="exiting",ct=function(e){Yf(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?l?(c=xt,a.appearStatus=Et):c=Vt:r.unmountOnExit||r.mountOnEnter?c=mn:c=xt,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===mn?{status:xt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Et&&s!==Vt&&(a=Et):(s===Et||s===Vt)&&(a=ao)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,l;return a=s=l=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:l}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Et){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this);s&&Jf(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xt&&this.setState({status:mn})},n.performEnter=function(o){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[un.findDOMNode(this),l],d=c[0],h=c[1],v=this.getTimeouts(),b=l?v.appear:v.enter;if(!o&&!s||qa.disabled){this.safeSetState({status:Vt},function(){a.props.onEntered(d)});return}this.props.onEnter(d,h),this.safeSetState({status:Et},function(){a.props.onEntering(d,h),a.onTransitionEnd(b,function(){a.safeSetState({status:Vt},function(){a.props.onEntered(d,h)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:un.findDOMNode(this);if(!a||qa.disabled){this.safeSetState({status:xt},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:ao},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:xt},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],h=c[1];this.props.addEndListener(d,h)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===mn)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=fe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return N.createElement(mi.Provider,{value:null},typeof s=="function"?s(o,l):N.cloneElement(N.Children.only(s),l))},t}(N.Component);ct.contextType=mi;ct.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,n,r,o,a){var s=e[t];return i.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,a)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var n=Kf;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;ae.scrollTop;function ir(e,t){var n,r;const{timeout:o,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}const Zf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function so(e){return`scale(${e}, ${e**2})`}const Qf={entering:{opacity:1,transform:so(1)},entered:{opacity:1,transform:"none"}},Fr=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Do=k.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:l,onEnter:c,onEntered:d,onEntering:h,onExit:v,onExited:b,onExiting:p,style:m,timeout:f="auto",TransitionComponent:g=gi}=t,w=fe(t,Zf),P=fn(),x=k.useRef(),E=Dn(),y=k.useRef(null),S=Ue(y,a.ref,n),T=U=>j=>{if(U){const F=y.current;j===void 0?U(F):U(F,j)}},M=T(h),D=T((U,j)=>{bi(U);const{duration:F,delay:ee,easing:Z}=ir({style:m,timeout:f,easing:s},{mode:"enter"});let C;f==="auto"?(C=E.transitions.getAutoHeightDuration(U.clientHeight),x.current=C):C=F,U.style.transition=[E.transitions.create("opacity",{duration:C,delay:ee}),E.transitions.create("transform",{duration:Fr?C:C*.666,delay:ee,easing:Z})].join(","),c&&c(U,j)}),L=T(d),R=T(p),I=T(U=>{const{duration:j,delay:F,easing:ee}=ir({style:m,timeout:f,easing:s},{mode:"exit"});let Z;f==="auto"?(Z=E.transitions.getAutoHeightDuration(U.clientHeight),x.current=Z):Z=j,U.style.transition=[E.transitions.create("opacity",{duration:Z,delay:F}),E.transitions.create("transform",{duration:Fr?Z:Z*.666,delay:Fr?F:F||Z*.333,easing:ee})].join(","),U.style.opacity=0,U.style.transform=so(.75),v&&v(U)}),A=T(b),V=U=>{f==="auto"&&P.start(x.current||0,U),r&&r(y.current,U)};return u.jsx(g,O({appear:o,in:l,nodeRef:y,onEnter:D,onEntered:L,onEntering:M,onExit:I,onExited:A,onExiting:R,addEndListener:V,timeout:f==="auto"?null:f},w,{children:(U,j)=>k.cloneElement(a,O({style:O({opacity:0,transform:so(.75),visibility:U==="exited"&&!l?"hidden":void 0},Qf[U],m,a.props.style),ref:S},j))}))});process.env.NODE_ENV!=="production"&&(Do.propTypes={addEndListener:i.func,appear:i.bool,children:jn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});Do.muiSupportAuto=!0;const io=Do,eh=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Wa=eh,th=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],nh=Oe(li,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vi=k.forwardRef(function(t,n){var r;const o=di(),a=lt({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:d,container:h,disablePortal:v,keepMounted:b,modifiers:p,open:m,placement:f,popperOptions:g,popperRef:w,transition:P,slots:x,slotProps:E}=a,y=fe(a,th),S=(r=x==null?void 0:x.root)!=null?r:c==null?void 0:c.Root,T=O({anchorEl:s,container:h,disablePortal:v,keepMounted:b,modifiers:p,open:m,placement:f,popperOptions:g,popperRef:w,transition:P},y);return u.jsx(nh,O({as:l,direction:o==null?void 0:o.direction,slots:{root:S},slotProps:E??d},T,{ref:n}))});process.env.NODE_ENV!=="production"&&(vi.propTypes={anchorEl:i.oneOfType([ot,i.object,i.func]),children:i.oneOfType([i.node,i.func]),component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([ot,i.func]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:i.oneOf(["absolute","fixed"])}),popperRef:xo,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transition:i.bool});const yi=vi;function rh(e){return Ze("MuiTooltip",e)}const oh=ht("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),dt=oh,ah=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function sh(e){return Math.round(e*1e5)/1e5}const ih=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ke(a.split("-")[0])}`],arrow:["arrow"]};return it(s,rh,t)},lh=Oe(yi,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>O({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${dt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${dt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${dt.arrow}`]:O({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${dt.arrow}`]:O({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),ch=Oe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ke(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>O({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:sr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${sh(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${dt.popper}[data-popper-placement*="left"] &`]:O({transformOrigin:"right center"},t.isRtl?O({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):O({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${dt.popper}[data-popper-placement*="right"] &`]:O({transformOrigin:"left center"},t.isRtl?O({marginRight:"14px"},t.touch&&{marginRight:"24px"}):O({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${dt.popper}[data-popper-placement*="top"] &`]:O({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${dt.popper}[data-popper-placement*="bottom"] &`]:O({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),ph=Oe("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:sr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Hn=!1;const Xa=new $n;let ln={x:0,y:0};function qn(e,t){return n=>{t&&t(n),e(n)}}const wi=k.forwardRef(function(t,n){var r,o,a,s,l,c,d,h,v,b,p,m,f,g,w,P,x,E,y;const S=lt({props:t,name:"MuiTooltip"}),{arrow:T=!1,children:M,components:D={},componentsProps:L={},describeChild:R=!1,disableFocusListener:I=!1,disableHoverListener:A=!1,disableInteractive:V=!1,disableTouchListener:U=!1,enterDelay:j=100,enterNextDelay:F=0,enterTouchDelay:ee=700,followCursor:Z=!1,id:C,leaveDelay:$=0,leaveTouchDelay:z=1500,onClose:G,onOpen:H,open:W,placement:Y="bottom",PopperComponent:K,PopperProps:X={},slotProps:J={},slots:Q={},title:ae,TransitionComponent:B=io,TransitionProps:te}=S,_=fe(S,ah),se=k.isValidElement(M)?M:u.jsx("span",{children:M}),ke=Dn(),Pe=ke.direction==="rtl",[xe,bt]=k.useState(),[Re,Qe]=k.useState(null),Ie=k.useRef(!1),et=V||Z,Ne=fn(),Mt=fn(),vt=fn(),Zt=fn(),[Bn,Ho]=Ls({controlled:W,default:!1,name:"Tooltip",state:"open"});let tt=Bn;if(process.env.NODE_ENV!=="production"){const{current:ne}=k.useRef(W!==void 0);k.useEffect(()=>{xe&&xe.disabled&&!ne&&ae!==""&&xe.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(` +`))},[ae,xe,ne])}const Sr=Bs(C),Qt=k.useRef(),Ln=Tn(()=>{Qt.current!==void 0&&(document.body.style.WebkitUserSelect=Qt.current,Qt.current=void 0),Zt.clear()});k.useEffect(()=>Ln,[Ln]);const qo=ne=>{Xa.clear(),Hn=!0,Ho(!0),H&&!tt&&H(ne)},Fn=Tn(ne=>{Xa.start(800+$,()=>{Hn=!1}),Ho(!1),G&&tt&&G(ne),Ne.start(ke.transitions.duration.shortest,()=>{Ie.current=!1})}),Cr=ne=>{Ie.current&&ne.type!=="touchstart"||(xe&&xe.removeAttribute("title"),Mt.clear(),vt.clear(),j||Hn&&F?Mt.start(Hn?F:j,()=>{qo(ne)}):qo(ne))},Wo=ne=>{Mt.clear(),vt.start($,()=>{Fn(ne)})},{isFocusVisibleRef:Xo,onBlur:El,onFocus:kl,ref:Tl}=Fs(),[,Go]=k.useState(!1),Yo=ne=>{El(ne),Xo.current===!1&&(Go(!1),Wo(ne))},Ko=ne=>{xe||bt(ne.currentTarget),kl(ne),Xo.current===!0&&(Go(!0),Cr(ne))},Jo=ne=>{Ie.current=!0;const Ae=se.props;Ae.onTouchStart&&Ae.onTouchStart(ne)},Zo=Cr,Qo=Wo,Nl=ne=>{Jo(ne),vt.clear(),Ne.clear(),Ln(),Qt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Zt.start(ee,()=>{document.body.style.WebkitUserSelect=Qt.current,Cr(ne)})},Sl=ne=>{se.props.onTouchEnd&&se.props.onTouchEnd(ne),Ln(),vt.start(z,()=>{Fn(ne)})};k.useEffect(()=>{if(!tt)return;function ne(Ae){(Ae.key==="Escape"||Ae.key==="Esc")&&Fn(Ae)}return document.addEventListener("keydown",ne),()=>{document.removeEventListener("keydown",ne)}},[Fn,tt]);const Cl=Ue(se.ref,Tl,bt,n);!ae&&ae!==0&&(tt=!1);const Or=k.useRef(),Ol=ne=>{const Ae=se.props;Ae.onMouseMove&&Ae.onMouseMove(ne),ln={x:ne.clientX,y:ne.clientY},Or.current&&Or.current.update()},en={},Pr=typeof ae=="string";R?(en.title=!tt&&Pr&&!A?ae:null,en["aria-describedby"]=tt?Sr:null):(en["aria-label"]=Pr?ae:null,en["aria-labelledby"]=tt&&!Pr?Sr:null);const Fe=O({},en,_,se.props,{className:Se(_.className,se.props.className),onTouchStart:Jo,ref:Cl},Z?{onMouseMove:Ol}:{});process.env.NODE_ENV!=="production"&&(Fe["data-mui-internal-clone-element"]=!0,k.useEffect(()=>{xe&&!xe.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(` +`))},[xe]));const tn={};U||(Fe.onTouchStart=Nl,Fe.onTouchEnd=Sl),A||(Fe.onMouseOver=qn(Zo,Fe.onMouseOver),Fe.onMouseLeave=qn(Qo,Fe.onMouseLeave),et||(tn.onMouseOver=Zo,tn.onMouseLeave=Qo)),I||(Fe.onFocus=qn(Ko,Fe.onFocus),Fe.onBlur=qn(Yo,Fe.onBlur),et||(tn.onFocus=Ko,tn.onBlur=Yo)),process.env.NODE_ENV!=="production"&&se.props.title&&console.error(["MUI: You have provided a `title` prop to the child of .",`Remove this title prop \`${se.props.title}\` or the Tooltip component.`].join(` +`));const Pl=k.useMemo(()=>{var ne;let Ae=[{name:"arrow",enabled:!!Re,options:{element:Re,padding:4}}];return(ne=X.popperOptions)!=null&&ne.modifiers&&(Ae=Ae.concat(X.popperOptions.modifiers)),O({},X.popperOptions,{modifiers:Ae})},[Re,X]),nn=O({},S,{isRtl:Pe,arrow:T,disableInteractive:et,placement:Y,PopperComponentProp:K,touch:Ie.current}),Rr=ih(nn),ea=(r=(o=Q.popper)!=null?o:D.Popper)!=null?r:lh,ta=(a=(s=(l=Q.transition)!=null?l:D.Transition)!=null?s:B)!=null?a:io,na=(c=(d=Q.tooltip)!=null?d:D.Tooltip)!=null?c:ch,ra=(h=(v=Q.arrow)!=null?v:D.Arrow)!=null?h:ph,Rl=hn(ea,O({},X,(b=J.popper)!=null?b:L.popper,{className:Se(Rr.popper,X==null?void 0:X.className,(p=(m=J.popper)!=null?m:L.popper)==null?void 0:p.className)}),nn),jl=hn(ta,O({},te,(f=J.transition)!=null?f:L.transition),nn),$l=hn(na,O({},(g=J.tooltip)!=null?g:L.tooltip,{className:Se(Rr.tooltip,(w=(P=J.tooltip)!=null?P:L.tooltip)==null?void 0:w.className)}),nn),Ml=hn(ra,O({},(x=J.arrow)!=null?x:L.arrow,{className:Se(Rr.arrow,(E=(y=J.arrow)!=null?y:L.arrow)==null?void 0:E.className)}),nn);return u.jsxs(k.Fragment,{children:[k.cloneElement(se,Fe),u.jsx(ea,O({as:K??yi,placement:Y,anchorEl:Z?{getBoundingClientRect:()=>({top:ln.y,left:ln.x,right:ln.x,bottom:ln.y,width:0,height:0})}:xe,popperRef:Or,open:xe?tt:!1,id:Sr,transition:!0},tn,Rl,{popperOptions:Pl,children:({TransitionProps:ne})=>u.jsx(ta,O({timeout:ke.transitions.duration.shorter},ne,jl,{children:u.jsxs(na,O({},$l,{children:[ae,T?u.jsx(ra,O({},Ml,{ref:Qe})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(wi.propTypes={arrow:i.bool,children:jn.isRequired,classes:i.object,className:i.string,components:i.shape({Arrow:i.elementType,Popper:i.elementType,Tooltip:i.elementType,Transition:i.elementType}),componentsProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),describeChild:i.bool,disableFocusListener:i.bool,disableHoverListener:i.bool,disableInteractive:i.bool,disableTouchListener:i.bool,enterDelay:i.number,enterNextDelay:i.number,enterTouchDelay:i.number,followCursor:i.bool,id:i.string,leaveDelay:i.number,leaveTouchDelay:i.number,onClose:i.func,onOpen:i.func,open:i.bool,placement:i.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:i.elementType,PopperProps:i.object,slotProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),slots:i.shape({arrow:i.elementType,popper:i.elementType,tooltip:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),title:i.node,TransitionComponent:i.elementType,TransitionProps:i.object});const uh=wi;var Bo={},xi={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(xi);var dh=xi.exports,Vr={};function fh(e){return Ze("MuiSvgIcon",e)}ht("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const hh=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],mh=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ke(t)}`,`fontSize${Ke(n)}`]};return it(o,fh,r)},gh=Oe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ke(n.color)}`],t[`fontSize${Ke(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,s,l,c,d,h,v,b,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((d=e.typography)==null||(h=d.pxToRem)==null?void 0:h.call(d,35))||"2.1875rem"}[t.fontSize],color:(v=(b=(e.vars||e).palette)==null||(b=b[t.color])==null?void 0:b.main)!=null?v:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),Lo=k.forwardRef(function(t,n){const r=lt({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:h=!1,titleAccess:v,viewBox:b="0 0 24 24"}=r,p=fe(r,hh),m=k.isValidElement(o)&&o.type==="svg",f=O({},r,{color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:b,hasSvgAsChild:m}),g={};h||(g.viewBox=b);const w=mh(f);return u.jsxs(gh,O({as:l,className:Se(w.root,a),focusable:"false",color:d,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:n},g,p,m&&o.props,{ownerState:f,children:[m?o.props.children:o,v?u.jsx("title",{children:v}):null]}))});process.env.NODE_ENV!=="production"&&(Lo.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string});Lo.muiName="SvgIcon";const Ga=Lo;function Ei(e,t){function n(r,o){return u.jsx(Ga,O({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ga.muiName,k.memo(k.forwardRef(n))}const bh={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(` +`)),Ws.configure(e)}},vh=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ke,createChainedFunction:Qr,createSvgIcon:Ei,debounce:Ds,deprecatedPropType:Hc,isMuiElement:qc,ownerDocument:Ce,ownerWindow:qt,requirePropFactory:Wc,setRef:tr,unstable_ClassNameGenerator:bh,unstable_useEnhancedEffect:Pt,unstable_useId:Bs,unsupportedProp:Yc,useControlled:Ls,useEventCallback:Tn,useForkRef:Ue,useIsFocusVisible:Fs},Symbol.toStringTag,{value:"Module"})),yh=kc(vh);var Ya;function wh(){return Ya||(Ya=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=yh}(Vr)),Vr}var xh=dh;Object.defineProperty(Bo,"__esModule",{value:!0});var ki=Bo.default=void 0,Eh=xh(wh()),kh=u;ki=Bo.default=(0,Eh.default)((0,kh.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");function Ka(e,t,n){return e?u.jsx(ye.ListItemIcon,{className:`papi-menu-icon-${n?"leading":"trailing"}`,children:u.jsx("img",{src:e,alt:`${n?"Leading":"Trailing"} icon for ${t}`})}):void 0}function Fo(e){const{onClick:t,label:n,tooltip:r,allowForLeadingIcons:o=!0,iconPathBefore:a=void 0,iconPathAfter:s=void 0,hasAutoFocus:l=!1,className:c,isDisabled:d=!1,isDense:h=!0,isSubMenuParent:v=!1,hasDisabledGutters:b=!1,hasDivider:p=!1,focusVisibleClassName:m,id:f,children:g}=e,w=u.jsx(ye.MenuItem,{sx:{lineHeight:.8},autoFocus:l,className:c,disabled:d,dense:h,disableGutters:b,divider:p,focusVisibleClassName:m,onClick:t,id:f,children:n?u.jsxs(u.Fragment,{children:[Ka(a,n,!0),u.jsx(ye.ListItemText,{primary:n,inset:!a&&o}),v?u.jsx(ye.ListItemIcon,{className:"papi-menu-icon-trailing",children:u.jsx(ki,{})}):Ka(s,n,!1)]}):g});return r?u.jsx(uh,{title:r,placement:"right",children:u.jsx("div",{children:w})}):w}function Ti(e){return Object.entries(e.groups).map(([n,r])=>({id:n,group:r}))}function Th(e){const[t,n]=N.useState(void 0),{parentMenuItem:r,parentItemProps:o,menuDefinition:a}=e,s=d=>{n(d.currentTarget)},l=()=>{n(void 0)},c=()=>{let d=Ti(a).filter(h=>"menuItem"in h.group);if(!(r!=null&&r.id))throw new Error("A valid parent menu item is required for submenus.");return d=d.filter(h=>"menuItem"in h.group&&h.group.menuItem===r.id),u.jsx(Vo,{...e,includedGroups:d})};return u.jsxs(u.Fragment,{children:[u.jsx(Fo,{onClick:s,...o,isSubMenuParent:!0}),u.jsx(ye.Menu,{anchorEl:t,open:!!t,onClose:l,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:c()},r.id)]})}const Nh=(e,t)=>t.filter(o=>o.group===e).sort((o,a)=>(o.order||0)-(a.order||0));function Vo(e){const{menuDefinition:t,onClick:n,commandHandler:r,includedGroups:o}=e,{items:a,allowForLeadingIcons:s}=N.useMemo(()=>{const h=o&&o.length>0?o:Ti(t).filter(m=>!("menuItem"in m.group)),v=Object.values(h).sort((m,f)=>(m.group.order||0)-(f.group.order||0)),b=[];v.forEach(m=>{Nh(m.id,t.items).forEach(f=>b.push({item:f,isLastItemInGroup:!1})),b.length>0&&(b[b.length-1].isLastItemInGroup=!0)}),b.length>0&&(b[b.length-1].isLastItemInGroup=!1);const p=b.some(m=>"iconPathBefore"in m.item&&m.item.iconPathBefore);return{items:b,allowForLeadingIcons:p}},[o,t]),l=({item:h,isLastItemInGroup:v})=>({className:"papi-menu-item",label:h.label,tooltip:h.tooltip,iconPathBefore:"iconPathBefore"in h?h.iconPathBefore:void 0,iconPathAfter:"iconPathAfter"in h?h.iconPathAfter:void 0,hasDivider:v,allowForLeadingIcons:s}),[c]=a;if(!c)return u.jsx("div",{});const d=c.item.group;return u.jsx("div",{role:"menu","aria-label":d,children:a.map((h,v)=>{const{item:b}=h,p=l(h);if("command"in b){const m=b.group+v;return u.jsx(Fo,{onClick:f=>{n==null||n(f),r(b)},...p},m)}return u.jsx(Th,{parentMenuItem:b,parentItemProps:p,...e},d+b.id)})},d)}function Sh(e){const{menuDefinition:t,columnId:n}=e;let a=Object.entries(t.groups).map(([s,l])=>({id:s,group:l})).filter(s=>"column"in s.group);return n&&"columns"in t&&t.columns[n]&&(a=a.filter(s=>"column"in s.group&&s.group.column===n)),u.jsx(Vo,{...e,includedGroups:a})}function Ch({commandHandler:e,menuDefinition:t,id:n,metadata:r,onClick:o,className:a}){return u.jsxs(ye.Grid,{id:n,item:!0,xs:"auto",role:"menu","aria-label":n,className:`papi-menu-column ${a??""}`,children:[u.jsx("h3",{"aria-label":r.label,className:`papi-menu-column-header ${a??""}`,children:r.label}),u.jsx(ye.List,{id:n,dense:!0,className:a??"",children:u.jsx(Sh,{commandHandler:e,menuDefinition:t,columnId:n,onClick:o})})]})}function Ni({commandHandler:e,className:t,multiColumnMenu:n,id:r}){const{columns:o}=n,a=N.useMemo(()=>{const s=new Map;return Object.getOwnPropertyNames(o).forEach(l=>{if(l==="isExtensible")return;const c=l,d=o[c];typeof d=="object"&&typeof d.order=="number"&&!Number.isNaN(d.order)?s.set(d.order,{id:c,metadata:d}):console.warn(`Property ${l} (${typeof d}) on menu ${r} is not a valid column and is being ignored. This might indicate data corruption`)}),Array.from(s.values()).sort((l,c)=>(l.metadata.order||0)-(c.metadata.order||0))},[o,r]);return u.jsx(ye.Grid,{container:!0,spacing:0,className:`papi-multi-column-menu ${t??""}`,columns:a.length,role:"menu","aria-label":"GridMenu",id:r,children:a.map((s,l)=>u.jsx(Ch,{commandHandler:e,menuDefinition:n,...s,className:t},l))})}const Si=k.createContext({});process.env.NODE_ENV!=="production"&&(Si.displayName="ListContext");const Oh=Si;function Ph(e){return Ze("MuiList",e)}ht("MuiList",["root","padding","dense","subheader"]);const Rh=["children","className","component","dense","disablePadding","subheader"],jh=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return it({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Ph,t)},$h=Oe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>O({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Ci=k.forwardRef(function(t,n){const r=lt({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:d}=r,h=fe(r,Rh),v=k.useMemo(()=>({dense:l}),[l]),b=O({},r,{component:s,dense:l,disablePadding:c}),p=jh(b);return u.jsx(Oh.Provider,{value:v,children:u.jsxs($h,O({as:s,className:Se(p.root,a),ref:n,ownerState:b},h,{children:[d,o]}))})});process.env.NODE_ENV!=="production"&&(Ci.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disablePadding:i.bool,subheader:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const Mh=Ci,_h=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function zr(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ja(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Oi(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function cn(e,t,n,r,o,a){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Oi(l,a)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const Pi=k.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:h,variant:v="selectedMenu"}=t,b=fe(t,_h),p=k.useRef(null),m=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pt(()=>{o&&p.current.focus()},[o]),k.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,E)=>{const y=!p.current.style.width;if(x.clientHeight{const E=p.current,y=x.key,S=Ce(E).activeElement;if(y==="ArrowDown")x.preventDefault(),cn(E,S,d,c,zr);else if(y==="ArrowUp")x.preventDefault(),cn(E,S,d,c,Ja);else if(y==="Home")x.preventDefault(),cn(E,null,d,c,zr);else if(y==="End")x.preventDefault(),cn(E,null,d,c,Ja);else if(y.length===1){const T=m.current,M=y.toLowerCase(),D=performance.now();T.keys.length>0&&(D-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&M!==T.keys[0]&&(T.repeating=!1)),T.lastTime=D,T.keys.push(M);const L=S&&!T.repeating&&Oi(S,T);T.previousKeyMatched&&(L||cn(E,S,!1,c,zr,T))?x.preventDefault():T.previousKeyMatched=!1}h&&h(x)},g=Ue(p,n);let w=-1;k.Children.forEach(s,(x,E)=>{if(!k.isValidElement(x)){w===E&&(w+=1,w>=s.length&&(w=-1));return}process.env.NODE_ENV!=="production"&&er.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` +`)),x.props.disabled||(v==="selectedMenu"&&x.props.selected||w===-1)&&(w=E),w===E&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const P=k.Children.map(s,(x,E)=>{if(E===w){const y={};return a&&(y.autoFocus=!0),x.props.tabIndex===void 0&&v==="selectedMenu"&&(y.tabIndex=0),k.cloneElement(x,y)}return x});return u.jsx(Mh,O({role:"menu",ref:g,className:l,onKeyDown:f,tabIndex:o?0:-1},b,{children:P}))});process.env.NODE_ENV!=="production"&&(Pi.propTypes={autoFocus:i.bool,autoFocusItem:i.bool,children:i.node,className:i.string,disabledItemsFocusable:i.bool,disableListWrap:i.bool,onKeyDown:i.func,variant:i.oneOf(["menu","selectedMenu"])});const Ih=Pi,Ah=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Dh={entering:{opacity:1},entered:{opacity:1}},Ri=k.forwardRef(function(t,n){const r=Dn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:d,onEnter:h,onEntered:v,onEntering:b,onExit:p,onExited:m,onExiting:f,style:g,timeout:w=o,TransitionComponent:P=gi}=t,x=fe(t,Ah),E=k.useRef(null),y=Ue(E,l.ref,n),S=V=>U=>{if(V){const j=E.current;U===void 0?V(j):V(j,U)}},T=S(b),M=S((V,U)=>{bi(V);const j=ir({style:g,timeout:w,easing:c},{mode:"enter"});V.style.webkitTransition=r.transitions.create("opacity",j),V.style.transition=r.transitions.create("opacity",j),h&&h(V,U)}),D=S(v),L=S(f),R=S(V=>{const U=ir({style:g,timeout:w,easing:c},{mode:"exit"});V.style.webkitTransition=r.transitions.create("opacity",U),V.style.transition=r.transitions.create("opacity",U),p&&p(V)}),I=S(m),A=V=>{a&&a(E.current,V)};return u.jsx(P,O({appear:s,in:d,nodeRef:E,onEnter:M,onEntered:D,onEntering:T,onExit:R,onExited:I,onExiting:L,addEndListener:A,timeout:w},x,{children:(V,U)=>k.cloneElement(l,O({style:O({opacity:0,visibility:V==="exited"&&!d?"hidden":void 0},Dh[V],g,l.props.style),ref:y},U))}))});process.env.NODE_ENV!=="production"&&(Ri.propTypes={addEndListener:i.func,appear:i.bool,children:jn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});const Bh=Ri;function Lh(e){return Ze("MuiBackdrop",e)}ht("MuiBackdrop",["root","invisible"]);const Fh=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Vh=e=>{const{classes:t,invisible:n}=e;return it({root:["root",n&&"invisible"]},Lh,t)},zh=Oe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>O({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),ji=k.forwardRef(function(t,n){var r,o,a;const s=lt({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:d="div",components:h={},componentsProps:v={},invisible:b=!1,open:p,slotProps:m={},slots:f={},TransitionComponent:g=Bh,transitionDuration:w}=s,P=fe(s,Fh),x=O({},s,{component:d,invisible:b}),E=Vh(x),y=(r=m.root)!=null?r:v.root;return u.jsx(g,O({in:p,timeout:w},P,{children:u.jsx(zh,O({"aria-hidden":!0},y,{as:(o=(a=f.root)!=null?a:h.Root)!=null?o:d,className:Se(E.root,c,y==null?void 0:y.className),ownerState:O({},x,y==null?void 0:y.ownerState),classes:E,ref:n,children:l}))}))});process.env.NODE_ENV!=="production"&&(ji.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.object}),slots:i.shape({root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});const Uh=ji;function Hh(e){return Ze("MuiModal",e)}ht("MuiModal",["root","hidden","backdrop"]);const qh=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wh=e=>{const{open:t,exited:n,classes:r}=e;return it({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Hh,r)},Xh=Oe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>O({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Gh=Oe(Uh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$i=k.forwardRef(function(t,n){var r,o,a,s,l,c;const d=lt({name:"MuiModal",props:t}),{BackdropComponent:h=Gh,BackdropProps:v,className:b,closeAfterTransition:p=!1,children:m,container:f,component:g,components:w={},componentsProps:P={},disableAutoFocus:x=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:y=!1,disablePortal:S=!1,disableRestoreFocus:T=!1,disableScrollLock:M=!1,hideBackdrop:D=!1,keepMounted:L=!1,onBackdropClick:R,open:I,slotProps:A,slots:V}=d,U=fe(d,qh),j=O({},d,{closeAfterTransition:p,disableAutoFocus:x,disableEnforceFocus:E,disableEscapeKeyDown:y,disablePortal:S,disableRestoreFocus:T,disableScrollLock:M,hideBackdrop:D,keepMounted:L}),{getRootProps:F,getBackdropProps:ee,getTransitionProps:Z,portalRef:C,isTopModal:$,exited:z,hasTransition:G}=Ap(O({},j,{rootRef:n})),H=O({},j,{exited:z}),W=Wh(H),Y={};if(m.props.tabIndex===void 0&&(Y.tabIndex="-1"),G){const{onEnter:te,onExited:_}=Z();Y.onEnter=te,Y.onExited=_}const K=(r=(o=V==null?void 0:V.root)!=null?o:w.Root)!=null?r:Xh,X=(a=(s=V==null?void 0:V.backdrop)!=null?s:w.Backdrop)!=null?a:h,J=(l=A==null?void 0:A.root)!=null?l:P.root,Q=(c=A==null?void 0:A.backdrop)!=null?c:P.backdrop,ae=Rt({elementType:K,externalSlotProps:J,externalForwardedProps:U,getSlotProps:F,additionalProps:{ref:n,as:g},ownerState:H,className:Se(b,J==null?void 0:J.className,W==null?void 0:W.root,!H.open&&H.exited&&(W==null?void 0:W.hidden))}),B=Rt({elementType:X,externalSlotProps:Q,additionalProps:v,getSlotProps:te=>ee(O({},te,{onClick:_=>{R&&R(_),te!=null&&te.onClick&&te.onClick(_)}})),className:Se(Q==null?void 0:Q.className,v==null?void 0:v.className,W==null?void 0:W.backdrop),ownerState:H});return!L&&!I&&(!G||z)?null:u.jsx(Nn,{ref:C,container:f,disablePortal:S,children:u.jsxs(K,O({},ae,{children:[!D&&h?u.jsx(X,O({},B)):null,u.jsx(nr,{disableEnforceFocus:E,disableAutoFocus:x,disableRestoreFocus:T,isEnabled:$,open:I,children:k.cloneElement(m,Y)})]}))})});process.env.NODE_ENV!=="production"&&($i.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:jn.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([ot,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onBackdropClick:i.func,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const Yh=$i;function Kh(e){return Ze("MuiPaper",e)}ht("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jh=["className","component","elevation","square","variant"],Zh=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return it(a,Kh,o)},Qh=Oe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return O({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&O({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${sr("#fff",Wa(t.elevation))}, ${sr("#fff",Wa(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Mi=k.forwardRef(function(t,n){const r=lt({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation"}=r,d=fe(r,Jh),h=O({},r,{component:a,elevation:s,square:l,variant:c}),v=Zh(h);return process.env.NODE_ENV!=="production"&&Dn().shadows[s]===void 0&&console.error([`MUI: The elevation provided is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(` +`)),u.jsx(Qh,O({as:a,ownerState:h,className:Se(v.root,o),ref:n},d))});process.env.NODE_ENV!=="production"&&(Mi.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,elevation:Jt(Hs,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["elevation","outlined"]),i.string])});const em=Mi;function tm(e){return Ze("MuiPopover",e)}ht("MuiPopover",["root","paper"]);const nm=["onEntering"],rm=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],om=["slotProps"];function Za(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Qa(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function es(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Kn(e){return typeof e=="function"?e():e}const am=e=>{const{classes:t}=e;return it({root:["root"],paper:["paper"]},tm,t)},sm=Oe(Yh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_i=Oe(em,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ii=k.forwardRef(function(t,n){var r,o,a;const s=lt({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:v="anchorEl",children:b,className:p,container:m,elevation:f=8,marginThreshold:g=16,open:w,PaperProps:P={},slots:x,slotProps:E,transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:S=io,transitionDuration:T="auto",TransitionProps:{onEntering:M}={},disableScrollLock:D=!1}=s,L=fe(s.TransitionProps,nm),R=fe(s,rm),I=(r=E==null?void 0:E.paper)!=null?r:P,A=k.useRef(),V=Ue(A,I.ref),U=O({},s,{anchorOrigin:d,anchorReference:v,elevation:f,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:y,TransitionComponent:S,transitionDuration:T,TransitionProps:L}),j=am(U),F=k.useCallback(()=>{if(v==="anchorPosition")return process.env.NODE_ENV!=="production"&&(h||console.error('MUI: You need to provide a `anchorPosition` prop when using .')),h;const te=Kn(c),_=te&&te.nodeType===1?te:Ce(A.current).body,se=_.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ke=_.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ke.top===0&&ke.left===0&&ke.right===0&&ke.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` +`))}return{top:se.top+Za(se,d.vertical),left:se.left+Qa(se,d.horizontal)}},[c,d.horizontal,d.vertical,h,v]),ee=k.useCallback(te=>({vertical:Za(te,y.vertical),horizontal:Qa(te,y.horizontal)}),[y.horizontal,y.vertical]),Z=k.useCallback(te=>{const _={width:te.offsetWidth,height:te.offsetHeight},se=ee(_);if(v==="none")return{top:null,left:null,transformOrigin:es(se)};const ke=F();let Pe=ke.top-se.vertical,xe=ke.left-se.horizontal;const bt=Pe+_.height,Re=xe+_.width,Qe=qt(Kn(c)),Ie=Qe.innerHeight-g,et=Qe.innerWidth-g;if(g!==null&&PeIe){const Ne=bt-Ie;Pe-=Ne,se.vertical+=Ne}if(process.env.NODE_ENV!=="production"&&_.height>Ie&&_.height&&Ie&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${_.height-Ie}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(` +`)),g!==null&&xeet){const Ne=Re-et;xe-=Ne,se.horizontal+=Ne}return{top:`${Math.round(Pe)}px`,left:`${Math.round(xe)}px`,transformOrigin:es(se)}},[c,v,F,ee,g]),[C,$]=k.useState(w),z=k.useCallback(()=>{const te=A.current;if(!te)return;const _=Z(te);_.top!==null&&(te.style.top=_.top),_.left!==null&&(te.style.left=_.left),te.style.transformOrigin=_.transformOrigin,$(!0)},[Z]);k.useEffect(()=>(D&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[c,D,z]);const G=(te,_)=>{M&&M(te,_),z()},H=()=>{$(!1)};k.useEffect(()=>{w&&z()}),k.useImperativeHandle(l,()=>w?{updatePosition:()=>{z()}}:null,[w,z]),k.useEffect(()=>{if(!w)return;const te=Ds(()=>{z()}),_=qt(c);return _.addEventListener("resize",te),()=>{te.clear(),_.removeEventListener("resize",te)}},[c,w,z]);let W=T;T==="auto"&&!S.muiSupportAuto&&(W=void 0);const Y=m||(c?Ce(Kn(c)).body:void 0),K=(o=x==null?void 0:x.root)!=null?o:sm,X=(a=x==null?void 0:x.paper)!=null?a:_i,J=Rt({elementType:X,externalSlotProps:O({},I,{style:C?I.style:O({},I.style,{opacity:0})}),additionalProps:{elevation:f,ref:V},ownerState:U,className:Se(j.paper,I==null?void 0:I.className)}),Q=Rt({elementType:K,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:R,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Y,open:w},ownerState:U,className:Se(j.root,p)}),{slotProps:ae}=Q,B=fe(Q,om);return u.jsx(K,O({},B,!Gs(K)&&{slotProps:ae,disableScrollLock:D},{children:u.jsx(S,O({appear:!0,in:w,onEntering:G,onExited:H,timeout:W},L,{children:u.jsx(X,O({},J,{children:b}))}))}))});process.env.NODE_ENV!=="production"&&(Ii.propTypes={action:xo,anchorEl:Jt(i.oneOfType([ot,i.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Kn(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(` -`))}return null}),anchorOrigin:a.shape({horizontal:a.oneOfType([a.oneOf(["center","left","right"]),a.number]).isRequired,vertical:a.oneOfType([a.oneOf(["bottom","center","top"]),a.number]).isRequired}),anchorPosition:a.shape({left:a.number.isRequired,top:a.number.isRequired}),anchorReference:a.oneOf(["anchorEl","anchorPosition","none"]),children:a.node,classes:a.object,className:a.string,container:a.oneOfType([nt,a.func]),disableScrollLock:a.bool,elevation:xa,marginThreshold:a.number,onClose:a.func,open:a.bool.isRequired,PaperProps:a.shape({component:Yl}),slotProps:a.shape({paper:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({paper:a.elementType,root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),transformOrigin:a.shape({horizontal:a.oneOfType([a.oneOf(["center","left","right"]),a.number]).isRequired,vertical:a.oneOfType([a.oneOf(["bottom","center","top"]),a.number]).isRequired}),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.oneOf(["auto"]),a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object});const yh=di;function wh(e){return Je("MuiMenu",e)}pt("MuiMenu",["root","paper","list"]);const xh=["onEntering"],Eh=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Th={vertical:"top",horizontal:"right"},kh={vertical:"top",horizontal:"left"},Nh=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"],list:["list"]},wh,t)},Sh=Ce(yh,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ch=Ce(ui,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Oh=Ce(Xf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),fi=T.forwardRef(function(t,n){var r,o;const s=at({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:h,open:f,PaperProps:b={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:m}={},variant:x="selectedMenu",slots:I={},slotProps:w={}}=s,E=ue(s.TransitionProps,xh),g=ue(s,Eh),C=Rn(),P=C.direction==="rtl",V=S({},s,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:d,onEntering:m,PaperProps:b,transitionDuration:v,TransitionProps:E,variant:x}),D=Nh(V),F=i&&!u&&f,O=T.useRef(null),$=(Z,N)=>{O.current&&O.current.adjustStyleForScrollbar(Z,C),m&&m(Z,N)},_=Z=>{Z.key==="Tab"&&(Z.preventDefault(),h&&h(Z,"tabKeyDown"))};let L=-1;T.Children.map(l,(Z,N)=>{T.isValidElement(Z)&&(process.env.NODE_ENV!=="production"&&Wn.isFragment(Z)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` -`)),Z.props.disabled||(x==="selectedMenu"&&Z.props.selected||L===-1)&&(L=N))});const U=(r=I.paper)!=null?r:Ch,R=(o=w.paper)!=null?o:b,B=Nt({elementType:I.root,externalSlotProps:w.root,ownerState:V,className:[D.root,c]}),ee=Nt({elementType:U,externalSlotProps:R,ownerState:V,className:D.paper});return p.jsx(Sh,S({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?Th:kh,slots:{paper:U,root:I.root},slotProps:{root:B,paper:ee},open:f,ref:n,transitionDuration:v,TransitionProps:S({onEntering:$},E),ownerState:V},g,{classes:y,children:p.jsx(Oh,S({onKeyDown:_,actions:O,autoFocus:i&&(L===-1||u),autoFocusItem:F,variant:x},d,{className:Ne(D.list,d.className),children:l}))}))});process.env.NODE_ENV!=="production"&&(fi.propTypes={anchorEl:a.oneOfType([nt,a.func]),autoFocus:a.bool,children:a.node,classes:a.object,className:a.string,disableAutoFocusItem:a.bool,MenuListProps:a.object,onClose:a.func,open:a.bool.isRequired,PaperProps:a.object,PopoverClasses:a.object,slotProps:a.shape({paper:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({paper:a.elementType,root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),transitionDuration:a.oneOfType([a.oneOf(["auto"]),a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object,variant:a.oneOf(["menu","selectedMenu"])});const Ph=fi;function Rh({className:e,commandHandler:t,menuDefinition:n,children:r}){var u;const[o,s]=k.useState(void 0),i=k.useCallback(d=>{d.preventDefault(),s(o===void 0?{mouseX:d.clientX+2,mouseY:d.clientY-6}:void 0)},[o]),l=k.useCallback(()=>{s(void 0)},[]),c=k.useMemo(()=>{if(o!==void 0)return{top:o.mouseY,left:o.mouseX}},[o]);return(((u=n==null?void 0:n.items)==null?void 0:u.length)??0)===0||!r?r:p.jsxs("div",{className:`papi-context-menu-target ${e??""}`,onContextMenu:i,children:[r,p.jsx(Ph,{className:`papi-context-menu ${e??""}`,open:o!==void 0,onClose:l,anchorReference:"anchorPosition",anchorPosition:c,children:p.jsx(Co,{menuDefinition:n,commandHandler:t,onClick:l})})]})}const jh=Qa(p.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function Mh(e){return{preserveValue:!0,...e}}const er=(e,t,n={})=>{const r=k.useRef(t);r.current=t;const o=k.useRef(n);o.current=Mh(o.current);const[s,i]=k.useState(()=>r.current),[l,c]=k.useState(!0);return k.useEffect(()=>{let u=!0;return c(!!e),(async()=>{if(e){const d=await e();u&&(i(()=>d),c(!1))}})(),()=>{u=!1,o.current.preserveValue||i(()=>r.current)}},[e]),[s,l]};function hi({menuProvider:e,normalMenu:t,fullMenu:n,commandHandler:r,containerRef:o,className:s,ariaLabelPrefix:i,children:l}){const[c,u]=k.useState(!1),[d,h]=k.useState(!1),f=k.useCallback(()=>{c&&u(!1),h(!1)},[c]),b=k.useCallback(E=>{E.stopPropagation(),u(g=>{const C=!g;return C&&E.shiftKey?h(!0):C||h(!1),C})},[]),y=k.useCallback(E=>(f(),r(E)),[r,f]),[v,m]=k.useState({top:1,left:1});k.useEffect(()=>{if(c){const E=o==null?void 0:o.current;if(E){const g=E.getBoundingClientRect(),C=window.scrollY,P=window.scrollX,V=g.top+C+E.clientHeight,D=g.left+P;m({top:V,left:D})}}},[c,o]);const[x]=er(k.useCallback(async()=>(e==null?void 0:e(!1))??t,[e,t,c]),t),[I]=er(k.useCallback(async()=>(e==null?void 0:e(!0))??n??x,[e,n,x,c]),n??x),w=d&&I?I:x;return p.jsxs(p.Fragment,{children:[p.jsx(ve.IconButton,{sx:{paddingTop:0,paddingBottom:0},edge:"start",className:`papi-menuButton ${s??""}`,color:"inherit","aria-label":`${i??""} menu button`,onClick:b,children:l??p.jsx(jh,{})}),p.jsx(ve.Drawer,{className:`papi-menu-drawer ${s??""}`,anchor:"left",variant:"temporary",open:c,onClose:f,PaperProps:{className:"papi-menu-drawer-paper",style:{top:v.top,left:v.left}},children:w?p.jsx(ni,{className:s,id:`${i??""} main menu`,commandHandler:y,multiColumnMenu:w}):void 0})]})}function _h({id:e,label:t,isDisabled:n=!1,tooltip:r,isTooltipSuppressed:o=!1,adjustMarginToAlignToEdge:s=!1,size:i="medium",className:l,onClick:c,children:u}){return p.jsx(ve.IconButton,{id:e,disabled:n,edge:s,size:i,"aria-label":t,title:o?void 0:r??t,className:`papi-icon-button ${l??""}`,onClick:c,children:u})}const $h=Kr.cva("pr-text-sm pr-font-medium pr-leading-none peer-disabled:pr-cursor-not-allowed peer-disabled:pr-opacity-70"),mi=k.forwardRef(({className:e,...t},n)=>p.jsx(zs.Root,{ref:n,className:G($h(),e),...t}));mi.displayName=zs.Root.displayName;function gi({id:e,isDisabled:t=!1,hasError:n=!1,isFullWidth:r=!1,helperText:o,label:s,placeholder:i,isRequired:l=!1,className:c,defaultValue:u,value:d,onChange:h,onFocus:f,onBlur:b}){return p.jsxs("div",{className:G("pr-inline-grid pr-items-center pr-gap-1.5",{"pr-w-full":r}),children:[p.jsx(mi,{htmlFor:e,className:G({"pr-text-red-600":n,"pr-hidden":!s}),children:`${s}${l?"*":""}`}),p.jsx(Tn,{id:e,disabled:t,placeholder:i,required:l,className:G(c,{"pr-border-red-600":n}),defaultValue:u,value:d,onChange:h,onFocus:f,onBlur:b}),p.jsx("p",{className:G({"pr-hidden":!o}),children:o})]})}function Ih({onSearch:e,placeholder:t,isFullWidth:n}){const[r,o]=k.useState(""),s=i=>{o(i),e(i)};return p.jsx(gi,{isFullWidth:n,className:"search-bar-input",placeholder:t,value:r,onChange:i=>s(i.target.value)})}function Ah({id:e,isDisabled:t=!1,orientation:n="horizontal",min:r=0,max:o=100,step:s=1,showMarks:i=!1,defaultValue:l,value:c,valueLabelDisplay:u="off",className:d,onChange:h,onChangeCommitted:f}){return p.jsx(ve.Slider,{id:e,disabled:t,orientation:n,min:r,max:o,step:s,marks:i,defaultValue:l,value:c,valueLabelDisplay:u,className:`papi-slider ${n} ${d??""}`,onChange:h,onChangeCommitted:f})}function Dh({autoHideDuration:e=void 0,id:t,isOpen:n=!1,className:r,onClose:o,anchorOrigin:s={vertical:"bottom",horizontal:"left"},ContentProps:i,children:l}){const c={action:(i==null?void 0:i.action)||l,message:i==null?void 0:i.message,className:r};return p.jsx(ve.Snackbar,{autoHideDuration:e??void 0,open:n,onClose:o,anchorOrigin:s,id:t,ContentProps:c})}function Bh({id:e,isChecked:t,isDisabled:n=!1,hasError:r=!1,className:o,onChange:s}){return p.jsx(ve.Switch,{id:e,checked:t,disabled:n,className:`papi-switch ${r?"error":""} ${o??""}`,onChange:s})}function Lh({menuProvider:e,commandHandler:t,className:n,id:r,children:o}){const s=k.useRef(void 0);return p.jsx("div",{ref:s,style:{position:"relative"},children:p.jsx(ve.AppBar,{position:"static",id:r,children:p.jsxs(ve.Toolbar,{className:`papi-toolbar ${n??""}`,variant:"dense",children:[e?p.jsx(hi,{commandHandler:t,containerRef:s,menuProvider:e}):void 0,o?p.jsx("div",{className:"papi-toolbar-children",children:o}):void 0]})})})}const Vh=_e.Root,bi=k.forwardRef(({className:e,...t},n)=>p.jsx(_e.List,{ref:n,className:G("pr-inline-flex pr-h-10 pr-items-center pr-justify-center pr-rounded-md pr-bg-muted pr-p-1 pr-text-muted-foreground",e),...t}));bi.displayName=_e.List.displayName;const vi=k.forwardRef(({className:e,...t},n)=>p.jsx(_e.Trigger,{ref:n,className:G("pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-sm pr-px-3 pr-py-1.5 pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-all hover:pr-text-foreground focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50 data-[state=active]:pr-bg-background data-[state=active]:pr-text-foreground data-[state=active]:pr-shadow-sm",e),...t}));vi.displayName=_e.Trigger.displayName;const yi=k.forwardRef(({className:e,...t},n)=>p.jsx(_e.Content,{ref:n,className:G("pr-mt-2 pr-ring-offset-background focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2",e),...t}));yi.displayName=_e.Content.displayName;const wi=k.forwardRef(({className:e,...t},n)=>p.jsx(_e.Root,{orientation:"vertical",ref:n,className:G("pr-flex pr-gap-1 pr-rounded-md pr-text-muted-foreground",e),...t}));wi.displayName=_e.List.displayName;const xi=k.forwardRef(({className:e,...t},n)=>p.jsx(_e.List,{ref:n,className:G("pr-flex-fit pr-mlk-items-center pr-w-[124px] pr-justify-center pr-rounded-md pr-bg-muted pr-p-1 pr-text-muted-foreground",e),...t}));xi.displayName=_e.List.displayName;const Fh=k.forwardRef(({className:e,...t},n)=>p.jsx(_e.Trigger,{ref:n,...t,className:G("overflow-clip pr-inline-flex pr-w-[116px] pr-cursor-pointer pr-items-center pr-justify-center pr-break-words pr-rounded-sm pr-border-0 pr-bg-muted pr-px-3 pr-py-1.5 pr-text-sm pr-font-medium pr-text-inherit pr-ring-offset-background pr-transition-all hover:pr-text-foreground focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50 data-[state=active]:pr-bg-background data-[state=active]:pr-text-foreground data-[state=active]:pr-shadow-sm",e)})),Ei=k.forwardRef(({className:e,...t},n)=>p.jsx(_e.Content,{ref:n,className:G("mt-2 pr-ms-5 pr-flex-grow pr-text-foreground pr-ring-offset-background focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2",e),...t}));Ei.displayName=_e.Content.displayName;const Ln=e=>e==="asc"?p.jsx(fe.ArrowUpIcon,{className:"pr-ml-2 pr-h-4 pr-w-4"}):e==="desc"?p.jsx(fe.ArrowDownIcon,{className:"pr-ml-2 pr-h-4 pr-w-4"}):p.jsx(fe.ArrowUpDownIcon,{className:"pr-ml-2 pr-h-4 pr-w-4"}),zh=(e,t,n,r,o)=>[{accessorKey:"character",header:({column:s})=>p.jsxs(ke,{onClick:()=>s.toggleSorting(void 0),children:[e,Ln(s.getIsSorted())]})},{accessorKey:"unicodeValue",header:({column:s})=>p.jsxs(ke,{onClick:()=>s.toggleSorting(void 0),children:[t,Ln(s.getIsSorted())]}),cell:({row:s})=>s.getValue("character").charCodeAt(0).toString(16).toUpperCase().padStart(4,"0")},{accessorKey:"count",header:({column:s})=>p.jsxs(ke,{onClick:()=>s.toggleSorting(void 0),children:[n,Ln(s.getIsSorted())]})},{accessorKey:"status",header:({column:s,table:i})=>{const l=i.getSelectedRowModel().rows,c=[];return l.forEach(u=>{c.push(u.getValue("character"))}),p.jsxs("div",{children:[p.jsx("div",{className:"pr-flex pr-justify-center",children:p.jsxs(ke,{onClick:()=>s.toggleSorting(void 0),children:[r,Ln(s.getIsSorted())]})}),p.jsxs("div",{className:"pr-flex pr-justify-center",children:[p.jsx(ke,{children:p.jsx(fe.CircleCheckIcon,{className:"pr-h-5 pr-w-5",onClick:()=>{o(c,!0)}})}),p.jsx(ke,{children:p.jsx(fe.CircleXIcon,{className:"pr-h-5 pr-w-5",onClick:()=>{o(c,!1)}})}),p.jsx(ke,{children:p.jsx(fe.CircleHelpIcon,{className:"pr-h-5 pr-w-5",onClick:()=>{o(c,void 0)}})})]})]})},cell:({row:s})=>{const i=s.getValue("status");return i===!0?p.jsx(fe.CircleCheckIcon,{className:"pr-ml-2 pr-h-5 pr-w-5"}):i===!1?p.jsx(fe.CircleXIcon,{className:"pr-ml-2 pr-h-5 pr-w-5"}):p.jsx(fe.CircleHelpIcon,{className:"pr-ml-2 pr-h-5 pr-w-5"})}}];function Uh({tableData:e,onStatusChange:t,onSelectCharacter:n,localizedStrings:r}){const o=r["%webView_inventory_table_header_character%"],s=r["%webView_inventory_table_header_unicode_value%"],i=r["%webView_inventory_table_header_count%"],l=r["%webView_inventory_table_header_status%"],c=(u,d)=>{d.toggleAllRowsSelected(!1),u.toggleSelected(void 0),n(u.getValue("character"))};return p.jsx("div",{className:"pr-overflow-y-auto",children:p.jsx(sa,{columns:zh(o,s,i,l,t),data:e,onRowClickHandler:c})})}const Ls=(e,t,n)=>{if(!e||e===""||t==="")return[];const r=[],o=e.split(` -`);let s="0",i="0",l=0;return o.forEach(c=>{const u=c.split(/\s+/);c.startsWith("\\c")&&([,s]=u,i="0"),c.startsWith("\\v")&&([,i]=u,s==="0"&&(s=n.chapterNum.toString()));for(let d=0;dc(Ls(t,e,n)),[t,e,n]),p.jsxs(rr,{children:[p.jsx(or,{children:p.jsxs(xt,{children:[p.jsx(hn,{children:s}),p.jsx(hn,{children:i})]})}),p.jsx(sr,{children:l.map(u=>p.jsxs(xt,{onClick:()=>{r(u.reference)},children:[p.jsx(Dt,{children:`${de.bookNumberToEnglishName(u.reference.bookNum)} ${u.reference.chapterNum}:${u.reference.verseNum}`}),p.jsx(Dt,{children:u.snippet})]},u.key))})]})}const qh=async(e,t,n,r,o)=>{const s=[];return Vs.split(e,"").forEach(i=>{if(n!==""&&!i.includes(n))return;const l=s.find(c=>c.character===i);if(l)l.count+=1;else{let c;if(r.includes(i)&&(c=!0),o.includes(i)&&(c=!1),t==="all"||t==="approved"&&c===!0||t==="unapproved"&&c===!1||t==="unknown"&&c===void 0){const u={character:i,count:1,status:c};s.push(u)}}}),s};function Wh({scriptureReference:e,setScriptureReference:t,localizedStrings:n,projectId:r,getSetting:o,setSetting:s,getText:i}){const l=n["%webView_characterInventory_characters_all%"],c=n["%webView_characterInventory_characters_approved%"],u=n["%webView_characterInventory_characters_unapproved%"],d=n["%webView_characterInventory_characters_unknown%"],h=n["%webView_inventory_scope_book%"],f=n["%webView_inventory_scope_chapter%"],b=n["%webView_inventory_scope_verse%"],y=n["%webView_inventory_filter_text%"],[v,m]=k.useState([]),[x,I]=k.useState([]),[w,E]=k.useState(void 0),[g,C]=k.useState("book"),[P,V]=k.useState("all"),[D,F]=k.useState(""),[O,$]=k.useState([]),[_,L]=k.useState(""),U=(R,B)=>{$(ee=>{let Z=[];return R.forEach(N=>{Z=ee.map(j=>j.character===N&&j.status!==B?{...j,status:B}:j)}),m(N=>{let j=[...N];return R.forEach(z=>{B===!0?j.includes(z)||j.push(z):j=j.filter(X=>X!==z)}),s("validCharacters",r,j),j}),I(N=>{let j=[...N];return R.forEach(z=>{B===!1?j.includes(z)||j.push(z):j=j.filter(X=>X!==z)}),s("invalidCharacters",r,j),j}),Z})};return k.useEffect(()=>{(async()=>{try{m(await o("validCharacters",r)),I(await o("invalidCharacters",r))}catch{throw new Error("Failed to fetch characters from project settings")}})()},[r,o]),k.useEffect(()=>{(async()=>{try{const B=await i(r,e,g);E(B)}catch{throw new Error("Failed getting scripture text")}})()},[r,e,g,i]),k.useEffect(()=>{if(!w){$([]);return}(async()=>{try{$(await qh(w,P,D,v,x))}catch{throw new Error("Failed building table data")}})()},[v,x,w,P,D]),p.jsxs("div",{className:"pr-twp pr-font-sans",children:[p.jsxs("div",{className:"pr-flex",children:[p.jsxs(Hn,{onValueChange:R=>V(R),defaultValue:P,children:[p.jsx(mn,{children:p.jsx(qn,{placeholder:"Select filter"})}),p.jsxs(gn,{className:"pr-font-sans",children:[p.jsx(We,{value:"all",children:l}),p.jsx(We,{value:"approved",children:c}),p.jsx(We,{value:"unapproved",children:u}),p.jsx(We,{value:"unknown",children:d})]})]}),p.jsxs(Hn,{onValueChange:R=>C(R),defaultValue:g,children:[p.jsx(mn,{children:p.jsx(qn,{placeholder:"Select scope"})}),p.jsxs(gn,{className:"pr-font-sans",children:[p.jsx(We,{value:"book",children:h}),p.jsx(We,{value:"chapter",children:f}),p.jsx(We,{value:"verse",children:b})]})]}),p.jsx(Tn,{className:"pr-rounded-md pr-border",placeholder:y,value:D,onChange:R=>{F(R.target.value)}})]}),p.jsx("div",{className:`pr-overflow-y-auto pr-rounded-md pr-border ${_!==""&&"pr-max-h-96"}`,children:p.jsx(Uh,{tableData:O,onStatusChange:U,onSelectCharacter:R=>{L(R)},localizedStrings:n})}),_!==""&&p.jsx("div",{className:"pr-mt-4 pr-rounded-md pr-border",children:p.jsx(Hh,{selectedCharacter:_,text:w,scriptureReference:e,setScriptureReference:R=>t(R),localizedStrings:n})})]})}const Xh=(e,t)=>{k.useEffect(()=>{if(!e)return()=>{};const n=e(t);return()=>{n()}},[e,t])},Ir=()=>!1,Yh=(e,t)=>{const[n]=er(k.useCallback(async()=>{if(!e)return Ir;const r=await Promise.resolve(e(t));return async()=>r()},[t,e]),Ir,{preserveValue:!1});k.useEffect(()=>()=>{n!==Ir&&n()},[n])},Ti=k.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:G("pr-rounded-lg pr-border pr-bg-card pr-text-card-foreground pr-shadow-sm",e),...t}));Ti.displayName="Card";const ki=k.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:G("pr-flex pr-flex-col pr-space-y-1.5 pr-p-6",e),...t}));ki.displayName="CardHeader";const Ni=k.forwardRef(({className:e,...t},n)=>p.jsx("h3",{ref:n,className:G("pr-text-2xl pr-font-semibold pr-leading-none pr-tracking-tight",e),...t,children:t.children}));Ni.displayName="CardTitle";const Si=k.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:G("pr-text-sm pr-text-muted-foreground",e),...t}));Si.displayName="CardDescription";const Ci=k.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:G("pr-p-6 pr-pt-0",e),...t}));Ci.displayName="CardContent";const Oi=k.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:G("pr-flex pr-items-center pr-p-6 pr-pt-0",e),...t}));Oi.displayName="CardFooter";const Gh=Kr.cva("pr-relative pr-w-full pr-rounded-lg pr-border pr-p-4 [&>svg~*]:pr-pl-7 [&>svg+div]:pr-translate-y-[-3px] [&>svg]:pr-absolute [&>svg]:pr-left-4 [&>svg]:pr-top-4 [&>svg]:pr-text-foreground",{variants:{variant:{default:"pr-bg-background pr-text-foreground",destructive:"pr-border-destructive/50 pr-text-destructive dark:pr-border-destructive [&>svg]:pr-text-destructive"}},defaultVariants:{variant:"default"}}),Pi=k.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,role:"alert",className:G(Gh({variant:t}),e),...n}));Pi.displayName="Alert";const Ri=k.forwardRef(({className:e,...t},n)=>p.jsxs("h5",{ref:n,className:G("pr-mb-1 pr-font-medium pr-leading-none pr-tracking-tight",e),...t,children:[t.children," "]}));Ri.displayName="AlertTitle";const ji=k.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:G("pr-text-sm [&_p]:pr-leading-relaxed",e),...t}));ji.displayName="AlertDescription";const Mi=k.forwardRef(({className:e,...t},n)=>p.jsxs(on.Root,{ref:n,className:G("pr-relative pr-flex pr-w-full pr-touch-none pr-select-none pr-items-center",e),...t,children:[p.jsx(on.Track,{className:"pr-relative pr-h-2 pr-w-full pr-grow pr-overflow-hidden pr-rounded-full pr-bg-secondary",children:p.jsx(on.Range,{className:"pr-absolute pr-h-full pr-bg-primary"})}),p.jsx(on.Thumb,{className:"pr-block pr-h-5 pr-w-5 pr-rounded-full pr-border-2 pr-border-primary pr-bg-background pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50"})]}));Mi.displayName=on.Root.displayName;const _i=k.forwardRef(({className:e,...t},n)=>p.jsx(Dr.Root,{className:G("pr-peer pr-inline-flex pr-h-6 pr-w-11 pr-shrink-0 pr-cursor-pointer pr-items-center pr-rounded-full pr-border-2 pr-border-transparent pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 focus-visible:pr-ring-offset-background disabled:pr-cursor-not-allowed disabled:pr-opacity-50 data-[state=checked]:pr-bg-primary data-[state=unchecked]:pr-bg-input",e),...t,ref:n,children:p.jsx(Dr.Thumb,{className:G("pr-pointer-events-none pr-block pr-h-5 pr-w-5 pr-rounded-full pr-bg-background pr-shadow-lg pr-ring-0 pr-transition-transform data-[state=checked]:pr-translate-x-5 data-[state=unchecked]:pr-translate-x-0")})}));_i.displayName=Dr.Root.displayName;exports.Alert=Pi;exports.AlertDescription=ji;exports.AlertTitle=Ri;exports.BookChapterControl=Ol;exports.Button=ke;exports.Card=Ti;exports.CardContent=Ci;exports.CardDescription=Si;exports.CardFooter=Oi;exports.CardHeader=ki;exports.CardTitle=Ni;exports.ChapterRangeSelector=Ml;exports.CharacterInventory=Wh;exports.Checkbox=aa;exports.Checklist=_l;exports.ComboBox=Br;exports.ContextMenu=Rh;exports.DataTable=sa;exports.DropdownMenu=eo;exports.DropdownMenuCheckboxItem=no;exports.DropdownMenuContent=tr;exports.DropdownMenuGroup=fl;exports.DropdownMenuItem=to;exports.DropdownMenuLabel=En;exports.DropdownMenuPortal=hl;exports.DropdownMenuRadioGroup=gl;exports.DropdownMenuRadioItem=Zs;exports.DropdownMenuSeparator=nr;exports.DropdownMenuShortcut=Qs;exports.DropdownMenuSub=ml;exports.DropdownMenuSubContent=Js;exports.DropdownMenuSubTrigger=Ks;exports.DropdownMenuTrigger=Gs;exports.GridMenu=ni;exports.HamburgerMenuButton=hi;exports.IconButton=_h;exports.Input=Tn;exports.LabelPosition=yt;exports.MenuItem=So;exports.SearchBar=Ih;exports.Select=Hn;exports.SelectContent=gn;exports.SelectGroup=Pl;exports.SelectItem=We;exports.SelectLabel=ra;exports.SelectScrollDownButton=oo;exports.SelectScrollUpButton=ro;exports.SelectSeparator=oa;exports.SelectTrigger=mn;exports.SelectValue=qn;exports.ShadCnSlider=Mi;exports.ShadCnSwitch=_i;exports.Slider=Ah;exports.Snackbar=Dh;exports.Switch=Bh;exports.Table=rr;exports.TableBody=sr;exports.TableCaption=ta;exports.TableCell=Dt;exports.TableFooter=ea;exports.TableHead=hn;exports.TableHeader=or;exports.TableRow=xt;exports.Tabs=Vh;exports.TabsContent=yi;exports.TabsList=bi;exports.TabsTrigger=vi;exports.TextField=gi;exports.Toolbar=Lh;exports.VerticalTabs=wi;exports.VerticalTabsContent=Ei;exports.VerticalTabsList=xi;exports.VerticalTabsTrigger=Fh;exports.buttonVariants=na;exports.useEvent=Xh;exports.useEventAsync=Yh;exports.usePromise=er;function Kh(e,t="top"){if(!e||typeof document>"u")return;const n=document.head||document.querySelector("head"),r=n.querySelector(":first-child"),o=document.createElement("style");o.appendChild(document.createTextNode(e)),t==="top"&&r?n.insertBefore(o,r):n.appendChild(o)}Kh(`/* +`))}return null}),anchorOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),anchorPosition:i.shape({left:i.number.isRequired,top:i.number.isRequired}),anchorReference:i.oneOf(["anchorEl","anchorPosition","none"]),children:i.node,classes:i.object,className:i.string,container:i.oneOfType([ot,i.func]),disableScrollLock:i.bool,elevation:Hs,marginThreshold:i.number,onClose:i.func,open:i.bool.isRequired,PaperProps:i.shape({component:Ac}),slotProps:i.shape({paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({paper:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transformOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});const im=Ii;function lm(e){return Ze("MuiMenu",e)}ht("MuiMenu",["root","paper","list"]);const cm=["onEntering"],pm=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],um={vertical:"top",horizontal:"right"},dm={vertical:"top",horizontal:"left"},fm=e=>{const{classes:t}=e;return it({root:["root"],paper:["paper"],list:["list"]},lm,t)},hm=Oe(im,{shouldForwardProp:e=>hi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mm=Oe(_i,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gm=Oe(Ih,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ai=k.forwardRef(function(t,n){var r,o;const a=lt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:l,className:c,disableAutoFocusItem:d=!1,MenuListProps:h={},onClose:v,open:b,PaperProps:p={},PopoverClasses:m,transitionDuration:f="auto",TransitionProps:{onEntering:g}={},variant:w="selectedMenu",slots:P={},slotProps:x={}}=a,E=fe(a.TransitionProps,cm),y=fe(a,pm),S=Dn(),T=S.direction==="rtl",M=O({},a,{autoFocus:s,disableAutoFocusItem:d,MenuListProps:h,onEntering:g,PaperProps:p,transitionDuration:f,TransitionProps:E,variant:w}),D=fm(M),L=s&&!d&&b,R=k.useRef(null),I=(Z,C)=>{R.current&&R.current.adjustStyleForScrollbar(Z,S),g&&g(Z,C)},A=Z=>{Z.key==="Tab"&&(Z.preventDefault(),v&&v(Z,"tabKeyDown"))};let V=-1;k.Children.map(l,(Z,C)=>{k.isValidElement(Z)&&(process.env.NODE_ENV!=="production"&&er.isFragment(Z)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` +`)),Z.props.disabled||(w==="selectedMenu"&&Z.props.selected||V===-1)&&(V=C))});const U=(r=P.paper)!=null?r:mm,j=(o=x.paper)!=null?o:p,F=Rt({elementType:P.root,externalSlotProps:x.root,ownerState:M,className:[D.root,c]}),ee=Rt({elementType:U,externalSlotProps:j,ownerState:M,className:D.paper});return u.jsx(hm,O({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?um:dm,slots:{paper:U,root:P.root},slotProps:{root:F,paper:ee},open:b,ref:n,transitionDuration:f,TransitionProps:O({onEntering:I},E),ownerState:M},y,{classes:m,children:u.jsx(gm,O({onKeyDown:A,actions:R,autoFocus:s&&(V===-1||d),autoFocusItem:L,variant:w},h,{className:Se(D.list,h.className),children:l}))}))});process.env.NODE_ENV!=="production"&&(Ai.propTypes={anchorEl:i.oneOfType([ot,i.func]),autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,disableAutoFocusItem:i.bool,MenuListProps:i.object,onClose:i.func,open:i.bool.isRequired,PaperProps:i.object,PopoverClasses:i.object,slotProps:i.shape({paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({paper:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object,variant:i.oneOf(["menu","selectedMenu"])});const bm=Ai;function vm({className:e,commandHandler:t,menuDefinition:n,children:r}){var d;const[o,a]=N.useState(void 0),s=N.useCallback(h=>{h.preventDefault(),a(o===void 0?{mouseX:h.clientX+2,mouseY:h.clientY-6}:void 0)},[o]),l=N.useCallback(()=>{a(void 0)},[]),c=N.useMemo(()=>{if(o!==void 0)return{top:o.mouseY,left:o.mouseX}},[o]);return(((d=n==null?void 0:n.items)==null?void 0:d.length)??0)===0||!r?r:u.jsxs("div",{className:`papi-context-menu-target ${e??""}`,onContextMenu:s,children:[r,u.jsx(bm,{className:`papi-context-menu ${e??""}`,open:o!==void 0,onClose:l,anchorReference:"anchorPosition",anchorPosition:c,children:u.jsx(Vo,{menuDefinition:n,commandHandler:t,onClick:l})})]})}const ym=Ei(u.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function wm(e){return{preserveValue:!0,...e}}const lr=(e,t,n={})=>{const r=N.useRef(t);r.current=t;const o=N.useRef(n);o.current=wm(o.current);const[a,s]=N.useState(()=>r.current),[l,c]=N.useState(!0);return N.useEffect(()=>{let d=!0;return c(!!e),(async()=>{if(e){const h=await e();d&&(s(()=>h),c(!1))}})(),()=>{d=!1,o.current.preserveValue||s(()=>r.current)}},[e]),[a,l]};function Di({menuProvider:e,normalMenu:t,fullMenu:n,commandHandler:r,containerRef:o,className:a,ariaLabelPrefix:s,children:l}){const[c,d]=N.useState(!1),[h,v]=N.useState(!1),b=N.useCallback(()=>{c&&d(!1),v(!1)},[c]),p=N.useCallback(E=>{E.stopPropagation(),d(y=>{const S=!y;return S&&E.shiftKey?v(!0):S||v(!1),S})},[]),m=N.useCallback(E=>(b(),r(E)),[r,b]),[f,g]=N.useState({top:1,left:1});N.useEffect(()=>{if(c){const E=o==null?void 0:o.current;if(E){const y=E.getBoundingClientRect(),S=window.scrollY,T=window.scrollX,M=y.top+S+E.clientHeight,D=y.left+T;g({top:M,left:D})}}},[c,o]);const[w]=lr(N.useCallback(async()=>(e==null?void 0:e(!1))??t,[e,t,c]),t),[P]=lr(N.useCallback(async()=>(e==null?void 0:e(!0))??n??w,[e,n,w,c]),n??w),x=h&&P?P:w;return u.jsxs(u.Fragment,{children:[u.jsx(ye.IconButton,{sx:{paddingTop:0,paddingBottom:0},edge:"start",className:`papi-menuButton ${a??""}`,color:"inherit","aria-label":`${s??""} menu button`,onClick:p,children:l??u.jsx(ym,{})}),u.jsx(ye.Drawer,{className:`papi-menu-drawer ${a??""}`,anchor:"left",variant:"temporary",open:c,onClose:b,PaperProps:{className:"papi-menu-drawer-paper",style:{top:f.top,left:f.left}},children:x?u.jsx(Ni,{className:a,id:`${s??""} main menu`,commandHandler:m,multiColumnMenu:x}):void 0})]})}function xm({id:e,label:t,isDisabled:n=!1,tooltip:r,isTooltipSuppressed:o=!1,adjustMarginToAlignToEdge:a=!1,size:s="medium",className:l,onClick:c,children:d}){return u.jsx(ye.IconButton,{id:e,disabled:n,edge:a,size:s,"aria-label":t,title:o?void 0:r??t,className:`papi-icon-button ${l??""}`,onClick:c,children:d})}const Em=po.cva("pr-text-sm pr-font-medium pr-leading-none peer-disabled:pr-cursor-not-allowed peer-disabled:pr-opacity-70"),Bi=N.forwardRef(({className:e,...t},n)=>u.jsx(us.Root,{ref:n,className:q(Em(),e),...t}));Bi.displayName=us.Root.displayName;function Li({id:e,isDisabled:t=!1,hasError:n=!1,isFullWidth:r=!1,helperText:o,label:a,placeholder:s,isRequired:l=!1,className:c,defaultValue:d,value:h,onChange:v,onFocus:b,onBlur:p}){return u.jsxs("div",{className:q("pr-inline-grid pr-items-center pr-gap-1.5",{"pr-w-full":r}),children:[u.jsx(Bi,{htmlFor:e,className:q({"pr-text-red-600":n,"pr-hidden":!a}),children:`${a}${l?"*":""}`}),u.jsx(Rn,{id:e,disabled:t,placeholder:s,required:l,className:q(c,{"pr-border-red-600":n}),defaultValue:d,value:h,onChange:v,onFocus:b,onBlur:p}),u.jsx("p",{className:q({"pr-hidden":!o}),children:o})]})}function km({onSearch:e,placeholder:t,isFullWidth:n}){const[r,o]=N.useState(""),a=s=>{o(s),e(s)};return u.jsx(Li,{isFullWidth:n,className:"search-bar-input",placeholder:t,value:r,onChange:s=>a(s.target.value)})}function Tm({id:e,isDisabled:t=!1,orientation:n="horizontal",min:r=0,max:o=100,step:a=1,showMarks:s=!1,defaultValue:l,value:c,valueLabelDisplay:d="off",className:h,onChange:v,onChangeCommitted:b}){return u.jsx(ye.Slider,{id:e,disabled:t,orientation:n,min:r,max:o,step:a,marks:s,defaultValue:l,value:c,valueLabelDisplay:d,className:`papi-slider ${n} ${h??""}`,onChange:v,onChangeCommitted:b})}function Nm({autoHideDuration:e=void 0,id:t,isOpen:n=!1,className:r,onClose:o,anchorOrigin:a={vertical:"bottom",horizontal:"left"},ContentProps:s,children:l}){const c={action:(s==null?void 0:s.action)||l,message:s==null?void 0:s.message,className:r};return u.jsx(ye.Snackbar,{autoHideDuration:e??void 0,open:n,onClose:o,anchorOrigin:a,id:t,ContentProps:c})}function Sm({id:e,isChecked:t,isDisabled:n=!1,hasError:r=!1,className:o,onChange:a}){return u.jsx(ye.Switch,{id:e,checked:t,disabled:n,className:`papi-switch ${r?"error":""} ${o??""}`,onChange:a})}function Cm({menuProvider:e,commandHandler:t,className:n,id:r,children:o}){const a=N.useRef(void 0);return u.jsx("div",{ref:a,style:{position:"relative"},children:u.jsx(ye.AppBar,{position:"static",id:r,children:u.jsxs(ye.Toolbar,{className:`papi-toolbar ${n??""}`,variant:"dense",children:[e?u.jsx(Di,{commandHandler:t,containerRef:a,menuProvider:e}):void 0,o?u.jsx("div",{className:"papi-toolbar-children",children:o}):void 0]})})})}const Om=_e.Root,Fi=N.forwardRef(({className:e,...t},n)=>u.jsx(_e.List,{ref:n,className:q("pr-inline-flex pr-h-10 pr-items-center pr-justify-center pr-rounded-md pr-bg-muted pr-p-1 pr-text-muted-foreground",e),...t}));Fi.displayName=_e.List.displayName;const Vi=N.forwardRef(({className:e,...t},n)=>u.jsx(_e.Trigger,{ref:n,className:q("pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-sm pr-px-3 pr-py-1.5 pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-all hover:pr-text-foreground focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50 data-[state=active]:pr-bg-background data-[state=active]:pr-text-foreground data-[state=active]:pr-shadow-sm",e),...t}));Vi.displayName=_e.Trigger.displayName;const zi=N.forwardRef(({className:e,...t},n)=>u.jsx(_e.Content,{ref:n,className:q("pr-mt-2 pr-ring-offset-background focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2",e),...t}));zi.displayName=_e.Content.displayName;const Ui=N.forwardRef(({className:e,...t},n)=>u.jsx(_e.Root,{orientation:"vertical",ref:n,className:q("pr-flex pr-gap-1 pr-rounded-md pr-text-muted-foreground",e),...t}));Ui.displayName=_e.List.displayName;const Hi=N.forwardRef(({className:e,...t},n)=>u.jsx(_e.List,{ref:n,className:q("pr-flex-fit pr-mlk-items-center pr-w-[124px] pr-justify-center pr-rounded-md pr-bg-muted pr-p-1 pr-text-muted-foreground",e),...t}));Hi.displayName=_e.List.displayName;const Pm=N.forwardRef(({className:e,...t},n)=>u.jsx(_e.Trigger,{ref:n,...t,className:q("overflow-clip pr-inline-flex pr-w-[116px] pr-cursor-pointer pr-items-center pr-justify-center pr-break-words pr-rounded-sm pr-border-0 pr-bg-muted pr-px-3 pr-py-1.5 pr-text-sm pr-font-medium pr-text-inherit pr-ring-offset-background pr-transition-all hover:pr-text-foreground focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50 data-[state=active]:pr-bg-background data-[state=active]:pr-text-foreground data-[state=active]:pr-shadow-sm",e)})),qi=N.forwardRef(({className:e,...t},n)=>u.jsx(_e.Content,{ref:n,className:q("mt-2 pr-ms-5 pr-flex-grow pr-text-foreground pr-ring-offset-background focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2",e),...t}));qi.displayName=_e.Content.displayName;const Wn=e=>e==="asc"?u.jsx(de.ArrowUpIcon,{className:"pr-ml-2 pr-h-4 pr-w-4"}):e==="desc"?u.jsx(de.ArrowDownIcon,{className:"pr-ml-2 pr-h-4 pr-w-4"}):u.jsx(de.ArrowUpDownIcon,{className:"pr-ml-2 pr-h-4 pr-w-4"}),Rm=(e,t,n,r,o)=>[{accessorKey:"character",header:({column:a})=>u.jsxs(Te,{onClick:()=>a.toggleSorting(void 0),children:[e,Wn(a.getIsSorted())]})},{accessorKey:"unicodeValue",header:({column:a})=>u.jsxs(Te,{onClick:()=>a.toggleSorting(void 0),children:[t,Wn(a.getIsSorted())]}),cell:({row:a})=>a.getValue("character").charCodeAt(0).toString(16).toUpperCase().padStart(4,"0")},{accessorKey:"count",header:({column:a})=>u.jsxs(Te,{onClick:()=>a.toggleSorting(void 0),children:[n,Wn(a.getIsSorted())]})},{accessorKey:"status",header:({column:a,table:s})=>{const l=s.getSelectedRowModel().rows,c=[];return l.forEach(d=>{c.push(d.getValue("character"))}),u.jsxs("div",{children:[u.jsx("div",{className:"pr-flex pr-justify-center",children:u.jsxs(Te,{onClick:()=>a.toggleSorting(void 0),children:[r,Wn(a.getIsSorted())]})}),u.jsxs("div",{className:"pr-flex pr-justify-center",children:[u.jsx(Te,{children:u.jsx(de.CircleCheckIcon,{className:"pr-h-5 pr-w-5",onClick:()=>{o(c,!0)}})}),u.jsx(Te,{children:u.jsx(de.CircleXIcon,{className:"pr-h-5 pr-w-5",onClick:()=>{o(c,!1)}})}),u.jsx(Te,{children:u.jsx(de.CircleHelpIcon,{className:"pr-h-5 pr-w-5",onClick:()=>{o(c,void 0)}})})]})]})},cell:({row:a})=>{const s=a.getValue("status");return s===!0?u.jsx(de.CircleCheckIcon,{className:"pr-ml-2 pr-h-5 pr-w-5"}):s===!1?u.jsx(de.CircleXIcon,{className:"pr-ml-2 pr-h-5 pr-w-5"}):u.jsx(de.CircleHelpIcon,{className:"pr-ml-2 pr-h-5 pr-w-5"})}}];function jm({tableData:e,onStatusChange:t,onSelectCharacter:n,localizedStrings:r}){const o=r["%webView_inventory_table_header_character%"],a=r["%webView_inventory_table_header_unicode_value%"],s=r["%webView_inventory_table_header_count%"],l=r["%webView_inventory_table_header_status%"],c=(d,h)=>{h.toggleAllRowsSelected(!1),d.toggleSelected(void 0),n(d.getValue("character"))};return u.jsx("div",{className:"pr-overflow-y-auto",children:u.jsx(Os,{columns:Rm(o,a,s,l,t),data:e,onRowClickHandler:c})})}const ts=(e,t,n)=>{if(!e||e===""||t==="")return[];const r=[],o=e.split(` +`);let a="0",s="0",l=0;return o.forEach(c=>{const d=c.split(/\s+/);c.startsWith("\\c")&&([,a]=d,s="0"),c.startsWith("\\v")&&([,s]=d,a==="0"&&(a=n.chapterNum.toString()));for(let h=0;hc(ts(t,e,n)),[t,e,n]),u.jsxs(ur,{children:[u.jsx(dr,{children:u.jsxs(St,{children:[u.jsx(xn,{children:a}),u.jsx(xn,{children:s})]})}),u.jsx(fr,{children:l.map(d=>u.jsxs(St,{onClick:()=>{r(d.reference)},children:[u.jsx(Ut,{children:`${he.bookNumberToEnglishName(d.reference.bookNum)} ${d.reference.chapterNum}:${d.reference.verseNum}`}),u.jsx(Ut,{children:d.snippet})]},d.key))})]})}const Mm=async(e,t,n,r,o)=>{const a=[];return cs.split(e,"").forEach(s=>{if(n!==""&&!s.includes(n))return;const l=a.find(c=>c.character===s);if(l)l.count+=1;else{let c;if(r.includes(s)&&(c=!0),o.includes(s)&&(c=!1),t==="all"||t==="approved"&&c===!0||t==="unapproved"&&c===!1||t==="unknown"&&c===void 0){const d={character:s,count:1,status:c};a.push(d)}}}),a};function _m({scriptureReference:e,setScriptureReference:t,localizedStrings:n,projectId:r,getSetting:o,setSetting:a,getText:s}){const l=n["%webView_characterInventory_characters_all%"],c=n["%webView_characterInventory_characters_approved%"],d=n["%webView_characterInventory_characters_unapproved%"],h=n["%webView_characterInventory_characters_unknown%"],v=n["%webView_inventory_scope_book%"],b=n["%webView_inventory_scope_chapter%"],p=n["%webView_inventory_scope_verse%"],m=n["%webView_inventory_filter_text%"],[f,g]=N.useState([]),[w,P]=N.useState([]),[x,E]=N.useState(void 0),[y,S]=N.useState("book"),[T,M]=N.useState("all"),[D,L]=N.useState(""),[R,I]=N.useState([]),[A,V]=N.useState(""),U=(j,F)=>{I(ee=>{let Z=[];return j.forEach(C=>{Z=ee.map($=>$.character===C&&$.status!==F?{...$,status:F}:$)}),g(C=>{let $=[...C];return j.forEach(z=>{F===!0?$.includes(z)||$.push(z):$=$.filter(G=>G!==z)}),a("validCharacters",r,$),$}),P(C=>{let $=[...C];return j.forEach(z=>{F===!1?$.includes(z)||$.push(z):$=$.filter(G=>G!==z)}),a("invalidCharacters",r,$),$}),Z})};return N.useEffect(()=>{(async()=>{try{g(await o("validCharacters",r)),P(await o("invalidCharacters",r))}catch{throw new Error("Failed to fetch characters from project settings")}})()},[r,o]),N.useEffect(()=>{(async()=>{try{const F=await s(r,e,y);E(F)}catch{throw new Error("Failed getting scripture text")}})()},[r,e,y,s]),N.useEffect(()=>{if(!x){I([]);return}(async()=>{try{I(await Mm(x,T,D,f,w))}catch{throw new Error("Failed building table data")}})()},[f,w,x,T,D]),u.jsxs("div",{className:"pr-twp",children:[u.jsxs("div",{className:"pr-flex",children:[u.jsxs(Zn,{onValueChange:j=>M(j),defaultValue:T,children:[u.jsx(En,{children:u.jsx(Qn,{placeholder:"Select filter"})}),u.jsxs(kn,{children:[u.jsx(Xe,{value:"all",children:l}),u.jsx(Xe,{value:"approved",children:c}),u.jsx(Xe,{value:"unapproved",children:d}),u.jsx(Xe,{value:"unknown",children:h})]})]}),u.jsxs(Zn,{onValueChange:j=>S(j),defaultValue:y,children:[u.jsx(En,{children:u.jsx(Qn,{placeholder:"Select scope"})}),u.jsxs(kn,{children:[u.jsx(Xe,{value:"book",children:v}),u.jsx(Xe,{value:"chapter",children:b}),u.jsx(Xe,{value:"verse",children:p})]})]}),u.jsx(Rn,{className:"pr-rounded-md pr-border",placeholder:m,value:D,onChange:j=>{L(j.target.value)}})]}),u.jsx("div",{className:`pr-overflow-y-auto pr-rounded-md pr-border ${A!==""&&"pr-max-h-96"}`,children:u.jsx(jm,{tableData:R,onStatusChange:U,onSelectCharacter:j=>{V(j)},localizedStrings:n})}),A!==""&&u.jsx("div",{className:"pr-mt-4 pr-rounded-md pr-border",children:u.jsx($m,{selectedCharacter:A,text:x,scriptureReference:e,setScriptureReference:j=>t(j),localizedStrings:n})})]})}function Im({isDownloading:e,handleClick:t,buttonText:n}){return u.jsx(Te,{className:q("pr-h-8 pr-rounded-md pr-text-white pr-transition pr-duration-300 pr-ease-in-out",{"pr-cursor-not-allowed pr-bg-blue-700":e,"pr-bg-blue-600":!e,"pr-bg-white pr-text-blue-600":!n,"pr-w-20":n}),onClick:t,children:e?u.jsx(de.LoaderCircle,{size:15,className:"pr-animate-spin"}):u.jsxs(u.Fragment,{children:[u.jsx(de.Download,{size:25,className:"pr-h-4 pr-w-4"}),n]})})}function Am({isRemoving:e,handleClick:t}){return u.jsx(Te,{className:q("pr-h-8 pr-rounded-md pr-bg-gray-300 pr-text-black pr-transition pr-duration-300 pr-ease-in-out hover:pr-text-white",{"pr-cursor-not-allowed pr-bg-gray-400":e}),onClick:t,children:e?u.jsxs(u.Fragment,{children:[u.jsx(de.LoaderCircle,{size:15,className:"pr-mr-1 pr-animate-spin pr-text-black"}),"Removing..."]}):"Remove"})}function Dm({isUpdating:e,handleClick:t}){return u.jsx(Te,{className:q("pr-h-8 pr-rounded-md pr-bg-blue-600 pr-px-4 pr-text-white pr-transition pr-duration-300 pr-ease-in-out hover:pr-text-white",{"pr-cursor-not-allowed pr-bg-blue-700":e}),onClick:t,children:e?u.jsxs(u.Fragment,{children:[u.jsx(de.LoaderCircle,{size:15,className:"pr-mr-1 pr-animate-spin pr-text-white"}),"Updating..."]}):"Update"})}function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),rs={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Lm=["style","script"],Fm=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Vm=/mailto:/i,zm=/\n{2,}$/,Wi=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,Um=/^ *> ?/gm,Hm=/^ {2,}\n/,qm=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Xi=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Gi=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,W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?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,yg=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,wg=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,xg=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Eg=/^\\([^0-9A-Za-z\s])/,kg=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Tg=/^\n+/,Ng=/^([ \t]*)/,Sg=/\\([^\\])/g,os=/ *\n+$/,Cg=/(?:^|\n)( *)$/,zo="(?:\\d+\\.)",Uo="(?:[*+-])";function el(e){return"( *)("+(e===1?zo:Uo)+") +"}const tl=el(1),nl=el(2);function rl(e){return new RegExp("^"+(e===1?tl:nl))}const Og=rl(1),Pg=rl(2);function ol(e){return new RegExp("^"+(e===1?tl:nl)+"[^\\n]*(?:\\n(?!\\1"+(e===1?zo:Uo)+" )[^\\n]*)*(\\n|$)","gm")}const al=ol(1),sl=ol(2);function il(e){const t=e===1?zo:Uo;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const ll=il(1),cl=il(2);function as(e,t){const n=t===1,r=n?ll:cl,o=n?al:sl,a=n?Og:Pg;return{t(s,l,c){const d=Cg.exec(c);return d&&(l.o||!l._&&!l.u)?r.exec(s=d[1]+s):null},i:oe.HIGH,l(s,l,c){const d=n?+s[2]:void 0,h=s[0].replace(zm,` +`).match(o);let v=!1;return{p:h.map(function(b,p){const m=a.exec(b)[0].length,f=new RegExp("^ {1,"+m+"}","gm"),g=b.replace(f,"").replace(a,""),w=p===h.length-1,P=g.indexOf(` + +`)!==-1||w&&v;v=P;const x=c._,E=c.o;let y;c.o=!0,P?(c._=!1,y=g.replace(os,` + +`)):(c._=!0,y=g.replace(os,""));const S=l(y,c);return c._=x,c.o=E,S}),m:n,g:d}},h:(s,l,c)=>e(s.m?"ol":"ul",{key:c.k,start:s.g},s.p.map(function(d,h){return e("li",{key:h},l(d,c))}))}}const Rg=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,jg=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,pl=[Wi,Xi,Gi,Yi,Ji,Ki,Zi,Qi,al,ll,sl,cl],$g=[...pl,/^[^\n]+(?: \n|\n{2,})/,lo,co];function Mg(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function _g(e){return bg.test(e)?"right":mg.test(e)?"center":gg.test(e)?"left":null}function ss(e,t,n){const r=n.$;n.$=!0;const o=t(e.trim(),n);n.$=r;let a=[[]];return o.forEach(function(s,l){s.type==="tableSeparator"?l!==0&&l!==o.length-1&&a.push([]):(s.type!=="text"||o[l+1]!=null&&o[l+1].type!=="tableSeparator"||(s.v=s.v.replace(hg,"")),a[a.length-1].push(s))}),a}function Ig(e,t,n){n._=!0;const r=ss(e[1],t,n),o=e[2].replace(fg,"").split("|").map(_g),a=function(s,l,c){return s.trim().split(` +`).map(function(d){return ss(d,l,c)})}(e[3],t,n);return n._=!1,{S:o,A:a,L:r,type:"table"}}function is(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function pt(e){return function(t,n){return n._?e.exec(t):null}}function ut(e){return function(t,n){return n._||n.u?e.exec(t):null}}function nt(e){return function(t,n){return n._||n.u?null:e.exec(t)}}function pn(e){return function(t){return e.exec(t)}}function Ag(e,t,n){if(t._||t.u||n&&!n.endsWith(` +`))return null;let r="";e.split(` +`).every(a=>!pl.some(s=>s.test(a))&&(r+=a+` +`,a.trim()));const o=r.trimEnd();return o==""?null:[r,o]}function Ft(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function ls(e){return e.replace(Sg,"$1")}function Jn(e,t,n){const r=n._||!1,o=n.u||!1;n._=!0,n.u=!0;const a=e(t,n);return n._=r,n.u=o,a}function Dg(e,t,n){const r=n._||!1,o=n.u||!1;n._=!1,n.u=!0;const a=e(t,n);return n._=r,n.u=o,a}function Bg(e,t,n){return n._=!1,e(t,n)}const Ur=(e,t,n)=>({v:Jn(t,e[1],n)});function Hr(){return{}}function qr(){return null}function Lg(...e){return e.filter(Boolean).join(" ")}function Wr(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r||n}var oe;function Fg(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||Mg,t.namedCodesToUnicode=t.namedCodesToUnicode?Nt({},rs,t.namedCodesToUnicode):rs;const n=t.createElement||k.createElement;function r(p,m,...f){const g=Wr(t.overrides,`${p}.props`,{});return n(function(w,P){const x=Wr(P,w);return x?typeof x=="function"||typeof x=="object"&&"render"in x?x:Wr(P,`${w}.component`,w):w}(p,t.overrides),Nt({},m,g,{className:Lg(m==null?void 0:m.className,g.className)||void 0}),...f)}function o(p){let m=!1;t.forceInline?m=!0:t.forceBlock||(m=pg.test(p)===!1);const f=h(d(m?p:`${p.trimEnd().replace(Tg,"")} + +`,{_:m}));for(;typeof f[f.length-1]=="string"&&!f[f.length-1].trim();)f.pop();if(t.wrapper===null)return f;const g=t.wrapper||(m?"span":"div");let w;if(f.length>1||t.forceWrapper)w=f;else{if(f.length===1)return w=f[0],typeof w=="string"?r("span",{key:"outer"},w):w;w=null}return k.createElement(g,{key:"outer"},w)}function a(p){const m=p.match(Fm);return m?m.reduce(function(f,g,w){const P=g.indexOf("=");if(P!==-1){const x=function(T){return T.indexOf("-")!==-1&&T.match(eg)===null&&(T=T.replace(ag,function(M,D){return D.toUpperCase()})),T}(g.slice(0,P)).trim(),E=function(T){const M=T[0];return(M==='"'||M==="'")&&T.length>=2&&T[T.length-1]===M?T.slice(1,-1):T}(g.slice(P+1).trim()),y=ns[x]||x,S=f[y]=function(T,M){return T==="style"?M.split(/;\s?/).reduce(function(D,L){const R=L.slice(0,L.indexOf(":"));return D[R.replace(/(-[a-z])/g,I=>I[1].toUpperCase())]=L.slice(R.length+1).trim(),D},{}):T==="href"?Ft(M):(M.match(tg)&&(M=M.slice(1,M.length-1)),M==="true"||M!=="false"&&M)}(x,E);typeof S=="string"&&(lo.test(S)||co.test(S))&&(f[y]=k.cloneElement(o(S.trim()),{key:w}))}else g!=="style"&&(f[ns[g]||g]=!0);return f},{}):null}const s=[],l={},c={blockQuote:{t:nt(Wi),i:oe.HIGH,l:(p,m,f)=>({v:m(p[0].replace(Um,""),f)}),h:(p,m,f)=>r("blockquote",{key:f.k},m(p.v,f))},breakLine:{t:pn(Hm),i:oe.HIGH,l:Hr,h:(p,m,f)=>r("br",{key:f.k})},breakThematic:{t:nt(qm),i:oe.HIGH,l:Hr,h:(p,m,f)=>r("hr",{key:f.k})},codeBlock:{t:nt(Gi),i:oe.MAX,l:p=>({v:p[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(p,m,f)=>r("pre",{key:f.k},r("code",Nt({},p.O,{className:p.M?`lang-${p.M}`:""}),p.v))},codeFenced:{t:nt(Xi),i:oe.MAX,l:p=>({O:a(p[3]||""),v:p[4],M:p[2]||void 0,type:"codeBlock"})},codeInline:{t:ut(Wm),i:oe.LOW,l:p=>({v:p[2]}),h:(p,m,f)=>r("code",{key:f.k},p.v)},footnote:{t:nt(Ym),i:oe.MAX,l:p=>(s.push({I:p[2],j:p[1]}),{}),h:qr},footnoteReference:{t:pt(Km),i:oe.HIGH,l:p=>({v:p[1],B:`#${t.slugify(p[1])}`}),h:(p,m,f)=>r("a",{key:f.k,href:Ft(p.B)},r("sup",{key:f.k},p.v))},gfmTask:{t:pt(Zm),i:oe.HIGH,l:p=>({R:p[1].toLowerCase()==="x"}),h:(p,m,f)=>r("input",{checked:p.R,key:f.k,readOnly:!0,type:"checkbox"})},heading:{t:nt(t.enforceAtxHeadings?Ki:Yi),i:oe.HIGH,l:(p,m,f)=>({v:Jn(m,p[2],f),T:t.slugify(p[2]),C:p[1].length}),h:(p,m,f)=>r(`h${p.C}`,{id:p.T,key:f.k},m(p.v,f))},headingSetext:{t:nt(Ji),i:oe.MAX,l:(p,m,f)=>({v:Jn(m,p[1],f),C:p[2]==="="?1:2,type:"heading"})},htmlComment:{t:pn(Zi),i:oe.HIGH,l:()=>({}),h:qr},image:{t:ut(jg),i:oe.HIGH,l:p=>({D:p[1],B:ls(p[2]),F:p[3]}),h:(p,m,f)=>r("img",{key:f.k,alt:p.D||void 0,title:p.F||void 0,src:Ft(p.B)})},link:{t:pt(Rg),i:oe.LOW,l:(p,m,f)=>({v:Dg(m,p[1],f),B:ls(p[2]),F:p[3]}),h:(p,m,f)=>r("a",{key:f.k,href:Ft(p.B),title:p.F},m(p.v,f))},linkAngleBraceStyleDetector:{t:pt(og),i:oe.MAX,l:p=>({v:[{v:p[1],type:"text"}],B:p[1],type:"link"})},linkBareUrlDetector:{t:(p,m)=>m.N?null:pt(ng)(p,m),i:oe.MAX,l:p=>({v:[{v:p[1],type:"text"}],B:p[1],F:void 0,type:"link"})},linkMailtoDetector:{t:pt(rg),i:oe.MAX,l(p){let m=p[1],f=p[1];return Vm.test(f)||(f="mailto:"+f),{v:[{v:m.replace("mailto:",""),type:"text"}],B:f,type:"link"}}},orderedList:as(r,1),unorderedList:as(r,2),newlineCoalescer:{t:nt(Xm),i:oe.LOW,l:Hr,h:()=>` +`},paragraph:{t:Ag,i:oe.LOW,l:Ur,h:(p,m,f)=>r("p",{key:f.k},m(p.v,f))},ref:{t:pt(sg),i:oe.MAX,l:p=>(l[p[1]]={B:p[2],F:p[4]},{}),h:qr},refImage:{t:ut(ig),i:oe.MAX,l:p=>({D:p[1]||void 0,P:p[2]}),h:(p,m,f)=>r("img",{key:f.k,alt:p.D,src:Ft(l[p.P].B),title:l[p.P].F})},refLink:{t:pt(lg),i:oe.MAX,l:(p,m,f)=>({v:m(p[1],f),Z:m(p[0].replace(cg,"\\$1"),f),P:p[2]}),h:(p,m,f)=>l[p.P]?r("a",{key:f.k,href:Ft(l[p.P].B),title:l[p.P].F},m(p.v,f)):r("span",{key:f.k},m(p.Z,f))},table:{t:nt(Qi),i:oe.HIGH,l:Ig,h:(p,m,f)=>r("table",{key:f.k},r("thead",null,r("tr",null,p.L.map(function(g,w){return r("th",{key:w,style:is(p,w)},m(g,f))}))),r("tbody",null,p.A.map(function(g,w){return r("tr",{key:w},g.map(function(P,x){return r("td",{key:x,style:is(p,x)},m(P,f))}))})))},tableSeparator:{t:function(p,m){return m.$?(m._=!0,dg.exec(p)):null},i:oe.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:pn(kg),i:oe.MIN,l:p=>({v:p[0].replace(Qm,(m,f)=>t.namedCodesToUnicode[f]?t.namedCodesToUnicode[f]:m)}),h:p=>p.v},textBolded:{t:ut(vg),i:oe.MED,l:(p,m,f)=>({v:m(p[2],f)}),h:(p,m,f)=>r("strong",{key:f.k},m(p.v,f))},textEmphasized:{t:ut(yg),i:oe.LOW,l:(p,m,f)=>({v:m(p[2],f)}),h:(p,m,f)=>r("em",{key:f.k},m(p.v,f))},textEscaped:{t:ut(Eg),i:oe.HIGH,l:p=>({v:p[1],type:"text"})},textMarked:{t:ut(wg),i:oe.LOW,l:Ur,h:(p,m,f)=>r("mark",{key:f.k},m(p.v,f))},textStrikethroughed:{t:ut(xg),i:oe.LOW,l:Ur,h:(p,m,f)=>r("del",{key:f.k},m(p.v,f))}};t.disableParsingRawHTML!==!0&&(c.htmlBlock={t:pn(lo),i:oe.HIGH,l(p,m,f){const[,g]=p[3].match(Ng),w=new RegExp(`^${g}`,"gm"),P=p[3].replace(w,""),x=(E=P,$g.some(M=>M.test(E))?Bg:Jn);var E;const y=p[1].toLowerCase(),S=Lm.indexOf(y)!==-1;f.N=f.N||y==="a";const T=S?p[3]:x(m,P,f);return f.N=!1,{O:a(p[2]),v:T,G:S,H:S?y:p[1]}},h:(p,m,f)=>r(p.H,Nt({key:f.k},p.O),p.G?p.v:m(p.v,f))},c.htmlSelfClosing={t:pn(co),i:oe.HIGH,l:p=>({O:a(p[2]||""),H:p[1]}),h:(p,m,f)=>r(p.H,Nt({},p.O,{key:f.k}))});const d=function(p){let m=Object.keys(p);function f(g,w){let P=[],x="";for(;g;){let E=0;for(;E{let{children:t,options:n}=e,r=function(o,a){if(o==null)return{};var s,l,c={},d=Object.keys(o);for(l=0;l=0||(c[s]=o[s]);return c}(e,Bm);return k.cloneElement(Fg(t,n),r)};function zg({markdown:e}){return u.jsx("div",{className:"pr-prose",children:u.jsx(Vg,{children:e})})}const Ug=(e,t)=>{N.useEffect(()=>{if(!e)return()=>{};const n=e(t);return()=>{n()}},[e,t])},Xr=()=>!1,Hg=(e,t)=>{const[n]=lr(N.useCallback(async()=>{if(!e)return Xr;const r=await Promise.resolve(e(t));return async()=>r()},[t,e]),Xr,{preserveValue:!1});N.useEffect(()=>()=>{n!==Xr&&n()},[n])},ul=N.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:q("pr-rounded-lg pr-border pr-bg-card pr-text-card-foreground pr-shadow-sm",e),...t}));ul.displayName="Card";const dl=N.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:q("pr-flex pr-flex-col pr-space-y-1.5 pr-p-6",e),...t}));dl.displayName="CardHeader";const fl=N.forwardRef(({className:e,...t},n)=>u.jsx("h3",{ref:n,className:q("pr-text-2xl pr-font-semibold pr-leading-none pr-tracking-tight",e),...t,children:t.children}));fl.displayName="CardTitle";const hl=N.forwardRef(({className:e,...t},n)=>u.jsx("p",{ref:n,className:q("pr-text-sm pr-text-muted-foreground",e),...t}));hl.displayName="CardDescription";const ml=N.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:q("pr-p-6 pr-pt-0",e),...t}));ml.displayName="CardContent";const gl=N.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:q("pr-flex pr-items-center pr-p-6 pr-pt-0",e),...t}));gl.displayName="CardFooter";const qg=po.cva("pr-relative pr-w-full pr-rounded-lg pr-border pr-p-4 [&>svg~*]:pr-pl-7 [&>svg+div]:pr-translate-y-[-3px] [&>svg]:pr-absolute [&>svg]:pr-left-4 [&>svg]:pr-top-4 [&>svg]:pr-text-foreground",{variants:{variant:{default:"pr-bg-background pr-text-foreground",destructive:"pr-border-destructive/50 pr-text-destructive dark:pr-border-destructive [&>svg]:pr-text-destructive"}},defaultVariants:{variant:"default"}}),bl=N.forwardRef(({className:e,variant:t,...n},r)=>u.jsx("div",{ref:r,role:"alert",className:q(qg({variant:t}),e),...n}));bl.displayName="Alert";const vl=N.forwardRef(({className:e,...t},n)=>u.jsxs("h5",{ref:n,className:q("pr-mb-1 pr-font-medium pr-leading-none pr-tracking-tight",e),...t,children:[t.children," "]}));vl.displayName="AlertTitle";const yl=N.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:q("pr-text-sm [&_p]:pr-leading-relaxed",e),...t}));yl.displayName="AlertDescription";const wl=N.forwardRef(({className:e,...t},n)=>u.jsxs(dn.Root,{ref:n,className:q("pr-relative pr-flex pr-w-full pr-touch-none pr-select-none pr-items-center",e),...t,children:[u.jsx(dn.Track,{className:"pr-relative pr-h-2 pr-w-full pr-grow pr-overflow-hidden pr-rounded-full pr-bg-secondary",children:u.jsx(dn.Range,{className:"pr-absolute pr-h-full pr-bg-primary"})}),u.jsx(dn.Thumb,{className:"pr-block pr-h-5 pr-w-5 pr-rounded-full pr-border-2 pr-border-primary pr-bg-background pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50"})]}));wl.displayName=dn.Root.displayName;const xl=N.forwardRef(({className:e,...t},n)=>u.jsx(Yr.Root,{className:q("pr-peer pr-inline-flex pr-h-6 pr-w-11 pr-shrink-0 pr-cursor-pointer pr-items-center pr-rounded-full pr-border-2 pr-border-transparent pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 focus-visible:pr-ring-offset-background disabled:pr-cursor-not-allowed disabled:pr-opacity-50 data-[state=checked]:pr-bg-primary data-[state=unchecked]:pr-bg-input",e),...t,ref:n,children:u.jsx(Yr.Thumb,{className:q("pr-pointer-events-none pr-block pr-h-5 pr-w-5 pr-rounded-full pr-bg-background pr-shadow-lg pr-ring-0 pr-transition-transform data-[state=checked]:pr-translate-x-5 data-[state=unchecked]:pr-translate-x-0")})}));xl.displayName=Yr.Root.displayName;exports.Alert=bl;exports.AlertDescription=yl;exports.AlertTitle=vl;exports.BookChapterControl=gc;exports.Button=Te;exports.Card=ul;exports.CardContent=ml;exports.CardDescription=hl;exports.CardFooter=gl;exports.CardHeader=dl;exports.CardTitle=fl;exports.ChapterRangeSelector=wc;exports.CharacterInventory=_m;exports.Checkbox=Ps;exports.Checklist=xc;exports.ComboBox=Kr;exports.ContextMenu=vm;exports.DataTable=Os;exports.DownloadButton=Im;exports.DropdownMenu=mo;exports.DropdownMenuCheckboxItem=bo;exports.DropdownMenuContent=cr;exports.DropdownMenuGroup=tc;exports.DropdownMenuItem=go;exports.DropdownMenuLabel=Pn;exports.DropdownMenuPortal=nc;exports.DropdownMenuRadioGroup=oc;exports.DropdownMenuRadioItem=xs;exports.DropdownMenuSeparator=pr;exports.DropdownMenuShortcut=Es;exports.DropdownMenuSub=rc;exports.DropdownMenuSubContent=ws;exports.DropdownMenuSubTrigger=ys;exports.DropdownMenuTrigger=vs;exports.GridMenu=Ni;exports.HamburgerMenuButton=Di;exports.IconButton=xm;exports.Input=Rn;exports.LabelPosition=kt;exports.MarkdownRenderer=zg;exports.MenuItem=Fo;exports.RemoveButton=Am;exports.SearchBar=km;exports.Select=Zn;exports.SelectContent=kn;exports.SelectGroup=bc;exports.SelectItem=Xe;exports.SelectLabel=Ss;exports.SelectScrollDownButton=yo;exports.SelectScrollUpButton=vo;exports.SelectSeparator=Cs;exports.SelectTrigger=En;exports.SelectValue=Qn;exports.ShadCnSlider=wl;exports.ShadCnSwitch=xl;exports.Slider=Tm;exports.Snackbar=Nm;exports.Switch=Sm;exports.Table=ur;exports.TableBody=fr;exports.TableCaption=Ts;exports.TableCell=Ut;exports.TableFooter=ks;exports.TableHead=xn;exports.TableHeader=dr;exports.TableRow=St;exports.Tabs=Om;exports.TabsContent=zi;exports.TabsList=Fi;exports.TabsTrigger=Vi;exports.TextField=Li;exports.Toolbar=Cm;exports.UpdateButton=Dm;exports.VerticalTabs=Ui;exports.VerticalTabsContent=qi;exports.VerticalTabsList=Hi;exports.VerticalTabsTrigger=Pm;exports.buttonVariants=Ns;exports.useEvent=Ug;exports.useEventAsync=Hg;exports.usePromise=lr;function Wg(e,t="top"){if(!e||typeof document>"u")return;const n=document.head||document.querySelector("head"),r=n.querySelector(":first-child"),o=document.createElement("style");o.appendChild(document.createTextNode(e)),t==="top"&&r?n.insertBefore(o,r):n.appendChild(o)}Wg(`.check-item { + flex-wrap: wrap; + vertical-align: middle; +} + +.papi-checkbox { + display: block; +} +/* 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) */ @@ -464,6 +485,12 @@ video:where(.pr-twp,.pr-twp *) { src: url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap'); } + /* Adding the preflight selector (pr-twp) to components was not changing the font as desired. + So this piece of code adds pr-font-sans everywhere we include preflight. */ + .pr-twp { + font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; +} + :root { --background: 0 0% 100%; --foreground: 222.2 84% 4.9%; @@ -782,6 +809,10 @@ video:where(.pr-twp,.pr-twp *) { margin-top: 0.25rem; margin-bottom: 0.25rem; } +.pr-my-2 { + margin-top: 0.5rem; + margin-bottom: 0.5rem; +} .pr-my-4 { margin-top: 1rem; margin-bottom: 1rem; @@ -801,6 +832,9 @@ video:where(.pr-twp,.pr-twp *) { .pr-ml-auto { margin-left: auto; } +.pr-mr-1 { + margin-right: 0.25rem; +} .pr-mr-2 { margin-right: 0.5rem; } @@ -906,6 +940,9 @@ video:where(.pr-twp,.pr-twp *) { .pr-w-2 { width: 0.5rem; } +.pr-w-20 { + width: 5rem; +} .pr-w-3 { width: 0.75rem; } @@ -991,9 +1028,21 @@ video:where(.pr-twp,.pr-twp *) { .pr-transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +@keyframes pr-spin { + + to { + transform: rotate(360deg); + } +} +.pr-animate-spin { + animation: pr-spin 1s linear infinite; +} .pr-cursor-default { cursor: default; } +.pr-cursor-not-allowed { + cursor: not-allowed; +} .pr-cursor-pointer { cursor: pointer; } @@ -1195,6 +1244,14 @@ video:where(.pr-twp,.pr-twp *) { .pr-bg-background { background-color: hsl(var(--background)); } +.pr-bg-blue-600 { + --tw-bg-opacity: 1; + background-color: rgb(37 99 235 / var(--tw-bg-opacity)); +} +.pr-bg-blue-700 { + --tw-bg-opacity: 1; + background-color: rgb(29 78 216 / var(--tw-bg-opacity)); +} .pr-bg-border { background-color: hsl(var(--border)); } @@ -1210,6 +1267,17 @@ video:where(.pr-twp,.pr-twp *) { .pr-bg-destructive-foreground { background-color: hsl(var(--destructive-foreground)); } +.pr-bg-foreground { + background-color: hsl(var(--foreground)); +} +.pr-bg-gray-300 { + --tw-bg-opacity: 1; + background-color: rgb(209 213 219 / var(--tw-bg-opacity)); +} +.pr-bg-gray-400 { + --tw-bg-opacity: 1; + background-color: rgb(156 163 175 / var(--tw-bg-opacity)); +} .pr-bg-input { background-color: hsl(var(--input)); } @@ -1333,9 +1401,6 @@ video:where(.pr-twp,.pr-twp *) { .pr-align-middle { vertical-align: middle; } -.pr-font-sans { - font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; -} .pr-text-2xl { font-size: 1.5rem; line-height: 2rem; @@ -1387,6 +1452,10 @@ video:where(.pr-twp,.pr-twp *) { --tw-text-opacity: 1; color: rgb(120 53 15 / var(--tw-text-opacity)); } +.pr-text-black { + --tw-text-opacity: 1; + color: rgb(0 0 0 / var(--tw-text-opacity)); +} .pr-text-blue-600 { --tw-text-opacity: 1; color: rgb(37 99 235 / var(--tw-text-opacity)); @@ -1489,6 +1558,11 @@ video:where(.pr-twp,.pr-twp *) { .pr-ring-offset-background { --tw-ring-offset-color: hsl(var(--background)); } +.pr-transition { + transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + transition-duration: 150ms; +} .pr-transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); @@ -1504,6 +1578,12 @@ video:where(.pr-twp,.pr-twp *) { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; } +.pr-duration-300 { + transition-duration: 300ms; +} +.pr-ease-in-out { + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); +} @keyframes enter { from { @@ -1518,6 +1598,12 @@ video:where(.pr-twp,.pr-twp *) { transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0)); } } +.pr-duration-300 { + animation-duration: 300ms; +} +.pr-ease-in-out { + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); +} .file\\:pr-border-0::file-selector-button { border-width: 0px; } @@ -1555,6 +1641,10 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:pr-text-foreground:hover { color: hsl(var(--foreground)); } +.hover\\:pr-text-white:hover { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); +} .hover\\:pr-underline:hover { text-decoration-line: underline; } @@ -1801,89 +1891,90 @@ video:where(.pr-twp,.pr-twp *) { .\\[\\&_tr\\]\\:pr-border-b tr { border-bottom-width: 1px; } -.papi-snackbar { - font-family: Arial, Helvetica, sans-serif; -} - -.papi-snackbar.primary { - background: #1ea7fd; - color: white; -} - -.papi-snackbar.external { - background-color: lightsteelblue; - border-color: white; - border-style: dotted; - padding: 2%; - width: 30%; +.papi-combo-box { + background-color: transparent; } -.papi-snackbar.secondary { - background: transparent; - color: #333; +.papi-combo-box.fullwidth { + width: 100%; } -.papi-snackbar.alert { - background: lightcoral; +.papi-combo-box.error { + background-color: #f00; } -.papi-snackbar.paratext { - background: darkgreen; +.papi-combo-box.paratext { + background-color: darkgreen; color: greenyellow; } -.papi-snackbar.bright { - background: greenyellow; +.papi-combo-box.paratext.bright { + background-color: greenyellow; color: darkgreen; } -.papi-switch { - background-color: transparent; +.papi-multi-column-menu { + background-color: rgb(222, 222, 222); + display: flex; + flex-direction: column; + padding-left: 3px; + padding-right: 3px; } -.papi-switch.primary { - background-color: #1ea7fd; +.papi-menu-column { + font-size: 11pt; + font-weight: 600; + padding-bottom: 2px; } -.papi-switch.secondary { - background-color: #6fc8ff; +.papi-menu-column ul { + padding-top: 0; } -.papi-switch.error { - background-color: #f00; +.papi-menu-column-header { + background-color: rgb(181, 181, 181); + padding-left: 24px; + margin-top: 0; + margin-bottom: 0; } -.papi-switch.paratext { - background-color: darkgreen; - color: greenyellow; +.papi-multi-column-menu.paratext { + background-color: rgb(76, 106, 76); + color: rgb(214, 255, 152); } -.papi-switch.paratext.bright { - background-color: greenyellow; - color: darkgreen; +.papi-multi-column-menu.paratext.bright { + color: rgb(76, 106, 76); + background-color: rgb(214, 255, 152); } -.papi-toolbar { - background-color: #eee; - color: black; +.papi-context-menu-target { + white-space: nowrap; + cursor: context-menu; } -.papi-toolbar.paratext { - background-color: darkgreen; - color: greenyellow; +.papi-context-menu-target * { + white-space: normal; } -.papi-toolbar.paratext.bright { - background-color: greenyellow; - color: darkgreen; +.papi-context-menu-target:hover { + box-shadow: 0 0 10px rgba(0, 0, 0, 0.07); /* Faint shadowy background */ } -.papi-menu-drawer-paper { - height: fit-content !important; - position: absolute !important; +.papi-context-menu-target.paratext:hover { + box-shadow: 0 0 10px rgba(0, 100, 0, 0.07); /* Faint shadowy background */ } -.papi-toolbar-children { - padding: 10px; - position: relative; +.papi-context-menu-target.paratext.bright:hover { + box-shadow: 0 0 10px rgba(173, 255, 47, 0.07); /* Faint shadowy background */ +} + +.papi-context-menu.paratext ul { + background-color: rgb(76, 106, 76); + color: rgb(214, 255, 152); +} + +.papi-context-menu.paratext.bright ul { + color: rgb(76, 106, 76); + background-color: rgb(214, 255, 152); } .papi-icon-button { border: 0; @@ -1911,124 +2002,113 @@ video:where(.pr-twp,.pr-twp *) { background-color: greenyellow; color: darkgreen; } -.search-bar-paper { - display: flex; - align-items: center; +.papi-checkbox { + background-color: transparent; } -.search-button { - padding: 10px; -} -.papi-slider { - background-color: transparent; - color: #1ea7fd; +.papi-checkbox.error { + color: #f00; } -.papi-slider.vertical { - min-height: 200px; +.papi-checkbox.error:hover { + background-color: rgba(255, 0, 0, 0.2); } -.papi-slider.paratext { - background-color: darkgreen; +.papi-checkbox.paratext { color: greenyellow; } -.papi-slider.paratext.bright { - background-color: greenyellow; +.papi-checkbox-label.paratext { color: darkgreen; } -.check-item { - flex-wrap: wrap; - vertical-align: middle; -} -.papi-checkbox { - display: block; +.papi-checkbox.paratext:hover { + background-color: rgba(0, 100, 0, 0.3); } -.papi-multi-column-menu { - background-color: rgb(222, 222, 222); - display: flex; - flex-direction: column; - padding-left: 3px; - padding-right: 3px; + +.papi-checkbox.paratext.bright { + color: darkgreen; } -.papi-menu-column { - font-size: 11pt; - font-weight: 600; - padding-bottom: 2px; +.papi-checkbox-label.paratext.bright { + background-color: greenyellow; } -.papi-menu-column ul { - padding-top: 0; +.papi-checkbox.paratext.bright:hover { + background-color: rgba(173, 255, 47, 0.3); } -.papi-menu-column-header { - background-color: rgb(181, 181, 181); - padding-left: 24px; - margin-top: 0; - margin-bottom: 0; +.papi-checkbox.below, +.papi-checkbox.above { + text-align: center; +} +.search-bar-paper { + display: flex; + align-items: center; } -.papi-multi-column-menu.paratext { - background-color: rgb(76, 106, 76); - color: rgb(214, 255, 152); +.search-button { + padding: 10px; +} +.papi-snackbar { + font-family: Arial, Helvetica, sans-serif; } -.papi-multi-column-menu.paratext.bright { - color: rgb(76, 106, 76); - background-color: rgb(214, 255, 152); +.papi-snackbar.primary { + background: #1ea7fd; + color: white; } -.papi-combo-box { - background-color: transparent; + +.papi-snackbar.external { + background-color: lightsteelblue; + border-color: white; + border-style: dotted; + padding: 2%; + width: 30%; } -.papi-combo-box.fullwidth { - width: 100%; +.papi-snackbar.secondary { + background: transparent; + color: #333; } -.papi-combo-box.error { - background-color: #f00; +.papi-snackbar.alert { + background: lightcoral; } -.papi-combo-box.paratext { - background-color: darkgreen; +.papi-snackbar.paratext { + background: darkgreen; color: greenyellow; } -.papi-combo-box.paratext.bright { - background-color: greenyellow; +.papi-snackbar.bright { + background: greenyellow; color: darkgreen; } -.papi-context-menu-target { - white-space: nowrap; - cursor: context-menu; -} - -.papi-context-menu-target * { - white-space: normal; +.papi-switch { + background-color: transparent; } -.papi-context-menu-target:hover { - box-shadow: 0 0 10px rgba(0, 0, 0, 0.07); /* Faint shadowy background */ +.papi-switch.primary { + background-color: #1ea7fd; } -.papi-context-menu-target.paratext:hover { - box-shadow: 0 0 10px rgba(0, 100, 0, 0.07); /* Faint shadowy background */ +.papi-switch.secondary { + background-color: #6fc8ff; } -.papi-context-menu-target.paratext.bright:hover { - box-shadow: 0 0 10px rgba(173, 255, 47, 0.07); /* Faint shadowy background */ +.papi-switch.error { + background-color: #f00; } -.papi-context-menu.paratext ul { - background-color: rgb(76, 106, 76); - color: rgb(214, 255, 152); +.papi-switch.paratext { + background-color: darkgreen; + color: greenyellow; } -.papi-context-menu.paratext.bright ul { - color: rgb(76, 106, 76); - background-color: rgb(214, 255, 152); +.papi-switch.paratext.bright { + background-color: greenyellow; + color: darkgreen; } .papi-menu-item { background-color: transparent; @@ -2043,45 +2123,47 @@ video:where(.pr-twp,.pr-twp *) { max-width: 24px; max-height: 24px; } -.papi-checkbox { +.papi-slider { background-color: transparent; + color: #1ea7fd; } -.papi-checkbox.error { - color: #f00; -} - -.papi-checkbox.error:hover { - background-color: rgba(255, 0, 0, 0.2); +.papi-slider.vertical { + min-height: 200px; } -.papi-checkbox.paratext { +.papi-slider.paratext { + background-color: darkgreen; color: greenyellow; } -.papi-checkbox-label.paratext { +.papi-slider.paratext.bright { + background-color: greenyellow; color: darkgreen; } - -.papi-checkbox.paratext:hover { - background-color: rgba(0, 100, 0, 0.3); +.papi-toolbar { + background-color: #eee; + color: black; } -.papi-checkbox.paratext.bright { - color: darkgreen; +.papi-toolbar.paratext { + background-color: darkgreen; + color: greenyellow; } -.papi-checkbox-label.paratext.bright { +.papi-toolbar.paratext.bright { background-color: greenyellow; + color: darkgreen; } -.papi-checkbox.paratext.bright:hover { - background-color: rgba(173, 255, 47, 0.3); +.papi-menu-drawer-paper { + height: fit-content !important; + position: absolute !important; } -.papi-checkbox.below, -.papi-checkbox.above { - text-align: center; +.papi-toolbar-children { + padding: 10px; + position: relative; } `,"top"); //# sourceMappingURL=index.cjs.map diff --git a/lib/platform-bible-react/dist/index.cjs.map b/lib/platform-bible-react/dist/index.cjs.map index dccaaf70c6..4569ccce4d 100644 --- a/lib/platform-bible-react/dist/index.cjs.map +++ b/lib/platform-bible-react/dist/index.cjs.map @@ -1 +1 @@ -{"version":3,"file":"index.cjs","sources":["../../../node_modules/@sillsdev/scripture/dist/index.es.js","../src/utils/shadcn-ui.util.ts","../src/components/shadcn-ui/dropdown-menu.tsx","../src/components/shadcn-ui/input.tsx","../src/components/advanced-components/book-chapter-control/book-chapter-input.component.tsx","../src/components/advanced-components/book-chapter-control/chapter-select.component.tsx","../src/components/advanced-components/book-chapter-control/book-menu-item.component.tsx","../src/components/advanced-components/book-chapter-control/go-to-menu-item.component.tsx","../src/components/advanced-components/book-chapter-control/book-chapter-control.component.tsx","../src/components/shadcn-ui/table.tsx","../src/components/shadcn-ui/button.tsx","../src/components/shadcn-ui/select.tsx","../src/components/advanced-components/data-table/data-table-pagination.component.tsx","../src/components/advanced-components/data-table/data-table-column-toggle.component.tsx","../src/components/advanced-components/data-table/data-table.component.tsx","../src/components/combo-box.component.tsx","../src/components/chapter-range-selector.component.tsx","../src/components/label-position.model.ts","../src/components/checkbox.component.tsx","../src/components/checklist.component.tsx","../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/esm/extends.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/index.js","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/base/utils/isHostComponent.js","../../../node_modules/@mui/base/utils/appendOwnerState.js","../../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/utils/extractEventHandlers.js","../../../node_modules/@mui/base/utils/resolveComponentProps.js","../../../node_modules/@mui/base/utils/omitEventHandlers.js","../../../node_modules/@mui/base/utils/mergeSlotProps.js","../../../node_modules/@mui/base/utils/useSlotProps.js","../../../node_modules/@mui/base/generateUtilityClass/index.js","../../../node_modules/@mui/base/generateUtilityClasses/index.js","../../../node_modules/@mui/base/FocusTrap/FocusTrap.js","../../../node_modules/@mui/base/Portal/Portal.js","../../../node_modules/@mui/base/unstable_useModal/ModalManager.js","../../../node_modules/@mui/base/unstable_useModal/useModal.js","../../../node_modules/@popperjs/core/lib/enums.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../node_modules/@popperjs/core/lib/utils/math.js","../../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../node_modules/@popperjs/core/lib/utils/within.js","../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../node_modules/@popperjs/core/lib/utils/debounce.js","../../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../node_modules/@popperjs/core/lib/createPopper.js","../../../node_modules/@popperjs/core/lib/popper.js","../../../node_modules/@mui/base/Popper/popperClasses.js","../../../node_modules/@mui/base/Popper/Popper.js","../../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/esm/createTheme/shape.js","../../../node_modules/@mui/system/esm/responsivePropType.js","../../../node_modules/@mui/system/esm/merge.js","../../../node_modules/@mui/system/esm/breakpoints.js","../../../node_modules/@mui/system/esm/style.js","../../../node_modules/@mui/system/esm/memoize.js","../../../node_modules/@mui/system/esm/spacing.js","../../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../../node_modules/@mui/system/esm/compose.js","../../../node_modules/@mui/system/esm/borders.js","../../../node_modules/@mui/system/esm/cssGrid.js","../../../node_modules/@mui/system/esm/palette.js","../../../node_modules/@mui/system/esm/sizing.js","../../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../../node_modules/@mui/system/esm/useTheme.js","../../../node_modules/@mui/system/esm/createStyled.js","../../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/esm/colorManipulator.js","../../../node_modules/@mui/material/styles/createMixins.js","../../../node_modules/@mui/material/colors/common.js","../../../node_modules/@mui/material/colors/grey.js","../../../node_modules/@mui/material/colors/purple.js","../../../node_modules/@mui/material/colors/red.js","../../../node_modules/@mui/material/colors/orange.js","../../../node_modules/@mui/material/colors/blue.js","../../../node_modules/@mui/material/colors/lightBlue.js","../../../node_modules/@mui/material/colors/green.js","../../../node_modules/@mui/material/styles/createPalette.js","../../../node_modules/@mui/material/styles/createTypography.js","../../../node_modules/@mui/material/styles/shadows.js","../../../node_modules/@mui/material/styles/createTransitions.js","../../../node_modules/@mui/material/styles/zIndex.js","../../../node_modules/@mui/material/styles/createTheme.js","../../../node_modules/@mui/material/styles/defaultTheme.js","../../../node_modules/@mui/material/styles/identifier.js","../../../node_modules/@mui/material/styles/styled.js","../../../node_modules/@mui/material/styles/useTheme.js","../../../node_modules/@mui/material/styles/useThemeProps.js","../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../node_modules/react-transition-group/esm/config.js","../../../node_modules/react-transition-group/esm/utils/PropTypes.js","../../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../../node_modules/react-transition-group/esm/utils/reflow.js","../../../node_modules/react-transition-group/esm/Transition.js","../../../node_modules/@mui/material/transitions/utils.js","../../../node_modules/@mui/material/Grow/Grow.js","../../../node_modules/@mui/material/styles/getOverlayAlpha.js","../../../node_modules/@mui/material/Popper/Popper.js","../../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../../node_modules/@mui/material/Tooltip/Tooltip.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@mui/material/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/material/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/utils/createSvgIcon.js","../../../node_modules/@mui/material/utils/index.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/@mui/icons-material/ArrowRight.js","../src/components/menu-item.component.tsx","../src/components/grouped-menu-item-list.component.tsx","../src/components/top-level-menu.component.tsx","../src/components/grid-menu.component.tsx","../../../node_modules/@mui/material/List/ListContext.js","../../../node_modules/@mui/material/List/listClasses.js","../../../node_modules/@mui/material/List/List.js","../../../node_modules/@mui/material/MenuList/MenuList.js","../../../node_modules/@mui/material/Fade/Fade.js","../../../node_modules/@mui/material/Backdrop/backdropClasses.js","../../../node_modules/@mui/material/Backdrop/Backdrop.js","../../../node_modules/@mui/material/Modal/modalClasses.js","../../../node_modules/@mui/material/Modal/Modal.js","../../../node_modules/@mui/material/Paper/paperClasses.js","../../../node_modules/@mui/material/Paper/Paper.js","../../../node_modules/@mui/material/Popover/popoverClasses.js","../../../node_modules/@mui/material/Popover/Popover.js","../../../node_modules/@mui/material/Menu/menuClasses.js","../../../node_modules/@mui/material/Menu/Menu.js","../src/components/context-menu.component.tsx","../../../node_modules/@mui/icons-material/esm/Menu.js","../src/hooks/use-promise.hook.ts","../src/components/hamburger-menu-button.component.tsx","../src/components/icon-button.component.tsx","../src/components/shadcn-ui/label.tsx","../src/components/text-field.component.tsx","../src/components/search-bar.component.tsx","../src/components/slider.component.tsx","../src/components/snackbar.component.tsx","../src/components/switch.component.tsx","../src/components/toolbar.component.tsx","../src/components/shadcn-ui/tabs.tsx","../src/components/shadcn-ui/tabs-vertical.tsx","../src/components/paratext-10-studio-components/inventory/inventory-data-table.component.tsx","../src/components/paratext-10-studio-components/inventory/occurrences-table.component.tsx","../src/components/paratext-10-studio-components/inventory/character-inventory.component.tsx","../src/hooks/use-event.hook.ts","../src/hooks/use-event-async.hook.ts","../src/components/shadcn-ui/card.tsx","../src/components/shadcn-ui/alert.tsx","../src/components/shadcn-ui/slider.tsx","../src/components/shadcn-ui/switch.tsx"],"sourcesContent":["var P = Object.defineProperty;\nvar R = (t, e, s) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;\nvar n = (t, e, s) => R(t, typeof e != \"symbol\" ? e + \"\" : e, s);\nclass _ {\n constructor() {\n n(this, \"books\");\n n(this, \"firstSelectedBookNum\");\n n(this, \"lastSelectedBookNum\");\n n(this, \"count\");\n n(this, \"selectedBookNumbers\");\n n(this, \"selectedBookIds\");\n }\n}\nconst N = [\n \"GEN\",\n \"EXO\",\n \"LEV\",\n \"NUM\",\n \"DEU\",\n \"JOS\",\n \"JDG\",\n \"RUT\",\n \"1SA\",\n \"2SA\",\n // 10\n \"1KI\",\n \"2KI\",\n \"1CH\",\n \"2CH\",\n \"EZR\",\n \"NEH\",\n \"EST\",\n \"JOB\",\n \"PSA\",\n \"PRO\",\n // 20\n \"ECC\",\n \"SNG\",\n \"ISA\",\n \"JER\",\n \"LAM\",\n \"EZK\",\n \"DAN\",\n \"HOS\",\n \"JOL\",\n \"AMO\",\n // 30\n \"OBA\",\n \"JON\",\n \"MIC\",\n \"NAM\",\n \"HAB\",\n \"ZEP\",\n \"HAG\",\n \"ZEC\",\n \"MAL\",\n \"MAT\",\n // 40\n \"MRK\",\n \"LUK\",\n \"JHN\",\n \"ACT\",\n \"ROM\",\n \"1CO\",\n \"2CO\",\n \"GAL\",\n \"EPH\",\n \"PHP\",\n // 50\n \"COL\",\n \"1TH\",\n \"2TH\",\n \"1TI\",\n \"2TI\",\n \"TIT\",\n \"PHM\",\n \"HEB\",\n \"JAS\",\n \"1PE\",\n // 60\n \"2PE\",\n \"1JN\",\n \"2JN\",\n \"3JN\",\n \"JUD\",\n \"REV\",\n \"TOB\",\n \"JDT\",\n \"ESG\",\n \"WIS\",\n // 70\n \"SIR\",\n \"BAR\",\n \"LJE\",\n \"S3Y\",\n \"SUS\",\n \"BEL\",\n \"1MA\",\n \"2MA\",\n \"3MA\",\n \"4MA\",\n // 80\n \"1ES\",\n \"2ES\",\n \"MAN\",\n \"PS2\",\n \"ODA\",\n \"PSS\",\n \"JSA\",\n // actual variant text for JOS, now in LXA text\n \"JDB\",\n // actual variant text for JDG, now in LXA text\n \"TBS\",\n // actual variant text for TOB, now in LXA text\n \"SST\",\n // actual variant text for SUS, now in LXA text // 90\n \"DNT\",\n // actual variant text for DAN, now in LXA text\n \"BLT\",\n // actual variant text for BEL, now in LXA text\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n // 100\n \"BAK\",\n \"OTH\",\n \"3ES\",\n // Used previously but really should be 2ES\n \"EZA\",\n // Used to be called 4ES, but not actually in any known project\n \"5EZ\",\n // Used to be called 5ES, but not actually in any known project\n \"6EZ\",\n // Used to be called 6ES, but not actually in any known project\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n // 110\n \"NDX\",\n \"DAG\",\n \"PS3\",\n \"2BA\",\n \"LBA\",\n \"JUB\",\n \"ENO\",\n \"1MQ\",\n \"2MQ\",\n \"3MQ\",\n // 120\n \"REP\",\n \"4BA\",\n \"LAO\"\n], B = [\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n \"BAK\",\n \"OTH\",\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n \"NDX\"\n], O = [\n \"Genesis\",\n \"Exodus\",\n \"Leviticus\",\n \"Numbers\",\n \"Deuteronomy\",\n \"Joshua\",\n \"Judges\",\n \"Ruth\",\n \"1 Samuel\",\n \"2 Samuel\",\n \"1 Kings\",\n \"2 Kings\",\n \"1 Chronicles\",\n \"2 Chronicles\",\n \"Ezra\",\n \"Nehemiah\",\n \"Esther (Hebrew)\",\n \"Job\",\n \"Psalms\",\n \"Proverbs\",\n \"Ecclesiastes\",\n \"Song of Songs\",\n \"Isaiah\",\n \"Jeremiah\",\n \"Lamentations\",\n \"Ezekiel\",\n \"Daniel (Hebrew)\",\n \"Hosea\",\n \"Joel\",\n \"Amos\",\n \"Obadiah\",\n \"Jonah\",\n \"Micah\",\n \"Nahum\",\n \"Habakkuk\",\n \"Zephaniah\",\n \"Haggai\",\n \"Zechariah\",\n \"Malachi\",\n \"Matthew\",\n \"Mark\",\n \"Luke\",\n \"John\",\n \"Acts\",\n \"Romans\",\n \"1 Corinthians\",\n \"2 Corinthians\",\n \"Galatians\",\n \"Ephesians\",\n \"Philippians\",\n \"Colossians\",\n \"1 Thessalonians\",\n \"2 Thessalonians\",\n \"1 Timothy\",\n \"2 Timothy\",\n \"Titus\",\n \"Philemon\",\n \"Hebrews\",\n \"James\",\n \"1 Peter\",\n \"2 Peter\",\n \"1 John\",\n \"2 John\",\n \"3 John\",\n \"Jude\",\n \"Revelation\",\n \"Tobit\",\n \"Judith\",\n \"Esther Greek\",\n \"Wisdom of Solomon\",\n \"Sirach (Ecclesiasticus)\",\n \"Baruch\",\n \"Letter of Jeremiah\",\n \"Song of 3 Young Men\",\n \"Susanna\",\n \"Bel and the Dragon\",\n \"1 Maccabees\",\n \"2 Maccabees\",\n \"3 Maccabees\",\n \"4 Maccabees\",\n \"1 Esdras (Greek)\",\n \"2 Esdras (Latin)\",\n \"Prayer of Manasseh\",\n \"Psalm 151\",\n \"Odes\",\n \"Psalms of Solomon\",\n // WARNING, if you change the spelling of the *obsolete* tag be sure to update\n // IsObsolete routine\n \"Joshua A. *obsolete*\",\n \"Judges B. *obsolete*\",\n \"Tobit S. *obsolete*\",\n \"Susanna Th. *obsolete*\",\n \"Daniel Th. *obsolete*\",\n \"Bel Th. *obsolete*\",\n \"Extra A\",\n \"Extra B\",\n \"Extra C\",\n \"Extra D\",\n \"Extra E\",\n \"Extra F\",\n \"Extra G\",\n \"Front Matter\",\n \"Back Matter\",\n \"Other Matter\",\n \"3 Ezra *obsolete*\",\n \"Apocalypse of Ezra\",\n \"5 Ezra (Latin Prologue)\",\n \"6 Ezra (Latin Epilogue)\",\n \"Introduction\",\n \"Concordance \",\n \"Glossary \",\n \"Topical Index\",\n \"Names Index\",\n \"Daniel Greek\",\n \"Psalms 152-155\",\n \"2 Baruch (Apocalypse)\",\n \"Letter of Baruch\",\n \"Jubilees\",\n \"Enoch\",\n \"1 Meqabyan\",\n \"2 Meqabyan\",\n \"3 Meqabyan\",\n \"Reproof (Proverbs 25-31)\",\n \"4 Baruch (Rest of Baruch)\",\n \"Laodiceans\"\n], S = K();\nfunction g(t, e = !0) {\n return e && (t = t.toUpperCase()), t in S ? S[t] : 0;\n}\nfunction k(t) {\n return g(t) > 0;\n}\nfunction x(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return e >= 40 && e <= 66;\n}\nfunction T(t) {\n return (typeof t == \"string\" ? g(t) : t) <= 39;\n}\nfunction X(t) {\n return t <= 66;\n}\nfunction V(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return w(e) && !X(e);\n}\nfunction* L() {\n for (let t = 1; t <= N.length; t++) yield t;\n}\nconst G = 1, A = N.length;\nfunction H() {\n return [\"XXA\", \"XXB\", \"XXC\", \"XXD\", \"XXE\", \"XXF\", \"XXG\"];\n}\nfunction C(t, e = \"***\") {\n const s = t - 1;\n return s < 0 || s >= N.length ? e : N[s];\n}\nfunction I(t) {\n return t <= 0 || t > A ? \"******\" : O[t - 1];\n}\nfunction y(t) {\n return I(g(t));\n}\nfunction w(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && !B.includes(e);\n}\nfunction q(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && B.includes(e);\n}\nfunction U(t) {\n return O[t - 1].includes(\"*obsolete*\");\n}\nfunction K() {\n const t = {};\n for (let e = 0; e < N.length; e++)\n t[N[e]] = e + 1;\n return t;\n}\nconst m = {\n allBookIds: N,\n nonCanonicalIds: B,\n bookIdToNumber: g,\n isBookIdValid: k,\n isBookNT: x,\n isBookOT: T,\n isBookOTNT: X,\n isBookDC: V,\n allBookNumbers: L,\n firstBook: G,\n lastBook: A,\n extraBooks: H,\n bookNumberToId: C,\n bookNumberToEnglishName: I,\n bookIdToEnglishName: y,\n isCanonical: w,\n isExtraMaterial: q,\n isObsolete: U\n};\nvar l = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = \"Unknown\", t[t.Original = 1] = \"Original\", t[t.Septuagint = 2] = \"Septuagint\", t[t.Vulgate = 3] = \"Vulgate\", t[t.English = 4] = \"English\", t[t.RussianProtestant = 5] = \"RussianProtestant\", t[t.RussianOrthodox = 6] = \"RussianOrthodox\", t))(l || {});\nconst h = class h {\n // private versInfo: Versification;\n constructor(e) {\n n(this, \"name\");\n n(this, \"fullPath\");\n n(this, \"isPresent\");\n n(this, \"hasVerseSegments\");\n n(this, \"isCustomized\");\n n(this, \"baseVersification\");\n n(this, \"scriptureBooks\");\n n(this, \"_type\");\n if (e == null)\n throw new Error(\"Argument undefined\");\n typeof e == \"string\" ? (this.name = e, this._type = l[e]) : (this._type = e, this.name = l[e]);\n }\n get type() {\n return this._type;\n }\n equals(e) {\n return !e.type || !this.type ? !1 : e.type === this.type;\n }\n};\nn(h, \"Original\", new h(l.Original)), n(h, \"Septuagint\", new h(l.Septuagint)), n(h, \"Vulgate\", new h(l.Vulgate)), n(h, \"English\", new h(l.English)), n(h, \"RussianProtestant\", new h(l.RussianProtestant)), n(h, \"RussianOrthodox\", new h(l.RussianOrthodox));\nlet c = h;\nfunction E(t, e) {\n const s = e[0];\n for (let r = 1; r < e.length; r++)\n t = t.split(e[r]).join(s);\n return t.split(s);\n}\nvar D = /* @__PURE__ */ ((t) => (t[t.Valid = 0] = \"Valid\", t[t.UnknownVersification = 1] = \"UnknownVersification\", t[t.OutOfRange = 2] = \"OutOfRange\", t[t.VerseOutOfOrder = 3] = \"VerseOutOfOrder\", t[t.VerseRepeated = 4] = \"VerseRepeated\", t))(D || {});\nconst i = class i {\n constructor(e, s, r, a) {\n /** Not yet implemented. */\n n(this, \"firstChapter\");\n /** Not yet implemented. */\n n(this, \"lastChapter\");\n /** Not yet implemented. */\n n(this, \"lastVerse\");\n /** Not yet implemented. */\n n(this, \"hasSegmentsDefined\");\n /** Not yet implemented. */\n n(this, \"text\");\n /** Not yet implemented. */\n n(this, \"BBBCCCVVVS\");\n /** Not yet implemented. */\n n(this, \"longHashCode\");\n /** The versification of the reference. */\n n(this, \"versification\");\n n(this, \"rtlMark\", \"‏\");\n n(this, \"_bookNum\", 0);\n n(this, \"_chapterNum\", 0);\n n(this, \"_verseNum\", 0);\n n(this, \"_verse\");\n if (r == null && a == null)\n if (e != null && typeof e == \"string\") {\n const o = e, u = s != null && s instanceof c ? s : void 0;\n this.setEmpty(u), this.parse(o);\n } else if (e != null && typeof e == \"number\") {\n const o = s != null && s instanceof c ? s : void 0;\n this.setEmpty(o), this._verseNum = e % i.chapterDigitShifter, this._chapterNum = Math.floor(\n e % i.bookDigitShifter / i.chapterDigitShifter\n ), this._bookNum = Math.floor(e / i.bookDigitShifter);\n } else if (s == null)\n if (e != null && e instanceof i) {\n const o = e;\n this._bookNum = o.bookNum, this._chapterNum = o.chapterNum, this._verseNum = o.verseNum, this._verse = o.verse, this.versification = o.versification;\n } else {\n if (e == null) return;\n const o = e instanceof c ? e : i.defaultVersification;\n this.setEmpty(o);\n }\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else if (e != null && s != null && r != null)\n if (typeof e == \"string\" && typeof s == \"string\" && typeof r == \"string\")\n this.setEmpty(a), this.updateInternal(e, s, r);\n else if (typeof e == \"number\" && typeof s == \"number\" && typeof r == \"number\")\n this._bookNum = e, this._chapterNum = s, this._verseNum = r, this.versification = a ?? i.defaultVersification;\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else\n throw new Error(\"VerseRef constructor not supported.\");\n }\n /**\n * Determines if the verse string is in a valid format (does not consider versification).\n */\n static isVerseParseable(e) {\n return e.length > 0 && \"0123456789\".includes(e[0]) && !e.endsWith(this.verseRangeSeparator) && !e.endsWith(this.verseSequenceIndicator);\n }\n /**\n * Tries to parse the specified string into a verse reference.\n * @param str - The string to attempt to parse.\n * @returns success: `true` if the specified string was successfully parsed, `false` otherwise.\n * @returns verseRef: The result of the parse if successful, or empty VerseRef if it failed\n */\n static tryParse(e) {\n let s;\n try {\n return s = new i(e), { success: !0, verseRef: s };\n } catch (r) {\n if (r instanceof v)\n return s = new i(), { success: !1, verseRef: s };\n throw r;\n }\n }\n /**\n * Gets the reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n * @param bookNum - Book number (this is 1-based, not an index).\n * @param chapterNum - Chapter number.\n * @param verseNum - Verse number.\n * @returns The reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n */\n static getBBBCCCVVV(e, s, r) {\n return e % i.bcvMaxValue * i.bookDigitShifter + (s >= 0 ? s % i.bcvMaxValue * i.chapterDigitShifter : 0) + (r >= 0 ? r % i.bcvMaxValue : 0);\n }\n /**\n * Deserializes a serialized VerseRef.\n * @param serializedVerseRef - Serialized VerseRef to create from.\n * @returns the deserialized VerseRef.\n */\n static fromJSON(e) {\n const { book: s, chapterNum: r, verseNum: a, verse: o, versificationStr: u } = e, f = o || a.toString();\n let d;\n return u && (d = new c(u)), s ? new i(s, r.toString(), f, d) : new i();\n }\n /**\n * Parses a verse string and gets the leading numeric portion as a number.\n * @param verseStr - verse string to parse\n * @returns true if the entire string could be parsed as a single, simple verse number (1-999);\n * false if the verse string represented a verse bridge, contained segment letters, or was invalid\n */\n static tryGetVerseNum(e) {\n let s;\n if (!e)\n return s = -1, { success: !0, vNum: s };\n s = 0;\n let r;\n for (let a = 0; a < e.length; a++) {\n if (r = e[a], r < \"0\" || r > \"9\")\n return a === 0 && (s = -1), { success: !1, vNum: s };\n if (s = s * 10 + +r - 0, s > i.bcvMaxValue)\n return s = -1, { success: !1, vNum: s };\n }\n return { success: !0, vNum: s };\n }\n /**\n * Checks to see if a VerseRef hasn't been set - all values are the default.\n */\n get isDefault() {\n return this.bookNum === 0 && this.chapterNum === 0 && this.verseNum === 0 && this.versification == null;\n }\n /**\n * Gets whether the verse contains multiple verses.\n */\n get hasMultiple() {\n return this._verse != null && (this._verse.includes(i.verseRangeSeparator) || this._verse.includes(i.verseSequenceIndicator));\n }\n /**\n * Gets or sets the book of the reference. Book is the 3-letter abbreviation in capital letters,\n * e.g. `'MAT'`.\n */\n get book() {\n return m.bookNumberToId(this.bookNum, \"\");\n }\n set book(e) {\n this.bookNum = m.bookIdToNumber(e);\n }\n /**\n * Gets or sets the chapter of the reference,. e.g. `'3'`.\n */\n get chapter() {\n return this.isDefault || this._chapterNum < 0 ? \"\" : this._chapterNum.toString();\n }\n set chapter(e) {\n const s = +e;\n this._chapterNum = Number.isInteger(s) ? s : -1;\n }\n /**\n * Gets or sets the verse of the reference, including range, segments, and sequences, e.g. `'4'`,\n * or `'4b-5a, 7'`.\n */\n get verse() {\n return this._verse != null ? this._verse : this.isDefault || this._verseNum < 0 ? \"\" : this._verseNum.toString();\n }\n set verse(e) {\n const { success: s, vNum: r } = i.tryGetVerseNum(e);\n this._verse = s ? void 0 : e.replace(this.rtlMark, \"\"), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = i.tryGetVerseNum(this._verse));\n }\n /**\n * Get or set Book based on book number, e.g. `42`.\n */\n get bookNum() {\n return this._bookNum;\n }\n set bookNum(e) {\n if (e <= 0 || e > m.lastBook)\n throw new v(\n \"BookNum must be greater than zero and less than or equal to last book\"\n );\n this._bookNum = e;\n }\n /**\n * Gets or sets the chapter number, e.g. `3`. `-1` if not valid.\n */\n get chapterNum() {\n return this._chapterNum;\n }\n set chapterNum(e) {\n this.chapterNum = e;\n }\n /**\n * Gets or sets verse start number, e.g. `4`. `-1` if not valid.\n */\n get verseNum() {\n return this._verseNum;\n }\n set verseNum(e) {\n this._verseNum = e;\n }\n /**\n * String representing the versification (should ONLY be used for serialization/deserialization).\n *\n * @remarks This is for backwards compatibility when ScrVers was an enumeration.\n */\n get versificationStr() {\n var e;\n return (e = this.versification) == null ? void 0 : e.name;\n }\n set versificationStr(e) {\n this.versification = this.versification != null ? new c(e) : void 0;\n }\n /**\n * Determines if the reference is valid.\n */\n get valid() {\n return this.validStatus === 0;\n }\n /**\n * Get the valid status for this reference.\n */\n get validStatus() {\n return this.validateVerse(i.verseRangeSeparators, i.verseSequenceIndicators);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits and the verse is 0.\n */\n get BBBCCC() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, 0);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits. If verse is not null\n * (i.e., this reference represents a complex reference with verse\n * segments or bridge) this cannot be used for an exact comparison.\n */\n get BBBCCCVVV() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum);\n }\n /**\n * Gets whether the verse is defined as an excluded verse in the versification.\n * Does not handle verse ranges.\n */\n // eslint-disable-next-line @typescript-eslint/class-literal-property-style\n get isExcluded() {\n return !1;\n }\n /**\n * Parses the reference in the specified string.\n * Optionally versification can follow reference as in GEN 3:11/4\n * Throw an exception if\n * - invalid book name\n * - chapter number is missing or not a number\n * - verse number is missing or does not start with a number\n * - versification is invalid\n * @param verseStr - string to parse e.g. 'MAT 3:11'\n */\n parse(e) {\n if (e = e.replace(this.rtlMark, \"\"), e.includes(\"/\")) {\n const o = e.split(\"/\");\n if (e = o[0], o.length > 1)\n try {\n const u = +o[1].trim();\n this.versification = new c(l[u]);\n } catch {\n throw new v(\"Invalid reference : \" + e);\n }\n }\n const s = e.trim().split(\" \");\n if (s.length !== 2)\n throw new v(\"Invalid reference : \" + e);\n const r = s[1].split(\":\"), a = +r[0];\n if (r.length !== 2 || m.bookIdToNumber(s[0]) === 0 || !Number.isInteger(a) || a < 0 || !i.isVerseParseable(r[1]))\n throw new v(\"Invalid reference : \" + e);\n this.updateInternal(s[0], r[0], r[1]);\n }\n /**\n * Simplifies this verse ref so that it has no bridging of verses or\n * verse segments like `'1a'`.\n */\n simplify() {\n this._verse = void 0;\n }\n /**\n * Makes a clone of the reference.\n *\n * @returns The cloned VerseRef.\n */\n clone() {\n return new i(this);\n }\n toString() {\n const e = this.book;\n return e === \"\" ? \"\" : `${e} ${this.chapter}:${this.verse}`;\n }\n toJSON() {\n let e = this.verse;\n return (e === \"\" || e === this.verseNum.toString()) && (e = void 0), {\n book: this.book,\n chapterNum: this.chapterNum,\n verseNum: this.verseNum,\n verse: e,\n versificationStr: this.versificationStr\n };\n }\n /**\n * Compares this `VerseRef` with supplied one.\n * @param verseRef - object to compare this one to.\n * @returns `true` if this `VerseRef` is equal to the supplied one, `false` otherwise.\n */\n equals(e) {\n return e instanceof i ? e._bookNum === this._bookNum && e._chapterNum === this._chapterNum && e._verseNum === this._verseNum && e.verse === this.verse && (e.versification == null && this.versification == null || e.versification != null && this.versification != null && e.versification.equals(this.versification)) : !1;\n }\n /**\n * Enumerate all individual verses contained in a VerseRef.\n * Verse ranges are indicated by \"-\" and consecutive verses by \",\"s.\n * Examples:\n * GEN 1:2 returns GEN 1:2\n * GEN 1:1a-3b,5 returns GEN 1:1a, GEN 1:2, GEN 1:3b, GEN 1:5\n * GEN 1:2a-2c returns //! ??????\n *\n * @param specifiedVersesOnly - if set to true return only verses that are\n * explicitly specified only, not verses within a range. Defaults to `false`.\n * @param verseRangeSeparators - Verse range separators.\n * Defaults to `VerseRef.verseRangeSeparators`.\n * @param verseSequenceSeparators - Verse sequence separators.\n * Defaults to `VerseRef.verseSequenceIndicators`.\n * @returns An array of all single verse references in this VerseRef.\n */\n allVerses(e = !1, s = i.verseRangeSeparators, r = i.verseSequenceIndicators) {\n if (this._verse == null || this.chapterNum <= 0)\n return [this.clone()];\n const a = [], o = E(this._verse, r);\n for (const u of o.map((f) => E(f, s))) {\n const f = this.clone();\n f.verse = u[0];\n const d = f.verseNum;\n if (a.push(f), u.length > 1) {\n const b = this.clone();\n if (b.verse = u[1], !e)\n for (let p = d + 1; p < b.verseNum; p++) {\n const J = new i(\n this._bookNum,\n this._chapterNum,\n p,\n this.versification\n );\n this.isExcluded || a.push(J);\n }\n a.push(b);\n }\n }\n return a;\n }\n /**\n * Validates a verse number using the supplied separators rather than the defaults.\n */\n validateVerse(e, s) {\n if (!this.verse)\n return this.internalValid;\n let r = 0;\n for (const a of this.allVerses(!0, e, s)) {\n const o = a.internalValid;\n if (o !== 0)\n return o;\n const u = a.BBBCCCVVV;\n if (r > u)\n return 3;\n if (r === u)\n return 4;\n r = u;\n }\n return 0;\n }\n /**\n * Gets whether a single verse reference is valid.\n */\n get internalValid() {\n return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > m.lastBook ? 2 : (m.isCanonical(this._bookNum), 0);\n }\n setEmpty(e = i.defaultVersification) {\n this._bookNum = 0, this._chapterNum = -1, this._verse = void 0, this.versification = e;\n }\n updateInternal(e, s, r) {\n this.bookNum = m.bookIdToNumber(e), this.chapter = s, this.verse = r;\n }\n};\nn(i, \"defaultVersification\", c.English), n(i, \"verseRangeSeparator\", \"-\"), n(i, \"verseSequenceIndicator\", \",\"), n(i, \"verseRangeSeparators\", [i.verseRangeSeparator]), n(i, \"verseSequenceIndicators\", [i.verseSequenceIndicator]), n(i, \"chapterDigitShifter\", 1e3), n(i, \"bookDigitShifter\", i.chapterDigitShifter * i.chapterDigitShifter), n(i, \"bcvMaxValue\", i.chapterDigitShifter - 1), /**\n * The valid status of the VerseRef.\n */\nn(i, \"ValidStatusType\", D);\nlet M = i;\nclass v extends Error {\n}\nexport {\n _ as BookSet,\n m as Canon,\n c as ScrVers,\n l as ScrVersType,\n M as VerseRef,\n v as VerseRefException\n};\n//# sourceMappingURL=index.es.js.map\n","import { type ClassValue, clsx } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\nconst twMergeCustom = extendTailwindMerge({prefix: 'pr-'});\n\n// shadcn/ui uses this export in its boilerplate code\n// eslint-disable-next-line import/prefer-default-export\nexport function cn(...inputs: ClassValue[]) {\n return twMergeCustom(clsx(inputs));\n}\n","import React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\n\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nexport const DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nexport const DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nexport type DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n className?: string;\n};\n\nexport type DropdownMenuContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n className?: string;\n sideOffset?: number;\n};\n\nexport type DropdownMenuItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n className?: string;\n checked?: boolean;\n};\n\nexport type DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.RadioItem\n> & {\n className?: string;\n};\n\nexport type DropdownMenuLabelProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n className?: string;\n};\n\nexport type DropdownMenuShortcutProps = React.HTMLAttributes & {\n className?: string;\n};\n\nexport const DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubTriggerProps\n>(({ className, inset, children, ...props }, ref) => (\n \n {children}\n \n \n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nexport const DropdownMenuSubContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubContentProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nexport const DropdownMenuContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuContentProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n \n \n \n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport const DropdownMenuItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuItemProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nexport const DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuCheckboxItemProps\n>(({ className, children, checked, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nexport const DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuRadioItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nexport const DropdownMenuLabel = React.forwardRef<\n React.ElementRef,\n DropdownMenuLabelProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nexport const DropdownMenuSeparator = React.forwardRef<\n React.ElementRef,\n DropdownMenuSeparatorProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nexport function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps) {\n return (\n \n );\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport interface InputProps extends React.InputHTMLAttributes {}\n\nexport const Input = React.forwardRef(\n ({ className, type, ...props }, ref) => {\n return (\n \n );\n },\n);\nInput.displayName = 'Input';\n","import { FocusEventHandler, forwardRef, KeyboardEvent, MouseEventHandler } from 'react';\nimport { History } from 'lucide-react';\nimport { Input as ShadInput } from '@/components/shadcn-ui/input';\n\nexport type BookChapterInputProps = {\n handleSearch: (searchString: string) => void;\n handleKeyDown: (event: KeyboardEvent) => void;\n handleOnClick: MouseEventHandler;\n handleSubmit: () => void;\n onFocus?: FocusEventHandler;\n value: string;\n placeholder: string;\n};\n\n// Shadcn Input sets type to \"button\"- HAVE to prop spread before setting type\nconst BookChapterInput = forwardRef(\n (\n { handleSearch, handleKeyDown, handleOnClick, handleSubmit, ...props }: BookChapterInputProps,\n ref,\n ) => {\n return (\n
\n handleSearch(event.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n handleSubmit();\n }\n handleKeyDown(e);\n }}\n onClick={handleOnClick}\n ref={ref}\n />\n {\n // eslint-disable-next-line no-console\n console.log('back in history');\n }}\n />\n
\n );\n },\n);\n\nexport default BookChapterInput;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type ChapterSelectProps = {\n /**\n * Callback to run when a chapter div is selected\n *\n * @param chapterNumber Number of the chapter that has been selected\n */\n handleSelectChapter: (chapterNumber: number) => void;\n /** The highest chapter number in the book (of course equal to number of chapters in the book) */\n endChapter: number;\n /** The chapter number that is currently selected */\n activeChapter: number;\n /** The chapter number that is currently highlighted using keyboard or mouse navigation */\n highlightedChapter: number;\n /**\n * Callback to run when a chapter is highlighted by the user\n *\n * @param chapterNumber The chapter that is highlighted\n */\n handleHighlightedChapter: (chapterNumber: number) => void;\n};\n\nfunction ChapterSelect({\n handleSelectChapter,\n endChapter,\n activeChapter,\n highlightedChapter,\n handleHighlightedChapter,\n}: ChapterSelectProps) {\n const chapters = Array.from({ length: endChapter }, (_, i) => i + 1);\n\n const handleMouse = useCallback(\n (chapterNumber: number) => {\n handleHighlightedChapter(chapterNumber);\n },\n [handleHighlightedChapter],\n );\n\n return (\n
\n {chapters.map((chapter) => (\n {\n event.preventDefault();\n event.stopPropagation();\n handleSelectChapter(chapter);\n }}\n role=\"button\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n handleSelectChapter(chapter);\n }\n }}\n tabIndex={0}\n onMouseMove={() => handleMouse(chapter)}\n >\n {chapter}\n
\n ))}\n \n );\n}\n\nexport default ChapterSelect;\n","import { Canon } from '@sillsdev/scripture';\nimport { PropsWithChildren, KeyboardEvent, forwardRef } from 'react';\nimport { DropdownMenuItem as ShadDropdownMenuItem } from '@/components/shadcn-ui/dropdown-menu';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport type BookType = 'OT' | 'NT' | 'DC';\n\ntype BookMenuItemProps = PropsWithChildren<{\n /** String id of book */\n bookId: string;\n /** Callback to run when a book menu item is selected */\n handleSelectBook: () => void;\n /** Indicates if this menu item is currently selected */\n isSelected: boolean;\n /** Function that is called upon highlighting a book in the dropdown menu */\n handleHighlightBook: () => void;\n /**\n * Function that is called on pressing a key\n *\n * @param event Event that contains information about the key stroke\n */\n handleKeyDown: (event: KeyboardEvent) => void;\n /**\n * Type of book associated with this menu item, coordinates color labels ? Mock up has the labels\n * coordinated to genre\n */\n bookType: BookType;\n}>;\n\nconst BookMenuItem = forwardRef(\n (\n {\n bookId,\n handleSelectBook,\n isSelected,\n handleHighlightBook,\n handleKeyDown,\n bookType,\n children,\n }: BookMenuItemProps,\n ref,\n ) => {\n return (\n {\n // preventDefault() here prevents the entire dropdown menu from closing when selecting this item\n event.preventDefault();\n handleSelectBook();\n }}\n onKeyDown={(event: KeyboardEvent) => {\n handleKeyDown(event);\n }}\n onFocus={handleHighlightBook}\n onMouseMove={handleHighlightBook}\n >\n \n {Canon.bookIdToEnglishName(bookId)}\n \n {isSelected &&
{children}
}\n \n );\n },\n);\n\nexport default BookMenuItem;\n","import { DropdownMenuLabel as ShadDropdownMenuLabel } from '@/components/shadcn-ui/dropdown-menu';\nimport { Bookmark, Clock, ArrowDownWideNarrow } from 'lucide-react';\n\nexport type GoToMenuItemProps = {\n handleSort: () => void;\n handleLocationHistory: () => void;\n handleBookmarks: () => void;\n};\n\nfunction GoToMenuItem({ handleSort, handleLocationHistory, handleBookmarks }: GoToMenuItemProps) {\n return (\n \n

Go To

\n
\n \n \n \n
\n
\n );\n}\n\nexport default GoToMenuItem;\n","import {\n KeyboardEvent as ReactKeyboardEvent,\n useCallback,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\nimport { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference, getChaptersForBook } from 'platform-bible-utils';\nimport {\n DropdownMenuTrigger as ShadDropdownMenuTrigger,\n DropdownMenu as ShadDropdownMenu,\n DropdownMenuContent as ShadDropdownMenuContent,\n DropdownMenuLabel as ShadDropdownMenuLabel,\n DropdownMenuSeparator as ShadDropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport BookChapterInput from '@/components/advanced-components/book-chapter-control/book-chapter-input.component';\nimport ChapterSelect from '@/components/advanced-components/book-chapter-control/chapter-select.component';\nimport BookMenuItem, {\n BookType,\n} from '@/components/advanced-components/book-chapter-control/book-menu-item.component';\nimport GoToMenuItem from './go-to-menu-item.component';\n\ntype BookTypeLabels = {\n [bookType in BookType]: string;\n};\ntype BookChapterControlProps = {\n scrRef: ScriptureReference;\n handleSubmit: (scrRef: ScriptureReference) => void;\n};\n\nconst ALL_BOOK_IDS = Canon.allBookIds;\nconst BOOK_TYPE_LABELS: BookTypeLabels = {\n OT: 'Old Testament',\n NT: 'New Testament',\n DC: 'Deuterocanon',\n};\nconst BOOK_TYPE_ARRAY: BookType[] = ['OT', 'NT', 'DC'];\n// This is the height of three menu items to offset scrolling to the selected menu item\n// If you use menuItemRef.clientHeight- includes height of chapter div which is too big\nconst SCROLL_OFFSET = 32 + 32 + 32;\nconst SEARCH_QUERY_FORMATS = [\n /^(\\w+)$/i, // Matches a single word (book name or id)\n /^(\\w+)(?:\\s(\\d+))$/i, // Matches a word followed by a chapter number\n /^(\\w+)(?:\\s(\\d+):(\\d+))$/i, // Matches a word followed by a chapter and verse number\n];\nconst fetchGroupedBooks = (bookType: BookType) => {\n const groupedBooks = {\n OT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookOT(bookId)),\n NT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookNT(bookId)),\n DC: ALL_BOOK_IDS.filter((bookId) => Canon.isBookDC(bookId)),\n };\n return groupedBooks[bookType];\n};\nconst fetchEndChapter = (bookId: string) => {\n // getChaptersForBook returns -1 if not found in scrBookData\n // scrBookData only includes OT and NT, so all DC will return -1\n return getChaptersForBook(Canon.bookIdToNumber(bookId));\n};\n\n/**\n * Gets all of the English names from book ids\n *\n * @returns String[]\n */\nfunction getAllEnglishNames(): string[] {\n const allEnglishNames = ALL_BOOK_IDS.map((bookId) => {\n return Canon.bookIdToEnglishName(bookId);\n });\n return allEnglishNames;\n}\n\n/**\n * Determines if bookName is in allEnglishNames\n *\n * @param bookName Book English name\n * @returns True if bookName is included, false otherwise\n */\nfunction isValidBookEnglishName(bookName: string): boolean {\n return getAllEnglishNames().includes(bookName);\n}\n\n/**\n * Gets a bookId from given English name\n *\n * @param bookName Book English name\n * @returns BookId of provided bookName, undefined otherwise\n */\nfunction getBookIdFromEnglishName(bookName: string): string | undefined {\n // Convert bookName to lowercase and then capitalize the first letter\n const formattedBookName = bookName.toLowerCase().replace(/^\\w/, (c) => c.toUpperCase());\n\n if (isValidBookEnglishName(formattedBookName)) {\n const matchingBookId = ALL_BOOK_IDS.find((bookId) => {\n return Canon.bookIdToEnglishName(bookId) === formattedBookName;\n });\n return matchingBookId;\n }\n\n return undefined;\n}\n\nfunction BookChapterControl({ scrRef, handleSubmit }: BookChapterControlProps) {\n const [searchQuery, setSearchQuery] = useState('');\n const [selectedBookId, setSelectedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [highlightedChapter, setHighlightedChapter] = useState(scrRef.chapterNum ?? 0);\n const [highlightedBookId, setHighlightedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [isContentOpen, setIsContentOpen] = useState(false);\n const [isContentOpenDelayed, setIsContentOpenDelayed] = useState(isContentOpen);\n\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const inputRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const contentRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const menuItemRef = useRef(undefined!);\n\n const fetchFilteredBooks = useCallback(\n (bookType: BookType) => {\n return fetchGroupedBooks(bookType).filter((bookId: string) => {\n const englishNameLowerCase = Canon.bookIdToEnglishName(bookId).toLowerCase();\n const normalizedQuery = searchQuery.replace(/[^a-zA-Z]/g, '').toLowerCase();\n return (\n englishNameLowerCase.includes(normalizedQuery) || // Match book name\n bookId.toLowerCase().includes(normalizedQuery) // Match book ID\n );\n });\n },\n [searchQuery],\n );\n\n const handleSearchInput = (searchString: string) => {\n setSearchQuery(searchString);\n };\n\n /**\n * Whether to prevent radix's logic from closing the dropdown. This is important because radix\n * tries to close the dropdown when the input first focuses, and we don't want it to do that. But\n * we don't want to prevent the dropdown from closing when we click away from the input, so we\n * don't want to just keep it open if the input is focused\n */\n const shouldPreventAutoClosing = useRef(false);\n\n const controlMenuState = useCallback((open: boolean) => {\n if (shouldPreventAutoClosing.current) {\n shouldPreventAutoClosing.current = false;\n return;\n }\n setIsContentOpen(open);\n }, []);\n\n const updateReference = useCallback(\n (bookId: string, shouldClose: boolean, chapter?: number, verse?: number) => {\n setHighlightedChapter(\n Canon.bookNumberToId(scrRef.bookNum) !== bookId ? 1 : scrRef.chapterNum,\n );\n\n if (shouldClose || fetchEndChapter(bookId) === -1) {\n handleSubmit({\n bookNum: Canon.bookIdToNumber(bookId),\n chapterNum: chapter || 1,\n verseNum: verse || 1,\n });\n\n setIsContentOpen(false);\n setSearchQuery('');\n return;\n }\n\n setSelectedBookId(selectedBookId !== bookId ? bookId : '');\n setIsContentOpen(!shouldClose);\n },\n [handleSubmit, scrRef.bookNum, scrRef.chapterNum, selectedBookId],\n );\n\n const handleSelectChapter = (chapterNumber: number) => {\n if (chapterNumber <= 0 || chapterNumber > fetchEndChapter(selectedBookId)) {\n return;\n }\n updateReference(selectedBookId, true, chapterNumber);\n };\n\n const handleInputSubmit = useCallback(() => {\n SEARCH_QUERY_FORMATS.forEach((format) => {\n const matches = searchQuery.match(format);\n if (matches) {\n // Book should be a bookId or an english name\n const [book, chapter = undefined, verse = undefined] = matches.slice(1);\n const englishName = getBookIdFromEnglishName(book);\n\n if (Canon.isBookIdValid(book) || englishName) {\n updateReference(\n englishName ?? book,\n true,\n chapter ? parseInt(chapter, 10) : 1,\n verse ? parseInt(verse, 10) : 1,\n );\n }\n }\n });\n }, [updateReference, searchQuery]);\n\n const handleKeyDownInput = useCallback(\n (event: ReactKeyboardEvent) => {\n if (!isContentOpen) {\n setIsContentOpen(true);\n } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (\n typeof menuItemRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n menuItemRef.current !== null\n ) {\n menuItemRef.current.focus();\n } else if (\n typeof contentRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n contentRef.current !== null\n ) {\n contentRef.current.focus();\n }\n event.preventDefault();\n }\n },\n [isContentOpen],\n );\n\n const handleKeyDownContent = (event: ReactKeyboardEvent) => {\n // When the dropdown menu has focus, key strokes should give focus to the input component,\n // unless they're navigation keys (arrows and enter)\n const { key } = event;\n if (\n key === 'ArrowRight' ||\n key === 'ArrowLeft' ||\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter'\n ) {\n return;\n }\n\n inputRef.current.dispatchEvent(new KeyboardEvent('keydown', { key }));\n inputRef.current.focus();\n };\n\n const handleKeyDownMenuItem = (event: ReactKeyboardEvent) => {\n const { key } = event;\n if (highlightedBookId === selectedBookId) {\n if (key === 'Enter') {\n event.preventDefault();\n updateReference(selectedBookId, true, highlightedChapter);\n return;\n }\n\n let chapterOffSet = 0;\n if (key === 'ArrowRight') {\n if (highlightedChapter < fetchEndChapter(highlightedBookId)) {\n chapterOffSet = 1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowLeft') {\n if (highlightedChapter > 1) {\n chapterOffSet = -1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowDown') {\n chapterOffSet = 6;\n } else if (key === 'ArrowUp') {\n chapterOffSet = -6;\n }\n if (\n highlightedChapter + chapterOffSet <= 0 ||\n highlightedChapter + chapterOffSet > fetchEndChapter(highlightedBookId)\n ) {\n setHighlightedChapter(0);\n } else if (chapterOffSet !== 0) {\n setHighlightedChapter(highlightedChapter + chapterOffSet);\n event.preventDefault();\n }\n }\n };\n\n useEffect(() => {\n if (selectedBookId === highlightedBookId) {\n if (selectedBookId === Canon.bookNumberToId(scrRef.bookNum)) {\n setHighlightedChapter(scrRef.chapterNum);\n } else {\n setHighlightedChapter(1);\n }\n } else {\n setHighlightedChapter(0);\n }\n }, [highlightedBookId, scrRef.bookNum, scrRef.chapterNum, selectedBookId]);\n\n // The purpose of these useLayoutEffects and timeout is to delay the scroll just\n // enough so that the refs are defined and available when they are used after the timeout\n useLayoutEffect(() => {\n setIsContentOpenDelayed(isContentOpen);\n }, [isContentOpen]);\n\n useLayoutEffect(() => {\n const scrollTimeout = setTimeout(() => {\n if (isContentOpenDelayed && contentRef.current && menuItemRef.current) {\n const menuItemOffsetTop = menuItemRef.current.offsetTop;\n const scrollPosition = menuItemOffsetTop - SCROLL_OFFSET;\n contentRef.current.scrollTo({ top: scrollPosition, behavior: 'instant' });\n }\n }, 10);\n return () => {\n clearTimeout(scrollTimeout);\n };\n }, [isContentOpenDelayed]);\n\n return (\n
\n \n \n {\n setSelectedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedChapter(scrRef.chapterNum > 0 ? scrRef.chapterNum : 0);\n setIsContentOpen(true);\n inputRef.current.focus();\n }}\n onFocus={() => {\n // Radix thinks we want to close because the input is being focused. Prevent that\n shouldPreventAutoClosing.current = true;\n }}\n handleSubmit={handleInputSubmit}\n placeholder={`${Canon.bookNumberToEnglishName(scrRef.bookNum)} ${scrRef.chapterNum}:${scrRef.verseNum}`}\n />\n \n \n console.log('sorting')}\n handleLocationHistory={() => console.log('location history')}\n handleBookmarks={() => console.log('bookmarks')}\n />\n {BOOK_TYPE_ARRAY.map(\n (bookType, bookTypeIndex) =>\n fetchFilteredBooks(bookType).length > 0 && (\n
\n \n {BOOK_TYPE_LABELS[bookType]}\n \n\n {fetchFilteredBooks(bookType).map((bookId) => (\n
\n updateReference(bookId, false)}\n isSelected={selectedBookId === bookId}\n handleHighlightBook={() => setHighlightedBookId(bookId)}\n handleKeyDown={handleKeyDownMenuItem}\n bookType={bookType}\n ref={(element: HTMLDivElement) => {\n if (selectedBookId === bookId) menuItemRef.current = element;\n }}\n >\n {\n setHighlightedChapter(chapterNumber);\n }}\n />\n \n
\n ))}\n {BOOK_TYPE_ARRAY.length - 1 !== bookTypeIndex ? (\n \n ) : undefined}\n
\n ),\n )}\n \n
\n
\n );\n}\n\nexport default BookChapterControl;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Table = React.forwardRef>(\n ({ className, ...props }, ref) => (\n
\n \n
\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n tr]:last:pr-border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const buttonVariants = cva(\n 'pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-md pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50',\n {\n variants: {\n variant: {\n default: 'pr-bg-primary pr-text-primary-foreground hover:pr-bg-primary/90',\n destructive: 'pr-bg-destructive pr-text-destructive-foreground hover:pr-bg-destructive/90',\n outline:\n 'pr-border pr-border-input pr-bg-background hover:pr-bg-accent hover:pr-text-accent-foreground',\n secondary: 'pr-bg-secondary pr-text-secondary-foreground hover:pr-bg-secondary/80',\n ghost: 'hover:pr-bg-accent hover:pr-text-accent-foreground',\n link: 'pr-text-primary pr-underline-offset-4 hover:pr-underline',\n },\n size: {\n default: 'pr-h-10 pr-px-4 pr-py-2',\n sm: 'pr-h-9 pr-rounded-md pr-px-3',\n lg: 'pr-h-11 pr-rounded-md pr-px-8',\n icon: 'pr-h-10 pr-w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n return (\n \n );\n },\n);\nButton.displayName = 'Button';\n","import React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n span]:pr-line-clamp-1',\n className,\n )}\n {...props}\n >\n {children}\n \n \n \n \n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = 'popper', ...props }, ref) => (\n \n \n \n \n {children}\n \n \n \n \n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n\n {children}\n \n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n","import { ChevronLeftIcon, ChevronRightIcon, ArrowLeftIcon, ArrowRightIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\n\ninterface DataTablePaginationProps {\n table: Table;\n}\n\nfunction DataTablePagination({ table }: DataTablePaginationProps) {\n return (\n
\n
\n
\n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected\n
\n
\n

Rows per page

\n {\n table.setPageSize(Number(value));\n }}\n >\n \n \n \n \n {[10, 20, 30, 40, 50].map((pageSize) => (\n \n {pageSize}\n \n ))}\n \n \n
\n
\n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n
\n
\n table.setPageIndex(0)}\n disabled={!table.getCanPreviousPage()}\n >\n Go to first page\n \n \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Go to previous page\n \n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Go to next page\n \n \n table.setPageIndex(table.getPageCount() - 1)}\n disabled={!table.getCanNextPage()}\n >\n Go to last page\n \n \n
\n
\n
\n );\n}\n\nexport default DataTablePagination;\n","import { DropdownMenuTrigger } from '@radix-ui/react-dropdown-menu';\nimport { FilterIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\n\ninterface DataTableViewOptionsProps {\n table: Table;\n}\n\nfunction DataTableViewOptions({ table }: DataTableViewOptionsProps) {\n return (\n \n \n \n \n \n Toggle columns\n \n {table\n .getAllColumns()\n .filter((column) => column.getCanHide())\n .map((column) => {\n return (\n column.toggleVisibility(!!value)}\n >\n {column.id}\n \n );\n })}\n \n \n );\n}\n\nexport default DataTableViewOptions;\n","import { useState } from 'react';\n\nimport {\n ColumnDef,\n ColumnFiltersState,\n Row,\n SortingState,\n VisibilityState,\n flexRender,\n getCoreRowModel,\n getFilteredRowModel,\n getPaginationRowModel,\n getSortedRowModel,\n useReactTable,\n Table as tsTable,\n} from '@tanstack/react-table';\n\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { Button } from '@/components/shadcn-ui/button';\nimport DataTablePagination from './data-table-pagination.component';\nimport DataTableViewOptions from './data-table-column-toggle.component';\n\ninterface DataTableProps {\n columns: ColumnDef[];\n data: TData[];\n enablePagination?: boolean;\n showPaginationControls?: boolean;\n showColumnVisibilityControls?: boolean;\n onRowClickHandler?: (row: Row, table: tsTable) => void;\n}\n\nfunction DataTable({\n columns,\n data,\n enablePagination = false,\n showPaginationControls = false,\n showColumnVisibilityControls = false,\n onRowClickHandler = () => {},\n}: DataTableProps) {\n const [sorting, setSorting] = useState([]);\n const [columnFilters, setColumnFilters] = useState([]);\n const [columnVisibility, setColumnVisibility] = useState({});\n const [rowSelection, setRowSelection] = useState({});\n\n const table = useReactTable({\n data,\n columns,\n getCoreRowModel: getCoreRowModel(),\n ...(enablePagination && { getPaginationRowModel: getPaginationRowModel() }),\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n onColumnFiltersChange: setColumnFilters,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnVisibilityChange: setColumnVisibility,\n onRowSelectionChange: setRowSelection,\n state: {\n sorting,\n columnFilters,\n columnVisibility,\n rowSelection,\n },\n });\n\n return (\n
\n {showColumnVisibilityControls && }\n
\n \n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers.map((header) => {\n return (\n \n {header.isPlaceholder\n ? undefined\n : flexRender(header.column.columnDef.header, header.getContext())}\n \n );\n })}\n \n ))}\n \n \n {table.getRowModel().rows?.length ? (\n table.getRowModel().rows.map((row) => (\n onRowClickHandler(row, table)}\n key={row.id}\n data-state={row.getIsSelected() && 'selected'}\n >\n {row.getVisibleCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))\n ) : (\n \n \n No results.\n \n \n )}\n \n
\n
\n {enablePagination && (\n
\n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Previous\n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Next\n \n
\n )}\n {enablePagination && showPaginationControls && }\n
\n );\n}\n\nexport default DataTable;\n","import {\n Autocomplete as MuiComboBox,\n AutocompleteChangeDetails,\n AutocompleteChangeReason,\n TextField as MuiTextField,\n AutocompleteValue,\n} from '@mui/material';\nimport { FocusEventHandler, SyntheticEvent } from 'react';\nimport '@/components/combo-box.component.css';\n\nexport type ComboBoxLabelOption = { label: string };\nexport type ComboBoxOption = string | number | ComboBoxLabelOption;\nexport type ComboBoxValue = AutocompleteValue;\nexport type ComboBoxChangeDetails = AutocompleteChangeDetails;\nexport type ComboBoxChangeReason = AutocompleteChangeReason;\n\nexport type ComboBoxProps = {\n /** Optional unique identifier */\n id?: string;\n /** Text label title for combobox */\n title?: string;\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * If `true`, the component can be cleared, and will have a button to do so\n *\n * @default true\n */\n isClearable?: boolean;\n /**\n * True when (input related to) switch is erroneous\n *\n * @default false\n */\n hasError?: boolean;\n /**\n * If `true`, the input will take up the full width of its container.\n *\n * @default false\n */\n isFullWidth?: boolean;\n /** Width of the combobox in pixels. Setting this prop overrides the `isFullWidth` prop */\n width?: number;\n /** List of available options for the dropdown menu */\n options?: readonly T[];\n /** Additional css classes to help with unique styling of the combo box */\n className?: string;\n /**\n * The selected value that the combo box currently holds. Must be shallow equal to one of the\n * options entries.\n */\n value?: T;\n /** Triggers when content of textfield is changed */\n onChange?: (\n event: SyntheticEvent,\n value: ComboBoxValue,\n reason?: ComboBoxChangeReason,\n details?: ComboBoxChangeDetails | undefined,\n ) => void;\n /** Triggers when textfield gets focus */\n onFocus?: FocusEventHandler; // Storybook crashes when giving the combo box focus\n /** Triggers when textfield loses focus */\n onBlur?: FocusEventHandler;\n /** Used to determine the string value for a given option. */\n getOptionLabel?: (option: ComboBoxOption) => string;\n};\n\n/**\n * Dropdown selector displaying various options from which to choose\n *\n * Thanks to MUI for heavy inspiration and documentation\n * https://mui.com/material-ui/getting-started/overview/\n */\nfunction ComboBox({\n id,\n title,\n isDisabled = false,\n isClearable = true,\n hasError = false,\n isFullWidth = false,\n width,\n options = [],\n className,\n value,\n onChange,\n onFocus,\n onBlur,\n getOptionLabel,\n}: ComboBoxProps) {\n return (\n \n id={id}\n disablePortal\n disabled={isDisabled}\n disableClearable={!isClearable}\n fullWidth={isFullWidth}\n options={options}\n className={`papi-combo-box ${hasError ? 'error' : ''} ${className ?? ''}`}\n value={value}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n getOptionLabel={getOptionLabel}\n renderInput={(props) => (\n \n )}\n />\n );\n}\n\nexport default ComboBox;\n","import { SyntheticEvent, useEffect, useState } from 'react';\nimport { FormControlLabel } from '@mui/material';\nimport ComboBox from '@/components/combo-box.component';\n\nexport type ChapterRangeSelectorProps = {\n handleSelectStartChapter: (chapter: number) => void;\n handleSelectEndChapter: (chapter: number) => void;\n isDisabled?: boolean;\n chapterCount: number;\n};\n\nexport default function ChapterRangeSelector({\n handleSelectStartChapter,\n handleSelectEndChapter,\n isDisabled = false,\n chapterCount,\n}: ChapterRangeSelectorProps) {\n const [startChapter, setStartChapter] = useState(1);\n const [endChapter, setEndChapter] = useState(chapterCount);\n const [chapterOptions, setChapterOptions] = useState(\n Array.from({ length: chapterCount }, (_, i) => i + 1),\n );\n\n useEffect(() => {\n setStartChapter(1);\n handleSelectStartChapter(1);\n setEndChapter(chapterCount);\n handleSelectEndChapter(chapterCount);\n setChapterOptions(Array.from({ length: chapterCount }, (_, i) => i + 1));\n }, [chapterCount, handleSelectEndChapter, handleSelectStartChapter]);\n\n const onChangeStartChapter = (_event: SyntheticEvent, value: number) => {\n setStartChapter(value);\n handleSelectStartChapter(value);\n if (value > endChapter) {\n setEndChapter(value);\n handleSelectEndChapter(value);\n }\n };\n\n const onChangeEndChapter = (_event: SyntheticEvent, value: number) => {\n setEndChapter(value);\n handleSelectEndChapter(value);\n if (value < startChapter) {\n setStartChapter(value);\n handleSelectStartChapter(value);\n }\n };\n\n return (\n <>\n onChangeStartChapter(e, value as number)}\n className=\"book-selection-chapter\"\n key=\"start chapter\"\n isClearable={false}\n options={chapterOptions}\n getOptionLabel={(option) => option.toString()}\n value={startChapter}\n isDisabled={isDisabled}\n />\n }\n label=\"Chapters\"\n labelPlacement=\"start\"\n />\n onChangeEndChapter(e, value as number)}\n className=\"book-selection-chapter\"\n key=\"end chapter\"\n isClearable={false}\n options={chapterOptions}\n getOptionLabel={(option) => option.toString()}\n value={endChapter}\n isDisabled={isDisabled}\n />\n }\n label=\"to\"\n labelPlacement=\"start\"\n />\n \n );\n}\n","enum LabelPosition {\n After = 'after',\n Before = 'before',\n Above = 'above',\n Below = 'below',\n}\n\nexport default LabelPosition;\n","import { FormLabel, Checkbox as MuiCheckbox } from '@mui/material';\nimport { ChangeEvent } from 'react';\nimport '@/components/checkbox.component.css';\nimport LabelPosition from '@/components/label-position.model';\n\nexport type CheckboxProps = {\n /** Optional unique identifier */\n id?: string;\n /** If `true`, the component is checked. */\n isChecked?: boolean;\n /**\n * If specified, the label that will appear associated with the checkbox.\n *\n * @default '' (no label will be shown)\n */\n labelText?: string;\n /**\n * Indicates the position of the label relative to the checkbox.\n *\n * @default 'after'\n */\n labelPosition?: LabelPosition;\n /**\n * If `true`, the component is in the indeterminate state.\n *\n * @default false\n */\n isIndeterminate?: boolean;\n /** If `true`, the component is checked by default. */\n isDefaultChecked?: boolean;\n /**\n * Enabled status of switch\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * True when (input related to) switch is erroneous\n *\n * @default false\n */\n hasError?: boolean;\n /** Additional css classes to help with unique styling of the switch */\n className?: string;\n /**\n * Callback fired when the state is changed.\n *\n * @param event The event source of the callback. You can pull out the new value by accessing\n * event.target.value (string). You can pull out the new checked state by accessing\n * event.target.checked (boolean).\n */\n onChange?: (event: ChangeEvent) => void;\n};\n\n/* function CheckboxContainer({ labelText? = '', isDisabled : boolean, hasError : boolean, children? }) {\n return (\n \n {children}\n labelText\n \n );\n} */\n\n/** Primary UI component for user interaction */\nfunction Checkbox({\n id,\n isChecked,\n labelText = '',\n labelPosition = LabelPosition.After,\n isIndeterminate = false,\n isDefaultChecked,\n isDisabled = false,\n hasError = false,\n className,\n onChange,\n}: CheckboxProps) {\n const checkBox = (\n \n );\n\n let result;\n\n if (labelText) {\n const preceding =\n labelPosition === LabelPosition.Before || labelPosition === LabelPosition.Above;\n\n const labelSpan = (\n \n {labelText}\n \n );\n\n const labelIsInline =\n labelPosition === LabelPosition.Before || labelPosition === LabelPosition.After;\n\n const label = labelIsInline ? labelSpan :
{labelSpan}
;\n\n const checkBoxElement = labelIsInline ? checkBox :
{checkBox}
;\n\n result = (\n \n {preceding && label}\n {checkBoxElement}\n {!preceding && label}\n \n );\n } else {\n result = checkBox;\n }\n return result;\n}\n\nexport default Checkbox;\n","import Checkbox from '@/components/checkbox.component';\nimport '@/components/checklist.component.css';\n\nexport type ChecklistProps = {\n /** Optional string representing the id attribute of the fieldset element */\n id?: string;\n /** Optional string representing CSS class name(s) for styling */\n className?: string;\n /** Optional string representing legend for fieldset element */\n legend?: string;\n /** Array of strings representing the legend text for the fieldset element */\n listItems: string[];\n /** Array of strings representing items to be displayed as checkboxes in the checklist */\n selectedListItems: string[];\n /** Function that takes a string param and is called when a checkbox item is selected or deselected */\n handleSelectListItem: (item: string) => void;\n /**\n * Optional function that takes a string param and returns a string representing the label text\n * for the checkbox associated with that item\n */\n createLabel?: (item: string) => string;\n};\n\n/**\n * Renders a list of checkboxes wrapped in a fieldset element. Each checkbox corresponds to an item\n * from the `listItems` array.\n */\nexport default function Checklist({\n id,\n className,\n legend,\n listItems,\n selectedListItems,\n handleSelectListItem,\n createLabel,\n}: ChecklistProps) {\n return (\n
\n {legend && {legend}}\n {listItems.map((item) => (\n handleSelectListItem(item)}\n />\n ))}\n
\n );\n}\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof propValue === 'function' && !isClassComponent(propValue)) {\n warningHint = 'Did you accidentally provide a plain function component instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element type that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nexport default chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return _extends({}, propTypes, {\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n });\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { ForwardRef, Memo } from 'react-is';\n\n// Simplified polyfill for IE11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nconst fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\nexport function getFunctionName(fn) {\n const match = `${fn}`.match(fnNameMatchRegex);\n const name = match && match[1];\n return name || '';\n}\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE11 support\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null) {\n return null;\n }\n if (propValue && propValue.nodeType !== 1) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n }\n return null;\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","export default function deprecatedPropType(validator, reason) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return (props, propName, componentName, location, propFullName) => {\n const componentNameSafe = componentName || '<>';\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The ${location} \\`${propFullNameSafe}\\` of ` + `\\`${componentNameSafe}\\` is deprecated. ${reason}`);\n }\n return null;\n };\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n var _muiName, _element$type;\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from '../ownerDocument';\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example
\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The prop \\`${propFullNameSafe}\\` is not supported. Please remove it.`);\n }\n return null;\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from '../useLazyRef/useLazyRef';\nimport useOnMount from '../useOnMount/useOnMount';\nexport class Timeout {\n constructor() {\n this.currentId = null;\n this.clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n this.disposeEffect = () => {\n return this.clear;\n };\n }\n static create() {\n return new Timeout();\n }\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from '../useTimeout/useTimeout';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n hadFocusVisibleRecentlyTimeout.start(100, () => {\n hadFocusVisibleRecently = false;\n });\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/488fd8afc535ca3a6ad4dc581f5e89217b6a36ac/js/src/util/scrollbar.js#L14-L18\nexport default function getScrollbarSize(doc) {\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n const documentWidth = doc.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n}","export function getTypeByValue(value) {\n const valueType = typeof value;\n switch (valueType) {\n case 'number':\n if (Number.isNaN(value)) {\n return 'NaN';\n }\n if (!Number.isFinite(value)) {\n return 'Infinity';\n }\n if (value !== Math.floor(value)) {\n return 'float';\n }\n return 'number';\n case 'object':\n if (value === null) {\n return 'null';\n }\n return value.constructor.name;\n default:\n return valueType;\n }\n}\n\n// IE 11 support\nfunction ponyfillIsInteger(x) {\n // eslint-disable-next-line no-restricted-globals\n return typeof x === 'number' && isFinite(x) && Math.floor(x) === x;\n}\nconst isInteger = Number.isInteger || ponyfillIsInteger;\nfunction requiredInteger(props, propName, componentName, location) {\n const propValue = props[propName];\n if (propValue == null || !isInteger(propValue)) {\n const propType = getTypeByValue(propValue);\n return new RangeError(`Invalid ${location} \\`${propName}\\` of type \\`${propType}\\` supplied to \\`${componentName}\\`, expected \\`integer\\`.`);\n }\n return null;\n}\nfunction validator(props, propName, ...other) {\n const propValue = props[propName];\n if (propValue === undefined) {\n return null;\n }\n return requiredInteger(props, propName, ...other);\n}\nfunction validatorNoop() {\n return null;\n}\nvalidator.isRequired = requiredInteger;\nvalidatorNoop.isRequired = validatorNoop;\nexport default process.env.NODE_ENV === 'production' ? validatorNoop : validator;","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","import { globalStateClasses } from '@mui/utils/generateUtilityClass';\nconst GLOBAL_CLASS_PREFIX = 'base';\nfunction buildStateClass(state) {\n return `${GLOBAL_CLASS_PREFIX}--${state}`;\n}\nfunction buildSlotClass(componentName, slot) {\n return `${GLOBAL_CLASS_PREFIX}-${componentName}-${slot}`;\n}\nexport function generateUtilityClass(componentName, slot) {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? buildStateClass(globalStateClass) : buildSlotClass(componentName, slot);\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import { generateUtilityClass } from '../generateUtilityClass';\nexport function generateUtilityClasses(componentName, slots) {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot);\n });\n return result;\n}","'use client';\n\n/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp, elementAcceptingRef, unstable_useForkRef as useForkRef, unstable_ownerDocument as ownerDocument } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n// Inspired by https://github.com/focus-trap/tabbable\nconst candidatesSelector = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'].join(',');\nfunction getTabIndex(node) {\n const tabindexAttr = parseInt(node.getAttribute('tabindex') || '', 10);\n if (!Number.isNaN(tabindexAttr)) {\n return tabindexAttr;\n }\n\n // Browsers do not return `tabIndex` correctly for contentEditable nodes;\n // https://bugs.chromium.org/p/chromium/issues/detail?id=661108&q=contenteditable%20tabindex&can=2\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n // in Chrome,
,
\n );\n}\n\nexport default CharacterInventory;\n","import { PlatformEvent, PlatformEventHandler } from 'platform-bible-utils';\nimport { useEffect } from 'react';\n\n/**\n * Adds an event handler to an event so the event handler runs when the event is emitted. Use\n * `papi.network.getNetworkEvent` to use a networked event with this hook.\n *\n * @param event The event to subscribe to.\n *\n * - If event is a `PlatformEvent`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEvent = (\n event: PlatformEvent | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n useEffect(() => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return () => {};\n\n const unsubscriber = event(eventHandler);\n return () => {\n unsubscriber();\n };\n }, [event, eventHandler]);\n};\nexport default useEvent;\n","import { useCallback, useEffect } from 'react';\nimport { PlatformEvent, PlatformEventAsync, PlatformEventHandler } from 'platform-bible-utils';\nimport usePromise from './use-promise.hook';\n\nconst noopUnsubscriber = () => false;\n\n/**\n * Adds an event handler to an asynchronously subscribing/unsubscribing event so the event handler\n * runs when the event is emitted. Use `papi.network.getNetworkEvent` to use a networked event with\n * this hook.\n *\n * @param event The asynchronously (un)subscribing event to subscribe to.\n *\n * - If event is a `PlatformEvent` or `PlatformEventAsync`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEventAsync = (\n event: PlatformEvent | PlatformEventAsync | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n // Subscribe to the event asynchronously\n const [unsubscribe] = usePromise(\n useCallback(async () => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return noopUnsubscriber;\n\n // Wrap subscribe and unsubscribe in promises to allow normal events to be used as well\n const unsub = await Promise.resolve(event(eventHandler));\n return async () => unsub();\n }, [eventHandler, event]),\n noopUnsubscriber,\n // We want the unsubscriber to return to default value immediately upon changing subscription\n // So the useEffect below will unsubscribe asap\n { preserveValue: false },\n );\n\n // Unsubscribe from the event asynchronously (but we aren't awaiting the unsub)\n useEffect(() => {\n return () => {\n if (unsubscribe !== noopUnsubscriber) {\n unsubscribe();\n }\n };\n }, [unsubscribe]);\n};\n\nexport default useEventAsync;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Card = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCard.displayName = 'Card';\n\nconst CardHeader = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}\n \n ),\n);\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n

\n));\nCardDescription.displayName = 'CardDescription';\n\nconst CardContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n

\n ),\n);\nCardContent.displayName = 'CardContent';\n\nconst CardFooter = React.forwardRef>(\n ({ className, ...props }, ref) => (\n
\n ),\n);\nCardFooter.displayName = 'CardFooter';\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\n","import React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst alertVariants = cva(\n 'pr-relative pr-w-full pr-rounded-lg pr-border pr-p-4 [&>svg~*]:pr-pl-7 [&>svg+div]:pr-translate-y-[-3px] [&>svg]:pr-absolute [&>svg]:pr-left-4 [&>svg]:pr-top-4 [&>svg]:pr-text-foreground',\n {\n variants: {\n variant: {\n default: 'pr-bg-background pr-text-foreground',\n destructive:\n 'pr-border-destructive/50 pr-text-destructive dark:pr-border-destructive [&>svg]:pr-text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes & VariantProps\n>(({ className, variant, ...props }, ref) => (\n
\n));\nAlert.displayName = 'Alert';\n\nconst AlertTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}{' '}\n \n ),\n);\nAlertTitle.displayName = 'AlertTitle';\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
\n));\nAlertDescription.displayName = 'AlertDescription';\n\nexport { Alert, AlertTitle, AlertDescription };\n","import React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Slider = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n \n \n \n));\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider };\n","import React from 'react';\nimport * as SwitchPrimitives from '@radix-ui/react-switch';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Switch = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n"],"names":["P","R","t","e","s","n","N","B","O","S","K","g","k","x","T","X","V","w","L","G","A","H","C","I","y","q","U","m","l","h","c","E","D","i","a","o","u","v","f","d","b","p","J","twMergeCustom","extendTailwindMerge","cn","inputs","clsx","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","Input","type","BookChapterInput","forwardRef","handleSearch","handleKeyDown","handleOnClick","handleSubmit","ShadInput","event","History","ChapterSelect","handleSelectChapter","endChapter","activeChapter","highlightedChapter","handleHighlightedChapter","chapters","_","handleMouse","useCallback","chapterNumber","chapter","BookMenuItem","bookId","handleSelectBook","isSelected","handleHighlightBook","bookType","ShadDropdownMenuItem","Canon","GoToMenuItem","handleSort","handleLocationHistory","handleBookmarks","ShadDropdownMenuLabel","ArrowDownWideNarrow","Clock","Bookmark","ALL_BOOK_IDS","BOOK_TYPE_LABELS","BOOK_TYPE_ARRAY","SCROLL_OFFSET","SEARCH_QUERY_FORMATS","fetchGroupedBooks","fetchEndChapter","getChaptersForBook","getAllEnglishNames","isValidBookEnglishName","bookName","getBookIdFromEnglishName","formattedBookName","BookChapterControl","scrRef","searchQuery","setSearchQuery","useState","selectedBookId","setSelectedBookId","setHighlightedChapter","highlightedBookId","setHighlightedBookId","isContentOpen","setIsContentOpen","isContentOpenDelayed","setIsContentOpenDelayed","inputRef","useRef","contentRef","menuItemRef","fetchFilteredBooks","englishNameLowerCase","normalizedQuery","handleSearchInput","searchString","shouldPreventAutoClosing","controlMenuState","open","updateReference","shouldClose","verse","handleInputSubmit","format","matches","book","englishName","handleKeyDownInput","handleKeyDownContent","key","handleKeyDownMenuItem","chapterOffSet","useEffect","useLayoutEffect","scrollTimeout","scrollPosition","ShadDropdownMenu","ShadDropdownMenuTrigger","ShadDropdownMenuContent","bookTypeIndex","element","ShadDropdownMenuSeparator","Table","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","buttonVariants","cva","Button","variant","size","asChild","Comp","Slot","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator","DataTablePagination","table","value","pageSize","ArrowLeftIcon","ChevronLeftIcon","ChevronRightIcon","ArrowRightIcon","DataTableViewOptions","FilterIcon","column","DataTable","columns","data","enablePagination","showPaginationControls","showColumnVisibilityControls","onRowClickHandler","sorting","setSorting","columnFilters","setColumnFilters","columnVisibility","setColumnVisibility","rowSelection","setRowSelection","useReactTable","getCoreRowModel","getPaginationRowModel","getSortedRowModel","getFilteredRowModel","headerGroup","header","flexRender","_a","row","cell","ComboBox","id","title","isDisabled","isClearable","hasError","isFullWidth","width","options","onChange","onFocus","onBlur","getOptionLabel","MuiComboBox","MuiTextField","ChapterRangeSelector","handleSelectStartChapter","handleSelectEndChapter","chapterCount","startChapter","setStartChapter","setEndChapter","chapterOptions","setChapterOptions","onChangeStartChapter","_event","onChangeEndChapter","Fragment","FormControlLabel","option","LabelPosition","Checkbox","isChecked","labelText","labelPosition","isIndeterminate","isDefaultChecked","checkBox","MuiCheckbox","result","preceding","labelSpan","labelIsInline","label","checkBoxElement","FormLabel","Checklist","legend","listItems","selectedListItems","handleSelectListItem","createLabel","item","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","_extends","r","z","reactIs_production_min","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","typeOf","object","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development","reactIsModule","require$$0","require$$1","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","order2","test3","letter","objectAssign","from","to","symbols","ReactPropTypesSecret","ReactPropTypesSecret_1","has","printWarning","loggedTypeFailures","text","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1","ReactIs","assign","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","createAnyTypeChecker","createArrayOfTypeChecker","createElementTypeChecker","createElementTypeTypeChecker","createInstanceTypeChecker","createNodeChecker","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","createShapeTypeChecker","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propName","propFullName","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","iterator","step","entry","isSymbol","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","chainPropTypes","propType1","propType2","args","isPlainObject","prototype","deepClone","output","deepmerge","isClassComponent","elementType","acceptingRef","safePropName","warningHint","elementAcceptingRef","PropTypes","elementAcceptingRef$1","elementTypeAcceptingRef","elementTypeAcceptingRef$1","specialProperty","exactProp","propTypes","unsupportedProps","prop","formatMuiErrorMessage","code","url","REACT_SERVER_CONTEXT_TYPE","REACT_OFFSCREEN_TYPE","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","SuspenseList","hasWarnedAboutDeprecatedIsConcurrentMode","isSuspenseList","fnNameMatchRegex","getFunctionName","fn","match","getFunctionComponentName","Component","fallback","getWrappedName","outerType","innerType","wrapperName","functionName","getDisplayName","HTMLElementType","refType","refType$1","capitalize","string","_formatMuiErrorMessage","createChainedFunction","funcs","acc","func","debounce","wait","timeout","debounced","later","deprecatedPropType","validator","reason","componentNameSafe","propFullNameSafe","isMuiElement","muiNames","_muiName","_element$type","ownerDocument","node","ownerWindow","requirePropFactory","componentNameInError","prevPropTypes","requiredProp","defaultTypeChecker","typeCheckerResult","setRef","useEnhancedEffect","useEnhancedEffect$1","globalId","useGlobalId","idOverride","defaultId","setDefaultId","maybeReactUseId","useId","reactId","unsupportedProp","useControlled","controlled","defaultProp","name","state","isControlled","valueState","setValue","defaultValue","setValueIfUncontrolled","newValue","useEventCallback","useForkRef","refs","instance","UNINITIALIZED","useLazyRef","init","initArg","EMPTY","useOnMount","Timeout","delay","useTimeout","hadKeyboardEvent","hadFocusVisibleRecently","hadFocusVisibleRecentlyTimeout","inputTypesWhitelist","focusTriggersKeyboardModality","tagName","handlePointerDown","handleVisibilityChange","prepare","doc","isFocusVisible","useIsFocusVisible","isFocusVisibleRef","handleBlurVisible","handleFocusVisible","getScrollbarSize","documentWidth","getTypeByValue","valueType","ponyfillIsInteger","isInteger","requiredInteger","other","validatorNoop","integerPropType","resolveProps","defaultProps","defaultSlotProps","slotProps","slotPropName","composeClasses","slots","getUtilityClass","classes","slot","utilityClass","defaultGenerator","createClassNameGenerator","generate","generator","ClassNameGenerator","ClassNameGenerator$1","globalStateClasses","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","clamp","min","max","isHostComponent","appendOwnerState","otherProps","ownerState","defaultContextValue","ClassNameConfiguratorContext","useClassNamesOverride","disableDefaultClasses","extractEventHandlers","excludeKeys","resolveComponentProps","componentProps","slotState","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","_excluded","useSlotProps","_parameters$additiona","skipResolvingSlotProps","rest","resolvedComponentsProps","mergedProps","internalRef","GLOBAL_CLASS_PREFIX","buildStateClass","buildSlotClass","candidatesSelector","getTabIndex","tabindexAttr","isNonTabbableRadio","getRadio","selector","roving","isNodeMatchingSelectorFocusable","defaultGetTabbable","root","regularTabNodes","orderedTabNodes","nodeTabIndex","defaultIsEnabled","FocusTrap","disableAutoFocus","disableEnforceFocus","disableRestoreFocus","getTabbable","isEnabled","ignoreNextEnforceFocus","sentinelStart","sentinelEnd","nodeToRestore","reactFocusEventTarget","activated","rootRef","handleRef","lastKeydown","loopFocus","nativeEvent","contain","rootElement","tabbable","_lastKeydown$current","_lastKeydown$current2","isShiftTab","focusNext","focusPrevious","interval","childrenPropsHandler","handleFocusSentinel","_jsxs","_jsx","getContainer","container","forwardedRef","disablePortal","mountNode","setMountNode","newProps","ReactDOM","isOverflowing","ariaHidden","show","getPaddingRight","isAriaHiddenForbiddenOnElement","isForbiddenTagName","isInputHidden","ariaHiddenSiblings","mountElement","currentElement","elementsToExclude","blacklist","isNotExcludedElement","isNotForbiddenElement","findIndexOf","items","callback","idx","index","handleContainer","containerInfo","restoreStyle","scrollbarSize","fixedElements","scrollContainer","parent","containerWindow","el","property","getHiddenSiblings","hiddenSiblings","ModalManager","modal","modalIndex","containerIndex","ariaHiddenState","nextTop","getHasTransition","defaultManager","useModal","disableEscapeKeyDown","disableScrollLock","manager","closeAfterTransition","onTransitionEnter","onTransitionExited","onClose","mountNodeRef","modalRef","exited","setExited","hasTransition","ariaHiddenProp","getDoc","getModal","handleMounted","handleOpen","resolvedContainer","isTopModal","handlePortalRef","handleClose","createHandleKeyDown","otherHandlers","_otherHandlers$onKeyD","createHandleBackdropClick","_otherHandlers$onClic","propsEventHandlers","externalEventHandlers","handleEnter","handleExited","top","bottom","right","left","auto","basePlacements","start","end","clippingParents","viewport","popper","reference","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","getWindow","OwnElement","isHTMLElement","isShadowRoot","applyStyles","_ref","style","attributes","effect","_ref2","initialStyles","styleProperties","attribute","applyStyles$2","getBasePlacement","round","getUAString","uaData","isLayoutViewport","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","visualViewport","addVisualOffsets","height","getLayoutRect","contains","child","rootNode","next","getComputedStyle","isTableElement","getDocumentElement","getParentNode","getTrueOffsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","css","getOffsetParent","window","offsetParent","getMainAxisFromPlacement","within","mathMax","mathMin","withinMaxClamp","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","keys","hashMap","toPaddingObject","padding","arrow","_state$modifiersData$","arrowElement","popperOffsets","basePlacement","axis","isVertical","len","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","center","offset","axisProp","_options$element","arrow$1","getVariation","unsetSides","roundOffsetsByDPR","win","dpr","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles$1","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","eventListeners","hash","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","scrollTop","getWindowScrollBarX","getViewportRect","strategy","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","rect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_options$mainAxis","checkMainAxis","_options$altAxis","checkAltAxis","specifiedFallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","fallbackPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","numberOfChecks","_loop","_i","fittingPlacement","_ret","flip$1","getSideOffsets","preventedOffsets","isAnySideFullyClipped","side","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide$1","distanceAndSkiddingToXY","rects","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset$1","popperOffsets$1","getAltAxis","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","altAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow$1","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","documentElement","order","modifiers","map","visited","modifier","sort","requires","dep","depModifier","orderModifiers","orderedModifiers","phase","pending","resolve","mergeByName","merged","current","existing","DEFAULT_OPTIONS","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptionsAction","cleanupModifierEffects","runModifierEffects","_state$elements","_state$orderedModifie","_state$orderedModifie2","_ref$options","cleanupFn","noopFn","createPopper","COMPONENT_NAME","getPopperUtilityClass","_excluded2","flipPlacement","direction","resolveAnchorEl","anchorEl","isVirtualElement","useUtilityClasses","defaultPopperOptions","PopperTooltip","_slots$root","initialPlacement","popperOptions","popperRefProp","TransitionProps","tooltipRef","ownRef","popperRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","box","popperModifiers","childProps","Root","rootProps","Popper","containerProp","keepMounted","transition","resolvedAnchorEl","display","transitionProps","sortBreakpointsValues","breakpointsAsArray","breakpoint1","breakpoint2","obj","createBreakpoints","breakpoints","unit","sortedValues","up","down","between","endIndex","only","not","keyIndex","shape","shape$1","responsivePropType","responsivePropType$1","merge","defaultBreakpoints","handleBreakpoints","styleFromPropValue","theme","themeBreakpoints","breakpoint","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","_breakpointsInput$key","breakpointStyleKey","removeUnusedBreakpoints","breakpointKeys","breakpointOutput","getPath","path","checkVars","getStyleValue","themeMapping","transform","propValueFinal","userValue","cssProperty","themeKey","memoize","cache","arg","properties","directions","aliases","getCssProperties","dir","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","_getPath","themeSpacing","abs","createUnarySpacing","getValue","transformer","transformed","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","createSpacing","spacingInput","spacing","argsInput","argument","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borderRadius","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","paletteTransform","color","bgcolor","backgroundColor","sizingTransform","maxWidth","_props$theme","_props$theme2","breakpointsValues","minWidth","maxHeight","minHeight","boxSizing","defaultSxConfig","defaultSxConfig$1","objectsHaveSameKeys","objects","union","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","config","styleFunctionSx","_theme$unstable_sxCon","sx","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","styleKey","styleFunctionSx$1","createTheme","paletteInput","shapeInput","muiTheme","isObjectEmpty","useTheme","defaultTheme","contextTheme","ThemeContext","systemDefaultTheme","useThemeWithoutDefault","_excluded3","isEmpty","isStringTag","tag","shouldForwardProp","lowercaseFirstLetter","resolveTheme","themeId","defaultOverridesResolver","processStyleArg","callableStyle","resolvedStylesArg","resolvedStyle","variants","isMatch","createStyled","input","rootShouldForwardProp","slotShouldForwardProp","systemSx","inputOptions","processStyles","componentSlot","inputSkipVariantsResolver","inputSkipSx","overridesResolver","skipVariantsResolver","skipSx","shouldForwardPropOption","defaultStyledResolver","styledEngineStyled","transformStyleArg","stylesArg","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","styleOverrides","resolvedStyleOverrides","slotKey","slotStyle","_theme$components","themeVariants","numOfCustomFnsApplied","placeholders","displayName","getThemeProps","params","useThemeProps","clampWrapper","hexToRgb","re","colors","decomposeColor","marker","colorSpace","recomposeColor","hslToRgb","rgb","getLuminance","getContrastRatio","foreground","background","lumA","lumB","alpha","darken","coefficient","lighten","createMixins","mixins","common","common$1","grey","grey$1","purple","purple$1","red","red$1","orange","orange$1","blue","blue$1","lightBlue","lightBlue$1","green","green$1","light","dark","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","getDefaultPrimary","mode","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","palette","contrastThreshold","primary","secondary","info","success","warning","getContrastText","contrastText","contrast","augmentColor","mainShade","lightShade","darkShade","modes","caseAllCaps","defaultFontFamily","createTypography","typography","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem2","coef","pxToRem","buildVariant","fontWeight","lineHeight","letterSpacing","casing","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadow","px","shadows","shadows$1","easing","duration","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","isString","isNumber","animatedProp","zIndex","zIndex$1","mixinsInput","transitionsInput","typographyInput","systemTheme","systemCreateTheme","stateClasses","component","stateClass","defaultTheme$1","THEME_ID","styled","styled$1","useThemeSystem","systemUseThemeProps","_setPrototypeOf","_inheritsLoose","subClass","superClass","setPrototypeOf","timeoutsShape","TransitionGroupContext","forceReflow","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","context","_this","parentGroup","appear","initialStatus","prevState","nextIn","_proto","prevProps","nextStatus","status","exit","enter","mounting","_this2","appearing","maybeNode","maybeAppearing","timeouts","enterTimeout","_this3","nextState","_this4","active","handler","doesNotHaveTimeoutOrListener","maybeNextCallback","_this$props","pt","noop","Transition$1","reflow","getTransitionProps","_style$transitionDura","_style$transitionTimi","getScale","isWebKit154","Grow","addEndListener","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","TransitionComponent","timer","autoTimeout","nodeRef","normalizedTransitionCallback","maybeIsAppearing","handleEntering","isAppearing","transitionDuration","transitionTimingFunction","handleEntered","handleExiting","handleExit","handleAddEndListener","Grow$1","getOverlayAlpha","elevation","alphaValue","getOverlayAlpha$1","PopperRoot","BasePopper","inProps","components","componentsProps","RootComponent","Popper$1","getTooltipUtilityClass","tooltipClasses","tooltipClasses$1","disableInteractive","touch","TooltipPopper","TooltipTooltip","TooltipArrow","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","Tooltip","_slots$popper","_slots$transition","_slots$tooltip","_slots$arrow","_slotProps$popper","_ref6","_slotProps$popper2","_slotProps$transition","_slotProps$tooltip","_ref7","_slotProps$tooltip2","_slotProps$arrow","_ref8","_slotProps$arrow2","childrenProp","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","idProp","leaveDelay","leaveTouchDelay","onOpen","openProp","PopperComponentProp","PopperProps","TransitionComponentProp","isRtl","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","openState","setOpenState","prevUserSelect","stopTouchInteraction","handleLeave","focusVisibleRef","setChildIsFocusVisible","handleBlur","handleFocus","detectTouchStart","childrenProps","handleMouseOver","handleMouseLeave","handleTouchStart","handleTouchEnd","handleMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","_PopperProps$popperOp","tooltipModifiers","PopperComponent","TooltipComponent","ArrowComponent","popperProps","tooltipProps","tooltipArrowProps","TransitionPropsInner","Tooltip$1","_interopRequireDefault","module","getSvgIconUtilityClass","SvgIconRoot","_theme$transitions","_theme$transitions$cr","_theme$transitions2","_theme$typography","_theme$typography$pxT","_theme$typography2","_theme$typography2$px","_theme$typography3","_theme$typography3$px","_palette$ownerState$c","_palette","_palette2","_palette3","SvgIcon","htmlColor","inheritViewBox","titleAccess","viewBox","hasSvgAsChild","more","SvgIcon$1","createSvgIcon","unstable_ClassNameGenerator","exports","_utils","ArrowRight","default_1","_createSvgIcon","_jsxRuntime","getIcon","icon","menuLabel","leading","MuiListItemIcon","MenuItem","onClick","tooltip","allowForLeadingIcons","iconPathBefore","iconPathAfter","hasAutoFocus","isDense","isSubMenuParent","hasDisabledGutters","hasDivider","focusVisibleClassName","menuItem","MuiMenuItem","MuiListItemText","getAllGroups","menuDefinition","SubMenu","setAnchorEl","parentMenuItem","parentItemProps","handleParentMenuItemClick","renderSubMenuItems","includedGroups","group","GroupedMenuItemList","Menu","getOrderedGroupItems","groupId","allItems","menuProps","commandHandler","useMemo","groupsToInclude","sortedGroups","itemArray","allowSpaceForLeadingIcons","createMenuItemProps","isLastItemInGroup","firstItem","divKey","itemInfo","menuItemProps","TopLevelMenu","columnId","MenuColumn","metadata","Grid","List","GridMenu","multiColumnMenu","sortedColumns","columnNumbers","columnName","col","ListContext","ListContext$1","getListUtilityClass","disablePadding","dense","subheader","ListRoot","List$1","nextItem","disableListWrap","previousItem","textCriteriaMatches","nextFocus","textCriteria","moveFocus","currentFocus","disabledItemsFocusable","traversalFunction","wrappedOnce","nextFocusDisabled","MenuList","actions","autoFocus","autoFocusItem","onKeyDown","listRef","textCriteriaRef","containerElement","noExplicitWidth","criteria","lowerKey","currTime","keepFocusOnCurrent","activeItemIndex","newChildProps","MenuList$1","Fade","defaultTimeout","Fade$1","getBackdropUtilityClass","invisible","BackdropRoot","Backdrop","_slotProps$root","rootSlotProps","Backdrop$1","getModalUtilityClass","ModalRoot","ModalBackdrop","Modal","_slots$backdrop","_slotProps$backdrop","BackdropComponent","BackdropProps","hideBackdrop","onBackdropClick","propsWithDefaults","getRootProps","getBackdropProps","portalRef","RootSlot","BackdropSlot","backdropSlotProps","backdropProps","Modal$1","getPaperUtilityClass","square","PaperRoot","_theme$vars$overlays","Paper","PaperBase","getPopoverUtilityClass","getOffsetTop","vertical","getOffsetLeft","horizontal","getTransformOriginValue","transformOrigin","PopoverRoot","PopoverPaper","Popover","_slotProps$paper","_slots$paper","action","anchorOrigin","anchorPosition","anchorReference","marginThreshold","PaperPropsProp","transitionDurationProp","externalPaperSlotProps","paperRef","handlePaperRef","getAnchorOffset","anchorElement","anchorRect","getTransformOrigin","elemRect","getPositioningStyle","elemTransformOrigin","anchorOffset","heightThreshold","widthThreshold","diff","isPositioned","setIsPositioned","setPositioningStyles","positioning","handleResize","PaperSlot","paperProps","_useSlotProps","rootSlotPropsProp","Popover$1","getMenuUtilityClass","RTL_ORIGIN","LTR_ORIGIN","MenuRoot","MenuPaper","MenuMenuList","disableAutoFocusItem","MenuListProps","PaperProps","PopoverClasses","menuListActionsRef","handleListKeyDown","paperExternalSlotProps","paperSlotProps","Menu$1","ContextMenu","contextMenuPosition","setContextMenuPosition","handleContextMenu","MenuItemList","MenuIcon","getUsePromiseOptionsDefaults","usePromise","promiseFactoryCallback","defaultValueRef","optionsDefaultedRef","isLoading","setIsLoading","promiseIsCurrent","HamburgerMenuButton","menuProvider","normalMenu","fullMenu","containerRef","ariaLabelPrefix","isMenuOpen","setMenuOpen","showFullMenu","setShowFullMenu","handleMenuItemClick","handleMenuButtonClick","prevIsOpen","isOpening","menuCommandHandler","command","setOffset","normalMenuData","fullMenuData","menu","IconButton","Drawer","isTooltipSuppressed","adjustMarginToAlignToEdge","MuiIconButton","labelVariants","Label","LabelPrimitive","TextField","helperText","placeholder","ShadLabel","SearchBar","onSearch","handleInputChange","Slider","orientation","showMarks","valueLabelDisplay","onChangeCommitted","MuiSlider","Snackbar","autoHideDuration","isOpen","ContentProps","newContentProps","MuiSnackbar","Switch","MuiSwitch","Toolbar","AppBar","MuiToolbar","Tabs","TabsPrimitive","TabsList","TabsTrigger","TabsContent","VerticalTabs","VerticalTabsList","VerticalTabsTrigger","VerticalTabsContent","getSortingIcon","sortDirection","ArrowUpIcon","ArrowDownIcon","ArrowUpDownIcon","characterLabel","unicodeValueLabel","countLabel","statusLabel","statusChangeHandler","selectedRows","characters","CircleCheckIcon","CircleXIcon","CircleHelpIcon","InventoryDataTable","tableData","onStatusChange","onSelectCharacter","localizedStrings","rowClickHandler","extractOccurrences","character","scriptureRef","results","lines","currentChapter","currentVerse","line","words","snippet","OccurrencesTable","selectedCharacter","scriptureReference","setScriptureReference","occurrence","setTableData","buildTableData","statusFilter","textFilter","validCharacters","invalidCharacters","characterData","split","characterDataPoint","dataPoint","characterStatus","newCharacter","CharacterInventory","projectId","getSetting","setSetting","getText","allCharacters","approvedCharacters","unapprovedCharacters","unknownCharacters","scopeBook","scopeChapter","scopeVerse","filterText","setValidCharacters","setInvalidCharacters","setText","scope","setScope","setStatusFilter","setTextFilter","inventoryTableData","setInventoryTableData","setSelectedCharacter","prevTableData","tableEntry","prevValidCharacters","newValidCharacters","validChar","prevInvalidCharacters","newInvalidCharacters","invalidChar","newText","newScriptureReference","useEvent","unsubscriber","noopUnsubscriber","useEventAsync","unsubscribe","unsub","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","alertVariants","Alert","AlertTitle","AlertDescription","SliderPrimitive","SwitchPrimitives"],"mappings":"6/BAAA,IAAIA,GAAI,OAAO,eACXC,GAAI,CAACC,EAAGC,EAAGC,IAAMD,KAAKD,EAAIF,GAAEE,EAAGC,EAAG,CAAE,WAAY,GAAI,aAAc,GAAI,SAAU,GAAI,MAAOC,CAAC,CAAE,EAAIF,EAAEC,CAAC,EAAIC,EACzGC,GAAI,CAACH,EAAGC,EAAGC,IAAMH,GAAEC,EAAG,OAAOC,GAAK,SAAWA,EAAI,GAAKA,EAAGC,CAAC,EAW9D,MAAME,GAAI,CACR,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MAEA,MAEA,MAEA,MAEA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MAEA,MAEA,MAEA,MAEA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,KACF,EAAGC,GAAI,CACL,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,KACF,EAAGC,GAAI,CACL,UACA,SACA,YACA,UACA,cACA,SACA,SACA,OACA,WACA,WACA,UACA,UACA,eACA,eACA,OACA,WACA,kBACA,MACA,SACA,WACA,eACA,gBACA,SACA,WACA,eACA,UACA,kBACA,QACA,OACA,OACA,UACA,QACA,QACA,QACA,WACA,YACA,SACA,YACA,UACA,UACA,OACA,OACA,OACA,OACA,SACA,gBACA,gBACA,YACA,YACA,cACA,aACA,kBACA,kBACA,YACA,YACA,QACA,WACA,UACA,QACA,UACA,UACA,SACA,SACA,SACA,OACA,aACA,QACA,SACA,eACA,oBACA,0BACA,SACA,qBACA,sBACA,UACA,qBACA,cACA,cACA,cACA,cACA,mBACA,mBACA,qBACA,YACA,OACA,oBAGA,uBACA,uBACA,sBACA,yBACA,wBACA,qBACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,eACA,cACA,eACA,oBACA,qBACA,0BACA,0BACA,eACA,eACA,YACA,gBACA,cACA,eACA,iBACA,wBACA,mBACA,WACA,QACA,aACA,aACA,aACA,2BACA,4BACA,YACF,EAAGC,GAAIC,KACP,SAASC,GAAET,EAAGC,EAAI,GAAI,CACpB,OAAOA,IAAMD,EAAIA,EAAE,YAAa,GAAGA,KAAKO,GAAIA,GAAEP,CAAC,EAAI,CACrD,CACA,SAASU,GAAEV,EAAG,CACZ,OAAOS,GAAET,CAAC,EAAI,CAChB,CACA,SAASW,GAAEX,EAAG,CACZ,MAAMC,EAAI,OAAOD,GAAK,SAAWS,GAAET,CAAC,EAAIA,EACxC,OAAOC,GAAK,IAAMA,GAAK,EACzB,CACA,SAASW,GAAEZ,EAAG,CACZ,OAAQ,OAAOA,GAAK,SAAWS,GAAET,CA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EACZ,EACD,UAAW,CACT,SAAU,UACV,UAAWA,EACZ,EACD,YAAa,CACX,SAAU,UACV,UAAWA,EACZ,EACD,aAAc,CACZ,SAAU,UACV,UAAWA,EACZ,EACD,WAAY,CACV,SAAU,UACV,UAAWA,EACZ,EACD,YAAa,CACX,SAAU,SACX,EACD,eAAgB,CACd,SAAU,SACX,EACD,iBAAkB,CAChB,SAAU,SACX,EACD,kBAAmB,CACjB,SAAU,SACX,EACD,gBAAiB,CACf,SAAU,SACX,EACD,QAAS,CACP,SAAU,UACV,UAAWA,EACZ,EACD,aAAc,CACZ,SAAU,SACX,EACD,aAAc,CACZ,SAAU,qBACV,MAAOc,EACR,EAED,MAAO,CACL,SAAU,UACV,UAAWa,EACZ,EACD,QAAS,CACP,SAAU,UACV,YAAa,kBACb,UAAWA,EACZ,EACD,gBAAiB,CACf,SAAU,UACV,UAAWA,EACZ,EAED,EAAG,CACD,MAAO9Z,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,QAAS,CACP,MAAOA,EACR,EACD,WAAY,CACV,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,cAAe,CACb,MAAOA,EACR,EACD,YAAa,CACX,MAAOA,EACR,EACD,SAAU,CACR,MAAOA,EACR,EACD,SAAU,CACR,MAAOA,EACR,EACD,cAAe,CACb,MAAOA,EACR,EACD,mBAAoB,CAClB,MAAOA,EACR,EACD,iBAAkB,CAChB,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,kBAAmB,CACjB,MAAOA,EACR,EACD,gBAAiB,CACf,MAAOA,EACR,EACD,EAAG,CACD,MAAO0X,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EAC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,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225]} \ No newline at end of file +{"version":3,"file":"index.cjs","sources":["../../../node_modules/@sillsdev/scripture/dist/index.es.js","../src/utils/shadcn-ui.util.ts","../src/components/shadcn-ui/dropdown-menu.tsx","../src/components/shadcn-ui/input.tsx","../src/components/advanced-components/book-chapter-control/book-chapter-input.component.tsx","../src/components/advanced-components/book-chapter-control/chapter-select.component.tsx","../src/components/advanced-components/book-chapter-control/book-menu-item.component.tsx","../src/components/advanced-components/book-chapter-control/go-to-menu-item.component.tsx","../src/components/advanced-components/book-chapter-control/book-chapter-control.component.tsx","../src/components/shadcn-ui/table.tsx","../src/components/shadcn-ui/button.tsx","../src/components/shadcn-ui/select.tsx","../src/components/advanced-components/data-table/data-table-pagination.component.tsx","../src/components/advanced-components/data-table/data-table-column-toggle.component.tsx","../src/components/advanced-components/data-table/data-table.component.tsx","../src/components/combo-box.component.tsx","../src/components/chapter-range-selector.component.tsx","../src/components/label-position.model.ts","../src/components/checkbox.component.tsx","../src/components/checklist.component.tsx","../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/esm/extends.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/index.js","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/base/utils/isHostComponent.js","../../../node_modules/@mui/base/utils/appendOwnerState.js","../../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/utils/extractEventHandlers.js","../../../node_modules/@mui/base/utils/resolveComponentProps.js","../../../node_modules/@mui/base/utils/omitEventHandlers.js","../../../node_modules/@mui/base/utils/mergeSlotProps.js","../../../node_modules/@mui/base/utils/useSlotProps.js","../../../node_modules/@mui/base/generateUtilityClass/index.js","../../../node_modules/@mui/base/generateUtilityClasses/index.js","../../../node_modules/@mui/base/FocusTrap/FocusTrap.js","../../../node_modules/@mui/base/Portal/Portal.js","../../../node_modules/@mui/base/unstable_useModal/ModalManager.js","../../../node_modules/@mui/base/unstable_useModal/useModal.js","../../../node_modules/@popperjs/core/lib/enums.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../node_modules/@popperjs/core/lib/utils/math.js","../../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../node_modules/@popperjs/core/lib/utils/within.js","../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../node_modules/@popperjs/core/lib/utils/debounce.js","../../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../node_modules/@popperjs/core/lib/createPopper.js","../../../node_modules/@popperjs/core/lib/popper.js","../../../node_modules/@mui/base/Popper/popperClasses.js","../../../node_modules/@mui/base/Popper/Popper.js","../../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/esm/createTheme/shape.js","../../../node_modules/@mui/system/esm/responsivePropType.js","../../../node_modules/@mui/system/esm/merge.js","../../../node_modules/@mui/system/esm/breakpoints.js","../../../node_modules/@mui/system/esm/style.js","../../../node_modules/@mui/system/esm/memoize.js","../../../node_modules/@mui/system/esm/spacing.js","../../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../../node_modules/@mui/system/esm/compose.js","../../../node_modules/@mui/system/esm/borders.js","../../../node_modules/@mui/system/esm/cssGrid.js","../../../node_modules/@mui/system/esm/palette.js","../../../node_modules/@mui/system/esm/sizing.js","../../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../../node_modules/@mui/system/esm/useTheme.js","../../../node_modules/@mui/system/esm/createStyled.js","../../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/esm/colorManipulator.js","../../../node_modules/@mui/material/styles/createMixins.js","../../../node_modules/@mui/material/colors/common.js","../../../node_modules/@mui/material/colors/grey.js","../../../node_modules/@mui/material/colors/purple.js","../../../node_modules/@mui/material/colors/red.js","../../../node_modules/@mui/material/colors/orange.js","../../../node_modules/@mui/material/colors/blue.js","../../../node_modules/@mui/material/colors/lightBlue.js","../../../node_modules/@mui/material/colors/green.js","../../../node_modules/@mui/material/styles/createPalette.js","../../../node_modules/@mui/material/styles/createTypography.js","../../../node_modules/@mui/material/styles/shadows.js","../../../node_modules/@mui/material/styles/createTransitions.js","../../../node_modules/@mui/material/styles/zIndex.js","../../../node_modules/@mui/material/styles/createTheme.js","../../../node_modules/@mui/material/styles/defaultTheme.js","../../../node_modules/@mui/material/styles/identifier.js","../../../node_modules/@mui/material/styles/styled.js","../../../node_modules/@mui/material/styles/useTheme.js","../../../node_modules/@mui/material/styles/useThemeProps.js","../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../node_modules/react-transition-group/esm/config.js","../../../node_modules/react-transition-group/esm/utils/PropTypes.js","../../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../../node_modules/react-transition-group/esm/utils/reflow.js","../../../node_modules/react-transition-group/esm/Transition.js","../../../node_modules/@mui/material/transitions/utils.js","../../../node_modules/@mui/material/Grow/Grow.js","../../../node_modules/@mui/material/styles/getOverlayAlpha.js","../../../node_modules/@mui/material/Popper/Popper.js","../../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../../node_modules/@mui/material/Tooltip/Tooltip.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@mui/material/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/material/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/utils/createSvgIcon.js","../../../node_modules/@mui/material/utils/index.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/@mui/icons-material/ArrowRight.js","../src/components/menu-item.component.tsx","../src/components/grouped-menu-item-list.component.tsx","../src/components/top-level-menu.component.tsx","../src/components/grid-menu.component.tsx","../../../node_modules/@mui/material/List/ListContext.js","../../../node_modules/@mui/material/List/listClasses.js","../../../node_modules/@mui/material/List/List.js","../../../node_modules/@mui/material/MenuList/MenuList.js","../../../node_modules/@mui/material/Fade/Fade.js","../../../node_modules/@mui/material/Backdrop/backdropClasses.js","../../../node_modules/@mui/material/Backdrop/Backdrop.js","../../../node_modules/@mui/material/Modal/modalClasses.js","../../../node_modules/@mui/material/Modal/Modal.js","../../../node_modules/@mui/material/Paper/paperClasses.js","../../../node_modules/@mui/material/Paper/Paper.js","../../../node_modules/@mui/material/Popover/popoverClasses.js","../../../node_modules/@mui/material/Popover/Popover.js","../../../node_modules/@mui/material/Menu/menuClasses.js","../../../node_modules/@mui/material/Menu/Menu.js","../src/components/context-menu.component.tsx","../../../node_modules/@mui/icons-material/esm/Menu.js","../src/hooks/use-promise.hook.ts","../src/components/hamburger-menu-button.component.tsx","../src/components/icon-button.component.tsx","../src/components/shadcn-ui/label.tsx","../src/components/text-field.component.tsx","../src/components/search-bar.component.tsx","../src/components/slider.component.tsx","../src/components/snackbar.component.tsx","../src/components/switch.component.tsx","../src/components/toolbar.component.tsx","../src/components/shadcn-ui/tabs.tsx","../src/components/shadcn-ui/tabs-vertical.tsx","../src/components/paratext-10-studio-components/inventory/inventory-data-table.component.tsx","../src/components/paratext-10-studio-components/inventory/occurrences-table.component.tsx","../src/components/paratext-10-studio-components/inventory/character-inventory.component.tsx","../src/components/extension-marketplace/buttons/download-button.component.tsx","../src/components/extension-marketplace/buttons/remove-button.component.tsx","../src/components/extension-marketplace/buttons/update-button.component.tsx","../../../node_modules/markdown-to-jsx/dist/index.modern.js","../src/components/extension-marketplace/markdown-renderer.component.tsx","../src/hooks/use-event.hook.ts","../src/hooks/use-event-async.hook.ts","../src/components/shadcn-ui/card.tsx","../src/components/shadcn-ui/alert.tsx","../src/components/shadcn-ui/slider.tsx","../src/components/shadcn-ui/switch.tsx"],"sourcesContent":["var P = Object.defineProperty;\nvar R = (t, e, s) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;\nvar n = (t, e, s) => R(t, typeof e != \"symbol\" ? e + \"\" : e, s);\nclass _ {\n constructor() {\n n(this, \"books\");\n n(this, \"firstSelectedBookNum\");\n n(this, \"lastSelectedBookNum\");\n n(this, \"count\");\n n(this, \"selectedBookNumbers\");\n n(this, \"selectedBookIds\");\n }\n}\nconst N = [\n \"GEN\",\n \"EXO\",\n \"LEV\",\n \"NUM\",\n \"DEU\",\n \"JOS\",\n \"JDG\",\n \"RUT\",\n \"1SA\",\n \"2SA\",\n // 10\n \"1KI\",\n \"2KI\",\n \"1CH\",\n \"2CH\",\n \"EZR\",\n \"NEH\",\n \"EST\",\n \"JOB\",\n \"PSA\",\n \"PRO\",\n // 20\n \"ECC\",\n \"SNG\",\n \"ISA\",\n \"JER\",\n \"LAM\",\n \"EZK\",\n \"DAN\",\n \"HOS\",\n \"JOL\",\n \"AMO\",\n // 30\n \"OBA\",\n \"JON\",\n \"MIC\",\n \"NAM\",\n \"HAB\",\n \"ZEP\",\n \"HAG\",\n \"ZEC\",\n \"MAL\",\n \"MAT\",\n // 40\n \"MRK\",\n \"LUK\",\n \"JHN\",\n \"ACT\",\n \"ROM\",\n \"1CO\",\n \"2CO\",\n \"GAL\",\n \"EPH\",\n \"PHP\",\n // 50\n \"COL\",\n \"1TH\",\n \"2TH\",\n \"1TI\",\n \"2TI\",\n \"TIT\",\n \"PHM\",\n \"HEB\",\n \"JAS\",\n \"1PE\",\n // 60\n \"2PE\",\n \"1JN\",\n \"2JN\",\n \"3JN\",\n \"JUD\",\n \"REV\",\n \"TOB\",\n \"JDT\",\n \"ESG\",\n \"WIS\",\n // 70\n \"SIR\",\n \"BAR\",\n \"LJE\",\n \"S3Y\",\n \"SUS\",\n \"BEL\",\n \"1MA\",\n \"2MA\",\n \"3MA\",\n \"4MA\",\n // 80\n \"1ES\",\n \"2ES\",\n \"MAN\",\n \"PS2\",\n \"ODA\",\n \"PSS\",\n \"JSA\",\n // actual variant text for JOS, now in LXA text\n \"JDB\",\n // actual variant text for JDG, now in LXA text\n \"TBS\",\n // actual variant text for TOB, now in LXA text\n \"SST\",\n // actual variant text for SUS, now in LXA text // 90\n \"DNT\",\n // actual variant text for DAN, now in LXA text\n \"BLT\",\n // actual variant text for BEL, now in LXA text\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n // 100\n \"BAK\",\n \"OTH\",\n \"3ES\",\n // Used previously but really should be 2ES\n \"EZA\",\n // Used to be called 4ES, but not actually in any known project\n \"5EZ\",\n // Used to be called 5ES, but not actually in any known project\n \"6EZ\",\n // Used to be called 6ES, but not actually in any known project\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n // 110\n \"NDX\",\n \"DAG\",\n \"PS3\",\n \"2BA\",\n \"LBA\",\n \"JUB\",\n \"ENO\",\n \"1MQ\",\n \"2MQ\",\n \"3MQ\",\n // 120\n \"REP\",\n \"4BA\",\n \"LAO\"\n], B = [\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n \"BAK\",\n \"OTH\",\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n \"NDX\"\n], O = [\n \"Genesis\",\n \"Exodus\",\n \"Leviticus\",\n \"Numbers\",\n \"Deuteronomy\",\n \"Joshua\",\n \"Judges\",\n \"Ruth\",\n \"1 Samuel\",\n \"2 Samuel\",\n \"1 Kings\",\n \"2 Kings\",\n \"1 Chronicles\",\n \"2 Chronicles\",\n \"Ezra\",\n \"Nehemiah\",\n \"Esther (Hebrew)\",\n \"Job\",\n \"Psalms\",\n \"Proverbs\",\n \"Ecclesiastes\",\n \"Song of Songs\",\n \"Isaiah\",\n \"Jeremiah\",\n \"Lamentations\",\n \"Ezekiel\",\n \"Daniel (Hebrew)\",\n \"Hosea\",\n \"Joel\",\n \"Amos\",\n \"Obadiah\",\n \"Jonah\",\n \"Micah\",\n \"Nahum\",\n \"Habakkuk\",\n \"Zephaniah\",\n \"Haggai\",\n \"Zechariah\",\n \"Malachi\",\n \"Matthew\",\n \"Mark\",\n \"Luke\",\n \"John\",\n \"Acts\",\n \"Romans\",\n \"1 Corinthians\",\n \"2 Corinthians\",\n \"Galatians\",\n \"Ephesians\",\n \"Philippians\",\n \"Colossians\",\n \"1 Thessalonians\",\n \"2 Thessalonians\",\n \"1 Timothy\",\n \"2 Timothy\",\n \"Titus\",\n \"Philemon\",\n \"Hebrews\",\n \"James\",\n \"1 Peter\",\n \"2 Peter\",\n \"1 John\",\n \"2 John\",\n \"3 John\",\n \"Jude\",\n \"Revelation\",\n \"Tobit\",\n \"Judith\",\n \"Esther Greek\",\n \"Wisdom of Solomon\",\n \"Sirach (Ecclesiasticus)\",\n \"Baruch\",\n \"Letter of Jeremiah\",\n \"Song of 3 Young Men\",\n \"Susanna\",\n \"Bel and the Dragon\",\n \"1 Maccabees\",\n \"2 Maccabees\",\n \"3 Maccabees\",\n \"4 Maccabees\",\n \"1 Esdras (Greek)\",\n \"2 Esdras (Latin)\",\n \"Prayer of Manasseh\",\n \"Psalm 151\",\n \"Odes\",\n \"Psalms of Solomon\",\n // WARNING, if you change the spelling of the *obsolete* tag be sure to update\n // IsObsolete routine\n \"Joshua A. *obsolete*\",\n \"Judges B. *obsolete*\",\n \"Tobit S. *obsolete*\",\n \"Susanna Th. *obsolete*\",\n \"Daniel Th. *obsolete*\",\n \"Bel Th. *obsolete*\",\n \"Extra A\",\n \"Extra B\",\n \"Extra C\",\n \"Extra D\",\n \"Extra E\",\n \"Extra F\",\n \"Extra G\",\n \"Front Matter\",\n \"Back Matter\",\n \"Other Matter\",\n \"3 Ezra *obsolete*\",\n \"Apocalypse of Ezra\",\n \"5 Ezra (Latin Prologue)\",\n \"6 Ezra (Latin Epilogue)\",\n \"Introduction\",\n \"Concordance \",\n \"Glossary \",\n \"Topical Index\",\n \"Names Index\",\n \"Daniel Greek\",\n \"Psalms 152-155\",\n \"2 Baruch (Apocalypse)\",\n \"Letter of Baruch\",\n \"Jubilees\",\n \"Enoch\",\n \"1 Meqabyan\",\n \"2 Meqabyan\",\n \"3 Meqabyan\",\n \"Reproof (Proverbs 25-31)\",\n \"4 Baruch (Rest of Baruch)\",\n \"Laodiceans\"\n], S = K();\nfunction g(t, e = !0) {\n return e && (t = t.toUpperCase()), t in S ? S[t] : 0;\n}\nfunction k(t) {\n return g(t) > 0;\n}\nfunction x(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return e >= 40 && e <= 66;\n}\nfunction T(t) {\n return (typeof t == \"string\" ? g(t) : t) <= 39;\n}\nfunction X(t) {\n return t <= 66;\n}\nfunction V(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return w(e) && !X(e);\n}\nfunction* L() {\n for (let t = 1; t <= N.length; t++) yield t;\n}\nconst G = 1, A = N.length;\nfunction H() {\n return [\"XXA\", \"XXB\", \"XXC\", \"XXD\", \"XXE\", \"XXF\", \"XXG\"];\n}\nfunction C(t, e = \"***\") {\n const s = t - 1;\n return s < 0 || s >= N.length ? e : N[s];\n}\nfunction I(t) {\n return t <= 0 || t > A ? \"******\" : O[t - 1];\n}\nfunction y(t) {\n return I(g(t));\n}\nfunction w(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && !B.includes(e);\n}\nfunction q(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && B.includes(e);\n}\nfunction U(t) {\n return O[t - 1].includes(\"*obsolete*\");\n}\nfunction K() {\n const t = {};\n for (let e = 0; e < N.length; e++)\n t[N[e]] = e + 1;\n return t;\n}\nconst m = {\n allBookIds: N,\n nonCanonicalIds: B,\n bookIdToNumber: g,\n isBookIdValid: k,\n isBookNT: x,\n isBookOT: T,\n isBookOTNT: X,\n isBookDC: V,\n allBookNumbers: L,\n firstBook: G,\n lastBook: A,\n extraBooks: H,\n bookNumberToId: C,\n bookNumberToEnglishName: I,\n bookIdToEnglishName: y,\n isCanonical: w,\n isExtraMaterial: q,\n isObsolete: U\n};\nvar l = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = \"Unknown\", t[t.Original = 1] = \"Original\", t[t.Septuagint = 2] = \"Septuagint\", t[t.Vulgate = 3] = \"Vulgate\", t[t.English = 4] = \"English\", t[t.RussianProtestant = 5] = \"RussianProtestant\", t[t.RussianOrthodox = 6] = \"RussianOrthodox\", t))(l || {});\nconst h = class h {\n // private versInfo: Versification;\n constructor(e) {\n n(this, \"name\");\n n(this, \"fullPath\");\n n(this, \"isPresent\");\n n(this, \"hasVerseSegments\");\n n(this, \"isCustomized\");\n n(this, \"baseVersification\");\n n(this, \"scriptureBooks\");\n n(this, \"_type\");\n if (e == null)\n throw new Error(\"Argument undefined\");\n typeof e == \"string\" ? (this.name = e, this._type = l[e]) : (this._type = e, this.name = l[e]);\n }\n get type() {\n return this._type;\n }\n equals(e) {\n return !e.type || !this.type ? !1 : e.type === this.type;\n }\n};\nn(h, \"Original\", new h(l.Original)), n(h, \"Septuagint\", new h(l.Septuagint)), n(h, \"Vulgate\", new h(l.Vulgate)), n(h, \"English\", new h(l.English)), n(h, \"RussianProtestant\", new h(l.RussianProtestant)), n(h, \"RussianOrthodox\", new h(l.RussianOrthodox));\nlet c = h;\nfunction E(t, e) {\n const s = e[0];\n for (let r = 1; r < e.length; r++)\n t = t.split(e[r]).join(s);\n return t.split(s);\n}\nvar D = /* @__PURE__ */ ((t) => (t[t.Valid = 0] = \"Valid\", t[t.UnknownVersification = 1] = \"UnknownVersification\", t[t.OutOfRange = 2] = \"OutOfRange\", t[t.VerseOutOfOrder = 3] = \"VerseOutOfOrder\", t[t.VerseRepeated = 4] = \"VerseRepeated\", t))(D || {});\nconst i = class i {\n constructor(e, s, r, a) {\n /** Not yet implemented. */\n n(this, \"firstChapter\");\n /** Not yet implemented. */\n n(this, \"lastChapter\");\n /** Not yet implemented. */\n n(this, \"lastVerse\");\n /** Not yet implemented. */\n n(this, \"hasSegmentsDefined\");\n /** Not yet implemented. */\n n(this, \"text\");\n /** Not yet implemented. */\n n(this, \"BBBCCCVVVS\");\n /** Not yet implemented. */\n n(this, \"longHashCode\");\n /** The versification of the reference. */\n n(this, \"versification\");\n n(this, \"rtlMark\", \"‏\");\n n(this, \"_bookNum\", 0);\n n(this, \"_chapterNum\", 0);\n n(this, \"_verseNum\", 0);\n n(this, \"_verse\");\n if (r == null && a == null)\n if (e != null && typeof e == \"string\") {\n const o = e, u = s != null && s instanceof c ? s : void 0;\n this.setEmpty(u), this.parse(o);\n } else if (e != null && typeof e == \"number\") {\n const o = s != null && s instanceof c ? s : void 0;\n this.setEmpty(o), this._verseNum = e % i.chapterDigitShifter, this._chapterNum = Math.floor(\n e % i.bookDigitShifter / i.chapterDigitShifter\n ), this._bookNum = Math.floor(e / i.bookDigitShifter);\n } else if (s == null)\n if (e != null && e instanceof i) {\n const o = e;\n this._bookNum = o.bookNum, this._chapterNum = o.chapterNum, this._verseNum = o.verseNum, this._verse = o.verse, this.versification = o.versification;\n } else {\n if (e == null) return;\n const o = e instanceof c ? e : i.defaultVersification;\n this.setEmpty(o);\n }\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else if (e != null && s != null && r != null)\n if (typeof e == \"string\" && typeof s == \"string\" && typeof r == \"string\")\n this.setEmpty(a), this.updateInternal(e, s, r);\n else if (typeof e == \"number\" && typeof s == \"number\" && typeof r == \"number\")\n this._bookNum = e, this._chapterNum = s, this._verseNum = r, this.versification = a ?? i.defaultVersification;\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else\n throw new Error(\"VerseRef constructor not supported.\");\n }\n /**\n * Determines if the verse string is in a valid format (does not consider versification).\n */\n static isVerseParseable(e) {\n return e.length > 0 && \"0123456789\".includes(e[0]) && !e.endsWith(this.verseRangeSeparator) && !e.endsWith(this.verseSequenceIndicator);\n }\n /**\n * Tries to parse the specified string into a verse reference.\n * @param str - The string to attempt to parse.\n * @returns success: `true` if the specified string was successfully parsed, `false` otherwise.\n * @returns verseRef: The result of the parse if successful, or empty VerseRef if it failed\n */\n static tryParse(e) {\n let s;\n try {\n return s = new i(e), { success: !0, verseRef: s };\n } catch (r) {\n if (r instanceof v)\n return s = new i(), { success: !1, verseRef: s };\n throw r;\n }\n }\n /**\n * Gets the reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n * @param bookNum - Book number (this is 1-based, not an index).\n * @param chapterNum - Chapter number.\n * @param verseNum - Verse number.\n * @returns The reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n */\n static getBBBCCCVVV(e, s, r) {\n return e % i.bcvMaxValue * i.bookDigitShifter + (s >= 0 ? s % i.bcvMaxValue * i.chapterDigitShifter : 0) + (r >= 0 ? r % i.bcvMaxValue : 0);\n }\n /**\n * Deserializes a serialized VerseRef.\n * @param serializedVerseRef - Serialized VerseRef to create from.\n * @returns the deserialized VerseRef.\n */\n static fromJSON(e) {\n const { book: s, chapterNum: r, verseNum: a, verse: o, versificationStr: u } = e, f = o || a.toString();\n let d;\n return u && (d = new c(u)), s ? new i(s, r.toString(), f, d) : new i();\n }\n /**\n * Parses a verse string and gets the leading numeric portion as a number.\n * @param verseStr - verse string to parse\n * @returns true if the entire string could be parsed as a single, simple verse number (1-999);\n * false if the verse string represented a verse bridge, contained segment letters, or was invalid\n */\n static tryGetVerseNum(e) {\n let s;\n if (!e)\n return s = -1, { success: !0, vNum: s };\n s = 0;\n let r;\n for (let a = 0; a < e.length; a++) {\n if (r = e[a], r < \"0\" || r > \"9\")\n return a === 0 && (s = -1), { success: !1, vNum: s };\n if (s = s * 10 + +r - 0, s > i.bcvMaxValue)\n return s = -1, { success: !1, vNum: s };\n }\n return { success: !0, vNum: s };\n }\n /**\n * Checks to see if a VerseRef hasn't been set - all values are the default.\n */\n get isDefault() {\n return this.bookNum === 0 && this.chapterNum === 0 && this.verseNum === 0 && this.versification == null;\n }\n /**\n * Gets whether the verse contains multiple verses.\n */\n get hasMultiple() {\n return this._verse != null && (this._verse.includes(i.verseRangeSeparator) || this._verse.includes(i.verseSequenceIndicator));\n }\n /**\n * Gets or sets the book of the reference. Book is the 3-letter abbreviation in capital letters,\n * e.g. `'MAT'`.\n */\n get book() {\n return m.bookNumberToId(this.bookNum, \"\");\n }\n set book(e) {\n this.bookNum = m.bookIdToNumber(e);\n }\n /**\n * Gets or sets the chapter of the reference,. e.g. `'3'`.\n */\n get chapter() {\n return this.isDefault || this._chapterNum < 0 ? \"\" : this._chapterNum.toString();\n }\n set chapter(e) {\n const s = +e;\n this._chapterNum = Number.isInteger(s) ? s : -1;\n }\n /**\n * Gets or sets the verse of the reference, including range, segments, and sequences, e.g. `'4'`,\n * or `'4b-5a, 7'`.\n */\n get verse() {\n return this._verse != null ? this._verse : this.isDefault || this._verseNum < 0 ? \"\" : this._verseNum.toString();\n }\n set verse(e) {\n const { success: s, vNum: r } = i.tryGetVerseNum(e);\n this._verse = s ? void 0 : e.replace(this.rtlMark, \"\"), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = i.tryGetVerseNum(this._verse));\n }\n /**\n * Get or set Book based on book number, e.g. `42`.\n */\n get bookNum() {\n return this._bookNum;\n }\n set bookNum(e) {\n if (e <= 0 || e > m.lastBook)\n throw new v(\n \"BookNum must be greater than zero and less than or equal to last book\"\n );\n this._bookNum = e;\n }\n /**\n * Gets or sets the chapter number, e.g. `3`. `-1` if not valid.\n */\n get chapterNum() {\n return this._chapterNum;\n }\n set chapterNum(e) {\n this.chapterNum = e;\n }\n /**\n * Gets or sets verse start number, e.g. `4`. `-1` if not valid.\n */\n get verseNum() {\n return this._verseNum;\n }\n set verseNum(e) {\n this._verseNum = e;\n }\n /**\n * String representing the versification (should ONLY be used for serialization/deserialization).\n *\n * @remarks This is for backwards compatibility when ScrVers was an enumeration.\n */\n get versificationStr() {\n var e;\n return (e = this.versification) == null ? void 0 : e.name;\n }\n set versificationStr(e) {\n this.versification = this.versification != null ? new c(e) : void 0;\n }\n /**\n * Determines if the reference is valid.\n */\n get valid() {\n return this.validStatus === 0;\n }\n /**\n * Get the valid status for this reference.\n */\n get validStatus() {\n return this.validateVerse(i.verseRangeSeparators, i.verseSequenceIndicators);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits and the verse is 0.\n */\n get BBBCCC() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, 0);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits. If verse is not null\n * (i.e., this reference represents a complex reference with verse\n * segments or bridge) this cannot be used for an exact comparison.\n */\n get BBBCCCVVV() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum);\n }\n /**\n * Gets whether the verse is defined as an excluded verse in the versification.\n * Does not handle verse ranges.\n */\n // eslint-disable-next-line @typescript-eslint/class-literal-property-style\n get isExcluded() {\n return !1;\n }\n /**\n * Parses the reference in the specified string.\n * Optionally versification can follow reference as in GEN 3:11/4\n * Throw an exception if\n * - invalid book name\n * - chapter number is missing or not a number\n * - verse number is missing or does not start with a number\n * - versification is invalid\n * @param verseStr - string to parse e.g. 'MAT 3:11'\n */\n parse(e) {\n if (e = e.replace(this.rtlMark, \"\"), e.includes(\"/\")) {\n const o = e.split(\"/\");\n if (e = o[0], o.length > 1)\n try {\n const u = +o[1].trim();\n this.versification = new c(l[u]);\n } catch {\n throw new v(\"Invalid reference : \" + e);\n }\n }\n const s = e.trim().split(\" \");\n if (s.length !== 2)\n throw new v(\"Invalid reference : \" + e);\n const r = s[1].split(\":\"), a = +r[0];\n if (r.length !== 2 || m.bookIdToNumber(s[0]) === 0 || !Number.isInteger(a) || a < 0 || !i.isVerseParseable(r[1]))\n throw new v(\"Invalid reference : \" + e);\n this.updateInternal(s[0], r[0], r[1]);\n }\n /**\n * Simplifies this verse ref so that it has no bridging of verses or\n * verse segments like `'1a'`.\n */\n simplify() {\n this._verse = void 0;\n }\n /**\n * Makes a clone of the reference.\n *\n * @returns The cloned VerseRef.\n */\n clone() {\n return new i(this);\n }\n toString() {\n const e = this.book;\n return e === \"\" ? \"\" : `${e} ${this.chapter}:${this.verse}`;\n }\n toJSON() {\n let e = this.verse;\n return (e === \"\" || e === this.verseNum.toString()) && (e = void 0), {\n book: this.book,\n chapterNum: this.chapterNum,\n verseNum: this.verseNum,\n verse: e,\n versificationStr: this.versificationStr\n };\n }\n /**\n * Compares this `VerseRef` with supplied one.\n * @param verseRef - object to compare this one to.\n * @returns `true` if this `VerseRef` is equal to the supplied one, `false` otherwise.\n */\n equals(e) {\n return e instanceof i ? e._bookNum === this._bookNum && e._chapterNum === this._chapterNum && e._verseNum === this._verseNum && e.verse === this.verse && (e.versification == null && this.versification == null || e.versification != null && this.versification != null && e.versification.equals(this.versification)) : !1;\n }\n /**\n * Enumerate all individual verses contained in a VerseRef.\n * Verse ranges are indicated by \"-\" and consecutive verses by \",\"s.\n * Examples:\n * GEN 1:2 returns GEN 1:2\n * GEN 1:1a-3b,5 returns GEN 1:1a, GEN 1:2, GEN 1:3b, GEN 1:5\n * GEN 1:2a-2c returns //! ??????\n *\n * @param specifiedVersesOnly - if set to true return only verses that are\n * explicitly specified only, not verses within a range. Defaults to `false`.\n * @param verseRangeSeparators - Verse range separators.\n * Defaults to `VerseRef.verseRangeSeparators`.\n * @param verseSequenceSeparators - Verse sequence separators.\n * Defaults to `VerseRef.verseSequenceIndicators`.\n * @returns An array of all single verse references in this VerseRef.\n */\n allVerses(e = !1, s = i.verseRangeSeparators, r = i.verseSequenceIndicators) {\n if (this._verse == null || this.chapterNum <= 0)\n return [this.clone()];\n const a = [], o = E(this._verse, r);\n for (const u of o.map((f) => E(f, s))) {\n const f = this.clone();\n f.verse = u[0];\n const d = f.verseNum;\n if (a.push(f), u.length > 1) {\n const b = this.clone();\n if (b.verse = u[1], !e)\n for (let p = d + 1; p < b.verseNum; p++) {\n const J = new i(\n this._bookNum,\n this._chapterNum,\n p,\n this.versification\n );\n this.isExcluded || a.push(J);\n }\n a.push(b);\n }\n }\n return a;\n }\n /**\n * Validates a verse number using the supplied separators rather than the defaults.\n */\n validateVerse(e, s) {\n if (!this.verse)\n return this.internalValid;\n let r = 0;\n for (const a of this.allVerses(!0, e, s)) {\n const o = a.internalValid;\n if (o !== 0)\n return o;\n const u = a.BBBCCCVVV;\n if (r > u)\n return 3;\n if (r === u)\n return 4;\n r = u;\n }\n return 0;\n }\n /**\n * Gets whether a single verse reference is valid.\n */\n get internalValid() {\n return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > m.lastBook ? 2 : (m.isCanonical(this._bookNum), 0);\n }\n setEmpty(e = i.defaultVersification) {\n this._bookNum = 0, this._chapterNum = -1, this._verse = void 0, this.versification = e;\n }\n updateInternal(e, s, r) {\n this.bookNum = m.bookIdToNumber(e), this.chapter = s, this.verse = r;\n }\n};\nn(i, \"defaultVersification\", c.English), n(i, \"verseRangeSeparator\", \"-\"), n(i, \"verseSequenceIndicator\", \",\"), n(i, \"verseRangeSeparators\", [i.verseRangeSeparator]), n(i, \"verseSequenceIndicators\", [i.verseSequenceIndicator]), n(i, \"chapterDigitShifter\", 1e3), n(i, \"bookDigitShifter\", i.chapterDigitShifter * i.chapterDigitShifter), n(i, \"bcvMaxValue\", i.chapterDigitShifter - 1), /**\n * The valid status of the VerseRef.\n */\nn(i, \"ValidStatusType\", D);\nlet M = i;\nclass v extends Error {\n}\nexport {\n _ as BookSet,\n m as Canon,\n c as ScrVers,\n l as ScrVersType,\n M as VerseRef,\n v as VerseRefException\n};\n//# sourceMappingURL=index.es.js.map\n","import { type ClassValue, clsx } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\nconst twMergeCustom = extendTailwindMerge({ prefix: 'pr-' });\n\n// shadcn/ui uses this export in its boilerplate code\n// eslint-disable-next-line import/prefer-default-export\nexport function cn(...inputs: ClassValue[]) {\n return twMergeCustom(clsx(inputs));\n}\n","import React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\n\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nexport const DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nexport const DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nexport type DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n className?: string;\n};\n\nexport type DropdownMenuContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n className?: string;\n sideOffset?: number;\n};\n\nexport type DropdownMenuItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n className?: string;\n checked?: boolean;\n};\n\nexport type DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.RadioItem\n> & {\n className?: string;\n};\n\nexport type DropdownMenuLabelProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n className?: string;\n};\n\nexport type DropdownMenuShortcutProps = React.HTMLAttributes & {\n className?: string;\n};\n\nexport const DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubTriggerProps\n>(({ className, inset, children, ...props }, ref) => (\n \n {children}\n \n \n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nexport const DropdownMenuSubContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubContentProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nexport const DropdownMenuContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuContentProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n \n \n \n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport const DropdownMenuItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuItemProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nexport const DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuCheckboxItemProps\n>(({ className, children, checked, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nexport const DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuRadioItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nexport const DropdownMenuLabel = React.forwardRef<\n React.ElementRef,\n DropdownMenuLabelProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nexport const DropdownMenuSeparator = React.forwardRef<\n React.ElementRef,\n DropdownMenuSeparatorProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nexport function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps) {\n return (\n \n );\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport interface InputProps extends React.InputHTMLAttributes {}\n\nexport const Input = React.forwardRef(\n ({ className, type, ...props }, ref) => {\n return (\n \n );\n },\n);\nInput.displayName = 'Input';\n","import { FocusEventHandler, forwardRef, KeyboardEvent, MouseEventHandler } from 'react';\nimport { History } from 'lucide-react';\nimport { Input as ShadInput } from '@/components/shadcn-ui/input';\n\nexport type BookChapterInputProps = {\n handleSearch: (searchString: string) => void;\n handleKeyDown: (event: KeyboardEvent) => void;\n handleOnClick: MouseEventHandler;\n handleSubmit: () => void;\n onFocus?: FocusEventHandler;\n value: string;\n placeholder: string;\n};\n\n// Shadcn Input sets type to \"button\"- HAVE to prop spread before setting type\nconst BookChapterInput = forwardRef(\n (\n { handleSearch, handleKeyDown, handleOnClick, handleSubmit, ...props }: BookChapterInputProps,\n ref,\n ) => {\n return (\n
\n handleSearch(event.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n handleSubmit();\n }\n handleKeyDown(e);\n }}\n onClick={handleOnClick}\n ref={ref}\n />\n {\n // eslint-disable-next-line no-console\n console.log('back in history');\n }}\n />\n
\n );\n },\n);\n\nexport default BookChapterInput;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type ChapterSelectProps = {\n /**\n * Callback to run when a chapter div is selected\n *\n * @param chapterNumber Number of the chapter that has been selected\n */\n handleSelectChapter: (chapterNumber: number) => void;\n /** The highest chapter number in the book (of course equal to number of chapters in the book) */\n endChapter: number;\n /** The chapter number that is currently selected */\n activeChapter: number;\n /** The chapter number that is currently highlighted using keyboard or mouse navigation */\n highlightedChapter: number;\n /**\n * Callback to run when a chapter is highlighted by the user\n *\n * @param chapterNumber The chapter that is highlighted\n */\n handleHighlightedChapter: (chapterNumber: number) => void;\n};\n\nfunction ChapterSelect({\n handleSelectChapter,\n endChapter,\n activeChapter,\n highlightedChapter,\n handleHighlightedChapter,\n}: ChapterSelectProps) {\n const chapters = Array.from({ length: endChapter }, (_, i) => i + 1);\n\n const handleMouse = useCallback(\n (chapterNumber: number) => {\n handleHighlightedChapter(chapterNumber);\n },\n [handleHighlightedChapter],\n );\n\n return (\n
\n {chapters.map((chapter) => (\n {\n event.preventDefault();\n event.stopPropagation();\n handleSelectChapter(chapter);\n }}\n role=\"button\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n handleSelectChapter(chapter);\n }\n }}\n tabIndex={0}\n onMouseMove={() => handleMouse(chapter)}\n >\n {chapter}\n
\n ))}\n
\n );\n}\n\nexport default ChapterSelect;\n","import { Canon } from '@sillsdev/scripture';\nimport { PropsWithChildren, KeyboardEvent, forwardRef } from 'react';\nimport { DropdownMenuItem as ShadDropdownMenuItem } from '@/components/shadcn-ui/dropdown-menu';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport type BookType = 'OT' | 'NT' | 'DC';\n\ntype BookMenuItemProps = PropsWithChildren<{\n /** String id of book */\n bookId: string;\n /** Callback to run when a book menu item is selected */\n handleSelectBook: () => void;\n /** Indicates if this menu item is currently selected */\n isSelected: boolean;\n /** Function that is called upon highlighting a book in the dropdown menu */\n handleHighlightBook: () => void;\n /**\n * Function that is called on pressing a key\n *\n * @param event Event that contains information about the key stroke\n */\n handleKeyDown: (event: KeyboardEvent) => void;\n /**\n * Type of book associated with this menu item, coordinates color labels ? Mock up has the labels\n * coordinated to genre\n */\n bookType: BookType;\n}>;\n\nconst BookMenuItem = forwardRef(\n (\n {\n bookId,\n handleSelectBook,\n isSelected,\n handleHighlightBook,\n handleKeyDown,\n bookType,\n children,\n }: BookMenuItemProps,\n ref,\n ) => {\n return (\n {\n // preventDefault() here prevents the entire dropdown menu from closing when selecting this item\n event.preventDefault();\n handleSelectBook();\n }}\n onKeyDown={(event: KeyboardEvent) => {\n handleKeyDown(event);\n }}\n onFocus={handleHighlightBook}\n onMouseMove={handleHighlightBook}\n >\n \n {Canon.bookIdToEnglishName(bookId)}\n \n {isSelected &&
{children}
}\n \n );\n },\n);\n\nexport default BookMenuItem;\n","import { DropdownMenuLabel as ShadDropdownMenuLabel } from '@/components/shadcn-ui/dropdown-menu';\nimport { Bookmark, Clock, ArrowDownWideNarrow } from 'lucide-react';\n\nexport type GoToMenuItemProps = {\n handleSort: () => void;\n handleLocationHistory: () => void;\n handleBookmarks: () => void;\n};\n\nfunction GoToMenuItem({ handleSort, handleLocationHistory, handleBookmarks }: GoToMenuItemProps) {\n return (\n \n

Go To

\n
\n \n \n \n
\n
\n );\n}\n\nexport default GoToMenuItem;\n","import {\n KeyboardEvent as ReactKeyboardEvent,\n useCallback,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\nimport { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference, getChaptersForBook } from 'platform-bible-utils';\nimport {\n DropdownMenuTrigger as ShadDropdownMenuTrigger,\n DropdownMenu as ShadDropdownMenu,\n DropdownMenuContent as ShadDropdownMenuContent,\n DropdownMenuLabel as ShadDropdownMenuLabel,\n DropdownMenuSeparator as ShadDropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport BookChapterInput from '@/components/advanced-components/book-chapter-control/book-chapter-input.component';\nimport ChapterSelect from '@/components/advanced-components/book-chapter-control/chapter-select.component';\nimport BookMenuItem, {\n BookType,\n} from '@/components/advanced-components/book-chapter-control/book-menu-item.component';\nimport GoToMenuItem from './go-to-menu-item.component';\n\ntype BookTypeLabels = {\n [bookType in BookType]: string;\n};\ntype BookChapterControlProps = {\n scrRef: ScriptureReference;\n handleSubmit: (scrRef: ScriptureReference) => void;\n};\n\nconst ALL_BOOK_IDS = Canon.allBookIds;\nconst BOOK_TYPE_LABELS: BookTypeLabels = {\n OT: 'Old Testament',\n NT: 'New Testament',\n DC: 'Deuterocanon',\n};\nconst BOOK_TYPE_ARRAY: BookType[] = ['OT', 'NT', 'DC'];\n// This is the height of three menu items to offset scrolling to the selected menu item\n// If you use menuItemRef.clientHeight- includes height of chapter div which is too big\nconst SCROLL_OFFSET = 32 + 32 + 32;\nconst SEARCH_QUERY_FORMATS = [\n /^(\\w+)$/i, // Matches a single word (book name or id)\n /^(\\w+)(?:\\s(\\d+))$/i, // Matches a word followed by a chapter number\n /^(\\w+)(?:\\s(\\d+):(\\d+))$/i, // Matches a word followed by a chapter and verse number\n];\nconst fetchGroupedBooks = (bookType: BookType) => {\n const groupedBooks = {\n OT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookOT(bookId)),\n NT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookNT(bookId)),\n DC: ALL_BOOK_IDS.filter((bookId) => Canon.isBookDC(bookId)),\n };\n return groupedBooks[bookType];\n};\nconst fetchEndChapter = (bookId: string) => {\n // getChaptersForBook returns -1 if not found in scrBookData\n // scrBookData only includes OT and NT, so all DC will return -1\n return getChaptersForBook(Canon.bookIdToNumber(bookId));\n};\n\n/**\n * Gets all of the English names from book ids\n *\n * @returns String[]\n */\nfunction getAllEnglishNames(): string[] {\n const allEnglishNames = ALL_BOOK_IDS.map((bookId) => {\n return Canon.bookIdToEnglishName(bookId);\n });\n return allEnglishNames;\n}\n\n/**\n * Determines if bookName is in allEnglishNames\n *\n * @param bookName Book English name\n * @returns True if bookName is included, false otherwise\n */\nfunction isValidBookEnglishName(bookName: string): boolean {\n return getAllEnglishNames().includes(bookName);\n}\n\n/**\n * Gets a bookId from given English name\n *\n * @param bookName Book English name\n * @returns BookId of provided bookName, undefined otherwise\n */\nfunction getBookIdFromEnglishName(bookName: string): string | undefined {\n // Convert bookName to lowercase and then capitalize the first letter\n const formattedBookName = bookName.toLowerCase().replace(/^\\w/, (c) => c.toUpperCase());\n\n if (isValidBookEnglishName(formattedBookName)) {\n const matchingBookId = ALL_BOOK_IDS.find((bookId) => {\n return Canon.bookIdToEnglishName(bookId) === formattedBookName;\n });\n return matchingBookId;\n }\n\n return undefined;\n}\n\nfunction BookChapterControl({ scrRef, handleSubmit }: BookChapterControlProps) {\n const [searchQuery, setSearchQuery] = useState('');\n const [selectedBookId, setSelectedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [highlightedChapter, setHighlightedChapter] = useState(scrRef.chapterNum ?? 0);\n const [highlightedBookId, setHighlightedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [isContentOpen, setIsContentOpen] = useState(false);\n const [isContentOpenDelayed, setIsContentOpenDelayed] = useState(isContentOpen);\n\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const inputRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const contentRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const menuItemRef = useRef(undefined!);\n\n const fetchFilteredBooks = useCallback(\n (bookType: BookType) => {\n return fetchGroupedBooks(bookType).filter((bookId: string) => {\n const englishNameLowerCase = Canon.bookIdToEnglishName(bookId).toLowerCase();\n const normalizedQuery = searchQuery.replace(/[^a-zA-Z]/g, '').toLowerCase();\n return (\n englishNameLowerCase.includes(normalizedQuery) || // Match book name\n bookId.toLowerCase().includes(normalizedQuery) // Match book ID\n );\n });\n },\n [searchQuery],\n );\n\n const handleSearchInput = (searchString: string) => {\n setSearchQuery(searchString);\n };\n\n /**\n * Whether to prevent radix's logic from closing the dropdown. This is important because radix\n * tries to close the dropdown when the input first focuses, and we don't want it to do that. But\n * we don't want to prevent the dropdown from closing when we click away from the input, so we\n * don't want to just keep it open if the input is focused\n */\n const shouldPreventAutoClosing = useRef(false);\n\n const controlMenuState = useCallback((open: boolean) => {\n if (shouldPreventAutoClosing.current) {\n shouldPreventAutoClosing.current = false;\n return;\n }\n setIsContentOpen(open);\n }, []);\n\n const updateReference = useCallback(\n (bookId: string, shouldClose: boolean, chapter?: number, verse?: number) => {\n setHighlightedChapter(\n Canon.bookNumberToId(scrRef.bookNum) !== bookId ? 1 : scrRef.chapterNum,\n );\n\n if (shouldClose || fetchEndChapter(bookId) === -1) {\n handleSubmit({\n bookNum: Canon.bookIdToNumber(bookId),\n chapterNum: chapter || 1,\n verseNum: verse || 1,\n });\n\n setIsContentOpen(false);\n setSearchQuery('');\n return;\n }\n\n setSelectedBookId(selectedBookId !== bookId ? bookId : '');\n setIsContentOpen(!shouldClose);\n },\n [handleSubmit, scrRef.bookNum, scrRef.chapterNum, selectedBookId],\n );\n\n const handleSelectChapter = (chapterNumber: number) => {\n if (chapterNumber <= 0 || chapterNumber > fetchEndChapter(selectedBookId)) {\n return;\n }\n updateReference(selectedBookId, true, chapterNumber);\n };\n\n const handleInputSubmit = useCallback(() => {\n SEARCH_QUERY_FORMATS.forEach((format) => {\n const matches = searchQuery.match(format);\n if (matches) {\n // Book should be a bookId or an english name\n const [book, chapter = undefined, verse = undefined] = matches.slice(1);\n const englishName = getBookIdFromEnglishName(book);\n\n if (Canon.isBookIdValid(book) || englishName) {\n updateReference(\n englishName ?? book,\n true,\n chapter ? parseInt(chapter, 10) : 1,\n verse ? parseInt(verse, 10) : 1,\n );\n }\n }\n });\n }, [updateReference, searchQuery]);\n\n const handleKeyDownInput = useCallback(\n (event: ReactKeyboardEvent) => {\n if (!isContentOpen) {\n setIsContentOpen(true);\n } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (\n typeof menuItemRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n menuItemRef.current !== null\n ) {\n menuItemRef.current.focus();\n } else if (\n typeof contentRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n contentRef.current !== null\n ) {\n contentRef.current.focus();\n }\n event.preventDefault();\n }\n },\n [isContentOpen],\n );\n\n const handleKeyDownContent = (event: ReactKeyboardEvent) => {\n // When the dropdown menu has focus, key strokes should give focus to the input component,\n // unless they're navigation keys (arrows and enter)\n const { key } = event;\n if (\n key === 'ArrowRight' ||\n key === 'ArrowLeft' ||\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter'\n ) {\n return;\n }\n\n inputRef.current.dispatchEvent(new KeyboardEvent('keydown', { key }));\n inputRef.current.focus();\n };\n\n const handleKeyDownMenuItem = (event: ReactKeyboardEvent) => {\n const { key } = event;\n if (highlightedBookId === selectedBookId) {\n if (key === 'Enter') {\n event.preventDefault();\n updateReference(selectedBookId, true, highlightedChapter);\n return;\n }\n\n let chapterOffSet = 0;\n if (key === 'ArrowRight') {\n if (highlightedChapter < fetchEndChapter(highlightedBookId)) {\n chapterOffSet = 1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowLeft') {\n if (highlightedChapter > 1) {\n chapterOffSet = -1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowDown') {\n chapterOffSet = 6;\n } else if (key === 'ArrowUp') {\n chapterOffSet = -6;\n }\n if (\n highlightedChapter + chapterOffSet <= 0 ||\n highlightedChapter + chapterOffSet > fetchEndChapter(highlightedBookId)\n ) {\n setHighlightedChapter(0);\n } else if (chapterOffSet !== 0) {\n setHighlightedChapter(highlightedChapter + chapterOffSet);\n event.preventDefault();\n }\n }\n };\n\n useEffect(() => {\n if (selectedBookId === highlightedBookId) {\n if (selectedBookId === Canon.bookNumberToId(scrRef.bookNum)) {\n setHighlightedChapter(scrRef.chapterNum);\n } else {\n setHighlightedChapter(1);\n }\n } else {\n setHighlightedChapter(0);\n }\n }, [highlightedBookId, scrRef.bookNum, scrRef.chapterNum, selectedBookId]);\n\n // The purpose of these useLayoutEffects and timeout is to delay the scroll just\n // enough so that the refs are defined and available when they are used after the timeout\n useLayoutEffect(() => {\n setIsContentOpenDelayed(isContentOpen);\n }, [isContentOpen]);\n\n useLayoutEffect(() => {\n const scrollTimeout = setTimeout(() => {\n if (isContentOpenDelayed && contentRef.current && menuItemRef.current) {\n const menuItemOffsetTop = menuItemRef.current.offsetTop;\n const scrollPosition = menuItemOffsetTop - SCROLL_OFFSET;\n contentRef.current.scrollTo({ top: scrollPosition, behavior: 'instant' });\n }\n }, 10);\n return () => {\n clearTimeout(scrollTimeout);\n };\n }, [isContentOpenDelayed]);\n\n return (\n
\n \n \n {\n setSelectedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedChapter(scrRef.chapterNum > 0 ? scrRef.chapterNum : 0);\n setIsContentOpen(true);\n inputRef.current.focus();\n }}\n onFocus={() => {\n // Radix thinks we want to close because the input is being focused. Prevent that\n shouldPreventAutoClosing.current = true;\n }}\n handleSubmit={handleInputSubmit}\n placeholder={`${Canon.bookNumberToEnglishName(scrRef.bookNum)} ${scrRef.chapterNum}:${scrRef.verseNum}`}\n />\n \n \n console.log('sorting')}\n handleLocationHistory={() => console.log('location history')}\n handleBookmarks={() => console.log('bookmarks')}\n />\n {BOOK_TYPE_ARRAY.map(\n (bookType, bookTypeIndex) =>\n fetchFilteredBooks(bookType).length > 0 && (\n
\n \n {BOOK_TYPE_LABELS[bookType]}\n \n\n {fetchFilteredBooks(bookType).map((bookId) => (\n
\n updateReference(bookId, false)}\n isSelected={selectedBookId === bookId}\n handleHighlightBook={() => setHighlightedBookId(bookId)}\n handleKeyDown={handleKeyDownMenuItem}\n bookType={bookType}\n ref={(element: HTMLDivElement) => {\n if (selectedBookId === bookId) menuItemRef.current = element;\n }}\n >\n {\n setHighlightedChapter(chapterNumber);\n }}\n />\n \n
\n ))}\n {BOOK_TYPE_ARRAY.length - 1 !== bookTypeIndex ? (\n \n ) : undefined}\n
\n ),\n )}\n \n
\n
\n );\n}\n\nexport default BookChapterControl;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Table = React.forwardRef>(\n ({ className, ...props }, ref) => (\n
\n \n
\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n tr]:last:pr-border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const buttonVariants = cva(\n 'pr-twp pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-md pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50',\n {\n variants: {\n variant: {\n default: 'pr-bg-primary pr-text-primary-foreground hover:pr-bg-primary/90',\n destructive: 'pr-bg-destructive pr-text-destructive-foreground hover:pr-bg-destructive/90',\n outline:\n 'pr-border pr-border-input pr-bg-background hover:pr-bg-accent hover:pr-text-accent-foreground',\n secondary: 'pr-bg-secondary pr-text-secondary-foreground hover:pr-bg-secondary/80',\n ghost: 'hover:pr-bg-accent hover:pr-text-accent-foreground',\n link: 'pr-text-primary pr-underline-offset-4 hover:pr-underline',\n },\n size: {\n default: 'pr-h-10 pr-px-4 pr-py-2',\n sm: 'pr-h-9 pr-rounded-md pr-px-3',\n lg: 'pr-h-11 pr-rounded-md pr-px-8',\n icon: 'pr-h-10 pr-w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n return (\n \n );\n },\n);\nButton.displayName = 'Button';\n","import React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n span]:pr-line-clamp-1',\n className,\n )}\n {...props}\n >\n {children}\n \n \n \n \n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = 'popper', ...props }, ref) => (\n \n \n \n \n {children}\n \n \n \n \n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n\n {children}\n \n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n","import { ChevronLeftIcon, ChevronRightIcon, ArrowLeftIcon, ArrowRightIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\n\ninterface DataTablePaginationProps {\n table: Table;\n}\n\nfunction DataTablePagination({ table }: DataTablePaginationProps) {\n return (\n
\n
\n
\n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected\n
\n
\n

Rows per page

\n {\n table.setPageSize(Number(value));\n }}\n >\n \n \n \n \n {[10, 20, 30, 40, 50].map((pageSize) => (\n \n {pageSize}\n \n ))}\n \n \n
\n
\n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n
\n
\n table.setPageIndex(0)}\n disabled={!table.getCanPreviousPage()}\n >\n Go to first page\n \n \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Go to previous page\n \n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Go to next page\n \n \n table.setPageIndex(table.getPageCount() - 1)}\n disabled={!table.getCanNextPage()}\n >\n Go to last page\n \n \n
\n
\n
\n );\n}\n\nexport default DataTablePagination;\n","import { DropdownMenuTrigger } from '@radix-ui/react-dropdown-menu';\nimport { FilterIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\n\ninterface DataTableViewOptionsProps {\n table: Table;\n}\n\nfunction DataTableViewOptions({ table }: DataTableViewOptionsProps) {\n return (\n \n \n \n \n \n Toggle columns\n \n {table\n .getAllColumns()\n .filter((column) => column.getCanHide())\n .map((column) => {\n return (\n column.toggleVisibility(!!value)}\n >\n {column.id}\n \n );\n })}\n \n \n );\n}\n\nexport default DataTableViewOptions;\n","import { useState } from 'react';\n\nimport {\n ColumnDef,\n ColumnFiltersState,\n Row,\n SortingState,\n VisibilityState,\n flexRender,\n getCoreRowModel,\n getFilteredRowModel,\n getPaginationRowModel,\n getSortedRowModel,\n useReactTable,\n Table as tsTable,\n} from '@tanstack/react-table';\n\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { Button } from '@/components/shadcn-ui/button';\nimport DataTablePagination from './data-table-pagination.component';\nimport DataTableViewOptions from './data-table-column-toggle.component';\n\ninterface DataTableProps {\n columns: ColumnDef[];\n data: TData[];\n enablePagination?: boolean;\n showPaginationControls?: boolean;\n showColumnVisibilityControls?: boolean;\n onRowClickHandler?: (row: Row, table: tsTable) => void;\n}\n\nfunction DataTable({\n columns,\n data,\n enablePagination = false,\n showPaginationControls = false,\n showColumnVisibilityControls = false,\n onRowClickHandler = () => {},\n}: DataTableProps) {\n const [sorting, setSorting] = useState([]);\n const [columnFilters, setColumnFilters] = useState([]);\n const [columnVisibility, setColumnVisibility] = useState({});\n const [rowSelection, setRowSelection] = useState({});\n\n const table = useReactTable({\n data,\n columns,\n getCoreRowModel: getCoreRowModel(),\n ...(enablePagination && { getPaginationRowModel: getPaginationRowModel() }),\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n onColumnFiltersChange: setColumnFilters,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnVisibilityChange: setColumnVisibility,\n onRowSelectionChange: setRowSelection,\n state: {\n sorting,\n columnFilters,\n columnVisibility,\n rowSelection,\n },\n });\n\n return (\n
\n {showColumnVisibilityControls && }\n
\n \n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers.map((header) => {\n return (\n \n {header.isPlaceholder\n ? undefined\n : flexRender(header.column.columnDef.header, header.getContext())}\n \n );\n })}\n \n ))}\n \n \n {table.getRowModel().rows?.length ? (\n table.getRowModel().rows.map((row) => (\n onRowClickHandler(row, table)}\n key={row.id}\n data-state={row.getIsSelected() && 'selected'}\n >\n {row.getVisibleCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))\n ) : (\n \n \n No results.\n \n \n )}\n \n
\n
\n {enablePagination && (\n
\n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Previous\n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Next\n \n
\n )}\n {enablePagination && showPaginationControls && }\n
\n );\n}\n\nexport default DataTable;\n","import {\n Autocomplete as MuiComboBox,\n AutocompleteChangeDetails,\n AutocompleteChangeReason,\n TextField as MuiTextField,\n AutocompleteValue,\n} from '@mui/material';\nimport { FocusEventHandler, SyntheticEvent } from 'react';\nimport '@/components/combo-box.component.css';\n\nexport type ComboBoxLabelOption = { label: string };\nexport type ComboBoxOption = string | number | ComboBoxLabelOption;\nexport type ComboBoxValue = AutocompleteValue;\nexport type ComboBoxChangeDetails = AutocompleteChangeDetails;\nexport type ComboBoxChangeReason = AutocompleteChangeReason;\n\nexport type ComboBoxProps = {\n /** Optional unique identifier */\n id?: string;\n /** Text label title for combobox */\n title?: string;\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * If `true`, the component can be cleared, and will have a button to do so\n *\n * @default true\n */\n isClearable?: boolean;\n /**\n * True when (input related to) switch is erroneous\n *\n * @default false\n */\n hasError?: boolean;\n /**\n * If `true`, the input will take up the full width of its container.\n *\n * @default false\n */\n isFullWidth?: boolean;\n /** Width of the combobox in pixels. Setting this prop overrides the `isFullWidth` prop */\n width?: number;\n /** List of available options for the dropdown menu */\n options?: readonly T[];\n /** Additional css classes to help with unique styling of the combo box */\n className?: string;\n /**\n * The selected value that the combo box currently holds. Must be shallow equal to one of the\n * options entries.\n */\n value?: T;\n /** Triggers when content of textfield is changed */\n onChange?: (\n event: SyntheticEvent,\n value: ComboBoxValue,\n reason?: ComboBoxChangeReason,\n details?: ComboBoxChangeDetails | undefined,\n ) => void;\n /** Triggers when textfield gets focus */\n onFocus?: FocusEventHandler; // Storybook crashes when giving the combo box focus\n /** Triggers when textfield loses focus */\n onBlur?: FocusEventHandler;\n /** Used to determine the string value for a given option. */\n getOptionLabel?: (option: ComboBoxOption) => string;\n};\n\n/**\n * Dropdown selector displaying various options from which to choose\n *\n * Thanks to MUI for heavy inspiration and documentation\n * https://mui.com/material-ui/getting-started/overview/\n */\nfunction ComboBox({\n id,\n title,\n isDisabled = false,\n isClearable = true,\n hasError = false,\n isFullWidth = false,\n width,\n options = [],\n className,\n value,\n onChange,\n onFocus,\n onBlur,\n getOptionLabel,\n}: ComboBoxProps) {\n return (\n \n id={id}\n disablePortal\n disabled={isDisabled}\n disableClearable={!isClearable}\n fullWidth={isFullWidth}\n options={options}\n className={`papi-combo-box ${hasError ? 'error' : ''} ${className ?? ''}`}\n value={value}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n getOptionLabel={getOptionLabel}\n renderInput={(props) => (\n \n )}\n />\n );\n}\n\nexport default ComboBox;\n","import { SyntheticEvent, useEffect, useState } from 'react';\nimport { FormControlLabel } from '@mui/material';\nimport ComboBox from '@/components/combo-box.component';\n\nexport type ChapterRangeSelectorProps = {\n handleSelectStartChapter: (chapter: number) => void;\n handleSelectEndChapter: (chapter: number) => void;\n isDisabled?: boolean;\n chapterCount: number;\n};\n\nexport default function ChapterRangeSelector({\n handleSelectStartChapter,\n handleSelectEndChapter,\n isDisabled = false,\n chapterCount,\n}: ChapterRangeSelectorProps) {\n const [startChapter, setStartChapter] = useState(1);\n const [endChapter, setEndChapter] = useState(chapterCount);\n const [chapterOptions, setChapterOptions] = useState(\n Array.from({ length: chapterCount }, (_, i) => i + 1),\n );\n\n useEffect(() => {\n setStartChapter(1);\n handleSelectStartChapter(1);\n setEndChapter(chapterCount);\n handleSelectEndChapter(chapterCount);\n setChapterOptions(Array.from({ length: chapterCount }, (_, i) => i + 1));\n }, [chapterCount, handleSelectEndChapter, handleSelectStartChapter]);\n\n const onChangeStartChapter = (_event: SyntheticEvent, value: number) => {\n setStartChapter(value);\n handleSelectStartChapter(value);\n if (value > endChapter) {\n setEndChapter(value);\n handleSelectEndChapter(value);\n }\n };\n\n const onChangeEndChapter = (_event: SyntheticEvent, value: number) => {\n setEndChapter(value);\n handleSelectEndChapter(value);\n if (value < startChapter) {\n setStartChapter(value);\n handleSelectStartChapter(value);\n }\n };\n\n return (\n <>\n onChangeStartChapter(e, value as number)}\n className=\"book-selection-chapter\"\n key=\"start chapter\"\n isClearable={false}\n options={chapterOptions}\n getOptionLabel={(option) => option.toString()}\n value={startChapter}\n isDisabled={isDisabled}\n />\n }\n label=\"Chapters\"\n labelPlacement=\"start\"\n />\n onChangeEndChapter(e, value as number)}\n className=\"book-selection-chapter\"\n key=\"end chapter\"\n isClearable={false}\n options={chapterOptions}\n getOptionLabel={(option) => option.toString()}\n value={endChapter}\n isDisabled={isDisabled}\n />\n }\n label=\"to\"\n labelPlacement=\"start\"\n />\n \n );\n}\n","enum LabelPosition {\n After = 'after',\n Before = 'before',\n Above = 'above',\n Below = 'below',\n}\n\nexport default LabelPosition;\n","import { FormLabel, Checkbox as MuiCheckbox } from '@mui/material';\nimport { ChangeEvent } from 'react';\nimport '@/components/checkbox.component.css';\nimport LabelPosition from '@/components/label-position.model';\n\nexport type CheckboxProps = {\n /** Optional unique identifier */\n id?: string;\n /** If `true`, the component is checked. */\n isChecked?: boolean;\n /**\n * If specified, the label that will appear associated with the checkbox.\n *\n * @default '' (no label will be shown)\n */\n labelText?: string;\n /**\n * Indicates the position of the label relative to the checkbox.\n *\n * @default 'after'\n */\n labelPosition?: LabelPosition;\n /**\n * If `true`, the component is in the indeterminate state.\n *\n * @default false\n */\n isIndeterminate?: boolean;\n /** If `true`, the component is checked by default. */\n isDefaultChecked?: boolean;\n /**\n * Enabled status of switch\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * True when (input related to) switch is erroneous\n *\n * @default false\n */\n hasError?: boolean;\n /** Additional css classes to help with unique styling of the switch */\n className?: string;\n /**\n * Callback fired when the state is changed.\n *\n * @param event The event source of the callback. You can pull out the new value by accessing\n * event.target.value (string). You can pull out the new checked state by accessing\n * event.target.checked (boolean).\n */\n onChange?: (event: ChangeEvent) => void;\n};\n\n/* function CheckboxContainer({ labelText? = '', isDisabled : boolean, hasError : boolean, children? }) {\n return (\n \n {children}\n labelText\n \n );\n} */\n\n/** Primary UI component for user interaction */\nfunction Checkbox({\n id,\n isChecked,\n labelText = '',\n labelPosition = LabelPosition.After,\n isIndeterminate = false,\n isDefaultChecked,\n isDisabled = false,\n hasError = false,\n className,\n onChange,\n}: CheckboxProps) {\n const checkBox = (\n \n );\n\n let result;\n\n if (labelText) {\n const preceding =\n labelPosition === LabelPosition.Before || labelPosition === LabelPosition.Above;\n\n const labelSpan = (\n \n {labelText}\n \n );\n\n const labelIsInline =\n labelPosition === LabelPosition.Before || labelPosition === LabelPosition.After;\n\n const label = labelIsInline ? labelSpan :
{labelSpan}
;\n\n const checkBoxElement = labelIsInline ? checkBox :
{checkBox}
;\n\n result = (\n \n {preceding && label}\n {checkBoxElement}\n {!preceding && label}\n \n );\n } else {\n result = checkBox;\n }\n return result;\n}\n\nexport default Checkbox;\n","import Checkbox from '@/components/checkbox.component';\nimport '@/components/checklist.component.css';\n\nexport type ChecklistProps = {\n /** Optional string representing the id attribute of the fieldset element */\n id?: string;\n /** Optional string representing CSS class name(s) for styling */\n className?: string;\n /** Optional string representing legend for fieldset element */\n legend?: string;\n /** Array of strings representing the legend text for the fieldset element */\n listItems: string[];\n /** Array of strings representing items to be displayed as checkboxes in the checklist */\n selectedListItems: string[];\n /** Function that takes a string param and is called when a checkbox item is selected or deselected */\n handleSelectListItem: (item: string) => void;\n /**\n * Optional function that takes a string param and returns a string representing the label text\n * for the checkbox associated with that item\n */\n createLabel?: (item: string) => string;\n};\n\n/**\n * Renders a list of checkboxes wrapped in a fieldset element. Each checkbox corresponds to an item\n * from the `listItems` array.\n */\nexport default function Checklist({\n id,\n className,\n legend,\n listItems,\n selectedListItems,\n handleSelectListItem,\n createLabel,\n}: ChecklistProps) {\n return (\n
\n {legend && {legend}}\n {listItems.map((item) => (\n handleSelectListItem(item)}\n />\n ))}\n
\n );\n}\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof propValue === 'function' && !isClassComponent(propValue)) {\n warningHint = 'Did you accidentally provide a plain function component instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element type that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nexport default chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return _extends({}, propTypes, {\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n });\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { ForwardRef, Memo } from 'react-is';\n\n// Simplified polyfill for IE11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nconst fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\nexport function getFunctionName(fn) {\n const match = `${fn}`.match(fnNameMatchRegex);\n const name = match && match[1];\n return name || '';\n}\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE11 support\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null) {\n return null;\n }\n if (propValue && propValue.nodeType !== 1) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n }\n return null;\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","export default function deprecatedPropType(validator, reason) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return (props, propName, componentName, location, propFullName) => {\n const componentNameSafe = componentName || '<>';\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The ${location} \\`${propFullNameSafe}\\` of ` + `\\`${componentNameSafe}\\` is deprecated. ${reason}`);\n }\n return null;\n };\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n var _muiName, _element$type;\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from '../ownerDocument';\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example
\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The prop \\`${propFullNameSafe}\\` is not supported. Please remove it.`);\n }\n return null;\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from '../useLazyRef/useLazyRef';\nimport useOnMount from '../useOnMount/useOnMount';\nexport class Timeout {\n constructor() {\n this.currentId = null;\n this.clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n this.disposeEffect = () => {\n return this.clear;\n };\n }\n static create() {\n return new Timeout();\n }\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from '../useTimeout/useTimeout';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n hadFocusVisibleRecentlyTimeout.start(100, () => {\n hadFocusVisibleRecently = false;\n });\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/488fd8afc535ca3a6ad4dc581f5e89217b6a36ac/js/src/util/scrollbar.js#L14-L18\nexport default function getScrollbarSize(doc) {\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n const documentWidth = doc.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n}","export function getTypeByValue(value) {\n const valueType = typeof value;\n switch (valueType) {\n case 'number':\n if (Number.isNaN(value)) {\n return 'NaN';\n }\n if (!Number.isFinite(value)) {\n return 'Infinity';\n }\n if (value !== Math.floor(value)) {\n return 'float';\n }\n return 'number';\n case 'object':\n if (value === null) {\n return 'null';\n }\n return value.constructor.name;\n default:\n return valueType;\n }\n}\n\n// IE 11 support\nfunction ponyfillIsInteger(x) {\n // eslint-disable-next-line no-restricted-globals\n return typeof x === 'number' && isFinite(x) && Math.floor(x) === x;\n}\nconst isInteger = Number.isInteger || ponyfillIsInteger;\nfunction requiredInteger(props, propName, componentName, location) {\n const propValue = props[propName];\n if (propValue == null || !isInteger(propValue)) {\n const propType = getTypeByValue(propValue);\n return new RangeError(`Invalid ${location} \\`${propName}\\` of type \\`${propType}\\` supplied to \\`${componentName}\\`, expected \\`integer\\`.`);\n }\n return null;\n}\nfunction validator(props, propName, ...other) {\n const propValue = props[propName];\n if (propValue === undefined) {\n return null;\n }\n return requiredInteger(props, propName, ...other);\n}\nfunction validatorNoop() {\n return null;\n}\nvalidator.isRequired = requiredInteger;\nvalidatorNoop.isRequired = validatorNoop;\nexport default process.env.NODE_ENV === 'production' ? validatorNoop : validator;","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","import { globalStateClasses } from '@mui/utils/generateUtilityClass';\nconst GLOBAL_CLASS_PREFIX = 'base';\nfunction buildStateClass(state) {\n return `${GLOBAL_CLASS_PREFIX}--${state}`;\n}\nfunction buildSlotClass(componentName, slot) {\n return `${GLOBAL_CLASS_PREFIX}-${componentName}-${slot}`;\n}\nexport function generateUtilityClass(componentName, slot) {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? buildStateClass(globalStateClass) : buildSlotClass(componentName, slot);\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import { generateUtilityClass } from '../generateUtilityClass';\nexport function generateUtilityClasses(componentName, slots) {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot);\n });\n return result;\n}","'use client';\n\n/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp, elementAcceptingRef, unstable_useForkRef as useForkRef, unstable_ownerDocument as ownerDocument } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n// Inspired by https://github.com/focus-trap/tabbable\nconst candidatesSelector = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'].join(',');\nfunction getTabIndex(node) {\n const tabindexAttr = parseInt(node.getAttribute('tabindex') || '', 10);\n if (!Number.isNaN(tabindexAttr)) {\n return tabindexAttr;\n }\n\n // Browsers do not return `tabIndex` correctly for contentEditable nodes;\n // https://bugs.chromium.org/p/chromium/issues/detail?id=661108&q=contenteditable%20tabindex&can=2\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n // in Chrome,
,
\n );\n}\n\nexport default CharacterInventory;\n","import { Button } from '@/components/shadcn-ui/button';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Download, LoaderCircle } from 'lucide-react';\n\ntype DownloadButtonProps = {\n /** The downloading boolean value determines the state of the button. */\n isDownloading: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n /** Optional text for the button. */\n buttonText?: string;\n};\n\n/**\n * The DownloadButton component is a button designed for initiating downloads. It includes visuals\n * for active downloading and idle states.\n *\n * @param isDownloading The downloading boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @param buttonText Optional text for the button.\n * @returns A download button.\n */\nexport default function DownloadButton({\n isDownloading,\n handleClick,\n buttonText,\n}: DownloadButtonProps) {\n return (\n \n {isDownloading ? (\n \n ) : (\n <>\n \n {buttonText}\n \n )}\n \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { LoaderCircle } from 'lucide-react';\n\ntype RemoveButtonProps = {\n /** The removing boolean value determines the state of the button. */\n isRemoving: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n};\n\n/**\n * The RemoveButton component is a button designed for initiating removals of downloads. It includes\n * visuals for active removals and idle states.\n *\n * @param isRemoving The removing boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to remove.\n */\nexport default function RemoveButton({ isRemoving, handleClick }: RemoveButtonProps) {\n return (\n \n {isRemoving ? (\n <>\n \n Removing...\n \n ) : (\n 'Remove'\n )}\n \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { LoaderCircle } from 'lucide-react';\n\ntype UpdateButtonProps = {\n /** The updating boolean value determines the state of the button. */\n isUpdating: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n};\n\n/**\n * The UpdateButton component is a button designed for initiating updates for downloaded extensions.\n * It includes visuals for active updating and idle states.\n *\n * @param isUpdating The updating boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to update.\n */\nexport default function UpdateButton({ isUpdating, handleClick }: UpdateButtonProps) {\n return (\n \n {isUpdating ? (\n <>\n \n Updating...\n \n ) : (\n 'Update'\n )}\n \n );\n}\n","import*as t from\"react\";function n(){return n=Object.assign?Object.assign.bind():function(t){for(var n=1;n(t[n.toLowerCase()]=n,t),{for:\"htmlFor\"}),o={amp:\"&\",apos:\"'\",gt:\">\",lt:\"<\",nbsp:\" \",quot:\"“\"},c=[\"style\",\"script\"],a=/([-A-Z0-9_:]+)(?:\\s*=\\s*(?:(?:\"((?:\\\\.|[^\"])*)\")|(?:'((?:\\\\.|[^'])*)')|(?:\\{((?:\\\\.|{[^}]*?}|[^}])*)\\})))?/gi,_=/mailto:/i,u=/\\n{2,}$/,i=/^( *>[^\\n]+(\\n[^\\n]+)*\\n*)+\\n{2,}/,s=/^ *> ?/gm,l=/^ {2,}\\n/,f=/^(?:( *[-*_])){3,} *(?:\\n *)+\\n/,d=/^\\s*(`{3,}|~{3,}) *(\\S+)?([^\\n]*?)?\\n([\\s\\S]+?)\\s*\\1 *(?:\\n *)*\\n?/,p=/^(?: {4}[^\\n]+\\n*)+(?:\\n *)+\\n?/,m=/^(`+)\\s*([\\s\\S]*?[^`])\\s*\\1(?!`)/,g=/^(?:\\n *)*\\n/,y=/\\r\\n?/g,h=/^\\[\\^([^\\]]+)](:.*)\\n/,k=/^\\[\\^([^\\]]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\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\\1(?!\\1|\\w)/,X=/^==((?:\\[.*?\\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,J=/^~~((?:\\[.*?\\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,K=/^\\\\([^0-9A-Za-z\\s])/,Y=/^[\\s\\S]+?(?=[^0-9A-Z\\s\\u00c0-\\uffff&#;.()'\"]|\\d+\\.|\\n\\n| {2,}\\n|\\w+:\\S|$)/i,tt=/^\\n+/,nt=/^([ \\t]*)/,et=/\\\\([^\\\\])/g,rt=/ *\\n+$/,ot=/(?:^|\\n)( *)$/,ct=\"(?:\\\\d+\\\\.)\",at=\"(?:[*+-])\";function _t(t){return\"( *)(\"+(1===t?ct:at)+\") +\"}const ut=_t(1),it=_t(2);function st(t){return new RegExp(\"^\"+(1===t?ut:it))}const lt=st(1),ft=st(2);function dt(t){return new RegExp(\"^\"+(1===t?ut:it)+\"[^\\\\n]*(?:\\\\n(?!\\\\1\"+(1===t?ct:at)+\" )[^\\\\n]*)*(\\\\n|$)\",\"gm\")}const pt=dt(1),mt=dt(2);function gt(t){const n=1===t?ct:at;return new RegExp(\"^( *)(\"+n+\") [\\\\s\\\\S]+?(?:\\\\n{2,}(?! )(?!\\\\1\"+n+\" (?!\"+n+\" ))\\\\n*|\\\\s*\\\\n*$)\")}const yt=gt(1),ht=gt(2);function kt(t,n){const e=1===n,r=e?yt:ht,o=e?pt:mt,c=e?lt:ft;return{t(t,n,e){const o=ot.exec(e);return o&&(n.o||!n._&&!n.u)?r.exec(t=o[1]+t):null},i:Ht.HIGH,l(t,n,r){const a=e?+t[2]:void 0,_=t[0].replace(u,\"\\n\").match(o);let i=!1;return{p:_.map(function(t,e){const o=c.exec(t)[0].length,a=new RegExp(\"^ {1,\"+o+\"}\",\"gm\"),u=t.replace(a,\"\").replace(c,\"\"),s=e===_.length-1,l=-1!==u.indexOf(\"\\n\\n\")||s&&i;i=l;const f=r._,d=r.o;let p;r.o=!0,l?(r._=!1,p=u.replace(rt,\"\\n\\n\")):(r._=!0,p=u.replace(rt,\"\"));const m=n(p,r);return r._=f,r.o=d,m}),m:e,g:a}},h:(n,e,r)=>t(n.m?\"ol\":\"ul\",{key:r.k,start:n.g},n.p.map(function(n,o){return t(\"li\",{key:o},e(n,r))}))}}const xt=/^\\[([^\\]]*)]\\( *((?:\\([^)]*\\)|[^() ])*) *\"?([^)\"]*)?\"?\\)/,bt=/^!\\[([^\\]]*)]\\( *((?:\\([^)]*\\)|[^() ])*) *\"?([^)\"]*)?\"?\\)/,$t=[i,d,p,$,S,v,A,R,pt,yt,mt,ht],vt=[...$t,/^[^\\n]+(?: \\n|\\n{2,})/,z,L];function St(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,\"a\").replace(/[çÇ]/g,\"c\").replace(/[ðÐ]/g,\"d\").replace(/[ÈÉÊËéèêë]/g,\"e\").replace(/[ÏïÎîÍíÌì]/g,\"i\").replace(/[Ññ]/g,\"n\").replace(/[øØœŒÕõÔôÓóÒò]/g,\"o\").replace(/[ÜüÛûÚúÙù]/g,\"u\").replace(/[ŸÿÝý]/g,\"y\").replace(/[^a-z0-9- ]/gi,\"\").replace(/ /gi,\"-\").toLowerCase()}function zt(t){return V.test(t)?\"right\":q.test(t)?\"center\":U.test(t)?\"left\":null}function wt(t,n,e){const r=e.$;e.$=!0;const o=n(t.trim(),e);e.$=r;let c=[[]];return o.forEach(function(t,n){\"tableSeparator\"===t.type?0!==n&&n!==o.length-1&&c.push([]):(\"text\"!==t.type||null!=o[n+1]&&\"tableSeparator\"!==o[n+1].type||(t.v=t.v.replace(H,\"\")),c[c.length-1].push(t))}),c}function At(t,n,e){e._=!0;const r=wt(t[1],n,e),o=t[2].replace(G,\"\").split(\"|\").map(zt),c=function(t,n,e){return t.trim().split(\"\\n\").map(function(t){return wt(t,n,e)})}(t[3],n,e);return e._=!1,{S:o,A:c,L:r,type:\"table\"}}function Et(t,n){return null==t.S[n]?{}:{textAlign:t.S[n]}}function Lt(t){return function(n,e){return e._?t.exec(n):null}}function Mt(t){return function(n,e){return e._||e.u?t.exec(n):null}}function Ot(t){return function(n,e){return e._||e.u?null:t.exec(n)}}function It(t){return function(n){return t.exec(n)}}function jt(t,n,e){if(n._||n.u)return null;if(e&&!e.endsWith(\"\\n\"))return null;let r=\"\";t.split(\"\\n\").every(t=>!$t.some(n=>n.test(t))&&(r+=t+\"\\n\",t.trim()));const o=r.trimEnd();return\"\"==o?null:[r,o]}function Bt(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,\"\").match(/^\\s*(javascript|vbscript|data(?!:image)):/i))return}catch(t){return null}return t}function Rt(t){return t.replace(et,\"$1\")}function Tt(t,n,e){const r=e._||!1,o=e.u||!1;e._=!0,e.u=!0;const c=t(n,e);return e._=r,e.u=o,c}function Ct(t,n,e){const r=e._||!1,o=e.u||!1;e._=!1,e.u=!0;const c=t(n,e);return e._=r,e.u=o,c}function Dt(t,n,e){return e._=!1,t(n,e)}const Ft=(t,n,e)=>({v:Tt(n,t[1],e)});function Nt(){return{}}function Pt(){return null}function Zt(...t){return t.filter(Boolean).join(\" \")}function Gt(t,n,e){let r=t;const o=n.split(\".\");for(;o.length&&(r=r[o[0]],void 0!==r);)o.shift();return r||e}var Ht;function qt(e,u={}){u.overrides=u.overrides||{},u.slugify=u.slugify||St,u.namedCodesToUnicode=u.namedCodesToUnicode?n({},o,u.namedCodesToUnicode):o;const G=u.createElement||t.createElement;function H(t,e,...r){const o=Gt(u.overrides,`${t}.props`,{});return G(function(t,n){const e=Gt(n,t);return e?\"function\"==typeof e||\"object\"==typeof e&&\"render\"in e?e:Gt(n,`${t}.component`,t):t}(t,u.overrides),n({},e,o,{className:Zt(null==e?void 0:e.className,o.className)||void 0}),...r)}function q(n){let e=!1;u.forceInline?e=!0:u.forceBlock||(e=!1===N.test(n));const r=ct(ot(e?n:`${n.trimEnd().replace(tt,\"\")}\\n\\n`,{_:e}));for(;\"string\"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===u.wrapper)return r;const o=u.wrapper||(e?\"span\":\"div\");let c;if(r.length>1||u.forceWrapper)c=r;else{if(1===r.length)return c=r[0],\"string\"==typeof c?H(\"span\",{key:\"outer\"},c):c;c=null}return t.createElement(o,{key:\"outer\"},c)}function U(n){const e=n.match(a);return e?e.reduce(function(n,e,o){const c=e.indexOf(\"=\");if(-1!==c){const a=function(t){return-1!==t.indexOf(\"-\")&&null===t.match(E)&&(t=t.replace(B,function(t,n){return n.toUpperCase()})),t}(e.slice(0,c)).trim(),_=function(t){const n=t[0];return('\"'===n||\"'\"===n)&&t.length>=2&&t[t.length-1]===n?t.slice(1,-1):t}(e.slice(c+1).trim()),u=r[a]||a,i=n[u]=function(t,n){return\"style\"===t?n.split(/;\\s?/).reduce(function(t,n){const e=n.slice(0,n.indexOf(\":\"));return t[e.replace(/(-[a-z])/g,t=>t[1].toUpperCase())]=n.slice(e.length+1).trim(),t},{}):\"href\"===t?Bt(n):(n.match(M)&&(n=n.slice(1,n.length-1)),\"true\"===n||\"false\"!==n&&n)}(a,_);\"string\"==typeof i&&(z.test(i)||L.test(i))&&(n[u]=t.cloneElement(q(i.trim()),{key:o}))}else\"style\"!==e&&(n[r[e]||e]=!0);return n},{}):null}const V=[],et={},rt={blockQuote:{t:Ot(i),i:Ht.HIGH,l:(t,n,e)=>({v:n(t[0].replace(s,\"\"),e)}),h:(t,n,e)=>H(\"blockquote\",{key:e.k},n(t.v,e))},breakLine:{t:It(l),i:Ht.HIGH,l:Nt,h:(t,n,e)=>H(\"br\",{key:e.k})},breakThematic:{t:Ot(f),i:Ht.HIGH,l:Nt,h:(t,n,e)=>H(\"hr\",{key:e.k})},codeBlock:{t:Ot(p),i:Ht.MAX,l:t=>({v:t[0].replace(/^ {4}/gm,\"\").replace(/\\n+$/,\"\"),M:void 0}),h:(t,e,r)=>H(\"pre\",{key:r.k},H(\"code\",n({},t.O,{className:t.M?`lang-${t.M}`:\"\"}),t.v))},codeFenced:{t:Ot(d),i:Ht.MAX,l:t=>({O:U(t[3]||\"\"),v:t[4],M:t[2]||void 0,type:\"codeBlock\"})},codeInline:{t:Mt(m),i:Ht.LOW,l:t=>({v:t[2]}),h:(t,n,e)=>H(\"code\",{key:e.k},t.v)},footnote:{t:Ot(h),i:Ht.MAX,l:t=>(V.push({I:t[2],j:t[1]}),{}),h:Pt},footnoteReference:{t:Lt(k),i:Ht.HIGH,l:t=>({v:t[1],B:`#${u.slugify(t[1])}`}),h:(t,n,e)=>H(\"a\",{key:e.k,href:Bt(t.B)},H(\"sup\",{key:e.k},t.v))},gfmTask:{t:Lt(b),i:Ht.HIGH,l:t=>({R:\"x\"===t[1].toLowerCase()}),h:(t,n,e)=>H(\"input\",{checked:t.R,key:e.k,readOnly:!0,type:\"checkbox\"})},heading:{t:Ot(u.enforceAtxHeadings?v:$),i:Ht.HIGH,l:(t,n,e)=>({v:Tt(n,t[2],e),T:u.slugify(t[2]),C:t[1].length}),h:(t,n,e)=>H(`h${t.C}`,{id:t.T,key:e.k},n(t.v,e))},headingSetext:{t:Ot(S),i:Ht.MAX,l:(t,n,e)=>({v:Tt(n,t[1],e),C:\"=\"===t[2]?1:2,type:\"heading\"})},htmlComment:{t:It(A),i:Ht.HIGH,l:()=>({}),h:Pt},image:{t:Mt(bt),i:Ht.HIGH,l:t=>({D:t[1],B:Rt(t[2]),F:t[3]}),h:(t,n,e)=>H(\"img\",{key:e.k,alt:t.D||void 0,title:t.F||void 0,src:Bt(t.B)})},link:{t:Lt(xt),i:Ht.LOW,l:(t,n,e)=>({v:Ct(n,t[1],e),B:Rt(t[2]),F:t[3]}),h:(t,n,e)=>H(\"a\",{key:e.k,href:Bt(t.B),title:t.F},n(t.v,e))},linkAngleBraceStyleDetector:{t:Lt(j),i:Ht.MAX,l:t=>({v:[{v:t[1],type:\"text\"}],B:t[1],type:\"link\"})},linkBareUrlDetector:{t:(t,n)=>n.N?null:Lt(O)(t,n),i:Ht.MAX,l:t=>({v:[{v:t[1],type:\"text\"}],B:t[1],F:void 0,type:\"link\"})},linkMailtoDetector:{t:Lt(I),i:Ht.MAX,l(t){let n=t[1],e=t[1];return _.test(e)||(e=\"mailto:\"+e),{v:[{v:n.replace(\"mailto:\",\"\"),type:\"text\"}],B:e,type:\"link\"}}},orderedList:kt(H,1),unorderedList:kt(H,2),newlineCoalescer:{t:Ot(g),i:Ht.LOW,l:Nt,h:()=>\"\\n\"},paragraph:{t:jt,i:Ht.LOW,l:Ft,h:(t,n,e)=>H(\"p\",{key:e.k},n(t.v,e))},ref:{t:Lt(T),i:Ht.MAX,l:t=>(et[t[1]]={B:t[2],F:t[4]},{}),h:Pt},refImage:{t:Mt(C),i:Ht.MAX,l:t=>({D:t[1]||void 0,P:t[2]}),h:(t,n,e)=>H(\"img\",{key:e.k,alt:t.D,src:Bt(et[t.P].B),title:et[t.P].F})},refLink:{t:Lt(D),i:Ht.MAX,l:(t,n,e)=>({v:n(t[1],e),Z:n(t[0].replace(F,\"\\\\$1\"),e),P:t[2]}),h:(t,n,e)=>et[t.P]?H(\"a\",{key:e.k,href:Bt(et[t.P].B),title:et[t.P].F},n(t.v,e)):H(\"span\",{key:e.k},n(t.Z,e))},table:{t:Ot(R),i:Ht.HIGH,l:At,h:(t,n,e)=>H(\"table\",{key:e.k},H(\"thead\",null,H(\"tr\",null,t.L.map(function(r,o){return H(\"th\",{key:o,style:Et(t,o)},n(r,e))}))),H(\"tbody\",null,t.A.map(function(r,o){return H(\"tr\",{key:o},r.map(function(r,o){return H(\"td\",{key:o,style:Et(t,o)},n(r,e))}))})))},tableSeparator:{t:function(t,n){return n.$?(n._=!0,Z.exec(t)):null},i:Ht.HIGH,l:function(){return{type:\"tableSeparator\"}},h:()=>\" | \"},text:{t:It(Y),i:Ht.MIN,l:t=>({v:t[0].replace(w,(t,n)=>u.namedCodesToUnicode[n]?u.namedCodesToUnicode[n]:t)}),h:t=>t.v},textBolded:{t:Mt(W),i:Ht.MED,l:(t,n,e)=>({v:n(t[2],e)}),h:(t,n,e)=>H(\"strong\",{key:e.k},n(t.v,e))},textEmphasized:{t:Mt(Q),i:Ht.LOW,l:(t,n,e)=>({v:n(t[2],e)}),h:(t,n,e)=>H(\"em\",{key:e.k},n(t.v,e))},textEscaped:{t:Mt(K),i:Ht.HIGH,l:t=>({v:t[1],type:\"text\"})},textMarked:{t:Mt(X),i:Ht.LOW,l:Ft,h:(t,n,e)=>H(\"mark\",{key:e.k},n(t.v,e))},textStrikethroughed:{t:Mt(J),i:Ht.LOW,l:Ft,h:(t,n,e)=>H(\"del\",{key:e.k},n(t.v,e))}};!0!==u.disableParsingRawHTML&&(rt.htmlBlock={t:It(z),i:Ht.HIGH,l(t,n,e){const[,r]=t[3].match(nt),o=new RegExp(`^${r}`,\"gm\"),a=t[3].replace(o,\"\"),_=(u=a,vt.some(t=>t.test(u))?Dt:Tt);var u;const i=t[1].toLowerCase(),s=-1!==c.indexOf(i);e.N=e.N||\"a\"===i;const l=s?t[3]:_(n,a,e);return e.N=!1,{O:U(t[2]),v:l,G:s,H:s?i:t[1]}},h:(t,e,r)=>H(t.H,n({key:r.k},t.O),t.G?t.v:e(t.v,r))},rt.htmlSelfClosing={t:It(L),i:Ht.HIGH,l:t=>({O:U(t[2]||\"\"),H:t[1]}),h:(t,e,r)=>H(t.H,n({},t.O,{key:r.k}))});const ot=function(t){let n=Object.keys(t);function e(r,o){let c=[],a=\"\";for(;r;){let _=0;for(;_{let{children:r,options:o}=n,c=function(t,n){if(null==t)return{};var e,r,o={},c=Object.keys(t);for(r=0;r=0||(o[e]=t[e]);return o}(n,e);return t.cloneElement(qt(r,o),c)};export{qt as compiler};\n//# sourceMappingURL=index.modern.js.map\n","import Markdown from 'markdown-to-jsx';\n\ninterface MarkdownRendererProps {\n markdown: string;\n}\n\n/**\n * This component renders markdown content given a markdown string. It uses typography styles from\n * the platform.\n *\n * @param markdown The markdown string to render.\n * @returns A div containing the rendered markdown content.\n */\nexport default function MarkdownRenderer({ markdown }: MarkdownRendererProps) {\n return (\n
\n {markdown}\n
\n );\n}\n","import { PlatformEvent, PlatformEventHandler } from 'platform-bible-utils';\nimport { useEffect } from 'react';\n\n/**\n * Adds an event handler to an event so the event handler runs when the event is emitted. Use\n * `papi.network.getNetworkEvent` to use a networked event with this hook.\n *\n * @param event The event to subscribe to.\n *\n * - If event is a `PlatformEvent`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEvent = (\n event: PlatformEvent | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n useEffect(() => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return () => {};\n\n const unsubscriber = event(eventHandler);\n return () => {\n unsubscriber();\n };\n }, [event, eventHandler]);\n};\nexport default useEvent;\n","import { useCallback, useEffect } from 'react';\nimport { PlatformEvent, PlatformEventAsync, PlatformEventHandler } from 'platform-bible-utils';\nimport usePromise from './use-promise.hook';\n\nconst noopUnsubscriber = () => false;\n\n/**\n * Adds an event handler to an asynchronously subscribing/unsubscribing event so the event handler\n * runs when the event is emitted. Use `papi.network.getNetworkEvent` to use a networked event with\n * this hook.\n *\n * @param event The asynchronously (un)subscribing event to subscribe to.\n *\n * - If event is a `PlatformEvent` or `PlatformEventAsync`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEventAsync = (\n event: PlatformEvent | PlatformEventAsync | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n // Subscribe to the event asynchronously\n const [unsubscribe] = usePromise(\n useCallback(async () => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return noopUnsubscriber;\n\n // Wrap subscribe and unsubscribe in promises to allow normal events to be used as well\n const unsub = await Promise.resolve(event(eventHandler));\n return async () => unsub();\n }, [eventHandler, event]),\n noopUnsubscriber,\n // We want the unsubscriber to return to default value immediately upon changing subscription\n // So the useEffect below will unsubscribe asap\n { preserveValue: false },\n );\n\n // Unsubscribe from the event asynchronously (but we aren't awaiting the unsub)\n useEffect(() => {\n return () => {\n if (unsubscribe !== noopUnsubscriber) {\n unsubscribe();\n }\n };\n }, [unsubscribe]);\n};\n\nexport default useEventAsync;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Card = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCard.displayName = 'Card';\n\nconst CardHeader = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}\n \n ),\n);\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n

\n));\nCardDescription.displayName = 'CardDescription';\n\nconst CardContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n

\n ),\n);\nCardContent.displayName = 'CardContent';\n\nconst CardFooter = React.forwardRef>(\n ({ className, ...props }, ref) => (\n
\n ),\n);\nCardFooter.displayName = 'CardFooter';\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\n","import React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst alertVariants = cva(\n 'pr-relative pr-w-full pr-rounded-lg pr-border pr-p-4 [&>svg~*]:pr-pl-7 [&>svg+div]:pr-translate-y-[-3px] [&>svg]:pr-absolute [&>svg]:pr-left-4 [&>svg]:pr-top-4 [&>svg]:pr-text-foreground',\n {\n variants: {\n variant: {\n default: 'pr-bg-background pr-text-foreground',\n destructive:\n 'pr-border-destructive/50 pr-text-destructive dark:pr-border-destructive [&>svg]:pr-text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes & VariantProps\n>(({ className, variant, ...props }, ref) => (\n
\n));\nAlert.displayName = 'Alert';\n\nconst AlertTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}{' '}\n \n ),\n);\nAlertTitle.displayName = 'AlertTitle';\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
\n));\nAlertDescription.displayName = 'AlertDescription';\n\nexport { Alert, AlertTitle, AlertDescription };\n","import React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Slider = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n \n \n \n));\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider };\n","import React from 'react';\nimport * as SwitchPrimitives from '@radix-ui/react-switch';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Switch = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n"],"names":["P","R","t","e","s","n","N","B","O","S","K","g","k","x","T","X","V","w","L","G","A","H","C","I","y","q","U","m","l","h","c","E","D","i","a","o","u","v","f","d","b","p","J","twMergeCustom","extendTailwindMerge","cn","inputs","clsx","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","Input","type","BookChapterInput","forwardRef","handleSearch","handleKeyDown","handleOnClick","handleSubmit","ShadInput","event","History","ChapterSelect","handleSelectChapter","endChapter","activeChapter","highlightedChapter","handleHighlightedChapter","chapters","_","handleMouse","useCallback","chapterNumber","chapter","BookMenuItem","bookId","handleSelectBook","isSelected","handleHighlightBook","bookType","ShadDropdownMenuItem","Canon","GoToMenuItem","handleSort","handleLocationHistory","handleBookmarks","ShadDropdownMenuLabel","ArrowDownWideNarrow","Clock","Bookmark","ALL_BOOK_IDS","BOOK_TYPE_LABELS","BOOK_TYPE_ARRAY","SCROLL_OFFSET","SEARCH_QUERY_FORMATS","fetchGroupedBooks","fetchEndChapter","getChaptersForBook","getAllEnglishNames","isValidBookEnglishName","bookName","getBookIdFromEnglishName","formattedBookName","BookChapterControl","scrRef","searchQuery","setSearchQuery","useState","selectedBookId","setSelectedBookId","setHighlightedChapter","highlightedBookId","setHighlightedBookId","isContentOpen","setIsContentOpen","isContentOpenDelayed","setIsContentOpenDelayed","inputRef","useRef","contentRef","menuItemRef","fetchFilteredBooks","englishNameLowerCase","normalizedQuery","handleSearchInput","searchString","shouldPreventAutoClosing","controlMenuState","open","updateReference","shouldClose","verse","handleInputSubmit","format","matches","book","englishName","handleKeyDownInput","handleKeyDownContent","key","handleKeyDownMenuItem","chapterOffSet","useEffect","useLayoutEffect","scrollTimeout","scrollPosition","ShadDropdownMenu","ShadDropdownMenuTrigger","ShadDropdownMenuContent","bookTypeIndex","element","ShadDropdownMenuSeparator","Table","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","buttonVariants","cva","Button","variant","size","asChild","Comp","Slot","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator","DataTablePagination","table","value","pageSize","ArrowLeftIcon","ChevronLeftIcon","ChevronRightIcon","ArrowRightIcon","DataTableViewOptions","FilterIcon","column","DataTable","columns","data","enablePagination","showPaginationControls","showColumnVisibilityControls","onRowClickHandler","sorting","setSorting","columnFilters","setColumnFilters","columnVisibility","setColumnVisibility","rowSelection","setRowSelection","useReactTable","getCoreRowModel","getPaginationRowModel","getSortedRowModel","getFilteredRowModel","headerGroup","header","flexRender","_a","row","cell","ComboBox","id","title","isDisabled","isClearable","hasError","isFullWidth","width","options","onChange","onFocus","onBlur","getOptionLabel","MuiComboBox","MuiTextField","ChapterRangeSelector","handleSelectStartChapter","handleSelectEndChapter","chapterCount","startChapter","setStartChapter","setEndChapter","chapterOptions","setChapterOptions","onChangeStartChapter","_event","onChangeEndChapter","Fragment","FormControlLabel","option","LabelPosition","Checkbox","isChecked","labelText","labelPosition","isIndeterminate","isDefaultChecked","checkBox","MuiCheckbox","result","preceding","labelSpan","labelIsInline","label","checkBoxElement","FormLabel","Checklist","legend","listItems","selectedListItems","handleSelectListItem","createLabel","item","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","_extends","r","z","reactIs_production_min","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","typeOf","object","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development","reactIsModule","require$$0","require$$1","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","order2","test3","letter","objectAssign","from","to","symbols","ReactPropTypesSecret","ReactPropTypesSecret_1","has","printWarning","loggedTypeFailures","text","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1","ReactIs","assign","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","createAnyTypeChecker","createArrayOfTypeChecker","createElementTypeChecker","createElementTypeTypeChecker","createInstanceTypeChecker","createNodeChecker","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","createShapeTypeChecker","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propName","propFullName","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","iterator","step","entry","isSymbol","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","chainPropTypes","propType1","propType2","args","isPlainObject","prototype","deepClone","output","deepmerge","isClassComponent","elementType","acceptingRef","safePropName","warningHint","elementAcceptingRef","PropTypes","elementAcceptingRef$1","elementTypeAcceptingRef","elementTypeAcceptingRef$1","specialProperty","exactProp","propTypes","unsupportedProps","prop","formatMuiErrorMessage","code","url","REACT_SERVER_CONTEXT_TYPE","REACT_OFFSCREEN_TYPE","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","SuspenseList","hasWarnedAboutDeprecatedIsConcurrentMode","isSuspenseList","fnNameMatchRegex","getFunctionName","fn","match","getFunctionComponentName","Component","fallback","getWrappedName","outerType","innerType","wrapperName","functionName","getDisplayName","HTMLElementType","refType","refType$1","capitalize","string","_formatMuiErrorMessage","createChainedFunction","funcs","acc","func","debounce","wait","timeout","debounced","later","deprecatedPropType","validator","reason","componentNameSafe","propFullNameSafe","isMuiElement","muiNames","_muiName","_element$type","ownerDocument","node","ownerWindow","requirePropFactory","componentNameInError","prevPropTypes","requiredProp","defaultTypeChecker","typeCheckerResult","setRef","useEnhancedEffect","useEnhancedEffect$1","globalId","useGlobalId","idOverride","defaultId","setDefaultId","maybeReactUseId","useId","reactId","unsupportedProp","useControlled","controlled","defaultProp","name","state","isControlled","valueState","setValue","defaultValue","setValueIfUncontrolled","newValue","useEventCallback","useForkRef","refs","instance","UNINITIALIZED","useLazyRef","init","initArg","EMPTY","useOnMount","Timeout","delay","useTimeout","hadKeyboardEvent","hadFocusVisibleRecently","hadFocusVisibleRecentlyTimeout","inputTypesWhitelist","focusTriggersKeyboardModality","tagName","handlePointerDown","handleVisibilityChange","prepare","doc","isFocusVisible","useIsFocusVisible","isFocusVisibleRef","handleBlurVisible","handleFocusVisible","getScrollbarSize","documentWidth","getTypeByValue","valueType","ponyfillIsInteger","isInteger","requiredInteger","other","validatorNoop","integerPropType","resolveProps","defaultProps","defaultSlotProps","slotProps","slotPropName","composeClasses","slots","getUtilityClass","classes","slot","utilityClass","defaultGenerator","createClassNameGenerator","generate","generator","ClassNameGenerator","ClassNameGenerator$1","globalStateClasses","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","clamp","min","max","isHostComponent","appendOwnerState","otherProps","ownerState","defaultContextValue","ClassNameConfiguratorContext","useClassNamesOverride","disableDefaultClasses","extractEventHandlers","excludeKeys","resolveComponentProps","componentProps","slotState","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","_excluded","useSlotProps","_parameters$additiona","skipResolvingSlotProps","rest","resolvedComponentsProps","mergedProps","internalRef","GLOBAL_CLASS_PREFIX","buildStateClass","buildSlotClass","candidatesSelector","getTabIndex","tabindexAttr","isNonTabbableRadio","getRadio","selector","roving","isNodeMatchingSelectorFocusable","defaultGetTabbable","root","regularTabNodes","orderedTabNodes","nodeTabIndex","defaultIsEnabled","FocusTrap","disableAutoFocus","disableEnforceFocus","disableRestoreFocus","getTabbable","isEnabled","ignoreNextEnforceFocus","sentinelStart","sentinelEnd","nodeToRestore","reactFocusEventTarget","activated","rootRef","handleRef","lastKeydown","loopFocus","nativeEvent","contain","rootElement","tabbable","_lastKeydown$current","_lastKeydown$current2","isShiftTab","focusNext","focusPrevious","interval","childrenPropsHandler","handleFocusSentinel","_jsxs","_jsx","getContainer","container","forwardedRef","disablePortal","mountNode","setMountNode","newProps","ReactDOM","isOverflowing","ariaHidden","show","getPaddingRight","isAriaHiddenForbiddenOnElement","isForbiddenTagName","isInputHidden","ariaHiddenSiblings","mountElement","currentElement","elementsToExclude","blacklist","isNotExcludedElement","isNotForbiddenElement","findIndexOf","items","callback","idx","index","handleContainer","containerInfo","restoreStyle","scrollbarSize","fixedElements","scrollContainer","parent","containerWindow","el","property","getHiddenSiblings","hiddenSiblings","ModalManager","modal","modalIndex","containerIndex","ariaHiddenState","nextTop","getHasTransition","defaultManager","useModal","disableEscapeKeyDown","disableScrollLock","manager","closeAfterTransition","onTransitionEnter","onTransitionExited","onClose","mountNodeRef","modalRef","exited","setExited","hasTransition","ariaHiddenProp","getDoc","getModal","handleMounted","handleOpen","resolvedContainer","isTopModal","handlePortalRef","handleClose","createHandleKeyDown","otherHandlers","_otherHandlers$onKeyD","createHandleBackdropClick","_otherHandlers$onClic","propsEventHandlers","externalEventHandlers","handleEnter","handleExited","top","bottom","right","left","auto","basePlacements","start","end","clippingParents","viewport","popper","reference","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","getWindow","OwnElement","isHTMLElement","isShadowRoot","applyStyles","_ref","style","attributes","effect","_ref2","initialStyles","styleProperties","attribute","applyStyles$2","getBasePlacement","round","getUAString","uaData","isLayoutViewport","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","visualViewport","addVisualOffsets","height","getLayoutRect","contains","child","rootNode","next","getComputedStyle","isTableElement","getDocumentElement","getParentNode","getTrueOffsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","css","getOffsetParent","window","offsetParent","getMainAxisFromPlacement","within","mathMax","mathMin","withinMaxClamp","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","keys","hashMap","toPaddingObject","padding","arrow","_state$modifiersData$","arrowElement","popperOffsets","basePlacement","axis","isVertical","len","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","center","offset","axisProp","_options$element","arrow$1","getVariation","unsetSides","roundOffsetsByDPR","win","dpr","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles$1","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","eventListeners","hash","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","scrollTop","getWindowScrollBarX","getViewportRect","strategy","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","rect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_options$mainAxis","checkMainAxis","_options$altAxis","checkAltAxis","specifiedFallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","fallbackPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","numberOfChecks","_loop","_i","fittingPlacement","_ret","flip$1","getSideOffsets","preventedOffsets","isAnySideFullyClipped","side","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide$1","distanceAndSkiddingToXY","rects","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset$1","popperOffsets$1","getAltAxis","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","altAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow$1","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","documentElement","order","modifiers","map","visited","modifier","sort","requires","dep","depModifier","orderModifiers","orderedModifiers","phase","pending","resolve","mergeByName","merged","current","existing","DEFAULT_OPTIONS","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptionsAction","cleanupModifierEffects","runModifierEffects","_state$elements","_state$orderedModifie","_state$orderedModifie2","_ref$options","cleanupFn","noopFn","createPopper","COMPONENT_NAME","getPopperUtilityClass","_excluded2","flipPlacement","direction","resolveAnchorEl","anchorEl","isVirtualElement","useUtilityClasses","defaultPopperOptions","PopperTooltip","_slots$root","initialPlacement","popperOptions","popperRefProp","TransitionProps","tooltipRef","ownRef","popperRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","box","popperModifiers","childProps","Root","rootProps","Popper","containerProp","keepMounted","transition","resolvedAnchorEl","display","transitionProps","sortBreakpointsValues","breakpointsAsArray","breakpoint1","breakpoint2","obj","createBreakpoints","breakpoints","unit","sortedValues","up","down","between","endIndex","only","not","keyIndex","shape","shape$1","responsivePropType","responsivePropType$1","merge","defaultBreakpoints","handleBreakpoints","styleFromPropValue","theme","themeBreakpoints","breakpoint","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","_breakpointsInput$key","breakpointStyleKey","removeUnusedBreakpoints","breakpointKeys","breakpointOutput","getPath","path","checkVars","getStyleValue","themeMapping","transform","propValueFinal","userValue","cssProperty","themeKey","memoize","cache","arg","properties","directions","aliases","getCssProperties","dir","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","_getPath","themeSpacing","abs","createUnarySpacing","getValue","transformer","transformed","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","createSpacing","spacingInput","spacing","argsInput","argument","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borderRadius","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","paletteTransform","color","bgcolor","backgroundColor","sizingTransform","maxWidth","_props$theme","_props$theme2","breakpointsValues","minWidth","maxHeight","minHeight","boxSizing","defaultSxConfig","defaultSxConfig$1","objectsHaveSameKeys","objects","union","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","config","styleFunctionSx","_theme$unstable_sxCon","sx","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","styleKey","styleFunctionSx$1","createTheme","paletteInput","shapeInput","muiTheme","isObjectEmpty","useTheme","defaultTheme","contextTheme","ThemeContext","systemDefaultTheme","useThemeWithoutDefault","_excluded3","isEmpty","isStringTag","tag","shouldForwardProp","lowercaseFirstLetter","resolveTheme","themeId","defaultOverridesResolver","processStyleArg","callableStyle","resolvedStylesArg","resolvedStyle","variants","isMatch","createStyled","input","rootShouldForwardProp","slotShouldForwardProp","systemSx","inputOptions","processStyles","componentSlot","inputSkipVariantsResolver","inputSkipSx","overridesResolver","skipVariantsResolver","skipSx","shouldForwardPropOption","defaultStyledResolver","styledEngineStyled","transformStyleArg","stylesArg","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","styleOverrides","resolvedStyleOverrides","slotKey","slotStyle","_theme$components","themeVariants","numOfCustomFnsApplied","placeholders","displayName","getThemeProps","params","useThemeProps","clampWrapper","hexToRgb","re","colors","decomposeColor","marker","colorSpace","recomposeColor","hslToRgb","rgb","getLuminance","getContrastRatio","foreground","background","lumA","lumB","alpha","darken","coefficient","lighten","createMixins","mixins","common","common$1","grey","grey$1","purple","purple$1","red","red$1","orange","orange$1","blue","blue$1","lightBlue","lightBlue$1","green","green$1","light","dark","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","getDefaultPrimary","mode","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","palette","contrastThreshold","primary","secondary","info","success","warning","getContrastText","contrastText","contrast","augmentColor","mainShade","lightShade","darkShade","modes","caseAllCaps","defaultFontFamily","createTypography","typography","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem2","coef","pxToRem","buildVariant","fontWeight","lineHeight","letterSpacing","casing","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadow","px","shadows","shadows$1","easing","duration","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","isString","isNumber","animatedProp","zIndex","zIndex$1","mixinsInput","transitionsInput","typographyInput","systemTheme","systemCreateTheme","stateClasses","component","stateClass","defaultTheme$1","THEME_ID","styled","styled$1","useThemeSystem","systemUseThemeProps","_setPrototypeOf","_inheritsLoose","subClass","superClass","setPrototypeOf","timeoutsShape","TransitionGroupContext","forceReflow","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","context","_this","parentGroup","appear","initialStatus","prevState","nextIn","_proto","prevProps","nextStatus","status","exit","enter","mounting","_this2","appearing","maybeNode","maybeAppearing","timeouts","enterTimeout","_this3","nextState","_this4","active","handler","doesNotHaveTimeoutOrListener","maybeNextCallback","_this$props","pt","noop","Transition$1","reflow","getTransitionProps","_style$transitionDura","_style$transitionTimi","getScale","isWebKit154","Grow","addEndListener","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","TransitionComponent","timer","autoTimeout","nodeRef","normalizedTransitionCallback","maybeIsAppearing","handleEntering","isAppearing","transitionDuration","transitionTimingFunction","handleEntered","handleExiting","handleExit","handleAddEndListener","Grow$1","getOverlayAlpha","elevation","alphaValue","getOverlayAlpha$1","PopperRoot","BasePopper","inProps","components","componentsProps","RootComponent","Popper$1","getTooltipUtilityClass","tooltipClasses","tooltipClasses$1","disableInteractive","touch","TooltipPopper","TooltipTooltip","TooltipArrow","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","Tooltip","_slots$popper","_slots$transition","_slots$tooltip","_slots$arrow","_slotProps$popper","_ref6","_slotProps$popper2","_slotProps$transition","_slotProps$tooltip","_ref7","_slotProps$tooltip2","_slotProps$arrow","_ref8","_slotProps$arrow2","childrenProp","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","idProp","leaveDelay","leaveTouchDelay","onOpen","openProp","PopperComponentProp","PopperProps","TransitionComponentProp","isRtl","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","openState","setOpenState","prevUserSelect","stopTouchInteraction","handleLeave","focusVisibleRef","setChildIsFocusVisible","handleBlur","handleFocus","detectTouchStart","childrenProps","handleMouseOver","handleMouseLeave","handleTouchStart","handleTouchEnd","handleMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","_PopperProps$popperOp","tooltipModifiers","PopperComponent","TooltipComponent","ArrowComponent","popperProps","tooltipProps","tooltipArrowProps","TransitionPropsInner","Tooltip$1","_interopRequireDefault","module","getSvgIconUtilityClass","SvgIconRoot","_theme$transitions","_theme$transitions$cr","_theme$transitions2","_theme$typography","_theme$typography$pxT","_theme$typography2","_theme$typography2$px","_theme$typography3","_theme$typography3$px","_palette$ownerState$c","_palette","_palette2","_palette3","SvgIcon","htmlColor","inheritViewBox","titleAccess","viewBox","hasSvgAsChild","more","SvgIcon$1","createSvgIcon","unstable_ClassNameGenerator","exports","_utils","ArrowRight","default_1","_createSvgIcon","_jsxRuntime","getIcon","icon","menuLabel","leading","MuiListItemIcon","MenuItem","onClick","tooltip","allowForLeadingIcons","iconPathBefore","iconPathAfter","hasAutoFocus","isDense","isSubMenuParent","hasDisabledGutters","hasDivider","focusVisibleClassName","menuItem","MuiMenuItem","MuiListItemText","getAllGroups","menuDefinition","SubMenu","setAnchorEl","parentMenuItem","parentItemProps","handleParentMenuItemClick","renderSubMenuItems","includedGroups","group","GroupedMenuItemList","Menu","getOrderedGroupItems","groupId","allItems","menuProps","commandHandler","useMemo","groupsToInclude","sortedGroups","itemArray","allowSpaceForLeadingIcons","createMenuItemProps","isLastItemInGroup","firstItem","divKey","itemInfo","menuItemProps","TopLevelMenu","columnId","MenuColumn","metadata","Grid","List","GridMenu","multiColumnMenu","sortedColumns","columnNumbers","columnName","col","ListContext","ListContext$1","getListUtilityClass","disablePadding","dense","subheader","ListRoot","List$1","nextItem","disableListWrap","previousItem","textCriteriaMatches","nextFocus","textCriteria","moveFocus","currentFocus","disabledItemsFocusable","traversalFunction","wrappedOnce","nextFocusDisabled","MenuList","actions","autoFocus","autoFocusItem","onKeyDown","listRef","textCriteriaRef","containerElement","noExplicitWidth","criteria","lowerKey","currTime","keepFocusOnCurrent","activeItemIndex","newChildProps","MenuList$1","Fade","defaultTimeout","Fade$1","getBackdropUtilityClass","invisible","BackdropRoot","Backdrop","_slotProps$root","rootSlotProps","Backdrop$1","getModalUtilityClass","ModalRoot","ModalBackdrop","Modal","_slots$backdrop","_slotProps$backdrop","BackdropComponent","BackdropProps","hideBackdrop","onBackdropClick","propsWithDefaults","getRootProps","getBackdropProps","portalRef","RootSlot","BackdropSlot","backdropSlotProps","backdropProps","Modal$1","getPaperUtilityClass","square","PaperRoot","_theme$vars$overlays","Paper","PaperBase","getPopoverUtilityClass","getOffsetTop","vertical","getOffsetLeft","horizontal","getTransformOriginValue","transformOrigin","PopoverRoot","PopoverPaper","Popover","_slotProps$paper","_slots$paper","action","anchorOrigin","anchorPosition","anchorReference","marginThreshold","PaperPropsProp","transitionDurationProp","externalPaperSlotProps","paperRef","handlePaperRef","getAnchorOffset","anchorElement","anchorRect","getTransformOrigin","elemRect","getPositioningStyle","elemTransformOrigin","anchorOffset","heightThreshold","widthThreshold","diff","isPositioned","setIsPositioned","setPositioningStyles","positioning","handleResize","PaperSlot","paperProps","_useSlotProps","rootSlotPropsProp","Popover$1","getMenuUtilityClass","RTL_ORIGIN","LTR_ORIGIN","MenuRoot","MenuPaper","MenuMenuList","disableAutoFocusItem","MenuListProps","PaperProps","PopoverClasses","menuListActionsRef","handleListKeyDown","paperExternalSlotProps","paperSlotProps","Menu$1","ContextMenu","contextMenuPosition","setContextMenuPosition","handleContextMenu","MenuItemList","MenuIcon","getUsePromiseOptionsDefaults","usePromise","promiseFactoryCallback","defaultValueRef","optionsDefaultedRef","isLoading","setIsLoading","promiseIsCurrent","HamburgerMenuButton","menuProvider","normalMenu","fullMenu","containerRef","ariaLabelPrefix","isMenuOpen","setMenuOpen","showFullMenu","setShowFullMenu","handleMenuItemClick","handleMenuButtonClick","prevIsOpen","isOpening","menuCommandHandler","command","setOffset","normalMenuData","fullMenuData","menu","IconButton","Drawer","isTooltipSuppressed","adjustMarginToAlignToEdge","MuiIconButton","labelVariants","Label","LabelPrimitive","TextField","helperText","placeholder","ShadLabel","SearchBar","onSearch","handleInputChange","Slider","orientation","showMarks","valueLabelDisplay","onChangeCommitted","MuiSlider","Snackbar","autoHideDuration","isOpen","ContentProps","newContentProps","MuiSnackbar","Switch","MuiSwitch","Toolbar","AppBar","MuiToolbar","Tabs","TabsPrimitive","TabsList","TabsTrigger","TabsContent","VerticalTabs","VerticalTabsList","VerticalTabsTrigger","VerticalTabsContent","getSortingIcon","sortDirection","ArrowUpIcon","ArrowDownIcon","ArrowUpDownIcon","characterLabel","unicodeValueLabel","countLabel","statusLabel","statusChangeHandler","selectedRows","characters","CircleCheckIcon","CircleXIcon","CircleHelpIcon","InventoryDataTable","tableData","onStatusChange","onSelectCharacter","localizedStrings","rowClickHandler","extractOccurrences","character","scriptureRef","results","lines","currentChapter","currentVerse","line","words","snippet","OccurrencesTable","selectedCharacter","scriptureReference","setScriptureReference","occurrence","setTableData","buildTableData","statusFilter","textFilter","validCharacters","invalidCharacters","characterData","split","characterDataPoint","dataPoint","characterStatus","newCharacter","CharacterInventory","projectId","getSetting","setSetting","getText","allCharacters","approvedCharacters","unapprovedCharacters","unknownCharacters","scopeBook","scopeChapter","scopeVerse","filterText","setValidCharacters","setInvalidCharacters","setText","scope","setScope","setStatusFilter","setTextFilter","inventoryTableData","setInventoryTableData","setSelectedCharacter","prevTableData","tableEntry","prevValidCharacters","newValidCharacters","validChar","prevInvalidCharacters","newInvalidCharacters","invalidChar","newText","newScriptureReference","DownloadButton","isDownloading","handleClick","buttonText","LoaderCircle","Download","RemoveButton","isRemoving","UpdateButton","isUpdating","$","M","j","F","Z","W","Q","Y","tt","nt","et","rt","ot","ct","at","_t","ut","it","st","lt","ft","dt","mt","gt","yt","ht","kt","Ht","xt","bt","$t","vt","St","zt","wt","At","Et","Lt","Mt","Ot","It","jt","Bt","Rt","Tt","Ct","Dt","Ft","Nt","Pt","Zt","Gt","qt","Markdown","MarkdownRenderer","markdown","useEvent","unsubscriber","noopUnsubscriber","useEventAsync","unsubscribe","unsub","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","alertVariants","Alert","AlertTitle","AlertDescription","SliderPrimitive","SwitchPrimitives"],"mappings":"6/BAAA,IAAIA,GAAI,OAAO,eACXC,GAAI,CAACC,EAAGC,EAAGC,IAAMD,KAAKD,EAAIF,GAAEE,EAAGC,EAAG,CAAE,WAAY,GAAI,aAAc,GAAI,SAAU,GAAI,MAAOC,CAAC,CAAE,EAAIF,EAAEC,CAAC,EAAIC,EACzGC,GAAI,CAACH,EAAGC,EAAGC,IAAMH,GAAEC,EAAG,OAAOC,GAAK,SAAWA,EAAI,GAAKA,EAAGC,CAAC,EAW9D,MAAME,GAAI,CACR,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MAEA,MAEA,MAEA,MAEA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MAEA,MAEA,MAEA,MAEA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,KACF,EAAGC,GAAI,CACL,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,KACF,EAAGC,GAAI,CACL,UACA,SACA,YACA,UACA,cACA,SACA,SACA,OACA,WACA,WACA,UACA,UACA,eACA,eACA,OACA,WACA,kBACA,MACA,SACA,WACA,eACA,gBACA,SACA,WACA,eACA,UACA,kBACA,QACA,OACA,OACA,UACA,QACA,QACA,QACA,WACA,YACA,SACA,YACA,UACA,UACA,OACA,OACA,OACA,OACA,SACA,gBACA,gBACA,YACA,YACA,cACA,aACA,kBACA,kBACA,YACA,YACA,QACA,WACA,UACA,QACA,UACA,UACA,SACA,SACA,SACA,OACA,aACA,QACA,SACA,eACA,oBACA,0BACA,SACA,qBACA,sBACA,UACA,qBACA,cACA,cACA,cACA,cACA,mBACA,mBACA,qBACA,YACA,OACA,oBAGA,uBACA,uBACA,sBACA,yBACA,wBACA,qBACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,eACA,cACA,eACA,oBACA,qBACA,0BACA,0BACA,eACA,eACA,YACA,gBACA,cACA,eACA,iBACA,wBACA,mBACA,WACA,QACA,aACA,aACA,aACA,2BACA,4BAC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,MAAOA,EACR,EACD,cAAe,CACb,MAAOA,EACR,EACD,YAAa,CACX,MAAOA,EACR,EACD,SAAU,CACR,MAAOA,EACR,EACD,SAAU,CACR,MAAOA,EACR,EACD,cAAe,CACb,MAAOA,EACR,EACD,mBAAoB,CAClB,MAAOA,EACR,EACD,iBAAkB,CAChB,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,kBAAmB,CACjB,MAAOA,EACR,EACD,gBAAiB,CACf,MAAOA,EACR,EACD,EAAG,CACD,MAAO0X,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,OAAQ,CACN,MAAOA,EACR,EACD,UAAW,CACT,MAAOA,EACR,EACD,YAAa,CACX,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,WAAY,CACV,MAAOA,EACR,EACD,QAAS,CACP,MAAOA,EACR,EACD,QAAS,CACP,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,kBAAmB,CACjB,MAAOA,EACR,EACD,gBAAiB,CACf,MAAOA,EACR,EACD,YAAa,CACX,MAAOA,EACR,EACD,iBAAkB,CAChB,MAAOA,EACR,EACD,eAAgB,CACd,MAAOA,EACR,EAED,aAAc,CACZ,YAAa,GACb,UAAW3hC,IAAU,CACnB,eAAgB,CACd,QAASA,CACV,CACP,EACG,EACD,QAAS,CAAE,EACX,SAAU,CAAE,EACZ,aAAc,CAAE,EAChB,WAAY,CAAE,EACd,WAAY,CAAE,EAEd,UAAW,CAAE,EACb,cAAe,CAAE,EACjB,SAAU,CAAE,EACZ,eAAgB,CAAE,EAClB,WAAY,CAAE,EACd,aAAc,CAAE,EAChB,MAAO,CAAE,EACT,KAAM,CAAE,EACR,SAAU,CAAE,EACZ,WAAY,CAAE,EACd,UAAW,C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97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225,244]} \ No newline at end of file diff --git a/lib/platform-bible-react/dist/index.d.ts b/lib/platform-bible-react/dist/index.d.ts index a383a7c077..c45351aa27 100644 --- a/lib/platform-bible-react/dist/index.d.ts +++ b/lib/platform-bible-react/dist/index.d.ts @@ -905,6 +905,65 @@ export interface CharacterInventoryProps { getText: (projectId: string, scriptureRef: ScriptureReference, scope: string) => Promise; } export declare function CharacterInventory({ scriptureReference, setScriptureReference, localizedStrings, projectId, getSetting, setSetting, getText, }: CharacterInventoryProps): import("react/jsx-runtime").JSX.Element; +export type DownloadButtonProps = { + /** The downloading boolean value determines the state of the button. */ + isDownloading: boolean; + /** The handleClick function is called when the button is clicked. */ + handleClick: () => void; + /** Optional text for the button. */ + buttonText?: string; +}; +/** + * The DownloadButton component is a button designed for initiating downloads. It includes visuals + * for active downloading and idle states. + * + * @param isDownloading The downloading boolean value determines the state of the button. + * @param handleClick The handleClick function is called when the button is clicked. + * @param buttonText Optional text for the button. + * @returns A download button. + */ +export function DownloadButton({ isDownloading, handleClick, buttonText, }: DownloadButtonProps): import("react/jsx-runtime").JSX.Element; +export type RemoveButtonProps = { + /** The removing boolean value determines the state of the button. */ + isRemoving: boolean; + /** The handleClick function is called when the button is clicked. */ + handleClick: () => void; +}; +/** + * The RemoveButton component is a button designed for initiating removals of downloads. It includes + * visuals for active removals and idle states. + * + * @param isRemoving The removing boolean value determines the state of the button. + * @param handleClick The handleClick function is called when the button is clicked. + * @returns A button that can be used to remove. + */ +export function RemoveButton({ isRemoving, handleClick }: RemoveButtonProps): import("react/jsx-runtime").JSX.Element; +export type UpdateButtonProps = { + /** The updating boolean value determines the state of the button. */ + isUpdating: boolean; + /** The handleClick function is called when the button is clicked. */ + handleClick: () => void; +}; +/** + * The UpdateButton component is a button designed for initiating updates for downloaded extensions. + * It includes visuals for active updating and idle states. + * + * @param isUpdating The updating boolean value determines the state of the button. + * @param handleClick The handleClick function is called when the button is clicked. + * @returns A button that can be used to update. + */ +export function UpdateButton({ isUpdating, handleClick }: UpdateButtonProps): import("react/jsx-runtime").JSX.Element; +export interface MarkdownRendererProps { + markdown: string; +} +/** + * This component renders markdown content given a markdown string. It uses typography styles from + * the platform. + * + * @param markdown The markdown string to render. + * @returns A div containing the rendered markdown content. + */ +export function MarkdownRenderer({ markdown }: MarkdownRendererProps): import("react/jsx-runtime").JSX.Element; /** * Adds an event handler to an event so the event handler runs when the event is emitted. Use * `papi.network.getNetworkEvent` to use a networked event with this hook. diff --git a/lib/platform-bible-react/dist/index.js b/lib/platform-bible-react/dist/index.js index 685431a4dd..7836d41fb6 100644 --- a/lib/platform-bible-react/dist/index.js +++ b/lib/platform-bible-react/dist/index.js @@ -1,26 +1,26 @@ -import Os, { jsxs as U, jsx as d, Fragment as Kr } from "react/jsx-runtime"; -import * as T from "react"; -import J, { forwardRef as za, useCallback as $e, useState as de, useRef as wt, useEffect as Ye, useLayoutEffect as jo, useMemo as Wn } from "react"; -import { getChaptersForBook as Cs, split as Ss } from "platform-bible-utils"; -import * as me from "@radix-ui/react-dropdown-menu"; -import { DropdownMenuTrigger as Ps } from "@radix-ui/react-dropdown-menu"; -import { ChevronRight as Rs, Check as Ua, Circle as $s, History as _s, ArrowDownWideNarrow as Ms, Clock as Is, Bookmark as As, ChevronDown as Ha, ChevronUp as Ds, ArrowLeftIcon as js, ChevronLeftIcon as Bs, ChevronRightIcon as Ls, ArrowRightIcon as Vs, FilterIcon as Fs, CircleCheckIcon as Bo, CircleXIcon as Lo, CircleHelpIcon as Vo, ArrowUpIcon as zs, ArrowDownIcon as Us, ArrowUpDownIcon as Hs } from "lucide-react"; -import Ne, { clsx as Ws } from "clsx"; -import { extendTailwindMerge as Xs } from "tailwind-merge"; -import { useReactTable as qs, getCoreRowModel as Ys, getPaginationRowModel as Gs, getSortedRowModel as Ks, getFilteredRowModel as Js, flexRender as Fo } from "@tanstack/react-table"; -import { Slot as Zs } from "@radix-ui/react-slot"; -import { cva as Xn } from "class-variance-authority"; -import * as ye from "@radix-ui/react-select"; -import { Autocomplete as Qs, TextField as el, FormControlLabel as zo, FormLabel as tl, Checkbox as rl, MenuItem as nl, ListItemText as ol, ListItemIcon as Wa, Menu as al, Grid as Xa, List as il, IconButton as qa, Drawer as sl, Slider as ll, Snackbar as cl, Switch as pl, AppBar as ul, Toolbar as dl } from "@mui/material"; -import fl, { ThemeContext as hl, internal_processStyles as ml } from "@mui/styled-engine"; -import * as gl from "react-dom"; -import Sr from "react-dom"; -import * as Ya from "@radix-ui/react-label"; -import * as Ie from "@radix-ui/react-tabs"; -import * as nr from "@radix-ui/react-slider"; -import * as Rn from "@radix-ui/react-switch"; -var bl = Object.defineProperty, vl = (e, t, r) => t in e ? bl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oe = (e, t, r) => vl(e, typeof t != "symbol" ? t + "" : t, r); -const Et = [ +import ml, { jsxs as U, jsx as m, Fragment as _t } from "react/jsx-runtime"; +import * as k from "react"; +import J, { forwardRef as da, useCallback as _e, useState as fe, useRef as Nt, useEffect as Ye, useLayoutEffect as ei, useMemo as io } from "react"; +import { getChaptersForBook as gl, split as bl } from "platform-bible-utils"; +import * as ge from "@radix-ui/react-dropdown-menu"; +import { DropdownMenuTrigger as vl } from "@radix-ui/react-dropdown-menu"; +import { ChevronRight as yl, Check as fa, Circle as wl, History as xl, ArrowDownWideNarrow as El, Clock as kl, Bookmark as Tl, ChevronDown as ha, ChevronUp as Nl, ArrowLeftIcon as Ol, ChevronLeftIcon as Cl, ChevronRightIcon as Sl, ArrowRightIcon as Pl, FilterIcon as Rl, CircleCheckIcon as ti, CircleXIcon as ni, CircleHelpIcon as ri, ArrowUpIcon as $l, ArrowDownIcon as _l, ArrowUpDownIcon as Ml, LoaderCircle as ao, Download as Il } from "lucide-react"; +import Oe, { clsx as Al } from "clsx"; +import { extendTailwindMerge as Dl } from "tailwind-merge"; +import { useReactTable as Bl, getCoreRowModel as jl, getPaginationRowModel as Ll, getSortedRowModel as Fl, getFilteredRowModel as Vl, flexRender as oi } from "@tanstack/react-table"; +import { Slot as zl } from "@radix-ui/react-slot"; +import { cva as so } from "class-variance-authority"; +import * as we from "@radix-ui/react-select"; +import { Autocomplete as Ul, TextField as Hl, FormControlLabel as ii, FormLabel as Wl, Checkbox as Xl, MenuItem as Gl, ListItemText as ql, ListItemIcon as ma, Menu as Yl, Grid as ga, List as Kl, IconButton as ba, Drawer as Jl, Slider as Zl, Snackbar as Ql, Switch as ec, AppBar as tc, Toolbar as nc } from "@mui/material"; +import rc, { ThemeContext as oc, internal_processStyles as ic } from "@mui/styled-engine"; +import * as ac from "react-dom"; +import Bn from "react-dom"; +import * as va from "@radix-ui/react-label"; +import * as Ae from "@radix-ui/react-tabs"; +import * as dn from "@radix-ui/react-slider"; +import * as zr from "@radix-ui/react-switch"; +var sc = Object.defineProperty, lc = (e, t, n) => t in e ? sc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oe = (e, t, n) => lc(e, typeof t != "symbol" ? t + "" : t, n); +const Ct = [ "GEN", "EXO", "LEV", @@ -165,7 +165,7 @@ const Et = [ "REP", "4BA", "LAO" -], qn = [ +], lo = [ "XXA", "XXB", "XXC", @@ -181,7 +181,7 @@ const Et = [ "GLO", "TDX", "NDX" -], Ga = [ +], ya = [ "Genesis", "Exodus", "Leviticus", @@ -307,81 +307,81 @@ const Et = [ "Reproof (Proverbs 25-31)", "4 Baruch (Rest of Baruch)", "Laodiceans" -], Uo = Sl(); -function Ht(e, t = !0) { - return t && (e = e.toUpperCase()), e in Uo ? Uo[e] : 0; +], ai = vc(); +function Jt(e, t = !0) { + return t && (e = e.toUpperCase()), e in ai ? ai[e] : 0; } -function Yn(e) { - return Ht(e) > 0; +function co(e) { + return Jt(e) > 0; } -function yl(e) { - const t = typeof e == "string" ? Ht(e) : e; +function cc(e) { + const t = typeof e == "string" ? Jt(e) : e; return t >= 40 && t <= 66; } -function wl(e) { - return (typeof e == "string" ? Ht(e) : e) <= 39; +function pc(e) { + return (typeof e == "string" ? Jt(e) : e) <= 39; } -function Ka(e) { +function wa(e) { return e <= 66; } -function xl(e) { - const t = typeof e == "string" ? Ht(e) : e; - return Qa(t) && !Ka(t); +function uc(e) { + const t = typeof e == "string" ? Jt(e) : e; + return ka(t) && !wa(t); } -function* El() { - for (let e = 1; e <= Et.length; e++) +function* dc() { + for (let e = 1; e <= Ct.length; e++) yield e; } -const Tl = 1, Ja = Et.length; -function kl() { +const fc = 1, xa = Ct.length; +function hc() { return ["XXA", "XXB", "XXC", "XXD", "XXE", "XXF", "XXG"]; } -function Gn(e, t = "***") { - const r = e - 1; - return r < 0 || r >= Et.length ? t : Et[r]; +function po(e, t = "***") { + const n = e - 1; + return n < 0 || n >= Ct.length ? t : Ct[n]; } -function Za(e) { - return e <= 0 || e > Ja ? "******" : Ga[e - 1]; +function Ea(e) { + return e <= 0 || e > xa ? "******" : ya[e - 1]; } -function Nl(e) { - return Za(Ht(e)); +function mc(e) { + return Ea(Jt(e)); } -function Qa(e) { - const t = typeof e == "number" ? Gn(e) : e; - return Yn(t) && !qn.includes(t); +function ka(e) { + const t = typeof e == "number" ? po(e) : e; + return co(t) && !lo.includes(t); } -function Ol(e) { - const t = typeof e == "number" ? Gn(e) : e; - return Yn(t) && qn.includes(t); +function gc(e) { + const t = typeof e == "number" ? po(e) : e; + return co(t) && lo.includes(t); } -function Cl(e) { - return Ga[e - 1].includes("*obsolete*"); +function bc(e) { + return ya[e - 1].includes("*obsolete*"); } -function Sl() { +function vc() { const e = {}; - for (let t = 0; t < Et.length; t++) - e[Et[t]] = t + 1; + for (let t = 0; t < Ct.length; t++) + e[Ct[t]] = t + 1; return e; } -const he = { - allBookIds: Et, - nonCanonicalIds: qn, - bookIdToNumber: Ht, - isBookIdValid: Yn, - isBookNT: yl, - isBookOT: wl, - isBookOTNT: Ka, - isBookDC: xl, - allBookNumbers: El, - firstBook: Tl, - lastBook: Ja, - extraBooks: kl, - bookNumberToId: Gn, - bookNumberToEnglishName: Za, - bookIdToEnglishName: Nl, - isCanonical: Qa, - isExtraMaterial: Ol, - isObsolete: Cl +const me = { + allBookIds: Ct, + nonCanonicalIds: lo, + bookIdToNumber: Jt, + isBookIdValid: co, + isBookNT: cc, + isBookOT: pc, + isBookOTNT: wa, + isBookDC: uc, + allBookNumbers: dc, + firstBook: fc, + lastBook: xa, + extraBooks: hc, + bookNumberToId: po, + bookNumberToEnglishName: Ea, + bookIdToEnglishName: mc, + isCanonical: ka, + isExtraMaterial: gc, + isObsolete: bc }; var qe = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Original = 1] = "Original", e[e.Septuagint = 2] = "Septuagint", e[e.Vulgate = 3] = "Vulgate", e[e.English = 4] = "English", e[e.RussianProtestant = 5] = "RussianProtestant", e[e.RussianOrthodox = 6] = "RussianOrthodox", e))(qe || {}); const je = class { @@ -399,42 +399,42 @@ const je = class { } }; oe(je, "Original", new je(qe.Original)), oe(je, "Septuagint", new je(qe.Septuagint)), oe(je, "Vulgate", new je(qe.Vulgate)), oe(je, "English", new je(qe.English)), oe(je, "RussianProtestant", new je(qe.RussianProtestant)), oe(je, "RussianOrthodox", new je(qe.RussianOrthodox)); -let gt = je; -function Ho(e, t) { - const r = t[0]; - for (let n = 1; n < t.length; n++) - e = e.split(t[n]).join(r); - return e.split(r); -} -var ei = /* @__PURE__ */ ((e) => (e[e.Valid = 0] = "Valid", e[e.UnknownVersification = 1] = "UnknownVersification", e[e.OutOfRange = 2] = "OutOfRange", e[e.VerseOutOfOrder = 3] = "VerseOutOfOrder", e[e.VerseRepeated = 4] = "VerseRepeated", e))(ei || {}); -const Re = class se { - constructor(t, r, n, o) { - if (oe(this, "firstChapter"), oe(this, "lastChapter"), oe(this, "lastVerse"), oe(this, "hasSegmentsDefined"), oe(this, "text"), oe(this, "BBBCCCVVVS"), oe(this, "longHashCode"), oe(this, "versification"), oe(this, "rtlMark", "‏"), oe(this, "_bookNum", 0), oe(this, "_chapterNum", 0), oe(this, "_verseNum", 0), oe(this, "_verse"), n == null && o == null) +let wt = je; +function si(e, t) { + const n = t[0]; + for (let r = 1; r < t.length; r++) + e = e.split(t[r]).join(n); + return e.split(n); +} +var Ta = /* @__PURE__ */ ((e) => (e[e.Valid = 0] = "Valid", e[e.UnknownVersification = 1] = "UnknownVersification", e[e.OutOfRange = 2] = "OutOfRange", e[e.VerseOutOfOrder = 3] = "VerseOutOfOrder", e[e.VerseRepeated = 4] = "VerseRepeated", e))(Ta || {}); +const $e = class le { + constructor(t, n, r, o) { + if (oe(this, "firstChapter"), oe(this, "lastChapter"), oe(this, "lastVerse"), oe(this, "hasSegmentsDefined"), oe(this, "text"), oe(this, "BBBCCCVVVS"), oe(this, "longHashCode"), oe(this, "versification"), oe(this, "rtlMark", "‏"), oe(this, "_bookNum", 0), oe(this, "_chapterNum", 0), oe(this, "_verseNum", 0), oe(this, "_verse"), r == null && o == null) if (t != null && typeof t == "string") { - const a = t, s = r != null && r instanceof gt ? r : void 0; - this.setEmpty(s), this.parse(a); + const i = t, a = n != null && n instanceof wt ? n : void 0; + this.setEmpty(a), this.parse(i); } else if (t != null && typeof t == "number") { - const a = r != null && r instanceof gt ? r : void 0; - this.setEmpty(a), this._verseNum = t % se.chapterDigitShifter, this._chapterNum = Math.floor( - t % se.bookDigitShifter / se.chapterDigitShifter - ), this._bookNum = Math.floor(t / se.bookDigitShifter); - } else if (r == null) - if (t != null && t instanceof se) { - const a = t; - this._bookNum = a.bookNum, this._chapterNum = a.chapterNum, this._verseNum = a.verseNum, this._verse = a.verse, this.versification = a.versification; + const i = n != null && n instanceof wt ? n : void 0; + this.setEmpty(i), this._verseNum = t % le.chapterDigitShifter, this._chapterNum = Math.floor( + t % le.bookDigitShifter / le.chapterDigitShifter + ), this._bookNum = Math.floor(t / le.bookDigitShifter); + } else if (n == null) + if (t != null && t instanceof le) { + const i = t; + this._bookNum = i.bookNum, this._chapterNum = i.chapterNum, this._verseNum = i.verseNum, this._verse = i.verse, this.versification = i.versification; } else { if (t == null) return; - const a = t instanceof gt ? t : se.defaultVersification; - this.setEmpty(a); + const i = t instanceof wt ? t : le.defaultVersification; + this.setEmpty(i); } else throw new Error("VerseRef constructor not supported."); - else if (t != null && r != null && n != null) - if (typeof t == "string" && typeof r == "string" && typeof n == "string") - this.setEmpty(o), this.updateInternal(t, r, n); - else if (typeof t == "number" && typeof r == "number" && typeof n == "number") - this._bookNum = t, this._chapterNum = r, this._verseNum = n, this.versification = o ?? se.defaultVersification; + else if (t != null && n != null && r != null) + if (typeof t == "string" && typeof n == "string" && typeof r == "string") + this.setEmpty(o), this.updateInternal(t, n, r); + else if (typeof t == "number" && typeof n == "number" && typeof r == "number") + this._bookNum = t, this._chapterNum = n, this._verseNum = r, this.versification = o ?? le.defaultVersification; else throw new Error("VerseRef constructor not supported."); else @@ -453,13 +453,13 @@ const Re = class se { * @returns verseRef: The result of the parse if successful, or empty VerseRef if it failed */ static tryParse(t) { - let r; + let n; try { - return r = new se(t), { success: !0, verseRef: r }; - } catch (n) { - if (n instanceof Jt) - return r = new se(), { success: !1, verseRef: r }; - throw n; + return n = new le(t), { success: !0, verseRef: n }; + } catch (r) { + if (r instanceof on) + return n = new le(), { success: !1, verseRef: n }; + throw r; } } /** @@ -471,8 +471,8 @@ const Re = class se { * @returns The reference as a comparable integer where the book, chapter, and verse each occupy 3 * digits. */ - static getBBBCCCVVV(t, r, n) { - return t % se.bcvMaxValue * se.bookDigitShifter + (r >= 0 ? r % se.bcvMaxValue * se.chapterDigitShifter : 0) + (n >= 0 ? n % se.bcvMaxValue : 0); + static getBBBCCCVVV(t, n, r) { + return t % le.bcvMaxValue * le.bookDigitShifter + (n >= 0 ? n % le.bcvMaxValue * le.chapterDigitShifter : 0) + (r >= 0 ? r % le.bcvMaxValue : 0); } /** * Deserializes a serialized VerseRef. @@ -480,9 +480,9 @@ const Re = class se { * @returns the deserialized VerseRef. */ static fromJSON(t) { - const { book: r, chapterNum: n, verseNum: o, verse: a, versificationStr: s } = t, l = a || o.toString(); + const { book: n, chapterNum: r, verseNum: o, verse: i, versificationStr: a } = t, l = i || o.toString(); let c; - return s && (c = new gt(s)), r ? new se(r, n.toString(), l, c) : new se(); + return a && (c = new wt(a)), n ? new le(n, r.toString(), l, c) : new le(); } /** * Parses a verse string and gets the leading numeric portion as a number. @@ -491,18 +491,18 @@ const Re = class se { * false if the verse string represented a verse bridge, contained segment letters, or was invalid */ static tryGetVerseNum(t) { - let r; - if (!t) - return r = -1, { success: !0, vNum: r }; - r = 0; let n; + if (!t) + return n = -1, { success: !0, vNum: n }; + n = 0; + let r; for (let o = 0; o < t.length; o++) { - if (n = t[o], n < "0" || n > "9") - return o === 0 && (r = -1), { success: !1, vNum: r }; - if (r = r * 10 + +n - 0, r > se.bcvMaxValue) - return r = -1, { success: !1, vNum: r }; + if (r = t[o], r < "0" || r > "9") + return o === 0 && (n = -1), { success: !1, vNum: n }; + if (n = n * 10 + +r - 0, n > le.bcvMaxValue) + return n = -1, { success: !1, vNum: n }; } - return { success: !0, vNum: r }; + return { success: !0, vNum: n }; } /** * Checks to see if a VerseRef hasn't been set - all values are the default. @@ -514,17 +514,17 @@ const Re = class se { * Gets whether the verse contains multiple verses. */ get hasMultiple() { - return this._verse != null && (this._verse.includes(se.verseRangeSeparator) || this._verse.includes(se.verseSequenceIndicator)); + return this._verse != null && (this._verse.includes(le.verseRangeSeparator) || this._verse.includes(le.verseSequenceIndicator)); } /** * Gets or sets the book of the reference. Book is the 3-letter abbreviation in capital letters, * e.g. `'MAT'`. */ get book() { - return he.bookNumberToId(this.bookNum, ""); + return me.bookNumberToId(this.bookNum, ""); } set book(t) { - this.bookNum = he.bookIdToNumber(t); + this.bookNum = me.bookIdToNumber(t); } /** * Gets or sets the chapter of the reference,. e.g. `'3'`. @@ -533,8 +533,8 @@ const Re = class se { return this.isDefault || this._chapterNum < 0 ? "" : this._chapterNum.toString(); } set chapter(t) { - const r = +t; - this._chapterNum = Number.isInteger(r) ? r : -1; + const n = +t; + this._chapterNum = Number.isInteger(n) ? n : -1; } /** * Gets or sets the verse of the reference, including range, segments, and sequences, e.g. `'4'`, @@ -544,8 +544,8 @@ const Re = class se { return this._verse != null ? this._verse : this.isDefault || this._verseNum < 0 ? "" : this._verseNum.toString(); } set verse(t) { - const { success: r, vNum: n } = se.tryGetVerseNum(t); - this._verse = r ? void 0 : t.replace(this.rtlMark, ""), this._verseNum = n, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = se.tryGetVerseNum(this._verse)); + const { success: n, vNum: r } = le.tryGetVerseNum(t); + this._verse = n ? void 0 : t.replace(this.rtlMark, ""), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = le.tryGetVerseNum(this._verse)); } /** * Get or set Book based on book number, e.g. `42`. @@ -554,8 +554,8 @@ const Re = class se { return this._bookNum; } set bookNum(t) { - if (t <= 0 || t > he.lastBook) - throw new Jt( + if (t <= 0 || t > me.lastBook) + throw new on( "BookNum must be greater than zero and less than or equal to last book" ); this._bookNum = t; @@ -588,7 +588,7 @@ const Re = class se { return (t = this.versification) == null ? void 0 : t.name; } set versificationStr(t) { - this.versification = this.versification != null ? new gt(t) : void 0; + this.versification = this.versification != null ? new wt(t) : void 0; } /** * Determines if the reference is valid. @@ -600,14 +600,14 @@ const Re = class se { * Get the valid status for this reference. */ get validStatus() { - return this.validateVerse(se.verseRangeSeparators, se.verseSequenceIndicators); + return this.validateVerse(le.verseRangeSeparators, le.verseSequenceIndicators); } /** * Gets the reference as a comparable integer where the book, * chapter, and verse each occupy three digits and the verse is 0. */ get BBBCCC() { - return se.getBBBCCCVVV(this._bookNum, this._chapterNum, 0); + return le.getBBBCCCVVV(this._bookNum, this._chapterNum, 0); } /** * Gets the reference as a comparable integer where the book, @@ -616,7 +616,7 @@ const Re = class se { * segments or bridge) this cannot be used for an exact comparison. */ get BBBCCCVVV() { - return se.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum); + return le.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum); } /** * Gets whether the verse is defined as an excluded verse in the versification. @@ -638,22 +638,22 @@ const Re = class se { */ parse(t) { if (t = t.replace(this.rtlMark, ""), t.includes("/")) { - const a = t.split("/"); - if (t = a[0], a.length > 1) + const i = t.split("/"); + if (t = i[0], i.length > 1) try { - const s = +a[1].trim(); - this.versification = new gt(qe[s]); + const a = +i[1].trim(); + this.versification = new wt(qe[a]); } catch { - throw new Jt("Invalid reference : " + t); + throw new on("Invalid reference : " + t); } } - const r = t.trim().split(" "); - if (r.length !== 2) - throw new Jt("Invalid reference : " + t); - const n = r[1].split(":"), o = +n[0]; - if (n.length !== 2 || he.bookIdToNumber(r[0]) === 0 || !Number.isInteger(o) || o < 0 || !se.isVerseParseable(n[1])) - throw new Jt("Invalid reference : " + t); - this.updateInternal(r[0], n[0], n[1]); + const n = t.trim().split(" "); + if (n.length !== 2) + throw new on("Invalid reference : " + t); + const r = n[1].split(":"), o = +r[0]; + if (r.length !== 2 || me.bookIdToNumber(n[0]) === 0 || !Number.isInteger(o) || o < 0 || !le.isVerseParseable(r[1])) + throw new on("Invalid reference : " + t); + this.updateInternal(n[0], r[0], r[1]); } /** * Simplifies this verse ref so that it has no bridging of verses or @@ -668,7 +668,7 @@ const Re = class se { * @returns The cloned VerseRef. */ clone() { - return new se(this); + return new le(this); } toString() { const t = this.book; @@ -690,7 +690,7 @@ const Re = class se { * @returns `true` if this `VerseRef` is equal to the supplied one, `false` otherwise. */ equals(t) { - return t instanceof se ? t._bookNum === this._bookNum && t._chapterNum === this._chapterNum && t._verseNum === this._verseNum && t.verse === this.verse && (t.versification == null && this.versification == null || t.versification != null && this.versification != null && t.versification.equals(this.versification)) : !1; + return t instanceof le ? t._bookNum === this._bookNum && t._chapterNum === this._chapterNum && t._verseNum === this._verseNum && t.verse === this.verse && (t.versification == null && this.versification == null || t.versification != null && this.versification != null && t.versification.equals(this.versification)) : !1; } /** * Enumerate all individual verses contained in a VerseRef. @@ -708,27 +708,27 @@ const Re = class se { * Defaults to `VerseRef.verseSequenceIndicators`. * @returns An array of all single verse references in this VerseRef. */ - allVerses(t = !1, r = se.verseRangeSeparators, n = se.verseSequenceIndicators) { + allVerses(t = !1, n = le.verseRangeSeparators, r = le.verseSequenceIndicators) { if (this._verse == null || this.chapterNum <= 0) return [this.clone()]; - const o = [], a = Ho(this._verse, n); - for (const s of a.map((l) => Ho(l, r))) { + const o = [], i = si(this._verse, r); + for (const a of i.map((l) => si(l, n))) { const l = this.clone(); - l.verse = s[0]; + l.verse = a[0]; const c = l.verseNum; - if (o.push(l), s.length > 1) { - const p = this.clone(); - if (p.verse = s[1], !t) - for (let u = c + 1; u < p.verseNum; u++) { - const h = new se( + if (o.push(l), a.length > 1) { + const u = this.clone(); + if (u.verse = a[1], !t) + for (let f = c + 1; f < u.verseNum; f++) { + const v = new le( this._bookNum, this._chapterNum, - u, + f, this.versification ); - this.isExcluded || o.push(h); + this.isExcluded || o.push(v); } - o.push(p); + o.push(u); } } return o; @@ -736,20 +736,20 @@ const Re = class se { /** * Validates a verse number using the supplied separators rather than the defaults. */ - validateVerse(t, r) { + validateVerse(t, n) { if (!this.verse) return this.internalValid; - let n = 0; - for (const o of this.allVerses(!0, t, r)) { - const a = o.internalValid; - if (a !== 0) - return a; - const s = o.BBBCCCVVV; - if (n > s) + let r = 0; + for (const o of this.allVerses(!0, t, n)) { + const i = o.internalValid; + if (i !== 0) + return i; + const a = o.BBBCCCVVV; + if (r > a) return 3; - if (n === s) + if (r === a) return 4; - n = s; + r = a; } return 0; } @@ -757,177 +757,176 @@ const Re = class se { * Gets whether a single verse reference is valid. */ get internalValid() { - return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > he.lastBook ? 2 : (he.isCanonical(this._bookNum), 0); + return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > me.lastBook ? 2 : (me.isCanonical(this._bookNum), 0); } - setEmpty(t = se.defaultVersification) { + setEmpty(t = le.defaultVersification) { this._bookNum = 0, this._chapterNum = -1, this._verse = void 0, this.versification = t; } - updateInternal(t, r, n) { - this.bookNum = he.bookIdToNumber(t), this.chapter = r, this.verse = n; + updateInternal(t, n, r) { + this.bookNum = me.bookIdToNumber(t), this.chapter = n, this.verse = r; } }; -oe(Re, "defaultVersification", gt.English), oe(Re, "verseRangeSeparator", "-"), oe(Re, "verseSequenceIndicator", ","), oe(Re, "verseRangeSeparators", [Re.verseRangeSeparator]), oe(Re, "verseSequenceIndicators", [Re.verseSequenceIndicator]), oe(Re, "chapterDigitShifter", 1e3), oe(Re, "bookDigitShifter", Re.chapterDigitShifter * Re.chapterDigitShifter), oe(Re, "bcvMaxValue", Re.chapterDigitShifter - 1), /** +oe($e, "defaultVersification", wt.English), oe($e, "verseRangeSeparator", "-"), oe($e, "verseSequenceIndicator", ","), oe($e, "verseRangeSeparators", [$e.verseRangeSeparator]), oe($e, "verseSequenceIndicators", [$e.verseSequenceIndicator]), oe($e, "chapterDigitShifter", 1e3), oe($e, "bookDigitShifter", $e.chapterDigitShifter * $e.chapterDigitShifter), oe($e, "bcvMaxValue", $e.chapterDigitShifter - 1), /** * The valid status of the VerseRef. */ -oe(Re, "ValidStatusType", ei); -class Jt extends Error { -} -const Pl = Xs({ prefix: "pr-" }); -function G(...e) { - return Pl(Ws(e)); +oe($e, "ValidStatusType", Ta); +let on = class extends Error { +}; +const yc = Dl({ prefix: "pr-" }); +function W(...e) { + return yc(Al(e)); } -const ti = me.Root, Rl = me.Trigger, Vm = me.Group, Fm = me.Portal, zm = me.Sub, Um = me.RadioGroup, $l = J.forwardRef(({ className: e, inset: t, children: r, ...n }, o) => /* @__PURE__ */ U( - me.SubTrigger, +const Na = ge.Root, wc = ge.Trigger, Ab = ge.Group, Db = ge.Portal, Bb = ge.Sub, jb = ge.RadioGroup, xc = J.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ U( + ge.SubTrigger, { ref: o, - className: G( + className: W( "pr-flex pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-px-2 pr-py-1.5 pr-text-sm pr-outline-none focus:pr-bg-accent data-[state=open]:pr-bg-accent", t && "pr-pl-8", e ), - ...n, + ...r, children: [ - r, - /* @__PURE__ */ d(Rs, { className: "pr-ml-auto pr-h-4 pr-w-4" }) + n, + /* @__PURE__ */ m(yl, { className: "pr-ml-auto pr-h-4 pr-w-4" }) ] } )); -$l.displayName = me.SubTrigger.displayName; -const _l = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - me.SubContent, +xc.displayName = ge.SubTrigger.displayName; +const Ec = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + ge.SubContent, { - ref: r, - className: G( + ref: n, + className: W( "pr-z-50 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-p-1 pr-text-popover-foreground pr-shadow-lg data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2", e ), ...t } )); -_l.displayName = me.SubContent.displayName; -const Kn = J.forwardRef(({ className: e, sideOffset: t = 4, ...r }, n) => /* @__PURE__ */ d(me.Portal, { children: /* @__PURE__ */ d( - me.Content, +Ec.displayName = ge.SubContent.displayName; +const uo = J.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ m(ge.Portal, { children: /* @__PURE__ */ m( + ge.Content, { - ref: n, + ref: r, sideOffset: t, - className: G( - /* pr-font-sans is added to mitigate issue introduced by scopedPreflightStyles */ + className: W( /* adding pr-twp because the dropdown content is added to the dom as a sibling to the app root */ - "pr-twp pr-z-50 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-p-1 pr-font-sans pr-text-popover-foreground pr-shadow-md data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2", + "pr-twp pr-z-50 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-p-1 pr-text-popover-foreground pr-shadow-md data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2", e ), - ...r + ...n } ) })); -Kn.displayName = me.Content.displayName; -const ri = J.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ */ d( - me.Item, +uo.displayName = ge.Content.displayName; +const Oa = J.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ m( + ge.Item, { - ref: n, - className: G( + ref: r, + className: W( // removed: pr-relative pr-flex focus:pr-text-accent-foreground "pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-px-2 pr-py-1.5 pr-text-sm pr-outline-none pr-transition-colors focus:pr-bg-accent data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50", t && "pr-pl-8", e ), - ...r + ...n } )); -ri.displayName = me.Item.displayName; -const ni = J.forwardRef(({ className: e, children: t, checked: r, ...n }, o) => /* @__PURE__ */ U( - me.CheckboxItem, +Oa.displayName = ge.Item.displayName; +const Ca = J.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ U( + ge.CheckboxItem, { ref: o, - className: G( + className: W( "pr-relative pr-flex pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-outline-none pr-transition-colors focus:pr-bg-accent focus:pr-text-accent-foreground data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50", e ), - checked: r, - ...n, + checked: n, + ...r, children: [ - /* @__PURE__ */ d("span", { className: "pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center", children: /* @__PURE__ */ d(me.ItemIndicator, { children: /* @__PURE__ */ d(Ua, { className: "pr-h-4 pr-w-4" }) }) }), + /* @__PURE__ */ m("span", { className: "pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center", children: /* @__PURE__ */ m(ge.ItemIndicator, { children: /* @__PURE__ */ m(fa, { className: "pr-h-4 pr-w-4" }) }) }), t ] } )); -ni.displayName = me.CheckboxItem.displayName; -const Ml = J.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ U( - me.RadioItem, +Ca.displayName = ge.CheckboxItem.displayName; +const kc = J.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ U( + ge.RadioItem, { - ref: n, - className: G( + ref: r, + className: W( "pr-relative pr-flex pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-outline-none pr-transition-colors focus:pr-bg-accent focus:pr-text-accent-foreground data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50", e ), - ...r, + ...n, children: [ - /* @__PURE__ */ d("span", { className: "pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center", children: /* @__PURE__ */ d(me.ItemIndicator, { children: /* @__PURE__ */ d($s, { className: "pr-h-2 pr-w-2 pr-fill-current" }) }) }), + /* @__PURE__ */ m("span", { className: "pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center", children: /* @__PURE__ */ m(ge.ItemIndicator, { children: /* @__PURE__ */ m(wl, { className: "pr-h-2 pr-w-2 pr-fill-current" }) }) }), t ] } )); -Ml.displayName = me.RadioItem.displayName; -const Jr = J.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ */ d( - me.Label, +kc.displayName = ge.RadioItem.displayName; +const ar = J.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ m( + ge.Label, { - ref: n, - className: G("pr-px-2 pr-py-1.5 pr-text-sm pr-font-semibold", t && "pr-pl-8", e), - ...r + ref: r, + className: W("pr-px-2 pr-py-1.5 pr-text-sm pr-font-semibold", t && "pr-pl-8", e), + ...n } )); -Jr.displayName = me.Label.displayName; -const Jn = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - me.Separator, +ar.displayName = ge.Label.displayName; +const fo = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + ge.Separator, { - ref: r, - className: G("pr--mx-1 pr-my-1 pr-h-px pr-bg-muted", e), + ref: n, + className: W("pr--mx-1 pr-my-1 pr-h-px pr-bg-muted", e), ...t } )); -Jn.displayName = me.Separator.displayName; -function Il({ className: e, ...t }) { - return /* @__PURE__ */ d( +fo.displayName = ge.Separator.displayName; +function Tc({ className: e, ...t }) { + return /* @__PURE__ */ m( "span", { - className: G("pr-ml-auto pr-text-xs pr-tracking-widest pr-opacity-60", e), + className: W("pr-ml-auto pr-text-xs pr-tracking-widest pr-opacity-60", e), ...t } ); } -Il.displayName = "DropdownMenuShortcut"; -const Zr = J.forwardRef( - ({ className: e, type: t, ...r }, n) => /* @__PURE__ */ d( +Tc.displayName = "DropdownMenuShortcut"; +const sr = J.forwardRef( + ({ className: e, type: t, ...n }, r) => /* @__PURE__ */ m( "input", { type: t, - className: G( + className: W( "pr-flex pr-h-10 pr-rounded-md pr-bg-background pr-px-3 pr-py-2 pr-text-sm pr-ring-offset-background file:pr-border-0 file:pr-bg-transparent file:pr-text-sm file:pr-font-medium placeholder:pr-text-muted-foreground disabled:pr-cursor-not-allowed disabled:pr-opacity-50", e ), - ref: n, - ...r + ref: r, + ...n } ) ); -Zr.displayName = "Input"; -const Al = za( - ({ handleSearch: e, handleKeyDown: t, handleOnClick: r, handleSubmit: n, ...o }, a) => /* @__PURE__ */ U("div", { className: "pr-relative", children: [ - /* @__PURE__ */ d( - Zr, +sr.displayName = "Input"; +const Nc = da( + ({ handleSearch: e, handleKeyDown: t, handleOnClick: n, handleSubmit: r, ...o }, i) => /* @__PURE__ */ U("div", { className: "pr-relative", children: [ + /* @__PURE__ */ m( + sr, { ...o, type: "text", className: "pr-box-border pr-gap-2.5 pr-rounded-lg pr-border pr-border-solid pr-border-black pr-bg-white pr-py-2 pr-pl-4 pr-pr-3 pr-font-medium pr-text-slate-900 pr-shadow-none pr-outline-none", - onChange: (s) => e(s.target.value), - onKeyDown: (s) => { - s.key === "Enter" && n(), t(s); + onChange: (a) => e(a.target.value), + onKeyDown: (a) => { + a.key === "Enter" && r(), t(a); }, - onClick: r, - ref: a + onClick: n, + ref: i } ), - /* @__PURE__ */ d( - _s, + /* @__PURE__ */ m( + xl, { className: "pr-absolute pr-right-3 pr-top-1/2 pr-h-4 pr-w-4 pr--translate-y-1/2 pr-transform pr-cursor-pointer pr-text-gray-500", onClick: () => { @@ -937,27 +936,27 @@ const Al = za( ) ] }) ); -function Dl({ +function Oc({ handleSelectChapter: e, endChapter: t, - activeChapter: r, - highlightedChapter: n, + activeChapter: n, + highlightedChapter: r, handleHighlightedChapter: o }) { - const a = Array.from({ length: t }, (l, c) => c + 1), s = $e( + const i = Array.from({ length: t }, (l, c) => c + 1), a = _e( (l) => { o(l); }, [o] ); - return /* @__PURE__ */ d("div", { className: G("pr-flex pr-flex-wrap pr-items-start pr-justify-start pr-self-stretch"), children: a.map((l) => /* @__PURE__ */ d( + return /* @__PURE__ */ m("div", { className: W("pr-flex pr-flex-wrap pr-items-start pr-justify-start pr-self-stretch"), children: i.map((l) => /* @__PURE__ */ m( "div", { - className: G( + className: W( "pr-flex pr-h-4 pr-w-4 pr-cursor-pointer pr-items-center pr-justify-end pr-rounded-md pr-p-2 pr-text-amber-800", { - "pr-font-semibold pr-text-amber-900": l === r, - "pr-bg-amber-200": l === n + "pr-font-semibold pr-text-amber-900": l === n, + "pr-bg-amber-200": l === r } ), onClick: (c) => { @@ -968,29 +967,29 @@ function Dl({ c.key === "Enter" && e(l); }, tabIndex: 0, - onMouseMove: () => s(l), + onMouseMove: () => a(l), children: l }, l )) }); } -const jl = za( +const Cc = da( ({ bookId: e, handleSelectBook: t, - isSelected: r, - handleHighlightBook: n, + isSelected: n, + handleHighlightBook: r, handleKeyDown: o, - bookType: a, - children: s + bookType: i, + children: a }, l) => /* @__PURE__ */ U( - ri, + Oa, { ref: l, textValue: e, - className: G("pr-font-normal pr-text-slate-700", { + className: W("pr-font-normal pr-text-slate-700", { // Overriding `data-[highlighted]` changes the default gray background that is normally shown on hover - "pr-bg-amber-50 pr-text-yellow-900 data-[highlighted]:pr-bg-amber-100": r + "pr-bg-amber-50 pr-text-yellow-900 data-[highlighted]:pr-bg-amber-100": n }), onSelect: (c) => { c.preventDefault(), t(); @@ -998,290 +997,290 @@ const jl = za( onKeyDown: (c) => { o(c); }, - onFocus: n, - onMouseMove: n, + onFocus: r, + onMouseMove: r, children: [ - /* @__PURE__ */ d( + /* @__PURE__ */ m( "span", { - className: G( + className: W( "pr-border-b-0 pr-border-l-2 pr-border-r-0 pr-border-t-0 pr-border-solid pr-px-2", { - "pr-font-bold": r, - "pr-border-l-red-200": a.toLowerCase() === "ot", - "pr-border-l-purple-200": a.toLowerCase() === "nt", - "pr-border-l-indigo-200": a.toLowerCase() === "dc" + "pr-font-bold": n, + "pr-border-l-red-200": i.toLowerCase() === "ot", + "pr-border-l-purple-200": i.toLowerCase() === "nt", + "pr-border-l-indigo-200": i.toLowerCase() === "dc" } ), - children: he.bookIdToEnglishName(e) + children: me.bookIdToEnglishName(e) } ), - r && /* @__PURE__ */ d("div", { children: s }) + n && /* @__PURE__ */ m("div", { children: a }) ] }, e ) ); -function Bl({ handleSort: e, handleLocationHistory: t, handleBookmarks: r }) { - return /* @__PURE__ */ U(Jr, { className: "pr-flex pr-justify-between", children: [ - /* @__PURE__ */ d("p", { className: "pr-inline-block pr-align-middle", children: "Go To" }), +function Sc({ handleSort: e, handleLocationHistory: t, handleBookmarks: n }) { + return /* @__PURE__ */ U(ar, { className: "pr-flex pr-justify-between", children: [ + /* @__PURE__ */ m("p", { className: "pr-inline-block pr-align-middle", children: "Go To" }), /* @__PURE__ */ U("div", { className: "pr-flex pr-items-center", children: [ - /* @__PURE__ */ d( - Ms, + /* @__PURE__ */ m( + El, { onClick: e, className: "pr-h-4 pr-w-4 pr-cursor-pointer pr-gap-2 pr-p-2" } ), - /* @__PURE__ */ d( - Is, + /* @__PURE__ */ m( + kl, { onClick: t, className: "pr-h-4 pr-w-4 pr-cursor-pointer pr-gap-2 pr-p-2" } ), - /* @__PURE__ */ d( - As, + /* @__PURE__ */ m( + Tl, { - onClick: r, + onClick: n, className: "pr-h-4 pr-w-4 pr-cursor-pointer pr-gap-2 pr-p-2" } ) ] }) ] }); } -const sr = he.allBookIds, Ll = { +const gn = me.allBookIds, Pc = { OT: "Old Testament", NT: "New Testament", DC: "Deuterocanon" -}, Wo = ["OT", "NT", "DC"], Vl = 32 + 32 + 32, Fl = [ +}, li = ["OT", "NT", "DC"], Rc = 32 + 32 + 32, $c = [ /^(\w+)$/i, // Matches a single word (book name or id) /^(\w+)(?:\s(\d+))$/i, // Matches a word followed by a chapter number /^(\w+)(?:\s(\d+):(\d+))$/i // Matches a word followed by a chapter and verse number -], zl = (e) => ({ - OT: sr.filter((r) => he.isBookOT(r)), - NT: sr.filter((r) => he.isBookNT(r)), - DC: sr.filter((r) => he.isBookDC(r)) -})[e], Zt = (e) => Cs(he.bookIdToNumber(e)); -function Ul() { - return sr.map((t) => he.bookIdToEnglishName(t)); -} -function Hl(e) { - return Ul().includes(e); -} -function Wl(e) { - const t = e.toLowerCase().replace(/^\w/, (r) => r.toUpperCase()); - if (Hl(t)) - return sr.find((n) => he.bookIdToEnglishName(n) === t); -} -function Hm({ scrRef: e, handleSubmit: t }) { - const [r, n] = de(""), [o, a] = de( - he.bookNumberToId(e.bookNum) - ), [s, l] = de(e.chapterNum ?? 0), [c, p] = de( - he.bookNumberToId(e.bookNum) - ), [u, h] = de(!1), [f, b] = de(u), y = wt(void 0), v = wt(void 0), m = wt(void 0), x = $e( - (C) => zl(C).filter((_) => { - const M = he.bookIdToEnglishName(_).toLowerCase(), B = r.replace(/[^a-zA-Z]/g, "").toLowerCase(); - return M.includes(B) || // Match book name - _.toLowerCase().includes(B); +], _c = (e) => ({ + OT: gn.filter((n) => me.isBookOT(n)), + NT: gn.filter((n) => me.isBookNT(n)), + DC: gn.filter((n) => me.isBookDC(n)) +})[e], an = (e) => gl(me.bookIdToNumber(e)); +function Mc() { + return gn.map((t) => me.bookIdToEnglishName(t)); +} +function Ic(e) { + return Mc().includes(e); +} +function Ac(e) { + const t = e.toLowerCase().replace(/^\w/, (n) => n.toUpperCase()); + if (Ic(t)) + return gn.find((r) => me.bookIdToEnglishName(r) === t); +} +function Lb({ scrRef: e, handleSubmit: t }) { + const [n, r] = fe(""), [o, i] = fe( + me.bookNumberToId(e.bookNum) + ), [a, l] = fe(e.chapterNum ?? 0), [c, u] = fe( + me.bookNumberToId(e.bookNum) + ), [f, v] = fe(!1), [b, p] = fe(f), h = Nt(void 0), d = Nt(void 0), g = Nt(void 0), w = _e( + (P) => _c(P).filter((I) => { + const A = me.bookIdToEnglishName(I).toLowerCase(), F = n.replace(/[^a-zA-Z]/g, "").toLowerCase(); + return A.includes(F) || // Match book name + I.toLowerCase().includes(F); }), - [r] - ), I = (C) => { - n(C); - }, w = wt(!1), E = $e((C) => { - if (w.current) { - w.current = !1; + [n] + ), S = (P) => { + r(P); + }, x = Nt(!1), E = _e((P) => { + if (x.current) { + x.current = !1; return; } - h(C); - }, []), g = $e( - (C, _, M, B) => { + v(P); + }, []), y = _e( + (P, I, A, F) => { if (l( - he.bookNumberToId(e.bookNum) !== C ? 1 : e.chapterNum - ), _ || Zt(C) === -1) { + me.bookNumberToId(e.bookNum) !== P ? 1 : e.chapterNum + ), I || an(P) === -1) { t({ - bookNum: he.bookIdToNumber(C), - chapterNum: M || 1, - verseNum: B || 1 - }), h(!1), n(""); + bookNum: me.bookIdToNumber(P), + chapterNum: A || 1, + verseNum: F || 1 + }), v(!1), r(""); return; } - a(o !== C ? C : ""), h(!_); + i(o !== P ? P : ""), v(!I); }, [t, e.bookNum, e.chapterNum, o] - ), O = (C) => { - C <= 0 || C > Zt(o) || g(o, !0, C); - }, S = $e(() => { - Fl.forEach((C) => { - const _ = r.match(C); - if (_) { - const [M, B = void 0, z = void 0] = _.slice(1), P = Wl(M); - (he.isBookIdValid(M) || P) && g( - P ?? M, + ), N = (P) => { + P <= 0 || P > an(o) || y(o, !0, P); + }, T = _e(() => { + $c.forEach((P) => { + const I = n.match(P); + if (I) { + const [A, F = void 0, z = void 0] = I.slice(1), R = Ac(A); + (me.isBookIdValid(A) || R) && y( + R ?? A, !0, - B ? parseInt(B, 10) : 1, + F ? parseInt(F, 10) : 1, z ? parseInt(z, 10) : 1 ); } }); - }, [g, r]), L = $e( - (C) => { - u ? (C.key === "ArrowDown" || C.key === "ArrowUp") && (typeof m < "u" && // Ref uses null + }, [y, n]), _ = _e( + (P) => { + f ? (P.key === "ArrowDown" || P.key === "ArrowUp") && (typeof g < "u" && // Ref uses null // eslint-disable-next-line no-null/no-null - m.current !== null ? m.current.focus() : typeof v < "u" && // Ref uses null + g.current !== null ? g.current.focus() : typeof d < "u" && // Ref uses null // eslint-disable-next-line no-null/no-null - v.current !== null && v.current.focus(), C.preventDefault()) : h(!0); + d.current !== null && d.current.focus(), P.preventDefault()) : v(!0); }, - [u] - ), D = (C) => { - const { key: _ } = C; - _ === "ArrowRight" || _ === "ArrowLeft" || _ === "ArrowDown" || _ === "ArrowUp" || _ === "Enter" || (y.current.dispatchEvent(new KeyboardEvent("keydown", { key: _ })), y.current.focus()); - }, V = (C) => { - const { key: _ } = C; + [f] + ), D = (P) => { + const { key: I } = P; + I === "ArrowRight" || I === "ArrowLeft" || I === "ArrowDown" || I === "ArrowUp" || I === "Enter" || (h.current.dispatchEvent(new KeyboardEvent("keydown", { key: I })), h.current.focus()); + }, j = (P) => { + const { key: I } = P; if (c === o) { - if (_ === "Enter") { - C.preventDefault(), g(o, !0, s); + if (I === "Enter") { + P.preventDefault(), y(o, !0, a); return; } - let M = 0; - if (_ === "ArrowRight") - if (s < Zt(c)) - M = 1; + let A = 0; + if (I === "ArrowRight") + if (a < an(c)) + A = 1; else { - C.preventDefault(); + P.preventDefault(); return; } - else if (_ === "ArrowLeft") - if (s > 1) - M = -1; + else if (I === "ArrowLeft") + if (a > 1) + A = -1; else { - C.preventDefault(); + P.preventDefault(); return; } else - _ === "ArrowDown" ? M = 6 : _ === "ArrowUp" && (M = -6); - s + M <= 0 || s + M > Zt(c) ? l(0) : M !== 0 && (l(s + M), C.preventDefault()); + I === "ArrowDown" ? A = 6 : I === "ArrowUp" && (A = -6); + a + A <= 0 || a + A > an(c) ? l(0) : A !== 0 && (l(a + A), P.preventDefault()); } }; return Ye(() => { - o === c ? o === he.bookNumberToId(e.bookNum) ? l(e.chapterNum) : l(1) : l(0); - }, [c, e.bookNum, e.chapterNum, o]), jo(() => { - b(u); - }, [u]), jo(() => { - const C = setTimeout(() => { - if (f && v.current && m.current) { - const M = m.current.offsetTop - Vl; - v.current.scrollTo({ top: M, behavior: "instant" }); + o === c ? o === me.bookNumberToId(e.bookNum) ? l(e.chapterNum) : l(1) : l(0); + }, [c, e.bookNum, e.chapterNum, o]), ei(() => { + p(f); + }, [f]), ei(() => { + const P = setTimeout(() => { + if (b && d.current && g.current) { + const A = g.current.offsetTop - Rc; + d.current.scrollTo({ top: A, behavior: "instant" }); } }, 10); return () => { - clearTimeout(C); + clearTimeout(P); }; - }, [f]), /* @__PURE__ */ d("div", { className: "pr-flex", children: /* @__PURE__ */ U(ti, { modal: !1, open: u, onOpenChange: E, children: [ - /* @__PURE__ */ d(Rl, { asChild: !0, children: /* @__PURE__ */ d( - Al, + }, [b]), /* @__PURE__ */ m("div", { className: "pr-flex", children: /* @__PURE__ */ U(Na, { modal: !1, open: f, onOpenChange: E, children: [ + /* @__PURE__ */ m(wc, { asChild: !0, children: /* @__PURE__ */ m( + Nc, { - ref: y, - value: r, - handleSearch: I, - handleKeyDown: L, + ref: h, + value: n, + handleSearch: S, + handleKeyDown: _, handleOnClick: () => { - a(he.bookNumberToId(e.bookNum)), p(he.bookNumberToId(e.bookNum)), l(e.chapterNum > 0 ? e.chapterNum : 0), h(!0), y.current.focus(); + i(me.bookNumberToId(e.bookNum)), u(me.bookNumberToId(e.bookNum)), l(e.chapterNum > 0 ? e.chapterNum : 0), v(!0), h.current.focus(); }, onFocus: () => { - w.current = !0; + x.current = !0; }, - handleSubmit: S, - placeholder: `${he.bookNumberToEnglishName(e.bookNum)} ${e.chapterNum}:${e.verseNum}` + handleSubmit: T, + placeholder: `${me.bookNumberToEnglishName(e.bookNum)} ${e.chapterNum}:${e.verseNum}` } ) }), /* @__PURE__ */ U( - Kn, + uo, { className: "pr-overflow-y-auto pr-font-normal pr-text-slate-700", style: { width: "233px", maxHeight: "500px" }, onKeyDown: D, align: "start", - ref: v, + ref: d, children: [ - /* @__PURE__ */ d( - Bl, + /* @__PURE__ */ m( + Sc, { handleSort: () => console.log("sorting"), handleLocationHistory: () => console.log("location history"), handleBookmarks: () => console.log("bookmarks") } ), - Wo.map( - (C, _) => x(C).length > 0 && /* @__PURE__ */ U("div", { children: [ - /* @__PURE__ */ d(Jr, { className: "pr-font-semibold pr-text-slate-700", children: Ll[C] }), - x(C).map((M) => /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d( - jl, + li.map( + (P, I) => w(P).length > 0 && /* @__PURE__ */ U("div", { children: [ + /* @__PURE__ */ m(ar, { className: "pr-font-semibold pr-text-slate-700", children: Pc[P] }), + w(P).map((A) => /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m( + Cc, { - bookId: M, - handleSelectBook: () => g(M, !1), - isSelected: o === M, - handleHighlightBook: () => p(M), - handleKeyDown: V, - bookType: C, - ref: (B) => { - o === M && (m.current = B); + bookId: A, + handleSelectBook: () => y(A, !1), + isSelected: o === A, + handleHighlightBook: () => u(A), + handleKeyDown: j, + bookType: P, + ref: (F) => { + o === A && (g.current = F); }, - children: /* @__PURE__ */ d( - Dl, + children: /* @__PURE__ */ m( + Oc, { - handleSelectChapter: O, - endChapter: Zt(M), - activeChapter: e.bookNum === he.bookIdToNumber(M) ? e.chapterNum : 0, - highlightedChapter: s, - handleHighlightedChapter: (B) => { - l(B); + handleSelectChapter: N, + endChapter: an(A), + activeChapter: e.bookNum === me.bookIdToNumber(A) ? e.chapterNum : 0, + highlightedChapter: a, + handleHighlightedChapter: (F) => { + l(F); } } ) } - ) }, M)), - Wo.length - 1 !== _ ? /* @__PURE__ */ d(Jn, {}) : void 0 - ] }, C) + ) }, A)), + li.length - 1 !== I ? /* @__PURE__ */ m(fo, {}) : void 0 + ] }, P) ) ] } ) ] }) }); } -const Zn = J.forwardRef( - ({ className: e, ...t }, r) => /* @__PURE__ */ d("div", { className: "pr-relative pr-w-full pr-overflow-auto", children: /* @__PURE__ */ d( +const ho = J.forwardRef( + ({ className: e, ...t }, n) => /* @__PURE__ */ m("div", { className: "pr-relative pr-w-full pr-overflow-auto", children: /* @__PURE__ */ m( "table", { - ref: r, - className: G("pr-w-full pr-caption-bottom pr-text-sm", e), + ref: n, + className: W("pr-w-full pr-caption-bottom pr-text-sm", e), ...t } ) }) ); -Zn.displayName = "Table"; -const Qn = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d("thead", { ref: r, className: G("[&_tr]:pr-border-b", e), ...t })); -Qn.displayName = "TableHeader"; -const eo = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d("tbody", { ref: r, className: G("[&_tr:last-child]:pr-border-0", e), ...t })); -eo.displayName = "TableBody"; -const Xl = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( +ho.displayName = "Table"; +const mo = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m("thead", { ref: n, className: W("[&_tr]:pr-border-b", e), ...t })); +mo.displayName = "TableHeader"; +const go = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m("tbody", { ref: n, className: W("[&_tr:last-child]:pr-border-0", e), ...t })); +go.displayName = "TableBody"; +const Dc = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( "tfoot", { - ref: r, - className: G("pr-border-t pr-bg-muted/50 pr-font-medium [&>tr]:last:pr-border-b-0", e), + ref: n, + className: W("pr-border-t pr-bg-muted/50 pr-font-medium [&>tr]:last:pr-border-b-0", e), ...t } )); -Xl.displayName = "TableFooter"; -const Dt = J.forwardRef( - ({ className: e, ...t }, r) => /* @__PURE__ */ d( +Dc.displayName = "TableFooter"; +const Ut = J.forwardRef( + ({ className: e, ...t }, n) => /* @__PURE__ */ m( "tr", { - ref: r, - className: G( + ref: n, + className: W( "pr-border-b pr-transition-colors hover:pr-bg-muted/50 data-[state=selected]:pr-bg-muted", e ), @@ -1289,39 +1288,39 @@ const Dt = J.forwardRef( } ) ); -Dt.displayName = "TableRow"; -const Lr = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( +Ut.displayName = "TableRow"; +const Yn = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( "th", { - ref: r, - className: G( + ref: n, + className: W( "pr-h-12 pr-px-4 pr-text-left pr-align-middle pr-font-medium pr-text-muted-foreground [&:has([role=checkbox])]:pr-pr-0", e ), ...t } )); -Lr.displayName = "TableHead"; -const dr = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( +Yn.displayName = "TableHead"; +const xn = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( "td", { - ref: r, - className: G("pr-p-4 pr-align-middle [&:has([role=checkbox])]:pr-pr-0", e), + ref: n, + className: W("pr-p-4 pr-align-middle [&:has([role=checkbox])]:pr-pr-0", e), ...t } )); -dr.displayName = "TableCell"; -const ql = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( +xn.displayName = "TableCell"; +const Bc = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( "caption", { - ref: r, - className: G("pr-mt-4 pr-text-sm pr-text-muted-foreground", e), + ref: n, + className: W("pr-mt-4 pr-text-sm pr-text-muted-foreground", e), ...t } )); -ql.displayName = "TableCaption"; -const Yl = Xn( - "pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-md pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50", +Bc.displayName = "TableCaption"; +const jc = so( + "pr-twp pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-md pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50", { variants: { variant: { @@ -1344,110 +1343,110 @@ const Yl = Xn( size: "default" } } -), ke = J.forwardRef( - ({ className: e, variant: t, size: r, asChild: n = !1, ...o }, a) => /* @__PURE__ */ d(n ? Zs : "button", { className: G(Yl({ variant: t, size: r, className: e })), ref: a, ...o }) +), Ne = J.forwardRef( + ({ className: e, variant: t, size: n, asChild: r = !1, ...o }, i) => /* @__PURE__ */ m(r ? zl : "button", { className: W(jc({ variant: t, size: n, className: e })), ref: i, ...o }) ); -ke.displayName = "Button"; -const $n = ye.Root, Wm = ye.Group, _n = ye.Value, Vr = J.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ U( - ye.Trigger, +Ne.displayName = "Button"; +const Ur = we.Root, Fb = we.Group, Hr = we.Value, Kn = J.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ U( + we.Trigger, { - ref: n, - className: G( + ref: r, + className: W( "pr-flex pr-h-10 pr-w-full pr-items-center pr-justify-between pr-rounded-md pr-border pr-border-input pr-bg-background pr-px-3 pr-py-2 pr-text-sm pr-ring-offset-background placeholder:pr-text-muted-foreground focus:pr-outline-none focus:pr-ring-2 focus:pr-ring-ring focus:pr-ring-offset-2 disabled:pr-cursor-not-allowed disabled:pr-opacity-50 [&>span]:pr-line-clamp-1", e ), - ...r, + ...n, children: [ t, - /* @__PURE__ */ d(ye.Icon, { asChild: !0, children: /* @__PURE__ */ d(Ha, { className: "pr-h-4 pr-w-4 pr-opacity-50" }) }) + /* @__PURE__ */ m(we.Icon, { asChild: !0, children: /* @__PURE__ */ m(ha, { className: "pr-h-4 pr-w-4 pr-opacity-50" }) }) ] } )); -Vr.displayName = ye.Trigger.displayName; -const oi = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - ye.ScrollUpButton, +Kn.displayName = we.Trigger.displayName; +const Sa = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + we.ScrollUpButton, { - ref: r, - className: G("pr-flex pr-cursor-default pr-items-center pr-justify-center pr-py-1", e), + ref: n, + className: W("pr-flex pr-cursor-default pr-items-center pr-justify-center pr-py-1", e), ...t, - children: /* @__PURE__ */ d(Ds, { className: "pr-h-4 pr-w-4" }) + children: /* @__PURE__ */ m(Nl, { className: "pr-h-4 pr-w-4" }) } )); -oi.displayName = ye.ScrollUpButton.displayName; -const ai = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - ye.ScrollDownButton, +Sa.displayName = we.ScrollUpButton.displayName; +const Pa = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + we.ScrollDownButton, { - ref: r, - className: G("pr-flex pr-cursor-default pr-items-center pr-justify-center pr-py-1", e), + ref: n, + className: W("pr-flex pr-cursor-default pr-items-center pr-justify-center pr-py-1", e), ...t, - children: /* @__PURE__ */ d(Ha, { className: "pr-h-4 pr-w-4" }) + children: /* @__PURE__ */ m(ha, { className: "pr-h-4 pr-w-4" }) } )); -ai.displayName = ye.ScrollDownButton.displayName; -const Fr = J.forwardRef(({ className: e, children: t, position: r = "popper", ...n }, o) => /* @__PURE__ */ d(ye.Portal, { children: /* @__PURE__ */ U( - ye.Content, +Pa.displayName = we.ScrollDownButton.displayName; +const Jn = J.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ m(we.Portal, { children: /* @__PURE__ */ U( + we.Content, { ref: o, - className: G( + className: W( "pr-relative pr-z-50 pr-max-h-96 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-text-popover-foreground pr-shadow-md data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2", - r === "popper" && "data-[side=bottom]:pr-translate-y-1 data-[side=left]:pr--translate-x-1 data-[side=right]:pr-translate-x-1 data-[side=top]:pr--translate-y-1", + n === "popper" && "data-[side=bottom]:pr-translate-y-1 data-[side=left]:pr--translate-x-1 data-[side=right]:pr-translate-x-1 data-[side=top]:pr--translate-y-1", e ), - position: r, - ...n, + position: n, + ...r, children: [ - /* @__PURE__ */ d(oi, {}), - /* @__PURE__ */ d( - ye.Viewport, + /* @__PURE__ */ m(Sa, {}), + /* @__PURE__ */ m( + we.Viewport, { - className: G( + className: W( "pr-p-1", - r === "popper" && "pr-h-[var(--radix-select-trigger-height)] pr-w-full pr-min-w-[var(--radix-select-trigger-width)]" + n === "popper" && "pr-h-[var(--radix-select-trigger-height)] pr-w-full pr-min-w-[var(--radix-select-trigger-width)]" ), children: t } ), - /* @__PURE__ */ d(ai, {}) + /* @__PURE__ */ m(Pa, {}) ] } ) })); -Fr.displayName = ye.Content.displayName; -const Gl = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - ye.Label, +Jn.displayName = we.Content.displayName; +const Lc = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + we.Label, { - ref: r, - className: G("pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-font-semibold", e), + ref: n, + className: W("pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-font-semibold", e), ...t } )); -Gl.displayName = ye.Label.displayName; -const rt = J.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ U( - ye.Item, +Lc.displayName = we.Label.displayName; +const ot = J.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ U( + we.Item, { - ref: n, - className: G( + ref: r, + className: W( "pr-relative pr-flex pr-w-full pr-cursor-default pr-select-none pr-items-center pr-rounded-sm pr-py-1.5 pr-pl-8 pr-pr-2 pr-text-sm pr-outline-none focus:pr-bg-accent focus:pr-text-accent-foreground data-[disabled]:pr-pointer-events-none data-[disabled]:pr-opacity-50", e ), - ...r, + ...n, children: [ - /* @__PURE__ */ d("span", { className: "pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center", children: /* @__PURE__ */ d(ye.ItemIndicator, { children: /* @__PURE__ */ d(Ua, { className: "pr-h-4 pr-w-4" }) }) }), - /* @__PURE__ */ d(ye.ItemText, { children: t }) + /* @__PURE__ */ m("span", { className: "pr-absolute pr-left-2 pr-flex pr-h-3.5 pr-w-3.5 pr-items-center pr-justify-center", children: /* @__PURE__ */ m(we.ItemIndicator, { children: /* @__PURE__ */ m(fa, { className: "pr-h-4 pr-w-4" }) }) }), + /* @__PURE__ */ m(we.ItemText, { children: t }) ] } )); -rt.displayName = ye.Item.displayName; -const Kl = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - ye.Separator, +ot.displayName = we.Item.displayName; +const Fc = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + we.Separator, { - ref: r, - className: G("pr--mx-1 pr-my-1 pr-h-px pr-bg-muted", e), + ref: n, + className: W("pr--mx-1 pr-my-1 pr-h-px pr-bg-muted", e), ...t } )); -Kl.displayName = ye.Separator.displayName; -function Jl({ table: e }) { - return /* @__PURE__ */ d("div", { className: "pr-flex pr-items-center pr-justify-between pr-px-2 pr-pb-3 pr-pt-3", children: /* @__PURE__ */ U("div", { className: "pr-flex pr-items-center pr-space-x-6 lg:pr-space-x-8", children: [ +Fc.displayName = we.Separator.displayName; +function Vc({ table: e }) { + return /* @__PURE__ */ m("div", { className: "pr-flex pr-items-center pr-justify-between pr-px-2 pr-pb-3 pr-pt-3", children: /* @__PURE__ */ U("div", { className: "pr-flex pr-items-center pr-space-x-6 lg:pr-space-x-8", children: [ /* @__PURE__ */ U("div", { className: "pr-flex-1 pr-text-sm pr-text-muted-foreground", children: [ e.getFilteredSelectedRowModel().rows.length, " of", @@ -1456,17 +1455,17 @@ function Jl({ table: e }) { " row(s) selected" ] }), /* @__PURE__ */ U("div", { className: "pr-flex pr-items-center pr-space-x-2", children: [ - /* @__PURE__ */ d("p", { className: "pr-text-nowrap pr-text-sm pr-font-medium", children: "Rows per page" }), + /* @__PURE__ */ m("p", { className: "pr-text-nowrap pr-text-sm pr-font-medium", children: "Rows per page" }), /* @__PURE__ */ U( - $n, + Ur, { value: `${e.getState().pagination.pageSize}`, onValueChange: (t) => { e.setPageSize(Number(t)); }, children: [ - /* @__PURE__ */ d(Vr, { className: "pr-h-8 pr-w-[70px]", children: /* @__PURE__ */ d(_n, { placeholder: e.getState().pagination.pageSize }) }), - /* @__PURE__ */ d(Fr, { side: "top", children: [10, 20, 30, 40, 50].map((t) => /* @__PURE__ */ d(rt, { value: `${t}`, children: t }, t)) }) + /* @__PURE__ */ m(Kn, { className: "pr-h-8 pr-w-[70px]", children: /* @__PURE__ */ m(Hr, { placeholder: e.getState().pagination.pageSize }) }), + /* @__PURE__ */ m(Jn, { side: "top", children: [10, 20, 30, 40, 50].map((t) => /* @__PURE__ */ m(ot, { value: `${t}`, children: t }, t)) }) ] } ) @@ -1479,7 +1478,7 @@ function Jl({ table: e }) { ] }), /* @__PURE__ */ U("div", { className: "pr-flex pr-items-center pr-space-x-2", children: [ /* @__PURE__ */ U( - ke, + Ne, { variant: "outline", size: "icon", @@ -1487,13 +1486,13 @@ function Jl({ table: e }) { onClick: () => e.setPageIndex(0), disabled: !e.getCanPreviousPage(), children: [ - /* @__PURE__ */ d("span", { className: "pr-sr-only", children: "Go to first page" }), - /* @__PURE__ */ d(js, { className: "pr-h-4 pr-w-4" }) + /* @__PURE__ */ m("span", { className: "pr-sr-only", children: "Go to first page" }), + /* @__PURE__ */ m(Ol, { className: "pr-h-4 pr-w-4" }) ] } ), /* @__PURE__ */ U( - ke, + Ne, { variant: "outline", size: "icon", @@ -1501,13 +1500,13 @@ function Jl({ table: e }) { onClick: () => e.previousPage(), disabled: !e.getCanPreviousPage(), children: [ - /* @__PURE__ */ d("span", { className: "pr-sr-only", children: "Go to previous page" }), - /* @__PURE__ */ d(Bs, { className: "pr-h-4 pr-w-4" }) + /* @__PURE__ */ m("span", { className: "pr-sr-only", children: "Go to previous page" }), + /* @__PURE__ */ m(Cl, { className: "pr-h-4 pr-w-4" }) ] } ), /* @__PURE__ */ U( - ke, + Ne, { variant: "outline", size: "icon", @@ -1515,13 +1514,13 @@ function Jl({ table: e }) { onClick: () => e.nextPage(), disabled: !e.getCanNextPage(), children: [ - /* @__PURE__ */ d("span", { className: "pr-sr-only", children: "Go to next page" }), - /* @__PURE__ */ d(Ls, { className: "pr-h-4 pr-w-4" }) + /* @__PURE__ */ m("span", { className: "pr-sr-only", children: "Go to next page" }), + /* @__PURE__ */ m(Sl, { className: "pr-h-4 pr-w-4" }) ] } ), /* @__PURE__ */ U( - ke, + Ne, { variant: "outline", size: "icon", @@ -1529,29 +1528,29 @@ function Jl({ table: e }) { onClick: () => e.setPageIndex(e.getPageCount() - 1), disabled: !e.getCanNextPage(), children: [ - /* @__PURE__ */ d("span", { className: "pr-sr-only", children: "Go to last page" }), - /* @__PURE__ */ d(Vs, { className: "pr-h-4 pr-w-4" }) + /* @__PURE__ */ m("span", { className: "pr-sr-only", children: "Go to last page" }), + /* @__PURE__ */ m(Pl, { className: "pr-h-4 pr-w-4" }) ] } ) ] }) ] }) }); } -function Zl({ table: e }) { - return /* @__PURE__ */ U(ti, { children: [ - /* @__PURE__ */ d(Ps, { asChild: !0, children: /* @__PURE__ */ U(ke, { variant: "outline", size: "sm", className: "pr-ml-auto pr-hidden pr-h-8 lg:pr-flex", children: [ - /* @__PURE__ */ d(Fs, { className: "pr-mr-2 pr-h-4 pr-w-4" }), +function zc({ table: e }) { + return /* @__PURE__ */ U(Na, { children: [ + /* @__PURE__ */ m(vl, { asChild: !0, children: /* @__PURE__ */ U(Ne, { variant: "outline", size: "sm", className: "pr-ml-auto pr-hidden pr-h-8 lg:pr-flex", children: [ + /* @__PURE__ */ m(Rl, { className: "pr-mr-2 pr-h-4 pr-w-4" }), "View" ] }) }), - /* @__PURE__ */ U(Kn, { align: "end", className: "pr-w-[150px]", children: [ - /* @__PURE__ */ d(Jr, { children: "Toggle columns" }), - /* @__PURE__ */ d(Jn, {}), - e.getAllColumns().filter((t) => t.getCanHide()).map((t) => /* @__PURE__ */ d( - ni, + /* @__PURE__ */ U(uo, { align: "end", className: "pr-w-[150px]", children: [ + /* @__PURE__ */ m(ar, { children: "Toggle columns" }), + /* @__PURE__ */ m(fo, {}), + e.getAllColumns().filter((t) => t.getCanHide()).map((t) => /* @__PURE__ */ m( + Ca, { className: "pr-capitalize", checked: t.getIsVisible(), - onCheckedChange: (r) => t.toggleVisibility(!!r), + onCheckedChange: (n) => t.toggleVisibility(!!n), children: t.id }, t.id @@ -1559,151 +1558,151 @@ function Zl({ table: e }) { ] }) ] }); } -function Ql({ +function Uc({ columns: e, data: t, - enablePagination: r = !1, - showPaginationControls: n = !1, + enablePagination: n = !1, + showPaginationControls: r = !1, showColumnVisibilityControls: o = !1, - onRowClickHandler: a = () => { + onRowClickHandler: i = () => { } }) { - var v; - const [s, l] = de([]), [c, p] = de([]), [u, h] = de({}), [f, b] = de({}), y = qs({ + var d; + const [a, l] = fe([]), [c, u] = fe([]), [f, v] = fe({}), [b, p] = fe({}), h = Bl({ data: t, columns: e, - getCoreRowModel: Ys(), - ...r && { getPaginationRowModel: Gs() }, + getCoreRowModel: jl(), + ...n && { getPaginationRowModel: Ll() }, onSortingChange: l, - getSortedRowModel: Ks(), - onColumnFiltersChange: p, - getFilteredRowModel: Js(), - onColumnVisibilityChange: h, - onRowSelectionChange: b, + getSortedRowModel: Fl(), + onColumnFiltersChange: u, + getFilteredRowModel: Vl(), + onColumnVisibilityChange: v, + onRowSelectionChange: p, state: { - sorting: s, + sorting: a, columnFilters: c, - columnVisibility: u, - rowSelection: f + columnVisibility: f, + rowSelection: b } }); return /* @__PURE__ */ U("div", { children: [ - o && /* @__PURE__ */ d(Zl, { table: y }), - /* @__PURE__ */ d("div", { className: "pr-twp pr-font-sans", children: /* @__PURE__ */ U(Zn, { children: [ - /* @__PURE__ */ d(Qn, { children: y.getHeaderGroups().map((m) => /* @__PURE__ */ d(Dt, { children: m.headers.map((x) => /* @__PURE__ */ d(Lr, { children: x.isPlaceholder ? void 0 : Fo(x.column.columnDef.header, x.getContext()) }, x.id)) }, m.id)) }), - /* @__PURE__ */ d(eo, { children: (v = y.getRowModel().rows) != null && v.length ? y.getRowModel().rows.map((m) => /* @__PURE__ */ d( - Dt, + o && /* @__PURE__ */ m(zc, { table: h }), + /* @__PURE__ */ m("div", { className: "pr-twp", children: /* @__PURE__ */ U(ho, { children: [ + /* @__PURE__ */ m(mo, { children: h.getHeaderGroups().map((g) => /* @__PURE__ */ m(Ut, { children: g.headers.map((w) => /* @__PURE__ */ m(Yn, { children: w.isPlaceholder ? void 0 : oi(w.column.columnDef.header, w.getContext()) }, w.id)) }, g.id)) }), + /* @__PURE__ */ m(go, { children: (d = h.getRowModel().rows) != null && d.length ? h.getRowModel().rows.map((g) => /* @__PURE__ */ m( + Ut, { - onClick: () => a(m, y), - "data-state": m.getIsSelected() && "selected", - children: m.getVisibleCells().map((x) => /* @__PURE__ */ d(dr, { children: Fo(x.column.columnDef.cell, x.getContext()) }, x.id)) + onClick: () => i(g, h), + "data-state": g.getIsSelected() && "selected", + children: g.getVisibleCells().map((w) => /* @__PURE__ */ m(xn, { children: oi(w.column.columnDef.cell, w.getContext()) }, w.id)) }, - m.id - )) : /* @__PURE__ */ d(Dt, { children: /* @__PURE__ */ d(dr, { colSpan: e.length, className: "pr-h-24 pr-text-center", children: "No results." }) }) }) + g.id + )) : /* @__PURE__ */ m(Ut, { children: /* @__PURE__ */ m(xn, { colSpan: e.length, className: "pr-h-24 pr-text-center", children: "No results." }) }) }) ] }) }), - r && /* @__PURE__ */ U("div", { className: "pr-flex pr-items-center pr-justify-end pr-space-x-2 pr-py-4", children: [ - /* @__PURE__ */ d( - ke, + n && /* @__PURE__ */ U("div", { className: "pr-flex pr-items-center pr-justify-end pr-space-x-2 pr-py-4", children: [ + /* @__PURE__ */ m( + Ne, { variant: "outline", size: "sm", - onClick: () => y.previousPage(), - disabled: !y.getCanPreviousPage(), + onClick: () => h.previousPage(), + disabled: !h.getCanPreviousPage(), children: "Previous" } ), - /* @__PURE__ */ d( - ke, + /* @__PURE__ */ m( + Ne, { variant: "outline", size: "sm", - onClick: () => y.nextPage(), - disabled: !y.getCanNextPage(), + onClick: () => h.nextPage(), + disabled: !h.getCanNextPage(), children: "Next" } ) ] }), - r && n && /* @__PURE__ */ d(Jl, { table: y }) + n && r && /* @__PURE__ */ m(Vc, { table: h }) ] }); } -function Xo({ +function ci({ id: e, title: t, - isDisabled: r = !1, - isClearable: n = !0, + isDisabled: n = !1, + isClearable: r = !0, hasError: o = !1, - isFullWidth: a = !1, - width: s, + isFullWidth: i = !1, + width: a, options: l = [], className: c, - value: p, - onChange: u, - onFocus: h, - onBlur: f, - getOptionLabel: b + value: u, + onChange: f, + onFocus: v, + onBlur: b, + getOptionLabel: p }) { - return /* @__PURE__ */ d( - Qs, + return /* @__PURE__ */ m( + Ul, { id: e, disablePortal: !0, - disabled: r, - disableClearable: !n, - fullWidth: a, + disabled: n, + disableClearable: !r, + fullWidth: i, options: l, className: `papi-combo-box ${o ? "error" : ""} ${c ?? ""}`, - value: p, - onChange: u, - onFocus: h, - onBlur: f, - getOptionLabel: b, - renderInput: (y) => /* @__PURE__ */ d( - el, + value: u, + onChange: f, + onFocus: v, + onBlur: b, + getOptionLabel: p, + renderInput: (h) => /* @__PURE__ */ m( + Hl, { - ...y, + ...h, error: o, - fullWidth: a, - disabled: r, + fullWidth: i, + disabled: n, label: t, - style: { width: s } + style: { width: a } } ) } ); } -function Xm({ +function Vb({ handleSelectStartChapter: e, handleSelectEndChapter: t, - isDisabled: r = !1, - chapterCount: n + isDisabled: n = !1, + chapterCount: r }) { - const [o, a] = de(1), [s, l] = de(n), [c, p] = de( - Array.from({ length: n }, (f, b) => b + 1) + const [o, i] = fe(1), [a, l] = fe(r), [c, u] = fe( + Array.from({ length: r }, (b, p) => p + 1) ); Ye(() => { - a(1), e(1), l(n), t(n), p(Array.from({ length: n }, (f, b) => b + 1)); - }, [n, t, e]); - const u = (f, b) => { - a(b), e(b), b > s && (l(b), t(b)); - }, h = (f, b) => { - l(b), t(b), b < o && (a(b), e(b)); + i(1), e(1), l(r), t(r), u(Array.from({ length: r }, (b, p) => p + 1)); + }, [r, t, e]); + const f = (b, p) => { + i(p), e(p), p > a && (l(p), t(p)); + }, v = (b, p) => { + l(p), t(p), p < o && (i(p), e(p)); }; - return /* @__PURE__ */ U(Kr, { children: [ - /* @__PURE__ */ d( - zo, + return /* @__PURE__ */ U(_t, { children: [ + /* @__PURE__ */ m( + ii, { className: "book-selection-chapter-form-label start", - disabled: r, - control: /* @__PURE__ */ d( - Xo, + disabled: n, + control: /* @__PURE__ */ m( + ci, { - onChange: (f, b) => u(f, b), + onChange: (b, p) => f(b, p), className: "book-selection-chapter", isClearable: !1, options: c, - getOptionLabel: (f) => f.toString(), + getOptionLabel: (b) => b.toString(), value: o, - isDisabled: r + isDisabled: n }, "start chapter" ), @@ -1711,21 +1710,21 @@ function Xm({ labelPlacement: "start" } ), - /* @__PURE__ */ d( - zo, + /* @__PURE__ */ m( + ii, { className: "book-selection-chapter-form-label end", - disabled: r, - control: /* @__PURE__ */ d( - Xo, + disabled: n, + control: /* @__PURE__ */ m( + ci, { - onChange: (f, b) => h(f, b), + onChange: (b, p) => v(b, p), className: "book-selection-chapter", isClearable: !1, options: c, - getOptionLabel: (f) => f.toString(), - value: s, - isDisabled: r + getOptionLabel: (b) => b.toString(), + value: a, + isDisabled: n }, "end chapter" ), @@ -1735,117 +1734,117 @@ function Xm({ ) ] }); } -var It = /* @__PURE__ */ ((e) => (e.After = "after", e.Before = "before", e.Above = "above", e.Below = "below", e))(It || {}); -function ec({ +var Vt = /* @__PURE__ */ ((e) => (e.After = "after", e.Before = "before", e.Above = "above", e.Below = "below", e))(Vt || {}); +function Hc({ id: e, isChecked: t, - labelText: r = "", - labelPosition: n = It.After, + labelText: n = "", + labelPosition: r = Vt.After, isIndeterminate: o = !1, - isDefaultChecked: a, - isDisabled: s = !1, + isDefaultChecked: i, + isDisabled: a = !1, hasError: l = !1, className: c, - onChange: p + onChange: u }) { - const u = /* @__PURE__ */ d( - rl, + const f = /* @__PURE__ */ m( + Xl, { id: e, checked: t, indeterminate: o, - defaultChecked: a, - disabled: s, + defaultChecked: i, + disabled: a, className: `papi-checkbox ${l ? "error" : ""} ${c ?? ""}`, - onChange: p + onChange: u } ); - let h; - if (r) { - const f = n === It.Before || n === It.Above, b = /* @__PURE__ */ d("span", { className: `papi-checkbox-label ${l ? "error" : ""} ${c ?? ""}`, children: r }), y = n === It.Before || n === It.After, v = y ? b : /* @__PURE__ */ d("div", { children: b }), m = y ? u : /* @__PURE__ */ d("div", { children: u }); - h = /* @__PURE__ */ U( - tl, + let v; + if (n) { + const b = r === Vt.Before || r === Vt.Above, p = /* @__PURE__ */ m("span", { className: `papi-checkbox-label ${l ? "error" : ""} ${c ?? ""}`, children: n }), h = r === Vt.Before || r === Vt.After, d = h ? p : /* @__PURE__ */ m("div", { children: p }), g = h ? f : /* @__PURE__ */ m("div", { children: f }); + v = /* @__PURE__ */ U( + Wl, { - className: `papi-checkbox ${n.toString()}`, - disabled: s, + className: `papi-checkbox ${r.toString()}`, + disabled: a, error: l, children: [ - f && v, - m, - !f && v + b && d, + g, + !b && d ] } ); } else - h = u; - return h; + v = f; + return v; } -function qm({ +function zb({ id: e, className: t, - legend: r, - listItems: n, + legend: n, + listItems: r, selectedListItems: o, - handleSelectListItem: a, - createLabel: s + handleSelectListItem: i, + createLabel: a }) { return /* @__PURE__ */ U("fieldset", { id: e, className: t, children: [ - r && /* @__PURE__ */ d("legend", { children: r }), - n.map((l) => /* @__PURE__ */ d( - ec, + n && /* @__PURE__ */ m("legend", { children: n }), + r.map((l) => /* @__PURE__ */ m( + Hc, { className: "check-item", isChecked: o.includes(l), - labelText: s ? s(l) : l, - onChange: () => a(l) + labelText: a ? a(l) : l, + onChange: () => i(l) }, l )) ] }); } -function fe(e, t) { +function he(e, t) { if (e == null) return {}; - var r = {}, n = Object.keys(e), o, a; - for (a = 0; a < n.length; a++) - o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]); - return r; + var n = {}, r = Object.keys(e), o, i; + for (i = 0; i < r.length; i++) + o = r[i], !(t.indexOf(o) >= 0) && (n[o] = e[o]); + return n; } -function N() { - return N = Object.assign ? Object.assign.bind() : function(e) { +function C() { + return C = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { - var r = arguments[t]; - for (var n in r) - Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; - }, N.apply(this, arguments); + }, C.apply(this, arguments); } -function tc(e) { +function Wc(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } -function rc(e) { +function Xc(e) { if (e.__esModule) return e; var t = e.default; if (typeof t == "function") { - var r = function n() { - return this instanceof n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments); + var n = function r() { + return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments); }; - r.prototype = t.prototype; + n.prototype = t.prototype; } else - r = {}; - return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) { - var o = Object.getOwnPropertyDescriptor(e, n); - Object.defineProperty(r, n, o.get ? o : { + n = {}; + return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) { + var o = Object.getOwnPropertyDescriptor(e, r); + Object.defineProperty(n, r, o.get ? o : { enumerable: !0, get: function() { - return e[n]; + return e[r]; } }); - }), r; + }), n; } -var Mn = { exports: {} }, Pr = { exports: {} }, le = {}; +var Wr = { exports: {} }, jn = { exports: {} }, ce = {}; /** @license React v16.13.1 * react-is.production.min.js * @@ -1854,74 +1853,74 @@ var Mn = { exports: {} }, Pr = { exports: {} }, le = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var qo; -function nc() { - if (qo) - return le; - qo = 1; - var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119; - function w(g) { - if (typeof g == "object" && g !== null) { - var O = g.$$typeof; - switch (O) { +var pi; +function Gc() { + if (pi) + return ce; + pi = 1; + var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119; + function x(y) { + if (typeof y == "object" && y !== null) { + var N = y.$$typeof; + switch (N) { case t: - switch (g = g.type, g) { + switch (y = y.type, y) { case c: - case p: - case n: - case a: + case u: + case r: + case i: case o: - case h: - return g; + case v: + return y; default: - switch (g = g && g.$$typeof, g) { + switch (y = y && y.$$typeof, y) { case l: - case u: - case y: - case b: - case s: - return g; + case f: + case h: + case p: + case a: + return y; default: - return O; + return N; } } - case r: - return O; + case n: + return N; } } } - function E(g) { - return w(g) === p; - } - return le.AsyncMode = c, le.ConcurrentMode = p, le.ContextConsumer = l, le.ContextProvider = s, le.Element = t, le.ForwardRef = u, le.Fragment = n, le.Lazy = y, le.Memo = b, le.Portal = r, le.Profiler = a, le.StrictMode = o, le.Suspense = h, le.isAsyncMode = function(g) { - return E(g) || w(g) === c; - }, le.isConcurrentMode = E, le.isContextConsumer = function(g) { - return w(g) === l; - }, le.isContextProvider = function(g) { - return w(g) === s; - }, le.isElement = function(g) { - return typeof g == "object" && g !== null && g.$$typeof === t; - }, le.isForwardRef = function(g) { - return w(g) === u; - }, le.isFragment = function(g) { - return w(g) === n; - }, le.isLazy = function(g) { - return w(g) === y; - }, le.isMemo = function(g) { - return w(g) === b; - }, le.isPortal = function(g) { - return w(g) === r; - }, le.isProfiler = function(g) { - return w(g) === a; - }, le.isStrictMode = function(g) { - return w(g) === o; - }, le.isSuspense = function(g) { - return w(g) === h; - }, le.isValidElementType = function(g) { - return typeof g == "string" || typeof g == "function" || g === n || g === p || g === a || g === o || g === h || g === f || typeof g == "object" && g !== null && (g.$$typeof === y || g.$$typeof === b || g.$$typeof === s || g.$$typeof === l || g.$$typeof === u || g.$$typeof === m || g.$$typeof === x || g.$$typeof === I || g.$$typeof === v); - }, le.typeOf = w, le; -} -var ce = {}; + function E(y) { + return x(y) === u; + } + return ce.AsyncMode = c, ce.ConcurrentMode = u, ce.ContextConsumer = l, ce.ContextProvider = a, ce.Element = t, ce.ForwardRef = f, ce.Fragment = r, ce.Lazy = h, ce.Memo = p, ce.Portal = n, ce.Profiler = i, ce.StrictMode = o, ce.Suspense = v, ce.isAsyncMode = function(y) { + return E(y) || x(y) === c; + }, ce.isConcurrentMode = E, ce.isContextConsumer = function(y) { + return x(y) === l; + }, ce.isContextProvider = function(y) { + return x(y) === a; + }, ce.isElement = function(y) { + return typeof y == "object" && y !== null && y.$$typeof === t; + }, ce.isForwardRef = function(y) { + return x(y) === f; + }, ce.isFragment = function(y) { + return x(y) === r; + }, ce.isLazy = function(y) { + return x(y) === h; + }, ce.isMemo = function(y) { + return x(y) === p; + }, ce.isPortal = function(y) { + return x(y) === n; + }, ce.isProfiler = function(y) { + return x(y) === i; + }, ce.isStrictMode = function(y) { + return x(y) === o; + }, ce.isSuspense = function(y) { + return x(y) === v; + }, ce.isValidElementType = function(y) { + return typeof y == "string" || typeof y == "function" || y === r || y === u || y === i || y === o || y === v || y === b || typeof y == "object" && y !== null && (y.$$typeof === h || y.$$typeof === p || y.$$typeof === a || y.$$typeof === l || y.$$typeof === f || y.$$typeof === g || y.$$typeof === w || y.$$typeof === S || y.$$typeof === d); + }, ce.typeOf = x, ce; +} +var pe = {}; /** @license React v16.13.1 * react-is.development.js * @@ -1930,215 +1929,215 @@ var ce = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var Yo; -function oc() { - return Yo || (Yo = 1, process.env.NODE_ENV !== "production" && function() { - var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119; - function w(A) { - return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - A === n || A === p || A === a || A === o || A === h || A === f || typeof A == "object" && A !== null && (A.$$typeof === y || A.$$typeof === b || A.$$typeof === s || A.$$typeof === l || A.$$typeof === u || A.$$typeof === m || A.$$typeof === x || A.$$typeof === I || A.$$typeof === v); - } - function E(A) { - if (typeof A == "object" && A !== null) { - var re = A.$$typeof; - switch (re) { +var ui; +function qc() { + return ui || (ui = 1, process.env.NODE_ENV !== "production" && function() { + var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119; + function x(B) { + return typeof B == "string" || typeof B == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + B === r || B === u || B === i || B === o || B === v || B === b || typeof B == "object" && B !== null && (B.$$typeof === h || B.$$typeof === p || B.$$typeof === a || B.$$typeof === l || B.$$typeof === f || B.$$typeof === g || B.$$typeof === w || B.$$typeof === S || B.$$typeof === d); + } + function E(B) { + if (typeof B == "object" && B !== null) { + var ne = B.$$typeof; + switch (ne) { case t: - var $ = A.type; - switch ($) { + var M = B.type; + switch (M) { case c: - case p: - case n: - case a: + case u: + case r: + case i: case o: - case h: - return $; + case v: + return M; default: - var ie = $ && $.$$typeof; - switch (ie) { + var se = M && M.$$typeof; + switch (se) { case l: - case u: - case y: - case b: - case s: - return ie; + case f: + case h: + case p: + case a: + return se; default: - return re; + return ne; } } - case r: - return re; + case n: + return ne; } } } - var g = c, O = p, S = l, L = s, D = t, V = u, C = n, _ = y, M = b, B = r, z = a, P = o, j = h, te = !1; - function Q(A) { - return te || (te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(A) || E(A) === c; + var y = c, N = u, T = l, _ = a, D = t, j = f, P = r, I = h, A = p, F = n, z = i, R = o, L = v, te = !1; + function Q(B) { + return te || (te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(B) || E(B) === c; } - function k(A) { - return E(A) === p; + function O(B) { + return E(B) === u; } - function R(A) { - return E(A) === l; + function $(B) { + return E(B) === l; } - function F(A) { - return E(A) === s; + function V(B) { + return E(B) === a; } - function q(A) { - return typeof A == "object" && A !== null && A.$$typeof === t; + function q(B) { + return typeof B == "object" && B !== null && B.$$typeof === t; } - function H(A) { - return E(A) === u; + function H(B) { + return E(B) === f; } - function W(A) { - return E(A) === n; + function X(B) { + return E(B) === r; } - function Y(A) { - return E(A) === y; + function Y(B) { + return E(B) === h; } - function K(A) { - return E(A) === b; + function K(B) { + return E(B) === p; } - function X(A) { - return E(A) === r; + function G(B) { + return E(B) === n; } - function Z(A) { - return E(A) === a; + function Z(B) { + return E(B) === i; } - function ee(A) { - return E(A) === o; + function ee(B) { + return E(B) === o; } - function ae(A) { - return E(A) === h; + function ae(B) { + return E(B) === v; } - ce.AsyncMode = g, ce.ConcurrentMode = O, ce.ContextConsumer = S, ce.ContextProvider = L, ce.Element = D, ce.ForwardRef = V, ce.Fragment = C, ce.Lazy = _, ce.Memo = M, ce.Portal = B, ce.Profiler = z, ce.StrictMode = P, ce.Suspense = j, ce.isAsyncMode = Q, ce.isConcurrentMode = k, ce.isContextConsumer = R, ce.isContextProvider = F, ce.isElement = q, ce.isForwardRef = H, ce.isFragment = W, ce.isLazy = Y, ce.isMemo = K, ce.isPortal = X, ce.isProfiler = Z, ce.isStrictMode = ee, ce.isSuspense = ae, ce.isValidElementType = w, ce.typeOf = E; - }()), ce; + pe.AsyncMode = y, pe.ConcurrentMode = N, pe.ContextConsumer = T, pe.ContextProvider = _, pe.Element = D, pe.ForwardRef = j, pe.Fragment = P, pe.Lazy = I, pe.Memo = A, pe.Portal = F, pe.Profiler = z, pe.StrictMode = R, pe.Suspense = L, pe.isAsyncMode = Q, pe.isConcurrentMode = O, pe.isContextConsumer = $, pe.isContextProvider = V, pe.isElement = q, pe.isForwardRef = H, pe.isFragment = X, pe.isLazy = Y, pe.isMemo = K, pe.isPortal = G, pe.isProfiler = Z, pe.isStrictMode = ee, pe.isSuspense = ae, pe.isValidElementType = x, pe.typeOf = E; + }()), pe; } -var Go; -function ii() { - return Go || (Go = 1, process.env.NODE_ENV === "production" ? Pr.exports = nc() : Pr.exports = oc()), Pr.exports; +var di; +function Ra() { + return di || (di = 1, process.env.NODE_ENV === "production" ? jn.exports = Gc() : jn.exports = qc()), jn.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ -var bn, Ko; -function ac() { - if (Ko) - return bn; - Ko = 1; - var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable; - function n(a) { - if (a == null) +var Nr, fi; +function Yc() { + if (fi) + return Nr; + fi = 1; + var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable; + function r(i) { + if (i == null) throw new TypeError("Object.assign cannot be called with null or undefined"); - return Object(a); + return Object(i); } function o() { try { if (!Object.assign) return !1; - var a = new String("abc"); - if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5") + var i = new String("abc"); + if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5") return !1; - for (var s = {}, l = 0; l < 10; l++) - s["_" + String.fromCharCode(l)] = l; - var c = Object.getOwnPropertyNames(s).map(function(u) { - return s[u]; + for (var a = {}, l = 0; l < 10; l++) + a["_" + String.fromCharCode(l)] = l; + var c = Object.getOwnPropertyNames(a).map(function(f) { + return a[f]; }); if (c.join("") !== "0123456789") return !1; - var p = {}; - return "abcdefghijklmnopqrst".split("").forEach(function(u) { - p[u] = u; - }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst"; + var u = {}; + return "abcdefghijklmnopqrst".split("").forEach(function(f) { + u[f] = f; + }), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } - return bn = o() ? Object.assign : function(a, s) { - for (var l, c = n(a), p, u = 1; u < arguments.length; u++) { - l = Object(arguments[u]); - for (var h in l) - t.call(l, h) && (c[h] = l[h]); + return Nr = o() ? Object.assign : function(i, a) { + for (var l, c = r(i), u, f = 1; f < arguments.length; f++) { + l = Object(arguments[f]); + for (var v in l) + t.call(l, v) && (c[v] = l[v]); if (e) { - p = e(l); - for (var f = 0; f < p.length; f++) - r.call(l, p[f]) && (c[p[f]] = l[p[f]]); + u = e(l); + for (var b = 0; b < u.length; b++) + n.call(l, u[b]) && (c[u[b]] = l[u[b]]); } } return c; - }, bn; + }, Nr; } -var vn, Jo; -function to() { - if (Jo) - return vn; - Jo = 1; +var Or, hi; +function bo() { + if (hi) + return Or; + hi = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; - return vn = e, vn; + return Or = e, Or; } -var yn, Zo; -function si() { - return Zo || (Zo = 1, yn = Function.call.bind(Object.prototype.hasOwnProperty)), yn; +var Cr, mi; +function $a() { + return mi || (mi = 1, Cr = Function.call.bind(Object.prototype.hasOwnProperty)), Cr; } -var wn, Qo; -function ic() { - if (Qo) - return wn; - Qo = 1; +var Sr, gi; +function Kc() { + if (gi) + return Sr; + gi = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { - var t = to(), r = {}, n = si(); - e = function(a) { - var s = "Warning: " + a; - typeof console < "u" && console.error(s); + var t = bo(), n = {}, r = $a(); + e = function(i) { + var a = "Warning: " + i; + typeof console < "u" && console.error(a); try { - throw new Error(s); + throw new Error(a); } catch { } }; } - function o(a, s, l, c, p) { + function o(i, a, l, c, u) { if (process.env.NODE_ENV !== "production") { - for (var u in a) - if (n(a, u)) { - var h; + for (var f in i) + if (r(i, f)) { + var v; try { - if (typeof a[u] != "function") { - var f = Error( - (c || "React class") + ": " + l + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." + if (typeof i[f] != "function") { + var b = Error( + (c || "React class") + ": " + l + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); - throw f.name = "Invariant Violation", f; + throw b.name = "Invariant Violation", b; } - h = a[u](s, u, c, l, null, t); - } catch (y) { - h = y; + v = i[f](a, f, c, l, null, t); + } catch (h) { + v = h; } - if (h && !(h instanceof Error) && e( - (c || "React class") + ": type specification of " + l + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." - ), h instanceof Error && !(h.message in r)) { - r[h.message] = !0; - var b = p ? p() : ""; + if (v && !(v instanceof Error) && e( + (c || "React class") + ": type specification of " + l + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." + ), v instanceof Error && !(v.message in n)) { + n[v.message] = !0; + var p = u ? u() : ""; e( - "Failed " + l + " type: " + h.message + (b ?? "") + "Failed " + l + " type: " + v.message + (p ?? "") ); } } } } return o.resetWarningCache = function() { - process.env.NODE_ENV !== "production" && (r = {}); - }, wn = o, wn; -} -var xn, ea; -function sc() { - if (ea) - return xn; - ea = 1; - var e = ii(), t = ac(), r = to(), n = si(), o = ic(), a = function() { + process.env.NODE_ENV !== "production" && (n = {}); + }, Sr = o, Sr; +} +var Pr, bi; +function Jc() { + if (bi) + return Pr; + bi = 1; + var e = Ra(), t = Yc(), n = bo(), r = $a(), o = Kc(), i = function() { }; - process.env.NODE_ENV !== "production" && (a = function(l) { + process.env.NODE_ENV !== "production" && (i = function(l) { var c = "Warning: " + l; typeof console < "u" && console.error(c); try { @@ -2146,265 +2145,265 @@ function sc() { } catch { } }); - function s() { + function a() { return null; } - return xn = function(l, c) { - var p = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator"; - function h(k) { - var R = k && (p && k[p] || k[u]); - if (typeof R == "function") - return R; - } - var f = "<>", b = { - array: x("array"), - bigint: x("bigint"), - bool: x("boolean"), - func: x("function"), - number: x("number"), - object: x("object"), - string: x("string"), - symbol: x("symbol"), - any: I(), - arrayOf: w, + return Pr = function(l, c) { + var u = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator"; + function v(O) { + var $ = O && (u && O[u] || O[f]); + if (typeof $ == "function") + return $; + } + var b = "<>", p = { + array: w("array"), + bigint: w("bigint"), + bool: w("boolean"), + func: w("function"), + number: w("number"), + object: w("object"), + string: w("string"), + symbol: w("symbol"), + any: S(), + arrayOf: x, element: E(), - elementType: g(), - instanceOf: O, - node: V(), - objectOf: L, - oneOf: S, + elementType: y(), + instanceOf: N, + node: j(), + objectOf: _, + oneOf: T, oneOfType: D, - shape: _, - exact: M + shape: I, + exact: A }; - function y(k, R) { - return k === R ? k !== 0 || 1 / k === 1 / R : k !== k && R !== R; + function h(O, $) { + return O === $ ? O !== 0 || 1 / O === 1 / $ : O !== O && $ !== $; } - function v(k, R) { - this.message = k, this.data = R && typeof R == "object" ? R : {}, this.stack = ""; + function d(O, $) { + this.message = O, this.data = $ && typeof $ == "object" ? $ : {}, this.stack = ""; } - v.prototype = Error.prototype; - function m(k) { + d.prototype = Error.prototype; + function g(O) { if (process.env.NODE_ENV !== "production") - var R = {}, F = 0; - function q(W, Y, K, X, Z, ee, ae) { - if (X = X || f, ee = ee || K, ae !== r) { + var $ = {}, V = 0; + function q(X, Y, K, G, Z, ee, ae) { + if (G = G || b, ee = ee || K, ae !== n) { if (c) { - var A = new Error( + var B = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" ); - throw A.name = "Invariant Violation", A; + throw B.name = "Invariant Violation", B; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { - var re = X + ":" + K; - !R[re] && // Avoid spamming the console because they are often not actionable except for lib authors - F < 3 && (a( - "You are manually calling a React.PropTypes validation function for the `" + ee + "` prop on `" + X + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." - ), R[re] = !0, F++); + var ne = G + ":" + K; + !$[ne] && // Avoid spamming the console because they are often not actionable except for lib authors + V < 3 && (i( + "You are manually calling a React.PropTypes validation function for the `" + ee + "` prop on `" + G + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." + ), $[ne] = !0, V++); } } - return Y[K] == null ? W ? Y[K] === null ? new v("The " + Z + " `" + ee + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new v("The " + Z + " `" + ee + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : k(Y, K, X, Z, ee); + return Y[K] == null ? X ? Y[K] === null ? new d("The " + Z + " `" + ee + "` is marked as required " + ("in `" + G + "`, but its value is `null`.")) : new d("The " + Z + " `" + ee + "` is marked as required in " + ("`" + G + "`, but its value is `undefined`.")) : null : O(Y, K, G, Z, ee); } var H = q.bind(null, !1); return H.isRequired = q.bind(null, !0), H; } - function x(k) { - function R(F, q, H, W, Y, K) { - var X = F[q], Z = P(X); - if (Z !== k) { - var ee = j(X); - return new v( - "Invalid " + W + " `" + Y + "` of type " + ("`" + ee + "` supplied to `" + H + "`, expected ") + ("`" + k + "`."), - { expectedType: k } + function w(O) { + function $(V, q, H, X, Y, K) { + var G = V[q], Z = R(G); + if (Z !== O) { + var ee = L(G); + return new d( + "Invalid " + X + " `" + Y + "` of type " + ("`" + ee + "` supplied to `" + H + "`, expected ") + ("`" + O + "`."), + { expectedType: O } ); } return null; } - return m(R); + return g($); } - function I() { - return m(s); + function S() { + return g(a); } - function w(k) { - function R(F, q, H, W, Y) { - if (typeof k != "function") - return new v("Property `" + Y + "` of component `" + H + "` has invalid PropType notation inside arrayOf."); - var K = F[q]; + function x(O) { + function $(V, q, H, X, Y) { + if (typeof O != "function") + return new d("Property `" + Y + "` of component `" + H + "` has invalid PropType notation inside arrayOf."); + var K = V[q]; if (!Array.isArray(K)) { - var X = P(K); - return new v("Invalid " + W + " `" + Y + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an array.")); + var G = R(K); + return new d("Invalid " + X + " `" + Y + "` of type " + ("`" + G + "` supplied to `" + H + "`, expected an array.")); } for (var Z = 0; Z < K.length; Z++) { - var ee = k(K, Z, H, W, Y + "[" + Z + "]", r); + var ee = O(K, Z, H, X, Y + "[" + Z + "]", n); if (ee instanceof Error) return ee; } return null; } - return m(R); + return g($); } function E() { - function k(R, F, q, H, W) { - var Y = R[F]; + function O($, V, q, H, X) { + var Y = $[V]; if (!l(Y)) { - var K = P(Y); - return new v("Invalid " + H + " `" + W + "` of type " + ("`" + K + "` supplied to `" + q + "`, expected a single ReactElement.")); + var K = R(Y); + return new d("Invalid " + H + " `" + X + "` of type " + ("`" + K + "` supplied to `" + q + "`, expected a single ReactElement.")); } return null; } - return m(k); + return g(O); } - function g() { - function k(R, F, q, H, W) { - var Y = R[F]; + function y() { + function O($, V, q, H, X) { + var Y = $[V]; if (!e.isValidElementType(Y)) { - var K = P(Y); - return new v("Invalid " + H + " `" + W + "` of type " + ("`" + K + "` supplied to `" + q + "`, expected a single ReactElement type.")); + var K = R(Y); + return new d("Invalid " + H + " `" + X + "` of type " + ("`" + K + "` supplied to `" + q + "`, expected a single ReactElement type.")); } return null; } - return m(k); + return g(O); } - function O(k) { - function R(F, q, H, W, Y) { - if (!(F[q] instanceof k)) { - var K = k.name || f, X = Q(F[q]); - return new v("Invalid " + W + " `" + Y + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected ") + ("instance of `" + K + "`.")); + function N(O) { + function $(V, q, H, X, Y) { + if (!(V[q] instanceof O)) { + var K = O.name || b, G = Q(V[q]); + return new d("Invalid " + X + " `" + Y + "` of type " + ("`" + G + "` supplied to `" + H + "`, expected ") + ("instance of `" + K + "`.")); } return null; } - return m(R); + return g($); } - function S(k) { - if (!Array.isArray(k)) - return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a( + function T(O) { + if (!Array.isArray(O)) + return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i( "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." - ) : a("Invalid argument supplied to oneOf, expected an array.")), s; - function R(F, q, H, W, Y) { - for (var K = F[q], X = 0; X < k.length; X++) - if (y(K, k[X])) + ) : i("Invalid argument supplied to oneOf, expected an array.")), a; + function $(V, q, H, X, Y) { + for (var K = V[q], G = 0; G < O.length; G++) + if (h(K, O[G])) return null; - var Z = JSON.stringify(k, function(ae, A) { - var re = j(A); - return re === "symbol" ? String(A) : A; + var Z = JSON.stringify(O, function(ae, B) { + var ne = L(B); + return ne === "symbol" ? String(B) : B; }); - return new v("Invalid " + W + " `" + Y + "` of value `" + String(K) + "` " + ("supplied to `" + H + "`, expected one of " + Z + ".")); + return new d("Invalid " + X + " `" + Y + "` of value `" + String(K) + "` " + ("supplied to `" + H + "`, expected one of " + Z + ".")); } - return m(R); - } - function L(k) { - function R(F, q, H, W, Y) { - if (typeof k != "function") - return new v("Property `" + Y + "` of component `" + H + "` has invalid PropType notation inside objectOf."); - var K = F[q], X = P(K); - if (X !== "object") - return new v("Invalid " + W + " `" + Y + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an object.")); + return g($); + } + function _(O) { + function $(V, q, H, X, Y) { + if (typeof O != "function") + return new d("Property `" + Y + "` of component `" + H + "` has invalid PropType notation inside objectOf."); + var K = V[q], G = R(K); + if (G !== "object") + return new d("Invalid " + X + " `" + Y + "` of type " + ("`" + G + "` supplied to `" + H + "`, expected an object.")); for (var Z in K) - if (n(K, Z)) { - var ee = k(K, Z, H, W, Y + "." + Z, r); + if (r(K, Z)) { + var ee = O(K, Z, H, X, Y + "." + Z, n); if (ee instanceof Error) return ee; } return null; } - return m(R); - } - function D(k) { - if (!Array.isArray(k)) - return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s; - for (var R = 0; R < k.length; R++) { - var F = k[R]; - if (typeof F != "function") - return a( - "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(F) + " at index " + R + "." - ), s; + return g($); + } + function D(O) { + if (!Array.isArray(O)) + return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a; + for (var $ = 0; $ < O.length; $++) { + var V = O[$]; + if (typeof V != "function") + return i( + "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(V) + " at index " + $ + "." + ), a; } - function q(H, W, Y, K, X) { - for (var Z = [], ee = 0; ee < k.length; ee++) { - var ae = k[ee], A = ae(H, W, Y, K, X, r); - if (A == null) + function q(H, X, Y, K, G) { + for (var Z = [], ee = 0; ee < O.length; ee++) { + var ae = O[ee], B = ae(H, X, Y, K, G, n); + if (B == null) return null; - A.data && n(A.data, "expectedType") && Z.push(A.data.expectedType); + B.data && r(B.data, "expectedType") && Z.push(B.data.expectedType); } - var re = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : ""; - return new v("Invalid " + K + " `" + X + "` supplied to " + ("`" + Y + "`" + re + ".")); + var ne = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : ""; + return new d("Invalid " + K + " `" + G + "` supplied to " + ("`" + Y + "`" + ne + ".")); } - return m(q); + return g(q); } - function V() { - function k(R, F, q, H, W) { - return B(R[F]) ? null : new v("Invalid " + H + " `" + W + "` supplied to " + ("`" + q + "`, expected a ReactNode.")); + function j() { + function O($, V, q, H, X) { + return F($[V]) ? null : new d("Invalid " + H + " `" + X + "` supplied to " + ("`" + q + "`, expected a ReactNode.")); } - return m(k); + return g(O); } - function C(k, R, F, q, H) { - return new v( - (k || "React class") + ": " + R + " type `" + F + "." + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + H + "`." + function P(O, $, V, q, H) { + return new d( + (O || "React class") + ": " + $ + " type `" + V + "." + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + H + "`." ); } - function _(k) { - function R(F, q, H, W, Y) { - var K = F[q], X = P(K); - if (X !== "object") - return new v("Invalid " + W + " `" + Y + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`.")); - for (var Z in k) { - var ee = k[Z]; + function I(O) { + function $(V, q, H, X, Y) { + var K = V[q], G = R(K); + if (G !== "object") + return new d("Invalid " + X + " `" + Y + "` of type `" + G + "` " + ("supplied to `" + H + "`, expected `object`.")); + for (var Z in O) { + var ee = O[Z]; if (typeof ee != "function") - return C(H, W, Y, Z, j(ee)); - var ae = ee(K, Z, H, W, Y + "." + Z, r); + return P(H, X, Y, Z, L(ee)); + var ae = ee(K, Z, H, X, Y + "." + Z, n); if (ae) return ae; } return null; } - return m(R); - } - function M(k) { - function R(F, q, H, W, Y) { - var K = F[q], X = P(K); - if (X !== "object") - return new v("Invalid " + W + " `" + Y + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`.")); - var Z = t({}, F[q], k); + return g($); + } + function A(O) { + function $(V, q, H, X, Y) { + var K = V[q], G = R(K); + if (G !== "object") + return new d("Invalid " + X + " `" + Y + "` of type `" + G + "` " + ("supplied to `" + H + "`, expected `object`.")); + var Z = t({}, V[q], O); for (var ee in Z) { - var ae = k[ee]; - if (n(k, ee) && typeof ae != "function") - return C(H, W, Y, ee, j(ae)); + var ae = O[ee]; + if (r(O, ee) && typeof ae != "function") + return P(H, X, Y, ee, L(ae)); if (!ae) - return new v( - "Invalid " + W + " `" + Y + "` key `" + ee + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(F[q], null, " ") + ` -Valid keys: ` + JSON.stringify(Object.keys(k), null, " ") + return new d( + "Invalid " + X + " `" + Y + "` key `" + ee + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(V[q], null, " ") + ` +Valid keys: ` + JSON.stringify(Object.keys(O), null, " ") ); - var A = ae(K, ee, H, W, Y + "." + ee, r); - if (A) - return A; + var B = ae(K, ee, H, X, Y + "." + ee, n); + if (B) + return B; } return null; } - return m(R); + return g($); } - function B(k) { - switch (typeof k) { + function F(O) { + switch (typeof O) { case "number": case "string": case "undefined": return !0; case "boolean": - return !k; + return !O; case "object": - if (Array.isArray(k)) - return k.every(B); - if (k === null || l(k)) + if (Array.isArray(O)) + return O.every(F); + if (O === null || l(O)) return !0; - var R = h(k); - if (R) { - var F = R.call(k), q; - if (R !== k.entries) { - for (; !(q = F.next()).done; ) - if (!B(q.value)) + var $ = v(O); + if ($) { + var V = $.call(O), q; + if ($ !== O.entries) { + for (; !(q = V.next()).done; ) + if (!F(q.value)) return !1; } else - for (; !(q = F.next()).done; ) { + for (; !(q = V.next()).done; ) { var H = q.value; - if (H && !B(H[1])) + if (H && !F(H[1])) return !1; } } else @@ -2414,182 +2413,182 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ") return !1; } } - function z(k, R) { - return k === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1; + function z(O, $) { + return O === "symbol" ? !0 : $ ? $["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && $ instanceof Symbol : !1; } - function P(k) { - var R = typeof k; - return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : z(R, k) ? "symbol" : R; + function R(O) { + var $ = typeof O; + return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : z($, O) ? "symbol" : $; } - function j(k) { - if (typeof k > "u" || k === null) - return "" + k; - var R = P(k); - if (R === "object") { - if (k instanceof Date) + function L(O) { + if (typeof O > "u" || O === null) + return "" + O; + var $ = R(O); + if ($ === "object") { + if (O instanceof Date) return "date"; - if (k instanceof RegExp) + if (O instanceof RegExp) return "regexp"; } - return R; + return $; } - function te(k) { - var R = j(k); - switch (R) { + function te(O) { + var $ = L(O); + switch ($) { case "array": case "object": - return "an " + R; + return "an " + $; case "boolean": case "date": case "regexp": - return "a " + R; + return "a " + $; default: - return R; + return $; } } - function Q(k) { - return !k.constructor || !k.constructor.name ? f : k.constructor.name; + function Q(O) { + return !O.constructor || !O.constructor.name ? b : O.constructor.name; } - return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b; - }, xn; + return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p; + }, Pr; } -var En, ta; -function lc() { - if (ta) - return En; - ta = 1; - var e = to(); +var Rr, vi; +function Zc() { + if (vi) + return Rr; + vi = 1; + var e = bo(); function t() { } - function r() { + function n() { } - return r.resetWarningCache = t, En = function() { - function n(s, l, c, p, u, h) { - if (h !== e) { - var f = new Error( + return n.resetWarningCache = t, Rr = function() { + function r(a, l, c, u, f, v) { + if (v !== e) { + var b = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" ); - throw f.name = "Invariant Violation", f; + throw b.name = "Invariant Violation", b; } } - n.isRequired = n; + r.isRequired = r; function o() { - return n; - } - var a = { - array: n, - bigint: n, - bool: n, - func: n, - number: n, - object: n, - string: n, - symbol: n, - any: n, + return r; + } + var i = { + array: r, + bigint: r, + bool: r, + func: r, + number: r, + object: r, + string: r, + symbol: r, + any: r, arrayOf: o, - element: n, - elementType: n, + element: r, + elementType: r, instanceOf: o, - node: n, + node: r, objectOf: o, oneOf: o, oneOfType: o, shape: o, exact: o, - checkPropTypes: r, + checkPropTypes: n, resetWarningCache: t }; - return a.PropTypes = a, a; - }, En; + return i.PropTypes = i, i; + }, Rr; } if (process.env.NODE_ENV !== "production") { - var cc = ii(), pc = !0; - Mn.exports = sc()(cc.isElement, pc); + var Qc = Ra(), ep = !0; + Wr.exports = Jc()(Qc.isElement, ep); } else - Mn.exports = lc()(); -var uc = Mn.exports; -const i = /* @__PURE__ */ tc(uc); -function Wt(e, t) { - return process.env.NODE_ENV === "production" ? () => null : function(...n) { - return e(...n) || t(...n); + Wr.exports = Zc()(); +var tp = Wr.exports; +const s = /* @__PURE__ */ Wc(tp); +function Zt(e, t) { + return process.env.NODE_ENV === "production" ? () => null : function(...r) { + return e(...r) || t(...r); }; } -function yt(e) { +function kt(e) { if (typeof e != "object" || e === null) return !1; const t = Object.getPrototypeOf(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e); } -function li(e) { - if (!yt(e)) +function _a(e) { + if (!kt(e)) return e; const t = {}; - return Object.keys(e).forEach((r) => { - t[r] = li(e[r]); + return Object.keys(e).forEach((n) => { + t[n] = _a(e[n]); }), t; } -function nt(e, t, r = { +function it(e, t, n = { clone: !0 }) { - const n = r.clone ? N({}, e) : e; - return yt(e) && yt(t) && Object.keys(t).forEach((o) => { - o !== "__proto__" && (yt(t[o]) && o in e && yt(e[o]) ? n[o] = nt(e[o], t[o], r) : r.clone ? n[o] = yt(t[o]) ? li(t[o]) : t[o] : n[o] = t[o]); - }), n; + const r = n.clone ? C({}, e) : e; + return kt(e) && kt(t) && Object.keys(t).forEach((o) => { + o !== "__proto__" && (kt(t[o]) && o in e && kt(e[o]) ? r[o] = it(e[o], t[o], n) : n.clone ? r[o] = kt(t[o]) ? _a(t[o]) : t[o] : r[o] = t[o]); + }), r; } -function dc(e) { +function np(e) { const { prototype: t = {} } = e; return !!t.isReactComponent; } -function ci(e, t, r, n, o) { - const a = e[t], s = o || t; - if (a == null || // When server-side rendering React doesn't warn either. +function Ma(e, t, n, r, o) { + const i = e[t], a = o || t; + if (i == null || // When server-side rendering React doesn't warn either. // This is not an accurate check for SSR. // This is only in place for Emotion compat. // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved. typeof window > "u") return null; let l; - const c = a.type; - return typeof c == "function" && !dc(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null; + const c = i.type; + return typeof c == "function" && !np(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null; } -const pi = Wt(i.element, ci); -pi.isRequired = Wt(i.element.isRequired, ci); -const vr = pi; -function fc(e) { +const Ia = Zt(s.element, Ma); +Ia.isRequired = Zt(s.element.isRequired, Ma); +const Cn = Ia; +function rp(e) { const { prototype: t = {} } = e; return !!t.isReactComponent; } -function hc(e, t, r, n, o) { - const a = e[t], s = o || t; - if (a == null || // When server-side rendering React doesn't warn either. +function op(e, t, n, r, o) { + const i = e[t], a = o || t; + if (i == null || // When server-side rendering React doesn't warn either. // This is not an accurate check for SSR. // This is only in place for emotion compat. // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved. typeof window > "u") return null; let l; - return typeof a == "function" && !fc(a) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null; + return typeof i == "function" && !rp(i) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null; } -const mc = Wt(i.elementType, hc), gc = "exact-prop: ​"; -function ui(e) { - return process.env.NODE_ENV === "production" ? e : N({}, e, { - [gc]: (t) => { - const r = Object.keys(t).filter((n) => !e.hasOwnProperty(n)); - return r.length > 0 ? new Error(`The following props are not supported: ${r.map((n) => `\`${n}\``).join(", ")}. Please remove them.`) : null; +const ip = Zt(s.elementType, op), ap = "exact-prop: ​"; +function Aa(e) { + return process.env.NODE_ENV === "production" ? e : C({}, e, { + [ap]: (t) => { + const n = Object.keys(t).filter((r) => !e.hasOwnProperty(r)); + return n.length > 0 ? new Error(`The following props are not supported: ${n.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null; } }); } -function Bt(e) { +function Wt(e) { let t = "https://mui.com/production-error/?code=" + e; - for (let r = 1; r < arguments.length; r += 1) - t += "&args[]=" + encodeURIComponent(arguments[r]); + for (let n = 1; n < arguments.length; n += 1) + t += "&args[]=" + encodeURIComponent(arguments[n]); return "Minified MUI error #" + e + "; visit " + t + " for the full message."; } -var In = { exports: {} }, pe = {}; +var Xr = { exports: {} }, ue = {}; /** * @license React * react-is.production.min.js @@ -2599,76 +2598,76 @@ var In = { exports: {} }, pe = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var ra; -function bc() { - if (ra) - return pe; - ra = 1; - var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), y; - y = Symbol.for("react.module.reference"); - function v(m) { - if (typeof m == "object" && m !== null) { - var x = m.$$typeof; - switch (x) { +var yi; +function sp() { + if (yi) + return ue; + yi = 1; + var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), h; + h = Symbol.for("react.module.reference"); + function d(g) { + if (typeof g == "object" && g !== null) { + var w = g.$$typeof; + switch (w) { case e: - switch (m = m.type, m) { - case r: - case o: + switch (g = g.type, g) { case n: - case p: + case o: + case r: case u: - return m; + case f: + return g; default: - switch (m = m && m.$$typeof, m) { + switch (g = g && g.$$typeof, g) { case l: - case s: - case c: - case f: - case h: case a: - return m; + case c: + case b: + case v: + case i: + return g; default: - return x; + return w; } } case t: - return x; + return w; } } } - return pe.ContextConsumer = s, pe.ContextProvider = a, pe.Element = e, pe.ForwardRef = c, pe.Fragment = r, pe.Lazy = f, pe.Memo = h, pe.Portal = t, pe.Profiler = o, pe.StrictMode = n, pe.Suspense = p, pe.SuspenseList = u, pe.isAsyncMode = function() { + return ue.ContextConsumer = a, ue.ContextProvider = i, ue.Element = e, ue.ForwardRef = c, ue.Fragment = n, ue.Lazy = b, ue.Memo = v, ue.Portal = t, ue.Profiler = o, ue.StrictMode = r, ue.Suspense = u, ue.SuspenseList = f, ue.isAsyncMode = function() { return !1; - }, pe.isConcurrentMode = function() { + }, ue.isConcurrentMode = function() { return !1; - }, pe.isContextConsumer = function(m) { - return v(m) === s; - }, pe.isContextProvider = function(m) { - return v(m) === a; - }, pe.isElement = function(m) { - return typeof m == "object" && m !== null && m.$$typeof === e; - }, pe.isForwardRef = function(m) { - return v(m) === c; - }, pe.isFragment = function(m) { - return v(m) === r; - }, pe.isLazy = function(m) { - return v(m) === f; - }, pe.isMemo = function(m) { - return v(m) === h; - }, pe.isPortal = function(m) { - return v(m) === t; - }, pe.isProfiler = function(m) { - return v(m) === o; - }, pe.isStrictMode = function(m) { - return v(m) === n; - }, pe.isSuspense = function(m) { - return v(m) === p; - }, pe.isSuspenseList = function(m) { - return v(m) === u; - }, pe.isValidElementType = function(m) { - return typeof m == "string" || typeof m == "function" || m === r || m === o || m === n || m === p || m === u || m === b || typeof m == "object" && m !== null && (m.$$typeof === f || m.$$typeof === h || m.$$typeof === a || m.$$typeof === s || m.$$typeof === c || m.$$typeof === y || m.getModuleId !== void 0); - }, pe.typeOf = v, pe; -} -var ue = {}; + }, ue.isContextConsumer = function(g) { + return d(g) === a; + }, ue.isContextProvider = function(g) { + return d(g) === i; + }, ue.isElement = function(g) { + return typeof g == "object" && g !== null && g.$$typeof === e; + }, ue.isForwardRef = function(g) { + return d(g) === c; + }, ue.isFragment = function(g) { + return d(g) === n; + }, ue.isLazy = function(g) { + return d(g) === b; + }, ue.isMemo = function(g) { + return d(g) === v; + }, ue.isPortal = function(g) { + return d(g) === t; + }, ue.isProfiler = function(g) { + return d(g) === o; + }, ue.isStrictMode = function(g) { + return d(g) === r; + }, ue.isSuspense = function(g) { + return d(g) === u; + }, ue.isSuspenseList = function(g) { + return d(g) === f; + }, ue.isValidElementType = function(g) { + return typeof g == "string" || typeof g == "function" || g === n || g === o || g === r || g === u || g === f || g === p || typeof g == "object" && g !== null && (g.$$typeof === b || g.$$typeof === v || g.$$typeof === i || g.$$typeof === a || g.$$typeof === c || g.$$typeof === h || g.getModuleId !== void 0); + }, ue.typeOf = d, ue; +} +var de = {}; /** * @license React * react-is.development.js @@ -2678,293 +2677,293 @@ var ue = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var na; -function vc() { - return na || (na = 1, process.env.NODE_ENV !== "production" && function() { - var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), y = !1, v = !1, m = !1, x = !1, I = !1, w; - w = Symbol.for("react.module.reference"); - function E($) { - return !!(typeof $ == "string" || typeof $ == "function" || $ === r || $ === o || I || $ === n || $ === p || $ === u || x || $ === b || y || v || m || typeof $ == "object" && $ !== null && ($.$$typeof === f || $.$$typeof === h || $.$$typeof === a || $.$$typeof === s || $.$$typeof === c || // This needs to include all possible module reference object +var wi; +function lp() { + return wi || (wi = 1, process.env.NODE_ENV !== "production" && function() { + var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), h = !1, d = !1, g = !1, w = !1, S = !1, x; + x = Symbol.for("react.module.reference"); + function E(M) { + return !!(typeof M == "string" || typeof M == "function" || M === n || M === o || S || M === r || M === u || M === f || w || M === p || h || d || g || typeof M == "object" && M !== null && (M.$$typeof === b || M.$$typeof === v || M.$$typeof === i || M.$$typeof === a || M.$$typeof === c || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. - $.$$typeof === w || $.getModuleId !== void 0)); + M.$$typeof === x || M.getModuleId !== void 0)); } - function g($) { - if (typeof $ == "object" && $ !== null) { - var ie = $.$$typeof; - switch (ie) { + function y(M) { + if (typeof M == "object" && M !== null) { + var se = M.$$typeof; + switch (se) { case e: - var Ee = $.type; - switch (Ee) { - case r: - case o: + var ke = M.type; + switch (ke) { case n: - case p: + case o: + case r: case u: - return Ee; + case f: + return ke; default: - var Se = Ee && Ee.$$typeof; - switch (Se) { + var Pe = ke && ke.$$typeof; + switch (Pe) { case l: - case s: - case c: - case f: - case h: case a: - return Se; + case c: + case b: + case v: + case i: + return Pe; default: - return ie; + return se; } } case t: - return ie; + return se; } } } - var O = s, S = a, L = e, D = c, V = r, C = f, _ = h, M = t, B = o, z = n, P = p, j = u, te = !1, Q = !1; - function k($) { + var N = a, T = i, _ = e, D = c, j = n, P = b, I = v, A = t, F = o, z = r, R = u, L = f, te = !1, Q = !1; + function O(M) { return te || (te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1; } - function R($) { + function $(M) { return Q || (Q = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1; } - function F($) { - return g($) === s; + function V(M) { + return y(M) === a; } - function q($) { - return g($) === a; + function q(M) { + return y(M) === i; } - function H($) { - return typeof $ == "object" && $ !== null && $.$$typeof === e; + function H(M) { + return typeof M == "object" && M !== null && M.$$typeof === e; } - function W($) { - return g($) === c; + function X(M) { + return y(M) === c; } - function Y($) { - return g($) === r; + function Y(M) { + return y(M) === n; } - function K($) { - return g($) === f; + function K(M) { + return y(M) === b; } - function X($) { - return g($) === h; + function G(M) { + return y(M) === v; } - function Z($) { - return g($) === t; + function Z(M) { + return y(M) === t; } - function ee($) { - return g($) === o; + function ee(M) { + return y(M) === o; } - function ae($) { - return g($) === n; + function ae(M) { + return y(M) === r; } - function A($) { - return g($) === p; + function B(M) { + return y(M) === u; } - function re($) { - return g($) === u; + function ne(M) { + return y(M) === f; } - ue.ContextConsumer = O, ue.ContextProvider = S, ue.Element = L, ue.ForwardRef = D, ue.Fragment = V, ue.Lazy = C, ue.Memo = _, ue.Portal = M, ue.Profiler = B, ue.StrictMode = z, ue.Suspense = P, ue.SuspenseList = j, ue.isAsyncMode = k, ue.isConcurrentMode = R, ue.isContextConsumer = F, ue.isContextProvider = q, ue.isElement = H, ue.isForwardRef = W, ue.isFragment = Y, ue.isLazy = K, ue.isMemo = X, ue.isPortal = Z, ue.isProfiler = ee, ue.isStrictMode = ae, ue.isSuspense = A, ue.isSuspenseList = re, ue.isValidElementType = E, ue.typeOf = g; - }()), ue; + de.ContextConsumer = N, de.ContextProvider = T, de.Element = _, de.ForwardRef = D, de.Fragment = j, de.Lazy = P, de.Memo = I, de.Portal = A, de.Profiler = F, de.StrictMode = z, de.Suspense = R, de.SuspenseList = L, de.isAsyncMode = O, de.isConcurrentMode = $, de.isContextConsumer = V, de.isContextProvider = q, de.isElement = H, de.isForwardRef = X, de.isFragment = Y, de.isLazy = K, de.isMemo = G, de.isPortal = Z, de.isProfiler = ee, de.isStrictMode = ae, de.isSuspense = B, de.isSuspenseList = ne, de.isValidElementType = E, de.typeOf = y; + }()), de; } -process.env.NODE_ENV === "production" ? In.exports = bc() : In.exports = vc(); -var zr = In.exports; -const yc = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/; -function wc(e) { - const t = `${e}`.match(yc); +process.env.NODE_ENV === "production" ? Xr.exports = sp() : Xr.exports = lp(); +var Zn = Xr.exports; +const cp = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/; +function pp(e) { + const t = `${e}`.match(cp); return t && t[1] || ""; } -function di(e, t = "") { - return e.displayName || e.name || wc(e) || t; +function Da(e, t = "") { + return e.displayName || e.name || pp(e) || t; } -function oa(e, t, r) { - const n = di(t); - return e.displayName || (n !== "" ? `${r}(${n})` : r); +function xi(e, t, n) { + const r = Da(t); + return e.displayName || (r !== "" ? `${n}(${r})` : n); } -function xc(e) { +function up(e) { if (e != null) { if (typeof e == "string") return e; if (typeof e == "function") - return di(e, "Component"); + return Da(e, "Component"); if (typeof e == "object") switch (e.$$typeof) { - case zr.ForwardRef: - return oa(e, e.render, "ForwardRef"); - case zr.Memo: - return oa(e, e.type, "memo"); + case Zn.ForwardRef: + return xi(e, e.render, "ForwardRef"); + case Zn.Memo: + return xi(e, e.type, "memo"); default: return; } } } -function ot(e, t, r, n, o) { +function at(e, t, n, r, o) { if (process.env.NODE_ENV === "production") return null; - const a = e[t], s = o || t; - return a == null ? null : a && a.nodeType !== 1 ? new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null; + const i = e[t], a = o || t; + return i == null ? null : i && i.nodeType !== 1 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`) : null; } -const Ec = i.oneOfType([i.func, i.object]), ro = Ec; -function Ke(e) { +const dp = s.oneOfType([s.func, s.object]), vo = dp; +function Je(e) { if (typeof e != "string") - throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Bt(7)); + throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Wt(7)); return e.charAt(0).toUpperCase() + e.slice(1); } -function An(...e) { - return e.reduce((t, r) => r == null ? t : function(...o) { - t.apply(this, o), r.apply(this, o); +function Gr(...e) { + return e.reduce((t, n) => n == null ? t : function(...o) { + t.apply(this, o), n.apply(this, o); }, () => { }); } -function fi(e, t = 166) { - let r; - function n(...o) { - const a = () => { +function Ba(e, t = 166) { + let n; + function r(...o) { + const i = () => { e.apply(this, o); }; - clearTimeout(r), r = setTimeout(a, t); + clearTimeout(n), n = setTimeout(i, t); } - return n.clear = () => { - clearTimeout(r); - }, n; + return r.clear = () => { + clearTimeout(n); + }, r; } -function Tc(e, t) { - return process.env.NODE_ENV === "production" ? () => null : (r, n, o, a, s) => { - const l = o || "<>", c = s || n; - return typeof r[n] < "u" ? new Error(`The ${a} \`${c}\` of \`${l}\` is deprecated. ${t}`) : null; +function fp(e, t) { + return process.env.NODE_ENV === "production" ? () => null : (n, r, o, i, a) => { + const l = o || "<>", c = a || r; + return typeof n[r] < "u" ? new Error(`The ${i} \`${c}\` of \`${l}\` is deprecated. ${t}`) : null; }; } -function kc(e, t) { - var r, n; - return /* @__PURE__ */ T.isValidElement(e) && t.indexOf( +function hp(e, t) { + var n, r; + return /* @__PURE__ */ k.isValidElement(e) && t.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45 // eslint-disable-next-line no-underscore-dangle - (r = e.type.muiName) != null ? r : (n = e.type) == null || (n = n._payload) == null || (n = n.value) == null ? void 0 : n.muiName + (n = e.type.muiName) != null ? n : (r = e.type) == null || (r = r._payload) == null || (r = r.value) == null ? void 0 : r.muiName ) !== -1; } -function Oe(e) { +function Ce(e) { return e && e.ownerDocument || document; } -function Lt(e) { - return Oe(e).defaultView || window; +function Xt(e) { + return Ce(e).defaultView || window; } -function Nc(e, t) { +function mp(e, t) { if (process.env.NODE_ENV === "production") return () => null; - const r = t ? N({}, t.propTypes) : null; - return (o) => (a, s, l, c, p, ...u) => { - const h = p || s, f = r == null ? void 0 : r[h]; - if (f) { - const b = f(a, s, l, c, p, ...u); - if (b) - return b; - } - return typeof a[s] < "u" && !a[o] ? new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`) : null; + const n = t ? C({}, t.propTypes) : null; + return (o) => (i, a, l, c, u, ...f) => { + const v = u || a, b = n == null ? void 0 : n[v]; + if (b) { + const p = b(i, a, l, c, u, ...f); + if (p) + return p; + } + return typeof i[a] < "u" && !i[o] ? new Error(`The prop \`${v}\` of \`${e}\` can only be used together with the \`${o}\` prop.`) : null; }; } -function Ur(e, t) { +function Qn(e, t) { typeof e == "function" ? e(t) : e && (e.current = t); } -const Oc = typeof window < "u" ? T.useLayoutEffect : T.useEffect, Tt = Oc; -let aa = 0; -function Cc(e) { - const [t, r] = T.useState(e), n = e || t; - return T.useEffect(() => { - t == null && (aa += 1, r(`mui-${aa}`)); - }, [t]), n; -} -const ia = T["useId".toString()]; -function hi(e) { - if (ia !== void 0) { - const t = ia(); +const gp = typeof window < "u" ? k.useLayoutEffect : k.useEffect, St = gp; +let Ei = 0; +function bp(e) { + const [t, n] = k.useState(e), r = e || t; + return k.useEffect(() => { + t == null && (Ei += 1, n(`mui-${Ei}`)); + }, [t]), r; +} +const ki = k["useId".toString()]; +function ja(e) { + if (ki !== void 0) { + const t = ki(); return e ?? t; } - return Cc(e); + return bp(e); } -function Sc(e, t, r, n, o) { +function vp(e, t, n, r, o) { if (process.env.NODE_ENV === "production") return null; - const a = o || t; - return typeof e[t] < "u" ? new Error(`The prop \`${a}\` is not supported. Please remove it.`) : null; + const i = o || t; + return typeof e[t] < "u" ? new Error(`The prop \`${i}\` is not supported. Please remove it.`) : null; } -function mi({ +function La({ controlled: e, default: t, - name: r, - state: n = "value" + name: n, + state: r = "value" }) { const { current: o - } = T.useRef(e !== void 0), [a, s] = T.useState(t), l = o ? e : a; + } = k.useRef(e !== void 0), [i, a] = k.useState(t), l = o ? e : i; if (process.env.NODE_ENV !== "production") { - T.useEffect(() => { - o !== (e !== void 0) && console.error([`MUI: A component is changing the ${o ? "" : "un"}controlled ${n} state of ${r} to be ${o ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(` + k.useEffect(() => { + o !== (e !== void 0) && console.error([`MUI: A component is changing the ${o ? "" : "un"}controlled ${r} state of ${n} to be ${o ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(` `)); - }, [n, r, e]); + }, [r, n, e]); const { - current: p - } = T.useRef(t); - T.useEffect(() => { - !o && p !== t && console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(` + current: u + } = k.useRef(t); + k.useEffect(() => { + !o && u !== t && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(` `)); }, [JSON.stringify(t)]); } - const c = T.useCallback((p) => { - o || s(p); + const c = k.useCallback((u) => { + o || a(u); }, []); return [l, c]; } -function fr(e) { - const t = T.useRef(e); - return Tt(() => { +function En(e) { + const t = k.useRef(e); + return St(() => { t.current = e; - }), T.useRef((...r) => ( + }), k.useRef((...n) => ( // @ts-expect-error hide `this` - (0, t.current)(...r) + (0, t.current)(...n) )).current; } -function Ue(...e) { - return T.useMemo(() => e.every((t) => t == null) ? null : (t) => { - e.forEach((r) => { - Ur(r, t); +function He(...e) { + return k.useMemo(() => e.every((t) => t == null) ? null : (t) => { + e.forEach((n) => { + Qn(n, t); }); }, e); } -const sa = {}; -function Pc(e, t) { - const r = T.useRef(sa); - return r.current === sa && (r.current = e(t)), r; +const Ti = {}; +function yp(e, t) { + const n = k.useRef(Ti); + return n.current === Ti && (n.current = e(t)), n; } -const Rc = []; -function $c(e) { - T.useEffect(e, Rc); +const wp = []; +function xp(e) { + k.useEffect(e, wp); } -class yr { +class Sn { constructor() { this.currentId = null, this.clear = () => { this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null); }, this.disposeEffect = () => this.clear; } static create() { - return new yr(); + return new Sn(); } /** * Executes `fn` after `delay`, clearing any previously scheduled call. */ - start(t, r) { + start(t, n) { this.clear(), this.currentId = setTimeout(() => { - this.currentId = null, r(); + this.currentId = null, n(); }, t); } } -function or() { - const e = Pc(yr.create).current; - return $c(e.disposeEffect), e; +function fn() { + const e = yp(Sn.create).current; + return xp(e.disposeEffect), e; } -let Qr = !0, Dn = !1; -const _c = new yr(), Mc = { +let lr = !0, qr = !1; +const Ep = new Sn(), kp = { text: !0, search: !0, url: !0, @@ -2979,26 +2978,26 @@ const _c = new yr(), Mc = { datetime: !0, "datetime-local": !0 }; -function Ic(e) { +function Tp(e) { const { type: t, - tagName: r + tagName: n } = e; - return !!(r === "INPUT" && Mc[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable); + return !!(n === "INPUT" && kp[t] && !e.readOnly || n === "TEXTAREA" && !e.readOnly || e.isContentEditable); } -function Ac(e) { - e.metaKey || e.altKey || e.ctrlKey || (Qr = !0); +function Np(e) { + e.metaKey || e.altKey || e.ctrlKey || (lr = !0); } -function Tn() { - Qr = !1; +function $r() { + lr = !1; } -function Dc() { - this.visibilityState === "hidden" && Dn && (Qr = !0); +function Op() { + this.visibilityState === "hidden" && qr && (lr = !0); } -function jc(e) { - e.addEventListener("keydown", Ac, !0), e.addEventListener("mousedown", Tn, !0), e.addEventListener("pointerdown", Tn, !0), e.addEventListener("touchstart", Tn, !0), e.addEventListener("visibilitychange", Dc, !0); +function Cp(e) { + e.addEventListener("keydown", Np, !0), e.addEventListener("mousedown", $r, !0), e.addEventListener("pointerdown", $r, !0), e.addEventListener("touchstart", $r, !0), e.addEventListener("visibilitychange", Op, !0); } -function Bc(e) { +function Sp(e) { const { target: t } = e; @@ -3006,32 +3005,32 @@ function Bc(e) { return t.matches(":focus-visible"); } catch { } - return Qr || Ic(t); + return lr || Tp(t); } -function gi() { - const e = T.useCallback((o) => { - o != null && jc(o.ownerDocument); - }, []), t = T.useRef(!1); - function r() { - return t.current ? (Dn = !0, _c.start(100, () => { - Dn = !1; +function Fa() { + const e = k.useCallback((o) => { + o != null && Cp(o.ownerDocument); + }, []), t = k.useRef(!1); + function n() { + return t.current ? (qr = !0, Ep.start(100, () => { + qr = !1; }), t.current = !1, !0) : !1; } - function n(o) { - return Bc(o) ? (t.current = !0, !0) : !1; + function r(o) { + return Sp(o) ? (t.current = !0, !0) : !1; } return { isFocusVisibleRef: t, - onFocus: n, - onBlur: r, + onFocus: r, + onBlur: n, ref: e }; } -function bi(e) { +function Va(e) { const t = e.documentElement.clientWidth; return Math.abs(window.innerWidth - t); } -function Lc(e) { +function Pp(e) { const t = typeof e; switch (t) { case "number": @@ -3042,59 +3041,59 @@ function Lc(e) { return t; } } -function Vc(e) { +function Rp(e) { return typeof e == "number" && isFinite(e) && Math.floor(e) === e; } -const Fc = Number.isInteger || Vc; -function vi(e, t, r, n) { +const $p = Number.isInteger || Rp; +function za(e, t, n, r) { const o = e[t]; - if (o == null || !Fc(o)) { - const a = Lc(o); - return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`); + if (o == null || !$p(o)) { + const i = Pp(o); + return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`); } return null; } -function yi(e, t, ...r) { - return e[t] === void 0 ? null : vi(e, t, ...r); +function Ua(e, t, ...n) { + return e[t] === void 0 ? null : za(e, t, ...n); } -function jn() { +function Yr() { return null; } -yi.isRequired = vi; -jn.isRequired = jn; -const wi = process.env.NODE_ENV === "production" ? jn : yi; -function xi(e, t) { - const r = N({}, t); - return Object.keys(e).forEach((n) => { - if (n.toString().match(/^(components|slots)$/)) - r[n] = N({}, e[n], r[n]); - else if (n.toString().match(/^(componentsProps|slotProps)$/)) { - const o = e[n] || {}, a = t[n]; - r[n] = {}, !a || !Object.keys(a) ? r[n] = o : !o || !Object.keys(o) ? r[n] = a : (r[n] = N({}, a), Object.keys(o).forEach((s) => { - r[n][s] = xi(o[s], a[s]); +Ua.isRequired = za; +Yr.isRequired = Yr; +const Ha = process.env.NODE_ENV === "production" ? Yr : Ua; +function Wa(e, t) { + const n = C({}, t); + return Object.keys(e).forEach((r) => { + if (r.toString().match(/^(components|slots)$/)) + n[r] = C({}, e[r], n[r]); + else if (r.toString().match(/^(componentsProps|slotProps)$/)) { + const o = e[r] || {}, i = t[r]; + n[r] = {}, !i || !Object.keys(i) ? n[r] = o : !o || !Object.keys(o) ? n[r] = i : (n[r] = C({}, i), Object.keys(o).forEach((a) => { + n[r][a] = Wa(o[a], i[a]); })); } else - r[n] === void 0 && (r[n] = e[n]); - }), r; + n[r] === void 0 && (n[r] = e[r]); + }), n; } -function st(e, t, r = void 0) { - const n = {}; +function ct(e, t, n = void 0) { + const r = {}; return Object.keys(e).forEach( // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`. // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208 (o) => { - n[o] = e[o].reduce((a, s) => { - if (s) { - const l = t(s); - l !== "" && a.push(l), r && r[s] && a.push(r[s]); + r[o] = e[o].reduce((i, a) => { + if (a) { + const l = t(a); + l !== "" && i.push(l), n && n[a] && i.push(n[a]); } - return a; + return i; }, []).join(" "); } - ), n; + ), r; } -const la = (e) => e, zc = () => { - let e = la; +const Ni = (e) => e, _p = () => { + let e = Ni; return { configure(t) { e = t; @@ -3103,10 +3102,10 @@ const la = (e) => e, zc = () => { return e(t); }, reset() { - e = la; + e = Ni; } }; -}, Uc = zc(), Ei = Uc, Ti = { +}, Mp = _p(), Xa = Mp, Ga = { active: "active", checked: "checked", completed: "completed", @@ -3120,222 +3119,222 @@ const la = (e) => e, zc = () => { required: "required", selected: "selected" }; -function Ze(e, t, r = "Mui") { - const n = Ti[t]; - return n ? `${r}-${n}` : `${Ei.generate(e)}-${t}`; +function Qe(e, t, n = "Mui") { + const r = Ga[t]; + return r ? `${n}-${r}` : `${Xa.generate(e)}-${t}`; } -function ut(e, t, r = "Mui") { - const n = {}; +function mt(e, t, n = "Mui") { + const r = {}; return t.forEach((o) => { - n[o] = Ze(e, o, r); - }), n; + r[o] = Qe(e, o, n); + }), r; } -function Hc(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) { - return Math.max(t, Math.min(e, r)); +function Ip(e, t = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) { + return Math.max(t, Math.min(e, n)); } -function ki(e) { +function qa(e) { return typeof e == "string"; } -function ar(e, t, r) { - return e === void 0 || ki(e) ? t : N({}, t, { - ownerState: N({}, t.ownerState, r) +function hn(e, t, n) { + return e === void 0 || qa(e) ? t : C({}, t, { + ownerState: C({}, t.ownerState, n) }); } -const Wc = { +const Ap = { disableDefaultClasses: !1 -}, Xc = /* @__PURE__ */ T.createContext(Wc); -function qc(e) { +}, Dp = /* @__PURE__ */ k.createContext(Ap); +function Bp(e) { const { disableDefaultClasses: t - } = T.useContext(Xc); - return (r) => t ? "" : e(r); + } = k.useContext(Dp); + return (n) => t ? "" : e(n); } -function Ni(e, t = []) { +function Ya(e, t = []) { if (e === void 0) return {}; - const r = {}; - return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !t.includes(n)).forEach((n) => { - r[n] = e[n]; - }), r; + const n = {}; + return Object.keys(e).filter((r) => r.match(/^on[A-Z]/) && typeof e[r] == "function" && !t.includes(r)).forEach((r) => { + n[r] = e[r]; + }), n; } -function Yc(e, t, r) { - return typeof e == "function" ? e(t, r) : e; +function jp(e, t, n) { + return typeof e == "function" ? e(t, n) : e; } -function ca(e) { +function Oi(e) { if (e === void 0) return {}; const t = {}; - return Object.keys(e).filter((r) => !(r.match(/^on[A-Z]/) && typeof e[r] == "function")).forEach((r) => { - t[r] = e[r]; + return Object.keys(e).filter((n) => !(n.match(/^on[A-Z]/) && typeof e[n] == "function")).forEach((n) => { + t[n] = e[n]; }), t; } -function Gc(e) { +function Lp(e) { const { getSlotProps: t, - additionalProps: r, - externalSlotProps: n, + additionalProps: n, + externalSlotProps: r, externalForwardedProps: o, - className: a + className: i } = e; if (!t) { - const b = Ne(r == null ? void 0 : r.className, a, o == null ? void 0 : o.className, n == null ? void 0 : n.className), y = N({}, r == null ? void 0 : r.style, o == null ? void 0 : o.style, n == null ? void 0 : n.style), v = N({}, r, o, n); - return b.length > 0 && (v.className = b), Object.keys(y).length > 0 && (v.style = y), { - props: v, + const p = Oe(n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className), h = C({}, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), d = C({}, n, o, r); + return p.length > 0 && (d.className = p), Object.keys(h).length > 0 && (d.style = h), { + props: d, internalRef: void 0 }; } - const s = Ni(N({}, o, n)), l = ca(n), c = ca(o), p = t(s), u = Ne(p == null ? void 0 : p.className, r == null ? void 0 : r.className, a, o == null ? void 0 : o.className, n == null ? void 0 : n.className), h = N({}, p == null ? void 0 : p.style, r == null ? void 0 : r.style, o == null ? void 0 : o.style, n == null ? void 0 : n.style), f = N({}, p, r, c, l); - return u.length > 0 && (f.className = u), Object.keys(h).length > 0 && (f.style = h), { - props: f, - internalRef: p.ref + const a = Ya(C({}, o, r)), l = Oi(r), c = Oi(o), u = t(a), f = Oe(u == null ? void 0 : u.className, n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className), v = C({}, u == null ? void 0 : u.style, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), b = C({}, u, n, c, l); + return f.length > 0 && (b.className = f), Object.keys(v).length > 0 && (b.style = v), { + props: b, + internalRef: u.ref }; } -const Kc = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"]; -function kt(e) { +const Fp = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"]; +function Pt(e) { var t; const { - elementType: r, - externalSlotProps: n, + elementType: n, + externalSlotProps: r, ownerState: o, - skipResolvingSlotProps: a = !1 - } = e, s = fe(e, Kc), l = a ? {} : Yc(n, o), { + skipResolvingSlotProps: i = !1 + } = e, a = he(e, Fp), l = i ? {} : jp(r, o), { props: c, - internalRef: p - } = Gc(N({}, s, { + internalRef: u + } = Lp(C({}, a, { externalSlotProps: l - })), u = Ue(p, l == null ? void 0 : l.ref, (t = e.additionalProps) == null ? void 0 : t.ref); - return ar(r, N({}, c, { - ref: u + })), f = He(u, l == null ? void 0 : l.ref, (t = e.additionalProps) == null ? void 0 : t.ref); + return hn(n, C({}, c, { + ref: f }), o); } -const Oi = "base"; -function Jc(e) { - return `${Oi}--${e}`; +const Ka = "base"; +function Vp(e) { + return `${Ka}--${e}`; } -function Zc(e, t) { - return `${Oi}-${e}-${t}`; +function zp(e, t) { + return `${Ka}-${e}-${t}`; } -function Ci(e, t) { - const r = Ti[t]; - return r ? Jc(r) : Zc(e, t); +function Ja(e, t) { + const n = Ga[t]; + return n ? Vp(n) : zp(e, t); } -function Qc(e, t) { - const r = {}; - return t.forEach((n) => { - r[n] = Ci(e, n); - }), r; +function Up(e, t) { + const n = {}; + return t.forEach((r) => { + n[r] = Ja(e, r); + }), n; } -const ep = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(","); -function tp(e) { +const Hp = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(","); +function Wp(e) { const t = parseInt(e.getAttribute("tabindex") || "", 10); return Number.isNaN(t) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : t; } -function rp(e) { +function Xp(e) { if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name) return !1; - const t = (n) => e.ownerDocument.querySelector(`input[type="radio"]${n}`); - let r = t(`[name="${e.name}"]:checked`); - return r || (r = t(`[name="${e.name}"]`)), r !== e; + const t = (r) => e.ownerDocument.querySelector(`input[type="radio"]${r}`); + let n = t(`[name="${e.name}"]:checked`); + return n || (n = t(`[name="${e.name}"]`)), n !== e; } -function np(e) { - return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || rp(e)); +function Gp(e) { + return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || Xp(e)); } -function op(e) { - const t = [], r = []; - return Array.from(e.querySelectorAll(ep)).forEach((n, o) => { - const a = tp(n); - a === -1 || !np(n) || (a === 0 ? t.push(n) : r.push({ +function qp(e) { + const t = [], n = []; + return Array.from(e.querySelectorAll(Hp)).forEach((r, o) => { + const i = Wp(r); + i === -1 || !Gp(r) || (i === 0 ? t.push(r) : n.push({ documentOrder: o, - tabIndex: a, - node: n + tabIndex: i, + node: r })); - }), r.sort((n, o) => n.tabIndex === o.tabIndex ? n.documentOrder - o.documentOrder : n.tabIndex - o.tabIndex).map((n) => n.node).concat(t); + }), n.sort((r, o) => r.tabIndex === o.tabIndex ? r.documentOrder - o.documentOrder : r.tabIndex - o.tabIndex).map((r) => r.node).concat(t); } -function ap() { +function Yp() { return !0; } -function Hr(e) { +function er(e) { const { children: t, - disableAutoFocus: r = !1, - disableEnforceFocus: n = !1, + disableAutoFocus: n = !1, + disableEnforceFocus: r = !1, disableRestoreFocus: o = !1, - getTabbable: a = op, - isEnabled: s = ap, + getTabbable: i = qp, + isEnabled: a = Yp, open: l - } = e, c = T.useRef(!1), p = T.useRef(null), u = T.useRef(null), h = T.useRef(null), f = T.useRef(null), b = T.useRef(!1), y = T.useRef(null), v = Ue(t.ref, y), m = T.useRef(null); - T.useEffect(() => { - !l || !y.current || (b.current = !r); - }, [r, l]), T.useEffect(() => { - if (!l || !y.current) + } = e, c = k.useRef(!1), u = k.useRef(null), f = k.useRef(null), v = k.useRef(null), b = k.useRef(null), p = k.useRef(!1), h = k.useRef(null), d = He(t.ref, h), g = k.useRef(null); + k.useEffect(() => { + !l || !h.current || (p.current = !n); + }, [n, l]), k.useEffect(() => { + if (!l || !h.current) return; - const w = Oe(y.current); - return y.current.contains(w.activeElement) || (y.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(` -`)), y.current.setAttribute("tabIndex", "-1")), b.current && y.current.focus()), () => { - o || (h.current && h.current.focus && (c.current = !0, h.current.focus()), h.current = null); + const x = Ce(h.current); + return h.current.contains(x.activeElement) || (h.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(` +`)), h.current.setAttribute("tabIndex", "-1")), p.current && h.current.focus()), () => { + o || (v.current && v.current.focus && (c.current = !0, v.current.focus()), v.current = null); }; - }, [l]), T.useEffect(() => { - if (!l || !y.current) + }, [l]), k.useEffect(() => { + if (!l || !h.current) return; - const w = Oe(y.current), E = (S) => { - m.current = S, !(n || !s() || S.key !== "Tab") && w.activeElement === y.current && S.shiftKey && (c.current = !0, u.current && u.current.focus()); - }, g = () => { - const S = y.current; - if (S === null) + const x = Ce(h.current), E = (T) => { + g.current = T, !(r || !a() || T.key !== "Tab") && x.activeElement === h.current && T.shiftKey && (c.current = !0, f.current && f.current.focus()); + }, y = () => { + const T = h.current; + if (T === null) return; - if (!w.hasFocus() || !s() || c.current) { + if (!x.hasFocus() || !a() || c.current) { c.current = !1; return; } - if (S.contains(w.activeElement) || n && w.activeElement !== p.current && w.activeElement !== u.current) + if (T.contains(x.activeElement) || r && x.activeElement !== u.current && x.activeElement !== f.current) return; - if (w.activeElement !== f.current) - f.current = null; - else if (f.current !== null) + if (x.activeElement !== b.current) + b.current = null; + else if (b.current !== null) return; - if (!b.current) + if (!p.current) return; - let L = []; - if ((w.activeElement === p.current || w.activeElement === u.current) && (L = a(y.current)), L.length > 0) { - var D, V; - const C = !!((D = m.current) != null && D.shiftKey && ((V = m.current) == null ? void 0 : V.key) === "Tab"), _ = L[0], M = L[L.length - 1]; - typeof _ != "string" && typeof M != "string" && (C ? M.focus() : _.focus()); + let _ = []; + if ((x.activeElement === u.current || x.activeElement === f.current) && (_ = i(h.current)), _.length > 0) { + var D, j; + const P = !!((D = g.current) != null && D.shiftKey && ((j = g.current) == null ? void 0 : j.key) === "Tab"), I = _[0], A = _[_.length - 1]; + typeof I != "string" && typeof A != "string" && (P ? A.focus() : I.focus()); } else - S.focus(); + T.focus(); }; - w.addEventListener("focusin", g), w.addEventListener("keydown", E, !0); - const O = setInterval(() => { - w.activeElement && w.activeElement.tagName === "BODY" && g(); + x.addEventListener("focusin", y), x.addEventListener("keydown", E, !0); + const N = setInterval(() => { + x.activeElement && x.activeElement.tagName === "BODY" && y(); }, 50); return () => { - clearInterval(O), w.removeEventListener("focusin", g), w.removeEventListener("keydown", E, !0); + clearInterval(N), x.removeEventListener("focusin", y), x.removeEventListener("keydown", E, !0); }; - }, [r, n, o, s, l, a]); - const x = (w) => { - h.current === null && (h.current = w.relatedTarget), b.current = !0, f.current = w.target; + }, [n, r, o, a, l, i]); + const w = (x) => { + v.current === null && (v.current = x.relatedTarget), p.current = !0, b.current = x.target; const E = t.props.onFocus; - E && E(w); - }, I = (w) => { - h.current === null && (h.current = w.relatedTarget), b.current = !0; + E && E(x); + }, S = (x) => { + v.current === null && (v.current = x.relatedTarget), p.current = !0; }; - return /* @__PURE__ */ U(T.Fragment, { - children: [/* @__PURE__ */ d("div", { + return /* @__PURE__ */ U(k.Fragment, { + children: [/* @__PURE__ */ m("div", { tabIndex: l ? 0 : -1, - onFocus: I, - ref: p, + onFocus: S, + ref: u, "data-testid": "sentinelStart" - }), /* @__PURE__ */ T.cloneElement(t, { - ref: v, - onFocus: x - }), /* @__PURE__ */ d("div", { + }), /* @__PURE__ */ k.cloneElement(t, { + ref: d, + onFocus: w + }), /* @__PURE__ */ m("div", { tabIndex: l ? 0 : -1, - onFocus: I, - ref: u, + onFocus: S, + ref: f, "data-testid": "sentinelEnd" })] }); } -process.env.NODE_ENV !== "production" && (Hr.propTypes = { +process.env.NODE_ENV !== "production" && (er.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ @@ -3343,7 +3342,7 @@ process.env.NODE_ENV !== "production" && (Hr.propTypes = { /** * A single child content element. */ - children: vr, + children: Cn, /** * If `true`, the focus trap will not automatically shift focus to itself when it opens, and * replace it to the last focused element when it closes. @@ -3353,7 +3352,7 @@ process.env.NODE_ENV !== "production" && (Hr.propTypes = { * accessible to assistive technologies, like screen readers. * @default false */ - disableAutoFocus: i.bool, + disableAutoFocus: s.bool, /** * If `true`, the focus trap will not prevent focus from leaving the focus trap while open. * @@ -3361,19 +3360,19 @@ process.env.NODE_ENV !== "production" && (Hr.propTypes = { * accessible to assistive technologies, like screen readers. * @default false */ - disableEnforceFocus: i.bool, + disableEnforceFocus: s.bool, /** * If `true`, the focus trap will not restore focus to previously focused element once * focus trap is hidden or unmounted. * @default false */ - disableRestoreFocus: i.bool, + disableRestoreFocus: s.bool, /** * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root. * For instance, you can provide the "tabbable" npm dependency. * @param {HTMLElement} root */ - getTabbable: i.func, + getTabbable: s.func, /** * This prop extends the `open` prop. * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop. @@ -3383,45 +3382,45 @@ process.env.NODE_ENV !== "production" && (Hr.propTypes = { * return true; * } */ - isEnabled: i.func, + isEnabled: s.func, /** * If `true`, focus is locked. */ - open: i.bool.isRequired + open: s.bool.isRequired }); -process.env.NODE_ENV !== "production" && (Hr["propTypes"] = ui(Hr.propTypes)); -function ip(e) { +process.env.NODE_ENV !== "production" && (er["propTypes"] = Aa(er.propTypes)); +function Kp(e) { return typeof e == "function" ? e() : e; } -const hr = /* @__PURE__ */ T.forwardRef(function(t, r) { +const kn = /* @__PURE__ */ k.forwardRef(function(t, n) { const { - children: n, + children: r, container: o, - disablePortal: a = !1 - } = t, [s, l] = T.useState(null), c = Ue(/* @__PURE__ */ T.isValidElement(n) ? n.ref : null, r); - if (Tt(() => { - a || l(ip(o) || document.body); - }, [o, a]), Tt(() => { - if (s && !a) - return Ur(r, s), () => { - Ur(r, null); + disablePortal: i = !1 + } = t, [a, l] = k.useState(null), c = He(/* @__PURE__ */ k.isValidElement(r) ? r.ref : null, n); + if (St(() => { + i || l(Kp(o) || document.body); + }, [o, i]), St(() => { + if (a && !i) + return Qn(n, a), () => { + Qn(n, null); }; - }, [r, s, a]), a) { - if (/* @__PURE__ */ T.isValidElement(n)) { - const p = { + }, [n, a, i]), i) { + if (/* @__PURE__ */ k.isValidElement(r)) { + const u = { ref: c }; - return /* @__PURE__ */ T.cloneElement(n, p); + return /* @__PURE__ */ k.cloneElement(r, u); } - return /* @__PURE__ */ d(T.Fragment, { - children: n + return /* @__PURE__ */ m(k.Fragment, { + children: r }); } - return /* @__PURE__ */ d(T.Fragment, { - children: s && /* @__PURE__ */ gl.createPortal(n, s) + return /* @__PURE__ */ m(k.Fragment, { + children: a && /* @__PURE__ */ ac.createPortal(r, a) }); }); -process.env.NODE_ENV !== "production" && (hr.propTypes = { +process.env.NODE_ENV !== "production" && (kn.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ @@ -3429,7 +3428,7 @@ process.env.NODE_ENV !== "production" && (hr.propTypes = { /** * The children to render into the `container`. */ - children: i.node, + children: s.node, /** * An HTML element or function that returns one. * The `container` will have the portal children appended to it. @@ -3440,232 +3439,232 @@ process.env.NODE_ENV !== "production" && (hr.propTypes = { * By default, it uses the body of the top-level document object, * so it's simply `document.body` most of the time. */ - container: i.oneOfType([ot, i.func]), + container: s.oneOfType([at, s.func]), /** * The `children` will be under the DOM hierarchy of the parent component. * @default false */ - disablePortal: i.bool + disablePortal: s.bool }); -process.env.NODE_ENV !== "production" && (hr["propTypes"] = ui(hr.propTypes)); -function sp(e) { - const t = Oe(e); - return t.body === e ? Lt(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight; +process.env.NODE_ENV !== "production" && (kn["propTypes"] = Aa(kn.propTypes)); +function Jp(e) { + const t = Ce(e); + return t.body === e ? Xt(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight; } -function lr(e, t) { +function bn(e, t) { t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden"); } -function pa(e) { - return parseInt(Lt(e).getComputedStyle(e).paddingRight, 10) || 0; -} -function lp(e) { - const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(e.tagName) !== -1, n = e.tagName === "INPUT" && e.getAttribute("type") === "hidden"; - return r || n; +function Ci(e) { + return parseInt(Xt(e).getComputedStyle(e).paddingRight, 10) || 0; } -function ua(e, t, r, n, o) { - const a = [t, r, ...n]; - [].forEach.call(e.children, (s) => { - const l = a.indexOf(s) === -1, c = !lp(s); - l && c && lr(s, o); +function Zp(e) { + const n = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(e.tagName) !== -1, r = e.tagName === "INPUT" && e.getAttribute("type") === "hidden"; + return n || r; +} +function Si(e, t, n, r, o) { + const i = [t, n, ...r]; + [].forEach.call(e.children, (a) => { + const l = i.indexOf(a) === -1, c = !Zp(a); + l && c && bn(a, o); }); } -function kn(e, t) { - let r = -1; - return e.some((n, o) => t(n) ? (r = o, !0) : !1), r; +function _r(e, t) { + let n = -1; + return e.some((r, o) => t(r) ? (n = o, !0) : !1), n; } -function cp(e, t) { - const r = [], n = e.container; +function Qp(e, t) { + const n = [], r = e.container; if (!t.disableScrollLock) { - if (sp(n)) { - const s = bi(Oe(n)); - r.push({ - value: n.style.paddingRight, + if (Jp(r)) { + const a = Va(Ce(r)); + n.push({ + value: r.style.paddingRight, property: "padding-right", - el: n - }), n.style.paddingRight = `${pa(n) + s}px`; - const l = Oe(n).querySelectorAll(".mui-fixed"); + el: r + }), r.style.paddingRight = `${Ci(r) + a}px`; + const l = Ce(r).querySelectorAll(".mui-fixed"); [].forEach.call(l, (c) => { - r.push({ + n.push({ value: c.style.paddingRight, property: "padding-right", el: c - }), c.style.paddingRight = `${pa(c) + s}px`; + }), c.style.paddingRight = `${Ci(c) + a}px`; }); } - let a; - if (n.parentNode instanceof DocumentFragment) - a = Oe(n).body; + let i; + if (r.parentNode instanceof DocumentFragment) + i = Ce(r).body; else { - const s = n.parentElement, l = Lt(n); - a = (s == null ? void 0 : s.nodeName) === "HTML" && l.getComputedStyle(s).overflowY === "scroll" ? s : n; + const a = r.parentElement, l = Xt(r); + i = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : r; } - r.push({ - value: a.style.overflow, + n.push({ + value: i.style.overflow, property: "overflow", - el: a + el: i }, { - value: a.style.overflowX, + value: i.style.overflowX, property: "overflow-x", - el: a + el: i }, { - value: a.style.overflowY, + value: i.style.overflowY, property: "overflow-y", - el: a - }), a.style.overflow = "hidden"; + el: i + }), i.style.overflow = "hidden"; } return () => { - r.forEach(({ - value: a, - el: s, + n.forEach(({ + value: i, + el: a, property: l }) => { - a ? s.style.setProperty(l, a) : s.style.removeProperty(l); + i ? a.style.setProperty(l, i) : a.style.removeProperty(l); }); }; } -function pp(e) { +function eu(e) { const t = []; - return [].forEach.call(e.children, (r) => { - r.getAttribute("aria-hidden") === "true" && t.push(r); + return [].forEach.call(e.children, (n) => { + n.getAttribute("aria-hidden") === "true" && t.push(n); }), t; } -class up { +class tu { constructor() { this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = []; } - add(t, r) { - let n = this.modals.indexOf(t); - if (n !== -1) - return n; - n = this.modals.length, this.modals.push(t), t.modalRef && lr(t.modalRef, !1); - const o = pp(r); - ua(r, t.mount, t.modalRef, o, !0); - const a = kn(this.containers, (s) => s.container === r); - return a !== -1 ? (this.containers[a].modals.push(t), n) : (this.containers.push({ + add(t, n) { + let r = this.modals.indexOf(t); + if (r !== -1) + return r; + r = this.modals.length, this.modals.push(t), t.modalRef && bn(t.modalRef, !1); + const o = eu(n); + Si(n, t.mount, t.modalRef, o, !0); + const i = _r(this.containers, (a) => a.container === n); + return i !== -1 ? (this.containers[i].modals.push(t), r) : (this.containers.push({ modals: [t], - container: r, + container: n, restore: null, hiddenSiblings: o - }), n); - } - mount(t, r) { - const n = kn(this.containers, (a) => a.modals.indexOf(t) !== -1), o = this.containers[n]; - o.restore || (o.restore = cp(o, r)); - } - remove(t, r = !0) { - const n = this.modals.indexOf(t); - if (n === -1) - return n; - const o = kn(this.containers, (s) => s.modals.indexOf(t) !== -1), a = this.containers[o]; - if (a.modals.splice(a.modals.indexOf(t), 1), this.modals.splice(n, 1), a.modals.length === 0) - a.restore && a.restore(), t.modalRef && lr(t.modalRef, r), ua(a.container, t.mount, t.modalRef, a.hiddenSiblings, !1), this.containers.splice(o, 1); + }), r); + } + mount(t, n) { + const r = _r(this.containers, (i) => i.modals.indexOf(t) !== -1), o = this.containers[r]; + o.restore || (o.restore = Qp(o, n)); + } + remove(t, n = !0) { + const r = this.modals.indexOf(t); + if (r === -1) + return r; + const o = _r(this.containers, (a) => a.modals.indexOf(t) !== -1), i = this.containers[o]; + if (i.modals.splice(i.modals.indexOf(t), 1), this.modals.splice(r, 1), i.modals.length === 0) + i.restore && i.restore(), t.modalRef && bn(t.modalRef, n), Si(i.container, t.mount, t.modalRef, i.hiddenSiblings, !1), this.containers.splice(o, 1); else { - const s = a.modals[a.modals.length - 1]; - s.modalRef && lr(s.modalRef, !1); + const a = i.modals[i.modals.length - 1]; + a.modalRef && bn(a.modalRef, !1); } - return n; + return r; } isTopModal(t) { return this.modals.length > 0 && this.modals[this.modals.length - 1] === t; } } -function dp(e) { +function nu(e) { return typeof e == "function" ? e() : e; } -function fp(e) { +function ru(e) { return e ? e.props.hasOwnProperty("in") : !1; } -const hp = new up(); -function mp(e) { +const ou = new tu(); +function iu(e) { const { container: t, - disableEscapeKeyDown: r = !1, - disableScrollLock: n = !1, + disableEscapeKeyDown: n = !1, + disableScrollLock: r = !1, // @ts-ignore internal logic - Base UI supports the manager as a prop too - manager: o = hp, - closeAfterTransition: a = !1, - onTransitionEnter: s, + manager: o = ou, + closeAfterTransition: i = !1, + onTransitionEnter: a, onTransitionExited: l, children: c, - onClose: p, - open: u, - rootRef: h - } = e, f = T.useRef({}), b = T.useRef(null), y = T.useRef(null), v = Ue(y, h), [m, x] = T.useState(!u), I = fp(c); - let w = !0; - (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (w = !1); - const E = () => Oe(b.current), g = () => (f.current.modalRef = y.current, f.current.mount = b.current, f.current), O = () => { - o.mount(g(), { - disableScrollLock: n - }), y.current && (y.current.scrollTop = 0); - }, S = fr(() => { - const P = dp(t) || E().body; - o.add(g(), P), y.current && O(); - }), L = T.useCallback(() => o.isTopModal(g()), [o]), D = fr((P) => { - b.current = P, P && (u && L() ? O() : y.current && lr(y.current, w)); - }), V = T.useCallback(() => { - o.remove(g(), w); - }, [w, o]); - T.useEffect(() => () => { - V(); - }, [V]), T.useEffect(() => { - u ? S() : (!I || !a) && V(); - }, [u, V, I, a, S]); - const C = (P) => (j) => { + onClose: u, + open: f, + rootRef: v + } = e, b = k.useRef({}), p = k.useRef(null), h = k.useRef(null), d = He(h, v), [g, w] = k.useState(!f), S = ru(c); + let x = !0; + (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (x = !1); + const E = () => Ce(p.current), y = () => (b.current.modalRef = h.current, b.current.mount = p.current, b.current), N = () => { + o.mount(y(), { + disableScrollLock: r + }), h.current && (h.current.scrollTop = 0); + }, T = En(() => { + const R = nu(t) || E().body; + o.add(y(), R), h.current && N(); + }), _ = k.useCallback(() => o.isTopModal(y()), [o]), D = En((R) => { + p.current = R, R && (f && _() ? N() : h.current && bn(h.current, x)); + }), j = k.useCallback(() => { + o.remove(y(), x); + }, [x, o]); + k.useEffect(() => () => { + j(); + }, [j]), k.useEffect(() => { + f ? T() : (!S || !i) && j(); + }, [f, j, S, i, T]); + const P = (R) => (L) => { var te; - (te = P.onKeyDown) == null || te.call(P, j), !(j.key !== "Escape" || j.which === 229 || // Wait until IME is settled. - !L()) && (r || (j.stopPropagation(), p && p(j, "escapeKeyDown"))); - }, _ = (P) => (j) => { + (te = R.onKeyDown) == null || te.call(R, L), !(L.key !== "Escape" || L.which === 229 || // Wait until IME is settled. + !_()) && (n || (L.stopPropagation(), u && u(L, "escapeKeyDown"))); + }, I = (R) => (L) => { var te; - (te = P.onClick) == null || te.call(P, j), j.target === j.currentTarget && p && p(j, "backdropClick"); + (te = R.onClick) == null || te.call(R, L), L.target === L.currentTarget && u && u(L, "backdropClick"); }; return { - getRootProps: (P = {}) => { - const j = Ni(e); - delete j.onTransitionEnter, delete j.onTransitionExited; - const te = N({}, j, P); - return N({ + getRootProps: (R = {}) => { + const L = Ya(e); + delete L.onTransitionEnter, delete L.onTransitionExited; + const te = C({}, L, R); + return C({ role: "presentation" }, te, { - onKeyDown: C(te), - ref: v + onKeyDown: P(te), + ref: d }); }, - getBackdropProps: (P = {}) => { - const j = P; - return N({ + getBackdropProps: (R = {}) => { + const L = R; + return C({ "aria-hidden": !0 - }, j, { - onClick: _(j), - open: u + }, L, { + onClick: I(L), + open: f }); }, getTransitionProps: () => { - const P = () => { - x(!1), s && s(); - }, j = () => { - x(!0), l && l(), a && V(); + const R = () => { + w(!1), a && a(); + }, L = () => { + w(!0), l && l(), i && j(); }; return { - onEnter: An(P, c == null ? void 0 : c.props.onEnter), - onExited: An(j, c == null ? void 0 : c.props.onExited) + onEnter: Gr(R, c == null ? void 0 : c.props.onEnter), + onExited: Gr(L, c == null ? void 0 : c.props.onExited) }; }, - rootRef: v, + rootRef: d, portalRef: D, - isTopModal: L, - exited: m, - hasTransition: I + isTopModal: _, + exited: g, + hasTransition: S }; } -var _e = "top", He = "bottom", We = "right", Me = "left", no = "auto", wr = [_e, He, We, Me], Vt = "start", mr = "end", gp = "clippingParents", Si = "viewport", Qt = "popper", bp = "reference", da = /* @__PURE__ */ wr.reduce(function(e, t) { - return e.concat([t + "-" + Vt, t + "-" + mr]); -}, []), Pi = /* @__PURE__ */ [].concat(wr, [no]).reduce(function(e, t) { - return e.concat([t, t + "-" + Vt, t + "-" + mr]); -}, []), vp = "beforeRead", yp = "read", wp = "afterRead", xp = "beforeMain", Ep = "main", Tp = "afterMain", kp = "beforeWrite", Np = "write", Op = "afterWrite", Cp = [vp, yp, wp, xp, Ep, Tp, kp, Np, Op]; -function Je(e) { +var Me = "top", We = "bottom", Xe = "right", Ie = "left", yo = "auto", Pn = [Me, We, Xe, Ie], Gt = "start", Tn = "end", au = "clippingParents", Za = "viewport", sn = "popper", su = "reference", Pi = /* @__PURE__ */ Pn.reduce(function(e, t) { + return e.concat([t + "-" + Gt, t + "-" + Tn]); +}, []), Qa = /* @__PURE__ */ [].concat(Pn, [yo]).reduce(function(e, t) { + return e.concat([t, t + "-" + Gt, t + "-" + Tn]); +}, []), lu = "beforeRead", cu = "read", pu = "afterRead", uu = "beforeMain", du = "main", fu = "afterMain", hu = "beforeWrite", mu = "write", gu = "afterWrite", bu = [lu, cu, pu, uu, du, fu, hu, mu, gu]; +function Ze(e) { return e ? (e.nodeName || "").toLowerCase() : null; } -function Le(e) { +function Fe(e) { if (e == null) return window; if (e.toString() !== "[object Window]") { @@ -3674,32 +3673,32 @@ function Le(e) { } return e; } -function Nt(e) { - var t = Le(e).Element; +function Rt(e) { + var t = Fe(e).Element; return e instanceof t || e instanceof Element; } -function ze(e) { - var t = Le(e).HTMLElement; +function Ue(e) { + var t = Fe(e).HTMLElement; return e instanceof t || e instanceof HTMLElement; } -function oo(e) { +function wo(e) { if (typeof ShadowRoot > "u") return !1; - var t = Le(e).ShadowRoot; + var t = Fe(e).ShadowRoot; return e instanceof t || e instanceof ShadowRoot; } -function Sp(e) { +function vu(e) { var t = e.state; - Object.keys(t.elements).forEach(function(r) { - var n = t.styles[r] || {}, o = t.attributes[r] || {}, a = t.elements[r]; - !ze(a) || !Je(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(s) { - var l = o[s]; - l === !1 ? a.removeAttribute(s) : a.setAttribute(s, l === !0 ? "" : l); + Object.keys(t.elements).forEach(function(n) { + var r = t.styles[n] || {}, o = t.attributes[n] || {}, i = t.elements[n]; + !Ue(i) || !Ze(i) || (Object.assign(i.style, r), Object.keys(o).forEach(function(a) { + var l = o[a]; + l === !1 ? i.removeAttribute(a) : i.setAttribute(a, l === !0 ? "" : l); })); }); } -function Pp(e) { - var t = e.state, r = { +function yu(e) { + var t = e.state, n = { popper: { position: t.options.strategy, left: "0", @@ -3711,137 +3710,137 @@ function Pp(e) { }, reference: {} }; - return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() { - Object.keys(t.elements).forEach(function(n) { - var o = t.elements[n], a = t.attributes[n] || {}, s = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), l = s.reduce(function(c, p) { - return c[p] = "", c; + return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() { + Object.keys(t.elements).forEach(function(r) { + var o = t.elements[r], i = t.attributes[r] || {}, a = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), l = a.reduce(function(c, u) { + return c[u] = "", c; }, {}); - !ze(o) || !Je(o) || (Object.assign(o.style, l), Object.keys(a).forEach(function(c) { + !Ue(o) || !Ze(o) || (Object.assign(o.style, l), Object.keys(i).forEach(function(c) { o.removeAttribute(c); })); }); }; } -const Rp = { +const wu = { name: "applyStyles", enabled: !0, phase: "write", - fn: Sp, - effect: Pp, + fn: vu, + effect: yu, requires: ["computeStyles"] }; -function Ge(e) { +function Ke(e) { return e.split("-")[0]; } -var xt = Math.max, Wr = Math.min, Ft = Math.round; -function Bn() { +var Ot = Math.max, tr = Math.min, qt = Math.round; +function Kr() { var e = navigator.userAgentData; return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) { return t.brand + "/" + t.version; }).join(" ") : navigator.userAgent; } -function Ri() { - return !/^((?!chrome|android).)*safari/i.test(Bn()); +function es() { + return !/^((?!chrome|android).)*safari/i.test(Kr()); } -function zt(e, t, r) { - t === void 0 && (t = !1), r === void 0 && (r = !1); - var n = e.getBoundingClientRect(), o = 1, a = 1; - t && ze(e) && (o = e.offsetWidth > 0 && Ft(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Ft(n.height) / e.offsetHeight || 1); - var s = Nt(e) ? Le(e) : window, l = s.visualViewport, c = !Ri() && r, p = (n.left + (c && l ? l.offsetLeft : 0)) / o, u = (n.top + (c && l ? l.offsetTop : 0)) / a, h = n.width / o, f = n.height / a; +function Yt(e, t, n) { + t === void 0 && (t = !1), n === void 0 && (n = !1); + var r = e.getBoundingClientRect(), o = 1, i = 1; + t && Ue(e) && (o = e.offsetWidth > 0 && qt(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && qt(r.height) / e.offsetHeight || 1); + var a = Rt(e) ? Fe(e) : window, l = a.visualViewport, c = !es() && n, u = (r.left + (c && l ? l.offsetLeft : 0)) / o, f = (r.top + (c && l ? l.offsetTop : 0)) / i, v = r.width / o, b = r.height / i; return { - width: h, - height: f, - top: u, - right: p + h, - bottom: u + f, - left: p, - x: p, - y: u + width: v, + height: b, + top: f, + right: u + v, + bottom: f + b, + left: u, + x: u, + y: f }; } -function ao(e) { - var t = zt(e), r = e.offsetWidth, n = e.offsetHeight; - return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), { +function xo(e) { + var t = Yt(e), n = e.offsetWidth, r = e.offsetHeight; + return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), { x: e.offsetLeft, y: e.offsetTop, - width: r, - height: n + width: n, + height: r }; } -function $i(e, t) { - var r = t.getRootNode && t.getRootNode(); +function ts(e, t) { + var n = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; - if (r && oo(r)) { - var n = t; + if (n && wo(n)) { + var r = t; do { - if (n && e.isSameNode(n)) + if (r && e.isSameNode(r)) return !0; - n = n.parentNode || n.host; - } while (n); + r = r.parentNode || r.host; + } while (r); } return !1; } -function at(e) { - return Le(e).getComputedStyle(e); +function st(e) { + return Fe(e).getComputedStyle(e); } -function $p(e) { - return ["table", "td", "th"].indexOf(Je(e)) >= 0; +function xu(e) { + return ["table", "td", "th"].indexOf(Ze(e)) >= 0; } -function dt(e) { - return ((Nt(e) ? e.ownerDocument : ( +function gt(e) { + return ((Rt(e) ? e.ownerDocument : ( // $FlowFixMe[prop-missing] e.document )) || window.document).documentElement; } -function en(e) { - return Je(e) === "html" ? e : ( +function cr(e) { + return Ze(e) === "html" ? e : ( // this is a quicker (but less type safe) way to save quite some bytes from the bundle // $FlowFixMe[incompatible-return] // $FlowFixMe[prop-missing] e.assignedSlot || // step into the shadow DOM of the parent of a slotted node e.parentNode || // DOM Element detected - (oo(e) ? e.host : null) || // ShadowRoot detected + (wo(e) ? e.host : null) || // ShadowRoot detected // $FlowFixMe[incompatible-call]: HTMLElement is a Node - dt(e) + gt(e) ); } -function fa(e) { - return !ze(e) || // https://github.com/popperjs/popper-core/issues/837 - at(e).position === "fixed" ? null : e.offsetParent; +function Ri(e) { + return !Ue(e) || // https://github.com/popperjs/popper-core/issues/837 + st(e).position === "fixed" ? null : e.offsetParent; } -function _p(e) { - var t = /firefox/i.test(Bn()), r = /Trident/i.test(Bn()); - if (r && ze(e)) { - var n = at(e); - if (n.position === "fixed") +function Eu(e) { + var t = /firefox/i.test(Kr()), n = /Trident/i.test(Kr()); + if (n && Ue(e)) { + var r = st(e); + if (r.position === "fixed") return null; } - var o = en(e); - for (oo(o) && (o = o.host); ze(o) && ["html", "body"].indexOf(Je(o)) < 0; ) { - var a = at(o); - if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none") + var o = cr(e); + for (wo(o) && (o = o.host); Ue(o) && ["html", "body"].indexOf(Ze(o)) < 0; ) { + var i = st(o); + if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none") return o; o = o.parentNode; } return null; } -function xr(e) { - for (var t = Le(e), r = fa(e); r && $p(r) && at(r).position === "static"; ) - r = fa(r); - return r && (Je(r) === "html" || Je(r) === "body" && at(r).position === "static") ? t : r || _p(e) || t; +function Rn(e) { + for (var t = Fe(e), n = Ri(e); n && xu(n) && st(n).position === "static"; ) + n = Ri(n); + return n && (Ze(n) === "html" || Ze(n) === "body" && st(n).position === "static") ? t : n || Eu(e) || t; } -function io(e) { +function Eo(e) { return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"; } -function cr(e, t, r) { - return xt(e, Wr(t, r)); +function vn(e, t, n) { + return Ot(e, tr(t, n)); } -function Mp(e, t, r) { - var n = cr(e, t, r); - return n > r ? r : n; +function ku(e, t, n) { + var r = vn(e, t, n); + return r > n ? n : r; } -function _i() { +function ns() { return { top: 0, right: 0, @@ -3849,114 +3848,114 @@ function _i() { left: 0 }; } -function Mi(e) { - return Object.assign({}, _i(), e); +function rs(e) { + return Object.assign({}, ns(), e); } -function Ii(e, t) { - return t.reduce(function(r, n) { - return r[n] = e, r; +function os(e, t) { + return t.reduce(function(n, r) { + return n[r] = e, n; }, {}); } -var Ip = function(t, r) { - return t = typeof t == "function" ? t(Object.assign({}, r.rects, { - placement: r.placement - })) : t, Mi(typeof t != "number" ? t : Ii(t, wr)); +var Tu = function(t, n) { + return t = typeof t == "function" ? t(Object.assign({}, n.rects, { + placement: n.placement + })) : t, rs(typeof t != "number" ? t : os(t, Pn)); }; -function Ap(e) { - var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, s = r.modifiersData.popperOffsets, l = Ge(r.placement), c = io(l), p = [Me, We].indexOf(l) >= 0, u = p ? "height" : "width"; - if (!(!a || !s)) { - var h = Ip(o.padding, r), f = ao(a), b = c === "y" ? _e : Me, y = c === "y" ? He : We, v = r.rects.reference[u] + r.rects.reference[c] - s[c] - r.rects.popper[u], m = s[c] - r.rects.reference[c], x = xr(a), I = x ? c === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, w = v / 2 - m / 2, E = h[b], g = I - f[u] - h[y], O = I / 2 - f[u] / 2 + w, S = cr(E, O, g), L = c; - r.modifiersData[n] = (t = {}, t[L] = S, t.centerOffset = S - O, t); +function Nu(e) { + var t, n = e.state, r = e.name, o = e.options, i = n.elements.arrow, a = n.modifiersData.popperOffsets, l = Ke(n.placement), c = Eo(l), u = [Ie, Xe].indexOf(l) >= 0, f = u ? "height" : "width"; + if (!(!i || !a)) { + var v = Tu(o.padding, n), b = xo(i), p = c === "y" ? Me : Ie, h = c === "y" ? We : Xe, d = n.rects.reference[f] + n.rects.reference[c] - a[c] - n.rects.popper[f], g = a[c] - n.rects.reference[c], w = Rn(i), S = w ? c === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, x = d / 2 - g / 2, E = v[p], y = S - b[f] - v[h], N = S / 2 - b[f] / 2 + x, T = vn(E, N, y), _ = c; + n.modifiersData[r] = (t = {}, t[_] = T, t.centerOffset = T - N, t); } } -function Dp(e) { - var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n; - o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || $i(t.elements.popper, o) && (t.elements.arrow = o)); +function Ou(e) { + var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r; + o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || ts(t.elements.popper, o) && (t.elements.arrow = o)); } -const jp = { +const Cu = { name: "arrow", enabled: !0, phase: "main", - fn: Ap, - effect: Dp, + fn: Nu, + effect: Ou, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; -function Ut(e) { +function Kt(e) { return e.split("-")[1]; } -var Bp = { +var Su = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; -function Lp(e, t) { - var r = e.x, n = e.y, o = t.devicePixelRatio || 1; +function Pu(e, t) { + var n = e.x, r = e.y, o = t.devicePixelRatio || 1; return { - x: Ft(r * o) / o || 0, - y: Ft(n * o) / o || 0 + x: qt(n * o) / o || 0, + y: qt(r * o) / o || 0 }; } -function ha(e) { - var t, r = e.popper, n = e.popperRect, o = e.placement, a = e.variation, s = e.offsets, l = e.position, c = e.gpuAcceleration, p = e.adaptive, u = e.roundOffsets, h = e.isFixed, f = s.x, b = f === void 0 ? 0 : f, y = s.y, v = y === void 0 ? 0 : y, m = typeof u == "function" ? u({ - x: b, - y: v +function $i(e) { + var t, n = e.popper, r = e.popperRect, o = e.placement, i = e.variation, a = e.offsets, l = e.position, c = e.gpuAcceleration, u = e.adaptive, f = e.roundOffsets, v = e.isFixed, b = a.x, p = b === void 0 ? 0 : b, h = a.y, d = h === void 0 ? 0 : h, g = typeof f == "function" ? f({ + x: p, + y: d }) : { - x: b, - y: v + x: p, + y: d }; - b = m.x, v = m.y; - var x = s.hasOwnProperty("x"), I = s.hasOwnProperty("y"), w = Me, E = _e, g = window; - if (p) { - var O = xr(r), S = "clientHeight", L = "clientWidth"; - if (O === Le(r) && (O = dt(r), at(O).position !== "static" && l === "absolute" && (S = "scrollHeight", L = "scrollWidth")), O = O, o === _e || (o === Me || o === We) && a === mr) { - E = He; - var D = h && O === g && g.visualViewport ? g.visualViewport.height : ( + p = g.x, d = g.y; + var w = a.hasOwnProperty("x"), S = a.hasOwnProperty("y"), x = Ie, E = Me, y = window; + if (u) { + var N = Rn(n), T = "clientHeight", _ = "clientWidth"; + if (N === Fe(n) && (N = gt(n), st(N).position !== "static" && l === "absolute" && (T = "scrollHeight", _ = "scrollWidth")), N = N, o === Me || (o === Ie || o === Xe) && i === Tn) { + E = We; + var D = v && N === y && y.visualViewport ? y.visualViewport.height : ( // $FlowFixMe[prop-missing] - O[S] + N[T] ); - v -= D - n.height, v *= c ? 1 : -1; + d -= D - r.height, d *= c ? 1 : -1; } - if (o === Me || (o === _e || o === He) && a === mr) { - w = We; - var V = h && O === g && g.visualViewport ? g.visualViewport.width : ( + if (o === Ie || (o === Me || o === We) && i === Tn) { + x = Xe; + var j = v && N === y && y.visualViewport ? y.visualViewport.width : ( // $FlowFixMe[prop-missing] - O[L] + N[_] ); - b -= V - n.width, b *= c ? 1 : -1; + p -= j - r.width, p *= c ? 1 : -1; } } - var C = Object.assign({ + var P = Object.assign({ position: l - }, p && Bp), _ = u === !0 ? Lp({ - x: b, - y: v - }, Le(r)) : { - x: b, - y: v + }, u && Su), I = f === !0 ? Pu({ + x: p, + y: d + }, Fe(n)) : { + x: p, + y: d }; - if (b = _.x, v = _.y, c) { - var M; - return Object.assign({}, C, (M = {}, M[E] = I ? "0" : "", M[w] = x ? "0" : "", M.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + b + "px, " + v + "px)" : "translate3d(" + b + "px, " + v + "px, 0)", M)); + if (p = I.x, d = I.y, c) { + var A; + return Object.assign({}, P, (A = {}, A[E] = S ? "0" : "", A[x] = w ? "0" : "", A.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + d + "px)" : "translate3d(" + p + "px, " + d + "px, 0)", A)); } - return Object.assign({}, C, (t = {}, t[E] = I ? v + "px" : "", t[w] = x ? b + "px" : "", t.transform = "", t)); + return Object.assign({}, P, (t = {}, t[E] = S ? d + "px" : "", t[x] = w ? p + "px" : "", t.transform = "", t)); } -function Vp(e) { - var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, s = a === void 0 ? !0 : a, l = r.roundOffsets, c = l === void 0 ? !0 : l, p = { - placement: Ge(t.placement), - variation: Ut(t.placement), +function Ru(e) { + var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, i = n.adaptive, a = i === void 0 ? !0 : i, l = n.roundOffsets, c = l === void 0 ? !0 : l, u = { + placement: Ke(t.placement), + variation: Kt(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: o, isFixed: t.options.strategy === "fixed" }; - t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, ha(Object.assign({}, p, { + t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, $i(Object.assign({}, u, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, - adaptive: s, + adaptive: a, roundOffsets: c - })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, ha(Object.assign({}, p, { + })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, $i(Object.assign({}, u, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, @@ -3965,105 +3964,105 @@ function Vp(e) { "data-popper-placement": t.placement }); } -const Fp = { +const $u = { name: "computeStyles", enabled: !0, phase: "beforeWrite", - fn: Vp, + fn: Ru, data: {} }; -var Rr = { +var Ln = { passive: !0 }; -function zp(e) { - var t = e.state, r = e.instance, n = e.options, o = n.scroll, a = o === void 0 ? !0 : o, s = n.resize, l = s === void 0 ? !0 : s, c = Le(t.elements.popper), p = [].concat(t.scrollParents.reference, t.scrollParents.popper); - return a && p.forEach(function(u) { - u.addEventListener("scroll", r.update, Rr); - }), l && c.addEventListener("resize", r.update, Rr), function() { - a && p.forEach(function(u) { - u.removeEventListener("scroll", r.update, Rr); - }), l && c.removeEventListener("resize", r.update, Rr); +function _u(e) { + var t = e.state, n = e.instance, r = e.options, o = r.scroll, i = o === void 0 ? !0 : o, a = r.resize, l = a === void 0 ? !0 : a, c = Fe(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper); + return i && u.forEach(function(f) { + f.addEventListener("scroll", n.update, Ln); + }), l && c.addEventListener("resize", n.update, Ln), function() { + i && u.forEach(function(f) { + f.removeEventListener("scroll", n.update, Ln); + }), l && c.removeEventListener("resize", n.update, Ln); }; } -const Up = { +const Mu = { name: "eventListeners", enabled: !0, phase: "write", fn: function() { }, - effect: zp, + effect: _u, data: {} }; -var Hp = { +var Iu = { left: "right", right: "left", bottom: "top", top: "bottom" }; -function Ar(e) { +function Hn(e) { return e.replace(/left|right|bottom|top/g, function(t) { - return Hp[t]; + return Iu[t]; }); } -var Wp = { +var Au = { start: "end", end: "start" }; -function ma(e) { +function _i(e) { return e.replace(/start|end/g, function(t) { - return Wp[t]; + return Au[t]; }); } -function so(e) { - var t = Le(e), r = t.pageXOffset, n = t.pageYOffset; +function ko(e) { + var t = Fe(e), n = t.pageXOffset, r = t.pageYOffset; return { - scrollLeft: r, - scrollTop: n + scrollLeft: n, + scrollTop: r }; } -function lo(e) { - return zt(dt(e)).left + so(e).scrollLeft; +function To(e) { + return Yt(gt(e)).left + ko(e).scrollLeft; } -function Xp(e, t) { - var r = Le(e), n = dt(e), o = r.visualViewport, a = n.clientWidth, s = n.clientHeight, l = 0, c = 0; +function Du(e, t) { + var n = Fe(e), r = gt(e), o = n.visualViewport, i = r.clientWidth, a = r.clientHeight, l = 0, c = 0; if (o) { - a = o.width, s = o.height; - var p = Ri(); - (p || !p && t === "fixed") && (l = o.offsetLeft, c = o.offsetTop); + i = o.width, a = o.height; + var u = es(); + (u || !u && t === "fixed") && (l = o.offsetLeft, c = o.offsetTop); } return { - width: a, - height: s, - x: l + lo(e), + width: i, + height: a, + x: l + To(e), y: c }; } -function qp(e) { - var t, r = dt(e), n = so(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = xt(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = xt(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + lo(e), c = -n.scrollTop; - return at(o || r).direction === "rtl" && (l += xt(r.clientWidth, o ? o.clientWidth : 0) - a), { - width: a, - height: s, +function Bu(e) { + var t, n = gt(e), r = ko(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = Ot(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = Ot(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -r.scrollLeft + To(e), c = -r.scrollTop; + return st(o || n).direction === "rtl" && (l += Ot(n.clientWidth, o ? o.clientWidth : 0) - i), { + width: i, + height: a, x: l, y: c }; } -function co(e) { - var t = at(e), r = t.overflow, n = t.overflowX, o = t.overflowY; - return /auto|scroll|overlay|hidden/.test(r + o + n); +function No(e) { + var t = st(e), n = t.overflow, r = t.overflowX, o = t.overflowY; + return /auto|scroll|overlay|hidden/.test(n + o + r); } -function Ai(e) { - return ["html", "body", "#document"].indexOf(Je(e)) >= 0 ? e.ownerDocument.body : ze(e) && co(e) ? e : Ai(en(e)); +function is(e) { + return ["html", "body", "#document"].indexOf(Ze(e)) >= 0 ? e.ownerDocument.body : Ue(e) && No(e) ? e : is(cr(e)); } -function pr(e, t) { - var r; +function yn(e, t) { + var n; t === void 0 && (t = []); - var n = Ai(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Le(n), s = o ? [a].concat(a.visualViewport || [], co(n) ? n : []) : n, l = t.concat(s); + var r = is(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), i = Fe(r), a = o ? [i].concat(i.visualViewport || [], No(r) ? r : []) : r, l = t.concat(a); return o ? l : ( // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here - l.concat(pr(en(s))) + l.concat(yn(cr(a))) ); } -function Ln(e) { +function Jr(e) { return Object.assign({}, e, { left: e.x, top: e.y, @@ -4071,50 +4070,50 @@ function Ln(e) { bottom: e.y + e.height }); } -function Yp(e, t) { - var r = zt(e, !1, t === "fixed"); - return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r; +function ju(e, t) { + var n = Yt(e, !1, t === "fixed"); + return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n; } -function ga(e, t, r) { - return t === Si ? Ln(Xp(e, r)) : Nt(t) ? Yp(t, r) : Ln(qp(dt(e))); +function Mi(e, t, n) { + return t === Za ? Jr(Du(e, n)) : Rt(t) ? ju(t, n) : Jr(Bu(gt(e))); } -function Gp(e) { - var t = pr(en(e)), r = ["absolute", "fixed"].indexOf(at(e).position) >= 0, n = r && ze(e) ? xr(e) : e; - return Nt(n) ? t.filter(function(o) { - return Nt(o) && $i(o, n) && Je(o) !== "body"; +function Lu(e) { + var t = yn(cr(e)), n = ["absolute", "fixed"].indexOf(st(e).position) >= 0, r = n && Ue(e) ? Rn(e) : e; + return Rt(r) ? t.filter(function(o) { + return Rt(o) && ts(o, r) && Ze(o) !== "body"; }) : []; } -function Kp(e, t, r, n) { - var o = t === "clippingParents" ? Gp(e) : [].concat(t), a = [].concat(o, [r]), s = a[0], l = a.reduce(function(c, p) { - var u = ga(e, p, n); - return c.top = xt(u.top, c.top), c.right = Wr(u.right, c.right), c.bottom = Wr(u.bottom, c.bottom), c.left = xt(u.left, c.left), c; - }, ga(e, s, n)); +function Fu(e, t, n, r) { + var o = t === "clippingParents" ? Lu(e) : [].concat(t), i = [].concat(o, [n]), a = i[0], l = i.reduce(function(c, u) { + var f = Mi(e, u, r); + return c.top = Ot(f.top, c.top), c.right = tr(f.right, c.right), c.bottom = tr(f.bottom, c.bottom), c.left = Ot(f.left, c.left), c; + }, Mi(e, a, r)); return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l; } -function Di(e) { - var t = e.reference, r = e.element, n = e.placement, o = n ? Ge(n) : null, a = n ? Ut(n) : null, s = t.x + t.width / 2 - r.width / 2, l = t.y + t.height / 2 - r.height / 2, c; +function as(e) { + var t = e.reference, n = e.element, r = e.placement, o = r ? Ke(r) : null, i = r ? Kt(r) : null, a = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, c; switch (o) { - case _e: + case Me: c = { - x: s, - y: t.y - r.height + x: a, + y: t.y - n.height }; break; - case He: + case We: c = { - x: s, + x: a, y: t.y + t.height }; break; - case We: + case Xe: c = { x: t.x + t.width, y: l }; break; - case Me: + case Ie: c = { - x: t.x - r.width, + x: t.x - n.width, y: l }; break; @@ -4124,350 +4123,350 @@ function Di(e) { y: t.y }; } - var p = o ? io(o) : null; - if (p != null) { - var u = p === "y" ? "height" : "width"; - switch (a) { - case Vt: - c[p] = c[p] - (t[u] / 2 - r[u] / 2); + var u = o ? Eo(o) : null; + if (u != null) { + var f = u === "y" ? "height" : "width"; + switch (i) { + case Gt: + c[u] = c[u] - (t[f] / 2 - n[f] / 2); break; - case mr: - c[p] = c[p] + (t[u] / 2 - r[u] / 2); + case Tn: + c[u] = c[u] + (t[f] / 2 - n[f] / 2); break; } } return c; } -function gr(e, t) { +function Nn(e, t) { t === void 0 && (t = {}); - var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, s = a === void 0 ? e.strategy : a, l = r.boundary, c = l === void 0 ? gp : l, p = r.rootBoundary, u = p === void 0 ? Si : p, h = r.elementContext, f = h === void 0 ? Qt : h, b = r.altBoundary, y = b === void 0 ? !1 : b, v = r.padding, m = v === void 0 ? 0 : v, x = Mi(typeof m != "number" ? m : Ii(m, wr)), I = f === Qt ? bp : Qt, w = e.rects.popper, E = e.elements[y ? I : f], g = Kp(Nt(E) ? E : E.contextElement || dt(e.elements.popper), c, u, s), O = zt(e.elements.reference), S = Di({ - reference: O, - element: w, + var n = t, r = n.placement, o = r === void 0 ? e.placement : r, i = n.strategy, a = i === void 0 ? e.strategy : i, l = n.boundary, c = l === void 0 ? au : l, u = n.rootBoundary, f = u === void 0 ? Za : u, v = n.elementContext, b = v === void 0 ? sn : v, p = n.altBoundary, h = p === void 0 ? !1 : p, d = n.padding, g = d === void 0 ? 0 : d, w = rs(typeof g != "number" ? g : os(g, Pn)), S = b === sn ? su : sn, x = e.rects.popper, E = e.elements[h ? S : b], y = Fu(Rt(E) ? E : E.contextElement || gt(e.elements.popper), c, f, a), N = Yt(e.elements.reference), T = as({ + reference: N, + element: x, strategy: "absolute", placement: o - }), L = Ln(Object.assign({}, w, S)), D = f === Qt ? L : O, V = { - top: g.top - D.top + x.top, - bottom: D.bottom - g.bottom + x.bottom, - left: g.left - D.left + x.left, - right: D.right - g.right + x.right - }, C = e.modifiersData.offset; - if (f === Qt && C) { - var _ = C[o]; - Object.keys(V).forEach(function(M) { - var B = [We, He].indexOf(M) >= 0 ? 1 : -1, z = [_e, He].indexOf(M) >= 0 ? "y" : "x"; - V[M] += _[z] * B; + }), _ = Jr(Object.assign({}, x, T)), D = b === sn ? _ : N, j = { + top: y.top - D.top + w.top, + bottom: D.bottom - y.bottom + w.bottom, + left: y.left - D.left + w.left, + right: D.right - y.right + w.right + }, P = e.modifiersData.offset; + if (b === sn && P) { + var I = P[o]; + Object.keys(j).forEach(function(A) { + var F = [Xe, We].indexOf(A) >= 0 ? 1 : -1, z = [Me, We].indexOf(A) >= 0 ? "y" : "x"; + j[A] += I[z] * F; }); } - return V; + return j; } -function Jp(e, t) { +function Vu(e, t) { t === void 0 && (t = {}); - var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, s = r.padding, l = r.flipVariations, c = r.allowedAutoPlacements, p = c === void 0 ? Pi : c, u = Ut(n), h = u ? l ? da : da.filter(function(y) { - return Ut(y) === u; - }) : wr, f = h.filter(function(y) { - return p.indexOf(y) >= 0; + var n = t, r = n.placement, o = n.boundary, i = n.rootBoundary, a = n.padding, l = n.flipVariations, c = n.allowedAutoPlacements, u = c === void 0 ? Qa : c, f = Kt(r), v = f ? l ? Pi : Pi.filter(function(h) { + return Kt(h) === f; + }) : Pn, b = v.filter(function(h) { + return u.indexOf(h) >= 0; }); - f.length === 0 && (f = h); - var b = f.reduce(function(y, v) { - return y[v] = gr(e, { - placement: v, + b.length === 0 && (b = v); + var p = b.reduce(function(h, d) { + return h[d] = Nn(e, { + placement: d, boundary: o, - rootBoundary: a, - padding: s - })[Ge(v)], y; + rootBoundary: i, + padding: a + })[Ke(d)], h; }, {}); - return Object.keys(b).sort(function(y, v) { - return b[y] - b[v]; + return Object.keys(p).sort(function(h, d) { + return p[h] - p[d]; }); } -function Zp(e) { - if (Ge(e) === no) +function zu(e) { + if (Ke(e) === yo) return []; - var t = Ar(e); - return [ma(e), t, ma(t)]; -} -function Qp(e) { - var t = e.state, r = e.options, n = e.name; - if (!t.modifiersData[n]._skip) { - for (var o = r.mainAxis, a = o === void 0 ? !0 : o, s = r.altAxis, l = s === void 0 ? !0 : s, c = r.fallbackPlacements, p = r.padding, u = r.boundary, h = r.rootBoundary, f = r.altBoundary, b = r.flipVariations, y = b === void 0 ? !0 : b, v = r.allowedAutoPlacements, m = t.options.placement, x = Ge(m), I = x === m, w = c || (I || !y ? [Ar(m)] : Zp(m)), E = [m].concat(w).reduce(function(H, W) { - return H.concat(Ge(W) === no ? Jp(t, { - placement: W, - boundary: u, - rootBoundary: h, - padding: p, - flipVariations: y, - allowedAutoPlacements: v - }) : W); - }, []), g = t.rects.reference, O = t.rects.popper, S = /* @__PURE__ */ new Map(), L = !0, D = E[0], V = 0; V < E.length; V++) { - var C = E[V], _ = Ge(C), M = Ut(C) === Vt, B = [_e, He].indexOf(_) >= 0, z = B ? "width" : "height", P = gr(t, { - placement: C, - boundary: u, - rootBoundary: h, - altBoundary: f, - padding: p - }), j = B ? M ? We : Me : M ? He : _e; - g[z] > O[z] && (j = Ar(j)); - var te = Ar(j), Q = []; - if (a && Q.push(P[_] <= 0), l && Q.push(P[j] <= 0, P[te] <= 0), Q.every(function(H) { + var t = Hn(e); + return [_i(e), t, _i(t)]; +} +function Uu(e) { + var t = e.state, n = e.options, r = e.name; + if (!t.modifiersData[r]._skip) { + for (var o = n.mainAxis, i = o === void 0 ? !0 : o, a = n.altAxis, l = a === void 0 ? !0 : a, c = n.fallbackPlacements, u = n.padding, f = n.boundary, v = n.rootBoundary, b = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, d = n.allowedAutoPlacements, g = t.options.placement, w = Ke(g), S = w === g, x = c || (S || !h ? [Hn(g)] : zu(g)), E = [g].concat(x).reduce(function(H, X) { + return H.concat(Ke(X) === yo ? Vu(t, { + placement: X, + boundary: f, + rootBoundary: v, + padding: u, + flipVariations: h, + allowedAutoPlacements: d + }) : X); + }, []), y = t.rects.reference, N = t.rects.popper, T = /* @__PURE__ */ new Map(), _ = !0, D = E[0], j = 0; j < E.length; j++) { + var P = E[j], I = Ke(P), A = Kt(P) === Gt, F = [Me, We].indexOf(I) >= 0, z = F ? "width" : "height", R = Nn(t, { + placement: P, + boundary: f, + rootBoundary: v, + altBoundary: b, + padding: u + }), L = F ? A ? Xe : Ie : A ? We : Me; + y[z] > N[z] && (L = Hn(L)); + var te = Hn(L), Q = []; + if (i && Q.push(R[I] <= 0), l && Q.push(R[L] <= 0, R[te] <= 0), Q.every(function(H) { return H; })) { - D = C, L = !1; + D = P, _ = !1; break; } - S.set(C, Q); + T.set(P, Q); } - if (L) - for (var k = y ? 3 : 1, R = function(W) { + if (_) + for (var O = h ? 3 : 1, $ = function(X) { var Y = E.find(function(K) { - var X = S.get(K); - if (X) - return X.slice(0, W).every(function(Z) { + var G = T.get(K); + if (G) + return G.slice(0, X).every(function(Z) { return Z; }); }); if (Y) return D = Y, "break"; - }, F = k; F > 0; F--) { - var q = R(F); + }, V = O; V > 0; V--) { + var q = $(V); if (q === "break") break; } - t.placement !== D && (t.modifiersData[n]._skip = !0, t.placement = D, t.reset = !0); + t.placement !== D && (t.modifiersData[r]._skip = !0, t.placement = D, t.reset = !0); } } -const eu = { +const Hu = { name: "flip", enabled: !0, phase: "main", - fn: Qp, + fn: Uu, requiresIfExists: ["offset"], data: { _skip: !1 } }; -function ba(e, t, r) { - return r === void 0 && (r = { +function Ii(e, t, n) { + return n === void 0 && (n = { x: 0, y: 0 }), { - top: e.top - t.height - r.y, - right: e.right - t.width + r.x, - bottom: e.bottom - t.height + r.y, - left: e.left - t.width - r.x + top: e.top - t.height - n.y, + right: e.right - t.width + n.x, + bottom: e.bottom - t.height + n.y, + left: e.left - t.width - n.x }; } -function va(e) { - return [_e, We, He, Me].some(function(t) { +function Ai(e) { + return [Me, Xe, We, Ie].some(function(t) { return e[t] >= 0; }); } -function tu(e) { - var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, s = gr(t, { +function Wu(e) { + var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = Nn(t, { elementContext: "reference" - }), l = gr(t, { + }), l = Nn(t, { altBoundary: !0 - }), c = ba(s, n), p = ba(l, o, a), u = va(c), h = va(p); - t.modifiersData[r] = { + }), c = Ii(a, r), u = Ii(l, o, i), f = Ai(c), v = Ai(u); + t.modifiersData[n] = { referenceClippingOffsets: c, - popperEscapeOffsets: p, - isReferenceHidden: u, - hasPopperEscaped: h + popperEscapeOffsets: u, + isReferenceHidden: f, + hasPopperEscaped: v }, t.attributes.popper = Object.assign({}, t.attributes.popper, { - "data-popper-reference-hidden": u, - "data-popper-escaped": h + "data-popper-reference-hidden": f, + "data-popper-escaped": v }); } -const ru = { +const Xu = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], - fn: tu + fn: Wu }; -function nu(e, t, r) { - var n = Ge(e), o = [Me, _e].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, { +function Gu(e, t, n) { + var r = Ke(e), o = [Ie, Me].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, { placement: e - })) : r, s = a[0], l = a[1]; - return s = s || 0, l = (l || 0) * o, [Me, We].indexOf(n) >= 0 ? { + })) : n, a = i[0], l = i[1]; + return a = a || 0, l = (l || 0) * o, [Ie, Xe].indexOf(r) >= 0 ? { x: l, - y: s + y: a } : { - x: s, + x: a, y: l }; } -function ou(e) { - var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, s = Pi.reduce(function(u, h) { - return u[h] = nu(h, t.rects, a), u; - }, {}), l = s[t.placement], c = l.x, p = l.y; - t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += p), t.modifiersData[n] = s; +function qu(e) { + var t = e.state, n = e.options, r = e.name, o = n.offset, i = o === void 0 ? [0, 0] : o, a = Qa.reduce(function(f, v) { + return f[v] = Gu(v, t.rects, i), f; + }, {}), l = a[t.placement], c = l.x, u = l.y; + t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += u), t.modifiersData[r] = a; } -const au = { +const Yu = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], - fn: ou + fn: qu }; -function iu(e) { - var t = e.state, r = e.name; - t.modifiersData[r] = Di({ +function Ku(e) { + var t = e.state, n = e.name; + t.modifiersData[n] = as({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement }); } -const su = { +const Ju = { name: "popperOffsets", enabled: !0, phase: "read", - fn: iu, + fn: Ku, data: {} }; -function lu(e) { +function Zu(e) { return e === "x" ? "y" : "x"; } -function cu(e) { - var t = e.state, r = e.options, n = e.name, o = r.mainAxis, a = o === void 0 ? !0 : o, s = r.altAxis, l = s === void 0 ? !1 : s, c = r.boundary, p = r.rootBoundary, u = r.altBoundary, h = r.padding, f = r.tether, b = f === void 0 ? !0 : f, y = r.tetherOffset, v = y === void 0 ? 0 : y, m = gr(t, { +function Qu(e) { + var t = e.state, n = e.options, r = e.name, o = n.mainAxis, i = o === void 0 ? !0 : o, a = n.altAxis, l = a === void 0 ? !1 : a, c = n.boundary, u = n.rootBoundary, f = n.altBoundary, v = n.padding, b = n.tether, p = b === void 0 ? !0 : b, h = n.tetherOffset, d = h === void 0 ? 0 : h, g = Nn(t, { boundary: c, - rootBoundary: p, - padding: h, - altBoundary: u - }), x = Ge(t.placement), I = Ut(t.placement), w = !I, E = io(x), g = lu(E), O = t.modifiersData.popperOffsets, S = t.rects.reference, L = t.rects.popper, D = typeof v == "function" ? v(Object.assign({}, t.rects, { + rootBoundary: u, + padding: v, + altBoundary: f + }), w = Ke(t.placement), S = Kt(t.placement), x = !S, E = Eo(w), y = Zu(E), N = t.modifiersData.popperOffsets, T = t.rects.reference, _ = t.rects.popper, D = typeof d == "function" ? d(Object.assign({}, t.rects, { placement: t.placement - })) : v, V = typeof D == "number" ? { + })) : d, j = typeof D == "number" ? { mainAxis: D, altAxis: D } : Object.assign({ mainAxis: 0, altAxis: 0 - }, D), C = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, _ = { + }, D), P = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, I = { x: 0, y: 0 }; - if (O) { - if (a) { - var M, B = E === "y" ? _e : Me, z = E === "y" ? He : We, P = E === "y" ? "height" : "width", j = O[E], te = j + m[B], Q = j - m[z], k = b ? -L[P] / 2 : 0, R = I === Vt ? S[P] : L[P], F = I === Vt ? -L[P] : -S[P], q = t.elements.arrow, H = b && q ? ao(q) : { + if (N) { + if (i) { + var A, F = E === "y" ? Me : Ie, z = E === "y" ? We : Xe, R = E === "y" ? "height" : "width", L = N[E], te = L + g[F], Q = L - g[z], O = p ? -_[R] / 2 : 0, $ = S === Gt ? T[R] : _[R], V = S === Gt ? -_[R] : -T[R], q = t.elements.arrow, H = p && q ? xo(q) : { width: 0, height: 0 - }, W = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : _i(), Y = W[B], K = W[z], X = cr(0, S[P], H[P]), Z = w ? S[P] / 2 - k - X - Y - V.mainAxis : R - X - Y - V.mainAxis, ee = w ? -S[P] / 2 + k + X + K + V.mainAxis : F + X + K + V.mainAxis, ae = t.elements.arrow && xr(t.elements.arrow), A = ae ? E === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, re = (M = C == null ? void 0 : C[E]) != null ? M : 0, $ = j + Z - re - A, ie = j + ee - re, Ee = cr(b ? Wr(te, $) : te, j, b ? xt(Q, ie) : Q); - O[E] = Ee, _[E] = Ee - j; + }, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ns(), Y = X[F], K = X[z], G = vn(0, T[R], H[R]), Z = x ? T[R] / 2 - O - G - Y - j.mainAxis : $ - G - Y - j.mainAxis, ee = x ? -T[R] / 2 + O + G + K + j.mainAxis : V + G + K + j.mainAxis, ae = t.elements.arrow && Rn(t.elements.arrow), B = ae ? E === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, ne = (A = P == null ? void 0 : P[E]) != null ? A : 0, M = L + Z - ne - B, se = L + ee - ne, ke = vn(p ? tr(te, M) : te, L, p ? Ot(Q, se) : Q); + N[E] = ke, I[E] = ke - L; } if (l) { - var Se, we = E === "x" ? _e : Me, ht = E === "x" ? He : We, Pe = O[g], Qe = g === "y" ? "height" : "width", Ae = Pe + m[we], et = Pe - m[ht], Te = [_e, Me].indexOf(x) !== -1, Ct = (Se = C == null ? void 0 : C[g]) != null ? Se : 0, mt = Te ? Ae : Pe - S[Qe] - L[Qe] - Ct + V.altAxis, Xt = Te ? Pe + S[Qe] + L[Qe] - Ct - V.altAxis : et, Nr = b && Te ? Mp(mt, Pe, Xt) : cr(b ? mt : Ae, Pe, b ? Xt : et); - O[g] = Nr, _[g] = Nr - Pe; + var Pe, xe = E === "x" ? Me : Ie, vt = E === "x" ? We : Xe, Re = N[y], et = y === "y" ? "height" : "width", De = Re + g[xe], tt = Re - g[vt], Te = [Me, Ie].indexOf(w) !== -1, Mt = (Pe = P == null ? void 0 : P[y]) != null ? Pe : 0, yt = Te ? De : Re - T[et] - _[et] - Mt + j.altAxis, Qt = Te ? Re + T[et] + _[et] - Mt - j.altAxis : tt, In = p && Te ? ku(yt, Re, Qt) : vn(p ? yt : De, Re, p ? Qt : tt); + N[y] = In, I[y] = In - Re; } - t.modifiersData[n] = _; + t.modifiersData[r] = I; } } -const pu = { +const ed = { name: "preventOverflow", enabled: !0, phase: "main", - fn: cu, + fn: Qu, requiresIfExists: ["offset"] }; -function uu(e) { +function td(e) { return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }; } -function du(e) { - return e === Le(e) || !ze(e) ? so(e) : uu(e); +function nd(e) { + return e === Fe(e) || !Ue(e) ? ko(e) : td(e); } -function fu(e) { - var t = e.getBoundingClientRect(), r = Ft(t.width) / e.offsetWidth || 1, n = Ft(t.height) / e.offsetHeight || 1; - return r !== 1 || n !== 1; +function rd(e) { + var t = e.getBoundingClientRect(), n = qt(t.width) / e.offsetWidth || 1, r = qt(t.height) / e.offsetHeight || 1; + return n !== 1 || r !== 1; } -function hu(e, t, r) { - r === void 0 && (r = !1); - var n = ze(t), o = ze(t) && fu(t), a = dt(t), s = zt(e, o, r), l = { +function od(e, t, n) { + n === void 0 && (n = !1); + var r = Ue(t), o = Ue(t) && rd(t), i = gt(t), a = Yt(e, o, n), l = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 }; - return (n || !n && !r) && ((Je(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 - co(a)) && (l = du(t)), ze(t) ? (c = zt(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : a && (c.x = lo(a))), { - x: s.left + l.scrollLeft - c.x, - y: s.top + l.scrollTop - c.y, - width: s.width, - height: s.height + return (r || !r && !n) && ((Ze(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 + No(i)) && (l = nd(t)), Ue(t) ? (c = Yt(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : i && (c.x = To(i))), { + x: a.left + l.scrollLeft - c.x, + y: a.top + l.scrollTop - c.y, + width: a.width, + height: a.height }; } -function mu(e) { - var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = []; - e.forEach(function(a) { - t.set(a.name, a); +function id(e) { + var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = []; + e.forEach(function(i) { + t.set(i.name, i); }); - function o(a) { - r.add(a.name); - var s = [].concat(a.requires || [], a.requiresIfExists || []); - s.forEach(function(l) { - if (!r.has(l)) { + function o(i) { + n.add(i.name); + var a = [].concat(i.requires || [], i.requiresIfExists || []); + a.forEach(function(l) { + if (!n.has(l)) { var c = t.get(l); c && o(c); } - }), n.push(a); + }), r.push(i); } - return e.forEach(function(a) { - r.has(a.name) || o(a); - }), n; + return e.forEach(function(i) { + n.has(i.name) || o(i); + }), r; } -function gu(e) { - var t = mu(e); - return Cp.reduce(function(r, n) { - return r.concat(t.filter(function(o) { - return o.phase === n; +function ad(e) { + var t = id(e); + return bu.reduce(function(n, r) { + return n.concat(t.filter(function(o) { + return o.phase === r; })); }, []); } -function bu(e) { +function sd(e) { var t; return function() { - return t || (t = new Promise(function(r) { + return t || (t = new Promise(function(n) { Promise.resolve().then(function() { - t = void 0, r(e()); + t = void 0, n(e()); }); })), t; }; } -function vu(e) { - var t = e.reduce(function(r, n) { - var o = r[n.name]; - return r[n.name] = o ? Object.assign({}, o, n, { - options: Object.assign({}, o.options, n.options), - data: Object.assign({}, o.data, n.data) - }) : n, r; +function ld(e) { + var t = e.reduce(function(n, r) { + var o = n[r.name]; + return n[r.name] = o ? Object.assign({}, o, r, { + options: Object.assign({}, o.options, r.options), + data: Object.assign({}, o.data, r.data) + }) : r, n; }, {}); - return Object.keys(t).map(function(r) { - return t[r]; + return Object.keys(t).map(function(n) { + return t[n]; }); } -var ya = { +var Di = { placement: "bottom", modifiers: [], strategy: "absolute" }; -function wa() { - for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) - t[r] = arguments[r]; - return !t.some(function(n) { - return !(n && typeof n.getBoundingClientRect == "function"); +function Bi() { + for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) + t[n] = arguments[n]; + return !t.some(function(r) { + return !(r && typeof r.getBoundingClientRect == "function"); }); } -function yu(e) { +function cd(e) { e === void 0 && (e = {}); - var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? ya : o; - return function(l, c, p) { - p === void 0 && (p = a); - var u = { + var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, i = o === void 0 ? Di : o; + return function(l, c, u) { + u === void 0 && (u = i); + var f = { placement: "bottom", orderedModifiers: [], - options: Object.assign({}, ya, a), + options: Object.assign({}, Di, i), modifiersData: {}, elements: { reference: l, @@ -4475,18 +4474,18 @@ function yu(e) { }, attributes: {}, styles: {} - }, h = [], f = !1, b = { - state: u, - setOptions: function(x) { - var I = typeof x == "function" ? x(u.options) : x; - v(), u.options = Object.assign({}, a, u.options, I), u.scrollParents = { - reference: Nt(l) ? pr(l) : l.contextElement ? pr(l.contextElement) : [], - popper: pr(c) + }, v = [], b = !1, p = { + state: f, + setOptions: function(w) { + var S = typeof w == "function" ? w(f.options) : w; + d(), f.options = Object.assign({}, i, f.options, S), f.scrollParents = { + reference: Rt(l) ? yn(l) : l.contextElement ? yn(l.contextElement) : [], + popper: yn(c) }; - var w = gu(vu([].concat(n, u.options.modifiers))); - return u.orderedModifiers = w.filter(function(E) { + var x = ad(ld([].concat(r, f.options.modifiers))); + return f.orderedModifiers = x.filter(function(E) { return E.enabled; - }), y(), b.update(); + }), h(), p.update(); }, // Sync update – it will always be executed, even if not necessary. This // is useful for low frequency updates where sync behavior simplifies the @@ -4494,80 +4493,80 @@ function yu(e) { // For high frequency updates (e.g. `resize` and `scroll` events), always // prefer the async Popper#update method forceUpdate: function() { - if (!f) { - var x = u.elements, I = x.reference, w = x.popper; - if (wa(I, w)) { - u.rects = { - reference: hu(I, xr(w), u.options.strategy === "fixed"), - popper: ao(w) - }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(V) { - return u.modifiersData[V.name] = Object.assign({}, V.data); + if (!b) { + var w = f.elements, S = w.reference, x = w.popper; + if (Bi(S, x)) { + f.rects = { + reference: od(S, Rn(x), f.options.strategy === "fixed"), + popper: xo(x) + }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(j) { + return f.modifiersData[j.name] = Object.assign({}, j.data); }); - for (var E = 0; E < u.orderedModifiers.length; E++) { - if (u.reset === !0) { - u.reset = !1, E = -1; + for (var E = 0; E < f.orderedModifiers.length; E++) { + if (f.reset === !0) { + f.reset = !1, E = -1; continue; } - var g = u.orderedModifiers[E], O = g.fn, S = g.options, L = S === void 0 ? {} : S, D = g.name; - typeof O == "function" && (u = O({ - state: u, - options: L, + var y = f.orderedModifiers[E], N = y.fn, T = y.options, _ = T === void 0 ? {} : T, D = y.name; + typeof N == "function" && (f = N({ + state: f, + options: _, name: D, - instance: b - }) || u); + instance: p + }) || f); } } } }, // Async and optimistically optimized update – it will not be executed if // not necessary (debounced to run at most once-per-tick) - update: bu(function() { - return new Promise(function(m) { - b.forceUpdate(), m(u); + update: sd(function() { + return new Promise(function(g) { + p.forceUpdate(), g(f); }); }), destroy: function() { - v(), f = !0; + d(), b = !0; } }; - if (!wa(l, c)) - return b; - b.setOptions(p).then(function(m) { - !f && p.onFirstUpdate && p.onFirstUpdate(m); + if (!Bi(l, c)) + return p; + p.setOptions(u).then(function(g) { + !b && u.onFirstUpdate && u.onFirstUpdate(g); }); - function y() { - u.orderedModifiers.forEach(function(m) { - var x = m.name, I = m.options, w = I === void 0 ? {} : I, E = m.effect; + function h() { + f.orderedModifiers.forEach(function(g) { + var w = g.name, S = g.options, x = S === void 0 ? {} : S, E = g.effect; if (typeof E == "function") { - var g = E({ - state: u, - name: x, - instance: b, - options: w - }), O = function() { + var y = E({ + state: f, + name: w, + instance: p, + options: x + }), N = function() { }; - h.push(g || O); + v.push(y || N); } }); } - function v() { - h.forEach(function(m) { - return m(); - }), h = []; + function d() { + v.forEach(function(g) { + return g(); + }), v = []; } - return b; + return p; }; } -var wu = [Up, su, Fp, Rp, au, eu, pu, jp, ru], xu = /* @__PURE__ */ yu({ - defaultModifiers: wu +var pd = [Mu, Ju, $u, wu, Yu, Hu, ed, Cu, Xu], ud = /* @__PURE__ */ cd({ + defaultModifiers: pd }); -const ji = "Popper"; -function Eu(e) { - return Ci(ji, e); +const ss = "Popper"; +function dd(e) { + return Ja(ss, e); } -Qc(ji, ["root"]); -const Tu = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], ku = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"]; -function Nu(e, t) { +Up(ss, ["root"]); +const fd = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], hd = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"]; +function md(e, t) { if (t === "ltr") return e; switch (e) { @@ -4583,55 +4582,55 @@ function Nu(e, t) { return e; } } -function Xr(e) { +function nr(e) { return typeof e == "function" ? e() : e; } -function tn(e) { +function pr(e) { return e.nodeType !== void 0; } -function Ou(e) { - return !tn(e); +function gd(e) { + return !pr(e); } -const Cu = () => st({ +const bd = () => ct({ root: ["root"] -}, qc(Eu)), Su = {}, Pu = /* @__PURE__ */ T.forwardRef(function(t, r) { - var n; +}, Bp(dd)), vd = {}, yd = /* @__PURE__ */ k.forwardRef(function(t, n) { + var r; const { anchorEl: o, - children: a, - direction: s, + children: i, + direction: a, disablePortal: l, modifiers: c, - open: p, - placement: u, - popperOptions: h, - popperRef: f, - slotProps: b = {}, - slots: y = {}, - TransitionProps: v + open: u, + placement: f, + popperOptions: v, + popperRef: b, + slotProps: p = {}, + slots: h = {}, + TransitionProps: d // @ts-ignore internal logic // prevent from spreading to DOM, it can come from the parent component e.g. Select. - } = t, m = fe(t, Tu), x = T.useRef(null), I = Ue(x, r), w = T.useRef(null), E = Ue(w, f), g = T.useRef(E); - Tt(() => { - g.current = E; - }, [E]), T.useImperativeHandle(f, () => w.current, []); - const O = Nu(u, s), [S, L] = T.useState(O), [D, V] = T.useState(Xr(o)); - T.useEffect(() => { - w.current && w.current.forceUpdate(); - }), T.useEffect(() => { - o && V(Xr(o)); - }, [o]), Tt(() => { - if (!D || !p) + } = t, g = he(t, fd), w = k.useRef(null), S = He(w, n), x = k.useRef(null), E = He(x, b), y = k.useRef(E); + St(() => { + y.current = E; + }, [E]), k.useImperativeHandle(b, () => x.current, []); + const N = md(f, a), [T, _] = k.useState(N), [D, j] = k.useState(nr(o)); + k.useEffect(() => { + x.current && x.current.forceUpdate(); + }), k.useEffect(() => { + o && j(nr(o)); + }, [o]), St(() => { + if (!D || !u) return; const z = (te) => { - L(te.placement); + _(te.placement); }; - if (process.env.NODE_ENV !== "production" && D && tn(D) && D.nodeType === 1) { + if (process.env.NODE_ENV !== "production" && D && pr(D) && D.nodeType === 1) { const te = D.getBoundingClientRect(); process.env.NODE_ENV !== "test" && te.top === 0 && te.left === 0 && te.right === 0 && te.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(` `)); } - let P = [{ + let R = [{ name: "preventOverflow", options: { altBoundary: l @@ -4651,100 +4650,100 @@ const Cu = () => st({ z(te); } }]; - c != null && (P = P.concat(c)), h && h.modifiers != null && (P = P.concat(h.modifiers)); - const j = xu(D, x.current, N({ - placement: O - }, h, { - modifiers: P + c != null && (R = R.concat(c)), v && v.modifiers != null && (R = R.concat(v.modifiers)); + const L = ud(D, w.current, C({ + placement: N + }, v, { + modifiers: R })); - return g.current(j), () => { - j.destroy(), g.current(null); + return y.current(L), () => { + L.destroy(), y.current(null); }; - }, [D, l, c, p, h, O]); - const C = { - placement: S + }, [D, l, c, u, v, N]); + const P = { + placement: T }; - v !== null && (C.TransitionProps = v); - const _ = Cu(), M = (n = y.root) != null ? n : "div", B = kt({ - elementType: M, - externalSlotProps: b.root, - externalForwardedProps: m, + d !== null && (P.TransitionProps = d); + const I = bd(), A = (r = h.root) != null ? r : "div", F = Pt({ + elementType: A, + externalSlotProps: p.root, + externalForwardedProps: g, additionalProps: { role: "tooltip", - ref: I + ref: S }, ownerState: t, - className: _.root + className: I.root }); - return /* @__PURE__ */ d(M, N({}, B, { - children: typeof a == "function" ? a(C) : a + return /* @__PURE__ */ m(A, C({}, F, { + children: typeof i == "function" ? i(P) : i })); -}), Bi = /* @__PURE__ */ T.forwardRef(function(t, r) { +}), ls = /* @__PURE__ */ k.forwardRef(function(t, n) { const { - anchorEl: n, + anchorEl: r, children: o, - container: a, - direction: s = "ltr", + container: i, + direction: a = "ltr", disablePortal: l = !1, keepMounted: c = !1, - modifiers: p, - open: u, - placement: h = "bottom", - popperOptions: f = Su, - popperRef: b, - style: y, - transition: v = !1, - slotProps: m = {}, - slots: x = {} - } = t, I = fe(t, ku), [w, E] = T.useState(!0), g = () => { + modifiers: u, + open: f, + placement: v = "bottom", + popperOptions: b = vd, + popperRef: p, + style: h, + transition: d = !1, + slotProps: g = {}, + slots: w = {} + } = t, S = he(t, hd), [x, E] = k.useState(!0), y = () => { E(!1); - }, O = () => { + }, N = () => { E(!0); }; - if (!c && !u && (!v || w)) + if (!c && !f && (!d || x)) return null; - let S; - if (a) - S = a; - else if (n) { - const V = Xr(n); - S = V && tn(V) ? Oe(V).body : Oe(null).body; - } - const L = !u && c && (!v || w) ? "none" : void 0, D = v ? { - in: u, - onEnter: g, - onExited: O + let T; + if (i) + T = i; + else if (r) { + const j = nr(r); + T = j && pr(j) ? Ce(j).body : Ce(null).body; + } + const _ = !f && c && (!d || x) ? "none" : void 0, D = d ? { + in: f, + onEnter: y, + onExited: N } : void 0; - return /* @__PURE__ */ d(hr, { + return /* @__PURE__ */ m(kn, { disablePortal: l, - container: S, - children: /* @__PURE__ */ d(Pu, N({ - anchorEl: n, - direction: s, + container: T, + children: /* @__PURE__ */ m(yd, C({ + anchorEl: r, + direction: a, disablePortal: l, - modifiers: p, - ref: r, - open: v ? !w : u, - placement: h, - popperOptions: f, - popperRef: b, - slotProps: m, - slots: x - }, I, { - style: N({ + modifiers: u, + ref: n, + open: d ? !x : f, + placement: v, + popperOptions: b, + popperRef: p, + slotProps: g, + slots: w + }, S, { + style: C({ // Prevents scroll issue, waiting for Popper.js to add this style once initiated. position: "fixed", // Fix Popper.js display issue top: 0, left: 0, - display: L - }, y), + display: _ + }, h), TransitionProps: D, children: o })) }); }); -process.env.NODE_ENV !== "production" && (Bi.propTypes = { +process.env.NODE_ENV !== "production" && (ls.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ @@ -4755,15 +4754,15 @@ process.env.NODE_ENV !== "production" && (Bi.propTypes = { * It's used to set the position of the popper. * The return value will passed as the reference object of the Popper instance. */ - anchorEl: Wt(i.oneOfType([ot, i.object, i.func]), (e) => { + anchorEl: Zt(s.oneOfType([at, s.object, s.func]), (e) => { if (e.open) { - const t = Xr(e.anchorEl); - if (t && tn(t) && t.nodeType === 1) { - const r = t.getBoundingClientRect(); - if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0) + const t = nr(e.anchorEl); + if (t && pr(t) && t.nodeType === 1) { + const n = t.getBoundingClientRect(); + if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0) return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(` `)); - } else if (!t || typeof t.getBoundingClientRect != "function" || Ou(t) && t.contextElement != null && t.contextElement.nodeType !== 1) + } else if (!t || typeof t.getBoundingClientRect != "function" || gd(t) && t.contextElement != null && t.contextElement.nodeType !== 1) return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(` `)); } @@ -4772,7 +4771,7 @@ process.env.NODE_ENV !== "production" && (Bi.propTypes = { /** * Popper render function or node. */ - children: i.oneOfType([i.node, i.func]), + children: s.oneOfType([s.node, s.func]), /** * An HTML element or function that returns one. * The `container` will have the portal children appended to it. @@ -4783,24 +4782,24 @@ process.env.NODE_ENV !== "production" && (Bi.propTypes = { * By default, it uses the body of the top-level document object, * so it's simply `document.body` most of the time. */ - container: i.oneOfType([ot, i.func]), + container: s.oneOfType([at, s.func]), /** * Direction of the text. * @default 'ltr' */ - direction: i.oneOf(["ltr", "rtl"]), + direction: s.oneOf(["ltr", "rtl"]), /** * The `children` will be under the DOM hierarchy of the parent component. * @default false */ - disablePortal: i.bool, + disablePortal: s.bool, /** * Always keep the children in the DOM. * This prop can be useful in SEO situation or * when you want to maximize the responsiveness of the Popper. * @default false */ - keepMounted: i.bool, + keepMounted: s.bool, /** * Popper.js is based on a "plugin-like" architecture, * most of its features are fully encapsulated "modifiers". @@ -4810,71 +4809,71 @@ process.env.NODE_ENV !== "production" && (Bi.propTypes = { * For this reason, modifiers should be very performant to avoid bottlenecks. * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/). */ - modifiers: i.arrayOf(i.shape({ - data: i.object, - effect: i.func, - enabled: i.bool, - fn: i.func, - name: i.any, - options: i.object, - phase: i.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]), - requires: i.arrayOf(i.string), - requiresIfExists: i.arrayOf(i.string) + modifiers: s.arrayOf(s.shape({ + data: s.object, + effect: s.func, + enabled: s.bool, + fn: s.func, + name: s.any, + options: s.object, + phase: s.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]), + requires: s.arrayOf(s.string), + requiresIfExists: s.arrayOf(s.string) })), /** * If `true`, the component is shown. */ - open: i.bool.isRequired, + open: s.bool.isRequired, /** * Popper placement. * @default 'bottom' */ - placement: i.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]), + placement: s.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]), /** * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance. * @default {} */ - popperOptions: i.shape({ - modifiers: i.array, - onFirstUpdate: i.func, - placement: i.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]), - strategy: i.oneOf(["absolute", "fixed"]) + popperOptions: s.shape({ + modifiers: s.array, + onFirstUpdate: s.func, + placement: s.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]), + strategy: s.oneOf(["absolute", "fixed"]) }), /** * A ref that points to the used popper instance. */ - popperRef: ro, + popperRef: vo, /** * The props used for each slot inside the Popper. * @default {} */ - slotProps: i.shape({ - root: i.oneOfType([i.func, i.object]) + slotProps: s.shape({ + root: s.oneOfType([s.func, s.object]) }), /** * The components used for each slot inside the Popper. * Either a string to use a HTML element or a component. * @default {} */ - slots: i.shape({ - root: i.elementType + slots: s.shape({ + root: s.elementType }), /** * Help supporting a react-transition-group/Transition component. * @default false */ - transition: i.bool + transition: s.bool }); -const Ru = ["values", "unit", "step"], $u = (e) => { - const t = Object.keys(e).map((r) => ({ - key: r, - val: e[r] +const wd = ["values", "unit", "step"], xd = (e) => { + const t = Object.keys(e).map((n) => ({ + key: n, + val: e[n] })) || []; - return t.sort((r, n) => r.val - n.val), t.reduce((r, n) => N({}, r, { - [n.key]: n.val + return t.sort((n, r) => n.val - r.val), t.reduce((n, r) => C({}, n, { + [r.key]: r.val }), {}); }; -function _u(e) { +function Ed(e) { const { // The breakpoint **start** at this value. // For instance with the first breakpoint xs: [xs, sm). @@ -4890,47 +4889,47 @@ function _u(e) { xl: 1536 // large screen }, - unit: r = "px", - step: n = 5 - } = e, o = fe(e, Ru), a = $u(t), s = Object.keys(a); - function l(f) { - return `@media (min-width:${typeof t[f] == "number" ? t[f] : f}${r})`; + unit: n = "px", + step: r = 5 + } = e, o = he(e, wd), i = xd(t), a = Object.keys(i); + function l(b) { + return `@media (min-width:${typeof t[b] == "number" ? t[b] : b}${n})`; } - function c(f) { - return `@media (max-width:${(typeof t[f] == "number" ? t[f] : f) - n / 100}${r})`; + function c(b) { + return `@media (max-width:${(typeof t[b] == "number" ? t[b] : b) - r / 100}${n})`; } - function p(f, b) { - const y = s.indexOf(b); - return `@media (min-width:${typeof t[f] == "number" ? t[f] : f}${r}) and (max-width:${(y !== -1 && typeof t[s[y]] == "number" ? t[s[y]] : b) - n / 100}${r})`; + function u(b, p) { + const h = a.indexOf(p); + return `@media (min-width:${typeof t[b] == "number" ? t[b] : b}${n}) and (max-width:${(h !== -1 && typeof t[a[h]] == "number" ? t[a[h]] : p) - r / 100}${n})`; } - function u(f) { - return s.indexOf(f) + 1 < s.length ? p(f, s[s.indexOf(f) + 1]) : l(f); + function f(b) { + return a.indexOf(b) + 1 < a.length ? u(b, a[a.indexOf(b) + 1]) : l(b); } - function h(f) { - const b = s.indexOf(f); - return b === 0 ? l(s[1]) : b === s.length - 1 ? c(s[b]) : p(f, s[s.indexOf(f) + 1]).replace("@media", "@media not all and"); + function v(b) { + const p = a.indexOf(b); + return p === 0 ? l(a[1]) : p === a.length - 1 ? c(a[p]) : u(b, a[a.indexOf(b) + 1]).replace("@media", "@media not all and"); } - return N({ - keys: s, - values: a, + return C({ + keys: a, + values: i, up: l, down: c, - between: p, - only: u, - not: h, - unit: r + between: u, + only: f, + not: v, + unit: n }, o); } -const Mu = { +const kd = { borderRadius: 4 -}, Iu = Mu, Au = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.string, i.object, i.array]) : {}, ft = Au; -function ur(e, t) { - return t ? nt(e, t, { +}, Td = kd, Nd = process.env.NODE_ENV !== "production" ? s.oneOfType([s.number, s.string, s.object, s.array]) : {}, bt = Nd; +function wn(e, t) { + return t ? it(e, t, { clone: !1 // No need to clone deep, it's way faster. }) : e; } -const po = { +const Oo = { xs: 0, // phone sm: 600, @@ -4941,341 +4940,341 @@ const po = { // desktop xl: 1536 // large screen -}, xa = { +}, ji = { // Sorted ASC by size. That's important. // It can't be configured as it's used statically for propTypes. keys: ["xs", "sm", "md", "lg", "xl"], - up: (e) => `@media (min-width:${po[e]}px)` + up: (e) => `@media (min-width:${Oo[e]}px)` }; -function it(e, t, r) { - const n = e.theme || {}; +function lt(e, t, n) { + const r = e.theme || {}; if (Array.isArray(t)) { - const a = n.breakpoints || xa; - return t.reduce((s, l, c) => (s[a.up(a.keys[c])] = r(t[c]), s), {}); + const i = r.breakpoints || ji; + return t.reduce((a, l, c) => (a[i.up(i.keys[c])] = n(t[c]), a), {}); } if (typeof t == "object") { - const a = n.breakpoints || xa; - return Object.keys(t).reduce((s, l) => { - if (Object.keys(a.values || po).indexOf(l) !== -1) { - const c = a.up(l); - s[c] = r(t[l], l); + const i = r.breakpoints || ji; + return Object.keys(t).reduce((a, l) => { + if (Object.keys(i.values || Oo).indexOf(l) !== -1) { + const c = i.up(l); + a[c] = n(t[l], l); } else { const c = l; - s[c] = t[c]; + a[c] = t[c]; } - return s; + return a; }, {}); } - return r(t); + return n(t); } -function Du(e = {}) { +function Od(e = {}) { var t; - return ((t = e.keys) == null ? void 0 : t.reduce((n, o) => { - const a = e.up(o); - return n[a] = {}, n; + return ((t = e.keys) == null ? void 0 : t.reduce((r, o) => { + const i = e.up(o); + return r[i] = {}, r; }, {})) || {}; } -function ju(e, t) { - return e.reduce((r, n) => { - const o = r[n]; - return (!o || Object.keys(o).length === 0) && delete r[n], r; +function Cd(e, t) { + return e.reduce((n, r) => { + const o = n[r]; + return (!o || Object.keys(o).length === 0) && delete n[r], n; }, t); } -function rn(e, t, r = !0) { +function ur(e, t, n = !0) { if (!t || typeof t != "string") return null; - if (e && e.vars && r) { - const n = `vars.${t}`.split(".").reduce((o, a) => o && o[a] ? o[a] : null, e); - if (n != null) - return n; + if (e && e.vars && n) { + const r = `vars.${t}`.split(".").reduce((o, i) => o && o[i] ? o[i] : null, e); + if (r != null) + return r; } - return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e); + return t.split(".").reduce((r, o) => r && r[o] != null ? r[o] : null, e); } -function qr(e, t, r, n = r) { +function rr(e, t, n, r = n) { let o; - return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = rn(e, r) || n, t && (o = t(o, n, e)), o; + return typeof e == "function" ? o = e(n) : Array.isArray(e) ? o = e[n] || r : o = ur(e, n) || r, t && (o = t(o, r, e)), o; } -function xe(e) { +function Ee(e) { const { prop: t, - cssProperty: r = e.prop, - themeKey: n, + cssProperty: n = e.prop, + themeKey: r, transform: o - } = e, a = (s) => { - if (s[t] == null) + } = e, i = (a) => { + if (a[t] == null) return null; - const l = s[t], c = s.theme, p = rn(c, n) || {}; - return it(s, l, (h) => { - let f = qr(p, o, h); - return h === f && typeof h == "string" && (f = qr(p, o, `${t}${h === "default" ? "" : Ke(h)}`, h)), r === !1 ? f : { - [r]: f + const l = a[t], c = a.theme, u = ur(c, r) || {}; + return lt(a, l, (v) => { + let b = rr(u, o, v); + return v === b && typeof v == "string" && (b = rr(u, o, `${t}${v === "default" ? "" : Je(v)}`, v)), n === !1 ? b : { + [n]: b }; }); }; - return a.propTypes = process.env.NODE_ENV !== "production" ? { - [t]: ft - } : {}, a.filterProps = [t], a; + return i.propTypes = process.env.NODE_ENV !== "production" ? { + [t]: bt + } : {}, i.filterProps = [t], i; } -function Bu(e) { +function Sd(e) { const t = {}; - return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]); + return (n) => (t[n] === void 0 && (t[n] = e(n)), t[n]); } -const Lu = { +const Pd = { m: "margin", p: "padding" -}, Vu = { +}, Rd = { t: "Top", r: "Right", b: "Bottom", l: "Left", x: ["Left", "Right"], y: ["Top", "Bottom"] -}, Ea = { +}, Li = { marginX: "mx", marginY: "my", paddingX: "px", paddingY: "py" -}, Fu = Bu((e) => { +}, $d = Sd((e) => { if (e.length > 2) - if (Ea[e]) - e = Ea[e]; + if (Li[e]) + e = Li[e]; else return [e]; - const [t, r] = e.split(""), n = Lu[t], o = Vu[r] || ""; - return Array.isArray(o) ? o.map((a) => n + a) : [n + o]; -}), nn = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], on = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], zu = [...nn, ...on]; -function Er(e, t, r, n) { + const [t, n] = e.split(""), r = Pd[t], o = Rd[n] || ""; + return Array.isArray(o) ? o.map((i) => r + i) : [r + o]; +}), dr = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], fr = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], _d = [...dr, ...fr]; +function $n(e, t, n, r) { var o; - const a = (o = rn(e, t, !1)) != null ? o : r; - return typeof a == "number" ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && typeof s != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`), a * s) : Array.isArray(a) ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && (Number.isInteger(s) ? s > a.length - 1 && console.error([`MUI: The value provided (${s}) overflows.`, `The supported values are: ${JSON.stringify(a)}.`, `${s} > ${a.length - 1}, you need to add the missing values.`].join(` + const i = (o = ur(e, t, !1)) != null ? o : n; + return typeof i == "number" ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && typeof a != "number" && console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`), i * a) : Array.isArray(i) ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && (Number.isInteger(a) ? a > i.length - 1 && console.error([`MUI: The value provided (${a}) overflows.`, `The supported values are: ${JSON.stringify(i)}.`, `${a} > ${i.length - 1}, you need to add the missing values.`].join(` `)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(` -`))), a[s]) : typeof a == "function" ? a : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`, "It should be a number, an array or a function."].join(` +`))), i[a]) : typeof i == "function" ? i : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`, "It should be a number, an array or a function."].join(` `)), () => { }); } -function Li(e) { - return Er(e, "spacing", 8, "spacing"); +function cs(e) { + return $n(e, "spacing", 8, "spacing"); } -function Tr(e, t) { +function _n(e, t) { if (typeof t == "string" || t == null) return t; - const r = Math.abs(t), n = e(r); - return t >= 0 ? n : typeof n == "number" ? -n : `-${n}`; + const n = Math.abs(t), r = e(n); + return t >= 0 ? r : typeof r == "number" ? -r : `-${r}`; } -function Uu(e, t) { - return (r) => e.reduce((n, o) => (n[o] = Tr(t, r), n), {}); +function Md(e, t) { + return (n) => e.reduce((r, o) => (r[o] = _n(t, n), r), {}); } -function Hu(e, t, r, n) { - if (t.indexOf(r) === -1) +function Id(e, t, n, r) { + if (t.indexOf(n) === -1) return null; - const o = Fu(r), a = Uu(o, n), s = e[r]; - return it(e, s, a); -} -function Vi(e, t) { - const r = Li(e.theme); - return Object.keys(e).map((n) => Hu(e, t, n, r)).reduce(ur, {}); + const o = $d(n), i = Md(o, r), a = e[n]; + return lt(e, a, i); } -function be(e) { - return Vi(e, nn); +function ps(e, t) { + const n = cs(e.theme); + return Object.keys(e).map((r) => Id(e, t, r, n)).reduce(wn, {}); } -be.propTypes = process.env.NODE_ENV !== "production" ? nn.reduce((e, t) => (e[t] = ft, e), {}) : {}; -be.filterProps = nn; function ve(e) { - return Vi(e, on); + return ps(e, dr); } -ve.propTypes = process.env.NODE_ENV !== "production" ? on.reduce((e, t) => (e[t] = ft, e), {}) : {}; -ve.filterProps = on; -process.env.NODE_ENV !== "production" && zu.reduce((e, t) => (e[t] = ft, e), {}); -function Wu(e = 8) { +ve.propTypes = process.env.NODE_ENV !== "production" ? dr.reduce((e, t) => (e[t] = bt, e), {}) : {}; +ve.filterProps = dr; +function ye(e) { + return ps(e, fr); +} +ye.propTypes = process.env.NODE_ENV !== "production" ? fr.reduce((e, t) => (e[t] = bt, e), {}) : {}; +ye.filterProps = fr; +process.env.NODE_ENV !== "production" && _d.reduce((e, t) => (e[t] = bt, e), {}); +function Ad(e = 8) { if (e.mui) return e; - const t = Li({ + const t = cs({ spacing: e - }), r = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((a) => { - const s = t(a); - return typeof s == "number" ? `${s}px` : s; + }), n = (...r) => (process.env.NODE_ENV !== "production" && (r.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)), (r.length === 0 ? [1] : r).map((i) => { + const a = t(i); + return typeof a == "number" ? `${a}px` : a; }).join(" ")); - return r.mui = !0, r; + return n.mui = !0, n; } -function an(...e) { - const t = e.reduce((n, o) => (o.filterProps.forEach((a) => { - n[a] = o; - }), n), {}), r = (n) => Object.keys(n).reduce((o, a) => t[a] ? ur(o, t[a](n)) : o, {}); - return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r; +function hr(...e) { + const t = e.reduce((r, o) => (o.filterProps.forEach((i) => { + r[i] = o; + }), r), {}), n = (r) => Object.keys(r).reduce((o, i) => t[i] ? wn(o, t[i](r)) : o, {}); + return n.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((r, o) => Object.assign(r, o.propTypes), {}) : {}, n.filterProps = e.reduce((r, o) => r.concat(o.filterProps), []), n; } -function Fe(e) { +function ze(e) { return typeof e != "number" ? e : `${e}px solid`; } -function Xe(e, t) { - return xe({ +function Ge(e, t) { + return Ee({ prop: e, themeKey: "borders", transform: t }); } -const Xu = Xe("border", Fe), qu = Xe("borderTop", Fe), Yu = Xe("borderRight", Fe), Gu = Xe("borderBottom", Fe), Ku = Xe("borderLeft", Fe), Ju = Xe("borderColor"), Zu = Xe("borderTopColor"), Qu = Xe("borderRightColor"), ed = Xe("borderBottomColor"), td = Xe("borderLeftColor"), rd = Xe("outline", Fe), nd = Xe("outlineColor"), sn = (e) => { +const Dd = Ge("border", ze), Bd = Ge("borderTop", ze), jd = Ge("borderRight", ze), Ld = Ge("borderBottom", ze), Fd = Ge("borderLeft", ze), Vd = Ge("borderColor"), zd = Ge("borderTopColor"), Ud = Ge("borderRightColor"), Hd = Ge("borderBottomColor"), Wd = Ge("borderLeftColor"), Xd = Ge("outline", ze), Gd = Ge("outlineColor"), mr = (e) => { if (e.borderRadius !== void 0 && e.borderRadius !== null) { - const t = Er(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({ - borderRadius: Tr(t, n) + const t = $n(e.theme, "shape.borderRadius", 4, "borderRadius"), n = (r) => ({ + borderRadius: _n(t, r) }); - return it(e, e.borderRadius, r); + return lt(e, e.borderRadius, n); } return null; }; -sn.propTypes = process.env.NODE_ENV !== "production" ? { - borderRadius: ft +mr.propTypes = process.env.NODE_ENV !== "production" ? { + borderRadius: bt } : {}; -sn.filterProps = ["borderRadius"]; -an(Xu, qu, Yu, Gu, Ku, Ju, Zu, Qu, ed, td, sn, rd, nd); -const ln = (e) => { +mr.filterProps = ["borderRadius"]; +hr(Dd, Bd, jd, Ld, Fd, Vd, zd, Ud, Hd, Wd, mr, Xd, Gd); +const gr = (e) => { if (e.gap !== void 0 && e.gap !== null) { - const t = Er(e.theme, "spacing", 8, "gap"), r = (n) => ({ - gap: Tr(t, n) + const t = $n(e.theme, "spacing", 8, "gap"), n = (r) => ({ + gap: _n(t, r) }); - return it(e, e.gap, r); + return lt(e, e.gap, n); } return null; }; -ln.propTypes = process.env.NODE_ENV !== "production" ? { - gap: ft +gr.propTypes = process.env.NODE_ENV !== "production" ? { + gap: bt } : {}; -ln.filterProps = ["gap"]; -const cn = (e) => { +gr.filterProps = ["gap"]; +const br = (e) => { if (e.columnGap !== void 0 && e.columnGap !== null) { - const t = Er(e.theme, "spacing", 8, "columnGap"), r = (n) => ({ - columnGap: Tr(t, n) + const t = $n(e.theme, "spacing", 8, "columnGap"), n = (r) => ({ + columnGap: _n(t, r) }); - return it(e, e.columnGap, r); + return lt(e, e.columnGap, n); } return null; }; -cn.propTypes = process.env.NODE_ENV !== "production" ? { - columnGap: ft +br.propTypes = process.env.NODE_ENV !== "production" ? { + columnGap: bt } : {}; -cn.filterProps = ["columnGap"]; -const pn = (e) => { +br.filterProps = ["columnGap"]; +const vr = (e) => { if (e.rowGap !== void 0 && e.rowGap !== null) { - const t = Er(e.theme, "spacing", 8, "rowGap"), r = (n) => ({ - rowGap: Tr(t, n) + const t = $n(e.theme, "spacing", 8, "rowGap"), n = (r) => ({ + rowGap: _n(t, r) }); - return it(e, e.rowGap, r); + return lt(e, e.rowGap, n); } return null; }; -pn.propTypes = process.env.NODE_ENV !== "production" ? { - rowGap: ft +vr.propTypes = process.env.NODE_ENV !== "production" ? { + rowGap: bt } : {}; -pn.filterProps = ["rowGap"]; -const od = xe({ +vr.filterProps = ["rowGap"]; +const qd = Ee({ prop: "gridColumn" -}), ad = xe({ +}), Yd = Ee({ prop: "gridRow" -}), id = xe({ +}), Kd = Ee({ prop: "gridAutoFlow" -}), sd = xe({ +}), Jd = Ee({ prop: "gridAutoColumns" -}), ld = xe({ +}), Zd = Ee({ prop: "gridAutoRows" -}), cd = xe({ +}), Qd = Ee({ prop: "gridTemplateColumns" -}), pd = xe({ +}), ef = Ee({ prop: "gridTemplateRows" -}), ud = xe({ +}), tf = Ee({ prop: "gridTemplateAreas" -}), dd = xe({ +}), nf = Ee({ prop: "gridArea" }); -an(ln, cn, pn, od, ad, id, sd, ld, cd, pd, ud, dd); -function jt(e, t) { +hr(gr, br, vr, qd, Yd, Kd, Jd, Zd, Qd, ef, tf, nf); +function Ht(e, t) { return t === "grey" ? t : e; } -const fd = xe({ +const rf = Ee({ prop: "color", themeKey: "palette", - transform: jt -}), hd = xe({ + transform: Ht +}), of = Ee({ prop: "bgcolor", cssProperty: "backgroundColor", themeKey: "palette", - transform: jt -}), md = xe({ + transform: Ht +}), af = Ee({ prop: "backgroundColor", themeKey: "palette", - transform: jt + transform: Ht }); -an(fd, hd, md); -function Be(e) { +hr(rf, of, af); +function Le(e) { return e <= 1 && e !== 0 ? `${e * 100}%` : e; } -const gd = xe({ +const sf = Ee({ prop: "width", - transform: Be -}), uo = (e) => { + transform: Le +}), Co = (e) => { if (e.maxWidth !== void 0 && e.maxWidth !== null) { - const t = (r) => { - var n, o; - const a = ((n = e.theme) == null || (n = n.breakpoints) == null || (n = n.values) == null ? void 0 : n[r]) || po[r]; - return a ? ((o = e.theme) == null || (o = o.breakpoints) == null ? void 0 : o.unit) !== "px" ? { - maxWidth: `${a}${e.theme.breakpoints.unit}` + const t = (n) => { + var r, o; + const i = ((r = e.theme) == null || (r = r.breakpoints) == null || (r = r.values) == null ? void 0 : r[n]) || Oo[n]; + return i ? ((o = e.theme) == null || (o = o.breakpoints) == null ? void 0 : o.unit) !== "px" ? { + maxWidth: `${i}${e.theme.breakpoints.unit}` } : { - maxWidth: a + maxWidth: i } : { - maxWidth: Be(r) + maxWidth: Le(n) }; }; - return it(e, e.maxWidth, t); + return lt(e, e.maxWidth, t); } return null; }; -uo.filterProps = ["maxWidth"]; -const bd = xe({ +Co.filterProps = ["maxWidth"]; +const lf = Ee({ prop: "minWidth", - transform: Be -}), vd = xe({ + transform: Le +}), cf = Ee({ prop: "height", - transform: Be -}), yd = xe({ + transform: Le +}), pf = Ee({ prop: "maxHeight", - transform: Be -}), wd = xe({ + transform: Le +}), uf = Ee({ prop: "minHeight", - transform: Be + transform: Le }); -xe({ +Ee({ prop: "size", cssProperty: "width", - transform: Be + transform: Le }); -xe({ +Ee({ prop: "size", cssProperty: "height", - transform: Be + transform: Le }); -const xd = xe({ +const df = Ee({ prop: "boxSizing" }); -an(gd, uo, bd, vd, yd, wd, xd); -const Ed = { +hr(sf, Co, lf, cf, pf, uf, df); +const ff = { // borders border: { themeKey: "borders", - transform: Fe + transform: ze }, borderTop: { themeKey: "borders", - transform: Fe + transform: ze }, borderRight: { themeKey: "borders", - transform: Fe + transform: ze }, borderBottom: { themeKey: "borders", - transform: Fe + transform: ze }, borderLeft: { themeKey: "borders", - transform: Fe + transform: ze }, borderColor: { themeKey: "palette" @@ -5294,149 +5293,149 @@ const Ed = { }, outline: { themeKey: "borders", - transform: Fe + transform: ze }, outlineColor: { themeKey: "palette" }, borderRadius: { themeKey: "shape.borderRadius", - style: sn + style: mr }, // palette color: { themeKey: "palette", - transform: jt + transform: Ht }, bgcolor: { themeKey: "palette", cssProperty: "backgroundColor", - transform: jt + transform: Ht }, backgroundColor: { themeKey: "palette", - transform: jt + transform: Ht }, // spacing p: { - style: ve + style: ye }, pt: { - style: ve + style: ye }, pr: { - style: ve + style: ye }, pb: { - style: ve + style: ye }, pl: { - style: ve + style: ye }, px: { - style: ve + style: ye }, py: { - style: ve + style: ye }, padding: { - style: ve + style: ye }, paddingTop: { - style: ve + style: ye }, paddingRight: { - style: ve + style: ye }, paddingBottom: { - style: ve + style: ye }, paddingLeft: { - style: ve + style: ye }, paddingX: { - style: ve + style: ye }, paddingY: { - style: ve + style: ye }, paddingInline: { - style: ve + style: ye }, paddingInlineStart: { - style: ve + style: ye }, paddingInlineEnd: { - style: ve + style: ye }, paddingBlock: { - style: ve + style: ye }, paddingBlockStart: { - style: ve + style: ye }, paddingBlockEnd: { - style: ve + style: ye }, m: { - style: be + style: ve }, mt: { - style: be + style: ve }, mr: { - style: be + style: ve }, mb: { - style: be + style: ve }, ml: { - style: be + style: ve }, mx: { - style: be + style: ve }, my: { - style: be + style: ve }, margin: { - style: be + style: ve }, marginTop: { - style: be + style: ve }, marginRight: { - style: be + style: ve }, marginBottom: { - style: be + style: ve }, marginLeft: { - style: be + style: ve }, marginX: { - style: be + style: ve }, marginY: { - style: be + style: ve }, marginInline: { - style: be + style: ve }, marginInlineStart: { - style: be + style: ve }, marginInlineEnd: { - style: be + style: ve }, marginBlock: { - style: be + style: ve }, marginBlockStart: { - style: be + style: ve }, marginBlockEnd: { - style: be + style: ve }, // display displayPrint: { @@ -5468,13 +5467,13 @@ const Ed = { justifySelf: {}, // grid gap: { - style: ln + style: gr }, rowGap: { - style: pn + style: vr }, columnGap: { - style: cn + style: br }, gridColumn: {}, gridRow: {}, @@ -5500,22 +5499,22 @@ const Ed = { }, // sizing width: { - transform: Be + transform: Le }, maxWidth: { - style: uo + style: Co }, minWidth: { - transform: Be + transform: Le }, height: { - transform: Be + transform: Le }, maxHeight: { - transform: Be + transform: Le }, minHeight: { - transform: Be + transform: Le }, boxSizing: {}, // typography @@ -5539,377 +5538,377 @@ const Ed = { cssProperty: !1, themeKey: "typography" } -}, fo = Ed; -function Td(...e) { - const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t); - return e.every((n) => r.size === Object.keys(n).length); +}, So = ff; +function hf(...e) { + const t = e.reduce((r, o) => r.concat(Object.keys(o)), []), n = new Set(t); + return e.every((r) => n.size === Object.keys(r).length); } -function kd(e, t) { +function mf(e, t) { return typeof e == "function" ? e(t) : e; } -function Nd() { - function e(r, n, o, a) { - const s = { - [r]: n, +function gf() { + function e(n, r, o, i) { + const a = { + [n]: r, theme: o - }, l = a[r]; + }, l = i[n]; if (!l) return { - [r]: n + [n]: r }; const { - cssProperty: c = r, - themeKey: p, - transform: u, - style: h + cssProperty: c = n, + themeKey: u, + transform: f, + style: v } = l; - if (n == null) + if (r == null) return null; - if (p === "typography" && n === "inherit") + if (u === "typography" && r === "inherit") return { - [r]: n + [n]: r }; - const f = rn(o, p) || {}; - return h ? h(s) : it(s, n, (y) => { - let v = qr(f, u, y); - return y === v && typeof y == "string" && (v = qr(f, u, `${r}${y === "default" ? "" : Ke(y)}`, y)), c === !1 ? v : { - [c]: v + const b = ur(o, u) || {}; + return v ? v(a) : lt(a, r, (h) => { + let d = rr(b, f, h); + return h === d && typeof h == "string" && (d = rr(b, f, `${n}${h === "default" ? "" : Je(h)}`, h)), c === !1 ? d : { + [c]: d }; }); } - function t(r) { - var n; + function t(n) { + var r; const { sx: o, - theme: a = {} - } = r || {}; + theme: i = {} + } = n || {}; if (!o) return null; - const s = (n = a.unstable_sxConfig) != null ? n : fo; + const a = (r = i.unstable_sxConfig) != null ? r : So; function l(c) { - let p = c; + let u = c; if (typeof c == "function") - p = c(a); + u = c(i); else if (typeof c != "object") return c; - if (!p) + if (!u) return null; - const u = Du(a.breakpoints), h = Object.keys(u); - let f = u; - return Object.keys(p).forEach((b) => { - const y = kd(p[b], a); - if (y != null) - if (typeof y == "object") - if (s[b]) - f = ur(f, e(b, y, a, s)); + const f = Od(i.breakpoints), v = Object.keys(f); + let b = f; + return Object.keys(u).forEach((p) => { + const h = mf(u[p], i); + if (h != null) + if (typeof h == "object") + if (a[p]) + b = wn(b, e(p, h, i, a)); else { - const v = it({ - theme: a - }, y, (m) => ({ - [b]: m + const d = lt({ + theme: i + }, h, (g) => ({ + [p]: g })); - Td(v, y) ? f[b] = t({ - sx: y, - theme: a - }) : f = ur(f, v); + hf(d, h) ? b[p] = t({ + sx: h, + theme: i + }) : b = wn(b, d); } else - f = ur(f, e(b, y, a, s)); - }), ju(h, f); + b = wn(b, e(p, h, i, a)); + }), Cd(v, b); } return Array.isArray(o) ? o.map(l) : l(o); } return t; } -const Fi = Nd(); -Fi.filterProps = ["sx"]; -const ho = Fi; -function Od(e, t) { - const r = this; - return r.vars && typeof r.getColorSchemeSelector == "function" ? { - [r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/, "*:where($1)")]: t - } : r.palette.mode === e ? t : {}; -} -const Cd = ["breakpoints", "palette", "spacing", "shape"]; -function mo(e = {}, ...t) { +const us = gf(); +us.filterProps = ["sx"]; +const Po = us; +function bf(e, t) { + const n = this; + return n.vars && typeof n.getColorSchemeSelector == "function" ? { + [n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/, "*:where($1)")]: t + } : n.palette.mode === e ? t : {}; +} +const vf = ["breakpoints", "palette", "spacing", "shape"]; +function Ro(e = {}, ...t) { const { - breakpoints: r = {}, - palette: n = {}, + breakpoints: n = {}, + palette: r = {}, spacing: o, - shape: a = {} - } = e, s = fe(e, Cd), l = _u(r), c = Wu(o); - let p = nt({ + shape: i = {} + } = e, a = he(e, vf), l = Ed(n), c = Ad(o); + let u = it({ breakpoints: l, direction: "ltr", components: {}, // Inject component definitions. - palette: N({ + palette: C({ mode: "light" - }, n), + }, r), spacing: c, - shape: N({}, Iu, a) - }, s); - return p.applyStyles = Od, p = t.reduce((u, h) => nt(u, h), p), p.unstable_sxConfig = N({}, fo, s == null ? void 0 : s.unstable_sxConfig), p.unstable_sx = function(h) { - return ho({ - sx: h, + shape: C({}, Td, i) + }, a); + return u.applyStyles = bf, u = t.reduce((f, v) => it(f, v), u), u.unstable_sxConfig = C({}, So, a == null ? void 0 : a.unstable_sxConfig), u.unstable_sx = function(v) { + return Po({ + sx: v, theme: this }); - }, p; + }, u; } -function Sd(e) { +function yf(e) { return Object.keys(e).length === 0; } -function zi(e = null) { - const t = T.useContext(hl); - return !t || Sd(t) ? e : t; +function ds(e = null) { + const t = k.useContext(oc); + return !t || yf(t) ? e : t; } -const Pd = mo(); -function Ui(e = Pd) { - return zi(e); +const wf = Ro(); +function fs(e = wf) { + return ds(e); } -const Rd = ["ownerState"], $d = ["variants"], _d = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"]; -function Md(e) { +const xf = ["ownerState"], Ef = ["variants"], kf = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"]; +function Tf(e) { return Object.keys(e).length === 0; } -function Id(e) { +function Nf(e) { return typeof e == "string" && // 96 is one less than the char code // for "a" so this is checking that // it's a lowercase character e.charCodeAt(0) > 96; } -function Dr(e) { +function Wn(e) { return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"; } -const Ad = mo(), Ta = (e) => e && e.charAt(0).toLowerCase() + e.slice(1); -function $r({ +const Of = Ro(), Fi = (e) => e && e.charAt(0).toLowerCase() + e.slice(1); +function Fn({ defaultTheme: e, theme: t, - themeId: r + themeId: n }) { - return Md(t) ? e : t[r] || t; + return Tf(t) ? e : t[n] || t; } -function Dd(e) { - return e ? (t, r) => r[e] : null; +function Cf(e) { + return e ? (t, n) => n[e] : null; } -function jr(e, t) { +function Xn(e, t) { let { - ownerState: r - } = t, n = fe(t, Rd); - const o = typeof e == "function" ? e(N({ - ownerState: r - }, n)) : e; + ownerState: n + } = t, r = he(t, xf); + const o = typeof e == "function" ? e(C({ + ownerState: n + }, r)) : e; if (Array.isArray(o)) - return o.flatMap((a) => jr(a, N({ - ownerState: r - }, n))); + return o.flatMap((i) => Xn(i, C({ + ownerState: n + }, r))); if (o && typeof o == "object" && Array.isArray(o.variants)) { const { - variants: a = [] + variants: i = [] } = o; - let l = fe(o, $d); - return a.forEach((c) => { - let p = !0; - typeof c.props == "function" ? p = c.props(N({ - ownerState: r - }, n, r)) : Object.keys(c.props).forEach((u) => { - (r == null ? void 0 : r[u]) !== c.props[u] && n[u] !== c.props[u] && (p = !1); - }), p && (Array.isArray(l) || (l = [l]), l.push(typeof c.style == "function" ? c.style(N({ - ownerState: r - }, n, r)) : c.style)); + let l = he(o, Ef); + return i.forEach((c) => { + let u = !0; + typeof c.props == "function" ? u = c.props(C({ + ownerState: n + }, r, n)) : Object.keys(c.props).forEach((f) => { + (n == null ? void 0 : n[f]) !== c.props[f] && r[f] !== c.props[f] && (u = !1); + }), u && (Array.isArray(l) || (l = [l]), l.push(typeof c.style == "function" ? c.style(C({ + ownerState: n + }, r, n)) : c.style)); }), l; } return o; } -function jd(e = {}) { +function Sf(e = {}) { const { themeId: t, - defaultTheme: r = Ad, - rootShouldForwardProp: n = Dr, - slotShouldForwardProp: o = Dr - } = e, a = (s) => ho(N({}, s, { - theme: $r(N({}, s, { - defaultTheme: r, + defaultTheme: n = Of, + rootShouldForwardProp: r = Wn, + slotShouldForwardProp: o = Wn + } = e, i = (a) => Po(C({}, a, { + theme: Fn(C({}, a, { + defaultTheme: n, themeId: t })) })); - return a.__mui_systemSx = !0, (s, l = {}) => { - ml(s, (g) => g.filter((O) => !(O != null && O.__mui_systemSx))); + return i.__mui_systemSx = !0, (a, l = {}) => { + ic(a, (y) => y.filter((N) => !(N != null && N.__mui_systemSx))); const { name: c, - slot: p, - skipVariantsResolver: u, - skipSx: h, + slot: u, + skipVariantsResolver: f, + skipSx: v, // TODO v6: remove `lowercaseFirstLetter()` in the next major release // For more details: https://github.com/mui/material-ui/pull/37908 - overridesResolver: f = Dd(Ta(p)) - } = l, b = fe(l, _d), y = u !== void 0 ? u : ( + overridesResolver: b = Cf(Fi(u)) + } = l, p = he(l, kf), h = f !== void 0 ? f : ( // TODO v6: remove `Root` in the next major release // For more details: https://github.com/mui/material-ui/pull/37908 - p && p !== "Root" && p !== "root" || !1 - ), v = h || !1; - let m; - process.env.NODE_ENV !== "production" && c && (m = `${c}-${Ta(p || "Root")}`); - let x = Dr; - p === "Root" || p === "root" ? x = n : p ? x = o : Id(s) && (x = void 0); - const I = fl(s, N({ - shouldForwardProp: x, - label: m - }, b)), w = (g) => typeof g == "function" && g.__emotion_real !== g || yt(g) ? (O) => jr(g, N({}, O, { - theme: $r({ - theme: O.theme, - defaultTheme: r, + u && u !== "Root" && u !== "root" || !1 + ), d = v || !1; + let g; + process.env.NODE_ENV !== "production" && c && (g = `${c}-${Fi(u || "Root")}`); + let w = Wn; + u === "Root" || u === "root" ? w = r : u ? w = o : Nf(a) && (w = void 0); + const S = rc(a, C({ + shouldForwardProp: w, + label: g + }, p)), x = (y) => typeof y == "function" && y.__emotion_real !== y || kt(y) ? (N) => Xn(y, C({}, N, { + theme: Fn({ + theme: N.theme, + defaultTheme: n, themeId: t }) - })) : g, E = (g, ...O) => { - let S = w(g); - const L = O ? O.map(w) : []; - c && f && L.push((C) => { - const _ = $r(N({}, C, { - defaultTheme: r, + })) : y, E = (y, ...N) => { + let T = x(y); + const _ = N ? N.map(x) : []; + c && b && _.push((P) => { + const I = Fn(C({}, P, { + defaultTheme: n, themeId: t })); - if (!_.components || !_.components[c] || !_.components[c].styleOverrides) + if (!I.components || !I.components[c] || !I.components[c].styleOverrides) return null; - const M = _.components[c].styleOverrides, B = {}; - return Object.entries(M).forEach(([z, P]) => { - B[z] = jr(P, N({}, C, { - theme: _ + const A = I.components[c].styleOverrides, F = {}; + return Object.entries(A).forEach(([z, R]) => { + F[z] = Xn(R, C({}, P, { + theme: I })); - }), f(C, B); - }), c && !y && L.push((C) => { - var _; - const M = $r(N({}, C, { - defaultTheme: r, + }), b(P, F); + }), c && !h && _.push((P) => { + var I; + const A = Fn(C({}, P, { + defaultTheme: n, themeId: t - })), B = M == null || (_ = M.components) == null || (_ = _[c]) == null ? void 0 : _.variants; - return jr({ - variants: B - }, N({}, C, { - theme: M + })), F = A == null || (I = A.components) == null || (I = I[c]) == null ? void 0 : I.variants; + return Xn({ + variants: F + }, C({}, P, { + theme: A })); - }), v || L.push(a); - const D = L.length - O.length; - if (Array.isArray(g) && D > 0) { - const C = new Array(D).fill(""); - S = [...g, ...C], S.raw = [...g.raw, ...C]; + }), d || _.push(i); + const D = _.length - N.length; + if (Array.isArray(y) && D > 0) { + const P = new Array(D).fill(""); + T = [...y, ...P], T.raw = [...y.raw, ...P]; } - const V = I(S, ...L); + const j = S(T, ..._); if (process.env.NODE_ENV !== "production") { - let C; - c && (C = `${c}${Ke(p || "")}`), C === void 0 && (C = `Styled(${xc(s)})`), V.displayName = C; + let P; + c && (P = `${c}${Je(u || "")}`), P === void 0 && (P = `Styled(${up(a)})`), j.displayName = P; } - return s.muiName && (V.muiName = s.muiName), V; + return a.muiName && (j.muiName = a.muiName), j; }; - return I.withConfig && (E.withConfig = I.withConfig), E; + return S.withConfig && (E.withConfig = S.withConfig), E; }; } -function Bd(e) { +function Pf(e) { const { theme: t, - name: r, - props: n + name: n, + props: r } = e; - return !t || !t.components || !t.components[r] || !t.components[r].defaultProps ? n : xi(t.components[r].defaultProps, n); + return !t || !t.components || !t.components[n] || !t.components[n].defaultProps ? r : Wa(t.components[n].defaultProps, r); } -function Ld({ +function Rf({ props: e, name: t, - defaultTheme: r, - themeId: n + defaultTheme: n, + themeId: r }) { - let o = Ui(r); - return n && (o = o[n] || o), Bd({ + let o = fs(n); + return r && (o = o[r] || o), Pf({ theme: o, name: t, props: e }); } -function go(e, t = 0, r = 1) { - return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), Hc(e, t, r); +function $o(e, t = 0, n = 1) { + return process.env.NODE_ENV !== "production" && (e < t || e > n) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`), Ip(e, t, n); } -function Vd(e) { +function $f(e) { e = e.slice(1); const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g"); - let r = e.match(t); - return r && r[0].length === 1 && (r = r.map((n) => n + n)), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : ""; + let n = e.match(t); + return n && n[0].length === 1 && (n = n.map((r) => r + r)), n ? `rgb${n.length === 4 ? "a" : ""}(${n.map((r, o) => o < 3 ? parseInt(r, 16) : Math.round(parseInt(r, 16) / 255 * 1e3) / 1e3).join(", ")})` : ""; } -function Ot(e) { +function $t(e) { if (e.type) return e; if (e.charAt(0) === "#") - return Ot(Vd(e)); - const t = e.indexOf("("), r = e.substring(0, t); - if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(r) === -1) + return $t($f(e)); + const t = e.indexOf("("), n = e.substring(0, t); + if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(n) === -1) throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color. -The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Bt(9, e)); - let n = e.substring(t + 1, e.length - 1), o; - if (r === "color") { - if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1) +The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Wt(9, e)); + let r = e.substring(t + 1, e.length - 1), o; + if (n === "color") { + if (r = r.split(" "), o = r.shift(), r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1) throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space. -The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Bt(10, o)); +The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Wt(10, o)); } else - n = n.split(","); - return n = n.map((a) => parseFloat(a)), { - type: r, - values: n, + r = r.split(","); + return r = r.map((i) => parseFloat(i)), { + type: n, + values: r, colorSpace: o }; } -function un(e) { +function yr(e) { const { type: t, - colorSpace: r + colorSpace: n } = e; let { - values: n + values: r } = e; - return t.indexOf("rgb") !== -1 ? n = n.map((o, a) => a < 3 ? parseInt(o, 10) : o) : t.indexOf("hsl") !== -1 && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.indexOf("color") !== -1 ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`; + return t.indexOf("rgb") !== -1 ? r = r.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.indexOf("hsl") !== -1 && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`), t.indexOf("color") !== -1 ? r = `${n} ${r.join(" ")}` : r = `${r.join(", ")}`, `${t}(${r})`; } -function Fd(e) { - e = Ot(e); +function _f(e) { + e = $t(e); const { values: t - } = e, r = t[0], n = t[1] / 100, o = t[2] / 100, a = n * Math.min(o, 1 - o), s = (p, u = (p + r / 30) % 12) => o - a * Math.max(Math.min(u - 3, 9 - u, 1), -1); + } = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o), a = (u, f = (u + n / 30) % 12) => o - i * Math.max(Math.min(f - 3, 9 - f, 1), -1); let l = "rgb"; - const c = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)]; - return e.type === "hsla" && (l += "a", c.push(t[3])), un({ + const c = [Math.round(a(0) * 255), Math.round(a(8) * 255), Math.round(a(4) * 255)]; + return e.type === "hsla" && (l += "a", c.push(t[3])), yr({ type: l, values: c }); } -function ka(e) { - e = Ot(e); - let t = e.type === "hsl" || e.type === "hsla" ? Ot(Fd(e)).values : e.values; - return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3)); +function Vi(e) { + e = $t(e); + let t = e.type === "hsl" || e.type === "hsla" ? $t(_f(e)).values : e.values; + return t = t.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3)); } -function Na(e, t) { - const r = ka(e), n = ka(t); - return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05); +function zi(e, t) { + const n = Vi(e), r = Vi(t); + return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05); } -function Yr(e, t) { - return e = Ot(e), t = go(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, un(e); +function or(e, t) { + return e = $t(e), t = $o(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, yr(e); } -function zd(e, t) { - if (e = Ot(e), t = go(t), e.type.indexOf("hsl") !== -1) +function Mf(e, t) { + if (e = $t(e), t = $o(t), e.type.indexOf("hsl") !== -1) e.values[2] *= 1 - t; else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1) - for (let r = 0; r < 3; r += 1) - e.values[r] *= 1 - t; - return un(e); + for (let n = 0; n < 3; n += 1) + e.values[n] *= 1 - t; + return yr(e); } -function Ud(e, t) { - if (e = Ot(e), t = go(t), e.type.indexOf("hsl") !== -1) +function If(e, t) { + if (e = $t(e), t = $o(t), e.type.indexOf("hsl") !== -1) e.values[2] += (100 - e.values[2]) * t; else if (e.type.indexOf("rgb") !== -1) - for (let r = 0; r < 3; r += 1) - e.values[r] += (255 - e.values[r]) * t; + for (let n = 0; n < 3; n += 1) + e.values[n] += (255 - e.values[n]) * t; else if (e.type.indexOf("color") !== -1) - for (let r = 0; r < 3; r += 1) - e.values[r] += (1 - e.values[r]) * t; - return un(e); + for (let n = 0; n < 3; n += 1) + e.values[n] += (1 - e.values[n]) * t; + return yr(e); } -function Hd(e, t) { - return N({ +function Af(e, t) { + return C({ toolbar: { minHeight: 56, [e.up("xs")]: { @@ -5923,10 +5922,10 @@ function Hd(e, t) { } }, t); } -const Wd = { +const Df = { black: "#000", white: "#fff" -}, br = Wd, Xd = { +}, On = Df, Bf = { 50: "#fafafa", 100: "#f5f5f5", 200: "#eeeeee", @@ -5941,7 +5940,7 @@ const Wd = { A200: "#eeeeee", A400: "#bdbdbd", A700: "#616161" -}, qd = Xd, Yd = { +}, jf = Bf, Lf = { 50: "#f3e5f5", 100: "#e1bee7", 200: "#ce93d8", @@ -5956,7 +5955,7 @@ const Wd = { A200: "#e040fb", A400: "#d500f9", A700: "#aa00ff" -}, St = Yd, Gd = { +}, It = Lf, Ff = { 50: "#ffebee", 100: "#ffcdd2", 200: "#ef9a9a", @@ -5971,7 +5970,7 @@ const Wd = { A200: "#ff5252", A400: "#ff1744", A700: "#d50000" -}, Pt = Gd, Kd = { +}, At = Ff, Vf = { 50: "#fff3e0", 100: "#ffe0b2", 200: "#ffcc80", @@ -5986,7 +5985,7 @@ const Wd = { A200: "#ffab40", A400: "#ff9100", A700: "#ff6d00" -}, er = Kd, Jd = { +}, ln = Vf, zf = { 50: "#e3f2fd", 100: "#bbdefb", 200: "#90caf9", @@ -6001,7 +6000,7 @@ const Wd = { A200: "#448aff", A400: "#2979ff", A700: "#2962ff" -}, Rt = Jd, Zd = { +}, Dt = zf, Uf = { 50: "#e1f5fe", 100: "#b3e5fc", 200: "#81d4fa", @@ -6016,7 +6015,7 @@ const Wd = { A200: "#40c4ff", A400: "#00b0ff", A700: "#0091ea" -}, $t = Zd, Qd = { +}, Bt = Uf, Hf = { 50: "#e8f5e9", 100: "#c8e6c9", 200: "#a5d6a7", @@ -6031,7 +6030,7 @@ const Wd = { A200: "#69f0ae", A400: "#00e676", A700: "#00c853" -}, _t = Qd, ef = ["mode", "contrastThreshold", "tonalOffset"], Oa = { +}, jt = Hf, Wf = ["mode", "contrastThreshold", "tonalOffset"], Ui = { // The colors used to style the text. text: { // The most important text. @@ -6046,8 +6045,8 @@ const Wd = { // The background colors used to style the surfaces. // Consistency between these values is important. background: { - paper: br.white, - default: br.white + paper: On.white, + default: On.white }, // The colors used to style the action elements. action: { @@ -6068,9 +6067,9 @@ const Wd = { focusOpacity: 0.12, activatedOpacity: 0.12 } -}, Nn = { +}, Mr = { text: { - primary: br.white, + primary: On.white, secondary: "rgba(255, 255, 255, 0.7)", disabled: "rgba(255, 255, 255, 0.5)", icon: "rgba(255, 255, 255, 0.5)" @@ -6081,7 +6080,7 @@ const Wd = { default: "#121212" }, action: { - active: br.white, + active: On.white, hover: "rgba(255, 255, 255, 0.08)", hoverOpacity: 0.08, selected: "rgba(255, 255, 255, 0.16)", @@ -6094,105 +6093,105 @@ const Wd = { activatedOpacity: 0.24 } }; -function Ca(e, t, r, n) { - const o = n.light || n, a = n.dark || n * 1.5; - e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = Ud(e.main, o) : t === "dark" && (e.dark = zd(e.main, a))); +function Hi(e, t, n, r) { + const o = r.light || r, i = r.dark || r * 1.5; + e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : t === "light" ? e.light = If(e.main, o) : t === "dark" && (e.dark = Mf(e.main, i))); } -function tf(e = "light") { +function Xf(e = "light") { return e === "dark" ? { - main: Rt[200], - light: Rt[50], - dark: Rt[400] + main: Dt[200], + light: Dt[50], + dark: Dt[400] } : { - main: Rt[700], - light: Rt[400], - dark: Rt[800] + main: Dt[700], + light: Dt[400], + dark: Dt[800] }; } -function rf(e = "light") { +function Gf(e = "light") { return e === "dark" ? { - main: St[200], - light: St[50], - dark: St[400] + main: It[200], + light: It[50], + dark: It[400] } : { - main: St[500], - light: St[300], - dark: St[700] + main: It[500], + light: It[300], + dark: It[700] }; } -function nf(e = "light") { +function qf(e = "light") { return e === "dark" ? { - main: Pt[500], - light: Pt[300], - dark: Pt[700] + main: At[500], + light: At[300], + dark: At[700] } : { - main: Pt[700], - light: Pt[400], - dark: Pt[800] + main: At[700], + light: At[400], + dark: At[800] }; } -function of(e = "light") { +function Yf(e = "light") { return e === "dark" ? { - main: $t[400], - light: $t[300], - dark: $t[700] + main: Bt[400], + light: Bt[300], + dark: Bt[700] } : { - main: $t[700], - light: $t[500], - dark: $t[900] + main: Bt[700], + light: Bt[500], + dark: Bt[900] }; } -function af(e = "light") { +function Kf(e = "light") { return e === "dark" ? { - main: _t[400], - light: _t[300], - dark: _t[700] + main: jt[400], + light: jt[300], + dark: jt[700] } : { - main: _t[800], - light: _t[500], - dark: _t[900] + main: jt[800], + light: jt[500], + dark: jt[900] }; } -function sf(e = "light") { +function Jf(e = "light") { return e === "dark" ? { - main: er[400], - light: er[300], - dark: er[700] + main: ln[400], + light: ln[300], + dark: ln[700] } : { main: "#ed6c02", // closest to orange[800] that pass 3:1. - light: er[500], - dark: er[900] + light: ln[500], + dark: ln[900] }; } -function lf(e) { +function Zf(e) { const { mode: t = "light", - contrastThreshold: r = 3, - tonalOffset: n = 0.2 - } = e, o = fe(e, ef), a = e.primary || tf(t), s = e.secondary || rf(t), l = e.error || nf(t), c = e.info || of(t), p = e.success || af(t), u = e.warning || sf(t); - function h(v) { - const m = Na(v, Nn.text.primary) >= r ? Nn.text.primary : Oa.text.primary; + contrastThreshold: n = 3, + tonalOffset: r = 0.2 + } = e, o = he(e, Wf), i = e.primary || Xf(t), a = e.secondary || Gf(t), l = e.error || qf(t), c = e.info || Yf(t), u = e.success || Kf(t), f = e.warning || Jf(t); + function v(d) { + const g = zi(d, Mr.text.primary) >= n ? Mr.text.primary : Ui.text.primary; if (process.env.NODE_ENV !== "production") { - const x = Na(v, m); - x < 3 && console.error([`MUI: The contrast ratio of ${x}:1 for ${m} on ${v}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` + const w = zi(d, g); + w < 3 && console.error([`MUI: The contrast ratio of ${w}:1 for ${g} on ${d}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` `)); } - return m; + return g; } - const f = ({ - color: v, - name: m, - mainShade: x = 500, - lightShade: I = 300, - darkShade: w = 700 + const b = ({ + color: d, + name: g, + mainShade: w = 500, + lightShade: S = 300, + darkShade: x = 700 }) => { - if (v = N({}, v), !v.main && v[x] && (v.main = v[x]), !v.hasOwnProperty("main")) - throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${m ? ` (${m})` : ""} provided to augmentColor(color) is invalid. -The color object needs to have a \`main\` property or a \`${x}\` property.` : Bt(11, m ? ` (${m})` : "", x)); - if (typeof v.main != "string") - throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${m ? ` (${m})` : ""} provided to augmentColor(color) is invalid. -\`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead. + if (d = C({}, d), !d.main && d[w] && (d.main = d[w]), !d.hasOwnProperty("main")) + throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${g ? ` (${g})` : ""} provided to augmentColor(color) is invalid. +The color object needs to have a \`main\` property or a \`${w}\` property.` : Wt(11, g ? ` (${g})` : "", w)); + if (typeof d.main != "string") + throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${g ? ` (${g})` : ""} provided to augmentColor(color) is invalid. +\`color.main\` should be a string, but \`${JSON.stringify(d.main)}\` was provided instead. Did you intend to use one of the following approaches? @@ -6204,113 +6203,113 @@ const theme1 = createTheme({ palette: { const theme2 = createTheme({ palette: { primary: { main: green[500] }, -} });` : Bt(12, m ? ` (${m})` : "", JSON.stringify(v.main))); - return Ca(v, "light", I, n), Ca(v, "dark", w, n), v.contrastText || (v.contrastText = h(v.main)), v; - }, b = { - dark: Nn, - light: Oa +} });` : Wt(12, g ? ` (${g})` : "", JSON.stringify(d.main))); + return Hi(d, "light", S, r), Hi(d, "dark", x, r), d.contrastText || (d.contrastText = v(d.main)), d; + }, p = { + dark: Mr, + light: Ui }; - return process.env.NODE_ENV !== "production" && (b[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), nt(N({ + return process.env.NODE_ENV !== "production" && (p[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), it(C({ // A collection of common colors. - common: N({}, br), + common: C({}, On), // prevent mutable object. // The palette mode, can be light or dark. mode: t, // The colors used to represent primary interface elements for a user. - primary: f({ - color: a, + primary: b({ + color: i, name: "primary" }), // The colors used to represent secondary interface elements for a user. - secondary: f({ - color: s, + secondary: b({ + color: a, name: "secondary", mainShade: "A400", lightShade: "A200", darkShade: "A700" }), // The colors used to represent interface elements that the user should be made aware of. - error: f({ + error: b({ color: l, name: "error" }), // The colors used to represent potentially dangerous actions or important messages. - warning: f({ - color: u, + warning: b({ + color: f, name: "warning" }), // The colors used to present information to the user that is neutral and not necessarily important. - info: f({ + info: b({ color: c, name: "info" }), // The colors used to indicate the successful completion of an action that user triggered. - success: f({ - color: p, + success: b({ + color: u, name: "success" }), // The grey colors. - grey: qd, + grey: jf, // Used by `getContrastText()` to maximize the contrast between // the background and the text. - contrastThreshold: r, + contrastThreshold: n, // Takes a background color and returns the text color that maximizes the contrast. - getContrastText: h, + getContrastText: v, // Generate a rich color object. - augmentColor: f, + augmentColor: b, // Used by the functions below to shift a color's luminance by approximately // two indexes within its tonal palette. // E.g., shift from Red 500 to Red 300 or Red 700. - tonalOffset: n - }, b[t]), o); + tonalOffset: r + }, p[t]), o); } -const cf = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]; -function pf(e) { +const Qf = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]; +function eh(e) { return Math.round(e * 1e5) / 1e5; } -const Sa = { +const Wi = { textTransform: "uppercase" -}, Pa = '"Roboto", "Helvetica", "Arial", sans-serif'; -function uf(e, t) { - const r = typeof t == "function" ? t(e) : t, { - fontFamily: n = Pa, +}, Xi = '"Roboto", "Helvetica", "Arial", sans-serif'; +function th(e, t) { + const n = typeof t == "function" ? t(e) : t, { + fontFamily: r = Xi, // The default font size of the Material Specification. fontSize: o = 14, // px - fontWeightLight: a = 300, - fontWeightRegular: s = 400, + fontWeightLight: i = 300, + fontWeightRegular: a = 400, fontWeightMedium: l = 500, fontWeightBold: c = 700, // Tell MUI what's the font-size on the html element. // 16px is the default font-size used by browsers. - htmlFontSize: p = 16, + htmlFontSize: u = 16, // Apply the CSS properties to all the variants. - allVariants: u, - pxToRem: h - } = r, f = fe(r, cf); - process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof p != "number" && console.error("MUI: `htmlFontSize` is required to be a number.")); - const b = o / 14, y = h || ((x) => `${x / p * b}rem`), v = (x, I, w, E, g) => N({ - fontFamily: n, - fontWeight: x, - fontSize: y(I), + allVariants: f, + pxToRem: v + } = n, b = he(n, Qf); + process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number.")); + const p = o / 14, h = v || ((w) => `${w / u * p}rem`), d = (w, S, x, E, y) => C({ + fontFamily: r, + fontWeight: w, + fontSize: h(S), // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ - lineHeight: w - }, n === Pa ? { - letterSpacing: `${pf(E / I)}em` - } : {}, g, u), m = { - h1: v(a, 96, 1.167, -1.5), - h2: v(a, 60, 1.2, -0.5), - h3: v(s, 48, 1.167, 0), - h4: v(s, 34, 1.235, 0.25), - h5: v(s, 24, 1.334, 0), - h6: v(l, 20, 1.6, 0.15), - subtitle1: v(s, 16, 1.75, 0.15), - subtitle2: v(l, 14, 1.57, 0.1), - body1: v(s, 16, 1.5, 0.15), - body2: v(s, 14, 1.43, 0.15), - button: v(l, 14, 1.75, 0.4, Sa), - caption: v(s, 12, 1.66, 0.4), - overline: v(s, 12, 2.66, 1, Sa), + lineHeight: x + }, r === Xi ? { + letterSpacing: `${eh(E / S)}em` + } : {}, y, f), g = { + h1: d(i, 96, 1.167, -1.5), + h2: d(i, 60, 1.2, -0.5), + h3: d(a, 48, 1.167, 0), + h4: d(a, 34, 1.235, 0.25), + h5: d(a, 24, 1.334, 0), + h6: d(l, 20, 1.6, 0.15), + subtitle1: d(a, 16, 1.75, 0.15), + subtitle2: d(l, 14, 1.57, 0.1), + body1: d(a, 16, 1.5, 0.15), + body2: d(a, 14, 1.43, 0.15), + button: d(l, 14, 1.75, 0.4, Wi), + caption: d(a, 12, 1.66, 0.4), + overline: d(a, 12, 2.66, 1, Wi), // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types. inherit: { fontFamily: "inherit", @@ -6320,25 +6319,25 @@ function uf(e, t) { letterSpacing: "inherit" } }; - return nt(N({ - htmlFontSize: p, - pxToRem: y, - fontFamily: n, + return it(C({ + htmlFontSize: u, + pxToRem: h, + fontFamily: r, fontSize: o, - fontWeightLight: a, - fontWeightRegular: s, + fontWeightLight: i, + fontWeightRegular: a, fontWeightMedium: l, fontWeightBold: c - }, m), f, { + }, g), b, { clone: !1 // No need to clone deep }); } -const df = 0.2, ff = 0.14, hf = 0.12; -function ge(...e) { - return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${df})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ff})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hf})`].join(","); +const nh = 0.2, rh = 0.14, oh = 0.12; +function be(...e) { + return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${nh})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${rh})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oh})`].join(","); } -const mf = ["none", ge(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ge(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), ge(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), ge(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), ge(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), ge(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), ge(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), ge(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), ge(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), ge(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), ge(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), ge(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), ge(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), ge(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), ge(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), ge(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), ge(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), ge(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), ge(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), ge(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), ge(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), ge(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), ge(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), ge(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], gf = mf, bf = ["duration", "easing", "delay"], vf = { +const ih = ["none", be(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), be(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), be(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), be(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), be(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), be(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), be(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), be(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), be(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), be(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), be(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), be(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), be(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), be(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), be(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), be(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), be(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), be(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), be(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), be(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), be(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), be(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), be(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), be(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], ah = ih, sh = ["duration", "easing", "delay"], lh = { // This is the most common easing curve. easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)", // Objects enter the screen at full velocity from off-screen and @@ -6348,7 +6347,7 @@ const mf = ["none", ge(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ge(0, 3, 1, -2, 0, easeIn: "cubic-bezier(0.4, 0, 1, 1)", // The sharp curve is used by objects that may return to the screen at any time. sharp: "cubic-bezier(0.4, 0, 0.6, 1)" -}, yf = { +}, ch = { shortest: 150, shorter: 200, short: 250, @@ -6361,38 +6360,38 @@ const mf = ["none", ge(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ge(0, 3, 1, -2, 0, // recommended when something is leaving screen leavingScreen: 195 }; -function Ra(e) { +function Gi(e) { return `${Math.round(e)}ms`; } -function wf(e) { +function ph(e) { if (!e) return 0; const t = e / 36; return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10); } -function xf(e) { - const t = N({}, vf, e.easing), r = N({}, yf, e.duration); - return N({ - getAutoHeightDuration: wf, - create: (o = ["all"], a = {}) => { +function uh(e) { + const t = C({}, lh, e.easing), n = C({}, ch, e.duration); + return C({ + getAutoHeightDuration: ph, + create: (o = ["all"], i = {}) => { const { - duration: s = r.standard, + duration: a = n.standard, easing: l = t.easeInOut, delay: c = 0 - } = a, p = fe(a, bf); + } = i, u = he(i, sh); if (process.env.NODE_ENV !== "production") { - const u = (f) => typeof f == "string", h = (f) => !isNaN(parseFloat(f)); - !u(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !h(s) && !u(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), u(l) || console.error('MUI: Argument "easing" must be a string.'), !h(c) && !u(c) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` -`)), Object.keys(p).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`); + const f = (b) => typeof b == "string", v = (b) => !isNaN(parseFloat(b)); + !f(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !v(a) && !f(a) && console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`), f(l) || console.error('MUI: Argument "easing" must be a string.'), !v(c) && !f(c) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` +`)), Object.keys(u).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`); } - return (Array.isArray(o) ? o : [o]).map((u) => `${u} ${typeof s == "string" ? s : Ra(s)} ${l} ${typeof c == "string" ? c : Ra(c)}`).join(","); + return (Array.isArray(o) ? o : [o]).map((f) => `${f} ${typeof a == "string" ? a : Gi(a)} ${l} ${typeof c == "string" ? c : Gi(c)}`).join(","); } }, e, { easing: t, - duration: r + duration: n }); } -const Ef = { +const dh = { mobileStepper: 1e3, fab: 1050, speedDial: 1050, @@ -6401,239 +6400,239 @@ const Ef = { modal: 1300, snackbar: 1400, tooltip: 1500 -}, Tf = Ef, kf = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]; -function Nf(e = {}, ...t) { +}, fh = dh, hh = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]; +function mh(e = {}, ...t) { const { - mixins: r = {}, - palette: n = {}, + mixins: n = {}, + palette: r = {}, transitions: o = {}, - typography: a = {} - } = e, s = fe(e, kf); + typography: i = {} + } = e, a = he(e, hh); if (e.vars) - throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : Bt(18)); - const l = lf(n), c = mo(e); - let p = nt(c, { - mixins: Hd(c.breakpoints, r), + throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : Wt(18)); + const l = Zf(r), c = Ro(e); + let u = it(c, { + mixins: Af(c.breakpoints, n), palette: l, // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol. - shadows: gf.slice(), - typography: uf(l, a), - transitions: xf(o), - zIndex: N({}, Tf) + shadows: ah.slice(), + typography: th(l, i), + transitions: uh(o), + zIndex: C({}, fh) }); - if (p = nt(p, s), p = t.reduce((u, h) => nt(u, h), p), process.env.NODE_ENV !== "production") { - const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], h = (f, b) => { - let y; - for (y in f) { - const v = f[y]; - if (u.indexOf(y) !== -1 && Object.keys(v).length > 0) { + if (u = it(u, a), u = t.reduce((f, v) => it(f, v), u), process.env.NODE_ENV !== "production") { + const f = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], v = (b, p) => { + let h; + for (h in b) { + const d = b[h]; + if (f.indexOf(h) !== -1 && Object.keys(d).length > 0) { if (process.env.NODE_ENV !== "production") { - const m = Ze("", y); - console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`, "You can not override it like this: ", JSON.stringify(f, null, 2), "", `Instead, you need to use the '&.${m}' syntax:`, JSON.stringify({ + const g = Qe("", h); + console.error([`MUI: The \`${p}\` component increases the CSS specificity of the \`${h}\` internal state.`, "You can not override it like this: ", JSON.stringify(b, null, 2), "", `Instead, you need to use the '&.${g}' syntax:`, JSON.stringify({ root: { - [`&.${m}`]: v + [`&.${g}`]: d } }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(` `)); } - f[y] = {}; + b[h] = {}; } } }; - Object.keys(p.components).forEach((f) => { - const b = p.components[f].styleOverrides; - b && f.indexOf("Mui") === 0 && h(b, f); + Object.keys(u.components).forEach((b) => { + const p = u.components[b].styleOverrides; + p && b.indexOf("Mui") === 0 && v(p, b); }); } - return p.unstable_sxConfig = N({}, fo, s == null ? void 0 : s.unstable_sxConfig), p.unstable_sx = function(h) { - return ho({ - sx: h, + return u.unstable_sxConfig = C({}, So, a == null ? void 0 : a.unstable_sxConfig), u.unstable_sx = function(v) { + return Po({ + sx: v, theme: this }); - }, p; -} -const Of = Nf(), bo = Of, vo = "$$material", Hi = (e) => Dr(e) && e !== "classes", Cf = jd({ - themeId: vo, - defaultTheme: bo, - rootShouldForwardProp: Hi -}), Ce = Cf; -function kr() { - const e = Ui(bo); - return process.env.NODE_ENV !== "production" && T.useDebugValue(e), e[vo] || e; -} -function lt({ + }, u; +} +const gh = mh(), _o = gh, Mo = "$$material", hs = (e) => Wn(e) && e !== "classes", bh = Sf({ + themeId: Mo, + defaultTheme: _o, + rootShouldForwardProp: hs +}), Se = bh; +function Mn() { + const e = fs(_o); + return process.env.NODE_ENV !== "production" && k.useDebugValue(e), e[Mo] || e; +} +function pt({ props: e, name: t }) { - return Ld({ + return Rf({ props: e, name: t, - defaultTheme: bo, - themeId: vo + defaultTheme: _o, + themeId: Mo }); } -function Vn(e, t) { - return Vn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) { - return n.__proto__ = o, n; - }, Vn(e, t); +function Zr(e, t) { + return Zr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) { + return r.__proto__ = o, r; + }, Zr(e, t); } -function Sf(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Vn(e, t); +function vh(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Zr(e, t); } -const $a = { +const qi = { disabled: !1 }; -var Pf = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({ - enter: i.number, - exit: i.number, - appear: i.number +var yh = process.env.NODE_ENV !== "production" ? s.oneOfType([s.number, s.shape({ + enter: s.number, + exit: s.number, + appear: s.number }).isRequired]) : null; -process.env.NODE_ENV !== "production" && i.oneOfType([i.string, i.shape({ - enter: i.string, - exit: i.string, - active: i.string -}), i.shape({ - enter: i.string, - enterDone: i.string, - enterActive: i.string, - exit: i.string, - exitDone: i.string, - exitActive: i.string +process.env.NODE_ENV !== "production" && s.oneOfType([s.string, s.shape({ + enter: s.string, + exit: s.string, + active: s.string +}), s.shape({ + enter: s.string, + enterDone: s.string, + enterActive: s.string, + exit: s.string, + exitDone: s.string, + exitActive: s.string })]); -const Wi = J.createContext(null); -var Rf = function(t) { +const ms = J.createContext(null); +var wh = function(t) { return t.scrollTop; -}, ir = "unmounted", bt = "exited", vt = "entering", At = "entered", Fn = "exiting", ct = /* @__PURE__ */ function(e) { - Sf(t, e); - function t(n, o) { - var a; - a = e.call(this, n, o) || this; - var s = o, l = s && !s.isMounting ? n.enter : n.appear, c; - return a.appearStatus = null, n.in ? l ? (c = bt, a.appearStatus = vt) : c = At : n.unmountOnExit || n.mountOnEnter ? c = ir : c = bt, a.state = { +}, mn = "unmounted", xt = "exited", Et = "entering", zt = "entered", Qr = "exiting", ut = /* @__PURE__ */ function(e) { + vh(t, e); + function t(r, o) { + var i; + i = e.call(this, r, o) || this; + var a = o, l = a && !a.isMounting ? r.enter : r.appear, c; + return i.appearStatus = null, r.in ? l ? (c = xt, i.appearStatus = Et) : c = zt : r.unmountOnExit || r.mountOnEnter ? c = mn : c = xt, i.state = { status: c - }, a.nextCallback = null, a; + }, i.nextCallback = null, i; } - t.getDerivedStateFromProps = function(o, a) { - var s = o.in; - return s && a.status === ir ? { - status: bt + t.getDerivedStateFromProps = function(o, i) { + var a = o.in; + return a && i.status === mn ? { + status: xt } : null; }; - var r = t.prototype; - return r.componentDidMount = function() { + var n = t.prototype; + return n.componentDidMount = function() { this.updateStatus(!0, this.appearStatus); - }, r.componentDidUpdate = function(o) { - var a = null; + }, n.componentDidUpdate = function(o) { + var i = null; if (o !== this.props) { - var s = this.state.status; - this.props.in ? s !== vt && s !== At && (a = vt) : (s === vt || s === At) && (a = Fn); + var a = this.state.status; + this.props.in ? a !== Et && a !== zt && (i = Et) : (a === Et || a === zt) && (i = Qr); } - this.updateStatus(!1, a); - }, r.componentWillUnmount = function() { + this.updateStatus(!1, i); + }, n.componentWillUnmount = function() { this.cancelNextCallback(); - }, r.getTimeouts = function() { - var o = this.props.timeout, a, s, l; - return a = s = l = o, o != null && typeof o != "number" && (a = o.exit, s = o.enter, l = o.appear !== void 0 ? o.appear : s), { - exit: a, - enter: s, + }, n.getTimeouts = function() { + var o = this.props.timeout, i, a, l; + return i = a = l = o, o != null && typeof o != "number" && (i = o.exit, a = o.enter, l = o.appear !== void 0 ? o.appear : a), { + exit: i, + enter: a, appear: l }; - }, r.updateStatus = function(o, a) { - if (o === void 0 && (o = !1), a !== null) - if (this.cancelNextCallback(), a === vt) { + }, n.updateStatus = function(o, i) { + if (o === void 0 && (o = !1), i !== null) + if (this.cancelNextCallback(), i === Et) { if (this.props.unmountOnExit || this.props.mountOnEnter) { - var s = this.props.nodeRef ? this.props.nodeRef.current : Sr.findDOMNode(this); - s && Rf(s); + var a = this.props.nodeRef ? this.props.nodeRef.current : Bn.findDOMNode(this); + a && wh(a); } this.performEnter(o); } else this.performExit(); else - this.props.unmountOnExit && this.state.status === bt && this.setState({ - status: ir + this.props.unmountOnExit && this.state.status === xt && this.setState({ + status: mn }); - }, r.performEnter = function(o) { - var a = this, s = this.props.enter, l = this.context ? this.context.isMounting : o, c = this.props.nodeRef ? [l] : [Sr.findDOMNode(this), l], p = c[0], u = c[1], h = this.getTimeouts(), f = l ? h.appear : h.enter; - if (!o && !s || $a.disabled) { + }, n.performEnter = function(o) { + var i = this, a = this.props.enter, l = this.context ? this.context.isMounting : o, c = this.props.nodeRef ? [l] : [Bn.findDOMNode(this), l], u = c[0], f = c[1], v = this.getTimeouts(), b = l ? v.appear : v.enter; + if (!o && !a || qi.disabled) { this.safeSetState({ - status: At + status: zt }, function() { - a.props.onEntered(p); + i.props.onEntered(u); }); return; } - this.props.onEnter(p, u), this.safeSetState({ - status: vt + this.props.onEnter(u, f), this.safeSetState({ + status: Et }, function() { - a.props.onEntering(p, u), a.onTransitionEnd(f, function() { - a.safeSetState({ - status: At + i.props.onEntering(u, f), i.onTransitionEnd(b, function() { + i.safeSetState({ + status: zt }, function() { - a.props.onEntered(p, u); + i.props.onEntered(u, f); }); }); }); - }, r.performExit = function() { - var o = this, a = this.props.exit, s = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Sr.findDOMNode(this); - if (!a || $a.disabled) { + }, n.performExit = function() { + var o = this, i = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Bn.findDOMNode(this); + if (!i || qi.disabled) { this.safeSetState({ - status: bt + status: xt }, function() { o.props.onExited(l); }); return; } this.props.onExit(l), this.safeSetState({ - status: Fn + status: Qr }, function() { - o.props.onExiting(l), o.onTransitionEnd(s.exit, function() { + o.props.onExiting(l), o.onTransitionEnd(a.exit, function() { o.safeSetState({ - status: bt + status: xt }, function() { o.props.onExited(l); }); }); }); - }, r.cancelNextCallback = function() { + }, n.cancelNextCallback = function() { this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null); - }, r.safeSetState = function(o, a) { - a = this.setNextCallback(a), this.setState(o, a); - }, r.setNextCallback = function(o) { - var a = this, s = !0; + }, n.safeSetState = function(o, i) { + i = this.setNextCallback(i), this.setState(o, i); + }, n.setNextCallback = function(o) { + var i = this, a = !0; return this.nextCallback = function(l) { - s && (s = !1, a.nextCallback = null, o(l)); + a && (a = !1, i.nextCallback = null, o(l)); }, this.nextCallback.cancel = function() { - s = !1; + a = !1; }, this.nextCallback; - }, r.onTransitionEnd = function(o, a) { - this.setNextCallback(a); - var s = this.props.nodeRef ? this.props.nodeRef.current : Sr.findDOMNode(this), l = o == null && !this.props.addEndListener; - if (!s || l) { + }, n.onTransitionEnd = function(o, i) { + this.setNextCallback(i); + var a = this.props.nodeRef ? this.props.nodeRef.current : Bn.findDOMNode(this), l = o == null && !this.props.addEndListener; + if (!a || l) { setTimeout(this.nextCallback, 0); return; } if (this.props.addEndListener) { - var c = this.props.nodeRef ? [this.nextCallback] : [s, this.nextCallback], p = c[0], u = c[1]; - this.props.addEndListener(p, u); + var c = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], u = c[0], f = c[1]; + this.props.addEndListener(u, f); } o != null && setTimeout(this.nextCallback, o); - }, r.render = function() { + }, n.render = function() { var o = this.state.status; - if (o === ir) + if (o === mn) return null; - var a = this.props, s = a.children; - a.in, a.mountOnEnter, a.unmountOnExit, a.appear, a.enter, a.exit, a.timeout, a.addEndListener, a.onEnter, a.onEntering, a.onEntered, a.onExit, a.onExiting, a.onExited, a.nodeRef; - var l = fe(a, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]); + var i = this.props, a = i.children; + i.in, i.mountOnEnter, i.unmountOnExit, i.appear, i.enter, i.exit, i.timeout, i.addEndListener, i.onEnter, i.onEntering, i.onEntered, i.onExit, i.onExiting, i.onExited, i.nodeRef; + var l = he(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]); return ( // allows for nested Transitions - /* @__PURE__ */ J.createElement(Wi.Provider, { + /* @__PURE__ */ J.createElement(ms.Provider, { value: null - }, typeof s == "function" ? s(o, l) : J.cloneElement(J.Children.only(s), l)) + }, typeof a == "function" ? a(o, l) : J.cloneElement(J.Children.only(a), l)) ); }, t; }(J.Component); -ct.contextType = Wi; -ct.propTypes = process.env.NODE_ENV !== "production" ? { +ut.contextType = ms; +ut.propTypes = process.env.NODE_ENV !== "production" ? { /** * A React reference to DOM element that need to transition: * https://stackoverflow.com/a/51127130/4671932 @@ -6645,10 +6644,10 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * (see * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)). */ - nodeRef: i.shape({ - current: typeof Element > "u" ? i.any : function(e, t, r, n, o, a) { - var s = e[t]; - return i.instanceOf(s && "ownerDocument" in s ? s.ownerDocument.defaultView.Element : Element)(e, t, r, n, o, a); + nodeRef: s.shape({ + current: typeof Element > "u" ? s.any : function(e, t, n, r, o, i) { + var a = e[t]; + return s.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(e, t, n, r, o, i); } }), /** @@ -6665,23 +6664,23 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * * ``` */ - children: i.oneOfType([i.func.isRequired, i.element.isRequired]).isRequired, + children: s.oneOfType([s.func.isRequired, s.element.isRequired]).isRequired, /** * Show the component; triggers the enter or exit states */ - in: i.bool, + in: s.bool, /** * By default the child component is mounted immediately along with * the parent `Transition` component. If you want to "lazy mount" the component on the * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay * mounted, even on "exited", unless you also specify `unmountOnExit`. */ - mountOnEnter: i.bool, + mountOnEnter: s.bool, /** * By default the child component stays mounted after it reaches the `'exited'` state. * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting. */ - unmountOnExit: i.bool, + unmountOnExit: s.bool, /** * By default the child component does not perform the enter transition when * it first mounts, regardless of the value of `in`. If you want this @@ -6693,15 +6692,15 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * > additional `.appear-*` classes, that way you can choose to style it * > differently. */ - appear: i.bool, + appear: s.bool, /** * Enable or disable enter transitions. */ - enter: i.bool, + enter: s.bool, /** * Enable or disable exit transitions. */ - exit: i.bool, + exit: s.bool, /** * The duration of the transition, in milliseconds. * Required unless `addEndListener` is provided. @@ -6729,11 +6728,11 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * @type {number | { enter?: number, exit?: number, appear?: number }} */ timeout: function(t) { - var r = Pf; - t.addEndListener || (r = r.isRequired); - for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++) - o[a - 1] = arguments[a]; - return r.apply(void 0, [t].concat(o)); + var n = yh; + t.addEndListener || (n = n.isRequired); + for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) + o[i - 1] = arguments[i]; + return n.apply(void 0, [t].concat(o)); }, /** * Add a custom transition end trigger. Called with the transitioning @@ -6749,7 +6748,7 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * }} * ``` */ - addEndListener: i.func, + addEndListener: s.func, /** * Callback fired before the "entering" status is applied. An extra parameter * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount @@ -6758,7 +6757,7 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * * @type Function(node: HtmlElement, isAppearing: bool) -> void */ - onEnter: i.func, + onEnter: s.func, /** * Callback fired after the "entering" status is applied. An extra parameter * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount @@ -6767,7 +6766,7 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * * @type Function(node: HtmlElement, isAppearing: bool) */ - onEntering: i.func, + onEntering: s.func, /** * Callback fired after the "entered" status is applied. An extra parameter * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount @@ -6776,7 +6775,7 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * * @type Function(node: HtmlElement, isAppearing: bool) -> void */ - onEntered: i.func, + onEntered: s.func, /** * Callback fired before the "exiting" status is applied. * @@ -6784,7 +6783,7 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * * @type Function(node: HtmlElement) -> void */ - onExit: i.func, + onExit: s.func, /** * Callback fired after the "exiting" status is applied. * @@ -6792,7 +6791,7 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * * @type Function(node: HtmlElement) -> void */ - onExiting: i.func, + onExiting: s.func, /** * Callback fired after the "exited" status is applied. * @@ -6800,148 +6799,148 @@ ct.propTypes = process.env.NODE_ENV !== "production" ? { * * @type Function(node: HtmlElement) -> void */ - onExited: i.func + onExited: s.func } : {}; -function Mt() { +function Lt() { } -ct.defaultProps = { +ut.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, - onEnter: Mt, - onEntering: Mt, - onEntered: Mt, - onExit: Mt, - onExiting: Mt, - onExited: Mt + onEnter: Lt, + onEntering: Lt, + onEntered: Lt, + onExit: Lt, + onExiting: Lt, + onExited: Lt }; -ct.UNMOUNTED = ir; -ct.EXITED = bt; -ct.ENTERING = vt; -ct.ENTERED = At; -ct.EXITING = Fn; -const Xi = ct, qi = (e) => e.scrollTop; -function Gr(e, t) { - var r, n; +ut.UNMOUNTED = mn; +ut.EXITED = xt; +ut.ENTERING = Et; +ut.ENTERED = zt; +ut.EXITING = Qr; +const gs = ut, bs = (e) => e.scrollTop; +function ir(e, t) { + var n, r; const { timeout: o, - easing: a, - style: s = {} + easing: i, + style: a = {} } = e; return { - duration: (r = s.transitionDuration) != null ? r : typeof o == "number" ? o : o[t.mode] || 0, - easing: (n = s.transitionTimingFunction) != null ? n : typeof a == "object" ? a[t.mode] : a, - delay: s.transitionDelay + duration: (n = a.transitionDuration) != null ? n : typeof o == "number" ? o : o[t.mode] || 0, + easing: (r = a.transitionTimingFunction) != null ? r : typeof i == "object" ? i[t.mode] : i, + delay: a.transitionDelay }; } -const $f = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]; -function zn(e) { +const xh = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]; +function eo(e) { return `scale(${e}, ${e ** 2})`; } -const _f = { +const Eh = { entering: { opacity: 1, - transform: zn(1) + transform: eo(1) }, entered: { opacity: 1, transform: "none" } -}, On = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), yo = /* @__PURE__ */ T.forwardRef(function(t, r) { +}, Ir = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), Io = /* @__PURE__ */ k.forwardRef(function(t, n) { const { - addEndListener: n, + addEndListener: r, appear: o = !0, - children: a, - easing: s, + children: i, + easing: a, in: l, onEnter: c, - onEntered: p, - onEntering: u, - onExit: h, - onExited: f, - onExiting: b, - style: y, - timeout: v = "auto", + onEntered: u, + onEntering: f, + onExit: v, + onExited: b, + onExiting: p, + style: h, + timeout: d = "auto", // eslint-disable-next-line react/prop-types - TransitionComponent: m = Xi - } = t, x = fe(t, $f), I = or(), w = T.useRef(), E = kr(), g = T.useRef(null), O = Ue(g, a.ref, r), S = (z) => (P) => { + TransitionComponent: g = gs + } = t, w = he(t, xh), S = fn(), x = k.useRef(), E = Mn(), y = k.useRef(null), N = He(y, i.ref, n), T = (z) => (R) => { if (z) { - const j = g.current; - P === void 0 ? z(j) : z(j, P); + const L = y.current; + R === void 0 ? z(L) : z(L, R); } - }, L = S(u), D = S((z, P) => { - qi(z); + }, _ = T(f), D = T((z, R) => { + bs(z); const { - duration: j, + duration: L, delay: te, easing: Q - } = Gr({ - style: y, - timeout: v, - easing: s + } = ir({ + style: h, + timeout: d, + easing: a }, { mode: "enter" }); - let k; - v === "auto" ? (k = E.transitions.getAutoHeightDuration(z.clientHeight), w.current = k) : k = j, z.style.transition = [E.transitions.create("opacity", { - duration: k, + let O; + d === "auto" ? (O = E.transitions.getAutoHeightDuration(z.clientHeight), x.current = O) : O = L, z.style.transition = [E.transitions.create("opacity", { + duration: O, delay: te }), E.transitions.create("transform", { - duration: On ? k : k * 0.666, + duration: Ir ? O : O * 0.666, delay: te, easing: Q - })].join(","), c && c(z, P); - }), V = S(p), C = S(b), _ = S((z) => { + })].join(","), c && c(z, R); + }), j = T(u), P = T(p), I = T((z) => { const { - duration: P, - delay: j, + duration: R, + delay: L, easing: te - } = Gr({ - style: y, - timeout: v, - easing: s + } = ir({ + style: h, + timeout: d, + easing: a }, { mode: "exit" }); let Q; - v === "auto" ? (Q = E.transitions.getAutoHeightDuration(z.clientHeight), w.current = Q) : Q = P, z.style.transition = [E.transitions.create("opacity", { + d === "auto" ? (Q = E.transitions.getAutoHeightDuration(z.clientHeight), x.current = Q) : Q = R, z.style.transition = [E.transitions.create("opacity", { duration: Q, - delay: j + delay: L }), E.transitions.create("transform", { - duration: On ? Q : Q * 0.666, - delay: On ? j : j || Q * 0.333, + duration: Ir ? Q : Q * 0.666, + delay: Ir ? L : L || Q * 0.333, easing: te - })].join(","), z.style.opacity = 0, z.style.transform = zn(0.75), h && h(z); - }), M = S(f); - return /* @__PURE__ */ d(m, N({ + })].join(","), z.style.opacity = 0, z.style.transform = eo(0.75), v && v(z); + }), A = T(b); + return /* @__PURE__ */ m(g, C({ appear: o, in: l, - nodeRef: g, + nodeRef: y, onEnter: D, - onEntered: V, - onEntering: L, - onExit: _, - onExited: M, - onExiting: C, + onEntered: j, + onEntering: _, + onExit: I, + onExited: A, + onExiting: P, addEndListener: (z) => { - v === "auto" && I.start(w.current || 0, z), n && n(g.current, z); + d === "auto" && S.start(x.current || 0, z), r && r(y.current, z); }, - timeout: v === "auto" ? null : v - }, x, { - children: (z, P) => /* @__PURE__ */ T.cloneElement(a, N({ - style: N({ + timeout: d === "auto" ? null : d + }, w, { + children: (z, R) => /* @__PURE__ */ k.cloneElement(i, C({ + style: C({ opacity: 0, - transform: zn(0.75), + transform: eo(0.75), visibility: z === "exited" && !l ? "hidden" : void 0 - }, _f[z], y, a.props.style), - ref: O - }, P)) + }, Eh[z], h, i.props.style), + ref: N + }, R)) })); }); -process.env.NODE_ENV !== "production" && (yo.propTypes = { +process.env.NODE_ENV !== "production" && (Io.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -6951,57 +6950,57 @@ process.env.NODE_ENV !== "production" && (yo.propTypes = { * node and a done callback. Allows for more fine grained transition end * logic. Note: Timeouts are still used as a fallback if provided. */ - addEndListener: i.func, + addEndListener: s.func, /** * Perform the enter transition when it first mounts if `in` is also `true`. * Set this to `false` to disable this behavior. * @default true */ - appear: i.bool, + appear: s.bool, /** * A single child content element. */ - children: vr.isRequired, + children: Cn.isRequired, /** * The transition timing function. * You may specify a single easing or a object containing enter and exit values. */ - easing: i.oneOfType([i.shape({ - enter: i.string, - exit: i.string - }), i.string]), + easing: s.oneOfType([s.shape({ + enter: s.string, + exit: s.string + }), s.string]), /** * If `true`, the component will transition in. */ - in: i.bool, + in: s.bool, /** * @ignore */ - onEnter: i.func, + onEnter: s.func, /** * @ignore */ - onEntered: i.func, + onEntered: s.func, /** * @ignore */ - onEntering: i.func, + onEntering: s.func, /** * @ignore */ - onExit: i.func, + onExit: s.func, /** * @ignore */ - onExited: i.func, + onExited: s.func, /** * @ignore */ - onExiting: i.func, + onExiting: s.func, /** * @ignore */ - style: i.object, + style: s.object, /** * The duration for the transition, in milliseconds. * You may specify a single timeout for all transitions, or individually with an object. @@ -7009,65 +7008,65 @@ process.env.NODE_ENV !== "production" && (yo.propTypes = { * Set to 'auto' to automatically calculate transition time based on height. * @default 'auto' */ - timeout: i.oneOfType([i.oneOf(["auto"]), i.number, i.shape({ - appear: i.number, - enter: i.number, - exit: i.number + timeout: s.oneOfType([s.oneOf(["auto"]), s.number, s.shape({ + appear: s.number, + enter: s.number, + exit: s.number })]) }); -yo.muiSupportAuto = !0; -const Un = yo, Mf = (e) => { +Io.muiSupportAuto = !0; +const to = Io, kh = (e) => { let t; return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, (t / 100).toFixed(2); -}, _a = Mf, If = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], Af = Ce(Bi, { +}, Yi = kh, Th = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], Nh = Se(ls, { name: "MuiPopper", slot: "Root", overridesResolver: (e, t) => t.root -})({}), Yi = /* @__PURE__ */ T.forwardRef(function(t, r) { - var n; - const o = zi(), a = lt({ +})({}), vs = /* @__PURE__ */ k.forwardRef(function(t, n) { + var r; + const o = ds(), i = pt({ props: t, name: "MuiPopper" }), { - anchorEl: s, + anchorEl: a, component: l, components: c, - componentsProps: p, - container: u, - disablePortal: h, - keepMounted: f, - modifiers: b, - open: y, - placement: v, - popperOptions: m, - popperRef: x, - transition: I, - slots: w, + componentsProps: u, + container: f, + disablePortal: v, + keepMounted: b, + modifiers: p, + open: h, + placement: d, + popperOptions: g, + popperRef: w, + transition: S, + slots: x, slotProps: E - } = a, g = fe(a, If), O = (n = w == null ? void 0 : w.root) != null ? n : c == null ? void 0 : c.Root, S = N({ - anchorEl: s, - container: u, - disablePortal: h, - keepMounted: f, - modifiers: b, - open: y, - placement: v, - popperOptions: m, - popperRef: x, - transition: I - }, g); - return /* @__PURE__ */ d(Af, N({ + } = i, y = he(i, Th), N = (r = x == null ? void 0 : x.root) != null ? r : c == null ? void 0 : c.Root, T = C({ + anchorEl: a, + container: f, + disablePortal: v, + keepMounted: b, + modifiers: p, + open: h, + placement: d, + popperOptions: g, + popperRef: w, + transition: S + }, y); + return /* @__PURE__ */ m(Nh, C({ as: l, direction: o == null ? void 0 : o.direction, slots: { - root: O + root: N }, - slotProps: E ?? p - }, S, { - ref: r + slotProps: E ?? u + }, T, { + ref: n })); }); -process.env.NODE_ENV !== "production" && (Yi.propTypes = { +process.env.NODE_ENV !== "production" && (vs.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ @@ -7078,30 +7077,30 @@ process.env.NODE_ENV !== "production" && (Yi.propTypes = { * It's used to set the position of the popper. * The return value will passed as the reference object of the Popper instance. */ - anchorEl: i.oneOfType([ot, i.object, i.func]), + anchorEl: s.oneOfType([at, s.object, s.func]), /** * Popper render function or node. */ - children: i.oneOfType([i.node, i.func]), + children: s.oneOfType([s.node, s.func]), /** * The component used for the root node. * Either a string to use a HTML element or a component. */ - component: i.elementType, + component: s.elementType, /** * The components used for each slot inside the Popper. * Either a string to use a HTML element or a component. * @default {} */ - components: i.shape({ - Root: i.elementType + components: s.shape({ + Root: s.elementType }), /** * The props used for each slot inside the Popper. * @default {} */ - componentsProps: i.shape({ - root: i.oneOfType([i.func, i.object]) + componentsProps: s.shape({ + root: s.oneOfType([s.func, s.object]) }), /** * An HTML element or function that returns one. @@ -7113,19 +7112,19 @@ process.env.NODE_ENV !== "production" && (Yi.propTypes = { * By default, it uses the body of the top-level document object, * so it's simply `document.body` most of the time. */ - container: i.oneOfType([ot, i.func]), + container: s.oneOfType([at, s.func]), /** * The `children` will be under the DOM hierarchy of the parent component. * @default false */ - disablePortal: i.bool, + disablePortal: s.bool, /** * Always keep the children in the DOM. * This prop can be useful in SEO situation or * when you want to maximize the responsiveness of the Popper. * @default false */ - keepMounted: i.bool, + keepMounted: s.bool, /** * Popper.js is based on a "plugin-like" architecture, * most of its features are fully encapsulated "modifiers". @@ -7135,122 +7134,122 @@ process.env.NODE_ENV !== "production" && (Yi.propTypes = { * For this reason, modifiers should be very performant to avoid bottlenecks. * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/). */ - modifiers: i.arrayOf(i.shape({ - data: i.object, - effect: i.func, - enabled: i.bool, - fn: i.func, - name: i.any, - options: i.object, - phase: i.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]), - requires: i.arrayOf(i.string), - requiresIfExists: i.arrayOf(i.string) + modifiers: s.arrayOf(s.shape({ + data: s.object, + effect: s.func, + enabled: s.bool, + fn: s.func, + name: s.any, + options: s.object, + phase: s.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]), + requires: s.arrayOf(s.string), + requiresIfExists: s.arrayOf(s.string) })), /** * If `true`, the component is shown. */ - open: i.bool.isRequired, + open: s.bool.isRequired, /** * Popper placement. * @default 'bottom' */ - placement: i.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]), + placement: s.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]), /** * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance. * @default {} */ - popperOptions: i.shape({ - modifiers: i.array, - onFirstUpdate: i.func, - placement: i.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]), - strategy: i.oneOf(["absolute", "fixed"]) + popperOptions: s.shape({ + modifiers: s.array, + onFirstUpdate: s.func, + placement: s.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]), + strategy: s.oneOf(["absolute", "fixed"]) }), /** * A ref that points to the used popper instance. */ - popperRef: ro, + popperRef: vo, /** * The props used for each slot inside the Popper. * @default {} */ - slotProps: i.shape({ - root: i.oneOfType([i.func, i.object]) + slotProps: s.shape({ + root: s.oneOfType([s.func, s.object]) }), /** * The components used for each slot inside the Popper. * Either a string to use a HTML element or a component. * @default {} */ - slots: i.shape({ - root: i.elementType + slots: s.shape({ + root: s.elementType }), /** * The system prop that allows defining system overrides as well as additional CSS styles. */ - sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]), + sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]), /** * Help supporting a react-transition-group/Transition component. * @default false */ - transition: i.bool + transition: s.bool }); -const Gi = Yi; -function Df(e) { - return Ze("MuiTooltip", e); +const ys = vs; +function Oh(e) { + return Qe("MuiTooltip", e); } -const jf = ut("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), pt = jf, Bf = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"]; -function Lf(e) { +const Ch = mt("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), ht = Ch, Sh = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"]; +function Ph(e) { return Math.round(e * 1e5) / 1e5; } -const Vf = (e) => { +const Rh = (e) => { const { classes: t, - disableInteractive: r, - arrow: n, + disableInteractive: n, + arrow: r, touch: o, - placement: a - } = e, s = { - popper: ["popper", !r && "popperInteractive", n && "popperArrow"], - tooltip: ["tooltip", n && "tooltipArrow", o && "touch", `tooltipPlacement${Ke(a.split("-")[0])}`], + placement: i + } = e, a = { + popper: ["popper", !n && "popperInteractive", r && "popperArrow"], + tooltip: ["tooltip", r && "tooltipArrow", o && "touch", `tooltipPlacement${Je(i.split("-")[0])}`], arrow: ["arrow"] }; - return st(s, Df, t); -}, Ff = Ce(Gi, { + return ct(a, Oh, t); +}, $h = Se(ys, { name: "MuiTooltip", slot: "Popper", overridesResolver: (e, t) => { const { - ownerState: r + ownerState: n } = e; - return [t.popper, !r.disableInteractive && t.popperInteractive, r.arrow && t.popperArrow, !r.open && t.popperClose]; + return [t.popper, !n.disableInteractive && t.popperInteractive, n.arrow && t.popperArrow, !n.open && t.popperClose]; } })(({ theme: e, ownerState: t, - open: r -}) => N({ + open: n +}) => C({ zIndex: (e.vars || e).zIndex.tooltip, pointerEvents: "none" }, !t.disableInteractive && { pointerEvents: "auto" -}, !r && { +}, !n && { pointerEvents: "none" }, t.arrow && { - [`&[data-popper-placement*="bottom"] .${pt.arrow}`]: { + [`&[data-popper-placement*="bottom"] .${ht.arrow}`]: { top: 0, marginTop: "-0.71em", "&::before": { transformOrigin: "0 100%" } }, - [`&[data-popper-placement*="top"] .${pt.arrow}`]: { + [`&[data-popper-placement*="top"] .${ht.arrow}`]: { bottom: 0, marginBottom: "-0.71em", "&::before": { transformOrigin: "100% 0" } }, - [`&[data-popper-placement*="right"] .${pt.arrow}`]: N({}, t.isRtl ? { + [`&[data-popper-placement*="right"] .${ht.arrow}`]: C({}, t.isRtl ? { right: 0, marginRight: "-0.71em" } : { @@ -7263,7 +7262,7 @@ const Vf = (e) => { transformOrigin: "100% 100%" } }), - [`&[data-popper-placement*="left"] .${pt.arrow}`]: N({}, t.isRtl ? { + [`&[data-popper-placement*="left"] .${ht.arrow}`]: C({}, t.isRtl ? { left: 0, marginLeft: "-0.71em" } : { @@ -7276,20 +7275,20 @@ const Vf = (e) => { transformOrigin: "0 0" } }) -})), zf = Ce("div", { +})), _h = Se("div", { name: "MuiTooltip", slot: "Tooltip", overridesResolver: (e, t) => { const { - ownerState: r + ownerState: n } = e; - return [t.tooltip, r.touch && t.touch, r.arrow && t.tooltipArrow, t[`tooltipPlacement${Ke(r.placement.split("-")[0])}`]]; + return [t.tooltip, n.touch && t.touch, n.arrow && t.tooltipArrow, t[`tooltipPlacement${Je(n.placement.split("-")[0])}`]]; } })(({ theme: e, ownerState: t -}) => N({ - backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : Yr(e.palette.grey[700], 0.92), +}) => C({ + backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : or(e.palette.grey[700], 0.92), borderRadius: (e.vars || e).shape.borderRadius, color: (e.vars || e).palette.common.white, fontFamily: e.typography.fontFamily, @@ -7305,44 +7304,44 @@ const Vf = (e) => { }, t.touch && { padding: "8px 16px", fontSize: e.typography.pxToRem(14), - lineHeight: `${Lf(16 / 14)}em`, + lineHeight: `${Ph(16 / 14)}em`, fontWeight: e.typography.fontWeightRegular }, { - [`.${pt.popper}[data-popper-placement*="left"] &`]: N({ + [`.${ht.popper}[data-popper-placement*="left"] &`]: C({ transformOrigin: "right center" - }, t.isRtl ? N({ + }, t.isRtl ? C({ marginLeft: "14px" }, t.touch && { marginLeft: "24px" - }) : N({ + }) : C({ marginRight: "14px" }, t.touch && { marginRight: "24px" })), - [`.${pt.popper}[data-popper-placement*="right"] &`]: N({ + [`.${ht.popper}[data-popper-placement*="right"] &`]: C({ transformOrigin: "left center" - }, t.isRtl ? N({ + }, t.isRtl ? C({ marginRight: "14px" }, t.touch && { marginRight: "24px" - }) : N({ + }) : C({ marginLeft: "14px" }, t.touch && { marginLeft: "24px" })), - [`.${pt.popper}[data-popper-placement*="top"] &`]: N({ + [`.${ht.popper}[data-popper-placement*="top"] &`]: C({ transformOrigin: "center bottom", marginBottom: "14px" }, t.touch && { marginBottom: "24px" }), - [`.${pt.popper}[data-popper-placement*="bottom"] &`]: N({ + [`.${ht.popper}[data-popper-placement*="bottom"] &`]: C({ transformOrigin: "center top", marginTop: "14px" }, t.touch && { marginTop: "24px" }) -})), Uf = Ce("span", { +})), Mh = Se("span", { name: "MuiTooltip", slot: "Arrow", overridesResolver: (e, t) => t.arrow @@ -7354,7 +7353,7 @@ const Vf = (e) => { width: "1em", height: "0.71em", boxSizing: "border-box", - color: e.vars ? e.vars.palette.Tooltip.bg : Yr(e.palette.grey[700], 0.9), + color: e.vars ? e.vars.palette.Tooltip.bg : or(e.palette.grey[700], 0.9), "&::before": { content: '""', margin: "auto", @@ -7365,211 +7364,211 @@ const Vf = (e) => { transform: "rotate(45deg)" } })); -let _r = !1; -const Ma = new yr(); -let tr = { +let Vn = !1; +const Ki = new Sn(); +let cn = { x: 0, y: 0 }; -function Mr(e, t) { - return (r) => { - t && t(r), e(r); +function zn(e, t) { + return (n) => { + t && t(n), e(n); }; } -const Ki = /* @__PURE__ */ T.forwardRef(function(t, r) { - var n, o, a, s, l, c, p, u, h, f, b, y, v, m, x, I, w, E, g; - const O = lt({ +const ws = /* @__PURE__ */ k.forwardRef(function(t, n) { + var r, o, i, a, l, c, u, f, v, b, p, h, d, g, w, S, x, E, y; + const N = pt({ props: t, name: "MuiTooltip" }), { - arrow: S = !1, - children: L, + arrow: T = !1, + children: _, components: D = {}, - componentsProps: V = {}, - describeChild: C = !1, - disableFocusListener: _ = !1, - disableHoverListener: M = !1, - disableInteractive: B = !1, + componentsProps: j = {}, + describeChild: P = !1, + disableFocusListener: I = !1, + disableHoverListener: A = !1, + disableInteractive: F = !1, disableTouchListener: z = !1, - enterDelay: P = 100, - enterNextDelay: j = 0, + enterDelay: R = 100, + enterNextDelay: L = 0, enterTouchDelay: te = 700, followCursor: Q = !1, - id: k, - leaveDelay: R = 0, - leaveTouchDelay: F = 1500, + id: O, + leaveDelay: $ = 0, + leaveTouchDelay: V = 1500, onClose: q, onOpen: H, - open: W, + open: X, placement: Y = "bottom", PopperComponent: K, - PopperProps: X = {}, + PopperProps: G = {}, slotProps: Z = {}, slots: ee = {}, title: ae, - TransitionComponent: A = Un, - TransitionProps: re - } = O, $ = fe(O, Bf), ie = /* @__PURE__ */ T.isValidElement(L) ? L : /* @__PURE__ */ d("span", { - children: L - }), Ee = kr(), Se = Ee.direction === "rtl", [we, ht] = T.useState(), [Pe, Qe] = T.useState(null), Ae = T.useRef(!1), et = B || Q, Te = or(), Ct = or(), mt = or(), Xt = or(), [Nr, To] = mi({ - controlled: W, + TransitionComponent: B = to, + TransitionProps: ne + } = N, M = he(N, Sh), se = /* @__PURE__ */ k.isValidElement(_) ? _ : /* @__PURE__ */ m("span", { + children: _ + }), ke = Mn(), Pe = ke.direction === "rtl", [xe, vt] = k.useState(), [Re, et] = k.useState(null), De = k.useRef(!1), tt = F || Q, Te = fn(), Mt = fn(), yt = fn(), Qt = fn(), [In, Fo] = La({ + controlled: X, default: !1, name: "Tooltip", state: "open" }); - let tt = Nr; + let nt = In; if (process.env.NODE_ENV !== "production") { const { - current: ne - } = T.useRef(W !== void 0); - T.useEffect(() => { - we && we.disabled && !ne && ae !== "" && we.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(` + current: re + } = k.useRef(X !== void 0); + k.useEffect(() => { + xe && xe.disabled && !re && ae !== "" && xe.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(` `)); - }, [ae, we, ne]); + }, [ae, xe, re]); } - const dn = hi(k), qt = T.useRef(), Or = fr(() => { - qt.current !== void 0 && (document.body.style.WebkitUserSelect = qt.current, qt.current = void 0), Xt.clear(); + const wr = ja(O), en = k.useRef(), An = En(() => { + en.current !== void 0 && (document.body.style.WebkitUserSelect = en.current, en.current = void 0), Qt.clear(); }); - T.useEffect(() => Or, [Or]); - const ko = (ne) => { - Ma.clear(), _r = !0, To(!0), H && !tt && H(ne); - }, Cr = fr( + k.useEffect(() => An, [An]); + const Vo = (re) => { + Ki.clear(), Vn = !0, Fo(!0), H && !nt && H(re); + }, Dn = En( /** * @param {React.SyntheticEvent | Event} event */ - (ne) => { - Ma.start(800 + R, () => { - _r = !1; - }), To(!1), q && tt && q(ne), Te.start(Ee.transitions.duration.shortest, () => { - Ae.current = !1; + (re) => { + Ki.start(800 + $, () => { + Vn = !1; + }), Fo(!1), q && nt && q(re), Te.start(ke.transitions.duration.shortest, () => { + De.current = !1; }); } - ), fn = (ne) => { - Ae.current && ne.type !== "touchstart" || (we && we.removeAttribute("title"), Ct.clear(), mt.clear(), P || _r && j ? Ct.start(_r ? j : P, () => { - ko(ne); - }) : ko(ne)); - }, No = (ne) => { - Ct.clear(), mt.start(R, () => { - Cr(ne); + ), xr = (re) => { + De.current && re.type !== "touchstart" || (xe && xe.removeAttribute("title"), Mt.clear(), yt.clear(), R || Vn && L ? Mt.start(Vn ? L : R, () => { + Vo(re); + }) : Vo(re)); + }, zo = (re) => { + Mt.clear(), yt.start($, () => { + Dn(re); }); }, { - isFocusVisibleRef: Oo, - onBlur: hs, - onFocus: ms, - ref: gs - } = gi(), [, Co] = T.useState(!1), So = (ne) => { - hs(ne), Oo.current === !1 && (Co(!1), No(ne)); - }, Po = (ne) => { - we || ht(ne.currentTarget), ms(ne), Oo.current === !0 && (Co(!0), fn(ne)); - }, Ro = (ne) => { - Ae.current = !0; - const De = ie.props; - De.onTouchStart && De.onTouchStart(ne); - }, $o = fn, _o = No, bs = (ne) => { - Ro(ne), mt.clear(), Te.clear(), Or(), qt.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Xt.start(te, () => { - document.body.style.WebkitUserSelect = qt.current, fn(ne); + isFocusVisibleRef: Uo, + onBlur: rl, + onFocus: ol, + ref: il + } = Fa(), [, Ho] = k.useState(!1), Wo = (re) => { + rl(re), Uo.current === !1 && (Ho(!1), zo(re)); + }, Xo = (re) => { + xe || vt(re.currentTarget), ol(re), Uo.current === !0 && (Ho(!0), xr(re)); + }, Go = (re) => { + De.current = !0; + const Be = se.props; + Be.onTouchStart && Be.onTouchStart(re); + }, qo = xr, Yo = zo, al = (re) => { + Go(re), yt.clear(), Te.clear(), An(), en.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Qt.start(te, () => { + document.body.style.WebkitUserSelect = en.current, xr(re); }); - }, vs = (ne) => { - ie.props.onTouchEnd && ie.props.onTouchEnd(ne), Or(), mt.start(F, () => { - Cr(ne); + }, sl = (re) => { + se.props.onTouchEnd && se.props.onTouchEnd(re), An(), yt.start(V, () => { + Dn(re); }); }; - T.useEffect(() => { - if (!tt) + k.useEffect(() => { + if (!nt) return; - function ne(De) { - (De.key === "Escape" || De.key === "Esc") && Cr(De); + function re(Be) { + (Be.key === "Escape" || Be.key === "Esc") && Dn(Be); } - return document.addEventListener("keydown", ne), () => { - document.removeEventListener("keydown", ne); + return document.addEventListener("keydown", re), () => { + document.removeEventListener("keydown", re); }; - }, [Cr, tt]); - const ys = Ue(ie.ref, gs, ht, r); - !ae && ae !== 0 && (tt = !1); - const hn = T.useRef(), ws = (ne) => { - const De = ie.props; - De.onMouseMove && De.onMouseMove(ne), tr = { - x: ne.clientX, - y: ne.clientY - }, hn.current && hn.current.update(); - }, Yt = {}, mn = typeof ae == "string"; - C ? (Yt.title = !tt && mn && !M ? ae : null, Yt["aria-describedby"] = tt ? dn : null) : (Yt["aria-label"] = mn ? ae : null, Yt["aria-labelledby"] = tt && !mn ? dn : null); - const Ve = N({}, Yt, $, ie.props, { - className: Ne($.className, ie.props.className), - onTouchStart: Ro, - ref: ys + }, [Dn, nt]); + const ll = He(se.ref, il, vt, n); + !ae && ae !== 0 && (nt = !1); + const Er = k.useRef(), cl = (re) => { + const Be = se.props; + Be.onMouseMove && Be.onMouseMove(re), cn = { + x: re.clientX, + y: re.clientY + }, Er.current && Er.current.update(); + }, tn = {}, kr = typeof ae == "string"; + P ? (tn.title = !nt && kr && !A ? ae : null, tn["aria-describedby"] = nt ? wr : null) : (tn["aria-label"] = kr ? ae : null, tn["aria-labelledby"] = nt && !kr ? wr : null); + const Ve = C({}, tn, M, se.props, { + className: Oe(M.className, se.props.className), + onTouchStart: Go, + ref: ll }, Q ? { - onMouseMove: ws + onMouseMove: cl } : {}); - process.env.NODE_ENV !== "production" && (Ve["data-mui-internal-clone-element"] = !0, T.useEffect(() => { - we && !we.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(` + process.env.NODE_ENV !== "production" && (Ve["data-mui-internal-clone-element"] = !0, k.useEffect(() => { + xe && !xe.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(` `)); - }, [we])); - const Gt = {}; - z || (Ve.onTouchStart = bs, Ve.onTouchEnd = vs), M || (Ve.onMouseOver = Mr($o, Ve.onMouseOver), Ve.onMouseLeave = Mr(_o, Ve.onMouseLeave), et || (Gt.onMouseOver = $o, Gt.onMouseLeave = _o)), _ || (Ve.onFocus = Mr(Po, Ve.onFocus), Ve.onBlur = Mr(So, Ve.onBlur), et || (Gt.onFocus = Po, Gt.onBlur = So)), process.env.NODE_ENV !== "production" && ie.props.title && console.error(["MUI: You have provided a `title` prop to the child of .", `Remove this title prop \`${ie.props.title}\` or the Tooltip component.`].join(` + }, [xe])); + const nn = {}; + z || (Ve.onTouchStart = al, Ve.onTouchEnd = sl), A || (Ve.onMouseOver = zn(qo, Ve.onMouseOver), Ve.onMouseLeave = zn(Yo, Ve.onMouseLeave), tt || (nn.onMouseOver = qo, nn.onMouseLeave = Yo)), I || (Ve.onFocus = zn(Xo, Ve.onFocus), Ve.onBlur = zn(Wo, Ve.onBlur), tt || (nn.onFocus = Xo, nn.onBlur = Wo)), process.env.NODE_ENV !== "production" && se.props.title && console.error(["MUI: You have provided a `title` prop to the child of .", `Remove this title prop \`${se.props.title}\` or the Tooltip component.`].join(` `)); - const xs = T.useMemo(() => { - var ne; - let De = [{ + const pl = k.useMemo(() => { + var re; + let Be = [{ name: "arrow", - enabled: !!Pe, + enabled: !!Re, options: { - element: Pe, + element: Re, padding: 4 } }]; - return (ne = X.popperOptions) != null && ne.modifiers && (De = De.concat(X.popperOptions.modifiers)), N({}, X.popperOptions, { - modifiers: De + return (re = G.popperOptions) != null && re.modifiers && (Be = Be.concat(G.popperOptions.modifiers)), C({}, G.popperOptions, { + modifiers: Be }); - }, [Pe, X]), Kt = N({}, O, { - isRtl: Se, - arrow: S, - disableInteractive: et, + }, [Re, G]), rn = C({}, N, { + isRtl: Pe, + arrow: T, + disableInteractive: tt, placement: Y, PopperComponentProp: K, - touch: Ae.current - }), gn = Vf(Kt), Mo = (n = (o = ee.popper) != null ? o : D.Popper) != null ? n : Ff, Io = (a = (s = (l = ee.transition) != null ? l : D.Transition) != null ? s : A) != null ? a : Un, Ao = (c = (p = ee.tooltip) != null ? p : D.Tooltip) != null ? c : zf, Do = (u = (h = ee.arrow) != null ? h : D.Arrow) != null ? u : Uf, Es = ar(Mo, N({}, X, (f = Z.popper) != null ? f : V.popper, { - className: Ne(gn.popper, X == null ? void 0 : X.className, (b = (y = Z.popper) != null ? y : V.popper) == null ? void 0 : b.className) - }), Kt), Ts = ar(Io, N({}, re, (v = Z.transition) != null ? v : V.transition), Kt), ks = ar(Ao, N({}, (m = Z.tooltip) != null ? m : V.tooltip, { - className: Ne(gn.tooltip, (x = (I = Z.tooltip) != null ? I : V.tooltip) == null ? void 0 : x.className) - }), Kt), Ns = ar(Do, N({}, (w = Z.arrow) != null ? w : V.arrow, { - className: Ne(gn.arrow, (E = (g = Z.arrow) != null ? g : V.arrow) == null ? void 0 : E.className) - }), Kt); - return /* @__PURE__ */ U(T.Fragment, { - children: [/* @__PURE__ */ T.cloneElement(ie, Ve), /* @__PURE__ */ d(Mo, N({ - as: K ?? Gi, + touch: De.current + }), Tr = Rh(rn), Ko = (r = (o = ee.popper) != null ? o : D.Popper) != null ? r : $h, Jo = (i = (a = (l = ee.transition) != null ? l : D.Transition) != null ? a : B) != null ? i : to, Zo = (c = (u = ee.tooltip) != null ? u : D.Tooltip) != null ? c : _h, Qo = (f = (v = ee.arrow) != null ? v : D.Arrow) != null ? f : Mh, ul = hn(Ko, C({}, G, (b = Z.popper) != null ? b : j.popper, { + className: Oe(Tr.popper, G == null ? void 0 : G.className, (p = (h = Z.popper) != null ? h : j.popper) == null ? void 0 : p.className) + }), rn), dl = hn(Jo, C({}, ne, (d = Z.transition) != null ? d : j.transition), rn), fl = hn(Zo, C({}, (g = Z.tooltip) != null ? g : j.tooltip, { + className: Oe(Tr.tooltip, (w = (S = Z.tooltip) != null ? S : j.tooltip) == null ? void 0 : w.className) + }), rn), hl = hn(Qo, C({}, (x = Z.arrow) != null ? x : j.arrow, { + className: Oe(Tr.arrow, (E = (y = Z.arrow) != null ? y : j.arrow) == null ? void 0 : E.className) + }), rn); + return /* @__PURE__ */ U(k.Fragment, { + children: [/* @__PURE__ */ k.cloneElement(se, Ve), /* @__PURE__ */ m(Ko, C({ + as: K ?? ys, placement: Y, anchorEl: Q ? { getBoundingClientRect: () => ({ - top: tr.y, - left: tr.x, - right: tr.x, - bottom: tr.y, + top: cn.y, + left: cn.x, + right: cn.x, + bottom: cn.y, width: 0, height: 0 }) - } : we, - popperRef: hn, - open: we ? tt : !1, - id: dn, + } : xe, + popperRef: Er, + open: xe ? nt : !1, + id: wr, transition: !0 - }, Gt, Es, { - popperOptions: xs, + }, nn, ul, { + popperOptions: pl, children: ({ - TransitionProps: ne - }) => /* @__PURE__ */ d(Io, N({ - timeout: Ee.transitions.duration.shorter - }, ne, Ts, { - children: /* @__PURE__ */ U(Ao, N({}, ks, { - children: [ae, S ? /* @__PURE__ */ d(Do, N({}, Ns, { - ref: Qe + TransitionProps: re + }) => /* @__PURE__ */ m(Jo, C({ + timeout: ke.transitions.duration.shorter + }, re, dl, { + children: /* @__PURE__ */ U(Zo, C({}, fl, { + children: [ae, T ? /* @__PURE__ */ m(Qo, C({}, hl, { + ref: et })) : null] })) })) }))] }); }); -process.env.NODE_ENV !== "production" && (Ki.propTypes = { +process.env.NODE_ENV !== "production" && (ws.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -7578,19 +7577,19 @@ process.env.NODE_ENV !== "production" && (Ki.propTypes = { * If `true`, adds an arrow to the tooltip. * @default false */ - arrow: i.bool, + arrow: s.bool, /** * Tooltip reference element. */ - children: vr.isRequired, + children: Cn.isRequired, /** * Override or extend the styles applied to the component. */ - classes: i.object, + classes: s.object, /** * @ignore */ - className: i.string, + className: s.string, /** * The components used for each slot inside. * @@ -7599,11 +7598,11 @@ process.env.NODE_ENV !== "production" && (Ki.propTypes = { * * @default {} */ - components: i.shape({ - Arrow: i.elementType, - Popper: i.elementType, - Tooltip: i.elementType, - Transition: i.elementType + components: s.shape({ + Arrow: s.elementType, + Popper: s.elementType, + Tooltip: s.elementType, + Transition: s.elementType }), /** * The extra props for the slot components. @@ -7614,107 +7613,107 @@ process.env.NODE_ENV !== "production" && (Ki.propTypes = { * * @default {} */ - componentsProps: i.shape({ - arrow: i.object, - popper: i.object, - tooltip: i.object, - transition: i.object + componentsProps: s.shape({ + arrow: s.object, + popper: s.object, + tooltip: s.object, + transition: s.object }), /** * Set to `true` if the `title` acts as an accessible description. * By default the `title` acts as an accessible label for the child. * @default false */ - describeChild: i.bool, + describeChild: s.bool, /** * Do not respond to focus-visible events. * @default false */ - disableFocusListener: i.bool, + disableFocusListener: s.bool, /** * Do not respond to hover events. * @default false */ - disableHoverListener: i.bool, + disableHoverListener: s.bool, /** * Makes a tooltip not interactive, i.e. it will close when the user * hovers over the tooltip before the `leaveDelay` is expired. * @default false */ - disableInteractive: i.bool, + disableInteractive: s.bool, /** * Do not respond to long press touch events. * @default false */ - disableTouchListener: i.bool, + disableTouchListener: s.bool, /** * The number of milliseconds to wait before showing the tooltip. * This prop won't impact the enter touch delay (`enterTouchDelay`). * @default 100 */ - enterDelay: i.number, + enterDelay: s.number, /** * The number of milliseconds to wait before showing the tooltip when one was already recently opened. * @default 0 */ - enterNextDelay: i.number, + enterNextDelay: s.number, /** * The number of milliseconds a user must touch the element before showing the tooltip. * @default 700 */ - enterTouchDelay: i.number, + enterTouchDelay: s.number, /** * If `true`, the tooltip follow the cursor over the wrapped element. * @default false */ - followCursor: i.bool, + followCursor: s.bool, /** * This prop is used to help implement the accessibility logic. * If you don't provide this prop. It falls back to a randomly generated id. */ - id: i.string, + id: s.string, /** * The number of milliseconds to wait before hiding the tooltip. * This prop won't impact the leave touch delay (`leaveTouchDelay`). * @default 0 */ - leaveDelay: i.number, + leaveDelay: s.number, /** * The number of milliseconds after the user stops touching an element before hiding the tooltip. * @default 1500 */ - leaveTouchDelay: i.number, + leaveTouchDelay: s.number, /** * Callback fired when the component requests to be closed. * * @param {React.SyntheticEvent} event The event source of the callback. */ - onClose: i.func, + onClose: s.func, /** * Callback fired when the component requests to be open. * * @param {React.SyntheticEvent} event The event source of the callback. */ - onOpen: i.func, + onOpen: s.func, /** * If `true`, the component is shown. */ - open: i.bool, + open: s.bool, /** * Tooltip placement. * @default 'bottom' */ - placement: i.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]), + placement: s.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]), /** * The component used for the popper. * @default Popper */ - PopperComponent: i.elementType, + PopperComponent: s.elementType, /** * Props applied to the [`Popper`](/material-ui/api/popper/) element. * @default {} */ - PopperProps: i.object, + PopperProps: s.object, /** * The extra props for the slot components. * You can override the existing props or add new ones. @@ -7723,11 +7722,11 @@ process.env.NODE_ENV !== "production" && (Ki.propTypes = { * * @default {} */ - slotProps: i.shape({ - arrow: i.object, - popper: i.object, - tooltip: i.object, - transition: i.object + slotProps: s.shape({ + arrow: s.object, + popper: s.object, + tooltip: s.object, + transition: s.object }), /** * The components used for each slot inside. @@ -7736,70 +7735,70 @@ process.env.NODE_ENV !== "production" && (Ki.propTypes = { * * @default {} */ - slots: i.shape({ - arrow: i.elementType, - popper: i.elementType, - tooltip: i.elementType, - transition: i.elementType + slots: s.shape({ + arrow: s.elementType, + popper: s.elementType, + tooltip: s.elementType, + transition: s.elementType }), /** * The system prop that allows defining system overrides as well as additional CSS styles. */ - sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]), + sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]), /** * Tooltip title. Zero-length titles string, undefined, null and false are never displayed. */ - title: i.node, + title: s.node, /** * The component used for the transition. * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. * @default Grow */ - TransitionComponent: i.elementType, + TransitionComponent: s.elementType, /** * Props applied to the transition element. * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component. */ - TransitionProps: i.object + TransitionProps: s.object }); -const Hf = Ki; -var wo = {}, Ji = { exports: {} }; +const Ih = ws; +var Ao = {}, xs = { exports: {} }; (function(e) { - function t(r) { - return r && r.__esModule ? r : { - default: r + function t(n) { + return n && n.__esModule ? n : { + default: n }; } e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports; -})(Ji); -var Wf = Ji.exports, Cn = {}; -function Xf(e) { - return Ze("MuiSvgIcon", e); +})(xs); +var Ah = xs.exports, Ar = {}; +function Dh(e) { + return Qe("MuiSvgIcon", e); } -ut("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]); -const qf = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], Yf = (e) => { +mt("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]); +const Bh = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], jh = (e) => { const { color: t, - fontSize: r, - classes: n + fontSize: n, + classes: r } = e, o = { - root: ["root", t !== "inherit" && `color${Ke(t)}`, `fontSize${Ke(r)}`] + root: ["root", t !== "inherit" && `color${Je(t)}`, `fontSize${Je(n)}`] }; - return st(o, Xf, n); -}, Gf = Ce("svg", { + return ct(o, Dh, r); +}, Lh = Se("svg", { name: "MuiSvgIcon", slot: "Root", overridesResolver: (e, t) => { const { - ownerState: r + ownerState: n } = e; - return [t.root, r.color !== "inherit" && t[`color${Ke(r.color)}`], t[`fontSize${Ke(r.fontSize)}`]]; + return [t.root, n.color !== "inherit" && t[`color${Je(n.color)}`], t[`fontSize${Je(n.fontSize)}`]]; } })(({ theme: e, ownerState: t }) => { - var r, n, o, a, s, l, c, p, u, h, f, b, y; + var n, r, o, i, a, l, c, u, f, v, b, p, h; return { userSelect: "none", width: "1em", @@ -7809,63 +7808,63 @@ const qf = ["children", "className", "color", "component", "fontSize", "htmlColo // e.g. heroicons uses fill="none" and stroke="currentColor" fill: t.hasSvgAsChild ? void 0 : "currentColor", flexShrink: 0, - transition: (r = e.transitions) == null || (n = r.create) == null ? void 0 : n.call(r, "fill", { + transition: (n = e.transitions) == null || (r = n.create) == null ? void 0 : r.call(n, "fill", { duration: (o = e.transitions) == null || (o = o.duration) == null ? void 0 : o.shorter }), fontSize: { inherit: "inherit", - small: ((a = e.typography) == null || (s = a.pxToRem) == null ? void 0 : s.call(a, 20)) || "1.25rem", + small: ((i = e.typography) == null || (a = i.pxToRem) == null ? void 0 : a.call(i, 20)) || "1.25rem", medium: ((l = e.typography) == null || (c = l.pxToRem) == null ? void 0 : c.call(l, 24)) || "1.5rem", - large: ((p = e.typography) == null || (u = p.pxToRem) == null ? void 0 : u.call(p, 35)) || "2.1875rem" + large: ((u = e.typography) == null || (f = u.pxToRem) == null ? void 0 : f.call(u, 35)) || "2.1875rem" }[t.fontSize], // TODO v5 deprecate, v6 remove for sx - color: (h = (f = (e.vars || e).palette) == null || (f = f[t.color]) == null ? void 0 : f.main) != null ? h : { - action: (b = (e.vars || e).palette) == null || (b = b.action) == null ? void 0 : b.active, - disabled: (y = (e.vars || e).palette) == null || (y = y.action) == null ? void 0 : y.disabled, + color: (v = (b = (e.vars || e).palette) == null || (b = b[t.color]) == null ? void 0 : b.main) != null ? v : { + action: (p = (e.vars || e).palette) == null || (p = p.action) == null ? void 0 : p.active, + disabled: (h = (e.vars || e).palette) == null || (h = h.action) == null ? void 0 : h.disabled, inherit: void 0 }[t.color] }; -}), xo = /* @__PURE__ */ T.forwardRef(function(t, r) { - const n = lt({ +}), Do = /* @__PURE__ */ k.forwardRef(function(t, n) { + const r = pt({ props: t, name: "MuiSvgIcon" }), { children: o, - className: a, - color: s = "inherit", + className: i, + color: a = "inherit", component: l = "svg", fontSize: c = "medium", - htmlColor: p, - inheritViewBox: u = !1, - titleAccess: h, - viewBox: f = "0 0 24 24" - } = n, b = fe(n, qf), y = /* @__PURE__ */ T.isValidElement(o) && o.type === "svg", v = N({}, n, { - color: s, + htmlColor: u, + inheritViewBox: f = !1, + titleAccess: v, + viewBox: b = "0 0 24 24" + } = r, p = he(r, Bh), h = /* @__PURE__ */ k.isValidElement(o) && o.type === "svg", d = C({}, r, { + color: a, component: l, fontSize: c, instanceFontSize: t.fontSize, - inheritViewBox: u, - viewBox: f, - hasSvgAsChild: y - }), m = {}; - u || (m.viewBox = f); - const x = Yf(v); - return /* @__PURE__ */ U(Gf, N({ + inheritViewBox: f, + viewBox: b, + hasSvgAsChild: h + }), g = {}; + f || (g.viewBox = b); + const w = jh(d); + return /* @__PURE__ */ U(Lh, C({ as: l, - className: Ne(x.root, a), + className: Oe(w.root, i), focusable: "false", - color: p, - "aria-hidden": h ? void 0 : !0, - role: h ? "img" : void 0, - ref: r - }, m, b, y && o.props, { - ownerState: v, - children: [y ? o.props.children : o, h ? /* @__PURE__ */ d("title", { - children: h + color: u, + "aria-hidden": v ? void 0 : !0, + role: v ? "img" : void 0, + ref: n + }, g, p, h && o.props, { + ownerState: d, + children: [h ? o.props.children : o, v ? /* @__PURE__ */ m("title", { + children: v }) : null] })); }); -process.env.NODE_ENV !== "production" && (xo.propTypes = { +process.env.NODE_ENV !== "production" && (Do.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -7873,15 +7872,15 @@ process.env.NODE_ENV !== "production" && (xo.propTypes = { /** * Node passed into the SVG element. */ - children: i.node, + children: s.node, /** * Override or extend the styles applied to the component. */ - classes: i.object, + classes: s.object, /** * @ignore */ - className: i.string, + className: s.string, /** * The color of the component. * It supports both default and custom theme colors, which can be added as shown in the @@ -7889,21 +7888,21 @@ process.env.NODE_ENV !== "production" && (xo.propTypes = { * You can use the `htmlColor` prop to apply a color attribute to the SVG element. * @default 'inherit' */ - color: i.oneOfType([i.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), i.string]), + color: s.oneOfType([s.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), s.string]), /** * The component used for the root node. * Either a string to use a HTML element or a component. */ - component: i.elementType, + component: s.elementType, /** * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size. * @default 'medium' */ - fontSize: i.oneOfType([i.oneOf(["inherit", "large", "medium", "small"]), i.string]), + fontSize: s.oneOfType([s.oneOf(["inherit", "large", "medium", "small"]), s.string]), /** * Applies a color attribute to the SVG element. */ - htmlColor: i.string, + htmlColor: s.string, /** * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox` * prop will be ignored. @@ -7911,22 +7910,22 @@ process.env.NODE_ENV !== "production" && (xo.propTypes = { * `component`'s viewBox to the root node. * @default false */ - inheritViewBox: i.bool, + inheritViewBox: s.bool, /** * The shape-rendering attribute. The behavior of the different options is described on the * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering). * If you are having issues with blurry icons you should investigate this prop. */ - shapeRendering: i.string, + shapeRendering: s.string, /** * The system prop that allows defining system overrides as well as additional CSS styles. */ - sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]), + sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]), /** * Provides a human-readable title for the element that contains it. * https://www.w3.org/TR/SVG-access/#Equivalent */ - titleAccess: i.string, + titleAccess: s.string, /** * Allows you to redefine what the coordinates without units mean inside an SVG element. * For example, if the SVG element is 500 (width) by 200 (height), @@ -7935,50 +7934,50 @@ process.env.NODE_ENV !== "production" && (xo.propTypes = { * to bottom right (50,20) and each unit will be worth 10px. * @default '0 0 24 24' */ - viewBox: i.string + viewBox: s.string }); -xo.muiName = "SvgIcon"; -const Ia = xo; -function Zi(e, t) { - function r(n, o) { - return /* @__PURE__ */ d(Ia, N({ +Do.muiName = "SvgIcon"; +const Ji = Do; +function Es(e, t) { + function n(r, o) { + return /* @__PURE__ */ m(Ji, C({ "data-testid": `${t}Icon`, ref: o - }, n, { + }, r, { children: e })); } - return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = Ia.muiName, /* @__PURE__ */ T.memo(/* @__PURE__ */ T.forwardRef(r)); + return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = Ji.muiName, /* @__PURE__ */ k.memo(/* @__PURE__ */ k.forwardRef(n)); } -const Kf = { +const Fh = { configure: (e) => { process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(` -`)), Ei.configure(e); +`)), Xa.configure(e); } -}, Jf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - capitalize: Ke, - createChainedFunction: An, - createSvgIcon: Zi, - debounce: fi, - deprecatedPropType: Tc, - isMuiElement: kc, - ownerDocument: Oe, - ownerWindow: Lt, - requirePropFactory: Nc, - setRef: Ur, - unstable_ClassNameGenerator: Kf, - unstable_useEnhancedEffect: Tt, - unstable_useId: hi, - unsupportedProp: Sc, - useControlled: mi, - useEventCallback: fr, - useForkRef: Ue, - useIsFocusVisible: gi -}, Symbol.toStringTag, { value: "Module" })), Zf = /* @__PURE__ */ rc(Jf); -var Aa; -function Qf() { - return Aa || (Aa = 1, function(e) { + capitalize: Je, + createChainedFunction: Gr, + createSvgIcon: Es, + debounce: Ba, + deprecatedPropType: fp, + isMuiElement: hp, + ownerDocument: Ce, + ownerWindow: Xt, + requirePropFactory: mp, + setRef: Qn, + unstable_ClassNameGenerator: Fh, + unstable_useEnhancedEffect: St, + unstable_useId: ja, + unsupportedProp: vp, + useControlled: La, + useEventCallback: En, + useForkRef: He, + useIsFocusVisible: Fa +}, Symbol.toStringTag, { value: "Module" })), zh = /* @__PURE__ */ Xc(Vh); +var Zi; +function Uh() { + return Zi || (Zi = 1, function(e) { "use client"; Object.defineProperty(e, "__esModule", { value: !0 @@ -7988,80 +7987,80 @@ function Qf() { return t.createSvgIcon; } }); - var t = Zf; - }(Cn)), Cn; + var t = zh; + }(Ar)), Ar; } -var eh = Wf; -Object.defineProperty(wo, "__esModule", { +var Hh = Ah; +Object.defineProperty(Ao, "__esModule", { value: !0 }); -var Qi = wo.default = void 0, th = eh(Qf()), rh = Os; -Qi = wo.default = (0, th.default)(/* @__PURE__ */ (0, rh.jsx)("path", { +var ks = Ao.default = void 0, Wh = Hh(Uh()), Xh = ml; +ks = Ao.default = (0, Wh.default)(/* @__PURE__ */ (0, Xh.jsx)("path", { d: "m10 17 5-5-5-5z" }), "ArrowRight"); -function Da(e, t, r) { - return e ? /* @__PURE__ */ d(Wa, { className: `papi-menu-icon-${r ? "leading" : "trailing"}`, children: /* @__PURE__ */ d("img", { src: e, alt: `${r ? "Leading" : "Trailing"} icon for ${t}` }) }) : void 0; +function Qi(e, t, n) { + return e ? /* @__PURE__ */ m(ma, { className: `papi-menu-icon-${n ? "leading" : "trailing"}`, children: /* @__PURE__ */ m("img", { src: e, alt: `${n ? "Leading" : "Trailing"} icon for ${t}` }) }) : void 0; } -function es(e) { +function Ts(e) { const { onClick: t, - label: r, - tooltip: n, + label: n, + tooltip: r, allowForLeadingIcons: o = !0, - iconPathBefore: a = void 0, - iconPathAfter: s = void 0, + iconPathBefore: i = void 0, + iconPathAfter: a = void 0, hasAutoFocus: l = !1, className: c, - isDisabled: p = !1, - isDense: u = !0, - isSubMenuParent: h = !1, - hasDisabledGutters: f = !1, - hasDivider: b = !1, - focusVisibleClassName: y, - id: v, - children: m - } = e, x = /* @__PURE__ */ d( - nl, + isDisabled: u = !1, + isDense: f = !0, + isSubMenuParent: v = !1, + hasDisabledGutters: b = !1, + hasDivider: p = !1, + focusVisibleClassName: h, + id: d, + children: g + } = e, w = /* @__PURE__ */ m( + Gl, { sx: { lineHeight: 0.8 }, autoFocus: l, className: c, - disabled: p, - dense: u, - disableGutters: f, - divider: b, - focusVisibleClassName: y, + disabled: u, + dense: f, + disableGutters: b, + divider: p, + focusVisibleClassName: h, onClick: t, - id: v, - children: r ? /* @__PURE__ */ U(Kr, { children: [ - Da(a, r, !0), - /* @__PURE__ */ d(ol, { primary: r, inset: !a && o }), - h ? /* @__PURE__ */ d(Wa, { className: "papi-menu-icon-trailing", children: /* @__PURE__ */ d(Qi, {}) }) : Da(s, r, !1) - ] }) : m + id: d, + children: n ? /* @__PURE__ */ U(_t, { children: [ + Qi(i, n, !0), + /* @__PURE__ */ m(ql, { primary: n, inset: !i && o }), + v ? /* @__PURE__ */ m(ma, { className: "papi-menu-icon-trailing", children: /* @__PURE__ */ m(ks, {}) }) : Qi(a, n, !1) + ] }) : g } ); - return n ? /* @__PURE__ */ d(Hf, { title: n, placement: "right", children: /* @__PURE__ */ d("div", { children: x }) }) : x; + return r ? /* @__PURE__ */ m(Ih, { title: r, placement: "right", children: /* @__PURE__ */ m("div", { children: w }) }) : w; } -function ts(e) { - return Object.entries(e.groups).map(([r, n]) => ({ id: r, group: n })); +function Ns(e) { + return Object.entries(e.groups).map(([n, r]) => ({ id: n, group: r })); } -function nh(e) { - const [t, r] = de(void 0), { parentMenuItem: n, parentItemProps: o, menuDefinition: a } = e, s = (p) => { - r(p.currentTarget); +function Gh(e) { + const [t, n] = fe(void 0), { parentMenuItem: r, parentItemProps: o, menuDefinition: i } = e, a = (u) => { + n(u.currentTarget); }, l = () => { - r(void 0); + n(void 0); }, c = () => { - let p = ts(a).filter((u) => "menuItem" in u.group); - if (!(n != null && n.id)) + let u = Ns(i).filter((f) => "menuItem" in f.group); + if (!(r != null && r.id)) throw new Error("A valid parent menu item is required for submenus."); - return p = p.filter( - (u) => "menuItem" in u.group && u.group.menuItem === n.id - ), /* @__PURE__ */ d(Eo, { ...e, includedGroups: p }); + return u = u.filter( + (f) => "menuItem" in f.group && f.group.menuItem === r.id + ), /* @__PURE__ */ m(Bo, { ...e, includedGroups: u }); }; - return /* @__PURE__ */ U(Kr, { children: [ - /* @__PURE__ */ d(es, { onClick: s, ...o, isSubMenuParent: !0 }), - /* @__PURE__ */ d( - al, + return /* @__PURE__ */ U(_t, { children: [ + /* @__PURE__ */ m(Ts, { onClick: a, ...o, isSubMenuParent: !0 }), + /* @__PURE__ */ m( + Yl, { anchorEl: t, open: !!t, @@ -8076,102 +8075,102 @@ function nh(e) { }, children: c() }, - n.id + r.id ) ] }); } -const oh = (e, t) => t.filter((o) => o.group === e).sort((o, a) => (o.order || 0) - (a.order || 0)); -function Eo(e) { - const { menuDefinition: t, onClick: r, commandHandler: n, includedGroups: o } = e, { items: a, allowForLeadingIcons: s } = Wn(() => { - const u = o && o.length > 0 ? o : ( +const qh = (e, t) => t.filter((o) => o.group === e).sort((o, i) => (o.order || 0) - (i.order || 0)); +function Bo(e) { + const { menuDefinition: t, onClick: n, commandHandler: r, includedGroups: o } = e, { items: i, allowForLeadingIcons: a } = io(() => { + const f = o && o.length > 0 ? o : ( // We're apparently laying out a single-column menu (presumably a context menu). In this // case, all groups should be included except ones that belong to a submenu. - ts(t).filter((y) => !("menuItem" in y.group)) - ), h = Object.values(u).sort( - (y, v) => (y.group.order || 0) - (v.group.order || 0) - ), f = []; - h.forEach((y) => { - oh(y.id, t.items).forEach( - (v) => f.push({ item: v, isLastItemInGroup: !1 }) - ), f.length > 0 && (f[f.length - 1].isLastItemInGroup = !0); - }), f.length > 0 && (f[f.length - 1].isLastItemInGroup = !1); - const b = f.some( - (y) => "iconPathBefore" in y.item && y.item.iconPathBefore + Ns(t).filter((h) => !("menuItem" in h.group)) + ), v = Object.values(f).sort( + (h, d) => (h.group.order || 0) - (d.group.order || 0) + ), b = []; + v.forEach((h) => { + qh(h.id, t.items).forEach( + (d) => b.push({ item: d, isLastItemInGroup: !1 }) + ), b.length > 0 && (b[b.length - 1].isLastItemInGroup = !0); + }), b.length > 0 && (b[b.length - 1].isLastItemInGroup = !1); + const p = b.some( + (h) => "iconPathBefore" in h.item && h.item.iconPathBefore ); - return { items: f, allowForLeadingIcons: b }; - }, [o, t]), l = ({ item: u, isLastItemInGroup: h }) => ({ + return { items: b, allowForLeadingIcons: p }; + }, [o, t]), l = ({ item: f, isLastItemInGroup: v }) => ({ className: "papi-menu-item", - label: u.label, - tooltip: u.tooltip, - iconPathBefore: "iconPathBefore" in u ? u.iconPathBefore : void 0, - iconPathAfter: "iconPathAfter" in u ? u.iconPathAfter : void 0, - hasDivider: h, + label: f.label, + tooltip: f.tooltip, + iconPathBefore: "iconPathBefore" in f ? f.iconPathBefore : void 0, + iconPathAfter: "iconPathAfter" in f ? f.iconPathAfter : void 0, + hasDivider: v, // Set hasDivider to true for the last item in a group - allowForLeadingIcons: s - }), [c] = a; + allowForLeadingIcons: a + }), [c] = i; if (!c) - return /* @__PURE__ */ d("div", {}); - const p = c.item.group; - return /* @__PURE__ */ d("div", { role: "menu", "aria-label": p, children: a.map((u, h) => { - const { item: f } = u, b = l(u); - if ("command" in f) { - const y = f.group + h; - return /* @__PURE__ */ d( - es, + return /* @__PURE__ */ m("div", {}); + const u = c.item.group; + return /* @__PURE__ */ m("div", { role: "menu", "aria-label": u, children: i.map((f, v) => { + const { item: b } = f, p = l(f); + if ("command" in b) { + const h = b.group + v; + return /* @__PURE__ */ m( + Ts, { - onClick: (v) => { - r == null || r(v), n(f); + onClick: (d) => { + n == null || n(d), r(b); }, - ...b + ...p }, - y + h ); } - return /* @__PURE__ */ d( - nh, + return /* @__PURE__ */ m( + Gh, { - parentMenuItem: f, - parentItemProps: b, + parentMenuItem: b, + parentItemProps: p, ...e }, - p + f.id + u + b.id ); - }) }, p); + }) }, u); } -function ah(e) { - const { menuDefinition: t, columnId: r } = e; - let a = Object.entries(t.groups).map(([s, l]) => ({ id: s, group: l })).filter((s) => "column" in s.group); - return r && "columns" in t && // Without this type assertion, TS doesn't know what columns is. +function Yh(e) { + const { menuDefinition: t, columnId: n } = e; + let i = Object.entries(t.groups).map(([a, l]) => ({ id: a, group: l })).filter((a) => "column" in a.group); + return n && "columns" in t && // Without this type assertion, TS doesn't know what columns is. // eslint-disable-next-line no-type-assertion/no-type-assertion - t.columns[r] && (a = a.filter( - (s) => "column" in s.group && s.group.column === r - )), /* @__PURE__ */ d(Eo, { ...e, includedGroups: a }); + t.columns[n] && (i = i.filter( + (a) => "column" in a.group && a.group.column === n + )), /* @__PURE__ */ m(Bo, { ...e, includedGroups: i }); } -function ih({ +function Kh({ commandHandler: e, menuDefinition: t, - id: r, - metadata: n, + id: n, + metadata: r, onClick: o, - className: a + className: i }) { return /* @__PURE__ */ U( - Xa, + ga, { - id: r, + id: n, item: !0, xs: "auto", role: "menu", - "aria-label": r, - className: `papi-menu-column ${a ?? ""}`, + "aria-label": n, + className: `papi-menu-column ${i ?? ""}`, children: [ - /* @__PURE__ */ d("h3", { "aria-label": n.label, className: `papi-menu-column-header ${a ?? ""}`, children: n.label }), - /* @__PURE__ */ d(il, { id: r, dense: !0, className: a ?? "", children: /* @__PURE__ */ d( - ah, + /* @__PURE__ */ m("h3", { "aria-label": r.label, className: `papi-menu-column-header ${i ?? ""}`, children: r.label }), + /* @__PURE__ */ m(Kl, { id: n, dense: !0, className: i ?? "", children: /* @__PURE__ */ m( + Yh, { commandHandler: e, menuDefinition: t, - columnId: r, + columnId: n, onClick: o } ) }) @@ -8179,39 +8178,39 @@ function ih({ } ); } -function sh({ +function Jh({ commandHandler: e, className: t, - multiColumnMenu: r, - id: n + multiColumnMenu: n, + id: r }) { - const { columns: o } = r, a = Wn(() => { - const s = /* @__PURE__ */ new Map(); + const { columns: o } = n, i = io(() => { + const a = /* @__PURE__ */ new Map(); return Object.getOwnPropertyNames(o).forEach((l) => { if (l === "isExtensible") return; - const c = l, p = o[c]; - typeof p == "object" && typeof p.order == "number" && !Number.isNaN(p.order) ? s.set(p.order, { id: c, metadata: p }) : console.warn( - `Property ${l} (${typeof p}) on menu ${n} is not a valid column and is being ignored. This might indicate data corruption` + const c = l, u = o[c]; + typeof u == "object" && typeof u.order == "number" && !Number.isNaN(u.order) ? a.set(u.order, { id: c, metadata: u }) : console.warn( + `Property ${l} (${typeof u}) on menu ${r} is not a valid column and is being ignored. This might indicate data corruption` ); - }), Array.from(s.values()).sort((l, c) => (l.metadata.order || 0) - (c.metadata.order || 0)); - }, [o, n]); - return /* @__PURE__ */ d( - Xa, + }), Array.from(a.values()).sort((l, c) => (l.metadata.order || 0) - (c.metadata.order || 0)); + }, [o, r]); + return /* @__PURE__ */ m( + ga, { container: !0, spacing: 0, className: `papi-multi-column-menu ${t ?? ""}`, - columns: a.length, + columns: i.length, role: "menu", "aria-label": "GridMenu", - id: n, - children: a.map((s, l) => /* @__PURE__ */ d( - ih, + id: r, + children: i.map((a, l) => /* @__PURE__ */ m( + Kh, { commandHandler: e, - menuDefinition: r, - ...s, + menuDefinition: n, + ...a, className: t }, l @@ -8219,35 +8218,35 @@ function sh({ } ); } -const rs = /* @__PURE__ */ T.createContext({}); -process.env.NODE_ENV !== "production" && (rs.displayName = "ListContext"); -const lh = rs; -function ch(e) { - return Ze("MuiList", e); +const Os = /* @__PURE__ */ k.createContext({}); +process.env.NODE_ENV !== "production" && (Os.displayName = "ListContext"); +const Zh = Os; +function Qh(e) { + return Qe("MuiList", e); } -ut("MuiList", ["root", "padding", "dense", "subheader"]); -const ph = ["children", "className", "component", "dense", "disablePadding", "subheader"], uh = (e) => { +mt("MuiList", ["root", "padding", "dense", "subheader"]); +const em = ["children", "className", "component", "dense", "disablePadding", "subheader"], tm = (e) => { const { classes: t, - disablePadding: r, - dense: n, + disablePadding: n, + dense: r, subheader: o } = e; - return st({ - root: ["root", !r && "padding", n && "dense", o && "subheader"] - }, ch, t); -}, dh = Ce("ul", { + return ct({ + root: ["root", !n && "padding", r && "dense", o && "subheader"] + }, Qh, t); +}, nm = Se("ul", { name: "MuiList", slot: "Root", overridesResolver: (e, t) => { const { - ownerState: r + ownerState: n } = e; - return [t.root, !r.disablePadding && t.padding, r.dense && t.dense, r.subheader && t.subheader]; + return [t.root, !n.disablePadding && t.padding, n.dense && t.dense, n.subheader && t.subheader]; } })(({ ownerState: e -}) => N({ +}) => C({ listStyle: "none", margin: 0, padding: 0, @@ -8257,37 +8256,37 @@ const ph = ["children", "className", "component", "dense", "disablePadding", "su paddingBottom: 8 }, e.subheader && { paddingTop: 0 -})), ns = /* @__PURE__ */ T.forwardRef(function(t, r) { - const n = lt({ +})), Cs = /* @__PURE__ */ k.forwardRef(function(t, n) { + const r = pt({ props: t, name: "MuiList" }), { children: o, - className: a, - component: s = "ul", + className: i, + component: a = "ul", dense: l = !1, disablePadding: c = !1, - subheader: p - } = n, u = fe(n, ph), h = T.useMemo(() => ({ + subheader: u + } = r, f = he(r, em), v = k.useMemo(() => ({ dense: l - }), [l]), f = N({}, n, { - component: s, + }), [l]), b = C({}, r, { + component: a, dense: l, disablePadding: c - }), b = uh(f); - return /* @__PURE__ */ d(lh.Provider, { - value: h, - children: /* @__PURE__ */ U(dh, N({ - as: s, - className: Ne(b.root, a), - ref: r, - ownerState: f - }, u, { - children: [p, o] + }), p = tm(b); + return /* @__PURE__ */ m(Zh.Provider, { + value: v, + children: /* @__PURE__ */ U(nm, C({ + as: a, + className: Oe(p.root, i), + ref: n, + ownerState: b + }, f, { + children: [u, o] })) }); }); -process.env.NODE_ENV !== "production" && (ns.propTypes = { +process.env.NODE_ENV !== "production" && (Cs.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -8295,146 +8294,146 @@ process.env.NODE_ENV !== "production" && (ns.propTypes = { /** * The content of the component. */ - children: i.node, + children: s.node, /** * Override or extend the styles applied to the component. */ - classes: i.object, + classes: s.object, /** * @ignore */ - className: i.string, + className: s.string, /** * The component used for the root node. * Either a string to use a HTML element or a component. */ - component: i.elementType, + component: s.elementType, /** * If `true`, compact vertical padding designed for keyboard and mouse input is used for * the list and list items. * The prop is available to descendant components as the `dense` context. * @default false */ - dense: i.bool, + dense: s.bool, /** * If `true`, vertical padding is removed from the list. * @default false */ - disablePadding: i.bool, + disablePadding: s.bool, /** * The content of the subheader, normally `ListSubheader`. */ - subheader: i.node, + subheader: s.node, /** * The system prop that allows defining system overrides as well as additional CSS styles. */ - sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]) + sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]) }); -const fh = ns, hh = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"]; -function Sn(e, t, r) { - return e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : r ? null : e.firstChild; +const rm = Cs, om = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"]; +function Dr(e, t, n) { + return e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : e.firstChild; } -function ja(e, t, r) { - return e === t ? r ? e.firstChild : e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : r ? null : e.lastChild; +function ea(e, t, n) { + return e === t ? n ? e.firstChild : e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : n ? null : e.lastChild; } -function os(e, t) { +function Ss(e, t) { if (t === void 0) return !0; - let r = e.innerText; - return r === void 0 && (r = e.textContent), r = r.trim().toLowerCase(), r.length === 0 ? !1 : t.repeating ? r[0] === t.keys[0] : r.indexOf(t.keys.join("")) === 0; + let n = e.innerText; + return n === void 0 && (n = e.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.indexOf(t.keys.join("")) === 0; } -function rr(e, t, r, n, o, a) { - let s = !1, l = o(e, t, t ? r : !1); +function pn(e, t, n, r, o, i) { + let a = !1, l = o(e, t, t ? n : !1); for (; l; ) { if (l === e.firstChild) { - if (s) + if (a) return !1; - s = !0; + a = !0; } - const c = n ? !1 : l.disabled || l.getAttribute("aria-disabled") === "true"; - if (!l.hasAttribute("tabindex") || !os(l, a) || c) - l = o(e, l, r); + const c = r ? !1 : l.disabled || l.getAttribute("aria-disabled") === "true"; + if (!l.hasAttribute("tabindex") || !Ss(l, i) || c) + l = o(e, l, n); else return l.focus(), !0; } return !1; } -const as = /* @__PURE__ */ T.forwardRef(function(t, r) { +const Ps = /* @__PURE__ */ k.forwardRef(function(t, n) { const { // private // eslint-disable-next-line react/prop-types - actions: n, + actions: r, autoFocus: o = !1, - autoFocusItem: a = !1, - children: s, + autoFocusItem: i = !1, + children: a, className: l, disabledItemsFocusable: c = !1, - disableListWrap: p = !1, - onKeyDown: u, - variant: h = "selectedMenu" - } = t, f = fe(t, hh), b = T.useRef(null), y = T.useRef({ + disableListWrap: u = !1, + onKeyDown: f, + variant: v = "selectedMenu" + } = t, b = he(t, om), p = k.useRef(null), h = k.useRef({ keys: [], repeating: !0, previousKeyMatched: !0, lastTime: null }); - Tt(() => { - o && b.current.focus(); - }, [o]), T.useImperativeHandle(n, () => ({ - adjustStyleForScrollbar: (w, E) => { - const g = !b.current.style.width; - if (w.clientHeight < b.current.clientHeight && g) { - const O = `${bi(Oe(w))}px`; - b.current.style[E.direction === "rtl" ? "paddingLeft" : "paddingRight"] = O, b.current.style.width = `calc(100% + ${O})`; + St(() => { + o && p.current.focus(); + }, [o]), k.useImperativeHandle(r, () => ({ + adjustStyleForScrollbar: (x, E) => { + const y = !p.current.style.width; + if (x.clientHeight < p.current.clientHeight && y) { + const N = `${Va(Ce(x))}px`; + p.current.style[E.direction === "rtl" ? "paddingLeft" : "paddingRight"] = N, p.current.style.width = `calc(100% + ${N})`; } - return b.current; + return p.current; } }), []); - const v = (w) => { - const E = b.current, g = w.key, O = Oe(E).activeElement; - if (g === "ArrowDown") - w.preventDefault(), rr(E, O, p, c, Sn); - else if (g === "ArrowUp") - w.preventDefault(), rr(E, O, p, c, ja); - else if (g === "Home") - w.preventDefault(), rr(E, null, p, c, Sn); - else if (g === "End") - w.preventDefault(), rr(E, null, p, c, ja); - else if (g.length === 1) { - const S = y.current, L = g.toLowerCase(), D = performance.now(); - S.keys.length > 0 && (D - S.lastTime > 500 ? (S.keys = [], S.repeating = !0, S.previousKeyMatched = !0) : S.repeating && L !== S.keys[0] && (S.repeating = !1)), S.lastTime = D, S.keys.push(L); - const V = O && !S.repeating && os(O, S); - S.previousKeyMatched && (V || rr(E, O, !1, c, Sn, S)) ? w.preventDefault() : S.previousKeyMatched = !1; - } - u && u(w); - }, m = Ue(b, r); - let x = -1; - T.Children.forEach(s, (w, E) => { - if (!/* @__PURE__ */ T.isValidElement(w)) { - x === E && (x += 1, x >= s.length && (x = -1)); + const d = (x) => { + const E = p.current, y = x.key, N = Ce(E).activeElement; + if (y === "ArrowDown") + x.preventDefault(), pn(E, N, u, c, Dr); + else if (y === "ArrowUp") + x.preventDefault(), pn(E, N, u, c, ea); + else if (y === "Home") + x.preventDefault(), pn(E, null, u, c, Dr); + else if (y === "End") + x.preventDefault(), pn(E, null, u, c, ea); + else if (y.length === 1) { + const T = h.current, _ = y.toLowerCase(), D = performance.now(); + T.keys.length > 0 && (D - T.lastTime > 500 ? (T.keys = [], T.repeating = !0, T.previousKeyMatched = !0) : T.repeating && _ !== T.keys[0] && (T.repeating = !1)), T.lastTime = D, T.keys.push(_); + const j = N && !T.repeating && Ss(N, T); + T.previousKeyMatched && (j || pn(E, N, !1, c, Dr, T)) ? x.preventDefault() : T.previousKeyMatched = !1; + } + f && f(x); + }, g = He(p, n); + let w = -1; + k.Children.forEach(a, (x, E) => { + if (!/* @__PURE__ */ k.isValidElement(x)) { + w === E && (w += 1, w >= a.length && (w = -1)); return; } - process.env.NODE_ENV !== "production" && zr.isFragment(w) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(` -`)), w.props.disabled || (h === "selectedMenu" && w.props.selected || x === -1) && (x = E), x === E && (w.props.disabled || w.props.muiSkipListHighlight || w.type.muiSkipListHighlight) && (x += 1, x >= s.length && (x = -1)); + process.env.NODE_ENV !== "production" && Zn.isFragment(x) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(` +`)), x.props.disabled || (v === "selectedMenu" && x.props.selected || w === -1) && (w = E), w === E && (x.props.disabled || x.props.muiSkipListHighlight || x.type.muiSkipListHighlight) && (w += 1, w >= a.length && (w = -1)); }); - const I = T.Children.map(s, (w, E) => { - if (E === x) { - const g = {}; - return a && (g.autoFocus = !0), w.props.tabIndex === void 0 && h === "selectedMenu" && (g.tabIndex = 0), /* @__PURE__ */ T.cloneElement(w, g); + const S = k.Children.map(a, (x, E) => { + if (E === w) { + const y = {}; + return i && (y.autoFocus = !0), x.props.tabIndex === void 0 && v === "selectedMenu" && (y.tabIndex = 0), /* @__PURE__ */ k.cloneElement(x, y); } - return w; + return x; }); - return /* @__PURE__ */ d(fh, N({ + return /* @__PURE__ */ m(rm, C({ role: "menu", - ref: m, + ref: g, className: l, - onKeyDown: v, + onKeyDown: d, tabIndex: o ? 0 : -1 - }, f, { - children: I + }, b, { + children: S })); }); -process.env.NODE_ENV !== "production" && (as.propTypes = { +process.env.NODE_ENV !== "production" && (Ps.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -8443,119 +8442,119 @@ process.env.NODE_ENV !== "production" && (as.propTypes = { * If `true`, will focus the `[role="menu"]` container and move into tab order. * @default false */ - autoFocus: i.bool, + autoFocus: s.bool, /** * If `true`, will focus the first menuitem if `variant="menu"` or selected item * if `variant="selectedMenu"`. * @default false */ - autoFocusItem: i.bool, + autoFocusItem: s.bool, /** * MenuList contents, normally `MenuItem`s. */ - children: i.node, + children: s.node, /** * @ignore */ - className: i.string, + className: s.string, /** * If `true`, will allow focus on disabled items. * @default false */ - disabledItemsFocusable: i.bool, + disabledItemsFocusable: s.bool, /** * If `true`, the menu items will not wrap focus. * @default false */ - disableListWrap: i.bool, + disableListWrap: s.bool, /** * @ignore */ - onKeyDown: i.func, + onKeyDown: s.func, /** * The variant to use. Use `menu` to prevent selected items from impacting the initial focus * and the vertical alignment relative to the anchor element. * @default 'selectedMenu' */ - variant: i.oneOf(["menu", "selectedMenu"]) + variant: s.oneOf(["menu", "selectedMenu"]) }); -const mh = as, gh = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], bh = { +const im = Ps, am = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], sm = { entering: { opacity: 1 }, entered: { opacity: 1 } -}, is = /* @__PURE__ */ T.forwardRef(function(t, r) { - const n = kr(), o = { - enter: n.transitions.duration.enteringScreen, - exit: n.transitions.duration.leavingScreen +}, Rs = /* @__PURE__ */ k.forwardRef(function(t, n) { + const r = Mn(), o = { + enter: r.transitions.duration.enteringScreen, + exit: r.transitions.duration.leavingScreen }, { - addEndListener: a, - appear: s = !0, + addEndListener: i, + appear: a = !0, children: l, easing: c, - in: p, - onEnter: u, - onEntered: h, - onEntering: f, - onExit: b, - onExited: y, - onExiting: v, - style: m, - timeout: x = o, + in: u, + onEnter: f, + onEntered: v, + onEntering: b, + onExit: p, + onExited: h, + onExiting: d, + style: g, + timeout: w = o, // eslint-disable-next-line react/prop-types - TransitionComponent: I = Xi - } = t, w = fe(t, gh), E = T.useRef(null), g = Ue(E, l.ref, r), O = (B) => (z) => { - if (B) { - const P = E.current; - z === void 0 ? B(P) : B(P, z); - } - }, S = O(f), L = O((B, z) => { - qi(B); - const P = Gr({ - style: m, - timeout: x, + TransitionComponent: S = gs + } = t, x = he(t, am), E = k.useRef(null), y = He(E, l.ref, n), N = (F) => (z) => { + if (F) { + const R = E.current; + z === void 0 ? F(R) : F(R, z); + } + }, T = N(b), _ = N((F, z) => { + bs(F); + const R = ir({ + style: g, + timeout: w, easing: c }, { mode: "enter" }); - B.style.webkitTransition = n.transitions.create("opacity", P), B.style.transition = n.transitions.create("opacity", P), u && u(B, z); - }), D = O(h), V = O(v), C = O((B) => { - const z = Gr({ - style: m, - timeout: x, + F.style.webkitTransition = r.transitions.create("opacity", R), F.style.transition = r.transitions.create("opacity", R), f && f(F, z); + }), D = N(v), j = N(d), P = N((F) => { + const z = ir({ + style: g, + timeout: w, easing: c }, { mode: "exit" }); - B.style.webkitTransition = n.transitions.create("opacity", z), B.style.transition = n.transitions.create("opacity", z), b && b(B); - }), _ = O(y); - return /* @__PURE__ */ d(I, N({ - appear: s, - in: p, + F.style.webkitTransition = r.transitions.create("opacity", z), F.style.transition = r.transitions.create("opacity", z), p && p(F); + }), I = N(h); + return /* @__PURE__ */ m(S, C({ + appear: a, + in: u, nodeRef: E, - onEnter: L, + onEnter: _, onEntered: D, - onEntering: S, - onExit: C, - onExited: _, - onExiting: V, - addEndListener: (B) => { - a && a(E.current, B); + onEntering: T, + onExit: P, + onExited: I, + onExiting: j, + addEndListener: (F) => { + i && i(E.current, F); }, - timeout: x - }, w, { - children: (B, z) => /* @__PURE__ */ T.cloneElement(l, N({ - style: N({ + timeout: w + }, x, { + children: (F, z) => /* @__PURE__ */ k.cloneElement(l, C({ + style: C({ opacity: 0, - visibility: B === "exited" && !p ? "hidden" : void 0 - }, bh[B], m, l.props.style), - ref: g + visibility: F === "exited" && !u ? "hidden" : void 0 + }, sm[F], g, l.props.style), + ref: y }, z)) })); }); -process.env.NODE_ENV !== "production" && (is.propTypes = { +process.env.NODE_ENV !== "production" && (Rs.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -8565,57 +8564,57 @@ process.env.NODE_ENV !== "production" && (is.propTypes = { * node and a done callback. Allows for more fine grained transition end * logic. Note: Timeouts are still used as a fallback if provided. */ - addEndListener: i.func, + addEndListener: s.func, /** * Perform the enter transition when it first mounts if `in` is also `true`. * Set this to `false` to disable this behavior. * @default true */ - appear: i.bool, + appear: s.bool, /** * A single child content element. */ - children: vr.isRequired, + children: Cn.isRequired, /** * The transition timing function. * You may specify a single easing or a object containing enter and exit values. */ - easing: i.oneOfType([i.shape({ - enter: i.string, - exit: i.string - }), i.string]), + easing: s.oneOfType([s.shape({ + enter: s.string, + exit: s.string + }), s.string]), /** * If `true`, the component will transition in. */ - in: i.bool, + in: s.bool, /** * @ignore */ - onEnter: i.func, + onEnter: s.func, /** * @ignore */ - onEntered: i.func, + onEntered: s.func, /** * @ignore */ - onEntering: i.func, + onEntering: s.func, /** * @ignore */ - onExit: i.func, + onExit: s.func, /** * @ignore */ - onExited: i.func, + onExited: s.func, /** * @ignore */ - onExiting: i.func, + onExiting: s.func, /** * @ignore */ - style: i.object, + style: s.object, /** * The duration for the transition, in milliseconds. * You may specify a single timeout for all transitions, or individually with an object. @@ -8624,37 +8623,37 @@ process.env.NODE_ENV !== "production" && (is.propTypes = { * exit: theme.transitions.duration.leavingScreen, * } */ - timeout: i.oneOfType([i.number, i.shape({ - appear: i.number, - enter: i.number, - exit: i.number + timeout: s.oneOfType([s.number, s.shape({ + appear: s.number, + enter: s.number, + exit: s.number })]) }); -const vh = is; -function yh(e) { - return Ze("MuiBackdrop", e); +const lm = Rs; +function cm(e) { + return Qe("MuiBackdrop", e); } -ut("MuiBackdrop", ["root", "invisible"]); -const wh = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], xh = (e) => { +mt("MuiBackdrop", ["root", "invisible"]); +const pm = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], um = (e) => { const { classes: t, - invisible: r + invisible: n } = e; - return st({ - root: ["root", r && "invisible"] - }, yh, t); -}, Eh = Ce("div", { + return ct({ + root: ["root", n && "invisible"] + }, cm, t); +}, dm = Se("div", { name: "MuiBackdrop", slot: "Root", overridesResolver: (e, t) => { const { - ownerState: r + ownerState: n } = e; - return [t.root, r.invisible && t.invisible]; + return [t.root, n.invisible && t.invisible]; } })(({ ownerState: e -}) => N({ +}) => C({ position: "fixed", display: "flex", alignItems: "center", @@ -8667,44 +8666,44 @@ const wh = ["children", "className", "component", "components", "componentsProps WebkitTapHighlightColor: "transparent" }, e.invisible && { backgroundColor: "transparent" -})), ss = /* @__PURE__ */ T.forwardRef(function(t, r) { - var n, o, a; - const s = lt({ +})), $s = /* @__PURE__ */ k.forwardRef(function(t, n) { + var r, o, i; + const a = pt({ props: t, name: "MuiBackdrop" }), { children: l, className: c, - component: p = "div", - components: u = {}, - componentsProps: h = {}, - invisible: f = !1, - open: b, - slotProps: y = {}, - slots: v = {}, - TransitionComponent: m = vh, - transitionDuration: x - } = s, I = fe(s, wh), w = N({}, s, { - component: p, - invisible: f - }), E = xh(w), g = (n = y.root) != null ? n : h.root; - return /* @__PURE__ */ d(m, N({ - in: b, - timeout: x - }, I, { - children: /* @__PURE__ */ d(Eh, N({ + component: u = "div", + components: f = {}, + componentsProps: v = {}, + invisible: b = !1, + open: p, + slotProps: h = {}, + slots: d = {}, + TransitionComponent: g = lm, + transitionDuration: w + } = a, S = he(a, pm), x = C({}, a, { + component: u, + invisible: b + }), E = um(x), y = (r = h.root) != null ? r : v.root; + return /* @__PURE__ */ m(g, C({ + in: p, + timeout: w + }, S, { + children: /* @__PURE__ */ m(dm, C({ "aria-hidden": !0 - }, g, { - as: (o = (a = v.root) != null ? a : u.Root) != null ? o : p, - className: Ne(E.root, c, g == null ? void 0 : g.className), - ownerState: N({}, w, g == null ? void 0 : g.ownerState), + }, y, { + as: (o = (i = d.root) != null ? i : f.Root) != null ? o : u, + className: Oe(E.root, c, y == null ? void 0 : y.className), + ownerState: C({}, x, y == null ? void 0 : y.ownerState), classes: E, - ref: r, + ref: n, children: l })) })); }); -process.env.NODE_ENV !== "production" && (ss.propTypes = { +process.env.NODE_ENV !== "production" && ($s.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -8712,20 +8711,20 @@ process.env.NODE_ENV !== "production" && (ss.propTypes = { /** * The content of the component. */ - children: i.node, + children: s.node, /** * Override or extend the styles applied to the component. */ - classes: i.object, + classes: s.object, /** * @ignore */ - className: i.string, + className: s.string, /** * The component used for the root node. * Either a string to use a HTML element or a component. */ - component: i.elementType, + component: s.elementType, /** * The components used for each slot inside. * @@ -8734,8 +8733,8 @@ process.env.NODE_ENV !== "production" && (ss.propTypes = { * * @default {} */ - components: i.shape({ - Root: i.elementType + components: s.shape({ + Root: s.elementType }), /** * The extra props for the slot components. @@ -8746,19 +8745,19 @@ process.env.NODE_ENV !== "production" && (ss.propTypes = { * * @default {} */ - componentsProps: i.shape({ - root: i.object + componentsProps: s.shape({ + root: s.object }), /** * If `true`, the backdrop is invisible. * It can be used when rendering a popover or a custom select component. * @default false */ - invisible: i.bool, + invisible: s.bool, /** * If `true`, the component is shown. */ - open: i.bool.isRequired, + open: s.bool.isRequired, /** * The extra props for the slot components. * You can override the existing props or add new ones. @@ -8767,8 +8766,8 @@ process.env.NODE_ENV !== "production" && (ss.propTypes = { * * @default {} */ - slotProps: i.shape({ - root: i.object + slotProps: s.shape({ + root: s.object }), /** * The components used for each slot inside. @@ -8777,57 +8776,57 @@ process.env.NODE_ENV !== "production" && (ss.propTypes = { * * @default {} */ - slots: i.shape({ - root: i.elementType + slots: s.shape({ + root: s.elementType }), /** * The system prop that allows defining system overrides as well as additional CSS styles. */ - sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]), + sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]), /** * The component used for the transition. * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. * @default Fade */ - TransitionComponent: i.elementType, + TransitionComponent: s.elementType, /** * The duration for the transition, in milliseconds. * You may specify a single timeout for all transitions, or individually with an object. */ - transitionDuration: i.oneOfType([i.number, i.shape({ - appear: i.number, - enter: i.number, - exit: i.number + transitionDuration: s.oneOfType([s.number, s.shape({ + appear: s.number, + enter: s.number, + exit: s.number })]) }); -const Th = ss; -function kh(e) { - return Ze("MuiModal", e); +const fm = $s; +function hm(e) { + return Qe("MuiModal", e); } -ut("MuiModal", ["root", "hidden", "backdrop"]); -const Nh = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], Oh = (e) => { +mt("MuiModal", ["root", "hidden", "backdrop"]); +const mm = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], gm = (e) => { const { open: t, - exited: r, - classes: n + exited: n, + classes: r } = e; - return st({ - root: ["root", !t && r && "hidden"], + return ct({ + root: ["root", !t && n && "hidden"], backdrop: ["backdrop"] - }, kh, n); -}, Ch = Ce("div", { + }, hm, r); +}, bm = Se("div", { name: "MuiModal", slot: "Root", overridesResolver: (e, t) => { const { - ownerState: r + ownerState: n } = e; - return [t.root, !r.open && r.exited && t.hidden]; + return [t.root, !n.open && n.exited && t.hidden]; } })(({ theme: e, ownerState: t -}) => N({ +}) => C({ position: "fixed", zIndex: (e.vars || e).zIndex.modal, right: 0, @@ -8836,110 +8835,110 @@ const Nh = ["BackdropComponent", "BackdropProps", "classes", "className", "close left: 0 }, !t.open && t.exited && { visibility: "hidden" -})), Sh = Ce(Th, { +})), vm = Se(fm, { name: "MuiModal", slot: "Backdrop", overridesResolver: (e, t) => t.backdrop })({ zIndex: -1 -}), ls = /* @__PURE__ */ T.forwardRef(function(t, r) { - var n, o, a, s, l, c; - const p = lt({ +}), _s = /* @__PURE__ */ k.forwardRef(function(t, n) { + var r, o, i, a, l, c; + const u = pt({ name: "MuiModal", props: t }), { - BackdropComponent: u = Sh, - BackdropProps: h, - className: f, - closeAfterTransition: b = !1, - children: y, - container: v, - component: m, - components: x = {}, - componentsProps: I = {}, - disableAutoFocus: w = !1, + BackdropComponent: f = vm, + BackdropProps: v, + className: b, + closeAfterTransition: p = !1, + children: h, + container: d, + component: g, + components: w = {}, + componentsProps: S = {}, + disableAutoFocus: x = !1, disableEnforceFocus: E = !1, - disableEscapeKeyDown: g = !1, - disablePortal: O = !1, - disableRestoreFocus: S = !1, - disableScrollLock: L = !1, + disableEscapeKeyDown: y = !1, + disablePortal: N = !1, + disableRestoreFocus: T = !1, + disableScrollLock: _ = !1, hideBackdrop: D = !1, - keepMounted: V = !1, - onBackdropClick: C, - open: _, - slotProps: M, - slots: B + keepMounted: j = !1, + onBackdropClick: P, + open: I, + slotProps: A, + slots: F // eslint-disable-next-line react/prop-types - } = p, z = fe(p, Nh), P = N({}, p, { - closeAfterTransition: b, - disableAutoFocus: w, + } = u, z = he(u, mm), R = C({}, u, { + closeAfterTransition: p, + disableAutoFocus: x, disableEnforceFocus: E, - disableEscapeKeyDown: g, - disablePortal: O, - disableRestoreFocus: S, - disableScrollLock: L, + disableEscapeKeyDown: y, + disablePortal: N, + disableRestoreFocus: T, + disableScrollLock: _, hideBackdrop: D, - keepMounted: V + keepMounted: j }), { - getRootProps: j, + getRootProps: L, getBackdropProps: te, getTransitionProps: Q, - portalRef: k, - isTopModal: R, - exited: F, + portalRef: O, + isTopModal: $, + exited: V, hasTransition: q - } = mp(N({}, P, { - rootRef: r - })), H = N({}, P, { - exited: F - }), W = Oh(H), Y = {}; - if (y.props.tabIndex === void 0 && (Y.tabIndex = "-1"), q) { + } = iu(C({}, R, { + rootRef: n + })), H = C({}, R, { + exited: V + }), X = gm(H), Y = {}; + if (h.props.tabIndex === void 0 && (Y.tabIndex = "-1"), q) { const { - onEnter: re, - onExited: $ + onEnter: ne, + onExited: M } = Q(); - Y.onEnter = re, Y.onExited = $; + Y.onEnter = ne, Y.onExited = M; } - const K = (n = (o = B == null ? void 0 : B.root) != null ? o : x.Root) != null ? n : Ch, X = (a = (s = B == null ? void 0 : B.backdrop) != null ? s : x.Backdrop) != null ? a : u, Z = (l = M == null ? void 0 : M.root) != null ? l : I.root, ee = (c = M == null ? void 0 : M.backdrop) != null ? c : I.backdrop, ae = kt({ + const K = (r = (o = F == null ? void 0 : F.root) != null ? o : w.Root) != null ? r : bm, G = (i = (a = F == null ? void 0 : F.backdrop) != null ? a : w.Backdrop) != null ? i : f, Z = (l = A == null ? void 0 : A.root) != null ? l : S.root, ee = (c = A == null ? void 0 : A.backdrop) != null ? c : S.backdrop, ae = Pt({ elementType: K, externalSlotProps: Z, externalForwardedProps: z, - getSlotProps: j, + getSlotProps: L, additionalProps: { - ref: r, - as: m + ref: n, + as: g }, ownerState: H, - className: Ne(f, Z == null ? void 0 : Z.className, W == null ? void 0 : W.root, !H.open && H.exited && (W == null ? void 0 : W.hidden)) - }), A = kt({ - elementType: X, + className: Oe(b, Z == null ? void 0 : Z.className, X == null ? void 0 : X.root, !H.open && H.exited && (X == null ? void 0 : X.hidden)) + }), B = Pt({ + elementType: G, externalSlotProps: ee, - additionalProps: h, - getSlotProps: (re) => te(N({}, re, { - onClick: ($) => { - C && C($), re != null && re.onClick && re.onClick($); + additionalProps: v, + getSlotProps: (ne) => te(C({}, ne, { + onClick: (M) => { + P && P(M), ne != null && ne.onClick && ne.onClick(M); } })), - className: Ne(ee == null ? void 0 : ee.className, h == null ? void 0 : h.className, W == null ? void 0 : W.backdrop), + className: Oe(ee == null ? void 0 : ee.className, v == null ? void 0 : v.className, X == null ? void 0 : X.backdrop), ownerState: H }); - return !V && !_ && (!q || F) ? null : /* @__PURE__ */ d(hr, { - ref: k, - container: v, - disablePortal: O, - children: /* @__PURE__ */ U(K, N({}, ae, { - children: [!D && u ? /* @__PURE__ */ d(X, N({}, A)) : null, /* @__PURE__ */ d(Hr, { + return !j && !I && (!q || V) ? null : /* @__PURE__ */ m(kn, { + ref: O, + container: d, + disablePortal: N, + children: /* @__PURE__ */ U(K, C({}, ae, { + children: [!D && f ? /* @__PURE__ */ m(G, C({}, B)) : null, /* @__PURE__ */ m(er, { disableEnforceFocus: E, - disableAutoFocus: w, - disableRestoreFocus: S, - isEnabled: R, - open: _, - children: /* @__PURE__ */ T.cloneElement(y, Y) + disableAutoFocus: x, + disableRestoreFocus: T, + isEnabled: $, + open: I, + children: /* @__PURE__ */ k.cloneElement(h, Y) })] })) }); }); -process.env.NODE_ENV !== "production" && (ls.propTypes = { +process.env.NODE_ENV !== "production" && (_s.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -8958,34 +8957,34 @@ process.env.NODE_ENV !== "production" && (ls.propTypes = { * zIndex: -1, * }) */ - BackdropComponent: i.elementType, + BackdropComponent: s.elementType, /** * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element. * @deprecated Use `slotProps.backdrop` instead. */ - BackdropProps: i.object, + BackdropProps: s.object, /** * A single child content element. */ - children: vr.isRequired, + children: Cn.isRequired, /** * Override or extend the styles applied to the component. */ - classes: i.object, + classes: s.object, /** * @ignore */ - className: i.string, + className: s.string, /** * When set to true the Modal waits until a nested Transition is completed before closing. * @default false */ - closeAfterTransition: i.bool, + closeAfterTransition: s.bool, /** * The component used for the root node. * Either a string to use a HTML element or a component. */ - component: i.elementType, + component: s.elementType, /** * The components used for each slot inside. * @@ -8994,9 +8993,9 @@ process.env.NODE_ENV !== "production" && (ls.propTypes = { * * @default {} */ - components: i.shape({ - Backdrop: i.elementType, - Root: i.elementType + components: s.shape({ + Backdrop: s.elementType, + Root: s.elementType }), /** * The extra props for the slot components. @@ -9007,9 +9006,9 @@ process.env.NODE_ENV !== "production" && (ls.propTypes = { * * @default {} */ - componentsProps: i.shape({ - backdrop: i.oneOfType([i.func, i.object]), - root: i.oneOfType([i.func, i.object]) + componentsProps: s.shape({ + backdrop: s.oneOfType([s.func, s.object]), + root: s.oneOfType([s.func, s.object]) }), /** * An HTML element or function that returns one. @@ -9021,7 +9020,7 @@ process.env.NODE_ENV !== "production" && (ls.propTypes = { * By default, it uses the body of the top-level document object, * so it's simply `document.body` most of the time. */ - container: i.oneOfType([ot, i.func]), + container: s.oneOfType([at, s.func]), /** * If `true`, the modal will not automatically shift focus to itself when it opens, and * replace it to the last focused element when it closes. @@ -9031,7 +9030,7 @@ process.env.NODE_ENV !== "production" && (ls.propTypes = { * accessible to assistive technologies, like screen readers. * @default false */ - disableAutoFocus: i.bool, + disableAutoFocus: s.bool, /** * If `true`, the modal will not prevent focus from leaving the modal while open. * @@ -9039,45 +9038,45 @@ process.env.NODE_ENV !== "production" && (ls.propTypes = { * accessible to assistive technologies, like screen readers. * @default false */ - disableEnforceFocus: i.bool, + disableEnforceFocus: s.bool, /** * If `true`, hitting escape will not fire the `onClose` callback. * @default false */ - disableEscapeKeyDown: i.bool, + disableEscapeKeyDown: s.bool, /** * The `children` will be under the DOM hierarchy of the parent component. * @default false */ - disablePortal: i.bool, + disablePortal: s.bool, /** * If `true`, the modal will not restore focus to previously focused element once * modal is hidden or unmounted. * @default false */ - disableRestoreFocus: i.bool, + disableRestoreFocus: s.bool, /** * Disable the scroll lock behavior. * @default false */ - disableScrollLock: i.bool, + disableScrollLock: s.bool, /** * If `true`, the backdrop is not rendered. * @default false */ - hideBackdrop: i.bool, + hideBackdrop: s.bool, /** * Always keep the children in the DOM. * This prop can be useful in SEO situation or * when you want to maximize the responsiveness of the Modal. * @default false */ - keepMounted: i.bool, + keepMounted: s.bool, /** * Callback fired when the backdrop is clicked. * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events. */ - onBackdropClick: i.func, + onBackdropClick: s.func, /** * Callback fired when the component requests to be closed. * The `reason` parameter can optionally be used to control the response to `onClose`. @@ -9085,71 +9084,71 @@ process.env.NODE_ENV !== "production" && (ls.propTypes = { * @param {object} event The event source of the callback. * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`. */ - onClose: i.func, + onClose: s.func, /** * A function called when a transition enters. */ - onTransitionEnter: i.func, + onTransitionEnter: s.func, /** * A function called when a transition has exited. */ - onTransitionExited: i.func, + onTransitionExited: s.func, /** * If `true`, the component is shown. */ - open: i.bool.isRequired, + open: s.bool.isRequired, /** * The props used for each slot inside the Modal. * @default {} */ - slotProps: i.shape({ - backdrop: i.oneOfType([i.func, i.object]), - root: i.oneOfType([i.func, i.object]) + slotProps: s.shape({ + backdrop: s.oneOfType([s.func, s.object]), + root: s.oneOfType([s.func, s.object]) }), /** * The components used for each slot inside the Modal. * Either a string to use a HTML element or a component. * @default {} */ - slots: i.shape({ - backdrop: i.elementType, - root: i.elementType + slots: s.shape({ + backdrop: s.elementType, + root: s.elementType }), /** * The system prop that allows defining system overrides as well as additional CSS styles. */ - sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]) + sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]) }); -const Ph = ls; -function Rh(e) { - return Ze("MuiPaper", e); +const ym = _s; +function wm(e) { + return Qe("MuiPaper", e); } -ut("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]); -const $h = ["className", "component", "elevation", "square", "variant"], _h = (e) => { +mt("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]); +const xm = ["className", "component", "elevation", "square", "variant"], Em = (e) => { const { square: t, - elevation: r, - variant: n, + elevation: n, + variant: r, classes: o - } = e, a = { - root: ["root", n, !t && "rounded", n === "elevation" && `elevation${r}`] + } = e, i = { + root: ["root", r, !t && "rounded", r === "elevation" && `elevation${n}`] }; - return st(a, Rh, o); -}, Mh = Ce("div", { + return ct(i, wm, o); +}, km = Se("div", { name: "MuiPaper", slot: "Root", overridesResolver: (e, t) => { const { - ownerState: r + ownerState: n } = e; - return [t.root, t[r.variant], !r.square && t.rounded, r.variant === "elevation" && t[`elevation${r.elevation}`]]; + return [t.root, t[n.variant], !n.square && t.rounded, n.variant === "elevation" && t[`elevation${n.elevation}`]]; } })(({ theme: e, ownerState: t }) => { - var r; - return N({ + var n; + return C({ backgroundColor: (e.vars || e).palette.background.paper, color: (e.vars || e).palette.text.primary, transition: e.transitions.create("box-shadow") @@ -9157,38 +9156,38 @@ const $h = ["className", "component", "elevation", "square", "variant"], _h = (e borderRadius: e.shape.borderRadius }, t.variant === "outlined" && { border: `1px solid ${(e.vars || e).palette.divider}` - }, t.variant === "elevation" && N({ + }, t.variant === "elevation" && C({ boxShadow: (e.vars || e).shadows[t.elevation] }, !e.vars && e.palette.mode === "dark" && { - backgroundImage: `linear-gradient(${Yr("#fff", _a(t.elevation))}, ${Yr("#fff", _a(t.elevation))})` + backgroundImage: `linear-gradient(${or("#fff", Yi(t.elevation))}, ${or("#fff", Yi(t.elevation))})` }, e.vars && { - backgroundImage: (r = e.vars.overlays) == null ? void 0 : r[t.elevation] + backgroundImage: (n = e.vars.overlays) == null ? void 0 : n[t.elevation] })); -}), cs = /* @__PURE__ */ T.forwardRef(function(t, r) { - const n = lt({ +}), Ms = /* @__PURE__ */ k.forwardRef(function(t, n) { + const r = pt({ props: t, name: "MuiPaper" }), { className: o, - component: a = "div", - elevation: s = 1, + component: i = "div", + elevation: a = 1, square: l = !1, variant: c = "elevation" - } = n, p = fe(n, $h), u = N({}, n, { - component: a, - elevation: s, + } = r, u = he(r, xm), f = C({}, r, { + component: i, + elevation: a, square: l, variant: c - }), h = _h(u); - return process.env.NODE_ENV !== "production" && kr().shadows[s] === void 0 && console.error([`MUI: The elevation provided is not available in the theme.`, `Please make sure that \`theme.shadows[${s}]\` is defined.`].join(` -`)), /* @__PURE__ */ d(Mh, N({ - as: a, - ownerState: u, - className: Ne(h.root, o), - ref: r - }, p)); + }), v = Em(f); + return process.env.NODE_ENV !== "production" && Mn().shadows[a] === void 0 && console.error([`MUI: The elevation provided is not available in the theme.`, `Please make sure that \`theme.shadows[${a}]\` is defined.`].join(` +`)), /* @__PURE__ */ m(km, C({ + as: i, + ownerState: f, + className: Oe(v.root, o), + ref: n + }, u)); }); -process.env.NODE_ENV !== "production" && (cs.propTypes = { +process.env.NODE_ENV !== "production" && (Ms.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -9196,80 +9195,80 @@ process.env.NODE_ENV !== "production" && (cs.propTypes = { /** * The content of the component. */ - children: i.node, + children: s.node, /** * Override or extend the styles applied to the component. */ - classes: i.object, + classes: s.object, /** * @ignore */ - className: i.string, + className: s.string, /** * The component used for the root node. * Either a string to use a HTML element or a component. */ - component: i.elementType, + component: s.elementType, /** * Shadow depth, corresponds to `dp` in the spec. * It accepts values between 0 and 24 inclusive. * @default 1 */ - elevation: Wt(wi, (e) => { + elevation: Zt(Ha, (e) => { const { elevation: t, - variant: r + variant: n } = e; - return t > 0 && r === "outlined" ? new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null; + return t > 0 && n === "outlined" ? new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null; }), /** * If `true`, rounded corners are disabled. * @default false */ - square: i.bool, + square: s.bool, /** * The system prop that allows defining system overrides as well as additional CSS styles. */ - sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]), + sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]), /** * The variant to use. * @default 'elevation' */ - variant: i.oneOfType([i.oneOf(["elevation", "outlined"]), i.string]) + variant: s.oneOfType([s.oneOf(["elevation", "outlined"]), s.string]) }); -const Ih = cs; -function Ah(e) { - return Ze("MuiPopover", e); +const Tm = Ms; +function Nm(e) { + return Qe("MuiPopover", e); } -ut("MuiPopover", ["root", "paper"]); -const Dh = ["onEntering"], jh = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"], Bh = ["slotProps"]; -function Ba(e, t) { - let r = 0; - return typeof t == "number" ? r = t : t === "center" ? r = e.height / 2 : t === "bottom" && (r = e.height), r; +mt("MuiPopover", ["root", "paper"]); +const Om = ["onEntering"], Cm = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"], Sm = ["slotProps"]; +function ta(e, t) { + let n = 0; + return typeof t == "number" ? n = t : t === "center" ? n = e.height / 2 : t === "bottom" && (n = e.height), n; } -function La(e, t) { - let r = 0; - return typeof t == "number" ? r = t : t === "center" ? r = e.width / 2 : t === "right" && (r = e.width), r; +function na(e, t) { + let n = 0; + return typeof t == "number" ? n = t : t === "center" ? n = e.width / 2 : t === "right" && (n = e.width), n; } -function Va(e) { +function ra(e) { return [e.horizontal, e.vertical].map((t) => typeof t == "number" ? `${t}px` : t).join(" "); } -function Br(e) { +function Gn(e) { return typeof e == "function" ? e() : e; } -const Lh = (e) => { +const Pm = (e) => { const { classes: t } = e; - return st({ + return ct({ root: ["root"], paper: ["paper"] - }, Ah, t); -}, Vh = Ce(Ph, { + }, Nm, t); +}, Rm = Se(ym, { name: "MuiPopover", slot: "Root", overridesResolver: (e, t) => t.root -})({}), ps = Ce(Ih, { +})({}), Is = Se(Tm, { name: "MuiPopover", slot: "Paper", overridesResolver: (e, t) => t.paper @@ -9285,180 +9284,180 @@ const Lh = (e) => { maxHeight: "calc(100% - 32px)", // We disable the focus ring for mouse, touch and keyboard users. outline: 0 -}), us = /* @__PURE__ */ T.forwardRef(function(t, r) { - var n, o, a; - const s = lt({ +}), As = /* @__PURE__ */ k.forwardRef(function(t, n) { + var r, o, i; + const a = pt({ props: t, name: "MuiPopover" }), { action: l, anchorEl: c, - anchorOrigin: p = { + anchorOrigin: u = { vertical: "top", horizontal: "left" }, - anchorPosition: u, - anchorReference: h = "anchorEl", - children: f, - className: b, - container: y, - elevation: v = 8, - marginThreshold: m = 16, - open: x, - PaperProps: I = {}, - slots: w, + anchorPosition: f, + anchorReference: v = "anchorEl", + children: b, + className: p, + container: h, + elevation: d = 8, + marginThreshold: g = 16, + open: w, + PaperProps: S = {}, + slots: x, slotProps: E, - transformOrigin: g = { + transformOrigin: y = { vertical: "top", horizontal: "left" }, - TransitionComponent: O = Un, - transitionDuration: S = "auto", + TransitionComponent: N = to, + transitionDuration: T = "auto", TransitionProps: { - onEntering: L + onEntering: _ } = {}, disableScrollLock: D = !1 - } = s, V = fe(s.TransitionProps, Dh), C = fe(s, jh), _ = (n = E == null ? void 0 : E.paper) != null ? n : I, M = T.useRef(), B = Ue(M, _.ref), z = N({}, s, { - anchorOrigin: p, - anchorReference: h, - elevation: v, - marginThreshold: m, - externalPaperSlotProps: _, - transformOrigin: g, - TransitionComponent: O, - transitionDuration: S, - TransitionProps: V - }), P = Lh(z), j = T.useCallback(() => { - if (h === "anchorPosition") - return process.env.NODE_ENV !== "production" && (u || console.error('MUI: You need to provide a `anchorPosition` prop when using .')), u; - const re = Br(c), $ = re && re.nodeType === 1 ? re : Oe(M.current).body, ie = $.getBoundingClientRect(); + } = a, j = he(a.TransitionProps, Om), P = he(a, Cm), I = (r = E == null ? void 0 : E.paper) != null ? r : S, A = k.useRef(), F = He(A, I.ref), z = C({}, a, { + anchorOrigin: u, + anchorReference: v, + elevation: d, + marginThreshold: g, + externalPaperSlotProps: I, + transformOrigin: y, + TransitionComponent: N, + transitionDuration: T, + TransitionProps: j + }), R = Pm(z), L = k.useCallback(() => { + if (v === "anchorPosition") + return process.env.NODE_ENV !== "production" && (f || console.error('MUI: You need to provide a `anchorPosition` prop when using .')), f; + const ne = Gn(c), M = ne && ne.nodeType === 1 ? ne : Ce(A.current).body, se = M.getBoundingClientRect(); if (process.env.NODE_ENV !== "production") { - const Ee = $.getBoundingClientRect(); - process.env.NODE_ENV !== "test" && Ee.top === 0 && Ee.left === 0 && Ee.right === 0 && Ee.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(` + const ke = M.getBoundingClientRect(); + process.env.NODE_ENV !== "test" && ke.top === 0 && ke.left === 0 && ke.right === 0 && ke.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(` `)); } return { - top: ie.top + Ba(ie, p.vertical), - left: ie.left + La(ie, p.horizontal) + top: se.top + ta(se, u.vertical), + left: se.left + na(se, u.horizontal) }; - }, [c, p.horizontal, p.vertical, u, h]), te = T.useCallback((re) => ({ - vertical: Ba(re, g.vertical), - horizontal: La(re, g.horizontal) - }), [g.horizontal, g.vertical]), Q = T.useCallback((re) => { - const $ = { - width: re.offsetWidth, - height: re.offsetHeight - }, ie = te($); - if (h === "none") + }, [c, u.horizontal, u.vertical, f, v]), te = k.useCallback((ne) => ({ + vertical: ta(ne, y.vertical), + horizontal: na(ne, y.horizontal) + }), [y.horizontal, y.vertical]), Q = k.useCallback((ne) => { + const M = { + width: ne.offsetWidth, + height: ne.offsetHeight + }, se = te(M); + if (v === "none") return { top: null, left: null, - transformOrigin: Va(ie) + transformOrigin: ra(se) }; - const Ee = j(); - let Se = Ee.top - ie.vertical, we = Ee.left - ie.horizontal; - const ht = Se + $.height, Pe = we + $.width, Qe = Lt(Br(c)), Ae = Qe.innerHeight - m, et = Qe.innerWidth - m; - if (m !== null && Se < m) { - const Te = Se - m; - Se -= Te, ie.vertical += Te; - } else if (m !== null && ht > Ae) { - const Te = ht - Ae; - Se -= Te, ie.vertical += Te; - } - if (process.env.NODE_ENV !== "production" && $.height > Ae && $.height && Ae && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${$.height - Ae}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(` -`)), m !== null && we < m) { - const Te = we - m; - we -= Te, ie.horizontal += Te; - } else if (Pe > et) { - const Te = Pe - et; - we -= Te, ie.horizontal += Te; + const ke = L(); + let Pe = ke.top - se.vertical, xe = ke.left - se.horizontal; + const vt = Pe + M.height, Re = xe + M.width, et = Xt(Gn(c)), De = et.innerHeight - g, tt = et.innerWidth - g; + if (g !== null && Pe < g) { + const Te = Pe - g; + Pe -= Te, se.vertical += Te; + } else if (g !== null && vt > De) { + const Te = vt - De; + Pe -= Te, se.vertical += Te; + } + if (process.env.NODE_ENV !== "production" && M.height > De && M.height && De && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${M.height - De}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(` +`)), g !== null && xe < g) { + const Te = xe - g; + xe -= Te, se.horizontal += Te; + } else if (Re > tt) { + const Te = Re - tt; + xe -= Te, se.horizontal += Te; } return { - top: `${Math.round(Se)}px`, - left: `${Math.round(we)}px`, - transformOrigin: Va(ie) + top: `${Math.round(Pe)}px`, + left: `${Math.round(xe)}px`, + transformOrigin: ra(se) }; - }, [c, h, j, te, m]), [k, R] = T.useState(x), F = T.useCallback(() => { - const re = M.current; - if (!re) + }, [c, v, L, te, g]), [O, $] = k.useState(w), V = k.useCallback(() => { + const ne = A.current; + if (!ne) return; - const $ = Q(re); - $.top !== null && (re.style.top = $.top), $.left !== null && (re.style.left = $.left), re.style.transformOrigin = $.transformOrigin, R(!0); + const M = Q(ne); + M.top !== null && (ne.style.top = M.top), M.left !== null && (ne.style.left = M.left), ne.style.transformOrigin = M.transformOrigin, $(!0); }, [Q]); - T.useEffect(() => (D && window.addEventListener("scroll", F), () => window.removeEventListener("scroll", F)), [c, D, F]); - const q = (re, $) => { - L && L(re, $), F(); + k.useEffect(() => (D && window.addEventListener("scroll", V), () => window.removeEventListener("scroll", V)), [c, D, V]); + const q = (ne, M) => { + _ && _(ne, M), V(); }, H = () => { - R(!1); + $(!1); }; - T.useEffect(() => { - x && F(); - }), T.useImperativeHandle(l, () => x ? { + k.useEffect(() => { + w && V(); + }), k.useImperativeHandle(l, () => w ? { updatePosition: () => { - F(); + V(); } - } : null, [x, F]), T.useEffect(() => { - if (!x) + } : null, [w, V]), k.useEffect(() => { + if (!w) return; - const re = fi(() => { - F(); - }), $ = Lt(c); - return $.addEventListener("resize", re), () => { - re.clear(), $.removeEventListener("resize", re); + const ne = Ba(() => { + V(); + }), M = Xt(c); + return M.addEventListener("resize", ne), () => { + ne.clear(), M.removeEventListener("resize", ne); }; - }, [c, x, F]); - let W = S; - S === "auto" && !O.muiSupportAuto && (W = void 0); - const Y = y || (c ? Oe(Br(c)).body : void 0), K = (o = w == null ? void 0 : w.root) != null ? o : Vh, X = (a = w == null ? void 0 : w.paper) != null ? a : ps, Z = kt({ - elementType: X, - externalSlotProps: N({}, _, { - style: k ? _.style : N({}, _.style, { + }, [c, w, V]); + let X = T; + T === "auto" && !N.muiSupportAuto && (X = void 0); + const Y = h || (c ? Ce(Gn(c)).body : void 0), K = (o = x == null ? void 0 : x.root) != null ? o : Rm, G = (i = x == null ? void 0 : x.paper) != null ? i : Is, Z = Pt({ + elementType: G, + externalSlotProps: C({}, I, { + style: O ? I.style : C({}, I.style, { opacity: 0 }) }), additionalProps: { - elevation: v, - ref: B + elevation: d, + ref: F }, ownerState: z, - className: Ne(P.paper, _ == null ? void 0 : _.className) - }), ee = kt({ + className: Oe(R.paper, I == null ? void 0 : I.className) + }), ee = Pt({ elementType: K, externalSlotProps: (E == null ? void 0 : E.root) || {}, - externalForwardedProps: C, + externalForwardedProps: P, additionalProps: { - ref: r, + ref: n, slotProps: { backdrop: { invisible: !0 } }, container: Y, - open: x + open: w }, ownerState: z, - className: Ne(P.root, b) + className: Oe(R.root, p) }), { slotProps: ae - } = ee, A = fe(ee, Bh); - return /* @__PURE__ */ d(K, N({}, A, !ki(K) && { + } = ee, B = he(ee, Sm); + return /* @__PURE__ */ m(K, C({}, B, !qa(K) && { slotProps: ae, disableScrollLock: D }, { - children: /* @__PURE__ */ d(O, N({ + children: /* @__PURE__ */ m(N, C({ appear: !0, - in: x, + in: w, onEntering: q, onExited: H, - timeout: W - }, V, { - children: /* @__PURE__ */ d(X, N({}, Z, { - children: f + timeout: X + }, j, { + children: /* @__PURE__ */ m(G, C({}, Z, { + children: b })) })) })); }); -process.env.NODE_ENV !== "production" && (us.propTypes = { +process.env.NODE_ENV !== "production" && (As.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -9467,18 +9466,18 @@ process.env.NODE_ENV !== "production" && (us.propTypes = { * A ref for imperative actions. * It currently only supports updatePosition() action. */ - action: ro, + action: vo, /** * An HTML element, [PopoverVirtualElement](/material-ui/react-popover/#virtual-element), * or a function that returns either. * It's used to set the position of the popover. */ - anchorEl: Wt(i.oneOfType([ot, i.func]), (e) => { + anchorEl: Zt(s.oneOfType([at, s.func]), (e) => { if (e.open && (!e.anchorReference || e.anchorReference === "anchorEl")) { - const t = Br(e.anchorEl); + const t = Gn(e.anchorEl); if (t && t.nodeType === 1) { - const r = t.getBoundingClientRect(); - if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0) + const n = t.getBoundingClientRect(); + if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0) return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(` `)); } else @@ -9500,36 +9499,36 @@ process.env.NODE_ENV !== "production" && (us.propTypes = { * horizontal: 'left', * } */ - anchorOrigin: i.shape({ - horizontal: i.oneOfType([i.oneOf(["center", "left", "right"]), i.number]).isRequired, - vertical: i.oneOfType([i.oneOf(["bottom", "center", "top"]), i.number]).isRequired + anchorOrigin: s.shape({ + horizontal: s.oneOfType([s.oneOf(["center", "left", "right"]), s.number]).isRequired, + vertical: s.oneOfType([s.oneOf(["bottom", "center", "top"]), s.number]).isRequired }), /** * This is the position that may be used to set the position of the popover. * The coordinates are relative to the application's client area. */ - anchorPosition: i.shape({ - left: i.number.isRequired, - top: i.number.isRequired + anchorPosition: s.shape({ + left: s.number.isRequired, + top: s.number.isRequired }), /** * This determines which anchor prop to refer to when setting * the position of the popover. * @default 'anchorEl' */ - anchorReference: i.oneOf(["anchorEl", "anchorPosition", "none"]), + anchorReference: s.oneOf(["anchorEl", "anchorPosition", "none"]), /** * The content of the component. */ - children: i.node, + children: s.node, /** * Override or extend the styles applied to the component. */ - classes: i.object, + classes: s.object, /** * @ignore */ - className: i.string, + className: s.string, /** * An HTML element, component instance, or function that returns either. * The `container` will passed to the Modal component. @@ -9537,32 +9536,32 @@ process.env.NODE_ENV !== "production" && (us.propTypes = { * By default, it uses the body of the anchorEl's top-level document object, * so it's simply `document.body` most of the time. */ - container: i.oneOfType([ot, i.func]), + container: s.oneOfType([at, s.func]), /** * Disable the scroll lock behavior. * @default false */ - disableScrollLock: i.bool, + disableScrollLock: s.bool, /** * The elevation of the popover. * @default 8 */ - elevation: wi, + elevation: Ha, /** * Specifies how close to the edge of the window the popover can appear. * If null, the popover will not be constrained by the window. * @default 16 */ - marginThreshold: i.number, + marginThreshold: s.number, /** * Callback fired when the component requests to be closed. * The `reason` parameter can optionally be used to control the response to `onClose`. */ - onClose: i.func, + onClose: s.func, /** * If `true`, the component is shown. */ - open: i.bool.isRequired, + open: s.bool.isRequired, /** * Props applied to the [`Paper`](/material-ui/api/paper/) element. * @@ -9571,8 +9570,8 @@ process.env.NODE_ENV !== "production" && (us.propTypes = { * * @default {} */ - PaperProps: i.shape({ - component: mc + PaperProps: s.shape({ + component: ip }), /** * The extra props for the slot components. @@ -9580,23 +9579,23 @@ process.env.NODE_ENV !== "production" && (us.propTypes = { * * @default {} */ - slotProps: i.shape({ - paper: i.oneOfType([i.func, i.object]), - root: i.oneOfType([i.func, i.object]) + slotProps: s.shape({ + paper: s.oneOfType([s.func, s.object]), + root: s.oneOfType([s.func, s.object]) }), /** * The components used for each slot inside. * * @default {} */ - slots: i.shape({ - paper: i.elementType, - root: i.elementType + slots: s.shape({ + paper: s.elementType, + root: s.elementType }), /** * The system prop that allows defining system overrides as well as additional CSS styles. */ - sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]), + sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]), /** * This is the point on the popover which * will attach to the anchor's origin. @@ -9609,58 +9608,58 @@ process.env.NODE_ENV !== "production" && (us.propTypes = { * horizontal: 'left', * } */ - transformOrigin: i.shape({ - horizontal: i.oneOfType([i.oneOf(["center", "left", "right"]), i.number]).isRequired, - vertical: i.oneOfType([i.oneOf(["bottom", "center", "top"]), i.number]).isRequired + transformOrigin: s.shape({ + horizontal: s.oneOfType([s.oneOf(["center", "left", "right"]), s.number]).isRequired, + vertical: s.oneOfType([s.oneOf(["bottom", "center", "top"]), s.number]).isRequired }), /** * The component used for the transition. * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. * @default Grow */ - TransitionComponent: i.elementType, + TransitionComponent: s.elementType, /** * Set to 'auto' to automatically calculate transition time based on height. * @default 'auto' */ - transitionDuration: i.oneOfType([i.oneOf(["auto"]), i.number, i.shape({ - appear: i.number, - enter: i.number, - exit: i.number + transitionDuration: s.oneOfType([s.oneOf(["auto"]), s.number, s.shape({ + appear: s.number, + enter: s.number, + exit: s.number })]), /** * Props applied to the transition element. * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component. * @default {} */ - TransitionProps: i.object + TransitionProps: s.object }); -const Fh = us; -function zh(e) { - return Ze("MuiMenu", e); +const $m = As; +function _m(e) { + return Qe("MuiMenu", e); } -ut("MuiMenu", ["root", "paper", "list"]); -const Uh = ["onEntering"], Hh = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"], Wh = { +mt("MuiMenu", ["root", "paper", "list"]); +const Mm = ["onEntering"], Im = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"], Am = { vertical: "top", horizontal: "right" -}, Xh = { +}, Dm = { vertical: "top", horizontal: "left" -}, qh = (e) => { +}, Bm = (e) => { const { classes: t } = e; - return st({ + return ct({ root: ["root"], paper: ["paper"], list: ["list"] - }, zh, t); -}, Yh = Ce(Fh, { - shouldForwardProp: (e) => Hi(e) || e === "classes", + }, _m, t); +}, jm = Se($m, { + shouldForwardProp: (e) => hs(e) || e === "classes", name: "MuiMenu", slot: "Root", overridesResolver: (e, t) => t.root -})({}), Gh = Ce(ps, { +})({}), Lm = Se(Is, { name: "MuiMenu", slot: "Paper", overridesResolver: (e, t) => t.paper @@ -9671,102 +9670,102 @@ const Uh = ["onEntering"], Hh = ["autoFocus", "children", "className", "disableA maxHeight: "calc(100% - 96px)", // Add iOS momentum scrolling for iOS < 13.0 WebkitOverflowScrolling: "touch" -}), Kh = Ce(mh, { +}), Fm = Se(im, { name: "MuiMenu", slot: "List", overridesResolver: (e, t) => t.list })({ // We disable the focus ring for mouse, touch and keyboard users. outline: 0 -}), ds = /* @__PURE__ */ T.forwardRef(function(t, r) { - var n, o; - const a = lt({ +}), Ds = /* @__PURE__ */ k.forwardRef(function(t, n) { + var r, o; + const i = pt({ props: t, name: "MuiMenu" }), { - autoFocus: s = !0, + autoFocus: a = !0, children: l, className: c, - disableAutoFocusItem: p = !1, - MenuListProps: u = {}, - onClose: h, - open: f, - PaperProps: b = {}, - PopoverClasses: y, - transitionDuration: v = "auto", + disableAutoFocusItem: u = !1, + MenuListProps: f = {}, + onClose: v, + open: b, + PaperProps: p = {}, + PopoverClasses: h, + transitionDuration: d = "auto", TransitionProps: { - onEntering: m + onEntering: g } = {}, - variant: x = "selectedMenu", - slots: I = {}, - slotProps: w = {} - } = a, E = fe(a.TransitionProps, Uh), g = fe(a, Hh), O = kr(), S = O.direction === "rtl", L = N({}, a, { - autoFocus: s, - disableAutoFocusItem: p, - MenuListProps: u, - onEntering: m, - PaperProps: b, - transitionDuration: v, + variant: w = "selectedMenu", + slots: S = {}, + slotProps: x = {} + } = i, E = he(i.TransitionProps, Mm), y = he(i, Im), N = Mn(), T = N.direction === "rtl", _ = C({}, i, { + autoFocus: a, + disableAutoFocusItem: u, + MenuListProps: f, + onEntering: g, + PaperProps: p, + transitionDuration: d, TransitionProps: E, - variant: x - }), D = qh(L), V = s && !p && f, C = T.useRef(null), _ = (Q, k) => { - C.current && C.current.adjustStyleForScrollbar(Q, O), m && m(Q, k); - }, M = (Q) => { - Q.key === "Tab" && (Q.preventDefault(), h && h(Q, "tabKeyDown")); + variant: w + }), D = Bm(_), j = a && !u && b, P = k.useRef(null), I = (Q, O) => { + P.current && P.current.adjustStyleForScrollbar(Q, N), g && g(Q, O); + }, A = (Q) => { + Q.key === "Tab" && (Q.preventDefault(), v && v(Q, "tabKeyDown")); }; - let B = -1; - T.Children.map(l, (Q, k) => { - /* @__PURE__ */ T.isValidElement(Q) && (process.env.NODE_ENV !== "production" && zr.isFragment(Q) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(` -`)), Q.props.disabled || (x === "selectedMenu" && Q.props.selected || B === -1) && (B = k)); + let F = -1; + k.Children.map(l, (Q, O) => { + /* @__PURE__ */ k.isValidElement(Q) && (process.env.NODE_ENV !== "production" && Zn.isFragment(Q) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(` +`)), Q.props.disabled || (w === "selectedMenu" && Q.props.selected || F === -1) && (F = O)); }); - const z = (n = I.paper) != null ? n : Gh, P = (o = w.paper) != null ? o : b, j = kt({ - elementType: I.root, - externalSlotProps: w.root, - ownerState: L, + const z = (r = S.paper) != null ? r : Lm, R = (o = x.paper) != null ? o : p, L = Pt({ + elementType: S.root, + externalSlotProps: x.root, + ownerState: _, className: [D.root, c] - }), te = kt({ + }), te = Pt({ elementType: z, - externalSlotProps: P, - ownerState: L, + externalSlotProps: R, + ownerState: _, className: D.paper }); - return /* @__PURE__ */ d(Yh, N({ - onClose: h, + return /* @__PURE__ */ m(jm, C({ + onClose: v, anchorOrigin: { vertical: "bottom", - horizontal: S ? "right" : "left" + horizontal: T ? "right" : "left" }, - transformOrigin: S ? Wh : Xh, + transformOrigin: T ? Am : Dm, slots: { paper: z, - root: I.root + root: S.root }, slotProps: { - root: j, + root: L, paper: te }, - open: f, - ref: r, - transitionDuration: v, - TransitionProps: N({ - onEntering: _ + open: b, + ref: n, + transitionDuration: d, + TransitionProps: C({ + onEntering: I }, E), - ownerState: L - }, g, { - classes: y, - children: /* @__PURE__ */ d(Kh, N({ - onKeyDown: M, - actions: C, - autoFocus: s && (B === -1 || p), - autoFocusItem: V, - variant: x - }, u, { - className: Ne(D.list, u.className), + ownerState: _ + }, y, { + classes: h, + children: /* @__PURE__ */ m(Fm, C({ + onKeyDown: A, + actions: P, + autoFocus: a && (F === -1 || u), + autoFocusItem: j, + variant: w + }, f, { + className: Oe(D.list, f.className), children: l })) })); }); -process.env.NODE_ENV !== "production" && (ds.propTypes = { +process.env.NODE_ENV !== "production" && (Ds.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -9775,7 +9774,7 @@ process.env.NODE_ENV !== "production" && (ds.propTypes = { * An HTML element, or a function that returns one. * It's used to set the position of the menu. */ - anchorEl: i.oneOfType([ot, i.func]), + anchorEl: s.oneOfType([at, s.func]), /** * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled * children are not focusable. If you set this prop to `false` focus will be placed @@ -9783,19 +9782,19 @@ process.env.NODE_ENV !== "production" && (ds.propTypes = { * and should only be considered if you manage focus otherwise. * @default true */ - autoFocus: i.bool, + autoFocus: s.bool, /** * Menu contents, normally `MenuItem`s. */ - children: i.node, + children: s.node, /** * Override or extend the styles applied to the component. */ - classes: i.object, + classes: s.object, /** * @ignore */ - className: i.string, + className: s.string, /** * When opening the menu will not focus the active item but the `[role="menu"]` * unless `autoFocus` is also set to `false`. Not using the default means not @@ -9803,89 +9802,89 @@ process.env.NODE_ENV !== "production" && (ds.propTypes = { * accessibility implications. * @default false */ - disableAutoFocusItem: i.bool, + disableAutoFocusItem: s.bool, /** * Props applied to the [`MenuList`](/material-ui/api/menu-list/) element. * @default {} */ - MenuListProps: i.object, + MenuListProps: s.object, /** * Callback fired when the component requests to be closed. * * @param {object} event The event source of the callback. * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`. */ - onClose: i.func, + onClose: s.func, /** * If `true`, the component is shown. */ - open: i.bool.isRequired, + open: s.bool.isRequired, /** * @ignore */ - PaperProps: i.object, + PaperProps: s.object, /** * `classes` prop applied to the [`Popover`](/material-ui/api/popover/) element. */ - PopoverClasses: i.object, + PopoverClasses: s.object, /** * The extra props for the slot components. * You can override the existing props or add new ones. * * @default {} */ - slotProps: i.shape({ - paper: i.oneOfType([i.func, i.object]), - root: i.oneOfType([i.func, i.object]) + slotProps: s.shape({ + paper: s.oneOfType([s.func, s.object]), + root: s.oneOfType([s.func, s.object]) }), /** * The components used for each slot inside. * * @default {} */ - slots: i.shape({ - paper: i.elementType, - root: i.elementType + slots: s.shape({ + paper: s.elementType, + root: s.elementType }), /** * The system prop that allows defining system overrides as well as additional CSS styles. */ - sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]), + sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]), /** * The length of the transition in `ms`, or 'auto' * @default 'auto' */ - transitionDuration: i.oneOfType([i.oneOf(["auto"]), i.number, i.shape({ - appear: i.number, - enter: i.number, - exit: i.number + transitionDuration: s.oneOfType([s.oneOf(["auto"]), s.number, s.shape({ + appear: s.number, + enter: s.number, + exit: s.number })]), /** * Props applied to the transition element. * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component. * @default {} */ - TransitionProps: i.object, + TransitionProps: s.object, /** * The variant to use. Use `menu` to prevent selected items from impacting the initial focus. * @default 'selectedMenu' */ - variant: i.oneOf(["menu", "selectedMenu"]) + variant: s.oneOf(["menu", "selectedMenu"]) }); -const Jh = ds; -function Ym({ +const Vm = Ds; +function Ub({ className: e, commandHandler: t, - menuDefinition: r, - children: n + menuDefinition: n, + children: r }) { - var p; - const [o, a] = J.useState(void 0), s = $e( - (u) => { - u.preventDefault(), a( + var u; + const [o, i] = J.useState(void 0), a = _e( + (f) => { + f.preventDefault(), i( o === void 0 ? { - mouseX: u.clientX + 2, - mouseY: u.clientY - 6 + mouseX: f.clientX + 2, + mouseY: f.clientY - 6 } : ( // repeated contextmenu when it is already open closes it with Chrome 84 on Ubuntu // Other native context menus might behave different. @@ -9895,31 +9894,31 @@ function Ym({ ); }, [o] - ), l = $e(() => { - a(void 0); - }, []), c = Wn(() => { + ), l = _e(() => { + i(void 0); + }, []), c = io(() => { if (o !== void 0) return { top: o.mouseY, left: o.mouseX }; }, [o]); - return (((p = r == null ? void 0 : r.items) == null ? void 0 : p.length) ?? 0) === 0 || !n ? n : /* @__PURE__ */ U( + return (((u = n == null ? void 0 : n.items) == null ? void 0 : u.length) ?? 0) === 0 || !r ? r : /* @__PURE__ */ U( "div", { className: `papi-context-menu-target ${e ?? ""}`, - onContextMenu: s, + onContextMenu: a, children: [ - n, - /* @__PURE__ */ d( - Jh, + r, + /* @__PURE__ */ m( + Vm, { className: `papi-context-menu ${e ?? ""}`, open: o !== void 0, onClose: l, anchorReference: "anchorPosition", anchorPosition: c, - children: /* @__PURE__ */ d( - Eo, + children: /* @__PURE__ */ m( + Bo, { - menuDefinition: r, + menuDefinition: n, commandHandler: t, onClick: l } @@ -9930,423 +9929,423 @@ function Ym({ } ); } -const Zh = Zi(/* @__PURE__ */ d("path", { +const zm = Es(/* @__PURE__ */ m("path", { d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z" }), "Menu"); -function Qh(e) { +function Um(e) { return { preserveValue: !0, ...e }; } -const Hn = (e, t, r = {}) => { - const n = wt(t); - n.current = t; - const o = wt(r); - o.current = Qh(o.current); - const [a, s] = de(() => n.current), [l, c] = de(!0); +const no = (e, t, n = {}) => { + const r = Nt(t); + r.current = t; + const o = Nt(n); + o.current = Um(o.current); + const [i, a] = fe(() => r.current), [l, c] = fe(!0); return Ye(() => { - let p = !0; + let u = !0; return c(!!e), (async () => { if (e) { - const u = await e(); - p && (s(() => u), c(!1)); + const f = await e(); + u && (a(() => f), c(!1)); } })(), () => { - p = !1, o.current.preserveValue || s(() => n.current); + u = !1, o.current.preserveValue || a(() => r.current); }; - }, [e]), [a, l]; + }, [e]), [i, l]; }; -function em({ +function Hm({ menuProvider: e, normalMenu: t, - fullMenu: r, - commandHandler: n, + fullMenu: n, + commandHandler: r, containerRef: o, - className: a, - ariaLabelPrefix: s, + className: i, + ariaLabelPrefix: a, children: l }) { - const [c, p] = de(!1), [u, h] = de(!1), f = $e(() => { - c && p(!1), h(!1); - }, [c]), b = $e((E) => { - E.stopPropagation(), p((g) => { - const O = !g; - return O && E.shiftKey ? h(!0) : O || h(!1), O; + const [c, u] = fe(!1), [f, v] = fe(!1), b = _e(() => { + c && u(!1), v(!1); + }, [c]), p = _e((E) => { + E.stopPropagation(), u((y) => { + const N = !y; + return N && E.shiftKey ? v(!0) : N || v(!1), N; }); - }, []), y = $e( - (E) => (f(), n(E)), - [n, f] - ), [v, m] = de({ top: 1, left: 1 }); + }, []), h = _e( + (E) => (b(), r(E)), + [r, b] + ), [d, g] = fe({ top: 1, left: 1 }); Ye(() => { if (c) { const E = o == null ? void 0 : o.current; if (E) { - const g = E.getBoundingClientRect(), O = window.scrollY, S = window.scrollX, L = g.top + O + E.clientHeight, D = g.left + S; - m({ top: L, left: D }); + const y = E.getBoundingClientRect(), N = window.scrollY, T = window.scrollX, _ = y.top + N + E.clientHeight, D = y.left + T; + g({ top: _, left: D }); } } }, [c, o]); - const [x] = Hn( - $e(async () => (e == null ? void 0 : e(!1)) ?? t, [e, t, c]), + const [w] = no( + _e(async () => (e == null ? void 0 : e(!1)) ?? t, [e, t, c]), t - ), [I] = Hn( - $e(async () => (e == null ? void 0 : e(!0)) ?? r ?? x, [e, r, x, c]), - r ?? x - ), w = u && I ? I : x; - return /* @__PURE__ */ U(Kr, { children: [ - /* @__PURE__ */ d( - qa, + ), [S] = no( + _e(async () => (e == null ? void 0 : e(!0)) ?? n ?? w, [e, n, w, c]), + n ?? w + ), x = f && S ? S : w; + return /* @__PURE__ */ U(_t, { children: [ + /* @__PURE__ */ m( + ba, { sx: { paddingTop: 0, paddingBottom: 0 }, edge: "start", - className: `papi-menuButton ${a ?? ""}`, + className: `papi-menuButton ${i ?? ""}`, color: "inherit", - "aria-label": `${s ?? ""} menu button`, - onClick: b, - children: l ?? /* @__PURE__ */ d(Zh, {}) + "aria-label": `${a ?? ""} menu button`, + onClick: p, + children: l ?? /* @__PURE__ */ m(zm, {}) } ), - /* @__PURE__ */ d( - sl, + /* @__PURE__ */ m( + Jl, { - className: `papi-menu-drawer ${a ?? ""}`, + className: `papi-menu-drawer ${i ?? ""}`, anchor: "left", variant: "temporary", open: c, - onClose: f, + onClose: b, PaperProps: { className: "papi-menu-drawer-paper", style: { - top: v.top, - left: v.left + top: d.top, + left: d.left } }, - children: w ? /* @__PURE__ */ d( - sh, + children: x ? /* @__PURE__ */ m( + Jh, { - className: a, - id: `${s ?? ""} main menu`, - commandHandler: y, - multiColumnMenu: w + className: i, + id: `${a ?? ""} main menu`, + commandHandler: h, + multiColumnMenu: x } ) : void 0 } ) ] }); } -function Gm({ +function Hb({ id: e, label: t, - isDisabled: r = !1, - tooltip: n, + isDisabled: n = !1, + tooltip: r, isTooltipSuppressed: o = !1, - adjustMarginToAlignToEdge: a = !1, - size: s = "medium", + adjustMarginToAlignToEdge: i = !1, + size: a = "medium", className: l, onClick: c, - children: p + children: u }) { - return /* @__PURE__ */ d( - qa, + return /* @__PURE__ */ m( + ba, { id: e, - disabled: r, - edge: a, - size: s, + disabled: n, + edge: i, + size: a, "aria-label": t, - title: o ? void 0 : n ?? t, + title: o ? void 0 : r ?? t, className: `papi-icon-button ${l ?? ""}`, onClick: c, - children: p + children: u } ); } -const tm = Xn( +const Wm = so( "pr-text-sm pr-font-medium pr-leading-none peer-disabled:pr-cursor-not-allowed peer-disabled:pr-opacity-70" -), fs = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d(Ya.Root, { ref: r, className: G(tm(), e), ...t })); -fs.displayName = Ya.Root.displayName; -function rm({ +), Bs = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(va.Root, { ref: n, className: W(Wm(), e), ...t })); +Bs.displayName = va.Root.displayName; +function Xm({ id: e, isDisabled: t = !1, - hasError: r = !1, - isFullWidth: n = !1, + hasError: n = !1, + isFullWidth: r = !1, helperText: o, - label: a, - placeholder: s, + label: i, + placeholder: a, isRequired: l = !1, className: c, - defaultValue: p, - value: u, - onChange: h, - onFocus: f, - onBlur: b + defaultValue: u, + value: f, + onChange: v, + onFocus: b, + onBlur: p }) { - return /* @__PURE__ */ U("div", { className: G("pr-inline-grid pr-items-center pr-gap-1.5", { "pr-w-full": n }), children: [ - /* @__PURE__ */ d( - fs, + return /* @__PURE__ */ U("div", { className: W("pr-inline-grid pr-items-center pr-gap-1.5", { "pr-w-full": r }), children: [ + /* @__PURE__ */ m( + Bs, { htmlFor: e, - className: G({ - "pr-text-red-600": r, - "pr-hidden": !a + className: W({ + "pr-text-red-600": n, + "pr-hidden": !i }), - children: `${a}${l ? "*" : ""}` + children: `${i}${l ? "*" : ""}` } ), - /* @__PURE__ */ d( - Zr, + /* @__PURE__ */ m( + sr, { id: e, disabled: t, - placeholder: s, + placeholder: a, required: l, - className: G(c, { "pr-border-red-600": r }), - defaultValue: p, - value: u, - onChange: h, - onFocus: f, - onBlur: b + className: W(c, { "pr-border-red-600": n }), + defaultValue: u, + value: f, + onChange: v, + onFocus: b, + onBlur: p } ), - /* @__PURE__ */ d("p", { className: G({ "pr-hidden": !o }), children: o }) + /* @__PURE__ */ m("p", { className: W({ "pr-hidden": !o }), children: o }) ] }); } -function Km({ onSearch: e, placeholder: t, isFullWidth: r }) { - const [n, o] = de(""), a = (s) => { - o(s), e(s); +function Wb({ onSearch: e, placeholder: t, isFullWidth: n }) { + const [r, o] = fe(""), i = (a) => { + o(a), e(a); }; - return /* @__PURE__ */ d( - rm, + return /* @__PURE__ */ m( + Xm, { - isFullWidth: r, + isFullWidth: n, className: "search-bar-input", placeholder: t, - value: n, - onChange: (s) => a(s.target.value) + value: r, + onChange: (a) => i(a.target.value) } ); } -function Jm({ +function Xb({ id: e, isDisabled: t = !1, - orientation: r = "horizontal", - min: n = 0, + orientation: n = "horizontal", + min: r = 0, max: o = 100, - step: a = 1, - showMarks: s = !1, + step: i = 1, + showMarks: a = !1, defaultValue: l, value: c, - valueLabelDisplay: p = "off", - className: u, - onChange: h, - onChangeCommitted: f + valueLabelDisplay: u = "off", + className: f, + onChange: v, + onChangeCommitted: b }) { - return /* @__PURE__ */ d( - ll, + return /* @__PURE__ */ m( + Zl, { id: e, disabled: t, - orientation: r, - min: n, + orientation: n, + min: r, max: o, - step: a, - marks: s, + step: i, + marks: a, defaultValue: l, value: c, - valueLabelDisplay: p, - className: `papi-slider ${r} ${u ?? ""}`, - onChange: h, - onChangeCommitted: f + valueLabelDisplay: u, + className: `papi-slider ${n} ${f ?? ""}`, + onChange: v, + onChangeCommitted: b } ); } -function Zm({ +function Gb({ autoHideDuration: e = void 0, id: t, - isOpen: r = !1, - className: n, + isOpen: n = !1, + className: r, onClose: o, - anchorOrigin: a = { vertical: "bottom", horizontal: "left" }, - ContentProps: s, + anchorOrigin: i = { vertical: "bottom", horizontal: "left" }, + ContentProps: a, children: l }) { const c = { - action: (s == null ? void 0 : s.action) || l, - message: s == null ? void 0 : s.message, - className: n + action: (a == null ? void 0 : a.action) || l, + message: a == null ? void 0 : a.message, + className: r }; - return /* @__PURE__ */ d( - cl, + return /* @__PURE__ */ m( + Ql, { autoHideDuration: e ?? void 0, - open: r, + open: n, onClose: o, - anchorOrigin: a, + anchorOrigin: i, id: t, ContentProps: c } ); } -function Qm({ +function qb({ id: e, isChecked: t, - isDisabled: r = !1, - hasError: n = !1, + isDisabled: n = !1, + hasError: r = !1, className: o, - onChange: a + onChange: i }) { - return /* @__PURE__ */ d( - pl, + return /* @__PURE__ */ m( + ec, { id: e, checked: t, - disabled: r, - className: `papi-switch ${n ? "error" : ""} ${o ?? ""}`, - onChange: a + disabled: n, + className: `papi-switch ${r ? "error" : ""} ${o ?? ""}`, + onChange: i } ); } -function eg({ +function Yb({ menuProvider: e, commandHandler: t, - className: r, - id: n, + className: n, + id: r, children: o }) { - const a = wt(void 0); - return /* @__PURE__ */ d("div", { ref: a, style: { position: "relative" }, children: /* @__PURE__ */ d(ul, { position: "static", id: n, children: /* @__PURE__ */ U(dl, { className: `papi-toolbar ${r ?? ""}`, variant: "dense", children: [ - e ? /* @__PURE__ */ d( - em, + const i = Nt(void 0); + return /* @__PURE__ */ m("div", { ref: i, style: { position: "relative" }, children: /* @__PURE__ */ m(tc, { position: "static", id: r, children: /* @__PURE__ */ U(nc, { className: `papi-toolbar ${n ?? ""}`, variant: "dense", children: [ + e ? /* @__PURE__ */ m( + Hm, { commandHandler: t, - containerRef: a, + containerRef: i, menuProvider: e } ) : void 0, - o ? /* @__PURE__ */ d("div", { className: "papi-toolbar-children", children: o }) : void 0 + o ? /* @__PURE__ */ m("div", { className: "papi-toolbar-children", children: o }) : void 0 ] }) }) }); } -const tg = Ie.Root, nm = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - Ie.List, +const Kb = Ae.Root, Gm = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + Ae.List, { - ref: r, - className: G( + ref: n, + className: W( "pr-inline-flex pr-h-10 pr-items-center pr-justify-center pr-rounded-md pr-bg-muted pr-p-1 pr-text-muted-foreground", e ), ...t } )); -nm.displayName = Ie.List.displayName; -const om = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - Ie.Trigger, +Gm.displayName = Ae.List.displayName; +const qm = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + Ae.Trigger, { - ref: r, - className: G( + ref: n, + className: W( "pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-sm pr-px-3 pr-py-1.5 pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-all hover:pr-text-foreground focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50 data-[state=active]:pr-bg-background data-[state=active]:pr-text-foreground data-[state=active]:pr-shadow-sm", e ), ...t } )); -om.displayName = Ie.Trigger.displayName; -const am = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - Ie.Content, +qm.displayName = Ae.Trigger.displayName; +const Ym = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + Ae.Content, { - ref: r, - className: G( + ref: n, + className: W( "pr-mt-2 pr-ring-offset-background focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2", e ), ...t } )); -am.displayName = Ie.Content.displayName; -const im = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - Ie.Root, +Ym.displayName = Ae.Content.displayName; +const Km = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + Ae.Root, { orientation: "vertical", - ref: r, - className: G("pr-flex pr-gap-1 pr-rounded-md pr-text-muted-foreground", e), + ref: n, + className: W("pr-flex pr-gap-1 pr-rounded-md pr-text-muted-foreground", e), ...t } )); -im.displayName = Ie.List.displayName; -const sm = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - Ie.List, +Km.displayName = Ae.List.displayName; +const Jm = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + Ae.List, { - ref: r, - className: G( + ref: n, + className: W( "pr-flex-fit pr-mlk-items-center pr-w-[124px] pr-justify-center pr-rounded-md pr-bg-muted pr-p-1 pr-text-muted-foreground", e ), ...t } )); -sm.displayName = Ie.List.displayName; -const rg = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - Ie.Trigger, +Jm.displayName = Ae.List.displayName; +const Jb = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + Ae.Trigger, { - ref: r, + ref: n, ...t, - className: G( + className: W( "overflow-clip pr-inline-flex pr-w-[116px] pr-cursor-pointer pr-items-center pr-justify-center pr-break-words pr-rounded-sm pr-border-0 pr-bg-muted pr-px-3 pr-py-1.5 pr-text-sm pr-font-medium pr-text-inherit pr-ring-offset-background pr-transition-all hover:pr-text-foreground focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50 data-[state=active]:pr-bg-background data-[state=active]:pr-text-foreground data-[state=active]:pr-shadow-sm", e ) } -)), lm = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - Ie.Content, +)), Zm = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + Ae.Content, { - ref: r, - className: G( + ref: n, + className: W( "mt-2 pr-ms-5 pr-flex-grow pr-text-foreground pr-ring-offset-background focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2", e ), ...t } )); -lm.displayName = Ie.Content.displayName; -const Ir = (e) => e === "asc" ? /* @__PURE__ */ d(zs, { className: "pr-ml-2 pr-h-4 pr-w-4" }) : e === "desc" ? /* @__PURE__ */ d(Us, { className: "pr-ml-2 pr-h-4 pr-w-4" }) : /* @__PURE__ */ d(Hs, { className: "pr-ml-2 pr-h-4 pr-w-4" }), cm = (e, t, r, n, o) => [ +Zm.displayName = Ae.Content.displayName; +const Un = (e) => e === "asc" ? /* @__PURE__ */ m($l, { className: "pr-ml-2 pr-h-4 pr-w-4" }) : e === "desc" ? /* @__PURE__ */ m(_l, { className: "pr-ml-2 pr-h-4 pr-w-4" }) : /* @__PURE__ */ m(Ml, { className: "pr-ml-2 pr-h-4 pr-w-4" }), Qm = (e, t, n, r, o) => [ { accessorKey: "character", - header: ({ column: a }) => /* @__PURE__ */ U(ke, { onClick: () => a.toggleSorting(void 0), children: [ + header: ({ column: i }) => /* @__PURE__ */ U(Ne, { onClick: () => i.toggleSorting(void 0), children: [ e, - Ir(a.getIsSorted()) + Un(i.getIsSorted()) ] }) }, { accessorKey: "unicodeValue", - header: ({ column: a }) => /* @__PURE__ */ U(ke, { onClick: () => a.toggleSorting(void 0), children: [ + header: ({ column: i }) => /* @__PURE__ */ U(Ne, { onClick: () => i.toggleSorting(void 0), children: [ t, - Ir(a.getIsSorted()) + Un(i.getIsSorted()) ] }), - cell: ({ row: a }) => a.getValue("character").charCodeAt(0).toString(16).toUpperCase().padStart(4, "0") + cell: ({ row: i }) => i.getValue("character").charCodeAt(0).toString(16).toUpperCase().padStart(4, "0") }, { accessorKey: "count", - header: ({ column: a }) => /* @__PURE__ */ U(ke, { onClick: () => a.toggleSorting(void 0), children: [ - r, - Ir(a.getIsSorted()) + header: ({ column: i }) => /* @__PURE__ */ U(Ne, { onClick: () => i.toggleSorting(void 0), children: [ + n, + Un(i.getIsSorted()) ] }) }, { accessorKey: "status", - header: ({ column: a, table: s }) => { - const l = s.getSelectedRowModel().rows, c = []; - return l.forEach((p) => { - c.push(p.getValue("character")); + header: ({ column: i, table: a }) => { + const l = a.getSelectedRowModel().rows, c = []; + return l.forEach((u) => { + c.push(u.getValue("character")); }), /* @__PURE__ */ U("div", { children: [ - /* @__PURE__ */ d("div", { className: "pr-flex pr-justify-center", children: /* @__PURE__ */ U(ke, { onClick: () => a.toggleSorting(void 0), children: [ - n, - Ir(a.getIsSorted()) + /* @__PURE__ */ m("div", { className: "pr-flex pr-justify-center", children: /* @__PURE__ */ U(Ne, { onClick: () => i.toggleSorting(void 0), children: [ + r, + Un(i.getIsSorted()) ] }) }), /* @__PURE__ */ U("div", { className: "pr-flex pr-justify-center", children: [ - /* @__PURE__ */ d(ke, { children: /* @__PURE__ */ d( - Bo, + /* @__PURE__ */ m(Ne, { children: /* @__PURE__ */ m( + ti, { className: "pr-h-5 pr-w-5", onClick: () => { @@ -10354,8 +10353,8 @@ const Ir = (e) => e === "asc" ? /* @__PURE__ */ d(zs, { className: "pr-ml-2 pr-h } } ) }), - /* @__PURE__ */ d(ke, { children: /* @__PURE__ */ d( - Lo, + /* @__PURE__ */ m(Ne, { children: /* @__PURE__ */ m( + ni, { className: "pr-h-5 pr-w-5", onClick: () => { @@ -10363,8 +10362,8 @@ const Ir = (e) => e === "asc" ? /* @__PURE__ */ d(zs, { className: "pr-ml-2 pr-h } } ) }), - /* @__PURE__ */ d(ke, { children: /* @__PURE__ */ d( - Vo, + /* @__PURE__ */ m(Ne, { children: /* @__PURE__ */ m( + ri, { className: "pr-h-5 pr-w-5", onClick: () => { @@ -10375,28 +10374,28 @@ const Ir = (e) => e === "asc" ? /* @__PURE__ */ d(zs, { className: "pr-ml-2 pr-h ] }) ] }); }, - cell: ({ row: a }) => { - const s = a.getValue("status"); - return s === !0 ? /* @__PURE__ */ d(Bo, { className: "pr-ml-2 pr-h-5 pr-w-5" }) : s === !1 ? /* @__PURE__ */ d(Lo, { className: "pr-ml-2 pr-h-5 pr-w-5" }) : /* @__PURE__ */ d(Vo, { className: "pr-ml-2 pr-h-5 pr-w-5" }); + cell: ({ row: i }) => { + const a = i.getValue("status"); + return a === !0 ? /* @__PURE__ */ m(ti, { className: "pr-ml-2 pr-h-5 pr-w-5" }) : a === !1 ? /* @__PURE__ */ m(ni, { className: "pr-ml-2 pr-h-5 pr-w-5" }) : /* @__PURE__ */ m(ri, { className: "pr-ml-2 pr-h-5 pr-w-5" }); } } ]; -function pm({ +function eg({ tableData: e, onStatusChange: t, - onSelectCharacter: r, - localizedStrings: n + onSelectCharacter: n, + localizedStrings: r }) { - const o = n["%webView_inventory_table_header_character%"], a = n["%webView_inventory_table_header_unicode_value%"], s = n["%webView_inventory_table_header_count%"], l = n["%webView_inventory_table_header_status%"], c = (p, u) => { - u.toggleAllRowsSelected(!1), p.toggleSelected(void 0), r(p.getValue("character")); + const o = r["%webView_inventory_table_header_character%"], i = r["%webView_inventory_table_header_unicode_value%"], a = r["%webView_inventory_table_header_count%"], l = r["%webView_inventory_table_header_status%"], c = (u, f) => { + f.toggleAllRowsSelected(!1), u.toggleSelected(void 0), n(u.getValue("character")); }; - return /* @__PURE__ */ d("div", { className: "pr-overflow-y-auto", children: /* @__PURE__ */ d( - Ql, + return /* @__PURE__ */ m("div", { className: "pr-overflow-y-auto", children: /* @__PURE__ */ m( + Uc, { - columns: cm( + columns: Qm( o, + i, a, - s, l, t ), @@ -10405,232 +10404,607 @@ function pm({ } ) }); } -const Fa = (e, t, r) => { +const oa = (e, t, n) => { if (!e || e === "" || t === "") return []; - const n = [], o = e.split(` + const r = [], o = e.split(` `); - let a = "0", s = "0", l = 0; + let i = "0", a = "0", l = 0; return o.forEach((c) => { - const p = c.split(/\s+/); - c.startsWith("\\c") && ([, a] = p, s = "0"), c.startsWith("\\v") && ([, s] = p, a === "0" && (a = r.chapterNum.toString())); - for (let u = 0; u < p.length; u++) - if (p[u].includes(t)) { - const h = Math.max(0, u - 2), f = Math.min(p.length, u + 3), b = p.slice(h, f).join(" "), y = { - reference: { ...r, chapterNum: +a, verseNum: +s }, - snippet: b, + const u = c.split(/\s+/); + c.startsWith("\\c") && ([, i] = u, a = "0"), c.startsWith("\\v") && ([, a] = u, i === "0" && (i = n.chapterNum.toString())); + for (let f = 0; f < u.length; f++) + if (u[f].includes(t)) { + const v = Math.max(0, f - 2), b = Math.min(u.length, f + 3), p = u.slice(v, b).join(" "), h = { + reference: { ...n, chapterNum: +i, verseNum: +a }, + snippet: p, key: l }; - l += 1, n.push(y); + l += 1, r.push(h); } - }), n; + }), r; }; -function um({ +function tg({ selectedCharacter: e, text: t, - scriptureReference: r, - setScriptureReference: n, + scriptureReference: n, + setScriptureReference: r, localizedStrings: o }) { - const a = o["%webView_inventory_occurrences_table_header_reference%"], s = o["%webView_inventory_occurrences_table_header_occurrence%"], [l, c] = de( - Fa(t, e, r) + const i = o["%webView_inventory_occurrences_table_header_reference%"], a = o["%webView_inventory_occurrences_table_header_occurrence%"], [l, c] = fe( + oa(t, e, n) ); return Ye( - () => c(Fa(t, e, r)), - [t, e, r] - ), /* @__PURE__ */ U(Zn, { children: [ - /* @__PURE__ */ d(Qn, { children: /* @__PURE__ */ U(Dt, { children: [ - /* @__PURE__ */ d(Lr, { children: a }), - /* @__PURE__ */ d(Lr, { children: s }) + () => c(oa(t, e, n)), + [t, e, n] + ), /* @__PURE__ */ U(ho, { children: [ + /* @__PURE__ */ m(mo, { children: /* @__PURE__ */ U(Ut, { children: [ + /* @__PURE__ */ m(Yn, { children: i }), + /* @__PURE__ */ m(Yn, { children: a }) ] }) }), - /* @__PURE__ */ d(eo, { children: l.map((p) => /* @__PURE__ */ U( - Dt, + /* @__PURE__ */ m(go, { children: l.map((u) => /* @__PURE__ */ U( + Ut, { onClick: () => { - n(p.reference); + r(u.reference); }, children: [ - /* @__PURE__ */ d(dr, { children: `${he.bookNumberToEnglishName(p.reference.bookNum)} ${p.reference.chapterNum}:${p.reference.verseNum}` }), - /* @__PURE__ */ d(dr, { children: p.snippet }) + /* @__PURE__ */ m(xn, { children: `${me.bookNumberToEnglishName(u.reference.bookNum)} ${u.reference.chapterNum}:${u.reference.verseNum}` }), + /* @__PURE__ */ m(xn, { children: u.snippet }) ] }, - p.key + u.key )) }) ] }); } -const dm = async (e, t, r, n, o) => { - const a = []; - return Ss(e, "").forEach((s) => { - if (r !== "" && !s.includes(r)) +const ng = async (e, t, n, r, o) => { + const i = []; + return bl(e, "").forEach((a) => { + if (n !== "" && !a.includes(n)) return; - const l = a.find((c) => c.character === s); + const l = i.find((c) => c.character === a); if (l) l.count += 1; else { let c; - if (n.includes(s) && (c = !0), o.includes(s) && (c = !1), t === "all" || t === "approved" && c === !0 || t === "unapproved" && c === !1 || t === "unknown" && c === void 0) { - const p = { - character: s, + if (r.includes(a) && (c = !0), o.includes(a) && (c = !1), t === "all" || t === "approved" && c === !0 || t === "unapproved" && c === !1 || t === "unknown" && c === void 0) { + const u = { + character: a, count: 1, status: c }; - a.push(p); + i.push(u); } } - }), a; + }), i; }; -function ng({ +function Zb({ scriptureReference: e, setScriptureReference: t, - localizedStrings: r, - projectId: n, + localizedStrings: n, + projectId: r, getSetting: o, - setSetting: a, - getText: s + setSetting: i, + getText: a }) { - const l = r["%webView_characterInventory_characters_all%"], c = r["%webView_characterInventory_characters_approved%"], p = r["%webView_characterInventory_characters_unapproved%"], u = r["%webView_characterInventory_characters_unknown%"], h = r["%webView_inventory_scope_book%"], f = r["%webView_inventory_scope_chapter%"], b = r["%webView_inventory_scope_verse%"], y = r["%webView_inventory_filter_text%"], [v, m] = de([]), [x, I] = de([]), [w, E] = de(void 0), [g, O] = de("book"), [S, L] = de("all"), [D, V] = de(""), [C, _] = de([]), [M, B] = de(""), z = (P, j) => { - _((te) => { + const l = n["%webView_characterInventory_characters_all%"], c = n["%webView_characterInventory_characters_approved%"], u = n["%webView_characterInventory_characters_unapproved%"], f = n["%webView_characterInventory_characters_unknown%"], v = n["%webView_inventory_scope_book%"], b = n["%webView_inventory_scope_chapter%"], p = n["%webView_inventory_scope_verse%"], h = n["%webView_inventory_filter_text%"], [d, g] = fe([]), [w, S] = fe([]), [x, E] = fe(void 0), [y, N] = fe("book"), [T, _] = fe("all"), [D, j] = fe(""), [P, I] = fe([]), [A, F] = fe(""), z = (R, L) => { + I((te) => { let Q = []; - return P.forEach((k) => { - Q = te.map((R) => R.character === k && R.status !== j ? { ...R, status: j } : R); - }), m((k) => { - let R = [...k]; - return P.forEach((F) => { - j === !0 ? R.includes(F) || R.push(F) : R = R.filter((q) => q !== F); - }), a("validCharacters", n, R), R; - }), I((k) => { - let R = [...k]; - return P.forEach((F) => { - j === !1 ? R.includes(F) || R.push(F) : R = R.filter( - (q) => q !== F + return R.forEach((O) => { + Q = te.map(($) => $.character === O && $.status !== L ? { ...$, status: L } : $); + }), g((O) => { + let $ = [...O]; + return R.forEach((V) => { + L === !0 ? $.includes(V) || $.push(V) : $ = $.filter((q) => q !== V); + }), i("validCharacters", r, $), $; + }), S((O) => { + let $ = [...O]; + return R.forEach((V) => { + L === !1 ? $.includes(V) || $.push(V) : $ = $.filter( + (q) => q !== V ); - }), a("invalidCharacters", n, R), R; + }), i("invalidCharacters", r, $), $; }), Q; }); }; return Ye(() => { (async () => { try { - m(await o("validCharacters", n)), I(await o("invalidCharacters", n)); + g(await o("validCharacters", r)), S(await o("invalidCharacters", r)); } catch { throw new Error("Failed to fetch characters from project settings"); } })(); - }, [n, o]), Ye(() => { + }, [r, o]), Ye(() => { (async () => { try { - const j = await s(n, e, g); - E(j); + const L = await a(r, e, y); + E(L); } catch { throw new Error("Failed getting scripture text"); } })(); - }, [n, e, g, s]), Ye(() => { - if (!w) { - _([]); + }, [r, e, y, a]), Ye(() => { + if (!x) { + I([]); return; } (async () => { try { - _( - await dm(w, S, D, v, x) + I( + await ng(x, T, D, d, w) ); } catch { throw new Error("Failed building table data"); } })(); - }, [v, x, w, S, D]), /* @__PURE__ */ U("div", { className: "pr-twp pr-font-sans", children: [ + }, [d, w, x, T, D]), /* @__PURE__ */ U("div", { className: "pr-twp", children: [ /* @__PURE__ */ U("div", { className: "pr-flex", children: [ - /* @__PURE__ */ U($n, { onValueChange: (P) => L(P), defaultValue: S, children: [ - /* @__PURE__ */ d(Vr, { children: /* @__PURE__ */ d(_n, { placeholder: "Select filter" }) }), - /* @__PURE__ */ U(Fr, { className: "pr-font-sans", children: [ - /* @__PURE__ */ d(rt, { value: "all", children: l }), - /* @__PURE__ */ d(rt, { value: "approved", children: c }), - /* @__PURE__ */ d(rt, { value: "unapproved", children: p }), - /* @__PURE__ */ d(rt, { value: "unknown", children: u }) - ] }) - ] }), - /* @__PURE__ */ U($n, { onValueChange: (P) => O(P), defaultValue: g, children: [ - /* @__PURE__ */ d(Vr, { children: /* @__PURE__ */ d(_n, { placeholder: "Select scope" }) }), - /* @__PURE__ */ U(Fr, { className: "pr-font-sans", children: [ - /* @__PURE__ */ d(rt, { value: "book", children: h }), - /* @__PURE__ */ d(rt, { value: "chapter", children: f }), - /* @__PURE__ */ d(rt, { value: "verse", children: b }) + /* @__PURE__ */ U( + Ur, + { + onValueChange: (R) => _(R), + defaultValue: T, + children: [ + /* @__PURE__ */ m(Kn, { children: /* @__PURE__ */ m(Hr, { placeholder: "Select filter" }) }), + /* @__PURE__ */ U(Jn, { children: [ + /* @__PURE__ */ m(ot, { value: "all", children: l }), + /* @__PURE__ */ m(ot, { value: "approved", children: c }), + /* @__PURE__ */ m(ot, { value: "unapproved", children: u }), + /* @__PURE__ */ m(ot, { value: "unknown", children: f }) + ] }) + ] + } + ), + /* @__PURE__ */ U(Ur, { onValueChange: (R) => N(R), defaultValue: y, children: [ + /* @__PURE__ */ m(Kn, { children: /* @__PURE__ */ m(Hr, { placeholder: "Select scope" }) }), + /* @__PURE__ */ U(Jn, { children: [ + /* @__PURE__ */ m(ot, { value: "book", children: v }), + /* @__PURE__ */ m(ot, { value: "chapter", children: b }), + /* @__PURE__ */ m(ot, { value: "verse", children: p }) ] }) ] }), - /* @__PURE__ */ d( - Zr, + /* @__PURE__ */ m( + sr, { className: "pr-rounded-md pr-border", - placeholder: y, + placeholder: h, value: D, - onChange: (P) => { - V(P.target.value); + onChange: (R) => { + j(R.target.value); } } ) ] }), - /* @__PURE__ */ d( + /* @__PURE__ */ m( "div", { - className: `pr-overflow-y-auto pr-rounded-md pr-border ${M !== "" && "pr-max-h-96"}`, - children: /* @__PURE__ */ d( - pm, + className: `pr-overflow-y-auto pr-rounded-md pr-border ${A !== "" && "pr-max-h-96"}`, + children: /* @__PURE__ */ m( + eg, { - tableData: C, + tableData: P, onStatusChange: z, - onSelectCharacter: (P) => { - B(P); + onSelectCharacter: (R) => { + F(R); }, - localizedStrings: r + localizedStrings: n } ) } ), - M !== "" && /* @__PURE__ */ d("div", { className: "pr-mt-4 pr-rounded-md pr-border", children: /* @__PURE__ */ d( - um, + A !== "" && /* @__PURE__ */ m("div", { className: "pr-mt-4 pr-rounded-md pr-border", children: /* @__PURE__ */ m( + tg, { - selectedCharacter: M, - text: w, + selectedCharacter: A, + text: x, scriptureReference: e, - setScriptureReference: (P) => t(P), - localizedStrings: r + setScriptureReference: (R) => t(R), + localizedStrings: n } ) }) ] }); } -const og = (e, t) => { +function Qb({ + isDownloading: e, + handleClick: t, + buttonText: n +}) { + return /* @__PURE__ */ m( + Ne, + { + className: W( + "pr-h-8 pr-rounded-md pr-text-white pr-transition pr-duration-300 pr-ease-in-out", + { + "pr-cursor-not-allowed pr-bg-blue-700": e, + "pr-bg-blue-600": !e, + "pr-bg-white pr-text-blue-600": !n, + "pr-w-20": n + } + ), + onClick: t, + children: e ? /* @__PURE__ */ m(ao, { size: 15, className: "pr-animate-spin" }) : /* @__PURE__ */ U(_t, { children: [ + /* @__PURE__ */ m(Il, { size: 25, className: "pr-h-4 pr-w-4" }), + n + ] }) + } + ); +} +function ev({ isRemoving: e, handleClick: t }) { + return /* @__PURE__ */ m( + Ne, + { + className: W( + "pr-h-8 pr-rounded-md pr-bg-gray-300 pr-text-black pr-transition pr-duration-300 pr-ease-in-out hover:pr-text-white", + { + "pr-cursor-not-allowed pr-bg-gray-400": e + } + ), + onClick: t, + children: e ? /* @__PURE__ */ U(_t, { children: [ + /* @__PURE__ */ m(ao, { size: 15, className: "pr-mr-1 pr-animate-spin pr-text-black" }), + "Removing..." + ] }) : "Remove" + } + ); +} +function tv({ isUpdating: e, handleClick: t }) { + return /* @__PURE__ */ m( + Ne, + { + className: W( + "pr-h-8 pr-rounded-md pr-bg-blue-600 pr-px-4 pr-text-white pr-transition pr-duration-300 pr-ease-in-out hover:pr-text-white", + { + "pr-cursor-not-allowed pr-bg-blue-700": e + } + ), + onClick: t, + children: e ? /* @__PURE__ */ U(_t, { children: [ + /* @__PURE__ */ m(ao, { size: 15, className: "pr-mr-1 pr-animate-spin pr-text-white" }), + "Updating..." + ] }) : "Update" + } + ); +} +function Tt() { + return Tt = Object.assign ? Object.assign.bind() : function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }, Tt.apply(this, arguments); +} +const rg = ["children", "options"], ia = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "className", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { for: "htmlFor" }), aa = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, og = ["style", "script"], ig = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, ag = /mailto:/i, sg = /\n{2,}$/, js = /^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/, lg = /^ *> ?/gm, cg = /^ {2,}\n/, pg = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Ls = /^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/, Fs = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, ug = /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/, dg = /^(?:\n *)*\n/, fg = /\r\n?/g, hg = /^\[\^([^\]]+)](:.*)\n/, mg = /^\[\^([^\]]+)]/, gg = /\f/g, bg = /^\s*?\[(x|\s)\]/, Vs = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, zs = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Us = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, ro = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i, vg = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Hs = /^)/, yg = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, oo = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, wg = /^\{.*\}$/, xg = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Eg = /^<([^ >]+@[^ >]+)>/, kg = /^<([^ >]+:\/[^ >]+)>/, Tg = /-([a-z])?/gi, Ws = /^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/, Ng = /^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/, Og = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Cg = /^\[([^\]]*)\] ?\[([^\]]*)\]/, Sg = /(\[|\])/g, Pg = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Rg = /\t/g, $g = /^ *\| */, _g = /(^ *\||\| *$)/g, Mg = / *$/, Ig = /^ *:-+: *$/, Ag = /^ *:-+ *$/, Dg = /^ *-+: *$/, Bg = /^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/, jg = /^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/, Lg = /^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/, Fg = /^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/, Vg = /^\\([^0-9A-Za-z\s])/, zg = /^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i, Ug = /^\n+/, Hg = /^([ \t]*)/, Wg = /\\([^\\])/g, sa = / *\n+$/, Xg = /(?:^|\n)( *)$/, jo = "(?:\\d+\\.)", Lo = "(?:[*+-])"; +function Xs(e) { + return "( *)(" + (e === 1 ? jo : Lo) + ") +"; +} +const Gs = Xs(1), qs = Xs(2); +function Ys(e) { + return new RegExp("^" + (e === 1 ? Gs : qs)); +} +const Gg = Ys(1), qg = Ys(2); +function Ks(e) { + return new RegExp("^" + (e === 1 ? Gs : qs) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? jo : Lo) + " )[^\\n]*)*(\\n|$)", "gm"); +} +const Js = Ks(1), Zs = Ks(2); +function Qs(e) { + const t = e === 1 ? jo : Lo; + return new RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)"); +} +const el = Qs(1), tl = Qs(2); +function la(e, t) { + const n = t === 1, r = n ? el : tl, o = n ? Js : Zs, i = n ? Gg : qg; + return { t(a, l, c) { + const u = Xg.exec(c); + return u && (l.o || !l._ && !l.u) ? r.exec(a = u[1] + a) : null; + }, i: ie.HIGH, l(a, l, c) { + const u = n ? +a[2] : void 0, f = a[0].replace(sg, ` +`).match(o); + let v = !1; + return { p: f.map(function(b, p) { + const h = i.exec(b)[0].length, d = new RegExp("^ {1," + h + "}", "gm"), g = b.replace(d, "").replace(i, ""), w = p === f.length - 1, S = g.indexOf(` + +`) !== -1 || w && v; + v = S; + const x = c._, E = c.o; + let y; + c.o = !0, S ? (c._ = !1, y = g.replace(sa, ` + +`)) : (c._ = !0, y = g.replace(sa, "")); + const N = l(y, c); + return c._ = x, c.o = E, N; + }), m: n, g: u }; + }, h: (a, l, c) => e(a.m ? "ol" : "ul", { key: c.k, start: a.g }, a.p.map(function(u, f) { + return e("li", { key: f }, l(u, c)); + })) }; +} +const Yg = /^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, Kg = /^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, nl = [js, Ls, Fs, Vs, Us, zs, Hs, Ws, Js, el, Zs, tl], Jg = [...nl, /^[^\n]+(?: \n|\n{2,})/, ro, oo]; +function Zg(e) { + return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase(); +} +function Qg(e) { + return Dg.test(e) ? "right" : Ig.test(e) ? "center" : Ag.test(e) ? "left" : null; +} +function ca(e, t, n) { + const r = n.$; + n.$ = !0; + const o = t(e.trim(), n); + n.$ = r; + let i = [[]]; + return o.forEach(function(a, l) { + a.type === "tableSeparator" ? l !== 0 && l !== o.length - 1 && i.push([]) : (a.type !== "text" || o[l + 1] != null && o[l + 1].type !== "tableSeparator" || (a.v = a.v.replace(Mg, "")), i[i.length - 1].push(a)); + }), i; +} +function eb(e, t, n) { + n._ = !0; + const r = ca(e[1], t, n), o = e[2].replace(_g, "").split("|").map(Qg), i = function(a, l, c) { + return a.trim().split(` +`).map(function(u) { + return ca(u, l, c); + }); + }(e[3], t, n); + return n._ = !1, { S: o, A: i, L: r, type: "table" }; +} +function pa(e, t) { + return e.S[t] == null ? {} : { textAlign: e.S[t] }; +} +function dt(e) { + return function(t, n) { + return n._ ? e.exec(t) : null; + }; +} +function ft(e) { + return function(t, n) { + return n._ || n.u ? e.exec(t) : null; + }; +} +function rt(e) { + return function(t, n) { + return n._ || n.u ? null : e.exec(t); + }; +} +function un(e) { + return function(t) { + return e.exec(t); + }; +} +function tb(e, t, n) { + if (t._ || t.u || n && !n.endsWith(` +`)) + return null; + let r = ""; + e.split(` +`).every((i) => !nl.some((a) => a.test(i)) && (r += i + ` +`, i.trim())); + const o = r.trimEnd(); + return o == "" ? null : [r, o]; +} +function Ft(e) { + try { + if (decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "").match(/^\s*(javascript|vbscript|data(?!:image)):/i)) + return; + } catch { + return null; + } + return e; +} +function ua(e) { + return e.replace(Wg, "$1"); +} +function qn(e, t, n) { + const r = n._ || !1, o = n.u || !1; + n._ = !0, n.u = !0; + const i = e(t, n); + return n._ = r, n.u = o, i; +} +function nb(e, t, n) { + const r = n._ || !1, o = n.u || !1; + n._ = !1, n.u = !0; + const i = e(t, n); + return n._ = r, n.u = o, i; +} +function rb(e, t, n) { + return n._ = !1, e(t, n); +} +const Br = (e, t, n) => ({ v: qn(t, e[1], n) }); +function jr() { + return {}; +} +function Lr() { + return null; +} +function ob(...e) { + return e.filter(Boolean).join(" "); +} +function Fr(e, t, n) { + let r = e; + const o = t.split("."); + for (; o.length && (r = r[o[0]], r !== void 0); ) + o.shift(); + return r || n; +} +var ie; +function ib(e, t = {}) { + t.overrides = t.overrides || {}, t.slugify = t.slugify || Zg, t.namedCodesToUnicode = t.namedCodesToUnicode ? Tt({}, aa, t.namedCodesToUnicode) : aa; + const n = t.createElement || k.createElement; + function r(p, h, ...d) { + const g = Fr(t.overrides, `${p}.props`, {}); + return n(function(w, S) { + const x = Fr(S, w); + return x ? typeof x == "function" || typeof x == "object" && "render" in x ? x : Fr(S, `${w}.component`, w) : w; + }(p, t.overrides), Tt({}, h, g, { className: ob(h == null ? void 0 : h.className, g.className) || void 0 }), ...d); + } + function o(p) { + let h = !1; + t.forceInline ? h = !0 : t.forceBlock || (h = Pg.test(p) === !1); + const d = f(u(h ? p : `${p.trimEnd().replace(Ug, "")} + +`, { _: h })); + for (; typeof d[d.length - 1] == "string" && !d[d.length - 1].trim(); ) + d.pop(); + if (t.wrapper === null) + return d; + const g = t.wrapper || (h ? "span" : "div"); + let w; + if (d.length > 1 || t.forceWrapper) + w = d; + else { + if (d.length === 1) + return w = d[0], typeof w == "string" ? r("span", { key: "outer" }, w) : w; + w = null; + } + return k.createElement(g, { key: "outer" }, w); + } + function i(p) { + const h = p.match(ig); + return h ? h.reduce(function(d, g, w) { + const S = g.indexOf("="); + if (S !== -1) { + const x = function(T) { + return T.indexOf("-") !== -1 && T.match(yg) === null && (T = T.replace(Tg, function(_, D) { + return D.toUpperCase(); + })), T; + }(g.slice(0, S)).trim(), E = function(T) { + const _ = T[0]; + return (_ === '"' || _ === "'") && T.length >= 2 && T[T.length - 1] === _ ? T.slice(1, -1) : T; + }(g.slice(S + 1).trim()), y = ia[x] || x, N = d[y] = function(T, _) { + return T === "style" ? _.split(/;\s?/).reduce(function(D, j) { + const P = j.slice(0, j.indexOf(":")); + return D[P.replace(/(-[a-z])/g, (I) => I[1].toUpperCase())] = j.slice(P.length + 1).trim(), D; + }, {}) : T === "href" ? Ft(_) : (_.match(wg) && (_ = _.slice(1, _.length - 1)), _ === "true" || _ !== "false" && _); + }(x, E); + typeof N == "string" && (ro.test(N) || oo.test(N)) && (d[y] = k.cloneElement(o(N.trim()), { key: w })); + } else + g !== "style" && (d[ia[g] || g] = !0); + return d; + }, {}) : null; + } + const a = [], l = {}, c = { blockQuote: { t: rt(js), i: ie.HIGH, l: (p, h, d) => ({ v: h(p[0].replace(lg, ""), d) }), h: (p, h, d) => r("blockquote", { key: d.k }, h(p.v, d)) }, breakLine: { t: un(cg), i: ie.HIGH, l: jr, h: (p, h, d) => r("br", { key: d.k }) }, breakThematic: { t: rt(pg), i: ie.HIGH, l: jr, h: (p, h, d) => r("hr", { key: d.k }) }, codeBlock: { t: rt(Fs), i: ie.MAX, l: (p) => ({ v: p[0].replace(/^ {4}/gm, "").replace(/\n+$/, ""), M: void 0 }), h: (p, h, d) => r("pre", { key: d.k }, r("code", Tt({}, p.O, { className: p.M ? `lang-${p.M}` : "" }), p.v)) }, codeFenced: { t: rt(Ls), i: ie.MAX, l: (p) => ({ O: i(p[3] || ""), v: p[4], M: p[2] || void 0, type: "codeBlock" }) }, codeInline: { t: ft(ug), i: ie.LOW, l: (p) => ({ v: p[2] }), h: (p, h, d) => r("code", { key: d.k }, p.v) }, footnote: { t: rt(hg), i: ie.MAX, l: (p) => (a.push({ I: p[2], j: p[1] }), {}), h: Lr }, footnoteReference: { t: dt(mg), i: ie.HIGH, l: (p) => ({ v: p[1], B: `#${t.slugify(p[1])}` }), h: (p, h, d) => r("a", { key: d.k, href: Ft(p.B) }, r("sup", { key: d.k }, p.v)) }, gfmTask: { t: dt(bg), i: ie.HIGH, l: (p) => ({ R: p[1].toLowerCase() === "x" }), h: (p, h, d) => r("input", { checked: p.R, key: d.k, readOnly: !0, type: "checkbox" }) }, heading: { t: rt(t.enforceAtxHeadings ? zs : Vs), i: ie.HIGH, l: (p, h, d) => ({ v: qn(h, p[2], d), T: t.slugify(p[2]), C: p[1].length }), h: (p, h, d) => r(`h${p.C}`, { id: p.T, key: d.k }, h(p.v, d)) }, headingSetext: { t: rt(Us), i: ie.MAX, l: (p, h, d) => ({ v: qn(h, p[1], d), C: p[2] === "=" ? 1 : 2, type: "heading" }) }, htmlComment: { t: un(Hs), i: ie.HIGH, l: () => ({}), h: Lr }, image: { t: ft(Kg), i: ie.HIGH, l: (p) => ({ D: p[1], B: ua(p[2]), F: p[3] }), h: (p, h, d) => r("img", { key: d.k, alt: p.D || void 0, title: p.F || void 0, src: Ft(p.B) }) }, link: { t: dt(Yg), i: ie.LOW, l: (p, h, d) => ({ v: nb(h, p[1], d), B: ua(p[2]), F: p[3] }), h: (p, h, d) => r("a", { key: d.k, href: Ft(p.B), title: p.F }, h(p.v, d)) }, linkAngleBraceStyleDetector: { t: dt(kg), i: ie.MAX, l: (p) => ({ v: [{ v: p[1], type: "text" }], B: p[1], type: "link" }) }, linkBareUrlDetector: { t: (p, h) => h.N ? null : dt(xg)(p, h), i: ie.MAX, l: (p) => ({ v: [{ v: p[1], type: "text" }], B: p[1], F: void 0, type: "link" }) }, linkMailtoDetector: { t: dt(Eg), i: ie.MAX, l(p) { + let h = p[1], d = p[1]; + return ag.test(d) || (d = "mailto:" + d), { v: [{ v: h.replace("mailto:", ""), type: "text" }], B: d, type: "link" }; + } }, orderedList: la(r, 1), unorderedList: la(r, 2), newlineCoalescer: { t: rt(dg), i: ie.LOW, l: jr, h: () => ` +` }, paragraph: { t: tb, i: ie.LOW, l: Br, h: (p, h, d) => r("p", { key: d.k }, h(p.v, d)) }, ref: { t: dt(Ng), i: ie.MAX, l: (p) => (l[p[1]] = { B: p[2], F: p[4] }, {}), h: Lr }, refImage: { t: ft(Og), i: ie.MAX, l: (p) => ({ D: p[1] || void 0, P: p[2] }), h: (p, h, d) => r("img", { key: d.k, alt: p.D, src: Ft(l[p.P].B), title: l[p.P].F }) }, refLink: { t: dt(Cg), i: ie.MAX, l: (p, h, d) => ({ v: h(p[1], d), Z: h(p[0].replace(Sg, "\\$1"), d), P: p[2] }), h: (p, h, d) => l[p.P] ? r("a", { key: d.k, href: Ft(l[p.P].B), title: l[p.P].F }, h(p.v, d)) : r("span", { key: d.k }, h(p.Z, d)) }, table: { t: rt(Ws), i: ie.HIGH, l: eb, h: (p, h, d) => r("table", { key: d.k }, r("thead", null, r("tr", null, p.L.map(function(g, w) { + return r("th", { key: w, style: pa(p, w) }, h(g, d)); + }))), r("tbody", null, p.A.map(function(g, w) { + return r("tr", { key: w }, g.map(function(S, x) { + return r("td", { key: x, style: pa(p, x) }, h(S, d)); + })); + }))) }, tableSeparator: { t: function(p, h) { + return h.$ ? (h._ = !0, $g.exec(p)) : null; + }, i: ie.HIGH, l: function() { + return { type: "tableSeparator" }; + }, h: () => " | " }, text: { t: un(zg), i: ie.MIN, l: (p) => ({ v: p[0].replace(vg, (h, d) => t.namedCodesToUnicode[d] ? t.namedCodesToUnicode[d] : h) }), h: (p) => p.v }, textBolded: { t: ft(Bg), i: ie.MED, l: (p, h, d) => ({ v: h(p[2], d) }), h: (p, h, d) => r("strong", { key: d.k }, h(p.v, d)) }, textEmphasized: { t: ft(jg), i: ie.LOW, l: (p, h, d) => ({ v: h(p[2], d) }), h: (p, h, d) => r("em", { key: d.k }, h(p.v, d)) }, textEscaped: { t: ft(Vg), i: ie.HIGH, l: (p) => ({ v: p[1], type: "text" }) }, textMarked: { t: ft(Lg), i: ie.LOW, l: Br, h: (p, h, d) => r("mark", { key: d.k }, h(p.v, d)) }, textStrikethroughed: { t: ft(Fg), i: ie.LOW, l: Br, h: (p, h, d) => r("del", { key: d.k }, h(p.v, d)) } }; + t.disableParsingRawHTML !== !0 && (c.htmlBlock = { t: un(ro), i: ie.HIGH, l(p, h, d) { + const [, g] = p[3].match(Hg), w = new RegExp(`^${g}`, "gm"), S = p[3].replace(w, ""), x = (E = S, Jg.some((_) => _.test(E)) ? rb : qn); + var E; + const y = p[1].toLowerCase(), N = og.indexOf(y) !== -1; + d.N = d.N || y === "a"; + const T = N ? p[3] : x(h, S, d); + return d.N = !1, { O: i(p[2]), v: T, G: N, H: N ? y : p[1] }; + }, h: (p, h, d) => r(p.H, Tt({ key: d.k }, p.O), p.G ? p.v : h(p.v, d)) }, c.htmlSelfClosing = { t: un(oo), i: ie.HIGH, l: (p) => ({ O: i(p[2] || ""), H: p[1] }), h: (p, h, d) => r(p.H, Tt({}, p.O, { key: d.k })) }); + const u = function(p) { + let h = Object.keys(p); + function d(g, w) { + let S = [], x = ""; + for (; g; ) { + let E = 0; + for (; E < h.length; ) { + const y = h[E], N = p[y], T = N.t(g, w, x); + if (T) { + const _ = T[0]; + g = g.substring(_.length); + const D = N.l(T, d, w); + D.type == null && (D.type = y), S.push(D), x = _; + break; + } + E++; + } + } + return S; + } + return h.sort(function(g, w) { + let S = p[g].i, x = p[w].i; + return S !== x ? S - x : g < w ? -1 : 1; + }), function(g, w) { + return d(function(S) { + return S.replace(fg, ` +`).replace(gg, "").replace(Rg, " "); + }(g), w); + }; + }(c), f = (v = function(p) { + return function(h, d, g) { + return p[h.type].h(h, d, g); + }; + }(c), function p(h, d = {}) { + if (Array.isArray(h)) { + const g = d.k, w = []; + let S = !1; + for (let x = 0; x < h.length; x++) { + d.k = x; + const E = p(h[x], d), y = typeof E == "string"; + y && S ? w[w.length - 1] += E : E !== null && w.push(E), S = y; + } + return d.k = g, w; + } + return v(h, p, d); + }); + var v; + const b = o(e); + return a.length ? r("div", null, b, r("footer", { key: "footer" }, a.map(function(p) { + return r("div", { id: t.slugify(p.j), key: p.j }, p.j, f(u(p.I, { _: !0 }))); + }))) : b; +} +(function(e) { + e[e.MAX = 0] = "MAX", e[e.HIGH = 1] = "HIGH", e[e.MED = 2] = "MED", e[e.LOW = 3] = "LOW", e[e.MIN = 4] = "MIN"; +})(ie || (ie = {})); +const ab = (e) => { + let { children: t, options: n } = e, r = function(o, i) { + if (o == null) + return {}; + var a, l, c = {}, u = Object.keys(o); + for (l = 0; l < u.length; l++) + i.indexOf(a = u[l]) >= 0 || (c[a] = o[a]); + return c; + }(e, rg); + return k.cloneElement(ib(t, n), r); +}; +function nv({ markdown: e }) { + return /* @__PURE__ */ m("div", { className: "pr-prose", children: /* @__PURE__ */ m(ab, { children: e }) }); +} +const rv = (e, t) => { Ye(() => { if (!e) return () => { }; - const r = e(t); + const n = e(t); return () => { - r(); + n(); }; }, [e, t]); -}, Pn = () => !1, ag = (e, t) => { - const [r] = Hn( - $e(async () => { +}, Vr = () => !1, ov = (e, t) => { + const [n] = no( + _e(async () => { if (!e) - return Pn; - const n = await Promise.resolve(e(t)); - return async () => n(); + return Vr; + const r = await Promise.resolve(e(t)); + return async () => r(); }, [t, e]), - Pn, + Vr, // We want the unsubscriber to return to default value immediately upon changing subscription // So the useEffect below will unsubscribe asap { preserveValue: !1 } ); Ye(() => () => { - r !== Pn && r(); - }, [r]); -}, fm = J.forwardRef( - ({ className: e, ...t }, r) => /* @__PURE__ */ d( + n !== Vr && n(); + }, [n]); +}, sb = J.forwardRef( + ({ className: e, ...t }, n) => /* @__PURE__ */ m( "div", { - ref: r, - className: G( + ref: n, + className: W( "pr-rounded-lg pr-border pr-bg-card pr-text-card-foreground pr-shadow-sm", e ), @@ -10638,41 +11012,41 @@ const og = (e, t) => { } ) ); -fm.displayName = "Card"; -const hm = J.forwardRef( - ({ className: e, ...t }, r) => /* @__PURE__ */ d( +sb.displayName = "Card"; +const lb = J.forwardRef( + ({ className: e, ...t }, n) => /* @__PURE__ */ m( "div", { - ref: r, - className: G("pr-flex pr-flex-col pr-space-y-1.5 pr-p-6", e), + ref: n, + className: W("pr-flex pr-flex-col pr-space-y-1.5 pr-p-6", e), ...t } ) ); -hm.displayName = "CardHeader"; -const mm = J.forwardRef( - ({ className: e, ...t }, r) => /* @__PURE__ */ d( +lb.displayName = "CardHeader"; +const cb = J.forwardRef( + ({ className: e, ...t }, n) => /* @__PURE__ */ m( "h3", { - ref: r, - className: G("pr-text-2xl pr-font-semibold pr-leading-none pr-tracking-tight", e), + ref: n, + className: W("pr-text-2xl pr-font-semibold pr-leading-none pr-tracking-tight", e), ...t, children: t.children } ) ); -mm.displayName = "CardTitle"; -const gm = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d("p", { ref: r, className: G("pr-text-sm pr-text-muted-foreground", e), ...t })); -gm.displayName = "CardDescription"; -const bm = J.forwardRef( - ({ className: e, ...t }, r) => /* @__PURE__ */ d("div", { ref: r, className: G("pr-p-6 pr-pt-0", e), ...t }) +cb.displayName = "CardTitle"; +const pb = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m("p", { ref: n, className: W("pr-text-sm pr-text-muted-foreground", e), ...t })); +pb.displayName = "CardDescription"; +const ub = J.forwardRef( + ({ className: e, ...t }, n) => /* @__PURE__ */ m("div", { ref: n, className: W("pr-p-6 pr-pt-0", e), ...t }) ); -bm.displayName = "CardContent"; -const vm = J.forwardRef( - ({ className: e, ...t }, r) => /* @__PURE__ */ d("div", { ref: r, className: G("pr-flex pr-items-center pr-p-6 pr-pt-0", e), ...t }) +ub.displayName = "CardContent"; +const db = J.forwardRef( + ({ className: e, ...t }, n) => /* @__PURE__ */ m("div", { ref: n, className: W("pr-flex pr-items-center pr-p-6 pr-pt-0", e), ...t }) ); -vm.displayName = "CardFooter"; -const ym = Xn( +db.displayName = "CardFooter"; +const fb = so( "pr-relative pr-w-full pr-rounded-lg pr-border pr-p-4 [&>svg~*]:pr-pl-7 [&>svg+div]:pr-translate-y-[-3px] [&>svg]:pr-absolute [&>svg]:pr-left-4 [&>svg]:pr-top-4 [&>svg]:pr-text-foreground", { variants: { @@ -10685,14 +11059,14 @@ const ym = Xn( variant: "default" } } -), wm = J.forwardRef(({ className: e, variant: t, ...r }, n) => /* @__PURE__ */ d("div", { ref: n, role: "alert", className: G(ym({ variant: t }), e), ...r })); -wm.displayName = "Alert"; -const xm = J.forwardRef( - ({ className: e, ...t }, r) => /* @__PURE__ */ U( +), hb = J.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ m("div", { ref: r, role: "alert", className: W(fb({ variant: t }), e), ...n })); +hb.displayName = "Alert"; +const mb = J.forwardRef( + ({ className: e, ...t }, n) => /* @__PURE__ */ U( "h5", { - ref: r, - className: G("pr-mb-1 pr-font-medium pr-leading-none pr-tracking-tight", e), + ref: n, + className: W("pr-mb-1 pr-font-medium pr-leading-none pr-tracking-tight", e), ...t, children: [ t.children, @@ -10701,52 +11075,60 @@ const xm = J.forwardRef( } ) ); -xm.displayName = "AlertTitle"; -const Em = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d("div", { ref: r, className: G("pr-text-sm [&_p]:pr-leading-relaxed", e), ...t })); -Em.displayName = "AlertDescription"; -const Tm = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ U( - nr.Root, +mb.displayName = "AlertTitle"; +const gb = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m("div", { ref: n, className: W("pr-text-sm [&_p]:pr-leading-relaxed", e), ...t })); +gb.displayName = "AlertDescription"; +const bb = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U( + dn.Root, { - ref: r, - className: G( + ref: n, + className: W( "pr-relative pr-flex pr-w-full pr-touch-none pr-select-none pr-items-center", e ), ...t, children: [ - /* @__PURE__ */ d(nr.Track, { className: "pr-relative pr-h-2 pr-w-full pr-grow pr-overflow-hidden pr-rounded-full pr-bg-secondary", children: /* @__PURE__ */ d(nr.Range, { className: "pr-absolute pr-h-full pr-bg-primary" }) }), - /* @__PURE__ */ d(nr.Thumb, { className: "pr-block pr-h-5 pr-w-5 pr-rounded-full pr-border-2 pr-border-primary pr-bg-background pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50" }) + /* @__PURE__ */ m(dn.Track, { className: "pr-relative pr-h-2 pr-w-full pr-grow pr-overflow-hidden pr-rounded-full pr-bg-secondary", children: /* @__PURE__ */ m(dn.Range, { className: "pr-absolute pr-h-full pr-bg-primary" }) }), + /* @__PURE__ */ m(dn.Thumb, { className: "pr-block pr-h-5 pr-w-5 pr-rounded-full pr-border-2 pr-border-primary pr-bg-background pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50" }) ] } )); -Tm.displayName = nr.Root.displayName; -const km = J.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d( - Rn.Root, +bb.displayName = dn.Root.displayName; +const vb = J.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m( + zr.Root, { - className: G( + className: W( "pr-peer pr-inline-flex pr-h-6 pr-w-11 pr-shrink-0 pr-cursor-pointer pr-items-center pr-rounded-full pr-border-2 pr-border-transparent pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 focus-visible:pr-ring-offset-background disabled:pr-cursor-not-allowed disabled:pr-opacity-50 data-[state=checked]:pr-bg-primary data-[state=unchecked]:pr-bg-input", e ), ...t, - ref: r, - children: /* @__PURE__ */ d( - Rn.Thumb, + ref: n, + children: /* @__PURE__ */ m( + zr.Thumb, { - className: G( + className: W( "pr-pointer-events-none pr-block pr-h-5 pr-w-5 pr-rounded-full pr-bg-background pr-shadow-lg pr-ring-0 pr-transition-transform data-[state=checked]:pr-translate-x-5 data-[state=unchecked]:pr-translate-x-0" ) } ) } )); -km.displayName = Rn.Root.displayName; -function Nm(e, t = "top") { +vb.displayName = zr.Root.displayName; +function yb(e, t = "top") { if (!e || typeof document > "u") return; - const r = document.head || document.querySelector("head"), n = r.querySelector(":first-child"), o = document.createElement("style"); - o.appendChild(document.createTextNode(e)), t === "top" && n ? r.insertBefore(o, n) : r.appendChild(o); + const n = document.head || document.querySelector("head"), r = n.querySelector(":first-child"), o = document.createElement("style"); + o.appendChild(document.createTextNode(e)), t === "top" && r ? n.insertBefore(o, r) : n.appendChild(o); +} +yb(`.check-item { + flex-wrap: wrap; + vertical-align: middle; +} + +.papi-checkbox { + display: block; } -Nm(`/* +/* 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) */ @@ -11137,6 +11519,12 @@ video:where(.pr-twp,.pr-twp *) { src: url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap'); } + /* Adding the preflight selector (pr-twp) to components was not changing the font as desired. + So this piece of code adds pr-font-sans everywhere we include preflight. */ + .pr-twp { + font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; +} + :root { --background: 0 0% 100%; --foreground: 222.2 84% 4.9%; @@ -11455,6 +11843,10 @@ video:where(.pr-twp,.pr-twp *) { margin-top: 0.25rem; margin-bottom: 0.25rem; } +.pr-my-2 { + margin-top: 0.5rem; + margin-bottom: 0.5rem; +} .pr-my-4 { margin-top: 1rem; margin-bottom: 1rem; @@ -11474,6 +11866,9 @@ video:where(.pr-twp,.pr-twp *) { .pr-ml-auto { margin-left: auto; } +.pr-mr-1 { + margin-right: 0.25rem; +} .pr-mr-2 { margin-right: 0.5rem; } @@ -11579,6 +11974,9 @@ video:where(.pr-twp,.pr-twp *) { .pr-w-2 { width: 0.5rem; } +.pr-w-20 { + width: 5rem; +} .pr-w-3 { width: 0.75rem; } @@ -11664,9 +12062,21 @@ video:where(.pr-twp,.pr-twp *) { .pr-transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +@keyframes pr-spin { + + to { + transform: rotate(360deg); + } +} +.pr-animate-spin { + animation: pr-spin 1s linear infinite; +} .pr-cursor-default { cursor: default; } +.pr-cursor-not-allowed { + cursor: not-allowed; +} .pr-cursor-pointer { cursor: pointer; } @@ -11868,6 +12278,14 @@ video:where(.pr-twp,.pr-twp *) { .pr-bg-background { background-color: hsl(var(--background)); } +.pr-bg-blue-600 { + --tw-bg-opacity: 1; + background-color: rgb(37 99 235 / var(--tw-bg-opacity)); +} +.pr-bg-blue-700 { + --tw-bg-opacity: 1; + background-color: rgb(29 78 216 / var(--tw-bg-opacity)); +} .pr-bg-border { background-color: hsl(var(--border)); } @@ -11883,6 +12301,17 @@ video:where(.pr-twp,.pr-twp *) { .pr-bg-destructive-foreground { background-color: hsl(var(--destructive-foreground)); } +.pr-bg-foreground { + background-color: hsl(var(--foreground)); +} +.pr-bg-gray-300 { + --tw-bg-opacity: 1; + background-color: rgb(209 213 219 / var(--tw-bg-opacity)); +} +.pr-bg-gray-400 { + --tw-bg-opacity: 1; + background-color: rgb(156 163 175 / var(--tw-bg-opacity)); +} .pr-bg-input { background-color: hsl(var(--input)); } @@ -12006,9 +12435,6 @@ video:where(.pr-twp,.pr-twp *) { .pr-align-middle { vertical-align: middle; } -.pr-font-sans { - font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; -} .pr-text-2xl { font-size: 1.5rem; line-height: 2rem; @@ -12060,6 +12486,10 @@ video:where(.pr-twp,.pr-twp *) { --tw-text-opacity: 1; color: rgb(120 53 15 / var(--tw-text-opacity)); } +.pr-text-black { + --tw-text-opacity: 1; + color: rgb(0 0 0 / var(--tw-text-opacity)); +} .pr-text-blue-600 { --tw-text-opacity: 1; color: rgb(37 99 235 / var(--tw-text-opacity)); @@ -12162,8 +12592,13 @@ video:where(.pr-twp,.pr-twp *) { .pr-ring-offset-background { --tw-ring-offset-color: hsl(var(--background)); } -.pr-transition-all { - transition-property: all; +.pr-transition { + transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + transition-duration: 150ms; +} +.pr-transition-all { + transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; } @@ -12177,6 +12612,12 @@ video:where(.pr-twp,.pr-twp *) { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; } +.pr-duration-300 { + transition-duration: 300ms; +} +.pr-ease-in-out { + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); +} @keyframes enter { from { @@ -12191,6 +12632,12 @@ video:where(.pr-twp,.pr-twp *) { transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0)); } } +.pr-duration-300 { + animation-duration: 300ms; +} +.pr-ease-in-out { + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); +} .file\\:pr-border-0::file-selector-button { border-width: 0px; } @@ -12228,6 +12675,10 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:pr-text-foreground:hover { color: hsl(var(--foreground)); } +.hover\\:pr-text-white:hover { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); +} .hover\\:pr-underline:hover { text-decoration-line: underline; } @@ -12474,89 +12925,90 @@ video:where(.pr-twp,.pr-twp *) { .\\[\\&_tr\\]\\:pr-border-b tr { border-bottom-width: 1px; } -.papi-snackbar { - font-family: Arial, Helvetica, sans-serif; -} - -.papi-snackbar.primary { - background: #1ea7fd; - color: white; -} - -.papi-snackbar.external { - background-color: lightsteelblue; - border-color: white; - border-style: dotted; - padding: 2%; - width: 30%; +.papi-combo-box { + background-color: transparent; } -.papi-snackbar.secondary { - background: transparent; - color: #333; +.papi-combo-box.fullwidth { + width: 100%; } -.papi-snackbar.alert { - background: lightcoral; +.papi-combo-box.error { + background-color: #f00; } -.papi-snackbar.paratext { - background: darkgreen; +.papi-combo-box.paratext { + background-color: darkgreen; color: greenyellow; } -.papi-snackbar.bright { - background: greenyellow; +.papi-combo-box.paratext.bright { + background-color: greenyellow; color: darkgreen; } -.papi-switch { - background-color: transparent; +.papi-multi-column-menu { + background-color: rgb(222, 222, 222); + display: flex; + flex-direction: column; + padding-left: 3px; + padding-right: 3px; } -.papi-switch.primary { - background-color: #1ea7fd; +.papi-menu-column { + font-size: 11pt; + font-weight: 600; + padding-bottom: 2px; } -.papi-switch.secondary { - background-color: #6fc8ff; +.papi-menu-column ul { + padding-top: 0; } -.papi-switch.error { - background-color: #f00; +.papi-menu-column-header { + background-color: rgb(181, 181, 181); + padding-left: 24px; + margin-top: 0; + margin-bottom: 0; } -.papi-switch.paratext { - background-color: darkgreen; - color: greenyellow; +.papi-multi-column-menu.paratext { + background-color: rgb(76, 106, 76); + color: rgb(214, 255, 152); } -.papi-switch.paratext.bright { - background-color: greenyellow; - color: darkgreen; +.papi-multi-column-menu.paratext.bright { + color: rgb(76, 106, 76); + background-color: rgb(214, 255, 152); } -.papi-toolbar { - background-color: #eee; - color: black; +.papi-context-menu-target { + white-space: nowrap; + cursor: context-menu; } -.papi-toolbar.paratext { - background-color: darkgreen; - color: greenyellow; +.papi-context-menu-target * { + white-space: normal; } -.papi-toolbar.paratext.bright { - background-color: greenyellow; - color: darkgreen; +.papi-context-menu-target:hover { + box-shadow: 0 0 10px rgba(0, 0, 0, 0.07); /* Faint shadowy background */ } -.papi-menu-drawer-paper { - height: fit-content !important; - position: absolute !important; +.papi-context-menu-target.paratext:hover { + box-shadow: 0 0 10px rgba(0, 100, 0, 0.07); /* Faint shadowy background */ } -.papi-toolbar-children { - padding: 10px; - position: relative; +.papi-context-menu-target.paratext.bright:hover { + box-shadow: 0 0 10px rgba(173, 255, 47, 0.07); /* Faint shadowy background */ +} + +.papi-context-menu.paratext ul { + background-color: rgb(76, 106, 76); + color: rgb(214, 255, 152); +} + +.papi-context-menu.paratext.bright ul { + color: rgb(76, 106, 76); + background-color: rgb(214, 255, 152); } .papi-icon-button { border: 0; @@ -12584,124 +13036,113 @@ video:where(.pr-twp,.pr-twp *) { background-color: greenyellow; color: darkgreen; } -.search-bar-paper { - display: flex; - align-items: center; +.papi-checkbox { + background-color: transparent; } -.search-button { - padding: 10px; -} -.papi-slider { - background-color: transparent; - color: #1ea7fd; +.papi-checkbox.error { + color: #f00; } -.papi-slider.vertical { - min-height: 200px; +.papi-checkbox.error:hover { + background-color: rgba(255, 0, 0, 0.2); } -.papi-slider.paratext { - background-color: darkgreen; +.papi-checkbox.paratext { color: greenyellow; } -.papi-slider.paratext.bright { - background-color: greenyellow; +.papi-checkbox-label.paratext { color: darkgreen; } -.check-item { - flex-wrap: wrap; - vertical-align: middle; -} -.papi-checkbox { - display: block; +.papi-checkbox.paratext:hover { + background-color: rgba(0, 100, 0, 0.3); } -.papi-multi-column-menu { - background-color: rgb(222, 222, 222); - display: flex; - flex-direction: column; - padding-left: 3px; - padding-right: 3px; + +.papi-checkbox.paratext.bright { + color: darkgreen; } -.papi-menu-column { - font-size: 11pt; - font-weight: 600; - padding-bottom: 2px; +.papi-checkbox-label.paratext.bright { + background-color: greenyellow; } -.papi-menu-column ul { - padding-top: 0; +.papi-checkbox.paratext.bright:hover { + background-color: rgba(173, 255, 47, 0.3); } -.papi-menu-column-header { - background-color: rgb(181, 181, 181); - padding-left: 24px; - margin-top: 0; - margin-bottom: 0; +.papi-checkbox.below, +.papi-checkbox.above { + text-align: center; +} +.search-bar-paper { + display: flex; + align-items: center; } -.papi-multi-column-menu.paratext { - background-color: rgb(76, 106, 76); - color: rgb(214, 255, 152); +.search-button { + padding: 10px; +} +.papi-snackbar { + font-family: Arial, Helvetica, sans-serif; } -.papi-multi-column-menu.paratext.bright { - color: rgb(76, 106, 76); - background-color: rgb(214, 255, 152); +.papi-snackbar.primary { + background: #1ea7fd; + color: white; } -.papi-combo-box { - background-color: transparent; + +.papi-snackbar.external { + background-color: lightsteelblue; + border-color: white; + border-style: dotted; + padding: 2%; + width: 30%; } -.papi-combo-box.fullwidth { - width: 100%; +.papi-snackbar.secondary { + background: transparent; + color: #333; } -.papi-combo-box.error { - background-color: #f00; +.papi-snackbar.alert { + background: lightcoral; } -.papi-combo-box.paratext { - background-color: darkgreen; +.papi-snackbar.paratext { + background: darkgreen; color: greenyellow; } -.papi-combo-box.paratext.bright { - background-color: greenyellow; +.papi-snackbar.bright { + background: greenyellow; color: darkgreen; } -.papi-context-menu-target { - white-space: nowrap; - cursor: context-menu; -} - -.papi-context-menu-target * { - white-space: normal; +.papi-switch { + background-color: transparent; } -.papi-context-menu-target:hover { - box-shadow: 0 0 10px rgba(0, 0, 0, 0.07); /* Faint shadowy background */ +.papi-switch.primary { + background-color: #1ea7fd; } -.papi-context-menu-target.paratext:hover { - box-shadow: 0 0 10px rgba(0, 100, 0, 0.07); /* Faint shadowy background */ +.papi-switch.secondary { + background-color: #6fc8ff; } -.papi-context-menu-target.paratext.bright:hover { - box-shadow: 0 0 10px rgba(173, 255, 47, 0.07); /* Faint shadowy background */ +.papi-switch.error { + background-color: #f00; } -.papi-context-menu.paratext ul { - background-color: rgb(76, 106, 76); - color: rgb(214, 255, 152); +.papi-switch.paratext { + background-color: darkgreen; + color: greenyellow; } -.papi-context-menu.paratext.bright ul { - color: rgb(76, 106, 76); - background-color: rgb(214, 255, 152); +.papi-switch.paratext.bright { + background-color: greenyellow; + color: darkgreen; } .papi-menu-item { background-color: transparent; @@ -12716,124 +13157,130 @@ video:where(.pr-twp,.pr-twp *) { max-width: 24px; max-height: 24px; } -.papi-checkbox { +.papi-slider { background-color: transparent; + color: #1ea7fd; } -.papi-checkbox.error { - color: #f00; -} - -.papi-checkbox.error:hover { - background-color: rgba(255, 0, 0, 0.2); +.papi-slider.vertical { + min-height: 200px; } -.papi-checkbox.paratext { +.papi-slider.paratext { + background-color: darkgreen; color: greenyellow; } -.papi-checkbox-label.paratext { +.papi-slider.paratext.bright { + background-color: greenyellow; color: darkgreen; } - -.papi-checkbox.paratext:hover { - background-color: rgba(0, 100, 0, 0.3); +.papi-toolbar { + background-color: #eee; + color: black; } -.papi-checkbox.paratext.bright { - color: darkgreen; +.papi-toolbar.paratext { + background-color: darkgreen; + color: greenyellow; } -.papi-checkbox-label.paratext.bright { +.papi-toolbar.paratext.bright { background-color: greenyellow; + color: darkgreen; } -.papi-checkbox.paratext.bright:hover { - background-color: rgba(173, 255, 47, 0.3); +.papi-menu-drawer-paper { + height: fit-content !important; + position: absolute !important; } -.papi-checkbox.below, -.papi-checkbox.above { - text-align: center; +.papi-toolbar-children { + padding: 10px; + position: relative; } `, "top"); export { - wm as Alert, - Em as AlertDescription, - xm as AlertTitle, - Hm as BookChapterControl, - ke as Button, - fm as Card, - bm as CardContent, - gm as CardDescription, - vm as CardFooter, - hm as CardHeader, - mm as CardTitle, - Xm as ChapterRangeSelector, - ng as CharacterInventory, - ec as Checkbox, - qm as Checklist, - Xo as ComboBox, - Ym as ContextMenu, - Ql as DataTable, - ti as DropdownMenu, - ni as DropdownMenuCheckboxItem, - Kn as DropdownMenuContent, - Vm as DropdownMenuGroup, - ri as DropdownMenuItem, - Jr as DropdownMenuLabel, - Fm as DropdownMenuPortal, - Um as DropdownMenuRadioGroup, - Ml as DropdownMenuRadioItem, - Jn as DropdownMenuSeparator, - Il as DropdownMenuShortcut, - zm as DropdownMenuSub, - _l as DropdownMenuSubContent, - $l as DropdownMenuSubTrigger, - Rl as DropdownMenuTrigger, - sh as GridMenu, - em as HamburgerMenuButton, - Gm as IconButton, - Zr as Input, - It as LabelPosition, - es as MenuItem, - Km as SearchBar, - $n as Select, - Fr as SelectContent, - Wm as SelectGroup, - rt as SelectItem, - Gl as SelectLabel, - ai as SelectScrollDownButton, - oi as SelectScrollUpButton, - Kl as SelectSeparator, - Vr as SelectTrigger, - _n as SelectValue, - Tm as ShadCnSlider, - km as ShadCnSwitch, - Jm as Slider, - Zm as Snackbar, - Qm as Switch, - Zn as Table, - eo as TableBody, - ql as TableCaption, - dr as TableCell, - Xl as TableFooter, - Lr as TableHead, - Qn as TableHeader, - Dt as TableRow, - tg as Tabs, - am as TabsContent, - nm as TabsList, - om as TabsTrigger, - rm as TextField, - eg as Toolbar, - im as VerticalTabs, - lm as VerticalTabsContent, - sm as VerticalTabsList, - rg as VerticalTabsTrigger, - Yl as buttonVariants, - og as useEvent, - ag as useEventAsync, - Hn as usePromise + hb as Alert, + gb as AlertDescription, + mb as AlertTitle, + Lb as BookChapterControl, + Ne as Button, + sb as Card, + ub as CardContent, + pb as CardDescription, + db as CardFooter, + lb as CardHeader, + cb as CardTitle, + Vb as ChapterRangeSelector, + Zb as CharacterInventory, + Hc as Checkbox, + zb as Checklist, + ci as ComboBox, + Ub as ContextMenu, + Uc as DataTable, + Qb as DownloadButton, + Na as DropdownMenu, + Ca as DropdownMenuCheckboxItem, + uo as DropdownMenuContent, + Ab as DropdownMenuGroup, + Oa as DropdownMenuItem, + ar as DropdownMenuLabel, + Db as DropdownMenuPortal, + jb as DropdownMenuRadioGroup, + kc as DropdownMenuRadioItem, + fo as DropdownMenuSeparator, + Tc as DropdownMenuShortcut, + Bb as DropdownMenuSub, + Ec as DropdownMenuSubContent, + xc as DropdownMenuSubTrigger, + wc as DropdownMenuTrigger, + Jh as GridMenu, + Hm as HamburgerMenuButton, + Hb as IconButton, + sr as Input, + Vt as LabelPosition, + nv as MarkdownRenderer, + Ts as MenuItem, + ev as RemoveButton, + Wb as SearchBar, + Ur as Select, + Jn as SelectContent, + Fb as SelectGroup, + ot as SelectItem, + Lc as SelectLabel, + Pa as SelectScrollDownButton, + Sa as SelectScrollUpButton, + Fc as SelectSeparator, + Kn as SelectTrigger, + Hr as SelectValue, + bb as ShadCnSlider, + vb as ShadCnSwitch, + Xb as Slider, + Gb as Snackbar, + qb as Switch, + ho as Table, + go as TableBody, + Bc as TableCaption, + xn as TableCell, + Dc as TableFooter, + Yn as TableHead, + mo as TableHeader, + Ut as TableRow, + Kb as Tabs, + Ym as TabsContent, + Gm as TabsList, + qm as TabsTrigger, + Xm as TextField, + Yb as Toolbar, + tv as UpdateButton, + Km as VerticalTabs, + Zm as VerticalTabsContent, + Jm as VerticalTabsList, + Jb as VerticalTabsTrigger, + jc as buttonVariants, + rv as useEvent, + ov as useEventAsync, + no as usePromise }; //# sourceMappingURL=index.js.map diff --git a/lib/platform-bible-react/dist/index.js.map b/lib/platform-bible-react/dist/index.js.map index 0add6ce95a..a7a07f2fce 100644 --- a/lib/platform-bible-react/dist/index.js.map +++ b/lib/platform-bible-react/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../../../node_modules/@sillsdev/scripture/dist/index.es.js","../src/utils/shadcn-ui.util.ts","../src/components/shadcn-ui/dropdown-menu.tsx","../src/components/shadcn-ui/input.tsx","../src/components/advanced-components/book-chapter-control/book-chapter-input.component.tsx","../src/components/advanced-components/book-chapter-control/chapter-select.component.tsx","../src/components/advanced-components/book-chapter-control/book-menu-item.component.tsx","../src/components/advanced-components/book-chapter-control/go-to-menu-item.component.tsx","../src/components/advanced-components/book-chapter-control/book-chapter-control.component.tsx","../src/components/shadcn-ui/table.tsx","../src/components/shadcn-ui/button.tsx","../src/components/shadcn-ui/select.tsx","../src/components/advanced-components/data-table/data-table-pagination.component.tsx","../src/components/advanced-components/data-table/data-table-column-toggle.component.tsx","../src/components/advanced-components/data-table/data-table.component.tsx","../src/components/combo-box.component.tsx","../src/components/chapter-range-selector.component.tsx","../src/components/label-position.model.ts","../src/components/checkbox.component.tsx","../src/components/checklist.component.tsx","../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/esm/extends.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/index.js","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/base/utils/isHostComponent.js","../../../node_modules/@mui/base/utils/appendOwnerState.js","../../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/utils/extractEventHandlers.js","../../../node_modules/@mui/base/utils/resolveComponentProps.js","../../../node_modules/@mui/base/utils/omitEventHandlers.js","../../../node_modules/@mui/base/utils/mergeSlotProps.js","../../../node_modules/@mui/base/utils/useSlotProps.js","../../../node_modules/@mui/base/generateUtilityClass/index.js","../../../node_modules/@mui/base/generateUtilityClasses/index.js","../../../node_modules/@mui/base/FocusTrap/FocusTrap.js","../../../node_modules/@mui/base/Portal/Portal.js","../../../node_modules/@mui/base/unstable_useModal/ModalManager.js","../../../node_modules/@mui/base/unstable_useModal/useModal.js","../../../node_modules/@popperjs/core/lib/enums.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../node_modules/@popperjs/core/lib/utils/math.js","../../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../node_modules/@popperjs/core/lib/utils/within.js","../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../node_modules/@popperjs/core/lib/utils/debounce.js","../../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../node_modules/@popperjs/core/lib/createPopper.js","../../../node_modules/@popperjs/core/lib/popper.js","../../../node_modules/@mui/base/Popper/popperClasses.js","../../../node_modules/@mui/base/Popper/Popper.js","../../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/esm/createTheme/shape.js","../../../node_modules/@mui/system/esm/responsivePropType.js","../../../node_modules/@mui/system/esm/merge.js","../../../node_modules/@mui/system/esm/breakpoints.js","../../../node_modules/@mui/system/esm/style.js","../../../node_modules/@mui/system/esm/memoize.js","../../../node_modules/@mui/system/esm/spacing.js","../../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../../node_modules/@mui/system/esm/compose.js","../../../node_modules/@mui/system/esm/borders.js","../../../node_modules/@mui/system/esm/cssGrid.js","../../../node_modules/@mui/system/esm/palette.js","../../../node_modules/@mui/system/esm/sizing.js","../../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../../node_modules/@mui/system/esm/useTheme.js","../../../node_modules/@mui/system/esm/createStyled.js","../../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/esm/colorManipulator.js","../../../node_modules/@mui/material/styles/createMixins.js","../../../node_modules/@mui/material/colors/common.js","../../../node_modules/@mui/material/colors/grey.js","../../../node_modules/@mui/material/colors/purple.js","../../../node_modules/@mui/material/colors/red.js","../../../node_modules/@mui/material/colors/orange.js","../../../node_modules/@mui/material/colors/blue.js","../../../node_modules/@mui/material/colors/lightBlue.js","../../../node_modules/@mui/material/colors/green.js","../../../node_modules/@mui/material/styles/createPalette.js","../../../node_modules/@mui/material/styles/createTypography.js","../../../node_modules/@mui/material/styles/shadows.js","../../../node_modules/@mui/material/styles/createTransitions.js","../../../node_modules/@mui/material/styles/zIndex.js","../../../node_modules/@mui/material/styles/createTheme.js","../../../node_modules/@mui/material/styles/defaultTheme.js","../../../node_modules/@mui/material/styles/identifier.js","../../../node_modules/@mui/material/styles/styled.js","../../../node_modules/@mui/material/styles/useTheme.js","../../../node_modules/@mui/material/styles/useThemeProps.js","../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../node_modules/react-transition-group/esm/config.js","../../../node_modules/react-transition-group/esm/utils/PropTypes.js","../../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../../node_modules/react-transition-group/esm/utils/reflow.js","../../../node_modules/react-transition-group/esm/Transition.js","../../../node_modules/@mui/material/transitions/utils.js","../../../node_modules/@mui/material/Grow/Grow.js","../../../node_modules/@mui/material/styles/getOverlayAlpha.js","../../../node_modules/@mui/material/Popper/Popper.js","../../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../../node_modules/@mui/material/Tooltip/Tooltip.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@mui/material/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/material/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/utils/createSvgIcon.js","../../../node_modules/@mui/material/utils/index.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/@mui/icons-material/ArrowRight.js","../src/components/menu-item.component.tsx","../src/components/grouped-menu-item-list.component.tsx","../src/components/top-level-menu.component.tsx","../src/components/grid-menu.component.tsx","../../../node_modules/@mui/material/List/ListContext.js","../../../node_modules/@mui/material/List/listClasses.js","../../../node_modules/@mui/material/List/List.js","../../../node_modules/@mui/material/MenuList/MenuList.js","../../../node_modules/@mui/material/Fade/Fade.js","../../../node_modules/@mui/material/Backdrop/backdropClasses.js","../../../node_modules/@mui/material/Backdrop/Backdrop.js","../../../node_modules/@mui/material/Modal/modalClasses.js","../../../node_modules/@mui/material/Modal/Modal.js","../../../node_modules/@mui/material/Paper/paperClasses.js","../../../node_modules/@mui/material/Paper/Paper.js","../../../node_modules/@mui/material/Popover/popoverClasses.js","../../../node_modules/@mui/material/Popover/Popover.js","../../../node_modules/@mui/material/Menu/menuClasses.js","../../../node_modules/@mui/material/Menu/Menu.js","../src/components/context-menu.component.tsx","../../../node_modules/@mui/icons-material/esm/Menu.js","../src/hooks/use-promise.hook.ts","../src/components/hamburger-menu-button.component.tsx","../src/components/icon-button.component.tsx","../src/components/shadcn-ui/label.tsx","../src/components/text-field.component.tsx","../src/components/search-bar.component.tsx","../src/components/slider.component.tsx","../src/components/snackbar.component.tsx","../src/components/switch.component.tsx","../src/components/toolbar.component.tsx","../src/components/shadcn-ui/tabs.tsx","../src/components/shadcn-ui/tabs-vertical.tsx","../src/components/paratext-10-studio-components/inventory/inventory-data-table.component.tsx","../src/components/paratext-10-studio-components/inventory/occurrences-table.component.tsx","../src/components/paratext-10-studio-components/inventory/character-inventory.component.tsx","../src/hooks/use-event.hook.ts","../src/hooks/use-event-async.hook.ts","../src/components/shadcn-ui/card.tsx","../src/components/shadcn-ui/alert.tsx","../src/components/shadcn-ui/slider.tsx","../src/components/shadcn-ui/switch.tsx"],"sourcesContent":["var P = Object.defineProperty;\nvar R = (t, e, s) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;\nvar n = (t, e, s) => R(t, typeof e != \"symbol\" ? e + \"\" : e, s);\nclass _ {\n constructor() {\n n(this, \"books\");\n n(this, \"firstSelectedBookNum\");\n n(this, \"lastSelectedBookNum\");\n n(this, \"count\");\n n(this, \"selectedBookNumbers\");\n n(this, \"selectedBookIds\");\n }\n}\nconst N = [\n \"GEN\",\n \"EXO\",\n \"LEV\",\n \"NUM\",\n \"DEU\",\n \"JOS\",\n \"JDG\",\n \"RUT\",\n \"1SA\",\n \"2SA\",\n // 10\n \"1KI\",\n \"2KI\",\n \"1CH\",\n \"2CH\",\n \"EZR\",\n \"NEH\",\n \"EST\",\n \"JOB\",\n \"PSA\",\n \"PRO\",\n // 20\n \"ECC\",\n \"SNG\",\n \"ISA\",\n \"JER\",\n \"LAM\",\n \"EZK\",\n \"DAN\",\n \"HOS\",\n \"JOL\",\n \"AMO\",\n // 30\n \"OBA\",\n \"JON\",\n \"MIC\",\n \"NAM\",\n \"HAB\",\n \"ZEP\",\n \"HAG\",\n \"ZEC\",\n \"MAL\",\n \"MAT\",\n // 40\n \"MRK\",\n \"LUK\",\n \"JHN\",\n \"ACT\",\n \"ROM\",\n \"1CO\",\n \"2CO\",\n \"GAL\",\n \"EPH\",\n \"PHP\",\n // 50\n \"COL\",\n \"1TH\",\n \"2TH\",\n \"1TI\",\n \"2TI\",\n \"TIT\",\n \"PHM\",\n \"HEB\",\n \"JAS\",\n \"1PE\",\n // 60\n \"2PE\",\n \"1JN\",\n \"2JN\",\n \"3JN\",\n \"JUD\",\n \"REV\",\n \"TOB\",\n \"JDT\",\n \"ESG\",\n \"WIS\",\n // 70\n \"SIR\",\n \"BAR\",\n \"LJE\",\n \"S3Y\",\n \"SUS\",\n \"BEL\",\n \"1MA\",\n \"2MA\",\n \"3MA\",\n \"4MA\",\n // 80\n \"1ES\",\n \"2ES\",\n \"MAN\",\n \"PS2\",\n \"ODA\",\n \"PSS\",\n \"JSA\",\n // actual variant text for JOS, now in LXA text\n \"JDB\",\n // actual variant text for JDG, now in LXA text\n \"TBS\",\n // actual variant text for TOB, now in LXA text\n \"SST\",\n // actual variant text for SUS, now in LXA text // 90\n \"DNT\",\n // actual variant text for DAN, now in LXA text\n \"BLT\",\n // actual variant text for BEL, now in LXA text\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n // 100\n \"BAK\",\n \"OTH\",\n \"3ES\",\n // Used previously but really should be 2ES\n \"EZA\",\n // Used to be called 4ES, but not actually in any known project\n \"5EZ\",\n // Used to be called 5ES, but not actually in any known project\n \"6EZ\",\n // Used to be called 6ES, but not actually in any known project\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n // 110\n \"NDX\",\n \"DAG\",\n \"PS3\",\n \"2BA\",\n \"LBA\",\n \"JUB\",\n \"ENO\",\n \"1MQ\",\n \"2MQ\",\n \"3MQ\",\n // 120\n \"REP\",\n \"4BA\",\n \"LAO\"\n], B = [\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n \"BAK\",\n \"OTH\",\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n \"NDX\"\n], O = [\n \"Genesis\",\n \"Exodus\",\n \"Leviticus\",\n \"Numbers\",\n \"Deuteronomy\",\n \"Joshua\",\n \"Judges\",\n \"Ruth\",\n \"1 Samuel\",\n \"2 Samuel\",\n \"1 Kings\",\n \"2 Kings\",\n \"1 Chronicles\",\n \"2 Chronicles\",\n \"Ezra\",\n \"Nehemiah\",\n \"Esther (Hebrew)\",\n \"Job\",\n \"Psalms\",\n \"Proverbs\",\n \"Ecclesiastes\",\n \"Song of Songs\",\n \"Isaiah\",\n \"Jeremiah\",\n \"Lamentations\",\n \"Ezekiel\",\n \"Daniel (Hebrew)\",\n \"Hosea\",\n \"Joel\",\n \"Amos\",\n \"Obadiah\",\n \"Jonah\",\n \"Micah\",\n \"Nahum\",\n \"Habakkuk\",\n \"Zephaniah\",\n \"Haggai\",\n \"Zechariah\",\n \"Malachi\",\n \"Matthew\",\n \"Mark\",\n \"Luke\",\n \"John\",\n \"Acts\",\n \"Romans\",\n \"1 Corinthians\",\n \"2 Corinthians\",\n \"Galatians\",\n \"Ephesians\",\n \"Philippians\",\n \"Colossians\",\n \"1 Thessalonians\",\n \"2 Thessalonians\",\n \"1 Timothy\",\n \"2 Timothy\",\n \"Titus\",\n \"Philemon\",\n \"Hebrews\",\n \"James\",\n \"1 Peter\",\n \"2 Peter\",\n \"1 John\",\n \"2 John\",\n \"3 John\",\n \"Jude\",\n \"Revelation\",\n \"Tobit\",\n \"Judith\",\n \"Esther Greek\",\n \"Wisdom of Solomon\",\n \"Sirach (Ecclesiasticus)\",\n \"Baruch\",\n \"Letter of Jeremiah\",\n \"Song of 3 Young Men\",\n \"Susanna\",\n \"Bel and the Dragon\",\n \"1 Maccabees\",\n \"2 Maccabees\",\n \"3 Maccabees\",\n \"4 Maccabees\",\n \"1 Esdras (Greek)\",\n \"2 Esdras (Latin)\",\n \"Prayer of Manasseh\",\n \"Psalm 151\",\n \"Odes\",\n \"Psalms of Solomon\",\n // WARNING, if you change the spelling of the *obsolete* tag be sure to update\n // IsObsolete routine\n \"Joshua A. *obsolete*\",\n \"Judges B. *obsolete*\",\n \"Tobit S. *obsolete*\",\n \"Susanna Th. *obsolete*\",\n \"Daniel Th. *obsolete*\",\n \"Bel Th. *obsolete*\",\n \"Extra A\",\n \"Extra B\",\n \"Extra C\",\n \"Extra D\",\n \"Extra E\",\n \"Extra F\",\n \"Extra G\",\n \"Front Matter\",\n \"Back Matter\",\n \"Other Matter\",\n \"3 Ezra *obsolete*\",\n \"Apocalypse of Ezra\",\n \"5 Ezra (Latin Prologue)\",\n \"6 Ezra (Latin Epilogue)\",\n \"Introduction\",\n \"Concordance \",\n \"Glossary \",\n \"Topical Index\",\n \"Names Index\",\n \"Daniel Greek\",\n \"Psalms 152-155\",\n \"2 Baruch (Apocalypse)\",\n \"Letter of Baruch\",\n \"Jubilees\",\n \"Enoch\",\n \"1 Meqabyan\",\n \"2 Meqabyan\",\n \"3 Meqabyan\",\n \"Reproof (Proverbs 25-31)\",\n \"4 Baruch (Rest of Baruch)\",\n \"Laodiceans\"\n], S = K();\nfunction g(t, e = !0) {\n return e && (t = t.toUpperCase()), t in S ? S[t] : 0;\n}\nfunction k(t) {\n return g(t) > 0;\n}\nfunction x(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return e >= 40 && e <= 66;\n}\nfunction T(t) {\n return (typeof t == \"string\" ? g(t) : t) <= 39;\n}\nfunction X(t) {\n return t <= 66;\n}\nfunction V(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return w(e) && !X(e);\n}\nfunction* L() {\n for (let t = 1; t <= N.length; t++) yield t;\n}\nconst G = 1, A = N.length;\nfunction H() {\n return [\"XXA\", \"XXB\", \"XXC\", \"XXD\", \"XXE\", \"XXF\", \"XXG\"];\n}\nfunction C(t, e = \"***\") {\n const s = t - 1;\n return s < 0 || s >= N.length ? e : N[s];\n}\nfunction I(t) {\n return t <= 0 || t > A ? \"******\" : O[t - 1];\n}\nfunction y(t) {\n return I(g(t));\n}\nfunction w(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && !B.includes(e);\n}\nfunction q(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && B.includes(e);\n}\nfunction U(t) {\n return O[t - 1].includes(\"*obsolete*\");\n}\nfunction K() {\n const t = {};\n for (let e = 0; e < N.length; e++)\n t[N[e]] = e + 1;\n return t;\n}\nconst m = {\n allBookIds: N,\n nonCanonicalIds: B,\n bookIdToNumber: g,\n isBookIdValid: k,\n isBookNT: x,\n isBookOT: T,\n isBookOTNT: X,\n isBookDC: V,\n allBookNumbers: L,\n firstBook: G,\n lastBook: A,\n extraBooks: H,\n bookNumberToId: C,\n bookNumberToEnglishName: I,\n bookIdToEnglishName: y,\n isCanonical: w,\n isExtraMaterial: q,\n isObsolete: U\n};\nvar l = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = \"Unknown\", t[t.Original = 1] = \"Original\", t[t.Septuagint = 2] = \"Septuagint\", t[t.Vulgate = 3] = \"Vulgate\", t[t.English = 4] = \"English\", t[t.RussianProtestant = 5] = \"RussianProtestant\", t[t.RussianOrthodox = 6] = \"RussianOrthodox\", t))(l || {});\nconst h = class h {\n // private versInfo: Versification;\n constructor(e) {\n n(this, \"name\");\n n(this, \"fullPath\");\n n(this, \"isPresent\");\n n(this, \"hasVerseSegments\");\n n(this, \"isCustomized\");\n n(this, \"baseVersification\");\n n(this, \"scriptureBooks\");\n n(this, \"_type\");\n if (e == null)\n throw new Error(\"Argument undefined\");\n typeof e == \"string\" ? (this.name = e, this._type = l[e]) : (this._type = e, this.name = l[e]);\n }\n get type() {\n return this._type;\n }\n equals(e) {\n return !e.type || !this.type ? !1 : e.type === this.type;\n }\n};\nn(h, \"Original\", new h(l.Original)), n(h, \"Septuagint\", new h(l.Septuagint)), n(h, \"Vulgate\", new h(l.Vulgate)), n(h, \"English\", new h(l.English)), n(h, \"RussianProtestant\", new h(l.RussianProtestant)), n(h, \"RussianOrthodox\", new h(l.RussianOrthodox));\nlet c = h;\nfunction E(t, e) {\n const s = e[0];\n for (let r = 1; r < e.length; r++)\n t = t.split(e[r]).join(s);\n return t.split(s);\n}\nvar D = /* @__PURE__ */ ((t) => (t[t.Valid = 0] = \"Valid\", t[t.UnknownVersification = 1] = \"UnknownVersification\", t[t.OutOfRange = 2] = \"OutOfRange\", t[t.VerseOutOfOrder = 3] = \"VerseOutOfOrder\", t[t.VerseRepeated = 4] = \"VerseRepeated\", t))(D || {});\nconst i = class i {\n constructor(e, s, r, a) {\n /** Not yet implemented. */\n n(this, \"firstChapter\");\n /** Not yet implemented. */\n n(this, \"lastChapter\");\n /** Not yet implemented. */\n n(this, \"lastVerse\");\n /** Not yet implemented. */\n n(this, \"hasSegmentsDefined\");\n /** Not yet implemented. */\n n(this, \"text\");\n /** Not yet implemented. */\n n(this, \"BBBCCCVVVS\");\n /** Not yet implemented. */\n n(this, \"longHashCode\");\n /** The versification of the reference. */\n n(this, \"versification\");\n n(this, \"rtlMark\", \"‏\");\n n(this, \"_bookNum\", 0);\n n(this, \"_chapterNum\", 0);\n n(this, \"_verseNum\", 0);\n n(this, \"_verse\");\n if (r == null && a == null)\n if (e != null && typeof e == \"string\") {\n const o = e, u = s != null && s instanceof c ? s : void 0;\n this.setEmpty(u), this.parse(o);\n } else if (e != null && typeof e == \"number\") {\n const o = s != null && s instanceof c ? s : void 0;\n this.setEmpty(o), this._verseNum = e % i.chapterDigitShifter, this._chapterNum = Math.floor(\n e % i.bookDigitShifter / i.chapterDigitShifter\n ), this._bookNum = Math.floor(e / i.bookDigitShifter);\n } else if (s == null)\n if (e != null && e instanceof i) {\n const o = e;\n this._bookNum = o.bookNum, this._chapterNum = o.chapterNum, this._verseNum = o.verseNum, this._verse = o.verse, this.versification = o.versification;\n } else {\n if (e == null) return;\n const o = e instanceof c ? e : i.defaultVersification;\n this.setEmpty(o);\n }\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else if (e != null && s != null && r != null)\n if (typeof e == \"string\" && typeof s == \"string\" && typeof r == \"string\")\n this.setEmpty(a), this.updateInternal(e, s, r);\n else if (typeof e == \"number\" && typeof s == \"number\" && typeof r == \"number\")\n this._bookNum = e, this._chapterNum = s, this._verseNum = r, this.versification = a ?? i.defaultVersification;\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else\n throw new Error(\"VerseRef constructor not supported.\");\n }\n /**\n * Determines if the verse string is in a valid format (does not consider versification).\n */\n static isVerseParseable(e) {\n return e.length > 0 && \"0123456789\".includes(e[0]) && !e.endsWith(this.verseRangeSeparator) && !e.endsWith(this.verseSequenceIndicator);\n }\n /**\n * Tries to parse the specified string into a verse reference.\n * @param str - The string to attempt to parse.\n * @returns success: `true` if the specified string was successfully parsed, `false` otherwise.\n * @returns verseRef: The result of the parse if successful, or empty VerseRef if it failed\n */\n static tryParse(e) {\n let s;\n try {\n return s = new i(e), { success: !0, verseRef: s };\n } catch (r) {\n if (r instanceof v)\n return s = new i(), { success: !1, verseRef: s };\n throw r;\n }\n }\n /**\n * Gets the reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n * @param bookNum - Book number (this is 1-based, not an index).\n * @param chapterNum - Chapter number.\n * @param verseNum - Verse number.\n * @returns The reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n */\n static getBBBCCCVVV(e, s, r) {\n return e % i.bcvMaxValue * i.bookDigitShifter + (s >= 0 ? s % i.bcvMaxValue * i.chapterDigitShifter : 0) + (r >= 0 ? r % i.bcvMaxValue : 0);\n }\n /**\n * Deserializes a serialized VerseRef.\n * @param serializedVerseRef - Serialized VerseRef to create from.\n * @returns the deserialized VerseRef.\n */\n static fromJSON(e) {\n const { book: s, chapterNum: r, verseNum: a, verse: o, versificationStr: u } = e, f = o || a.toString();\n let d;\n return u && (d = new c(u)), s ? new i(s, r.toString(), f, d) : new i();\n }\n /**\n * Parses a verse string and gets the leading numeric portion as a number.\n * @param verseStr - verse string to parse\n * @returns true if the entire string could be parsed as a single, simple verse number (1-999);\n * false if the verse string represented a verse bridge, contained segment letters, or was invalid\n */\n static tryGetVerseNum(e) {\n let s;\n if (!e)\n return s = -1, { success: !0, vNum: s };\n s = 0;\n let r;\n for (let a = 0; a < e.length; a++) {\n if (r = e[a], r < \"0\" || r > \"9\")\n return a === 0 && (s = -1), { success: !1, vNum: s };\n if (s = s * 10 + +r - 0, s > i.bcvMaxValue)\n return s = -1, { success: !1, vNum: s };\n }\n return { success: !0, vNum: s };\n }\n /**\n * Checks to see if a VerseRef hasn't been set - all values are the default.\n */\n get isDefault() {\n return this.bookNum === 0 && this.chapterNum === 0 && this.verseNum === 0 && this.versification == null;\n }\n /**\n * Gets whether the verse contains multiple verses.\n */\n get hasMultiple() {\n return this._verse != null && (this._verse.includes(i.verseRangeSeparator) || this._verse.includes(i.verseSequenceIndicator));\n }\n /**\n * Gets or sets the book of the reference. Book is the 3-letter abbreviation in capital letters,\n * e.g. `'MAT'`.\n */\n get book() {\n return m.bookNumberToId(this.bookNum, \"\");\n }\n set book(e) {\n this.bookNum = m.bookIdToNumber(e);\n }\n /**\n * Gets or sets the chapter of the reference,. e.g. `'3'`.\n */\n get chapter() {\n return this.isDefault || this._chapterNum < 0 ? \"\" : this._chapterNum.toString();\n }\n set chapter(e) {\n const s = +e;\n this._chapterNum = Number.isInteger(s) ? s : -1;\n }\n /**\n * Gets or sets the verse of the reference, including range, segments, and sequences, e.g. `'4'`,\n * or `'4b-5a, 7'`.\n */\n get verse() {\n return this._verse != null ? this._verse : this.isDefault || this._verseNum < 0 ? \"\" : this._verseNum.toString();\n }\n set verse(e) {\n const { success: s, vNum: r } = i.tryGetVerseNum(e);\n this._verse = s ? void 0 : e.replace(this.rtlMark, \"\"), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = i.tryGetVerseNum(this._verse));\n }\n /**\n * Get or set Book based on book number, e.g. `42`.\n */\n get bookNum() {\n return this._bookNum;\n }\n set bookNum(e) {\n if (e <= 0 || e > m.lastBook)\n throw new v(\n \"BookNum must be greater than zero and less than or equal to last book\"\n );\n this._bookNum = e;\n }\n /**\n * Gets or sets the chapter number, e.g. `3`. `-1` if not valid.\n */\n get chapterNum() {\n return this._chapterNum;\n }\n set chapterNum(e) {\n this.chapterNum = e;\n }\n /**\n * Gets or sets verse start number, e.g. `4`. `-1` if not valid.\n */\n get verseNum() {\n return this._verseNum;\n }\n set verseNum(e) {\n this._verseNum = e;\n }\n /**\n * String representing the versification (should ONLY be used for serialization/deserialization).\n *\n * @remarks This is for backwards compatibility when ScrVers was an enumeration.\n */\n get versificationStr() {\n var e;\n return (e = this.versification) == null ? void 0 : e.name;\n }\n set versificationStr(e) {\n this.versification = this.versification != null ? new c(e) : void 0;\n }\n /**\n * Determines if the reference is valid.\n */\n get valid() {\n return this.validStatus === 0;\n }\n /**\n * Get the valid status for this reference.\n */\n get validStatus() {\n return this.validateVerse(i.verseRangeSeparators, i.verseSequenceIndicators);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits and the verse is 0.\n */\n get BBBCCC() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, 0);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits. If verse is not null\n * (i.e., this reference represents a complex reference with verse\n * segments or bridge) this cannot be used for an exact comparison.\n */\n get BBBCCCVVV() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum);\n }\n /**\n * Gets whether the verse is defined as an excluded verse in the versification.\n * Does not handle verse ranges.\n */\n // eslint-disable-next-line @typescript-eslint/class-literal-property-style\n get isExcluded() {\n return !1;\n }\n /**\n * Parses the reference in the specified string.\n * Optionally versification can follow reference as in GEN 3:11/4\n * Throw an exception if\n * - invalid book name\n * - chapter number is missing or not a number\n * - verse number is missing or does not start with a number\n * - versification is invalid\n * @param verseStr - string to parse e.g. 'MAT 3:11'\n */\n parse(e) {\n if (e = e.replace(this.rtlMark, \"\"), e.includes(\"/\")) {\n const o = e.split(\"/\");\n if (e = o[0], o.length > 1)\n try {\n const u = +o[1].trim();\n this.versification = new c(l[u]);\n } catch {\n throw new v(\"Invalid reference : \" + e);\n }\n }\n const s = e.trim().split(\" \");\n if (s.length !== 2)\n throw new v(\"Invalid reference : \" + e);\n const r = s[1].split(\":\"), a = +r[0];\n if (r.length !== 2 || m.bookIdToNumber(s[0]) === 0 || !Number.isInteger(a) || a < 0 || !i.isVerseParseable(r[1]))\n throw new v(\"Invalid reference : \" + e);\n this.updateInternal(s[0], r[0], r[1]);\n }\n /**\n * Simplifies this verse ref so that it has no bridging of verses or\n * verse segments like `'1a'`.\n */\n simplify() {\n this._verse = void 0;\n }\n /**\n * Makes a clone of the reference.\n *\n * @returns The cloned VerseRef.\n */\n clone() {\n return new i(this);\n }\n toString() {\n const e = this.book;\n return e === \"\" ? \"\" : `${e} ${this.chapter}:${this.verse}`;\n }\n toJSON() {\n let e = this.verse;\n return (e === \"\" || e === this.verseNum.toString()) && (e = void 0), {\n book: this.book,\n chapterNum: this.chapterNum,\n verseNum: this.verseNum,\n verse: e,\n versificationStr: this.versificationStr\n };\n }\n /**\n * Compares this `VerseRef` with supplied one.\n * @param verseRef - object to compare this one to.\n * @returns `true` if this `VerseRef` is equal to the supplied one, `false` otherwise.\n */\n equals(e) {\n return e instanceof i ? e._bookNum === this._bookNum && e._chapterNum === this._chapterNum && e._verseNum === this._verseNum && e.verse === this.verse && (e.versification == null && this.versification == null || e.versification != null && this.versification != null && e.versification.equals(this.versification)) : !1;\n }\n /**\n * Enumerate all individual verses contained in a VerseRef.\n * Verse ranges are indicated by \"-\" and consecutive verses by \",\"s.\n * Examples:\n * GEN 1:2 returns GEN 1:2\n * GEN 1:1a-3b,5 returns GEN 1:1a, GEN 1:2, GEN 1:3b, GEN 1:5\n * GEN 1:2a-2c returns //! ??????\n *\n * @param specifiedVersesOnly - if set to true return only verses that are\n * explicitly specified only, not verses within a range. Defaults to `false`.\n * @param verseRangeSeparators - Verse range separators.\n * Defaults to `VerseRef.verseRangeSeparators`.\n * @param verseSequenceSeparators - Verse sequence separators.\n * Defaults to `VerseRef.verseSequenceIndicators`.\n * @returns An array of all single verse references in this VerseRef.\n */\n allVerses(e = !1, s = i.verseRangeSeparators, r = i.verseSequenceIndicators) {\n if (this._verse == null || this.chapterNum <= 0)\n return [this.clone()];\n const a = [], o = E(this._verse, r);\n for (const u of o.map((f) => E(f, s))) {\n const f = this.clone();\n f.verse = u[0];\n const d = f.verseNum;\n if (a.push(f), u.length > 1) {\n const b = this.clone();\n if (b.verse = u[1], !e)\n for (let p = d + 1; p < b.verseNum; p++) {\n const J = new i(\n this._bookNum,\n this._chapterNum,\n p,\n this.versification\n );\n this.isExcluded || a.push(J);\n }\n a.push(b);\n }\n }\n return a;\n }\n /**\n * Validates a verse number using the supplied separators rather than the defaults.\n */\n validateVerse(e, s) {\n if (!this.verse)\n return this.internalValid;\n let r = 0;\n for (const a of this.allVerses(!0, e, s)) {\n const o = a.internalValid;\n if (o !== 0)\n return o;\n const u = a.BBBCCCVVV;\n if (r > u)\n return 3;\n if (r === u)\n return 4;\n r = u;\n }\n return 0;\n }\n /**\n * Gets whether a single verse reference is valid.\n */\n get internalValid() {\n return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > m.lastBook ? 2 : (m.isCanonical(this._bookNum), 0);\n }\n setEmpty(e = i.defaultVersification) {\n this._bookNum = 0, this._chapterNum = -1, this._verse = void 0, this.versification = e;\n }\n updateInternal(e, s, r) {\n this.bookNum = m.bookIdToNumber(e), this.chapter = s, this.verse = r;\n }\n};\nn(i, \"defaultVersification\", c.English), n(i, \"verseRangeSeparator\", \"-\"), n(i, \"verseSequenceIndicator\", \",\"), n(i, \"verseRangeSeparators\", [i.verseRangeSeparator]), n(i, \"verseSequenceIndicators\", [i.verseSequenceIndicator]), n(i, \"chapterDigitShifter\", 1e3), n(i, \"bookDigitShifter\", i.chapterDigitShifter * i.chapterDigitShifter), n(i, \"bcvMaxValue\", i.chapterDigitShifter - 1), /**\n * The valid status of the VerseRef.\n */\nn(i, \"ValidStatusType\", D);\nlet M = i;\nclass v extends Error {\n}\nexport {\n _ as BookSet,\n m as Canon,\n c as ScrVers,\n l as ScrVersType,\n M as VerseRef,\n v as VerseRefException\n};\n//# sourceMappingURL=index.es.js.map\n","import { type ClassValue, clsx } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\nconst twMergeCustom = extendTailwindMerge({prefix: 'pr-'});\n\n// shadcn/ui uses this export in its boilerplate code\n// eslint-disable-next-line import/prefer-default-export\nexport function cn(...inputs: ClassValue[]) {\n return twMergeCustom(clsx(inputs));\n}\n","import React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\n\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nexport const DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nexport const DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nexport type DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n className?: string;\n};\n\nexport type DropdownMenuContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n className?: string;\n sideOffset?: number;\n};\n\nexport type DropdownMenuItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n className?: string;\n checked?: boolean;\n};\n\nexport type DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.RadioItem\n> & {\n className?: string;\n};\n\nexport type DropdownMenuLabelProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n className?: string;\n};\n\nexport type DropdownMenuShortcutProps = React.HTMLAttributes & {\n className?: string;\n};\n\nexport const DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubTriggerProps\n>(({ className, inset, children, ...props }, ref) => (\n \n {children}\n \n \n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nexport const DropdownMenuSubContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubContentProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nexport const DropdownMenuContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuContentProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n \n \n \n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport const DropdownMenuItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuItemProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nexport const DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuCheckboxItemProps\n>(({ className, children, checked, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nexport const DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuRadioItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nexport const DropdownMenuLabel = React.forwardRef<\n React.ElementRef,\n DropdownMenuLabelProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nexport const DropdownMenuSeparator = React.forwardRef<\n React.ElementRef,\n DropdownMenuSeparatorProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nexport function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps) {\n return (\n \n );\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport interface InputProps extends React.InputHTMLAttributes {}\n\nexport const Input = React.forwardRef(\n ({ className, type, ...props }, ref) => {\n return (\n \n );\n },\n);\nInput.displayName = 'Input';\n","import { FocusEventHandler, forwardRef, KeyboardEvent, MouseEventHandler } from 'react';\nimport { History } from 'lucide-react';\nimport { Input as ShadInput } from '@/components/shadcn-ui/input';\n\nexport type BookChapterInputProps = {\n handleSearch: (searchString: string) => void;\n handleKeyDown: (event: KeyboardEvent) => void;\n handleOnClick: MouseEventHandler;\n handleSubmit: () => void;\n onFocus?: FocusEventHandler;\n value: string;\n placeholder: string;\n};\n\n// Shadcn Input sets type to \"button\"- HAVE to prop spread before setting type\nconst BookChapterInput = forwardRef(\n (\n { handleSearch, handleKeyDown, handleOnClick, handleSubmit, ...props }: BookChapterInputProps,\n ref,\n ) => {\n return (\n
\n handleSearch(event.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n handleSubmit();\n }\n handleKeyDown(e);\n }}\n onClick={handleOnClick}\n ref={ref}\n />\n {\n // eslint-disable-next-line no-console\n console.log('back in history');\n }}\n />\n
\n );\n },\n);\n\nexport default BookChapterInput;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type ChapterSelectProps = {\n /**\n * Callback to run when a chapter div is selected\n *\n * @param chapterNumber Number of the chapter that has been selected\n */\n handleSelectChapter: (chapterNumber: number) => void;\n /** The highest chapter number in the book (of course equal to number of chapters in the book) */\n endChapter: number;\n /** The chapter number that is currently selected */\n activeChapter: number;\n /** The chapter number that is currently highlighted using keyboard or mouse navigation */\n highlightedChapter: number;\n /**\n * Callback to run when a chapter is highlighted by the user\n *\n * @param chapterNumber The chapter that is highlighted\n */\n handleHighlightedChapter: (chapterNumber: number) => void;\n};\n\nfunction ChapterSelect({\n handleSelectChapter,\n endChapter,\n activeChapter,\n highlightedChapter,\n handleHighlightedChapter,\n}: ChapterSelectProps) {\n const chapters = Array.from({ length: endChapter }, (_, i) => i + 1);\n\n const handleMouse = useCallback(\n (chapterNumber: number) => {\n handleHighlightedChapter(chapterNumber);\n },\n [handleHighlightedChapter],\n );\n\n return (\n
\n {chapters.map((chapter) => (\n {\n event.preventDefault();\n event.stopPropagation();\n handleSelectChapter(chapter);\n }}\n role=\"button\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n handleSelectChapter(chapter);\n }\n }}\n tabIndex={0}\n onMouseMove={() => handleMouse(chapter)}\n >\n {chapter}\n
\n ))}\n
\n );\n}\n\nexport default ChapterSelect;\n","import { Canon } from '@sillsdev/scripture';\nimport { PropsWithChildren, KeyboardEvent, forwardRef } from 'react';\nimport { DropdownMenuItem as ShadDropdownMenuItem } from '@/components/shadcn-ui/dropdown-menu';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport type BookType = 'OT' | 'NT' | 'DC';\n\ntype BookMenuItemProps = PropsWithChildren<{\n /** String id of book */\n bookId: string;\n /** Callback to run when a book menu item is selected */\n handleSelectBook: () => void;\n /** Indicates if this menu item is currently selected */\n isSelected: boolean;\n /** Function that is called upon highlighting a book in the dropdown menu */\n handleHighlightBook: () => void;\n /**\n * Function that is called on pressing a key\n *\n * @param event Event that contains information about the key stroke\n */\n handleKeyDown: (event: KeyboardEvent) => void;\n /**\n * Type of book associated with this menu item, coordinates color labels ? Mock up has the labels\n * coordinated to genre\n */\n bookType: BookType;\n}>;\n\nconst BookMenuItem = forwardRef(\n (\n {\n bookId,\n handleSelectBook,\n isSelected,\n handleHighlightBook,\n handleKeyDown,\n bookType,\n children,\n }: BookMenuItemProps,\n ref,\n ) => {\n return (\n {\n // preventDefault() here prevents the entire dropdown menu from closing when selecting this item\n event.preventDefault();\n handleSelectBook();\n }}\n onKeyDown={(event: KeyboardEvent) => {\n handleKeyDown(event);\n }}\n onFocus={handleHighlightBook}\n onMouseMove={handleHighlightBook}\n >\n \n {Canon.bookIdToEnglishName(bookId)}\n \n {isSelected &&
{children}
}\n \n );\n },\n);\n\nexport default BookMenuItem;\n","import { DropdownMenuLabel as ShadDropdownMenuLabel } from '@/components/shadcn-ui/dropdown-menu';\nimport { Bookmark, Clock, ArrowDownWideNarrow } from 'lucide-react';\n\nexport type GoToMenuItemProps = {\n handleSort: () => void;\n handleLocationHistory: () => void;\n handleBookmarks: () => void;\n};\n\nfunction GoToMenuItem({ handleSort, handleLocationHistory, handleBookmarks }: GoToMenuItemProps) {\n return (\n \n

Go To

\n
\n \n \n \n
\n
\n );\n}\n\nexport default GoToMenuItem;\n","import {\n KeyboardEvent as ReactKeyboardEvent,\n useCallback,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\nimport { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference, getChaptersForBook } from 'platform-bible-utils';\nimport {\n DropdownMenuTrigger as ShadDropdownMenuTrigger,\n DropdownMenu as ShadDropdownMenu,\n DropdownMenuContent as ShadDropdownMenuContent,\n DropdownMenuLabel as ShadDropdownMenuLabel,\n DropdownMenuSeparator as ShadDropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport BookChapterInput from '@/components/advanced-components/book-chapter-control/book-chapter-input.component';\nimport ChapterSelect from '@/components/advanced-components/book-chapter-control/chapter-select.component';\nimport BookMenuItem, {\n BookType,\n} from '@/components/advanced-components/book-chapter-control/book-menu-item.component';\nimport GoToMenuItem from './go-to-menu-item.component';\n\ntype BookTypeLabels = {\n [bookType in BookType]: string;\n};\ntype BookChapterControlProps = {\n scrRef: ScriptureReference;\n handleSubmit: (scrRef: ScriptureReference) => void;\n};\n\nconst ALL_BOOK_IDS = Canon.allBookIds;\nconst BOOK_TYPE_LABELS: BookTypeLabels = {\n OT: 'Old Testament',\n NT: 'New Testament',\n DC: 'Deuterocanon',\n};\nconst BOOK_TYPE_ARRAY: BookType[] = ['OT', 'NT', 'DC'];\n// This is the height of three menu items to offset scrolling to the selected menu item\n// If you use menuItemRef.clientHeight- includes height of chapter div which is too big\nconst SCROLL_OFFSET = 32 + 32 + 32;\nconst SEARCH_QUERY_FORMATS = [\n /^(\\w+)$/i, // Matches a single word (book name or id)\n /^(\\w+)(?:\\s(\\d+))$/i, // Matches a word followed by a chapter number\n /^(\\w+)(?:\\s(\\d+):(\\d+))$/i, // Matches a word followed by a chapter and verse number\n];\nconst fetchGroupedBooks = (bookType: BookType) => {\n const groupedBooks = {\n OT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookOT(bookId)),\n NT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookNT(bookId)),\n DC: ALL_BOOK_IDS.filter((bookId) => Canon.isBookDC(bookId)),\n };\n return groupedBooks[bookType];\n};\nconst fetchEndChapter = (bookId: string) => {\n // getChaptersForBook returns -1 if not found in scrBookData\n // scrBookData only includes OT and NT, so all DC will return -1\n return getChaptersForBook(Canon.bookIdToNumber(bookId));\n};\n\n/**\n * Gets all of the English names from book ids\n *\n * @returns String[]\n */\nfunction getAllEnglishNames(): string[] {\n const allEnglishNames = ALL_BOOK_IDS.map((bookId) => {\n return Canon.bookIdToEnglishName(bookId);\n });\n return allEnglishNames;\n}\n\n/**\n * Determines if bookName is in allEnglishNames\n *\n * @param bookName Book English name\n * @returns True if bookName is included, false otherwise\n */\nfunction isValidBookEnglishName(bookName: string): boolean {\n return getAllEnglishNames().includes(bookName);\n}\n\n/**\n * Gets a bookId from given English name\n *\n * @param bookName Book English name\n * @returns BookId of provided bookName, undefined otherwise\n */\nfunction getBookIdFromEnglishName(bookName: string): string | undefined {\n // Convert bookName to lowercase and then capitalize the first letter\n const formattedBookName = bookName.toLowerCase().replace(/^\\w/, (c) => c.toUpperCase());\n\n if (isValidBookEnglishName(formattedBookName)) {\n const matchingBookId = ALL_BOOK_IDS.find((bookId) => {\n return Canon.bookIdToEnglishName(bookId) === formattedBookName;\n });\n return matchingBookId;\n }\n\n return undefined;\n}\n\nfunction BookChapterControl({ scrRef, handleSubmit }: BookChapterControlProps) {\n const [searchQuery, setSearchQuery] = useState('');\n const [selectedBookId, setSelectedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [highlightedChapter, setHighlightedChapter] = useState(scrRef.chapterNum ?? 0);\n const [highlightedBookId, setHighlightedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [isContentOpen, setIsContentOpen] = useState(false);\n const [isContentOpenDelayed, setIsContentOpenDelayed] = useState(isContentOpen);\n\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const inputRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const contentRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const menuItemRef = useRef(undefined!);\n\n const fetchFilteredBooks = useCallback(\n (bookType: BookType) => {\n return fetchGroupedBooks(bookType).filter((bookId: string) => {\n const englishNameLowerCase = Canon.bookIdToEnglishName(bookId).toLowerCase();\n const normalizedQuery = searchQuery.replace(/[^a-zA-Z]/g, '').toLowerCase();\n return (\n englishNameLowerCase.includes(normalizedQuery) || // Match book name\n bookId.toLowerCase().includes(normalizedQuery) // Match book ID\n );\n });\n },\n [searchQuery],\n );\n\n const handleSearchInput = (searchString: string) => {\n setSearchQuery(searchString);\n };\n\n /**\n * Whether to prevent radix's logic from closing the dropdown. This is important because radix\n * tries to close the dropdown when the input first focuses, and we don't want it to do that. But\n * we don't want to prevent the dropdown from closing when we click away from the input, so we\n * don't want to just keep it open if the input is focused\n */\n const shouldPreventAutoClosing = useRef(false);\n\n const controlMenuState = useCallback((open: boolean) => {\n if (shouldPreventAutoClosing.current) {\n shouldPreventAutoClosing.current = false;\n return;\n }\n setIsContentOpen(open);\n }, []);\n\n const updateReference = useCallback(\n (bookId: string, shouldClose: boolean, chapter?: number, verse?: number) => {\n setHighlightedChapter(\n Canon.bookNumberToId(scrRef.bookNum) !== bookId ? 1 : scrRef.chapterNum,\n );\n\n if (shouldClose || fetchEndChapter(bookId) === -1) {\n handleSubmit({\n bookNum: Canon.bookIdToNumber(bookId),\n chapterNum: chapter || 1,\n verseNum: verse || 1,\n });\n\n setIsContentOpen(false);\n setSearchQuery('');\n return;\n }\n\n setSelectedBookId(selectedBookId !== bookId ? bookId : '');\n setIsContentOpen(!shouldClose);\n },\n [handleSubmit, scrRef.bookNum, scrRef.chapterNum, selectedBookId],\n );\n\n const handleSelectChapter = (chapterNumber: number) => {\n if (chapterNumber <= 0 || chapterNumber > fetchEndChapter(selectedBookId)) {\n return;\n }\n updateReference(selectedBookId, true, chapterNumber);\n };\n\n const handleInputSubmit = useCallback(() => {\n SEARCH_QUERY_FORMATS.forEach((format) => {\n const matches = searchQuery.match(format);\n if (matches) {\n // Book should be a bookId or an english name\n const [book, chapter = undefined, verse = undefined] = matches.slice(1);\n const englishName = getBookIdFromEnglishName(book);\n\n if (Canon.isBookIdValid(book) || englishName) {\n updateReference(\n englishName ?? book,\n true,\n chapter ? parseInt(chapter, 10) : 1,\n verse ? parseInt(verse, 10) : 1,\n );\n }\n }\n });\n }, [updateReference, searchQuery]);\n\n const handleKeyDownInput = useCallback(\n (event: ReactKeyboardEvent) => {\n if (!isContentOpen) {\n setIsContentOpen(true);\n } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (\n typeof menuItemRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n menuItemRef.current !== null\n ) {\n menuItemRef.current.focus();\n } else if (\n typeof contentRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n contentRef.current !== null\n ) {\n contentRef.current.focus();\n }\n event.preventDefault();\n }\n },\n [isContentOpen],\n );\n\n const handleKeyDownContent = (event: ReactKeyboardEvent) => {\n // When the dropdown menu has focus, key strokes should give focus to the input component,\n // unless they're navigation keys (arrows and enter)\n const { key } = event;\n if (\n key === 'ArrowRight' ||\n key === 'ArrowLeft' ||\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter'\n ) {\n return;\n }\n\n inputRef.current.dispatchEvent(new KeyboardEvent('keydown', { key }));\n inputRef.current.focus();\n };\n\n const handleKeyDownMenuItem = (event: ReactKeyboardEvent) => {\n const { key } = event;\n if (highlightedBookId === selectedBookId) {\n if (key === 'Enter') {\n event.preventDefault();\n updateReference(selectedBookId, true, highlightedChapter);\n return;\n }\n\n let chapterOffSet = 0;\n if (key === 'ArrowRight') {\n if (highlightedChapter < fetchEndChapter(highlightedBookId)) {\n chapterOffSet = 1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowLeft') {\n if (highlightedChapter > 1) {\n chapterOffSet = -1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowDown') {\n chapterOffSet = 6;\n } else if (key === 'ArrowUp') {\n chapterOffSet = -6;\n }\n if (\n highlightedChapter + chapterOffSet <= 0 ||\n highlightedChapter + chapterOffSet > fetchEndChapter(highlightedBookId)\n ) {\n setHighlightedChapter(0);\n } else if (chapterOffSet !== 0) {\n setHighlightedChapter(highlightedChapter + chapterOffSet);\n event.preventDefault();\n }\n }\n };\n\n useEffect(() => {\n if (selectedBookId === highlightedBookId) {\n if (selectedBookId === Canon.bookNumberToId(scrRef.bookNum)) {\n setHighlightedChapter(scrRef.chapterNum);\n } else {\n setHighlightedChapter(1);\n }\n } else {\n setHighlightedChapter(0);\n }\n }, [highlightedBookId, scrRef.bookNum, scrRef.chapterNum, selectedBookId]);\n\n // The purpose of these useLayoutEffects and timeout is to delay the scroll just\n // enough so that the refs are defined and available when they are used after the timeout\n useLayoutEffect(() => {\n setIsContentOpenDelayed(isContentOpen);\n }, [isContentOpen]);\n\n useLayoutEffect(() => {\n const scrollTimeout = setTimeout(() => {\n if (isContentOpenDelayed && contentRef.current && menuItemRef.current) {\n const menuItemOffsetTop = menuItemRef.current.offsetTop;\n const scrollPosition = menuItemOffsetTop - SCROLL_OFFSET;\n contentRef.current.scrollTo({ top: scrollPosition, behavior: 'instant' });\n }\n }, 10);\n return () => {\n clearTimeout(scrollTimeout);\n };\n }, [isContentOpenDelayed]);\n\n return (\n
\n \n \n {\n setSelectedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedChapter(scrRef.chapterNum > 0 ? scrRef.chapterNum : 0);\n setIsContentOpen(true);\n inputRef.current.focus();\n }}\n onFocus={() => {\n // Radix thinks we want to close because the input is being focused. Prevent that\n shouldPreventAutoClosing.current = true;\n }}\n handleSubmit={handleInputSubmit}\n placeholder={`${Canon.bookNumberToEnglishName(scrRef.bookNum)} ${scrRef.chapterNum}:${scrRef.verseNum}`}\n />\n \n \n console.log('sorting')}\n handleLocationHistory={() => console.log('location history')}\n handleBookmarks={() => console.log('bookmarks')}\n />\n {BOOK_TYPE_ARRAY.map(\n (bookType, bookTypeIndex) =>\n fetchFilteredBooks(bookType).length > 0 && (\n
\n \n {BOOK_TYPE_LABELS[bookType]}\n \n\n {fetchFilteredBooks(bookType).map((bookId) => (\n
\n updateReference(bookId, false)}\n isSelected={selectedBookId === bookId}\n handleHighlightBook={() => setHighlightedBookId(bookId)}\n handleKeyDown={handleKeyDownMenuItem}\n bookType={bookType}\n ref={(element: HTMLDivElement) => {\n if (selectedBookId === bookId) menuItemRef.current = element;\n }}\n >\n {\n setHighlightedChapter(chapterNumber);\n }}\n />\n \n
\n ))}\n {BOOK_TYPE_ARRAY.length - 1 !== bookTypeIndex ? (\n \n ) : undefined}\n
\n ),\n )}\n \n
\n
\n );\n}\n\nexport default BookChapterControl;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Table = React.forwardRef>(\n ({ className, ...props }, ref) => (\n
\n \n
\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n tr]:last:pr-border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const buttonVariants = cva(\n 'pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-md pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50',\n {\n variants: {\n variant: {\n default: 'pr-bg-primary pr-text-primary-foreground hover:pr-bg-primary/90',\n destructive: 'pr-bg-destructive pr-text-destructive-foreground hover:pr-bg-destructive/90',\n outline:\n 'pr-border pr-border-input pr-bg-background hover:pr-bg-accent hover:pr-text-accent-foreground',\n secondary: 'pr-bg-secondary pr-text-secondary-foreground hover:pr-bg-secondary/80',\n ghost: 'hover:pr-bg-accent hover:pr-text-accent-foreground',\n link: 'pr-text-primary pr-underline-offset-4 hover:pr-underline',\n },\n size: {\n default: 'pr-h-10 pr-px-4 pr-py-2',\n sm: 'pr-h-9 pr-rounded-md pr-px-3',\n lg: 'pr-h-11 pr-rounded-md pr-px-8',\n icon: 'pr-h-10 pr-w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n return (\n \n );\n },\n);\nButton.displayName = 'Button';\n","import React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n span]:pr-line-clamp-1',\n className,\n )}\n {...props}\n >\n {children}\n \n \n \n \n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = 'popper', ...props }, ref) => (\n \n \n \n \n {children}\n \n \n \n \n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n\n {children}\n \n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n","import { ChevronLeftIcon, ChevronRightIcon, ArrowLeftIcon, ArrowRightIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\n\ninterface DataTablePaginationProps {\n table: Table;\n}\n\nfunction DataTablePagination({ table }: DataTablePaginationProps) {\n return (\n
\n
\n
\n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected\n
\n
\n

Rows per page

\n {\n table.setPageSize(Number(value));\n }}\n >\n \n \n \n \n {[10, 20, 30, 40, 50].map((pageSize) => (\n \n {pageSize}\n \n ))}\n \n \n
\n
\n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n
\n
\n table.setPageIndex(0)}\n disabled={!table.getCanPreviousPage()}\n >\n Go to first page\n \n \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Go to previous page\n \n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Go to next page\n \n \n table.setPageIndex(table.getPageCount() - 1)}\n disabled={!table.getCanNextPage()}\n >\n Go to last page\n \n \n
\n
\n
\n );\n}\n\nexport default DataTablePagination;\n","import { DropdownMenuTrigger } from '@radix-ui/react-dropdown-menu';\nimport { FilterIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\n\ninterface DataTableViewOptionsProps {\n table: Table;\n}\n\nfunction DataTableViewOptions({ table }: DataTableViewOptionsProps) {\n return (\n \n \n \n \n \n Toggle columns\n \n {table\n .getAllColumns()\n .filter((column) => column.getCanHide())\n .map((column) => {\n return (\n column.toggleVisibility(!!value)}\n >\n {column.id}\n \n );\n })}\n \n \n );\n}\n\nexport default DataTableViewOptions;\n","import { useState } from 'react';\n\nimport {\n ColumnDef,\n ColumnFiltersState,\n Row,\n SortingState,\n VisibilityState,\n flexRender,\n getCoreRowModel,\n getFilteredRowModel,\n getPaginationRowModel,\n getSortedRowModel,\n useReactTable,\n Table as tsTable,\n} from '@tanstack/react-table';\n\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { Button } from '@/components/shadcn-ui/button';\nimport DataTablePagination from './data-table-pagination.component';\nimport DataTableViewOptions from './data-table-column-toggle.component';\n\ninterface DataTableProps {\n columns: ColumnDef[];\n data: TData[];\n enablePagination?: boolean;\n showPaginationControls?: boolean;\n showColumnVisibilityControls?: boolean;\n onRowClickHandler?: (row: Row, table: tsTable) => void;\n}\n\nfunction DataTable({\n columns,\n data,\n enablePagination = false,\n showPaginationControls = false,\n showColumnVisibilityControls = false,\n onRowClickHandler = () => {},\n}: DataTableProps) {\n const [sorting, setSorting] = useState([]);\n const [columnFilters, setColumnFilters] = useState([]);\n const [columnVisibility, setColumnVisibility] = useState({});\n const [rowSelection, setRowSelection] = useState({});\n\n const table = useReactTable({\n data,\n columns,\n getCoreRowModel: getCoreRowModel(),\n ...(enablePagination && { getPaginationRowModel: getPaginationRowModel() }),\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n onColumnFiltersChange: setColumnFilters,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnVisibilityChange: setColumnVisibility,\n onRowSelectionChange: setRowSelection,\n state: {\n sorting,\n columnFilters,\n columnVisibility,\n rowSelection,\n },\n });\n\n return (\n
\n {showColumnVisibilityControls && }\n
\n \n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers.map((header) => {\n return (\n \n {header.isPlaceholder\n ? undefined\n : flexRender(header.column.columnDef.header, header.getContext())}\n \n );\n })}\n \n ))}\n \n \n {table.getRowModel().rows?.length ? (\n table.getRowModel().rows.map((row) => (\n onRowClickHandler(row, table)}\n key={row.id}\n data-state={row.getIsSelected() && 'selected'}\n >\n {row.getVisibleCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))\n ) : (\n \n \n No results.\n \n \n )}\n \n
\n
\n {enablePagination && (\n
\n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Previous\n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Next\n \n
\n )}\n {enablePagination && showPaginationControls && }\n
\n );\n}\n\nexport default DataTable;\n","import {\n Autocomplete as MuiComboBox,\n AutocompleteChangeDetails,\n AutocompleteChangeReason,\n TextField as MuiTextField,\n AutocompleteValue,\n} from '@mui/material';\nimport { FocusEventHandler, SyntheticEvent } from 'react';\nimport '@/components/combo-box.component.css';\n\nexport type ComboBoxLabelOption = { label: string };\nexport type ComboBoxOption = string | number | ComboBoxLabelOption;\nexport type ComboBoxValue = AutocompleteValue;\nexport type ComboBoxChangeDetails = AutocompleteChangeDetails;\nexport type ComboBoxChangeReason = AutocompleteChangeReason;\n\nexport type ComboBoxProps = {\n /** Optional unique identifier */\n id?: string;\n /** Text label title for combobox */\n title?: string;\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * If `true`, the component can be cleared, and will have a button to do so\n *\n * @default true\n */\n isClearable?: boolean;\n /**\n * True when (input related to) switch is erroneous\n *\n * @default false\n */\n hasError?: boolean;\n /**\n * If `true`, the input will take up the full width of its container.\n *\n * @default false\n */\n isFullWidth?: boolean;\n /** Width of the combobox in pixels. Setting this prop overrides the `isFullWidth` prop */\n width?: number;\n /** List of available options for the dropdown menu */\n options?: readonly T[];\n /** Additional css classes to help with unique styling of the combo box */\n className?: string;\n /**\n * The selected value that the combo box currently holds. Must be shallow equal to one of the\n * options entries.\n */\n value?: T;\n /** Triggers when content of textfield is changed */\n onChange?: (\n event: SyntheticEvent,\n value: ComboBoxValue,\n reason?: ComboBoxChangeReason,\n details?: ComboBoxChangeDetails | undefined,\n ) => void;\n /** Triggers when textfield gets focus */\n onFocus?: FocusEventHandler; // Storybook crashes when giving the combo box focus\n /** Triggers when textfield loses focus */\n onBlur?: FocusEventHandler;\n /** Used to determine the string value for a given option. */\n getOptionLabel?: (option: ComboBoxOption) => string;\n};\n\n/**\n * Dropdown selector displaying various options from which to choose\n *\n * Thanks to MUI for heavy inspiration and documentation\n * https://mui.com/material-ui/getting-started/overview/\n */\nfunction ComboBox({\n id,\n title,\n isDisabled = false,\n isClearable = true,\n hasError = false,\n isFullWidth = false,\n width,\n options = [],\n className,\n value,\n onChange,\n onFocus,\n onBlur,\n getOptionLabel,\n}: ComboBoxProps) {\n return (\n \n id={id}\n disablePortal\n disabled={isDisabled}\n disableClearable={!isClearable}\n fullWidth={isFullWidth}\n options={options}\n className={`papi-combo-box ${hasError ? 'error' : ''} ${className ?? ''}`}\n value={value}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n getOptionLabel={getOptionLabel}\n renderInput={(props) => (\n \n )}\n />\n );\n}\n\nexport default ComboBox;\n","import { SyntheticEvent, useEffect, useState } from 'react';\nimport { FormControlLabel } from '@mui/material';\nimport ComboBox from '@/components/combo-box.component';\n\nexport type ChapterRangeSelectorProps = {\n handleSelectStartChapter: (chapter: number) => void;\n handleSelectEndChapter: (chapter: number) => void;\n isDisabled?: boolean;\n chapterCount: number;\n};\n\nexport default function ChapterRangeSelector({\n handleSelectStartChapter,\n handleSelectEndChapter,\n isDisabled = false,\n chapterCount,\n}: ChapterRangeSelectorProps) {\n const [startChapter, setStartChapter] = useState(1);\n const [endChapter, setEndChapter] = useState(chapterCount);\n const [chapterOptions, setChapterOptions] = useState(\n Array.from({ length: chapterCount }, (_, i) => i + 1),\n );\n\n useEffect(() => {\n setStartChapter(1);\n handleSelectStartChapter(1);\n setEndChapter(chapterCount);\n handleSelectEndChapter(chapterCount);\n setChapterOptions(Array.from({ length: chapterCount }, (_, i) => i + 1));\n }, [chapterCount, handleSelectEndChapter, handleSelectStartChapter]);\n\n const onChangeStartChapter = (_event: SyntheticEvent, value: number) => {\n setStartChapter(value);\n handleSelectStartChapter(value);\n if (value > endChapter) {\n setEndChapter(value);\n handleSelectEndChapter(value);\n }\n };\n\n const onChangeEndChapter = (_event: SyntheticEvent, value: number) => {\n setEndChapter(value);\n handleSelectEndChapter(value);\n if (value < startChapter) {\n setStartChapter(value);\n handleSelectStartChapter(value);\n }\n };\n\n return (\n <>\n onChangeStartChapter(e, value as number)}\n className=\"book-selection-chapter\"\n key=\"start chapter\"\n isClearable={false}\n options={chapterOptions}\n getOptionLabel={(option) => option.toString()}\n value={startChapter}\n isDisabled={isDisabled}\n />\n }\n label=\"Chapters\"\n labelPlacement=\"start\"\n />\n onChangeEndChapter(e, value as number)}\n className=\"book-selection-chapter\"\n key=\"end chapter\"\n isClearable={false}\n options={chapterOptions}\n getOptionLabel={(option) => option.toString()}\n value={endChapter}\n isDisabled={isDisabled}\n />\n }\n label=\"to\"\n labelPlacement=\"start\"\n />\n \n );\n}\n","enum LabelPosition {\n After = 'after',\n Before = 'before',\n Above = 'above',\n Below = 'below',\n}\n\nexport default LabelPosition;\n","import { FormLabel, Checkbox as MuiCheckbox } from '@mui/material';\nimport { ChangeEvent } from 'react';\nimport '@/components/checkbox.component.css';\nimport LabelPosition from '@/components/label-position.model';\n\nexport type CheckboxProps = {\n /** Optional unique identifier */\n id?: string;\n /** If `true`, the component is checked. */\n isChecked?: boolean;\n /**\n * If specified, the label that will appear associated with the checkbox.\n *\n * @default '' (no label will be shown)\n */\n labelText?: string;\n /**\n * Indicates the position of the label relative to the checkbox.\n *\n * @default 'after'\n */\n labelPosition?: LabelPosition;\n /**\n * If `true`, the component is in the indeterminate state.\n *\n * @default false\n */\n isIndeterminate?: boolean;\n /** If `true`, the component is checked by default. */\n isDefaultChecked?: boolean;\n /**\n * Enabled status of switch\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * True when (input related to) switch is erroneous\n *\n * @default false\n */\n hasError?: boolean;\n /** Additional css classes to help with unique styling of the switch */\n className?: string;\n /**\n * Callback fired when the state is changed.\n *\n * @param event The event source of the callback. You can pull out the new value by accessing\n * event.target.value (string). You can pull out the new checked state by accessing\n * event.target.checked (boolean).\n */\n onChange?: (event: ChangeEvent) => void;\n};\n\n/* function CheckboxContainer({ labelText? = '', isDisabled : boolean, hasError : boolean, children? }) {\n return (\n \n {children}\n labelText\n \n );\n} */\n\n/** Primary UI component for user interaction */\nfunction Checkbox({\n id,\n isChecked,\n labelText = '',\n labelPosition = LabelPosition.After,\n isIndeterminate = false,\n isDefaultChecked,\n isDisabled = false,\n hasError = false,\n className,\n onChange,\n}: CheckboxProps) {\n const checkBox = (\n \n );\n\n let result;\n\n if (labelText) {\n const preceding =\n labelPosition === LabelPosition.Before || labelPosition === LabelPosition.Above;\n\n const labelSpan = (\n \n {labelText}\n \n );\n\n const labelIsInline =\n labelPosition === LabelPosition.Before || labelPosition === LabelPosition.After;\n\n const label = labelIsInline ? labelSpan :
{labelSpan}
;\n\n const checkBoxElement = labelIsInline ? checkBox :
{checkBox}
;\n\n result = (\n \n {preceding && label}\n {checkBoxElement}\n {!preceding && label}\n \n );\n } else {\n result = checkBox;\n }\n return result;\n}\n\nexport default Checkbox;\n","import Checkbox from '@/components/checkbox.component';\nimport '@/components/checklist.component.css';\n\nexport type ChecklistProps = {\n /** Optional string representing the id attribute of the fieldset element */\n id?: string;\n /** Optional string representing CSS class name(s) for styling */\n className?: string;\n /** Optional string representing legend for fieldset element */\n legend?: string;\n /** Array of strings representing the legend text for the fieldset element */\n listItems: string[];\n /** Array of strings representing items to be displayed as checkboxes in the checklist */\n selectedListItems: string[];\n /** Function that takes a string param and is called when a checkbox item is selected or deselected */\n handleSelectListItem: (item: string) => void;\n /**\n * Optional function that takes a string param and returns a string representing the label text\n * for the checkbox associated with that item\n */\n createLabel?: (item: string) => string;\n};\n\n/**\n * Renders a list of checkboxes wrapped in a fieldset element. Each checkbox corresponds to an item\n * from the `listItems` array.\n */\nexport default function Checklist({\n id,\n className,\n legend,\n listItems,\n selectedListItems,\n handleSelectListItem,\n createLabel,\n}: ChecklistProps) {\n return (\n
\n {legend && {legend}}\n {listItems.map((item) => (\n handleSelectListItem(item)}\n />\n ))}\n
\n );\n}\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof propValue === 'function' && !isClassComponent(propValue)) {\n warningHint = 'Did you accidentally provide a plain function component instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element type that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nexport default chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return _extends({}, propTypes, {\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n });\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { ForwardRef, Memo } from 'react-is';\n\n// Simplified polyfill for IE11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nconst fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\nexport function getFunctionName(fn) {\n const match = `${fn}`.match(fnNameMatchRegex);\n const name = match && match[1];\n return name || '';\n}\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE11 support\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null) {\n return null;\n }\n if (propValue && propValue.nodeType !== 1) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n }\n return null;\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","export default function deprecatedPropType(validator, reason) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return (props, propName, componentName, location, propFullName) => {\n const componentNameSafe = componentName || '<>';\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The ${location} \\`${propFullNameSafe}\\` of ` + `\\`${componentNameSafe}\\` is deprecated. ${reason}`);\n }\n return null;\n };\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n var _muiName, _element$type;\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from '../ownerDocument';\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example
\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The prop \\`${propFullNameSafe}\\` is not supported. Please remove it.`);\n }\n return null;\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from '../useLazyRef/useLazyRef';\nimport useOnMount from '../useOnMount/useOnMount';\nexport class Timeout {\n constructor() {\n this.currentId = null;\n this.clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n this.disposeEffect = () => {\n return this.clear;\n };\n }\n static create() {\n return new Timeout();\n }\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from '../useTimeout/useTimeout';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n hadFocusVisibleRecentlyTimeout.start(100, () => {\n hadFocusVisibleRecently = false;\n });\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/488fd8afc535ca3a6ad4dc581f5e89217b6a36ac/js/src/util/scrollbar.js#L14-L18\nexport default function getScrollbarSize(doc) {\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n const documentWidth = doc.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n}","export function getTypeByValue(value) {\n const valueType = typeof value;\n switch (valueType) {\n case 'number':\n if (Number.isNaN(value)) {\n return 'NaN';\n }\n if (!Number.isFinite(value)) {\n return 'Infinity';\n }\n if (value !== Math.floor(value)) {\n return 'float';\n }\n return 'number';\n case 'object':\n if (value === null) {\n return 'null';\n }\n return value.constructor.name;\n default:\n return valueType;\n }\n}\n\n// IE 11 support\nfunction ponyfillIsInteger(x) {\n // eslint-disable-next-line no-restricted-globals\n return typeof x === 'number' && isFinite(x) && Math.floor(x) === x;\n}\nconst isInteger = Number.isInteger || ponyfillIsInteger;\nfunction requiredInteger(props, propName, componentName, location) {\n const propValue = props[propName];\n if (propValue == null || !isInteger(propValue)) {\n const propType = getTypeByValue(propValue);\n return new RangeError(`Invalid ${location} \\`${propName}\\` of type \\`${propType}\\` supplied to \\`${componentName}\\`, expected \\`integer\\`.`);\n }\n return null;\n}\nfunction validator(props, propName, ...other) {\n const propValue = props[propName];\n if (propValue === undefined) {\n return null;\n }\n return requiredInteger(props, propName, ...other);\n}\nfunction validatorNoop() {\n return null;\n}\nvalidator.isRequired = requiredInteger;\nvalidatorNoop.isRequired = validatorNoop;\nexport default process.env.NODE_ENV === 'production' ? validatorNoop : validator;","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","import { globalStateClasses } from '@mui/utils/generateUtilityClass';\nconst GLOBAL_CLASS_PREFIX = 'base';\nfunction buildStateClass(state) {\n return `${GLOBAL_CLASS_PREFIX}--${state}`;\n}\nfunction buildSlotClass(componentName, slot) {\n return `${GLOBAL_CLASS_PREFIX}-${componentName}-${slot}`;\n}\nexport function generateUtilityClass(componentName, slot) {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? buildStateClass(globalStateClass) : buildSlotClass(componentName, slot);\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import { generateUtilityClass } from '../generateUtilityClass';\nexport function generateUtilityClasses(componentName, slots) {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot);\n });\n return result;\n}","'use client';\n\n/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp, elementAcceptingRef, unstable_useForkRef as useForkRef, unstable_ownerDocument as ownerDocument } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n// Inspired by https://github.com/focus-trap/tabbable\nconst candidatesSelector = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'].join(',');\nfunction getTabIndex(node) {\n const tabindexAttr = parseInt(node.getAttribute('tabindex') || '', 10);\n if (!Number.isNaN(tabindexAttr)) {\n return tabindexAttr;\n }\n\n // Browsers do not return `tabIndex` correctly for contentEditable nodes;\n // https://bugs.chromium.org/p/chromium/issues/detail?id=661108&q=contenteditable%20tabindex&can=2\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n // in Chrome,
,
\n );\n}\n\nexport default CharacterInventory;\n","import { PlatformEvent, PlatformEventHandler } from 'platform-bible-utils';\nimport { useEffect } from 'react';\n\n/**\n * Adds an event handler to an event so the event handler runs when the event is emitted. Use\n * `papi.network.getNetworkEvent` to use a networked event with this hook.\n *\n * @param event The event to subscribe to.\n *\n * - If event is a `PlatformEvent`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEvent = (\n event: PlatformEvent | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n useEffect(() => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return () => {};\n\n const unsubscriber = event(eventHandler);\n return () => {\n unsubscriber();\n };\n }, [event, eventHandler]);\n};\nexport default useEvent;\n","import { useCallback, useEffect } from 'react';\nimport { PlatformEvent, PlatformEventAsync, PlatformEventHandler } from 'platform-bible-utils';\nimport usePromise from './use-promise.hook';\n\nconst noopUnsubscriber = () => false;\n\n/**\n * Adds an event handler to an asynchronously subscribing/unsubscribing event so the event handler\n * runs when the event is emitted. Use `papi.network.getNetworkEvent` to use a networked event with\n * this hook.\n *\n * @param event The asynchronously (un)subscribing event to subscribe to.\n *\n * - If event is a `PlatformEvent` or `PlatformEventAsync`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEventAsync = (\n event: PlatformEvent | PlatformEventAsync | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n // Subscribe to the event asynchronously\n const [unsubscribe] = usePromise(\n useCallback(async () => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return noopUnsubscriber;\n\n // Wrap subscribe and unsubscribe in promises to allow normal events to be used as well\n const unsub = await Promise.resolve(event(eventHandler));\n return async () => unsub();\n }, [eventHandler, event]),\n noopUnsubscriber,\n // We want the unsubscriber to return to default value immediately upon changing subscription\n // So the useEffect below will unsubscribe asap\n { preserveValue: false },\n );\n\n // Unsubscribe from the event asynchronously (but we aren't awaiting the unsub)\n useEffect(() => {\n return () => {\n if (unsubscribe !== noopUnsubscriber) {\n unsubscribe();\n }\n };\n }, [unsubscribe]);\n};\n\nexport default useEventAsync;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Card = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCard.displayName = 'Card';\n\nconst CardHeader = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}\n \n ),\n);\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n

\n));\nCardDescription.displayName = 'CardDescription';\n\nconst CardContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n

\n ),\n);\nCardContent.displayName = 'CardContent';\n\nconst CardFooter = React.forwardRef>(\n ({ className, ...props }, ref) => (\n
\n ),\n);\nCardFooter.displayName = 'CardFooter';\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\n","import React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst alertVariants = cva(\n 'pr-relative pr-w-full pr-rounded-lg pr-border pr-p-4 [&>svg~*]:pr-pl-7 [&>svg+div]:pr-translate-y-[-3px] [&>svg]:pr-absolute [&>svg]:pr-left-4 [&>svg]:pr-top-4 [&>svg]:pr-text-foreground',\n {\n variants: {\n variant: {\n default: 'pr-bg-background pr-text-foreground',\n destructive:\n 'pr-border-destructive/50 pr-text-destructive dark:pr-border-destructive [&>svg]:pr-text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes & VariantProps\n>(({ className, variant, ...props }, ref) => (\n
\n));\nAlert.displayName = 'Alert';\n\nconst AlertTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}{' '}\n \n ),\n);\nAlertTitle.displayName = 'AlertTitle';\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
\n));\nAlertDescription.displayName = 'AlertDescription';\n\nexport { Alert, AlertTitle, AlertDescription };\n","import React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Slider = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n \n \n \n));\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider };\n","import React from 'react';\nimport * as SwitchPrimitives from '@radix-ui/react-switch';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Switch = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n"],"names":["P","R","t","e","s","n","N","B","O","S","K","g","k","x","T","X","V","w","L","G","A","H","C","I","y","q","U","m","l","h","c","E","r","D","i","a","o","u","v","f","d","b","p","J","twMergeCustom","extendTailwindMerge","cn","inputs","clsx","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","Input","type","BookChapterInput","forwardRef","handleSearch","handleKeyDown","handleOnClick","handleSubmit","ShadInput","event","History","ChapterSelect","handleSelectChapter","endChapter","activeChapter","highlightedChapter","handleHighlightedChapter","chapters","_","handleMouse","useCallback","chapterNumber","chapter","BookMenuItem","bookId","handleSelectBook","isSelected","handleHighlightBook","bookType","ShadDropdownMenuItem","Canon","GoToMenuItem","handleSort","handleLocationHistory","handleBookmarks","ShadDropdownMenuLabel","ArrowDownWideNarrow","Clock","Bookmark","ALL_BOOK_IDS","BOOK_TYPE_LABELS","BOOK_TYPE_ARRAY","SCROLL_OFFSET","SEARCH_QUERY_FORMATS","fetchGroupedBooks","fetchEndChapter","getChaptersForBook","getAllEnglishNames","isValidBookEnglishName","bookName","getBookIdFromEnglishName","formattedBookName","BookChapterControl","scrRef","searchQuery","setSearchQuery","useState","selectedBookId","setSelectedBookId","setHighlightedChapter","highlightedBookId","setHighlightedBookId","isContentOpen","setIsContentOpen","isContentOpenDelayed","setIsContentOpenDelayed","inputRef","useRef","contentRef","menuItemRef","fetchFilteredBooks","englishNameLowerCase","normalizedQuery","handleSearchInput","searchString","shouldPreventAutoClosing","controlMenuState","open","updateReference","shouldClose","verse","handleInputSubmit","format","matches","book","englishName","handleKeyDownInput","handleKeyDownContent","key","handleKeyDownMenuItem","chapterOffSet","useEffect","useLayoutEffect","scrollTimeout","scrollPosition","ShadDropdownMenu","ShadDropdownMenuTrigger","ShadDropdownMenuContent","bookTypeIndex","element","ShadDropdownMenuSeparator","Table","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","buttonVariants","cva","Button","variant","size","asChild","Slot","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator","DataTablePagination","table","value","pageSize","ArrowLeftIcon","ChevronLeftIcon","ChevronRightIcon","ArrowRightIcon","DataTableViewOptions","FilterIcon","column","DataTable","columns","data","enablePagination","showPaginationControls","showColumnVisibilityControls","onRowClickHandler","sorting","setSorting","columnFilters","setColumnFilters","columnVisibility","setColumnVisibility","rowSelection","setRowSelection","useReactTable","getCoreRowModel","getPaginationRowModel","getSortedRowModel","getFilteredRowModel","headerGroup","header","flexRender","_a","row","cell","ComboBox","id","title","isDisabled","isClearable","hasError","isFullWidth","width","options","onChange","onFocus","onBlur","getOptionLabel","MuiComboBox","MuiTextField","ChapterRangeSelector","handleSelectStartChapter","handleSelectEndChapter","chapterCount","startChapter","setStartChapter","setEndChapter","chapterOptions","setChapterOptions","onChangeStartChapter","_event","onChangeEndChapter","Fragment","FormControlLabel","option","LabelPosition","Checkbox","isChecked","labelText","labelPosition","isIndeterminate","isDefaultChecked","checkBox","MuiCheckbox","result","preceding","labelSpan","labelIsInline","label","checkBoxElement","FormLabel","Checklist","legend","listItems","selectedListItems","handleSelectListItem","createLabel","item","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","_extends","z","reactIs_production_min","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","typeOf","object","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development","reactIsModule","require$$0","require$$1","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","order2","test3","letter","objectAssign","from","to","symbols","ReactPropTypesSecret","ReactPropTypesSecret_1","has","printWarning","loggedTypeFailures","text","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1","ReactIs","assign","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","createAnyTypeChecker","createArrayOfTypeChecker","createElementTypeChecker","createElementTypeTypeChecker","createInstanceTypeChecker","createNodeChecker","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","createShapeTypeChecker","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propName","propFullName","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","iterator","step","entry","isSymbol","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","chainPropTypes","propType1","propType2","args","isPlainObject","prototype","deepClone","output","deepmerge","isClassComponent","elementType","acceptingRef","safePropName","warningHint","elementAcceptingRef","PropTypes","elementAcceptingRef$1","elementTypeAcceptingRef","elementTypeAcceptingRef$1","specialProperty","exactProp","propTypes","unsupportedProps","prop","formatMuiErrorMessage","code","url","REACT_SERVER_CONTEXT_TYPE","REACT_OFFSCREEN_TYPE","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","SuspenseList","hasWarnedAboutDeprecatedIsConcurrentMode","isSuspenseList","fnNameMatchRegex","getFunctionName","fn","match","getFunctionComponentName","Component","fallback","getWrappedName","outerType","innerType","wrapperName","functionName","getDisplayName","HTMLElementType","refType","refType$1","capitalize","string","_formatMuiErrorMessage","createChainedFunction","funcs","acc","func","debounce","wait","timeout","debounced","later","deprecatedPropType","validator","reason","componentNameSafe","propFullNameSafe","isMuiElement","muiNames","_muiName","_element$type","ownerDocument","node","ownerWindow","requirePropFactory","componentNameInError","prevPropTypes","requiredProp","defaultTypeChecker","typeCheckerResult","setRef","useEnhancedEffect","useEnhancedEffect$1","globalId","useGlobalId","idOverride","defaultId","setDefaultId","maybeReactUseId","useId","reactId","unsupportedProp","useControlled","controlled","defaultProp","name","state","isControlled","valueState","setValue","defaultValue","setValueIfUncontrolled","newValue","useEventCallback","useForkRef","refs","instance","UNINITIALIZED","useLazyRef","init","initArg","EMPTY","useOnMount","Timeout","delay","useTimeout","hadKeyboardEvent","hadFocusVisibleRecently","hadFocusVisibleRecentlyTimeout","inputTypesWhitelist","focusTriggersKeyboardModality","tagName","handlePointerDown","handleVisibilityChange","prepare","doc","isFocusVisible","useIsFocusVisible","isFocusVisibleRef","handleBlurVisible","handleFocusVisible","getScrollbarSize","documentWidth","getTypeByValue","valueType","ponyfillIsInteger","isInteger","requiredInteger","other","validatorNoop","integerPropType","resolveProps","defaultProps","defaultSlotProps","slotProps","slotPropName","composeClasses","slots","getUtilityClass","classes","slot","utilityClass","defaultGenerator","createClassNameGenerator","generate","generator","ClassNameGenerator","ClassNameGenerator$1","globalStateClasses","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","clamp","min","max","isHostComponent","appendOwnerState","otherProps","ownerState","defaultContextValue","ClassNameConfiguratorContext","useClassNamesOverride","disableDefaultClasses","extractEventHandlers","excludeKeys","resolveComponentProps","componentProps","slotState","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","_excluded","useSlotProps","_parameters$additiona","skipResolvingSlotProps","rest","resolvedComponentsProps","mergedProps","internalRef","GLOBAL_CLASS_PREFIX","buildStateClass","buildSlotClass","candidatesSelector","getTabIndex","tabindexAttr","isNonTabbableRadio","getRadio","selector","roving","isNodeMatchingSelectorFocusable","defaultGetTabbable","root","regularTabNodes","orderedTabNodes","nodeTabIndex","defaultIsEnabled","FocusTrap","disableAutoFocus","disableEnforceFocus","disableRestoreFocus","getTabbable","isEnabled","ignoreNextEnforceFocus","sentinelStart","sentinelEnd","nodeToRestore","reactFocusEventTarget","activated","rootRef","handleRef","lastKeydown","loopFocus","nativeEvent","contain","rootElement","tabbable","_lastKeydown$current","_lastKeydown$current2","isShiftTab","focusNext","focusPrevious","interval","childrenPropsHandler","handleFocusSentinel","_jsxs","_jsx","getContainer","container","forwardedRef","disablePortal","mountNode","setMountNode","newProps","ReactDOM","isOverflowing","ariaHidden","show","getPaddingRight","isAriaHiddenForbiddenOnElement","isForbiddenTagName","isInputHidden","ariaHiddenSiblings","mountElement","currentElement","elementsToExclude","blacklist","isNotExcludedElement","isNotForbiddenElement","findIndexOf","items","callback","idx","index","handleContainer","containerInfo","restoreStyle","scrollbarSize","fixedElements","scrollContainer","parent","containerWindow","el","property","getHiddenSiblings","hiddenSiblings","ModalManager","modal","modalIndex","containerIndex","ariaHiddenState","nextTop","getHasTransition","defaultManager","useModal","disableEscapeKeyDown","disableScrollLock","manager","closeAfterTransition","onTransitionEnter","onTransitionExited","onClose","mountNodeRef","modalRef","exited","setExited","hasTransition","ariaHiddenProp","getDoc","getModal","handleMounted","handleOpen","resolvedContainer","isTopModal","handlePortalRef","handleClose","createHandleKeyDown","otherHandlers","_otherHandlers$onKeyD","createHandleBackdropClick","_otherHandlers$onClic","propsEventHandlers","externalEventHandlers","handleEnter","handleExited","top","bottom","right","left","auto","basePlacements","start","end","clippingParents","viewport","popper","reference","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","getWindow","OwnElement","isHTMLElement","isShadowRoot","applyStyles","_ref","style","attributes","effect","_ref2","initialStyles","styleProperties","attribute","applyStyles$2","getBasePlacement","round","getUAString","uaData","isLayoutViewport","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","visualViewport","addVisualOffsets","height","getLayoutRect","contains","child","rootNode","next","getComputedStyle","isTableElement","getDocumentElement","getParentNode","getTrueOffsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","css","getOffsetParent","window","offsetParent","getMainAxisFromPlacement","within","mathMax","mathMin","withinMaxClamp","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","keys","hashMap","toPaddingObject","padding","arrow","_state$modifiersData$","arrowElement","popperOffsets","basePlacement","axis","isVertical","len","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","center","offset","axisProp","_options$element","arrow$1","getVariation","unsetSides","roundOffsetsByDPR","win","dpr","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles$1","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","eventListeners","hash","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","scrollTop","getWindowScrollBarX","getViewportRect","strategy","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","rect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_options$mainAxis","checkMainAxis","_options$altAxis","checkAltAxis","specifiedFallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","fallbackPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","numberOfChecks","_loop","_i","fittingPlacement","_ret","flip$1","getSideOffsets","preventedOffsets","isAnySideFullyClipped","side","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide$1","distanceAndSkiddingToXY","rects","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset$1","popperOffsets$1","getAltAxis","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","altAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow$1","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","documentElement","order","modifiers","map","visited","modifier","sort","requires","dep","depModifier","orderModifiers","orderedModifiers","phase","pending","resolve","mergeByName","merged","current","existing","DEFAULT_OPTIONS","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptionsAction","cleanupModifierEffects","runModifierEffects","_state$elements","_state$orderedModifie","_state$orderedModifie2","_ref$options","cleanupFn","noopFn","createPopper","COMPONENT_NAME","getPopperUtilityClass","_excluded2","flipPlacement","direction","resolveAnchorEl","anchorEl","isVirtualElement","useUtilityClasses","defaultPopperOptions","PopperTooltip","_slots$root","initialPlacement","popperOptions","popperRefProp","TransitionProps","tooltipRef","ownRef","popperRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","box","popperModifiers","childProps","Root","rootProps","Popper","containerProp","keepMounted","transition","resolvedAnchorEl","display","transitionProps","sortBreakpointsValues","breakpointsAsArray","breakpoint1","breakpoint2","obj","createBreakpoints","breakpoints","unit","sortedValues","up","down","between","endIndex","only","not","keyIndex","shape","shape$1","responsivePropType","responsivePropType$1","merge","defaultBreakpoints","handleBreakpoints","styleFromPropValue","theme","themeBreakpoints","breakpoint","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","_breakpointsInput$key","breakpointStyleKey","removeUnusedBreakpoints","breakpointKeys","breakpointOutput","getPath","path","checkVars","getStyleValue","themeMapping","transform","propValueFinal","userValue","cssProperty","themeKey","memoize","cache","arg","properties","directions","aliases","getCssProperties","dir","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","_getPath","themeSpacing","abs","createUnarySpacing","getValue","transformer","transformed","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","createSpacing","spacingInput","spacing","argsInput","argument","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borderRadius","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","paletteTransform","color","bgcolor","backgroundColor","sizingTransform","maxWidth","_props$theme","_props$theme2","breakpointsValues","minWidth","maxHeight","minHeight","boxSizing","defaultSxConfig","defaultSxConfig$1","objectsHaveSameKeys","objects","union","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","config","styleFunctionSx","_theme$unstable_sxCon","sx","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","styleKey","styleFunctionSx$1","createTheme","paletteInput","shapeInput","muiTheme","isObjectEmpty","useTheme","defaultTheme","contextTheme","ThemeContext","systemDefaultTheme","useThemeWithoutDefault","_excluded3","isEmpty","isStringTag","tag","shouldForwardProp","lowercaseFirstLetter","resolveTheme","themeId","defaultOverridesResolver","processStyleArg","callableStyle","resolvedStylesArg","resolvedStyle","variants","isMatch","createStyled","input","rootShouldForwardProp","slotShouldForwardProp","systemSx","inputOptions","processStyles","componentSlot","inputSkipVariantsResolver","inputSkipSx","overridesResolver","skipVariantsResolver","skipSx","shouldForwardPropOption","defaultStyledResolver","styledEngineStyled","transformStyleArg","stylesArg","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","styleOverrides","resolvedStyleOverrides","slotKey","slotStyle","_theme$components","themeVariants","numOfCustomFnsApplied","placeholders","displayName","getThemeProps","params","useThemeProps","clampWrapper","hexToRgb","re","colors","decomposeColor","marker","colorSpace","recomposeColor","hslToRgb","rgb","getLuminance","getContrastRatio","foreground","background","lumA","lumB","alpha","darken","coefficient","lighten","createMixins","mixins","common","common$1","grey","grey$1","purple","purple$1","red","red$1","orange","orange$1","blue","blue$1","lightBlue","lightBlue$1","green","green$1","light","dark","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","getDefaultPrimary","mode","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","palette","contrastThreshold","primary","secondary","info","success","warning","getContrastText","contrastText","contrast","augmentColor","mainShade","lightShade","darkShade","modes","caseAllCaps","defaultFontFamily","createTypography","typography","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem2","coef","pxToRem","buildVariant","fontWeight","lineHeight","letterSpacing","casing","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadow","px","shadows","shadows$1","easing","duration","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","isString","isNumber","animatedProp","zIndex","zIndex$1","mixinsInput","transitionsInput","typographyInput","systemTheme","systemCreateTheme","stateClasses","component","stateClass","defaultTheme$1","THEME_ID","styled","styled$1","useThemeSystem","systemUseThemeProps","_setPrototypeOf","_inheritsLoose","subClass","superClass","setPrototypeOf","timeoutsShape","TransitionGroupContext","forceReflow","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","context","_this","parentGroup","appear","initialStatus","prevState","nextIn","_proto","prevProps","nextStatus","status","exit","enter","mounting","_this2","appearing","maybeNode","maybeAppearing","timeouts","enterTimeout","_this3","nextState","_this4","active","handler","doesNotHaveTimeoutOrListener","maybeNextCallback","_this$props","pt","noop","Transition$1","reflow","getTransitionProps","_style$transitionDura","_style$transitionTimi","getScale","isWebKit154","Grow","addEndListener","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","TransitionComponent","timer","autoTimeout","nodeRef","normalizedTransitionCallback","maybeIsAppearing","handleEntering","isAppearing","transitionDuration","transitionTimingFunction","handleEntered","handleExiting","handleExit","Grow$1","getOverlayAlpha","elevation","alphaValue","getOverlayAlpha$1","PopperRoot","BasePopper","inProps","components","componentsProps","RootComponent","Popper$1","getTooltipUtilityClass","tooltipClasses","tooltipClasses$1","disableInteractive","touch","TooltipPopper","TooltipTooltip","TooltipArrow","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","Tooltip","_slots$popper","_slots$transition","_slots$tooltip","_slots$arrow","_slotProps$popper","_ref6","_slotProps$popper2","_slotProps$transition","_slotProps$tooltip","_ref7","_slotProps$tooltip2","_slotProps$arrow","_ref8","_slotProps$arrow2","childrenProp","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","idProp","leaveDelay","leaveTouchDelay","onOpen","openProp","PopperComponentProp","PopperProps","TransitionComponentProp","isRtl","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","openState","setOpenState","prevUserSelect","stopTouchInteraction","handleLeave","focusVisibleRef","setChildIsFocusVisible","handleBlur","handleFocus","detectTouchStart","childrenProps","handleMouseOver","handleMouseLeave","handleTouchStart","handleTouchEnd","handleMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","_PopperProps$popperOp","tooltipModifiers","PopperComponent","TooltipComponent","ArrowComponent","popperProps","tooltipProps","tooltipArrowProps","TransitionPropsInner","Tooltip$1","_interopRequireDefault","module","getSvgIconUtilityClass","SvgIconRoot","_theme$transitions","_theme$transitions$cr","_theme$transitions2","_theme$typography","_theme$typography$pxT","_theme$typography2","_theme$typography2$px","_theme$typography3","_theme$typography3$px","_palette$ownerState$c","_palette","_palette2","_palette3","SvgIcon","htmlColor","inheritViewBox","titleAccess","viewBox","hasSvgAsChild","more","SvgIcon$1","createSvgIcon","unstable_ClassNameGenerator","exports","_utils","ArrowRight","default_1","_createSvgIcon","_jsxRuntime","getIcon","icon","menuLabel","leading","MuiListItemIcon","MenuItem","onClick","tooltip","allowForLeadingIcons","iconPathBefore","iconPathAfter","hasAutoFocus","isDense","isSubMenuParent","hasDisabledGutters","hasDivider","focusVisibleClassName","menuItem","MuiMenuItem","MuiListItemText","getAllGroups","menuDefinition","SubMenu","setAnchorEl","parentMenuItem","parentItemProps","handleParentMenuItemClick","renderSubMenuItems","includedGroups","group","GroupedMenuItemList","Menu","getOrderedGroupItems","groupId","allItems","menuProps","commandHandler","useMemo","groupsToInclude","sortedGroups","itemArray","allowSpaceForLeadingIcons","createMenuItemProps","isLastItemInGroup","firstItem","divKey","itemInfo","menuItemProps","TopLevelMenu","columnId","MenuColumn","metadata","Grid","List","GridMenu","multiColumnMenu","sortedColumns","columnNumbers","columnName","col","ListContext","ListContext$1","getListUtilityClass","disablePadding","dense","subheader","ListRoot","List$1","nextItem","disableListWrap","previousItem","textCriteriaMatches","nextFocus","textCriteria","moveFocus","currentFocus","disabledItemsFocusable","traversalFunction","wrappedOnce","nextFocusDisabled","MenuList","actions","autoFocus","autoFocusItem","onKeyDown","listRef","textCriteriaRef","containerElement","noExplicitWidth","criteria","lowerKey","currTime","keepFocusOnCurrent","activeItemIndex","newChildProps","MenuList$1","Fade","defaultTimeout","Fade$1","getBackdropUtilityClass","invisible","BackdropRoot","Backdrop","_slotProps$root","rootSlotProps","Backdrop$1","getModalUtilityClass","ModalRoot","ModalBackdrop","Modal","_slots$backdrop","_slotProps$backdrop","BackdropComponent","BackdropProps","hideBackdrop","onBackdropClick","propsWithDefaults","getRootProps","getBackdropProps","portalRef","RootSlot","BackdropSlot","backdropSlotProps","backdropProps","Modal$1","getPaperUtilityClass","square","PaperRoot","_theme$vars$overlays","Paper","PaperBase","getPopoverUtilityClass","getOffsetTop","vertical","getOffsetLeft","horizontal","getTransformOriginValue","transformOrigin","PopoverRoot","PopoverPaper","Popover","_slotProps$paper","_slots$paper","action","anchorOrigin","anchorPosition","anchorReference","marginThreshold","PaperPropsProp","transitionDurationProp","externalPaperSlotProps","paperRef","handlePaperRef","getAnchorOffset","anchorElement","anchorRect","getTransformOrigin","elemRect","getPositioningStyle","elemTransformOrigin","anchorOffset","heightThreshold","widthThreshold","diff","isPositioned","setIsPositioned","setPositioningStyles","positioning","handleResize","PaperSlot","paperProps","_useSlotProps","rootSlotPropsProp","Popover$1","getMenuUtilityClass","RTL_ORIGIN","LTR_ORIGIN","MenuRoot","MenuPaper","MenuMenuList","disableAutoFocusItem","MenuListProps","PaperProps","PopoverClasses","menuListActionsRef","handleListKeyDown","paperExternalSlotProps","paperSlotProps","Menu$1","ContextMenu","contextMenuPosition","setContextMenuPosition","handleContextMenu","MenuItemList","MenuIcon","getUsePromiseOptionsDefaults","usePromise","promiseFactoryCallback","defaultValueRef","optionsDefaultedRef","isLoading","setIsLoading","promiseIsCurrent","HamburgerMenuButton","menuProvider","normalMenu","fullMenu","containerRef","ariaLabelPrefix","isMenuOpen","setMenuOpen","showFullMenu","setShowFullMenu","handleMenuItemClick","handleMenuButtonClick","prevIsOpen","isOpening","menuCommandHandler","command","setOffset","normalMenuData","fullMenuData","menu","IconButton","Drawer","isTooltipSuppressed","adjustMarginToAlignToEdge","MuiIconButton","labelVariants","Label","LabelPrimitive","TextField","helperText","placeholder","ShadLabel","SearchBar","onSearch","handleInputChange","Slider","orientation","showMarks","valueLabelDisplay","onChangeCommitted","MuiSlider","Snackbar","autoHideDuration","isOpen","ContentProps","newContentProps","MuiSnackbar","Switch","MuiSwitch","Toolbar","AppBar","MuiToolbar","Tabs","TabsPrimitive","TabsList","TabsTrigger","TabsContent","VerticalTabs","VerticalTabsList","VerticalTabsTrigger","VerticalTabsContent","getSortingIcon","sortDirection","ArrowUpIcon","ArrowDownIcon","ArrowUpDownIcon","characterLabel","unicodeValueLabel","countLabel","statusLabel","statusChangeHandler","selectedRows","characters","CircleCheckIcon","CircleXIcon","CircleHelpIcon","InventoryDataTable","tableData","onStatusChange","onSelectCharacter","localizedStrings","rowClickHandler","extractOccurrences","character","scriptureRef","results","lines","currentChapter","currentVerse","line","words","snippet","OccurrencesTable","selectedCharacter","scriptureReference","setScriptureReference","occurrence","setTableData","buildTableData","statusFilter","textFilter","validCharacters","invalidCharacters","characterData","split","characterDataPoint","dataPoint","characterStatus","newCharacter","CharacterInventory","projectId","getSetting","setSetting","getText","allCharacters","approvedCharacters","unapprovedCharacters","unknownCharacters","scopeBook","scopeChapter","scopeVerse","filterText","setValidCharacters","setInvalidCharacters","setText","scope","setScope","setStatusFilter","setTextFilter","inventoryTableData","setInventoryTableData","setSelectedCharacter","prevTableData","tableEntry","prevValidCharacters","newValidCharacters","validChar","prevInvalidCharacters","newInvalidCharacters","invalidChar","newText","newScriptureReference","useEvent","unsubscriber","noopUnsubscriber","useEventAsync","unsubscribe","unsub","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","alertVariants","Alert","AlertTitle","AlertDescription","SliderPrimitive","SwitchPrimitives"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAIA,KAAI,OAAO,gBACXC,KAAI,CAACC,GAAGC,GAAGC,MAAMD,KAAKD,IAAIF,GAAEE,GAAGC,GAAG,EAAE,YAAY,IAAI,cAAc,IAAI,UAAU,IAAI,OAAOC,EAAC,CAAE,IAAIF,EAAEC,CAAC,IAAIC,GACzGC,KAAI,CAACH,GAAGC,GAAGC,MAAMH,GAAEC,GAAG,OAAOC,KA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225]} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../../../node_modules/@sillsdev/scripture/dist/index.es.js","../src/utils/shadcn-ui.util.ts","../src/components/shadcn-ui/dropdown-menu.tsx","../src/components/shadcn-ui/input.tsx","../src/components/advanced-components/book-chapter-control/book-chapter-input.component.tsx","../src/components/advanced-components/book-chapter-control/chapter-select.component.tsx","../src/components/advanced-components/book-chapter-control/book-menu-item.component.tsx","../src/components/advanced-components/book-chapter-control/go-to-menu-item.component.tsx","../src/components/advanced-components/book-chapter-control/book-chapter-control.component.tsx","../src/components/shadcn-ui/table.tsx","../src/components/shadcn-ui/button.tsx","../src/components/shadcn-ui/select.tsx","../src/components/advanced-components/data-table/data-table-pagination.component.tsx","../src/components/advanced-components/data-table/data-table-column-toggle.component.tsx","../src/components/advanced-components/data-table/data-table.component.tsx","../src/components/combo-box.component.tsx","../src/components/chapter-range-selector.component.tsx","../src/components/label-position.model.ts","../src/components/checkbox.component.tsx","../src/components/checklist.component.tsx","../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/esm/extends.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/index.js","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/base/utils/isHostComponent.js","../../../node_modules/@mui/base/utils/appendOwnerState.js","../../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/utils/extractEventHandlers.js","../../../node_modules/@mui/base/utils/resolveComponentProps.js","../../../node_modules/@mui/base/utils/omitEventHandlers.js","../../../node_modules/@mui/base/utils/mergeSlotProps.js","../../../node_modules/@mui/base/utils/useSlotProps.js","../../../node_modules/@mui/base/generateUtilityClass/index.js","../../../node_modules/@mui/base/generateUtilityClasses/index.js","../../../node_modules/@mui/base/FocusTrap/FocusTrap.js","../../../node_modules/@mui/base/Portal/Portal.js","../../../node_modules/@mui/base/unstable_useModal/ModalManager.js","../../../node_modules/@mui/base/unstable_useModal/useModal.js","../../../node_modules/@popperjs/core/lib/enums.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../node_modules/@popperjs/core/lib/utils/math.js","../../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../node_modules/@popperjs/core/lib/utils/within.js","../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../node_modules/@popperjs/core/lib/utils/debounce.js","../../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../node_modules/@popperjs/core/lib/createPopper.js","../../../node_modules/@popperjs/core/lib/popper.js","../../../node_modules/@mui/base/Popper/popperClasses.js","../../../node_modules/@mui/base/Popper/Popper.js","../../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/esm/createTheme/shape.js","../../../node_modules/@mui/system/esm/responsivePropType.js","../../../node_modules/@mui/system/esm/merge.js","../../../node_modules/@mui/system/esm/breakpoints.js","../../../node_modules/@mui/system/esm/style.js","../../../node_modules/@mui/system/esm/memoize.js","../../../node_modules/@mui/system/esm/spacing.js","../../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../../node_modules/@mui/system/esm/compose.js","../../../node_modules/@mui/system/esm/borders.js","../../../node_modules/@mui/system/esm/cssGrid.js","../../../node_modules/@mui/system/esm/palette.js","../../../node_modules/@mui/system/esm/sizing.js","../../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../../node_modules/@mui/system/esm/useTheme.js","../../../node_modules/@mui/system/esm/createStyled.js","../../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/esm/colorManipulator.js","../../../node_modules/@mui/material/styles/createMixins.js","../../../node_modules/@mui/material/colors/common.js","../../../node_modules/@mui/material/colors/grey.js","../../../node_modules/@mui/material/colors/purple.js","../../../node_modules/@mui/material/colors/red.js","../../../node_modules/@mui/material/colors/orange.js","../../../node_modules/@mui/material/colors/blue.js","../../../node_modules/@mui/material/colors/lightBlue.js","../../../node_modules/@mui/material/colors/green.js","../../../node_modules/@mui/material/styles/createPalette.js","../../../node_modules/@mui/material/styles/createTypography.js","../../../node_modules/@mui/material/styles/shadows.js","../../../node_modules/@mui/material/styles/createTransitions.js","../../../node_modules/@mui/material/styles/zIndex.js","../../../node_modules/@mui/material/styles/createTheme.js","../../../node_modules/@mui/material/styles/defaultTheme.js","../../../node_modules/@mui/material/styles/identifier.js","../../../node_modules/@mui/material/styles/styled.js","../../../node_modules/@mui/material/styles/useTheme.js","../../../node_modules/@mui/material/styles/useThemeProps.js","../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../node_modules/react-transition-group/esm/config.js","../../../node_modules/react-transition-group/esm/utils/PropTypes.js","../../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../../node_modules/react-transition-group/esm/utils/reflow.js","../../../node_modules/react-transition-group/esm/Transition.js","../../../node_modules/@mui/material/transitions/utils.js","../../../node_modules/@mui/material/Grow/Grow.js","../../../node_modules/@mui/material/styles/getOverlayAlpha.js","../../../node_modules/@mui/material/Popper/Popper.js","../../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../../node_modules/@mui/material/Tooltip/Tooltip.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@mui/material/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/material/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/utils/createSvgIcon.js","../../../node_modules/@mui/material/utils/index.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/@mui/icons-material/ArrowRight.js","../src/components/menu-item.component.tsx","../src/components/grouped-menu-item-list.component.tsx","../src/components/top-level-menu.component.tsx","../src/components/grid-menu.component.tsx","../../../node_modules/@mui/material/List/ListContext.js","../../../node_modules/@mui/material/List/listClasses.js","../../../node_modules/@mui/material/List/List.js","../../../node_modules/@mui/material/MenuList/MenuList.js","../../../node_modules/@mui/material/Fade/Fade.js","../../../node_modules/@mui/material/Backdrop/backdropClasses.js","../../../node_modules/@mui/material/Backdrop/Backdrop.js","../../../node_modules/@mui/material/Modal/modalClasses.js","../../../node_modules/@mui/material/Modal/Modal.js","../../../node_modules/@mui/material/Paper/paperClasses.js","../../../node_modules/@mui/material/Paper/Paper.js","../../../node_modules/@mui/material/Popover/popoverClasses.js","../../../node_modules/@mui/material/Popover/Popover.js","../../../node_modules/@mui/material/Menu/menuClasses.js","../../../node_modules/@mui/material/Menu/Menu.js","../src/components/context-menu.component.tsx","../../../node_modules/@mui/icons-material/esm/Menu.js","../src/hooks/use-promise.hook.ts","../src/components/hamburger-menu-button.component.tsx","../src/components/icon-button.component.tsx","../src/components/shadcn-ui/label.tsx","../src/components/text-field.component.tsx","../src/components/search-bar.component.tsx","../src/components/slider.component.tsx","../src/components/snackbar.component.tsx","../src/components/switch.component.tsx","../src/components/toolbar.component.tsx","../src/components/shadcn-ui/tabs.tsx","../src/components/shadcn-ui/tabs-vertical.tsx","../src/components/paratext-10-studio-components/inventory/inventory-data-table.component.tsx","../src/components/paratext-10-studio-components/inventory/occurrences-table.component.tsx","../src/components/paratext-10-studio-components/inventory/character-inventory.component.tsx","../src/components/extension-marketplace/buttons/download-button.component.tsx","../src/components/extension-marketplace/buttons/remove-button.component.tsx","../src/components/extension-marketplace/buttons/update-button.component.tsx","../../../node_modules/markdown-to-jsx/dist/index.modern.js","../src/components/extension-marketplace/markdown-renderer.component.tsx","../src/hooks/use-event.hook.ts","../src/hooks/use-event-async.hook.ts","../src/components/shadcn-ui/card.tsx","../src/components/shadcn-ui/alert.tsx","../src/components/shadcn-ui/slider.tsx","../src/components/shadcn-ui/switch.tsx"],"sourcesContent":["var P = Object.defineProperty;\nvar R = (t, e, s) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;\nvar n = (t, e, s) => R(t, typeof e != \"symbol\" ? e + \"\" : e, s);\nclass _ {\n constructor() {\n n(this, \"books\");\n n(this, \"firstSelectedBookNum\");\n n(this, \"lastSelectedBookNum\");\n n(this, \"count\");\n n(this, \"selectedBookNumbers\");\n n(this, \"selectedBookIds\");\n }\n}\nconst N = [\n \"GEN\",\n \"EXO\",\n \"LEV\",\n \"NUM\",\n \"DEU\",\n \"JOS\",\n \"JDG\",\n \"RUT\",\n \"1SA\",\n \"2SA\",\n // 10\n \"1KI\",\n \"2KI\",\n \"1CH\",\n \"2CH\",\n \"EZR\",\n \"NEH\",\n \"EST\",\n \"JOB\",\n \"PSA\",\n \"PRO\",\n // 20\n \"ECC\",\n \"SNG\",\n \"ISA\",\n \"JER\",\n \"LAM\",\n \"EZK\",\n \"DAN\",\n \"HOS\",\n \"JOL\",\n \"AMO\",\n // 30\n \"OBA\",\n \"JON\",\n \"MIC\",\n \"NAM\",\n \"HAB\",\n \"ZEP\",\n \"HAG\",\n \"ZEC\",\n \"MAL\",\n \"MAT\",\n // 40\n \"MRK\",\n \"LUK\",\n \"JHN\",\n \"ACT\",\n \"ROM\",\n \"1CO\",\n \"2CO\",\n \"GAL\",\n \"EPH\",\n \"PHP\",\n // 50\n \"COL\",\n \"1TH\",\n \"2TH\",\n \"1TI\",\n \"2TI\",\n \"TIT\",\n \"PHM\",\n \"HEB\",\n \"JAS\",\n \"1PE\",\n // 60\n \"2PE\",\n \"1JN\",\n \"2JN\",\n \"3JN\",\n \"JUD\",\n \"REV\",\n \"TOB\",\n \"JDT\",\n \"ESG\",\n \"WIS\",\n // 70\n \"SIR\",\n \"BAR\",\n \"LJE\",\n \"S3Y\",\n \"SUS\",\n \"BEL\",\n \"1MA\",\n \"2MA\",\n \"3MA\",\n \"4MA\",\n // 80\n \"1ES\",\n \"2ES\",\n \"MAN\",\n \"PS2\",\n \"ODA\",\n \"PSS\",\n \"JSA\",\n // actual variant text for JOS, now in LXA text\n \"JDB\",\n // actual variant text for JDG, now in LXA text\n \"TBS\",\n // actual variant text for TOB, now in LXA text\n \"SST\",\n // actual variant text for SUS, now in LXA text // 90\n \"DNT\",\n // actual variant text for DAN, now in LXA text\n \"BLT\",\n // actual variant text for BEL, now in LXA text\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n // 100\n \"BAK\",\n \"OTH\",\n \"3ES\",\n // Used previously but really should be 2ES\n \"EZA\",\n // Used to be called 4ES, but not actually in any known project\n \"5EZ\",\n // Used to be called 5ES, but not actually in any known project\n \"6EZ\",\n // Used to be called 6ES, but not actually in any known project\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n // 110\n \"NDX\",\n \"DAG\",\n \"PS3\",\n \"2BA\",\n \"LBA\",\n \"JUB\",\n \"ENO\",\n \"1MQ\",\n \"2MQ\",\n \"3MQ\",\n // 120\n \"REP\",\n \"4BA\",\n \"LAO\"\n], B = [\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n \"BAK\",\n \"OTH\",\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n \"NDX\"\n], O = [\n \"Genesis\",\n \"Exodus\",\n \"Leviticus\",\n \"Numbers\",\n \"Deuteronomy\",\n \"Joshua\",\n \"Judges\",\n \"Ruth\",\n \"1 Samuel\",\n \"2 Samuel\",\n \"1 Kings\",\n \"2 Kings\",\n \"1 Chronicles\",\n \"2 Chronicles\",\n \"Ezra\",\n \"Nehemiah\",\n \"Esther (Hebrew)\",\n \"Job\",\n \"Psalms\",\n \"Proverbs\",\n \"Ecclesiastes\",\n \"Song of Songs\",\n \"Isaiah\",\n \"Jeremiah\",\n \"Lamentations\",\n \"Ezekiel\",\n \"Daniel (Hebrew)\",\n \"Hosea\",\n \"Joel\",\n \"Amos\",\n \"Obadiah\",\n \"Jonah\",\n \"Micah\",\n \"Nahum\",\n \"Habakkuk\",\n \"Zephaniah\",\n \"Haggai\",\n \"Zechariah\",\n \"Malachi\",\n \"Matthew\",\n \"Mark\",\n \"Luke\",\n \"John\",\n \"Acts\",\n \"Romans\",\n \"1 Corinthians\",\n \"2 Corinthians\",\n \"Galatians\",\n \"Ephesians\",\n \"Philippians\",\n \"Colossians\",\n \"1 Thessalonians\",\n \"2 Thessalonians\",\n \"1 Timothy\",\n \"2 Timothy\",\n \"Titus\",\n \"Philemon\",\n \"Hebrews\",\n \"James\",\n \"1 Peter\",\n \"2 Peter\",\n \"1 John\",\n \"2 John\",\n \"3 John\",\n \"Jude\",\n \"Revelation\",\n \"Tobit\",\n \"Judith\",\n \"Esther Greek\",\n \"Wisdom of Solomon\",\n \"Sirach (Ecclesiasticus)\",\n \"Baruch\",\n \"Letter of Jeremiah\",\n \"Song of 3 Young Men\",\n \"Susanna\",\n \"Bel and the Dragon\",\n \"1 Maccabees\",\n \"2 Maccabees\",\n \"3 Maccabees\",\n \"4 Maccabees\",\n \"1 Esdras (Greek)\",\n \"2 Esdras (Latin)\",\n \"Prayer of Manasseh\",\n \"Psalm 151\",\n \"Odes\",\n \"Psalms of Solomon\",\n // WARNING, if you change the spelling of the *obsolete* tag be sure to update\n // IsObsolete routine\n \"Joshua A. *obsolete*\",\n \"Judges B. *obsolete*\",\n \"Tobit S. *obsolete*\",\n \"Susanna Th. *obsolete*\",\n \"Daniel Th. *obsolete*\",\n \"Bel Th. *obsolete*\",\n \"Extra A\",\n \"Extra B\",\n \"Extra C\",\n \"Extra D\",\n \"Extra E\",\n \"Extra F\",\n \"Extra G\",\n \"Front Matter\",\n \"Back Matter\",\n \"Other Matter\",\n \"3 Ezra *obsolete*\",\n \"Apocalypse of Ezra\",\n \"5 Ezra (Latin Prologue)\",\n \"6 Ezra (Latin Epilogue)\",\n \"Introduction\",\n \"Concordance \",\n \"Glossary \",\n \"Topical Index\",\n \"Names Index\",\n \"Daniel Greek\",\n \"Psalms 152-155\",\n \"2 Baruch (Apocalypse)\",\n \"Letter of Baruch\",\n \"Jubilees\",\n \"Enoch\",\n \"1 Meqabyan\",\n \"2 Meqabyan\",\n \"3 Meqabyan\",\n \"Reproof (Proverbs 25-31)\",\n \"4 Baruch (Rest of Baruch)\",\n \"Laodiceans\"\n], S = K();\nfunction g(t, e = !0) {\n return e && (t = t.toUpperCase()), t in S ? S[t] : 0;\n}\nfunction k(t) {\n return g(t) > 0;\n}\nfunction x(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return e >= 40 && e <= 66;\n}\nfunction T(t) {\n return (typeof t == \"string\" ? g(t) : t) <= 39;\n}\nfunction X(t) {\n return t <= 66;\n}\nfunction V(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return w(e) && !X(e);\n}\nfunction* L() {\n for (let t = 1; t <= N.length; t++) yield t;\n}\nconst G = 1, A = N.length;\nfunction H() {\n return [\"XXA\", \"XXB\", \"XXC\", \"XXD\", \"XXE\", \"XXF\", \"XXG\"];\n}\nfunction C(t, e = \"***\") {\n const s = t - 1;\n return s < 0 || s >= N.length ? e : N[s];\n}\nfunction I(t) {\n return t <= 0 || t > A ? \"******\" : O[t - 1];\n}\nfunction y(t) {\n return I(g(t));\n}\nfunction w(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && !B.includes(e);\n}\nfunction q(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && B.includes(e);\n}\nfunction U(t) {\n return O[t - 1].includes(\"*obsolete*\");\n}\nfunction K() {\n const t = {};\n for (let e = 0; e < N.length; e++)\n t[N[e]] = e + 1;\n return t;\n}\nconst m = {\n allBookIds: N,\n nonCanonicalIds: B,\n bookIdToNumber: g,\n isBookIdValid: k,\n isBookNT: x,\n isBookOT: T,\n isBookOTNT: X,\n isBookDC: V,\n allBookNumbers: L,\n firstBook: G,\n lastBook: A,\n extraBooks: H,\n bookNumberToId: C,\n bookNumberToEnglishName: I,\n bookIdToEnglishName: y,\n isCanonical: w,\n isExtraMaterial: q,\n isObsolete: U\n};\nvar l = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = \"Unknown\", t[t.Original = 1] = \"Original\", t[t.Septuagint = 2] = \"Septuagint\", t[t.Vulgate = 3] = \"Vulgate\", t[t.English = 4] = \"English\", t[t.RussianProtestant = 5] = \"RussianProtestant\", t[t.RussianOrthodox = 6] = \"RussianOrthodox\", t))(l || {});\nconst h = class h {\n // private versInfo: Versification;\n constructor(e) {\n n(this, \"name\");\n n(this, \"fullPath\");\n n(this, \"isPresent\");\n n(this, \"hasVerseSegments\");\n n(this, \"isCustomized\");\n n(this, \"baseVersification\");\n n(this, \"scriptureBooks\");\n n(this, \"_type\");\n if (e == null)\n throw new Error(\"Argument undefined\");\n typeof e == \"string\" ? (this.name = e, this._type = l[e]) : (this._type = e, this.name = l[e]);\n }\n get type() {\n return this._type;\n }\n equals(e) {\n return !e.type || !this.type ? !1 : e.type === this.type;\n }\n};\nn(h, \"Original\", new h(l.Original)), n(h, \"Septuagint\", new h(l.Septuagint)), n(h, \"Vulgate\", new h(l.Vulgate)), n(h, \"English\", new h(l.English)), n(h, \"RussianProtestant\", new h(l.RussianProtestant)), n(h, \"RussianOrthodox\", new h(l.RussianOrthodox));\nlet c = h;\nfunction E(t, e) {\n const s = e[0];\n for (let r = 1; r < e.length; r++)\n t = t.split(e[r]).join(s);\n return t.split(s);\n}\nvar D = /* @__PURE__ */ ((t) => (t[t.Valid = 0] = \"Valid\", t[t.UnknownVersification = 1] = \"UnknownVersification\", t[t.OutOfRange = 2] = \"OutOfRange\", t[t.VerseOutOfOrder = 3] = \"VerseOutOfOrder\", t[t.VerseRepeated = 4] = \"VerseRepeated\", t))(D || {});\nconst i = class i {\n constructor(e, s, r, a) {\n /** Not yet implemented. */\n n(this, \"firstChapter\");\n /** Not yet implemented. */\n n(this, \"lastChapter\");\n /** Not yet implemented. */\n n(this, \"lastVerse\");\n /** Not yet implemented. */\n n(this, \"hasSegmentsDefined\");\n /** Not yet implemented. */\n n(this, \"text\");\n /** Not yet implemented. */\n n(this, \"BBBCCCVVVS\");\n /** Not yet implemented. */\n n(this, \"longHashCode\");\n /** The versification of the reference. */\n n(this, \"versification\");\n n(this, \"rtlMark\", \"‏\");\n n(this, \"_bookNum\", 0);\n n(this, \"_chapterNum\", 0);\n n(this, \"_verseNum\", 0);\n n(this, \"_verse\");\n if (r == null && a == null)\n if (e != null && typeof e == \"string\") {\n const o = e, u = s != null && s instanceof c ? s : void 0;\n this.setEmpty(u), this.parse(o);\n } else if (e != null && typeof e == \"number\") {\n const o = s != null && s instanceof c ? s : void 0;\n this.setEmpty(o), this._verseNum = e % i.chapterDigitShifter, this._chapterNum = Math.floor(\n e % i.bookDigitShifter / i.chapterDigitShifter\n ), this._bookNum = Math.floor(e / i.bookDigitShifter);\n } else if (s == null)\n if (e != null && e instanceof i) {\n const o = e;\n this._bookNum = o.bookNum, this._chapterNum = o.chapterNum, this._verseNum = o.verseNum, this._verse = o.verse, this.versification = o.versification;\n } else {\n if (e == null) return;\n const o = e instanceof c ? e : i.defaultVersification;\n this.setEmpty(o);\n }\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else if (e != null && s != null && r != null)\n if (typeof e == \"string\" && typeof s == \"string\" && typeof r == \"string\")\n this.setEmpty(a), this.updateInternal(e, s, r);\n else if (typeof e == \"number\" && typeof s == \"number\" && typeof r == \"number\")\n this._bookNum = e, this._chapterNum = s, this._verseNum = r, this.versification = a ?? i.defaultVersification;\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else\n throw new Error(\"VerseRef constructor not supported.\");\n }\n /**\n * Determines if the verse string is in a valid format (does not consider versification).\n */\n static isVerseParseable(e) {\n return e.length > 0 && \"0123456789\".includes(e[0]) && !e.endsWith(this.verseRangeSeparator) && !e.endsWith(this.verseSequenceIndicator);\n }\n /**\n * Tries to parse the specified string into a verse reference.\n * @param str - The string to attempt to parse.\n * @returns success: `true` if the specified string was successfully parsed, `false` otherwise.\n * @returns verseRef: The result of the parse if successful, or empty VerseRef if it failed\n */\n static tryParse(e) {\n let s;\n try {\n return s = new i(e), { success: !0, verseRef: s };\n } catch (r) {\n if (r instanceof v)\n return s = new i(), { success: !1, verseRef: s };\n throw r;\n }\n }\n /**\n * Gets the reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n * @param bookNum - Book number (this is 1-based, not an index).\n * @param chapterNum - Chapter number.\n * @param verseNum - Verse number.\n * @returns The reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n */\n static getBBBCCCVVV(e, s, r) {\n return e % i.bcvMaxValue * i.bookDigitShifter + (s >= 0 ? s % i.bcvMaxValue * i.chapterDigitShifter : 0) + (r >= 0 ? r % i.bcvMaxValue : 0);\n }\n /**\n * Deserializes a serialized VerseRef.\n * @param serializedVerseRef - Serialized VerseRef to create from.\n * @returns the deserialized VerseRef.\n */\n static fromJSON(e) {\n const { book: s, chapterNum: r, verseNum: a, verse: o, versificationStr: u } = e, f = o || a.toString();\n let d;\n return u && (d = new c(u)), s ? new i(s, r.toString(), f, d) : new i();\n }\n /**\n * Parses a verse string and gets the leading numeric portion as a number.\n * @param verseStr - verse string to parse\n * @returns true if the entire string could be parsed as a single, simple verse number (1-999);\n * false if the verse string represented a verse bridge, contained segment letters, or was invalid\n */\n static tryGetVerseNum(e) {\n let s;\n if (!e)\n return s = -1, { success: !0, vNum: s };\n s = 0;\n let r;\n for (let a = 0; a < e.length; a++) {\n if (r = e[a], r < \"0\" || r > \"9\")\n return a === 0 && (s = -1), { success: !1, vNum: s };\n if (s = s * 10 + +r - 0, s > i.bcvMaxValue)\n return s = -1, { success: !1, vNum: s };\n }\n return { success: !0, vNum: s };\n }\n /**\n * Checks to see if a VerseRef hasn't been set - all values are the default.\n */\n get isDefault() {\n return this.bookNum === 0 && this.chapterNum === 0 && this.verseNum === 0 && this.versification == null;\n }\n /**\n * Gets whether the verse contains multiple verses.\n */\n get hasMultiple() {\n return this._verse != null && (this._verse.includes(i.verseRangeSeparator) || this._verse.includes(i.verseSequenceIndicator));\n }\n /**\n * Gets or sets the book of the reference. Book is the 3-letter abbreviation in capital letters,\n * e.g. `'MAT'`.\n */\n get book() {\n return m.bookNumberToId(this.bookNum, \"\");\n }\n set book(e) {\n this.bookNum = m.bookIdToNumber(e);\n }\n /**\n * Gets or sets the chapter of the reference,. e.g. `'3'`.\n */\n get chapter() {\n return this.isDefault || this._chapterNum < 0 ? \"\" : this._chapterNum.toString();\n }\n set chapter(e) {\n const s = +e;\n this._chapterNum = Number.isInteger(s) ? s : -1;\n }\n /**\n * Gets or sets the verse of the reference, including range, segments, and sequences, e.g. `'4'`,\n * or `'4b-5a, 7'`.\n */\n get verse() {\n return this._verse != null ? this._verse : this.isDefault || this._verseNum < 0 ? \"\" : this._verseNum.toString();\n }\n set verse(e) {\n const { success: s, vNum: r } = i.tryGetVerseNum(e);\n this._verse = s ? void 0 : e.replace(this.rtlMark, \"\"), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = i.tryGetVerseNum(this._verse));\n }\n /**\n * Get or set Book based on book number, e.g. `42`.\n */\n get bookNum() {\n return this._bookNum;\n }\n set bookNum(e) {\n if (e <= 0 || e > m.lastBook)\n throw new v(\n \"BookNum must be greater than zero and less than or equal to last book\"\n );\n this._bookNum = e;\n }\n /**\n * Gets or sets the chapter number, e.g. `3`. `-1` if not valid.\n */\n get chapterNum() {\n return this._chapterNum;\n }\n set chapterNum(e) {\n this.chapterNum = e;\n }\n /**\n * Gets or sets verse start number, e.g. `4`. `-1` if not valid.\n */\n get verseNum() {\n return this._verseNum;\n }\n set verseNum(e) {\n this._verseNum = e;\n }\n /**\n * String representing the versification (should ONLY be used for serialization/deserialization).\n *\n * @remarks This is for backwards compatibility when ScrVers was an enumeration.\n */\n get versificationStr() {\n var e;\n return (e = this.versification) == null ? void 0 : e.name;\n }\n set versificationStr(e) {\n this.versification = this.versification != null ? new c(e) : void 0;\n }\n /**\n * Determines if the reference is valid.\n */\n get valid() {\n return this.validStatus === 0;\n }\n /**\n * Get the valid status for this reference.\n */\n get validStatus() {\n return this.validateVerse(i.verseRangeSeparators, i.verseSequenceIndicators);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits and the verse is 0.\n */\n get BBBCCC() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, 0);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits. If verse is not null\n * (i.e., this reference represents a complex reference with verse\n * segments or bridge) this cannot be used for an exact comparison.\n */\n get BBBCCCVVV() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum);\n }\n /**\n * Gets whether the verse is defined as an excluded verse in the versification.\n * Does not handle verse ranges.\n */\n // eslint-disable-next-line @typescript-eslint/class-literal-property-style\n get isExcluded() {\n return !1;\n }\n /**\n * Parses the reference in the specified string.\n * Optionally versification can follow reference as in GEN 3:11/4\n * Throw an exception if\n * - invalid book name\n * - chapter number is missing or not a number\n * - verse number is missing or does not start with a number\n * - versification is invalid\n * @param verseStr - string to parse e.g. 'MAT 3:11'\n */\n parse(e) {\n if (e = e.replace(this.rtlMark, \"\"), e.includes(\"/\")) {\n const o = e.split(\"/\");\n if (e = o[0], o.length > 1)\n try {\n const u = +o[1].trim();\n this.versification = new c(l[u]);\n } catch {\n throw new v(\"Invalid reference : \" + e);\n }\n }\n const s = e.trim().split(\" \");\n if (s.length !== 2)\n throw new v(\"Invalid reference : \" + e);\n const r = s[1].split(\":\"), a = +r[0];\n if (r.length !== 2 || m.bookIdToNumber(s[0]) === 0 || !Number.isInteger(a) || a < 0 || !i.isVerseParseable(r[1]))\n throw new v(\"Invalid reference : \" + e);\n this.updateInternal(s[0], r[0], r[1]);\n }\n /**\n * Simplifies this verse ref so that it has no bridging of verses or\n * verse segments like `'1a'`.\n */\n simplify() {\n this._verse = void 0;\n }\n /**\n * Makes a clone of the reference.\n *\n * @returns The cloned VerseRef.\n */\n clone() {\n return new i(this);\n }\n toString() {\n const e = this.book;\n return e === \"\" ? \"\" : `${e} ${this.chapter}:${this.verse}`;\n }\n toJSON() {\n let e = this.verse;\n return (e === \"\" || e === this.verseNum.toString()) && (e = void 0), {\n book: this.book,\n chapterNum: this.chapterNum,\n verseNum: this.verseNum,\n verse: e,\n versificationStr: this.versificationStr\n };\n }\n /**\n * Compares this `VerseRef` with supplied one.\n * @param verseRef - object to compare this one to.\n * @returns `true` if this `VerseRef` is equal to the supplied one, `false` otherwise.\n */\n equals(e) {\n return e instanceof i ? e._bookNum === this._bookNum && e._chapterNum === this._chapterNum && e._verseNum === this._verseNum && e.verse === this.verse && (e.versification == null && this.versification == null || e.versification != null && this.versification != null && e.versification.equals(this.versification)) : !1;\n }\n /**\n * Enumerate all individual verses contained in a VerseRef.\n * Verse ranges are indicated by \"-\" and consecutive verses by \",\"s.\n * Examples:\n * GEN 1:2 returns GEN 1:2\n * GEN 1:1a-3b,5 returns GEN 1:1a, GEN 1:2, GEN 1:3b, GEN 1:5\n * GEN 1:2a-2c returns //! ??????\n *\n * @param specifiedVersesOnly - if set to true return only verses that are\n * explicitly specified only, not verses within a range. Defaults to `false`.\n * @param verseRangeSeparators - Verse range separators.\n * Defaults to `VerseRef.verseRangeSeparators`.\n * @param verseSequenceSeparators - Verse sequence separators.\n * Defaults to `VerseRef.verseSequenceIndicators`.\n * @returns An array of all single verse references in this VerseRef.\n */\n allVerses(e = !1, s = i.verseRangeSeparators, r = i.verseSequenceIndicators) {\n if (this._verse == null || this.chapterNum <= 0)\n return [this.clone()];\n const a = [], o = E(this._verse, r);\n for (const u of o.map((f) => E(f, s))) {\n const f = this.clone();\n f.verse = u[0];\n const d = f.verseNum;\n if (a.push(f), u.length > 1) {\n const b = this.clone();\n if (b.verse = u[1], !e)\n for (let p = d + 1; p < b.verseNum; p++) {\n const J = new i(\n this._bookNum,\n this._chapterNum,\n p,\n this.versification\n );\n this.isExcluded || a.push(J);\n }\n a.push(b);\n }\n }\n return a;\n }\n /**\n * Validates a verse number using the supplied separators rather than the defaults.\n */\n validateVerse(e, s) {\n if (!this.verse)\n return this.internalValid;\n let r = 0;\n for (const a of this.allVerses(!0, e, s)) {\n const o = a.internalValid;\n if (o !== 0)\n return o;\n const u = a.BBBCCCVVV;\n if (r > u)\n return 3;\n if (r === u)\n return 4;\n r = u;\n }\n return 0;\n }\n /**\n * Gets whether a single verse reference is valid.\n */\n get internalValid() {\n return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > m.lastBook ? 2 : (m.isCanonical(this._bookNum), 0);\n }\n setEmpty(e = i.defaultVersification) {\n this._bookNum = 0, this._chapterNum = -1, this._verse = void 0, this.versification = e;\n }\n updateInternal(e, s, r) {\n this.bookNum = m.bookIdToNumber(e), this.chapter = s, this.verse = r;\n }\n};\nn(i, \"defaultVersification\", c.English), n(i, \"verseRangeSeparator\", \"-\"), n(i, \"verseSequenceIndicator\", \",\"), n(i, \"verseRangeSeparators\", [i.verseRangeSeparator]), n(i, \"verseSequenceIndicators\", [i.verseSequenceIndicator]), n(i, \"chapterDigitShifter\", 1e3), n(i, \"bookDigitShifter\", i.chapterDigitShifter * i.chapterDigitShifter), n(i, \"bcvMaxValue\", i.chapterDigitShifter - 1), /**\n * The valid status of the VerseRef.\n */\nn(i, \"ValidStatusType\", D);\nlet M = i;\nclass v extends Error {\n}\nexport {\n _ as BookSet,\n m as Canon,\n c as ScrVers,\n l as ScrVersType,\n M as VerseRef,\n v as VerseRefException\n};\n//# sourceMappingURL=index.es.js.map\n","import { type ClassValue, clsx } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\nconst twMergeCustom = extendTailwindMerge({ prefix: 'pr-' });\n\n// shadcn/ui uses this export in its boilerplate code\n// eslint-disable-next-line import/prefer-default-export\nexport function cn(...inputs: ClassValue[]) {\n return twMergeCustom(clsx(inputs));\n}\n","import React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\n\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nexport const DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nexport const DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nexport type DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n className?: string;\n};\n\nexport type DropdownMenuContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n className?: string;\n sideOffset?: number;\n};\n\nexport type DropdownMenuItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n className?: string;\n checked?: boolean;\n};\n\nexport type DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.RadioItem\n> & {\n className?: string;\n};\n\nexport type DropdownMenuLabelProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n className?: string;\n};\n\nexport type DropdownMenuShortcutProps = React.HTMLAttributes & {\n className?: string;\n};\n\nexport const DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubTriggerProps\n>(({ className, inset, children, ...props }, ref) => (\n \n {children}\n \n \n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nexport const DropdownMenuSubContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubContentProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nexport const DropdownMenuContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuContentProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n \n \n \n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport const DropdownMenuItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuItemProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nexport const DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuCheckboxItemProps\n>(({ className, children, checked, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nexport const DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuRadioItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nexport const DropdownMenuLabel = React.forwardRef<\n React.ElementRef,\n DropdownMenuLabelProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nexport const DropdownMenuSeparator = React.forwardRef<\n React.ElementRef,\n DropdownMenuSeparatorProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nexport function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps) {\n return (\n \n );\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport interface InputProps extends React.InputHTMLAttributes {}\n\nexport const Input = React.forwardRef(\n ({ className, type, ...props }, ref) => {\n return (\n \n );\n },\n);\nInput.displayName = 'Input';\n","import { FocusEventHandler, forwardRef, KeyboardEvent, MouseEventHandler } from 'react';\nimport { History } from 'lucide-react';\nimport { Input as ShadInput } from '@/components/shadcn-ui/input';\n\nexport type BookChapterInputProps = {\n handleSearch: (searchString: string) => void;\n handleKeyDown: (event: KeyboardEvent) => void;\n handleOnClick: MouseEventHandler;\n handleSubmit: () => void;\n onFocus?: FocusEventHandler;\n value: string;\n placeholder: string;\n};\n\n// Shadcn Input sets type to \"button\"- HAVE to prop spread before setting type\nconst BookChapterInput = forwardRef(\n (\n { handleSearch, handleKeyDown, handleOnClick, handleSubmit, ...props }: BookChapterInputProps,\n ref,\n ) => {\n return (\n
\n handleSearch(event.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n handleSubmit();\n }\n handleKeyDown(e);\n }}\n onClick={handleOnClick}\n ref={ref}\n />\n {\n // eslint-disable-next-line no-console\n console.log('back in history');\n }}\n />\n
\n );\n },\n);\n\nexport default BookChapterInput;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type ChapterSelectProps = {\n /**\n * Callback to run when a chapter div is selected\n *\n * @param chapterNumber Number of the chapter that has been selected\n */\n handleSelectChapter: (chapterNumber: number) => void;\n /** The highest chapter number in the book (of course equal to number of chapters in the book) */\n endChapter: number;\n /** The chapter number that is currently selected */\n activeChapter: number;\n /** The chapter number that is currently highlighted using keyboard or mouse navigation */\n highlightedChapter: number;\n /**\n * Callback to run when a chapter is highlighted by the user\n *\n * @param chapterNumber The chapter that is highlighted\n */\n handleHighlightedChapter: (chapterNumber: number) => void;\n};\n\nfunction ChapterSelect({\n handleSelectChapter,\n endChapter,\n activeChapter,\n highlightedChapter,\n handleHighlightedChapter,\n}: ChapterSelectProps) {\n const chapters = Array.from({ length: endChapter }, (_, i) => i + 1);\n\n const handleMouse = useCallback(\n (chapterNumber: number) => {\n handleHighlightedChapter(chapterNumber);\n },\n [handleHighlightedChapter],\n );\n\n return (\n
\n {chapters.map((chapter) => (\n {\n event.preventDefault();\n event.stopPropagation();\n handleSelectChapter(chapter);\n }}\n role=\"button\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n handleSelectChapter(chapter);\n }\n }}\n tabIndex={0}\n onMouseMove={() => handleMouse(chapter)}\n >\n {chapter}\n
\n ))}\n
\n );\n}\n\nexport default ChapterSelect;\n","import { Canon } from '@sillsdev/scripture';\nimport { PropsWithChildren, KeyboardEvent, forwardRef } from 'react';\nimport { DropdownMenuItem as ShadDropdownMenuItem } from '@/components/shadcn-ui/dropdown-menu';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport type BookType = 'OT' | 'NT' | 'DC';\n\ntype BookMenuItemProps = PropsWithChildren<{\n /** String id of book */\n bookId: string;\n /** Callback to run when a book menu item is selected */\n handleSelectBook: () => void;\n /** Indicates if this menu item is currently selected */\n isSelected: boolean;\n /** Function that is called upon highlighting a book in the dropdown menu */\n handleHighlightBook: () => void;\n /**\n * Function that is called on pressing a key\n *\n * @param event Event that contains information about the key stroke\n */\n handleKeyDown: (event: KeyboardEvent) => void;\n /**\n * Type of book associated with this menu item, coordinates color labels ? Mock up has the labels\n * coordinated to genre\n */\n bookType: BookType;\n}>;\n\nconst BookMenuItem = forwardRef(\n (\n {\n bookId,\n handleSelectBook,\n isSelected,\n handleHighlightBook,\n handleKeyDown,\n bookType,\n children,\n }: BookMenuItemProps,\n ref,\n ) => {\n return (\n {\n // preventDefault() here prevents the entire dropdown menu from closing when selecting this item\n event.preventDefault();\n handleSelectBook();\n }}\n onKeyDown={(event: KeyboardEvent) => {\n handleKeyDown(event);\n }}\n onFocus={handleHighlightBook}\n onMouseMove={handleHighlightBook}\n >\n \n {Canon.bookIdToEnglishName(bookId)}\n \n {isSelected &&
{children}
}\n \n );\n },\n);\n\nexport default BookMenuItem;\n","import { DropdownMenuLabel as ShadDropdownMenuLabel } from '@/components/shadcn-ui/dropdown-menu';\nimport { Bookmark, Clock, ArrowDownWideNarrow } from 'lucide-react';\n\nexport type GoToMenuItemProps = {\n handleSort: () => void;\n handleLocationHistory: () => void;\n handleBookmarks: () => void;\n};\n\nfunction GoToMenuItem({ handleSort, handleLocationHistory, handleBookmarks }: GoToMenuItemProps) {\n return (\n \n

Go To

\n
\n \n \n \n
\n
\n );\n}\n\nexport default GoToMenuItem;\n","import {\n KeyboardEvent as ReactKeyboardEvent,\n useCallback,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\nimport { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference, getChaptersForBook } from 'platform-bible-utils';\nimport {\n DropdownMenuTrigger as ShadDropdownMenuTrigger,\n DropdownMenu as ShadDropdownMenu,\n DropdownMenuContent as ShadDropdownMenuContent,\n DropdownMenuLabel as ShadDropdownMenuLabel,\n DropdownMenuSeparator as ShadDropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport BookChapterInput from '@/components/advanced-components/book-chapter-control/book-chapter-input.component';\nimport ChapterSelect from '@/components/advanced-components/book-chapter-control/chapter-select.component';\nimport BookMenuItem, {\n BookType,\n} from '@/components/advanced-components/book-chapter-control/book-menu-item.component';\nimport GoToMenuItem from './go-to-menu-item.component';\n\ntype BookTypeLabels = {\n [bookType in BookType]: string;\n};\ntype BookChapterControlProps = {\n scrRef: ScriptureReference;\n handleSubmit: (scrRef: ScriptureReference) => void;\n};\n\nconst ALL_BOOK_IDS = Canon.allBookIds;\nconst BOOK_TYPE_LABELS: BookTypeLabels = {\n OT: 'Old Testament',\n NT: 'New Testament',\n DC: 'Deuterocanon',\n};\nconst BOOK_TYPE_ARRAY: BookType[] = ['OT', 'NT', 'DC'];\n// This is the height of three menu items to offset scrolling to the selected menu item\n// If you use menuItemRef.clientHeight- includes height of chapter div which is too big\nconst SCROLL_OFFSET = 32 + 32 + 32;\nconst SEARCH_QUERY_FORMATS = [\n /^(\\w+)$/i, // Matches a single word (book name or id)\n /^(\\w+)(?:\\s(\\d+))$/i, // Matches a word followed by a chapter number\n /^(\\w+)(?:\\s(\\d+):(\\d+))$/i, // Matches a word followed by a chapter and verse number\n];\nconst fetchGroupedBooks = (bookType: BookType) => {\n const groupedBooks = {\n OT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookOT(bookId)),\n NT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookNT(bookId)),\n DC: ALL_BOOK_IDS.filter((bookId) => Canon.isBookDC(bookId)),\n };\n return groupedBooks[bookType];\n};\nconst fetchEndChapter = (bookId: string) => {\n // getChaptersForBook returns -1 if not found in scrBookData\n // scrBookData only includes OT and NT, so all DC will return -1\n return getChaptersForBook(Canon.bookIdToNumber(bookId));\n};\n\n/**\n * Gets all of the English names from book ids\n *\n * @returns String[]\n */\nfunction getAllEnglishNames(): string[] {\n const allEnglishNames = ALL_BOOK_IDS.map((bookId) => {\n return Canon.bookIdToEnglishName(bookId);\n });\n return allEnglishNames;\n}\n\n/**\n * Determines if bookName is in allEnglishNames\n *\n * @param bookName Book English name\n * @returns True if bookName is included, false otherwise\n */\nfunction isValidBookEnglishName(bookName: string): boolean {\n return getAllEnglishNames().includes(bookName);\n}\n\n/**\n * Gets a bookId from given English name\n *\n * @param bookName Book English name\n * @returns BookId of provided bookName, undefined otherwise\n */\nfunction getBookIdFromEnglishName(bookName: string): string | undefined {\n // Convert bookName to lowercase and then capitalize the first letter\n const formattedBookName = bookName.toLowerCase().replace(/^\\w/, (c) => c.toUpperCase());\n\n if (isValidBookEnglishName(formattedBookName)) {\n const matchingBookId = ALL_BOOK_IDS.find((bookId) => {\n return Canon.bookIdToEnglishName(bookId) === formattedBookName;\n });\n return matchingBookId;\n }\n\n return undefined;\n}\n\nfunction BookChapterControl({ scrRef, handleSubmit }: BookChapterControlProps) {\n const [searchQuery, setSearchQuery] = useState('');\n const [selectedBookId, setSelectedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [highlightedChapter, setHighlightedChapter] = useState(scrRef.chapterNum ?? 0);\n const [highlightedBookId, setHighlightedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [isContentOpen, setIsContentOpen] = useState(false);\n const [isContentOpenDelayed, setIsContentOpenDelayed] = useState(isContentOpen);\n\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const inputRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const contentRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const menuItemRef = useRef(undefined!);\n\n const fetchFilteredBooks = useCallback(\n (bookType: BookType) => {\n return fetchGroupedBooks(bookType).filter((bookId: string) => {\n const englishNameLowerCase = Canon.bookIdToEnglishName(bookId).toLowerCase();\n const normalizedQuery = searchQuery.replace(/[^a-zA-Z]/g, '').toLowerCase();\n return (\n englishNameLowerCase.includes(normalizedQuery) || // Match book name\n bookId.toLowerCase().includes(normalizedQuery) // Match book ID\n );\n });\n },\n [searchQuery],\n );\n\n const handleSearchInput = (searchString: string) => {\n setSearchQuery(searchString);\n };\n\n /**\n * Whether to prevent radix's logic from closing the dropdown. This is important because radix\n * tries to close the dropdown when the input first focuses, and we don't want it to do that. But\n * we don't want to prevent the dropdown from closing when we click away from the input, so we\n * don't want to just keep it open if the input is focused\n */\n const shouldPreventAutoClosing = useRef(false);\n\n const controlMenuState = useCallback((open: boolean) => {\n if (shouldPreventAutoClosing.current) {\n shouldPreventAutoClosing.current = false;\n return;\n }\n setIsContentOpen(open);\n }, []);\n\n const updateReference = useCallback(\n (bookId: string, shouldClose: boolean, chapter?: number, verse?: number) => {\n setHighlightedChapter(\n Canon.bookNumberToId(scrRef.bookNum) !== bookId ? 1 : scrRef.chapterNum,\n );\n\n if (shouldClose || fetchEndChapter(bookId) === -1) {\n handleSubmit({\n bookNum: Canon.bookIdToNumber(bookId),\n chapterNum: chapter || 1,\n verseNum: verse || 1,\n });\n\n setIsContentOpen(false);\n setSearchQuery('');\n return;\n }\n\n setSelectedBookId(selectedBookId !== bookId ? bookId : '');\n setIsContentOpen(!shouldClose);\n },\n [handleSubmit, scrRef.bookNum, scrRef.chapterNum, selectedBookId],\n );\n\n const handleSelectChapter = (chapterNumber: number) => {\n if (chapterNumber <= 0 || chapterNumber > fetchEndChapter(selectedBookId)) {\n return;\n }\n updateReference(selectedBookId, true, chapterNumber);\n };\n\n const handleInputSubmit = useCallback(() => {\n SEARCH_QUERY_FORMATS.forEach((format) => {\n const matches = searchQuery.match(format);\n if (matches) {\n // Book should be a bookId or an english name\n const [book, chapter = undefined, verse = undefined] = matches.slice(1);\n const englishName = getBookIdFromEnglishName(book);\n\n if (Canon.isBookIdValid(book) || englishName) {\n updateReference(\n englishName ?? book,\n true,\n chapter ? parseInt(chapter, 10) : 1,\n verse ? parseInt(verse, 10) : 1,\n );\n }\n }\n });\n }, [updateReference, searchQuery]);\n\n const handleKeyDownInput = useCallback(\n (event: ReactKeyboardEvent) => {\n if (!isContentOpen) {\n setIsContentOpen(true);\n } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (\n typeof menuItemRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n menuItemRef.current !== null\n ) {\n menuItemRef.current.focus();\n } else if (\n typeof contentRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n contentRef.current !== null\n ) {\n contentRef.current.focus();\n }\n event.preventDefault();\n }\n },\n [isContentOpen],\n );\n\n const handleKeyDownContent = (event: ReactKeyboardEvent) => {\n // When the dropdown menu has focus, key strokes should give focus to the input component,\n // unless they're navigation keys (arrows and enter)\n const { key } = event;\n if (\n key === 'ArrowRight' ||\n key === 'ArrowLeft' ||\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter'\n ) {\n return;\n }\n\n inputRef.current.dispatchEvent(new KeyboardEvent('keydown', { key }));\n inputRef.current.focus();\n };\n\n const handleKeyDownMenuItem = (event: ReactKeyboardEvent) => {\n const { key } = event;\n if (highlightedBookId === selectedBookId) {\n if (key === 'Enter') {\n event.preventDefault();\n updateReference(selectedBookId, true, highlightedChapter);\n return;\n }\n\n let chapterOffSet = 0;\n if (key === 'ArrowRight') {\n if (highlightedChapter < fetchEndChapter(highlightedBookId)) {\n chapterOffSet = 1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowLeft') {\n if (highlightedChapter > 1) {\n chapterOffSet = -1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowDown') {\n chapterOffSet = 6;\n } else if (key === 'ArrowUp') {\n chapterOffSet = -6;\n }\n if (\n highlightedChapter + chapterOffSet <= 0 ||\n highlightedChapter + chapterOffSet > fetchEndChapter(highlightedBookId)\n ) {\n setHighlightedChapter(0);\n } else if (chapterOffSet !== 0) {\n setHighlightedChapter(highlightedChapter + chapterOffSet);\n event.preventDefault();\n }\n }\n };\n\n useEffect(() => {\n if (selectedBookId === highlightedBookId) {\n if (selectedBookId === Canon.bookNumberToId(scrRef.bookNum)) {\n setHighlightedChapter(scrRef.chapterNum);\n } else {\n setHighlightedChapter(1);\n }\n } else {\n setHighlightedChapter(0);\n }\n }, [highlightedBookId, scrRef.bookNum, scrRef.chapterNum, selectedBookId]);\n\n // The purpose of these useLayoutEffects and timeout is to delay the scroll just\n // enough so that the refs are defined and available when they are used after the timeout\n useLayoutEffect(() => {\n setIsContentOpenDelayed(isContentOpen);\n }, [isContentOpen]);\n\n useLayoutEffect(() => {\n const scrollTimeout = setTimeout(() => {\n if (isContentOpenDelayed && contentRef.current && menuItemRef.current) {\n const menuItemOffsetTop = menuItemRef.current.offsetTop;\n const scrollPosition = menuItemOffsetTop - SCROLL_OFFSET;\n contentRef.current.scrollTo({ top: scrollPosition, behavior: 'instant' });\n }\n }, 10);\n return () => {\n clearTimeout(scrollTimeout);\n };\n }, [isContentOpenDelayed]);\n\n return (\n
\n \n \n {\n setSelectedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedChapter(scrRef.chapterNum > 0 ? scrRef.chapterNum : 0);\n setIsContentOpen(true);\n inputRef.current.focus();\n }}\n onFocus={() => {\n // Radix thinks we want to close because the input is being focused. Prevent that\n shouldPreventAutoClosing.current = true;\n }}\n handleSubmit={handleInputSubmit}\n placeholder={`${Canon.bookNumberToEnglishName(scrRef.bookNum)} ${scrRef.chapterNum}:${scrRef.verseNum}`}\n />\n \n \n console.log('sorting')}\n handleLocationHistory={() => console.log('location history')}\n handleBookmarks={() => console.log('bookmarks')}\n />\n {BOOK_TYPE_ARRAY.map(\n (bookType, bookTypeIndex) =>\n fetchFilteredBooks(bookType).length > 0 && (\n
\n \n {BOOK_TYPE_LABELS[bookType]}\n \n\n {fetchFilteredBooks(bookType).map((bookId) => (\n
\n updateReference(bookId, false)}\n isSelected={selectedBookId === bookId}\n handleHighlightBook={() => setHighlightedBookId(bookId)}\n handleKeyDown={handleKeyDownMenuItem}\n bookType={bookType}\n ref={(element: HTMLDivElement) => {\n if (selectedBookId === bookId) menuItemRef.current = element;\n }}\n >\n {\n setHighlightedChapter(chapterNumber);\n }}\n />\n \n
\n ))}\n {BOOK_TYPE_ARRAY.length - 1 !== bookTypeIndex ? (\n \n ) : undefined}\n
\n ),\n )}\n \n
\n
\n );\n}\n\nexport default BookChapterControl;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Table = React.forwardRef>(\n ({ className, ...props }, ref) => (\n
\n \n
\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n tr]:last:pr-border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const buttonVariants = cva(\n 'pr-twp pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-md pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50',\n {\n variants: {\n variant: {\n default: 'pr-bg-primary pr-text-primary-foreground hover:pr-bg-primary/90',\n destructive: 'pr-bg-destructive pr-text-destructive-foreground hover:pr-bg-destructive/90',\n outline:\n 'pr-border pr-border-input pr-bg-background hover:pr-bg-accent hover:pr-text-accent-foreground',\n secondary: 'pr-bg-secondary pr-text-secondary-foreground hover:pr-bg-secondary/80',\n ghost: 'hover:pr-bg-accent hover:pr-text-accent-foreground',\n link: 'pr-text-primary pr-underline-offset-4 hover:pr-underline',\n },\n size: {\n default: 'pr-h-10 pr-px-4 pr-py-2',\n sm: 'pr-h-9 pr-rounded-md pr-px-3',\n lg: 'pr-h-11 pr-rounded-md pr-px-8',\n icon: 'pr-h-10 pr-w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n return (\n \n );\n },\n);\nButton.displayName = 'Button';\n","import React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n span]:pr-line-clamp-1',\n className,\n )}\n {...props}\n >\n {children}\n \n \n \n \n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = 'popper', ...props }, ref) => (\n \n \n \n \n {children}\n \n \n \n \n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n\n {children}\n \n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n","import { ChevronLeftIcon, ChevronRightIcon, ArrowLeftIcon, ArrowRightIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\n\ninterface DataTablePaginationProps {\n table: Table;\n}\n\nfunction DataTablePagination({ table }: DataTablePaginationProps) {\n return (\n
\n
\n
\n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected\n
\n
\n

Rows per page

\n {\n table.setPageSize(Number(value));\n }}\n >\n \n \n \n \n {[10, 20, 30, 40, 50].map((pageSize) => (\n \n {pageSize}\n \n ))}\n \n \n
\n
\n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n
\n
\n table.setPageIndex(0)}\n disabled={!table.getCanPreviousPage()}\n >\n Go to first page\n \n \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Go to previous page\n \n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Go to next page\n \n \n table.setPageIndex(table.getPageCount() - 1)}\n disabled={!table.getCanNextPage()}\n >\n Go to last page\n \n \n
\n
\n
\n );\n}\n\nexport default DataTablePagination;\n","import { DropdownMenuTrigger } from '@radix-ui/react-dropdown-menu';\nimport { FilterIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\n\ninterface DataTableViewOptionsProps {\n table: Table;\n}\n\nfunction DataTableViewOptions({ table }: DataTableViewOptionsProps) {\n return (\n \n \n \n \n \n Toggle columns\n \n {table\n .getAllColumns()\n .filter((column) => column.getCanHide())\n .map((column) => {\n return (\n column.toggleVisibility(!!value)}\n >\n {column.id}\n \n );\n })}\n \n \n );\n}\n\nexport default DataTableViewOptions;\n","import { useState } from 'react';\n\nimport {\n ColumnDef,\n ColumnFiltersState,\n Row,\n SortingState,\n VisibilityState,\n flexRender,\n getCoreRowModel,\n getFilteredRowModel,\n getPaginationRowModel,\n getSortedRowModel,\n useReactTable,\n Table as tsTable,\n} from '@tanstack/react-table';\n\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { Button } from '@/components/shadcn-ui/button';\nimport DataTablePagination from './data-table-pagination.component';\nimport DataTableViewOptions from './data-table-column-toggle.component';\n\ninterface DataTableProps {\n columns: ColumnDef[];\n data: TData[];\n enablePagination?: boolean;\n showPaginationControls?: boolean;\n showColumnVisibilityControls?: boolean;\n onRowClickHandler?: (row: Row, table: tsTable) => void;\n}\n\nfunction DataTable({\n columns,\n data,\n enablePagination = false,\n showPaginationControls = false,\n showColumnVisibilityControls = false,\n onRowClickHandler = () => {},\n}: DataTableProps) {\n const [sorting, setSorting] = useState([]);\n const [columnFilters, setColumnFilters] = useState([]);\n const [columnVisibility, setColumnVisibility] = useState({});\n const [rowSelection, setRowSelection] = useState({});\n\n const table = useReactTable({\n data,\n columns,\n getCoreRowModel: getCoreRowModel(),\n ...(enablePagination && { getPaginationRowModel: getPaginationRowModel() }),\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n onColumnFiltersChange: setColumnFilters,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnVisibilityChange: setColumnVisibility,\n onRowSelectionChange: setRowSelection,\n state: {\n sorting,\n columnFilters,\n columnVisibility,\n rowSelection,\n },\n });\n\n return (\n
\n {showColumnVisibilityControls && }\n
\n \n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers.map((header) => {\n return (\n \n {header.isPlaceholder\n ? undefined\n : flexRender(header.column.columnDef.header, header.getContext())}\n \n );\n })}\n \n ))}\n \n \n {table.getRowModel().rows?.length ? (\n table.getRowModel().rows.map((row) => (\n onRowClickHandler(row, table)}\n key={row.id}\n data-state={row.getIsSelected() && 'selected'}\n >\n {row.getVisibleCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))\n ) : (\n \n \n No results.\n \n \n )}\n \n
\n
\n {enablePagination && (\n
\n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Previous\n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Next\n \n
\n )}\n {enablePagination && showPaginationControls && }\n
\n );\n}\n\nexport default DataTable;\n","import {\n Autocomplete as MuiComboBox,\n AutocompleteChangeDetails,\n AutocompleteChangeReason,\n TextField as MuiTextField,\n AutocompleteValue,\n} from '@mui/material';\nimport { FocusEventHandler, SyntheticEvent } from 'react';\nimport '@/components/combo-box.component.css';\n\nexport type ComboBoxLabelOption = { label: string };\nexport type ComboBoxOption = string | number | ComboBoxLabelOption;\nexport type ComboBoxValue = AutocompleteValue;\nexport type ComboBoxChangeDetails = AutocompleteChangeDetails;\nexport type ComboBoxChangeReason = AutocompleteChangeReason;\n\nexport type ComboBoxProps = {\n /** Optional unique identifier */\n id?: string;\n /** Text label title for combobox */\n title?: string;\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * If `true`, the component can be cleared, and will have a button to do so\n *\n * @default true\n */\n isClearable?: boolean;\n /**\n * True when (input related to) switch is erroneous\n *\n * @default false\n */\n hasError?: boolean;\n /**\n * If `true`, the input will take up the full width of its container.\n *\n * @default false\n */\n isFullWidth?: boolean;\n /** Width of the combobox in pixels. Setting this prop overrides the `isFullWidth` prop */\n width?: number;\n /** List of available options for the dropdown menu */\n options?: readonly T[];\n /** Additional css classes to help with unique styling of the combo box */\n className?: string;\n /**\n * The selected value that the combo box currently holds. Must be shallow equal to one of the\n * options entries.\n */\n value?: T;\n /** Triggers when content of textfield is changed */\n onChange?: (\n event: SyntheticEvent,\n value: ComboBoxValue,\n reason?: ComboBoxChangeReason,\n details?: ComboBoxChangeDetails | undefined,\n ) => void;\n /** Triggers when textfield gets focus */\n onFocus?: FocusEventHandler; // Storybook crashes when giving the combo box focus\n /** Triggers when textfield loses focus */\n onBlur?: FocusEventHandler;\n /** Used to determine the string value for a given option. */\n getOptionLabel?: (option: ComboBoxOption) => string;\n};\n\n/**\n * Dropdown selector displaying various options from which to choose\n *\n * Thanks to MUI for heavy inspiration and documentation\n * https://mui.com/material-ui/getting-started/overview/\n */\nfunction ComboBox({\n id,\n title,\n isDisabled = false,\n isClearable = true,\n hasError = false,\n isFullWidth = false,\n width,\n options = [],\n className,\n value,\n onChange,\n onFocus,\n onBlur,\n getOptionLabel,\n}: ComboBoxProps) {\n return (\n \n id={id}\n disablePortal\n disabled={isDisabled}\n disableClearable={!isClearable}\n fullWidth={isFullWidth}\n options={options}\n className={`papi-combo-box ${hasError ? 'error' : ''} ${className ?? ''}`}\n value={value}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n getOptionLabel={getOptionLabel}\n renderInput={(props) => (\n \n )}\n />\n );\n}\n\nexport default ComboBox;\n","import { SyntheticEvent, useEffect, useState } from 'react';\nimport { FormControlLabel } from '@mui/material';\nimport ComboBox from '@/components/combo-box.component';\n\nexport type ChapterRangeSelectorProps = {\n handleSelectStartChapter: (chapter: number) => void;\n handleSelectEndChapter: (chapter: number) => void;\n isDisabled?: boolean;\n chapterCount: number;\n};\n\nexport default function ChapterRangeSelector({\n handleSelectStartChapter,\n handleSelectEndChapter,\n isDisabled = false,\n chapterCount,\n}: ChapterRangeSelectorProps) {\n const [startChapter, setStartChapter] = useState(1);\n const [endChapter, setEndChapter] = useState(chapterCount);\n const [chapterOptions, setChapterOptions] = useState(\n Array.from({ length: chapterCount }, (_, i) => i + 1),\n );\n\n useEffect(() => {\n setStartChapter(1);\n handleSelectStartChapter(1);\n setEndChapter(chapterCount);\n handleSelectEndChapter(chapterCount);\n setChapterOptions(Array.from({ length: chapterCount }, (_, i) => i + 1));\n }, [chapterCount, handleSelectEndChapter, handleSelectStartChapter]);\n\n const onChangeStartChapter = (_event: SyntheticEvent, value: number) => {\n setStartChapter(value);\n handleSelectStartChapter(value);\n if (value > endChapter) {\n setEndChapter(value);\n handleSelectEndChapter(value);\n }\n };\n\n const onChangeEndChapter = (_event: SyntheticEvent, value: number) => {\n setEndChapter(value);\n handleSelectEndChapter(value);\n if (value < startChapter) {\n setStartChapter(value);\n handleSelectStartChapter(value);\n }\n };\n\n return (\n <>\n onChangeStartChapter(e, value as number)}\n className=\"book-selection-chapter\"\n key=\"start chapter\"\n isClearable={false}\n options={chapterOptions}\n getOptionLabel={(option) => option.toString()}\n value={startChapter}\n isDisabled={isDisabled}\n />\n }\n label=\"Chapters\"\n labelPlacement=\"start\"\n />\n onChangeEndChapter(e, value as number)}\n className=\"book-selection-chapter\"\n key=\"end chapter\"\n isClearable={false}\n options={chapterOptions}\n getOptionLabel={(option) => option.toString()}\n value={endChapter}\n isDisabled={isDisabled}\n />\n }\n label=\"to\"\n labelPlacement=\"start\"\n />\n \n );\n}\n","enum LabelPosition {\n After = 'after',\n Before = 'before',\n Above = 'above',\n Below = 'below',\n}\n\nexport default LabelPosition;\n","import { FormLabel, Checkbox as MuiCheckbox } from '@mui/material';\nimport { ChangeEvent } from 'react';\nimport '@/components/checkbox.component.css';\nimport LabelPosition from '@/components/label-position.model';\n\nexport type CheckboxProps = {\n /** Optional unique identifier */\n id?: string;\n /** If `true`, the component is checked. */\n isChecked?: boolean;\n /**\n * If specified, the label that will appear associated with the checkbox.\n *\n * @default '' (no label will be shown)\n */\n labelText?: string;\n /**\n * Indicates the position of the label relative to the checkbox.\n *\n * @default 'after'\n */\n labelPosition?: LabelPosition;\n /**\n * If `true`, the component is in the indeterminate state.\n *\n * @default false\n */\n isIndeterminate?: boolean;\n /** If `true`, the component is checked by default. */\n isDefaultChecked?: boolean;\n /**\n * Enabled status of switch\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * True when (input related to) switch is erroneous\n *\n * @default false\n */\n hasError?: boolean;\n /** Additional css classes to help with unique styling of the switch */\n className?: string;\n /**\n * Callback fired when the state is changed.\n *\n * @param event The event source of the callback. You can pull out the new value by accessing\n * event.target.value (string). You can pull out the new checked state by accessing\n * event.target.checked (boolean).\n */\n onChange?: (event: ChangeEvent) => void;\n};\n\n/* function CheckboxContainer({ labelText? = '', isDisabled : boolean, hasError : boolean, children? }) {\n return (\n \n {children}\n labelText\n \n );\n} */\n\n/** Primary UI component for user interaction */\nfunction Checkbox({\n id,\n isChecked,\n labelText = '',\n labelPosition = LabelPosition.After,\n isIndeterminate = false,\n isDefaultChecked,\n isDisabled = false,\n hasError = false,\n className,\n onChange,\n}: CheckboxProps) {\n const checkBox = (\n \n );\n\n let result;\n\n if (labelText) {\n const preceding =\n labelPosition === LabelPosition.Before || labelPosition === LabelPosition.Above;\n\n const labelSpan = (\n \n {labelText}\n \n );\n\n const labelIsInline =\n labelPosition === LabelPosition.Before || labelPosition === LabelPosition.After;\n\n const label = labelIsInline ? labelSpan :
{labelSpan}
;\n\n const checkBoxElement = labelIsInline ? checkBox :
{checkBox}
;\n\n result = (\n \n {preceding && label}\n {checkBoxElement}\n {!preceding && label}\n \n );\n } else {\n result = checkBox;\n }\n return result;\n}\n\nexport default Checkbox;\n","import Checkbox from '@/components/checkbox.component';\nimport '@/components/checklist.component.css';\n\nexport type ChecklistProps = {\n /** Optional string representing the id attribute of the fieldset element */\n id?: string;\n /** Optional string representing CSS class name(s) for styling */\n className?: string;\n /** Optional string representing legend for fieldset element */\n legend?: string;\n /** Array of strings representing the legend text for the fieldset element */\n listItems: string[];\n /** Array of strings representing items to be displayed as checkboxes in the checklist */\n selectedListItems: string[];\n /** Function that takes a string param and is called when a checkbox item is selected or deselected */\n handleSelectListItem: (item: string) => void;\n /**\n * Optional function that takes a string param and returns a string representing the label text\n * for the checkbox associated with that item\n */\n createLabel?: (item: string) => string;\n};\n\n/**\n * Renders a list of checkboxes wrapped in a fieldset element. Each checkbox corresponds to an item\n * from the `listItems` array.\n */\nexport default function Checklist({\n id,\n className,\n legend,\n listItems,\n selectedListItems,\n handleSelectListItem,\n createLabel,\n}: ChecklistProps) {\n return (\n
\n {legend && {legend}}\n {listItems.map((item) => (\n handleSelectListItem(item)}\n />\n ))}\n
\n );\n}\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof propValue === 'function' && !isClassComponent(propValue)) {\n warningHint = 'Did you accidentally provide a plain function component instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element type that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nexport default chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return _extends({}, propTypes, {\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n });\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { ForwardRef, Memo } from 'react-is';\n\n// Simplified polyfill for IE11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nconst fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\nexport function getFunctionName(fn) {\n const match = `${fn}`.match(fnNameMatchRegex);\n const name = match && match[1];\n return name || '';\n}\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE11 support\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null) {\n return null;\n }\n if (propValue && propValue.nodeType !== 1) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n }\n return null;\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","export default function deprecatedPropType(validator, reason) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return (props, propName, componentName, location, propFullName) => {\n const componentNameSafe = componentName || '<>';\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The ${location} \\`${propFullNameSafe}\\` of ` + `\\`${componentNameSafe}\\` is deprecated. ${reason}`);\n }\n return null;\n };\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n var _muiName, _element$type;\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from '../ownerDocument';\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example
\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The prop \\`${propFullNameSafe}\\` is not supported. Please remove it.`);\n }\n return null;\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from '../useLazyRef/useLazyRef';\nimport useOnMount from '../useOnMount/useOnMount';\nexport class Timeout {\n constructor() {\n this.currentId = null;\n this.clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n this.disposeEffect = () => {\n return this.clear;\n };\n }\n static create() {\n return new Timeout();\n }\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from '../useTimeout/useTimeout';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n hadFocusVisibleRecentlyTimeout.start(100, () => {\n hadFocusVisibleRecently = false;\n });\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/488fd8afc535ca3a6ad4dc581f5e89217b6a36ac/js/src/util/scrollbar.js#L14-L18\nexport default function getScrollbarSize(doc) {\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n const documentWidth = doc.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n}","export function getTypeByValue(value) {\n const valueType = typeof value;\n switch (valueType) {\n case 'number':\n if (Number.isNaN(value)) {\n return 'NaN';\n }\n if (!Number.isFinite(value)) {\n return 'Infinity';\n }\n if (value !== Math.floor(value)) {\n return 'float';\n }\n return 'number';\n case 'object':\n if (value === null) {\n return 'null';\n }\n return value.constructor.name;\n default:\n return valueType;\n }\n}\n\n// IE 11 support\nfunction ponyfillIsInteger(x) {\n // eslint-disable-next-line no-restricted-globals\n return typeof x === 'number' && isFinite(x) && Math.floor(x) === x;\n}\nconst isInteger = Number.isInteger || ponyfillIsInteger;\nfunction requiredInteger(props, propName, componentName, location) {\n const propValue = props[propName];\n if (propValue == null || !isInteger(propValue)) {\n const propType = getTypeByValue(propValue);\n return new RangeError(`Invalid ${location} \\`${propName}\\` of type \\`${propType}\\` supplied to \\`${componentName}\\`, expected \\`integer\\`.`);\n }\n return null;\n}\nfunction validator(props, propName, ...other) {\n const propValue = props[propName];\n if (propValue === undefined) {\n return null;\n }\n return requiredInteger(props, propName, ...other);\n}\nfunction validatorNoop() {\n return null;\n}\nvalidator.isRequired = requiredInteger;\nvalidatorNoop.isRequired = validatorNoop;\nexport default process.env.NODE_ENV === 'production' ? validatorNoop : validator;","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","import { globalStateClasses } from '@mui/utils/generateUtilityClass';\nconst GLOBAL_CLASS_PREFIX = 'base';\nfunction buildStateClass(state) {\n return `${GLOBAL_CLASS_PREFIX}--${state}`;\n}\nfunction buildSlotClass(componentName, slot) {\n return `${GLOBAL_CLASS_PREFIX}-${componentName}-${slot}`;\n}\nexport function generateUtilityClass(componentName, slot) {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? buildStateClass(globalStateClass) : buildSlotClass(componentName, slot);\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import { generateUtilityClass } from '../generateUtilityClass';\nexport function generateUtilityClasses(componentName, slots) {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot);\n });\n return result;\n}","'use client';\n\n/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp, elementAcceptingRef, unstable_useForkRef as useForkRef, unstable_ownerDocument as ownerDocument } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n// Inspired by https://github.com/focus-trap/tabbable\nconst candidatesSelector = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'].join(',');\nfunction getTabIndex(node) {\n const tabindexAttr = parseInt(node.getAttribute('tabindex') || '', 10);\n if (!Number.isNaN(tabindexAttr)) {\n return tabindexAttr;\n }\n\n // Browsers do not return `tabIndex` correctly for contentEditable nodes;\n // https://bugs.chromium.org/p/chromium/issues/detail?id=661108&q=contenteditable%20tabindex&can=2\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n // in Chrome,
,
\n );\n}\n\nexport default CharacterInventory;\n","import { Button } from '@/components/shadcn-ui/button';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Download, LoaderCircle } from 'lucide-react';\n\ntype DownloadButtonProps = {\n /** The downloading boolean value determines the state of the button. */\n isDownloading: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n /** Optional text for the button. */\n buttonText?: string;\n};\n\n/**\n * The DownloadButton component is a button designed for initiating downloads. It includes visuals\n * for active downloading and idle states.\n *\n * @param isDownloading The downloading boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @param buttonText Optional text for the button.\n * @returns A download button.\n */\nexport default function DownloadButton({\n isDownloading,\n handleClick,\n buttonText,\n}: DownloadButtonProps) {\n return (\n \n {isDownloading ? (\n \n ) : (\n <>\n \n {buttonText}\n \n )}\n \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { LoaderCircle } from 'lucide-react';\n\ntype RemoveButtonProps = {\n /** The removing boolean value determines the state of the button. */\n isRemoving: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n};\n\n/**\n * The RemoveButton component is a button designed for initiating removals of downloads. It includes\n * visuals for active removals and idle states.\n *\n * @param isRemoving The removing boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to remove.\n */\nexport default function RemoveButton({ isRemoving, handleClick }: RemoveButtonProps) {\n return (\n \n {isRemoving ? (\n <>\n \n Removing...\n \n ) : (\n 'Remove'\n )}\n \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { LoaderCircle } from 'lucide-react';\n\ntype UpdateButtonProps = {\n /** The updating boolean value determines the state of the button. */\n isUpdating: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n};\n\n/**\n * The UpdateButton component is a button designed for initiating updates for downloaded extensions.\n * It includes visuals for active updating and idle states.\n *\n * @param isUpdating The updating boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to update.\n */\nexport default function UpdateButton({ isUpdating, handleClick }: UpdateButtonProps) {\n return (\n \n {isUpdating ? (\n <>\n \n Updating...\n \n ) : (\n 'Update'\n )}\n \n );\n}\n","import*as t from\"react\";function n(){return n=Object.assign?Object.assign.bind():function(t){for(var n=1;n(t[n.toLowerC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s*\\n)?/i,M=/^\\{.*\\}$/,O=/^(https?:\\/\\/[^\\s<]+[^<.,:;\"')\\]\\s])/,I=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\\/[^ >]+)>/,B=/-([a-z])?/gi,R=/^(.*\\|?.*)\\n *(\\|? *[-:]+ *\\|[-| :]*)\\n((?:.*\\|.*\\n)*)\\n?/,T=/^\\[([^\\]]*)\\]:\\s+]+)>?\\s*(\"([^\"]*)\")?/,C=/^!\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,D=/^\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,F=/(\\[|\\])/g,N=/(\\n|^[-*]\\s|^#|^ {2,}|^-{2,}|^>\\s)/,P=/\\t/g,Z=/^ *\\| */,G=/(^ *\\||\\| *$)/g,H=/ *$/,q=/^ *:-+: *$/,U=/^ *:-+ *$/,V=/^ *-+: *$/,W=/^([*_])\\1((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\\1\\1(?!\\1)/,Q=/^([*_])((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\\1(?!\\1|\\w)/,X=/^==((?:\\[.*?\\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,J=/^~~((?:\\[.*?\\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,K=/^\\\\([^0-9A-Za-z\\s])/,Y=/^[\\s\\S]+?(?=[^0-9A-Z\\s\\u00c0-\\uffff&#;.()'\"]|\\d+\\.|\\n\\n| {2,}\\n|\\w+:\\S|$)/i,tt=/^\\n+/,nt=/^([ \\t]*)/,et=/\\\\([^\\\\])/g,rt=/ *\\n+$/,ot=/(?:^|\\n)( *)$/,ct=\"(?:\\\\d+\\\\.)\",at=\"(?:[*+-])\";function _t(t){return\"( *)(\"+(1===t?ct:at)+\") +\"}const ut=_t(1),it=_t(2);function st(t){return new RegExp(\"^\"+(1===t?ut:it))}const lt=st(1),ft=st(2);function dt(t){return new RegExp(\"^\"+(1===t?ut:it)+\"[^\\\\n]*(?:\\\\n(?!\\\\1\"+(1===t?ct:at)+\" )[^\\\\n]*)*(\\\\n|$)\",\"gm\")}const pt=dt(1),mt=dt(2);function gt(t){const n=1===t?ct:at;return new RegExp(\"^( *)(\"+n+\") [\\\\s\\\\S]+?(?:\\\\n{2,}(?! )(?!\\\\1\"+n+\" (?!\"+n+\" ))\\\\n*|\\\\s*\\\\n*$)\")}const yt=gt(1),ht=gt(2);function kt(t,n){const e=1===n,r=e?yt:ht,o=e?pt:mt,c=e?lt:ft;return{t(t,n,e){const o=ot.exec(e);return o&&(n.o||!n._&&!n.u)?r.exec(t=o[1]+t):null},i:Ht.HIGH,l(t,n,r){const a=e?+t[2]:void 0,_=t[0].replace(u,\"\\n\").match(o);let i=!1;return{p:_.map(function(t,e){const o=c.exec(t)[0].length,a=new RegExp(\"^ {1,\"+o+\"}\",\"gm\"),u=t.replace(a,\"\").replace(c,\"\"),s=e===_.length-1,l=-1!==u.indexOf(\"\\n\\n\")||s&&i;i=l;const f=r._,d=r.o;let p;r.o=!0,l?(r._=!1,p=u.replace(rt,\"\\n\\n\")):(r._=!0,p=u.replace(rt,\"\"));const m=n(p,r);return r._=f,r.o=d,m}),m:e,g:a}},h:(n,e,r)=>t(n.m?\"ol\":\"ul\",{key:r.k,start:n.g},n.p.map(function(n,o){return t(\"li\",{key:o},e(n,r))}))}}const xt=/^\\[([^\\]]*)]\\( *((?:\\([^)]*\\)|[^() ])*) *\"?([^)\"]*)?\"?\\)/,bt=/^!\\[([^\\]]*)]\\( *((?:\\([^)]*\\)|[^() ])*) *\"?([^)\"]*)?\"?\\)/,$t=[i,d,p,$,S,v,A,R,pt,yt,mt,ht],vt=[...$t,/^[^\\n]+(?: \\n|\\n{2,})/,z,L];function St(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,\"a\").replace(/[çÇ]/g,\"c\").replace(/[ðÐ]/g,\"d\").replace(/[ÈÉÊËéèêë]/g,\"e\").replace(/[ÏïÎîÍíÌì]/g,\"i\").replace(/[Ññ]/g,\"n\").replace(/[øØœŒÕõÔôÓóÒò]/g,\"o\").replace(/[ÜüÛûÚúÙù]/g,\"u\").replace(/[ŸÿÝý]/g,\"y\").replace(/[^a-z0-9- ]/gi,\"\").replace(/ /gi,\"-\").toLowerCase()}function zt(t){return V.test(t)?\"right\":q.test(t)?\"center\":U.test(t)?\"left\":null}function wt(t,n,e){const r=e.$;e.$=!0;const o=n(t.trim(),e);e.$=r;let c=[[]];return o.forEach(function(t,n){\"tableSeparator\"===t.type?0!==n&&n!==o.length-1&&c.push([]):(\"text\"!==t.type||null!=o[n+1]&&\"tableSeparator\"!==o[n+1].type||(t.v=t.v.replace(H,\"\")),c[c.length-1].push(t))}),c}function At(t,n,e){e._=!0;const r=wt(t[1],n,e),o=t[2].replace(G,\"\").split(\"|\").map(zt),c=function(t,n,e){return t.trim().split(\"\\n\").map(function(t){return wt(t,n,e)})}(t[3],n,e);return e._=!1,{S:o,A:c,L:r,type:\"table\"}}function Et(t,n){return null==t.S[n]?{}:{textAlign:t.S[n]}}function Lt(t){return function(n,e){return e._?t.exec(n):null}}function Mt(t){return function(n,e){return e._||e.u?t.exec(n):null}}function Ot(t){return function(n,e){return e._||e.u?null:t.exec(n)}}function It(t){return function(n){return t.exec(n)}}function jt(t,n,e){if(n._||n.u)return null;if(e&&!e.endsWith(\"\\n\"))return null;let r=\"\";t.split(\"\\n\").every(t=>!$t.some(n=>n.test(t))&&(r+=t+\"\\n\",t.trim()));const o=r.trimEnd();return\"\"==o?null:[r,o]}function Bt(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,\"\").match(/^\\s*(javascript|vbscript|data(?!:image)):/i))return}catch(t){return null}return t}function Rt(t){return t.replace(et,\"$1\")}function Tt(t,n,e){const r=e._||!1,o=e.u||!1;e._=!0,e.u=!0;const c=t(n,e);return e._=r,e.u=o,c}function Ct(t,n,e){const r=e._||!1,o=e.u||!1;e._=!1,e.u=!0;const c=t(n,e);return e._=r,e.u=o,c}function Dt(t,n,e){return e._=!1,t(n,e)}const Ft=(t,n,e)=>({v:Tt(n,t[1],e)});function Nt(){return{}}function Pt(){return null}function Zt(...t){return t.filter(Boolean).join(\" \")}function Gt(t,n,e){let r=t;const o=n.split(\".\");for(;o.length&&(r=r[o[0]],void 0!==r);)o.shift();return r||e}var Ht;function qt(e,u={}){u.overrides=u.overrides||{},u.slugify=u.slugify||St,u.namedCodesToUnicode=u.namedCodesToUnicode?n({},o,u.namedCodesToUnicode):o;const G=u.createElement||t.createElement;function H(t,e,...r){const o=Gt(u.overrides,`${t}.props`,{});return G(function(t,n){const e=Gt(n,t);return e?\"function\"==typeof e||\"object\"==typeof e&&\"render\"in e?e:Gt(n,`${t}.component`,t):t}(t,u.overrides),n({},e,o,{className:Zt(null==e?void 0:e.className,o.className)||void 0}),...r)}function q(n){let e=!1;u.forceInline?e=!0:u.forceBlock||(e=!1===N.test(n));const r=ct(ot(e?n:`${n.trimEnd().replace(tt,\"\")}\\n\\n`,{_:e}));for(;\"string\"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===u.wrapper)return r;const o=u.wrapper||(e?\"span\":\"div\");let c;if(r.length>1||u.forceWrapper)c=r;else{if(1===r.length)return c=r[0],\"string\"==typeof c?H(\"span\",{key:\"outer\"},c):c;c=null}return t.createElement(o,{key:\"outer\"},c)}function U(n){const e=n.match(a);return e?e.reduce(function(n,e,o){const c=e.indexOf(\"=\");if(-1!==c){const a=function(t){return-1!==t.indexOf(\"-\")&&null===t.match(E)&&(t=t.replace(B,function(t,n){return n.toUpperCase()})),t}(e.slice(0,c)).trim(),_=function(t){const n=t[0];return('\"'===n||\"'\"===n)&&t.length>=2&&t[t.length-1]===n?t.slice(1,-1):t}(e.slice(c+1).trim()),u=r[a]||a,i=n[u]=function(t,n){return\"style\"===t?n.split(/;\\s?/).reduce(function(t,n){const e=n.slice(0,n.indexOf(\":\"));return t[e.replace(/(-[a-z])/g,t=>t[1].toUpperCase())]=n.slice(e.length+1).trim(),t},{}):\"href\"===t?Bt(n):(n.match(M)&&(n=n.slice(1,n.length-1)),\"true\"===n||\"false\"!==n&&n)}(a,_);\"string\"==typeof i&&(z.test(i)||L.test(i))&&(n[u]=t.cloneElement(q(i.trim()),{key:o}))}else\"style\"!==e&&(n[r[e]||e]=!0);return n},{}):null}const V=[],et={},rt={blockQuote:{t:Ot(i),i:Ht.HIGH,l:(t,n,e)=>({v:n(t[0].replace(s,\"\"),e)}),h:(t,n,e)=>H(\"blockquote\",{key:e.k},n(t.v,e))},breakLine:{t:It(l),i:Ht.HIGH,l:Nt,h:(t,n,e)=>H(\"br\",{key:e.k})},breakThematic:{t:Ot(f),i:Ht.HIGH,l:Nt,h:(t,n,e)=>H(\"hr\",{key:e.k})},codeBlock:{t:Ot(p),i:Ht.MAX,l:t=>({v:t[0].replace(/^ {4}/gm,\"\").replace(/\\n+$/,\"\"),M:void 0}),h:(t,e,r)=>H(\"pre\",{key:r.k},H(\"code\",n({},t.O,{className:t.M?`lang-${t.M}`:\"\"}),t.v))},codeFenced:{t:Ot(d),i:Ht.MAX,l:t=>({O:U(t[3]||\"\"),v:t[4],M:t[2]||void 0,type:\"codeBlock\"})},codeInline:{t:Mt(m),i:Ht.LOW,l:t=>({v:t[2]}),h:(t,n,e)=>H(\"code\",{key:e.k},t.v)},footnote:{t:Ot(h),i:Ht.MAX,l:t=>(V.push({I:t[2],j:t[1]}),{}),h:Pt},footnoteReference:{t:Lt(k),i:Ht.HIGH,l:t=>({v:t[1],B:`#${u.slugify(t[1])}`}),h:(t,n,e)=>H(\"a\",{key:e.k,href:Bt(t.B)},H(\"sup\",{key:e.k},t.v))},gfmTask:{t:Lt(b),i:Ht.HIGH,l:t=>({R:\"x\"===t[1].toLowerCase()}),h:(t,n,e)=>H(\"input\",{checked:t.R,key:e.k,readOnly:!0,type:\"checkbox\"})},heading:{t:Ot(u.enforceAtxHeadings?v:$),i:Ht.HIGH,l:(t,n,e)=>({v:Tt(n,t[2],e),T:u.slugify(t[2]),C:t[1].length}),h:(t,n,e)=>H(`h${t.C}`,{id:t.T,key:e.k},n(t.v,e))},headingSetext:{t:Ot(S),i:Ht.MAX,l:(t,n,e)=>({v:Tt(n,t[1],e),C:\"=\"===t[2]?1:2,type:\"heading\"})},htmlComment:{t:It(A),i:Ht.HIGH,l:()=>({}),h:Pt},image:{t:Mt(bt),i:Ht.HIGH,l:t=>({D:t[1],B:Rt(t[2]),F:t[3]}),h:(t,n,e)=>H(\"img\",{key:e.k,alt:t.D||void 0,title:t.F||void 0,src:Bt(t.B)})},link:{t:Lt(xt),i:Ht.LOW,l:(t,n,e)=>({v:Ct(n,t[1],e),B:Rt(t[2]),F:t[3]}),h:(t,n,e)=>H(\"a\",{key:e.k,href:Bt(t.B),title:t.F},n(t.v,e))},linkAngleBraceStyleDetector:{t:Lt(j),i:Ht.MAX,l:t=>({v:[{v:t[1],type:\"text\"}],B:t[1],type:\"link\"})},linkBareUrlDetector:{t:(t,n)=>n.N?null:Lt(O)(t,n),i:Ht.MAX,l:t=>({v:[{v:t[1],type:\"text\"}],B:t[1],F:void 0,type:\"link\"})},linkMailtoDetector:{t:Lt(I),i:Ht.MAX,l(t){let n=t[1],e=t[1];return _.test(e)||(e=\"mailto:\"+e),{v:[{v:n.replace(\"mailto:\",\"\"),type:\"text\"}],B:e,type:\"link\"}}},orderedList:kt(H,1),unorderedList:kt(H,2),newlineCoalescer:{t:Ot(g),i:Ht.LOW,l:Nt,h:()=>\"\\n\"},paragraph:{t:jt,i:Ht.LOW,l:Ft,h:(t,n,e)=>H(\"p\",{key:e.k},n(t.v,e))},ref:{t:Lt(T),i:Ht.MAX,l:t=>(et[t[1]]={B:t[2],F:t[4]},{}),h:Pt},refImage:{t:Mt(C),i:Ht.MAX,l:t=>({D:t[1]||void 0,P:t[2]}),h:(t,n,e)=>H(\"img\",{key:e.k,alt:t.D,src:Bt(et[t.P].B),title:et[t.P].F})},refLink:{t:Lt(D),i:Ht.MAX,l:(t,n,e)=>({v:n(t[1],e),Z:n(t[0].replace(F,\"\\\\$1\"),e),P:t[2]}),h:(t,n,e)=>et[t.P]?H(\"a\",{key:e.k,href:Bt(et[t.P].B),title:et[t.P].F},n(t.v,e)):H(\"span\",{key:e.k},n(t.Z,e))},table:{t:Ot(R),i:Ht.HIGH,l:At,h:(t,n,e)=>H(\"table\",{key:e.k},H(\"thead\",null,H(\"tr\",null,t.L.map(function(r,o){return H(\"th\",{key:o,style:Et(t,o)},n(r,e))}))),H(\"tbody\",null,t.A.map(function(r,o){return H(\"tr\",{key:o},r.map(function(r,o){return H(\"td\",{key:o,style:Et(t,o)},n(r,e))}))})))},tableSeparator:{t:function(t,n){return n.$?(n._=!0,Z.exec(t)):null},i:Ht.HIGH,l:function(){return{type:\"tableSeparator\"}},h:()=>\" | \"},text:{t:It(Y),i:Ht.MIN,l:t=>({v:t[0].replace(w,(t,n)=>u.namedCodesToUnicode[n]?u.namedCodesToUnicode[n]:t)}),h:t=>t.v},textBolded:{t:Mt(W),i:Ht.MED,l:(t,n,e)=>({v:n(t[2],e)}),h:(t,n,e)=>H(\"strong\",{key:e.k},n(t.v,e))},textEmphasized:{t:Mt(Q),i:Ht.LOW,l:(t,n,e)=>({v:n(t[2],e)}),h:(t,n,e)=>H(\"em\",{key:e.k},n(t.v,e))},textEscaped:{t:Mt(K),i:Ht.HIGH,l:t=>({v:t[1],type:\"text\"})},textMarked:{t:Mt(X),i:Ht.LOW,l:Ft,h:(t,n,e)=>H(\"mark\",{key:e.k},n(t.v,e))},textStrikethroughed:{t:Mt(J),i:Ht.LOW,l:Ft,h:(t,n,e)=>H(\"del\",{key:e.k},n(t.v,e))}};!0!==u.disableParsingRawHTML&&(rt.htmlBlock={t:It(z),i:Ht.HIGH,l(t,n,e){const[,r]=t[3].match(nt),o=new RegExp(`^${r}`,\"gm\"),a=t[3].replace(o,\"\"),_=(u=a,vt.some(t=>t.test(u))?Dt:Tt);var u;const i=t[1].toLowerCase(),s=-1!==c.indexOf(i);e.N=e.N||\"a\"===i;const l=s?t[3]:_(n,a,e);return e.N=!1,{O:U(t[2]),v:l,G:s,H:s?i:t[1]}},h:(t,e,r)=>H(t.H,n({key:r.k},t.O),t.G?t.v:e(t.v,r))},rt.htmlSelfClosing={t:It(L),i:Ht.HIGH,l:t=>({O:U(t[2]||\"\"),H:t[1]}),h:(t,e,r)=>H(t.H,n({},t.O,{key:r.k}))});const ot=function(t){let n=Object.keys(t);function e(r,o){let c=[],a=\"\";for(;r;){let _=0;for(;_{let{children:r,options:o}=n,c=function(t,n){if(null==t)return{};var e,r,o={},c=Object.keys(t);for(r=0;r=0||(o[e]=t[e]);return o}(n,e);return t.cloneElement(qt(r,o),c)};export{qt as compiler};\n//# sourceMappingURL=index.modern.js.map\n","import Markdown from 'markdown-to-jsx';\n\ninterface MarkdownRendererProps {\n markdown: string;\n}\n\n/**\n * This component renders markdown content given a markdown string. It uses typography styles from\n * the platform.\n *\n * @param markdown The markdown string to render.\n * @returns A div containing the rendered markdown content.\n */\nexport default function MarkdownRenderer({ markdown }: MarkdownRendererProps) {\n return (\n
\n {markdown}\n
\n );\n}\n","import { PlatformEvent, PlatformEventHandler } from 'platform-bible-utils';\nimport { useEffect } from 'react';\n\n/**\n * Adds an event handler to an event so the event handler runs when the event is emitted. Use\n * `papi.network.getNetworkEvent` to use a networked event with this hook.\n *\n * @param event The event to subscribe to.\n *\n * - If event is a `PlatformEvent`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEvent = (\n event: PlatformEvent | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n useEffect(() => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return () => {};\n\n const unsubscriber = event(eventHandler);\n return () => {\n unsubscriber();\n };\n }, [event, eventHandler]);\n};\nexport default useEvent;\n","import { useCallback, useEffect } from 'react';\nimport { PlatformEvent, PlatformEventAsync, PlatformEventHandler } from 'platform-bible-utils';\nimport usePromise from './use-promise.hook';\n\nconst noopUnsubscriber = () => false;\n\n/**\n * Adds an event handler to an asynchronously subscribing/unsubscribing event so the event handler\n * runs when the event is emitted. Use `papi.network.getNetworkEvent` to use a networked event with\n * this hook.\n *\n * @param event The asynchronously (un)subscribing event to subscribe to.\n *\n * - If event is a `PlatformEvent` or `PlatformEventAsync`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEventAsync = (\n event: PlatformEvent | PlatformEventAsync | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n // Subscribe to the event asynchronously\n const [unsubscribe] = usePromise(\n useCallback(async () => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return noopUnsubscriber;\n\n // Wrap subscribe and unsubscribe in promises to allow normal events to be used as well\n const unsub = await Promise.resolve(event(eventHandler));\n return async () => unsub();\n }, [eventHandler, event]),\n noopUnsubscriber,\n // We want the unsubscriber to return to default value immediately upon changing subscription\n // So the useEffect below will unsubscribe asap\n { preserveValue: false },\n );\n\n // Unsubscribe from the event asynchronously (but we aren't awaiting the unsub)\n useEffect(() => {\n return () => {\n if (unsubscribe !== noopUnsubscriber) {\n unsubscribe();\n }\n };\n }, [unsubscribe]);\n};\n\nexport default useEventAsync;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Card = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCard.displayName = 'Card';\n\nconst CardHeader = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}\n \n ),\n);\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n

\n));\nCardDescription.displayName = 'CardDescription';\n\nconst CardContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n

\n ),\n);\nCardContent.displayName = 'CardContent';\n\nconst CardFooter = React.forwardRef>(\n ({ className, ...props }, ref) => (\n
\n ),\n);\nCardFooter.displayName = 'CardFooter';\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\n","import React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst alertVariants = cva(\n 'pr-relative pr-w-full pr-rounded-lg pr-border pr-p-4 [&>svg~*]:pr-pl-7 [&>svg+div]:pr-translate-y-[-3px] [&>svg]:pr-absolute [&>svg]:pr-left-4 [&>svg]:pr-top-4 [&>svg]:pr-text-foreground',\n {\n variants: {\n variant: {\n default: 'pr-bg-background pr-text-foreground',\n destructive:\n 'pr-border-destructive/50 pr-text-destructive dark:pr-border-destructive [&>svg]:pr-text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes & VariantProps\n>(({ className, variant, ...props }, ref) => (\n
\n));\nAlert.displayName = 'Alert';\n\nconst AlertTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}{' '}\n \n ),\n);\nAlertTitle.displayName = 'AlertTitle';\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
\n));\nAlertDescription.displayName = 'AlertDescription';\n\nexport { Alert, AlertTitle, AlertDescription };\n","import React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Slider = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n \n \n \n));\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider };\n","import React from 'react';\nimport * as SwitchPrimitives from '@radix-ui/react-switch';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Switch = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n"],"names":["P","R","t","e","s","n","N","B","O","S","K","g","k","x","T","X","V","w","L","G","A","H","C","I","y","q","U","m","l","h","c","E","D","i","a","o","u","v","f","d","b","p","J","twMergeCustom","extendTailwindMerge","cn","inputs","clsx","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","Input","type","BookChapterInput","forwardRef","handleSearch","handleKeyDown","handleOnClick","handleSubmit","ShadInput","event","History","ChapterSelect","handleSelectChapter","endChapter","activeChapter","highlightedChapter","handleHighlightedChapter","chapters","_","handleMouse","useCallback","chapterNumber","chapter","BookMenuItem","bookId","handleSelectBook","isSelected","handleHighlightBook","bookType","ShadDropdownMenuItem","Canon","GoToMenuItem","handleSort","handleLocationHistory","handleBookmarks","ShadDropdownMenuLabel","ArrowDownWideNarrow","Clock","Bookmark","ALL_BOOK_IDS","BOOK_TYPE_LABELS","BOOK_TYPE_ARRAY","SCROLL_OFFSET","SEARCH_QUERY_FORMATS","fetchGroupedBooks","fetchEndChapter","getChaptersForBook","getAllEnglishNames","isValidBookEnglishName","bookName","getBookIdFromEnglishName","formattedBookName","BookChapterControl","scrRef","searchQuery","setSearchQuery","useState","selectedBookId","setSelectedBookId","setHighlightedChapter","highlightedBookId","setHighlightedBookId","isContentOpen","setIsContentOpen","isContentOpenDelayed","setIsContentOpenDelayed","inputRef","useRef","contentRef","menuItemRef","fetchFilteredBooks","englishNameLowerCase","normalizedQuery","handleSearchInput","searchString","shouldPreventAutoClosing","controlMenuState","open","updateReference","shouldClose","verse","handleInputSubmit","format","matches","book","englishName","handleKeyDownInput","handleKeyDownContent","key","handleKeyDownMenuItem","chapterOffSet","useEffect","useLayoutEffect","scrollTimeout","scrollPosition","ShadDropdownMenu","ShadDropdownMenuTrigger","ShadDropdownMenuContent","bookTypeIndex","element","ShadDropdownMenuSeparator","Table","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","buttonVariants","cva","Button","variant","size","asChild","Slot","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator","DataTablePagination","table","value","pageSize","ArrowLeftIcon","ChevronLeftIcon","ChevronRightIcon","ArrowRightIcon","DataTableViewOptions","FilterIcon","column","DataTable","columns","data","enablePagination","showPaginationControls","showColumnVisibilityControls","onRowClickHandler","sorting","setSorting","columnFilters","setColumnFilters","columnVisibility","setColumnVisibility","rowSelection","setRowSelection","useReactTable","getCoreRowModel","getPaginationRowModel","getSortedRowModel","getFilteredRowModel","headerGroup","header","flexRender","_a","row","cell","ComboBox","id","title","isDisabled","isClearable","hasError","isFullWidth","width","options","onChange","onFocus","onBlur","getOptionLabel","MuiComboBox","MuiTextField","ChapterRangeSelector","handleSelectStartChapter","handleSelectEndChapter","chapterCount","startChapter","setStartChapter","setEndChapter","chapterOptions","setChapterOptions","onChangeStartChapter","_event","onChangeEndChapter","Fragment","FormControlLabel","option","LabelPosition","Checkbox","isChecked","labelText","labelPosition","isIndeterminate","isDefaultChecked","checkBox","MuiCheckbox","result","preceding","labelSpan","labelIsInline","label","checkBoxElement","FormLabel","Checklist","legend","listItems","selectedListItems","handleSelectListItem","createLabel","item","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","_extends","r","z","reactIs_production_min","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","typeOf","object","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development","reactIsModule","require$$0","require$$1","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","order2","test3","letter","objectAssign","from","to","symbols","ReactPropTypesSecret","ReactPropTypesSecret_1","has","printWarning","loggedTypeFailures","text","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1","ReactIs","assign","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","createAnyTypeChecker","createArrayOfTypeChecker","createElementTypeChecker","createElementTypeTypeChecker","createInstanceTypeChecker","createNodeChecker","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","createShapeTypeChecker","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propName","propFullName","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","iterator","step","entry","isSymbol","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","chainPropTypes","propType1","propType2","args","isPlainObject","prototype","deepClone","output","deepmerge","isClassComponent","elementType","acceptingRef","safePropName","warningHint","elementAcceptingRef","PropTypes","elementAcceptingRef$1","elementTypeAcceptingRef","elementTypeAcceptingRef$1","specialProperty","exactProp","propTypes","unsupportedProps","prop","formatMuiErrorMessage","code","url","REACT_SERVER_CONTEXT_TYPE","REACT_OFFSCREEN_TYPE","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","SuspenseList","hasWarnedAboutDeprecatedIsConcurrentMode","isSuspenseList","fnNameMatchRegex","getFunctionName","fn","match","getFunctionComponentName","Component","fallback","getWrappedName","outerType","innerType","wrapperName","functionName","getDisplayName","HTMLElementType","refType","refType$1","capitalize","string","_formatMuiErrorMessage","createChainedFunction","funcs","acc","func","debounce","wait","timeout","debounced","later","deprecatedPropType","validator","reason","componentNameSafe","propFullNameSafe","isMuiElement","muiNames","_muiName","_element$type","ownerDocument","node","ownerWindow","requirePropFactory","componentNameInError","prevPropTypes","requiredProp","defaultTypeChecker","typeCheckerResult","setRef","useEnhancedEffect","useEnhancedEffect$1","globalId","useGlobalId","idOverride","defaultId","setDefaultId","maybeReactUseId","useId","reactId","unsupportedProp","useControlled","controlled","defaultProp","name","state","isControlled","valueState","setValue","defaultValue","setValueIfUncontrolled","newValue","useEventCallback","useForkRef","refs","instance","UNINITIALIZED","useLazyRef","init","initArg","EMPTY","useOnMount","Timeout","delay","useTimeout","hadKeyboardEvent","hadFocusVisibleRecently","hadFocusVisibleRecentlyTimeout","inputTypesWhitelist","focusTriggersKeyboardModality","tagName","handlePointerDown","handleVisibilityChange","prepare","doc","isFocusVisible","useIsFocusVisible","isFocusVisibleRef","handleBlurVisible","handleFocusVisible","getScrollbarSize","documentWidth","getTypeByValue","valueType","ponyfillIsInteger","isInteger","requiredInteger","other","validatorNoop","integerPropType","resolveProps","defaultProps","defaultSlotProps","slotProps","slotPropName","composeClasses","slots","getUtilityClass","classes","slot","utilityClass","defaultGenerator","createClassNameGenerator","generate","generator","ClassNameGenerator","ClassNameGenerator$1","globalStateClasses","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","clamp","min","max","isHostComponent","appendOwnerState","otherProps","ownerState","defaultContextValue","ClassNameConfiguratorContext","useClassNamesOverride","disableDefaultClasses","extractEventHandlers","excludeKeys","resolveComponentProps","componentProps","slotState","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","_excluded","useSlotProps","_parameters$additiona","skipResolvingSlotProps","rest","resolvedComponentsProps","mergedProps","internalRef","GLOBAL_CLASS_PREFIX","buildStateClass","buildSlotClass","candidatesSelector","getTabIndex","tabindexAttr","isNonTabbableRadio","getRadio","selector","roving","isNodeMatchingSelectorFocusable","defaultGetTabbable","root","regularTabNodes","orderedTabNodes","nodeTabIndex","defaultIsEnabled","FocusTrap","disableAutoFocus","disableEnforceFocus","disableRestoreFocus","getTabbable","isEnabled","ignoreNextEnforceFocus","sentinelStart","sentinelEnd","nodeToRestore","reactFocusEventTarget","activated","rootRef","handleRef","lastKeydown","loopFocus","nativeEvent","contain","rootElement","tabbable","_lastKeydown$current","_lastKeydown$current2","isShiftTab","focusNext","focusPrevious","interval","childrenPropsHandler","handleFocusSentinel","_jsxs","_jsx","getContainer","container","forwardedRef","disablePortal","mountNode","setMountNode","newProps","ReactDOM","isOverflowing","ariaHidden","show","getPaddingRight","isAriaHiddenForbiddenOnElement","isForbiddenTagName","isInputHidden","ariaHiddenSiblings","mountElement","currentElement","elementsToExclude","blacklist","isNotExcludedElement","isNotForbiddenElement","findIndexOf","items","callback","idx","index","handleContainer","containerInfo","restoreStyle","scrollbarSize","fixedElements","scrollContainer","parent","containerWindow","el","property","getHiddenSiblings","hiddenSiblings","ModalManager","modal","modalIndex","containerIndex","ariaHiddenState","nextTop","getHasTransition","defaultManager","useModal","disableEscapeKeyDown","disableScrollLock","manager","closeAfterTransition","onTransitionEnter","onTransitionExited","onClose","mountNodeRef","modalRef","exited","setExited","hasTransition","ariaHiddenProp","getDoc","getModal","handleMounted","handleOpen","resolvedContainer","isTopModal","handlePortalRef","handleClose","createHandleKeyDown","otherHandlers","_otherHandlers$onKeyD","createHandleBackdropClick","_otherHandlers$onClic","propsEventHandlers","externalEventHandlers","handleEnter","handleExited","top","bottom","right","left","auto","basePlacements","start","end","clippingParents","viewport","popper","reference","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","getWindow","OwnElement","isHTMLElement","isShadowRoot","applyStyles","_ref","style","attributes","effect","_ref2","initialStyles","styleProperties","attribute","applyStyles$2","getBasePlacement","round","getUAString","uaData","isLayoutViewport","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","visualViewport","addVisualOffsets","height","getLayoutRect","contains","child","rootNode","next","getComputedStyle","isTableElement","getDocumentElement","getParentNode","getTrueOffsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","css","getOffsetParent","window","offsetParent","getMainAxisFromPlacement","within","mathMax","mathMin","withinMaxClamp","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","keys","hashMap","toPaddingObject","padding","arrow","_state$modifiersData$","arrowElement","popperOffsets","basePlacement","axis","isVertical","len","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","center","offset","axisProp","_options$element","arrow$1","getVariation","unsetSides","roundOffsetsByDPR","win","dpr","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles$1","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","eventListeners","hash","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","scrollTop","getWindowScrollBarX","getViewportRect","strategy","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","rect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_options$mainAxis","checkMainAxis","_options$altAxis","checkAltAxis","specifiedFallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","fallbackPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","numberOfChecks","_loop","_i","fittingPlacement","_ret","flip$1","getSideOffsets","preventedOffsets","isAnySideFullyClipped","side","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide$1","distanceAndSkiddingToXY","rects","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset$1","popperOffsets$1","getAltAxis","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","altAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow$1","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","documentElement","order","modifiers","map","visited","modifier","sort","requires","dep","depModifier","orderModifiers","orderedModifiers","phase","pending","resolve","mergeByName","merged","current","existing","DEFAULT_OPTIONS","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptionsAction","cleanupModifierEffects","runModifierEffects","_state$elements","_state$orderedModifie","_state$orderedModifie2","_ref$options","cleanupFn","noopFn","createPopper","COMPONENT_NAME","getPopperUtilityClass","_excluded2","flipPlacement","direction","resolveAnchorEl","anchorEl","isVirtualElement","useUtilityClasses","defaultPopperOptions","PopperTooltip","_slots$root","initialPlacement","popperOptions","popperRefProp","TransitionProps","tooltipRef","ownRef","popperRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","box","popperModifiers","childProps","Root","rootProps","Popper","containerProp","keepMounted","transition","resolvedAnchorEl","display","transitionProps","sortBreakpointsValues","breakpointsAsArray","breakpoint1","breakpoint2","obj","createBreakpoints","breakpoints","unit","sortedValues","up","down","between","endIndex","only","not","keyIndex","shape","shape$1","responsivePropType","responsivePropType$1","merge","defaultBreakpoints","handleBreakpoints","styleFromPropValue","theme","themeBreakpoints","breakpoint","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","_breakpointsInput$key","breakpointStyleKey","removeUnusedBreakpoints","breakpointKeys","breakpointOutput","getPath","path","checkVars","getStyleValue","themeMapping","transform","propValueFinal","userValue","cssProperty","themeKey","memoize","cache","arg","properties","directions","aliases","getCssProperties","dir","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","_getPath","themeSpacing","abs","createUnarySpacing","getValue","transformer","transformed","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","createSpacing","spacingInput","spacing","argsInput","argument","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borderRadius","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","paletteTransform","color","bgcolor","backgroundColor","sizingTransform","maxWidth","_props$theme","_props$theme2","breakpointsValues","minWidth","maxHeight","minHeight","boxSizing","defaultSxConfig","defaultSxConfig$1","objectsHaveSameKeys","objects","union","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","config","styleFunctionSx","_theme$unstable_sxCon","sx","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","styleKey","styleFunctionSx$1","createTheme","paletteInput","shapeInput","muiTheme","isObjectEmpty","useTheme","defaultTheme","contextTheme","ThemeContext","systemDefaultTheme","useThemeWithoutDefault","_excluded3","isEmpty","isStringTag","tag","shouldForwardProp","lowercaseFirstLetter","resolveTheme","themeId","defaultOverridesResolver","processStyleArg","callableStyle","resolvedStylesArg","resolvedStyle","variants","isMatch","createStyled","input","rootShouldForwardProp","slotShouldForwardProp","systemSx","inputOptions","processStyles","componentSlot","inputSkipVariantsResolver","inputSkipSx","overridesResolver","skipVariantsResolver","skipSx","shouldForwardPropOption","defaultStyledResolver","styledEngineStyled","transformStyleArg","stylesArg","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","styleOverrides","resolvedStyleOverrides","slotKey","slotStyle","_theme$components","themeVariants","numOfCustomFnsApplied","placeholders","displayName","getThemeProps","params","useThemeProps","clampWrapper","hexToRgb","re","colors","decomposeColor","marker","colorSpace","recomposeColor","hslToRgb","rgb","getLuminance","getContrastRatio","foreground","background","lumA","lumB","alpha","darken","coefficient","lighten","createMixins","mixins","common","common$1","grey","grey$1","purple","purple$1","red","red$1","orange","orange$1","blue","blue$1","lightBlue","lightBlue$1","green","green$1","light","dark","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","getDefaultPrimary","mode","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","palette","contrastThreshold","primary","secondary","info","success","warning","getContrastText","contrastText","contrast","augmentColor","mainShade","lightShade","darkShade","modes","caseAllCaps","defaultFontFamily","createTypography","typography","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem2","coef","pxToRem","buildVariant","fontWeight","lineHeight","letterSpacing","casing","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadow","px","shadows","shadows$1","easing","duration","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","isString","isNumber","animatedProp","zIndex","zIndex$1","mixinsInput","transitionsInput","typographyInput","systemTheme","systemCreateTheme","stateClasses","component","stateClass","defaultTheme$1","THEME_ID","styled","styled$1","useThemeSystem","systemUseThemeProps","_setPrototypeOf","_inheritsLoose","subClass","superClass","setPrototypeOf","timeoutsShape","TransitionGroupContext","forceReflow","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","context","_this","parentGroup","appear","initialStatus","prevState","nextIn","_proto","prevProps","nextStatus","status","exit","enter","mounting","_this2","appearing","maybeNode","maybeAppearing","timeouts","enterTimeout","_this3","nextState","_this4","active","handler","doesNotHaveTimeoutOrListener","maybeNextCallback","_this$props","pt","noop","Transition$1","reflow","getTransitionProps","_style$transitionDura","_style$transitionTimi","getScale","isWebKit154","Grow","addEndListener","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","TransitionComponent","timer","autoTimeout","nodeRef","normalizedTransitionCallback","maybeIsAppearing","handleEntering","isAppearing","transitionDuration","transitionTimingFunction","handleEntered","handleExiting","handleExit","Grow$1","getOverlayAlpha","elevation","alphaValue","getOverlayAlpha$1","PopperRoot","BasePopper","inProps","components","componentsProps","RootComponent","Popper$1","getTooltipUtilityClass","tooltipClasses","tooltipClasses$1","disableInteractive","touch","TooltipPopper","TooltipTooltip","TooltipArrow","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","Tooltip","_slots$popper","_slots$transition","_slots$tooltip","_slots$arrow","_slotProps$popper","_ref6","_slotProps$popper2","_slotProps$transition","_slotProps$tooltip","_ref7","_slotProps$tooltip2","_slotProps$arrow","_ref8","_slotProps$arrow2","childrenProp","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","idProp","leaveDelay","leaveTouchDelay","onOpen","openProp","PopperComponentProp","PopperProps","TransitionComponentProp","isRtl","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","openState","setOpenState","prevUserSelect","stopTouchInteraction","handleLeave","focusVisibleRef","setChildIsFocusVisible","handleBlur","handleFocus","detectTouchStart","childrenProps","handleMouseOver","handleMouseLeave","handleTouchStart","handleTouchEnd","handleMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","_PopperProps$popperOp","tooltipModifiers","PopperComponent","TooltipComponent","ArrowComponent","popperProps","tooltipProps","tooltipArrowProps","TransitionPropsInner","Tooltip$1","_interopRequireDefault","module","getSvgIconUtilityClass","SvgIconRoot","_theme$transitions","_theme$transitions$cr","_theme$transitions2","_theme$typography","_theme$typography$pxT","_theme$typography2","_theme$typography2$px","_theme$typography3","_theme$typography3$px","_palette$ownerState$c","_palette","_palette2","_palette3","SvgIcon","htmlColor","inheritViewBox","titleAccess","viewBox","hasSvgAsChild","more","SvgIcon$1","createSvgIcon","unstable_ClassNameGenerator","exports","_utils","ArrowRight","default_1","_createSvgIcon","_jsxRuntime","getIcon","icon","menuLabel","leading","MuiListItemIcon","MenuItem","onClick","tooltip","allowForLeadingIcons","iconPathBefore","iconPathAfter","hasAutoFocus","isDense","isSubMenuParent","hasDisabledGutters","hasDivider","focusVisibleClassName","menuItem","MuiMenuItem","MuiListItemText","getAllGroups","menuDefinition","SubMenu","setAnchorEl","parentMenuItem","parentItemProps","handleParentMenuItemClick","renderSubMenuItems","includedGroups","group","GroupedMenuItemList","Menu","getOrderedGroupItems","groupId","allItems","menuProps","commandHandler","useMemo","groupsToInclude","sortedGroups","itemArray","allowSpaceForLeadingIcons","createMenuItemProps","isLastItemInGroup","firstItem","divKey","itemInfo","menuItemProps","TopLevelMenu","columnId","MenuColumn","metadata","Grid","List","GridMenu","multiColumnMenu","sortedColumns","columnNumbers","columnName","col","ListContext","ListContext$1","getListUtilityClass","disablePadding","dense","subheader","ListRoot","List$1","nextItem","disableListWrap","previousItem","textCriteriaMatches","nextFocus","textCriteria","moveFocus","currentFocus","disabledItemsFocusable","traversalFunction","wrappedOnce","nextFocusDisabled","MenuList","actions","autoFocus","autoFocusItem","onKeyDown","listRef","textCriteriaRef","containerElement","noExplicitWidth","criteria","lowerKey","currTime","keepFocusOnCurrent","activeItemIndex","newChildProps","MenuList$1","Fade","defaultTimeout","Fade$1","getBackdropUtilityClass","invisible","BackdropRoot","Backdrop","_slotProps$root","rootSlotProps","Backdrop$1","getModalUtilityClass","ModalRoot","ModalBackdrop","Modal","_slots$backdrop","_slotProps$backdrop","BackdropComponent","BackdropProps","hideBackdrop","onBackdropClick","propsWithDefaults","getRootProps","getBackdropProps","portalRef","RootSlot","BackdropSlot","backdropSlotProps","backdropProps","Modal$1","getPaperUtilityClass","square","PaperRoot","_theme$vars$overlays","Paper","PaperBase","getPopoverUtilityClass","getOffsetTop","vertical","getOffsetLeft","horizontal","getTransformOriginValue","transformOrigin","PopoverRoot","PopoverPaper","Popover","_slotProps$paper","_slots$paper","action","anchorOrigin","anchorPosition","anchorReference","marginThreshold","PaperPropsProp","transitionDurationProp","externalPaperSlotProps","paperRef","handlePaperRef","getAnchorOffset","anchorElement","anchorRect","getTransformOrigin","elemRect","getPositioningStyle","elemTransformOrigin","anchorOffset","heightThreshold","widthThreshold","diff","isPositioned","setIsPositioned","setPositioningStyles","positioning","handleResize","PaperSlot","paperProps","_useSlotProps","rootSlotPropsProp","Popover$1","getMenuUtilityClass","RTL_ORIGIN","LTR_ORIGIN","MenuRoot","MenuPaper","MenuMenuList","disableAutoFocusItem","MenuListProps","PaperProps","PopoverClasses","menuListActionsRef","handleListKeyDown","paperExternalSlotProps","paperSlotProps","Menu$1","ContextMenu","contextMenuPosition","setContextMenuPosition","handleContextMenu","MenuItemList","MenuIcon","getUsePromiseOptionsDefaults","usePromise","promiseFactoryCallback","defaultValueRef","optionsDefaultedRef","isLoading","setIsLoading","promiseIsCurrent","HamburgerMenuButton","menuProvider","normalMenu","fullMenu","containerRef","ariaLabelPrefix","isMenuOpen","setMenuOpen","showFullMenu","setShowFullMenu","handleMenuItemClick","handleMenuButtonClick","prevIsOpen","isOpening","menuCommandHandler","command","setOffset","normalMenuData","fullMenuData","menu","IconButton","Drawer","isTooltipSuppressed","adjustMarginToAlignToEdge","MuiIconButton","labelVariants","Label","LabelPrimitive","TextField","helperText","placeholder","ShadLabel","SearchBar","onSearch","handleInputChange","Slider","orientation","showMarks","valueLabelDisplay","onChangeCommitted","MuiSlider","Snackbar","autoHideDuration","isOpen","ContentProps","newContentProps","MuiSnackbar","Switch","MuiSwitch","Toolbar","AppBar","MuiToolbar","Tabs","TabsPrimitive","TabsList","TabsTrigger","TabsContent","VerticalTabs","VerticalTabsList","VerticalTabsTrigger","VerticalTabsContent","getSortingIcon","sortDirection","ArrowUpIcon","ArrowDownIcon","ArrowUpDownIcon","characterLabel","unicodeValueLabel","countLabel","statusLabel","statusChangeHandler","selectedRows","characters","CircleCheckIcon","CircleXIcon","CircleHelpIcon","InventoryDataTable","tableData","onStatusChange","onSelectCharacter","localizedStrings","rowClickHandler","extractOccurrences","character","scriptureRef","results","lines","currentChapter","currentVerse","line","words","snippet","OccurrencesTable","selectedCharacter","scriptureReference","setScriptureReference","occurrence","setTableData","buildTableData","statusFilter","textFilter","validCharacters","invalidCharacters","characterData","split","characterDataPoint","dataPoint","characterStatus","newCharacter","CharacterInventory","projectId","getSetting","setSetting","getText","allCharacters","approvedCharacters","unapprovedCharacters","unknownCharacters","scopeBook","scopeChapter","scopeVerse","filterText","setValidCharacters","setInvalidCharacters","setText","scope","setScope","setStatusFilter","setTextFilter","inventoryTableData","setInventoryTableData","setSelectedCharacter","prevTableData","tableEntry","prevValidCharacters","newValidCharacters","validChar","prevInvalidCharacters","newInvalidCharacters","invalidChar","newText","newScriptureReference","DownloadButton","isDownloading","handleClick","buttonText","LoaderCircle","Download","RemoveButton","isRemoving","UpdateButton","isUpdating","$","M","j","F","Z","W","Q","Y","tt","nt","et","rt","ot","ct","at","_t","ut","it","st","lt","ft","dt","mt","gt","yt","ht","kt","Ht","xt","bt","$t","vt","St","zt","wt","At","Et","Lt","Mt","Ot","It","jt","Bt","Rt","Tt","Ct","Dt","Ft","Nt","Pt","Zt","Gt","qt","Markdown","MarkdownRenderer","markdown","useEvent","unsubscriber","noopUnsubscriber","useEventAsync","unsubscribe","unsub","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","alertVariants","Alert","AlertTitle","AlertDescription","SliderPrimitive","SwitchPrimitives"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAIA,KAAI,OAAO,gBACXC,KAAI,CAACC,GAAGC,GAAGC,MAAMD,KAAKD,IAAIF,GAAEE,GAAGC,GAAG,EAAE,YAAY,IAAI,cAAc,IAAI,UAAU,IAAI,OAAOC,EAAC,CAAE,IAAIF,EAAEC,CAAC,IAAIC,GACzGC,KAAI,CAACH,GAAGC,GAAGC,MAAMH,GAAEC,GAAG,OAAOC,KAAK,WAAWA,IAAI,KAAKA,GAAGC,CAAC;AAW9D,MAAME,KAAI;AAAA,EACR;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;A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;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAGC,KAAIC;AACP,SAASC,GAAET,GAAGC,IAAI,IAAI;AACpB,SAAOA,MAAMD,IAAIA,EAAE,YAAa,IAAGA,KAAKO,KAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225,244]} \ No newline at end of file diff --git a/lib/platform-bible-react/src/components/advanced-components/data-table/data-table.component.tsx b/lib/platform-bible-react/src/components/advanced-components/data-table/data-table.component.tsx index b8ace9716e..7cdbc713dc 100644 --- a/lib/platform-bible-react/src/components/advanced-components/data-table/data-table.component.tsx +++ b/lib/platform-bible-react/src/components/advanced-components/data-table/data-table.component.tsx @@ -71,7 +71,7 @@ function DataTable({ return (
{showColumnVisibilityControls && } -
+
{table.getHeaderGroups().map((headerGroup) => ( diff --git a/lib/platform-bible-react/src/components/paratext-10-studio-components/inventory/character-inventory.component.tsx b/lib/platform-bible-react/src/components/paratext-10-studio-components/inventory/character-inventory.component.tsx index 4fd97e6075..0b23cf3a88 100644 --- a/lib/platform-bible-react/src/components/paratext-10-studio-components/inventory/character-inventory.component.tsx +++ b/lib/platform-bible-react/src/components/paratext-10-studio-components/inventory/character-inventory.component.tsx @@ -191,24 +191,27 @@ function CharacterInventory({ }, [validCharacters, invalidCharacters, text, statusFilter, textFilter]); return ( -
+
- setStatusFilter(value)} + defaultValue={statusFilter} + > - + {allCharacters} {approvedCharacters} {unapprovedCharacters} {unknownCharacters} - setScope(value)} defaultValue={scope}> - + {scopeBook} {scopeChapter} {scopeVerse} diff --git a/lib/platform-bible-react/src/components/shadcn-ui/button.tsx b/lib/platform-bible-react/src/components/shadcn-ui/button.tsx index ba8a8a9757..bf42b0199b 100644 --- a/lib/platform-bible-react/src/components/shadcn-ui/button.tsx +++ b/lib/platform-bible-react/src/components/shadcn-ui/button.tsx @@ -4,7 +4,7 @@ import { cva, type VariantProps } from 'class-variance-authority'; import { cn } from '@/utils/shadcn-ui.util'; export const buttonVariants = cva( - 'pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-md pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50', + 'pr-twp pr-inline-flex pr-items-center pr-justify-center pr-whitespace-nowrap pr-rounded-md pr-text-sm pr-font-medium pr-ring-offset-background pr-transition-colors focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50', { variants: { variant: { diff --git a/lib/platform-bible-react/src/components/shadcn-ui/dropdown-menu.tsx b/lib/platform-bible-react/src/components/shadcn-ui/dropdown-menu.tsx index dfd126c9fb..37c3af4594 100644 --- a/lib/platform-bible-react/src/components/shadcn-ui/dropdown-menu.tsx +++ b/lib/platform-bible-react/src/components/shadcn-ui/dropdown-menu.tsx @@ -116,9 +116,8 @@ export const DropdownMenuContent = React.forwardRef< ref={ref} sideOffset={sideOffset} className={cn( - /* pr-font-sans is added to mitigate issue introduced by scopedPreflightStyles */ /* adding pr-twp because the dropdown content is added to the dom as a sibling to the app root */ - 'pr-twp pr-z-50 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-p-1 pr-font-sans pr-text-popover-foreground pr-shadow-md data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2', + 'pr-twp pr-z-50 pr-min-w-[8rem] pr-overflow-hidden pr-rounded-md pr-border pr-bg-popover pr-p-1 pr-text-popover-foreground pr-shadow-md data-[state=open]:pr-animate-in data-[state=closed]:pr-animate-out data-[state=closed]:pr-fade-out-0 data-[state=open]:pr-fade-in-0 data-[state=closed]:pr-zoom-out-95 data-[state=open]:pr-zoom-in-95 data-[side=bottom]:pr-slide-in-from-top-2 data-[side=left]:pr-slide-in-from-right-2 data-[side=right]:pr-slide-in-from-left-2 data-[side=top]:pr-slide-in-from-bottom-2', className, )} {...props} diff --git a/lib/platform-bible-react/src/index.css b/lib/platform-bible-react/src/index.css index 2bda17704e..456d55a3a5 100644 --- a/lib/platform-bible-react/src/index.css +++ b/lib/platform-bible-react/src/index.css @@ -9,6 +9,12 @@ src: url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap'); } + /* Adding the preflight selector (pr-twp) to components was not changing the font as desired. + So this piece of code adds pr-font-sans everywhere we include preflight. */ + .pr-twp { + @apply pr-font-sans; + } + :root { --background: 0 0% 100%; --foreground: 222.2 84% 4.9%; diff --git a/lib/platform-bible-react/src/preview/app.component.tsx b/lib/platform-bible-react/src/preview/app.component.tsx index 398a8b8e12..a392f30e8c 100644 --- a/lib/platform-bible-react/src/preview/app.component.tsx +++ b/lib/platform-bible-react/src/preview/app.component.tsx @@ -16,8 +16,7 @@ function App() { return ( - {/* pr-font-sans is added to mitigate issue introduced by scopedPreflightStyles */} -
+