sqlmesh 0.181.2.dev9__py3-none-any.whl → 0.181.2.dev10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. sqlmesh/_version.py +2 -2
  2. {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/METADATA +1 -1
  3. {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/RECORD +49 -49
  4. web/client/dist/assets/{Audits-DRkR6sg0.js → Audits-BnT_XU4z.js} +1 -1
  5. web/client/dist/assets/{Banner-BXisqtMu.js → Banner-CIGf1CgX.js} +1 -1
  6. web/client/dist/assets/{ChevronDownIcon-D8CFPQ96.js → ChevronDownIcon-D3eSCae0.js} +1 -1
  7. web/client/dist/assets/{ChevronRightIcon-BpRv8ZN4.js → ChevronRightIcon-BYX0d3Wq.js} +1 -1
  8. web/client/dist/assets/{Content-KG4KSDDO.js → Content-C-dbt7Qf.js} +1 -1
  9. web/client/dist/assets/{Content-pMJLtxGr.js → Content-PeLqYFgC.js} +1 -1
  10. web/client/dist/assets/{Data-D-rZnh8x.js → Data-CR1hP4VP.js} +1 -1
  11. web/client/dist/assets/{DataCatalog-BJTDeU-_.js → DataCatalog-D3ACH3Kc.js} +1 -1
  12. web/client/dist/assets/{Editor-C8-1rqZ2.js → Editor-BiQM-0yy.js} +1 -1
  13. web/client/dist/assets/{Editor-Cpn7iBcm.js → Editor-DAPqExjL.js} +1 -1
  14. web/client/dist/assets/{Errors-DyDRdQyq.js → Errors-fiNNK-UR.js} +1 -1
  15. web/client/dist/assets/{FileExplorer-CmdsG4yG.js → FileExplorer-axtC_Ai-.js} +1 -1
  16. web/client/dist/assets/{Footer-D4ok48Gm.js → Footer-BK44TAno.js} +1 -1
  17. web/client/dist/assets/{Header-BVwdhMQQ.js → Header-BAp2F5ka.js} +1 -1
  18. web/client/dist/assets/{Input-CxOCLTNw.js → Input-C5uXc-nB.js} +1 -1
  19. web/client/dist/assets/Lineage-_5zC2lrH.js +1 -0
  20. web/client/dist/assets/{ListboxShow-YBO3HIHQ.js → ListboxShow-DvjSHd_L.js} +1 -1
  21. web/client/dist/assets/{ModelLineage-BFuK5Bgk.js → ModelLineage-Vjinxl8m.js} +1 -1
  22. web/client/dist/assets/{Models-Dn2xoUA7.js → Models-DdFxJdwq.js} +1 -1
  23. web/client/dist/assets/{Page-kOwPk8A6.js → Page-BjM3k1UE.js} +1 -1
  24. web/client/dist/assets/{Plan-BQe3-3RL.js → Plan-D-yXZg-l.js} +1 -1
  25. web/client/dist/assets/{PlusCircleIcon-CXYicjof.js → PlusCircleIcon-rlJbTzSO.js} +1 -1
  26. web/client/dist/assets/{ReportErrors-DaAC3YF4.js → ReportErrors-DTvhPb_i.js} +1 -1
  27. web/client/dist/assets/{Root-BIGZcS_U.js → Root-hF35YwMr.js} +1 -1
  28. web/client/dist/assets/{SearchList-Lag39srv.js → SearchList--GtSxkZn.js} +1 -1
  29. web/client/dist/assets/{SelectEnvironment-0MCV04NI.js → SelectEnvironment-BNlbuzcL.js} +1 -1
  30. web/client/dist/assets/{SourceList-CTL41Fia.js → SourceList-B0glAf8v.js} +1 -1
  31. web/client/dist/assets/{SourceListItem-6mIYlySR.js → SourceListItem-BUiMwOLB.js} +1 -1
  32. web/client/dist/assets/{SplitPane-7_khUxNG.js → SplitPane-Bec3_12u.js} +1 -1
  33. web/client/dist/assets/{Tests-DSsKelgd.js → Tests-egYRjgvR.js} +1 -1
  34. web/client/dist/assets/{Welcome-C0F3fb3h.js → Welcome-uoXIxnJO.js} +1 -1
  35. web/client/dist/assets/{context-B0V9EzWJ.js → context-CDuVFxib.js} +42 -34
  36. web/client/dist/assets/{context-pytQSsK4.js → context-DhtR-yn6.js} +1 -1
  37. web/client/dist/assets/{editor-CmeEFdEz.js → editor-D99craz3.js} +1 -1
  38. web/client/dist/assets/{file-DY5SRTK1.js → file-DIuTD7Ex.js} +1 -1
  39. web/client/dist/assets/{help-Bm8ph9oI.js → help-5fQwnZLr.js} +1 -1
  40. web/client/dist/assets/{index-BWibl-Ee.js → index-DZbqZ0F2.js} +1 -1
  41. web/client/dist/assets/index-Dqo42q_-.js +82 -0
  42. web/client/dist/assets/{plan-BUTy2uM-.js → plan-BIkqMXq0.js} +1 -1
  43. web/client/dist/assets/{project-CtAE3tsj.js → project-DHnuzhZ_.js} +1 -1
  44. web/client/dist/assets/{transition-CiMBgn_Y.js → transition-BpitCk1w.js} +1 -1
  45. web/client/dist/index.html +1 -1
  46. web/client/dist/assets/Lineage-ZXdxdqzl.js +0 -1
  47. web/client/dist/assets/index-C22hdM_h.js +0 -90
  48. {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/WHEEL +0 -0
  49. {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/entry_points.txt +0 -0
  50. {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/licenses/LICENSE +0 -0
  51. {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,82 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.scrollbar--horizontal::-webkit-scrollbar{height:var(--scrollbar-size)}.scrollbar--vertical::-webkit-scrollbar{width:var(--scrollbar-size)}.scrollbar::-webkit-scrollbar-track{background:transparent}.scrollbar::-webkit-scrollbar-thumb{background:var(--scrollbar-backgroud);border-radius:var(--scrollbar-radius)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-10{bottom:2.5rem}.left-0{left:0}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-10{top:2.5rem}.top-6{top:1.5rem}.top-8{top:2rem}.isolate{isolation:isolate}.\\!z-10{z-index:10!important}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\\[1000\\]{z-index:1000}.z-\\[1\\]{z-index:1}.z-\\[2\\]{z-index:2}.z-\\[3\\]{z-index:3}.z-\\[4\\]{z-index:4}.z-\\[5\\]{z-index:5}.z-\\[6\\]{z-index:6}.\\!m-0{margin:0!important}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.\\!mx-0{margin-left:0!important;margin-right:0!important}.\\!my-0{margin-top:0!important;margin-bottom:0!important}.mx-0{margin-left:0;margin-right:0}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-0{margin-top:0;margin-bottom:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.\\!ml-0\\.5{margin-left:.125rem!important}.\\!mr-1{margin-right:.25rem!important}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.mt-\\[0\\.125rem\\]{margin-top:.125rem}.mt-\\[6px\\]{margin-top:6px}.\\!block{display:block!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\\[14px\\]{height:14px}.h-\\[16rem\\]{height:16rem}.h-\\[1px\\]{height:1px}.h-\\[25px\\]{height:25px}.h-\\[25rem\\]{height:25rem}.h-full{height:100%}.max-h-60{max-height:15rem}.max-h-8{max-height:2rem}.max-h-80{max-height:20rem}.max-h-\\[1rem\\]{max-height:1rem}.max-h-\\[20vh\\]{max-height:20vh}.max-h-\\[2rem\\]{max-height:2rem}.max-h-\\[30vh\\]{max-height:30vh}.max-h-\\[40vh\\]{max-height:40vh}.max-h-\\[50vh\\]{max-height:50vh}.max-h-\\[80vh\\]{max-height:80vh}.min-h-8,.min-h-\\[2rem\\]{min-height:2rem}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[20rem\\]{width:20rem}.w-\\[90vw\\]{width:90vw}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-16{min-width:4rem}.min-w-4{min-width:1rem}.min-w-6{min-width:1.5rem}.min-w-\\[10rem\\]{min-width:10rem}.min-w-\\[16rem\\]{min-width:16rem}.min-w-\\[1rem\\]{min-width:1rem}.min-w-\\[20rem\\]{min-width:20rem}.min-w-\\[6rem\\]{min-width:6rem}.min-w-\\[7rem\\]{min-width:7rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-4{max-width:1rem}.max-w-\\[100\\%\\]{max-width:100%}.max-w-\\[20rem\\]{max-width:20rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[50rem\\]{max-width:50rem}.max-w-\\[50vw\\]{max-width:50vw}.max-w-\\[80rem\\]{max-width:80rem}.max-w-\\[90\\%\\]{max-width:90%}.max-w-full{max-width:100%}.max-w-none{max-width:none}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-separate{border-collapse:separate}.-translate-x-\\[100\\%\\]{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[40\\%\\]{--tw-translate-y: -40%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-7{--tw-translate-x: 1.75rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[10px\\]{--tw-translate-x: 10px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\\!cursor-grabbing{cursor:grabbing!important}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis,.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.\\!rounded-full{border-radius:9999px!important}.\\!rounded-lg{border-radius:.5rem!important}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[0\\.25rem\\]{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-b-md{border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-t-\\[8px\\]{border-top-left-radius:8px;border-top-right-radius:8px}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.\\!border-none{border-style:none!important}.border-none{border-style:none}.\\!border-neutral-20{border-color:var(--color-neutral-20)!important}.border-accent-500{border-color:var(--color-accent-500)}.border-brand-500{border-color:var(--color-brand-500)}.border-current{border-color:currentColor}.border-danger-500{border-color:var(--color-danger-500)}.border-divider{border-color:var(--color-divider)}.border-inherit{border-color:inherit}.border-light{border-color:var(--color-light)}.border-neutral-10{border-color:var(--color-neutral-10)}.border-neutral-100{border-color:var(--color-neutral-100)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-neutral-400{border-color:var(--color-neutral-400)}.border-neutral-500{border-color:var(--color-neutral-500)}.border-neutral-600{border-color:var(--color-neutral-600)}.border-primary-400{border-color:var(--color-primary-400)}.border-primary-500{border-color:var(--color-primary-500)}.border-secondary-100{border-color:var(--color-secondary-100)}.border-secondary-20{border-color:var(--color-secondary-20)}.border-secondary-30{border-color:var(--color-secondary-30)}.border-secondary-500{border-color:var(--color-secondary-500)}.border-success-500{border-color:var(--color-success-500)}.border-transparent{border-color:transparent}.border-warning-500{border-color:var(--color-warning-500)}.border-r-theme-darker{border-right-color:var(--color-theme-darker)}.\\!bg-danger-5{background-color:var(--color-danger-5)!important}.\\!bg-success-10{background-color:var(--color-success-10)!important}.\\!bg-theme{background-color:var(--color-theme)!important}.bg-accent-200{background-color:var(--color-accent-200)}.bg-accent-500{background-color:var(--color-accent-500)}.bg-brand-10{background-color:var(--color-brand-10)}.bg-brand-500{background-color:var(--color-brand-500)}.bg-current{background-color:currentColor}.bg-danger-10{background-color:var(--color-danger-10)}.bg-danger-5{background-color:var(--color-danger-5)}.bg-danger-500{background-color:var(--color-danger-500)}.bg-dark-lighter{background-color:var(--color-dark-lighter)}.bg-light{background-color:var(--color-light)}.bg-neutral-10{background-color:var(--color-neutral-10)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-neutral-30{background-color:var(--color-neutral-30)}.bg-neutral-400{background-color:var(--color-neutral-400)}.bg-neutral-5{background-color:var(--color-neutral-5)}.bg-neutral-500{background-color:var(--color-neutral-500)}.bg-neutral-600{background-color:var(--color-neutral-600)}.bg-overlay{background-color:var(--color-overlay)}.bg-primary-10{background-color:var(--color-primary-10)}.bg-primary-5{background-color:var(--color-primary-5)}.bg-primary-500{background-color:var(--color-primary-500)}.bg-primary-900{background-color:var(--color-primary-900)}.bg-secondary-10{background-color:var(--color-secondary-10)}.bg-secondary-20{background-color:var(--color-secondary-20)}.bg-secondary-5{background-color:var(--color-secondary-5)}.bg-secondary-500{background-color:var(--color-secondary-500)}.bg-success-10{background-color:var(--color-success-10)}.bg-success-5{background-color:var(--color-success-5)}.bg-success-500{background-color:var(--color-success-500)}.bg-theme{background-color:var(--color-theme)}.bg-theme-lighter{background-color:var(--color-theme-lighter)}.bg-transparent{background-color:transparent}.bg-warning-10{background-color:var(--color-warning-10)}.bg-warning-5{background-color:var(--color-warning-5)}.bg-warning-500{background-color:var(--color-warning-500)}.bg-none{background-image:none}.fill-danger-500{fill:var(--color-danger-500)}.fill-neutral-500{fill:var(--color-neutral-500)}.fill-primary-500{fill:var(--color-primary-500)}.fill-prose{fill:var(--color-text)}.fill-secondary-500{fill:var(--color-secondary-500)}.fill-success-500{fill:var(--color-success-500)}.fill-theme-lighter{fill:var(--color-theme-lighter)}.fill-warning-500{fill:var(--color-warning-500)}.stroke-neutral-200{stroke:var(--color-neutral-200)}.\\!p-0{padding:0!important}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.\\!px-0{padding-left:0!important;padding-right:0!important}.\\!px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.\\!py-0\\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.\\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\\[0\\.25rem\\]{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[0\\.125rem\\]{padding-top:.125rem;padding-bottom:.125rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pl-0\\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-\\[25px\\]{padding-left:25px}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-\\[35px\\]{padding-right:35px}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-\\[3px\\]{padding-top:3px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-6xl{font-size:3.75rem;line-height:1}.text-\\[0\\.5rem\\]{font-size:.5rem}.text-\\[0\\.65rem\\]{font-size:.65rem}.text-\\[0\\.6rem\\]{font-size:.6rem}.text-\\[10px\\]{font-size:10px}.text-\\[4rem\\]{font-size:4rem}.text-\\[9px\\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.slashed-zero{--tw-slashed-zero: slashed-zero;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.\\!text-danger-500{color:var(--color-danger-500)!important}.\\!text-success-500{color:var(--color-success-500)!important}.text-accent-500{color:var(--color-accent-500)}.text-brand-500{color:var(--color-brand-500)}.text-danger-100{color:var(--color-danger-100)}.text-danger-500{color:var(--color-danger-500)}.text-danger-600{color:var(--color-danger-600)}.text-danger-700{color:var(--color-danger-700)}.text-inherit{color:inherit}.text-light{color:var(--color-light)}.text-neutral-100{color:var(--color-neutral-100)}.text-neutral-300{color:var(--color-neutral-300)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-70{color:var(--color-neutral-70)}.text-neutral-700{color:var(--color-neutral-700)}.text-neutral-800{color:var(--color-neutral-800)}.text-neutral-900{color:var(--color-neutral-900)}.text-primary-100{color:var(--color-primary-100)}.text-primary-300{color:var(--color-primary-300)}.text-primary-500{color:var(--color-primary-500)}.text-primary-600{color:var(--color-primary-600)}.text-primary-900{color:var(--color-primary-900)}.text-prose{color:var(--color-text)}.text-secondary-10{color:var(--color-secondary-10)}.text-secondary-100{color:var(--color-secondary-100)}.text-secondary-400{color:var(--color-secondary-400)}.text-secondary-500{color:var(--color-secondary-500)}.text-secondary-600{color:var(--color-secondary-600)}.text-success-100{color:var(--color-success-100)}.text-success-500{color:var(--color-success-500)}.text-success-600{color:var(--color-success-600)}.text-theme-darker{color:var(--color-theme-darker)}.text-warning-100{color:var(--color-warning-100)}.text-warning-500{color:var(--color-warning-500)}.text-warning-600{color:var(--color-warning-600)}.text-warning-700{color:var(--color-warning-700)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-90{opacity:.9}.\\!shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.\\!outline-primary-500{outline-color:var(--color-primary-500)!important}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-accent-50{--tw-ring-color: var(--color-accent-50)}.ring-brand-50{--tw-ring-color: var(--color-brand-50)}.ring-neutral-50{--tw-ring-color: var(--color-neutral-50)}.ring-primary-10{--tw-ring-color: var(--color-primary-10)}.ring-secondary-300{--tw-ring-color: var(--color-secondary-300)}.ring-opacity-5{--tw-ring-opacity: .05}.ring-opacity-60{--tw-ring-opacity: .6}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-secondary-100{--tw-ring-offset-color: var(--color-secondary-100)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\@container{container-type:inline-size}.hover\\:scrollbar:hover::-webkit-scrollbar-track{background:transparent}.hover\\:scrollbar:hover::-webkit-scrollbar-thumb{background:var(--scrollbar-backgroud);border-radius:var(--scrollbar-radius)}.placeholder\\:text-neutral-300::-moz-placeholder{color:var(--color-neutral-300)}.placeholder\\:text-neutral-300::placeholder{color:var(--color-neutral-300)}.first\\:border-0:first-child{border-width:0px}.last\\:m-0:last-child{margin:0}.last\\:mr-0:last-child{margin-right:0}.last\\:border-r-0:last-child{border-right-width:0px}.odd\\:bg-neutral-10:nth-child(odd){background-color:var(--color-neutral-10)}.even\\:bg-neutral-5:nth-child(2n){background-color:var(--color-neutral-5)}.hover\\:bg-accent-500:hover{background-color:var(--color-accent-500)}.hover\\:bg-danger-5:hover{background-color:var(--color-danger-5)}.hover\\:bg-danger-500:hover{background-color:var(--color-danger-500)}.hover\\:bg-danger-600:hover{background-color:var(--color-danger-600)}.hover\\:bg-neutral-20:hover{background-color:var(--color-neutral-20)}.hover\\:bg-neutral-300:hover{background-color:var(--color-neutral-300)}.hover\\:bg-neutral-5:hover{background-color:var(--color-neutral-5)}.hover\\:bg-primary-400:hover{background-color:var(--color-primary-400)}.hover\\:bg-primary-5:hover{background-color:var(--color-primary-5)}.hover\\:bg-secondary-600:hover{background-color:var(--color-secondary-600)}.hover\\:bg-success-5:hover{background-color:var(--color-success-5)}.hover\\:bg-success-600:hover{background-color:var(--color-success-600)}.hover\\:bg-theme-darker:hover{background-color:var(--color-theme-darker)}.hover\\:bg-transparent:hover{background-color:transparent}.hover\\:bg-warning-5:hover{background-color:var(--color-warning-5)}.hover\\:bg-warning-600:hover{background-color:var(--color-warning-600)}.hover\\:text-light:hover{color:var(--color-light)}.hover\\:text-neutral-900:hover{color:var(--color-neutral-900)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:border-secondary-500:focus{border-color:var(--color-secondary-500)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:border-accent-500:focus-visible{border-color:var(--color-accent-500)}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-light:focus-visible{--tw-ring-color: var(--color-light)}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-brand-300:focus-visible{--tw-ring-offset-color: var(--color-brand-300)}.active\\:bg-danger-400:active{background-color:var(--color-danger-400)}.active\\:bg-neutral-10:active{background-color:var(--color-neutral-10)}.active\\:bg-neutral-200:active{background-color:var(--color-neutral-200)}.active\\:bg-neutral-300:active{background-color:var(--color-neutral-300)}.active\\:bg-primary-400:active{background-color:var(--color-primary-400)}.active\\:bg-secondary-400:active{background-color:var(--color-secondary-400)}.active\\:bg-success-400:active{background-color:var(--color-success-400)}.active\\:bg-warning-400:active{background-color:var(--color-warning-400)}.group:hover .group-hover\\:ml-2{margin-left:.5rem}.group:hover .group-hover\\:mr-0{margin-right:0}.group:hover .group-hover\\:inline-block{display:inline-block}.group:hover .group-hover\\:hidden{display:none}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[highlighted\\]\\:bg-brand-500[data-highlighted]{background-color:var(--color-brand-500)}.data-\\[highlighted\\]\\:text-brand-100[data-highlighted]{color:var(--color-brand-100)}.data-\\[highlighted\\]\\:outline-none[data-highlighted]{outline:2px solid transparent;outline-offset:2px}@container (min-width: 24rem){.\\@sm\\:min-w-\\[12rem\\]{min-width:12rem}}@container (min-width: 32rem){.\\@lg\\:block{display:block}.\\@lg\\:contents{display:contents}.\\@lg\\:hidden{display:none}}@container (min-width: 40rem){.\\@\\[40rem\\]\\:static{position:static}.\\@\\[40rem\\]\\:flex{display:flex}.\\@\\[40rem\\]\\:hidden{display:none}.\\@\\[40rem\\]\\:items-end{align-items:flex-end}.\\@\\[40rem\\]\\:justify-end{justify-content:flex-end}.\\@\\[40rem\\]\\:pr-0{padding-right:0}}.dark\\:border-accent-300:is([mode=dark] *){border-color:var(--color-accent-300)}.dark\\:border-dark:is([mode=dark] *){border-color:var(--color-dark)}.dark\\:border-dark-lighter:is([mode=dark] *){border-color:var(--color-dark-lighter)}.dark\\:border-neutral-300:is([mode=dark] *){border-color:var(--color-neutral-300)}.dark\\:border-neutral-600:is([mode=dark] *){border-color:var(--color-neutral-600)}.dark\\:border-neutral-700:is([mode=dark] *){border-color:var(--color-neutral-700)}.dark\\:border-neutral-800:is([mode=dark] *){border-color:var(--color-neutral-800)}.dark\\:border-primary-500:is([mode=dark] *){border-color:var(--color-primary-500)}.dark\\:border-r-theme-lighter:is([mode=dark] *){border-right-color:var(--color-theme-lighter)}.dark\\:bg-accent-300:is([mode=dark] *){background-color:var(--color-accent-300)}.dark\\:bg-danger-20:is([mode=dark] *){background-color:var(--color-danger-20)}.dark\\:bg-danger-500:is([mode=dark] *){background-color:var(--color-danger-500)}.dark\\:bg-dark:is([mode=dark] *){background-color:var(--color-dark)}.dark\\:bg-dark-lighter:is([mode=dark] *){background-color:var(--color-dark-lighter)}.dark\\:bg-neutral-20:is([mode=dark] *){background-color:var(--color-neutral-20)}.dark\\:bg-neutral-300:is([mode=dark] *){background-color:var(--color-neutral-300)}.dark\\:bg-neutral-400:is([mode=dark] *){background-color:var(--color-neutral-400)}.dark\\:bg-primary-10:is([mode=dark] *){background-color:var(--color-primary-10)}.dark\\:bg-primary-20:is([mode=dark] *){background-color:var(--color-primary-20)}.dark\\:bg-primary-300:is([mode=dark] *){background-color:var(--color-primary-300)}.dark\\:bg-primary-500:is([mode=dark] *){background-color:var(--color-primary-500)}.dark\\:bg-theme-lighter:is([mode=dark] *){background-color:var(--color-theme-lighter)}.dark\\:bg-warning-400:is([mode=dark] *){background-color:var(--color-warning-400)}.dark\\:stroke-neutral-800:is([mode=dark] *){stroke:var(--color-neutral-800)}.dark\\:text-accent-300:is([mode=dark] *){color:var(--color-accent-300)}.dark\\:text-danger-100:is([mode=dark] *){color:var(--color-danger-100)}.dark\\:text-danger-300:is([mode=dark] *){color:var(--color-danger-300)}.dark\\:text-danger-400:is([mode=dark] *){color:var(--color-danger-400)}.dark\\:text-dark-lighter:is([mode=dark] *){color:var(--color-dark-lighter)}.dark\\:text-light:is([mode=dark] *){color:var(--color-light)}.dark\\:text-neutral-100:is([mode=dark] *){color:var(--color-neutral-100)}.dark\\:text-neutral-200:is([mode=dark] *){color:var(--color-neutral-200)}.dark\\:text-neutral-300:is([mode=dark] *){color:var(--color-neutral-300)}.dark\\:text-neutral-400:is([mode=dark] *){color:var(--color-neutral-400)}.dark\\:text-neutral-500:is([mode=dark] *){color:var(--color-neutral-500)}.dark\\:text-neutral-600:is([mode=dark] *){color:var(--color-neutral-600)}.dark\\:text-neutral-800:is([mode=dark] *){color:var(--color-neutral-800)}.dark\\:text-primary-10:is([mode=dark] *){color:var(--color-primary-10)}.dark\\:text-primary-100:is([mode=dark] *){color:var(--color-primary-100)}.dark\\:text-primary-300:is([mode=dark] *){color:var(--color-primary-300)}.dark\\:text-primary-400:is([mode=dark] *){color:var(--color-primary-400)}.dark\\:text-primary-500:is([mode=dark] *){color:var(--color-primary-500)}.dark\\:text-primary-70:is([mode=dark] *){color:var(--color-primary-70)}.dark\\:text-secondary-300:is([mode=dark] *){color:var(--color-secondary-300)}.dark\\:text-secondary-400:is([mode=dark] *){color:var(--color-secondary-400)}.dark\\:text-success-300:is([mode=dark] *){color:var(--color-success-300)}.dark\\:text-success-400:is([mode=dark] *){color:var(--color-success-400)}.dark\\:text-success-500:is([mode=dark] *){color:var(--color-success-500)}.dark\\:text-theme-lighter:is([mode=dark] *){color:var(--color-theme-lighter)}.dark\\:text-warning-300:is([mode=dark] *){color:var(--color-warning-300)}.dark\\:text-warning-400:is([mode=dark] *){color:var(--color-warning-400)}.dark\\:text-warning-500:is([mode=dark] *){color:var(--color-warning-500)}.dark\\:text-warning-800:is([mode=dark] *){color:var(--color-warning-800)}.dark\\:ring-primary-50:is([mode=dark] *){--tw-ring-color: var(--color-primary-50)}.dark\\:placeholder\\:text-neutral-700:is([mode=dark] *)::-moz-placeholder{color:var(--color-neutral-700)}.dark\\:placeholder\\:text-neutral-700:is([mode=dark] *)::placeholder{color:var(--color-neutral-700)}.dark\\:hover\\:bg-neutral-10:hover:is([mode=dark] *){background-color:var(--color-neutral-10)}.dark\\:hover\\:bg-theme-lighter:hover:is([mode=dark] *){background-color:var(--color-theme-lighter)}.dark\\:hover\\:text-neutral-100:hover:is([mode=dark] *){color:var(--color-neutral-100)}@media (min-width: 640px){.sm\\:not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.sm\\:mr-1{margin-right:.25rem}.sm\\:inline{display:inline}.sm\\:w-auto{width:auto}.sm\\:items-baseline{align-items:baseline}.sm\\:justify-between{justify-content:space-between}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:ml-2{margin-left:.5rem}.md\\:mr-2{margin-right:.5rem}.md\\:w-\\[50\\%\\]{width:50%}.md\\:flex-nowrap{flex-wrap:nowrap}.md\\:text-\\[6rem\\]{font-size:6rem}}@media (min-width: 1024px){.lg\\:text-\\[9rem\\]{font-size:9rem}}
2
+ .gutter{background-color:var(--color-brand);background-repeat:no-repeat;background-position:50%;z-index:1}.gutter:hover{background-color:var(--color-brand)!important;outline:1px solid var(--color-brand)}.gutter.gutter-vertical{cursor:row-resize;background-color:var(--color-divider)}.gutter.gutter-horizontal{cursor:col-resize;background-color:var(--color-divider)}.split{box-sizing:border-box;overflow-y:auto;overflow-x:hidden}
3
+ .react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:grab}.react-flow__node.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;background-color:#333}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{border-width:1px;border-style:solid;border-color:#bbb}.react-flow__node-default.selected,.react-flow__node-default:focus,.react-flow__node-default:focus-visible,.react-flow__node-input.selected,.react-flow__node-input:focus,.react-flow__node-input:focus-visible,.react-flow__node-output.selected,.react-flow__node-output:focus,.react-flow__node-output:focus-visible,.react-flow__node-group.selected,.react-flow__node-group:focus,.react-flow__node-group:focus-visible{outline:none;border:1px solid #555}.react-flow__nodesselection-rect,.react-flow__selection{background:#9696b41a;border:1px dotted rgba(155,155,155,.8)}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__node{z-index:10!important}.react-flow__handle{background-color:currentColor}.react-flow__node.react-flow__node-model:hover,.react-flow__node.react-flow__node-model:active{z-index:20!important}react-flow__attribution{background:transparent}.lineage__column-source b{font-weight:900;color:var(--color-primary)}.react-flow__edge{pointer-events:none!important;z-index:-1!important}.react-flow__background path{stroke:inherit}.ͼ1.cm-focused{outline:1px dotted #212121}.ͼ1{position:relative!important;box-sizing:border-box;display:flex!important;flex-direction:column}.ͼ1 .cm-scroller{display:flex!important;align-items:flex-start!important;font-family:monospace;line-height:1.4;height:100%;overflow-x:auto;position:relative;z-index:0;overflow-anchor:none}.ͼ1 .cm-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.ͼ1 .cm-content{margin:0;flex-grow:2;flex-shrink:0;display:block;white-space:pre;word-wrap:normal;box-sizing:border-box;min-height:100%;padding:4px 0;outline:none}.ͼ1 .cm-lineWrapping{white-space:pre-wrap;white-space:break-spaces;word-break:break-word;overflow-wrap:anywhere;flex-shrink:1}.ͼ2 .cm-content{caret-color:#000}.ͼ3 .cm-content{caret-color:#fff}.ͼ1 .cm-line{display:block;padding:0 2px 0 6px}.ͼ1 .cm-layer>*{position:absolute}.ͼ1 .cm-layer{position:absolute;left:0;top:0;contain:size style}.ͼ2 .cm-selectionBackground{background:#d9d9d9}.ͼ3 .cm-selectionBackground{background:#222}.ͼ2.cm-focused>.cm-scroller>.cm-selectionLayer .cm-selectionBackground{background:#d7d4f0}.ͼ3.cm-focused>.cm-scroller>.cm-selectionLayer .cm-selectionBackground{background:#233}.ͼ1 .cm-cursorLayer{pointer-events:none}.ͼ1.cm-focused>.cm-scroller>.cm-cursorLayer{animation:steps(1) cm-blink 1.2s infinite}@keyframes cm-blink{50%{opacity:0}}@keyframes cm-blink2{50%{opacity:0}}.ͼ1 .cm-cursor,.ͼ1 .cm-dropCursor{border-left:1.2px solid black;margin-left:-.6px;pointer-events:none}.ͼ1 .cm-cursor{display:none}.ͼ3 .cm-cursor{border-left-color:#ddd}.ͼ1 .cm-dropCursor{position:absolute}.ͼ1.cm-focused>.cm-scroller>.cm-cursorLayer .cm-cursor{display:block}.ͼ1 .cm-iso{unicode-bidi:isolate}.ͼ1 .cm-announced{position:fixed;top:-10000px}@media print{.ͼ1 .cm-announced{display:none}}.ͼ2 .cm-activeLine{background-color:#cef4}.ͼ3 .cm-activeLine{background-color:#9ef3}.ͼ2 .cm-specialChar{color:red}.ͼ3 .cm-specialChar{color:#f78}.ͼ1 .cm-gutters{flex-shrink:0;display:flex;height:100%;box-sizing:border-box;inset-inline-start:0;z-index:200}.ͼ2 .cm-gutters{background-color:#f5f5f5;color:#6c6c6c;border-right:1px solid #ddd}.ͼ3 .cm-gutters{background-color:#333338;color:#ccc}.ͼ1 .cm-gutter{display:flex!important;flex-direction:column;flex-shrink:0;box-sizing:border-box;min-height:100%;overflow:hidden}.ͼ1 .cm-gutterElement{box-sizing:border-box}.ͼ1 .cm-lineNumbers .cm-gutterElement{padding:0 3px 0 5px;min-width:20px;text-align:right;white-space:nowrap}.ͼ2 .cm-activeLineGutter{background-color:#e2f2ff}.ͼ3 .cm-activeLineGutter{background-color:#222227}.ͼ1 .cm-panels{box-sizing:border-box;position:sticky;left:0;right:0;z-index:300}.ͼ2 .cm-panels{background-color:#f5f5f5;color:#000}.ͼ2 .cm-panels-top{border-bottom:1px solid #ddd}.ͼ2 .cm-panels-bottom{border-top:1px solid #ddd}.ͼ3 .cm-panels{background-color:#333338;color:#fff}.ͼ1 .cm-tab{display:inline-block;overflow:hidden;vertical-align:bottom}.ͼ1 .cm-widgetBuffer{vertical-align:text-top;height:1em;width:0;display:inline}.ͼ1 .cm-placeholder{color:#888;display:inline-block;vertical-align:top}.ͼ1 .cm-highlightSpace{background-image:radial-gradient(circle at 50% 55%,#aaa 20%,transparent 5%);background-position:center}.ͼ1 .cm-highlightTab{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>');background-size:auto 100%;background-position:right 90%;background-repeat:no-repeat}.ͼ1 .cm-trailingSpace{background-color:#f325}.ͼ1 .cm-button{vertical-align:middle;color:inherit;font-size:70%;padding:.2em 1em;border-radius:1px}.ͼ2 .cm-button:active{background-image:linear-gradient(#b4b4b4,#d0d3d6)}.ͼ2 .cm-button{background-image:linear-gradient(#eff1f5,#d9d9df);border:1px solid #888}.ͼ3 .cm-button:active{background-image:linear-gradient(#111,#333)}.ͼ3 .cm-button{background-image:linear-gradient(#393939,#111);border:1px solid #888}.ͼ1 .cm-textfield{vertical-align:middle;color:inherit;font-size:70%;border:1px solid silver;padding:.2em .5em}.ͼ2 .cm-textfield{background-color:#fff}.ͼ3 .cm-textfield{border:1px solid #555;background-color:inherit}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>li,.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>completion-section{padding:1px 3px;line-height:1.2}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>li{overflow-x:hidden;text-overflow:ellipsis;cursor:pointer}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>completion-section{display:list-item;border-bottom:1px solid silver;padding-left:.5em;opacity:.7}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul{font-family:monospace;white-space:nowrap;overflow:hidden auto;max-width:700px;max-width:min(700px,95vw);min-width:250px;max-height:10em;height:100%;list-style:none;margin:0;padding:0}.ͼ2 .cm-tooltip-autocomplete ul li[aria-selected]{background:#17c;color:#fff}.ͼ2 .cm-tooltip-autocomplete-disabled ul li[aria-selected]{background:#777}.ͼ3 .cm-tooltip-autocomplete ul li[aria-selected]{background:#347;color:#fff}.ͼ3 .cm-tooltip-autocomplete-disabled ul li[aria-selected]{background:#444}.ͼ1 .cm-completionListIncompleteTop:before,.ͼ1 .cm-completionListIncompleteBottom:after{content:"···";opacity:.5;display:block;text-align:center}.ͼ1 .cm-tooltip.cm-completionInfo{position:absolute;padding:3px 9px;width:-moz-max-content;width:max-content;max-width:400px;box-sizing:border-box;white-space:pre-line}.ͼ1 .cm-completionInfo.cm-completionInfo-left{right:100%}.ͼ1 .cm-completionInfo.cm-completionInfo-right{left:100%}.ͼ1 .cm-completionInfo.cm-completionInfo-left-narrow{right:30px}.ͼ1 .cm-completionInfo.cm-completionInfo-right-narrow{left:30px}.ͼ2 .cm-snippetField{background-color:#0002}.ͼ3 .cm-snippetField{background-color:#fff2}.ͼ1 .cm-snippetFieldPosition{vertical-align:text-top;width:0;height:1.15em;display:inline-block;margin:0 -.7px -.7em;border-left:1.4px dotted #888}.ͼ1 .cm-completionMatchedText{text-decoration:underline}.ͼ1 .cm-completionDetail{margin-left:.5em;font-style:italic}.ͼ1 .cm-completionIcon{font-size:90%;width:.8em;display:inline-block;text-align:center;padding-right:.6em;opacity:.6;box-sizing:content-box}.ͼ1 .cm-completionIcon-function:after,.ͼ1 .cm-completionIcon-method:after{content:"ƒ"}.ͼ1 .cm-completionIcon-class:after{content:"○"}.ͼ1 .cm-completionIcon-interface:after{content:"◌"}.ͼ1 .cm-completionIcon-variable:after{content:"𝑥"}.ͼ1 .cm-completionIcon-constant:after{content:"𝐶"}.ͼ1 .cm-completionIcon-type:after{content:"𝑡"}.ͼ1 .cm-completionIcon-enum:after{content:"∪"}.ͼ1 .cm-completionIcon-property:after{content:"□"}.ͼ1 .cm-completionIcon-keyword:after{content:"🔑︎"}.ͼ1 .cm-completionIcon-namespace:after{content:"▢"}.ͼ1 .cm-completionIcon-text:after{content:"abc";font-size:50%;vertical-align:middle}.ͼ1 .cm-tooltip{z-index:500;box-sizing:border-box}.ͼ2 .cm-tooltip{border:1px solid #bbb;background-color:#f5f5f5}.ͼ2 .cm-tooltip-section:not(:first-child){border-top:1px solid #bbb}.ͼ3 .cm-tooltip{background-color:#333338;color:#fff}.ͼ1 .cm-tooltip-arrow:before,.ͼ1 .cm-tooltip-arrow:after{content:"";position:absolute;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent}.ͼ1 .cm-tooltip-above .cm-tooltip-arrow:before{border-top:7px solid #bbb}.ͼ1 .cm-tooltip-above .cm-tooltip-arrow:after{border-top:7px solid #f5f5f5;bottom:1px}.ͼ1 .cm-tooltip-above .cm-tooltip-arrow{bottom:-7px}.ͼ1 .cm-tooltip-below .cm-tooltip-arrow:before{border-bottom:7px solid #bbb}.ͼ1 .cm-tooltip-below .cm-tooltip-arrow:after{border-bottom:7px solid #f5f5f5;top:1px}.ͼ1 .cm-tooltip-below .cm-tooltip-arrow{top:-7px}.ͼ1 .cm-tooltip-arrow{height:7px;width:14px;position:absolute;z-index:-1;overflow:hidden}.ͼ3 .cm-tooltip .cm-tooltip-arrow:before{border-top-color:#333338;border-bottom-color:#333338}.ͼ3 .cm-tooltip .cm-tooltip-arrow:after{border-top-color:transparent;border-bottom-color:transparent}.ͼ1 .cm-selectionMatch{background-color:#99ff7780}.ͼ1 .cm-searchMatch .cm-selectionMatch{background-color:transparent}.ͼ1.cm-focused .cm-matchingBracket{background-color:#328c8252}.ͼ1.cm-focused .cm-nonmatchingBracket{background-color:#b554}.ͼ1 .cm-foldPlaceholder{background-color:#eee;border:1px solid #ddd;color:#888;border-radius:.2em;margin:0 1px;padding:0 1px;cursor:pointer}.ͼ1 .cm-foldGutter span{padding:0 1px;cursor:pointer}.ͼ63{color:#8e908c}.ͼ64{color:#c82829}.ͼ65{color:#f5871f}.ͼ66{color:#c99e00}.ͼ67{color:#718c00}.ͼ68{color:#3e999f}.ͼ69{color:#4271ae}.ͼ6a{color:#8959a8}.ͼ6b{color:#4d4d4c}.ͼ62{background-color:#fff;color:#4d4d4c}.ͼ62 .cm-content{caret-color:#aeafad}.ͼ62 .cm-cursor,.ͼ62 .cm-dropCursor{border-left-color:#aeafad}.ͼ62 .cm-content ::-moz-selection{background-color:#d6d6d6}.ͼ62.cm-focused .cm-selectionBackgroundm .cm-selectionBackground,.ͼ62 .cm-content ::selection{background-color:#d6d6d6}.ͼ62 .cm-activeLine{background-color:#efefef}.ͼ62 .cm-gutters{background-color:#fff;color:#4d4d4c80}.ͼ62 .cm-activeLineGutter{background-color:#efefef}.ͼ15{background-color:#fff}.ͼ5{color:#404740}.ͼ6{text-decoration:underline}.ͼ7{text-decoration:underline;font-weight:700}.ͼ8{font-style:italic}.ͼ9{font-weight:700}.ͼa{text-decoration:line-through}.ͼb{color:#708}.ͼc{color:#219}.ͼd{color:#164}.ͼe{color:#a11}.ͼf{color:#e40}.ͼg{color:#00f}.ͼh{color:#30a}.ͼi{color:#085}.ͼj{color:#167}.ͼk{color:#256}.ͼl{color:#00c}.ͼm{color:#940}.ͼn{color:red}.ͼ7b{height:100%;width:100%}.ͼ7b .cm-scroller{height:100%!important}.ͼ79{height:100%;width:100%}.ͼ79 .cm-scroller{height:100%!important}.ͼ77{height:100%;width:100%}.ͼ77 .cm-scroller{height:100%!important}.ͼ75{height:100%;width:100%}.ͼ75 .cm-scroller{height:100%!important}.ͼ73{height:100%;width:100%}.ͼ73 .cm-scroller{height:100%!important}.ͼ71{height:100%;width:100%}.ͼ71 .cm-scroller{height:100%!important}.ͼ4 .cm-line ::-moz-selection,.ͼ4 .cm-line::-moz-selection{background-color:transparent!important}.ͼ4 .cm-line ::selection,.ͼ4 .cm-line::selection{background-color:transparent!important}.ͼ4 .cm-line{caret-color:transparent!important}.ͼ4 .cm-content :focus::-moz-selection,.ͼ4 .cm-content :focus ::-moz-selection{background-color:Highlight!important}.ͼ4 .cm-content :focus::selection,.ͼ4 .cm-content :focus ::selection{background-color:Highlight!important}.ͼ4 .cm-content :focus{caret-color:initial!important}.ͼ4 .cm-content{caret-color:transparent!important}.cm-editor,.cm-editor .cm-content{background-color:var(--color-editor);color:var(--color-editor-text);font-weight:400;font-size:.85rem;width:100%}.cm-editor .cm-gutters{background-color:var(--color-editor);border:none;padding-left:.25rem;padding-right:.5rem}.cm-editor .cm-activeLineGutter,.cm-editor .cm-activeLine{color:var(--color-editor-active-line-text)}.cm-editor .cm-line::-moz-selection,.cm-editor .cm-line>*::-moz-selection{background-color:var(--color-brand-100)!important;color:var(--color-brand-700)!important}.cm-editor .cm-line::selection,.cm-editor .cm-line>*::selection{background-color:var(--color-brand-100)!important;color:var(--color-brand-700)!important}.cm-editor .cm-tooltip.cm-tooltip-autocomplete{margin-top:.25rem}.cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul{border-radius:.35rem;padding:.25rem;color:var(--color-text)}.cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li{padding:.25rem .5rem;cursor:pointer;border-radius:.3rem;border:1px solid transparent;font-weight:400;display:flex;align-items:center}.cm-editor .cm-tooltip-autocomplete>ul>li[aria-selected=true]{color:var(--color-text)}.cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li .cm-completionMatchedText{opacity:1;font-weight:700;text-decoration:none}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column,.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model{margin-right:1.5rem}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon:before{display:inline-block;padding:.125rem .25rem;border-radius:.25rem}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon{display:none}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column,.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model{display:block;opacity:1}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column:before{content:"col";font-weight:700}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model:before{content:"mdl";font-weight:700}.cm-editor .cm-scroller{font-family:inherit}.cm-editor .cm-scroller::-webkit-scrollbar,.cm-editor .cm-tooltip.cm-tooltip-autocomplete ul::-webkit-scrollbar{height:var(--scrollbar-size);width:var(--scrollbar-size)}.cm-editor .cm-scroller::-webkit-scrollbar-track,.cm-editor .cm-tooltip.cm-tooltip-autocomplete ul::-webkit-scrollbar-track{background:transparent}.cm-editor .cm-scroller::-webkit-scrollbar-thumb,.cm-editor .cm-tooltip.cm-tooltip-autocomplete ul::-webkit-scrollbar-thumb{background:var(--color-neutral-40);border-radius:var(--scrollbar-radius)}.cm-editor .cm-tooltip{border:none!important;outline:none!important;background:var(--color-theme)!important}.sqlmesh-expression{background:var(--color-secondary-10);box-shadow:inset 0 -1px 0 0 var(--color-secondary-500),inset 0 1px 0 0 var(--color-secondary-500)}.sqlmesh-model,.sqlmesh-model>span{display:inline-block;color:var(--color-primary-500);box-shadow:inset 0 -2px 0 0 transparent;font-weight:700}.sqlmesh-model.--is-action-mode,.sqlmesh-model.--is-action-mode>span{cursor:pointer;box-shadow:inset 0 -2px 0 0 var(--color-primary-300)}.sqlmesh-model.--is-action-mode:hover{opacity:.8}.sqlmesh-model.--is-active-model,.sqlmesh-model.--is-active-model:hover,.sqlmesh-model.--is-active-model>span,.sqlmesh-model.--is-active-model:hover>span{box-shadow:none;cursor:default;opacity:1}.sqlmesh-model__column.--is-original,.sqlmesh-model__column.--is-original>span,.sqlmesh-model__column.--is-alias,.sqlmesh-model__column.--is-alias>span{display:inline-block;color:var(--color-accent-300);font-weight:700}.sqlmesh-model__column.--is-active-model.--is-alias,.sqlmesh-model__column.--is-active-model.--is-alias>span{display:inline-block;color:var(--color-brand-300);font-weight:700;box-shadow:inset 0 -2px 0 0 transparent}.sqlmesh-model__column.--is-active-model.--is-alias.--is-action-mode,.sqlmesh-model__column.--is-active-model.--is-alias.--is-action-mode>span{cursor:pointer;box-shadow:inset 0 -2px 0 0 var(--color-brand-300)}.sqlmesh-model__column.--is-action-mode:hover{opacity:.8}[mode=dark] .cm-editor .cm-activeLineGutter,[mode=dark] .cm-editor .cm-activeLine{background-color:var(--color-neutral-30)}[mode=dark] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model:before{color:var(--color-secondary-300);background:var(--color-secondary-20)}[mode=dark] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li .cm-completionMatchedText{color:var(--color-accent-200);background:var(--color-accent-50)}[mode=dark] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column:before{color:var(--color-brand-500);background:var(--color-brand-10)}[mode=dark] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul{border:1px solid var(--color-neutral-50)!important;box-shadow:0 2px 3px 0 var(--color-neutral-20)}[mode=dark] .cm-editor .cm-tooltip-autocomplete>ul>li[aria-selected=true]{background:var(--color-neutral-30);border:1px solid var(--color-neutral-50)!important}[mode=light] .cm-editor .cm-activeLineGutter,[mode=light] .cm-editor .cm-activeLine{background-color:var(--color-neutral-10)}[mode=light] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model:before{color:var(--color-secondary-500);background:var(--color-secondary-10)}[mode=light] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li .cm-completionMatchedText{color:var(--color-accent-500);background:var(--color-accent-5)}[mode=light] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column:before{color:var(--color-brand-500);background:var(--color-brand-20)}[mode=light] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul{border:1px solid var(--color-neutral-20)!important;box-shadow:0 2px 3px 0 var(--color-neutral-20)}[mode=light] .cm-editor .cm-tooltip-autocomplete>ul>li[aria-selected=true]{background:var(--color-neutral-5);border:1px solid var(--color-neutral-10)!important}`)),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
4
+ var bS=Object.defineProperty;var IS=(r,e,t)=>e in r?bS(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var wt=(r,e,t)=>IS(r,typeof e!="symbol"?e+"":e,t);function rg(r,e){for(var t=0;t<e.length;t++){const s=e[t];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in r)){const u=Object.getOwnPropertyDescriptor(s,a);u&&Object.defineProperty(r,a,u.get?u:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var $x=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tf(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Wd={exports:{}},ga={},Qd={exports:{}},Pe={};/**
5
+ * @license React
6
+ * react.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */var Ny;function ES(){if(Ny)return Pe;Ny=1;var r=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function b(x){return x===null||typeof x!="object"?null:(x=v&&x[v]||x["@@iterator"],typeof x=="function"?x:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,L={};function T(x,k,ge){this.props=x,this.context=k,this.refs=L,this.updater=ge||I}T.prototype.isReactComponent={},T.prototype.setState=function(x,k){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,k,"setState")},T.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function K(){}K.prototype=T.prototype;function W(x,k,ge){this.props=x,this.context=k,this.refs=L,this.updater=ge||I}var Y=W.prototype=new K;Y.constructor=W,A(Y,T.prototype),Y.isPureReactComponent=!0;var q=Array.isArray,he=Object.prototype.hasOwnProperty,le={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function V(x,k,ge){var xe,we={},Me=null,Ue=null;if(k!=null)for(xe in k.ref!==void 0&&(Ue=k.ref),k.key!==void 0&&(Me=""+k.key),k)he.call(k,xe)&&!C.hasOwnProperty(xe)&&(we[xe]=k[xe]);var je=arguments.length-2;if(je===1)we.children=ge;else if(1<je){for(var ft=Array(je),en=0;en<je;en++)ft[en]=arguments[en+2];we.children=ft}if(x&&x.defaultProps)for(xe in je=x.defaultProps,je)we[xe]===void 0&&(we[xe]=je[xe]);return{$$typeof:r,type:x,key:Me,ref:Ue,props:we,_owner:le.current}}function pe(x,k){return{$$typeof:r,type:x.type,key:k,ref:x.ref,props:x.props,_owner:x._owner}}function ue(x){return typeof x=="object"&&x!==null&&x.$$typeof===r}function Ye(x){var k={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(ge){return k[ge]})}var We=/\/+/g;function Xe(x,k){return typeof x=="object"&&x!==null&&x.key!=null?Ye(""+x.key):k.toString(36)}function dt(x,k,ge,xe,we){var Me=typeof x;(Me==="undefined"||Me==="boolean")&&(x=null);var Ue=!1;if(x===null)Ue=!0;else switch(Me){case"string":case"number":Ue=!0;break;case"object":switch(x.$$typeof){case r:case e:Ue=!0}}if(Ue)return Ue=x,we=we(Ue),x=xe===""?"."+Xe(Ue,0):xe,q(we)?(ge="",x!=null&&(ge=x.replace(We,"$&/")+"/"),dt(we,k,ge,"",function(en){return en})):we!=null&&(ue(we)&&(we=pe(we,ge+(!we.key||Ue&&Ue.key===we.key?"":(""+we.key).replace(We,"$&/")+"/")+x)),k.push(we)),1;if(Ue=0,xe=xe===""?".":xe+":",q(x))for(var je=0;je<x.length;je++){Me=x[je];var ft=xe+Xe(Me,je);Ue+=dt(Me,k,ge,ft,we)}else if(ft=b(x),typeof ft=="function")for(x=ft.call(x),je=0;!(Me=x.next()).done;)Me=Me.value,ft=xe+Xe(Me,je++),Ue+=dt(Me,k,ge,ft,we);else if(Me==="object")throw k=String(x),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.");return Ue}function Tt(x,k,ge){if(x==null)return x;var xe=[],we=0;return dt(x,xe,"","",function(Me){return k.call(ge,Me,we++)}),xe}function Pt(x){if(x._status===-1){var k=x._result;k=k(),k.then(function(ge){(x._status===0||x._status===-1)&&(x._status=1,x._result=ge)},function(ge){(x._status===0||x._status===-1)&&(x._status=2,x._result=ge)}),x._status===-1&&(x._status=0,x._result=k)}if(x._status===1)return x._result.default;throw x._result}var at={current:null},Q={transition:null},ce={ReactCurrentDispatcher:at,ReactCurrentBatchConfig:Q,ReactCurrentOwner:le};function J(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:Tt,forEach:function(x,k,ge){Tt(x,function(){k.apply(this,arguments)},ge)},count:function(x){var k=0;return Tt(x,function(){k++}),k},toArray:function(x){return Tt(x,function(k){return k})||[]},only:function(x){if(!ue(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},Pe.Component=T,Pe.Fragment=t,Pe.Profiler=a,Pe.PureComponent=W,Pe.StrictMode=s,Pe.Suspense=p,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ce,Pe.act=J,Pe.cloneElement=function(x,k,ge){if(x==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+x+".");var xe=A({},x.props),we=x.key,Me=x.ref,Ue=x._owner;if(k!=null){if(k.ref!==void 0&&(Me=k.ref,Ue=le.current),k.key!==void 0&&(we=""+k.key),x.type&&x.type.defaultProps)var je=x.type.defaultProps;for(ft in k)he.call(k,ft)&&!C.hasOwnProperty(ft)&&(xe[ft]=k[ft]===void 0&&je!==void 0?je[ft]:k[ft])}var ft=arguments.length-2;if(ft===1)xe.children=ge;else if(1<ft){je=Array(ft);for(var en=0;en<ft;en++)je[en]=arguments[en+2];xe.children=je}return{$$typeof:r,type:x.type,key:we,ref:Me,props:xe,_owner:Ue}},Pe.createContext=function(x){return x={$$typeof:d,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},x.Provider={$$typeof:u,_context:x},x.Consumer=x},Pe.createElement=V,Pe.createFactory=function(x){var k=V.bind(null,x);return k.type=x,k},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(x){return{$$typeof:h,render:x}},Pe.isValidElement=ue,Pe.lazy=function(x){return{$$typeof:g,_payload:{_status:-1,_result:x},_init:Pt}},Pe.memo=function(x,k){return{$$typeof:m,type:x,compare:k===void 0?null:k}},Pe.startTransition=function(x){var k=Q.transition;Q.transition={};try{x()}finally{Q.transition=k}},Pe.unstable_act=J,Pe.useCallback=function(x,k){return at.current.useCallback(x,k)},Pe.useContext=function(x){return at.current.useContext(x)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(x){return at.current.useDeferredValue(x)},Pe.useEffect=function(x,k){return at.current.useEffect(x,k)},Pe.useId=function(){return at.current.useId()},Pe.useImperativeHandle=function(x,k,ge){return at.current.useImperativeHandle(x,k,ge)},Pe.useInsertionEffect=function(x,k){return at.current.useInsertionEffect(x,k)},Pe.useLayoutEffect=function(x,k){return at.current.useLayoutEffect(x,k)},Pe.useMemo=function(x,k){return at.current.useMemo(x,k)},Pe.useReducer=function(x,k,ge){return at.current.useReducer(x,k,ge)},Pe.useRef=function(x){return at.current.useRef(x)},Pe.useState=function(x){return at.current.useState(x)},Pe.useSyncExternalStore=function(x,k,ge){return at.current.useSyncExternalStore(x,k,ge)},Pe.useTransition=function(){return at.current.useTransition()},Pe.version="18.3.1",Pe}var Ly;function ec(){return Ly||(Ly=1,Qd.exports=ES()),Qd.exports}/**
13
+ * @license React
14
+ * react-jsx-runtime.production.min.js
15
+ *
16
+ * Copyright (c) Facebook, Inc. and its affiliates.
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ */var By;function xS(){if(By)return ga;By=1;var r=ec(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(h,p,m){var g,v={},b=null,I=null;m!==void 0&&(b=""+m),p.key!==void 0&&(b=""+p.key),p.ref!==void 0&&(I=p.ref);for(g in p)s.call(p,g)&&!u.hasOwnProperty(g)&&(v[g]=p[g]);if(h&&h.defaultProps)for(g in p=h.defaultProps,p)v[g]===void 0&&(v[g]=p[g]);return{$$typeof:e,type:h,key:b,ref:I,props:v,_owner:a.current}}return ga.Fragment=t,ga.jsx=d,ga.jsxs=d,ga}var ky;function DS(){return ky||(ky=1,Wd.exports=xS()),Wd.exports}var B=DS(),P=ec();const Es=Tf(P),CS=rg({__proto__:null,default:Es},[P]);function OS(r){return r===!0}function Ui(r){return r===!1}function Wx(r){return Kt(r)||Ui(r)}function ig(r){return typeof r=="string"}function RS(r){return r===""}function Da(r){return Kt(r)||RS(r)}function Qx(r){return ig(r)?r:""}function Hx(r){return ig(r)&&r.trim()!==""}function tc(r){return Array.isArray(r)&&r.length>0}function sg(r){return Array.isArray(r)&&r.length===0}function Kx(r){return og(r)&&sg(Object.keys(r))}function qx(r){return og(r)&&tc(Object.keys(r))}function og(r){return typeof r=="object"&&sn(r)&&r.constructor===Object}function Kt(r){return r==null}function sn(r){return r!=null}function Yx(r){if(!Kt(r))try{const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function Gx(r,e="yyyy-mm-dd",t=!0){if(Kt(r))return"";const s=t?r.getUTCFullYear():r.getFullYear(),a=g(t?r.getUTCMonth()+1:r.getMonth()+1),u=g(t?r.getUTCDate():r.getDate()),d=g(t?r.getUTCHours():r.getHours()),h=g(t?r.getUTCMinutes():r.getMinutes()),p=g(t?r.getUTCSeconds():r.getSeconds());return{"mm/dd/yyyy":`${a}/${u}/${s}`,"yyyy-mm-dd":`${s}-${a}-${u}`,"yyyy-mm-dd hh-mm-ss":`${s}-${a}-${u} ${d}:${h}:${p}`}[e]??r.toDateString();function g(v){return v.toString().padStart(2,"0")}}function Jx(r,e){return r.includes(e)}function Xx(r,e,t=100){return Kt(r)||Kt(e)||e===0||isNaN(r)||isNaN(e)||isNaN(t)?0:r/e*t}function FS(r){if(!Kt(r))try{return r==="undefined"?void 0:JSON.parse(r??"")}catch{console.log("parsing error on",{value:r});return}}function Zx(r,e=500,t=!1){let s;return function(...u){const d=t&&Kt(s);clearTimeout(s),s=setTimeout(()=>{s=void 0,Ui(t)&&r(...u)},e),d&&r(...u)}}function uf(){const r=new Date().getTime().toString(36),e=Math.random().toString(36).substring(2,8);return r+e}function eD(...r){return r.filter(Boolean).join("__")}function tD(r,e){const t=(Date.now()%1e5).toString(16);return`${Kt(r)?"":`${r}_`}${t}${e??""}`.toLowerCase()}function nD(r,e=0,t=5,s="...",a){const u=r.length;return t=Math.abs(t),a=Kt(a)?t:Math.abs(a),e>u||t+a>=u?r:a===0?r.substring(0,t)+s:r.substring(0,t)+s+r.substring(u-a)}const Hd=window.localStorage;function ag(r,e){function t(){try{const u=Hd.getItem(r);return FS(u)}catch(u){console.log(u)}}function s(u){try{const d=Object.assign({},t(),u);Hd.setItem(r,JSON.stringify(d))}catch(d){console.log(d)}}function a(){Hd.removeItem(r)}return[t,s,a]}const ro={Light:"light",Dark:"dark"},TS={mode:ro.Light},lg=P.createContext(TS);function MS({children:r}){var d;const[e,t]=ag("color-scheme"),s=((d=e())==null?void 0:d.mode)??(window.matchMedia("(prefers-color-scheme: dark)").matches?ro.Dark:ro.Light),[a,u]=P.useState(s);return P.useEffect(()=>{t({mode:a}),document.documentElement.setAttribute("mode",a)},[a]),B.jsx(lg.Provider,{value:{mode:a,toggleColorScheme(){u(a===ro.Light?ro.Dark:ro.Light)}},children:r})}function rD(){return P.useContext(lg)}var iu={},Kd={exports:{}},hn={},qd={exports:{}},Yd={};/**
21
+ * @license React
22
+ * scheduler.production.min.js
23
+ *
24
+ * Copyright (c) Facebook, Inc. and its affiliates.
25
+ *
26
+ * This source code is licensed under the MIT license found in the
27
+ * LICENSE file in the root directory of this source tree.
28
+ */var Uy;function AS(){return Uy||(Uy=1,function(r){function e(Q,ce){var J=Q.length;Q.push(ce);e:for(;0<J;){var x=J-1>>>1,k=Q[x];if(0<a(k,ce))Q[x]=ce,Q[J]=k,J=x;else break e}}function t(Q){return Q.length===0?null:Q[0]}function s(Q){if(Q.length===0)return null;var ce=Q[0],J=Q.pop();if(J!==ce){Q[0]=J;e:for(var x=0,k=Q.length,ge=k>>>1;x<ge;){var xe=2*(x+1)-1,we=Q[xe],Me=xe+1,Ue=Q[Me];if(0>a(we,J))Me<k&&0>a(Ue,we)?(Q[x]=Ue,Q[Me]=J,x=Me):(Q[x]=we,Q[xe]=J,x=xe);else if(Me<k&&0>a(Ue,J))Q[x]=Ue,Q[Me]=J,x=Me;else break e}}return ce}function a(Q,ce){var J=Q.sortIndex-ce.sortIndex;return J!==0?J:Q.id-ce.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;r.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();r.unstable_now=function(){return d.now()-h}}var p=[],m=[],g=1,v=null,b=3,I=!1,A=!1,L=!1,T=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Y(Q){for(var ce=t(m);ce!==null;){if(ce.callback===null)s(m);else if(ce.startTime<=Q)s(m),ce.sortIndex=ce.expirationTime,e(p,ce);else break;ce=t(m)}}function q(Q){if(L=!1,Y(Q),!A)if(t(p)!==null)A=!0,Pt(he);else{var ce=t(m);ce!==null&&at(q,ce.startTime-Q)}}function he(Q,ce){A=!1,L&&(L=!1,K(V),V=-1),I=!0;var J=b;try{for(Y(ce),v=t(p);v!==null&&(!(v.expirationTime>ce)||Q&&!Ye());){var x=v.callback;if(typeof x=="function"){v.callback=null,b=v.priorityLevel;var k=x(v.expirationTime<=ce);ce=r.unstable_now(),typeof k=="function"?v.callback=k:v===t(p)&&s(p),Y(ce)}else s(p);v=t(p)}if(v!==null)var ge=!0;else{var xe=t(m);xe!==null&&at(q,xe.startTime-ce),ge=!1}return ge}finally{v=null,b=J,I=!1}}var le=!1,C=null,V=-1,pe=5,ue=-1;function Ye(){return!(r.unstable_now()-ue<pe)}function We(){if(C!==null){var Q=r.unstable_now();ue=Q;var ce=!0;try{ce=C(!0,Q)}finally{ce?Xe():(le=!1,C=null)}}else le=!1}var Xe;if(typeof W=="function")Xe=function(){W(We)};else if(typeof MessageChannel<"u"){var dt=new MessageChannel,Tt=dt.port2;dt.port1.onmessage=We,Xe=function(){Tt.postMessage(null)}}else Xe=function(){T(We,0)};function Pt(Q){C=Q,le||(le=!0,Xe())}function at(Q,ce){V=T(function(){Q(r.unstable_now())},ce)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(Q){Q.callback=null},r.unstable_continueExecution=function(){A||I||(A=!0,Pt(he))},r.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pe=0<Q?Math.floor(1e3/Q):5},r.unstable_getCurrentPriorityLevel=function(){return b},r.unstable_getFirstCallbackNode=function(){return t(p)},r.unstable_next=function(Q){switch(b){case 1:case 2:case 3:var ce=3;break;default:ce=b}var J=b;b=ce;try{return Q()}finally{b=J}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(Q,ce){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var J=b;b=Q;try{return ce()}finally{b=J}},r.unstable_scheduleCallback=function(Q,ce,J){var x=r.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?x+J:x):J=x,Q){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=J+k,Q={id:g++,callback:ce,priorityLevel:Q,startTime:J,expirationTime:k,sortIndex:-1},J>x?(Q.sortIndex=J,e(m,Q),t(p)===null&&Q===t(m)&&(L?(K(V),V=-1):L=!0,at(q,J-x))):(Q.sortIndex=k,e(p,Q),A||I||(A=!0,Pt(he))),Q},r.unstable_shouldYield=Ye,r.unstable_wrapCallback=function(Q){var ce=b;return function(){var J=b;b=ce;try{return Q.apply(this,arguments)}finally{b=J}}}}(Yd)),Yd}var jy;function PS(){return jy||(jy=1,qd.exports=AS()),qd.exports}/**
29
+ * @license React
30
+ * react-dom.production.min.js
31
+ *
32
+ * Copyright (c) Facebook, Inc. and its affiliates.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ */var zy;function NS(){if(zy)return hn;zy=1;var r=ec(),e=PS();function t(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,o=1;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(n,i){d(n,i),d(n+"Capture",i)}function d(n,i){for(a[n]=i,n=0;n<i.length;n++)s.add(i[n])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},v={};function b(n){return p.call(v,n)?!0:p.call(g,n)?!1:m.test(n)?v[n]=!0:(g[n]=!0,!1)}function I(n,i,o,l){if(o!==null&&o.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function A(n,i,o,l){if(i===null||typeof i>"u"||I(n,i,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function L(n,i,o,l,c,f,y){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=n,this.type=i,this.sanitizeURL=f,this.removeEmptyString=y}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){T[n]=new L(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];T[i]=new L(i,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){T[n]=new L(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){T[n]=new L(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){T[n]=new L(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){T[n]=new L(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){T[n]=new L(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){T[n]=new L(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){T[n]=new L(n,5,!1,n.toLowerCase(),null,!1,!1)});var K=/[\-:]([a-z])/g;function W(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var i=n.replace(K,W);T[i]=new L(i,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(K,W);T[i]=new L(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(K,W);T[i]=new L(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){T[n]=new L(n,1,!1,n.toLowerCase(),null,!1,!1)}),T.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){T[n]=new L(n,1,!1,n.toLowerCase(),null,!0,!0)});function Y(n,i,o,l){var c=T.hasOwnProperty(i)?T[i]:null;(c!==null?c.type!==0:l||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(A(i,o,c,l)&&(o=null),l||c===null?b(i)&&(o===null?n.removeAttribute(i):n.setAttribute(i,""+o)):c.mustUseProperty?n[c.propertyName]=o===null?c.type===3?!1:"":o:(i=c.attributeName,l=c.attributeNamespace,o===null?n.removeAttribute(i):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,l?n.setAttributeNS(l,i,o):n.setAttribute(i,o))))}var q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,he=Symbol.for("react.element"),le=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),ue=Symbol.for("react.provider"),Ye=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Xe=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),Tt=Symbol.for("react.memo"),Pt=Symbol.for("react.lazy"),at=Symbol.for("react.offscreen"),Q=Symbol.iterator;function ce(n){return n===null||typeof n!="object"?null:(n=Q&&n[Q]||n["@@iterator"],typeof n=="function"?n:null)}var J=Object.assign,x;function k(n){if(x===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);x=i&&i[1]||""}return`
37
+ `+x+n}var ge=!1;function xe(n,i){if(!n||ge)return"";ge=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(M){var l=M}Reflect.construct(n,[],i)}else{try{i.call()}catch(M){l=M}n.call(i.prototype)}else{try{throw Error()}catch(M){l=M}n()}}catch(M){if(M&&l&&typeof M.stack=="string"){for(var c=M.stack.split(`
38
+ `),f=l.stack.split(`
39
+ `),y=c.length-1,w=f.length-1;1<=y&&0<=w&&c[y]!==f[w];)w--;for(;1<=y&&0<=w;y--,w--)if(c[y]!==f[w]){if(y!==1||w!==1)do if(y--,w--,0>w||c[y]!==f[w]){var _=`
40
+ `+c[y].replace(" at new "," at ");return n.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",n.displayName)),_}while(1<=y&&0<=w);break}}}finally{ge=!1,Error.prepareStackTrace=o}return(n=n?n.displayName||n.name:"")?k(n):""}function we(n){switch(n.tag){case 5:return k(n.type);case 16:return k("Lazy");case 13:return k("Suspense");case 19:return k("SuspenseList");case 0:case 2:case 15:return n=xe(n.type,!1),n;case 11:return n=xe(n.type.render,!1),n;case 1:return n=xe(n.type,!0),n;default:return""}}function Me(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case C:return"Fragment";case le:return"Portal";case pe:return"Profiler";case V:return"StrictMode";case Xe:return"Suspense";case dt:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case Ye:return(n.displayName||"Context")+".Consumer";case ue:return(n._context.displayName||"Context")+".Provider";case We:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Tt:return i=n.displayName||null,i!==null?i:Me(n.type)||"Memo";case Pt:i=n._payload,n=n._init;try{return Me(n(i))}catch{}}return null}function Ue(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Me(i);case 8:return i===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function je(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function ft(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function en(n){var i=ft(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),l=""+n[i];if(!n.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,f=o.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return c.call(this)},set:function(y){l=""+y,f.call(this,y)}}),Object.defineProperty(n,i,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ds(n){n._valueTracker||(n._valueTracker=en(n))}function jt(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var o=i.getValue(),l="";return n&&(l=ft(n)?n.checked?"true":"false":n.value),n=l,n!==o?(i.setValue(n),!0):!1}function Wn(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Cs(n,i){var o=i.checked;return J({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??n._wrapperState.initialChecked})}function Ka(n,i){var o=i.defaultValue==null?"":i.defaultValue,l=i.checked!=null?i.checked:i.defaultChecked;o=je(i.value!=null?i.value:o),n._wrapperState={initialChecked:l,initialValue:o,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function ur(n,i){i=i.checked,i!=null&&Y(n,"checked",i,!1)}function Fo(n,i){ur(n,i);var o=je(i.value),l=i.type;if(o!=null)l==="number"?(o===0&&n.value===""||n.value!=o)&&(n.value=""+o):n.value!==""+o&&(n.value=""+o);else if(l==="submit"||l==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?Os(n,i.type,o):i.hasOwnProperty("defaultValue")&&Os(n,i.type,je(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function qa(n,i,o){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var l=i.type;if(!(l!=="submit"&&l!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,o||i===n.value||(n.value=i),n.defaultValue=i}o=n.name,o!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,o!==""&&(n.name=o)}function Os(n,i,o){(i!=="number"||Wn(n.ownerDocument)!==n)&&(o==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+o&&(n.defaultValue=""+o))}var qi=Array.isArray;function li(n,i,o,l){if(n=n.options,i){i={};for(var c=0;c<o.length;c++)i["$"+o[c]]=!0;for(o=0;o<n.length;o++)c=i.hasOwnProperty("$"+n[o].value),n[o].selected!==c&&(n[o].selected=c),c&&l&&(n[o].defaultSelected=!0)}else{for(o=""+je(o),i=null,c=0;c<n.length;c++){if(n[c].value===o){n[c].selected=!0,l&&(n[c].defaultSelected=!0);return}i!==null||n[c].disabled||(i=n[c])}i!==null&&(i.selected=!0)}}function To(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(t(91));return J({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function Ya(n,i){var o=i.value;if(o==null){if(o=i.children,i=i.defaultValue,o!=null){if(i!=null)throw Error(t(92));if(qi(o)){if(1<o.length)throw Error(t(93));o=o[0]}i=o}i==null&&(i=""),o=i}n._wrapperState={initialValue:je(o)}}function cr(n,i){var o=je(i.value),l=je(i.defaultValue);o!=null&&(o=""+o,o!==n.value&&(n.value=o),i.defaultValue==null&&n.defaultValue!==o&&(n.defaultValue=o)),l!=null&&(n.defaultValue=""+l)}function ui(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function Mo(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Yi(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?Mo(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var bn,Rn=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,o,l,c){MSApp.execUnsafeLocalFunction(function(){return n(i,o,l,c)})}:n}(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(bn=bn||document.createElement("div"),bn.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=bn.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function ci(n,i){if(i){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=i;return}}n.textContent=i}var dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uc=["Webkit","ms","Moz","O"];Object.keys(dr).forEach(function(n){uc.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),dr[i]=dr[n]})});function Qn(n,i,o){return i==null||typeof i=="boolean"||i===""?"":o||typeof i!="number"||i===0||dr.hasOwnProperty(n)&&dr[n]?(""+i).trim():i+"px"}function Ao(n,i){n=n.style;for(var o in i)if(i.hasOwnProperty(o)){var l=o.indexOf("--")===0,c=Qn(o,i[o],l);o==="float"&&(o="cssFloat"),l?n.setProperty(o,c):n[o]=c}}var Ga=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rs(n,i){if(i){if(Ga[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(t(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(t(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(t(61))}if(i.style!=null&&typeof i.style!="object")throw Error(t(62))}}function Po(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fs=null;function di(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ts=null,fr=null,hr=null;function Ja(n){if(n=na(n)){if(typeof Ts!="function")throw Error(t(280));var i=n.stateNode;i&&(i=wl(i),Ts(n.stateNode,n.type,i))}}function No(n){fr?hr?hr.push(n):hr=[n]:fr=n}function Xa(){if(fr){var n=fr,i=hr;if(hr=fr=null,Ja(n),i)for(n=0;n<i.length;n++)Ja(i[n])}}function Lo(n,i){return n(i)}function Gi(){}var fi=!1;function Za(n,i,o){if(fi)return n(i,o);fi=!0;try{return Lo(n,i,o)}finally{fi=!1,(fr!==null||hr!==null)&&(Gi(),Xa())}}function Ji(n,i){var o=n.stateNode;if(o===null)return null;var l=wl(o);if(l===null)return null;o=l[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(t(231,i,typeof o));return o}var S=!1;if(h)try{var D={};Object.defineProperty(D,"passive",{get:function(){S=!0}}),window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch{S=!1}function N(n,i,o,l,c,f,y,w,_){var M=Array.prototype.slice.call(arguments,3);try{i.apply(o,M)}catch(z){this.onError(z)}}var U=!1,G=null,ae=!1,ye=null,ne={onError:function(n){U=!0,G=n}};function ie(n,i,o,l,c,f,y,w,_){U=!1,G=null,N.apply(ne,arguments)}function Z(n,i,o,l,c,f,y,w,_){if(ie.apply(this,arguments),U){if(U){var M=G;U=!1,G=null}else throw Error(t(198));ae||(ae=!0,ye=M)}}function te(n){var i=n,o=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(o=i.return),n=i.return;while(n)}return i.tag===3?o:null}function Se(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function Le(n){if(te(n)!==n)throw Error(t(188))}function Nt(n){var i=n.alternate;if(!i){if(i=te(n),i===null)throw Error(t(188));return i!==n?null:n}for(var o=n,l=i;;){var c=o.return;if(c===null)break;var f=c.alternate;if(f===null){if(l=c.return,l!==null){o=l;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return Le(c),n;if(f===l)return Le(c),i;f=f.sibling}throw Error(t(188))}if(o.return!==l.return)o=c,l=f;else{for(var y=!1,w=c.child;w;){if(w===o){y=!0,o=c,l=f;break}if(w===l){y=!0,l=c,o=f;break}w=w.sibling}if(!y){for(w=f.child;w;){if(w===o){y=!0,o=f,l=c;break}if(w===l){y=!0,l=f,o=c;break}w=w.sibling}if(!y)throw Error(t(189))}}if(o.alternate!==l)throw Error(t(190))}if(o.tag!==3)throw Error(t(188));return o.stateNode.current===o?n:i}function Ze(n){return n=Nt(n),n!==null?ze(n):null}function ze(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=ze(n);if(i!==null)return i;n=n.sibling}return null}var pt=e.unstable_scheduleCallback,Pr=e.unstable_cancelCallback,Xi=e.unstable_shouldYield,Hn=e.unstable_requestPaint,Qe=e.unstable_now,Bo=e.unstable_getCurrentPriorityLevel,Nr=e.unstable_ImmediatePriority,pr=e.unstable_UserBlockingPriority,Lr=e.unstable_NormalPriority,Ms=e.unstable_LowPriority,Be=e.unstable_IdlePriority,lt=null,Wt=null;function Zi(n){if(Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(lt,n,void 0,(n.current.flags&128)===128)}catch{}}var He=Math.clz32?Math.clz32:cc,hi=Math.log,el=Math.LN2;function cc(n){return n>>>=0,n===0?32:31-(hi(n)/el|0)|0}var tl=64,nl=4194304;function ko(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function rl(n,i){var o=n.pendingLanes;if(o===0)return 0;var l=0,c=n.suspendedLanes,f=n.pingedLanes,y=o&268435455;if(y!==0){var w=y&~c;w!==0?l=ko(w):(f&=y,f!==0&&(l=ko(f)))}else y=o&~c,y!==0?l=ko(y):f!==0&&(l=ko(f));if(l===0)return 0;if(i!==0&&i!==l&&(i&c)===0&&(c=l&-l,f=i&-i,c>=f||c===16&&(f&4194240)!==0))return i;if((l&4)!==0&&(l|=o&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=l;0<i;)o=31-He(i),c=1<<o,l|=n[o],i&=~c;return l}function z0(n,i){switch(n){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function V0(n,i){for(var o=n.suspendedLanes,l=n.pingedLanes,c=n.expirationTimes,f=n.pendingLanes;0<f;){var y=31-He(f),w=1<<y,_=c[y];_===-1?((w&o)===0||(w&l)!==0)&&(c[y]=z0(w,i)):_<=i&&(n.expiredLanes|=w),f&=~w}}function dc(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function fh(){var n=tl;return tl<<=1,(tl&4194240)===0&&(tl=64),n}function fc(n){for(var i=[],o=0;31>o;o++)i.push(n);return i}function Uo(n,i,o){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-He(i),n[i]=o}function $0(n,i){var o=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var l=n.eventTimes;for(n=n.expirationTimes;0<o;){var c=31-He(o),f=1<<c;i[c]=0,l[c]=-1,n[c]=-1,o&=~f}}function hc(n,i){var o=n.entangledLanes|=i;for(n=n.entanglements;o;){var l=31-He(o),c=1<<l;c&i|n[l]&i&&(n[l]|=i),o&=~c}}var et=0;function hh(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var ph,pc,yh,mh,gh,yc=!1,il=[],pi=null,yi=null,mi=null,jo=new Map,zo=new Map,gi=[],W0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function vh(n,i){switch(n){case"focusin":case"focusout":pi=null;break;case"dragenter":case"dragleave":yi=null;break;case"mouseover":case"mouseout":mi=null;break;case"pointerover":case"pointerout":jo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":zo.delete(i.pointerId)}}function Vo(n,i,o,l,c,f){return n===null||n.nativeEvent!==f?(n={blockedOn:i,domEventName:o,eventSystemFlags:l,nativeEvent:f,targetContainers:[c]},i!==null&&(i=na(i),i!==null&&pc(i)),n):(n.eventSystemFlags|=l,i=n.targetContainers,c!==null&&i.indexOf(c)===-1&&i.push(c),n)}function Q0(n,i,o,l,c){switch(i){case"focusin":return pi=Vo(pi,n,i,o,l,c),!0;case"dragenter":return yi=Vo(yi,n,i,o,l,c),!0;case"mouseover":return mi=Vo(mi,n,i,o,l,c),!0;case"pointerover":var f=c.pointerId;return jo.set(f,Vo(jo.get(f)||null,n,i,o,l,c)),!0;case"gotpointercapture":return f=c.pointerId,zo.set(f,Vo(zo.get(f)||null,n,i,o,l,c)),!0}return!1}function wh(n){var i=es(n.target);if(i!==null){var o=te(i);if(o!==null){if(i=o.tag,i===13){if(i=Se(o),i!==null){n.blockedOn=i,gh(n.priority,function(){yh(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function sl(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var o=gc(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(o===null){o=n.nativeEvent;var l=new o.constructor(o.type,o);Fs=l,o.target.dispatchEvent(l),Fs=null}else return i=na(o),i!==null&&pc(i),n.blockedOn=o,!1;i.shift()}return!0}function Sh(n,i,o){sl(n)&&o.delete(i)}function H0(){yc=!1,pi!==null&&sl(pi)&&(pi=null),yi!==null&&sl(yi)&&(yi=null),mi!==null&&sl(mi)&&(mi=null),jo.forEach(Sh),zo.forEach(Sh)}function $o(n,i){n.blockedOn===i&&(n.blockedOn=null,yc||(yc=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,H0)))}function Wo(n){function i(c){return $o(c,n)}if(0<il.length){$o(il[0],n);for(var o=1;o<il.length;o++){var l=il[o];l.blockedOn===n&&(l.blockedOn=null)}}for(pi!==null&&$o(pi,n),yi!==null&&$o(yi,n),mi!==null&&$o(mi,n),jo.forEach(i),zo.forEach(i),o=0;o<gi.length;o++)l=gi[o],l.blockedOn===n&&(l.blockedOn=null);for(;0<gi.length&&(o=gi[0],o.blockedOn===null);)wh(o),o.blockedOn===null&&gi.shift()}var As=q.ReactCurrentBatchConfig,ol=!0;function K0(n,i,o,l){var c=et,f=As.transition;As.transition=null;try{et=1,mc(n,i,o,l)}finally{et=c,As.transition=f}}function q0(n,i,o,l){var c=et,f=As.transition;As.transition=null;try{et=4,mc(n,i,o,l)}finally{et=c,As.transition=f}}function mc(n,i,o,l){if(ol){var c=gc(n,i,o,l);if(c===null)Pc(n,i,l,al,o),vh(n,l);else if(Q0(c,n,i,o,l))l.stopPropagation();else if(vh(n,l),i&4&&-1<W0.indexOf(n)){for(;c!==null;){var f=na(c);if(f!==null&&ph(f),f=gc(n,i,o,l),f===null&&Pc(n,i,l,al,o),f===c)break;c=f}c!==null&&l.stopPropagation()}else Pc(n,i,l,null,o)}}var al=null;function gc(n,i,o,l){if(al=null,n=di(l),n=es(n),n!==null)if(i=te(n),i===null)n=null;else if(o=i.tag,o===13){if(n=Se(i),n!==null)return n;n=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return al=n,null}function _h(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Bo()){case Nr:return 1;case pr:return 4;case Lr:case Ms:return 16;case Be:return 536870912;default:return 16}default:return 16}}var vi=null,vc=null,ll=null;function bh(){if(ll)return ll;var n,i=vc,o=i.length,l,c="value"in vi?vi.value:vi.textContent,f=c.length;for(n=0;n<o&&i[n]===c[n];n++);var y=o-n;for(l=1;l<=y&&i[o-l]===c[f-l];l++);return ll=c.slice(n,1<l?1-l:void 0)}function ul(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function cl(){return!0}function Ih(){return!1}function In(n){function i(o,l,c,f,y){this._reactName=o,this._targetInst=c,this.type=l,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var w in n)n.hasOwnProperty(w)&&(o=n[w],this[w]=o?o(f):f[w]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?cl:Ih,this.isPropagationStopped=Ih,this}return J(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=cl)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=cl)},persist:function(){},isPersistent:cl}),i}var Ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wc=In(Ps),Qo=J({},Ps,{view:0,detail:0}),Y0=In(Qo),Sc,_c,Ho,dl=J({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ic,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ho&&(Ho&&n.type==="mousemove"?(Sc=n.screenX-Ho.screenX,_c=n.screenY-Ho.screenY):_c=Sc=0,Ho=n),Sc)},movementY:function(n){return"movementY"in n?n.movementY:_c}}),Eh=In(dl),G0=J({},dl,{dataTransfer:0}),J0=In(G0),X0=J({},Qo,{relatedTarget:0}),bc=In(X0),Z0=J({},Ps,{animationName:0,elapsedTime:0,pseudoElement:0}),ew=In(Z0),tw=J({},Ps,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),nw=In(tw),rw=J({},Ps,{data:0}),xh=In(rw),iw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ow={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aw(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=ow[n])?!!i[n]:!1}function Ic(){return aw}var lw=J({},Qo,{key:function(n){if(n.key){var i=iw[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=ul(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?sw[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ic,charCode:function(n){return n.type==="keypress"?ul(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ul(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),uw=In(lw),cw=J({},dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dh=In(cw),dw=J({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ic}),fw=In(dw),hw=J({},Ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),pw=In(hw),yw=J({},dl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),mw=In(yw),gw=[9,13,27,32],Ec=h&&"CompositionEvent"in window,Ko=null;h&&"documentMode"in document&&(Ko=document.documentMode);var vw=h&&"TextEvent"in window&&!Ko,Ch=h&&(!Ec||Ko&&8<Ko&&11>=Ko),Oh=" ",Rh=!1;function Fh(n,i){switch(n){case"keyup":return gw.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ns=!1;function ww(n,i){switch(n){case"compositionend":return Th(i);case"keypress":return i.which!==32?null:(Rh=!0,Oh);case"textInput":return n=i.data,n===Oh&&Rh?null:n;default:return null}}function Sw(n,i){if(Ns)return n==="compositionend"||!Ec&&Fh(n,i)?(n=bh(),ll=vc=vi=null,Ns=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Ch&&i.locale!=="ko"?null:i.data;default:return null}}var _w={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mh(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!_w[n.type]:i==="textarea"}function Ah(n,i,o,l){No(l),i=ml(i,"onChange"),0<i.length&&(o=new wc("onChange","change",null,o,l),n.push({event:o,listeners:i}))}var qo=null,Yo=null;function bw(n){Jh(n,0)}function fl(n){var i=js(n);if(jt(i))return n}function Iw(n,i){if(n==="change")return i}var Ph=!1;if(h){var xc;if(h){var Dc="oninput"in document;if(!Dc){var Nh=document.createElement("div");Nh.setAttribute("oninput","return;"),Dc=typeof Nh.oninput=="function"}xc=Dc}else xc=!1;Ph=xc&&(!document.documentMode||9<document.documentMode)}function Lh(){qo&&(qo.detachEvent("onpropertychange",Bh),Yo=qo=null)}function Bh(n){if(n.propertyName==="value"&&fl(Yo)){var i=[];Ah(i,Yo,n,di(n)),Za(bw,i)}}function Ew(n,i,o){n==="focusin"?(Lh(),qo=i,Yo=o,qo.attachEvent("onpropertychange",Bh)):n==="focusout"&&Lh()}function xw(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return fl(Yo)}function Dw(n,i){if(n==="click")return fl(i)}function Cw(n,i){if(n==="input"||n==="change")return fl(i)}function Ow(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Kn=typeof Object.is=="function"?Object.is:Ow;function Go(n,i){if(Kn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var o=Object.keys(n),l=Object.keys(i);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var c=o[l];if(!p.call(i,c)||!Kn(n[c],i[c]))return!1}return!0}function kh(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Uh(n,i){var o=kh(n);n=0;for(var l;o;){if(o.nodeType===3){if(l=n+o.textContent.length,n<=i&&l>=i)return{node:o,offset:i-n};n=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=kh(o)}}function jh(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?jh(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function zh(){for(var n=window,i=Wn();i instanceof n.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)n=i.contentWindow;else break;i=Wn(n.document)}return i}function Cc(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function Rw(n){var i=zh(),o=n.focusedElem,l=n.selectionRange;if(i!==o&&o&&o.ownerDocument&&jh(o.ownerDocument.documentElement,o)){if(l!==null&&Cc(o)){if(i=l.start,n=l.end,n===void 0&&(n=i),"selectionStart"in o)o.selectionStart=i,o.selectionEnd=Math.min(n,o.value.length);else if(n=(i=o.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var c=o.textContent.length,f=Math.min(l.start,c);l=l.end===void 0?f:Math.min(l.end,c),!n.extend&&f>l&&(c=l,l=f,f=c),c=Uh(o,f);var y=Uh(o,l);c&&y&&(n.rangeCount!==1||n.anchorNode!==c.node||n.anchorOffset!==c.offset||n.focusNode!==y.node||n.focusOffset!==y.offset)&&(i=i.createRange(),i.setStart(c.node,c.offset),n.removeAllRanges(),f>l?(n.addRange(i),n.extend(y.node,y.offset)):(i.setEnd(y.node,y.offset),n.addRange(i)))}}for(i=[],n=o;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<i.length;o++)n=i[o],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var Fw=h&&"documentMode"in document&&11>=document.documentMode,Ls=null,Oc=null,Jo=null,Rc=!1;function Vh(n,i,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Rc||Ls==null||Ls!==Wn(l)||(l=Ls,"selectionStart"in l&&Cc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Jo&&Go(Jo,l)||(Jo=l,l=ml(Oc,"onSelect"),0<l.length&&(i=new wc("onSelect","select",null,i,o),n.push({event:i,listeners:l}),i.target=Ls)))}function hl(n,i){var o={};return o[n.toLowerCase()]=i.toLowerCase(),o["Webkit"+n]="webkit"+i,o["Moz"+n]="moz"+i,o}var Bs={animationend:hl("Animation","AnimationEnd"),animationiteration:hl("Animation","AnimationIteration"),animationstart:hl("Animation","AnimationStart"),transitionend:hl("Transition","TransitionEnd")},Fc={},$h={};h&&($h=document.createElement("div").style,"AnimationEvent"in window||(delete Bs.animationend.animation,delete Bs.animationiteration.animation,delete Bs.animationstart.animation),"TransitionEvent"in window||delete Bs.transitionend.transition);function pl(n){if(Fc[n])return Fc[n];if(!Bs[n])return n;var i=Bs[n],o;for(o in i)if(i.hasOwnProperty(o)&&o in $h)return Fc[n]=i[o];return n}var Wh=pl("animationend"),Qh=pl("animationiteration"),Hh=pl("animationstart"),Kh=pl("transitionend"),qh=new Map,Yh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function wi(n,i){qh.set(n,i),u(i,[n])}for(var Tc=0;Tc<Yh.length;Tc++){var Mc=Yh[Tc],Tw=Mc.toLowerCase(),Mw=Mc[0].toUpperCase()+Mc.slice(1);wi(Tw,"on"+Mw)}wi(Wh,"onAnimationEnd"),wi(Qh,"onAnimationIteration"),wi(Hh,"onAnimationStart"),wi("dblclick","onDoubleClick"),wi("focusin","onFocus"),wi("focusout","onBlur"),wi(Kh,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Aw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xo));function Gh(n,i,o){var l=n.type||"unknown-event";n.currentTarget=o,Z(l,i,void 0,n),n.currentTarget=null}function Jh(n,i){i=(i&4)!==0;for(var o=0;o<n.length;o++){var l=n[o],c=l.event;l=l.listeners;e:{var f=void 0;if(i)for(var y=l.length-1;0<=y;y--){var w=l[y],_=w.instance,M=w.currentTarget;if(w=w.listener,_!==f&&c.isPropagationStopped())break e;Gh(c,w,M),f=_}else for(y=0;y<l.length;y++){if(w=l[y],_=w.instance,M=w.currentTarget,w=w.listener,_!==f&&c.isPropagationStopped())break e;Gh(c,w,M),f=_}}}if(ae)throw n=ye,ae=!1,ye=null,n}function yt(n,i){var o=i[jc];o===void 0&&(o=i[jc]=new Set);var l=n+"__bubble";o.has(l)||(Xh(i,n,2,!1),o.add(l))}function Ac(n,i,o){var l=0;i&&(l|=4),Xh(o,n,l,i)}var yl="_reactListening"+Math.random().toString(36).slice(2);function Zo(n){if(!n[yl]){n[yl]=!0,s.forEach(function(o){o!=="selectionchange"&&(Aw.has(o)||Ac(o,!1,n),Ac(o,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[yl]||(i[yl]=!0,Ac("selectionchange",!1,i))}}function Xh(n,i,o,l){switch(_h(i)){case 1:var c=K0;break;case 4:c=q0;break;default:c=mc}o=c.bind(null,i,o,n),c=void 0,!S||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(c=!0),l?c!==void 0?n.addEventListener(i,o,{capture:!0,passive:c}):n.addEventListener(i,o,!0):c!==void 0?n.addEventListener(i,o,{passive:c}):n.addEventListener(i,o,!1)}function Pc(n,i,o,l,c){var f=l;if((i&1)===0&&(i&2)===0&&l!==null)e:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var w=l.stateNode.containerInfo;if(w===c||w.nodeType===8&&w.parentNode===c)break;if(y===4)for(y=l.return;y!==null;){var _=y.tag;if((_===3||_===4)&&(_=y.stateNode.containerInfo,_===c||_.nodeType===8&&_.parentNode===c))return;y=y.return}for(;w!==null;){if(y=es(w),y===null)return;if(_=y.tag,_===5||_===6){l=f=y;continue e}w=w.parentNode}}l=l.return}Za(function(){var M=f,z=di(o),$=[];e:{var j=qh.get(n);if(j!==void 0){var X=wc,re=n;switch(n){case"keypress":if(ul(o)===0)break e;case"keydown":case"keyup":X=uw;break;case"focusin":re="focus",X=bc;break;case"focusout":re="blur",X=bc;break;case"beforeblur":case"afterblur":X=bc;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Eh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=J0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=fw;break;case Wh:case Qh:case Hh:X=ew;break;case Kh:X=pw;break;case"scroll":X=Y0;break;case"wheel":X=mw;break;case"copy":case"cut":case"paste":X=nw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Dh}var se=(i&4)!==0,Ot=!se&&n==="scroll",R=se?j!==null?j+"Capture":null:j;se=[];for(var E=M,F;E!==null;){F=E;var H=F.stateNode;if(F.tag===5&&H!==null&&(F=H,R!==null&&(H=Ji(E,R),H!=null&&se.push(ea(E,H,F)))),Ot)break;E=E.return}0<se.length&&(j=new X(j,re,null,o,z),$.push({event:j,listeners:se}))}}if((i&7)===0){e:{if(j=n==="mouseover"||n==="pointerover",X=n==="mouseout"||n==="pointerout",j&&o!==Fs&&(re=o.relatedTarget||o.fromElement)&&(es(re)||re[Br]))break e;if((X||j)&&(j=z.window===z?z:(j=z.ownerDocument)?j.defaultView||j.parentWindow:window,X?(re=o.relatedTarget||o.toElement,X=M,re=re?es(re):null,re!==null&&(Ot=te(re),re!==Ot||re.tag!==5&&re.tag!==6)&&(re=null)):(X=null,re=M),X!==re)){if(se=Eh,H="onMouseLeave",R="onMouseEnter",E="mouse",(n==="pointerout"||n==="pointerover")&&(se=Dh,H="onPointerLeave",R="onPointerEnter",E="pointer"),Ot=X==null?j:js(X),F=re==null?j:js(re),j=new se(H,E+"leave",X,o,z),j.target=Ot,j.relatedTarget=F,H=null,es(z)===M&&(se=new se(R,E+"enter",re,o,z),se.target=F,se.relatedTarget=Ot,H=se),Ot=H,X&&re)t:{for(se=X,R=re,E=0,F=se;F;F=ks(F))E++;for(F=0,H=R;H;H=ks(H))F++;for(;0<E-F;)se=ks(se),E--;for(;0<F-E;)R=ks(R),F--;for(;E--;){if(se===R||R!==null&&se===R.alternate)break t;se=ks(se),R=ks(R)}se=null}else se=null;X!==null&&Zh($,j,X,se,!1),re!==null&&Ot!==null&&Zh($,Ot,re,se,!0)}}e:{if(j=M?js(M):window,X=j.nodeName&&j.nodeName.toLowerCase(),X==="select"||X==="input"&&j.type==="file")var oe=Iw;else if(Mh(j))if(Ph)oe=Cw;else{oe=xw;var de=Ew}else(X=j.nodeName)&&X.toLowerCase()==="input"&&(j.type==="checkbox"||j.type==="radio")&&(oe=Dw);if(oe&&(oe=oe(n,M))){Ah($,oe,o,z);break e}de&&de(n,j,M),n==="focusout"&&(de=j._wrapperState)&&de.controlled&&j.type==="number"&&Os(j,"number",j.value)}switch(de=M?js(M):window,n){case"focusin":(Mh(de)||de.contentEditable==="true")&&(Ls=de,Oc=M,Jo=null);break;case"focusout":Jo=Oc=Ls=null;break;case"mousedown":Rc=!0;break;case"contextmenu":case"mouseup":case"dragend":Rc=!1,Vh($,o,z);break;case"selectionchange":if(Fw)break;case"keydown":case"keyup":Vh($,o,z)}var fe;if(Ec)e:{switch(n){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Ns?Fh(n,o)&&(me="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(me="onCompositionStart");me&&(Ch&&o.locale!=="ko"&&(Ns||me!=="onCompositionStart"?me==="onCompositionEnd"&&Ns&&(fe=bh()):(vi=z,vc="value"in vi?vi.value:vi.textContent,Ns=!0)),de=ml(M,me),0<de.length&&(me=new xh(me,n,null,o,z),$.push({event:me,listeners:de}),fe?me.data=fe:(fe=Th(o),fe!==null&&(me.data=fe)))),(fe=vw?ww(n,o):Sw(n,o))&&(M=ml(M,"onBeforeInput"),0<M.length&&(z=new xh("onBeforeInput","beforeinput",null,o,z),$.push({event:z,listeners:M}),z.data=fe))}Jh($,i)})}function ea(n,i,o){return{instance:n,listener:i,currentTarget:o}}function ml(n,i){for(var o=i+"Capture",l=[];n!==null;){var c=n,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=Ji(n,o),f!=null&&l.unshift(ea(n,f,c)),f=Ji(n,i),f!=null&&l.push(ea(n,f,c))),n=n.return}return l}function ks(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Zh(n,i,o,l,c){for(var f=i._reactName,y=[];o!==null&&o!==l;){var w=o,_=w.alternate,M=w.stateNode;if(_!==null&&_===l)break;w.tag===5&&M!==null&&(w=M,c?(_=Ji(o,f),_!=null&&y.unshift(ea(o,_,w))):c||(_=Ji(o,f),_!=null&&y.push(ea(o,_,w)))),o=o.return}y.length!==0&&n.push({event:i,listeners:y})}var Pw=/\r\n?/g,Nw=/\u0000|\uFFFD/g;function ep(n){return(typeof n=="string"?n:""+n).replace(Pw,`
41
+ `).replace(Nw,"")}function gl(n,i,o){if(i=ep(i),ep(n)!==i&&o)throw Error(t(425))}function vl(){}var Nc=null,Lc=null;function Bc(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var kc=typeof setTimeout=="function"?setTimeout:void 0,Lw=typeof clearTimeout=="function"?clearTimeout:void 0,tp=typeof Promise=="function"?Promise:void 0,Bw=typeof queueMicrotask=="function"?queueMicrotask:typeof tp<"u"?function(n){return tp.resolve(null).then(n).catch(kw)}:kc;function kw(n){setTimeout(function(){throw n})}function Uc(n,i){var o=i,l=0;do{var c=o.nextSibling;if(n.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(l===0){n.removeChild(c),Wo(i);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=c}while(o);Wo(i)}function Si(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function np(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(i===0)return n;i--}else o==="/$"&&i++}n=n.previousSibling}return null}var Us=Math.random().toString(36).slice(2),yr="__reactFiber$"+Us,ta="__reactProps$"+Us,Br="__reactContainer$"+Us,jc="__reactEvents$"+Us,Uw="__reactListeners$"+Us,jw="__reactHandles$"+Us;function es(n){var i=n[yr];if(i)return i;for(var o=n.parentNode;o;){if(i=o[Br]||o[yr]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(n=np(n);n!==null;){if(o=n[yr])return o;n=np(n)}return i}n=o,o=n.parentNode}return null}function na(n){return n=n[yr]||n[Br],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function js(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(t(33))}function wl(n){return n[ta]||null}var zc=[],zs=-1;function _i(n){return{current:n}}function mt(n){0>zs||(n.current=zc[zs],zc[zs]=null,zs--)}function ht(n,i){zs++,zc[zs]=n.current,n.current=i}var bi={},qt=_i(bi),ln=_i(!1),ts=bi;function Vs(n,i){var o=n.type.contextTypes;if(!o)return bi;var l=n.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===i)return l.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in o)c[f]=i[f];return l&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=c),c}function un(n){return n=n.childContextTypes,n!=null}function Sl(){mt(ln),mt(qt)}function rp(n,i,o){if(qt.current!==bi)throw Error(t(168));ht(qt,i),ht(ln,o)}function ip(n,i,o){var l=n.stateNode;if(i=i.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var c in l)if(!(c in i))throw Error(t(108,Ue(n)||"Unknown",c));return J({},o,l)}function _l(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||bi,ts=qt.current,ht(qt,n),ht(ln,ln.current),!0}function sp(n,i,o){var l=n.stateNode;if(!l)throw Error(t(169));o?(n=ip(n,i,ts),l.__reactInternalMemoizedMergedChildContext=n,mt(ln),mt(qt),ht(qt,n)):mt(ln),ht(ln,o)}var kr=null,bl=!1,Vc=!1;function op(n){kr===null?kr=[n]:kr.push(n)}function zw(n){bl=!0,op(n)}function Ii(){if(!Vc&&kr!==null){Vc=!0;var n=0,i=et;try{var o=kr;for(et=1;n<o.length;n++){var l=o[n];do l=l(!0);while(l!==null)}kr=null,bl=!1}catch(c){throw kr!==null&&(kr=kr.slice(n+1)),pt(Nr,Ii),c}finally{et=i,Vc=!1}}return null}var $s=[],Ws=0,Il=null,El=0,Fn=[],Tn=0,ns=null,Ur=1,jr="";function rs(n,i){$s[Ws++]=El,$s[Ws++]=Il,Il=n,El=i}function ap(n,i,o){Fn[Tn++]=Ur,Fn[Tn++]=jr,Fn[Tn++]=ns,ns=n;var l=Ur;n=jr;var c=32-He(l)-1;l&=~(1<<c),o+=1;var f=32-He(i)+c;if(30<f){var y=c-c%5;f=(l&(1<<y)-1).toString(32),l>>=y,c-=y,Ur=1<<32-He(i)+c|o<<c|l,jr=f+n}else Ur=1<<f|o<<c|l,jr=n}function $c(n){n.return!==null&&(rs(n,1),ap(n,1,0))}function Wc(n){for(;n===Il;)Il=$s[--Ws],$s[Ws]=null,El=$s[--Ws],$s[Ws]=null;for(;n===ns;)ns=Fn[--Tn],Fn[Tn]=null,jr=Fn[--Tn],Fn[Tn]=null,Ur=Fn[--Tn],Fn[Tn]=null}var En=null,xn=null,vt=!1,qn=null;function lp(n,i){var o=Nn(5,null,null,0);o.elementType="DELETED",o.stateNode=i,o.return=n,i=n.deletions,i===null?(n.deletions=[o],n.flags|=16):i.push(o)}function up(n,i){switch(n.tag){case 5:var o=n.type;return i=i.nodeType!==1||o.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,En=n,xn=Si(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,En=n,xn=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(o=ns!==null?{id:Ur,overflow:jr}:null,n.memoizedState={dehydrated:i,treeContext:o,retryLane:1073741824},o=Nn(18,null,null,0),o.stateNode=i,o.return=n,n.child=o,En=n,xn=null,!0):!1;default:return!1}}function Qc(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Hc(n){if(vt){var i=xn;if(i){var o=i;if(!up(n,i)){if(Qc(n))throw Error(t(418));i=Si(o.nextSibling);var l=En;i&&up(n,i)?lp(l,o):(n.flags=n.flags&-4097|2,vt=!1,En=n)}}else{if(Qc(n))throw Error(t(418));n.flags=n.flags&-4097|2,vt=!1,En=n}}}function cp(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;En=n}function xl(n){if(n!==En)return!1;if(!vt)return cp(n),vt=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!Bc(n.type,n.memoizedProps)),i&&(i=xn)){if(Qc(n))throw dp(),Error(t(418));for(;i;)lp(n,i),i=Si(i.nextSibling)}if(cp(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(t(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"){if(i===0){xn=Si(n.nextSibling);break e}i--}else o!=="$"&&o!=="$!"&&o!=="$?"||i++}n=n.nextSibling}xn=null}}else xn=En?Si(n.stateNode.nextSibling):null;return!0}function dp(){for(var n=xn;n;)n=Si(n.nextSibling)}function Qs(){xn=En=null,vt=!1}function Kc(n){qn===null?qn=[n]:qn.push(n)}var Vw=q.ReactCurrentBatchConfig;function ra(n,i,o){if(n=o.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(t(309));var l=o.stateNode}if(!l)throw Error(t(147,n));var c=l,f=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===f?i.ref:(i=function(y){var w=c.refs;y===null?delete w[f]:w[f]=y},i._stringRef=f,i)}if(typeof n!="string")throw Error(t(284));if(!o._owner)throw Error(t(290,n))}return n}function Dl(n,i){throw n=Object.prototype.toString.call(i),Error(t(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function fp(n){var i=n._init;return i(n._payload)}function hp(n){function i(R,E){if(n){var F=R.deletions;F===null?(R.deletions=[E],R.flags|=16):F.push(E)}}function o(R,E){if(!n)return null;for(;E!==null;)i(R,E),E=E.sibling;return null}function l(R,E){for(R=new Map;E!==null;)E.key!==null?R.set(E.key,E):R.set(E.index,E),E=E.sibling;return R}function c(R,E){return R=Ti(R,E),R.index=0,R.sibling=null,R}function f(R,E,F){return R.index=F,n?(F=R.alternate,F!==null?(F=F.index,F<E?(R.flags|=2,E):F):(R.flags|=2,E)):(R.flags|=1048576,E)}function y(R){return n&&R.alternate===null&&(R.flags|=2),R}function w(R,E,F,H){return E===null||E.tag!==6?(E=kd(F,R.mode,H),E.return=R,E):(E=c(E,F),E.return=R,E)}function _(R,E,F,H){var oe=F.type;return oe===C?z(R,E,F.props.children,H,F.key):E!==null&&(E.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===Pt&&fp(oe)===E.type)?(H=c(E,F.props),H.ref=ra(R,E,F),H.return=R,H):(H=Gl(F.type,F.key,F.props,null,R.mode,H),H.ref=ra(R,E,F),H.return=R,H)}function M(R,E,F,H){return E===null||E.tag!==4||E.stateNode.containerInfo!==F.containerInfo||E.stateNode.implementation!==F.implementation?(E=Ud(F,R.mode,H),E.return=R,E):(E=c(E,F.children||[]),E.return=R,E)}function z(R,E,F,H,oe){return E===null||E.tag!==7?(E=ds(F,R.mode,H,oe),E.return=R,E):(E=c(E,F),E.return=R,E)}function $(R,E,F){if(typeof E=="string"&&E!==""||typeof E=="number")return E=kd(""+E,R.mode,F),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case he:return F=Gl(E.type,E.key,E.props,null,R.mode,F),F.ref=ra(R,null,E),F.return=R,F;case le:return E=Ud(E,R.mode,F),E.return=R,E;case Pt:var H=E._init;return $(R,H(E._payload),F)}if(qi(E)||ce(E))return E=ds(E,R.mode,F,null),E.return=R,E;Dl(R,E)}return null}function j(R,E,F,H){var oe=E!==null?E.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return oe!==null?null:w(R,E,""+F,H);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case he:return F.key===oe?_(R,E,F,H):null;case le:return F.key===oe?M(R,E,F,H):null;case Pt:return oe=F._init,j(R,E,oe(F._payload),H)}if(qi(F)||ce(F))return oe!==null?null:z(R,E,F,H,null);Dl(R,F)}return null}function X(R,E,F,H,oe){if(typeof H=="string"&&H!==""||typeof H=="number")return R=R.get(F)||null,w(E,R,""+H,oe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case he:return R=R.get(H.key===null?F:H.key)||null,_(E,R,H,oe);case le:return R=R.get(H.key===null?F:H.key)||null,M(E,R,H,oe);case Pt:var de=H._init;return X(R,E,F,de(H._payload),oe)}if(qi(H)||ce(H))return R=R.get(F)||null,z(E,R,H,oe,null);Dl(E,H)}return null}function re(R,E,F,H){for(var oe=null,de=null,fe=E,me=E=0,$t=null;fe!==null&&me<F.length;me++){fe.index>me?($t=fe,fe=null):$t=fe.sibling;var Ke=j(R,fe,F[me],H);if(Ke===null){fe===null&&(fe=$t);break}n&&fe&&Ke.alternate===null&&i(R,fe),E=f(Ke,E,me),de===null?oe=Ke:de.sibling=Ke,de=Ke,fe=$t}if(me===F.length)return o(R,fe),vt&&rs(R,me),oe;if(fe===null){for(;me<F.length;me++)fe=$(R,F[me],H),fe!==null&&(E=f(fe,E,me),de===null?oe=fe:de.sibling=fe,de=fe);return vt&&rs(R,me),oe}for(fe=l(R,fe);me<F.length;me++)$t=X(fe,R,me,F[me],H),$t!==null&&(n&&$t.alternate!==null&&fe.delete($t.key===null?me:$t.key),E=f($t,E,me),de===null?oe=$t:de.sibling=$t,de=$t);return n&&fe.forEach(function(Mi){return i(R,Mi)}),vt&&rs(R,me),oe}function se(R,E,F,H){var oe=ce(F);if(typeof oe!="function")throw Error(t(150));if(F=oe.call(F),F==null)throw Error(t(151));for(var de=oe=null,fe=E,me=E=0,$t=null,Ke=F.next();fe!==null&&!Ke.done;me++,Ke=F.next()){fe.index>me?($t=fe,fe=null):$t=fe.sibling;var Mi=j(R,fe,Ke.value,H);if(Mi===null){fe===null&&(fe=$t);break}n&&fe&&Mi.alternate===null&&i(R,fe),E=f(Mi,E,me),de===null?oe=Mi:de.sibling=Mi,de=Mi,fe=$t}if(Ke.done)return o(R,fe),vt&&rs(R,me),oe;if(fe===null){for(;!Ke.done;me++,Ke=F.next())Ke=$(R,Ke.value,H),Ke!==null&&(E=f(Ke,E,me),de===null?oe=Ke:de.sibling=Ke,de=Ke);return vt&&rs(R,me),oe}for(fe=l(R,fe);!Ke.done;me++,Ke=F.next())Ke=X(fe,R,me,Ke.value,H),Ke!==null&&(n&&Ke.alternate!==null&&fe.delete(Ke.key===null?me:Ke.key),E=f(Ke,E,me),de===null?oe=Ke:de.sibling=Ke,de=Ke);return n&&fe.forEach(function(_S){return i(R,_S)}),vt&&rs(R,me),oe}function Ot(R,E,F,H){if(typeof F=="object"&&F!==null&&F.type===C&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case he:e:{for(var oe=F.key,de=E;de!==null;){if(de.key===oe){if(oe=F.type,oe===C){if(de.tag===7){o(R,de.sibling),E=c(de,F.props.children),E.return=R,R=E;break e}}else if(de.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===Pt&&fp(oe)===de.type){o(R,de.sibling),E=c(de,F.props),E.ref=ra(R,de,F),E.return=R,R=E;break e}o(R,de);break}else i(R,de);de=de.sibling}F.type===C?(E=ds(F.props.children,R.mode,H,F.key),E.return=R,R=E):(H=Gl(F.type,F.key,F.props,null,R.mode,H),H.ref=ra(R,E,F),H.return=R,R=H)}return y(R);case le:e:{for(de=F.key;E!==null;){if(E.key===de)if(E.tag===4&&E.stateNode.containerInfo===F.containerInfo&&E.stateNode.implementation===F.implementation){o(R,E.sibling),E=c(E,F.children||[]),E.return=R,R=E;break e}else{o(R,E);break}else i(R,E);E=E.sibling}E=Ud(F,R.mode,H),E.return=R,R=E}return y(R);case Pt:return de=F._init,Ot(R,E,de(F._payload),H)}if(qi(F))return re(R,E,F,H);if(ce(F))return se(R,E,F,H);Dl(R,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,E!==null&&E.tag===6?(o(R,E.sibling),E=c(E,F),E.return=R,R=E):(o(R,E),E=kd(F,R.mode,H),E.return=R,R=E),y(R)):o(R,E)}return Ot}var Hs=hp(!0),pp=hp(!1),Cl=_i(null),Ol=null,Ks=null,qc=null;function Yc(){qc=Ks=Ol=null}function Gc(n){var i=Cl.current;mt(Cl),n._currentValue=i}function Jc(n,i,o){for(;n!==null;){var l=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),n===o)break;n=n.return}}function qs(n,i){Ol=n,qc=Ks=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(cn=!0),n.firstContext=null)}function Mn(n){var i=n._currentValue;if(qc!==n)if(n={context:n,memoizedValue:i,next:null},Ks===null){if(Ol===null)throw Error(t(308));Ks=n,Ol.dependencies={lanes:0,firstContext:n}}else Ks=Ks.next=n;return i}var is=null;function Xc(n){is===null?is=[n]:is.push(n)}function yp(n,i,o,l){var c=i.interleaved;return c===null?(o.next=o,Xc(i)):(o.next=c.next,c.next=o),i.interleaved=o,zr(n,l)}function zr(n,i){n.lanes|=i;var o=n.alternate;for(o!==null&&(o.lanes|=i),o=n,n=n.return;n!==null;)n.childLanes|=i,o=n.alternate,o!==null&&(o.childLanes|=i),o=n,n=n.return;return o.tag===3?o.stateNode:null}var Ei=!1;function Zc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mp(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Vr(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function xi(n,i,o){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,($e&2)!==0){var c=l.pending;return c===null?i.next=i:(i.next=c.next,c.next=i),l.pending=i,zr(n,o)}return c=l.interleaved,c===null?(i.next=i,Xc(l)):(i.next=c.next,c.next=i),l.interleaved=i,zr(n,o)}function Rl(n,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194240)!==0)){var l=i.lanes;l&=n.pendingLanes,o|=l,i.lanes=o,hc(n,o)}}function gp(n,i){var o=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var c=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var y={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};f===null?c=f=y:f=f.next=y,o=o.next}while(o!==null);f===null?c=f=i:f=f.next=i}else c=f=i;o={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:l.shared,effects:l.effects},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=i:n.next=i,o.lastBaseUpdate=i}function Fl(n,i,o,l){var c=n.updateQueue;Ei=!1;var f=c.firstBaseUpdate,y=c.lastBaseUpdate,w=c.shared.pending;if(w!==null){c.shared.pending=null;var _=w,M=_.next;_.next=null,y===null?f=M:y.next=M,y=_;var z=n.alternate;z!==null&&(z=z.updateQueue,w=z.lastBaseUpdate,w!==y&&(w===null?z.firstBaseUpdate=M:w.next=M,z.lastBaseUpdate=_))}if(f!==null){var $=c.baseState;y=0,z=M=_=null,w=f;do{var j=w.lane,X=w.eventTime;if((l&j)===j){z!==null&&(z=z.next={eventTime:X,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var re=n,se=w;switch(j=i,X=o,se.tag){case 1:if(re=se.payload,typeof re=="function"){$=re.call(X,$,j);break e}$=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=se.payload,j=typeof re=="function"?re.call(X,$,j):re,j==null)break e;$=J({},$,j);break e;case 2:Ei=!0}}w.callback!==null&&w.lane!==0&&(n.flags|=64,j=c.effects,j===null?c.effects=[w]:j.push(w))}else X={eventTime:X,lane:j,tag:w.tag,payload:w.payload,callback:w.callback,next:null},z===null?(M=z=X,_=$):z=z.next=X,y|=j;if(w=w.next,w===null){if(w=c.shared.pending,w===null)break;j=w,w=j.next,j.next=null,c.lastBaseUpdate=j,c.shared.pending=null}}while(!0);if(z===null&&(_=$),c.baseState=_,c.firstBaseUpdate=M,c.lastBaseUpdate=z,i=c.shared.interleaved,i!==null){c=i;do y|=c.lane,c=c.next;while(c!==i)}else f===null&&(c.shared.lanes=0);as|=y,n.lanes=y,n.memoizedState=$}}function vp(n,i,o){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var l=n[i],c=l.callback;if(c!==null){if(l.callback=null,l=o,typeof c!="function")throw Error(t(191,c));c.call(l)}}}var ia={},mr=_i(ia),sa=_i(ia),oa=_i(ia);function ss(n){if(n===ia)throw Error(t(174));return n}function ed(n,i){switch(ht(oa,i),ht(sa,n),ht(mr,ia),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Yi(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=Yi(i,n)}mt(mr),ht(mr,i)}function Ys(){mt(mr),mt(sa),mt(oa)}function wp(n){ss(oa.current);var i=ss(mr.current),o=Yi(i,n.type);i!==o&&(ht(sa,n),ht(mr,o))}function td(n){sa.current===n&&(mt(mr),mt(sa))}var _t=_i(0);function Tl(n){for(var i=n;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var nd=[];function rd(){for(var n=0;n<nd.length;n++)nd[n]._workInProgressVersionPrimary=null;nd.length=0}var Ml=q.ReactCurrentDispatcher,id=q.ReactCurrentBatchConfig,os=0,bt=null,Lt=null,zt=null,Al=!1,aa=!1,la=0,$w=0;function Yt(){throw Error(t(321))}function sd(n,i){if(i===null)return!1;for(var o=0;o<i.length&&o<n.length;o++)if(!Kn(n[o],i[o]))return!1;return!0}function od(n,i,o,l,c,f){if(os=f,bt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Ml.current=n===null||n.memoizedState===null?Kw:qw,n=o(l,c),aa){f=0;do{if(aa=!1,la=0,25<=f)throw Error(t(301));f+=1,zt=Lt=null,i.updateQueue=null,Ml.current=Yw,n=o(l,c)}while(aa)}if(Ml.current=Ll,i=Lt!==null&&Lt.next!==null,os=0,zt=Lt=bt=null,Al=!1,i)throw Error(t(300));return n}function ad(){var n=la!==0;return la=0,n}function gr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?bt.memoizedState=zt=n:zt=zt.next=n,zt}function An(){if(Lt===null){var n=bt.alternate;n=n!==null?n.memoizedState:null}else n=Lt.next;var i=zt===null?bt.memoizedState:zt.next;if(i!==null)zt=i,Lt=n;else{if(n===null)throw Error(t(310));Lt=n,n={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},zt===null?bt.memoizedState=zt=n:zt=zt.next=n}return zt}function ua(n,i){return typeof i=="function"?i(n):i}function ld(n){var i=An(),o=i.queue;if(o===null)throw Error(t(311));o.lastRenderedReducer=n;var l=Lt,c=l.baseQueue,f=o.pending;if(f!==null){if(c!==null){var y=c.next;c.next=f.next,f.next=y}l.baseQueue=c=f,o.pending=null}if(c!==null){f=c.next,l=l.baseState;var w=y=null,_=null,M=f;do{var z=M.lane;if((os&z)===z)_!==null&&(_=_.next={lane:0,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),l=M.hasEagerState?M.eagerState:n(l,M.action);else{var $={lane:z,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null};_===null?(w=_=$,y=l):_=_.next=$,bt.lanes|=z,as|=z}M=M.next}while(M!==null&&M!==f);_===null?y=l:_.next=w,Kn(l,i.memoizedState)||(cn=!0),i.memoizedState=l,i.baseState=y,i.baseQueue=_,o.lastRenderedState=l}if(n=o.interleaved,n!==null){c=n;do f=c.lane,bt.lanes|=f,as|=f,c=c.next;while(c!==n)}else c===null&&(o.lanes=0);return[i.memoizedState,o.dispatch]}function ud(n){var i=An(),o=i.queue;if(o===null)throw Error(t(311));o.lastRenderedReducer=n;var l=o.dispatch,c=o.pending,f=i.memoizedState;if(c!==null){o.pending=null;var y=c=c.next;do f=n(f,y.action),y=y.next;while(y!==c);Kn(f,i.memoizedState)||(cn=!0),i.memoizedState=f,i.baseQueue===null&&(i.baseState=f),o.lastRenderedState=f}return[f,l]}function Sp(){}function _p(n,i){var o=bt,l=An(),c=i(),f=!Kn(l.memoizedState,c);if(f&&(l.memoizedState=c,cn=!0),l=l.queue,cd(Ep.bind(null,o,l,n),[n]),l.getSnapshot!==i||f||zt!==null&&zt.memoizedState.tag&1){if(o.flags|=2048,ca(9,Ip.bind(null,o,l,c,i),void 0,null),Vt===null)throw Error(t(349));(os&30)!==0||bp(o,i,c)}return c}function bp(n,i,o){n.flags|=16384,n={getSnapshot:i,value:o},i=bt.updateQueue,i===null?(i={lastEffect:null,stores:null},bt.updateQueue=i,i.stores=[n]):(o=i.stores,o===null?i.stores=[n]:o.push(n))}function Ip(n,i,o,l){i.value=o,i.getSnapshot=l,xp(i)&&Dp(n)}function Ep(n,i,o){return o(function(){xp(i)&&Dp(n)})}function xp(n){var i=n.getSnapshot;n=n.value;try{var o=i();return!Kn(n,o)}catch{return!0}}function Dp(n){var i=zr(n,1);i!==null&&Xn(i,n,1,-1)}function Cp(n){var i=gr();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:n},i.queue=n,n=n.dispatch=Hw.bind(null,bt,n),[i.memoizedState,n]}function ca(n,i,o,l){return n={tag:n,create:i,destroy:o,deps:l,next:null},i=bt.updateQueue,i===null?(i={lastEffect:null,stores:null},bt.updateQueue=i,i.lastEffect=n.next=n):(o=i.lastEffect,o===null?i.lastEffect=n.next=n:(l=o.next,o.next=n,n.next=l,i.lastEffect=n)),n}function Op(){return An().memoizedState}function Pl(n,i,o,l){var c=gr();bt.flags|=n,c.memoizedState=ca(1|i,o,void 0,l===void 0?null:l)}function Nl(n,i,o,l){var c=An();l=l===void 0?null:l;var f=void 0;if(Lt!==null){var y=Lt.memoizedState;if(f=y.destroy,l!==null&&sd(l,y.deps)){c.memoizedState=ca(i,o,f,l);return}}bt.flags|=n,c.memoizedState=ca(1|i,o,f,l)}function Rp(n,i){return Pl(8390656,8,n,i)}function cd(n,i){return Nl(2048,8,n,i)}function Fp(n,i){return Nl(4,2,n,i)}function Tp(n,i){return Nl(4,4,n,i)}function Mp(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Ap(n,i,o){return o=o!=null?o.concat([n]):null,Nl(4,4,Mp.bind(null,i,n),o)}function dd(){}function Pp(n,i){var o=An();i=i===void 0?null:i;var l=o.memoizedState;return l!==null&&i!==null&&sd(i,l[1])?l[0]:(o.memoizedState=[n,i],n)}function Np(n,i){var o=An();i=i===void 0?null:i;var l=o.memoizedState;return l!==null&&i!==null&&sd(i,l[1])?l[0]:(n=n(),o.memoizedState=[n,i],n)}function Lp(n,i,o){return(os&21)===0?(n.baseState&&(n.baseState=!1,cn=!0),n.memoizedState=o):(Kn(o,i)||(o=fh(),bt.lanes|=o,as|=o,n.baseState=!0),i)}function Ww(n,i){var o=et;et=o!==0&&4>o?o:4,n(!0);var l=id.transition;id.transition={};try{n(!1),i()}finally{et=o,id.transition=l}}function Bp(){return An().memoizedState}function Qw(n,i,o){var l=Ri(n);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},kp(n))Up(i,o);else if(o=yp(n,i,o,l),o!==null){var c=nn();Xn(o,n,l,c),jp(o,i,l)}}function Hw(n,i,o){var l=Ri(n),c={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(kp(n))Up(i,c);else{var f=n.alternate;if(n.lanes===0&&(f===null||f.lanes===0)&&(f=i.lastRenderedReducer,f!==null))try{var y=i.lastRenderedState,w=f(y,o);if(c.hasEagerState=!0,c.eagerState=w,Kn(w,y)){var _=i.interleaved;_===null?(c.next=c,Xc(i)):(c.next=_.next,_.next=c),i.interleaved=c;return}}catch{}finally{}o=yp(n,i,c,l),o!==null&&(c=nn(),Xn(o,n,l,c),jp(o,i,l))}}function kp(n){var i=n.alternate;return n===bt||i!==null&&i===bt}function Up(n,i){aa=Al=!0;var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}function jp(n,i,o){if((o&4194240)!==0){var l=i.lanes;l&=n.pendingLanes,o|=l,i.lanes=o,hc(n,o)}}var Ll={readContext:Mn,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useInsertionEffect:Yt,useLayoutEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useMutableSource:Yt,useSyncExternalStore:Yt,useId:Yt,unstable_isNewReconciler:!1},Kw={readContext:Mn,useCallback:function(n,i){return gr().memoizedState=[n,i===void 0?null:i],n},useContext:Mn,useEffect:Rp,useImperativeHandle:function(n,i,o){return o=o!=null?o.concat([n]):null,Pl(4194308,4,Mp.bind(null,i,n),o)},useLayoutEffect:function(n,i){return Pl(4194308,4,n,i)},useInsertionEffect:function(n,i){return Pl(4,2,n,i)},useMemo:function(n,i){var o=gr();return i=i===void 0?null:i,n=n(),o.memoizedState=[n,i],n},useReducer:function(n,i,o){var l=gr();return i=o!==void 0?o(i):i,l.memoizedState=l.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},l.queue=n,n=n.dispatch=Qw.bind(null,bt,n),[l.memoizedState,n]},useRef:function(n){var i=gr();return n={current:n},i.memoizedState=n},useState:Cp,useDebugValue:dd,useDeferredValue:function(n){return gr().memoizedState=n},useTransition:function(){var n=Cp(!1),i=n[0];return n=Ww.bind(null,n[1]),gr().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,o){var l=bt,c=gr();if(vt){if(o===void 0)throw Error(t(407));o=o()}else{if(o=i(),Vt===null)throw Error(t(349));(os&30)!==0||bp(l,i,o)}c.memoizedState=o;var f={value:o,getSnapshot:i};return c.queue=f,Rp(Ep.bind(null,l,f,n),[n]),l.flags|=2048,ca(9,Ip.bind(null,l,f,o,i),void 0,null),o},useId:function(){var n=gr(),i=Vt.identifierPrefix;if(vt){var o=jr,l=Ur;o=(l&~(1<<32-He(l)-1)).toString(32)+o,i=":"+i+"R"+o,o=la++,0<o&&(i+="H"+o.toString(32)),i+=":"}else o=$w++,i=":"+i+"r"+o.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},qw={readContext:Mn,useCallback:Pp,useContext:Mn,useEffect:cd,useImperativeHandle:Ap,useInsertionEffect:Fp,useLayoutEffect:Tp,useMemo:Np,useReducer:ld,useRef:Op,useState:function(){return ld(ua)},useDebugValue:dd,useDeferredValue:function(n){var i=An();return Lp(i,Lt.memoizedState,n)},useTransition:function(){var n=ld(ua)[0],i=An().memoizedState;return[n,i]},useMutableSource:Sp,useSyncExternalStore:_p,useId:Bp,unstable_isNewReconciler:!1},Yw={readContext:Mn,useCallback:Pp,useContext:Mn,useEffect:cd,useImperativeHandle:Ap,useInsertionEffect:Fp,useLayoutEffect:Tp,useMemo:Np,useReducer:ud,useRef:Op,useState:function(){return ud(ua)},useDebugValue:dd,useDeferredValue:function(n){var i=An();return Lt===null?i.memoizedState=n:Lp(i,Lt.memoizedState,n)},useTransition:function(){var n=ud(ua)[0],i=An().memoizedState;return[n,i]},useMutableSource:Sp,useSyncExternalStore:_p,useId:Bp,unstable_isNewReconciler:!1};function Yn(n,i){if(n&&n.defaultProps){i=J({},i),n=n.defaultProps;for(var o in n)i[o]===void 0&&(i[o]=n[o]);return i}return i}function fd(n,i,o,l){i=n.memoizedState,o=o(l,i),o=o==null?i:J({},i,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Bl={isMounted:function(n){return(n=n._reactInternals)?te(n)===n:!1},enqueueSetState:function(n,i,o){n=n._reactInternals;var l=nn(),c=Ri(n),f=Vr(l,c);f.payload=i,o!=null&&(f.callback=o),i=xi(n,f,c),i!==null&&(Xn(i,n,c,l),Rl(i,n,c))},enqueueReplaceState:function(n,i,o){n=n._reactInternals;var l=nn(),c=Ri(n),f=Vr(l,c);f.tag=1,f.payload=i,o!=null&&(f.callback=o),i=xi(n,f,c),i!==null&&(Xn(i,n,c,l),Rl(i,n,c))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var o=nn(),l=Ri(n),c=Vr(o,l);c.tag=2,i!=null&&(c.callback=i),i=xi(n,c,l),i!==null&&(Xn(i,n,l,o),Rl(i,n,l))}};function zp(n,i,o,l,c,f,y){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,f,y):i.prototype&&i.prototype.isPureReactComponent?!Go(o,l)||!Go(c,f):!0}function Vp(n,i,o){var l=!1,c=bi,f=i.contextType;return typeof f=="object"&&f!==null?f=Mn(f):(c=un(i)?ts:qt.current,l=i.contextTypes,f=(l=l!=null)?Vs(n,c):bi),i=new i(o,f),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Bl,n.stateNode=i,i._reactInternals=n,l&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=c,n.__reactInternalMemoizedMaskedChildContext=f),i}function $p(n,i,o,l){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,l),i.state!==n&&Bl.enqueueReplaceState(i,i.state,null)}function hd(n,i,o,l){var c=n.stateNode;c.props=o,c.state=n.memoizedState,c.refs={},Zc(n);var f=i.contextType;typeof f=="object"&&f!==null?c.context=Mn(f):(f=un(i)?ts:qt.current,c.context=Vs(n,f)),c.state=n.memoizedState,f=i.getDerivedStateFromProps,typeof f=="function"&&(fd(n,i,f,o),c.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(i=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),i!==c.state&&Bl.enqueueReplaceState(c,c.state,null),Fl(n,o,c,l),c.state=n.memoizedState),typeof c.componentDidMount=="function"&&(n.flags|=4194308)}function Gs(n,i){try{var o="",l=i;do o+=we(l),l=l.return;while(l);var c=o}catch(f){c=`
42
+ Error generating stack: `+f.message+`
43
+ `+f.stack}return{value:n,source:i,stack:c,digest:null}}function pd(n,i,o){return{value:n,source:null,stack:o??null,digest:i??null}}function yd(n,i){try{console.error(i.value)}catch(o){setTimeout(function(){throw o})}}var Gw=typeof WeakMap=="function"?WeakMap:Map;function Wp(n,i,o){o=Vr(-1,o),o.tag=3,o.payload={element:null};var l=i.value;return o.callback=function(){Wl||(Wl=!0,Fd=l),yd(n,i)},o}function Qp(n,i,o){o=Vr(-1,o),o.tag=3;var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var c=i.value;o.payload=function(){return l(c)},o.callback=function(){yd(n,i)}}var f=n.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){yd(n,i),typeof l!="function"&&(Ci===null?Ci=new Set([this]):Ci.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})}),o}function Hp(n,i,o){var l=n.pingCache;if(l===null){l=n.pingCache=new Gw;var c=new Set;l.set(i,c)}else c=l.get(i),c===void 0&&(c=new Set,l.set(i,c));c.has(o)||(c.add(o),n=cS.bind(null,n,i,o),i.then(n,n))}function Kp(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function qp(n,i,o,l,c){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(i=Vr(-1,1),i.tag=2,xi(o,i,1))),o.lanes|=1),n):(n.flags|=65536,n.lanes=c,n)}var Jw=q.ReactCurrentOwner,cn=!1;function tn(n,i,o,l){i.child=n===null?pp(i,null,o,l):Hs(i,n.child,o,l)}function Yp(n,i,o,l,c){o=o.render;var f=i.ref;return qs(i,c),l=od(n,i,o,l,f,c),o=ad(),n!==null&&!cn?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~c,$r(n,i,c)):(vt&&o&&$c(i),i.flags|=1,tn(n,i,l,c),i.child)}function Gp(n,i,o,l,c){if(n===null){var f=o.type;return typeof f=="function"&&!Bd(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(i.tag=15,i.type=f,Jp(n,i,f,l,c)):(n=Gl(o.type,null,l,i,i.mode,c),n.ref=i.ref,n.return=i,i.child=n)}if(f=n.child,(n.lanes&c)===0){var y=f.memoizedProps;if(o=o.compare,o=o!==null?o:Go,o(y,l)&&n.ref===i.ref)return $r(n,i,c)}return i.flags|=1,n=Ti(f,l),n.ref=i.ref,n.return=i,i.child=n}function Jp(n,i,o,l,c){if(n!==null){var f=n.memoizedProps;if(Go(f,l)&&n.ref===i.ref)if(cn=!1,i.pendingProps=l=f,(n.lanes&c)!==0)(n.flags&131072)!==0&&(cn=!0);else return i.lanes=n.lanes,$r(n,i,c)}return md(n,i,o,l,c)}function Xp(n,i,o){var l=i.pendingProps,c=l.children,f=n!==null?n.memoizedState:null;if(l.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},ht(Xs,Dn),Dn|=o;else{if((o&1073741824)===0)return n=f!==null?f.baseLanes|o:o,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,ht(Xs,Dn),Dn|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=f!==null?f.baseLanes:o,ht(Xs,Dn),Dn|=l}else f!==null?(l=f.baseLanes|o,i.memoizedState=null):l=o,ht(Xs,Dn),Dn|=l;return tn(n,i,c,o),i.child}function Zp(n,i){var o=i.ref;(n===null&&o!==null||n!==null&&n.ref!==o)&&(i.flags|=512,i.flags|=2097152)}function md(n,i,o,l,c){var f=un(o)?ts:qt.current;return f=Vs(i,f),qs(i,c),o=od(n,i,o,l,f,c),l=ad(),n!==null&&!cn?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~c,$r(n,i,c)):(vt&&l&&$c(i),i.flags|=1,tn(n,i,o,c),i.child)}function ey(n,i,o,l,c){if(un(o)){var f=!0;_l(i)}else f=!1;if(qs(i,c),i.stateNode===null)Ul(n,i),Vp(i,o,l),hd(i,o,l,c),l=!0;else if(n===null){var y=i.stateNode,w=i.memoizedProps;y.props=w;var _=y.context,M=o.contextType;typeof M=="object"&&M!==null?M=Mn(M):(M=un(o)?ts:qt.current,M=Vs(i,M));var z=o.getDerivedStateFromProps,$=typeof z=="function"||typeof y.getSnapshotBeforeUpdate=="function";$||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==l||_!==M)&&$p(i,y,l,M),Ei=!1;var j=i.memoizedState;y.state=j,Fl(i,l,y,c),_=i.memoizedState,w!==l||j!==_||ln.current||Ei?(typeof z=="function"&&(fd(i,o,z,l),_=i.memoizedState),(w=Ei||zp(i,o,w,l,j,_,M))?($||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=_),y.props=l,y.state=_,y.context=M,l=w):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{y=i.stateNode,mp(n,i),w=i.memoizedProps,M=i.type===i.elementType?w:Yn(i.type,w),y.props=M,$=i.pendingProps,j=y.context,_=o.contextType,typeof _=="object"&&_!==null?_=Mn(_):(_=un(o)?ts:qt.current,_=Vs(i,_));var X=o.getDerivedStateFromProps;(z=typeof X=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==$||j!==_)&&$p(i,y,l,_),Ei=!1,j=i.memoizedState,y.state=j,Fl(i,l,y,c);var re=i.memoizedState;w!==$||j!==re||ln.current||Ei?(typeof X=="function"&&(fd(i,o,X,l),re=i.memoizedState),(M=Ei||zp(i,o,M,l,j,re,_)||!1)?(z||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(l,re,_),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(l,re,_)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||w===n.memoizedProps&&j===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&j===n.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=re),y.props=l,y.state=re,y.context=_,l=M):(typeof y.componentDidUpdate!="function"||w===n.memoizedProps&&j===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&j===n.memoizedState||(i.flags|=1024),l=!1)}return gd(n,i,o,l,f,c)}function gd(n,i,o,l,c,f){Zp(n,i);var y=(i.flags&128)!==0;if(!l&&!y)return c&&sp(i,o,!1),$r(n,i,f);l=i.stateNode,Jw.current=i;var w=y&&typeof o.getDerivedStateFromError!="function"?null:l.render();return i.flags|=1,n!==null&&y?(i.child=Hs(i,n.child,null,f),i.child=Hs(i,null,w,f)):tn(n,i,w,f),i.memoizedState=l.state,c&&sp(i,o,!0),i.child}function ty(n){var i=n.stateNode;i.pendingContext?rp(n,i.pendingContext,i.pendingContext!==i.context):i.context&&rp(n,i.context,!1),ed(n,i.containerInfo)}function ny(n,i,o,l,c){return Qs(),Kc(c),i.flags|=256,tn(n,i,o,l),i.child}var vd={dehydrated:null,treeContext:null,retryLane:0};function wd(n){return{baseLanes:n,cachePool:null,transitions:null}}function ry(n,i,o){var l=i.pendingProps,c=_t.current,f=!1,y=(i.flags&128)!==0,w;if((w=y)||(w=n!==null&&n.memoizedState===null?!1:(c&2)!==0),w?(f=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(c|=1),ht(_t,c&1),n===null)return Hc(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(y=l.children,n=l.fallback,f?(l=i.mode,f=i.child,y={mode:"hidden",children:y},(l&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=y):f=Jl(y,l,0,null),n=ds(n,l,o,null),f.return=i,n.return=i,f.sibling=n,i.child=f,i.child.memoizedState=wd(o),i.memoizedState=vd,n):Sd(i,y));if(c=n.memoizedState,c!==null&&(w=c.dehydrated,w!==null))return Xw(n,i,y,l,w,c,o);if(f){f=l.fallback,y=i.mode,c=n.child,w=c.sibling;var _={mode:"hidden",children:l.children};return(y&1)===0&&i.child!==c?(l=i.child,l.childLanes=0,l.pendingProps=_,i.deletions=null):(l=Ti(c,_),l.subtreeFlags=c.subtreeFlags&14680064),w!==null?f=Ti(w,f):(f=ds(f,y,o,null),f.flags|=2),f.return=i,l.return=i,l.sibling=f,i.child=l,l=f,f=i.child,y=n.child.memoizedState,y=y===null?wd(o):{baseLanes:y.baseLanes|o,cachePool:null,transitions:y.transitions},f.memoizedState=y,f.childLanes=n.childLanes&~o,i.memoizedState=vd,l}return f=n.child,n=f.sibling,l=Ti(f,{mode:"visible",children:l.children}),(i.mode&1)===0&&(l.lanes=o),l.return=i,l.sibling=null,n!==null&&(o=i.deletions,o===null?(i.deletions=[n],i.flags|=16):o.push(n)),i.child=l,i.memoizedState=null,l}function Sd(n,i){return i=Jl({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function kl(n,i,o,l){return l!==null&&Kc(l),Hs(i,n.child,null,o),n=Sd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function Xw(n,i,o,l,c,f,y){if(o)return i.flags&256?(i.flags&=-257,l=pd(Error(t(422))),kl(n,i,y,l)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(f=l.fallback,c=i.mode,l=Jl({mode:"visible",children:l.children},c,0,null),f=ds(f,c,y,null),f.flags|=2,l.return=i,f.return=i,l.sibling=f,i.child=l,(i.mode&1)!==0&&Hs(i,n.child,null,y),i.child.memoizedState=wd(y),i.memoizedState=vd,f);if((i.mode&1)===0)return kl(n,i,y,null);if(c.data==="$!"){if(l=c.nextSibling&&c.nextSibling.dataset,l)var w=l.dgst;return l=w,f=Error(t(419)),l=pd(f,l,void 0),kl(n,i,y,l)}if(w=(y&n.childLanes)!==0,cn||w){if(l=Vt,l!==null){switch(y&-y){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(l.suspendedLanes|y))!==0?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,zr(n,c),Xn(l,n,c,-1))}return Ld(),l=pd(Error(t(421))),kl(n,i,y,l)}return c.data==="$?"?(i.flags|=128,i.child=n.child,i=dS.bind(null,n),c._reactRetry=i,null):(n=f.treeContext,xn=Si(c.nextSibling),En=i,vt=!0,qn=null,n!==null&&(Fn[Tn++]=Ur,Fn[Tn++]=jr,Fn[Tn++]=ns,Ur=n.id,jr=n.overflow,ns=i),i=Sd(i,l.children),i.flags|=4096,i)}function iy(n,i,o){n.lanes|=i;var l=n.alternate;l!==null&&(l.lanes|=i),Jc(n.return,i,o)}function _d(n,i,o,l,c){var f=n.memoizedState;f===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:c}:(f.isBackwards=i,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=o,f.tailMode=c)}function sy(n,i,o){var l=i.pendingProps,c=l.revealOrder,f=l.tail;if(tn(n,i,l.children,o),l=_t.current,(l&2)!==0)l=l&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&iy(n,o,i);else if(n.tag===19)iy(n,o,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}l&=1}if(ht(_t,l),(i.mode&1)===0)i.memoizedState=null;else switch(c){case"forwards":for(o=i.child,c=null;o!==null;)n=o.alternate,n!==null&&Tl(n)===null&&(c=o),o=o.sibling;o=c,o===null?(c=i.child,i.child=null):(c=o.sibling,o.sibling=null),_d(i,!1,c,o,f);break;case"backwards":for(o=null,c=i.child,i.child=null;c!==null;){if(n=c.alternate,n!==null&&Tl(n)===null){i.child=c;break}n=c.sibling,c.sibling=o,o=c,c=n}_d(i,!0,o,null,f);break;case"together":_d(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Ul(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function $r(n,i,o){if(n!==null&&(i.dependencies=n.dependencies),as|=i.lanes,(o&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(t(153));if(i.child!==null){for(n=i.child,o=Ti(n,n.pendingProps),i.child=o,o.return=i;n.sibling!==null;)n=n.sibling,o=o.sibling=Ti(n,n.pendingProps),o.return=i;o.sibling=null}return i.child}function Zw(n,i,o){switch(i.tag){case 3:ty(i),Qs();break;case 5:wp(i);break;case 1:un(i.type)&&_l(i);break;case 4:ed(i,i.stateNode.containerInfo);break;case 10:var l=i.type._context,c=i.memoizedProps.value;ht(Cl,l._currentValue),l._currentValue=c;break;case 13:if(l=i.memoizedState,l!==null)return l.dehydrated!==null?(ht(_t,_t.current&1),i.flags|=128,null):(o&i.child.childLanes)!==0?ry(n,i,o):(ht(_t,_t.current&1),n=$r(n,i,o),n!==null?n.sibling:null);ht(_t,_t.current&1);break;case 19:if(l=(o&i.childLanes)!==0,(n.flags&128)!==0){if(l)return sy(n,i,o);i.flags|=128}if(c=i.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ht(_t,_t.current),l)break;return null;case 22:case 23:return i.lanes=0,Xp(n,i,o)}return $r(n,i,o)}var oy,bd,ay,ly;oy=function(n,i){for(var o=i.child;o!==null;){if(o.tag===5||o.tag===6)n.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},bd=function(){},ay=function(n,i,o,l){var c=n.memoizedProps;if(c!==l){n=i.stateNode,ss(mr.current);var f=null;switch(o){case"input":c=Cs(n,c),l=Cs(n,l),f=[];break;case"select":c=J({},c,{value:void 0}),l=J({},l,{value:void 0}),f=[];break;case"textarea":c=To(n,c),l=To(n,l),f=[];break;default:typeof c.onClick!="function"&&typeof l.onClick=="function"&&(n.onclick=vl)}Rs(o,l);var y;o=null;for(M in c)if(!l.hasOwnProperty(M)&&c.hasOwnProperty(M)&&c[M]!=null)if(M==="style"){var w=c[M];for(y in w)w.hasOwnProperty(y)&&(o||(o={}),o[y]="")}else M!=="dangerouslySetInnerHTML"&&M!=="children"&&M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(a.hasOwnProperty(M)?f||(f=[]):(f=f||[]).push(M,null));for(M in l){var _=l[M];if(w=c!=null?c[M]:void 0,l.hasOwnProperty(M)&&_!==w&&(_!=null||w!=null))if(M==="style")if(w){for(y in w)!w.hasOwnProperty(y)||_&&_.hasOwnProperty(y)||(o||(o={}),o[y]="");for(y in _)_.hasOwnProperty(y)&&w[y]!==_[y]&&(o||(o={}),o[y]=_[y])}else o||(f||(f=[]),f.push(M,o)),o=_;else M==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,w=w?w.__html:void 0,_!=null&&w!==_&&(f=f||[]).push(M,_)):M==="children"?typeof _!="string"&&typeof _!="number"||(f=f||[]).push(M,""+_):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&(a.hasOwnProperty(M)?(_!=null&&M==="onScroll"&&yt("scroll",n),f||w===_||(f=[])):(f=f||[]).push(M,_))}o&&(f=f||[]).push("style",o);var M=f;(i.updateQueue=M)&&(i.flags|=4)}},ly=function(n,i,o,l){o!==l&&(i.flags|=4)};function da(n,i){if(!vt)switch(n.tailMode){case"hidden":i=n.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Gt(n){var i=n.alternate!==null&&n.alternate.child===n.child,o=0,l=0;if(i)for(var c=n.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags&14680064,l|=c.flags&14680064,c.return=n,c=c.sibling;else for(c=n.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=n,c=c.sibling;return n.subtreeFlags|=l,n.childLanes=o,i}function eS(n,i,o){var l=i.pendingProps;switch(Wc(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(i),null;case 1:return un(i.type)&&Sl(),Gt(i),null;case 3:return l=i.stateNode,Ys(),mt(ln),mt(qt),rd(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(xl(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,qn!==null&&(Ad(qn),qn=null))),bd(n,i),Gt(i),null;case 5:td(i);var c=ss(oa.current);if(o=i.type,n!==null&&i.stateNode!=null)ay(n,i,o,l,c),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!l){if(i.stateNode===null)throw Error(t(166));return Gt(i),null}if(n=ss(mr.current),xl(i)){l=i.stateNode,o=i.type;var f=i.memoizedProps;switch(l[yr]=i,l[ta]=f,n=(i.mode&1)!==0,o){case"dialog":yt("cancel",l),yt("close",l);break;case"iframe":case"object":case"embed":yt("load",l);break;case"video":case"audio":for(c=0;c<Xo.length;c++)yt(Xo[c],l);break;case"source":yt("error",l);break;case"img":case"image":case"link":yt("error",l),yt("load",l);break;case"details":yt("toggle",l);break;case"input":Ka(l,f),yt("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!f.multiple},yt("invalid",l);break;case"textarea":Ya(l,f),yt("invalid",l)}Rs(o,f),c=null;for(var y in f)if(f.hasOwnProperty(y)){var w=f[y];y==="children"?typeof w=="string"?l.textContent!==w&&(f.suppressHydrationWarning!==!0&&gl(l.textContent,w,n),c=["children",w]):typeof w=="number"&&l.textContent!==""+w&&(f.suppressHydrationWarning!==!0&&gl(l.textContent,w,n),c=["children",""+w]):a.hasOwnProperty(y)&&w!=null&&y==="onScroll"&&yt("scroll",l)}switch(o){case"input":Ds(l),qa(l,f,!0);break;case"textarea":Ds(l),ui(l);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(l.onclick=vl)}l=c,i.updateQueue=l,l!==null&&(i.flags|=4)}else{y=c.nodeType===9?c:c.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Mo(o)),n==="http://www.w3.org/1999/xhtml"?o==="script"?(n=y.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof l.is=="string"?n=y.createElement(o,{is:l.is}):(n=y.createElement(o),o==="select"&&(y=n,l.multiple?y.multiple=!0:l.size&&(y.size=l.size))):n=y.createElementNS(n,o),n[yr]=i,n[ta]=l,oy(n,i,!1,!1),i.stateNode=n;e:{switch(y=Po(o,l),o){case"dialog":yt("cancel",n),yt("close",n),c=l;break;case"iframe":case"object":case"embed":yt("load",n),c=l;break;case"video":case"audio":for(c=0;c<Xo.length;c++)yt(Xo[c],n);c=l;break;case"source":yt("error",n),c=l;break;case"img":case"image":case"link":yt("error",n),yt("load",n),c=l;break;case"details":yt("toggle",n),c=l;break;case"input":Ka(n,l),c=Cs(n,l),yt("invalid",n);break;case"option":c=l;break;case"select":n._wrapperState={wasMultiple:!!l.multiple},c=J({},l,{value:void 0}),yt("invalid",n);break;case"textarea":Ya(n,l),c=To(n,l),yt("invalid",n);break;default:c=l}Rs(o,c),w=c;for(f in w)if(w.hasOwnProperty(f)){var _=w[f];f==="style"?Ao(n,_):f==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,_!=null&&Rn(n,_)):f==="children"?typeof _=="string"?(o!=="textarea"||_!=="")&&ci(n,_):typeof _=="number"&&ci(n,""+_):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(a.hasOwnProperty(f)?_!=null&&f==="onScroll"&&yt("scroll",n):_!=null&&Y(n,f,_,y))}switch(o){case"input":Ds(n),qa(n,l,!1);break;case"textarea":Ds(n),ui(n);break;case"option":l.value!=null&&n.setAttribute("value",""+je(l.value));break;case"select":n.multiple=!!l.multiple,f=l.value,f!=null?li(n,!!l.multiple,f,!1):l.defaultValue!=null&&li(n,!!l.multiple,l.defaultValue,!0);break;default:typeof c.onClick=="function"&&(n.onclick=vl)}switch(o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Gt(i),null;case 6:if(n&&i.stateNode!=null)ly(n,i,n.memoizedProps,l);else{if(typeof l!="string"&&i.stateNode===null)throw Error(t(166));if(o=ss(oa.current),ss(mr.current),xl(i)){if(l=i.stateNode,o=i.memoizedProps,l[yr]=i,(f=l.nodeValue!==o)&&(n=En,n!==null))switch(n.tag){case 3:gl(l.nodeValue,o,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&gl(l.nodeValue,o,(n.mode&1)!==0)}f&&(i.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[yr]=i,i.stateNode=l}return Gt(i),null;case 13:if(mt(_t),l=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(vt&&xn!==null&&(i.mode&1)!==0&&(i.flags&128)===0)dp(),Qs(),i.flags|=98560,f=!1;else if(f=xl(i),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(t(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(t(317));f[yr]=i}else Qs(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Gt(i),f=!1}else qn!==null&&(Ad(qn),qn=null),f=!0;if(!f)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=o,i):(l=l!==null,l!==(n!==null&&n.memoizedState!==null)&&l&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(_t.current&1)!==0?Bt===0&&(Bt=3):Ld())),i.updateQueue!==null&&(i.flags|=4),Gt(i),null);case 4:return Ys(),bd(n,i),n===null&&Zo(i.stateNode.containerInfo),Gt(i),null;case 10:return Gc(i.type._context),Gt(i),null;case 17:return un(i.type)&&Sl(),Gt(i),null;case 19:if(mt(_t),f=i.memoizedState,f===null)return Gt(i),null;if(l=(i.flags&128)!==0,y=f.rendering,y===null)if(l)da(f,!1);else{if(Bt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(y=Tl(n),y!==null){for(i.flags|=128,da(f,!1),l=y.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),i.subtreeFlags=0,l=o,o=i.child;o!==null;)f=o,n=l,f.flags&=14680066,y=f.alternate,y===null?(f.childLanes=0,f.lanes=n,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=y.childLanes,f.lanes=y.lanes,f.child=y.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=y.memoizedProps,f.memoizedState=y.memoizedState,f.updateQueue=y.updateQueue,f.type=y.type,n=y.dependencies,f.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),o=o.sibling;return ht(_t,_t.current&1|2),i.child}n=n.sibling}f.tail!==null&&Qe()>Zs&&(i.flags|=128,l=!0,da(f,!1),i.lanes=4194304)}else{if(!l)if(n=Tl(y),n!==null){if(i.flags|=128,l=!0,o=n.updateQueue,o!==null&&(i.updateQueue=o,i.flags|=4),da(f,!0),f.tail===null&&f.tailMode==="hidden"&&!y.alternate&&!vt)return Gt(i),null}else 2*Qe()-f.renderingStartTime>Zs&&o!==1073741824&&(i.flags|=128,l=!0,da(f,!1),i.lanes=4194304);f.isBackwards?(y.sibling=i.child,i.child=y):(o=f.last,o!==null?o.sibling=y:i.child=y,f.last=y)}return f.tail!==null?(i=f.tail,f.rendering=i,f.tail=i.sibling,f.renderingStartTime=Qe(),i.sibling=null,o=_t.current,ht(_t,l?o&1|2:o&1),i):(Gt(i),null);case 22:case 23:return Nd(),l=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==l&&(i.flags|=8192),l&&(i.mode&1)!==0?(Dn&1073741824)!==0&&(Gt(i),i.subtreeFlags&6&&(i.flags|=8192)):Gt(i),null;case 24:return null;case 25:return null}throw Error(t(156,i.tag))}function tS(n,i){switch(Wc(i),i.tag){case 1:return un(i.type)&&Sl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Ys(),mt(ln),mt(qt),rd(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return td(i),null;case 13:if(mt(_t),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(t(340));Qs()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return mt(_t),null;case 4:return Ys(),null;case 10:return Gc(i.type._context),null;case 22:case 23:return Nd(),null;case 24:return null;default:return null}}var jl=!1,Jt=!1,nS=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Js(n,i){var o=n.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){Dt(n,i,l)}else o.current=null}function Id(n,i,o){try{o()}catch(l){Dt(n,i,l)}}var uy=!1;function rS(n,i){if(Nc=ol,n=zh(),Cc(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{o.nodeType,f.nodeType}catch{o=null;break e}var y=0,w=-1,_=-1,M=0,z=0,$=n,j=null;t:for(;;){for(var X;$!==o||c!==0&&$.nodeType!==3||(w=y+c),$!==f||l!==0&&$.nodeType!==3||(_=y+l),$.nodeType===3&&(y+=$.nodeValue.length),(X=$.firstChild)!==null;)j=$,$=X;for(;;){if($===n)break t;if(j===o&&++M===c&&(w=y),j===f&&++z===l&&(_=y),(X=$.nextSibling)!==null)break;$=j,j=$.parentNode}$=X}o=w===-1||_===-1?null:{start:w,end:_}}else o=null}o=o||{start:0,end:0}}else o=null;for(Lc={focusedElem:n,selectionRange:o},ol=!1,ee=i;ee!==null;)if(i=ee,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,ee=n;else for(;ee!==null;){i=ee;try{var re=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(re!==null){var se=re.memoizedProps,Ot=re.memoizedState,R=i.stateNode,E=R.getSnapshotBeforeUpdate(i.elementType===i.type?se:Yn(i.type,se),Ot);R.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var F=i.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(H){Dt(i,i.return,H)}if(n=i.sibling,n!==null){n.return=i.return,ee=n;break}ee=i.return}return re=uy,uy=!1,re}function fa(n,i,o){var l=i.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&n)===n){var f=c.destroy;c.destroy=void 0,f!==void 0&&Id(i,o,f)}c=c.next}while(c!==l)}}function zl(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&n)===n){var l=o.create;o.destroy=l()}o=o.next}while(o!==i)}}function Ed(n){var i=n.ref;if(i!==null){var o=n.stateNode;switch(n.tag){case 5:n=o;break;default:n=o}typeof i=="function"?i(n):i.current=n}}function cy(n){var i=n.alternate;i!==null&&(n.alternate=null,cy(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[yr],delete i[ta],delete i[jc],delete i[Uw],delete i[jw])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function dy(n){return n.tag===5||n.tag===3||n.tag===4}function fy(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||dy(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function xd(n,i,o){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?o.nodeType===8?o.parentNode.insertBefore(n,i):o.insertBefore(n,i):(o.nodeType===8?(i=o.parentNode,i.insertBefore(n,o)):(i=o,i.appendChild(n)),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=vl));else if(l!==4&&(n=n.child,n!==null))for(xd(n,i,o),n=n.sibling;n!==null;)xd(n,i,o),n=n.sibling}function Dd(n,i,o){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?o.insertBefore(n,i):o.appendChild(n);else if(l!==4&&(n=n.child,n!==null))for(Dd(n,i,o),n=n.sibling;n!==null;)Dd(n,i,o),n=n.sibling}var Qt=null,Gn=!1;function Di(n,i,o){for(o=o.child;o!==null;)hy(n,i,o),o=o.sibling}function hy(n,i,o){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(lt,o)}catch{}switch(o.tag){case 5:Jt||Js(o,i);case 6:var l=Qt,c=Gn;Qt=null,Di(n,i,o),Qt=l,Gn=c,Qt!==null&&(Gn?(n=Qt,o=o.stateNode,n.nodeType===8?n.parentNode.removeChild(o):n.removeChild(o)):Qt.removeChild(o.stateNode));break;case 18:Qt!==null&&(Gn?(n=Qt,o=o.stateNode,n.nodeType===8?Uc(n.parentNode,o):n.nodeType===1&&Uc(n,o),Wo(n)):Uc(Qt,o.stateNode));break;case 4:l=Qt,c=Gn,Qt=o.stateNode.containerInfo,Gn=!0,Di(n,i,o),Qt=l,Gn=c;break;case 0:case 11:case 14:case 15:if(!Jt&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var f=c,y=f.destroy;f=f.tag,y!==void 0&&((f&2)!==0||(f&4)!==0)&&Id(o,i,y),c=c.next}while(c!==l)}Di(n,i,o);break;case 1:if(!Jt&&(Js(o,i),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(w){Dt(o,i,w)}Di(n,i,o);break;case 21:Di(n,i,o);break;case 22:o.mode&1?(Jt=(l=Jt)||o.memoizedState!==null,Di(n,i,o),Jt=l):Di(n,i,o);break;default:Di(n,i,o)}}function py(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var o=n.stateNode;o===null&&(o=n.stateNode=new nS),i.forEach(function(l){var c=fS.bind(null,n,l);o.has(l)||(o.add(l),l.then(c,c))})}}function Jn(n,i){var o=i.deletions;if(o!==null)for(var l=0;l<o.length;l++){var c=o[l];try{var f=n,y=i,w=y;e:for(;w!==null;){switch(w.tag){case 5:Qt=w.stateNode,Gn=!1;break e;case 3:Qt=w.stateNode.containerInfo,Gn=!0;break e;case 4:Qt=w.stateNode.containerInfo,Gn=!0;break e}w=w.return}if(Qt===null)throw Error(t(160));hy(f,y,c),Qt=null,Gn=!1;var _=c.alternate;_!==null&&(_.return=null),c.return=null}catch(M){Dt(c,i,M)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)yy(i,n),i=i.sibling}function yy(n,i){var o=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(Jn(i,n),vr(n),l&4){try{fa(3,n,n.return),zl(3,n)}catch(se){Dt(n,n.return,se)}try{fa(5,n,n.return)}catch(se){Dt(n,n.return,se)}}break;case 1:Jn(i,n),vr(n),l&512&&o!==null&&Js(o,o.return);break;case 5:if(Jn(i,n),vr(n),l&512&&o!==null&&Js(o,o.return),n.flags&32){var c=n.stateNode;try{ci(c,"")}catch(se){Dt(n,n.return,se)}}if(l&4&&(c=n.stateNode,c!=null)){var f=n.memoizedProps,y=o!==null?o.memoizedProps:f,w=n.type,_=n.updateQueue;if(n.updateQueue=null,_!==null)try{w==="input"&&f.type==="radio"&&f.name!=null&&ur(c,f),Po(w,y);var M=Po(w,f);for(y=0;y<_.length;y+=2){var z=_[y],$=_[y+1];z==="style"?Ao(c,$):z==="dangerouslySetInnerHTML"?Rn(c,$):z==="children"?ci(c,$):Y(c,z,$,M)}switch(w){case"input":Fo(c,f);break;case"textarea":cr(c,f);break;case"select":var j=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var X=f.value;X!=null?li(c,!!f.multiple,X,!1):j!==!!f.multiple&&(f.defaultValue!=null?li(c,!!f.multiple,f.defaultValue,!0):li(c,!!f.multiple,f.multiple?[]:"",!1))}c[ta]=f}catch(se){Dt(n,n.return,se)}}break;case 6:if(Jn(i,n),vr(n),l&4){if(n.stateNode===null)throw Error(t(162));c=n.stateNode,f=n.memoizedProps;try{c.nodeValue=f}catch(se){Dt(n,n.return,se)}}break;case 3:if(Jn(i,n),vr(n),l&4&&o!==null&&o.memoizedState.isDehydrated)try{Wo(i.containerInfo)}catch(se){Dt(n,n.return,se)}break;case 4:Jn(i,n),vr(n);break;case 13:Jn(i,n),vr(n),c=n.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(Rd=Qe())),l&4&&py(n);break;case 22:if(z=o!==null&&o.memoizedState!==null,n.mode&1?(Jt=(M=Jt)||z,Jn(i,n),Jt=M):Jn(i,n),vr(n),l&8192){if(M=n.memoizedState!==null,(n.stateNode.isHidden=M)&&!z&&(n.mode&1)!==0)for(ee=n,z=n.child;z!==null;){for($=ee=z;ee!==null;){switch(j=ee,X=j.child,j.tag){case 0:case 11:case 14:case 15:fa(4,j,j.return);break;case 1:Js(j,j.return);var re=j.stateNode;if(typeof re.componentWillUnmount=="function"){l=j,o=j.return;try{i=l,re.props=i.memoizedProps,re.state=i.memoizedState,re.componentWillUnmount()}catch(se){Dt(l,o,se)}}break;case 5:Js(j,j.return);break;case 22:if(j.memoizedState!==null){vy($);continue}}X!==null?(X.return=j,ee=X):vy($)}z=z.sibling}e:for(z=null,$=n;;){if($.tag===5){if(z===null){z=$;try{c=$.stateNode,M?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(w=$.stateNode,_=$.memoizedProps.style,y=_!=null&&_.hasOwnProperty("display")?_.display:null,w.style.display=Qn("display",y))}catch(se){Dt(n,n.return,se)}}}else if($.tag===6){if(z===null)try{$.stateNode.nodeValue=M?"":$.memoizedProps}catch(se){Dt(n,n.return,se)}}else if(($.tag!==22&&$.tag!==23||$.memoizedState===null||$===n)&&$.child!==null){$.child.return=$,$=$.child;continue}if($===n)break e;for(;$.sibling===null;){if($.return===null||$.return===n)break e;z===$&&(z=null),$=$.return}z===$&&(z=null),$.sibling.return=$.return,$=$.sibling}}break;case 19:Jn(i,n),vr(n),l&4&&py(n);break;case 21:break;default:Jn(i,n),vr(n)}}function vr(n){var i=n.flags;if(i&2){try{e:{for(var o=n.return;o!==null;){if(dy(o)){var l=o;break e}o=o.return}throw Error(t(160))}switch(l.tag){case 5:var c=l.stateNode;l.flags&32&&(ci(c,""),l.flags&=-33);var f=fy(n);Dd(n,f,c);break;case 3:case 4:var y=l.stateNode.containerInfo,w=fy(n);xd(n,w,y);break;default:throw Error(t(161))}}catch(_){Dt(n,n.return,_)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function iS(n,i,o){ee=n,my(n)}function my(n,i,o){for(var l=(n.mode&1)!==0;ee!==null;){var c=ee,f=c.child;if(c.tag===22&&l){var y=c.memoizedState!==null||jl;if(!y){var w=c.alternate,_=w!==null&&w.memoizedState!==null||Jt;w=jl;var M=Jt;if(jl=y,(Jt=_)&&!M)for(ee=c;ee!==null;)y=ee,_=y.child,y.tag===22&&y.memoizedState!==null?wy(c):_!==null?(_.return=y,ee=_):wy(c);for(;f!==null;)ee=f,my(f),f=f.sibling;ee=c,jl=w,Jt=M}gy(n)}else(c.subtreeFlags&8772)!==0&&f!==null?(f.return=c,ee=f):gy(n)}}function gy(n){for(;ee!==null;){var i=ee;if((i.flags&8772)!==0){var o=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Jt||zl(5,i);break;case 1:var l=i.stateNode;if(i.flags&4&&!Jt)if(o===null)l.componentDidMount();else{var c=i.elementType===i.type?o.memoizedProps:Yn(i.type,o.memoizedProps);l.componentDidUpdate(c,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var f=i.updateQueue;f!==null&&vp(i,f,l);break;case 3:var y=i.updateQueue;if(y!==null){if(o=null,i.child!==null)switch(i.child.tag){case 5:o=i.child.stateNode;break;case 1:o=i.child.stateNode}vp(i,y,o)}break;case 5:var w=i.stateNode;if(o===null&&i.flags&4){o=w;var _=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":_.autoFocus&&o.focus();break;case"img":_.src&&(o.src=_.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var M=i.alternate;if(M!==null){var z=M.memoizedState;if(z!==null){var $=z.dehydrated;$!==null&&Wo($)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}Jt||i.flags&512&&Ed(i)}catch(j){Dt(i,i.return,j)}}if(i===n){ee=null;break}if(o=i.sibling,o!==null){o.return=i.return,ee=o;break}ee=i.return}}function vy(n){for(;ee!==null;){var i=ee;if(i===n){ee=null;break}var o=i.sibling;if(o!==null){o.return=i.return,ee=o;break}ee=i.return}}function wy(n){for(;ee!==null;){var i=ee;try{switch(i.tag){case 0:case 11:case 15:var o=i.return;try{zl(4,i)}catch(_){Dt(i,o,_)}break;case 1:var l=i.stateNode;if(typeof l.componentDidMount=="function"){var c=i.return;try{l.componentDidMount()}catch(_){Dt(i,c,_)}}var f=i.return;try{Ed(i)}catch(_){Dt(i,f,_)}break;case 5:var y=i.return;try{Ed(i)}catch(_){Dt(i,y,_)}}}catch(_){Dt(i,i.return,_)}if(i===n){ee=null;break}var w=i.sibling;if(w!==null){w.return=i.return,ee=w;break}ee=i.return}}var sS=Math.ceil,Vl=q.ReactCurrentDispatcher,Cd=q.ReactCurrentOwner,Pn=q.ReactCurrentBatchConfig,$e=0,Vt=null,Mt=null,Ht=0,Dn=0,Xs=_i(0),Bt=0,ha=null,as=0,$l=0,Od=0,pa=null,dn=null,Rd=0,Zs=1/0,Wr=null,Wl=!1,Fd=null,Ci=null,Ql=!1,Oi=null,Hl=0,ya=0,Td=null,Kl=-1,ql=0;function nn(){return($e&6)!==0?Qe():Kl!==-1?Kl:Kl=Qe()}function Ri(n){return(n.mode&1)===0?1:($e&2)!==0&&Ht!==0?Ht&-Ht:Vw.transition!==null?(ql===0&&(ql=fh()),ql):(n=et,n!==0||(n=window.event,n=n===void 0?16:_h(n.type)),n)}function Xn(n,i,o,l){if(50<ya)throw ya=0,Td=null,Error(t(185));Uo(n,o,l),(($e&2)===0||n!==Vt)&&(n===Vt&&(($e&2)===0&&($l|=o),Bt===4&&Fi(n,Ht)),fn(n,l),o===1&&$e===0&&(i.mode&1)===0&&(Zs=Qe()+500,bl&&Ii()))}function fn(n,i){var o=n.callbackNode;V0(n,i);var l=rl(n,n===Vt?Ht:0);if(l===0)o!==null&&Pr(o),n.callbackNode=null,n.callbackPriority=0;else if(i=l&-l,n.callbackPriority!==i){if(o!=null&&Pr(o),i===1)n.tag===0?zw(_y.bind(null,n)):op(_y.bind(null,n)),Bw(function(){($e&6)===0&&Ii()}),o=null;else{switch(hh(l)){case 1:o=Nr;break;case 4:o=pr;break;case 16:o=Lr;break;case 536870912:o=Be;break;default:o=Lr}o=Ry(o,Sy.bind(null,n))}n.callbackPriority=i,n.callbackNode=o}}function Sy(n,i){if(Kl=-1,ql=0,($e&6)!==0)throw Error(t(327));var o=n.callbackNode;if(eo()&&n.callbackNode!==o)return null;var l=rl(n,n===Vt?Ht:0);if(l===0)return null;if((l&30)!==0||(l&n.expiredLanes)!==0||i)i=Yl(n,l);else{i=l;var c=$e;$e|=2;var f=Iy();(Vt!==n||Ht!==i)&&(Wr=null,Zs=Qe()+500,us(n,i));do try{lS();break}catch(w){by(n,w)}while(!0);Yc(),Vl.current=f,$e=c,Mt!==null?i=0:(Vt=null,Ht=0,i=Bt)}if(i!==0){if(i===2&&(c=dc(n),c!==0&&(l=c,i=Md(n,c))),i===1)throw o=ha,us(n,0),Fi(n,l),fn(n,Qe()),o;if(i===6)Fi(n,l);else{if(c=n.current.alternate,(l&30)===0&&!oS(c)&&(i=Yl(n,l),i===2&&(f=dc(n),f!==0&&(l=f,i=Md(n,f))),i===1))throw o=ha,us(n,0),Fi(n,l),fn(n,Qe()),o;switch(n.finishedWork=c,n.finishedLanes=l,i){case 0:case 1:throw Error(t(345));case 2:cs(n,dn,Wr);break;case 3:if(Fi(n,l),(l&130023424)===l&&(i=Rd+500-Qe(),10<i)){if(rl(n,0)!==0)break;if(c=n.suspendedLanes,(c&l)!==l){nn(),n.pingedLanes|=n.suspendedLanes&c;break}n.timeoutHandle=kc(cs.bind(null,n,dn,Wr),i);break}cs(n,dn,Wr);break;case 4:if(Fi(n,l),(l&4194240)===l)break;for(i=n.eventTimes,c=-1;0<l;){var y=31-He(l);f=1<<y,y=i[y],y>c&&(c=y),l&=~f}if(l=c,l=Qe()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*sS(l/1960))-l,10<l){n.timeoutHandle=kc(cs.bind(null,n,dn,Wr),l);break}cs(n,dn,Wr);break;case 5:cs(n,dn,Wr);break;default:throw Error(t(329))}}}return fn(n,Qe()),n.callbackNode===o?Sy.bind(null,n):null}function Md(n,i){var o=pa;return n.current.memoizedState.isDehydrated&&(us(n,i).flags|=256),n=Yl(n,i),n!==2&&(i=dn,dn=o,i!==null&&Ad(i)),n}function Ad(n){dn===null?dn=n:dn.push.apply(dn,n)}function oS(n){for(var i=n;;){if(i.flags&16384){var o=i.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var l=0;l<o.length;l++){var c=o[l],f=c.getSnapshot;c=c.value;try{if(!Kn(f(),c))return!1}catch{return!1}}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Fi(n,i){for(i&=~Od,i&=~$l,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var o=31-He(i),l=1<<o;n[o]=-1,i&=~l}}function _y(n){if(($e&6)!==0)throw Error(t(327));eo();var i=rl(n,0);if((i&1)===0)return fn(n,Qe()),null;var o=Yl(n,i);if(n.tag!==0&&o===2){var l=dc(n);l!==0&&(i=l,o=Md(n,l))}if(o===1)throw o=ha,us(n,0),Fi(n,i),fn(n,Qe()),o;if(o===6)throw Error(t(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,cs(n,dn,Wr),fn(n,Qe()),null}function Pd(n,i){var o=$e;$e|=1;try{return n(i)}finally{$e=o,$e===0&&(Zs=Qe()+500,bl&&Ii())}}function ls(n){Oi!==null&&Oi.tag===0&&($e&6)===0&&eo();var i=$e;$e|=1;var o=Pn.transition,l=et;try{if(Pn.transition=null,et=1,n)return n()}finally{et=l,Pn.transition=o,$e=i,($e&6)===0&&Ii()}}function Nd(){Dn=Xs.current,mt(Xs)}function us(n,i){n.finishedWork=null,n.finishedLanes=0;var o=n.timeoutHandle;if(o!==-1&&(n.timeoutHandle=-1,Lw(o)),Mt!==null)for(o=Mt.return;o!==null;){var l=o;switch(Wc(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Sl();break;case 3:Ys(),mt(ln),mt(qt),rd();break;case 5:td(l);break;case 4:Ys();break;case 13:mt(_t);break;case 19:mt(_t);break;case 10:Gc(l.type._context);break;case 22:case 23:Nd()}o=o.return}if(Vt=n,Mt=n=Ti(n.current,null),Ht=Dn=i,Bt=0,ha=null,Od=$l=as=0,dn=pa=null,is!==null){for(i=0;i<is.length;i++)if(o=is[i],l=o.interleaved,l!==null){o.interleaved=null;var c=l.next,f=o.pending;if(f!==null){var y=f.next;f.next=c,l.next=y}o.pending=l}is=null}return n}function by(n,i){do{var o=Mt;try{if(Yc(),Ml.current=Ll,Al){for(var l=bt.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}Al=!1}if(os=0,zt=Lt=bt=null,aa=!1,la=0,Cd.current=null,o===null||o.return===null){Bt=1,ha=i,Mt=null;break}e:{var f=n,y=o.return,w=o,_=i;if(i=Ht,w.flags|=32768,_!==null&&typeof _=="object"&&typeof _.then=="function"){var M=_,z=w,$=z.tag;if((z.mode&1)===0&&($===0||$===11||$===15)){var j=z.alternate;j?(z.updateQueue=j.updateQueue,z.memoizedState=j.memoizedState,z.lanes=j.lanes):(z.updateQueue=null,z.memoizedState=null)}var X=Kp(y);if(X!==null){X.flags&=-257,qp(X,y,w,f,i),X.mode&1&&Hp(f,M,i),i=X,_=M;var re=i.updateQueue;if(re===null){var se=new Set;se.add(_),i.updateQueue=se}else re.add(_);break e}else{if((i&1)===0){Hp(f,M,i),Ld();break e}_=Error(t(426))}}else if(vt&&w.mode&1){var Ot=Kp(y);if(Ot!==null){(Ot.flags&65536)===0&&(Ot.flags|=256),qp(Ot,y,w,f,i),Kc(Gs(_,w));break e}}f=_=Gs(_,w),Bt!==4&&(Bt=2),pa===null?pa=[f]:pa.push(f),f=y;do{switch(f.tag){case 3:f.flags|=65536,i&=-i,f.lanes|=i;var R=Wp(f,_,i);gp(f,R);break e;case 1:w=_;var E=f.type,F=f.stateNode;if((f.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(Ci===null||!Ci.has(F)))){f.flags|=65536,i&=-i,f.lanes|=i;var H=Qp(f,w,i);gp(f,H);break e}}f=f.return}while(f!==null)}xy(o)}catch(oe){i=oe,Mt===o&&o!==null&&(Mt=o=o.return);continue}break}while(!0)}function Iy(){var n=Vl.current;return Vl.current=Ll,n===null?Ll:n}function Ld(){(Bt===0||Bt===3||Bt===2)&&(Bt=4),Vt===null||(as&268435455)===0&&($l&268435455)===0||Fi(Vt,Ht)}function Yl(n,i){var o=$e;$e|=2;var l=Iy();(Vt!==n||Ht!==i)&&(Wr=null,us(n,i));do try{aS();break}catch(c){by(n,c)}while(!0);if(Yc(),$e=o,Vl.current=l,Mt!==null)throw Error(t(261));return Vt=null,Ht=0,Bt}function aS(){for(;Mt!==null;)Ey(Mt)}function lS(){for(;Mt!==null&&!Xi();)Ey(Mt)}function Ey(n){var i=Oy(n.alternate,n,Dn);n.memoizedProps=n.pendingProps,i===null?xy(n):Mt=i,Cd.current=null}function xy(n){var i=n;do{var o=i.alternate;if(n=i.return,(i.flags&32768)===0){if(o=eS(o,i,Dn),o!==null){Mt=o;return}}else{if(o=tS(o,i),o!==null){o.flags&=32767,Mt=o;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{Bt=6,Mt=null;return}}if(i=i.sibling,i!==null){Mt=i;return}Mt=i=n}while(i!==null);Bt===0&&(Bt=5)}function cs(n,i,o){var l=et,c=Pn.transition;try{Pn.transition=null,et=1,uS(n,i,o,l)}finally{Pn.transition=c,et=l}return null}function uS(n,i,o,l){do eo();while(Oi!==null);if(($e&6)!==0)throw Error(t(327));o=n.finishedWork;var c=n.finishedLanes;if(o===null)return null;if(n.finishedWork=null,n.finishedLanes=0,o===n.current)throw Error(t(177));n.callbackNode=null,n.callbackPriority=0;var f=o.lanes|o.childLanes;if($0(n,f),n===Vt&&(Mt=Vt=null,Ht=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ql||(Ql=!0,Ry(Lr,function(){return eo(),null})),f=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||f){f=Pn.transition,Pn.transition=null;var y=et;et=1;var w=$e;$e|=4,Cd.current=null,rS(n,o),yy(o,n),Rw(Lc),ol=!!Nc,Lc=Nc=null,n.current=o,iS(o),Hn(),$e=w,et=y,Pn.transition=f}else n.current=o;if(Ql&&(Ql=!1,Oi=n,Hl=c),f=n.pendingLanes,f===0&&(Ci=null),Zi(o.stateNode),fn(n,Qe()),i!==null)for(l=n.onRecoverableError,o=0;o<i.length;o++)c=i[o],l(c.value,{componentStack:c.stack,digest:c.digest});if(Wl)throw Wl=!1,n=Fd,Fd=null,n;return(Hl&1)!==0&&n.tag!==0&&eo(),f=n.pendingLanes,(f&1)!==0?n===Td?ya++:(ya=0,Td=n):ya=0,Ii(),null}function eo(){if(Oi!==null){var n=hh(Hl),i=Pn.transition,o=et;try{if(Pn.transition=null,et=16>n?16:n,Oi===null)var l=!1;else{if(n=Oi,Oi=null,Hl=0,($e&6)!==0)throw Error(t(331));var c=$e;for($e|=4,ee=n.current;ee!==null;){var f=ee,y=f.child;if((ee.flags&16)!==0){var w=f.deletions;if(w!==null){for(var _=0;_<w.length;_++){var M=w[_];for(ee=M;ee!==null;){var z=ee;switch(z.tag){case 0:case 11:case 15:fa(8,z,f)}var $=z.child;if($!==null)$.return=z,ee=$;else for(;ee!==null;){z=ee;var j=z.sibling,X=z.return;if(cy(z),z===M){ee=null;break}if(j!==null){j.return=X,ee=j;break}ee=X}}}var re=f.alternate;if(re!==null){var se=re.child;if(se!==null){re.child=null;do{var Ot=se.sibling;se.sibling=null,se=Ot}while(se!==null)}}ee=f}}if((f.subtreeFlags&2064)!==0&&y!==null)y.return=f,ee=y;else e:for(;ee!==null;){if(f=ee,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:fa(9,f,f.return)}var R=f.sibling;if(R!==null){R.return=f.return,ee=R;break e}ee=f.return}}var E=n.current;for(ee=E;ee!==null;){y=ee;var F=y.child;if((y.subtreeFlags&2064)!==0&&F!==null)F.return=y,ee=F;else e:for(y=E;ee!==null;){if(w=ee,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:zl(9,w)}}catch(oe){Dt(w,w.return,oe)}if(w===y){ee=null;break e}var H=w.sibling;if(H!==null){H.return=w.return,ee=H;break e}ee=w.return}}if($e=c,Ii(),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(lt,n)}catch{}l=!0}return l}finally{et=o,Pn.transition=i}}return!1}function Dy(n,i,o){i=Gs(o,i),i=Wp(n,i,1),n=xi(n,i,1),i=nn(),n!==null&&(Uo(n,1,i),fn(n,i))}function Dt(n,i,o){if(n.tag===3)Dy(n,n,o);else for(;i!==null;){if(i.tag===3){Dy(i,n,o);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ci===null||!Ci.has(l))){n=Gs(o,n),n=Qp(i,n,1),i=xi(i,n,1),n=nn(),i!==null&&(Uo(i,1,n),fn(i,n));break}}i=i.return}}function cS(n,i,o){var l=n.pingCache;l!==null&&l.delete(i),i=nn(),n.pingedLanes|=n.suspendedLanes&o,Vt===n&&(Ht&o)===o&&(Bt===4||Bt===3&&(Ht&130023424)===Ht&&500>Qe()-Rd?us(n,0):Od|=o),fn(n,i)}function Cy(n,i){i===0&&((n.mode&1)===0?i=1:(i=nl,nl<<=1,(nl&130023424)===0&&(nl=4194304)));var o=nn();n=zr(n,i),n!==null&&(Uo(n,i,o),fn(n,o))}function dS(n){var i=n.memoizedState,o=0;i!==null&&(o=i.retryLane),Cy(n,o)}function fS(n,i){var o=0;switch(n.tag){case 13:var l=n.stateNode,c=n.memoizedState;c!==null&&(o=c.retryLane);break;case 19:l=n.stateNode;break;default:throw Error(t(314))}l!==null&&l.delete(i),Cy(n,o)}var Oy;Oy=function(n,i,o){if(n!==null)if(n.memoizedProps!==i.pendingProps||ln.current)cn=!0;else{if((n.lanes&o)===0&&(i.flags&128)===0)return cn=!1,Zw(n,i,o);cn=(n.flags&131072)!==0}else cn=!1,vt&&(i.flags&1048576)!==0&&ap(i,El,i.index);switch(i.lanes=0,i.tag){case 2:var l=i.type;Ul(n,i),n=i.pendingProps;var c=Vs(i,qt.current);qs(i,o),c=od(null,i,l,n,c,o);var f=ad();return i.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,un(l)?(f=!0,_l(i)):f=!1,i.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Zc(i),c.updater=Bl,i.stateNode=c,c._reactInternals=i,hd(i,l,n,o),i=gd(null,i,l,!0,f,o)):(i.tag=0,vt&&f&&$c(i),tn(null,i,c,o),i=i.child),i;case 16:l=i.elementType;e:{switch(Ul(n,i),n=i.pendingProps,c=l._init,l=c(l._payload),i.type=l,c=i.tag=pS(l),n=Yn(l,n),c){case 0:i=md(null,i,l,n,o);break e;case 1:i=ey(null,i,l,n,o);break e;case 11:i=Yp(null,i,l,n,o);break e;case 14:i=Gp(null,i,l,Yn(l.type,n),o);break e}throw Error(t(306,l,""))}return i;case 0:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:Yn(l,c),md(n,i,l,c,o);case 1:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:Yn(l,c),ey(n,i,l,c,o);case 3:e:{if(ty(i),n===null)throw Error(t(387));l=i.pendingProps,f=i.memoizedState,c=f.element,mp(n,i),Fl(i,l,null,o);var y=i.memoizedState;if(l=y.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},i.updateQueue.baseState=f,i.memoizedState=f,i.flags&256){c=Gs(Error(t(423)),i),i=ny(n,i,l,o,c);break e}else if(l!==c){c=Gs(Error(t(424)),i),i=ny(n,i,l,o,c);break e}else for(xn=Si(i.stateNode.containerInfo.firstChild),En=i,vt=!0,qn=null,o=pp(i,null,l,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Qs(),l===c){i=$r(n,i,o);break e}tn(n,i,l,o)}i=i.child}return i;case 5:return wp(i),n===null&&Hc(i),l=i.type,c=i.pendingProps,f=n!==null?n.memoizedProps:null,y=c.children,Bc(l,c)?y=null:f!==null&&Bc(l,f)&&(i.flags|=32),Zp(n,i),tn(n,i,y,o),i.child;case 6:return n===null&&Hc(i),null;case 13:return ry(n,i,o);case 4:return ed(i,i.stateNode.containerInfo),l=i.pendingProps,n===null?i.child=Hs(i,null,l,o):tn(n,i,l,o),i.child;case 11:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:Yn(l,c),Yp(n,i,l,c,o);case 7:return tn(n,i,i.pendingProps,o),i.child;case 8:return tn(n,i,i.pendingProps.children,o),i.child;case 12:return tn(n,i,i.pendingProps.children,o),i.child;case 10:e:{if(l=i.type._context,c=i.pendingProps,f=i.memoizedProps,y=c.value,ht(Cl,l._currentValue),l._currentValue=y,f!==null)if(Kn(f.value,y)){if(f.children===c.children&&!ln.current){i=$r(n,i,o);break e}}else for(f=i.child,f!==null&&(f.return=i);f!==null;){var w=f.dependencies;if(w!==null){y=f.child;for(var _=w.firstContext;_!==null;){if(_.context===l){if(f.tag===1){_=Vr(-1,o&-o),_.tag=2;var M=f.updateQueue;if(M!==null){M=M.shared;var z=M.pending;z===null?_.next=_:(_.next=z.next,z.next=_),M.pending=_}}f.lanes|=o,_=f.alternate,_!==null&&(_.lanes|=o),Jc(f.return,o,i),w.lanes|=o;break}_=_.next}}else if(f.tag===10)y=f.type===i.type?null:f.child;else if(f.tag===18){if(y=f.return,y===null)throw Error(t(341));y.lanes|=o,w=y.alternate,w!==null&&(w.lanes|=o),Jc(y,o,i),y=f.sibling}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===i){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}tn(n,i,c.children,o),i=i.child}return i;case 9:return c=i.type,l=i.pendingProps.children,qs(i,o),c=Mn(c),l=l(c),i.flags|=1,tn(n,i,l,o),i.child;case 14:return l=i.type,c=Yn(l,i.pendingProps),c=Yn(l.type,c),Gp(n,i,l,c,o);case 15:return Jp(n,i,i.type,i.pendingProps,o);case 17:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:Yn(l,c),Ul(n,i),i.tag=1,un(l)?(n=!0,_l(i)):n=!1,qs(i,o),Vp(i,l,c),hd(i,l,c,o),gd(null,i,l,!0,n,o);case 19:return sy(n,i,o);case 22:return Xp(n,i,o)}throw Error(t(156,i.tag))};function Ry(n,i){return pt(n,i)}function hS(n,i,o,l){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(n,i,o,l){return new hS(n,i,o,l)}function Bd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function pS(n){if(typeof n=="function")return Bd(n)?1:0;if(n!=null){if(n=n.$$typeof,n===We)return 11;if(n===Tt)return 14}return 2}function Ti(n,i){var o=n.alternate;return o===null?(o=Nn(n.tag,i,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=i,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&14680064,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,i=n.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o}function Gl(n,i,o,l,c,f){var y=2;if(l=n,typeof n=="function")Bd(n)&&(y=1);else if(typeof n=="string")y=5;else e:switch(n){case C:return ds(o.children,c,f,i);case V:y=8,c|=8;break;case pe:return n=Nn(12,o,i,c|2),n.elementType=pe,n.lanes=f,n;case Xe:return n=Nn(13,o,i,c),n.elementType=Xe,n.lanes=f,n;case dt:return n=Nn(19,o,i,c),n.elementType=dt,n.lanes=f,n;case at:return Jl(o,c,f,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case ue:y=10;break e;case Ye:y=9;break e;case We:y=11;break e;case Tt:y=14;break e;case Pt:y=16,l=null;break e}throw Error(t(130,n==null?n:typeof n,""))}return i=Nn(y,o,i,c),i.elementType=n,i.type=l,i.lanes=f,i}function ds(n,i,o,l){return n=Nn(7,n,l,i),n.lanes=o,n}function Jl(n,i,o,l){return n=Nn(22,n,l,i),n.elementType=at,n.lanes=o,n.stateNode={isHidden:!1},n}function kd(n,i,o){return n=Nn(6,n,null,i),n.lanes=o,n}function Ud(n,i,o){return i=Nn(4,n.children!==null?n.children:[],n.key,i),i.lanes=o,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function yS(n,i,o,l,c){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fc(0),this.expirationTimes=fc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fc(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function jd(n,i,o,l,c,f,y,w,_){return n=new yS(n,i,o,w,_),i===1?(i=1,f===!0&&(i|=8)):i=0,f=Nn(3,null,null,i),n.current=f,f.stateNode=n,f.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zc(f),n}function mS(n,i,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:le,key:l==null?null:""+l,children:n,containerInfo:i,implementation:o}}function Fy(n){if(!n)return bi;n=n._reactInternals;e:{if(te(n)!==n||n.tag!==1)throw Error(t(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(un(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(t(171))}if(n.tag===1){var o=n.type;if(un(o))return ip(n,o,i)}return i}function Ty(n,i,o,l,c,f,y,w,_){return n=jd(o,l,!0,n,c,f,y,w,_),n.context=Fy(null),o=n.current,l=nn(),c=Ri(o),f=Vr(l,c),f.callback=i??null,xi(o,f,c),n.current.lanes=c,Uo(n,c,l),fn(n,l),n}function Xl(n,i,o,l){var c=i.current,f=nn(),y=Ri(c);return o=Fy(o),i.context===null?i.context=o:i.pendingContext=o,i=Vr(f,y),i.payload={element:n},l=l===void 0?null:l,l!==null&&(i.callback=l),n=xi(c,i,y),n!==null&&(Xn(n,c,y,f),Rl(n,c,y)),y}function Zl(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function My(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<i?o:i}}function zd(n,i){My(n,i),(n=n.alternate)&&My(n,i)}function gS(){return null}var Ay=typeof reportError=="function"?reportError:function(n){console.error(n)};function Vd(n){this._internalRoot=n}eu.prototype.render=Vd.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(t(409));Xl(n,i,null,null)},eu.prototype.unmount=Vd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;ls(function(){Xl(null,n,null,null)}),i[Br]=null}};function eu(n){this._internalRoot=n}eu.prototype.unstable_scheduleHydration=function(n){if(n){var i=mh();n={blockedOn:null,target:n,priority:i};for(var o=0;o<gi.length&&i!==0&&i<gi[o].priority;o++);gi.splice(o,0,n),o===0&&wh(n)}};function $d(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function tu(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Py(){}function vS(n,i,o,l,c){if(c){if(typeof l=="function"){var f=l;l=function(){var M=Zl(y);f.call(M)}}var y=Ty(i,l,n,0,null,!1,!1,"",Py);return n._reactRootContainer=y,n[Br]=y.current,Zo(n.nodeType===8?n.parentNode:n),ls(),y}for(;c=n.lastChild;)n.removeChild(c);if(typeof l=="function"){var w=l;l=function(){var M=Zl(_);w.call(M)}}var _=jd(n,0,!1,null,null,!1,!1,"",Py);return n._reactRootContainer=_,n[Br]=_.current,Zo(n.nodeType===8?n.parentNode:n),ls(function(){Xl(i,_,o,l)}),_}function nu(n,i,o,l,c){var f=o._reactRootContainer;if(f){var y=f;if(typeof c=="function"){var w=c;c=function(){var _=Zl(y);w.call(_)}}Xl(i,y,n,c)}else y=vS(o,i,n,c,l);return Zl(y)}ph=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var o=ko(i.pendingLanes);o!==0&&(hc(i,o|1),fn(i,Qe()),($e&6)===0&&(Zs=Qe()+500,Ii()))}break;case 13:ls(function(){var l=zr(n,1);if(l!==null){var c=nn();Xn(l,n,1,c)}}),zd(n,1)}},pc=function(n){if(n.tag===13){var i=zr(n,134217728);if(i!==null){var o=nn();Xn(i,n,134217728,o)}zd(n,134217728)}},yh=function(n){if(n.tag===13){var i=Ri(n),o=zr(n,i);if(o!==null){var l=nn();Xn(o,n,i,l)}zd(n,i)}},mh=function(){return et},gh=function(n,i){var o=et;try{return et=n,i()}finally{et=o}},Ts=function(n,i,o){switch(i){case"input":if(Fo(n,o),i=o.name,o.type==="radio"&&i!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<o.length;i++){var l=o[i];if(l!==n&&l.form===n.form){var c=wl(l);if(!c)throw Error(t(90));jt(l),Fo(l,c)}}}break;case"textarea":cr(n,o);break;case"select":i=o.value,i!=null&&li(n,!!o.multiple,i,!1)}},Lo=Pd,Gi=ls;var wS={usingClientEntryPoint:!1,Events:[na,js,wl,No,Xa,Pd]},ma={findFiberByHostInstance:es,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},SS={bundleType:ma.bundleType,version:ma.version,rendererPackageName:ma.rendererPackageName,rendererConfig:ma.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:q.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=Ze(n),n===null?null:n.stateNode},findFiberByHostInstance:ma.findFiberByHostInstance||gS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{lt=ru.inject(SS),Wt=ru}catch{}}return hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wS,hn.createPortal=function(n,i){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$d(i))throw Error(t(200));return mS(n,i,null,o)},hn.createRoot=function(n,i){if(!$d(n))throw Error(t(299));var o=!1,l="",c=Ay;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onRecoverableError!==void 0&&(c=i.onRecoverableError)),i=jd(n,1,!1,null,null,o,!1,l,c),n[Br]=i.current,Zo(n.nodeType===8?n.parentNode:n),new Vd(i)},hn.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(t(188)):(n=Object.keys(n).join(","),Error(t(268,n)));return n=Ze(i),n=n===null?null:n.stateNode,n},hn.flushSync=function(n){return ls(n)},hn.hydrate=function(n,i,o){if(!tu(i))throw Error(t(200));return nu(null,n,i,!0,o)},hn.hydrateRoot=function(n,i,o){if(!$d(n))throw Error(t(405));var l=o!=null&&o.hydratedSources||null,c=!1,f="",y=Ay;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(y=o.onRecoverableError)),i=Ty(i,null,n,1,o??null,c,!1,f,y),n[Br]=i.current,Zo(n),l)for(n=0;n<l.length;n++)o=l[n],c=o._getVersion,c=c(o._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[o,c]:i.mutableSourceEagerHydrationData.push(o,c);return new eu(i)},hn.render=function(n,i,o){if(!tu(i))throw Error(t(200));return nu(null,n,i,!1,o)},hn.unmountComponentAtNode=function(n){if(!tu(n))throw Error(t(40));return n._reactRootContainer?(ls(function(){nu(null,null,n,!1,function(){n._reactRootContainer=null,n[Br]=null})}),!0):!1},hn.unstable_batchedUpdates=Pd,hn.unstable_renderSubtreeIntoContainer=function(n,i,o,l){if(!tu(o))throw Error(t(200));if(n==null||n._reactInternals===void 0)throw Error(t(38));return nu(n,i,o,!1,l)},hn.version="18.3.1-next-f1338f8080-20240426",hn}var Vy;function ug(){if(Vy)return Kd.exports;Vy=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),Kd.exports=NS(),Kd.exports}var $y;function LS(){if($y)return iu;$y=1;var r=ug();return iu.createRoot=r.createRoot,iu.hydrateRoot=r.hydrateRoot,iu}var BS=LS();const kS=Tf(BS);class Co{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Ra=typeof window>"u"||"Deno"in window;function Bn(){}function US(r,e){return typeof r=="function"?r(e):r}function cf(r){return typeof r=="number"&&r>=0&&r!==1/0}function cg(r,e){return Math.max(r+(e||0)-Date.now(),0)}function Ia(r,e,t){return Ua(r)?typeof e=="function"?{...t,queryKey:r,queryFn:e}:{...e,queryKey:r}:r}function jS(r,e,t){return Ua(r)?{...e,mutationKey:r}:typeof r=="function"?{...e,mutationFn:r}:{...r}}function Ni(r,e,t){return Ua(r)?[{...e,queryKey:r},t]:[r||{},e]}function Wy(r,e){const{type:t="all",exact:s,fetchStatus:a,predicate:u,queryKey:d,stale:h}=r;if(Ua(d)){if(s){if(e.queryHash!==Mf(d,e.options))return!1}else if(!gu(e.queryKey,d))return!1}if(t!=="all"){const p=e.isActive();if(t==="active"&&!p||t==="inactive"&&p)return!1}return!(typeof h=="boolean"&&e.isStale()!==h||typeof a<"u"&&a!==e.state.fetchStatus||u&&!u(e))}function Qy(r,e){const{exact:t,fetching:s,predicate:a,mutationKey:u}=r;if(Ua(u)){if(!e.options.mutationKey)return!1;if(t){if(ms(e.options.mutationKey)!==ms(u))return!1}else if(!gu(e.options.mutationKey,u))return!1}return!(typeof s=="boolean"&&e.state.status==="loading"!==s||a&&!a(e))}function Mf(r,e){return((e==null?void 0:e.queryKeyHashFn)||ms)(r)}function ms(r){return JSON.stringify(r,(e,t)=>df(t)?Object.keys(t).sort().reduce((s,a)=>(s[a]=t[a],s),{}):t)}function gu(r,e){return dg(r,e)}function dg(r,e){return r===e?!0:typeof r!=typeof e?!1:r&&e&&typeof r=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!dg(r[t],e[t])):!1}function fg(r,e){if(r===e)return r;const t=Hy(r)&&Hy(e);if(t||df(r)&&df(e)){const s=t?r.length:Object.keys(r).length,a=t?e:Object.keys(e),u=a.length,d=t?[]:{};let h=0;for(let p=0;p<u;p++){const m=t?p:a[p];d[m]=fg(r[m],e[m]),d[m]===r[m]&&h++}return s===u&&h===s?r:d}return e}function vu(r,e){if(r&&!e||e&&!r)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}function Hy(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function df(r){if(!Ky(r))return!1;const e=r.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!Ky(t)||!t.hasOwnProperty("isPrototypeOf"))}function Ky(r){return Object.prototype.toString.call(r)==="[object Object]"}function Ua(r){return Array.isArray(r)}function hg(r){return new Promise(e=>{setTimeout(e,r)})}function qy(r){hg(0).then(r)}function zS(){if(typeof AbortController=="function")return new AbortController}function ff(r,e,t){return t.isDataEqual!=null&&t.isDataEqual(r,e)?r:typeof t.structuralSharing=="function"?t.structuralSharing(r,e):t.structuralSharing!==!1?fg(r,e):e}class VS extends Co{constructor(){super(),this.setup=e=>{if(!Ra&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const wu=new VS,Yy=["online","offline"];class $S extends Co{constructor(){super(),this.setup=e=>{if(!Ra&&window.addEventListener){const t=()=>e();return Yy.forEach(s=>{window.addEventListener(s,t,!1)}),()=>{Yy.forEach(s=>{window.removeEventListener(s,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(s=>{typeof s=="boolean"?this.setOnline(s):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Su=new $S;function WS(r){return Math.min(1e3*2**r,3e4)}function nc(r){return(r??"online")==="online"?Su.isOnline():!0}class pg{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function Ca(r){return r instanceof pg}function yg(r){let e=!1,t=0,s=!1,a,u,d;const h=new Promise((T,K)=>{u=T,d=K}),p=T=>{s||(I(new pg(T)),r.abort==null||r.abort())},m=()=>{e=!0},g=()=>{e=!1},v=()=>!wu.isFocused()||r.networkMode!=="always"&&!Su.isOnline(),b=T=>{s||(s=!0,r.onSuccess==null||r.onSuccess(T),a==null||a(),u(T))},I=T=>{s||(s=!0,r.onError==null||r.onError(T),a==null||a(),d(T))},A=()=>new Promise(T=>{a=K=>{const W=s||!v();return W&&T(K),W},r.onPause==null||r.onPause()}).then(()=>{a=void 0,s||r.onContinue==null||r.onContinue()}),L=()=>{if(s)return;let T;try{T=r.fn()}catch(K){T=Promise.reject(K)}Promise.resolve(T).then(b).catch(K=>{var W,Y;if(s)return;const q=(W=r.retry)!=null?W:3,he=(Y=r.retryDelay)!=null?Y:WS,le=typeof he=="function"?he(t,K):he,C=q===!0||typeof q=="number"&&t<q||typeof q=="function"&&q(t,K);if(e||!C){I(K);return}t++,r.onFail==null||r.onFail(t,K),hg(le).then(()=>{if(v())return A()}).then(()=>{e?I(K):L()})})};return nc(r.networkMode)?L():A().then(L),{promise:h,cancel:p,continue:()=>(a==null?void 0:a())?h:Promise.resolve(),cancelRetry:m,continueRetry:g}}const Af=console;function QS(){let r=[],e=0,t=g=>{g()},s=g=>{g()};const a=g=>{let v;e++;try{v=g()}finally{e--,e||h()}return v},u=g=>{e?r.push(g):qy(()=>{t(g)})},d=g=>(...v)=>{u(()=>{g(...v)})},h=()=>{const g=r;r=[],g.length&&qy(()=>{s(()=>{g.forEach(v=>{t(v)})})})};return{batch:a,batchCalls:d,schedule:u,setNotifyFunction:g=>{t=g},setBatchNotifyFunction:g=>{s=g}}}const Ct=QS();class mg{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cf(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Ra?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class HS extends mg{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Af,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||KS(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const s=ff(this.state.data,e,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),s}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const s=this.promise;return(t=this.retryer)==null||t.cancel(e),s?s.then(Bn).catch(Bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!cg(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var s,a;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var u;return(u=this.retryer)==null||u.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const I=this.observers.find(A=>A.options.queryFn);I&&this.setOptions(I.options)}const d=zS(),h={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},p=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>{if(d)return this.abortSignalConsumed=!0,d.signal}})};p(h);const m=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(h)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),g={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:m};if(p(g),(s=this.options.behavior)==null||s.onFetch(g),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=g.fetchOptions)==null?void 0:a.meta)){var v;this.dispatch({type:"fetch",meta:(v=g.fetchOptions)==null?void 0:v.meta})}const b=I=>{if(Ca(I)&&I.silent||this.dispatch({type:"error",error:I}),!Ca(I)){var A,L,T,K;(A=(L=this.cache.config).onError)==null||A.call(L,I,this),(T=(K=this.cache.config).onSettled)==null||T.call(K,this.state.data,I,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=yg({fn:g.fetchFn,abort:d==null?void 0:d.abort.bind(d),onSuccess:I=>{var A,L,T,K;if(typeof I>"u"){b(new Error(this.queryHash+" data is undefined"));return}this.setData(I),(A=(L=this.cache.config).onSuccess)==null||A.call(L,I,this),(T=(K=this.cache.config).onSettled)==null||T.call(K,I,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:b,onFail:(I,A)=>{this.dispatch({type:"failed",failureCount:I,error:A})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=s=>{var a,u;switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(a=e.meta)!=null?a:null,fetchStatus:nc(this.options.networkMode)?"fetching":"paused",...!s.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:(u=e.dataUpdatedAt)!=null?u:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const d=e.error;return Ca(d)&&d.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...s,error:d,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),Ct.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function KS(r){const e=typeof r.initialData=="function"?r.initialData():r.initialData,t=typeof e<"u",s=t?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class gg extends Co{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,s){var a;const u=t.queryKey,d=(a=t.queryHash)!=null?a:Mf(u,t);let h=this.get(d);return h||(h=new HS({cache:this,logger:e.getLogger(),queryKey:u,queryHash:d,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(u)}),this.add(h)),h}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(s=>s!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Ct.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[s]=Ni(e,t);return typeof s.exact>"u"&&(s.exact=!0),this.queries.find(a=>Wy(s,a))}findAll(e,t){const[s]=Ni(e,t);return Object.keys(s).length>0?this.queries.filter(a=>Wy(s,a)):this.queries}notify(e){Ct.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){Ct.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){Ct.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class qS extends mg{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Af,this.observers=[],this.state=e.state||vg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var C;return this.retryer=yg({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(V,pe)=>{this.dispatch({type:"failed",failureCount:V,error:pe})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(C=this.options.retry)!=null?C:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var s,a,u,d,h,p,m,g;if(!t){var v,b,I,A;this.dispatch({type:"loading",variables:this.options.variables}),await((v=(b=this.mutationCache.config).onMutate)==null?void 0:v.call(b,this.state.variables,this));const V=await((I=(A=this.options).onMutate)==null?void 0:I.call(A,this.state.variables));V!==this.state.context&&this.dispatch({type:"loading",context:V,variables:this.state.variables})}const C=await e();return await((s=(a=this.mutationCache.config).onSuccess)==null?void 0:s.call(a,C,this.state.variables,this.state.context,this)),await((u=(d=this.options).onSuccess)==null?void 0:u.call(d,C,this.state.variables,this.state.context)),await((h=(p=this.mutationCache.config).onSettled)==null?void 0:h.call(p,C,null,this.state.variables,this.state.context,this)),await((m=(g=this.options).onSettled)==null?void 0:m.call(g,C,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:C}),C}catch(C){try{var L,T,K,W,Y,q,he,le;throw await((L=(T=this.mutationCache.config).onError)==null?void 0:L.call(T,C,this.state.variables,this.state.context,this)),await((K=(W=this.options).onError)==null?void 0:K.call(W,C,this.state.variables,this.state.context)),await((Y=(q=this.mutationCache.config).onSettled)==null?void 0:Y.call(q,void 0,C,this.state.variables,this.state.context,this)),await((he=(le=this.options).onSettled)==null?void 0:he.call(le,void 0,C,this.state.variables,this.state.context)),C}finally{this.dispatch({type:"error",error:C})}}}dispatch(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"loading":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!nc(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...s,...e.state}}};this.state=t(this.state),Ct.batch(()=>{this.observers.forEach(s=>{s.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function vg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class YS extends Co{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,s){const a=new qS({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:s,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(a),a}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){Ct.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>Qy(e,t))}findAll(e){return this.mutations.filter(t=>Qy(e,t))}notify(e){Ct.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(s=>s.state.isPaused);return Ct.batch(()=>t.reduce((s,a)=>s.then(()=>a.continue().catch(Bn)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function GS(){return{onFetch:r=>{r.fetchFn=()=>{var e,t,s,a,u,d;const h=(e=r.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,p=(s=r.fetchOptions)==null||(a=s.meta)==null?void 0:a.fetchMore,m=p==null?void 0:p.pageParam,g=(p==null?void 0:p.direction)==="forward",v=(p==null?void 0:p.direction)==="backward",b=((u=r.state.data)==null?void 0:u.pages)||[],I=((d=r.state.data)==null?void 0:d.pageParams)||[];let A=I,L=!1;const T=le=>{Object.defineProperty(le,"signal",{enumerable:!0,get:()=>{var C;if((C=r.signal)!=null&&C.aborted)L=!0;else{var V;(V=r.signal)==null||V.addEventListener("abort",()=>{L=!0})}return r.signal}})},K=r.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+r.options.queryHash+"'")),W=(le,C,V,pe)=>(A=pe?[C,...A]:[...A,C],pe?[V,...le]:[...le,V]),Y=(le,C,V,pe)=>{if(L)return Promise.reject("Cancelled");if(typeof V>"u"&&!C&&le.length)return Promise.resolve(le);const ue={queryKey:r.queryKey,pageParam:V,meta:r.options.meta};T(ue);const Ye=K(ue);return Promise.resolve(Ye).then(Xe=>W(le,V,Xe,pe))};let q;if(!b.length)q=Y([]);else if(g){const le=typeof m<"u",C=le?m:Gy(r.options,b);q=Y(b,le,C)}else if(v){const le=typeof m<"u",C=le?m:JS(r.options,b);q=Y(b,le,C,!0)}else{A=[];const le=typeof r.options.getNextPageParam>"u";q=(h&&b[0]?h(b[0],0,b):!0)?Y([],le,I[0]):Promise.resolve(W([],I[0],b[0]));for(let V=1;V<b.length;V++)q=q.then(pe=>{if(h&&b[V]?h(b[V],V,b):!0){const Ye=le?I[V]:Gy(r.options,pe);return Y(pe,le,Ye)}return Promise.resolve(W(pe,I[V],b[V]))})}return q.then(le=>({pages:le,pageParams:A}))}}}}function Gy(r,e){return r.getNextPageParam==null?void 0:r.getNextPageParam(e[e.length-1],e)}function JS(r,e){return r.getPreviousPageParam==null?void 0:r.getPreviousPageParam(e[0],e)}class XS{constructor(e={}){this.queryCache=e.queryCache||new gg,this.mutationCache=e.mutationCache||new YS,this.logger=e.logger||Af,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=wu.subscribe(()=>{wu.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Su.subscribe(()=>{Su.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[s]=Ni(e,t);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var s;return(s=this.queryCache.find(e,t))==null?void 0:s.state.data}ensureQueryData(e,t,s){const a=Ia(e,t,s),u=this.getQueryData(a.queryKey);return u?Promise.resolve(u):this.fetchQuery(a)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:s})=>{const a=s.data;return[t,a]})}setQueryData(e,t,s){const a=this.queryCache.find(e),u=a==null?void 0:a.state.data,d=US(t,u);if(typeof d>"u")return;const h=Ia(e),p=this.defaultQueryOptions(h);return this.queryCache.build(this,p).setData(d,{...s,manual:!0})}setQueriesData(e,t,s){return Ct.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,s)]))}getQueryState(e,t){var s;return(s=this.queryCache.find(e,t))==null?void 0:s.state}removeQueries(e,t){const[s]=Ni(e,t),a=this.queryCache;Ct.batch(()=>{a.findAll(s).forEach(u=>{a.remove(u)})})}resetQueries(e,t,s){const[a,u]=Ni(e,t,s),d=this.queryCache,h={type:"active",...a};return Ct.batch(()=>(d.findAll(a).forEach(p=>{p.reset()}),this.refetchQueries(h,u)))}cancelQueries(e,t,s){const[a,u={}]=Ni(e,t,s);typeof u.revert>"u"&&(u.revert=!0);const d=Ct.batch(()=>this.queryCache.findAll(a).map(h=>h.cancel(u)));return Promise.all(d).then(Bn).catch(Bn)}invalidateQueries(e,t,s){const[a,u]=Ni(e,t,s);return Ct.batch(()=>{var d,h;if(this.queryCache.findAll(a).forEach(m=>{m.invalidate()}),a.refetchType==="none")return Promise.resolve();const p={...a,type:(d=(h=a.refetchType)!=null?h:a.type)!=null?d:"active"};return this.refetchQueries(p,u)})}refetchQueries(e,t,s){const[a,u]=Ni(e,t,s),d=Ct.batch(()=>this.queryCache.findAll(a).filter(p=>!p.isDisabled()).map(p=>{var m;return p.fetch(void 0,{...u,cancelRefetch:(m=u==null?void 0:u.cancelRefetch)!=null?m:!0,meta:{refetchPage:a.refetchPage}})}));let h=Promise.all(d).then(Bn);return u!=null&&u.throwOnError||(h=h.catch(Bn)),h}fetchQuery(e,t,s){const a=Ia(e,t,s),u=this.defaultQueryOptions(a);typeof u.retry>"u"&&(u.retry=!1);const d=this.queryCache.build(this,u);return d.isStaleByTime(u.staleTime)?d.fetch(u):Promise.resolve(d.state.data)}prefetchQuery(e,t,s){return this.fetchQuery(e,t,s).then(Bn).catch(Bn)}fetchInfiniteQuery(e,t,s){const a=Ia(e,t,s);return a.behavior=GS(),this.fetchQuery(a)}prefetchInfiniteQuery(e,t,s){return this.fetchInfiniteQuery(e,t,s).then(Bn).catch(Bn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const s=this.queryDefaults.find(a=>ms(e)===ms(a.queryKey));s?s.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(s=>gu(e,s.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const s=this.mutationDefaults.find(a=>ms(e)===ms(a.mutationKey));s?s.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(s=>gu(e,s.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Mf(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class ZS extends Co{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Jy(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hf(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hf(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const s=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),vu(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();const u=this.hasListeners();u&&Xy(this.currentQuery,a,this.options,s)&&this.executeFetch(),this.updateResult(t),u&&(this.currentQuery!==a||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();const d=this.computeRefetchInterval();u&&(this.currentQuery!==a||this.options.enabled!==s.enabled||d!==this.currentRefetchInterval)&&this.updateRefetchInterval(d)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),s=this.createResult(t,e);return t_(this,s,e)&&(this.currentResult=s,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),s}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(s=>{Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),e[s])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),s=this.client.getQueryCache().build(this.client,t);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Bn)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Ra||this.currentResult.isStale||!cf(this.options.staleTime))return;const t=cg(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(Ra||this.options.enabled===!1||!cf(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||wu.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const s=this.currentQuery,a=this.options,u=this.currentResult,d=this.currentResultState,h=this.currentResultOptions,p=e!==s,m=p?e.state:this.currentQueryInitialState,g=p?this.currentResult:this.previousQueryResult,{state:v}=e;let{dataUpdatedAt:b,error:I,errorUpdatedAt:A,fetchStatus:L,status:T}=v,K=!1,W=!1,Y;if(t._optimisticResults){const V=this.hasListeners(),pe=!V&&Jy(e,t),ue=V&&Xy(e,s,t,a);(pe||ue)&&(L=nc(e.options.networkMode)?"fetching":"paused",b||(T="loading")),t._optimisticResults==="isRestoring"&&(L="idle")}if(t.keepPreviousData&&!v.dataUpdatedAt&&g!=null&&g.isSuccess&&T!=="error")Y=g.data,b=g.dataUpdatedAt,T=g.status,K=!0;else if(t.select&&typeof v.data<"u")if(u&&v.data===(d==null?void 0:d.data)&&t.select===this.selectFn)Y=this.selectResult;else try{this.selectFn=t.select,Y=t.select(v.data),Y=ff(u==null?void 0:u.data,Y,t),this.selectResult=Y,this.selectError=null}catch(V){this.selectError=V}else Y=v.data;if(typeof t.placeholderData<"u"&&typeof Y>"u"&&T==="loading"){let V;if(u!=null&&u.isPlaceholderData&&t.placeholderData===(h==null?void 0:h.placeholderData))V=u.data;else if(V=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof V<"u")try{V=t.select(V),this.selectError=null}catch(pe){this.selectError=pe}typeof V<"u"&&(T="success",Y=ff(u==null?void 0:u.data,V,t),W=!0)}this.selectError&&(I=this.selectError,Y=this.selectResult,A=Date.now(),T="error");const q=L==="fetching",he=T==="loading",le=T==="error";return{status:T,fetchStatus:L,isLoading:he,isSuccess:T==="success",isError:le,isInitialLoading:he&&q,data:Y,dataUpdatedAt:b,error:I,errorUpdatedAt:A,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:q,isRefetching:q&&!he,isLoadingError:le&&v.dataUpdatedAt===0,isPaused:L==="paused",isPlaceholderData:W,isPreviousData:K,isRefetchError:le&&v.dataUpdatedAt!==0,isStale:Pf(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,vu(s,t))return;this.currentResult=s;const a={cache:!0},u=()=>{if(!t)return!0;const{notifyOnChangeProps:d}=this.options,h=typeof d=="function"?d():d;if(h==="all"||!h&&!this.trackedProps.size)return!0;const p=new Set(h??this.trackedProps);return this.options.useErrorBoundary&&p.add("error"),Object.keys(this.currentResult).some(m=>{const g=m;return this.currentResult[g]!==t[g]&&p.has(g)})};(e==null?void 0:e.listeners)!==!1&&u()&&(a.listeners=!0),this.notify({...a,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!Ca(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){Ct.batch(()=>{if(e.onSuccess){var t,s,a,u;(t=(s=this.options).onSuccess)==null||t.call(s,this.currentResult.data),(a=(u=this.options).onSettled)==null||a.call(u,this.currentResult.data,null)}else if(e.onError){var d,h,p,m;(d=(h=this.options).onError)==null||d.call(h,this.currentResult.error),(p=(m=this.options).onSettled)==null||p.call(m,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:g})=>{g(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function e_(r,e){return e.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&e.retryOnMount===!1)}function Jy(r,e){return e_(r,e)||r.state.dataUpdatedAt>0&&hf(r,e,e.refetchOnMount)}function hf(r,e,t){if(e.enabled!==!1){const s=typeof t=="function"?t(r):t;return s==="always"||s!==!1&&Pf(r,e)}return!1}function Xy(r,e,t,s){return t.enabled!==!1&&(r!==e||s.enabled===!1)&&(!t.suspense||r.state.status!=="error")&&Pf(r,t)}function Pf(r,e){return r.isStaleByTime(e.staleTime)}function t_(r,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!vu(r.getCurrentResult(),e)}class n_ extends Co{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const s=this.options;this.options=this.client.defaultMutationOptions(e),vu(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();const t={listeners:!0};e.type==="success"?t.onSuccess=!0:e.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof e<"u"?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:vg(),t={...e,isLoading:e.status==="loading",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){Ct.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(e.onSuccess){var t,s,a,u;(t=(s=this.mutateOptions).onSuccess)==null||t.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(a=(u=this.mutateOptions).onSettled)==null||a.call(u,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var d,h,p,m;(d=(h=this.mutateOptions).onError)==null||d.call(h,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(p=(m=this.mutateOptions).onSettled)==null||p.call(m,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(({listener:g})=>{g(this.currentResult)})})}}var wg=ug();const r_=Tf(wg),i_=rg({__proto__:null,default:r_},[wg]);var Gd={exports:{}},Jd={};/**
44
+ * @license React
45
+ * use-sync-external-store-shim.production.js
46
+ *
47
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */var Zy;function s_(){if(Zy)return Jd;Zy=1;var r=ec();function e(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var t=typeof Object.is=="function"?Object.is:e,s=r.useState,a=r.useEffect,u=r.useLayoutEffect,d=r.useDebugValue;function h(v,b){var I=b(),A=s({inst:{value:I,getSnapshot:b}}),L=A[0].inst,T=A[1];return u(function(){L.value=I,L.getSnapshot=b,p(L)&&T({inst:L})},[v,I,b]),a(function(){return p(L)&&T({inst:L}),v(function(){p(L)&&T({inst:L})})},[v]),d(I),I}function p(v){var b=v.getSnapshot;v=v.value;try{var I=b();return!t(v,I)}catch{return!0}}function m(v,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:h;return Jd.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:g,Jd}var em;function o_(){return em||(em=1,Gd.exports=s_()),Gd.exports}var a_=o_();const Sg=a_.useSyncExternalStore,tm=P.createContext(void 0),_g=P.createContext(!1);function bg(r,e){return r||(e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=tm),window.ReactQueryClientContext):tm)}const Nf=({context:r}={})=>{const e=P.useContext(bg(r,P.useContext(_g)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},l_=({client:r,children:e,context:t,contextSharing:s=!1})=>{P.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]);const a=bg(t,s);return P.createElement(_g.Provider,{value:!t&&s},P.createElement(a.Provider,{value:r},e))},Ig=P.createContext(!1),u_=()=>P.useContext(Ig);Ig.Provider;function c_(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}const d_=P.createContext(c_()),f_=()=>P.useContext(d_);function Eg(r,e){return typeof r=="function"?r(...e):!!r}const h_=(r,e)=>{(r.suspense||r.useErrorBoundary)&&(e.isReset()||(r.retryOnMount=!1))},p_=r=>{P.useEffect(()=>{r.clearReset()},[r])},y_=({result:r,errorResetBoundary:e,useErrorBoundary:t,query:s})=>r.isError&&!e.isReset()&&!r.isFetching&&Eg(t,[r.error,s]),m_=r=>{r.suspense&&typeof r.staleTime!="number"&&(r.staleTime=1e3)},g_=(r,e)=>r.isLoading&&r.isFetching&&!e,v_=(r,e,t)=>(r==null?void 0:r.suspense)&&g_(e,t),w_=(r,e,t)=>e.fetchOptimistic(r).then(({data:s})=>{r.onSuccess==null||r.onSuccess(s),r.onSettled==null||r.onSettled(s,null)}).catch(s=>{t.clearReset(),r.onError==null||r.onError(s),r.onSettled==null||r.onSettled(void 0,s)});function S_(r,e){const t=Nf({context:r.context}),s=u_(),a=f_(),u=t.defaultQueryOptions(r);u._optimisticResults=s?"isRestoring":"optimistic",u.onError&&(u.onError=Ct.batchCalls(u.onError)),u.onSuccess&&(u.onSuccess=Ct.batchCalls(u.onSuccess)),u.onSettled&&(u.onSettled=Ct.batchCalls(u.onSettled)),m_(u),h_(u,a),p_(a);const[d]=P.useState(()=>new e(t,u)),h=d.getOptimisticResult(u);if(Sg(P.useCallback(p=>{const m=s?()=>{}:d.subscribe(Ct.batchCalls(p));return d.updateResult(),m},[d,s]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),P.useEffect(()=>{d.setOptions(u,{listeners:!1})},[u,d]),v_(u,h,s))throw w_(u,d,a);if(y_({result:h,errorResetBoundary:a,useErrorBoundary:u.useErrorBoundary,query:d.getCurrentQuery()}))throw h.error;return u.notifyOnChangeProps?h:d.trackResult(h)}function __(r,e,t){const s=Ia(r,e,t);return S_(s,ZS)}function b_(r,e,t){const s=jS(r,e),a=Nf({context:s.context}),[u]=P.useState(()=>new n_(a,s));P.useEffect(()=>{u.setOptions(s)},[u,s]);const d=Sg(P.useCallback(p=>u.subscribe(Ct.batchCalls(p)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),h=P.useCallback((p,m)=>{u.mutate(p,m).catch(I_)},[u]);if(d.error&&Eg(u.options.useErrorBoundary,[d.error]))throw d.error;return{...d,mutate:h,mutateAsync:d.mutate}}function I_(){}const E_=function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),x_=function(r){return"/"+r},nm={},an=function(e,t,s){let a=Promise.resolve();if(t&&t.length>0){let d=function(m){return Promise.all(m.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),p=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));a=d(t.map(m=>{if(m=x_(m),m in nm)return;nm[m]=!0;const g=m.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":E_,g||(b.as="script"),b.crossOrigin="",b.href=m,p&&b.setAttribute("nonce",p),document.head.appendChild(b),g)return new Promise((I,A)=>{b.addEventListener("load",I),b.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${m}`)))})}))}function u(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return a.then(d=>{for(const h of d||[])h.status==="rejected"&&u(h.reason);return e().catch(u)})};/**
52
+ * @remix-run/router v1.23.0
53
+ *
54
+ * Copyright (c) Remix Software Inc.
55
+ *
56
+ * This source code is licensed under the MIT license found in the
57
+ * LICENSE.md file in the root directory of this source tree.
58
+ *
59
+ * @license MIT
60
+ */function St(){return St=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},St.apply(this,arguments)}var At;(function(r){r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE"})(At||(At={}));const rm="popstate";function D_(r){r===void 0&&(r={});function e(s,a){let{pathname:u,search:d,hash:h}=s.location;return Fa("",{pathname:u,search:d,hash:h},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function t(s,a){return typeof a=="string"?a:xs(a)}return O_(e,t,null,r)}function Ne(r,e){if(r===!1||r===null||typeof r>"u")throw new Error(e)}function go(r,e){if(!r){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function C_(){return Math.random().toString(36).substr(2,8)}function im(r,e){return{usr:r.state,key:r.key,idx:e}}function Fa(r,e,t,s){return t===void 0&&(t=null),St({pathname:typeof r=="string"?r:r.pathname,search:"",hash:""},typeof e=="string"?Wi(e):e,{state:t,key:e&&e.key||s||C_()})}function xs(r){let{pathname:e="/",search:t="",hash:s=""}=r;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),s&&s!=="#"&&(e+=s.charAt(0)==="#"?s:"#"+s),e}function Wi(r){let e={};if(r){let t=r.indexOf("#");t>=0&&(e.hash=r.substr(t),r=r.substr(0,t));let s=r.indexOf("?");s>=0&&(e.search=r.substr(s),r=r.substr(0,s)),r&&(e.pathname=r)}return e}function O_(r,e,t,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:u=!1}=s,d=a.history,h=At.Pop,p=null,m=g();m==null&&(m=0,d.replaceState(St({},d.state,{idx:m}),""));function g(){return(d.state||{idx:null}).idx}function v(){h=At.Pop;let T=g(),K=T==null?null:T-m;m=T,p&&p({action:h,location:L.location,delta:K})}function b(T,K){h=At.Push;let W=Fa(L.location,T,K);m=g()+1;let Y=im(W,m),q=L.createHref(W);try{d.pushState(Y,"",q)}catch(he){if(he instanceof DOMException&&he.name==="DataCloneError")throw he;a.location.assign(q)}u&&p&&p({action:h,location:L.location,delta:1})}function I(T,K){h=At.Replace;let W=Fa(L.location,T,K);m=g();let Y=im(W,m),q=L.createHref(W);d.replaceState(Y,"",q),u&&p&&p({action:h,location:L.location,delta:0})}function A(T){let K=a.location.origin!=="null"?a.location.origin:a.location.href,W=typeof T=="string"?T:xs(T);return W=W.replace(/ $/,"%20"),Ne(K,"No window.location.(origin|href) available to create URL for href: "+W),new URL(W,K)}let L={get action(){return h},get location(){return r(a,d)},listen(T){if(p)throw new Error("A history only accepts one active listener");return a.addEventListener(rm,v),p=T,()=>{a.removeEventListener(rm,v),p=null}},createHref(T){return e(a,T)},createURL:A,encodeLocation(T){let K=A(T);return{pathname:K.pathname,search:K.search,hash:K.hash}},push:b,replace:I,go(T){return d.go(T)}};return L}var nt;(function(r){r.data="data",r.deferred="deferred",r.redirect="redirect",r.error="error"})(nt||(nt={}));const R_=new Set(["lazy","caseSensitive","path","id","index","children"]);function F_(r){return r.index===!0}function _u(r,e,t,s){return t===void 0&&(t=[]),s===void 0&&(s={}),r.map((a,u)=>{let d=[...t,String(u)],h=typeof a.id=="string"?a.id:d.join("-");if(Ne(a.index!==!0||!a.children,"Cannot specify children on an index route"),Ne(!s[h],'Found a route id collision on id "'+h+`". Route id's must be globally unique within Data Router usages`),F_(a)){let p=St({},a,e(a),{id:h});return s[h]=p,p}else{let p=St({},a,e(a),{id:h,children:void 0});return s[h]=p,a.children&&(p.children=_u(a.children,e,d,s)),p}})}function hs(r,e,t){return t===void 0&&(t="/"),cu(r,e,t,!1)}function cu(r,e,t,s){let a=typeof e=="string"?Wi(e):e,u=ni(a.pathname||"/",t);if(u==null)return null;let d=xg(r);M_(d);let h=null;for(let p=0;h==null&&p<d.length;++p){let m=$_(u);h=z_(d[p],m,s)}return h}function T_(r,e){let{route:t,pathname:s,params:a}=r;return{id:t.id,pathname:s,params:a,data:e[t.id],handle:t.handle}}function xg(r,e,t,s){e===void 0&&(e=[]),t===void 0&&(t=[]),s===void 0&&(s="");let a=(u,d,h)=>{let p={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};p.relativePath.startsWith("/")&&(Ne(p.relativePath.startsWith(s),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(s.length));let m=ei([s,p.relativePath]),g=t.concat(p);u.children&&u.children.length>0&&(Ne(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),xg(u.children,e,g,m)),!(u.path==null&&!u.index)&&e.push({path:m,score:U_(m,u.index),routesMeta:g})};return r.forEach((u,d)=>{var h;if(u.path===""||!((h=u.path)!=null&&h.includes("?")))a(u,d);else for(let p of Dg(u.path))a(u,d,p)}),e}function Dg(r){let e=r.split("/");if(e.length===0)return[];let[t,...s]=e,a=t.endsWith("?"),u=t.replace(/\?$/,"");if(s.length===0)return a?[u,""]:[u];let d=Dg(s.join("/")),h=[];return h.push(...d.map(p=>p===""?u:[u,p].join("/"))),a&&h.push(...d),h.map(p=>r.startsWith("/")&&p===""?"/":p)}function M_(r){r.sort((e,t)=>e.score!==t.score?t.score-e.score:j_(e.routesMeta.map(s=>s.childrenIndex),t.routesMeta.map(s=>s.childrenIndex)))}const A_=/^:[\w-]+$/,P_=3,N_=2,L_=1,B_=10,k_=-2,sm=r=>r==="*";function U_(r,e){let t=r.split("/"),s=t.length;return t.some(sm)&&(s+=k_),e&&(s+=N_),t.filter(a=>!sm(a)).reduce((a,u)=>a+(A_.test(u)?P_:u===""?L_:B_),s)}function j_(r,e){return r.length===e.length&&r.slice(0,-1).every((s,a)=>s===e[a])?r[r.length-1]-e[e.length-1]:0}function z_(r,e,t){t===void 0&&(t=!1);let{routesMeta:s}=r,a={},u="/",d=[];for(let h=0;h<s.length;++h){let p=s[h],m=h===s.length-1,g=u==="/"?e:e.slice(u.length)||"/",v=bu({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},g),b=p.route;if(!v&&m&&t&&!s[s.length-1].route.index&&(v=bu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},g)),!v)return null;Object.assign(a,v.params),d.push({params:a,pathname:ei([u,v.pathname]),pathnameBase:H_(ei([u,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(u=ei([u,v.pathnameBase]))}return d}function bu(r,e){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[t,s]=V_(r.path,r.caseSensitive,r.end),a=e.match(t);if(!a)return null;let u=a[0],d=u.replace(/(.)\/+$/,"$1"),h=a.slice(1);return{params:s.reduce((m,g,v)=>{let{paramName:b,isOptional:I}=g;if(b==="*"){let L=h[v]||"";d=u.slice(0,u.length-L.length).replace(/(.)\/+$/,"$1")}const A=h[v];return I&&!A?m[b]=void 0:m[b]=(A||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:d,pattern:r}}function V_(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),go(r==="*"||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".'));let s=[],a="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,p)=>(s.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return r.endsWith("*")?(s.push({paramName:"*"}),a+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":r!==""&&r!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),s]}function $_(r){try{return r.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return go(!1,'The URL path "'+r+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),r}}function ni(r,e){if(e==="/")return r;if(!r.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,s=r.charAt(t);return s&&s!=="/"?null:r.slice(t)||"/"}function W_(r,e){e===void 0&&(e="/");let{pathname:t,search:s="",hash:a=""}=typeof r=="string"?Wi(r):r;return{pathname:t?t.startsWith("/")?t:Q_(t,e):e,search:K_(s),hash:q_(a)}}function Q_(r,e){let t=e.replace(/\/+$/,"").split("/");return r.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function Xd(r,e,t,s){return"Cannot include a '"+r+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Cg(r){return r.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Lf(r,e){let t=Cg(r);return e?t.map((s,a)=>a===t.length-1?s.pathname:s.pathnameBase):t.map(s=>s.pathnameBase)}function Bf(r,e,t,s){s===void 0&&(s=!1);let a;typeof r=="string"?a=Wi(r):(a=St({},r),Ne(!a.pathname||!a.pathname.includes("?"),Xd("?","pathname","search",a)),Ne(!a.pathname||!a.pathname.includes("#"),Xd("#","pathname","hash",a)),Ne(!a.search||!a.search.includes("#"),Xd("#","search","hash",a)));let u=r===""||a.pathname==="",d=u?"/":a.pathname,h;if(d==null)h=t;else{let v=e.length-1;if(!s&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),v-=1;a.pathname=b.join("/")}h=v>=0?e[v]:"/"}let p=W_(a,h),m=d&&d!=="/"&&d.endsWith("/"),g=(u||d===".")&&t.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}const ei=r=>r.join("/").replace(/\/\/+/g,"/"),H_=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),K_=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,q_=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;class Iu{constructor(e,t,s,a){a===void 0&&(a=!1),this.status=e,this.statusText=t||"",this.internal=a,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}}function Ta(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}const Og=["post","put","patch","delete"],Y_=new Set(Og),G_=["get",...Og],J_=new Set(G_),X_=new Set([301,302,303,307,308]),Z_=new Set([307,308]),Zd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},e1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},va={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},kf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,t1=r=>({hasErrorBoundary:!!r.hasErrorBoundary}),Rg="remix-router-transitions";function n1(r){const e=r.window?r.window:typeof window<"u"?window:void 0,t=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",s=!t;Ne(r.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(r.mapRouteProperties)a=r.mapRouteProperties;else if(r.detectErrorBoundary){let S=r.detectErrorBoundary;a=D=>({hasErrorBoundary:S(D)})}else a=t1;let u={},d=_u(r.routes,a,void 0,u),h,p=r.basename||"/",m=r.dataStrategy||o1,g=r.patchRoutesOnNavigation,v=St({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},r.future),b=null,I=new Set,A=null,L=null,T=null,K=r.hydrationData!=null,W=hs(d,r.history.location,p),Y=!1,q=null;if(W==null&&!g){let S=yn(404,{pathname:r.history.location.pathname}),{matches:D,route:N}=mm(d);W=D,q={[N.id]:S}}W&&!r.hydrationData&&Gi(W,d,r.history.location.pathname).active&&(W=null);let he;if(W)if(W.some(S=>S.route.lazy))he=!1;else if(!W.some(S=>S.route.loader))he=!0;else if(v.v7_partialHydration){let S=r.hydrationData?r.hydrationData.loaderData:null,D=r.hydrationData?r.hydrationData.errors:null;if(D){let N=W.findIndex(U=>D[U.route.id]!==void 0);he=W.slice(0,N+1).every(U=>!yf(U.route,S,D))}else he=W.every(N=>!yf(N.route,S,D))}else he=r.hydrationData!=null;else if(he=!1,W=[],v.v7_partialHydration){let S=Gi(null,d,r.history.location.pathname);S.active&&S.matches&&(Y=!0,W=S.matches)}let le,C={historyAction:r.history.action,location:r.history.location,matches:W,initialized:he,navigation:Zd,restoreScrollPosition:r.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:r.hydrationData&&r.hydrationData.loaderData||{},actionData:r.hydrationData&&r.hydrationData.actionData||null,errors:r.hydrationData&&r.hydrationData.errors||q,fetchers:new Map,blockers:new Map},V=At.Pop,pe=!1,ue,Ye=!1,We=new Map,Xe=null,dt=!1,Tt=!1,Pt=[],at=new Set,Q=new Map,ce=0,J=-1,x=new Map,k=new Set,ge=new Map,xe=new Map,we=new Set,Me=new Map,Ue=new Map,je;function ft(){if(b=r.history.listen(S=>{let{action:D,location:N,delta:U}=S;if(je){je(),je=void 0;return}go(Ue.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let G=Ts({currentLocation:C.location,nextLocation:N,historyAction:D});if(G&&U!=null){let ae=new Promise(ye=>{je=ye});r.history.go(U*-1),di(G,{state:"blocked",location:N,proceed(){di(G,{state:"proceeding",proceed:void 0,reset:void 0,location:N}),ae.then(()=>r.history.go(U))},reset(){let ye=new Map(C.blockers);ye.set(G,va),jt({blockers:ye})}});return}return ur(D,N)}),t){S1(e,We);let S=()=>_1(e,We);e.addEventListener("pagehide",S),Xe=()=>e.removeEventListener("pagehide",S)}return C.initialized||ur(At.Pop,C.location,{initialHydration:!0}),le}function en(){b&&b(),Xe&&Xe(),I.clear(),ue&&ue.abort(),C.fetchers.forEach((S,D)=>dr(D)),C.blockers.forEach((S,D)=>Fs(D))}function Ds(S){return I.add(S),()=>I.delete(S)}function jt(S,D){D===void 0&&(D={}),C=St({},C,S);let N=[],U=[];v.v7_fetcherPersist&&C.fetchers.forEach((G,ae)=>{G.state==="idle"&&(we.has(ae)?U.push(ae):N.push(ae))}),we.forEach(G=>{!C.fetchers.has(G)&&!Q.has(G)&&U.push(G)}),[...I].forEach(G=>G(C,{deletedFetchers:U,viewTransitionOpts:D.viewTransitionOpts,flushSync:D.flushSync===!0})),v.v7_fetcherPersist?(N.forEach(G=>C.fetchers.delete(G)),U.forEach(G=>dr(G))):U.forEach(G=>we.delete(G))}function Wn(S,D,N){var U,G;let{flushSync:ae}=N===void 0?{}:N,ye=C.actionData!=null&&C.navigation.formMethod!=null&&er(C.navigation.formMethod)&&C.navigation.state==="loading"&&((U=S.state)==null?void 0:U._isRedirect)!==!0,ne;D.actionData?Object.keys(D.actionData).length>0?ne=D.actionData:ne=null:ye?ne=C.actionData:ne=null;let ie=D.loaderData?pm(C.loaderData,D.loaderData,D.matches||[],D.errors):C.loaderData,Z=C.blockers;Z.size>0&&(Z=new Map(Z),Z.forEach((Le,Nt)=>Z.set(Nt,va)));let te=pe===!0||C.navigation.formMethod!=null&&er(C.navigation.formMethod)&&((G=S.state)==null?void 0:G._isRedirect)!==!0;h&&(d=h,h=void 0),dt||V===At.Pop||(V===At.Push?r.history.push(S,S.state):V===At.Replace&&r.history.replace(S,S.state));let Se;if(V===At.Pop){let Le=We.get(C.location.pathname);Le&&Le.has(S.pathname)?Se={currentLocation:C.location,nextLocation:S}:We.has(S.pathname)&&(Se={currentLocation:S,nextLocation:C.location})}else if(Ye){let Le=We.get(C.location.pathname);Le?Le.add(S.pathname):(Le=new Set([S.pathname]),We.set(C.location.pathname,Le)),Se={currentLocation:C.location,nextLocation:S}}jt(St({},D,{actionData:ne,loaderData:ie,historyAction:V,location:S,initialized:!0,navigation:Zd,revalidation:"idle",restoreScrollPosition:Lo(S,D.matches||C.matches),preventScrollReset:te,blockers:Z}),{viewTransitionOpts:Se,flushSync:ae===!0}),V=At.Pop,pe=!1,Ye=!1,dt=!1,Tt=!1,Pt=[]}async function Cs(S,D){if(typeof S=="number"){r.history.go(S);return}let N=pf(C.location,C.matches,p,v.v7_prependBasename,S,v.v7_relativeSplatPath,D==null?void 0:D.fromRouteId,D==null?void 0:D.relative),{path:U,submission:G,error:ae}=om(v.v7_normalizeFormMethod,!1,N,D),ye=C.location,ne=Fa(C.location,U,D&&D.state);ne=St({},ne,r.history.encodeLocation(ne));let ie=D&&D.replace!=null?D.replace:void 0,Z=At.Push;ie===!0?Z=At.Replace:ie===!1||G!=null&&er(G.formMethod)&&G.formAction===C.location.pathname+C.location.search&&(Z=At.Replace);let te=D&&"preventScrollReset"in D?D.preventScrollReset===!0:void 0,Se=(D&&D.flushSync)===!0,Le=Ts({currentLocation:ye,nextLocation:ne,historyAction:Z});if(Le){di(Le,{state:"blocked",location:ne,proceed(){di(Le,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),Cs(S,D)},reset(){let Nt=new Map(C.blockers);Nt.set(Le,va),jt({blockers:Nt})}});return}return await ur(Z,ne,{submission:G,pendingError:ae,preventScrollReset:te,replace:D&&D.replace,enableViewTransition:D&&D.viewTransition,flushSync:Se})}function Ka(){if(Yi(),jt({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){ur(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}ur(V||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:Ye===!0})}}async function ur(S,D,N){ue&&ue.abort(),ue=null,V=S,dt=(N&&N.startUninterruptedRevalidation)===!0,Xa(C.location,C.matches),pe=(N&&N.preventScrollReset)===!0,Ye=(N&&N.enableViewTransition)===!0;let U=h||d,G=N&&N.overrideNavigation,ae=N!=null&&N.initialHydration&&C.matches&&C.matches.length>0&&!Y?C.matches:hs(U,D,p),ye=(N&&N.flushSync)===!0;if(ae&&C.initialized&&!Tt&&f1(C.location,D)&&!(N&&N.submission&&er(N.submission.formMethod))){Wn(D,{matches:ae},{flushSync:ye});return}let ne=Gi(ae,U,D.pathname);if(ne.active&&ne.matches&&(ae=ne.matches),!ae){let{error:Ze,notFoundMatches:ze,route:pt}=fr(D.pathname);Wn(D,{matches:ze,loaderData:{},errors:{[pt.id]:Ze}},{flushSync:ye});return}ue=new AbortController;let ie=to(r.history,D,ue.signal,N&&N.submission),Z;if(N&&N.pendingError)Z=[ps(ae).route.id,{type:nt.error,error:N.pendingError}];else if(N&&N.submission&&er(N.submission.formMethod)){let Ze=await Fo(ie,D,N.submission,ae,ne.active,{replace:N.replace,flushSync:ye});if(Ze.shortCircuited)return;if(Ze.pendingActionResult){let[ze,pt]=Ze.pendingActionResult;if(Cn(pt)&&Ta(pt.error)&&pt.error.status===404){ue=null,Wn(D,{matches:Ze.matches,loaderData:{},errors:{[ze]:pt.error}});return}}ae=Ze.matches||ae,Z=Ze.pendingActionResult,G=ef(D,N.submission),ye=!1,ne.active=!1,ie=to(r.history,ie.url,ie.signal)}let{shortCircuited:te,matches:Se,loaderData:Le,errors:Nt}=await qa(ie,D,ae,ne.active,G,N&&N.submission,N&&N.fetcherSubmission,N&&N.replace,N&&N.initialHydration===!0,ye,Z);te||(ue=null,Wn(D,St({matches:Se||ae},ym(Z),{loaderData:Le,errors:Nt})))}async function Fo(S,D,N,U,G,ae){ae===void 0&&(ae={}),Yi();let ye=v1(D,N);if(jt({navigation:ye},{flushSync:ae.flushSync===!0}),G){let Z=await fi(U,D.pathname,S.signal);if(Z.type==="aborted")return{shortCircuited:!0};if(Z.type==="error"){let te=ps(Z.partialMatches).route.id;return{matches:Z.partialMatches,pendingActionResult:[te,{type:nt.error,error:Z.error}]}}else if(Z.matches)U=Z.matches;else{let{notFoundMatches:te,error:Se,route:Le}=fr(D.pathname);return{matches:te,pendingActionResult:[Le.id,{type:nt.error,error:Se}]}}}let ne,ie=Ea(U,D);if(!ie.route.action&&!ie.route.lazy)ne={type:nt.error,error:yn(405,{method:S.method,pathname:D.pathname,routeId:ie.route.id})};else if(ne=(await ui("action",C,S,[ie],U,null))[ie.route.id],S.signal.aborted)return{shortCircuited:!0};if(gs(ne)){let Z;return ae&&ae.replace!=null?Z=ae.replace:Z=dm(ne.response.headers.get("Location"),new URL(S.url),p)===C.location.pathname+C.location.search,await cr(S,ne,!0,{submission:N,replace:Z}),{shortCircuited:!0}}if(ki(ne))throw yn(400,{type:"defer-action"});if(Cn(ne)){let Z=ps(U,ie.route.id);return(ae&&ae.replace)!==!0&&(V=At.Push),{matches:U,pendingActionResult:[Z.route.id,ne]}}return{matches:U,pendingActionResult:[ie.route.id,ne]}}async function qa(S,D,N,U,G,ae,ye,ne,ie,Z,te){let Se=G||ef(D,ae),Le=ae||ye||vm(Se),Nt=!dt&&(!v.v7_partialHydration||!ie);if(U){if(Nt){let lt=Os(te);jt(St({navigation:Se},lt!==void 0?{actionData:lt}:{}),{flushSync:Z})}let Be=await fi(N,D.pathname,S.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let lt=ps(Be.partialMatches).route.id;return{matches:Be.partialMatches,loaderData:{},errors:{[lt]:Be.error}}}else if(Be.matches)N=Be.matches;else{let{error:lt,notFoundMatches:Wt,route:Zi}=fr(D.pathname);return{matches:Wt,loaderData:{},errors:{[Zi.id]:lt}}}}let Ze=h||d,[ze,pt]=lm(r.history,C,N,Le,D,v.v7_partialHydration&&ie===!0,v.v7_skipActionErrorRevalidation,Tt,Pt,at,we,ge,k,Ze,p,te);if(hr(Be=>!(N&&N.some(lt=>lt.route.id===Be))||ze&&ze.some(lt=>lt.route.id===Be)),J=++ce,ze.length===0&&pt.length===0){let Be=Ga();return Wn(D,St({matches:N,loaderData:{},errors:te&&Cn(te[1])?{[te[0]]:te[1].error}:null},ym(te),Be?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Z}),{shortCircuited:!0}}if(Nt){let Be={};if(!U){Be.navigation=Se;let lt=Os(te);lt!==void 0&&(Be.actionData=lt)}pt.length>0&&(Be.fetchers=qi(pt)),jt(Be,{flushSync:Z})}pt.forEach(Be=>{Qn(Be.key),Be.controller&&Q.set(Be.key,Be.controller)});let Pr=()=>pt.forEach(Be=>Qn(Be.key));ue&&ue.signal.addEventListener("abort",Pr);let{loaderResults:Xi,fetcherResults:Hn}=await Mo(C,N,ze,pt,S);if(S.signal.aborted)return{shortCircuited:!0};ue&&ue.signal.removeEventListener("abort",Pr),pt.forEach(Be=>Q.delete(Be.key));let Qe=su(Xi);if(Qe)return await cr(S,Qe.result,!0,{replace:ne}),{shortCircuited:!0};if(Qe=su(Hn),Qe)return k.add(Qe.key),await cr(S,Qe.result,!0,{replace:ne}),{shortCircuited:!0};let{loaderData:Bo,errors:Nr}=hm(C,N,Xi,te,pt,Hn,Me);Me.forEach((Be,lt)=>{Be.subscribe(Wt=>{(Wt||Be.done)&&Me.delete(lt)})}),v.v7_partialHydration&&ie&&C.errors&&(Nr=St({},C.errors,Nr));let pr=Ga(),Lr=Rs(J),Ms=pr||Lr||pt.length>0;return St({matches:N,loaderData:Bo,errors:Nr},Ms?{fetchers:new Map(C.fetchers)}:{})}function Os(S){if(S&&!Cn(S[1]))return{[S[0]]:S[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function qi(S){return S.forEach(D=>{let N=C.fetchers.get(D.key),U=wa(void 0,N?N.data:void 0);C.fetchers.set(D.key,U)}),new Map(C.fetchers)}function li(S,D,N,U){if(s)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Qn(S);let G=(U&&U.flushSync)===!0,ae=h||d,ye=pf(C.location,C.matches,p,v.v7_prependBasename,N,v.v7_relativeSplatPath,D,U==null?void 0:U.relative),ne=hs(ae,ye,p),ie=Gi(ne,ae,ye);if(ie.active&&ie.matches&&(ne=ie.matches),!ne){Rn(S,D,yn(404,{pathname:ye}),{flushSync:G});return}let{path:Z,submission:te,error:Se}=om(v.v7_normalizeFormMethod,!0,ye,U);if(Se){Rn(S,D,Se,{flushSync:G});return}let Le=Ea(ne,Z),Nt=(U&&U.preventScrollReset)===!0;if(te&&er(te.formMethod)){To(S,D,Z,Le,ne,ie.active,G,Nt,te);return}ge.set(S,{routeId:D,path:Z}),Ya(S,D,Z,Le,ne,ie.active,G,Nt,te)}async function To(S,D,N,U,G,ae,ye,ne,ie){Yi(),ge.delete(S);function Z(He){if(!He.route.action&&!He.route.lazy){let hi=yn(405,{method:ie.formMethod,pathname:N,routeId:D});return Rn(S,D,hi,{flushSync:ye}),!0}return!1}if(!ae&&Z(U))return;let te=C.fetchers.get(S);bn(S,w1(ie,te),{flushSync:ye});let Se=new AbortController,Le=to(r.history,N,Se.signal,ie);if(ae){let He=await fi(G,new URL(Le.url).pathname,Le.signal,S);if(He.type==="aborted")return;if(He.type==="error"){Rn(S,D,He.error,{flushSync:ye});return}else if(He.matches){if(G=He.matches,U=Ea(G,N),Z(U))return}else{Rn(S,D,yn(404,{pathname:N}),{flushSync:ye});return}}Q.set(S,Se);let Nt=ce,ze=(await ui("action",C,Le,[U],G,S))[U.route.id];if(Le.signal.aborted){Q.get(S)===Se&&Q.delete(S);return}if(v.v7_fetcherPersist&&we.has(S)){if(gs(ze)||Cn(ze)){bn(S,Pi(void 0));return}}else{if(gs(ze))if(Q.delete(S),J>Nt){bn(S,Pi(void 0));return}else return k.add(S),bn(S,wa(ie)),cr(Le,ze,!1,{fetcherSubmission:ie,preventScrollReset:ne});if(Cn(ze)){Rn(S,D,ze.error);return}}if(ki(ze))throw yn(400,{type:"defer-action"});let pt=C.navigation.location||C.location,Pr=to(r.history,pt,Se.signal),Xi=h||d,Hn=C.navigation.state!=="idle"?hs(Xi,C.navigation.location,p):C.matches;Ne(Hn,"Didn't find any matches after fetcher action");let Qe=++ce;x.set(S,Qe);let Bo=wa(ie,ze.data);C.fetchers.set(S,Bo);let[Nr,pr]=lm(r.history,C,Hn,ie,pt,!1,v.v7_skipActionErrorRevalidation,Tt,Pt,at,we,ge,k,Xi,p,[U.route.id,ze]);pr.filter(He=>He.key!==S).forEach(He=>{let hi=He.key,el=C.fetchers.get(hi),cc=wa(void 0,el?el.data:void 0);C.fetchers.set(hi,cc),Qn(hi),He.controller&&Q.set(hi,He.controller)}),jt({fetchers:new Map(C.fetchers)});let Lr=()=>pr.forEach(He=>Qn(He.key));Se.signal.addEventListener("abort",Lr);let{loaderResults:Ms,fetcherResults:Be}=await Mo(C,Hn,Nr,pr,Pr);if(Se.signal.aborted)return;Se.signal.removeEventListener("abort",Lr),x.delete(S),Q.delete(S),pr.forEach(He=>Q.delete(He.key));let lt=su(Ms);if(lt)return cr(Pr,lt.result,!1,{preventScrollReset:ne});if(lt=su(Be),lt)return k.add(lt.key),cr(Pr,lt.result,!1,{preventScrollReset:ne});let{loaderData:Wt,errors:Zi}=hm(C,Hn,Ms,void 0,pr,Be,Me);if(C.fetchers.has(S)){let He=Pi(ze.data);C.fetchers.set(S,He)}Rs(Qe),C.navigation.state==="loading"&&Qe>J?(Ne(V,"Expected pending action"),ue&&ue.abort(),Wn(C.navigation.location,{matches:Hn,loaderData:Wt,errors:Zi,fetchers:new Map(C.fetchers)})):(jt({errors:Zi,loaderData:pm(C.loaderData,Wt,Hn,Zi),fetchers:new Map(C.fetchers)}),Tt=!1)}async function Ya(S,D,N,U,G,ae,ye,ne,ie){let Z=C.fetchers.get(S);bn(S,wa(ie,Z?Z.data:void 0),{flushSync:ye});let te=new AbortController,Se=to(r.history,N,te.signal);if(ae){let ze=await fi(G,new URL(Se.url).pathname,Se.signal,S);if(ze.type==="aborted")return;if(ze.type==="error"){Rn(S,D,ze.error,{flushSync:ye});return}else if(ze.matches)G=ze.matches,U=Ea(G,N);else{Rn(S,D,yn(404,{pathname:N}),{flushSync:ye});return}}Q.set(S,te);let Le=ce,Ze=(await ui("loader",C,Se,[U],G,S))[U.route.id];if(ki(Ze)&&(Ze=await Uf(Ze,Se.signal,!0)||Ze),Q.get(S)===te&&Q.delete(S),!Se.signal.aborted){if(we.has(S)){bn(S,Pi(void 0));return}if(gs(Ze))if(J>Le){bn(S,Pi(void 0));return}else{k.add(S),await cr(Se,Ze,!1,{preventScrollReset:ne});return}if(Cn(Ze)){Rn(S,D,Ze.error);return}Ne(!ki(Ze),"Unhandled fetcher deferred data"),bn(S,Pi(Ze.data))}}async function cr(S,D,N,U){let{submission:G,fetcherSubmission:ae,preventScrollReset:ye,replace:ne}=U===void 0?{}:U;D.response.headers.has("X-Remix-Revalidate")&&(Tt=!0);let ie=D.response.headers.get("Location");Ne(ie,"Expected a Location header on the redirect Response"),ie=dm(ie,new URL(S.url),p);let Z=Fa(C.location,ie,{_isRedirect:!0});if(t){let ze=!1;if(D.response.headers.has("X-Remix-Reload-Document"))ze=!0;else if(kf.test(ie)){const pt=r.history.createURL(ie);ze=pt.origin!==e.location.origin||ni(pt.pathname,p)==null}if(ze){ne?e.location.replace(ie):e.location.assign(ie);return}}ue=null;let te=ne===!0||D.response.headers.has("X-Remix-Replace")?At.Replace:At.Push,{formMethod:Se,formAction:Le,formEncType:Nt}=C.navigation;!G&&!ae&&Se&&Le&&Nt&&(G=vm(C.navigation));let Ze=G||ae;if(Z_.has(D.response.status)&&Ze&&er(Ze.formMethod))await ur(te,Z,{submission:St({},Ze,{formAction:ie}),preventScrollReset:ye||pe,enableViewTransition:N?Ye:void 0});else{let ze=ef(Z,G);await ur(te,Z,{overrideNavigation:ze,fetcherSubmission:ae,preventScrollReset:ye||pe,enableViewTransition:N?Ye:void 0})}}async function ui(S,D,N,U,G,ae){let ye,ne={};try{ye=await a1(m,S,D,N,U,G,ae,u,a)}catch(ie){return U.forEach(Z=>{ne[Z.route.id]={type:nt.error,error:ie}}),ne}for(let[ie,Z]of Object.entries(ye))if(h1(Z)){let te=Z.result;ne[ie]={type:nt.redirect,response:c1(te,N,ie,G,p,v.v7_relativeSplatPath)}}else ne[ie]=await u1(Z);return ne}async function Mo(S,D,N,U,G){let ae=S.matches,ye=ui("loader",S,G,N,D,null),ne=Promise.all(U.map(async te=>{if(te.matches&&te.match&&te.controller){let Le=(await ui("loader",S,to(r.history,te.path,te.controller.signal),[te.match],te.matches,te.key))[te.match.route.id];return{[te.key]:Le}}else return Promise.resolve({[te.key]:{type:nt.error,error:yn(404,{pathname:te.path})}})})),ie=await ye,Z=(await ne).reduce((te,Se)=>Object.assign(te,Se),{});return await Promise.all([m1(D,ie,G.signal,ae,S.loaderData),g1(D,Z,U)]),{loaderResults:ie,fetcherResults:Z}}function Yi(){Tt=!0,Pt.push(...hr()),ge.forEach((S,D)=>{Q.has(D)&&at.add(D),Qn(D)})}function bn(S,D,N){N===void 0&&(N={}),C.fetchers.set(S,D),jt({fetchers:new Map(C.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function Rn(S,D,N,U){U===void 0&&(U={});let G=ps(C.matches,D);dr(S),jt({errors:{[G.route.id]:N},fetchers:new Map(C.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function ci(S){return xe.set(S,(xe.get(S)||0)+1),we.has(S)&&we.delete(S),C.fetchers.get(S)||e1}function dr(S){let D=C.fetchers.get(S);Q.has(S)&&!(D&&D.state==="loading"&&x.has(S))&&Qn(S),ge.delete(S),x.delete(S),k.delete(S),v.v7_fetcherPersist&&we.delete(S),at.delete(S),C.fetchers.delete(S)}function uc(S){let D=(xe.get(S)||0)-1;D<=0?(xe.delete(S),we.add(S),v.v7_fetcherPersist||dr(S)):xe.set(S,D),jt({fetchers:new Map(C.fetchers)})}function Qn(S){let D=Q.get(S);D&&(D.abort(),Q.delete(S))}function Ao(S){for(let D of S){let N=ci(D),U=Pi(N.data);C.fetchers.set(D,U)}}function Ga(){let S=[],D=!1;for(let N of k){let U=C.fetchers.get(N);Ne(U,"Expected fetcher: "+N),U.state==="loading"&&(k.delete(N),S.push(N),D=!0)}return Ao(S),D}function Rs(S){let D=[];for(let[N,U]of x)if(U<S){let G=C.fetchers.get(N);Ne(G,"Expected fetcher: "+N),G.state==="loading"&&(Qn(N),x.delete(N),D.push(N))}return Ao(D),D.length>0}function Po(S,D){let N=C.blockers.get(S)||va;return Ue.get(S)!==D&&Ue.set(S,D),N}function Fs(S){C.blockers.delete(S),Ue.delete(S)}function di(S,D){let N=C.blockers.get(S)||va;Ne(N.state==="unblocked"&&D.state==="blocked"||N.state==="blocked"&&D.state==="blocked"||N.state==="blocked"&&D.state==="proceeding"||N.state==="blocked"&&D.state==="unblocked"||N.state==="proceeding"&&D.state==="unblocked","Invalid blocker state transition: "+N.state+" -> "+D.state);let U=new Map(C.blockers);U.set(S,D),jt({blockers:U})}function Ts(S){let{currentLocation:D,nextLocation:N,historyAction:U}=S;if(Ue.size===0)return;Ue.size>1&&go(!1,"A router only supports one blocker at a time");let G=Array.from(Ue.entries()),[ae,ye]=G[G.length-1],ne=C.blockers.get(ae);if(!(ne&&ne.state==="proceeding")&&ye({currentLocation:D,nextLocation:N,historyAction:U}))return ae}function fr(S){let D=yn(404,{pathname:S}),N=h||d,{matches:U,route:G}=mm(N);return hr(),{notFoundMatches:U,route:G,error:D}}function hr(S){let D=[];return Me.forEach((N,U)=>{(!S||S(U))&&(N.cancel(),D.push(U),Me.delete(U))}),D}function Ja(S,D,N){if(A=S,T=D,L=N||null,!K&&C.navigation===Zd){K=!0;let U=Lo(C.location,C.matches);U!=null&&jt({restoreScrollPosition:U})}return()=>{A=null,T=null,L=null}}function No(S,D){return L&&L(S,D.map(U=>T_(U,C.loaderData)))||S.key}function Xa(S,D){if(A&&T){let N=No(S,D);A[N]=T()}}function Lo(S,D){if(A){let N=No(S,D),U=A[N];if(typeof U=="number")return U}return null}function Gi(S,D,N){if(g)if(S){if(Object.keys(S[0].params).length>0)return{active:!0,matches:cu(D,N,p,!0)}}else return{active:!0,matches:cu(D,N,p,!0)||[]};return{active:!1,matches:null}}async function fi(S,D,N,U){if(!g)return{type:"success",matches:S};let G=S;for(;;){let ae=h==null,ye=h||d,ne=u;try{await g({signal:N,path:D,matches:G,fetcherKey:U,patch:(te,Se)=>{N.aborted||cm(te,Se,ye,ne,a)}})}catch(te){return{type:"error",error:te,partialMatches:G}}finally{ae&&!N.aborted&&(d=[...d])}if(N.aborted)return{type:"aborted"};let ie=hs(ye,D,p);if(ie)return{type:"success",matches:ie};let Z=cu(ye,D,p,!0);if(!Z||G.length===Z.length&&G.every((te,Se)=>te.route.id===Z[Se].route.id))return{type:"success",matches:null};G=Z}}function Za(S){u={},h=_u(S,a,void 0,u)}function Ji(S,D){let N=h==null;cm(S,D,h||d,u,a),N&&(d=[...d],jt({}))}return le={get basename(){return p},get future(){return v},get state(){return C},get routes(){return d},get window(){return e},initialize:ft,subscribe:Ds,enableScrollRestoration:Ja,navigate:Cs,fetch:li,revalidate:Ka,createHref:S=>r.history.createHref(S),encodeLocation:S=>r.history.encodeLocation(S),getFetcher:ci,deleteFetcher:uc,dispose:en,getBlocker:Po,deleteBlocker:Fs,patchRoutes:Ji,_internalFetchControllers:Q,_internalActiveDeferreds:Me,_internalSetRoutes:Za},le}function r1(r){return r!=null&&("formData"in r&&r.formData!=null||"body"in r&&r.body!==void 0)}function pf(r,e,t,s,a,u,d,h){let p,m;if(d){p=[];for(let v of e)if(p.push(v),v.route.id===d){m=v;break}}else p=e,m=e[e.length-1];let g=Bf(a||".",Lf(p,u),ni(r.pathname,t)||r.pathname,h==="path");if(a==null&&(g.search=r.search,g.hash=r.hash),(a==null||a===""||a===".")&&m){let v=jf(g.search);if(m.route.index&&!v)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&v){let b=new URLSearchParams(g.search),I=b.getAll("index");b.delete("index"),I.filter(L=>L).forEach(L=>b.append("index",L));let A=b.toString();g.search=A?"?"+A:""}}return s&&t!=="/"&&(g.pathname=g.pathname==="/"?t:ei([t,g.pathname])),xs(g)}function om(r,e,t,s){if(!s||!r1(s))return{path:t};if(s.formMethod&&!y1(s.formMethod))return{path:t,error:yn(405,{method:s.formMethod})};let a=()=>({path:t,error:yn(400,{type:"invalid-body"})}),u=s.formMethod||"get",d=r?u.toUpperCase():u.toLowerCase(),h=Mg(t);if(s.body!==void 0){if(s.formEncType==="text/plain"){if(!er(d))return a();let b=typeof s.body=="string"?s.body:s.body instanceof FormData||s.body instanceof URLSearchParams?Array.from(s.body.entries()).reduce((I,A)=>{let[L,T]=A;return""+I+L+"="+T+`
61
+ `},""):String(s.body);return{path:t,submission:{formMethod:d,formAction:h,formEncType:s.formEncType,formData:void 0,json:void 0,text:b}}}else if(s.formEncType==="application/json"){if(!er(d))return a();try{let b=typeof s.body=="string"?JSON.parse(s.body):s.body;return{path:t,submission:{formMethod:d,formAction:h,formEncType:s.formEncType,formData:void 0,json:b,text:void 0}}}catch{return a()}}}Ne(typeof FormData=="function","FormData is not available in this environment");let p,m;if(s.formData)p=mf(s.formData),m=s.formData;else if(s.body instanceof FormData)p=mf(s.body),m=s.body;else if(s.body instanceof URLSearchParams)p=s.body,m=fm(p);else if(s.body==null)p=new URLSearchParams,m=new FormData;else try{p=new URLSearchParams(s.body),m=fm(p)}catch{return a()}let g={formMethod:d,formAction:h,formEncType:s&&s.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(er(g.formMethod))return{path:t,submission:g};let v=Wi(t);return e&&v.search&&jf(v.search)&&p.append("index",""),v.search="?"+p,{path:xs(v),submission:g}}function am(r,e,t){t===void 0&&(t=!1);let s=r.findIndex(a=>a.route.id===e);return s>=0?r.slice(0,t?s+1:s):r}function lm(r,e,t,s,a,u,d,h,p,m,g,v,b,I,A,L){let T=L?Cn(L[1])?L[1].error:L[1].data:void 0,K=r.createURL(e.location),W=r.createURL(a),Y=t;u&&e.errors?Y=am(t,Object.keys(e.errors)[0],!0):L&&Cn(L[1])&&(Y=am(t,L[0]));let q=L?L[1].statusCode:void 0,he=d&&q&&q>=400,le=Y.filter((V,pe)=>{let{route:ue}=V;if(ue.lazy)return!0;if(ue.loader==null)return!1;if(u)return yf(ue,e.loaderData,e.errors);if(i1(e.loaderData,e.matches[pe],V)||p.some(Xe=>Xe===V.route.id))return!0;let Ye=e.matches[pe],We=V;return um(V,St({currentUrl:K,currentParams:Ye.params,nextUrl:W,nextParams:We.params},s,{actionResult:T,actionStatus:q,defaultShouldRevalidate:he?!1:h||K.pathname+K.search===W.pathname+W.search||K.search!==W.search||Fg(Ye,We)}))}),C=[];return v.forEach((V,pe)=>{if(u||!t.some(dt=>dt.route.id===V.routeId)||g.has(pe))return;let ue=hs(I,V.path,A);if(!ue){C.push({key:pe,routeId:V.routeId,path:V.path,matches:null,match:null,controller:null});return}let Ye=e.fetchers.get(pe),We=Ea(ue,V.path),Xe=!1;b.has(pe)?Xe=!1:m.has(pe)?(m.delete(pe),Xe=!0):Ye&&Ye.state!=="idle"&&Ye.data===void 0?Xe=h:Xe=um(We,St({currentUrl:K,currentParams:e.matches[e.matches.length-1].params,nextUrl:W,nextParams:t[t.length-1].params},s,{actionResult:T,actionStatus:q,defaultShouldRevalidate:he?!1:h})),Xe&&C.push({key:pe,routeId:V.routeId,path:V.path,matches:ue,match:We,controller:new AbortController})}),[le,C]}function yf(r,e,t){if(r.lazy)return!0;if(!r.loader)return!1;let s=e!=null&&e[r.id]!==void 0,a=t!=null&&t[r.id]!==void 0;return!s&&a?!1:typeof r.loader=="function"&&r.loader.hydrate===!0?!0:!s&&!a}function i1(r,e,t){let s=!e||t.route.id!==e.route.id,a=r[t.route.id]===void 0;return s||a}function Fg(r,e){let t=r.route.path;return r.pathname!==e.pathname||t!=null&&t.endsWith("*")&&r.params["*"]!==e.params["*"]}function um(r,e){if(r.route.shouldRevalidate){let t=r.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}function cm(r,e,t,s,a){var u;let d;if(r){let m=s[r];Ne(m,"No route found to patch children into: routeId = "+r),m.children||(m.children=[]),d=m.children}else d=t;let h=e.filter(m=>!d.some(g=>Tg(m,g))),p=_u(h,a,[r||"_","patch",String(((u=d)==null?void 0:u.length)||"0")],s);d.push(...p)}function Tg(r,e){return"id"in r&&"id"in e&&r.id===e.id?!0:r.index===e.index&&r.path===e.path&&r.caseSensitive===e.caseSensitive?(!r.children||r.children.length===0)&&(!e.children||e.children.length===0)?!0:r.children.every((t,s)=>{var a;return(a=e.children)==null?void 0:a.some(u=>Tg(t,u))}):!1}async function s1(r,e,t){if(!r.lazy)return;let s=await r.lazy();if(!r.lazy)return;let a=t[r.id];Ne(a,"No route found in manifest");let u={};for(let d in s){let p=a[d]!==void 0&&d!=="hasErrorBoundary";go(!p,'Route "'+a.id+'" has a static property "'+d+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+d+'" will be ignored.')),!p&&!R_.has(d)&&(u[d]=s[d])}Object.assign(a,u),Object.assign(a,St({},e(a),{lazy:void 0}))}async function o1(r){let{matches:e}=r,t=e.filter(a=>a.shouldLoad);return(await Promise.all(t.map(a=>a.resolve()))).reduce((a,u,d)=>Object.assign(a,{[t[d].route.id]:u}),{})}async function a1(r,e,t,s,a,u,d,h,p,m){let g=u.map(I=>I.route.lazy?s1(I.route,p,h):void 0),v=u.map((I,A)=>{let L=g[A],T=a.some(W=>W.route.id===I.route.id);return St({},I,{shouldLoad:T,resolve:async W=>(W&&s.method==="GET"&&(I.route.lazy||I.route.loader)&&(T=!0),T?l1(e,s,I,L,W,m):Promise.resolve({type:nt.data,result:void 0}))})}),b=await r({matches:v,request:s,params:u[0].params,fetcherKey:d,context:m});try{await Promise.all(g)}catch{}return b}async function l1(r,e,t,s,a,u){let d,h,p=m=>{let g,v=new Promise((A,L)=>g=L);h=()=>g(),e.signal.addEventListener("abort",h);let b=A=>typeof m!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+r+'" [routeId: '+t.route.id+"]"))):m({request:e,params:t.params,context:u},...A!==void 0?[A]:[]),I=(async()=>{try{return{type:"data",result:await(a?a(L=>b(L)):b())}}catch(A){return{type:"error",result:A}}})();return Promise.race([I,v])};try{let m=t.route[r];if(s)if(m){let g,[v]=await Promise.all([p(m).catch(b=>{g=b}),s]);if(g!==void 0)throw g;d=v}else if(await s,m=t.route[r],m)d=await p(m);else if(r==="action"){let g=new URL(e.url),v=g.pathname+g.search;throw yn(405,{method:e.method,pathname:v,routeId:t.route.id})}else return{type:nt.data,result:void 0};else if(m)d=await p(m);else{let g=new URL(e.url),v=g.pathname+g.search;throw yn(404,{pathname:v})}Ne(d.result!==void 0,"You defined "+(r==="action"?"an action":"a loader")+" for route "+('"'+t.route.id+"\" but didn't return anything from your `"+r+"` ")+"function. Please return a value or `null`.")}catch(m){return{type:nt.error,result:m}}finally{h&&e.signal.removeEventListener("abort",h)}return d}async function u1(r){let{result:e,type:t}=r;if(Ag(e)){let v;try{let b=e.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?e.body==null?v=null:v=await e.json():v=await e.text()}catch(b){return{type:nt.error,error:b}}return t===nt.error?{type:nt.error,error:new Iu(e.status,e.statusText,v),statusCode:e.status,headers:e.headers}:{type:nt.data,data:v,statusCode:e.status,headers:e.headers}}if(t===nt.error){if(gm(e)){var s,a;if(e.data instanceof Error){var u,d;return{type:nt.error,error:e.data,statusCode:(u=e.init)==null?void 0:u.status,headers:(d=e.init)!=null&&d.headers?new Headers(e.init.headers):void 0}}return{type:nt.error,error:new Iu(((s=e.init)==null?void 0:s.status)||500,void 0,e.data),statusCode:Ta(e)?e.status:void 0,headers:(a=e.init)!=null&&a.headers?new Headers(e.init.headers):void 0}}return{type:nt.error,error:e,statusCode:Ta(e)?e.status:void 0}}if(p1(e)){var h,p;return{type:nt.deferred,deferredData:e,statusCode:(h=e.init)==null?void 0:h.status,headers:((p=e.init)==null?void 0:p.headers)&&new Headers(e.init.headers)}}if(gm(e)){var m,g;return{type:nt.data,data:e.data,statusCode:(m=e.init)==null?void 0:m.status,headers:(g=e.init)!=null&&g.headers?new Headers(e.init.headers):void 0}}return{type:nt.data,data:e}}function c1(r,e,t,s,a,u){let d=r.headers.get("Location");if(Ne(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!kf.test(d)){let h=s.slice(0,s.findIndex(p=>p.route.id===t)+1);d=pf(new URL(e.url),h,a,!0,d,u),r.headers.set("Location",d)}return r}function dm(r,e,t){if(kf.test(r)){let s=r,a=s.startsWith("//")?new URL(e.protocol+s):new URL(s),u=ni(a.pathname,t)!=null;if(a.origin===e.origin&&u)return a.pathname+a.search+a.hash}return r}function to(r,e,t,s){let a=r.createURL(Mg(e)).toString(),u={signal:t};if(s&&er(s.formMethod)){let{formMethod:d,formEncType:h}=s;u.method=d.toUpperCase(),h==="application/json"?(u.headers=new Headers({"Content-Type":h}),u.body=JSON.stringify(s.json)):h==="text/plain"?u.body=s.text:h==="application/x-www-form-urlencoded"&&s.formData?u.body=mf(s.formData):u.body=s.formData}return new Request(a,u)}function mf(r){let e=new URLSearchParams;for(let[t,s]of r.entries())e.append(t,typeof s=="string"?s:s.name);return e}function fm(r){let e=new FormData;for(let[t,s]of r.entries())e.append(t,s);return e}function d1(r,e,t,s,a){let u={},d=null,h,p=!1,m={},g=t&&Cn(t[1])?t[1].error:void 0;return r.forEach(v=>{if(!(v.route.id in e))return;let b=v.route.id,I=e[b];if(Ne(!gs(I),"Cannot handle redirect results in processLoaderData"),Cn(I)){let A=I.error;g!==void 0&&(A=g,g=void 0),d=d||{};{let L=ps(r,b);d[L.route.id]==null&&(d[L.route.id]=A)}u[b]=void 0,p||(p=!0,h=Ta(I.error)?I.error.status:500),I.headers&&(m[b]=I.headers)}else ki(I)?(s.set(b,I.deferredData),u[b]=I.deferredData.data,I.statusCode!=null&&I.statusCode!==200&&!p&&(h=I.statusCode),I.headers&&(m[b]=I.headers)):(u[b]=I.data,I.statusCode&&I.statusCode!==200&&!p&&(h=I.statusCode),I.headers&&(m[b]=I.headers))}),g!==void 0&&t&&(d={[t[0]]:g},u[t[0]]=void 0),{loaderData:u,errors:d,statusCode:h||200,loaderHeaders:m}}function hm(r,e,t,s,a,u,d){let{loaderData:h,errors:p}=d1(e,t,s,d);return a.forEach(m=>{let{key:g,match:v,controller:b}=m,I=u[g];if(Ne(I,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(Cn(I)){let A=ps(r.matches,v==null?void 0:v.route.id);p&&p[A.route.id]||(p=St({},p,{[A.route.id]:I.error})),r.fetchers.delete(g)}else if(gs(I))Ne(!1,"Unhandled fetcher revalidation redirect");else if(ki(I))Ne(!1,"Unhandled fetcher deferred data");else{let A=Pi(I.data);r.fetchers.set(g,A)}}),{loaderData:h,errors:p}}function pm(r,e,t,s){let a=St({},e);for(let u of t){let d=u.route.id;if(e.hasOwnProperty(d)?e[d]!==void 0&&(a[d]=e[d]):r[d]!==void 0&&u.route.loader&&(a[d]=r[d]),s&&s.hasOwnProperty(d))break}return a}function ym(r){return r?Cn(r[1])?{actionData:{}}:{actionData:{[r[0]]:r[1].data}}:{}}function ps(r,e){return(e?r.slice(0,r.findIndex(s=>s.route.id===e)+1):[...r]).reverse().find(s=>s.route.hasErrorBoundary===!0)||r[0]}function mm(r){let e=r.length===1?r[0]:r.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function yn(r,e){let{pathname:t,routeId:s,method:a,type:u,message:d}=e===void 0?{}:e,h="Unknown Server Error",p="Unknown @remix-run/router error";return r===400?(h="Bad Request",a&&t&&s?p="You made a "+a+' request to "'+t+'" but '+('did not provide a `loader` for route "'+s+'", ')+"so there is no way to handle the request.":u==="defer-action"?p="defer() is not supported in actions":u==="invalid-body"&&(p="Unable to encode submission body")):r===403?(h="Forbidden",p='Route "'+s+'" does not match URL "'+t+'"'):r===404?(h="Not Found",p='No route matches URL "'+t+'"'):r===405&&(h="Method Not Allowed",a&&t&&s?p="You made a "+a.toUpperCase()+' request to "'+t+'" but '+('did not provide an `action` for route "'+s+'", ')+"so there is no way to handle the request.":a&&(p='Invalid request method "'+a.toUpperCase()+'"')),new Iu(r||500,h,new Error(p),!0)}function su(r){let e=Object.entries(r);for(let t=e.length-1;t>=0;t--){let[s,a]=e[t];if(gs(a))return{key:s,result:a}}}function Mg(r){let e=typeof r=="string"?Wi(r):r;return xs(St({},e,{hash:""}))}function f1(r,e){return r.pathname!==e.pathname||r.search!==e.search?!1:r.hash===""?e.hash!=="":r.hash===e.hash?!0:e.hash!==""}function h1(r){return Ag(r.result)&&X_.has(r.result.status)}function ki(r){return r.type===nt.deferred}function Cn(r){return r.type===nt.error}function gs(r){return(r&&r.type)===nt.redirect}function gm(r){return typeof r=="object"&&r!=null&&"type"in r&&"data"in r&&"init"in r&&r.type==="DataWithResponseInit"}function p1(r){let e=r;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function Ag(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.headers=="object"&&typeof r.body<"u"}function y1(r){return J_.has(r.toLowerCase())}function er(r){return Y_.has(r.toLowerCase())}async function m1(r,e,t,s,a){let u=Object.entries(e);for(let d=0;d<u.length;d++){let[h,p]=u[d],m=r.find(b=>(b==null?void 0:b.route.id)===h);if(!m)continue;let g=s.find(b=>b.route.id===m.route.id),v=g!=null&&!Fg(g,m)&&(a&&a[m.route.id])!==void 0;ki(p)&&v&&await Uf(p,t,!1).then(b=>{b&&(e[h]=b)})}}async function g1(r,e,t){for(let s=0;s<t.length;s++){let{key:a,routeId:u,controller:d}=t[s],h=e[a];r.find(m=>(m==null?void 0:m.route.id)===u)&&ki(h)&&(Ne(d,"Expected an AbortController for revalidating fetcher deferred result"),await Uf(h,d.signal,!0).then(m=>{m&&(e[a]=m)}))}}async function Uf(r,e,t){if(t===void 0&&(t=!1),!await r.deferredData.resolveData(e)){if(t)try{return{type:nt.data,data:r.deferredData.unwrappedData}}catch(a){return{type:nt.error,error:a}}return{type:nt.data,data:r.deferredData.data}}}function jf(r){return new URLSearchParams(r).getAll("index").some(e=>e==="")}function Ea(r,e){let t=typeof e=="string"?Wi(e).search:e.search;if(r[r.length-1].route.index&&jf(t||""))return r[r.length-1];let s=Cg(r);return s[s.length-1]}function vm(r){let{formMethod:e,formAction:t,formEncType:s,text:a,formData:u,json:d}=r;if(!(!e||!t||!s)){if(a!=null)return{formMethod:e,formAction:t,formEncType:s,formData:void 0,json:void 0,text:a};if(u!=null)return{formMethod:e,formAction:t,formEncType:s,formData:u,json:void 0,text:void 0};if(d!==void 0)return{formMethod:e,formAction:t,formEncType:s,formData:void 0,json:d,text:void 0}}}function ef(r,e){return e?{state:"loading",location:r,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function v1(r,e){return{state:"submitting",location:r,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function wa(r,e){return r?{state:"loading",formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function w1(r,e){return{state:"submitting",formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text,data:e?e.data:void 0}}function Pi(r){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}function S1(r,e){try{let t=r.sessionStorage.getItem(Rg);if(t){let s=JSON.parse(t);for(let[a,u]of Object.entries(s||{}))u&&Array.isArray(u)&&e.set(a,new Set(u||[]))}}catch{}}function _1(r,e){if(e.size>0){let t={};for(let[s,a]of e)t[s]=[...a];try{r.sessionStorage.setItem(Rg,JSON.stringify(t))}catch(s){go(!1,"Failed to save applied view transitions in sessionStorage ("+s+").")}}}/**
62
+ * React Router v6.30.0
63
+ *
64
+ * Copyright (c) Remix Software Inc.
65
+ *
66
+ * This source code is licensed under the MIT license found in the
67
+ * LICENSE.md file in the root directory of this source tree.
68
+ *
69
+ * @license MIT
70
+ */function Eu(){return Eu=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},Eu.apply(this,arguments)}const ja=P.createContext(null),zf=P.createContext(null),Qi=P.createContext(null),Vf=P.createContext(null),si=P.createContext({outlet:null,matches:[],isDataRoute:!1}),Pg=P.createContext(null);function b1(r,e){let{relative:t}=e===void 0?{}:e;za()||Ne(!1);let{basename:s,navigator:a}=P.useContext(Qi),{hash:u,pathname:d,search:h}=rc(r,{relative:t}),p=d;return s!=="/"&&(p=d==="/"?s:ei([s,d])),a.createHref({pathname:p,search:h,hash:u})}function za(){return P.useContext(Vf)!=null}function Va(){return za()||Ne(!1),P.useContext(Vf).location}function Ng(r){P.useContext(Qi).static||P.useLayoutEffect(r)}function I1(){let{isDataRoute:r}=P.useContext(si);return r?B1():E1()}function E1(){za()||Ne(!1);let r=P.useContext(ja),{basename:e,future:t,navigator:s}=P.useContext(Qi),{matches:a}=P.useContext(si),{pathname:u}=Va(),d=JSON.stringify(Lf(a,t.v7_relativeSplatPath)),h=P.useRef(!1);return Ng(()=>{h.current=!0}),P.useCallback(function(m,g){if(g===void 0&&(g={}),!h.current)return;if(typeof m=="number"){s.go(m);return}let v=Bf(m,JSON.parse(d),u,g.relative==="path");r==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:ei([e,v.pathname])),(g.replace?s.replace:s.push)(v,g.state,g)},[e,s,d,u,r])}const x1=P.createContext(null);function D1(r){let e=P.useContext(si).outlet;return e&&P.createElement(x1.Provider,{value:r},e)}function iD(){let{matches:r}=P.useContext(si),e=r[r.length-1];return e?e.params:{}}function rc(r,e){let{relative:t}=e===void 0?{}:e,{future:s}=P.useContext(Qi),{matches:a}=P.useContext(si),{pathname:u}=Va(),d=JSON.stringify(Lf(a,s.v7_relativeSplatPath));return P.useMemo(()=>Bf(r,JSON.parse(d),u,t==="path"),[r,d,u,t])}function C1(r,e,t,s){za()||Ne(!1);let{navigator:a,static:u}=P.useContext(Qi),{matches:d}=P.useContext(si),h=d[d.length-1],p=h?h.params:{};h&&h.pathname;let m=h?h.pathnameBase:"/";h&&h.route;let g=Va(),v;v=g;let b=v.pathname||"/",I=b;if(m!=="/"){let T=m.replace(/^\//,"").split("/");I="/"+b.replace(/^\//,"").split("/").slice(T.length).join("/")}let A=!u&&t&&t.matches&&t.matches.length>0?t.matches:hs(r,{pathname:I});return M1(A&&A.map(T=>Object.assign({},T,{params:Object.assign({},p,T.params),pathname:ei([m,a.encodeLocation?a.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?m:ei([m,a.encodeLocation?a.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),d,t,s)}function O1(){let r=L1(),e=Ta(r)?r.status+" "+r.statusText:r instanceof Error?r.message:JSON.stringify(r),t=r instanceof Error?r.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},e),t?P.createElement("pre",{style:a},t):null,null)}const R1=P.createElement(O1,null);class F1 extends P.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?P.createElement(si.Provider,{value:this.props.routeContext},P.createElement(Pg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function T1(r){let{routeContext:e,match:t,children:s}=r,a=P.useContext(ja);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(si.Provider,{value:e},s)}function M1(r,e,t,s){var a;if(e===void 0&&(e=[]),t===void 0&&(t=null),s===void 0&&(s=null),r==null){var u;if(!t)return null;if(t.errors)r=t.matches;else if((u=s)!=null&&u.v7_partialHydration&&e.length===0&&!t.initialized&&t.matches.length>0)r=t.matches;else return null}let d=r,h=(a=t)==null?void 0:a.errors;if(h!=null){let g=d.findIndex(v=>v.route.id&&(h==null?void 0:h[v.route.id])!==void 0);g>=0||Ne(!1),d=d.slice(0,Math.min(d.length,g+1))}let p=!1,m=-1;if(t&&s&&s.v7_partialHydration)for(let g=0;g<d.length;g++){let v=d[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=g),v.route.id){let{loaderData:b,errors:I}=t,A=v.route.loader&&b[v.route.id]===void 0&&(!I||I[v.route.id]===void 0);if(v.route.lazy||A){p=!0,m>=0?d=d.slice(0,m+1):d=[d[0]];break}}}return d.reduceRight((g,v,b)=>{let I,A=!1,L=null,T=null;t&&(I=h&&v.route.id?h[v.route.id]:void 0,L=v.route.errorElement||R1,p&&(m<0&&b===0?(k1("route-fallback"),A=!0,T=null):m===b&&(A=!0,T=v.route.hydrateFallbackElement||null)));let K=e.concat(d.slice(0,b+1)),W=()=>{let Y;return I?Y=L:A?Y=T:v.route.Component?Y=P.createElement(v.route.Component,null):v.route.element?Y=v.route.element:Y=g,P.createElement(T1,{match:v,routeContext:{outlet:g,matches:K,isDataRoute:t!=null},children:Y})};return t&&(v.route.ErrorBoundary||v.route.errorElement||b===0)?P.createElement(F1,{location:t.location,revalidation:t.revalidation,component:L,error:I,children:W(),routeContext:{outlet:null,matches:K,isDataRoute:!0}}):W()},null)}var Lg=function(r){return r.UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r}(Lg||{}),Bg=function(r){return r.UseBlocker="useBlocker",r.UseLoaderData="useLoaderData",r.UseActionData="useActionData",r.UseRouteError="useRouteError",r.UseNavigation="useNavigation",r.UseRouteLoaderData="useRouteLoaderData",r.UseMatches="useMatches",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r.UseRouteId="useRouteId",r}(Bg||{});function A1(r){let e=P.useContext(ja);return e||Ne(!1),e}function P1(r){let e=P.useContext(zf);return e||Ne(!1),e}function N1(r){let e=P.useContext(si);return e||Ne(!1),e}function kg(r){let e=N1(),t=e.matches[e.matches.length-1];return t.route.id||Ne(!1),t.route.id}function L1(){var r;let e=P.useContext(Pg),t=P1(),s=kg();return e!==void 0?e:(r=t.errors)==null?void 0:r[s]}function B1(){let{router:r}=A1(Lg.UseNavigateStable),e=kg(Bg.UseNavigateStable),t=P.useRef(!1);return Ng(()=>{t.current=!0}),P.useCallback(function(a,u){u===void 0&&(u={}),t.current&&(typeof a=="number"?r.navigate(a):r.navigate(a,Eu({fromRouteId:e},u)))},[r,e])}const wm={};function k1(r,e,t){wm[r]||(wm[r]=!0)}function U1(r,e){r==null||r.v7_startTransition,(r==null?void 0:r.v7_relativeSplatPath)===void 0&&(!e||e.v7_relativeSplatPath),e&&(e.v7_fetcherPersist,e.v7_normalizeFormMethod,e.v7_partialHydration,e.v7_skipActionErrorRevalidation)}function sD(r){return D1(r.context)}function j1(r){let{basename:e="/",children:t=null,location:s,navigationType:a=At.Pop,navigator:u,static:d=!1,future:h}=r;za()&&Ne(!1);let p=e.replace(/^\/*/,"/"),m=P.useMemo(()=>({basename:p,navigator:u,static:d,future:Eu({v7_relativeSplatPath:!1},h)}),[p,h,u,d]);typeof s=="string"&&(s=Wi(s));let{pathname:g="/",search:v="",hash:b="",state:I=null,key:A="default"}=s,L=P.useMemo(()=>{let T=ni(g,p);return T==null?null:{location:{pathname:T,search:v,hash:b,state:I,key:A},navigationType:a}},[p,g,v,b,I,A,a]);return L==null?null:P.createElement(Qi.Provider,{value:m},P.createElement(Vf.Provider,{children:t,value:L}))}new Promise(()=>{});function z1(r){let e={hasErrorBoundary:r.ErrorBoundary!=null||r.errorElement!=null};return r.Component&&Object.assign(e,{element:P.createElement(r.Component),Component:void 0}),r.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:P.createElement(r.HydrateFallback),HydrateFallback:void 0}),r.ErrorBoundary&&Object.assign(e,{errorElement:P.createElement(r.ErrorBoundary),ErrorBoundary:void 0}),e}/**
71
+ * React Router DOM v6.30.0
72
+ *
73
+ * Copyright (c) Remix Software Inc.
74
+ *
75
+ * This source code is licensed under the MIT license found in the
76
+ * LICENSE.md file in the root directory of this source tree.
77
+ *
78
+ * @license MIT
79
+ */function vo(){return vo=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},vo.apply(this,arguments)}function Ug(r,e){if(r==null)return{};var t={},s=Object.keys(r),a,u;for(u=0;u<s.length;u++)a=s[u],!(e.indexOf(a)>=0)&&(t[a]=r[a]);return t}function V1(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function $1(r,e){return r.button===0&&(!e||e==="_self")&&!V1(r)}const W1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Q1=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],H1="6";try{window.__reactRouterVersion=H1}catch{}function K1(r,e){return n1({basename:e==null?void 0:e.basename,future:vo({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:D_({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||q1(),routes:r,mapRouteProperties:z1,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function q1(){var r;let e=(r=window)==null?void 0:r.__staticRouterHydrationData;return e&&e.errors&&(e=vo({},e,{errors:Y1(e.errors)})),e}function Y1(r){if(!r)return null;let e=Object.entries(r),t={};for(let[s,a]of e)if(a&&a.__type==="RouteErrorResponse")t[s]=new Iu(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let u=window[a.__subType];if(typeof u=="function")try{let d=new u(a.message);d.stack="",t[s]=d}catch{}}if(t[s]==null){let u=new Error(a.message);u.stack="",t[s]=u}}else t[s]=a;return t}const jg=P.createContext({isTransitioning:!1}),G1=P.createContext(new Map),J1="startTransition",Sm=CS[J1],X1="flushSync",_m=i_[X1];function Z1(r){Sm?Sm(r):r()}function Sa(r){_m?_m(r):r()}class eb{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=s=>{this.status==="pending"&&(this.status="resolved",e(s))},this.reject=s=>{this.status==="pending"&&(this.status="rejected",t(s))}})}}function tb(r){let{fallbackElement:e,router:t,future:s}=r,[a,u]=P.useState(t.state),[d,h]=P.useState(),[p,m]=P.useState({isTransitioning:!1}),[g,v]=P.useState(),[b,I]=P.useState(),[A,L]=P.useState(),T=P.useRef(new Map),{v7_startTransition:K}=s||{},W=P.useCallback(V=>{K?Z1(V):V()},[K]),Y=P.useCallback((V,pe)=>{let{deletedFetchers:ue,flushSync:Ye,viewTransitionOpts:We}=pe;V.fetchers.forEach((dt,Tt)=>{dt.data!==void 0&&T.current.set(Tt,dt.data)}),ue.forEach(dt=>T.current.delete(dt));let Xe=t.window==null||t.window.document==null||typeof t.window.document.startViewTransition!="function";if(!We||Xe){Ye?Sa(()=>u(V)):W(()=>u(V));return}if(Ye){Sa(()=>{b&&(g&&g.resolve(),b.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:We.currentLocation,nextLocation:We.nextLocation})});let dt=t.window.document.startViewTransition(()=>{Sa(()=>u(V))});dt.finished.finally(()=>{Sa(()=>{v(void 0),I(void 0),h(void 0),m({isTransitioning:!1})})}),Sa(()=>I(dt));return}b?(g&&g.resolve(),b.skipTransition(),L({state:V,currentLocation:We.currentLocation,nextLocation:We.nextLocation})):(h(V),m({isTransitioning:!0,flushSync:!1,currentLocation:We.currentLocation,nextLocation:We.nextLocation}))},[t.window,b,g,T,W]);P.useLayoutEffect(()=>t.subscribe(Y),[t,Y]),P.useEffect(()=>{p.isTransitioning&&!p.flushSync&&v(new eb)},[p]),P.useEffect(()=>{if(g&&d&&t.window){let V=d,pe=g.promise,ue=t.window.document.startViewTransition(async()=>{W(()=>u(V)),await pe});ue.finished.finally(()=>{v(void 0),I(void 0),h(void 0),m({isTransitioning:!1})}),I(ue)}},[W,d,g,t.window]),P.useEffect(()=>{g&&d&&a.location.key===d.location.key&&g.resolve()},[g,b,a.location,d]),P.useEffect(()=>{!p.isTransitioning&&A&&(h(A.state),m({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}),L(void 0))},[p.isTransitioning,A]),P.useEffect(()=>{},[]);let q=P.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:V=>t.navigate(V),push:(V,pe,ue)=>t.navigate(V,{state:pe,preventScrollReset:ue==null?void 0:ue.preventScrollReset}),replace:(V,pe,ue)=>t.navigate(V,{replace:!0,state:pe,preventScrollReset:ue==null?void 0:ue.preventScrollReset})}),[t]),he=t.basename||"/",le=P.useMemo(()=>({router:t,navigator:q,static:!1,basename:he}),[t,q,he]),C=P.useMemo(()=>({v7_relativeSplatPath:t.future.v7_relativeSplatPath}),[t.future.v7_relativeSplatPath]);return P.useEffect(()=>U1(s,t.future),[s,t.future]),P.createElement(P.Fragment,null,P.createElement(ja.Provider,{value:le},P.createElement(zf.Provider,{value:a},P.createElement(G1.Provider,{value:T.current},P.createElement(jg.Provider,{value:p},P.createElement(j1,{basename:he,location:a.location,navigationType:a.historyAction,navigator:q,future:C},a.initialized||t.future.v7_partialHydration?P.createElement(nb,{routes:t.routes,future:t.future,state:a}):e))))),null)}const nb=P.memo(rb);function rb(r){let{routes:e,future:t,state:s}=r;return C1(e,void 0,s,t)}const ib=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zg=P.forwardRef(function(e,t){let{onClick:s,relative:a,reloadDocument:u,replace:d,state:h,target:p,to:m,preventScrollReset:g,viewTransition:v}=e,b=Ug(e,W1),{basename:I}=P.useContext(Qi),A,L=!1;if(typeof m=="string"&&sb.test(m)&&(A=m,ib))try{let Y=new URL(window.location.href),q=m.startsWith("//")?new URL(Y.protocol+m):new URL(m),he=ni(q.pathname,I);q.origin===Y.origin&&he!=null?m=he+q.search+q.hash:L=!0}catch{}let T=b1(m,{relative:a}),K=ab(m,{replace:d,state:h,target:p,preventScrollReset:g,relative:a,viewTransition:v});function W(Y){s&&s(Y),Y.defaultPrevented||K(Y)}return P.createElement("a",vo({},b,{href:A||T,onClick:L||u?s:W,ref:t,target:p}))}),oD=P.forwardRef(function(e,t){let{"aria-current":s="page",caseSensitive:a=!1,className:u="",end:d=!1,style:h,to:p,viewTransition:m,children:g}=e,v=Ug(e,Q1),b=rc(p,{relative:v.relative}),I=Va(),A=P.useContext(zf),{navigator:L,basename:T}=P.useContext(Qi),K=A!=null&&lb(b)&&m===!0,W=L.encodeLocation?L.encodeLocation(b).pathname:b.pathname,Y=I.pathname,q=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;a||(Y=Y.toLowerCase(),q=q?q.toLowerCase():null,W=W.toLowerCase()),q&&T&&(q=ni(q,T)||q);const he=W!=="/"&&W.endsWith("/")?W.length-1:W.length;let le=Y===W||!d&&Y.startsWith(W)&&Y.charAt(he)==="/",C=q!=null&&(q===W||!d&&q.startsWith(W)&&q.charAt(W.length)==="/"),V={isActive:le,isPending:C,isTransitioning:K},pe=le?s:void 0,ue;typeof u=="function"?ue=u(V):ue=[u,le?"active":null,C?"pending":null,K?"transitioning":null].filter(Boolean).join(" ");let Ye=typeof h=="function"?h(V):h;return P.createElement(zg,vo({},v,{"aria-current":pe,className:ue,ref:t,style:Ye,to:p,viewTransition:m}),typeof g=="function"?g(V):g)});var gf;(function(r){r.UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState"})(gf||(gf={}));var bm;(function(r){r.UseFetcher="useFetcher",r.UseFetchers="useFetchers",r.UseScrollRestoration="useScrollRestoration"})(bm||(bm={}));function ob(r){let e=P.useContext(ja);return e||Ne(!1),e}function ab(r,e){let{target:t,replace:s,state:a,preventScrollReset:u,relative:d,viewTransition:h}=e===void 0?{}:e,p=I1(),m=Va(),g=rc(r,{relative:d});return P.useCallback(v=>{if($1(v,t)){v.preventDefault();let b=s!==void 0?s:xs(m)===xs(g);p(r,{replace:b,state:a,preventScrollReset:u,relative:d,viewTransition:h})}},[m,p,g,s,a,t,r,u,d,h])}function lb(r,e){e===void 0&&(e={});let t=P.useContext(jg);t==null&&Ne(!1);let{basename:s}=ob(gf.useViewTransitionState),a=rc(r,{relative:e.relative});if(!t.isTransitioning)return!1;let u=ni(t.currentLocation.pathname,s)||t.currentLocation.pathname,d=ni(t.nextLocation.pathname,s)||t.nextLocation.pathname;return bu(a.pathname,d)!=null||bu(a.pathname,u)!=null}function Vg(r){var e,t,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(e=0;e<a;e++)r[e]&&(t=Vg(r[e]))&&(s&&(s+=" "),s+=t)}else for(t in r)r[t]&&(s&&(s+=" "),s+=t);return s}function Tr(){for(var r,e,t=0,s="",a=arguments.length;t<a;t++)(r=arguments[t])&&(e=Vg(r))&&(s&&(s+=" "),s+=e);return s}const Rt={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl"},it={Primary:"primary",Alternative:"alternative",Secondary:"secondary",Success:"success",Danger:"danger",Warning:"warning",Info:"info",Neutral:"neutral"},aD={Left:"left",Right:"right"},Im=new Map([[Rt.sm,""],[Rt.md,"-2"],[Rt.lg,"-4"]]);function Em({size:r=Rt.sm,orientation:e="horizontal",className:t}){return B.jsx("span",{className:Tr(["block border-divider",e==="horizontal"&&`w-full border-b${Im.get(r)??""}`,e==="vertical"&&`h-full border-r${Im.get(r)??""}`],t)})}const $g=function({children:e}){return B.jsx(B.Fragment,{children:e})};function ub({children:r,layout:e="vertical"}){return B.jsx("div",{className:Tr("font-sans w-full h-full flex overflow-hidden",e==="horizontal"?"flex-row":"flex-col"),children:r})}$g.Page=ub;const lD={Circle:"circle"},uD={Ghost:"ghost"},cb=new Map([["primary","border-primary-500 bg-primary-500 hover:bg-primary-400 active:bg-primary-400 text-light"],["alternative","border-neutral-300 bg-neutral-5 hover:bg-neutral-20 active:bg-neutral-200 text-neutral-600"],["secondary","border-secondary-500 bg-secondary-500 hover:bg-secondary-600 active:bg-secondary-400 text-neutral-100"],["success","border-success-500 bg-success-500 hover:bg-success-600 active:bg-success-400 text-neutral-100"],["danger","border-danger-500 bg-danger-500 hover:bg-danger-600 active:bg-danger-400 text-neutral-100"],["warning","border-warning-500 bg-warning-500 hover:bg-warning-600 active:bg-warning-400 text-neutral-100"],["neutral","border-neutral-200 bg-neutral-200 hover:bg-neutral-300 active:bg-neutral-300 text-primary-900"],["info","border-transparent bg-neutral-10 dark:bg-neutral-20 active:bg-neutral-10 text-neutral-700 dark:text-neutral-200"]]),db=new Map([["rounded","rounded-md"],["square","rounded-none"],["circle","rounded-full"]]),fb=new Map([[Rt.xs,"text-xs leading-2 border"],[Rt.sm,"px-2 py-[0.125rem] text-xs leading-4 border-2"],[Rt.md,"px-3 py-2 text-base leading-6 border-2"],[Rt.lg,"px-4 py-3 text-lg border-4"]]),cD=Wg(Es.forwardRef(pb)),hb=Wg(Es.forwardRef(yb));function pb({type:r="button",disabled:e=!1,children:t=[],form:s,autoFocus:a,tabIndex:u,onClick:d,className:h},p){return B.jsx("button",{ref:p,type:r,autoFocus:a,tabIndex:u,form:s,disabled:e,onClick:d,onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),m.stopPropagation(),d==null||d(m))},className:h,children:t})}function yb({children:r=[],autoFocus:e,tabIndex:t,className:s},a){return B.jsx("div",{ref:a,autoFocus:e,tabIndex:t,className:s,children:r})}function Wg(r){return Es.forwardRef(function({type:t="button",disabled:s=!1,variant:a="primary",shape:u="rounded",size:d=Rt.md,children:h=[],className:p,form:m,autoFocus:g,tabIndex:v,onClick:b},I){return B.jsx(r,{ref:I,type:t,disabled:s,form:m,autoFocus:g,tabIndex:v,onClick:b,className:Tr("whitespace-nowrap flex m-1 items-center justify-center font-bold","focus:ring-4 focus:outline-none focus:border-secondary-500","ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100",db.get(u),fb.get(d),s?"opacity-50 bg-neutral-10 dark:bg-neutral-20 border-transparent text-prose cursor-not-allowed":cb.get(a),p),children:h})})}function pn({description:r,link:e,headline:t="Not Found",message:s="Go Back Home"}){return B.jsx($g.Page,{children:B.jsx("div",{className:"flex items-center justify-center w-full h-full",children:B.jsxs("div",{className:"text-center",children:[B.jsx("h1",{className:"text-[4rem] md:text-[6rem] lg:text-[9rem] text-secondary-10 dark:text-primary-10 mb-4",children:t}),sn(r)&&B.jsx("p",{className:"mb-10 py-5 px-4 text-neutral-70 dark:text-primary-70 w-full bg-primary-10 rounded-md",children:r}),sn(e)&&B.jsx("div",{className:"inline-block",children:B.jsx(hb,{variant:it.Alternative,children:B.jsx(zg,{to:e,children:s})})})]})})})}function ys({style:r,className:e,variant:t=it.Info}){return B.jsxs("svg",{style:r,className:Tr("animate-spin bg-transparent rounded-full",e),viewBox:"0 0 64 64",xmlns:"http://www.w3.org/2000/svg","aria-label":"Loading",role:"img",children:[B.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 59.7128C31.3054 68.5494 50.8763 63.3054 59.7128 48C68.5494 32.6946 63.3054 13.1237 48 4.28719C32.6946 -4.54937 13.1237 0.694636 4.28719 16C-4.54937 31.3054 0.694637 50.8763 16 59.7128ZM23 47.5885C31.6093 52.559 42.6179 49.6093 47.5885 41C52.559 32.3907 49.6093 21.3821 41 16.4115C32.3907 11.441 21.3821 14.3907 16.4115 23C11.441 31.6093 14.3907 42.6179 23 47.5885Z",className:"fill-theme-lighter"}),B.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.5827 26.5161C49.2259 21.9157 46.1691 17.8082 41.6875 15.2208C37.4263 12.7606 32.6191 12.103 28.1488 13.0114L25.1365 1.76921C32.4854 0.0988895 40.4586 1.08788 47.5 5.15321C54.7617 9.34574 59.6854 16.0326 61.8138 23.5067L50.5827 26.5161Z",className:Tr(t===it.Primary&&"fill-primary-500",t===it.Secondary&&"fill-secondary-500",t===it.Success&&"fill-success-500",t===it.Warning&&"fill-warning-500",t===it.Danger&&"fill-danger-500",t===it.Info&&"fill-neutral-500"),stroke:Tr(t===it.Primary&&"var(--color-primary-500)",t===it.Secondary&&"var(--color-secondary-500)",t===it.Success&&"var(--color-success-500)",t===it.Warning&&"var(--color-warning-500)",t===it.Danger&&"var(--color-danger-500)",t===it.Info&&"var(--color-neutral-500)"),strokeWidth:"4"})]})}function mb({as:r="p",size:e=Rt.sm,variant:t=it.Info,text:s,className:a}){const u=r;return B.jsx(u,{className:Tr("font-bold whitespace-nowrap",t===it.Primary&&"text-primary-600 dark:text-primary-400",t===it.Secondary&&"text-secondary-600 dark:text-secondary-400",t===it.Success&&"text-success-600 dark:text-success-400",t===it.Warning&&"text-warning-600 dark:text-warning-400",t===it.Danger&&"text-danger-600 dark:text-danger-400",t===it.Info&&"text-neutral-600 dark:text-neutral-400",e===Rt.xs&&"text-xs",e===Rt.sm&&"text-md",e===Rt.md&&"text-lg",e===Rt.lg&&"text-2xl",e===Rt.xl&&"text-4xl",a),children:s})}function io({hasSpinner:r=!1,size:e=Rt.sm,variant:t=it.Info,text:s,children:a,className:u}){return B.jsx("span",{className:Tr(t===it.Primary&&"text-primary-600 dark:text-primary-400",t===it.Secondary&&"text-secondary-600 dark:text-secondary-400",t===it.Success&&"text-success-600 dark:text-success-400",t===it.Warning&&"text-warning-600 dark:text-warning-400",t===it.Danger&&"text-danger-600 dark:text-danger-400",t===it.Info&&"text-neutral-600 dark:text-neutral-400",u),children:B.jsxs("span",{className:"flex items-center w-full",children:[r&&B.jsx(ys,{variant:t,className:Tr(e===Rt.xs&&"w-2 h-2 mr-2",e===Rt.sm&&"w-3 h-3 mr-2",e===Rt.md&&"w-4 h-4 mr-2",e===Rt.lg&&"w-5 h-5 mr-4",e===Rt.xl&&"w-6 h-6 mr-4")}),sn(s)?B.jsx(mb,{size:e,variant:t,text:s}):a]})})}var xm=function(){return xm=Object.assign||function(e){for(var t,s=1,a=arguments.length;s<a;s++){t=arguments[s];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u])}return e},xm.apply(this,arguments)};function dD(r,e){var t={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(t[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(r);a<s.length;a++)e.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(r,s[a])&&(t[s[a]]=r[s[a]]);return t}function ve(r,e,t,s){function a(u){return u instanceof t?u:new t(function(d){d(u)})}return new(t||(t=Promise))(function(u,d){function h(g){try{m(s.next(g))}catch(v){d(v)}}function p(g){try{m(s.throw(g))}catch(v){d(v)}}function m(g){g.done?u(g.value):a(g.value).then(h,p)}m((s=s.apply(r,e||[])).next())})}function Dm(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],s=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&s>=r.length&&(r=void 0),{value:r&&r[s++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function fD(r,e,t){if(t||arguments.length===2)for(var s=0,a=e.length,u;s<a;s++)(u||!(s in e))&&(u||(u=Array.prototype.slice.call(e,0,s)),u[s]=e[s]);return r.concat(u||Array.prototype.slice.call(e))}function Te(r){return this instanceof Te?(this.v=r,this):new Te(r)}function Fr(r,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=t.apply(r,e||[]),a,u=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),h("next"),h("throw"),h("return",d),a[Symbol.asyncIterator]=function(){return this},a;function d(I){return function(A){return Promise.resolve(A).then(I,v)}}function h(I,A){s[I]&&(a[I]=function(L){return new Promise(function(T,K){u.push([I,L,T,K])>1||p(I,L)})},A&&(a[I]=A(a[I])))}function p(I,A){try{m(s[I](A))}catch(L){b(u[0][3],L)}}function m(I){I.value instanceof Te?Promise.resolve(I.value.v).then(g,v):b(u[0][2],I)}function g(I){p("next",I)}function v(I){p("throw",I)}function b(I,A){I(A),u.shift(),u.length&&p(u[0][0],u[0][1])}}function du(r){var e,t;return e={},s("next"),s("throw",function(a){throw a}),s("return"),e[Symbol.iterator]=function(){return this},e;function s(a,u){e[a]=r[a]?function(d){return(t=!t)?{value:Te(r[a](d)),done:!1}:u?u(d):d}:u}}function co(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof Dm=="function"?Dm(r):r[Symbol.iterator](),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(u){t[u]=r[u]&&function(d){return new Promise(function(h,p){d=r[u](d),a(h,p,d.done,d.value)})}}function a(u,d,h,p){Promise.resolve(p).then(function(m){u({value:m,done:h})},d)}}const gb=new TextDecoder("utf-8"),vf=r=>gb.decode(r),vb=new TextEncoder,$f=r=>vb.encode(r),wb=r=>typeof r=="number",Sb=r=>typeof r=="boolean",rn=r=>typeof r=="function",ir=r=>r!=null&&Object(r)===r,Ma=r=>ir(r)&&rn(r.then),ic=r=>ir(r)&&rn(r[Symbol.iterator]),Wf=r=>ir(r)&&rn(r[Symbol.asyncIterator]),wf=r=>ir(r)&&ir(r.schema),Qg=r=>ir(r)&&"done"in r&&"value"in r,Hg=r=>ir(r)&&rn(r.stat)&&wb(r.fd),Kg=r=>ir(r)&&Qf(r.body),qg=r=>"_getDOMStream"in r&&"_getNodeStream"in r,Qf=r=>ir(r)&&rn(r.cancel)&&rn(r.getReader)&&!qg(r),Yg=r=>ir(r)&&rn(r.read)&&rn(r.pipe)&&Sb(r.readable)&&!qg(r),_b=r=>ir(r)&&rn(r.clear)&&rn(r.bytes)&&rn(r.position)&&rn(r.setPosition)&&rn(r.capacity)&&rn(r.getBufferIdentifier)&&rn(r.createLong),Hf=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function bb(r){const e=r[0]?[r[0]]:[];let t,s,a,u;for(let d,h,p=0,m=0,g=r.length;++p<g;){if(d=e[m],h=r[p],!d||!h||d.buffer!==h.buffer||h.byteOffset<d.byteOffset){h&&(e[++m]=h);continue}if({byteOffset:t,byteLength:a}=d,{byteOffset:s,byteLength:u}=h,t+a<s||s+u<t){h&&(e[++m]=h);continue}e[m]=new Uint8Array(d.buffer,t,s-t+u)}return e}function Cm(r,e,t=0,s=e.byteLength){const a=r.byteLength,u=new Uint8Array(r.buffer,r.byteOffset,a),d=new Uint8Array(e.buffer,e.byteOffset,Math.min(s,a));return u.set(d,t),r}function Mr(r,e){const t=bb(r),s=t.reduce((g,v)=>g+v.byteLength,0);let a,u,d,h=0,p=-1;const m=Math.min(e||Number.POSITIVE_INFINITY,s);for(const g=t.length;++p<g;){if(a=t[p],u=a.subarray(0,Math.min(a.length,m-h)),m<=h+u.length){u.length<a.length?t[p]=a.subarray(u.length):u.length===a.length&&p++,d?Cm(d,u,h):d=u;break}Cm(d||(d=new Uint8Array(m)),u,h),h+=u.length}return[d||new Uint8Array(0),t.slice(p),s-(d?d.byteLength:0)]}function ut(r,e){let t=Qg(e)?e.value:e;return t instanceof r?r===Uint8Array?new r(t.buffer,t.byteOffset,t.byteLength):t:t?(typeof t=="string"&&(t=$f(t)),t instanceof ArrayBuffer?new r(t):t instanceof Hf?new r(t):_b(t)?ut(r,t.bytes()):ArrayBuffer.isView(t)?t.byteLength<=0?new r(0):new r(t.buffer,t.byteOffset,t.byteLength/r.BYTES_PER_ELEMENT):r.from(t)):new r(0)}const _a=r=>ut(Int32Array,r),Ge=r=>ut(Uint8Array,r),Sf=r=>(r.next(),r);function*Ib(r,e){const t=function*(a){yield a},s=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Hf?t(e):ic(e)?e:t(e);return yield*Sf(function*(a){let u=null;do u=a.next(yield ut(r,u));while(!u.done)}(s[Symbol.iterator]())),new r}const Eb=r=>Ib(Uint8Array,r);function Gg(r,e){return Fr(this,arguments,function*(){if(Ma(e))return yield Te(yield Te(yield*du(co(Gg(r,yield Te(e))))));const s=function(d){return Fr(this,arguments,function*(){yield yield Te(yield Te(d))})},a=function(d){return Fr(this,arguments,function*(){yield Te(yield*du(co(Sf(function*(h){let p=null;do p=h.next(yield p==null?void 0:p.value);while(!p.done)}(d[Symbol.iterator]())))))})},u=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Hf?s(e):ic(e)?a(e):Wf(e)?e:s(e);return yield Te(yield*du(co(Sf(function(d){return Fr(this,arguments,function*(){let h=null;do h=yield Te(d.next(yield yield Te(ut(r,h))));while(!h.done)})}(u[Symbol.asyncIterator]()))))),yield Te(new r)})}const xb=r=>Gg(Uint8Array,r);function Db(r,e){let t=0;const s=r.length;if(s!==e.length)return!1;if(s>0)do if(r[t]!==e[t])return!1;while(++t<s);return!0}const kn={fromIterable(r){return ou(Cb(r))},fromAsyncIterable(r){return ou(Ob(r))},fromDOMStream(r){return ou(Rb(r))},fromNodeStream(r){return ou(Tb(r))},toDOMStream(r,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(r,e){throw new Error('"toNodeStream" not available in this environment')}},ou=r=>(r.next(),r);function*Cb(r){let e,t=!1,s=[],a,u,d,h=0;function p(){return u==="peek"?Mr(s,d)[0]:([a,s,h]=Mr(s,d),a)}({cmd:u,size:d}=yield null);const m=Eb(r)[Symbol.iterator]();try{do if({done:e,value:a}=Number.isNaN(d-h)?m.next():m.next(d-h),!e&&a.byteLength>0&&(s.push(a),h+=a.byteLength),e||d<=h)do({cmd:u,size:d}=yield p());while(d<h);while(!e)}catch(g){(t=!0)&&typeof m.throw=="function"&&m.throw(g)}finally{t===!1&&typeof m.return=="function"&&m.return(null)}return null}function Ob(r){return Fr(this,arguments,function*(){let t,s=!1,a=[],u,d,h,p=0;function m(){return d==="peek"?Mr(a,h)[0]:([u,a,p]=Mr(a,h),u)}({cmd:d,size:h}=yield yield Te(null));const g=xb(r)[Symbol.asyncIterator]();try{do if({done:t,value:u}=Number.isNaN(h-p)?yield Te(g.next()):yield Te(g.next(h-p)),!t&&u.byteLength>0&&(a.push(u),p+=u.byteLength),t||h<=p)do({cmd:d,size:h}=yield yield Te(m()));while(h<p);while(!t)}catch(v){(s=!0)&&typeof g.throw=="function"&&(yield Te(g.throw(v)))}finally{s===!1&&typeof g.return=="function"&&(yield Te(g.return(new Uint8Array(0))))}return yield Te(null)})}function Rb(r){return Fr(this,arguments,function*(){let t=!1,s=!1,a=[],u,d,h,p=0;function m(){return d==="peek"?Mr(a,h)[0]:([u,a,p]=Mr(a,h),u)}({cmd:d,size:h}=yield yield Te(null));const g=new Fb(r);try{do if({done:t,value:u}=Number.isNaN(h-p)?yield Te(g.read()):yield Te(g.read(h-p)),!t&&u.byteLength>0&&(a.push(Ge(u)),p+=u.byteLength),t||h<=p)do({cmd:d,size:h}=yield yield Te(m()));while(h<p);while(!t)}catch(v){(s=!0)&&(yield Te(g.cancel(v)))}finally{s===!1?yield Te(g.cancel()):r.locked&&g.releaseLock()}return yield Te(null)})}class Fb{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return ve(this,void 0,void 0,function*(){const{reader:t,source:s}=this;t&&(yield t.cancel(e).catch(()=>{})),s&&s.locked&&this.releaseLock()})}read(e){return ve(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};const t=yield this.reader.read();return!t.done&&(t.value=Ge(t)),t})}}const tf=(r,e)=>{const t=a=>s([e,a]);let s;return[e,t,new Promise(a=>(s=a)&&r.once(e,t))]};function Tb(r){return Fr(this,arguments,function*(){const t=[];let s="error",a=!1,u=null,d,h,p=0,m=[],g;function v(){return d==="peek"?Mr(m,h)[0]:([g,m,p]=Mr(m,h),g)}if({cmd:d,size:h}=yield yield Te(null),r.isTTY)return yield yield Te(new Uint8Array(0)),yield Te(null);try{t[0]=tf(r,"end"),t[1]=tf(r,"error");do{if(t[2]=tf(r,"readable"),[s,u]=yield Te(Promise.race(t.map(I=>I[2]))),s==="error")break;if((a=s==="end")||(Number.isFinite(h-p)?(g=Ge(r.read(h-p)),g.byteLength<h-p&&(g=Ge(r.read()))):g=Ge(r.read()),g.byteLength>0&&(m.push(g),p+=g.byteLength)),a||h<=p)do({cmd:d,size:h}=yield yield Te(v()));while(h<p)}while(!a)}finally{yield Te(b(t,s==="error"?u:null))}return yield Te(null);function b(I,A){return g=m=null,new Promise((L,T)=>{for(const[K,W]of I)r.off(K,W);try{const K=r.destroy;K&&K.call(r,A),A=void 0}catch(K){A=K||A}finally{A!=null?T(A):L()}})}})}var Vn;(function(r){r[r.V1=0]="V1",r[r.V2=1]="V2",r[r.V3=2]="V3",r[r.V4=3]="V4",r[r.V5=4]="V5"})(Vn||(Vn={}));var sr;(function(r){r[r.Sparse=0]="Sparse",r[r.Dense=1]="Dense"})(sr||(sr={}));var wn;(function(r){r[r.HALF=0]="HALF",r[r.SINGLE=1]="SINGLE",r[r.DOUBLE=2]="DOUBLE"})(wn||(wn={}));var ri;(function(r){r[r.DAY=0]="DAY",r[r.MILLISECOND=1]="MILLISECOND"})(ri||(ri={}));var qe;(function(r){r[r.SECOND=0]="SECOND",r[r.MILLISECOND=1]="MILLISECOND",r[r.MICROSECOND=2]="MICROSECOND",r[r.NANOSECOND=3]="NANOSECOND"})(qe||(qe={}));var ji;(function(r){r[r.YEAR_MONTH=0]="YEAR_MONTH",r[r.DAY_TIME=1]="DAY_TIME",r[r.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(ji||(ji={}));var st;(function(r){r[r.NONE=0]="NONE",r[r.Schema=1]="Schema",r[r.DictionaryBatch=2]="DictionaryBatch",r[r.RecordBatch=3]="RecordBatch",r[r.Tensor=4]="Tensor",r[r.SparseTensor=5]="SparseTensor"})(st||(st={}));var O;(function(r){r[r.NONE=0]="NONE",r[r.Null=1]="Null",r[r.Int=2]="Int",r[r.Float=3]="Float",r[r.Binary=4]="Binary",r[r.Utf8=5]="Utf8",r[r.Bool=6]="Bool",r[r.Decimal=7]="Decimal",r[r.Date=8]="Date",r[r.Time=9]="Time",r[r.Timestamp=10]="Timestamp",r[r.Interval=11]="Interval",r[r.List=12]="List",r[r.Struct=13]="Struct",r[r.Union=14]="Union",r[r.FixedSizeBinary=15]="FixedSizeBinary",r[r.FixedSizeList=16]="FixedSizeList",r[r.Map=17]="Map",r[r.Dictionary=-1]="Dictionary",r[r.Int8=-2]="Int8",r[r.Int16=-3]="Int16",r[r.Int32=-4]="Int32",r[r.Int64=-5]="Int64",r[r.Uint8=-6]="Uint8",r[r.Uint16=-7]="Uint16",r[r.Uint32=-8]="Uint32",r[r.Uint64=-9]="Uint64",r[r.Float16=-10]="Float16",r[r.Float32=-11]="Float32",r[r.Float64=-12]="Float64",r[r.DateDay=-13]="DateDay",r[r.DateMillisecond=-14]="DateMillisecond",r[r.TimestampSecond=-15]="TimestampSecond",r[r.TimestampMillisecond=-16]="TimestampMillisecond",r[r.TimestampMicrosecond=-17]="TimestampMicrosecond",r[r.TimestampNanosecond=-18]="TimestampNanosecond",r[r.TimeSecond=-19]="TimeSecond",r[r.TimeMillisecond=-20]="TimeMillisecond",r[r.TimeMicrosecond=-21]="TimeMicrosecond",r[r.TimeNanosecond=-22]="TimeNanosecond",r[r.DenseUnion=-23]="DenseUnion",r[r.SparseUnion=-24]="SparseUnion",r[r.IntervalDayTime=-25]="IntervalDayTime",r[r.IntervalYearMonth=-26]="IntervalYearMonth"})(O||(O={}));var Kr;(function(r){r[r.OFFSET=0]="OFFSET",r[r.DATA=1]="DATA",r[r.VALIDITY=2]="VALIDITY",r[r.TYPE=3]="TYPE"})(Kr||(Kr={}));const Mb=void 0;function Aa(r){if(r===null)return"null";if(r===Mb)return"undefined";switch(typeof r){case"number":return`${r}`;case"bigint":return`${r}`;case"string":return`"${r}"`}return typeof r[Symbol.toPrimitive]=="function"?r[Symbol.toPrimitive]("string"):ArrayBuffer.isView(r)?r instanceof BigInt64Array||r instanceof BigUint64Array?`[${[...r].map(e=>Aa(e))}]`:`[${r}]`:ArrayBuffer.isView(r)?`[${r}]`:JSON.stringify(r,(e,t)=>typeof t=="bigint"?`${t}`:t)}const Ab=Symbol.for("isArrowBigNum");function lr(r,...e){return e.length===0?Object.setPrototypeOf(ut(this.TypedArray,r),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(r,...e),this.constructor.prototype)}lr.prototype[Ab]=!0;lr.prototype.toJSON=function(){return`"${Na(this)}"`};lr.prototype.valueOf=function(){return Jg(this)};lr.prototype.toString=function(){return Na(this)};lr.prototype[Symbol.toPrimitive]=function(r="default"){switch(r){case"number":return Jg(this);case"string":return Na(this);case"default":return Pb(this)}return Na(this)};function fo(...r){return lr.apply(this,r)}function ho(...r){return lr.apply(this,r)}function Pa(...r){return lr.apply(this,r)}Object.setPrototypeOf(fo.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(ho.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Pa.prototype,Object.create(Uint32Array.prototype));Object.assign(fo.prototype,lr.prototype,{constructor:fo,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(ho.prototype,lr.prototype,{constructor:ho,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(Pa.prototype,lr.prototype,{constructor:Pa,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});function Jg(r){const{buffer:e,byteOffset:t,length:s,signed:a}=r,u=new BigUint64Array(e,t,s),d=a&&u.at(-1)&BigInt(1)<<BigInt(63);let h=BigInt(d?1:0),p=BigInt(0);if(d){for(const m of u)h+=~m*(BigInt(1)<<BigInt(32)*p++);h*=BigInt(-1)}else for(const m of u)h+=m*(BigInt(1)<<BigInt(32)*p++);return h}const Na=r=>{if(r.byteLength===8)return`${new r.BigIntArray(r.buffer,r.byteOffset,1)[0]}`;if(!r.signed)return nf(r);let e=new Uint16Array(r.buffer,r.byteOffset,r.byteLength/2);if(new Int16Array([e.at(-1)])[0]>=0)return nf(r);e=e.slice();let s=1;for(let u=0;u<e.length;u++){const d=e[u],h=~d+s;e[u]=h,s&=d===0?1:0}return`-${nf(e)}`},Pb=r=>r.byteLength===8?new r.BigIntArray(r.buffer,r.byteOffset,1)[0]:Na(r);function nf(r){let e="";const t=new Uint32Array(2);let s=new Uint16Array(r.buffer,r.byteOffset,r.byteLength/2);const a=new Uint32Array((s=new Uint16Array(s).reverse()).buffer);let u=-1;const d=s.length-1;do{for(t[0]=s[u=0];u<d;)s[u++]=t[1]=t[0]/10,t[0]=(t[0]-t[1]*10<<16)+s[u];s[u]=t[1]=t[0]/10,t[0]=t[0]-t[1]*10,e=`${t[0]}${e}`}while(a[0]||a[1]||a[2]||a[3]);return e??"0"}class Kf{static new(e,t){switch(t){case!0:return new fo(e);case!1:return new ho(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new fo(e)}return e.byteLength===16?new Pa(e):new ho(e)}static signed(e){return new fo(e)}static unsigned(e){return new ho(e)}static decimal(e){return new Pa(e)}constructor(e,t){return Kf.new(e,t)}}function or(r){if(typeof r=="bigint"&&(r<Number.MIN_SAFE_INTEGER||r>Number.MAX_SAFE_INTEGER))throw new TypeError(`${r} is not safe to convert to a number.`);return Number(r)}var Xg,Zg,ev,tv,nv,rv,iv,sv,ov,av,lv,uv,cv,dv,fv,hv,pv,yv,mv;class Re{static isNull(e){return(e==null?void 0:e.typeId)===O.Null}static isInt(e){return(e==null?void 0:e.typeId)===O.Int}static isFloat(e){return(e==null?void 0:e.typeId)===O.Float}static isBinary(e){return(e==null?void 0:e.typeId)===O.Binary}static isUtf8(e){return(e==null?void 0:e.typeId)===O.Utf8}static isBool(e){return(e==null?void 0:e.typeId)===O.Bool}static isDecimal(e){return(e==null?void 0:e.typeId)===O.Decimal}static isDate(e){return(e==null?void 0:e.typeId)===O.Date}static isTime(e){return(e==null?void 0:e.typeId)===O.Time}static isTimestamp(e){return(e==null?void 0:e.typeId)===O.Timestamp}static isInterval(e){return(e==null?void 0:e.typeId)===O.Interval}static isList(e){return(e==null?void 0:e.typeId)===O.List}static isStruct(e){return(e==null?void 0:e.typeId)===O.Struct}static isUnion(e){return(e==null?void 0:e.typeId)===O.Union}static isFixedSizeBinary(e){return(e==null?void 0:e.typeId)===O.FixedSizeBinary}static isFixedSizeList(e){return(e==null?void 0:e.typeId)===O.FixedSizeList}static isMap(e){return(e==null?void 0:e.typeId)===O.Map}static isDictionary(e){return(e==null?void 0:e.typeId)===O.Dictionary}static isDenseUnion(e){return Re.isUnion(e)&&e.mode===sr.Dense}static isSparseUnion(e){return Re.isUnion(e)&&e.mode===sr.Sparse}get typeId(){return O.NONE}}Xg=Symbol.toStringTag;Re[Xg]=(r=>(r.children=null,r.ArrayType=Array,r[Symbol.toStringTag]="DataType"))(Re.prototype);let zi=class extends Re{toString(){return"Null"}get typeId(){return O.Null}};Zg=Symbol.toStringTag;zi[Zg]=(r=>r[Symbol.toStringTag]="Null")(zi.prototype);class Vi extends Re{constructor(e,t){super(),this.isSigned=e,this.bitWidth=t}get typeId(){return O.Int}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}ev=Symbol.toStringTag;Vi[ev]=(r=>(r.isSigned=null,r.bitWidth=null,r[Symbol.toStringTag]="Int"))(Vi.prototype);class La extends Vi{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(La.prototype,"ArrayType",{value:Int32Array});class Ba extends Re{constructor(e){super(),this.precision=e}get typeId(){return O.Float}get ArrayType(){switch(this.precision){case wn.HALF:return Uint16Array;case wn.SINGLE:return Float32Array;case wn.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}tv=Symbol.toStringTag;Ba[tv]=(r=>(r.precision=null,r[Symbol.toStringTag]="Float"))(Ba.prototype);let xu=class extends Re{constructor(){super()}get typeId(){return O.Binary}toString(){return"Binary"}};nv=Symbol.toStringTag;xu[nv]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Binary"))(xu.prototype);let Du=class extends Re{constructor(){super()}get typeId(){return O.Utf8}toString(){return"Utf8"}};rv=Symbol.toStringTag;Du[rv]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Utf8"))(Du.prototype);let Cu=class extends Re{constructor(){super()}get typeId(){return O.Bool}toString(){return"Bool"}};iv=Symbol.toStringTag;Cu[iv]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Bool"))(Cu.prototype);let Ou=class extends Re{constructor(e,t,s=128){super(),this.scale=e,this.precision=t,this.bitWidth=s}get typeId(){return O.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};sv=Symbol.toStringTag;Ou[sv]=(r=>(r.scale=null,r.precision=null,r.ArrayType=Uint32Array,r[Symbol.toStringTag]="Decimal"))(Ou.prototype);class Ru extends Re{constructor(e){super(),this.unit=e}get typeId(){return O.Date}toString(){return`Date${(this.unit+1)*32}<${ri[this.unit]}>`}}ov=Symbol.toStringTag;Ru[ov]=(r=>(r.unit=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Date"))(Ru.prototype);class ka extends Re{constructor(e,t){super(),this.unit=e,this.bitWidth=t}get typeId(){return O.Time}toString(){return`Time${this.bitWidth}<${qe[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}av=Symbol.toStringTag;ka[av]=(r=>(r.unit=null,r.bitWidth=null,r[Symbol.toStringTag]="Time"))(ka.prototype);class Fu extends Re{constructor(e,t){super(),this.unit=e,this.timezone=t}get typeId(){return O.Timestamp}toString(){return`Timestamp<${qe[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}lv=Symbol.toStringTag;Fu[lv]=(r=>(r.unit=null,r.timezone=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Timestamp"))(Fu.prototype);class Tu extends Re{constructor(e){super(),this.unit=e}get typeId(){return O.Interval}toString(){return`Interval<${ji[this.unit]}>`}}uv=Symbol.toStringTag;Tu[uv]=(r=>(r.unit=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Interval"))(Tu.prototype);let Mu=class extends Re{constructor(e){super(),this.children=[e]}get typeId(){return O.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};cv=Symbol.toStringTag;Mu[cv]=(r=>(r.children=null,r[Symbol.toStringTag]="List"))(Mu.prototype);class on extends Re{constructor(e){super(),this.children=e}get typeId(){return O.Struct}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}dv=Symbol.toStringTag;on[dv]=(r=>(r.children=null,r[Symbol.toStringTag]="Struct"))(on.prototype);class Au extends Re{constructor(e,t,s){super(),this.mode=e,this.children=s,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((a,u,d)=>(a[u]=d)&&a||a,Object.create(null))}get typeId(){return O.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}}fv=Symbol.toStringTag;Au[fv]=(r=>(r.mode=null,r.typeIds=null,r.children=null,r.typeIdToChildIndex=null,r.ArrayType=Int8Array,r[Symbol.toStringTag]="Union"))(Au.prototype);let Pu=class extends Re{constructor(e){super(),this.byteWidth=e}get typeId(){return O.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};hv=Symbol.toStringTag;Pu[hv]=(r=>(r.byteWidth=null,r.ArrayType=Uint8Array,r[Symbol.toStringTag]="FixedSizeBinary"))(Pu.prototype);let Nu=class extends Re{constructor(e,t){super(),this.listSize=e,this.children=[t]}get typeId(){return O.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};pv=Symbol.toStringTag;Nu[pv]=(r=>(r.children=null,r.listSize=null,r[Symbol.toStringTag]="FixedSizeList"))(Nu.prototype);class Lu extends Re{constructor(e,t=!1){super(),this.children=[e],this.keysSorted=t}get typeId(){return O.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}yv=Symbol.toStringTag;Lu[yv]=(r=>(r.children=null,r.keysSorted=null,r[Symbol.toStringTag]="Map_"))(Lu.prototype);const Nb=(r=>()=>++r)(-1);class wo extends Re{constructor(e,t,s,a){super(),this.indices=t,this.dictionary=e,this.isOrdered=a||!1,this.id=s==null?Nb():or(s)}get typeId(){return O.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}mv=Symbol.toStringTag;wo[mv]=(r=>(r.id=null,r.indices=null,r.isOrdered=null,r.dictionary=null,r[Symbol.toStringTag]="Dictionary"))(wo.prototype);function qr(r){const e=r;switch(r.typeId){case O.Decimal:return r.bitWidth/32;case O.Timestamp:return 2;case O.Date:return 1+e.unit;case O.Interval:return 1+e.unit;case O.FixedSizeList:return e.listSize;case O.FixedSizeBinary:return e.byteWidth;default:return 1}}class Ve{visitMany(e,...t){return e.map((s,a)=>this.visit(s,...t.map(u=>u[a])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return Lb(this,e,t)}getVisitFnByTypeId(e,t=!0){return so(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}}function Lb(r,e,t=!0){return typeof e=="number"?so(r,e,t):typeof e=="string"&&e in O?so(r,O[e],t):e&&e instanceof Re?so(r,Om(e),t):e!=null&&e.type&&e.type instanceof Re?so(r,Om(e.type),t):so(r,O.NONE,t)}function so(r,e,t=!0){let s=null;switch(e){case O.Null:s=r.visitNull;break;case O.Bool:s=r.visitBool;break;case O.Int:s=r.visitInt;break;case O.Int8:s=r.visitInt8||r.visitInt;break;case O.Int16:s=r.visitInt16||r.visitInt;break;case O.Int32:s=r.visitInt32||r.visitInt;break;case O.Int64:s=r.visitInt64||r.visitInt;break;case O.Uint8:s=r.visitUint8||r.visitInt;break;case O.Uint16:s=r.visitUint16||r.visitInt;break;case O.Uint32:s=r.visitUint32||r.visitInt;break;case O.Uint64:s=r.visitUint64||r.visitInt;break;case O.Float:s=r.visitFloat;break;case O.Float16:s=r.visitFloat16||r.visitFloat;break;case O.Float32:s=r.visitFloat32||r.visitFloat;break;case O.Float64:s=r.visitFloat64||r.visitFloat;break;case O.Utf8:s=r.visitUtf8;break;case O.Binary:s=r.visitBinary;break;case O.FixedSizeBinary:s=r.visitFixedSizeBinary;break;case O.Date:s=r.visitDate;break;case O.DateDay:s=r.visitDateDay||r.visitDate;break;case O.DateMillisecond:s=r.visitDateMillisecond||r.visitDate;break;case O.Timestamp:s=r.visitTimestamp;break;case O.TimestampSecond:s=r.visitTimestampSecond||r.visitTimestamp;break;case O.TimestampMillisecond:s=r.visitTimestampMillisecond||r.visitTimestamp;break;case O.TimestampMicrosecond:s=r.visitTimestampMicrosecond||r.visitTimestamp;break;case O.TimestampNanosecond:s=r.visitTimestampNanosecond||r.visitTimestamp;break;case O.Time:s=r.visitTime;break;case O.TimeSecond:s=r.visitTimeSecond||r.visitTime;break;case O.TimeMillisecond:s=r.visitTimeMillisecond||r.visitTime;break;case O.TimeMicrosecond:s=r.visitTimeMicrosecond||r.visitTime;break;case O.TimeNanosecond:s=r.visitTimeNanosecond||r.visitTime;break;case O.Decimal:s=r.visitDecimal;break;case O.List:s=r.visitList;break;case O.Struct:s=r.visitStruct;break;case O.Union:s=r.visitUnion;break;case O.DenseUnion:s=r.visitDenseUnion||r.visitUnion;break;case O.SparseUnion:s=r.visitSparseUnion||r.visitUnion;break;case O.Dictionary:s=r.visitDictionary;break;case O.Interval:s=r.visitInterval;break;case O.IntervalDayTime:s=r.visitIntervalDayTime||r.visitInterval;break;case O.IntervalYearMonth:s=r.visitIntervalYearMonth||r.visitInterval;break;case O.FixedSizeList:s=r.visitFixedSizeList;break;case O.Map:s=r.visitMap;break}if(typeof s=="function")return s;if(!t)return()=>null;throw new Error(`Unrecognized type '${O[e]}'`)}function Om(r){switch(r.typeId){case O.Null:return O.Null;case O.Int:{const{bitWidth:e,isSigned:t}=r;switch(e){case 8:return t?O.Int8:O.Uint8;case 16:return t?O.Int16:O.Uint16;case 32:return t?O.Int32:O.Uint32;case 64:return t?O.Int64:O.Uint64}return O.Int}case O.Float:switch(r.precision){case wn.HALF:return O.Float16;case wn.SINGLE:return O.Float32;case wn.DOUBLE:return O.Float64}return O.Float;case O.Binary:return O.Binary;case O.Utf8:return O.Utf8;case O.Bool:return O.Bool;case O.Decimal:return O.Decimal;case O.Time:switch(r.unit){case qe.SECOND:return O.TimeSecond;case qe.MILLISECOND:return O.TimeMillisecond;case qe.MICROSECOND:return O.TimeMicrosecond;case qe.NANOSECOND:return O.TimeNanosecond}return O.Time;case O.Timestamp:switch(r.unit){case qe.SECOND:return O.TimestampSecond;case qe.MILLISECOND:return O.TimestampMillisecond;case qe.MICROSECOND:return O.TimestampMicrosecond;case qe.NANOSECOND:return O.TimestampNanosecond}return O.Timestamp;case O.Date:switch(r.unit){case ri.DAY:return O.DateDay;case ri.MILLISECOND:return O.DateMillisecond}return O.Date;case O.Interval:switch(r.unit){case ji.DAY_TIME:return O.IntervalDayTime;case ji.YEAR_MONTH:return O.IntervalYearMonth}return O.Interval;case O.Map:return O.Map;case O.List:return O.List;case O.Struct:return O.Struct;case O.Union:switch(r.mode){case sr.Dense:return O.DenseUnion;case sr.Sparse:return O.SparseUnion}return O.Union;case O.FixedSizeBinary:return O.FixedSizeBinary;case O.FixedSizeList:return O.FixedSizeList;case O.Dictionary:return O.Dictionary}throw new Error(`Unrecognized type '${O[r.typeId]}'`)}Ve.prototype.visitInt8=null;Ve.prototype.visitInt16=null;Ve.prototype.visitInt32=null;Ve.prototype.visitInt64=null;Ve.prototype.visitUint8=null;Ve.prototype.visitUint16=null;Ve.prototype.visitUint32=null;Ve.prototype.visitUint64=null;Ve.prototype.visitFloat16=null;Ve.prototype.visitFloat32=null;Ve.prototype.visitFloat64=null;Ve.prototype.visitDateDay=null;Ve.prototype.visitDateMillisecond=null;Ve.prototype.visitTimestampSecond=null;Ve.prototype.visitTimestampMillisecond=null;Ve.prototype.visitTimestampMicrosecond=null;Ve.prototype.visitTimestampNanosecond=null;Ve.prototype.visitTimeSecond=null;Ve.prototype.visitTimeMillisecond=null;Ve.prototype.visitTimeMicrosecond=null;Ve.prototype.visitTimeNanosecond=null;Ve.prototype.visitDenseUnion=null;Ve.prototype.visitSparseUnion=null;Ve.prototype.visitIntervalDayTime=null;Ve.prototype.visitIntervalYearMonth=null;const gv=new Float64Array(1),no=new Uint32Array(gv.buffer);function vv(r){const e=(r&31744)>>10,t=(r&1023)/1024,s=Math.pow(-1,(r&32768)>>15);switch(e){case 31:return s*(t?Number.NaN:1/0);case 0:return s*(t?6103515625e-14*t:0)}return s*Math.pow(2,e-15)*(1+t)}function Bb(r){if(r!==r)return 32256;gv[0]=r;const e=(no[1]&2147483648)>>16&65535;let t=no[1]&2146435072,s=0;return t>=1089470464?no[0]>0?t=31744:(t=(t&2080374784)>>16,s=(no[1]&1048575)>>10):t<=1056964608?(s=1048576+(no[1]&1048575),s=1048576+(s<<(t>>20)-998)>>21,t=0):(t=t-1056964608>>10,s=(no[1]&1048575)+512>>10),e|t|s&65535}class De extends Ve{}function Fe(r){return(e,t,s)=>{if(e.setValid(t,s!=null))return r(e,t,s)}}const kb=(r,e,t)=>{r[e]=Math.trunc(t/864e5)},qf=(r,e,t)=>{r[e]=Math.trunc(t%4294967296),r[e+1]=Math.trunc(t/4294967296)},Ub=(r,e,t)=>{r[e]=Math.trunc(t*1e3%4294967296),r[e+1]=Math.trunc(t*1e3/4294967296)},jb=(r,e,t)=>{r[e]=Math.trunc(t*1e6%4294967296),r[e+1]=Math.trunc(t*1e6/4294967296)},wv=(r,e,t,s)=>{if(t+1<e.length){const{[t]:a,[t+1]:u}=e;r.set(s.subarray(0,u-a),a)}},zb=({offset:r,values:e},t,s)=>{const a=r+t;s?e[a>>3]|=1<<a%8:e[a>>3]&=~(1<<a%8)},oi=({values:r},e,t)=>{r[e]=t},Yf=({values:r},e,t)=>{r[e]=t},Sv=({values:r},e,t)=>{r[e]=Bb(t)},Vb=(r,e,t)=>{switch(r.type.precision){case wn.HALF:return Sv(r,e,t);case wn.SINGLE:case wn.DOUBLE:return Yf(r,e,t)}},_v=({values:r},e,t)=>{kb(r,e,t.valueOf())},bv=({values:r},e,t)=>{qf(r,e*2,t.valueOf())},$b=({stride:r,values:e},t,s)=>{e.set(s.subarray(0,r),r*t)},Wb=({values:r,valueOffsets:e},t,s)=>wv(r,e,t,s),Qb=({values:r,valueOffsets:e},t,s)=>{wv(r,e,t,$f(s))},Hb=(r,e,t)=>{r.type.unit===ri.DAY?_v(r,e,t):bv(r,e,t)},Iv=({values:r},e,t)=>qf(r,e*2,t/1e3),Ev=({values:r},e,t)=>qf(r,e*2,t),xv=({values:r},e,t)=>Ub(r,e*2,t),Dv=({values:r},e,t)=>jb(r,e*2,t),Kb=(r,e,t)=>{switch(r.type.unit){case qe.SECOND:return Iv(r,e,t);case qe.MILLISECOND:return Ev(r,e,t);case qe.MICROSECOND:return xv(r,e,t);case qe.NANOSECOND:return Dv(r,e,t)}},Cv=({values:r},e,t)=>{r[e]=t},Ov=({values:r},e,t)=>{r[e]=t},Rv=({values:r},e,t)=>{r[e]=t},Fv=({values:r},e,t)=>{r[e]=t},qb=(r,e,t)=>{switch(r.type.unit){case qe.SECOND:return Cv(r,e,t);case qe.MILLISECOND:return Ov(r,e,t);case qe.MICROSECOND:return Rv(r,e,t);case qe.NANOSECOND:return Fv(r,e,t)}},Yb=({values:r,stride:e},t,s)=>{r.set(s.subarray(0,e),e*t)},Gb=(r,e,t)=>{const s=r.children[0],a=r.valueOffsets,u=$n.getVisitFn(s);if(Array.isArray(t))for(let d=-1,h=a[e],p=a[e+1];h<p;)u(s,h++,t[++d]);else for(let d=-1,h=a[e],p=a[e+1];h<p;)u(s,h++,t.get(++d))},Jb=(r,e,t)=>{const s=r.children[0],{valueOffsets:a}=r,u=$n.getVisitFn(s);let{[e]:d,[e+1]:h}=a;const p=t instanceof Map?t.entries():Object.entries(t);for(const m of p)if(u(s,d,m),++d>=h)break},Xb=(r,e)=>(t,s,a,u)=>s&&t(s,r,e[u]),Zb=(r,e)=>(t,s,a,u)=>s&&t(s,r,e.get(u)),eI=(r,e)=>(t,s,a,u)=>s&&t(s,r,e.get(a.name)),tI=(r,e)=>(t,s,a,u)=>s&&t(s,r,e[a.name]),nI=(r,e,t)=>{const s=r.type.children.map(u=>$n.getVisitFn(u.type)),a=t instanceof Map?eI(e,t):t instanceof ot?Zb(e,t):Array.isArray(t)?Xb(e,t):tI(e,t);r.type.children.forEach((u,d)=>a(s[d],r.children[d],u,d))},rI=(r,e,t)=>{r.type.mode===sr.Dense?Tv(r,e,t):Mv(r,e,t)},Tv=(r,e,t)=>{const s=r.type.typeIdToChildIndex[r.typeIds[e]],a=r.children[s];$n.visit(a,r.valueOffsets[e],t)},Mv=(r,e,t)=>{const s=r.type.typeIdToChildIndex[r.typeIds[e]],a=r.children[s];$n.visit(a,e,t)},iI=(r,e,t)=>{var s;(s=r.dictionary)===null||s===void 0||s.set(r.values[e],t)},sI=(r,e,t)=>{r.type.unit===ji.DAY_TIME?Av(r,e,t):Pv(r,e,t)},Av=({values:r},e,t)=>{r.set(t.subarray(0,2),2*e)},Pv=({values:r},e,t)=>{r[e]=t[0]*12+t[1]%12},oI=(r,e,t)=>{const{stride:s}=r,a=r.children[0],u=$n.getVisitFn(a);if(Array.isArray(t))for(let d=-1,h=e*s;++d<s;)u(a,h+d,t[d]);else for(let d=-1,h=e*s;++d<s;)u(a,h+d,t.get(d))};De.prototype.visitBool=Fe(zb);De.prototype.visitInt=Fe(oi);De.prototype.visitInt8=Fe(oi);De.prototype.visitInt16=Fe(oi);De.prototype.visitInt32=Fe(oi);De.prototype.visitInt64=Fe(oi);De.prototype.visitUint8=Fe(oi);De.prototype.visitUint16=Fe(oi);De.prototype.visitUint32=Fe(oi);De.prototype.visitUint64=Fe(oi);De.prototype.visitFloat=Fe(Vb);De.prototype.visitFloat16=Fe(Sv);De.prototype.visitFloat32=Fe(Yf);De.prototype.visitFloat64=Fe(Yf);De.prototype.visitUtf8=Fe(Qb);De.prototype.visitBinary=Fe(Wb);De.prototype.visitFixedSizeBinary=Fe($b);De.prototype.visitDate=Fe(Hb);De.prototype.visitDateDay=Fe(_v);De.prototype.visitDateMillisecond=Fe(bv);De.prototype.visitTimestamp=Fe(Kb);De.prototype.visitTimestampSecond=Fe(Iv);De.prototype.visitTimestampMillisecond=Fe(Ev);De.prototype.visitTimestampMicrosecond=Fe(xv);De.prototype.visitTimestampNanosecond=Fe(Dv);De.prototype.visitTime=Fe(qb);De.prototype.visitTimeSecond=Fe(Cv);De.prototype.visitTimeMillisecond=Fe(Ov);De.prototype.visitTimeMicrosecond=Fe(Rv);De.prototype.visitTimeNanosecond=Fe(Fv);De.prototype.visitDecimal=Fe(Yb);De.prototype.visitList=Fe(Gb);De.prototype.visitStruct=Fe(nI);De.prototype.visitUnion=Fe(rI);De.prototype.visitDenseUnion=Fe(Tv);De.prototype.visitSparseUnion=Fe(Mv);De.prototype.visitDictionary=Fe(iI);De.prototype.visitInterval=Fe(sI);De.prototype.visitIntervalDayTime=Fe(Av);De.prototype.visitIntervalYearMonth=Fe(Pv);De.prototype.visitFixedSizeList=Fe(oI);De.prototype.visitMap=Fe(Jb);const $n=new De,tr=Symbol.for("parent"),po=Symbol.for("rowIndex");class Gf{constructor(e,t){return this[tr]=e,this[po]=t,new Proxy(this,new lI)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[po],t=this[tr],s=t.type.children,a={};for(let u=-1,d=s.length;++u<d;)a[s[u].name]=Sn.visit(t.children[u],e);return a}toString(){return`{${[...this].map(([e,t])=>`${Aa(e)}: ${Aa(t)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new aI(this[tr],this[po])}}class aI{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,Sn.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Gf.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[tr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[po]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class lI{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[tr].type.children.map(t=>t.name)}has(e,t){return e[tr].type.children.findIndex(s=>s.name===t)!==-1}getOwnPropertyDescriptor(e,t){if(e[tr].type.children.findIndex(s=>s.name===t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const s=e[tr].type.children.findIndex(a=>a.name===t);if(s!==-1){const a=Sn.visit(e[tr].children[s],e[po]);return Reflect.set(e,t,a),a}}set(e,t,s){const a=e[tr].type.children.findIndex(u=>u.name===t);return a!==-1?($n.visit(e[tr].children[a],e[po],s),Reflect.set(e,t,s)):Reflect.has(e,t)||typeof t=="symbol"?Reflect.set(e,t,s):!1}}class _e extends Ve{}function Ce(r){return(e,t)=>e.getValid(t)?r(e,t):null}const uI=(r,e)=>864e5*r[e],Jf=(r,e)=>4294967296*r[e+1]+(r[e]>>>0),cI=(r,e)=>4294967296*(r[e+1]/1e3)+(r[e]>>>0)/1e3,dI=(r,e)=>4294967296*(r[e+1]/1e6)+(r[e]>>>0)/1e6,Nv=r=>new Date(r),fI=(r,e)=>Nv(uI(r,e)),hI=(r,e)=>Nv(Jf(r,e)),pI=(r,e)=>null,Lv=(r,e,t)=>{if(t+1>=e.length)return null;const s=e[t],a=e[t+1];return r.subarray(s,a)},yI=({offset:r,values:e},t)=>{const s=r+t;return(e[s>>3]&1<<s%8)!==0},Bv=({values:r},e)=>fI(r,e),kv=({values:r},e)=>hI(r,e*2),Hi=({stride:r,values:e},t)=>e[r*t],mI=({stride:r,values:e},t)=>vv(e[r*t]),Uv=({values:r},e)=>r[e],gI=({stride:r,values:e},t)=>e.subarray(r*t,r*(t+1)),vI=({values:r,valueOffsets:e},t)=>Lv(r,e,t),wI=({values:r,valueOffsets:e},t)=>{const s=Lv(r,e,t);return s!==null?vf(s):null},SI=({values:r},e)=>r[e],_I=({type:r,values:e},t)=>r.precision!==wn.HALF?e[t]:vv(e[t]),bI=(r,e)=>r.type.unit===ri.DAY?Bv(r,e):kv(r,e),jv=({values:r},e)=>1e3*Jf(r,e*2),zv=({values:r},e)=>Jf(r,e*2),Vv=({values:r},e)=>cI(r,e*2),$v=({values:r},e)=>dI(r,e*2),II=(r,e)=>{switch(r.type.unit){case qe.SECOND:return jv(r,e);case qe.MILLISECOND:return zv(r,e);case qe.MICROSECOND:return Vv(r,e);case qe.NANOSECOND:return $v(r,e)}},Wv=({values:r},e)=>r[e],Qv=({values:r},e)=>r[e],Hv=({values:r},e)=>r[e],Kv=({values:r},e)=>r[e],EI=(r,e)=>{switch(r.type.unit){case qe.SECOND:return Wv(r,e);case qe.MILLISECOND:return Qv(r,e);case qe.MICROSECOND:return Hv(r,e);case qe.NANOSECOND:return Kv(r,e)}},xI=({values:r,stride:e},t)=>Kf.decimal(r.subarray(e*t,e*(t+1))),DI=(r,e)=>{const{valueOffsets:t,stride:s,children:a}=r,{[e*s]:u,[e*s+1]:d}=t,p=a[0].slice(u,d-u);return new ot([p])},CI=(r,e)=>{const{valueOffsets:t,children:s}=r,{[e]:a,[e+1]:u}=t,d=s[0];return new Xf(d.slice(a,u-a))},OI=(r,e)=>new Gf(r,e),RI=(r,e)=>r.type.mode===sr.Dense?qv(r,e):Yv(r,e),qv=(r,e)=>{const t=r.type.typeIdToChildIndex[r.typeIds[e]],s=r.children[t];return Sn.visit(s,r.valueOffsets[e])},Yv=(r,e)=>{const t=r.type.typeIdToChildIndex[r.typeIds[e]],s=r.children[t];return Sn.visit(s,e)},FI=(r,e)=>{var t;return(t=r.dictionary)===null||t===void 0?void 0:t.get(r.values[e])},TI=(r,e)=>r.type.unit===ji.DAY_TIME?Gv(r,e):Jv(r,e),Gv=({values:r},e)=>r.subarray(2*e,2*(e+1)),Jv=({values:r},e)=>{const t=r[e],s=new Int32Array(2);return s[0]=Math.trunc(t/12),s[1]=Math.trunc(t%12),s},MI=(r,e)=>{const{stride:t,children:s}=r,u=s[0].slice(e*t,t);return new ot([u])};_e.prototype.visitNull=Ce(pI);_e.prototype.visitBool=Ce(yI);_e.prototype.visitInt=Ce(SI);_e.prototype.visitInt8=Ce(Hi);_e.prototype.visitInt16=Ce(Hi);_e.prototype.visitInt32=Ce(Hi);_e.prototype.visitInt64=Ce(Uv);_e.prototype.visitUint8=Ce(Hi);_e.prototype.visitUint16=Ce(Hi);_e.prototype.visitUint32=Ce(Hi);_e.prototype.visitUint64=Ce(Uv);_e.prototype.visitFloat=Ce(_I);_e.prototype.visitFloat16=Ce(mI);_e.prototype.visitFloat32=Ce(Hi);_e.prototype.visitFloat64=Ce(Hi);_e.prototype.visitUtf8=Ce(wI);_e.prototype.visitBinary=Ce(vI);_e.prototype.visitFixedSizeBinary=Ce(gI);_e.prototype.visitDate=Ce(bI);_e.prototype.visitDateDay=Ce(Bv);_e.prototype.visitDateMillisecond=Ce(kv);_e.prototype.visitTimestamp=Ce(II);_e.prototype.visitTimestampSecond=Ce(jv);_e.prototype.visitTimestampMillisecond=Ce(zv);_e.prototype.visitTimestampMicrosecond=Ce(Vv);_e.prototype.visitTimestampNanosecond=Ce($v);_e.prototype.visitTime=Ce(EI);_e.prototype.visitTimeSecond=Ce(Wv);_e.prototype.visitTimeMillisecond=Ce(Qv);_e.prototype.visitTimeMicrosecond=Ce(Hv);_e.prototype.visitTimeNanosecond=Ce(Kv);_e.prototype.visitDecimal=Ce(xI);_e.prototype.visitList=Ce(DI);_e.prototype.visitStruct=Ce(OI);_e.prototype.visitUnion=Ce(RI);_e.prototype.visitDenseUnion=Ce(qv);_e.prototype.visitSparseUnion=Ce(Yv);_e.prototype.visitDictionary=Ce(FI);_e.prototype.visitInterval=Ce(TI);_e.prototype.visitIntervalDayTime=Ce(Gv);_e.prototype.visitIntervalYearMonth=Ce(Jv);_e.prototype.visitFixedSizeList=Ce(MI);_e.prototype.visitMap=Ce(CI);const Sn=new _e,Er=Symbol.for("keys"),yo=Symbol.for("vals");class Xf{constructor(e){return this[Er]=new ot([e.children[0]]).memoize(),this[yo]=e.children[1],new Proxy(this,new PI)}[Symbol.iterator](){return new AI(this[Er],this[yo])}get size(){return this[Er].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Er],t=this[yo],s={};for(let a=-1,u=e.length;++a<u;)s[e.get(a)]=Sn.visit(t,a);return s}toString(){return`{${[...this].map(([e,t])=>`${Aa(e)}: ${Aa(t)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class AI{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){const e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Sn.visit(this.vals,e)]})}}class PI{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Er].toArray().map(String)}has(e,t){return e[Er].includes(t)}getOwnPropertyDescriptor(e,t){if(e[Er].indexOf(t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const s=e[Er].indexOf(t);if(s!==-1){const a=Sn.visit(Reflect.get(e,yo),s);return Reflect.set(e,t,a),a}}set(e,t,s){const a=e[Er].indexOf(t);return a!==-1?($n.visit(Reflect.get(e,yo),a,s),Reflect.set(e,t,s)):Reflect.has(e,t)?Reflect.set(e,t,s):!1}}Object.defineProperties(Xf.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Er]:{writable:!0,enumerable:!1,configurable:!1,value:null},[yo]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let Rm;function Xv(r,e,t,s){const{length:a=0}=r;let u=typeof e!="number"?0:e,d=typeof t!="number"?a:t;return u<0&&(u=(u%a+a)%a),d<0&&(d=(d%a+a)%a),d<u&&(Rm=u,u=d,d=Rm),d>a&&(d=a),s?s(r,u,d):[u,d]}const Fm=r=>r!==r;function Oo(r){if(typeof r!=="object"||r===null)return Fm(r)?Fm:t=>t===r;if(r instanceof Date){const t=r.valueOf();return s=>s instanceof Date?s.valueOf()===t:!1}return ArrayBuffer.isView(r)?t=>t?Db(r,t):!1:r instanceof Map?LI(r):Array.isArray(r)?NI(r):r instanceof ot?BI(r):kI(r,!0)}function NI(r){const e=[];for(let t=-1,s=r.length;++t<s;)e[t]=Oo(r[t]);return sc(e)}function LI(r){let e=-1;const t=[];for(const s of r.values())t[++e]=Oo(s);return sc(t)}function BI(r){const e=[];for(let t=-1,s=r.length;++t<s;)e[t]=Oo(r.get(t));return sc(e)}function kI(r,e=!1){const t=Object.keys(r);if(!e&&t.length===0)return()=>!1;const s=[];for(let a=-1,u=t.length;++a<u;)s[a]=Oo(r[t[a]]);return sc(s,t)}function sc(r,e){return t=>{if(!t||typeof t!="object")return!1;switch(t.constructor){case Array:return UI(r,t);case Map:return Tm(r,t,t.keys());case Xf:case Gf:case Object:case void 0:return Tm(r,t,e||Object.keys(t))}return t instanceof ot?jI(r,t):!1}}function UI(r,e){const t=r.length;if(e.length!==t)return!1;for(let s=-1;++s<t;)if(!r[s](e[s]))return!1;return!0}function jI(r,e){const t=r.length;if(e.length!==t)return!1;for(let s=-1;++s<t;)if(!r[s](e.get(s)))return!1;return!0}function Tm(r,e,t){const s=t[Symbol.iterator](),a=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),u=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]();let d=0;const h=r.length;let p=u.next(),m=s.next(),g=a.next();for(;d<h&&!m.done&&!g.done&&!p.done&&!(m.value!==g.value||!r[d](p.value));++d,m=s.next(),g=a.next(),p=u.next());return d===h&&m.done&&g.done&&p.done?!0:(s.return&&s.return(),a.return&&a.return(),u.return&&u.return(),!1)}function Zv(r,e,t,s){return(t&1<<s)!==0}function zI(r,e,t,s){return(t&1<<s)>>s}function VI(r,e,t){const s=t.byteLength+7&-8;if(r>0||t.byteLength<s){const a=new Uint8Array(s);return a.set(r%8===0?t.subarray(r>>3):_f(new Zf(t,r,e,null,Zv)).subarray(0,s)),a}return t}function _f(r){const e=[];let t=0,s=0,a=0;for(const d of r)d&&(a|=1<<s),++s===8&&(e[t++]=a,a=s=0);(t===0||s>0)&&(e[t++]=a);const u=new Uint8Array(e.length+7&-8);return u.set(e),u}class Zf{constructor(e,t,s,a,u){this.bytes=e,this.length=s,this.context=a,this.get=u,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function bf(r,e,t){if(t-e<=0)return 0;if(t-e<8){let u=0;for(const d of new Zf(r,e,t-e,r,zI))u+=d;return u}const s=t>>3<<3,a=e+(e%8===0?0:8-e%8);return bf(r,e,a)+bf(r,s,t)+$I(r,a>>3,s-a>>3)}function $I(r,e,t){let s=0,a=Math.trunc(e);const u=new DataView(r.buffer,r.byteOffset,r.byteLength),d=t===void 0?r.byteLength:a+t;for(;d-a>=4;)s+=rf(u.getUint32(a)),a+=4;for(;d-a>=2;)s+=rf(u.getUint16(a)),a+=2;for(;d-a>=1;)s+=rf(u.getUint8(a)),a+=1;return s}function rf(r){let e=Math.trunc(r);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}const WI=-1;let It=class If{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0;const{valueOffsets:t,values:s,nullBitmap:a,typeIds:u}=this;return t&&(e+=t.byteLength),s&&(e+=s.byteLength),a&&(e+=a.byteLength),u&&(e+=u.byteLength),this.children.reduce((d,h)=>d+h.byteLength,e)}get nullCount(){let e=this._nullCount,t;return e<=WI&&(t=this.nullBitmap)&&(this._nullCount=e=this.length-bf(t,this.offset,this.offset+this.length)),e}constructor(e,t,s,a,u,d=[],h){this.type=e,this.children=d,this.dictionary=h,this.offset=Math.floor(Math.max(t||0,0)),this.length=Math.floor(Math.max(s||0,0)),this._nullCount=Math.floor(Math.max(a||0,-1));let p;u instanceof If?(this.stride=u.stride,this.values=u.values,this.typeIds=u.typeIds,this.nullBitmap=u.nullBitmap,this.valueOffsets=u.valueOffsets):(this.stride=qr(e),u&&((p=u[0])&&(this.valueOffsets=p),(p=u[1])&&(this.values=p),(p=u[2])&&(this.nullBitmap=p),(p=u[3])&&(this.typeIds=p))),this.nullable=this._nullCount!==0&&this.nullBitmap&&this.nullBitmap.byteLength>0}getValid(e){if(this.nullable&&this.nullCount>0){const t=this.offset+e;return(this.nullBitmap[t>>3]&1<<t%8)!==0}return!0}setValid(e,t){if(!this.nullable)return t;if(!this.nullBitmap||this.nullBitmap.byteLength<=e>>3){const{nullBitmap:p}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:p,_nullCount:0})}const{nullBitmap:s,offset:a}=this,u=a+e>>3,d=(a+e)%8,h=s[u]>>d&1;return t?h===0&&(s[u]|=1<<d,this._nullCount=this.nullCount+1):h===1&&(s[u]&=~(1<<d),this._nullCount=this.nullCount-1),t}clone(e=this.type,t=this.offset,s=this.length,a=this._nullCount,u=this,d=this.children){return new If(e,t,s,a,u,d,this.dictionary)}slice(e,t){const{stride:s,typeId:a,children:u}=this,d=+(this._nullCount===0)-1,h=a===16?s:1,p=this._sliceBuffers(e,t,s,a);return this.clone(this.type,this.offset+e,t,d,p,u.length===0||this.valueOffsets?u:this._sliceChildren(u,h*e,h*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===O.Null)return this.clone(this.type,0,e,0);const{length:t,nullCount:s}=this,a=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);a[t>>3]=(1<<t-(t&-8))-1,s>0&&a.set(VI(this.offset,t,this.nullBitmap),0);const u=this.buffers;return u[Kr.VALIDITY]=a,this.clone(this.type,0,e,s+(e-t),u)}_sliceBuffers(e,t,s,a){let u;const{buffers:d}=this;return(u=d[Kr.TYPE])&&(d[Kr.TYPE]=u.subarray(e,e+t)),(u=d[Kr.OFFSET])&&(d[Kr.OFFSET]=u.subarray(e,e+t+1))||(u=d[Kr.DATA])&&(d[Kr.DATA]=a===6?u:u.subarray(s*e,s*(e+t))),d}_sliceChildren(e,t,s){return e.map(a=>a.slice(t,s))}};It.prototype.children=Object.freeze([]);class Oa extends Ve{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){const{["type"]:t,["offset"]:s=0,["length"]:a=0}=e;return new It(t,s,a,0)}visitBool(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length>>3,["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitInt(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length,["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitFloat(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length,["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitUtf8(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.data),u=Ge(e.nullBitmap),d=_a(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new It(t,s,h,p,[d,a,u])}visitBinary(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.data),u=Ge(e.nullBitmap),d=_a(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new It(t,s,h,p,[d,a,u])}visitFixedSizeBinary(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/qr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitDate(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/qr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitTimestamp(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/qr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitTime(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/qr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitDecimal(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/qr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitList(e){const{["type"]:t,["offset"]:s=0,["child"]:a}=e,u=Ge(e.nullBitmap),d=_a(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new It(t,s,h,p,[d,void 0,u],[a])}visitStruct(e){const{["type"]:t,["offset"]:s=0,["children"]:a=[]}=e,u=Ge(e.nullBitmap),{length:d=a.reduce((p,{length:m})=>Math.max(p,m),0),nullCount:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,void 0,u],a)}visitUnion(e){const{["type"]:t,["offset"]:s=0,["children"]:a=[]}=e,u=Ge(e.nullBitmap),d=ut(t.ArrayType,e.typeIds),{["length"]:h=d.length,["nullCount"]:p=e.nullBitmap?-1:0}=e;if(Re.isSparseUnion(t))return new It(t,s,h,p,[void 0,void 0,u,d],a);const m=_a(e.valueOffsets);return new It(t,s,h,p,[m,void 0,u,d],a)}visitDictionary(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.indices.ArrayType,e.data),{["dictionary"]:d=new ot([new Oa().visit({type:t.dictionary})])}=e,{["length"]:h=u.length,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new It(t,s,h,p,[void 0,u,a],[],d)}visitInterval(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/qr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitFixedSizeList(e){const{["type"]:t,["offset"]:s=0,["child"]:a=new Oa().visit({type:t.valueType})}=e,u=Ge(e.nullBitmap),{["length"]:d=a.length/qr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,void 0,u],[a])}visitMap(e){const{["type"]:t,["offset"]:s=0,["child"]:a=new Oa().visit({type:t.childType})}=e,u=Ge(e.nullBitmap),d=_a(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new It(t,s,h,p,[d,void 0,u],[a])}}function ke(r){return new Oa().visit(r)}class Mm{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function e0(r){return r.reduce((e,t)=>e+t.nullCount,0)}function t0(r){return r.reduce((e,t,s)=>(e[s+1]=e[s]+t.length,e),new Uint32Array(r.length+1))}function n0(r,e,t,s){const a=[];for(let u=-1,d=r.length;++u<d;){const h=r[u],p=e[u],{length:m}=h;if(p>=s)break;if(t>=p+m)continue;if(p>=t&&p+m<=s){a.push(h);continue}const g=Math.max(0,t-p),v=Math.min(s-p,m);a.push(h.slice(g,v-g))}return a.length===0&&a.push(r[0].slice(0,0)),a}function eh(r,e,t,s){let a=0,u=0,d=e.length-1;do{if(a>=d-1)return t<e[d]?s(r,a,t-e[a]):null;u=a+Math.trunc((d-a)*.5),t<e[u]?d=u:a=u}while(a<d)}function th(r,e){return r.getValid(e)}function mo(r){function e(t,s,a){return r(t[s],a)}return function(t){const s=this.data;return eh(s,this._offsets,t,e)}}function r0(r){let e;function t(s,a,u){return r(s[a],u,e)}return function(s,a){const u=this.data;e=a;const d=eh(u,this._offsets,s,t);return e=void 0,d}}function i0(r){let e;function t(s,a,u){let d=u,h=0,p=0;for(let m=a-1,g=s.length;++m<g;){const v=s[m];if(~(h=r(v,e,d)))return p+h;d=0,p+=v.length}return-1}return function(s,a){e=s;const u=this.data,d=typeof a!="number"?t(u,0,0):eh(u,this._offsets,a,t);return e=void 0,d}}class be extends Ve{}function QI(r,e){return e===null&&r.length>0?0:-1}function HI(r,e){const{nullBitmap:t}=r;if(!t||r.nullCount<=0)return-1;let s=0;for(const a of new Zf(t,r.offset+(e||0),r.length,t,Zv)){if(!a)return s;++s}return-1}function Ae(r,e,t){if(e===void 0)return-1;if(e===null)return HI(r,t);const s=Sn.getVisitFn(r),a=Oo(e);for(let u=(t||0)-1,d=r.length;++u<d;)if(a(s(r,u)))return u;return-1}function s0(r,e,t){const s=Sn.getVisitFn(r),a=Oo(e);for(let u=(t||0)-1,d=r.length;++u<d;)if(a(s(r,u)))return u;return-1}be.prototype.visitNull=QI;be.prototype.visitBool=Ae;be.prototype.visitInt=Ae;be.prototype.visitInt8=Ae;be.prototype.visitInt16=Ae;be.prototype.visitInt32=Ae;be.prototype.visitInt64=Ae;be.prototype.visitUint8=Ae;be.prototype.visitUint16=Ae;be.prototype.visitUint32=Ae;be.prototype.visitUint64=Ae;be.prototype.visitFloat=Ae;be.prototype.visitFloat16=Ae;be.prototype.visitFloat32=Ae;be.prototype.visitFloat64=Ae;be.prototype.visitUtf8=Ae;be.prototype.visitBinary=Ae;be.prototype.visitFixedSizeBinary=Ae;be.prototype.visitDate=Ae;be.prototype.visitDateDay=Ae;be.prototype.visitDateMillisecond=Ae;be.prototype.visitTimestamp=Ae;be.prototype.visitTimestampSecond=Ae;be.prototype.visitTimestampMillisecond=Ae;be.prototype.visitTimestampMicrosecond=Ae;be.prototype.visitTimestampNanosecond=Ae;be.prototype.visitTime=Ae;be.prototype.visitTimeSecond=Ae;be.prototype.visitTimeMillisecond=Ae;be.prototype.visitTimeMicrosecond=Ae;be.prototype.visitTimeNanosecond=Ae;be.prototype.visitDecimal=Ae;be.prototype.visitList=Ae;be.prototype.visitStruct=Ae;be.prototype.visitUnion=Ae;be.prototype.visitDenseUnion=s0;be.prototype.visitSparseUnion=s0;be.prototype.visitDictionary=Ae;be.prototype.visitInterval=Ae;be.prototype.visitIntervalDayTime=Ae;be.prototype.visitIntervalYearMonth=Ae;be.prototype.visitFixedSizeList=Ae;be.prototype.visitMap=Ae;const Bu=new be;class Ie extends Ve{}function Oe(r){const{type:e}=r;if(r.nullCount===0&&r.stride===1&&(e.typeId===O.Timestamp||e instanceof Vi&&e.bitWidth!==64||e instanceof ka&&e.bitWidth!==64||e instanceof Ba&&e.precision!==wn.HALF))return new Mm(r.data.length,s=>{const a=r.data[s];return a.values.subarray(0,a.length)[Symbol.iterator]()});let t=0;return new Mm(r.data.length,s=>{const u=r.data[s].length,d=r.slice(t,t+u);return t+=u,new KI(d)})}class KI{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}Ie.prototype.visitNull=Oe;Ie.prototype.visitBool=Oe;Ie.prototype.visitInt=Oe;Ie.prototype.visitInt8=Oe;Ie.prototype.visitInt16=Oe;Ie.prototype.visitInt32=Oe;Ie.prototype.visitInt64=Oe;Ie.prototype.visitUint8=Oe;Ie.prototype.visitUint16=Oe;Ie.prototype.visitUint32=Oe;Ie.prototype.visitUint64=Oe;Ie.prototype.visitFloat=Oe;Ie.prototype.visitFloat16=Oe;Ie.prototype.visitFloat32=Oe;Ie.prototype.visitFloat64=Oe;Ie.prototype.visitUtf8=Oe;Ie.prototype.visitBinary=Oe;Ie.prototype.visitFixedSizeBinary=Oe;Ie.prototype.visitDate=Oe;Ie.prototype.visitDateDay=Oe;Ie.prototype.visitDateMillisecond=Oe;Ie.prototype.visitTimestamp=Oe;Ie.prototype.visitTimestampSecond=Oe;Ie.prototype.visitTimestampMillisecond=Oe;Ie.prototype.visitTimestampMicrosecond=Oe;Ie.prototype.visitTimestampNanosecond=Oe;Ie.prototype.visitTime=Oe;Ie.prototype.visitTimeSecond=Oe;Ie.prototype.visitTimeMillisecond=Oe;Ie.prototype.visitTimeMicrosecond=Oe;Ie.prototype.visitTimeNanosecond=Oe;Ie.prototype.visitDecimal=Oe;Ie.prototype.visitList=Oe;Ie.prototype.visitStruct=Oe;Ie.prototype.visitUnion=Oe;Ie.prototype.visitDenseUnion=Oe;Ie.prototype.visitSparseUnion=Oe;Ie.prototype.visitDictionary=Oe;Ie.prototype.visitInterval=Oe;Ie.prototype.visitIntervalDayTime=Oe;Ie.prototype.visitIntervalYearMonth=Oe;Ie.prototype.visitFixedSizeList=Oe;Ie.prototype.visitMap=Oe;const nh=new Ie,qI=(r,e)=>r+e;class Ki extends Ve{visitNull(e,t){return 0}visitInt(e,t){return e.type.bitWidth/8}visitFloat(e,t){return e.type.ArrayType.BYTES_PER_ELEMENT}visitBool(e,t){return 1/8}visitDecimal(e,t){return e.type.bitWidth/8}visitDate(e,t){return(e.type.unit+1)*4}visitTime(e,t){return e.type.bitWidth/8}visitTimestamp(e,t){return e.type.unit===qe.SECOND?4:8}visitInterval(e,t){return(e.type.unit+1)*4}visitStruct(e,t){return e.children.reduce((s,a)=>s+Ar.visit(a,t),0)}visitFixedSizeBinary(e,t){return e.type.byteWidth}visitMap(e,t){return 8+e.children.reduce((s,a)=>s+Ar.visit(a,t),0)}visitDictionary(e,t){var s;return e.type.indices.bitWidth/8+(((s=e.dictionary)===null||s===void 0?void 0:s.getByteLength(e.values[t]))||0)}}const YI=({valueOffsets:r},e)=>8+(r[e+1]-r[e]),GI=({valueOffsets:r},e)=>8+(r[e+1]-r[e]),JI=({valueOffsets:r,stride:e,children:t},s)=>{const a=t[0],{[s*e]:u}=r,{[s*e+1]:d}=r,h=Ar.getVisitFn(a.type),p=a.slice(u,d-u);let m=8;for(let g=-1,v=d-u;++g<v;)m+=h(p,g);return m},XI=({stride:r,children:e},t)=>{const s=e[0],a=s.slice(t*r,r),u=Ar.getVisitFn(s.type);let d=0;for(let h=-1,p=a.length;++h<p;)d+=u(a,h);return d},ZI=(r,e)=>r.type.mode===sr.Dense?o0(r,e):a0(r,e),o0=({type:r,children:e,typeIds:t,valueOffsets:s},a)=>{const u=r.typeIdToChildIndex[t[a]];return 8+Ar.visit(e[u],s[a])},a0=({children:r},e)=>4+Ar.visitMany(r,r.map(()=>e)).reduce(qI,0);Ki.prototype.visitUtf8=YI;Ki.prototype.visitBinary=GI;Ki.prototype.visitList=JI;Ki.prototype.visitFixedSizeList=XI;Ki.prototype.visitUnion=ZI;Ki.prototype.visitDenseUnion=o0;Ki.prototype.visitSparseUnion=a0;const Ar=new Ki;var l0;const u0={},c0={};class ot{constructor(e){var t,s,a;const u=e[0]instanceof ot?e.flatMap(h=>h.data):e;if(u.length===0||u.some(h=>!(h instanceof It)))throw new TypeError("Vector constructor expects an Array of Data instances.");const d=(t=u[0])===null||t===void 0?void 0:t.type;switch(u.length){case 0:this._offsets=[0];break;case 1:{const{get:h,set:p,indexOf:m,byteLength:g}=u0[d.typeId],v=u[0];this.isValid=b=>th(v,b),this.get=b=>h(v,b),this.set=(b,I)=>p(v,b,I),this.indexOf=b=>m(v,b),this.getByteLength=b=>g(v,b),this._offsets=[0,v.length];break}default:Object.setPrototypeOf(this,c0[d.typeId]),this._offsets=t0(u);break}this.data=u,this.type=d,this.stride=qr(d),this.numChildren=(a=(s=d.children)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0,this.length=this._offsets.at(-1)}get byteLength(){return this._byteLength===-1&&(this._byteLength=this.data.reduce((e,t)=>e+t.byteLength,0)),this._byteLength}get nullCount(){return this._nullCount===-1&&(this._nullCount=e0(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${O[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>0}getByteLength(e){return 0}[Symbol.iterator](){return nh.visit(this)}concat(...e){return new ot(this.data.concat(e.flatMap(t=>t.data).flat(Number.POSITIVE_INFINITY)))}slice(e,t){return new ot(Xv(this,e,t,({data:s,_offsets:a},u,d)=>n0(s,a,u,d)))}toJSON(){return[...this]}toArray(){const{type:e,data:t,length:s,stride:a,ArrayType:u}=this;switch(e.typeId){case O.Int:case O.Float:case O.Decimal:case O.Time:case O.Timestamp:switch(t.length){case 0:return new u;case 1:return t[0].values.subarray(0,s*a);default:return t.reduce((d,{values:h,length:p})=>(d.array.set(h.subarray(0,p*a),d.offset),d.offset+=p*a,d),{array:new u(s*a),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var t;return this.getChildAt((t=this.type.children)===null||t===void 0?void 0:t.findIndex(s=>s.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new ot(this.data.map(({children:t})=>t[e])):null}get isMemoized(){return Re.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(Re.isDictionary(this.type)){const e=new ku(this.data[0].dictionary),t=this.data.map(s=>{const a=s.clone();return a.dictionary=e,a});return new ot(t)}return new ku(this)}unmemoize(){if(Re.isDictionary(this.type)&&this.isMemoized){const e=this.data[0].dictionary.unmemoize(),t=this.data.map(s=>{const a=s.clone();return a.dictionary=e,a});return new ot(t)}return this}}l0=Symbol.toStringTag;ot[l0]=(r=>{r.type=Re.prototype,r.data=[],r.length=0,r.stride=1,r.numChildren=0,r._nullCount=-1,r._byteLength=-1,r._offsets=new Uint32Array([0]),r[Symbol.isConcatSpreadable]=!0;const e=Object.keys(O).map(t=>O[t]).filter(t=>typeof t=="number"&&t!==O.NONE);for(const t of e){const s=Sn.getVisitFnByTypeId(t),a=$n.getVisitFnByTypeId(t),u=Bu.getVisitFnByTypeId(t),d=Ar.getVisitFnByTypeId(t);u0[t]={get:s,set:a,indexOf:u,byteLength:d},c0[t]=Object.create(r,{isValid:{value:mo(th)},get:{value:mo(Sn.getVisitFnByTypeId(t))},set:{value:r0($n.getVisitFnByTypeId(t))},indexOf:{value:i0(Bu.getVisitFnByTypeId(t))},getByteLength:{value:mo(Ar.getVisitFnByTypeId(t))}})}return"Vector"})(ot.prototype);class ku extends ot{constructor(e){super(e.data);const t=this.get,s=this.set,a=this.slice,u=new Array(this.length);Object.defineProperty(this,"get",{value(d){const h=u[d];if(h!==void 0)return h;const p=t.call(this,d);return u[d]=p,p}}),Object.defineProperty(this,"set",{value(d,h){s.call(this,d,h),u[d]=h}}),Object.defineProperty(this,"slice",{value:(d,h)=>new ku(a.call(this,d,h))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new ot(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class Ef{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,s,a){return e.prep(8,24),e.writeInt64(BigInt(a??0)),e.pad(4),e.writeInt32(s),e.writeInt64(BigInt(t??0)),e.offset()}}const sf=2,xr=4,Gr=4,ct=4,Li=new Int32Array(2),Am=new Float32Array(Li.buffer),Pm=new Float64Array(Li.buffer),au=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var xf;(function(r){r[r.UTF8_BYTES=1]="UTF8_BYTES",r[r.UTF16_STRING=2]="UTF16_STRING"})(xf||(xf={}));let So=class d0{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new d0(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readUint64(e){return BigInt.asUintN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readFloat32(e){return Li[0]=this.readInt32(e),Am[0]}readFloat64(e){return Li[au?0:1]=this.readInt32(e),Li[au?1:0]=this.readInt32(e+4),Pm[0]}writeInt8(e,t){this.bytes_[e]=t}writeUint8(e,t){this.bytes_[e]=t}writeInt16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){Am[0]=t,this.writeInt32(e,Li[0])}writeFloat64(e,t){Pm[0]=t,this.writeInt32(e,Li[au?0:1]),this.writeInt32(e+4,Li[au?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+xr+Gr)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let t=0;t<Gr;t++)e+=String.fromCharCode(this.readInt8(this.position_+xr+t));return e}__offset(e,t){const s=e-this.readInt32(e);return t<this.readInt16(s)?this.readInt16(s+t):0}__union(e,t){return e.bb_pos=t+this.readInt32(t),e.bb=this,e}__string(e,t){e+=this.readInt32(e);const s=this.readInt32(e);e+=xr;const a=this.bytes_.subarray(e,e+s);return t===xf.UTF8_BYTES?a:this.text_decoder_.decode(a)}__union_with_string(e,t){return typeof e=="string"?this.__string(t):this.__union(e,t)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+xr}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=Gr)throw new Error("FlatBuffers: file identifier must be length "+Gr);for(let t=0;t<Gr;t++)if(e.charCodeAt(t)!=this.readInt8(this.position()+xr+t))return!1;return!0}createScalarList(e,t){const s=[];for(let a=0;a<t;++a){const u=e(a);u!==null&&s.push(u)}return s}createObjList(e,t){const s=[];for(let a=0;a<t;++a){const u=e(a);u!==null&&s.push(u.unpack())}return s}},f0=class h0{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let t;e?t=e:t=1024,this.bb=So.allocate(t),this.space=t}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,t){e>this.minalign&&(this.minalign=e);const s=~(this.bb.capacity()-this.space+t)+1&e-1;for(;this.space<s+e+t;){const a=this.bb.capacity();this.bb=h0.growByteBuffer(this.bb),this.space+=this.bb.capacity()-a}this.pad(s)}pad(e){for(let t=0;t<e;t++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,t,s){(this.force_defaults||t!=s)&&(this.addInt8(t),this.slot(e))}addFieldInt16(e,t,s){(this.force_defaults||t!=s)&&(this.addInt16(t),this.slot(e))}addFieldInt32(e,t,s){(this.force_defaults||t!=s)&&(this.addInt32(t),this.slot(e))}addFieldInt64(e,t,s){(this.force_defaults||t!==s)&&(this.addInt64(t),this.slot(e))}addFieldFloat32(e,t,s){(this.force_defaults||t!=s)&&(this.addFloat32(t),this.slot(e))}addFieldFloat64(e,t,s){(this.force_defaults||t!=s)&&(this.addFloat64(t),this.slot(e))}addFieldOffset(e,t,s){(this.force_defaults||t!=s)&&(this.addOffset(t),this.slot(e))}addFieldStruct(e,t,s){t!=s&&(this.nested(t),this.slot(e))}nested(e){if(e!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){const t=e.capacity();if(t&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const s=t<<1,a=So.allocate(s);return a.setPosition(s-t),a.bytes().set(e.bytes(),s-t),a}addOffset(e){this.prep(xr,0),this.writeInt32(this.offset()-e+xr)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let t=0;t<e;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const e=this.offset();let t=this.vtable_in_use-1;for(;t>=0&&this.vtable[t]==0;t--);const s=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]!=0?e-this.vtable[t]:0);const a=2;this.addInt16(e-this.object_start);const u=(s+a)*sf;this.addInt16(u);let d=0;const h=this.space;e:for(t=0;t<this.vtables.length;t++){const p=this.bb.capacity()-this.vtables[t];if(u==this.bb.readInt16(p)){for(let m=sf;m<u;m+=sf)if(this.bb.readInt16(h+m)!=this.bb.readInt16(p+m))continue e;d=this.vtables[t];break}}return d?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,d-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,t,s){const a=s?ct:0;if(t){const u=t;if(this.prep(this.minalign,xr+Gr+a),u.length!=Gr)throw new TypeError("FlatBuffers: file identifier must be length "+Gr);for(let d=Gr-1;d>=0;d--)this.writeInt8(u.charCodeAt(d))}this.prep(this.minalign,xr+a),this.addOffset(e),a&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){const s=this.bb.capacity()-e,a=s-this.bb.readInt32(s);if(!(t<this.bb.readInt16(a)&&this.bb.readInt16(a+t)!=0))throw new TypeError("FlatBuffers: field "+t+" must be set")}startVector(e,t,s){this.notNested(),this.vector_num_elems=t,this.prep(xr,e*t),this.prep(s,e*t)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);const t=this.createString(e);return this.string_maps.set(e,t),t}createString(e){if(e==null)return 0;let t;e instanceof Uint8Array?t=e:t=this.text_encoder.encode(e),this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length);for(let s=0,a=this.space,u=this.bb.bytes();s<t.length;s++)u[a++]=t[s];return this.endVector()}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){const t=[];for(let s=0;s<e.length;++s){const a=e[s];if(a!==null)t.push(this.createObjectOffset(a));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return t}createStructOffsetList(e,t){return t(this,e.length),this.createObjectOffsetList(e.slice().reverse()),this.endVector()}};class kt{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKeyValue(e,t){return(t||new kt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,t){return e.setPosition(e.position()+ct),(t||new kt).__init(e.readInt32(e.position())+e.position(),e)}key(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}value(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,t){e.addFieldOffset(0,t,0)}static addValue(e,t){e.addFieldOffset(1,t,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,t,s){return kt.startKeyValue(e),kt.addKey(e,t),kt.addValue(e,s),kt.endKeyValue(e)}}var _o;(function(r){r[r.V1=0]="V1",r[r.V2=1]="V2",r[r.V3=2]="V3",r[r.V4=3]="V4",r[r.V5=4]="V5"})(_o||(_o={}));var bo;(function(r){r[r.Little=0]="Little",r[r.Big=1]="Big"})(bo||(bo={}));var Uu;(function(r){r[r.DenseArray=0]="DenseArray"})(Uu||(Uu={}));class On{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInt(e,t){return(t||new On).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,t){return e.setPosition(e.position()+ct),(t||new On).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,t){e.addFieldInt32(0,t,0)}static addIsSigned(e,t){e.addFieldInt8(1,+t,0)}static endInt(e){return e.endObject()}static createInt(e,t,s){return On.startInt(e),On.addBitWidth(e,t),On.addIsSigned(e,s),On.endInt(e)}}class Jr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryEncoding(e,t){return(t||new Jr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,t){return e.setPosition(e.position()+ct),(t||new Jr).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}indexType(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new On).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isOrdered(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):Uu.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addIndexType(e,t){e.addFieldOffset(1,t,0)}static addIsOrdered(e,t){e.addFieldInt8(2,+t,0)}static addDictionaryKind(e,t){e.addFieldInt16(3,t,Uu.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}class vs{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(e,t){return(t||new vs).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,t){return e.setPosition(e.position()+ct),(t||new vs).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return vs.startBinary(e),vs.endBinary(e)}}class ws{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(e,t){return(t||new ws).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,t){return e.setPosition(e.position()+ct),(t||new ws).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return ws.startBool(e),ws.endBool(e)}}var ju;(function(r){r[r.DAY=0]="DAY",r[r.MILLISECOND=1]="MILLISECOND"})(ju||(ju={}));let fu=class oo{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(e,t){return(t||new oo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,t){return e.setPosition(e.position()+ct),(t||new oo).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ju.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,ju.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,t){return oo.startDate(e),oo.addUnit(e,t),oo.endDate(e)}};class gn{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(e,t){return(t||new gn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,t){return e.setPosition(e.position()+ct),(t||new gn).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,t){e.addFieldInt32(0,t,0)}static addScale(e,t){e.addFieldInt32(1,t,0)}static addBitWidth(e,t){e.addFieldInt32(2,t,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,t,s,a){return gn.startDecimal(e),gn.addPrecision(e,t),gn.addScale(e,s),gn.addBitWidth(e,a),gn.endDecimal(e)}}var Io;(function(r){r[r.SECOND=0]="SECOND",r[r.MILLISECOND=1]="MILLISECOND",r[r.MICROSECOND=2]="MICROSECOND",r[r.NANOSECOND=3]="NANOSECOND"})(Io||(Io={}));class Dr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(e,t){return(t||new Dr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,t){return e.setPosition(e.position()+ct),(t||new Dr).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,t){return Dr.startFixedSizeBinary(e),Dr.addByteWidth(e,t),Dr.endFixedSizeBinary(e)}}class Cr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(e,t){return(t||new Cr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,t){return e.setPosition(e.position()+ct),(t||new Cr).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,t){return Cr.startFixedSizeList(e),Cr.addListSize(e,t),Cr.endFixedSizeList(e)}}var zu;(function(r){r[r.HALF=0]="HALF",r[r.SINGLE=1]="SINGLE",r[r.DOUBLE=2]="DOUBLE"})(zu||(zu={}));class Or{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(e,t){return(t||new Or).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,t){return e.setPosition(e.position()+ct),(t||new Or).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):zu.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,zu.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,t){return Or.startFloatingPoint(e),Or.addPrecision(e,t),Or.endFloatingPoint(e)}}var Vu;(function(r){r[r.YEAR_MONTH=0]="YEAR_MONTH",r[r.DAY_TIME=1]="DAY_TIME",r[r.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Vu||(Vu={}));class Rr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(e,t){return(t||new Rr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,t){return e.setPosition(e.position()+ct),(t||new Rr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Vu.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Vu.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,t){return Rr.startInterval(e),Rr.addUnit(e,t),Rr.endInterval(e)}}class Ss{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(e,t){return(t||new Ss).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,t){return e.setPosition(e.position()+ct),(t||new Ss).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return Ss.startList(e),Ss.endList(e)}}let hu=class ao{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(e,t){return(t||new ao).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,t){return e.setPosition(e.position()+ct),(t||new ao).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(e,t){return ao.startMap(e),ao.addKeysSorted(e,t),ao.endMap(e)}};class _s{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(e,t){return(t||new _s).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,t){return e.setPosition(e.position()+ct),(t||new _s).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return _s.startNull(e),_s.endNull(e)}}class bs{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(e,t){return(t||new bs).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,t){return e.setPosition(e.position()+ct),(t||new bs).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return bs.startStruct_(e),bs.endStruct_(e)}}class Un{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(e,t){return(t||new Un).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,t){return e.setPosition(e.position()+ct),(t||new Un).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Io.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,Io.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(e,t,s){return Un.startTime(e),Un.addUnit(e,t),Un.addBitWidth(e,s),Un.endTime(e)}}class jn{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(e,t){return(t||new jn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,t){return e.setPosition(e.position()+ct),(t||new jn).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Io.SECOND}timezone(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,Io.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,t,s){return jn.startTimestamp(e),jn.addUnit(e,t),jn.addTimezone(e,s),jn.endTimestamp(e)}}var $u;(function(r){r[r.Sparse=0]="Sparse",r[r.Dense=1]="Dense"})($u||($u={}));class vn{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(e,t){return(t||new vn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,t){return e.setPosition(e.position()+ct),(t||new vn).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):$u.Sparse}typeIds(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+e*4):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,t){e.addFieldInt16(0,t,$u.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addInt32(t[s]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(e,t,s){return vn.startUnion(e),vn.addMode(e,t),vn.addTypeIds(e,s),vn.endUnion(e)}}class Is{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(e,t){return(t||new Is).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+ct),(t||new Is).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return Is.startUtf8(e),Is.endUtf8(e)}}var Et;(function(r){r[r.NONE=0]="NONE",r[r.Null=1]="Null",r[r.Int=2]="Int",r[r.FloatingPoint=3]="FloatingPoint",r[r.Binary=4]="Binary",r[r.Utf8=5]="Utf8",r[r.Bool=6]="Bool",r[r.Decimal=7]="Decimal",r[r.Date=8]="Date",r[r.Time=9]="Time",r[r.Timestamp=10]="Timestamp",r[r.Interval=11]="Interval",r[r.List=12]="List",r[r.Struct_=13]="Struct_",r[r.Union=14]="Union",r[r.FixedSizeBinary=15]="FixedSizeBinary",r[r.FixedSizeList=16]="FixedSizeList",r[r.Map=17]="Map",r[r.Duration=18]="Duration",r[r.LargeBinary=19]="LargeBinary",r[r.LargeUtf8=20]="LargeUtf8",r[r.LargeList=21]="LargeList",r[r.RunEndEncoded=22]="RunEndEncoded"})(Et||(Et={}));let Ln=class pu{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(e,t){return(t||new pu).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,t){return e.setPosition(e.position()+ct),(t||new pu).__init(e.readInt32(e.position())+e.position(),e)}name(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):Et.NONE}type(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){const t=this.bb.__offset(this.bb_pos,12);return t?(e||new Jr).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(e,t){const s=this.bb.__offset(this.bb_pos,14);return s?(t||new pu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}childrenLength(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,16);return s?(t||new kt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,Et.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}},br=class Hr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(e,t){return(t||new Hr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,t){return e.setPosition(e.position()+ct),(t||new Hr).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):bo.Little}fields(e,t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new Ln).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,8);return s?(t||new kt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+e*8):BigInt(0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,bo.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let s=t.length-1;s>=0;s--)e.addInt64(t[s]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(e,t,s,a,u){return Hr.startSchema(e),Hr.addEndianness(e,t),Hr.addFields(e,s),Hr.addCustomMetadata(e,a),Hr.addFeatures(e,u),Hr.endSchema(e)}},wr=class Df{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(e,t){return(t||new Df).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,t){return e.setPosition(e.position()+ct),(t||new Df).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):_o.V1}schema(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new br).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){const s=this.bb.__offset(this.bb_pos,8);return s?(t||new Ef).__init(this.bb.__vector(this.bb_pos+s)+e*24,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){const s=this.bb.__offset(this.bb_pos,10);return s?(t||new Ef).__init(this.bb.__vector(this.bb_pos+s)+e*24,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,12);return s?(t||new kt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,_o.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}};class Je{constructor(e=[],t,s){this.fields=e||[],this.metadata=t||new Map,s||(s=Cf(e)),this.dictionaries=s}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,t)=>`${t}: ${e}`).join(", ")} }>`}select(e){const t=new Set(e),s=this.fields.filter(a=>t.has(a.name));return new Je(s,this.metadata)}selectAt(e){const t=e.map(s=>this.fields[s]).filter(Boolean);return new Je(t,this.metadata)}assign(...e){const t=e[0]instanceof Je?e[0]:Array.isArray(e[0])?new Je(e[0]):new Je(e),s=[...this.fields],a=lu(lu(new Map,this.metadata),t.metadata),u=t.fields.filter(h=>{const p=s.findIndex(m=>m.name===h.name);return~p?(s[p]=h.clone({metadata:lu(lu(new Map,s[p].metadata),h.metadata)}))&&!1:!0}),d=Cf(u,new Map);return new Je([...s,...u],a,new Map([...this.dictionaries,...d]))}}Je.prototype.fields=null;Je.prototype.metadata=null;Je.prototype.dictionaries=null;class gt{static new(...e){let[t,s,a,u]=e;return e[0]&&typeof e[0]=="object"&&({name:t}=e[0],s===void 0&&(s=e[0].type),a===void 0&&(a=e[0].nullable),u===void 0&&(u=e[0].metadata)),new gt(`${t}`,s,a,u)}constructor(e,t,s=!1,a){this.name=e,this.type=t,this.nullable=s,this.metadata=a||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[t,s,a,u]=e;return!e[0]||typeof e[0]!="object"?[t=this.name,s=this.type,a=this.nullable,u=this.metadata]=e:{name:t=this.name,type:s=this.type,nullable:a=this.nullable,metadata:u=this.metadata}=e[0],gt.new(t,s,a,u)}}gt.prototype.type=null;gt.prototype.name=null;gt.prototype.nullable=null;gt.prototype.metadata=null;function lu(r,e){return new Map([...r||new Map,...e||new Map])}function Cf(r,e=new Map){for(let t=-1,s=r.length;++t<s;){const u=r[t].type;if(Re.isDictionary(u)){if(!e.has(u.id))e.set(u.id,u.dictionary);else if(e.get(u.id)!==u.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}u.children&&u.children.length>0&&Cf(u.children,e)}return e}var eE=f0,tE=So;class rh{static decode(e){e=new tE(Ge(e));const t=wr.getRootAsFooter(e),s=Je.decode(t.schema());return new nE(s,t)}static encode(e){const t=new eE,s=Je.encode(t,e.schema);wr.startRecordBatchesVector(t,e.numRecordBatches);for(const d of[...e.recordBatches()].slice().reverse())Eo.encode(t,d);const a=t.endVector();wr.startDictionariesVector(t,e.numDictionaries);for(const d of[...e.dictionaryBatches()].slice().reverse())Eo.encode(t,d);const u=t.endVector();return wr.startFooter(t),wr.addSchema(t,s),wr.addVersion(t,Vn.V4),wr.addRecordBatches(t,a),wr.addDictionaries(t,u),wr.finishFooterBuffer(t,wr.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=Vn.V4,s,a){this.schema=e,this.version=t,s&&(this._recordBatches=s),a&&(this._dictionaryBatches=a)}*recordBatches(){for(let e,t=-1,s=this.numRecordBatches;++t<s;)(e=this.getRecordBatch(t))&&(yield e)}*dictionaryBatches(){for(let e,t=-1,s=this.numDictionaries;++t<s;)(e=this.getDictionaryBatch(t))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}class nE extends rh{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(e,t){super(e,t.version()),this._footer=t}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){const t=this._footer.recordBatches(e);if(t)return Eo.decode(t)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const t=this._footer.dictionaries(e);if(t)return Eo.decode(t)}return null}}class Eo{static decode(e){return new Eo(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,t){const{metaDataLength:s}=t,a=BigInt(t.offset),u=BigInt(t.bodyLength);return Ef.createBlock(e,a,s,u)}constructor(e,t,s){this.metaDataLength=e,this.offset=or(s),this.bodyLength=or(t)}}const xt=Object.freeze({done:!0,value:void 0});class Nm{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class p0{tee(){return this._getDOMStream().tee()}pipe(e,t){return this._getNodeStream().pipe(e,t)}pipeTo(e,t){return this._getDOMStream().pipeTo(e,t)}pipeThrough(e,t){return this._getDOMStream().pipeThrough(e,t)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class rE extends p0{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return ve(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(xt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return kn.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return kn.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return ve(this,void 0,void 0,function*(){return yield this.abort(e),xt})}return(e){return ve(this,void 0,void 0,function*(){return yield this.close(),xt})}read(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((t,s)=>{this.resolvers.push({resolve:t,reject:s})}):Promise.resolve(xt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class iE extends rE{write(e){if((e=Ge(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?vf(this.toUint8Array(!0)):this.toUint8Array(!1).then(vf)}toUint8Array(e=!1){return e?Mr(this._values)[0]:ve(this,void 0,void 0,function*(){var t,s,a,u;const d=[];let h=0;try{for(var p=!0,m=co(this),g;g=yield m.next(),t=g.done,!t;p=!0){u=g.value,p=!1;const v=u;d.push(v),h+=v.byteLength}}catch(v){s={error:v}}finally{try{!p&&!t&&(a=m.return)&&(yield a.call(m))}finally{if(s)throw s.error}}return Mr(d,h)[0]})}}class Wu{constructor(e){e&&(this.source=new sE(kn.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class xo{constructor(e){e instanceof xo?this.source=e.source:e instanceof iE?this.source=new fs(kn.fromAsyncIterable(e)):Yg(e)?this.source=new fs(kn.fromNodeStream(e)):Qf(e)?this.source=new fs(kn.fromDOMStream(e)):Kg(e)?this.source=new fs(kn.fromDOMStream(e.body)):ic(e)?this.source=new fs(kn.fromIterable(e)):Ma(e)?this.source=new fs(kn.fromAsyncIterable(e)):Wf(e)&&(this.source=new fs(kn.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class sE{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,t="read"){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||xt)}return(e){return Object.create(this.source.return&&this.source.return(e)||xt)}}class fs{constructor(e){this.source=e,this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}cancel(e){return ve(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e,t="read"){return ve(this,void 0,void 0,function*(){return yield this.source.next({cmd:t,size:e})})}throw(e){return ve(this,void 0,void 0,function*(){const t=this.source.throw&&(yield this.source.throw(e))||xt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(e){return ve(this,void 0,void 0,function*(){const t=this.source.return&&(yield this.source.return(e))||xt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}}class Lm extends Wu{constructor(e,t){super(),this.position=0,this.buffer=Ge(e),this.size=t===void 0?this.buffer.byteLength:t}readInt32(e){const{buffer:t,byteOffset:s}=this.readAt(e,4);return new DataView(t,s).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){const{buffer:t,size:s,position:a}=this;return t&&a<s?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(s,a+Math.min(s-a,e)),t.subarray(a,this.position)):null}readAt(e,t){const s=this.buffer,a=Math.min(this.size,e+t);return s?s.subarray(e,a):new Uint8Array(t)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}}class Qu extends xo{constructor(e,t){super(),this.position=0,this._handle=e,typeof t=="number"?this.size=t:this._pending=ve(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return ve(this,void 0,void 0,function*(){const{buffer:t,byteOffset:s}=yield this.readAt(e,4);return new DataView(t,s).getInt32(0,!0)})}seek(e){return ve(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return ve(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:t,size:s,position:a}=this;if(t&&a<s){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let u=a,d=0,h=0;const p=Math.min(s,u+Math.min(s-u,e)),m=new Uint8Array(Math.max(0,(this.position=p)-u));for(;(u+=h)<p&&(d+=h)<m.byteLength;)({bytesRead:h}=yield t.read(m,d,m.byteLength-d,u));return m}return null})}readAt(e,t){return ve(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:s,size:a}=this;if(s&&e+t<a){const u=Math.min(a,e+t),d=new Uint8Array(u-e);return(yield s.read(d,0,t,e)).buffer}return new Uint8Array(t)})}close(){return ve(this,void 0,void 0,function*(){const e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return ve(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return ve(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}const oE=65536;function uo(r){return r<0&&(r=4294967295+r+1),`0x${r.toString(16)}`}const Do=8,ih=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class y0{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){const t=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),s=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]);let a=t[3]*s[3];this.buffer[0]=a&65535;let u=a>>>16;return a=t[2]*s[3],u+=a,a=t[3]*s[2]>>>0,u+=a,this.buffer[0]+=u<<16,this.buffer[1]=u>>>0<a?oE:0,this.buffer[1]+=u>>>16,this.buffer[1]+=t[1]*s[3]+t[2]*s[2]+t[3]*s[1],this.buffer[1]+=t[0]*s[3]+t[1]*s[2]+t[2]*s[1]+t[3]*s[0]<<16,this}_plus(e){const t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${uo(this.buffer[1])} ${uo(this.buffer[0])}`}}class tt extends y0{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,t=new Uint32Array(2)){return tt.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return tt.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){const s=e.length,a=new tt(t);for(let u=0;u<s;){const d=Do<s-u?Do:s-u,h=new tt(new Uint32Array([Number.parseInt(e.slice(u,u+d),10),0])),p=new tt(new Uint32Array([ih[d],0]));a.times(p),a.plus(h),u+=d}return a}static convertArray(e){const t=new Uint32Array(e.length*2);for(let s=-1,a=e.length;++s<a;)tt.from(e[s],new Uint32Array(t.buffer,t.byteOffset+2*s*4,2));return t}static multiply(e,t){return new tt(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new tt(new Uint32Array(e.buffer)).plus(t)}}class mn extends y0{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){const t=this.buffer[1]<<0,s=e.buffer[1]<<0;return t<s||t===s&&this.buffer[0]<e.buffer[0]}static from(e,t=new Uint32Array(2)){return mn.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return mn.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){const s=e.startsWith("-"),a=e.length,u=new mn(t);for(let d=s?1:0;d<a;){const h=Do<a-d?Do:a-d,p=new mn(new Uint32Array([Number.parseInt(e.slice(d,d+h),10),0])),m=new mn(new Uint32Array([ih[h],0]));u.times(m),u.plus(p),d+=h}return s?u.negate():u}static convertArray(e){const t=new Uint32Array(e.length*2);for(let s=-1,a=e.length;++s<a;)mn.from(e[s],new Uint32Array(t.buffer,t.byteOffset+2*s*4,2));return t}static multiply(e,t){return new mn(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new mn(new Uint32Array(e.buffer)).plus(t)}}class Ir{constructor(e){this.buffer=e}high(){return new mn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new mn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){const t=new tt(new Uint32Array([this.buffer[3],0])),s=new tt(new Uint32Array([this.buffer[2],0])),a=new tt(new Uint32Array([this.buffer[1],0])),u=new tt(new Uint32Array([this.buffer[0],0])),d=new tt(new Uint32Array([e.buffer[3],0])),h=new tt(new Uint32Array([e.buffer[2],0])),p=new tt(new Uint32Array([e.buffer[1],0])),m=new tt(new Uint32Array([e.buffer[0],0]));let g=tt.multiply(u,m);this.buffer[0]=g.low();const v=new tt(new Uint32Array([g.high(),0]));return g=tt.multiply(a,m),v.plus(g),g=tt.multiply(u,p),v.plus(g),this.buffer[1]=v.low(),this.buffer[3]=v.lessThan(g)?1:0,this.buffer[2]=v.high(),new tt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(tt.multiply(s,m)).plus(tt.multiply(a,p)).plus(tt.multiply(u,h)),this.buffer[3]+=tt.multiply(t,m).plus(tt.multiply(s,p)).plus(tt.multiply(a,h)).plus(tt.multiply(u,d)).low(),this}plus(e){const t=new Uint32Array(4);return t[3]=this.buffer[3]+e.buffer[3]>>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]<this.buffer[0]>>>0&&++t[1],t[1]<this.buffer[1]>>>0&&++t[2],t[2]<this.buffer[2]>>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${uo(this.buffer[3])} ${uo(this.buffer[2])} ${uo(this.buffer[1])} ${uo(this.buffer[0])}`}static multiply(e,t){return new Ir(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new Ir(new Uint32Array(e.buffer)).plus(t)}static from(e,t=new Uint32Array(4)){return Ir.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(4)){return Ir.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(4)){const s=e.startsWith("-"),a=e.length,u=new Ir(t);for(let d=s?1:0;d<a;){const h=Do<a-d?Do:a-d,p=new Ir(new Uint32Array([Number.parseInt(e.slice(d,d+h),10),0,0,0])),m=new Ir(new Uint32Array([ih[h],0,0,0]));u.times(m),u.plus(p),d+=h}return s?u.negate():u}static convertArray(e){const t=new Uint32Array(e.length*4);for(let s=-1,a=e.length;++s<a;)Ir.from(e[s],new Uint32Array(t.buffer,t.byteOffset+4*4*s,4));return t}}class m0 extends Ve{constructor(e,t,s,a){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=t,this.buffers=s,this.dictionaries=a}visit(e){return super.visit(e instanceof gt?e.type:e)}visitNull(e,{length:t}=this.nextFieldNode()){return ke({type:e,length:t})}visitBool(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitInt(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitFloat(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitUtf8(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitDate(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitTimestamp(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitTime(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitDecimal(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitList(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),children:this.visitMany(e.children)})}visitUnion(e){return e.mode===sr.Sparse?this.visitSparseUnion(e):this.visitDenseUnion(e)}visitDenseUnion(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitFixedSizeList(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),child:this.visit(e.children[0])})}visitMap(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,t,s=this.nextBufferRange()){return t>0&&this.readData(e,s)||new Uint8Array(0)}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:s}=this.nextBufferRange()){return this.bytes.subarray(s,s+t)}readDictionary(e){return this.dictionaries.get(e.id)}}class aE extends m0{constructor(e,t,s,a){super(new Uint8Array(0),t,s,a),this.sources=e}readNullBitmap(e,t,{offset:s}=this.nextBufferRange()){return t<=0?new Uint8Array(0):_f(this.sources[s])}readOffsets(e,{offset:t}=this.nextBufferRange()){return ut(Uint8Array,ut(Int32Array,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return ut(Uint8Array,ut(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){const{sources:s}=this;return Re.isTimestamp(e)||(Re.isInt(e)||Re.isTime(e))&&e.bitWidth===64||Re.isDate(e)&&e.unit===ri.MILLISECOND?ut(Uint8Array,mn.convertArray(s[t])):Re.isDecimal(e)?ut(Uint8Array,Ir.convertArray(s[t])):Re.isBinary(e)||Re.isFixedSizeBinary(e)?lE(s[t]):Re.isBool(e)?_f(s[t]):Re.isUtf8(e)?$f(s[t].join("")):ut(Uint8Array,ut(e.ArrayType,s[t].map(a=>+a)))}}function lE(r){const e=r.join(""),t=new Uint8Array(e.length/2);for(let s=0;s<e.length;s+=2)t[s>>1]=Number.parseInt(e.slice(s,s+2),16);return t}class Ee extends Ve{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((s,a)=>this.compareFields(s,t[a]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}}function _n(r,e){return e instanceof r.constructor}function $a(r,e){return r===e||_n(r,e)}function ai(r,e){return r===e||_n(r,e)&&r.bitWidth===e.bitWidth&&r.isSigned===e.isSigned}function oc(r,e){return r===e||_n(r,e)&&r.precision===e.precision}function uE(r,e){return r===e||_n(r,e)&&r.byteWidth===e.byteWidth}function sh(r,e){return r===e||_n(r,e)&&r.unit===e.unit}function Wa(r,e){return r===e||_n(r,e)&&r.unit===e.unit&&r.timezone===e.timezone}function Qa(r,e){return r===e||_n(r,e)&&r.unit===e.unit&&r.bitWidth===e.bitWidth}function cE(r,e){return r===e||_n(r,e)&&r.children.length===e.children.length&&$i.compareManyFields(r.children,e.children)}function dE(r,e){return r===e||_n(r,e)&&r.children.length===e.children.length&&$i.compareManyFields(r.children,e.children)}function oh(r,e){return r===e||_n(r,e)&&r.mode===e.mode&&r.typeIds.every((t,s)=>t===e.typeIds[s])&&$i.compareManyFields(r.children,e.children)}function fE(r,e){return r===e||_n(r,e)&&r.id===e.id&&r.isOrdered===e.isOrdered&&$i.visit(r.indices,e.indices)&&$i.visit(r.dictionary,e.dictionary)}function ah(r,e){return r===e||_n(r,e)&&r.unit===e.unit}function hE(r,e){return r===e||_n(r,e)&&r.listSize===e.listSize&&r.children.length===e.children.length&&$i.compareManyFields(r.children,e.children)}function pE(r,e){return r===e||_n(r,e)&&r.keysSorted===e.keysSorted&&r.children.length===e.children.length&&$i.compareManyFields(r.children,e.children)}Ee.prototype.visitNull=$a;Ee.prototype.visitBool=$a;Ee.prototype.visitInt=ai;Ee.prototype.visitInt8=ai;Ee.prototype.visitInt16=ai;Ee.prototype.visitInt32=ai;Ee.prototype.visitInt64=ai;Ee.prototype.visitUint8=ai;Ee.prototype.visitUint16=ai;Ee.prototype.visitUint32=ai;Ee.prototype.visitUint64=ai;Ee.prototype.visitFloat=oc;Ee.prototype.visitFloat16=oc;Ee.prototype.visitFloat32=oc;Ee.prototype.visitFloat64=oc;Ee.prototype.visitUtf8=$a;Ee.prototype.visitBinary=$a;Ee.prototype.visitFixedSizeBinary=uE;Ee.prototype.visitDate=sh;Ee.prototype.visitDateDay=sh;Ee.prototype.visitDateMillisecond=sh;Ee.prototype.visitTimestamp=Wa;Ee.prototype.visitTimestampSecond=Wa;Ee.prototype.visitTimestampMillisecond=Wa;Ee.prototype.visitTimestampMicrosecond=Wa;Ee.prototype.visitTimestampNanosecond=Wa;Ee.prototype.visitTime=Qa;Ee.prototype.visitTimeSecond=Qa;Ee.prototype.visitTimeMillisecond=Qa;Ee.prototype.visitTimeMicrosecond=Qa;Ee.prototype.visitTimeNanosecond=Qa;Ee.prototype.visitDecimal=$a;Ee.prototype.visitList=cE;Ee.prototype.visitStruct=dE;Ee.prototype.visitUnion=oh;Ee.prototype.visitDenseUnion=oh;Ee.prototype.visitSparseUnion=oh;Ee.prototype.visitDictionary=fE;Ee.prototype.visitInterval=ah;Ee.prototype.visitIntervalDayTime=ah;Ee.prototype.visitIntervalYearMonth=ah;Ee.prototype.visitFixedSizeList=hE;Ee.prototype.visitMap=pE;const $i=new Ee;function yE(r,e){return $i.compareSchemas(r,e)}function of(r,e){return mE(r,e.map(t=>t.data.concat()))}function mE(r,e){const t=[...r.fields],s=[],a={numBatches:e.reduce((v,b)=>Math.max(v,b.length),0)};let u=0,d=0,h=-1;const p=e.length;let m,g=[];for(;a.numBatches-- >0;){for(d=Number.POSITIVE_INFINITY,h=-1;++h<p;)g[h]=m=e[h].shift(),d=Math.min(d,m?m.length:d);Number.isFinite(d)&&(g=gE(t,d,g,e,a),d>0&&(s[u++]=ke({type:new on(t),length:d,nullCount:0,children:g.slice()})))}return[r=r.assign(t),s.map(v=>new nr(r,v))]}function gE(r,e,t,s,a){var u;const d=(e+63&-64)>>3;for(let h=-1,p=s.length;++h<p;){const m=t[h],g=m==null?void 0:m.length;if(g>=e)g===e?t[h]=m:(t[h]=m.slice(0,e),a.numBatches=Math.max(a.numBatches,s[h].unshift(m.slice(e,g-e))));else{const v=r[h];r[h]=v.clone({nullable:!0}),t[h]=(u=m==null?void 0:m._changeLengthAndBackfillNullBitmap(e))!==null&&u!==void 0?u:ke({type:v.type,length:e,nullCount:e,nullBitmap:new Uint8Array(d)})}}return t}var g0;class zn{constructor(...e){var t,s;if(e.length===0)return this.batches=[],this.schema=new Je([]),this._offsets=[0],this;let a,u;e[0]instanceof Je&&(a=e.shift()),e.at(-1)instanceof Uint32Array&&(u=e.pop());const d=p=>{if(p){if(p instanceof nr)return[p];if(p instanceof zn)return p.batches;if(p instanceof It){if(p.type instanceof on)return[new nr(new Je(p.type.children),p)]}else{if(Array.isArray(p))return p.flatMap(m=>d(m));if(typeof p[Symbol.iterator]=="function")return[...p].flatMap(m=>d(m));if(typeof p=="object"){const m=Object.keys(p),g=m.map(I=>new ot([p[I]])),v=new Je(m.map((I,A)=>new gt(String(I),g[A].type))),[,b]=of(v,g);return b.length===0?[new nr(p)]:b}}}return[]},h=e.flatMap(p=>d(p));if(a=(s=a??((t=h[0])===null||t===void 0?void 0:t.schema))!==null&&s!==void 0?s:new Je([]),!(a instanceof Je))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const p of h){if(!(p instanceof nr))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!yE(a,p.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=a,this.batches=h,this._offsets=u??t0(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,t)=>e+t.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=e0(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}set(e,t){}indexOf(e,t){return-1}getByteLength(e){return 0}[Symbol.iterator](){return this.batches.length>0?nh.visit(new ot(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
80
+ ${this.toArray().join(`,
81
+ `)}
82
+ ]`}concat(...e){const t=this.schema,s=this.data.concat(e.flatMap(({data:a})=>a));return new zn(t,s.map(a=>new nr(t,a)))}slice(e,t){const s=this.schema;[e,t]=Xv({length:this.numRows},e,t);const a=n0(this.data,this._offsets,e,t);return new zn(s,a.map(u=>new nr(s,u)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(t=>t.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){const t=this.data.map(s=>s.children[e]);if(t.length===0){const{type:s}=this.schema.fields[e],a=ke({type:s,length:0,nullCount:0});t.push(a._changeLengthAndBackfillNullBitmap(this.numRows))}return new ot(t)}return null}setChild(e,t){var s;return this.setChildAt((s=this.schema.fields)===null||s===void 0?void 0:s.findIndex(a=>a.name===e),t)}setChildAt(e,t){let s=this.schema,a=[...this.batches];if(e>-1&&e<this.numCols){t||(t=new ot([ke({type:new zi,length:this.numRows})]));const u=s.fields.slice(),d=u[e].clone({type:t.type}),h=this.schema.fields.map((p,m)=>this.getChildAt(m));[u[e],h[e]]=[d,t],[s,a]=of(s,h)}return new zn(s,a)}select(e){const t=this.schema.fields.reduce((s,a,u)=>s.set(a.name,u),new Map);return this.selectAt(e.map(s=>t.get(s)).filter(s=>s>-1))}selectAt(e){const t=this.schema.selectAt(e),s=this.batches.map(a=>a.selectAt(e));return new zn(t,s)}assign(e){const t=this.schema.fields,[s,a]=e.schema.fields.reduce((h,p,m)=>{const[g,v]=h,b=t.findIndex(I=>I.name===p.name);return~b?v[b]=m:g.push(m),h},[[],[]]),u=this.schema.assign(e.schema),d=[...t.map((h,p)=>[p,a[p]]).map(([h,p])=>p===void 0?this.getChildAt(h):e.getChildAt(p)),...s.map(h=>e.getChildAt(h))].filter(Boolean);return new zn(...of(u,d))}}g0=Symbol.toStringTag;zn[g0]=(r=>(r.schema=null,r.batches=[],r._offsets=new Uint32Array([0]),r._nullCount=-1,r[Symbol.isConcatSpreadable]=!0,r.isValid=mo(th),r.get=mo(Sn.getVisitFn(O.Struct)),r.set=r0($n.getVisitFn(O.Struct)),r.indexOf=i0(Bu.getVisitFn(O.Struct)),r.getByteLength=mo(Ar.getVisitFn(O.Struct)),"Table"))(zn.prototype);var v0;let nr=class xa{constructor(...e){switch(e.length){case 2:{if([this.schema]=e,!(this.schema instanceof Je))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=ke({nullCount:0,type:new on(this.schema.fields),children:this.schema.fields.map(t=>ke({type:t.type,nullCount:0}))})]=e,!(this.data instanceof It))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=Bm(this.schema,this.data.children);break}case 1:{const[t]=e,{fields:s,children:a,length:u}=Object.keys(t).reduce((p,m,g)=>(p.children[g]=t[m],p.length=Math.max(p.length,t[m].length),p.fields[g]=gt.new({name:m,type:t[m].type,nullable:!0}),p),{length:0,fields:new Array,children:new Array}),d=new Je(s),h=ke({type:new on(s),length:u,children:a,nullCount:0});[this.schema,this.data]=Bm(d,h.children,u);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=w0(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Sn.visit(this.data,e)}set(e,t){return $n.visit(this.data,e,t)}indexOf(e,t){return Bu.visit(this.data,e,t)}getByteLength(e){return Ar.visit(this.data,e)}[Symbol.iterator](){return nh.visit(new ot([this.data]))}toArray(){return[...this]}concat(...e){return new zn(this.schema,[this,...e])}slice(e,t){const[s]=new ot([this.data]).slice(e,t).data;return new xa(this.schema,s)}getChild(e){var t;return this.getChildAt((t=this.schema.fields)===null||t===void 0?void 0:t.findIndex(s=>s.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new ot([this.data.children[e]]):null}setChild(e,t){var s;return this.setChildAt((s=this.schema.fields)===null||s===void 0?void 0:s.findIndex(a=>a.name===e),t)}setChildAt(e,t){let s=this.schema,a=this.data;if(e>-1&&e<this.numCols){t||(t=new ot([ke({type:new zi,length:this.numRows})]));const u=s.fields.slice(),d=a.children.slice(),h=u[e].clone({type:t.type});[u[e],d[e]]=[h,t.data[0]],s=new Je(u,new Map(this.schema.metadata)),a=ke({type:new on(u),children:d})}return new xa(s,a)}select(e){const t=this.schema.select(e),s=new on(t.fields),a=[];for(const u of e){const d=this.schema.fields.findIndex(h=>h.name===u);~d&&(a[d]=this.data.children[d])}return new xa(t,ke({type:s,length:this.numRows,children:a}))}selectAt(e){const t=this.schema.selectAt(e),s=e.map(u=>this.data.children[u]).filter(Boolean),a=ke({type:new on(t.fields),length:this.numRows,children:s});return new xa(t,a)}};v0=Symbol.toStringTag;nr[v0]=(r=>(r._nullCount=-1,r[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(nr.prototype);function Bm(r,e,t=e.reduce((s,a)=>Math.max(s,a.length),0)){var s;const a=[...r.fields],u=[...e],d=(t+63&-64)>>3;for(const[h,p]of r.fields.entries()){const m=e[h];(!m||m.length!==t)&&(a[h]=p.clone({nullable:!0}),u[h]=(s=m==null?void 0:m._changeLengthAndBackfillNullBitmap(t))!==null&&s!==void 0?s:ke({type:p.type,length:t,nullCount:t,nullBitmap:new Uint8Array(d)}))}return[r.assign(a),ke({type:new on(a),length:t,children:u})]}function w0(r,e,t=new Map){for(let s=-1,a=r.length;++s<a;){const d=r[s].type,h=e[s];if(Re.isDictionary(d)){if(!t.has(d.id))h.dictionary&&t.set(d.id,h.dictionary);else if(t.get(d.id)!==h.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}d.children&&d.children.length>0&&w0(d.children,h.children,t)}return t}class S0 extends nr{constructor(e){const t=e.fields.map(a=>ke({type:a.type})),s=ke({type:new on(e.fields),nullCount:0,children:t});super(e,s)}}var Hu;(function(r){r[r.BUFFER=0]="BUFFER"})(Hu||(Hu={}));var Ku;(function(r){r[r.LZ4_FRAME=0]="LZ4_FRAME",r[r.ZSTD=1]="ZSTD"})(Ku||(Ku={}));class Bi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBodyCompression(e,t){return(t||new Bi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,t){return e.setPosition(e.position()+ct),(t||new Bi).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):Ku.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):Hu.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,Ku.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,Hu.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,t,s){return Bi.startBodyCompression(e),Bi.addCodec(e,t),Bi.addMethod(e,s),Bi.endBodyCompression(e)}}class _0{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,t,s){return e.prep(8,16),e.writeInt64(BigInt(s??0)),e.writeInt64(BigInt(t??0)),e.offset()}}let b0=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,t,s){return e.prep(8,16),e.writeInt64(BigInt(s??0)),e.writeInt64(BigInt(t??0)),e.offset()}},Yr=class Of{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(e,t){return(t||new Of).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,t){return e.setPosition(e.position()+ct),(t||new Of).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}nodes(e,t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new b0).__init(this.bb.__vector(this.bb_pos+s)+e*16,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,t){const s=this.bb.__offset(this.bb_pos,8);return s?(t||new _0).__init(this.bb.__vector(this.bb_pos+s)+e*16,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const t=this.bb.__offset(this.bb_pos,10);return t?(e||new Bi).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addNodes(e,t){e.addFieldOffset(1,t,0)}static startNodesVector(e,t){e.startVector(16,t,8)}static addBuffers(e,t){e.addFieldOffset(2,t,0)}static startBuffersVector(e,t){e.startVector(16,t,8)}static addCompression(e,t){e.addFieldOffset(3,t,0)}static endRecordBatch(e){return e.endObject()}},lo=class Rf{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(e,t){return(t||new Rf).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,t){return e.setPosition(e.position()+ct),(t||new Rf).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}data(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new Yr).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addData(e,t){e.addFieldOffset(1,t,0)}static addIsDelta(e,t){e.addFieldInt8(2,+t,0)}static endDictionaryBatch(e){return e.endObject()}};var qu;(function(r){r[r.NONE=0]="NONE",r[r.Schema=1]="Schema",r[r.DictionaryBatch=2]="DictionaryBatch",r[r.RecordBatch=3]="RecordBatch",r[r.Tensor=4]="Tensor",r[r.SparseTensor=5]="SparseTensor"})(qu||(qu={}));let Ai=class Sr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(e,t){return(t||new Sr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,t){return e.setPosition(e.position()+ct),(t||new Sr).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):_o.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):qu.NONE}header(e){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,12);return s?(t||new kt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,_o.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,qu.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt("0"))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(e,t,s,a,u,d){return Sr.startMessage(e),Sr.addVersion(e,t),Sr.addHeaderType(e,s),Sr.addHeader(e,a),Sr.addBodyLength(e,u),Sr.addCustomMetadata(e,d),Sr.endMessage(e)}};class vE extends Ve{visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return _s.startNull(t),_s.endNull(t)}visitInt(e,t){return On.startInt(t),On.addBitWidth(t,e.bitWidth),On.addIsSigned(t,e.isSigned),On.endInt(t)}visitFloat(e,t){return Or.startFloatingPoint(t),Or.addPrecision(t,e.precision),Or.endFloatingPoint(t)}visitBinary(e,t){return vs.startBinary(t),vs.endBinary(t)}visitBool(e,t){return ws.startBool(t),ws.endBool(t)}visitUtf8(e,t){return Is.startUtf8(t),Is.endUtf8(t)}visitDecimal(e,t){return gn.startDecimal(t),gn.addScale(t,e.scale),gn.addPrecision(t,e.precision),gn.addBitWidth(t,e.bitWidth),gn.endDecimal(t)}visitDate(e,t){return fu.startDate(t),fu.addUnit(t,e.unit),fu.endDate(t)}visitTime(e,t){return Un.startTime(t),Un.addUnit(t,e.unit),Un.addBitWidth(t,e.bitWidth),Un.endTime(t)}visitTimestamp(e,t){const s=e.timezone&&t.createString(e.timezone)||void 0;return jn.startTimestamp(t),jn.addUnit(t,e.unit),s!==void 0&&jn.addTimezone(t,s),jn.endTimestamp(t)}visitInterval(e,t){return Rr.startInterval(t),Rr.addUnit(t,e.unit),Rr.endInterval(t)}visitList(e,t){return Ss.startList(t),Ss.endList(t)}visitStruct(e,t){return bs.startStruct_(t),bs.endStruct_(t)}visitUnion(e,t){vn.startTypeIdsVector(t,e.typeIds.length);const s=vn.createTypeIdsVector(t,e.typeIds);return vn.startUnion(t),vn.addMode(t,e.mode),vn.addTypeIds(t,s),vn.endUnion(t)}visitDictionary(e,t){const s=this.visit(e.indices,t);return Jr.startDictionaryEncoding(t),Jr.addId(t,BigInt(e.id)),Jr.addIsOrdered(t,e.isOrdered),s!==void 0&&Jr.addIndexType(t,s),Jr.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return Dr.startFixedSizeBinary(t),Dr.addByteWidth(t,e.byteWidth),Dr.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return Cr.startFixedSizeList(t),Cr.addListSize(t,e.listSize),Cr.endFixedSizeList(t)}visitMap(e,t){return hu.startMap(t),hu.addKeysSorted(t,e.keysSorted),hu.endMap(t)}}const af=new vE;function wE(r,e=new Map){return new Je(_E(r,e),yu(r.customMetadata),e)}function I0(r){return new ar(r.count,E0(r.columns),x0(r.columns))}function SE(r){return new ii(I0(r.data),r.id,r.isDelta)}function _E(r,e){return(r.fields||[]).filter(Boolean).map(t=>gt.fromJSON(t,e))}function km(r,e){return(r.children||[]).filter(Boolean).map(t=>gt.fromJSON(t,e))}function E0(r){return(r||[]).reduce((e,t)=>[...e,new Ro(t.count,bE(t.VALIDITY)),...E0(t.children)],[])}function x0(r,e=[]){for(let t=-1,s=(r||[]).length;++t<s;){const a=r[t];a.VALIDITY&&e.push(new Zr(e.length,a.VALIDITY.length)),a.TYPE&&e.push(new Zr(e.length,a.TYPE.length)),a.OFFSET&&e.push(new Zr(e.length,a.OFFSET.length)),a.DATA&&e.push(new Zr(e.length,a.DATA.length)),e=x0(a.children,e)}return e}function bE(r){return(r||[]).reduce((e,t)=>e+ +(t===0),0)}function IE(r,e){let t,s,a,u,d,h;return!e||!(u=r.dictionary)?(d=jm(r,km(r,e)),a=new gt(r.name,d,r.nullable,yu(r.customMetadata))):e.has(t=u.id)?(s=(s=u.indexType)?Um(s):new La,h=new wo(e.get(t),s,t,u.isOrdered),a=new gt(r.name,h,r.nullable,yu(r.customMetadata))):(s=(s=u.indexType)?Um(s):new La,e.set(t,d=jm(r,km(r,e))),h=new wo(d,s,t,u.isOrdered),a=new gt(r.name,h,r.nullable,yu(r.customMetadata))),a||null}function yu(r){return new Map(Object.entries(r||{}))}function Um(r){return new Vi(r.isSigned,r.bitWidth)}function jm(r,e){const t=r.type.name;switch(t){case"NONE":return new zi;case"null":return new zi;case"binary":return new xu;case"utf8":return new Du;case"bool":return new Cu;case"list":return new Mu((e||[])[0]);case"struct":return new on(e||[]);case"struct_":return new on(e||[])}switch(t){case"int":{const s=r.type;return new Vi(s.isSigned,s.bitWidth)}case"floatingpoint":{const s=r.type;return new Ba(wn[s.precision])}case"decimal":{const s=r.type;return new Ou(s.scale,s.precision,s.bitWidth)}case"date":{const s=r.type;return new Ru(ri[s.unit])}case"time":{const s=r.type;return new ka(qe[s.unit],s.bitWidth)}case"timestamp":{const s=r.type;return new Fu(qe[s.unit],s.timezone)}case"interval":{const s=r.type;return new Tu(ji[s.unit])}case"union":{const s=r.type;return new Au(sr[s.mode],s.typeIds||[],e||[])}case"fixedsizebinary":{const s=r.type;return new Pu(s.byteWidth)}case"fixedsizelist":{const s=r.type;return new Nu(s.listSize,(e||[])[0])}case"map":{const s=r.type;return new Lu((e||[])[0],s.keysSorted)}}throw new Error(`Unrecognized type: "${t}"`)}var EE=f0,xE=So;class rr{static fromJSON(e,t){const s=new rr(0,Vn.V4,t);return s._createHeader=DE(e,t),s}static decode(e){e=new xE(Ge(e));const t=Ai.getRootAsMessage(e),s=t.bodyLength(),a=t.version(),u=t.headerType(),d=new rr(s,a,u);return d._createHeader=CE(t,u),d}static encode(e){const t=new EE;let s=-1;return e.isSchema()?s=Je.encode(t,e.header()):e.isRecordBatch()?s=ar.encode(t,e.header()):e.isDictionaryBatch()&&(s=ii.encode(t,e.header())),Ai.startMessage(t),Ai.addVersion(t,Vn.V4),Ai.addHeader(t,s),Ai.addHeaderType(t,e.headerType),Ai.addBodyLength(t,BigInt(e.bodyLength)),Ai.finishMessageBuffer(t,Ai.endMessage(t)),t.asUint8Array()}static from(e,t=0){if(e instanceof Je)return new rr(0,Vn.V4,st.Schema,e);if(e instanceof ar)return new rr(t,Vn.V4,st.RecordBatch,e);if(e instanceof ii)return new rr(t,Vn.V4,st.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===st.Schema}isRecordBatch(){return this.headerType===st.RecordBatch}isDictionaryBatch(){return this.headerType===st.DictionaryBatch}constructor(e,t,s,a){this._version=t,this._headerType=s,this.body=new Uint8Array(0),a&&(this._createHeader=()=>a),this._bodyLength=or(e)}}class ar{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(e,t,s){this._nodes=t,this._buffers=s,this._length=or(e)}}class ii{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,t,s=!1){this._data=e,this._isDelta=s,this._id=or(t)}}class Zr{constructor(e,t){this.offset=or(e),this.length=or(t)}}class Ro{constructor(e,t){this.length=or(e),this.nullCount=or(t)}}function DE(r,e){return()=>{switch(e){case st.Schema:return Je.fromJSON(r);case st.RecordBatch:return ar.fromJSON(r);case st.DictionaryBatch:return ii.fromJSON(r)}throw new Error(`Unrecognized Message type: { name: ${st[e]}, type: ${e} }`)}}function CE(r,e){return()=>{switch(e){case st.Schema:return Je.decode(r.header(new br));case st.RecordBatch:return ar.decode(r.header(new Yr),r.version());case st.DictionaryBatch:return ii.decode(r.header(new lo),r.version())}throw new Error(`Unrecognized Message type: { name: ${st[e]}, type: ${e} }`)}}gt.encode=kE;gt.decode=LE;gt.fromJSON=IE;Je.encode=BE;Je.decode=OE;Je.fromJSON=wE;ar.encode=UE;ar.decode=RE;ar.fromJSON=I0;ii.encode=jE;ii.decode=FE;ii.fromJSON=SE;Ro.encode=zE;Ro.decode=ME;Zr.encode=VE;Zr.decode=TE;function OE(r,e=new Map){const t=NE(r,e);return new Je(t,mu(r),e)}function RE(r,e=Vn.V4){if(r.compression()!==null)throw new Error("Record batch compression not implemented");return new ar(r.length(),AE(r),PE(r,e))}function FE(r,e=Vn.V4){return new ii(ar.decode(r.data(),e),r.id(),r.isDelta())}function TE(r){return new Zr(r.offset(),r.length())}function ME(r){return new Ro(r.length(),r.nullCount())}function AE(r){const e=[];for(let t,s=-1,a=-1,u=r.nodesLength();++s<u;)(t=r.nodes(s))&&(e[++a]=Ro.decode(t));return e}function PE(r,e){const t=[];for(let s,a=-1,u=-1,d=r.buffersLength();++a<d;)(s=r.buffers(a))&&(e<Vn.V4&&(s.bb_pos+=8*(a+1)),t[++u]=Zr.decode(s));return t}function NE(r,e){const t=[];for(let s,a=-1,u=-1,d=r.fieldsLength();++a<d;)(s=r.fields(a))&&(t[++u]=gt.decode(s,e));return t}function zm(r,e){const t=[];for(let s,a=-1,u=-1,d=r.childrenLength();++a<d;)(s=r.children(a))&&(t[++u]=gt.decode(s,e));return t}function LE(r,e){let t,s,a,u,d,h;return!e||!(h=r.dictionary())?(a=$m(r,zm(r,e)),s=new gt(r.name(),a,r.nullable(),mu(r))):e.has(t=or(h.id()))?(u=(u=h.indexType())?Vm(u):new La,d=new wo(e.get(t),u,t,h.isOrdered()),s=new gt(r.name(),d,r.nullable(),mu(r))):(u=(u=h.indexType())?Vm(u):new La,e.set(t,a=$m(r,zm(r,e))),d=new wo(a,u,t,h.isOrdered()),s=new gt(r.name(),d,r.nullable(),mu(r))),s||null}function mu(r){const e=new Map;if(r)for(let t,s,a=-1,u=Math.trunc(r.customMetadataLength());++a<u;)(t=r.customMetadata(a))&&(s=t.key())!=null&&e.set(s,t.value());return e}function Vm(r){return new Vi(r.isSigned(),r.bitWidth())}function $m(r,e){const t=r.typeType();switch(t){case Et.NONE:return new zi;case Et.Null:return new zi;case Et.Binary:return new xu;case Et.Utf8:return new Du;case Et.Bool:return new Cu;case Et.List:return new Mu((e||[])[0]);case Et.Struct_:return new on(e||[])}switch(t){case Et.Int:{const s=r.type(new On);return new Vi(s.isSigned(),s.bitWidth())}case Et.FloatingPoint:{const s=r.type(new Or);return new Ba(s.precision())}case Et.Decimal:{const s=r.type(new gn);return new Ou(s.scale(),s.precision(),s.bitWidth())}case Et.Date:{const s=r.type(new fu);return new Ru(s.unit())}case Et.Time:{const s=r.type(new Un);return new ka(s.unit(),s.bitWidth())}case Et.Timestamp:{const s=r.type(new jn);return new Fu(s.unit(),s.timezone())}case Et.Interval:{const s=r.type(new Rr);return new Tu(s.unit())}case Et.Union:{const s=r.type(new vn);return new Au(s.mode(),s.typeIdsArray()||[],e||[])}case Et.FixedSizeBinary:{const s=r.type(new Dr);return new Pu(s.byteWidth())}case Et.FixedSizeList:{const s=r.type(new Cr);return new Nu(s.listSize(),(e||[])[0])}case Et.Map:{const s=r.type(new hu);return new Lu((e||[])[0],s.keysSorted())}}throw new Error(`Unrecognized type: "${Et[t]}" (${t})`)}function BE(r,e){const t=e.fields.map(u=>gt.encode(r,u));br.startFieldsVector(r,t.length);const s=br.createFieldsVector(r,t),a=e.metadata&&e.metadata.size>0?br.createCustomMetadataVector(r,[...e.metadata].map(([u,d])=>{const h=r.createString(`${u}`),p=r.createString(`${d}`);return kt.startKeyValue(r),kt.addKey(r,h),kt.addValue(r,p),kt.endKeyValue(r)})):-1;return br.startSchema(r),br.addFields(r,s),br.addEndianness(r,$E?bo.Little:bo.Big),a!==-1&&br.addCustomMetadata(r,a),br.endSchema(r)}function kE(r,e){let t=-1,s=-1,a=-1;const u=e.type;let d=e.typeId;Re.isDictionary(u)?(d=u.dictionary.typeId,a=af.visit(u,r),s=af.visit(u.dictionary,r)):s=af.visit(u,r);const h=(u.children||[]).map(g=>gt.encode(r,g)),p=Ln.createChildrenVector(r,h),m=e.metadata&&e.metadata.size>0?Ln.createCustomMetadataVector(r,[...e.metadata].map(([g,v])=>{const b=r.createString(`${g}`),I=r.createString(`${v}`);return kt.startKeyValue(r),kt.addKey(r,b),kt.addValue(r,I),kt.endKeyValue(r)})):-1;return e.name&&(t=r.createString(e.name)),Ln.startField(r),Ln.addType(r,s),Ln.addTypeType(r,d),Ln.addChildren(r,p),Ln.addNullable(r,!!e.nullable),t!==-1&&Ln.addName(r,t),a!==-1&&Ln.addDictionary(r,a),m!==-1&&Ln.addCustomMetadata(r,m),Ln.endField(r)}function UE(r,e){const t=e.nodes||[],s=e.buffers||[];Yr.startNodesVector(r,t.length);for(const d of t.slice().reverse())Ro.encode(r,d);const a=r.endVector();Yr.startBuffersVector(r,s.length);for(const d of s.slice().reverse())Zr.encode(r,d);const u=r.endVector();return Yr.startRecordBatch(r),Yr.addLength(r,BigInt(e.length)),Yr.addNodes(r,a),Yr.addBuffers(r,u),Yr.endRecordBatch(r)}function jE(r,e){const t=ar.encode(r,e.data);return lo.startDictionaryBatch(r),lo.addId(r,BigInt(e.id)),lo.addIsDelta(r,e.isDelta),lo.addData(r,t),lo.endDictionaryBatch(r)}function zE(r,e){return b0.createFieldNode(r,BigInt(e.length),BigInt(e.nullCount))}function VE(r,e){return _0.createBuffer(r,BigInt(e.offset),BigInt(e.length))}const $E=(()=>{const r=new ArrayBuffer(2);return new DataView(r).setInt16(0,256,!0),new Int16Array(r)[0]===256})(),lh=r=>`Expected ${st[r]} Message in stream, but was null or length 0.`,uh=r=>`Header pointer of flatbuffer-encoded ${st[r]} Message is null or length 0.`,D0=(r,e)=>`Expected to read ${r} metadata bytes, but only read ${e}.`,C0=(r,e)=>`Expected to read ${r} bytes for message body, but only read ${e}.`;class O0{constructor(e){this.source=e instanceof Wu?e:new Wu(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?xt:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(lh(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const t=Ge(this.source.read(e));if(t.byteLength<e)throw new Error(C0(e,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}readSchema(e=!1){const t=st.Schema,s=this.readMessage(t),a=s==null?void 0:s.header();if(e&&!a)throw new Error(uh(t));return a}readMetadataLength(){const e=this.source.read(ac),t=e&&new So(e),s=(t==null?void 0:t.readInt32(0))||0;return{done:s===0,value:s}}readMetadata(e){const t=this.source.read(e);if(!t)return xt;if(t.byteLength<e)throw new Error(D0(e,t.byteLength));return{done:!1,value:rr.decode(t)}}}class WE{constructor(e,t){this.source=e instanceof xo?e:Hg(e)?new Qu(e,t):new xo(e)}[Symbol.asyncIterator](){return this}next(){return ve(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?xt:e})}throw(e){return ve(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return ve(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return ve(this,void 0,void 0,function*(){let t;if((t=yield this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(lh(e));return t.value})}readMessageBody(e){return ve(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);const t=Ge(yield this.source.read(e));if(t.byteLength<e)throw new Error(C0(e,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()})}readSchema(e=!1){return ve(this,void 0,void 0,function*(){const t=st.Schema,s=yield this.readMessage(t),a=s==null?void 0:s.header();if(e&&!a)throw new Error(uh(t));return a})}readMetadataLength(){return ve(this,void 0,void 0,function*(){const e=yield this.source.read(ac),t=e&&new So(e),s=(t==null?void 0:t.readInt32(0))||0;return{done:s===0,value:s}})}readMetadata(e){return ve(this,void 0,void 0,function*(){const t=yield this.source.read(e);if(!t)return xt;if(t.byteLength<e)throw new Error(D0(e,t.byteLength));return{done:!1,value:rr.decode(t)}})}}class QE extends O0{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof Nm?e:new Nm(e)}next(){const{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:rr.fromJSON(e.schema,st.Schema)};if(this._dictionaryIndex<e.dictionaries.length){const t=e.dictionaries[this._dictionaryIndex++];return this._body=t.data.columns,{done:!1,value:rr.fromJSON(t,st.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const t=e.batches[this._batchIndex++];return this._body=t.columns,{done:!1,value:rr.fromJSON(t,st.RecordBatch)}}return this._body=[],xt}readMessageBody(e){return t(this._body);function t(s){return(s||[]).reduce((a,u)=>[...a,...u.VALIDITY&&[u.VALIDITY]||[],...u.TYPE&&[u.TYPE]||[],...u.OFFSET&&[u.OFFSET]||[],...u.DATA&&[u.DATA]||[],...t(u.children)],[])}}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(lh(e));return t.value}readSchema(){const e=st.Schema,t=this.readMessage(e),s=t==null?void 0:t.header();if(!t||!s)throw new Error(uh(e));return s}}const ac=4,Ff="ARROW1",Yu=new Uint8Array(Ff.length);for(let r=0;r<Ff.length;r+=1)Yu[r]=Ff.codePointAt(r);function ch(r,e=0){for(let t=-1,s=Yu.length;++t<s;)if(Yu[t]!==r[e+t])return!1;return!0}const Ha=Yu.length,R0=Ha+ac,HE=Ha*2+ac;class ti extends p0{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){const t=this._impl.open(e);return Ma(t)?t.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return kn.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return kn.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof ti?e:wf(e)?GE(e):Hg(e)?ZE(e):Ma(e)?ve(this,void 0,void 0,function*(){return yield ti.from(yield e)}):Kg(e)||Qf(e)||Yg(e)||Wf(e)?XE(new xo(e)):JE(new Wu(e))}static readAll(e){return e instanceof ti?e.isSync()?Wm(e):Qm(e):wf(e)||ArrayBuffer.isView(e)||ic(e)||Qg(e)?Wm(e):Qm(e)}}class Gu extends ti{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Fr(this,arguments,function*(){yield Te(yield*du(co(this[Symbol.iterator]())))})}}class Ju extends ti{constructor(e){super(e),this._impl=e}readAll(){var e,t,s,a;return ve(this,void 0,void 0,function*(){const u=new Array;try{for(var d=!0,h=co(this),p;p=yield h.next(),e=p.done,!e;d=!0){a=p.value,d=!1;const m=a;u.push(m)}}catch(m){t={error:m}}finally{try{!d&&!e&&(s=h.return)&&(yield s.call(h))}finally{if(t)throw t.error}}return u})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class F0 extends Gu{constructor(e){super(e),this._impl=e}}class KE extends Ju{constructor(e){super(e),this._impl=e}}class T0{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){const s=this._loadVectors(e,t,this.schema.fields),a=ke({type:new on(this.schema.fields),length:e.length,children:s});return new nr(this.schema,a)}_loadDictionaryBatch(e,t){const{id:s,isDelta:a}=e,{dictionaries:u,schema:d}=this,h=u.get(s);if(a||!h){const p=d.dictionaries.get(s),m=this._loadVectors(e.data,t,[p]);return(h&&a?h.concat(new ot(m)):new ot(m)).memoize()}return h.memoize()}_loadVectors(e,t,s){return new m0(t,e.nodes,e.buffers,this.dictionaries).visitMany(s)}}class Xu extends T0{constructor(e,t){super(t),this._reader=wf(e)?new QE(this._handle=e):new O0(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=A0(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):xt}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):xt}next(){if(this.closed)return xt;let e;const{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const s=e.header(),a=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(s,a)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const s=e.header(),a=t.readMessageBody(e.bodyLength),u=this._loadDictionaryBatch(s,a);this.dictionaries.set(s.id,u)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new S0(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class Zu extends T0{constructor(e,t){super(t),this._reader=new WE(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return ve(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return ve(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=A0(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return ve(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):xt})}return(e){return ve(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):xt})}next(){return ve(this,void 0,void 0,function*(){if(this.closed)return xt;let e;const{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const s=e.header(),a=yield t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(s,a)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const s=e.header(),a=yield t.readMessageBody(e.bodyLength),u=this._loadDictionaryBatch(s,a);this.dictionaries.set(s.id,u)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new S0(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return ve(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}}class M0 extends Xu{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,t){super(e instanceof Lm?e:new Lm(e),t)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var t;if(this.closed)return null;this._footer||this.open();const s=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(e);if(s&&this._handle.seek(s.offset)){const a=this._reader.readMessage(st.RecordBatch);if(a!=null&&a.isRecordBatch()){const u=a.header(),d=this._reader.readMessageBody(a.bodyLength);return this._loadRecordBatch(u,d)}}return null}_readDictionaryBatch(e){var t;const s=(t=this._footer)===null||t===void 0?void 0:t.getDictionaryBatch(e);if(s&&this._handle.seek(s.offset)){const a=this._reader.readMessage(st.DictionaryBatch);if(a!=null&&a.isDictionaryBatch()){const u=a.header(),d=this._reader.readMessageBody(a.bodyLength),h=this._loadDictionaryBatch(u,d);this.dictionaries.set(u.id,h)}}}_readFooter(){const{_handle:e}=this,t=e.size-R0,s=e.readInt32(t),a=e.readAt(t-s,s);return rh.decode(a)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const s=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(this._recordBatchIndex);if(s&&this._handle.seek(s.offset))return this._reader.readMessage(e)}return null}}class qE extends Zu{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,...t){const s=typeof t[0]!="number"?t.shift():void 0,a=t[0]instanceof Map?t.shift():void 0;super(e instanceof Qu?e:new Qu(e,s),a)}isFile(){return!0}isAsync(){return!0}open(e){const t=Object.create(null,{open:{get:()=>super.open}});return ve(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const s of this._footer.dictionaryBatches())s&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){var t;return ve(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());const s=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(e);if(s&&(yield this._handle.seek(s.offset))){const a=yield this._reader.readMessage(st.RecordBatch);if(a!=null&&a.isRecordBatch()){const u=a.header(),d=yield this._reader.readMessageBody(a.bodyLength);return this._loadRecordBatch(u,d)}}return null})}_readDictionaryBatch(e){var t;return ve(this,void 0,void 0,function*(){const s=(t=this._footer)===null||t===void 0?void 0:t.getDictionaryBatch(e);if(s&&(yield this._handle.seek(s.offset))){const a=yield this._reader.readMessage(st.DictionaryBatch);if(a!=null&&a.isDictionaryBatch()){const u=a.header(),d=yield this._reader.readMessageBody(a.bodyLength),h=this._loadDictionaryBatch(u,d);this.dictionaries.set(u.id,h)}}})}_readFooter(){return ve(this,void 0,void 0,function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const t=e.size-R0,s=yield e.readInt32(t),a=yield e.readAt(t-s,s);return rh.decode(a)})}_readNextMessageAndValidate(e){return ve(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(e)}return null})}}class YE extends Xu{constructor(e,t){super(e,t)}_loadVectors(e,t,s){return new aE(t,e.nodes,e.buffers,this.dictionaries).visitMany(s)}}function A0(r,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:r.autoDestroy}function*Wm(r){const e=ti.from(r);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function Qm(r){return Fr(this,arguments,function*(){const t=yield Te(ti.from(r));try{if(!(yield Te(t.open({autoDestroy:!1}))).closed)do yield yield Te(t);while(!(yield Te(t.reset().open())).closed)}finally{yield Te(t.cancel())}})}function GE(r){return new Gu(new YE(r))}function JE(r){const e=r.peek(Ha+7&-8);return e&&e.byteLength>=4?ch(e)?new F0(new M0(r.read())):new Gu(new Xu(r)):new Gu(new Xu(function*(){}()))}function XE(r){return ve(this,void 0,void 0,function*(){const e=yield r.peek(Ha+7&-8);return e&&e.byteLength>=4?ch(e)?new F0(new M0(yield r.read())):new Ju(new Zu(r)):new Ju(new Zu(function(){return Fr(this,arguments,function*(){})}()))})}function ZE(r){return ve(this,void 0,void 0,function*(){const{size:e}=yield r.stat(),t=new Qu(r,e);return e>=HE&&ch(yield t.readAt(0,Ha+7&-8))?new KE(new qE(t)):new Ju(new Zu(t))})}function P0(r){const e=ti.from(r);return Ma(e)?e.then(t=>P0(t)):e.isAsync()?e.readAll().then(t=>new zn(t)):new zn(e.readAll())}async function Ft(r,e){const{url:t,method:s,params:a,data:u,headers:d,credentials:h,mode:p,cache:m}=r,g=Object.keys({...a}).length>0,v=t.replace(/([^:]\/)\/+/g,"$1"),b=new URL(N0(v),window.location.origin);if(g){const I=Object.entries({...a}).reduce((A,[L,T])=>(T!=null&&(A[L]=String(T)),A),{});b.search=new URLSearchParams(I).toString()}return await new Promise((I,A)=>{fetch(b,{method:s,credentials:h,mode:p,cache:m,headers:ex(d),body:tx(u),signal:e==null?void 0:e.signal}).then(async L=>{if(L.status===204)return{ok:!0};const T=L.headers.get("Content-Type");if(Kt(T))return{ok:!1,message:"Empty response"};if(L.status>=400)try{const q=await L.json();throw q.status=q.status??L.status,q}catch(q){throw{message:L.statusText,...q}}const K=T.includes("text/event-stream"),W=T.includes("application/json"),Y=T.includes("application/vnd.apache.arrow.stream");if(W)return await L.json();if(Y)return await P0(L);if(K){const he=(await L.text()).trim().replace("data: ","").trim();return JSON.parse(he)}}).then(I).catch(A)})}function ex(r){return{"Content-Type":"application/json",...r??{}}}function tx(r){try{return JSON.stringify(r)}catch{return""}}function N0(r="/"){let e=`${Da(window.__BASE_URL__)?"/":window.__BASE_URL__}/${r}`;for(;e.includes("//");)e=e.replaceAll("//","/");return e}const uu={python:"python",sql:"sql",seed:"seed",external:"external",source:"source"},_r={editor:"editor",files:"files","data-catalog":"data-catalog",plans:"plans",tests:"tests",audits:"audits",errors:"errors",data:"data",lineage:"lineage"},bD={NUMBER_1:1,NUMBER_2:2,NUMBER_3:3},ID={init:"init",success:"success",fail:"fail"},nx=(r,e)=>Ft({url:"/api/commands/apply",method:"POST",headers:{"Content-Type":"application/json"},data:r},e),rx=(r,e)=>Ft({url:"/api/commands/evaluate",method:"POST",headers:{"Content-Type":"application/json"},data:r},e),ix=(r,e)=>Ft({url:"/api/commands/fetchdf",method:"POST",headers:{"Content-Type":"application/json"},data:r},e),sx=(r,e)=>Ft({url:"/api/commands/render",method:"POST",headers:{"Content-Type":"application/json"},data:r},e),ox=r=>Ft({url:"/api/files",method:"GET"},r),ax=(r,e)=>Ft({url:`/api/files/${r}`,method:"GET"},e),lx=(r,e,t)=>Ft({url:`/api/files/${r}`,method:"POST",headers:{"Content-Type":"application/json"},data:e},t),ED=(r,e)=>Ft({url:`/api/files/${r}`,method:"DELETE"},e),xD=(r,e,t)=>Ft({url:`/api/directories/${r}`,method:"POST",headers:{"Content-Type":"application/json"},data:e},t),DD=(r,e)=>Ft({url:`/api/directories/${r}`,method:"DELETE"},e),ux=(r,e)=>Ft({url:"/api/plan",method:"POST",headers:{"Content-Type":"application/json"},data:r},e),cx=r=>Ft({url:"/api/plan/cancel",method:"POST"},r),dx=r=>Ft({url:"/api/environments",method:"GET"},r),CD=(r,e)=>Ft({url:`/api/environments/${r}`,method:"DELETE"},e),fx=(r,e,t,s)=>Ft({url:`/api/lineage/${r}/${e}`,method:"GET",params:t},s),hx=(r,e)=>Ft({url:`/api/lineage/${r}`,method:"GET"},e),px=r=>Ft({url:"/api/models",method:"GET"},r),yx=(r,e)=>Ft({url:`/api/models/${r}`,method:"GET"},e),mx=r=>Ft({url:"/api/meta",method:"GET"},r),gx=r=>Ft({url:"/api/modules",method:"GET"},r),vx=(r,e)=>Ft({url:"/api/table_diff",method:"GET",params:r},e),Qr=P.lazy(()=>an(()=>import("./Root-hF35YwMr.js"),[])),wx=P.lazy(()=>an(()=>import("./Editor-DAPqExjL.js"),[])),Sx=P.lazy(()=>an(()=>import("./Plan-D-yXZg-l.js"),[])),_x=P.lazy(()=>an(()=>import("./Content-C-dbt7Qf.js"),[])),bx=P.lazy(()=>an(()=>import("./DataCatalog-D3ACH3Kc.js"),[])),Ix=P.lazy(()=>an(()=>import("./Tests-egYRjgvR.js"),[])),Ex=P.lazy(()=>an(()=>import("./Audits-BnT_XU4z.js"),[])),xx=P.lazy(()=>an(()=>import("./Data-CR1hP4VP.js"),[])),lf=P.lazy(()=>an(()=>import("./Models-DdFxJdwq.js"),[])),Dx=P.lazy(()=>an(()=>import("./Lineage-_5zC2lrH.js"),[])),Cx=P.lazy(()=>an(()=>import("./Errors-fiNNK-UR.js"),[])),Ox=P.lazy(()=>an(()=>import("./Content-PeLqYFgC.js"),[])),Zn=P.lazy(()=>an(()=>import("./Welcome-uoXIxnJO.js"),[])),rt={Home:"/",Editor:"/editor",DataCatalog:"/data-catalog",DataCatalogModels:"/data-catalog/models",Data:"/data",Lineage:"/lineage",LineageModels:"/lineage/models",Tests:"/tests",Audits:"/audits",Errors:"/errors",Plan:"/plan",NotFound:"/not-found"},Hm={plan:[_r.plans]};function Rx(r){const e=[{path:"*",element:tc(r.list)?B.jsx(pn,{link:rt.Home,message:"Back To Main"}):B.jsx(pn,{headline:"Empty"})},{path:rt.Home,element:B.jsx(Qr,{})},...[{path:rt.Editor,element:B.jsx(Qr,{content:B.jsx(wx,{})})},{path:rt.DataCatalog,element:B.jsx(Qr,{content:B.jsx(lf,{route:rt.DataCatalog})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Data Catalog",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.DataCatalog,message:"Back To Data Catalog"})},{path:"models",children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Data Catalog",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.DataCatalog,message:"Back To Data Catalog"})},{path:":modelName",element:B.jsx(P.Suspense,{fallback:B.jsx("div",{className:"flex justify-center items-center w-full h-full",children:B.jsxs(io,{className:"inline-block",children:[B.jsx(ys,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:B.jsx(bx,{})})}]}]},{path:rt.Data,element:B.jsx(Qr,{content:B.jsx(lf,{route:rt.Data})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Data",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.Data,message:"Back To Data"})},{path:"models",children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Data",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.Data,message:"Back To Data"})},{path:":modelName",element:B.jsx(P.Suspense,{fallback:B.jsx("div",{className:"flex justify-center items-center w-full h-full",children:B.jsxs(io,{className:"inline-block",children:[B.jsx(ys,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:B.jsx(xx,{})})}]}]},{path:rt.Lineage,element:B.jsx(Qr,{content:B.jsx(lf,{route:rt.Lineage})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Lineage",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.Lineage,message:"Back To Lineage"})},{path:"models",children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Lineage",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.Lineage,message:"Back To Lineage"})},{path:":modelName",element:B.jsx(P.Suspense,{fallback:B.jsx("div",{className:"flex justify-center items-center w-full h-full",children:B.jsxs(io,{className:"inline-block",children:[B.jsx(ys,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:B.jsx(Dx,{})})}]}]},{path:rt.Errors,element:B.jsx(Qr,{content:B.jsx(Cx,{})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to errors report",tagline:"Here you can see all the errors that occurred."})},{path:"*",element:B.jsx(pn,{link:rt.Errors,message:"Back To Errors"})},{path:":id",element:B.jsx(P.Suspense,{fallback:B.jsx("div",{className:"flex justify-center items-center w-full h-full",children:B.jsxs(io,{className:"inline-block",children:[B.jsx(ys,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:B.jsx(Ox,{})})}]},{path:rt.Plan,element:B.jsx(Qr,{content:B.jsx(Sx,{})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to plan",tagline:"Here you can run the plan and apply the changes."})},{path:"*",element:B.jsx(pn,{link:rt.Plan,message:"Back To Plan"})},{path:"environments",children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to plan",tagline:"Here you can run the plan and apply the changes."})},{path:"*",element:B.jsx(pn,{link:rt.Plan,message:"Back To Plan"})},{path:":environmentName",element:B.jsx(P.Suspense,{fallback:B.jsx("div",{className:"flex justify-center items-center w-full h-full",children:B.jsxs(io,{className:"inline-block",children:[B.jsx(ys,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:B.jsx(_x,{})})}]}]},{path:rt.Tests,element:B.jsx(Qr,{content:B.jsx(Ix,{})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to tests report",tagline:"Here you can run tests and see the results."})},{path:"*",element:B.jsx(pn,{link:rt.Tests,message:"Back To Tests"})}]},{path:rt.Audits,element:B.jsx(Qr,{content:B.jsx(Ex,{})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to audits report",tagline:"Here you can run audits and see the results."})},{path:"*",element:B.jsx(pn,{link:rt.Audits,message:"Back To Audits"})}]}].filter(t=>{var a;const s=t.path.replace("/","");return Kt(Hm[s])?r.list.includes(s):(a=Hm[s])==null?void 0:a.some(u=>r.list.includes(u))})].filter(Boolean);return K1(e,{basename:N0()})}const Ut={API:"api",General:"general",RunPlan:"run-plan",ApplyPlan:"apply-plan",CancelPlan:"cancel-plan",Environments:"environments",Models:"models",Fetchdf:"fetchdf",EvaluateModel:"evaluate-model",RenderQuery:"render-query",ColumnLineage:"column-lineage",ModelLineage:"model-lineage",Meta:"meta",Modules:"modules",FileExplorer:"file-explorer",Table:"table",TableDiff:"table-diff",SaveFile:"save-file"},L0=P.createContext({errors:new Set,addError:()=>({removeError:()=>{},error:{}}),removeError:()=>{},clearErrors:()=>{}});function Fx({children:r}){const[e,t]=P.useState(new Set);function s(d,h){const p={id:uf(),key:d,status:h.status,timestamp:h.timestamp??Date.now(),message:h.message,description:h.description,type:h.type,origin:h.origin,trigger:h.trigger,stack:h.stack,traceback:h.traceback};return t(m=>new Set(m.add(p))),{removeError:()=>a(p),error:p}}function a(d){t(h=>(h.forEach(p=>{(p===d||p.key===d)&&h.delete(p)}),new Set(h)))}function u(){t(new Set)}return B.jsx(L0.Provider,{value:{errors:e,addError:s,removeError:a,clearErrors:u},children:r})}function dh(){return P.useContext(L0)}const B0=60*1e3,Tx=5*B0,lc=10*B0;function Mx(r){return Zt({queryKey:["/api/modules"],queryFn:gx,enabled:!0},{...r,errorKey:Ut.Modules,trigger:"API -> useApiModules"})}function OD(r){return Zt({queryKey:["/api/meta"],queryFn:mx,enabled:!0},{...r,errorKey:Ut.Meta,trigger:"API -> useApiMeta"})}function RD(r){return Zt({queryKey:["/api/models"],queryFn:px},{...r,errorKey:Ut.Models,trigger:"API -> useApiModels"})}function FD(r,e){return Zt({queryKey:["/api/models",r],queryFn:async({signal:t})=>await yx(r,{signal:t})},{...e,errorKey:Ut.Models,trigger:"API -> useApiModel"})}function TD(r){return Zt({queryKey:["/api/files"],queryFn:ox},{...r,errorKey:Ut.FileExplorer,trigger:"API -> useApiFiles"})}function MD(r,e){return Zt({queryKey:["/api/files",r],queryFn:async({signal:t})=>await ax(r,{signal:t})},{...e,errorKey:Ut.FileExplorer,trigger:"API -> useApiFileByPath"})}function AD(r,e){return Zt({queryKey:["/api/lineage",r],queryFn:async({signal:t})=>await hx(r,{signal:t})},{...e,errorKey:Ut.ModelLineage,trigger:"API -> useApiModelLineage"})}function PD(r,e,t,s){return Zt({queryKey:["/api/lineage",r,e],queryFn:async({signal:a})=>await fx(r,e,s,{signal:a})},{...t,errorKey:Ut.ColumnLineage,trigger:"API -> useApiColumnLineage"})}function ND(r){return Zt({queryKey:["/api/environments"],queryFn:dx},{...r,errorKey:Ut.Environments,trigger:"API -> useApiEnvironments"})}function LD(r){return Zt({queryKey:["/api/commands/apply"],queryFn:cx},{...r,errorKey:Ut.CancelPlan,trigger:"API -> useApiCancelPlan"})}function BD(r,e,t){return Zt({queryKey:["/api/plan",r],async queryFn({signal:s}){return await ux({environment:r,plan_dates:e==null?void 0:e.planDates,plan_options:e==null?void 0:e.planOptions,categories:e==null?void 0:e.categories},{signal:s})}},{...t,errorKey:Ut.RunPlan,trigger:"API -> useApiPlanRun"})}function kD(r,e,t){return Zt({queryKey:["/api/commands/apply",r],async queryFn({signal:s}){return await nx({environment:r,plan_dates:e==null?void 0:e.planDates,plan_options:e==null?void 0:e.planOptions,categories:e==null?void 0:e.categories},{signal:s})}},{...t,errorKey:Ut.ApplyPlan,trigger:"API -> useApiPlanApply"})}function UD(r,e){return Zt({queryKey:["/api/commands/fetchd"],queryFn:async({signal:t})=>await ix(r,{signal:t})},{...e,errorKey:Ut.Fetchdf,trigger:"API -> useApiFetchdf",delay:lc})}function jD(r,e){return Zt({queryKey:["/api/commands/render"],queryFn:async({signal:t})=>await sx(r,{signal:t})},{...e,errorKey:Ut.RenderQuery,trigger:"API -> useApiRender",delay:lc})}function zD(r,e){return Zt({queryKey:["/api/commands/table_diff"],queryFn:async({signal:t})=>await vx(r,{signal:t})},{...e,errorKey:Ut.TableDiff,trigger:"API -> useApiTableDiff",delay:lc})}function VD(r,e){return Zt({queryKey:["/api/commands/evaluate"],queryFn:async({signal:t})=>await rx(r,{signal:t})},{...e,errorKey:Ut.EvaluateModel,trigger:"API -> useApiEvaluate",delay:lc})}function $D(r){const{addError:e}=dh();return b_({mutationFn:async({path:t,body:s})=>await lx(t,s),onError(t){e(Ut.SaveFile,t)},async onMutate({path:t}){await r.cancelQueries({queryKey:["/api/files",t]})}})}function Zt(r,{delay:e=Tx,removeTimeoutErrorAfter:t,errorKey:s=Ut.API,trigger:a}){const u=r.queryKey.join(" -> "),d=Nf(),{addError:h}=dh(),[p,m]=P.useState(!1);let g,v=function(){console.log(`[REQUEST TIMEOUT] ${u} id: ${String(g)} timed out after ${e}ms`);const{removeError:q}=h(s,{message:"Request timed out",description:`Request ${u} with timeoutId: ${String(g)} timed out after ${e}ms`,timestamp:Date.now(),origin:"useQueryTimeout",trigger:a});m(!0),A(),sn(t)&&setTimeout(()=>q(),t)};function b(){console.log(`[CLEAR TIMEOUT] ${u} id: ${String(g)} at ${Date.now()}`),clearTimeout(g),g=void 0,v=void 0}function I(){g=setTimeout(()=>{v==null||v()},e),console.log(`[START TIMEOUT] ${u} id: ${String(g)} at ${Date.now()}`)}function A(){b(),d.cancelQueries({queryKey:r.queryKey}),console.log(`[REQUEST CANCELED] ${u} at ${Date.now()}`)}function L(Y){b(),Ca(Y)||Y.name==="AbortError"?console.log(`[REQUEST ABORTED] ${u} aborted by React Query at ${Date.now()}`):(console.log(`[REQUEST FAILED] ${u} failed at ${Date.now()}`),h(s,Y))}function T(){b(),console.log(`[REQUEST COMPLETED] ${u} completed at ${Date.now()}`)}async function K(...Y){return I(),r.queryFn(...Y)}const W=__({cacheTime:0,enabled:!1,queryKey:r.queryKey,queryFn:K,meta:{...r.meta,onError:L,onSuccess:T}});return{...W,refetch:async(...Y)=>new Promise(q=>{W.refetch(...Y,{throwOnError:!0}).then(q).catch(he=>he)}),cancel:A,isTimeout:p}}class k0{constructor(e){wt(this,"_initial");wt(this,"isModel",!0);Kt(e)?this._initial=Object.assign({id:uf()}):this._initial=sn(e==null?void 0:e.id)?e:new Proxy(Object.assign(e??{},{id:uf()}),{set(){throw new Error("Cannot change initial file")}})}get initial(){return this._initial}get id(){return this.initial.id}}class Km extends k0{constructor(t=[]){super();wt(this,"modules",new Set);this.modules=new Set(t)}get list(){return Array.from(this.modules)}get isEmpty(){return this.modules.size===0}get hasErrors(){return this.modules.has(_r.errors)}get hasEditor(){return this.modules.has(_r.editor)}get hasFiles(){return this.modules.has(_r.files)}get hasProjectEditor(){return this.hasEditor&&this.hasFiles}get hasOnlyProjectEditor(){return this.modules.size===2&&this.hasProjectEditor}get hasOnlyDataCatalog(){return this.modules.size===1&&this.hasDataCatalog}get hasProjectEditorAndModule(){return this.modules.size===3&&this.hasProjectEditor&&Ui(this.hasErrors)}get hasDataCatalog(){return this.modules.has(_r["data-catalog"])}get hasPlans(){return this.modules.has(_r.plans)}get hasOnlyPlans(){return this.modules.size===1&&this.hasPlans}get hasOnlyPlansAndErrors(){return this.modules.size===2&&this.hasPlans&&this.hasErrors}get hasTests(){return this.modules.has(_r.tests)}get hasAudits(){return this.modules.has(_r.audits)}get hasData(){return this.modules.has(_r.data)}get hasLineage(){return this.modules.has(_r.lineage)}get hasModuleAndErrors(){return this.hasErrors&&(this.modules.size===2||this.modules.size===3&&this.hasProjectEditor)}get hasSingleModule(){return this.modules.size===1}get showModuleNavigation(){return this.isEmpty||this.hasSingleModule||this.hasOnlyProjectEditor||this.hasModuleAndErrors||this.hasOnlyDataCatalog?!1:this.hasProjectEditorAndModule?!0:Ui(this.isEmpty)}get showHistoryNavigation(){return this.hasOnlyProjectEditor||this.hasModuleAndErrors||this.hasOnlyDataCatalog?!1:this.hasProjectEditorAndModule||this.hasDataCatalog?!0:Ui(this.isEmpty)}get showNavigation(){return this.hasErrors||this.hasPlans||this.showHistoryNavigation}update(t=[]){this.modules=new Set(t)}defaultNavigationRoute(){return this.hasEditor?rt.Editor:this.hasPlans?rt.Plan:this.hasDataCatalog?rt.DataCatalog:rt.NotFound}}class Ax extends k0{constructor(t){super(t!=null&&t.isModel?t.initial:{...t,dialect:(t==null?void 0:t.dialect)??"Default",columns:(t==null?void 0:t.columns)??[],details:(t==null?void 0:t.details)??{}});wt(this,"_details",{});wt(this,"_detailsIndex","");wt(this,"name");wt(this,"fqn");wt(this,"path");wt(this,"full_path");wt(this,"dialect");wt(this,"type");wt(this,"columns");wt(this,"default_catalog");wt(this,"description");wt(this,"sql");wt(this,"definition");wt(this,"hash");this.name=encodeURI(this.initial.name),this.fqn=encodeURI(this.initial.fqn),this.default_catalog=this.initial.default_catalog,this.path=this.initial.path,this.full_path=this.initial.full_path,this.dialect=this.initial.dialect,this.description=this.initial.description,this.sql=this.initial.sql,this.definition=this.initial.definition,this.columns=this.initial.columns??[],this.type=this.initial.type,this.hash=this.initial.hash,this.details=this.initial.details??{}}get defaultCatalog(){return this.default_catalog}get details(){return this._details}set details(t){const s=[];for(const a of Object.values(t))tc(a)?a.forEach(u=>{s.push(...Object.values(u))}):s.push(a);this._details=t,this._detailsIndex=s.join(" ")}get index(){return[this.displayName,this.path,this.type,...this.columns.map(t=>Object.values(t)).flat(),this._detailsIndex,this.dialect,this.description].filter(Boolean).join(" ").toLowerCase()}get isModelPython(){return this.type===uu.python}get isModelSQL(){return this.type===uu.sql}get isModelSeed(){return this.type===uu.seed}get isModelExternal(){return this.type===uu.external}get displayName(){return decodeURI(this.name)}update(t={}){for(const[s,a]of Object.entries(t))s==="columns"?this.columns=a:s==="details"?this.details=a:s==="name"?this.name=encodeURI(a):s==="fqn"?this.fqn=encodeURI(a):s==="type"?this.type=a:s==="default_catalog"?this.default_catalog=a:s==="description"?this.description=a:s in this&&(this[s]=a)}}const qm=r=>{let e;const t=new Set,s=(m,g)=>{const v=typeof m=="function"?m(e):m;if(!Object.is(v,e)){const b=e;e=g??(typeof v!="object"||v===null)?v:Object.assign({},e,v),t.forEach(I=>I(e,b))}},a=()=>e,h={setState:s,getState:a,getInitialState:()=>p,subscribe:m=>(t.add(m),()=>t.delete(m))},p=e=r(s,a,h);return h},Px=r=>r?qm(r):qm,Nx=r=>r;function Lx(r,e=Nx){const t=Es.useSyncExternalStore(r.subscribe,()=>e(r.getState()),()=>e(r.getInitialState()));return Es.useDebugValue(t),t}const Ym=r=>{const e=Px(r),t=s=>Lx(e,s);return Object.assign(t,e),t},Bx=r=>r?Ym(r):Ym,ba={Empty:"",Prod:"prod"},Xr={Local:"local",Remote:"remote"},[Gm,kx]=ag("profile");class Xt{constructor(e,t,s=ba.Prod,a=!1,u=!1){wt(this,"_initial");wt(this,"_type");wt(this,"_createFrom");wt(this,"_isPinned",!1);wt(this,"_isDefault",!1);wt(this,"isModel",!0);this._initial=e,this._type=t??Xr.Local,this._createFrom=this._isDefault?ba.Empty:s,this._isPinned=a,this._isDefault=u}get id(){return this._initial.plan_id??""}get name(){return this._initial.name??ba.Empty}get type(){return this._type}get createFrom(){return this._createFrom}get isProd(){return this.name===ba.Prod}get isDefault(){return this._isDefault}set isDefault(e){this._isDefault=e}get isPinned(){return this._isPinned||this.isDefault||this.isProd}set isPinned(e){this._isPinned=e}get isInitial(){var e;return Da((e=this._initial)==null?void 0:e.plan_id)}get isLocal(){return this._type===Xr.Local}get isRemote(){return this._type===Xr.Remote}get isSyncronized(){return this.isRemote&&Ui(this.isInitial)}get isInitialProd(){return this.isInitial&&this.isProd}setType(e){this._type=e}setCreatedFrom(e){this._createFrom=e}update(e){this._initial=e}static save({environment:e,environments:t}){const s={};sn(e)&&(s.environment={name:e.name,plan_id:e.id,type:e.type,createFrom:e.createFrom,isPinned:e.isPinned,isDefault:e.isDefault}),sn(t)&&(s.environments=Xt.getOnlyLocal(t).map(a=>({name:a.name,plan_id:a.id,type:a.type,createFrom:a.createFrom,isPinned:a.isPinned,isDefault:a.isDefault}))),kx(s)}static getOnlyLocal(e=[]){return e.filter(t=>Ui(Da(t.name))&&t.isLocal)}static getOnlyRemote(e=[]){return e.filter(t=>Ui(Da(t.name))&&t.isRemote)}static getEnvironment(){const{environment:e}=Gm()??{};if(Kt(e))return;const{name:t,plan_id:s,type:a,createFrom:u,isPinned:d,isDefault:h}=e;return new Xt({name:t,plan_id:s},a,u,d,h)}static getEnvironments(){const e=Gm(),t=new Map;sn(e)&&sn(e.environment)&&t.set(e.environment.name,e.environment),sn(e)&&sn(e.environments)&&e.environments.forEach(a=>t.set(a.name,a));const s=[];return Array.from(t.entries()).forEach(([a,u])=>{s.push(new Xt({name:a,plan_id:u.plan_id},u.type,u.createFrom,u.isPinned,u.isDefault))}),sg(s)&&s.push(new Xt({name:ba.Prod},Xr.Local)),s}static sort(e){return e.sort(t=>t.isRemote?-1:1),e}}const Jm="prod",U0=new Set(Xt.getEnvironments()),Xm=Xt.getEnvironment()??U0.values().next().value,Zm=Bx((r,e)=>({version:void 0,modules:new Km,splitPaneSizes:[20,80],showConfirmation:!1,confirmations:[],environment:Xm,environments:U0,initialStartDate:void 0,initialEndDate:void 0,models:new Map,lastSelectedModel:void 0,setLastSelectedModel(t){r(()=>({lastSelectedModel:t}))},setModules(t){r(()=>({modules:new Km(t.list)}))},isModel(t){return e().models.has(t)},setSplitPaneSizes(t){r(()=>({splitPaneSizes:t}))},setVersion(t){r(()=>({version:t}))},setShowConfirmation(t){r(()=>({showConfirmation:t}))},addConfirmation(t){r(s=>(s.confirmations.push(t),{confirmations:Array.from(s.confirmations)}))},removeConfirmation(){const t=e();t.confirmations.shift(),r(()=>({confirmations:Array.from(t.confirmations)}))},setModels(t=[]){const s=e();r(()=>({models:t.reduce((a,u)=>{const d=new Ax(u);let h=s.models.get(d.path)??s.models.get(d.name)??s.models.get(d.fqn);return Kt(h)?h=d:h.update(u),a.set(h.name,h),a.set(h.fqn,h),a.set(h.path,h),a},new Map)}))},getNextEnvironment(){return e().environments.values().next().value??Xm},isExistingEnvironment(t){const s=e();if(t.isModel)return s.environments.has(t);let a=!1;return s.environments.forEach(u=>{u.name===t&&(a=!0)}),a},setEnvironment(t){r(()=>(Xt.save({environment:t}),{environment:t}))},addLocalEnvironment(t,s=Jm){r(a=>{if(Da(t))return a;const u=new Xt({name:t},Xr.Local,s);return a.environments.add(u),a.setEnvironment(u),Xt.save({environments:Array.from(a.environments)}),{environments:new Set(a.environments)}})},removeLocalEnvironment(t){r(s=>(s.environments.delete(t),Xt.save({environments:Array.from(s.environments)}),{environments:new Set(s.environments)}))},addRemoteEnvironments(t=[],s,a=[]){r(u=>{const d=Array.from(u.environments);t.forEach(I=>{let A=d.find(({name:L})=>I.name===L);Kt(A)?(A=new Xt(I,Xr.Remote),d.push(A)):(A.update(I),A.setType(Xr.Remote)),u.environment.name===I.name&&u.environment.update(I),A.isInitial&&A.isDefault&&u.setEnvironment(A)}),a.forEach(I=>{const A=d.find(({name:L})=>I===L);Kt(A)?d.push(new Xt({name:I},Xr.Local,void 0,!0)):A.isPinned=!0});const h=Xt.getEnvironment();let p,m,g;d.forEach(I=>{switch(I.name){case Jm:p=I;break;case(h==null?void 0:h.name):m=I;break;case s:I.isDefault=!0,g=I}});const v=u.environment??m??g,b=OS(p==null?void 0:p.isInitial)?p:v;return Xt.save({environments:d,environment:b}),Xt.sort(d),{environment:b,environments:new Set(d)}})},hasRemoteEnvironments(){const t=e();return Array.from(t.environments).some(({type:s})=>s===Xr.Remote)}}));function eg({children:r,className:e}){return B.jsx("div",{className:Tr("flex justify-center items-center w-full h-full",e),children:B.jsxs(io,{className:"inline-block",children:[B.jsx(ys,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:r})]})})}const j0=!!(window.__IS_HEADLESS__??!1),tg=j0?void 0:P.lazy(()=>an(()=>import("./Header-BAp2F5ka.js"),[])),ng=j0?void 0:P.lazy(()=>an(()=>import("./Footer-BK44TAno.js"),[]));function Ux(){const{addError:r}=dh(),e=Zm(h=>h.modules),t=Zm(h=>h.setModules),{refetch:s,cancel:a,isFetching:u}=Mx();P.useEffect(()=>(s().then(({data:h})=>{e.update(h),t(e)}).catch(h=>r(Ut.Modules,h)),()=>{a()}),[]);const d=Rx(e);return B.jsxs(B.Fragment,{children:[sn(tg)&&B.jsxs(B.Fragment,{children:[B.jsx(tg,{}),B.jsx(Em,{})]}),B.jsx("main",{className:"h-full overflow-hidden relative",children:u?B.jsx(eg,{className:"absolute w-full h-full bg-theme z-10",children:"Building Modules..."}):B.jsx(P.Suspense,{fallback:B.jsx(eg,{children:"Loading Page..."}),children:tc(e.list)?B.jsx(tb,{router:d}):B.jsx(pn,{description:"No Modules Found"})})}),sn(ng)&&B.jsxs(B.Fragment,{children:[B.jsx(Em,{}),B.jsx(ng,{})]})]})}const jx=new XS({queryCache:new gg({onError(r,e){e.meta.onError(r)},onSuccess(r,e){e.meta.onSuccess()}}),defaultOptions:{queries:{networkMode:"always",refetchOnWindowFocus:!1,retry:!1,staleTime:1/0}}});kS.createRoot(zx()).render(B.jsx(Es.StrictMode,{children:B.jsx(l_,{client:jx,children:B.jsx(MS,{children:B.jsx(Fx,{children:B.jsx(Ux,{})})})})}));function zx(){const r="root";let e=document.getElementById(r);if(sn(e))return e;const t=document.body,s=t.children[0];return e=document.createElement("div"),e.id=r,e.className="h-full w-full flex flex-col justify-start",s instanceof HTMLElement?t.insertBefore(e,s):t.appendChild(e),e}export{CD as $,TD as A,cD as B,ID as C,Wx as D,ro as E,sg as F,Ut as G,$g as H,Em as I,Da as J,bD as K,io as L,Xt as M,oD as N,sD as O,Xx as P,Gx as Q,Es as R,ys as S,mb as T,iD as U,pn as V,nD as W,Hx as X,Wg as Y,uD as Z,an as _,Zm as a,k0 as a0,Bx as a1,Tf as a2,ig as a3,FD as a4,Yx as a5,jD as a6,VD as a7,eg as a8,tD as a9,ag as aA,uf as aB,lD as aC,AD as aD,Qx as aa,RS as ab,wg as ac,r_ as ad,dD as ae,xm as af,fD as ag,xD as ah,lx as ai,ED as aj,DD as ak,zD as al,UD as am,ix as an,$x as ao,ec as ap,o_ as aq,eD as ar,aD as as,Nf as at,MD as au,$D as av,Zx as aw,Kx as ax,PD as ay,uu as az,Ui as b,Tr as c,dh as d,rt as e,CS as f,OS as g,tc as h,sn as i,B as j,ND as k,BD as l,Rt as m,it as n,qx as o,kD as p,LD as q,P as r,Jx as s,I1 as t,rD as u,RD as v,Kt as w,N0 as x,Va as y,OD as z};