UNPKG

apollo-client-devtools

Version:

Developer tools for Apollo Client, with Studio Explorer integration, cache inspection, and query watching.

296 lines • 1.67 MB
(()=>{var e={508(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tokens=t.primitives=void 0,t.primitives=n(576),t.tokens=n(676)},576(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.purple=t.green=t.yellow=t.red=t.navy=t.blue=t.silver=t.gray=t.black=t.white=t.beige=t.orange=void 0,t.orange={700:"#59301D",600:"#652100",500:"#B03900",400:"#FC5200",350:"#EC6A2B",300:"#FD864D",200:"#FEBA99",100:"#FFF4EF"},t.beige={500:"#FFCCA8",400:"#FFEADB",300:"#FFF0E6",200:"#FFF7F1",100:"#FFFDFB"},t.white="#FFFFFF",t.black={300:"#020404",200:"#0D171C",100:"#13222A"},t.gray={600:"#384341",500:"#546461",400:"#7C928F",300:"#98A9A7",200:"#B4C0BE",100:"#CFD7D6"},t.silver={500:"#C7CFCE",400:"#E7E9E9",300:"#F2F4F4",200:"#F7F9F9",100:"#FDFDFD"},t.blue={600:"#0D3352",500:"#00417D",400:"#005AAF",300:"#0081FA",200:"#7DC0FF",100:"#E5F2FF"},t.navy={500:"#15252D",450:"#182C35",400:"#254250",300:"#365E72",200:"#467B95",100:"#5C95B2"},t.red={600:"#4D282C",500:"#822727",400:"#BF2E2A",300:"#DB4D48",250:"#E06F6B",200:"#FEB2B2",100:"#FFF5F5"},t.yellow={600:"#283022",500:"#7D6800",400:"#AF9200",300:"#FAD000",200:"#FFE97D",100:"#FFFBE5"},t.green={600:"#183130",500:"#22543D",400:"#25855A",300:"#00FAB3",200:"#9AE6B4",100:"#F0FFF4"},t.purple={600:"#321859",500:"#310050",400:"#56008B",300:"#7B00C7",200:"#C363FF",100:"#F3E0FF"}},676(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flowchart=t.code=t.brand=t.icon=t.button=t.bg=t.text=t.border=void 0;const r=n(576);t.border={primary:{base:r.silver[400],dark:r.navy[400]},secondary:{base:r.silver[400],dark:r.navy[300]},hover:{base:r.gray[300],dark:r.navy[300]},success:{base:r.green[400],dark:r.green[300]},error:{base:r.red[400],dark:r.red[250]},warning:{base:r.orange[400],dark:r.orange[300]},neutral:{base:r.navy[400],dark:r.navy[200]},info:{base:r.blue[400],dark:r.blue[200]},beta:{base:r.purple[400],dark:r.purple[200]},highlight:{base:r.yellow[400],dark:r.yellow[400]},focused:{base:r.blue[400],dark:r.blue[200]},disabled:{base:r.silver[400],dark:r.navy[300]},selected:{base:r.navy[400],dark:r.navy[200]},splitbutton:{base:r.navy[500],dark:r.navy[300]},deselected:{base:r.gray[500],dark:r.gray[400]},white:{base:r.silver[100],dark:r.silver[100]},black:{base:r.navy[400],dark:r.navy[400]},tab:{base:r.navy[400],dark:r.navy[200]}};const o={base:r.navy[500],dark:r.silver[200]};t.text={primary:{base:r.gray[600],dark:r.silver[500]},secondary:{base:r.gray[500],dark:r.gray[300]},placeholder:{base:r.gray[500],dark:r.gray[300]},heading:o,header:o,link:{base:r.gray[600],dark:r.silver[500]},success:{base:r.green[500],dark:r.green[200]},error:{base:r.red[400],dark:r.red[200]},warning:{base:r.orange[500],dark:r.orange[200]},neutral:{base:r.gray[600],dark:r.gray[100]},info:{base:r.blue[500],dark:r.blue[100]},beta:{base:r.purple[500],dark:r.purple[100]},disabled:{base:r.gray[200],dark:r.navy[300]},inverted:{base:r.silver[100],dark:r.navy[500]},white:{base:r.silver[100],dark:r.silver[100]},black:{base:r.gray[600],dark:r.gray[600]}};const i={base:r.gray[500],dark:r.gray[400]};t.bg={primary:{base:r.silver[100],dark:r.black[100]},secondary:{base:r.silver[300],dark:r.black[200]},success:{base:r.green[100],dark:r.green[600]},successSelected:{base:r.green[200],dark:r.green[400]},error:{base:r.red[100],dark:r.red[600]},errorSelected:{base:r.red[200],dark:r.red[500]},errorHover:{base:r.red[250],dark:r.red[200]},warning:{base:r.orange[100],dark:r.orange[700]},warningSelected:{base:r.orange[200],dark:r.orange[500]},warningHover:{base:r.orange[350],dark:r.orange[200]},neutral:{base:r.silver[400],dark:r.navy[450]},info:{base:r.blue[100],dark:r.blue[600]},infoHover:{base:r.blue[300],dark:r.blue[200]},notice:{base:r.blue[400],dark:r.blue[200]},beta:{base:r.purple[100],dark:r.purple[600]},betaHover:{base:r.purple[300],dark:r.purple[200]},highlight:{base:r.yellow[100],dark:r.yellow[600]},searchHighlight:{base:r.green[500],dark:r.green[200]},tableHeader:{base:r.silver[300],dark:r.navy[400]},tableHover:{base:r.silver[300],dark:r.black[300]},input:{base:r.silver[100],dark:r.navy[450]},white:{base:r.silver[100],dark:r.silver[100]},black:{base:r.black[100],dark:r.black[100]},overlay:{base:r.black[300],dark:r.black[300]},selected:{base:r.navy[300],dark:r.navy[400]},deselected:i,unselected:i,disabled:{base:r.silver[400],dark:r.navy[400]},blueTagHover:{base:r.blue[200],dark:r.blue[500]},grayTagHover:{base:r.silver[500],dark:r.navy[500]}},t.button={primary:{base:r.navy[400],dark:r.navy[200]},primaryHover:{base:r.navy[500],dark:r.navy[300]},primarySelected:{base:r.navy[300],dark:r.navy[400]},destructive:{base:r.red[400],dark:r.red[400]},destructiveHover:{base:r.red[500],dark:r.red[500]},secondary:{base:r.silver[100],dark:r.black[100]},secondaryHover:{base:r.silver[300],dark:r.black[300]},secondarySelected:{base:r.silver[400],dark:r.navy[300]},disabled:{base:r.silver[400],dark:r.navy[400]}},t.icon={primary:t.text.primary,secondary:{base:r.gray[500],dark:r.gray[400]},success:{base:r.green[400],dark:r.green[200]},error:{base:r.red[400],dark:r.red[250]},warning:{base:r.orange[400],dark:r.orange[300]},change:{base:r.yellow[500],dark:r.yellow[300]},info:{base:r.blue[400],dark:r.blue[200]},beta:{base:r.purple[400],dark:r.purple[200]},disabled:{base:r.gray[200],dark:r.navy[300]},inverted:{base:r.silver[100],dark:r.navy[500]},white:{base:r.silver[100],dark:r.silver[100]}};const a={base:r.navy[500],dark:r.navy[100]},s={base:r.gray[400],dark:r.gray[400]},l={base:r.beige[500],dark:r.beige[400]},c={base:r.orange[400],dark:r.orange[300]};t.brand={nebula:a,primary:a,satellite:s,secondary:s,regolith:l,tertiary:l,horizon:c,accent:c},t.code={a:{base:r.gray[500],dark:r.gray[200]},b:{base:r.blue[400],dark:r.blue[200]},c:{base:r.purple[300],dark:r.purple[200]},d:{base:r.green[500],dark:r.green[300]},e:{base:r.yellow[500],dark:r.yellow[300]},f:{base:r.navy[300],dark:r.navy[100]},g:{base:r.orange[500],dark:r.orange[200]}};const u={base:r.blue[300],dark:r.blue[200]};t.flowchart={text:t.text.primary,a:t.code.e,b:t.code.d,c:{base:r.orange[400],dark:r.orange[300]},d:u,e:u}},917(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typography=void 0;const r=n(423),o=n(935);t.typography={primitives:r.primitives,tokens:o.tokens}},423(e,t){"use strict";t.primitives=void 0;const n=(e,t)=>({fontSize:e,lineHeight:t/e}),r={"3xl":n(30,36),"2xl":n(24,32),xl:n(20,28),lg:n(18,28),md:n(16,24),sm:n(14,20),xs:n(12,16)};t.primitives={fontSize:r,fontWeight:{normal:400,medium:500,semibold:600,bold:700}}},935(e,t,n){"use strict";t.tokens=void 0;const r=n(423),{fontSize:o,fontWeight:i}=r.primitives;t.tokens={"3xl":Object.assign(Object.assign({},o["3xl"]),{fontFamily:"heading",fontWeight:i.medium}),"2xl":Object.assign(Object.assign({},o["2xl"]),{fontFamily:"heading",fontWeight:i.medium}),xl:Object.assign(Object.assign({},o.xl),{fontFamily:"heading",fontWeight:i.medium}),lg:Object.assign(Object.assign({},o.lg),{fontFamily:"heading",fontWeight:i.medium}),md:Object.assign(Object.assign({},o.md),{fontFamily:"heading",fontWeight:i.medium}),base:Object.assign(Object.assign({},o.md),{fontFamily:"body",fontWeight:i.normal}),sm:Object.assign(Object.assign({},o.sm),{fontFamily:"body",fontWeight:i.normal}),xs:Object.assign(Object.assign({},o.xs),{fontFamily:"body",fontWeight:i.normal}),code:Object.assign(Object.assign({},o.sm),{fontFamily:"code",fontWeight:i.normal})}},469(e,t,n){"use strict";var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,'*, ::before, ::after {\n  --tw-border-spacing-x: 0;\n  --tw-border-spacing-y: 0;\n  --tw-translate-x: 0;\n  --tw-translate-y: 0;\n  --tw-rotate: 0;\n  --tw-skew-x: 0;\n  --tw-skew-y: 0;\n  --tw-scale-x: 1;\n  --tw-scale-y: 1;\n  --tw-pan-x:  ;\n  --tw-pan-y:  ;\n  --tw-pinch-zoom:  ;\n  --tw-scroll-snap-strictness: proximity;\n  --tw-gradient-from-position:  ;\n  --tw-gradient-via-position:  ;\n  --tw-gradient-to-position:  ;\n  --tw-ordinal:  ;\n  --tw-slashed-zero:  ;\n  --tw-numeric-figure:  ;\n  --tw-numeric-spacing:  ;\n  --tw-numeric-fraction:  ;\n  --tw-ring-inset:  ;\n  --tw-ring-offset-width: 0px;\n  --tw-ring-offset-color: #fff;\n  --tw-ring-color: rgb(0 65 125 / 0.5);\n  --tw-ring-offset-shadow: 0 0 #0000;\n  --tw-ring-shadow: 0 0 #0000;\n  --tw-shadow: 0 0 #0000;\n  --tw-shadow-colored: 0 0 #0000;\n  --tw-blur:  ;\n  --tw-brightness:  ;\n  --tw-contrast:  ;\n  --tw-grayscale:  ;\n  --tw-hue-rotate:  ;\n  --tw-invert:  ;\n  --tw-saturate:  ;\n  --tw-sepia:  ;\n  --tw-drop-shadow:  ;\n  --tw-backdrop-blur:  ;\n  --tw-backdrop-brightness:  ;\n  --tw-backdrop-contrast:  ;\n  --tw-backdrop-grayscale:  ;\n  --tw-backdrop-hue-rotate:  ;\n  --tw-backdrop-invert:  ;\n  --tw-backdrop-opacity:  ;\n  --tw-backdrop-saturate:  ;\n  --tw-backdrop-sepia:  ;\n  --tw-contain-size:  ;\n  --tw-contain-layout:  ;\n  --tw-contain-paint:  ;\n  --tw-contain-style:  ;\n}\n\n::backdrop {\n  --tw-border-spacing-x: 0;\n  --tw-border-spacing-y: 0;\n  --tw-translate-x: 0;\n  --tw-translate-y: 0;\n  --tw-rotate: 0;\n  --tw-skew-x: 0;\n  --tw-skew-y: 0;\n  --tw-scale-x: 1;\n  --tw-scale-y: 1;\n  --tw-pan-x:  ;\n  --tw-pan-y:  ;\n  --tw-pinch-zoom:  ;\n  --tw-scroll-snap-strictness: proximity;\n  --tw-gradient-from-position:  ;\n  --tw-gradient-via-position:  ;\n  --tw-gradient-to-position:  ;\n  --tw-ordinal:  ;\n  --tw-slashed-zero:  ;\n  --tw-numeric-figure:  ;\n  --tw-numeric-spacing:  ;\n  --tw-numeric-fraction:  ;\n  --tw-ring-inset:  ;\n  --tw-ring-offset-width: 0px;\n  --tw-ring-offset-color: #fff;\n  --tw-ring-color: rgb(0 65 125 / 0.5);\n  --tw-ring-offset-shadow: 0 0 #0000;\n  --tw-ring-shadow: 0 0 #0000;\n  --tw-shadow: 0 0 #0000;\n  --tw-shadow-colored: 0 0 #0000;\n  --tw-blur:  ;\n  --tw-brightness:  ;\n  --tw-contrast:  ;\n  --tw-grayscale:  ;\n  --tw-hue-rotate:  ;\n  --tw-invert:  ;\n  --tw-saturate:  ;\n  --tw-sepia:  ;\n  --tw-drop-shadow:  ;\n  --tw-backdrop-blur:  ;\n  --tw-backdrop-brightness:  ;\n  --tw-backdrop-contrast:  ;\n  --tw-backdrop-grayscale:  ;\n  --tw-backdrop-hue-rotate:  ;\n  --tw-backdrop-invert:  ;\n  --tw-backdrop-opacity:  ;\n  --tw-backdrop-saturate:  ;\n  --tw-backdrop-sepia:  ;\n  --tw-contain-size:  ;\n  --tw-contain-layout:  ;\n  --tw-contain-paint:  ;\n  --tw-contain-style:  ;\n}/*\n! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n  box-sizing: border-box; /* 1 */\n  border-width: 0; /* 2 */\n  border-style: solid; /* 2 */\n  border-color: #B4C0BE; /* 2 */\n}\n\n::before,\n::after {\n  --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n  line-height: 1.5; /* 1 */\n  -webkit-text-size-adjust: 100%; /* 2 */\n  -moz-tab-size: 4; /* 3 */\n  -o-tab-size: 4;\n     tab-size: 4; /* 3 */\n  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n  font-feature-settings: normal; /* 5 */\n  font-variation-settings: normal; /* 6 */\n  -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n  margin: 0; /* 1 */\n  line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n  height: 0; /* 1 */\n  color: inherit; /* 2 */\n  border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n  -webkit-text-decoration: underline dotted;\n          text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n  font-size: inherit;\n  font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n  color: inherit;\n  text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n  font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n  font-feature-settings: normal; /* 2 */\n  font-variation-settings: normal; /* 3 */\n  font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n  font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n  font-size: 75%;\n  line-height: 0;\n  position: relative;\n  vertical-align: baseline;\n}\n\nsub {\n  bottom: -0.25em;\n}\n\nsup {\n  top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n  text-indent: 0; /* 1 */\n  border-color: inherit; /* 2 */\n  border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n  font-family: inherit; /* 1 */\n  font-feature-settings: inherit; /* 1 */\n  font-variation-settings: inherit; /* 1 */\n  font-size: 100%; /* 1 */\n  font-weight: inherit; /* 1 */\n  line-height: inherit; /* 1 */\n  letter-spacing: inherit; /* 1 */\n  color: inherit; /* 1 */\n  margin: 0; /* 2 */\n  padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n  text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'reset\']),\ninput:where([type=\'submit\']) {\n  -webkit-appearance: button; /* 1 */\n  background-color: transparent; /* 2 */\n  background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n  outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n  box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n  vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n  height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n  -webkit-appearance: textfield; /* 1 */\n  outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n  -webkit-appearance: button; /* 1 */\n  font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n  display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n  margin: 0;\n}\n\nfieldset {\n  margin: 0;\n  padding: 0;\n}\n\nlegend {\n  padding: 0;\n}\n\nol,\nul,\nmenu {\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n  padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n  resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n  opacity: 1; /* 1 */\n  color: #7C928F; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n  opacity: 1; /* 1 */\n  color: #7C928F; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n  cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n  cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n   This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n  display: block; /* 1 */\n  vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n  max-width: 100%;\n  height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden="until-found"])) {\n  display: none;\n}\n  html,\n  body {\n  font-family: Inter, sans-serif;\n}\n\n  body {\n  font-size: 1rem;\n  line-height: 1.5;\n  font-weight: 400;\n}\n\n  pre,\n  code {\n  font-family: \'Fira Code\', monospace;\n}\n\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6 {\n  font-family: Inter, sans-serif;\n}\n\n  a {\n  text-decoration-line: underline;\n  --tw-text-opacity: 1;\n  color: rgb(56 67 65 / var(--tw-text-opacity, 1));\n}\n\n  @media (prefers-color-scheme: dark) {\n\n  a {\n    --tw-text-opacity: 1;\n    color: rgb(199 207 206 / var(--tw-text-opacity, 1));\n  }\n}\n\n  :not(pre) > code {\n  display: inline-block;\n  border-radius: 0.25rem;\n  padding-top: 1px;\n  padding-bottom: 1px;\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n  font-size: 0.875rem;\n  line-height: 1.4285714285714286;\n  --tw-text-opacity: 1;\n  color: rgb(84 100 97 / var(--tw-text-opacity, 1));\n}\n\n  @media (prefers-color-scheme: dark) {\n\n  :not(pre) > code {\n    --tw-text-opacity: 1;\n    color: rgb(180 192 190 / var(--tw-text-opacity, 1));\n  }\n}\n\n  :not(pre) > code {\n  --tw-bg-opacity: 1;\n  background-color: rgb(242 244 244 / var(--tw-bg-opacity, 1));\n}\n\n  @media (prefers-color-scheme: dark) {\n\n  :not(pre) > code {\n    --tw-bg-opacity: 1;\n    background-color: rgb(13 23 28 / var(--tw-bg-opacity, 1));\n  }\n}\n\n  :not(pre) > code {\n  border-width: 1px;\n  --tw-border-opacity: 1;\n  border-color: rgb(231 233 233 / var(--tw-border-opacity, 1));\n}\n\n  @media (prefers-color-scheme: dark) {\n\n  :not(pre) > code {\n    --tw-border-opacity: 1;\n    border-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n  }\n}\n.container {\n  width: 100%;\n}\n@media (min-width: 640px) {\n\n  .container {\n    max-width: 640px;\n  }\n}\n@media (min-width: 768px) {\n\n  .container {\n    max-width: 768px;\n  }\n}\n@media (min-width: 1024px) {\n\n  .container {\n    max-width: 1024px;\n  }\n}\n@media (min-width: 1280px) {\n\n  .container {\n    max-width: 1280px;\n  }\n}\n@media (min-width: 1536px) {\n\n  .container {\n    max-width: 1536px;\n  }\n}\n.invisible {\n  visibility: hidden;\n}\n.fixed {\n  position: fixed;\n}\n.absolute {\n  position: absolute;\n}\n.relative {\n  position: relative;\n}\n.sticky {\n  position: sticky;\n}\n.inset-0 {\n  inset: 0px;\n}\n.-left-\\[2ch\\] {\n  left: -2ch;\n}\n.-top-0\\.5 {\n  top: -0.125rem;\n}\n.-top-px {\n  top: -1px;\n}\n.bottom-0 {\n  bottom: 0px;\n}\n.bottom-px {\n  bottom: 1px;\n}\n.left-4 {\n  left: 1rem;\n}\n.left-px {\n  left: 1px;\n}\n.right-\\[6px\\] {\n  right: 6px;\n}\n.right-px {\n  right: 1px;\n}\n.top-0 {\n  top: 0px;\n}\n.top-1\\/2 {\n  top: 50%;\n}\n.top-px {\n  top: 1px;\n}\n.isolate {\n  isolation: isolate;\n}\n.z-10 {\n  z-index: 10;\n}\n.-m-px {\n  margin: -1px;\n}\n.m-auto {\n  margin: auto;\n}\n.mx-2 {\n  margin-left: 0.5rem;\n  margin-right: 0.5rem;\n}\n.mx-auto {\n  margin-left: auto;\n  margin-right: auto;\n}\n.my-2 {\n  margin-top: 0.5rem;\n  margin-bottom: 0.5rem;\n}\n.-mb-px {\n  margin-bottom: -1px;\n}\n.mb-2 {\n  margin-bottom: 0.5rem;\n}\n.mb-4 {\n  margin-bottom: 1rem;\n}\n.ml-2 {\n  margin-left: 0.5rem;\n}\n.ml-4 {\n  margin-left: 1rem;\n}\n.ml-auto {\n  margin-left: auto;\n}\n.mr-3 {\n  margin-right: 0.75rem;\n}\n.mr-8 {\n  margin-right: 2rem;\n}\n.ms-2 {\n  margin-inline-start: 0.5rem;\n}\n.mt-1 {\n  margin-top: 0.25rem;\n}\n.mt-2 {\n  margin-top: 0.5rem;\n}\n.mt-20 {\n  margin-top: 5rem;\n}\n.mt-3 {\n  margin-top: 0.75rem;\n}\n.mt-4 {\n  margin-top: 1rem;\n}\n.mt-6 {\n  margin-top: 1.5rem;\n}\n.mt-8 {\n  margin-top: 2rem;\n}\n.block {\n  display: block;\n}\n.inline-block {\n  display: inline-block;\n}\n.flex {\n  display: flex;\n}\n.inline-flex {\n  display: inline-flex;\n}\n.grid {\n  display: grid;\n}\n.hidden {\n  display: none;\n}\n.size-10 {\n  width: 2.5rem;\n  height: 2.5rem;\n}\n.size-3 {\n  width: 0.75rem;\n  height: 0.75rem;\n}\n.size-4 {\n  width: 1rem;\n  height: 1rem;\n}\n.size-5 {\n  width: 1.25rem;\n  height: 1.25rem;\n}\n.size-6 {\n  width: 1.5rem;\n  height: 1.5rem;\n}\n.size-8 {\n  width: 2rem;\n  height: 2rem;\n}\n.size-\\[--ov-arrow-size\\] {\n  width: var(--ov-arrow-size);\n  height: var(--ov-arrow-size);\n}\n.size-px {\n  width: 1px;\n  height: 1px;\n}\n.h-10 {\n  height: 2.5rem;\n}\n.h-11 {\n  height: 2.75rem;\n}\n.h-12 {\n  height: 3rem;\n}\n.h-8 {\n  height: 2rem;\n}\n.h-\\[100px\\] {\n  height: 100px;\n}\n.h-\\[12px\\] {\n  height: 12px;\n}\n.h-full {\n  height: 100%;\n}\n.h-screen {\n  height: 100vh;\n}\n.max-h-96 {\n  max-height: 24rem;\n}\n.max-h-\\[--radix-select-content-available-height\\] {\n  max-height: var(--radix-select-content-available-height);\n}\n.max-h-\\[500px\\] {\n  max-height: 500px;\n}\n.max-h-\\[var\\(--radix-popper-available-height\\)\\] {\n  max-height: var(--radix-popper-available-height);\n}\n.max-h-full {\n  max-height: 100%;\n}\n.min-h-28 {\n  min-height: 7rem;\n}\n.min-h-80 {\n  min-height: 20rem;\n}\n.min-h-\\[422px\\] {\n  min-height: 422px;\n}\n.min-h-full {\n  min-height: 100%;\n}\n.w-3 {\n  width: 0.75rem;\n}\n.w-36 {\n  width: 9rem;\n}\n.w-4 {\n  width: 1rem;\n}\n.w-60 {\n  width: 15rem;\n}\n.w-\\[125px\\] {\n  width: 125px;\n}\n.w-\\[12px\\] {\n  width: 12px;\n}\n.w-dvw {\n  width: 100dvw;\n}\n.w-full {\n  width: 100%;\n}\n.w-modal-lg {\n  width: 464px;\n}\n.w-modal-md {\n  width: 400px;\n}\n.w-modal-sm {\n  width: 336px;\n}\n.w-modal-xl {\n  width: 528px;\n}\n.w-screen {\n  width: 100vw;\n}\n.min-w-80 {\n  min-width: 20rem;\n}\n.min-w-\\[300px\\] {\n  min-width: 300px;\n}\n.max-w-2xl {\n  max-width: 42rem;\n}\n.max-w-72 {\n  max-width: 18rem;\n}\n.max-w-96 {\n  max-width: 24rem;\n}\n.max-w-md {\n  max-width: 28rem;\n}\n.flex-1 {\n  flex: 1 1 0%;\n}\n.shrink-0 {\n  flex-shrink: 0;\n}\n.grow {\n  flex-grow: 1;\n}\n.basis-1\\/2 {\n  flex-basis: 50%;\n}\n.-translate-y-1\\/2 {\n  --tw-translate-y: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-y-0 {\n  --tw-translate-y: 0px;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-y-4 {\n  --tw-translate-y: 1rem;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-rotate-90 {\n  --tw-rotate: -90deg;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.rotate-180 {\n  --tw-rotate: 180deg;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform {\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes spin {\n\n  to {\n    transform: rotate(360deg);\n  }\n}\n.animate-spin {\n  animation: spin 1s linear infinite;\n}\n.cursor-default {\n  cursor: default;\n}\n.cursor-pointer {\n  cursor: pointer;\n}\n.select-none {\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n}\n.list-inside {\n  list-style-position: inside;\n}\n.list-outside {\n  list-style-position: outside;\n}\n.list-decimal {\n  list-style-type: decimal;\n}\n.list-disc {\n  list-style-type: disc;\n}\n.list-none {\n  list-style-type: none;\n}\n.grid-cols-1 {\n  grid-template-columns: repeat(1, minmax(0, 1fr));\n}\n.flex-col {\n  flex-direction: column;\n}\n.items-start {\n  align-items: flex-start;\n}\n.items-end {\n  align-items: flex-end;\n}\n.items-center {\n  align-items: center;\n}\n.justify-end {\n  justify-content: flex-end;\n}\n.justify-center {\n  justify-content: center;\n}\n.justify-between {\n  justify-content: space-between;\n}\n.gap-1 {\n  gap: 0.25rem;\n}\n.gap-2 {\n  gap: 0.5rem;\n}\n.gap-3 {\n  gap: 0.75rem;\n}\n.gap-4 {\n  gap: 1rem;\n}\n.gap-6 {\n  gap: 1.5rem;\n}\n.gap-8 {\n  gap: 2rem;\n}\n.gap-x-6 {\n  -moz-column-gap: 1.5rem;\n       column-gap: 1.5rem;\n}\n.gap-y-2 {\n  row-gap: 0.5rem;\n}\n.\\!overflow-auto {\n  overflow: auto !important;\n}\n.overflow-auto {\n  overflow: auto;\n}\n.overflow-hidden {\n  overflow: hidden;\n}\n.overflow-x-auto {\n  overflow-x: auto;\n}\n.\\!overflow-y-auto {\n  overflow-y: auto !important;\n}\n.overflow-y-auto {\n  overflow-y: auto;\n}\n.\\!overflow-x-hidden {\n  overflow-x: hidden !important;\n}\n.text-ellipsis {\n  text-overflow: ellipsis;\n}\n.whitespace-nowrap {\n  white-space: nowrap;\n}\n.break-all {\n  word-break: break-all;\n}\n.rounded {\n  border-radius: 0.25rem;\n}\n.rounded-\\[100px\\] {\n  border-radius: 100px;\n}\n.rounded-full {\n  border-radius: 9999px;\n}\n.rounded-lg {\n  border-radius: 0.5rem;\n}\n.rounded-md {\n  border-radius: 0.375rem;\n}\n.rounded-sm {\n  border-radius: 0.125rem;\n}\n.rounded-b {\n  border-bottom-right-radius: 0.25rem;\n  border-bottom-left-radius: 0.25rem;\n}\n.rounded-b-lg {\n  border-bottom-right-radius: 0.5rem;\n  border-bottom-left-radius: 0.5rem;\n}\n.rounded-t {\n  border-top-left-radius: 0.25rem;\n  border-top-right-radius: 0.25rem;\n}\n.rounded-t-lg {\n  border-top-left-radius: 0.5rem;\n  border-top-right-radius: 0.5rem;\n}\n.border {\n  border-width: 1px;\n}\n.border-0 {\n  border-width: 0px;\n}\n.border-2 {\n  border-width: 2px;\n}\n.border-\\[2px\\] {\n  border-width: 2px;\n}\n.border-y-4 {\n  border-top-width: 4px;\n  border-bottom-width: 4px;\n}\n.border-b {\n  border-bottom-width: 1px;\n}\n.border-l {\n  border-left-width: 1px;\n}\n.border-l-2 {\n  border-left-width: 2px;\n}\n.border-l-4 {\n  border-left-width: 4px;\n}\n.border-r {\n  border-right-width: 1px;\n}\n.border-t-0 {\n  border-top-width: 0px;\n}\n.border-dashed {\n  border-style: dashed;\n}\n.\\!border-none {\n  border-style: none !important;\n}\n.border-none {\n  border-style: none;\n}\n.border-black {\n  --tw-border-opacity: 1;\n  border-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n}\n.border-brand-horizon {\n  --tw-border-opacity: 1;\n  border-color: rgb(252 82 0 / var(--tw-border-opacity, 1));\n}\n.border-current {\n  border-color: currentColor;\n}\n.border-deselected {\n  --tw-border-opacity: 1;\n  border-color: rgb(84 100 97 / var(--tw-border-opacity, 1));\n}\n.border-info {\n  --tw-border-opacity: 1;\n  border-color: rgb(0 90 175 / var(--tw-border-opacity, 1));\n}\n.border-primary {\n  --tw-border-opacity: 1;\n  border-color: rgb(231 233 233 / var(--tw-border-opacity, 1));\n}\n.border-transparent {\n  border-color: transparent;\n}\n.border-y-transparent {\n  border-top-color: transparent;\n  border-bottom-color: transparent;\n}\n.border-b-primary {\n  --tw-border-opacity: 1;\n  border-bottom-color: rgb(231 233 233 / var(--tw-border-opacity, 1));\n}\n.border-b-transparent {\n  border-bottom-color: transparent;\n}\n.border-l-\\[var\\(--ov-indentGuide-color\\)\\] {\n  border-left-color: var(--ov-indentGuide-color);\n}\n.border-l-error {\n  --tw-border-opacity: 1;\n  border-left-color: rgb(191 46 42 / var(--tw-border-opacity, 1));\n}\n.border-l-gray-400 {\n  --tw-border-opacity: 1;\n  border-left-color: rgb(124 146 143 / var(--tw-border-opacity, 1));\n}\n.border-l-primary {\n  --tw-border-opacity: 1;\n  border-left-color: rgb(231 233 233 / var(--tw-border-opacity, 1));\n}\n.border-l-warning {\n  --tw-border-opacity: 1;\n  border-left-color: rgb(252 82 0 / var(--tw-border-opacity, 1));\n}\n.bg-beta {\n  --tw-bg-opacity: 1;\n  background-color: rgb(243 224 255 / var(--tw-bg-opacity, 1));\n}\n.bg-black {\n  --tw-bg-opacity: 1;\n  background-color: rgb(19 34 42 / var(--tw-bg-opacity, 1));\n}\n.bg-black-300\\/50 {\n  background-color: rgb(2 4 4 / 0.5);\n}\n.bg-button-primary {\n  --tw-bg-opacity: 1;\n  background-color: rgb(37 66 80 / var(--tw-bg-opacity, 1));\n}\n.bg-button-secondary {\n  --tw-bg-opacity: 1;\n  background-color: rgb(253 253 253 / var(--tw-bg-opacity, 1));\n}\n.bg-error {\n  --tw-bg-opacity: 1;\n  background-color: rgb(255 245 245 / var(--tw-bg-opacity, 1));\n}\n.bg-error-dark {\n  --tw-bg-opacity: 1;\n  background-color: rgb(77 40 44 / var(--tw-bg-opacity, 1));\n}\n.bg-errorSelected {\n  --tw-bg-opacity: 1;\n  background-color: rgb(254 178 178 / var(--tw-bg-opacity, 1));\n}\n.bg-info {\n  --tw-bg-opacity: 1;\n  background-color: rgb(229 242 255 / var(--tw-bg-opacity, 1));\n}\n.bg-input {\n  --tw-bg-opacity: 1;\n  background-color: rgb(253 253 253 / var(--tw-bg-opacity, 1));\n}\n.bg-neutral {\n  --tw-bg-opacity: 1;\n  background-color: rgb(231 233 233 / var(--tw-bg-opacity, 1));\n}\n.bg-primary {\n  --tw-bg-opacity: 1;\n  background-color: rgb(253 253 253 / var(--tw-bg-opacity, 1));\n}\n.bg-searchHighlight {\n  --tw-bg-opacity: 1;\n  background-color: rgb(34 84 61 / var(--tw-bg-opacity, 1));\n}\n.bg-secondary {\n  --tw-bg-opacity: 1;\n  background-color: rgb(242 244 244 / var(--tw-bg-opacity, 1));\n}\n.bg-secondary-dark {\n  --tw-bg-opacity: 1;\n  background-color: rgb(13 23 28 / var(--tw-bg-opacity, 1));\n}\n.bg-success {\n  --tw-bg-opacity: 1;\n  background-color: rgb(240 255 244 / var(--tw-bg-opacity, 1));\n}\n.bg-success-dark {\n  --tw-bg-opacity: 1;\n  background-color: rgb(24 49 48 / var(--tw-bg-opacity, 1));\n}\n.bg-successSelected {\n  --tw-bg-opacity: 1;\n  background-color: rgb(154 230 180 / var(--tw-bg-opacity, 1));\n}\n.bg-warning {\n  --tw-bg-opacity: 1;\n  background-color: rgb(255 244 239 / var(--tw-bg-opacity, 1));\n}\n.fill-brand-nebula {\n  fill: #15252D;\n}\n.stroke-silver-500 {\n  stroke: #C7CFCE;\n}\n.\\!p-0 {\n  padding: 0px !important;\n}\n.p-0 {\n  padding: 0px;\n}\n.p-2 {\n  padding: 0.5rem;\n}\n.p-3 {\n  padding: 0.75rem;\n}\n.p-4 {\n  padding: 1rem;\n}\n.px-1 {\n  padding-left: 0.25rem;\n  padding-right: 0.25rem;\n}\n.px-2 {\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n}\n.px-3 {\n  padding-left: 0.75rem;\n  padding-right: 0.75rem;\n}\n.px-4 {\n  padding-left: 1rem;\n  padding-right: 1rem;\n}\n.px-6 {\n  padding-left: 1.5rem;\n  padding-right: 1.5rem;\n}\n.py-0\\.5 {\n  padding-top: 0.125rem;\n  padding-bottom: 0.125rem;\n}\n.py-1 {\n  padding-top: 0.25rem;\n  padding-bottom: 0.25rem;\n}\n.py-2 {\n  padding-top: 0.5rem;\n  padding-bottom: 0.5rem;\n}\n.py-3 {\n  padding-top: 0.75rem;\n  padding-bottom: 0.75rem;\n}\n.py-4 {\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n}\n.\\!pl-\\[3ch\\] {\n  padding-left: 3ch !important;\n}\n.pb-4 {\n  padding-bottom: 1rem;\n}\n.pb-6 {\n  padding-bottom: 1.5rem;\n}\n.pl-11 {\n  padding-left: 2.75rem;\n}\n.pl-4 {\n  padding-left: 1rem;\n}\n.pl-\\[3ch\\] {\n  padding-left: 3ch;\n}\n.pr-4 {\n  padding-right: 1rem;\n}\n.pt-4 {\n  padding-top: 1rem;\n}\n.pt-6 {\n  padding-top: 1.5rem;\n}\n.text-left {\n  text-align: left;\n}\n.text-center {\n  text-align: center;\n}\n.text-right {\n  text-align: right;\n}\n.align-top {\n  vertical-align: top;\n}\n.align-middle {\n  vertical-align: middle;\n}\n.align-bottom {\n  vertical-align: bottom;\n}\n.font-body {\n  font-family: Inter, sans-serif;\n}\n.font-code {\n  font-family: \'Fira Code\', monospace;\n}\n.font-heading {\n  font-family: Inter, sans-serif;\n}\n.\\!text-md {\n  font-size: 1rem !important;\n  line-height: 1.5 !important;\n}\n.text-2xl {\n  font-size: 1.5rem;\n  line-height: 1.3333333333333333;\n}\n.text-3xl {\n  font-size: 1.875rem;\n  line-height: 1.2;\n}\n.text-lg {\n  font-size: 1.125rem;\n  line-height: 1.5555555555555556;\n}\n.text-md {\n  font-size: 1rem;\n  line-height: 1.5;\n}\n.text-sm {\n  font-size: 0.875rem;\n  line-height: 1.4285714285714286;\n}\n.text-xl {\n  font-size: 1.25rem;\n  line-height: 1.4;\n}\n.text-xs {\n  font-size: 0.75rem;\n  line-height: 1.3333333333333333;\n}\n.font-bold {\n  font-weight: 700;\n}\n.font-medium {\n  font-weight: 500;\n}\n.font-normal {\n  font-weight: 400;\n}\n.font-semibold {\n  font-weight: 600;\n}\n.uppercase {\n  text-transform: uppercase;\n}\n.lowercase {\n  text-transform: lowercase;\n}\n.italic {\n  font-style: italic;\n}\n.text-\\[var\\(--ov-arrayIndex-color\\2c var\\(--ov-objectKey-color\\)\\)\\] {\n  color: var(--ov-arrayIndex-color,var(--ov-objectKey-color));\n}\n.text-\\[var\\(--ov-arrow-color\\2c var\\(--ov-punctuation-color\\)\\)\\] {\n  color: var(--ov-arrow-color,var(--ov-punctuation-color));\n}\n.text-\\[var\\(--ov-brace-color\\2c var\\(--ov-punctuation-color\\)\\)\\] {\n  color: var(--ov-brace-color,var(--ov-punctuation-color));\n}\n.text-\\[var\\(--ov-bracket-color\\2c var\\(--ov-punctuation-color\\)\\)\\] {\n  color: var(--ov-bracket-color,var(--ov-punctuation-color));\n}\n.text-\\[var\\(--ov-constructorName-color\\2c var\\(--ov-info-color\\)\\)\\] {\n  color: var(--ov-constructorName-color,var(--ov-info-color));\n}\n.text-\\[var\\(--ov-ellipsis-color\\2c var\\(--ov-punctuation-color\\)\\)\\] {\n  color: var(--ov-ellipsis-color,var(--ov-punctuation-color));\n}\n.text-\\[var\\(--ov-info-color\\)\\] {\n  color: var(--ov-info-color);\n}\n.text-\\[var\\(--ov-objectKey-color\\)\\] {\n  color: var(--ov-objectKey-color);\n}\n.text-\\[var\\(--ov-punctuation-color\\)\\] {\n  color: var(--ov-punctuation-color);\n}\n.text-\\[var\\(--ov-quote-color\\2c var\\(--ov-typeString-color\\)\\)\\] {\n  color: var(--ov-quote-color,var(--ov-typeString-color));\n}\n.text-\\[var\\(--ov-sparseArrayEmptyItem-color\\2c var\\(--ov-punctuation-color\\)\\)\\] {\n  color: var(--ov-sparseArrayEmptyItem-color,var(--ov-punctuation-color));\n}\n.text-\\[var\\(--ov-typeBigint-color\\2c var\\(--ov-typeNumber-color\\)\\)\\] {\n  color: var(--ov-typeBigint-color,var(--ov-typeNumber-color));\n}\n.text-\\[var\\(--ov-typeBoolean-color\\)\\] {\n  color: var(--ov-typeBoolean-color);\n}\n.text-\\[var\\(--ov-typeFloat-color\\2c var\\(--ov-typeNumber-color\\)\\)\\] {\n  color: var(--ov-typeFloat-color,var(--ov-typeNumber-color));\n}\n.text-\\[var\\(--ov-typeFunction-color\\)\\] {\n  color: var(--ov-typeFunction-color);\n}\n.text-\\[var\\(--ov-typeInt-color\\2c var\\(--ov-typeNumber-color\\)\\)\\] {\n  color: var(--ov-typeInt-color,var(--ov-typeNumber-color));\n}\n.text-\\[var\\(--ov-typeNaN-color\\2c var\\(--ov-typeNumber-color\\)\\)\\] {\n  color: var(--ov-typeNaN-color,var(--ov-typeNumber-color));\n}\n.text-\\[var\\(--ov-typeNull-color\\)\\] {\n  color: var(--ov-typeNull-color);\n}\n.text-\\[var\\(--ov-typeString-color\\)\\] {\n  color: var(--ov-typeString-color);\n}\n.text-\\[var\\(--ov-typeSymbol-color\\)\\] {\n  color: var(--ov-typeSymbol-color);\n}\n.text-\\[var\\(--ov-typeUndefined-color\\)\\] {\n  color: var(--ov-typeUndefined-color);\n}\n.text-beta {\n  --tw-text-opacity: 1;\n  color: rgb(49 0 80 / var(--tw-text-opacity, 1));\n}\n.text-code-a {\n  --tw-text-opacity: 1;\n  color: rgb(84 100 97 / var(--tw-text-opacity, 1));\n}\n.text-code-d {\n  --tw-text-opacity: 1;\n  color: rgb(34 84 61 / var(--tw-text-opacity, 1));\n}\n.text-code-e {\n  --tw-text-opacity: 1;\n  color: rgb(125 104 0 / var(--tw-text-opacity, 1));\n}\n.text-current {\n  color: currentColor;\n}\n.text-disabled {\n  --tw-text-opacity: 1;\n  color: rgb(180 192 190 / var(--tw-text-opacity, 1));\n}\n.text-error {\n  --tw-text-opacity: 1;\n  color: rgb(191 46 42 / var(--tw-text-opacity, 1));\n}\n.text-error-dark {\n  --tw-text-opacity: 1;\n  color: rgb(254 178 178 / var(--tw-text-opacity, 1));\n}\n.text-heading {\n  --tw-text-opacity: 1;\n  color: rgb(21 37 45 / var(--tw-text-opacity, 1));\n}\n.text-icon-beta {\n  --tw-text-opacity: 1;\n  color: rgb(86 0 139 / var(--tw-text-opacity, 1));\n}\n.text-icon-change {\n  --tw-text-opacity: 1;\n  color: rgb(125 104 0 / var(--tw-text-opacity, 1));\n}\n.text-icon-disabled {\n  --tw-text-opacity: 1;\n  color: rgb(180 192 190 / var(--tw-text-opacity, 1));\n}\n.text-icon-error {\n  --tw-text-opacity: 1;\n  color: rgb(191 46 42 / var(--tw-text-opacity, 1));\n}\n.text-icon-info {\n  --tw-text-opacity: 1;\n  color: rgb(0 90 175 / var(--tw-text-opacity, 1));\n}\n.text-icon-info-dark {\n  --tw-text-opacity: 1;\n  color: rgb(125 192 255 / var(--tw-text-opacity, 1));\n}\n.text-icon-primary {\n  --tw-text-opacity: 1;\n  color: rgb(56 67 65 / var(--tw-text-opacity, 1));\n}\n.text-icon-secondary {\n  --tw-text-opacity: 1;\n  color: rgb(84 100 97 / var(--tw-text-opacity, 1));\n}\n.text-icon-success {\n  --tw-text-opacity: 1;\n  color: rgb(37 133 90 / var(--tw-text-opacity, 1));\n}\n.text-icon-warning {\n  --tw-text-opacity: 1;\n  color: rgb(252 82 0 / var(--tw-text-opacity, 1));\n}\n.text-info {\n  --tw-text-opacity: 1;\n  color: rgb(0 65 125 / var(--tw-text-opacity, 1));\n}\n.text-inverted {\n  --tw-text-opacity: 1;\n  color: rgb(253 253 253 / var(--tw-text-opacity, 1));\n}\n.text-neutral {\n  --tw-text-opacity: 1;\n  color: rgb(56 67 65 / var(--tw-text-opacity, 1));\n}\n.text-primary {\n  --tw-text-opacity: 1;\n  color: rgb(56 67 65 / var(--tw-text-opacity, 1));\n}\n.text-secondary {\n  --tw-text-opacity: 1;\n  color: rgb(84 100 97 / var(--tw-text-opacity, 1));\n}\n.text-success {\n  --tw-text-opacity: 1;\n  color: rgb(34 84 61 / var(--tw-text-opacity, 1));\n}\n.text-warning {\n  --tw-text-opacity: 1;\n  color: rgb(176 57 0 / var(--tw-text-opacity, 1));\n}\n.text-warning-dark {\n  --tw-text-opacity: 1;\n  color: rgb(254 186 153 / var(--tw-text-opacity, 1));\n}\n.text-white {\n  --tw-text-opacity: 1;\n  color: rgb(253 253 253 / var(--tw-text-opacity, 1));\n}\n.underline {\n  text-decoration-line: underline;\n}\n.line-through {\n  text-decoration-line: line-through;\n}\n.no-underline {\n  text-decoration-line: none;\n}\n.underline-offset-4 {\n  text-underline-offset: 4px;\n}\n.opacity-0 {\n  opacity: 0;\n}\n.opacity-100 {\n  opacity: 1;\n}\n.shadow-dropdown {\n  --tw-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(18, 21, 26, 0.04);\n  --tw-shadow-colored: 0 4px 8px 0 var(--tw-shadow-color), 0 0 0 0 var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-modal {\n  --tw-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.12), 0px 0px 0px 0px rgba(18, 21, 26, 0.04);\n  --tw-shadow-colored: 0px 16px 32px 0px var(--tw-shadow-color), 0px 0px 0px 0px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-popovers {\n  --tw-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08), 0px 0px 0px 0px rgba(18, 21, 26, 0.04);\n  --tw-shadow-colored: 0px 4px 8px 0px var(--tw-shadow-color), 0px 0px 0px 0px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.outline-none {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n}\n.grayscale {\n  --tw-grayscale: grayscale(100%);\n  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);\n}\n.filter {\n  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);\n}\n.transition {\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n.transition-all {\n  transition-property: all;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n.transition-colors {\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n.transition-transform {\n  transition-property: transform;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n.duration-100 {\n  transition-duration: 100ms;\n}\n.duration-200 {\n  transition-duration: 200ms;\n}\n.duration-300 {\n  transition-duration: 300ms;\n}\n.duration-75 {\n  transition-duration: 75ms;\n}\n.ease-in {\n  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-out {\n  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.will-change-transform {\n  will-change: transform;\n}\n.\\[--ov-arrow-size\\:0\\.75rem\\] {\n  --ov-arrow-size: 0.75rem;\n}\n.\\[--ov-arrow-size\\:1rem\\] {\n  --ov-arrow-size: 1rem;\n}\n.\\!\\[background\\:none\\] {\n  background: none !important;\n}\n.\\[clip\\:rect\\(0px\\2c 0px\\2c 0px\\2c 0px\\)\\] {\n  clip: rect(0px,0px,0px,0px);\n}\n.\\[grid-area\\:content\\] {\n  grid-area: content;\n}\n.\\[grid-area\\:header\\] {\n  grid-area: header;\n}\n.\\[grid-area\\:tabs\\] {\n  grid-area: tabs;\n}\n.\\[grid-template-areas\\:\\\'header\\\'_\\\'content\\\'_\\\'tabs\\\'\\] {\n  grid-template-areas: \'header\' \'content\' \'tabs\';\n}\n.\\[grid-template-columns\\:minmax\\(0\\2c 1fr\\)\\] {\n  grid-template-columns: minmax(0,1fr);\n}\n.\\[grid-template-rows\\:auto_auto_minmax\\(0\\2c 1fr\\)\\] {\n  grid-template-rows: auto auto minmax(0,1fr);\n}\n.placeholder\\:text-placeholder::-moz-placeholder {\n  --tw-text-opacity: 1;\n  color: rgb(84 100 97 / var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-placeholder::placeholder {\n  --tw-text-opacity: 1;\n  color: rgb(84 100 97 / var(--tw-text-opacity, 1));\n}\n.before\\:absolute::before {\n  content: var(--tw-content);\n  position: absolute;\n}\n.before\\:border-x-\\[12px\\]::before {\n  content: var(--tw-content);\n  border-left-width: 12px;\n  border-right-width: 12px;\n}\n.before\\:border-y-\\[12px\\]::before {\n  content: var(--tw-content);\n  border-top-width: 12px;\n  border-bottom-width: 12px;\n}\n.before\\:border-transparent::before {\n  content: var(--tw-content);\n  border-color: transparent;\n}\n.before\\:border-t-primary::before {\n  content: var(--tw-content);\n  --tw-border-opacity: 1;\n  border-top-color: rgb(231 233 233 / var(--tw-border-opacity, 1));\n}\n.after\\:absolute::after {\n  content: var(--tw-content);\n  position: absolute;\n}\n.after\\:left-0\\.5::after {\n  content: var(--tw-content);\n  left: 0.125rem;\n}\n.after\\:border-x-\\[10px\\]::after {\n  content: var(--tw-content);\n  border-left-width: 10px;\n  border-right-width: 10px;\n}\n.after\\:border-y-\\[10px\\]::after {\n  content: var(--tw-content);\n  border-top-width: 10px;\n  border-bottom-width: 10px;\n}\n.after\\:border-transparent::after {\n  content: var(--tw-content);\n  border-color: transparent;\n}\n.after\\:border-t-arrow-primary::after {\n  content: var(--tw-content);\n  --tw-border-opacity: 1;\n  border-top-color: rgb(253 253 253 / var(--tw-border-opacity, 1));\n}\n.first\\:mt-0:first-child {\n  margin-top: 0px;\n}\n.first\\:pt-6:first-child {\n  padding-top: 1.5rem;\n}\n.last\\:pb-6:last-child {\n  padding-bottom: 1.5rem;\n}\n.hover\\:cursor-pointer:hover {\n  cursor: pointer;\n}\n.hover\\:border-hover:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(152 169 167 / var(--tw-border-opacity, 1));\n}\n.hover\\:bg-button-primaryHover:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(21 37 45 / var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-button-secondaryHover:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(242 244 244 / var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-secondary:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(242 244 244 / var(--tw-bg-opacity, 1));\n}\n.hover\\:underline:hover {\n  text-decoration-line: underline;\n}\n.focus\\:border-2:focus {\n  border-width: 2px;\n}\n.focus\\:border-bg-selected:focus {\n  --tw-border-opacity: 1;\n  border-color: rgb(54 94 114 / var(--tw-border-opacity, 1));\n}\n.focus\\:border-focused:focus {\n  --tw-border-opacity: 1;\n  border-color: rgb(0 90 175 / var(--tw-border-opacity, 1));\n}\n.focus\\:outline-none:focus {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n}\n.focus\\:ring-3:focus {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.focus\\:ring-focused:focus {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(0 90 175 / var(--tw-ring-opacity, 1));\n}\n.focus\\:ring-offset-3:focus {\n  --tw-ring-offset-width: 3px;\n}\n.focus\\:ring-offset-primary:focus {\n  --tw-ring-offset-color: #FDFDFD;\n}\n.focus-visible\\:border-focused:focus-visible {\n  --tw-border-opacity: 1;\n  border-color: rgb(0 90 175 / var(--tw-border-opacity, 1));\n}\n.focus-visible\\:outline-none:focus-visible {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n}\n.focus-visible\\:ring-2:focus-visible {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:ring-focused:focus-visible {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(0 90 175 / var(--tw-ring-opacity, 1));\n}\n.active\\:bg-button-secondarySelected:active {\n  --tw-bg-opacity: 1;\n  background-color: rgb(231 233 233 / var(--tw-bg-opacity, 1));\n}\n.active\\:bg-selected:active {\n  --tw-bg-opacity: 1;\n  background-color: rgb(54 94 114 / var(--tw-bg-opacity, 1));\n}\n.disabled\\:cursor-not-allowed:disabled {\n  cursor: not-allowed;\n}\n.disabled\\:border-disabled:disabled {\n  --tw-border-opacity: 1;\n  border-color: rgb(231 233 233 / var(--tw-border-opacity, 1));\n}\n.disabled\\:border-secondary:disabled {\n  --tw-border-opacity: 1;\n  border-color: rgb(231 233 233 / var(--tw-border-opacity, 1));\n}\n.disabled\\:bg-button-disabled:disabled {\n  --tw-bg-opacity: 1;\n  background-color: rgb(231 233 233 / var(--tw-bg-opacity, 1));\n}\n.disabled\\:bg-disabled:disabled {\n  --tw-bg-opacity: 1;\n  background-color: rgb(231 233 233 / var(--tw-bg-opacity, 1));\n}\n.disabled\\:text-disabled:disabled {\n  --tw-text-opacity: 1;\n  color: rgb(180 192 190 / var(--tw-text-opacity, 1));\n}\n.disabled\\:text-white:disabled {\n  --tw-text-opacity: 1;\n  color: rgb(253 253 253 / var(--tw-text-opacity, 1));\n}\n.disabled\\:placeholder\\:text-disabled:disabled::-moz-placeholder {\n  --tw-text-opacity: 1;\n  color: rgb(180 192 190 / var(--tw-text-opacity, 1));\n}\n.disabled\\:placeholder\\:text-disabled:disabled::placeholder {\n  --tw-text-opacity: 1;\n  color: rgb(180 192 190 / var(--tw-text-opacity, 1));\n}\n.has-\\[h1\\2c h2\\2c h3\\2c h4\\2c h5\\2c h6\\]\\:mb-2:has(h1,h2,h3,h4,h5,h6) {\n  margin-bottom: 0.5rem;\n}\n.has-\\[\\>\\:nth-child\\(2\\)\\]\\:justify-between:has(>:nth-child(2)) {\n  justify-content: space-between;\n}\n.has-\\[\\>svg\\:only-child\\]\\:p-1\\.5:has(>svg:only-child) {\n  padding: 0.375rem;\n}\n.has-\\[\\>svg\\:only-child\\]\\:p-2:has(>svg:only-child) {\n  padding: 0.5rem;\n}\n.has-\\[\\>svg\\:only-child\\]\\:p-3:has(>svg:only-child) {\n  padding: 0.75rem;\n}\n.data-state-checked\\:border-bg-selected[data-state="checked"] {\n  --tw-border-opacity: 1;\n  border-color: rgb(54 94 114 / var(--tw-border-opacity, 1));\n}\n.data-state-checked\\:\\!bg-selected[data-state="checked"] {\n  --tw-bg-opacity: 1 !important;\n  background-color: rgb(54 94 114 / var(--tw-bg-opacity, 1)) !important;\n}\n.data-state-checked\\:bg-selected[data-state="checked"] {\n  --tw-bg-opacity: 1;\n  background-color: rgb(54 94 114 / var(--tw-bg-opacity, 1));\n}\n.data-state-checked\\:font-semibold[data-state="checked"] {\n  font-weight: 600;\n}\n.data-state-checked\\:text-icon-white[data-state="checked"] {\n  --tw-text-opacity: 1;\n  color: rgb(253 253 253 / var(--tw-text-opacity, 1));\n}\n.data-state-checked\\:text-white[data-state="checked"] {\n  --tw-text-opacity: 1;\n  color: rgb(253 253 253 / var(--tw-text-opacity, 1));\n}\n.focus\\:data-state-checked\\:border-selected[data-state="checked"]:focus {\n  --tw-border-opacity: 1;\n  border-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n}\n.focus\\:data-state-checked\\:bg-selected[data-state="checked"]:focus {\n  --tw-bg-opacity: 1;\n  background-color: rgb(54 94 114 / var(--tw-bg-opacity, 1));\n}\n.disabled\\:data-state-checked\\:border-bg-selected[data-state="checked"]:disabled {\n  --tw-border-opacity: 1;\n  border-color: rgb(54 94 114 / var(--tw-border-opacity, 1));\n}\n.disabled\\:data-state-checked\\:text-white[data-state="checked"]:disabled {\n  --tw-text-opacity: 1;\n  color: rgb(253 253 253 / var(--tw-text-opacity, 1));\n}\n.disabled\\:data-state-checked\\:opacity-40[data-state="checked"]:disabled {\n  opacity: 0.4;\n}\n.data-state-active\\:border-b-neutral[data-state="active"] {\n  --tw-border-opacity: 1;\n  border-bottom-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n}\n.data-state-active\\:font-semibold[data-state="active"] {\n  font-weight: 600;\n}\n.data-state-active\\:text-primary[data-state="active"] {\n  --tw-text-opacity: 1;\n  color: rgb(56 67 65 / var(--tw-text-opacity, 1));\n}\n.data-state-inactive\\:hidden[data-state="inactive"] {\n  display: none;\n}\n.data-orientation-horizontal\\:flex-col[data-orientation="horizontal"] {\n  flex-direction: column;\n}\n.data-highlighted\\:cursor-pointer[data-highlighted] {\n  cursor: pointer;\n}\n.data-highlighted\\:bg-button-secondaryHover[data-highlighted] {\n  --tw-bg-opacity: 1;\n  background-color: rgb(242 244 244 / var(--tw-bg-opacity, 1));\n}\n.group[data-state="open"] .group-data-state-open\\:rotate-180 {\n  --tw-rotate: 180deg;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.ui-not-open\\:rounded-b[data-headlessui-state]:not([data-headlessui-state~="open"]) {\n  border-bottom-right-radius: 0.25rem;\n  border-bottom-left-radius: 0.25rem;\n}\n:where([data-headlessui-state]:not([data-headlessui-state~="open"])) .ui-not-open\\:rounded-b:not([data-headlessui-state]) {\n  border-bottom-right-radius: 0.25rem;\n  border-bottom-left-radius: 0.25rem;\n}\n@media (min-width: 640px) {\n\n  .sm\\:translate-y-0 {\n    --tw-translate-y: 0px;\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n  }\n\n  .sm\\:scale-100 {\n    --tw-scale-x: 1;\n    --tw-scale-y: 1;\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n  }\n\n  .sm\\:scale-95 {\n    --tw-scale-x: .95;\n    --tw-scale-y: .95;\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n  }\n}\n@media (min-width: 768px) {\n\n  .md\\:flex {\n    display: flex;\n  }\n\n  .md\\:flex-wrap {\n    flex-wrap: wrap;\n  }\n}\n@media (min-width: 1024px) {\n\n  .lg\\:-my-2 {\n    margin-top: -0.5rem;\n    margin-bottom: -0.5rem;\n  }\n\n  .lg\\:max-h-none {\n    max-height: none;\n  }\n\n  .lg\\:flex-1 {\n    flex: 1 1 0%;\n  }\n\n  .lg\\:overflow-auto {\n    overflow: auto;\n  }\n\n  .lg\\:overflow-hidden {\n    overflow: hidden;\n  }\n}\n@media (min-width: 1280px) {\n\n  .xl\\:\\[grid-template-areas\\:\\\'header_tabs\\\'_\\\'content_tabs\\\'\\] {\n    grid-template-areas: \'header tabs\' \'content tabs\';\n  }\n\n  .xl\\:\\[grid-template-columns\\:minmax\\(0\\2c 1fr\\)_350px\\] {\n    grid-template-columns: minmax(0,1fr) 350px;\n  }\n\n  .xl\\:\\[grid-template-rows\\:auto_minmax\\(0\\2c 1fr\\)\\] {\n    grid-template-rows: auto minmax(0,1fr);\n  }\n}\n@media (prefers-color-scheme: dark) {\n\n  .dark\\:border-black-dark {\n    --tw-border-opacity: 1;\n    border-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:border-deselected-dark {\n    --tw-border-opacity: 1;\n    border-color: rgb(124 146 143 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:border-info-dark {\n    --tw-border-opacity: 1;\n    border-color: rgb(125 192 255 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:border-primary-dark {\n    --tw-border-opacity: 1;\n    border-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:border-b-primary-dark {\n    --tw-border-opacity: 1;\n    border-bottom-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:border-l-error-dark {\n    --tw-border-opacity: 1;\n    border-left-color: rgb(224 111 107 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:border-l-primary-dark {\n    --tw-border-opacity: 1;\n    border-left-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:border-l-warning-dark {\n    --tw-border-opacity: 1;\n    border-left-color: rgb(253 134 77 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:bg-beta-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(50 24 89 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-black-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(19 34 42 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-button-primary-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(70 123 149 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-button-secondary-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(19 34 42 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-error-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(77 40 44 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-errorSelected-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(130 39 39 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-info-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(13 51 82 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-input-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(24 44 53 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-neutral-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(24 44 53 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-primary-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(19 34 42 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-searchHighlight-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(154 230 180 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-secondary-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(13 23 28 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-success-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(24 49 48 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-successSelected-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(37 133 90 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:bg-warning-dark {\n    --tw-bg-opacity: 1;\n    background-color: rgb(89 48 29 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:fill-brand-nebula-dark {\n    fill: #5C95B2;\n  }\n\n  .dark\\:stroke-navy-400\\/60 {\n    stroke: rgb(37 66 80 / 0.6);\n  }\n\n  .dark\\:text-beta-dark {\n    --tw-text-opacity: 1;\n    color: rgb(243 224 255 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-code-a-dark {\n    --tw-text-opacity: 1;\n    color: rgb(180 192 190 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-code-d-dark {\n    --tw-text-opacity: 1;\n    color: rgb(0 250 179 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-code-e-dark {\n    --tw-text-opacity: 1;\n    color: rgb(250 208 0 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-disabled-dark {\n    --tw-text-opacity: 1;\n    color: rgb(54 94 114 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-error-dark {\n    --tw-text-opacity: 1;\n    color: rgb(254 178 178 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-heading-dark {\n    --tw-text-opacity: 1;\n    color: rgb(247 249 249 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-icon-beta-dark {\n    --tw-text-opacity: 1;\n    color: rgb(195 99 255 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-icon-change-dark {\n    --tw-text-opacity: 1;\n    color: rgb(250 208 0 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-icon-disabled-dark {\n    --tw-text-opacity: 1;\n    color: rgb(54 94 114 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-icon-error-dark {\n    --tw-text-opacity: 1;\n    color: rgb(224 111 107 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-icon-primary-dark {\n    --tw-text-opacity: 1;\n    color: rgb(199 207 206 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-icon-secondary-dark {\n    --tw-text-opacity: 1;\n    color: rgb(124 146 143 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-icon-success-dark {\n    --tw-text-opacity: 1;\n    color: rgb(154 230 180 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-icon-warning-dark {\n    --tw-text-opacity: 1;\n    color: rgb(253 134 77 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-info-dark {\n    --tw-text-opacity: 1;\n    color: rgb(229 242 255 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-inverted-dark {\n    --tw-text-opacity: 1;\n    color: rgb(21 37 45 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-neutral-dark {\n    --tw-text-opacity: 1;\n    color: rgb(207 215 214 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-primary-dark {\n    --tw-text-opacity: 1;\n    color: rgb(199 207 206 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-secondary-dark {\n    --tw-text-opacity: 1;\n    color: rgb(152 169 167 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-success-dark {\n    --tw-text-opacity: 1;\n    color: rgb(154 230 180 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-warning-dark {\n    --tw-text-opacity: 1;\n    color: rgb(254 186 153 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:text-white-dark {\n    --tw-text-opacity: 1;\n    color: rgb(253 253 253 / var(--tw-text-opacity, 1));\n  }\n\n  .placeholder\\:dark\\:text-placeholder-dark::-moz-placeholder {\n    --tw-text-opacity: 1;\n    color: rgb(152 169 167 / var(--tw-text-opacity, 1));\n  }\n\n  .placeholder\\:dark\\:text-placeholder-dark::placeholder {\n    --tw-text-opacity: 1;\n    color: rgb(152 169 167 / var(--tw-text-opacity, 1));\n  }\n\n  .before\\:dark\\:border-t-primary-dark::before {\n    content: var(--tw-content);\n    --tw-border-opacity: 1;\n    border-top-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n  }\n\n  .after\\:dark\\:border-t-arrow-primary-dark::after {\n    content: var(--tw-content);\n    --tw-border-opacity: 1;\n    border-top-color: rgb(19 34 42 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:hover\\:border-hover-dark:hover {\n    --tw-border-opacity: 1;\n    border-color: rgb(54 94 114 / var(--tw-border-opacity, 1));\n  }\n\n  .hover\\:dark\\:bg-button-primaryHover-dark:hover {\n    --tw-bg-opacity: 1;\n    background-color: rgb(54 94 114 / var(--tw-bg-opacity, 1));\n  }\n\n  .hover\\:dark\\:bg-button-secondaryHover-dark:hover {\n    --tw-bg-opacity: 1;\n    background-color: rgb(2 4 4 / var(--tw-bg-opacity, 1));\n  }\n\n  .hover\\:dark\\:bg-secondary-dark:hover {\n    --tw-bg-opacity: 1;\n    background-color: rgb(13 23 28 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:focus\\:border-bg-selected-dark:focus {\n    --tw-border-opacity: 1;\n    border-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:focus\\:border-focused-dark:focus {\n    --tw-border-opacity: 1;\n    border-color: rgb(125 192 255 / var(--tw-border-opacity, 1));\n  }\n\n  .focus\\:dark\\:border-focused-dark:focus {\n    --tw-border-opacity: 1;\n    border-color: rgb(125 192 255 / var(--tw-border-opacity, 1));\n  }\n\n  .focus\\:dark\\:ring-focused-dark:focus {\n    --tw-ring-opacity: 1;\n    --tw-ring-color: rgb(125 192 255 / var(--tw-ring-opacity, 1));\n  }\n\n  .focus\\:dark\\:ring-offset-primary-dark:focus {\n    --tw-ring-offset-color: #13222A;\n  }\n\n  .focus-visible\\:dark\\:border-focused-dark:focus-visible {\n    --tw-border-opacity: 1;\n    border-color: rgb(125 192 255 / var(--tw-border-opacity, 1));\n  }\n\n  .focus-visible\\:dark\\:ring-focused-dark:focus-visible {\n    --tw-ring-opacity: 1;\n    --tw-ring-color: rgb(125 192 255 / var(--tw-ring-opacity, 1));\n  }\n\n  .active\\:dark\\:bg-button-secondarySelected-dark:active {\n    --tw-bg-opacity: 1;\n    background-color: rgb(54 94 114 / var(--tw-bg-opacity, 1));\n  }\n\n  .active\\:dark\\:bg-selected-dark:active {\n    --tw-bg-opacity: 1;\n    background-color: rgb(37 66 80 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:disabled\\:border-disabled-dark:disabled {\n    --tw-border-opacity: 1;\n    border-color: rgb(54 94 114 / var(--tw-border-opacity, 1));\n  }\n\n  .disabled\\:dark\\:border-secondary-dark:disabled {\n    --tw-border-opacity: 1;\n    border-color: rgb(54 94 114 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:disabled\\:bg-disabled-dark:disabled {\n    --tw-bg-opacity: 1;\n    background-color: rgb(37 66 80 / var(--tw-bg-opacity, 1));\n  }\n\n  .disabled\\:dark\\:bg-button-disabled-dark:disabled {\n    --tw-bg-opacity: 1;\n    background-color: rgb(37 66 80 / var(--tw-bg-opacity, 1));\n  }\n\n  .disabled\\:dark\\:bg-disabled-dark:disabled {\n    --tw-bg-opacity: 1;\n    background-color: rgb(37 66 80 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:disabled\\:text-disabled-dark:disabled {\n    --tw-text-opacity: 1;\n    color: rgb(54 94 114 / var(--tw-text-opacity, 1));\n  }\n\n  .disabled\\:dark\\:text-disabled:disabled {\n    --tw-text-opacity: 1;\n    color: rgb(180 192 190 / var(--tw-text-opacity, 1));\n  }\n\n  .disabled\\:dark\\:text-disabled-dark:disabled {\n    --tw-text-opacity: 1;\n    color: rgb(54 94 114 / var(--tw-text-opacity, 1));\n  }\n\n  .disabled\\:dark\\:placeholder\\:text-disabled-dark:disabled::-moz-placeholder {\n    --tw-text-opacity: 1;\n    color: rgb(54 94 114 / var(--tw-text-opacity, 1));\n  }\n\n  .disabled\\:dark\\:placeholder\\:text-disabled-dark:disabled::placeholder {\n    --tw-text-opacity: 1;\n    color: rgb(54 94 114 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:data-state-checked\\:border-bg-selected-dark[data-state="checked"] {\n    --tw-border-opacity: 1;\n    border-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:data-state-checked\\:\\!bg-selected-dark[data-state="checked"] {\n    --tw-bg-opacity: 1 !important;\n    background-color: rgb(37 66 80 / var(--tw-bg-opacity, 1)) !important;\n  }\n\n  .dark\\:data-state-checked\\:bg-selected-dark[data-state="checked"] {\n    --tw-bg-opacity: 1;\n    background-color: rgb(37 66 80 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:focus\\:data-state-checked\\:border-selected-dark[data-state="checked"]:focus {\n    --tw-border-opacity: 1;\n    border-color: rgb(70 123 149 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:focus\\:data-state-checked\\:bg-selected-dark[data-state="checked"]:focus {\n    --tw-bg-opacity: 1;\n    background-color: rgb(37 66 80 / var(--tw-bg-opacity, 1));\n  }\n\n  .dark\\:disabled\\:data-state-checked\\:border-bg-selected-dark[data-state="checked"]:disabled {\n    --tw-border-opacity: 1;\n    border-color: rgb(37 66 80 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:data-state-active\\:border-b-neutral-dark[data-state="active"] {\n    --tw-border-opacity: 1;\n    border-bottom-color: rgb(70 123 149 / var(--tw-border-opacity, 1));\n  }\n\n  .dark\\:data-state-active\\:text-primary-dark[data-state="active"] {\n    --tw-text-opacity: 1;\n    color: rgb(199 207 206 / var(--tw-text-opacity, 1));\n  }\n\n  .dark\\:data-highlighted\\:bg-button-secondaryHover-dark[data-highlighted] {\n    --tw-bg-opacity: 1;\n    background-color: rgb(2 4 4 / var(--tw-bg-opacity, 1));\n  }\n}\n.\\[\\&\\:not\\(\\:empty\\)\\]\\:mt-6:not(:empty) {\n  margin-top: 1.5rem;\n}\n.\\[\\&\\>\\:is\\(h1\\2c h2\\2c h3\\2c h4\\2c h5\\2c h6\\)\\]\\:inline>:is(h1,h2,h3,h4,h5,h6) {\n  display: inline;\n}\n@media(max-width:500px) {\n\n  .\\[\\@media\\(max-width\\:500px\\)\\]\\:flex-col {\n    flex-direction: column;\n  }\n}\n',""]);const s=a;n.d(t,["A",0,s])},314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},601(e){"use strict";e.exports=function(e){return e[1]}},788(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){v(r)}function E(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function w(){var e=h(),n=v(o);if(n){if(x(),!v(i))return y("property missing ':'");var r=v(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return b(),function(){var e,t=[];for(E(t);e=w();)!1!==e&&(t.push(e),E(t));return t}()}},272(e){"use strict";const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},794(e){"use strict";e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},587(e){"use strict";const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},426(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},815(e,t){var n,r,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=[e],n=function(e){"use strict";if(!(globalThis.chrome&&globalThis.chrome.runtime&&globalThis.chrome.runtime.id))throw new Error("This script should only be loaded in a browser extension.");if(globalThis.browser&&globalThis.browser.runtime&&globalThis.browser.runtime.id)e.exports=globalThis.browser;else{const t="The message port closed before a response was received.",n=e=>{const n={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(n).length)throw new Error("api-metadata.json has not been included in browser-polyfill");class r extends WeakMap{constructor(e,t=void 0){super(t),this.createItem=e}get(e){return this.has(e)||this.set(e,this.createItem(e)),super.get(e)}}const o=e=>e&&"object"==typeof e&&"function"==typeof e.then,i=(t,n)=>(...r)=>{e.runtime.lastError?t.reject(new Error(e.runtime.lastError.message)):n.singleCallbackArg||r.length<=1&&!1!==n.singleCallbackArg?t.resolve(r[0]):t.resolve(r)},a=e=>1==e?"argument":"arguments",s=(e,t)=>function(n,...r){if(r.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${a(t.minArgs)} for ${e}(), got ${r.length}`);if(r.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${a(t.maxArgs)} for ${e}(), got ${r.length}`);return new Promise((o,a)=>{if(t.fallbackToNoCallback)try{n[e](...r,i({resolve:o,reject:a},t))}catch(i){console.warn(`${e} API method doesn't seem to support the callback parameter, falling back to call it without a callback: `,i),n[e](...r),t.fallbackToNoCallback=!1,t.noCallback=!0,o()}else t.noCallback?(n[e](...r),o()):n[e](...r,i({resolve:o,reject:a},t))})},l=(e,t,n)=>new Proxy(t,{apply:(t,r,o)=>n.call(r,e,...o)});let c=Function.call.bind(Object.prototype.hasOwnProperty);const u=(e,t={},n={})=>{let r=Object.create(null),o={has:(t,n)=>n in e||n in r,get(o,i,a){if(i in r)return r[i];if(!(i in e))return;let d=e[i];if("function"==typeof d)if("function"==typeof t[i])d=l(e,e[i],t[i]);else if(c(n,i)){let t=s(i,n[i]);d=l(e,e[i],t)}else d=d.bind(e);else if("object"==typeof d&&null!==d&&(c(t,i)||c(n,i)))d=u(d,t[i],n[i]);else{if(!c(n,"*"))return Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>e[i],set(t){e[i]=t}}),d;d=u(d,t[i],n["*"])}return r[i]=d,d},set:(t,n,o,i)=>(n in r?r[n]=o:e[n]=o,!0),defineProperty:(e,t,n)=>Reflect.defineProperty(r,t,n),deleteProperty:(e,t)=>Reflect.deleteProperty(r,t)},i=Object.create(e);return new Proxy(i,o)},d=e=>({addListener(t,n,...r){t.addListener(e.get(n),...r)},hasListener:(t,n)=>t.hasListener(e.get(n)),removeListener(t,n){t.removeListener(e.get(n))}}),p=new r(e=>"function"!=typeof e?e:function(t){const n=u(t,{},{getContent:{minArgs:0,maxArgs:0}});e(n)}),f=new r(e=>"function"!=typeof e?e:function(t,n,r){let i,a,s=!1,l=new Promise(e=>{i=function(t){s=!0,e(t)}});try{a=e(t,n,i)}catch(e){a=Promise.reject(e)}const c=!0!==a&&o(a);if(!0!==a&&!c&&!s)return!1;const u=e=>{e.then(e=>{r(e)},e=>{let t;t=e&&(e instanceof Error||"string"==typeof e.message)?e.message:"An unexpected error occurred",r({__mozWebExtensionPolyfillReject__:!0,message:t})}).catch(e=>{console.error("Failed to send onMessage rejected reply",e)})};return u(c?a:l),!0}),h=({reject:n,resolve:r},o)=>{e.runtime.lastError?e.runtime.lastError.message===t?r():n(new Error(e.runtime.lastError.message)):o&&o.__mozWebExtensionPolyfillReject__?n(new Error(o.message)):r(o)},m=(e,t,n,...r)=>{if(r.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${a(t.minArgs)} for ${e}(), got ${r.length}`);if(r.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${a(t.maxArgs)} for ${e}(), got ${r.length}`);return new Promise((e,t)=>{const o=h.bind(null,{resolve:e,reject:t});r.push(o),n.sendMessage(...r)})},g={devtools:{network:{onRequestFinished:d(p)}},runtime:{onMessage:d(f),onMessageExternal:d(f),sendMessage:m.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:m.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},y={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return n.privacy={network:{"*":y},services:{"*":y},websites:{"*":y}},u(e,g,n)};e.exports=n(chrome)}},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}const i=Object.create(null);n.r(i);const a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&r;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],i=t[r++],a=0===i?{enumerable:!0,value:t[r++]}:{enumerable:!0,get:i};n.o(e,o)||Object.defineProperty(e,o,a)}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0,(()=>{"use strict";var e=n.cw(function(e,r){var o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(r,"__esModule",{value:!0}),r.colors=void 0,r.colors=n(508),i(t(),r)}),t=()=>n(917),r=n.cw(function(e,t){var n=he(),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var o,i,a,s,l,c,u=!1;t||(t={}),o=t.debug||!1;try{if(a=n(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(n){o&&console.error("unable to copy using execCommand: ",n),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(n){o&&console.error("unable to copy using clipboardData: ",n),o&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}}),o=n.cw(function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=c(d,n),d!==(o=c(t,n))&&(h&&o&&(s(o)||(i=a(o)))?(i?(i=!1,u=r&&a(r)?r:[]):u=r&&s(r)?r:{},l(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}),i=n.cw(function(e,t){var n=m(),r=d(),o=l();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function u(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function p(e){if(s(e)!==e)throw Error(i(188))}function f(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=f(e)))return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),T=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),_=Symbol.for("react.lazy");Symbol.for("react.scope");var C=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var I=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var O=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var R=Symbol.for("react.client.reference");function P(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===R?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case b:return"Fragment";case x:return"Profiler";case E:return"StrictMode";case S:return"Suspense";case A:return"SuspenseList";case C:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case v:return"Portal";case T:return e.displayName||"Context";case w:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:P(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return P(e(t))}catch(e){}}return null}var L=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},B=[],U=-1;function z(e){return{current:e}}function V(e){0>U||(e.current=B[U],B[U]=null,U--)}function H(e,t){U++,B[U]=e.current,e.current=t}var $,G,W=z(null),q=z(null),Y=z(null),Q=z(null);function K(e,t){switch(H(Y,t),H(q,e),H(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=Ed(t=bd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(W),H(W,e)}function X(){V(W),V(q),V(Y)}function J(e){null!==e.memoizedState&&H(Q,e);var t=W.current,n=Ed(t,e.type);t!==n&&(H(q,e),H(W,n))}function Z(e){q.current===e&&(V(W),V(q)),Q.current===e&&(V(Q),pp._currentValue=j)}function ee(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||"",G=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+$+e+G}var te=!1;function ne(e,t){if(!e||te)return"";te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===c.length)for(r=l.length-1,o=c.length-1;1<=r&&0<=o&&l[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ee(n):""}function re(e,t){switch(e.tag){case 26:case 27:case 5:return ee(e.type);case 16:return ee("Lazy");case 13:return e.child!==t&&null!==t?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return ne(e.type,!1);case 11:return ne(e.type.render,!1);case 1:return ne(e.type,!0);case 31:return ee("Activity");default:return""}}function oe(e){try{var t="",n=null;do{t+=re(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ie=Object.prototype.hasOwnProperty,ae=n.unstable_scheduleCallback,se=n.unstable_cancelCallback,le=n.unstable_shouldYield,ce=n.unstable_requestPaint,ue=n.unstable_now,de=n.unstable_getCurrentPriorityLevel,pe=n.unstable_ImmediatePriority,fe=n.unstable_UserBlockingPriority,he=n.unstable_NormalPriority,me=n.unstable_LowPriority,ge=n.unstable_IdlePriority,ye=n.log,ve=n.unstable_setDisableYieldValue,be=null,Ee=null;function xe(e){if("function"==typeof ye&&ve(e),Ee&&"function"==typeof Ee.setStrictMode)try{Ee.setStrictMode(be,e)}catch(e){}}var we=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Te(e)/ke|0)|0},Te=Math.log,ke=Math.LN2;var Se=256,Ae=262144,Ne=4194304;function _e(e){var t=42&e;if(0!==t)return t;switch(e&-e){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ce(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=_e(r):0!==(a&=s)?o=_e(a):n||0!==(n=s&~e)&&(o=_e(n)):0!==(s=r&~i)?o=_e(s):0!==a?o=_e(a):n||0!==(n=r&~e)&&(o=_e(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Ie(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Oe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;default:return-1}}function De(){var e=Ne;return!(62914560&(Ne<<=1))&&(Ne=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pe(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Le(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Me(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Fe(e,t){var n=t&-t;return 0!==((n=42&n?1:je(n))&(e.suspendedLanes|t))?0:n}function je(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Be(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Ue(){var e=F.p;return 0!==e?e:void 0===(e=window.event)?32:_p(e.type)}function ze(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Ve=Math.random().toString(36).slice(2),He="__reactFiber$"+Ve,$e="__reactProps$"+Ve,Ge="__reactContainer$"+Ve,We="__reactEvents$"+Ve,qe="__reactListeners$"+Ve,Ye="__reactHandles$"+Ve,Qe="__reactResources$"+Ve,Ke="__reactMarker$"+Ve;function Xe(e){delete e[He],delete e[$e],delete e[We],delete e[qe],delete e[Ye]}function Je(e){var t=e[He];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ge]||n[He]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=jd(e);null!==e;){if(n=e[He])return n;e=jd(e)}return t}n=(e=n).parentNode}return null}function Ze(e){if(e=e[He]||e[Ge]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function et(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function tt(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ke]=!0}var rt=new Set,ot={};function it(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(ot[e]=t,e=0;e<t.length;e++)rt.add(t[e])}var st=RegExp("^[: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]*$"),lt={},ct={};function ut(e,t,n){if(o=t,ie.call(ct,o)||!ie.call(lt,o)&&(st.test(o)?ct[o]=!0:(lt[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function dt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function pt(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function mt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function gt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var vt=/[\n"\\]/g;function bt(e){return e.replace(vt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Et(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?wt(e,a,ft(t)):null!=n?wt(e,a,ft(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+ft(s):e.removeAttribute("name")}function xt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void mt(e);n=null!=n?""+ft(n):"",t=null!=t?""+ft(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),mt(e)}function wt(e,t,n){"number"===t&&yt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Tt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ft(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function kt(e,t,n){null==t||((t=""+ft(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ft(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(i(92));if(L(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ft(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),mt(e)}function At(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Nt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _t(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Nt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ct(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&_t(e,o,r)}else for(var a in t)t.hasOwnProperty(a)&&_t(e,a,t[a])}function It(e){if(-1===e.indexOf("-"))return!1;switch(e){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 Ot=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Dt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rt(e){return Dt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Pt(){}var Lt=null;function Mt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ft=null,jt=null;function Bt(e){var t=Ze(e);if(t&&(e=t.stateNode)){var n=e[$e]||null;e:switch(e=t.stateNode,t.type){case"input":if(Et(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[$e]||null;if(!o)throw Error(i(90));Et(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&gt(r)}break e;case"textarea":kt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&Tt(e,!!n.multiple,t,!1)}}}var Ut=!1;function zt(e,t,n){if(Ut)return e(t,n);Ut=!0;try{return e(t)}finally{if(Ut=!1,(null!==Ft||null!==jt)&&(tu(),Ft&&(t=Ft,e=jt,jt=Ft=null,Bt(t),e)))for(t=0;t<e.length;t++)Bt(e[t])}}function Vt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[$e]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Ht=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),$t=!1;if(Ht)try{var Gt={};Object.defineProperty(Gt,"passive",{get:function(){$t=!0}}),window.addEventListener("test",Gt,Gt),window.removeEventListener("test",Gt,Gt)}catch(e){$t=!1}var Wt=null,qt=null,Yt=null;function Qt(){if(Yt)return Yt;var e,t,n=qt,r=n.length,o="value"in Wt?Wt.value:Wt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function Kt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Xt(){return!0}function Jt(){return!1}function Zt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Xt:Jt,this.isPropagationStopped=Jt,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Xt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Xt)},persist:function(){},isPersistent:Xt}),t}var en,tn,nn,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},on=Zt(rn),an=h({},rn,{view:0,detail:0}),sn=Zt(an),ln=h({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nn&&(nn&&"mousemove"===e.type?(en=e.screenX-nn.screenX,tn=e.screenY-nn.screenY):tn=en=0,nn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),cn=Zt(ln),un=Zt(h({},ln,{dataTransfer:0})),dn=Zt(h({},an,{relatedTarget:0})),pn=Zt(h({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),fn=Zt(h({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Zt(h({},rn,{data:0})),mn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gn={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"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function bn(){return vn}var En=Zt(h({},an,{key:function(e){if(e.key){var t=mn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Kt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?gn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bn,charCode:function(e){return"keypress"===e.type?Kt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Kt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xn=Zt(h({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),wn=Zt(h({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bn})),Tn=Zt(h({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Zt(h({},ln,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Sn=Zt(h({},rn,{newState:0,oldState:0})),An=[9,13,27,32],Nn=Ht&&"CompositionEvent"in window,_n=null;Ht&&"documentMode"in document&&(_n=document.documentMode);var Cn=Ht&&"TextEvent"in window&&!_n,In=Ht&&(!Nn||_n&&8<_n&&11>=_n),On=String.fromCharCode(32),Dn=!1;function Rn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1;var Mn={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 Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mn[e.type]:"textarea"===t}function jn(e,t,n,r){Ft?jt?jt.push(r):jt=[r]:Ft=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bn=null,Un=null;function zn(e){Xu(e,0)}function Vn(e){if(gt(et(e)))return e}function Hn(e,t){if("change"===e)return t}var $n=!1;if(Ht){var Gn;if(Ht){var Wn="oninput"in document;if(!Wn){var qn=document.createElement("div");qn.setAttribute("oninput","return;"),Wn="function"==typeof qn.oninput}Gn=Wn}else Gn=!1;$n=Gn&&(!document.documentMode||9<document.documentMode)}function Yn(){Bn&&(Bn.detachEvent("onpropertychange",Qn),Un=Bn=null)}function Qn(e){if("value"===e.propertyName&&Vn(Un)){var t=[];jn(t,Un,e,Mt(e)),zt(zn,t)}}function Kn(e,t,n){"focusin"===e?(Yn(),Un=n,(Bn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Yn()}function Xn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vn(Un)}function Jn(e,t){if("click"===e)return Vn(t)}function Zn(e,t){if("input"===e||"change"===e)return Vn(t)}var er="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function tr(e,t){if(er(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ie.call(t,o)||!er(e[o],t[o]))return!1}return!0}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n,r=nr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nr(r)}}function or(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?or(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ir(e){for(var t=yt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=yt((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sr=Ht&&"documentMode"in document&&11>=document.documentMode,lr=null,cr=null,ur=null,dr=!1;function pr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==lr||lr!==yt(r)||("selectionStart"in(r=lr)&&ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ur&&tr(ur,r)||(ur=r,0<(r=id(cr,"onSelect")).length&&(t=new on("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:fr("Animation","AnimationEnd"),animationiteration:fr("Animation","AnimationIteration"),animationstart:fr("Animation","AnimationStart"),transitionrun:fr("Transition","TransitionRun"),transitionstart:fr("Transition","TransitionStart"),transitioncancel:fr("Transition","TransitionCancel"),transitionend:fr("Transition","TransitionEnd")},mr={},gr={};function yr(e){if(mr[e])return mr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in gr)return mr[e]=n[t];return e}Ht&&(gr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var vr=yr("animationend"),br=yr("animationiteration"),Er=yr("animationstart"),xr=yr("transitionrun"),wr=yr("transitionstart"),Tr=yr("transitioncancel"),kr=yr("transitionend"),Sr=new Map,Ar="abort auxClick beforeToggle 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 Nr(e,t){Sr.set(e,t),it(t,[e])}Ar.push("scrollEnd");var _r="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Cr=[],Ir=0,Or=0;function Dr(){for(var e=Ir,t=Or=Ir=0;t<e;){var n=Cr[t];Cr[t++]=null;var r=Cr[t];Cr[t++]=null;var o=Cr[t];Cr[t++]=null;var i=Cr[t];if(Cr[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Mr(n,o,i)}}function Rr(e,t,n,r){Cr[Ir++]=e,Cr[Ir++]=t,Cr[Ir++]=n,Cr[Ir++]=r,Or|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Pr(e,t,n,r){return Rr(e,t,n,r),Fr(e)}function Lr(e,t){return Rr(e,null,null,t),Fr(e)}function Mr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-we(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function Fr(e){if(50<Wc)throw Wc=0,qc=null,Error(i(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var jr={};function Br(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ur(e,t,n,r){return new Br(e,t,n,r)}function zr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vr(e,t){var n=e.alternate;return null===n?((n=Ur(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Hr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $r(e,t,n,r,o,a){var s=0;if(r=e,"function"==typeof e)zr(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,W.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case C:return(e=Ur(31,n,t,o)).elementType=C,e.lanes=a,e;case b:return Gr(n.children,o,a,t);case E:s=8,o|=24;break;case x:return(e=Ur(12,n,t,2|o)).elementType=x,e.lanes=a,e;case S:return(e=Ur(13,n,t,o)).elementType=S,e.lanes=a,e;case A:return(e=Ur(19,n,t,o)).elementType=A,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case w:s=9;break e;case k:s=11;break e;case N:s=14;break e;case _:s=16,r=null;break e}s=29,n=Error(i(130,null===e?"null":typeof e,"")),r=null}return(t=Ur(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Gr(e,t,n,r){return(e=Ur(7,e,r,t)).lanes=n,e}function Wr(e,t,n){return(e=Ur(6,e,null,t)).lanes=n,e}function qr(e){var t=Ur(18,null,null,0);return t.stateNode=e,t}function Yr(e,t,n){return(t=Ur(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qr=new WeakMap;function Kr(e,t){if("object"==typeof e&&null!==e){var n=Qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:oe(t)},Qr.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}var Xr=[],Jr=0,Zr=null,eo=0,to=[],no=0,ro=null,oo=1,io="";function ao(e,t){Xr[Jr++]=eo,Xr[Jr++]=Zr,Zr=e,eo=t}function so(e,t,n){to[no++]=oo,to[no++]=io,to[no++]=ro,ro=e;var r=oo;e=io;var o=32-we(r)-1;r&=~(1<<o),n+=1;var i=32-we(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,oo=1<<32-we(t)+o|n<<o|r,io=i+e}else oo=1<<i|n<<o|r,io=e}function lo(e){null!==e.return&&(ao(e,1),so(e,1,0))}function co(e){for(;e===Zr;)Zr=Xr[--Jr],Xr[Jr]=null,eo=Xr[--Jr],Xr[Jr]=null;for(;e===ro;)ro=to[--no],to[no]=null,io=to[--no],to[no]=null,oo=to[--no],to[no]=null}function uo(e,t){to[no++]=oo,to[no++]=io,to[no++]=ro,oo=t.id,io=t.overflow,ro=e}var po=null,fo=null,ho=!1,mo=null,go=!1,yo=Error(i(519));function vo(e){throw ko(Kr(Error(i(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function bo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[He]=e,t[$e]=r,n){case"dialog":Ju("cancel",t),Ju("close",t);break;case"iframe":case"object":case"embed":Ju("load",t);break;case"video":case"audio":for(n=0;n<Qu.length;n++)Ju(Qu[n],t);break;case"source":Ju("error",t);break;case"img":case"image":case"link":Ju("error",t),Ju("load",t);break;case"details":Ju("toggle",t);break;case"input":Ju("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ju("invalid",t);break;case"textarea":Ju("invalid",t),St(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Ju("beforetoggle",t),Ju("toggle",t)),null!=r.onScroll&&Ju("scroll",t),null!=r.onScrollEnd&&Ju("scrollend",t),null!=r.onClick&&(t.onclick=Pt),t=!0):t=!1,t||vo(e,!0)}function Eo(e){for(po=e.return;po;)switch(po.tag){case 5:case 31:case 13:return void(go=!1);case 27:case 3:return void(go=!0);default:po=po.return}}function xo(e){if(e!==po)return!1;if(!ho)return Eo(e),ho=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||xd(e.type,e.memoizedProps)),t=!t),t&&fo&&vo(e),Eo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));fo=Fd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));fo=Fd(e)}else 27===n?(n=fo,_d(e.type)?(e=Md,Md=null,fo=e):fo=n):fo=po?Ld(e.stateNode.nextSibling):null;return!0}function wo(){fo=po=null,ho=!1}function To(){var e=mo;return null!==e&&(null===Dc?Dc=e:Dc.push.apply(Dc,e),mo=null),e}function ko(e){null===mo?mo=[e]:mo.push(e)}var So=z(null),Ao=null,No=null;function _o(e,t,n){H(So,t._currentValue),t._currentValue=n}function Co(e){e._currentValue=So.current,V(So)}function Io(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var a=o.dependencies;if(null!==a){var s=o.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=o;for(var c=0;c<t.length;c++)if(l.context===t[c]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Io(a.return,n,e),r||(s=null);break e}a=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(i(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),Io(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function Do(e,t,n,r){e=null;for(var o=t,a=!1;null!==o;){if(!a)if(524288&o.flags)a=!0;else if(262144&o.flags)break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(i(387));if(null!==(s=s.memoizedProps)){var l=o.type;er(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===Q.current){if(null===(s=o.alternate))throw Error(i(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(pp):e=[pp])}o=o.return}null!==e&&Oo(t,e,n,r),t.flags|=262144}function Ro(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Po(e){Ao=e,No=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Lo(e){return Fo(Ao,e)}function Mo(e,t){return null===Ao&&Po(e),Fo(e,t)}function Fo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===No){if(null===e)throw Error(i(308));No=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else No=No.next=t;return n}var jo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Bo=n.unstable_scheduleCallback,Uo=n.unstable_NormalPriority,zo={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vo(){return{controller:new jo,data:new Map,refCount:0}}function Ho(e){e.refCount--,0===e.refCount&&Bo(Uo,function(){e.controller.abort()})}var $o=null,Go=0,Wo=0,qo=null;function Yo(){if(0===--Go&&null!==$o){null!==qo&&(qo.status="fulfilled");var e=$o;$o=null,Wo=0,qo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Qo=M.S;M.S=function(e,t){Lc=ue(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===$o){var n=$o=[];Go=0,Wo=$u(),qo={status:"pending",value:void 0,then:function(e){n.push(e)}}}Go++,t.then(Yo,Yo)}(0,t),null!==Qo&&Qo(e,t)};var Ko=z(null);function Xo(){var e=Ko.current;return null!==e?e:gc.pooledCache}function Jo(e,t){H(Ko,null===t?Ko.current:t.pool)}function Zo(){var e=Xo();return null===e?null:{parent:zo._currentValue,pool:e}}var ei=Error(i(460)),ti=Error(i(474)),ni=Error(i(542)),ri={then:function(){}};function oi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ii(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Pt,Pt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e;default:if("string"==typeof t.status)t.then(Pt,Pt);else{if(null!==(e=gc)&&100<e.shellSuspendCounter)throw Error(i(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e}throw si=t,ei}}function ai(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw si=e,ei;throw e}}var si=null;function li(){if(null===si)throw Error(i(459));var e=si;return si=null,e}function ci(e){if(e===ei||e===ni)throw Error(i(483))}var ui=null,di=0;function pi(e){var t=di;return di+=1,null===ui&&(ui=[]),ii(ui,e,t)}function fi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function hi(e,t){if(t.$$typeof===g)throw Error(i(525));throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=Vr(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Wr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===b?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===_&&ai(i)===t.type)?(fi(t=o(t,n.props),n),t.return=e,t):(fi(t=$r(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Yr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Gr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Wr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return fi(n=$r(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case v:return(t=Yr(t,e.mode,n)).return=e,t;case _:return p(e,t=ai(t),n)}if(L(t)||D(t))return(t=Gr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,pi(t),n);if(t.$$typeof===T)return p(e,Mo(e,t),n);hi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?c(e,t,n,r):null;case v:return n.key===o?u(e,t,n,r):null;case _:return f(e,t,n=ai(n),r)}if(L(n)||D(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return f(e,t,pi(n),r);if(n.$$typeof===T)return f(e,t,Mo(e,n),r);hi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case v:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _:return h(e,t,n,r=ai(r),o)}if(L(r)||D(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return h(e,t,n,pi(r),o);if(r.$$typeof===T)return h(e,t,n,Mo(t,r),o);hi(t,r)}return null}function m(l,c,u,d){if("object"==typeof u&&null!==u&&u.type===b&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case y:e:{for(var g=u.key;null!==c;){if(c.key===g){if((g=u.type)===b){if(7===c.tag){n(l,c.sibling),(d=o(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===_&&ai(g)===c.type){n(l,c.sibling),fi(d=o(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===b?((d=Gr(u.props.children,l.mode,d,u.key)).return=l,l=d):(fi(d=$r(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case v:e:{for(g=u.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=o(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Yr(u,l.mode,d)).return=l,l=d}return s(l);case _:return m(l,c,u=ai(u),d)}if(L(u))return function(o,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(o,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),i=a(y,i,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===s.length)return n(o,d),ho&&ao(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ho&&ao(o,m),c}for(d=r(d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(o,e)}),ho&&ao(o,m),c}(l,c,u,d);if(D(u)){if("function"!=typeof(g=D(u)))throw Error(i(150));return function(o,s,l,c){if(null==l)throw Error(i(151));for(var u=null,d=null,m=s,g=s=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=f(o,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=y}if(v.done)return n(o,m),ho&&ao(o,g),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(o,v.value,c))&&(s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return ho&&ao(o,g),u}for(m=r(m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(o,e)}),ho&&ao(o,g),u}(l,c,u=g.call(u),d)}if("function"==typeof u.then)return m(l,c,pi(u),d);if(u.$$typeof===T)return m(l,c,Mo(l,u),d);hi(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=o(c,u)).return=l,l=d):(n(l,c),(d=Wr(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,r){try{di=0;var o=m(e,t,n,r);return ui=null,o}catch(t){if(t===ei||t===ni)throw t;var i=Ur(29,t,null,e.mode);return i.lanes=r,i.return=e,i}}}var gi=mi(!0),yi=mi(!1),vi=!1;function bi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ei(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&mc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Fr(e),Mr(e,null,n),t}return Rr(e,r,t,n),Fr(e)}function Ti(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Me(e,n)}}function ki(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Si=!1;function Ai(){if(Si){if(null!==qo)throw qo}}function Ni(e,t,n,r){Si=!1;var o=e.updateQueue;vi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var p=-536870913&s.lane,f=p!==s.lane;if(f?(vc&p)===p:(r&p)===p){0!==p&&p===Wo&&(Si=!0),null!==u&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;p=t;var y=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(y,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(y,d,p):m))break e;d=h({},d,p);break e;case 2:vi=!0}}null!==(p=s.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=o.callbacks)?o.callbacks=[p]:f.push(p))}else f={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null===i&&(o.shared.lanes=0),Ac|=a,e.lanes=a,e.memoizedState=d}}function _i(e,t){if("function"!=typeof e)throw Error(i(191,e));e.call(t)}function Ci(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)_i(n[e],t)}var Ii=z(null),Oi=z(0);function Di(e,t){H(Oi,e=kc),H(Ii,t),kc=e|t.baseLanes}function Ri(){H(Oi,kc),H(Ii,Ii.current)}function Pi(){kc=Oi.current,V(Ii),V(Oi)}var Li=z(null),Mi=null;function Fi(e){var t=e.alternate;H(Vi,1&Vi.current),H(Li,e),null===Mi&&(null===t||null!==Ii.current||null!==t.memoizedState)&&(Mi=e)}function ji(e){H(Vi,Vi.current),H(Li,e),null===Mi&&(Mi=e)}function Bi(e){22===e.tag?(H(Vi,Vi.current),H(Li,e),null===Mi&&(Mi=e)):Ui()}function Ui(){H(Vi,Vi.current),H(Li,Li.current)}function zi(e){V(Li),Mi===e&&(Mi=null),V(Vi)}var Vi=z(0);function Hi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Rd(n)||Pd(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $i=0,Gi=null,Wi=null,qi=null,Yi=!1,Qi=!1,Ki=!1,Xi=0,Ji=0,Zi=null,ea=0;function ta(){throw Error(i(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){return $i=i,Gi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=null===e||null===e.memoizedState?vs:bs,Ki=!1,i=n(r,o),Ki=!1,Qi&&(i=ia(t,n,r,o)),oa(e),i}function oa(e){M.H=ys;var t=null!==Wi&&null!==Wi.next;if($i=0,qi=Wi=Gi=null,Yi=!1,Ji=0,Zi=null,t)throw Error(i(300));null===e||Ls||null!==(e=e.dependencies)&&Ro(e)&&(Ls=!0)}function ia(e,t,n,r){Gi=e;var o=0;do{if(Qi&&(Zi=null),Ji=0,Qi=!1,25<=o)throw Error(i(301));if(o+=1,qi=Wi=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}M.H=Es,a=t(n,r)}while(Qi);return a}function aa(){var e=M.H,t=e.useState()[0];return t="function"==typeof t.then?pa(t):t,e=e.useState()[0],(null!==Wi?Wi.memoizedState:null)!==e&&(Gi.flags|=1024),t}function sa(){var e=0!==Xi;return Xi=0,e}function la(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ca(e){if(Yi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Yi=!1}$i=0,qi=Wi=Gi=null,Qi=!1,Ji=Xi=0,Zi=null}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qi?Gi.memoizedState=qi=e:qi=qi.next=e,qi}function da(){if(null===Wi){var e=Gi.alternate;e=null!==e?e.memoizedState:null}else e=Wi.next;var t=null===qi?Gi.memoizedState:qi.next;if(null!==t)qi=t,Wi=e;else{if(null===e){if(null===Gi.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(Wi=e).memoizedState,baseState:Wi.baseState,baseQueue:Wi.baseQueue,queue:Wi.queue,next:null},null===qi?Gi.memoizedState=qi=e:qi=qi.next=e}return qi}function pa(e){var t=Ji;return Ji+=1,null===Zi&&(Zi=[]),e=ii(Zi,e,t),t=Gi,null===(null===qi?t.memoizedState:qi.next)&&(t=t.alternate,M.H=null===t||null===t.memoizedState?vs:bs),e}function fa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return pa(e);if(e.$$typeof===T)return Lo(e)}throw Error(i(438,String(e)))}function ha(e){var t=null,n=Gi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Gi.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Gi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=I;return t.index++,n}function ma(e,t){return"function"==typeof t?t(e):t}function ga(e){return ya(da(),Wi,e)}function ya(e,t,n){var r=e.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=n;var o=e.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}t.baseQueue=o=a,r.pending=null}if(a=e.baseState,null===o)e.memoizedState=a;else{var l=s=null,c=null,u=t=o.next,d=!1;do{var p=-536870913&u.lane;if(p!==u.lane?(vc&p)===p:($i&p)===p){var f=u.revertLane;if(0===f)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),p===Wo&&(d=!0);else{if(($i&f)===f){u=u.next,f===Wo&&(d=!0);continue}p={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=a):c=c.next=p,Gi.lanes|=f,Ac|=f}p=u.action,Ki&&n(a,p),a=u.hasEagerState?u.eagerState:n(a,p)}else f={lane:p,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=a):c=c.next=f,Gi.lanes|=p,Ac|=p;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!er(a,e.memoizedState)&&(Ls=!0,d&&null!==(n=qo)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=c,r.lastRenderedState=a}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function va(e){var t=da(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);er(a,t.memoizedState)||(Ls=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ba(e,t,n){var r=Gi,o=da(),a=ho;if(a){if(void 0===n)throw Error(i(407));n=n()}else n=t();var s=!er((Wi||o).memoizedState,n);if(s&&(o.memoizedState=n,Ls=!0),o=o.queue,$a(wa.bind(null,r,o,e),[e]),o.getSnapshot!==t||s||null!==qi&&1&qi.memoizedState.tag){if(r.flags|=2048,Ba(9,{destroy:void 0},xa.bind(null,r,o,n,t),null),null===gc)throw Error(i(349));a||127&$i||Ea(r,t,n)}return n}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Gi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Gi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xa(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&ka(e)}function wa(e,t,n){return n(function(){Ta(t)&&ka(e)})}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(e){return!0}}function ka(e){var t=Lr(e,2);null!==t&&Kc(t,e,2)}function Sa(e){var t=ua();if("function"==typeof e){var n=e;if(e=n(),Ki){xe(!0);try{n()}finally{xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},t}function Aa(e,t,n,r){return e.baseState=n,ya(e,Wi,"function"==typeof r?r:ma)}function Na(e,t,n,r,o){if(hs(e))throw Error(i(485));if(null!==(e=t.action)){var a={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==M.T?n(!0):a.isTransition=!1,r(a),null===(n=t.pending)?(a.next=t.pending=a,_a(t,a)):(a.next=n.next,t.pending=n.next=a)}}function _a(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=M.T,a={};M.T=a;try{var s=n(o,r),l=M.S;null!==l&&l(a,s),Ca(e,t,s)}catch(n){Oa(e,t,n)}finally{null!==i&&null!==a.types&&(i.types=a.types),M.T=i}}else try{Ca(e,t,i=n(o,r))}catch(n){Oa(e,t,n)}}function Ca(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ia(e,t,n)},function(n){return Oa(e,t,n)}):Ia(e,t,n)}function Ia(e,t,n){t.status="fulfilled",t.value=n,Da(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,_a(e,n)))}function Oa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Da(t),t=t.next}while(t!==r)}e.action=null}function Da(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ra(e,t){return t}function Pa(e,t){if(ho){var n=gc.formState;if(null!==n){e:{var r=Gi;if(ho){if(fo){t:{for(var o=fo,i=go;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Ld(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){fo=Ld(o.nextSibling),r="F!"===o.data;break e}}vo(r)}r=!1}r&&(t=n[0])}}return(n=ua()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:t},n.queue=r,n=ds.bind(null,Gi,r),r.dispatch=n,r=Sa(!1),i=fs.bind(null,Gi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ua()).queue=o,n=Na.bind(null,Gi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function La(e){return Ma(da(),Wi,e)}function Ma(e,t,n){if(t=ya(e,t,Ra)[0],e=ga(ma)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=pa(t)}catch(e){if(e===ei)throw ni;throw e}else r=t;var o=(t=da()).queue,i=o.dispatch;return n!==t.memoizedState&&(Gi.flags|=2048,Ba(9,{destroy:void 0},Fa.bind(null,o,n),null)),[r,i,e]}function Fa(e,t){e.action=t}function ja(e){var t=da(),n=Wi;if(null!==n)return Ma(t,n,e);da(),t=t.memoizedState;var r=(n=da()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ba(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Gi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Gi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ua(){return da().memoizedState}function za(e,t,n,r){var o=ua();Gi.flags|=e,o.memoizedState=Ba(1|t,{destroy:void 0},n,void 0===r?null:r)}function Va(e,t,n,r){var o=da();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Wi&&null!==r&&na(r,Wi.memoizedState.deps)?o.memoizedState=Ba(t,i,n,r):(Gi.flags|=e,o.memoizedState=Ba(1|t,i,n,r))}function Ha(e,t){za(8390656,8,e,t)}function $a(e,t){Va(2048,8,e,t)}function Ga(e){var t=da().memoizedState;return function(e){Gi.flags|=4;var t=Gi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Gi.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&mc)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Wa(e,t){return Va(4,2,e,t)}function qa(e,t){return Va(4,4,e,t)}function Ya(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Qa(e,t,n){n=null!=n?n.concat([e]):null,Va(4,4,Ya.bind(null,t,e),n)}function Ka(){}function Xa(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ja(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&na(t,r[1]))return r[0];if(r=e(),Ki){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r}function Za(e,t,n){return void 0===n||1073741824&$i&&!(261930&vc)?e.memoizedState=t:(e.memoizedState=n,e=Qc(),Gi.lanes|=e,Ac|=e,n)}function es(e,t,n,r){return er(n,t)?n:null!==Ii.current?(e=Za(e,n,r),er(e,t)||(Ls=!0),e):42&$i&&(!(1073741824&$i)||261930&vc)?(e=Qc(),Gi.lanes|=e,Ac|=e,t):(Ls=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var i=F.p;F.p=0!==i&&8>i?i:8;var a,s,l,c=M.T,u={};M.T=u,fs(e,!1,t,n);try{var d=o(),p=M.S;if(null!==p&&p(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)ps(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Yc());else ps(e,t,r,Yc())}catch(n){ps(e,t,{then:function(){},status:"rejected",reason:n},Yc())}finally{F.p=i,null!==c&&null!==u.types&&(c.types=u.types),M.T=c}}function ns(){}function rs(e,t,n,r){if(5!==e.tag)throw Error(i(476));var o=os(e).queue;ts(e,o,t,j,null===n?ns:function(){return is(e),n(r)})}function os(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:j},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function is(e){var t=os(e);null===t.next&&(t=e.alternate.memoizedState),ps(e,t.next.queue,{},Yc())}function as(){return Lo(pp)}function ss(){return da().memoizedState}function ls(){return da().memoizedState}function cs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Yc(),r=wi(t,e=xi(n),n);return null!==r&&(Kc(r,t,n),Ti(r,t,n)),t={cache:Vo()},void(e.payload=t)}t=t.return}}function us(e,t,n){var r=Yc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?ms(t,n):null!==(n=Pr(e,t,n,r))&&(Kc(n,e,r),gs(n,t,r))}function ds(e,t,n){ps(e,t,n,Yc())}function ps(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))ms(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,er(s,a))return Rr(e,t,o,0),null===gc&&Dr(),!1}catch(e){}if(null!==(n=Pr(e,t,o,r)))return Kc(n,e,r),gs(n,t,r),!0}return!1}function fs(e,t,n,r){if(r={lane:2,revertLane:$u(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(i(479))}else null!==(t=Pr(e,n,r,2))&&Kc(t,e,2)}function hs(e){var t=e.alternate;return e===Gi||null!==t&&t===Gi}function ms(e,t){Qi=Yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gs(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Me(e,n)}}var ys={readContext:Lo,use:fa,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useInsertionEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useSyncExternalStore:ta,useId:ta,useHostTransitionStatus:ta,useFormState:ta,useActionState:ta,useOptimistic:ta,useMemoCache:ta,useCacheRefresh:ta};ys.useEffectEvent=ta;var vs={readContext:Lo,use:fa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:Lo,useEffect:Ha,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,za(4194308,4,Ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return za(4194308,4,e,t)},useInsertionEffect:function(e,t){za(4,2,e,t)},useMemo:function(e,t){var n=ua();t=void 0===t?null:t;var r=e();if(Ki){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ua();if(void 0!==n){var o=n(t);if(Ki){xe(!0);try{n(t)}finally{xe(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=us.bind(null,Gi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ua().memoizedState=e},useState:function(e){var t=(e=Sa(e)).queue,n=ds.bind(null,Gi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ka,useDeferredValue:function(e,t){return Za(ua(),e,t)},useTransition:function(){var e=Sa(!1);return e=ts.bind(null,Gi,e.queue,!0,!1),ua().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Gi,o=ua();if(ho){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===gc)throw Error(i(349));127&vc||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ha(wa.bind(null,r,a,e),[e]),r.flags|=2048,Ba(9,{destroy:void 0},xa.bind(null,r,a,n,t),null),n},useId:function(){var e=ua(),t=gc.identifierPrefix;if(ho){var n=io;t="_"+t+"R_"+(n=(oo&~(1<<32-we(oo)-1)).toString(32)+n),0<(n=Xi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ea++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:as,useFormState:Pa,useActionState:Pa,useOptimistic:function(e){var t=ua();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=fs.bind(null,Gi,!0,n),n.dispatch=t,[e,t]},useMemoCache:ha,useCacheRefresh:function(){return ua().memoizedState=cs.bind(null,Gi)},useEffectEvent:function(e){var t=ua(),n={impl:e};return t.memoizedState=n,function(){if(2&mc)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},bs={readContext:Lo,use:fa,useCallback:Xa,useContext:Lo,useEffect:$a,useImperativeHandle:Qa,useInsertionEffect:Wa,useLayoutEffect:qa,useMemo:Ja,useReducer:ga,useRef:Ua,useState:function(){return ga(ma)},useDebugValue:Ka,useDeferredValue:function(e,t){return es(da(),Wi.memoizedState,e,t)},useTransition:function(){var e=ga(ma)[0],t=da().memoizedState;return["boolean"==typeof e?e:pa(e),t]},useSyncExternalStore:ba,useId:ss,useHostTransitionStatus:as,useFormState:La,useActionState:La,useOptimistic:function(e,t){return Aa(da(),0,e,t)},useMemoCache:ha,useCacheRefresh:ls};bs.useEffectEvent=Ga;var Es={readContext:Lo,use:fa,useCallback:Xa,useContext:Lo,useEffect:$a,useImperativeHandle:Qa,useInsertionEffect:Wa,useLayoutEffect:qa,useMemo:Ja,useReducer:va,useRef:Ua,useState:function(){return va(ma)},useDebugValue:Ka,useDeferredValue:function(e,t){var n=da();return null===Wi?Za(n,e,t):es(n,Wi.memoizedState,e,t)},useTransition:function(){var e=va(ma)[0],t=da().memoizedState;return["boolean"==typeof e?e:pa(e),t]},useSyncExternalStore:ba,useId:ss,useHostTransitionStatus:as,useFormState:ja,useActionState:ja,useOptimistic:function(e,t){var n=da();return null!==Wi?Aa(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ha,useCacheRefresh:ls};function xs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:h({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}Es.useEffectEvent=Ga;var ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Yc(),o=xi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=wi(e,o,r))&&(Kc(t,e,r),Ti(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Yc(),o=xi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=wi(e,o,r))&&(Kc(t,e,r),Ti(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yc(),r=xi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=wi(e,r,n))&&(Kc(t,e,n),Ti(t,e,n))}};function Ts(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!tr(n,r)||!tr(o,i))}function ks(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ws.enqueueReplaceState(t,t.state,null)}function Ss(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=h({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function As(e){_r(e)}function Ns(e){console.error(e)}function _s(e){_r(e)}function Cs(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Is(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Os(e,t,n){return(n=xi(n)).tag=3,n.payload={element:null},n.callback=function(){Cs(e,t)},n}function Ds(e){return(e=xi(e)).tag=3,e}function Rs(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Is(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Is(t,n,r),"function"!=typeof o&&(null===jc?jc=new Set([this]):jc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ps=Error(i(461)),Ls=!1;function Ms(e,t,n,r){t.child=null===e?yi(t,null,n,r):gi(t,e.child,n,r)}function Fs(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Po(t),r=ra(e,t,n,a,i,o),s=sa(),null===e||Ls?(ho&&s&&lo(t),t.flags|=1,Ms(e,t,r,o),t.child):(la(e,t,o),al(e,t,o))}function js(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||zr(i)||void 0!==i.defaultProps||null!==n.compare?((e=$r(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Bs(e,t,i,r,o))}if(i=e.child,!sl(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(a,r)&&e.ref===t.ref)return al(e,t,o)}return t.flags|=1,(e=Vr(i,r)).ref=t.ref,e.return=t,t.child=e}function Bs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Ls=!1,t.pendingProps=r=i,!sl(e,o))return t.lanes=e.lanes,al(e,t,o);131072&e.flags&&(Ls=!0)}}return Ws(e,t,n,r,o)}function Us(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return Vs(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Vs(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Jo(0,null!==i?i.cachePool:null),null!==i?Di(t,i):Ri(),Bi(t)}else null!==i?(Jo(0,i.cachePool),Di(t,i),Ui(),t.memoizedState=null):(null!==e&&Jo(0,null),Ri(),Ui());return Ms(e,t,o,n),t.child}function zs(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vs(e,t,n,r,o){var i=Xo();return i=null===i?null:{parent:zo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Jo(0,null),Ri(),Bi(t),null!==e&&Do(e,t,r,!0),t.childLanes=o,null}function Hs(e,t){return(t=tl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function $s(e,t,n){return gi(t,e.child,null,n),(e=Hs(t,t.pendingProps)).flags|=2,zi(t),t.memoizedState=null,e}function Gs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(i(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ws(e,t,n,r,o){return Po(t),n=ra(e,t,n,r,void 0,o),r=sa(),null===e||Ls?(ho&&r&&lo(t),t.flags|=1,Ms(e,t,n,o),t.child):(la(e,t,o),al(e,t,o))}function qs(e,t,n,r,o,i){return Po(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=sa(),null===e||Ls?(ho&&r&&lo(t),t.flags|=1,Ms(e,t,n,i),t.child):(la(e,t,i),al(e,t,i))}function Ys(e,t,n,r,o){if(Po(t),null===t.stateNode){var i=jr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Lo(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=ws,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},bi(t),a=n.contextType,i.context="object"==typeof a&&null!==a?Lo(a):jr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(xs(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&ws.enqueueReplaceState(i,i.state,null),Ni(t,r,i,o),Ai(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=Ss(n,s);i.props=l;var c=i.context,u=n.contextType;a=jr,"object"==typeof u&&null!==u&&(a=Lo(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||c!==a)&&ks(t,i,r,a),vi=!1;var p=t.memoizedState;i.state=p,Ni(t,r,i,o),Ai(),c=t.memoizedState,s||p!==c||vi?("function"==typeof d&&(xs(t,n,d,r),c=t.memoizedState),(l=vi||Ts(t,n,l,r,p,c,a))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ei(e,t),u=Ss(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,p=i.context,c=n.contextType,l=jr,"object"==typeof c&&null!==c&&(l=Lo(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||p!==l)&&ks(t,i,r,l),vi=!1,p=t.memoizedState,i.state=p,Ni(t,r,i,o),Ai();var f=t.memoizedState;a!==d||p!==f||vi||null!==e&&null!==e.dependencies&&Ro(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),f=t.memoizedState),(u=vi||Ts(t,n,u,r,p,f,l)||null!==e&&null!==e.dependencies&&Ro(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,f,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),i.props=r,i.state=f,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Gs(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=gi(t,e.child,null,o),t.child=gi(t,null,n,o)):Ms(e,t,n,o),t.memoizedState=i.state,e=t.child):e=al(e,t,o),e}function Qs(e,t,n,r){return wo(),t.flags|=256,Ms(e,t,n,r),t.child}var Ks={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xs(e){return{baseLanes:e,cachePool:Zo()}}function Js(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Cc),e}function Zs(e,t,n){var r,o=t.pendingProps,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&Vi.current)),r&&(a=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(a?Fi(t):Ui(),(e=fo)?null!==(e=null!==(e=Dd(e,go))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=qr(e)).return=t,t.child=n,po=t,fo=null):e=null,null===e)throw vo(t);return Pd(e)?t.lanes=32:t.lanes=536870912,null}var l=o.children;return o=o.fallback,a?(Ui(),l=tl({mode:"hidden",children:l},a=t.mode),o=Gr(o,a,n,null),l.return=t,o.return=t,l.sibling=o,t.child=l,(o=t.child).memoizedState=Xs(n),o.childLanes=Js(e,r,n),t.memoizedState=Ks,zs(null,o)):(Fi(t),el(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?(Fi(t),t.flags&=-257,t=nl(e,t,n)):null!==t.memoizedState?(Ui(),t.child=e.child,t.flags|=128,t=null):(Ui(),l=o.fallback,a=t.mode,o=tl({mode:"visible",children:o.children},a),(l=Gr(l,a,n,null)).flags|=2,o.return=t,l.return=t,o.sibling=l,t.child=o,gi(t,e.child,null,n),(o=t.child).memoizedState=Xs(n),o.childLanes=Js(e,r,n),t.memoizedState=Ks,t=zs(null,o));else if(Fi(t),Pd(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var u=r.dgst;r=u,(o=Error(i(419))).stack="",o.digest=r,ko({value:o,source:null,stack:null}),t=nl(e,t,n)}else if(Ls||Do(e,t,n,!1),r=0!==(n&e.childLanes),Ls||r){if(null!==(r=gc)&&(0!==(o=Fe(r,n))&&o!==c.retryLane))throw c.retryLane=o,Lr(e,o),Kc(r,e,o),Ps;Rd(l)||lu(),t=nl(e,t,n)}else Rd(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,fo=Ld(l.nextSibling),po=t,ho=!0,mo=null,go=!1,null!==e&&uo(t,e),(t=el(t,o.children)).flags|=4096);return t}return a?(Ui(),l=o.fallback,a=t.mode,u=(c=e.child).sibling,(o=Vr(c,{mode:"hidden",children:o.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=Vr(u,l):(l=Gr(l,a,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,zs(null,o),o=t.child,null===(l=e.child.memoizedState)?l=Xs(n):(null!==(a=l.cachePool)?(c=zo._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=Zo(),l={baseLanes:l.baseLanes|n,cachePool:a}),o.memoizedState=l,o.childLanes=Js(e,r,n),t.memoizedState=Ks,zs(e.child,o)):(Fi(t),e=(n=e.child).sibling,(n=Vr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return(t=tl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function tl(e,t){return(e=Ur(22,e,null,t)).lanes=0,e}function nl(e,t,n){return gi(t,e.child,null,n),(e=el(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Io(e.return,t,n)}function ol(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.treeForkCount=i)}function il(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=Vi.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,H(Vi,a),Ms(e,t,r,n),r=ho?eo:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rl(e,n,t);else if(19===e.tag)rl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Hi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ol(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Hi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ol(t,!0,n,null,i,r);break;case"together":ol(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function al(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ac|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Do(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Vr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ro(e))}function ll(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ls=!0;else{if(!(sl(e,n)||128&t.flags))return Ls=!1,function(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),_o(0,zo,e.memoizedState.cache),wo();break;case 27:case 5:J(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:_o(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,ji(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Fi(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Zs(e,t,n):(Fi(t),null!==(e=al(e,t,n))?e.sibling:null);Fi(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Do(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return il(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),H(Vi,Vi.current),r)break;return null;case 22:return t.lanes=0,Us(e,t,n,t.pendingProps);case 24:_o(0,zo,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Ls=!!(131072&e.flags)}else Ls=!1,ho&&1048576&t.flags&&so(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ai(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var o=e.$$typeof;if(o===k){t.tag=11,t=Fs(null,t,e,r,n);break e}if(o===N){t.tag=14,t=js(null,t,e,r,n);break e}}throw t=P(e)||e,Error(i(306,t,""))}zr(e)?(r=Ss(e,r),t.tag=1,t=Ys(null,t,e,r,n)):(t.tag=0,t=Ws(null,t,e,r,n))}return t;case 0:return Ws(e,t,t.type,t.pendingProps,n);case 1:return Ys(e,t,r=t.type,o=Ss(r,t.pendingProps),n);case 3:e:{if(K(t,t.stateNode.containerInfo),null===e)throw Error(i(387));r=t.pendingProps;var a=t.memoizedState;o=a.element,Ei(e,t),Ni(t,r,null,n);var s=t.memoizedState;if(r=s.cache,_o(0,zo,r),r!==a.cache&&Oo(t,[zo],n,!0),Ai(),r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Qs(e,t,r,n);break e}if(r!==o){ko(o=Kr(Error(i(424)),t)),t=Qs(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(fo=Ld(e.firstChild),po=t,ho=!0,mo=null,go=!0,n=yi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(wo(),r===o){t=al(e,t,n);break e}Ms(e,t,r,n)}t=t.child}return t;case 26:return Gs(e,t),null===e?(n=qd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ho||(n=t.type,e=t.pendingProps,(r=vd(Y.current).createElement(n))[He]=t,r[$e]=e,hd(r,n,e),nt(r),t.stateNode=r):t.memoizedState=qd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return J(t),null===e&&ho&&(r=t.stateNode=Bd(t.type,t.pendingProps,Y.current),po=t,go=!0,o=fo,_d(t.type)?(Md=o,fo=Ld(r.firstChild)):fo=o),Ms(e,t,t.pendingProps.children,n),Gs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ho&&((o=r=fo)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ke])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Ld(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,go))?(t.stateNode=r,po=t,fo=Ld(r.firstChild),go=!1,o=!0):o=!1),o||vo(t)),J(t),o=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,r=a.children,xd(o,a)?r=null:null!==s&&xd(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=ra(e,t,aa,null,null,n),pp._currentValue=o),Gs(e,t),Ms(e,t,r,n),t.child;case 6:return null===e&&ho&&((e=n=fo)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}(n,t.pendingProps,go))?(t.stateNode=n,po=t,fo=null,e=!0):e=!1),e||vo(t)),null;case 13:return Zs(e,t,n);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=gi(t,null,r,n):Ms(e,t,r,n),t.child;case 11:return Fs(e,t,t.type,t.pendingProps,n);case 7:return Ms(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ms(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,_o(0,t.type,r.value),Ms(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Po(t),r=r(o=Lo(o)),t.flags|=1,Ms(e,t,r,n),t.child;case 14:return js(e,t,t.type,t.pendingProps,n);case 15:return Bs(e,t,t.type,t.pendingProps,n);case 19:return il(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,o=!!(128&t.flags);if(t.flags&=-129,null===e){if(ho){if("hidden"===r.mode)return e=Hs(t,r),t.lanes=536870912,zs(null,e);if(ji(t),(e=fo)?null!==(e=null!==(e=Dd(e,go))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=qr(e)).return=t,t.child=n,po=t,fo=null):e=null,null===e)throw vo(t);return t.lanes=536870912,null}return Hs(t,r)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(ji(t),o)if(256&t.flags)t.flags&=-257,t=$s(e,t,n);else{if(null===t.memoizedState)throw Error(i(558));t.child=e.child,t.flags|=128,t=null}else if(Ls||Do(e,t,n,!1),o=0!==(n&e.childLanes),Ls||o){if(null!==(r=gc)&&0!==(s=Fe(r,n))&&s!==a.retryLane)throw a.retryLane=s,Lr(e,s),Kc(r,e,s),Ps;lu(),t=$s(e,t,n)}else e=a.treeContext,fo=Ld(s.nextSibling),po=t,ho=!0,mo=null,go=!1,null!==e&&uo(t,e),(t=Hs(t,r)).flags|=4096;return t}return(e=Vr(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Us(e,t,n,t.pendingProps);case 24:return Po(t),r=Lo(zo),null===e?(null===(o=Xo())&&(o=gc,a=Vo(),o.pooledCache=a,a.refCount++,null!==a&&(o.pooledCacheLanes|=n),o=a),t.memoizedState={parent:r,cache:o},bi(t),_o(0,zo,o)):(0!==(e.lanes&n)&&(Ei(e,t),Ni(t,null,null,n),Ai()),o=e.memoizedState,a=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),_o(0,zo,r)):(r=a.cache,_o(0,zo,r),r!==o.cache&&Oo(t,[zo],n,!0))),Ms(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function cl(e){e.flags|=4}function ul(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!iu())throw si=ri,ti;e.flags|=8192}}else e.flags&=-16777217}function dl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!ap(t)){if(!iu())throw si=ri,ti;e.flags|=8192}}function pl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?De():536870912,e.lanes|=t,Ic|=t)}function fl(e,t){if(!ho)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ml(e,t,n){var r=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Co(zo),X(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(xo(t)?cl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,To())),hl(t),null;case 26:var o=t.type,a=t.memoizedState;return null===e?(cl(t),null!==a?(hl(t),dl(t,a)):(hl(t),ul(t,o,0,0,n))):a?a!==e.memoizedState?(cl(t),hl(t),dl(t,a)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&cl(t),hl(t),ul(t,o,0,0,n)),null;case 27:if(Z(t),n=Y.current,o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&cl(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return hl(t),null}e=W.current,xo(t)?bo(t):(e=Bd(o,r,n),t.stateNode=e,cl(t))}return hl(t),null;case 5:if(Z(t),o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&cl(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return hl(t),null}if(a=W.current,xo(t))bo(t);else{var s=vd(Y.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?s.createElement(o,{is:r.is}):s.createElement(o)}}a[He]=t,a[$e]=r;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(hd(a,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&cl(t)}}return hl(t),ul(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&cl(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=Y.current,xo(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=po))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[He]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||dd(e.nodeValue,n)))||vo(t,!0)}else(e=vd(e).createTextNode(r))[He]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=xo(t),null!==n){if(null===e){if(!r)throw Error(i(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(i(557));e[He]=t}else wo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=To(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(zi(t),t):(zi(t),null);if(128&t.flags)throw Error(i(558))}return hl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=xo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[He]=t}else wo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),o=!1}else o=To(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(zi(t),t):(zi(t),null)}return zi(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),pl(t,t.updateQueue),hl(t),null);case 4:return X(),null===e&&td(t.stateNode.containerInfo),hl(t),null;case 10:return Co(t.type),hl(t),null;case 19:if(V(Vi),null===(r=t.memoizedState))return hl(t),null;if(o=!!(128&t.flags),null===(a=r.rendering))if(o)fl(r,!1);else{if(0!==Sc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Hi(e))){for(t.flags|=128,fl(r,!1),e=a.updateQueue,t.updateQueue=e,pl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Hr(n,e),n=n.sibling;return H(Vi,1&Vi.current|2),ho&&ao(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&ue()>Mc&&(t.flags|=128,o=!0,fl(r,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=Hi(a))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,pl(t,e),fl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!ho)return hl(t),null}else 2*ue()-r.renderingStartTime>Mc&&536870912!==n&&(t.flags|=128,o=!0,fl(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=r.last)?e.sibling=a:t.child=a,r.last=a)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ue(),e.sibling=null,n=Vi.current,H(Vi,o?1&n|2:1&n),ho&&ao(t,r.treeForkCount),e):(hl(t),null);case 22:case 23:return zi(t),Pi(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&pl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&V(Ko),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Co(zo),hl(t),null;case 25:case 30:return null}throw Error(i(156,t.tag))}function gl(e,t){switch(co(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Co(zo),X(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Z(t),null;case 31:if(null!==t.memoizedState){if(zi(t),null===t.alternate)throw Error(i(340));wo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(zi(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));wo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return V(Vi),null;case 4:return X(),null;case 10:return Co(t.type),null;case 22:case 23:return zi(t),Pi(),null!==e&&V(Ko),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Co(zo),null;default:return null}}function yl(e,t){switch(co(t),t.tag){case 3:Co(zo),X();break;case 26:case 27:case 5:Z(t);break;case 4:X();break;case 31:null!==t.memoizedState&&zi(t);break;case 13:zi(t);break;case 19:V(Vi);break;case 10:Co(t.type);break;case 22:case 23:zi(t),Pi(),null!==e&&V(Ko);break;case 24:Co(zo)}}function vl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(e){Su(t,t.return,e)}}function bl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n,c=s;try{c()}catch(e){Su(o,l,e)}}}r=r.next}while(r!==i)}}catch(e){Su(t,t.return,e)}}function El(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ci(t,n)}catch(t){Su(e,e.return,t)}}}function xl(e,t,n){n.props=Ss(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Su(e,t,n)}}function wl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){Su(e,t,n)}}function Tl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){Su(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function kl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Su(e,e.return,t)}}function Sl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&null!=p)switch(h){case"checked":case"value":break;case"defaultValue":c=p;default:r.hasOwnProperty(h)||pd(e,t,h,null,r,p)}}for(var f in r){var h=r[f];if(p=n[f],r.hasOwnProperty(f)&&(null!=h||null!=p))switch(f){case"type":a=h;break;case"name":o=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(i(137,t));break;default:h!==p&&pd(e,t,f,h,r,p)}}return void Et(e,s,l,c,u,d,a,o);case"select":for(a in h=s=l=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":h=c;default:r.hasOwnProperty(a)||pd(e,t,a,null,r,c)}for(o in r)if(a=r[o],c=n[o],r.hasOwnProperty(o)&&(null!=a||null!=c))switch(o){case"value":f=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==c&&pd(e,t,o,a,r,c)}return t=l,n=s,r=h,void(null!=f?Tt(e,!!n,f,!1):!!r!=!!n&&(null!=t?Tt(e,!!n,t,!0):Tt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=f=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:pd(e,t,l,null,r,o)}for(s in r)if(o=r[s],a=n[s],r.hasOwnProperty(s)&&(null!=o||null!=a))switch(s){case"value":f=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(i(91));break;default:o!==a&&pd(e,t,s,o,r,a)}return void kt(e,f,h);case"option":for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else pd(e,t,m,null,r,f);for(c in r)if(f=r[c],h=n[c],r.hasOwnProperty(c)&&f!==h&&(null!=f||null!=h))if("selected"===c)e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f;else pd(e,t,c,f,r,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!r.hasOwnProperty(g)&&pd(e,t,g,null,r,f);for(u in r)if(f=r[u],h=n[u],r.hasOwnProperty(u)&&f!==h&&(null!=f||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(i(137,t));break;default:pd(e,t,u,f,r,h)}return;default:if(It(t)){for(var y in n)f=n[y],n.hasOwnProperty(y)&&void 0!==f&&!r.hasOwnProperty(y)&&fd(e,t,y,void 0,r,f);for(d in r)f=r[d],h=n[d],!r.hasOwnProperty(d)||f===h||void 0===f&&void 0===h||fd(e,t,d,f,r,h);return}}for(var v in n)f=n[v],n.hasOwnProperty(v)&&null!=f&&!r.hasOwnProperty(v)&&pd(e,t,v,null,r,f);for(p in r)f=r[p],h=n[p],!r.hasOwnProperty(p)||f===h||null==f&&null==h||pd(e,t,p,f,r,h)}(r,e.type,n,t),r[$e]=t}catch(t){Su(e,e.return,t)}}function Al(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&_d(e.type)||4===e.tag}function Nl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&_d(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function _l(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Pt));else if(4!==r&&(27===r&&_d(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(_l(e,t,n),e=e.sibling;null!==e;)_l(e,t,n),e=e.sibling}function Cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&_d(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Cl(e,t,n),e=e.sibling;null!==e;)Cl(e,t,n),e=e.sibling}function Il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hd(t,r,n),t[He]=e,t[$e]=n}catch(t){Su(e,e.return,t)}}var Ol=!1,Dl=!1,Rl=!1,Pl="function"==typeof WeakSet?WeakSet:Set,Ll=null;function Ml(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Kl(e,n),4&r&&vl(5,n);break;case 1:if(Kl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){Su(n,n.return,e)}else{var o=Ss(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Su(n,n.return,e)}}64&r&&El(n),512&r&&wl(n,n.return);break;case 3:if(Kl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Ci(e,t)}catch(e){Su(n,n.return,e)}}break;case 27:null===t&&4&r&&Il(n);case 26:case 5:Kl(e,n),null===t&&4&r&&kl(n),512&r&&wl(n,n.return);break;case 12:Kl(e,n);break;case 31:Kl(e,n),4&r&&Vl(e,n);break;case 13:Kl(e,n),4&r&&Hl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Cu.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Ol)){t=null!==t&&null!==t.memoizedState||Dl,o=Ol;var i=Dl;Ol=r,(Dl=t)&&!i?Jl(e,n,!!(8772&n.subtreeFlags)):Kl(e,n),Ol=o,Dl=i}break;case 30:break;default:Kl(e,n)}}function Fl(e){var t=e.alternate;null!==t&&(e.alternate=null,Fl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Xe(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var jl=null,Bl=!1;function Ul(e,t,n){for(n=n.child;null!==n;)zl(e,t,n),n=n.sibling}function zl(e,t,n){if(Ee&&"function"==typeof Ee.onCommitFiberUnmount)try{Ee.onCommitFiberUnmount(be,n)}catch(e){}switch(n.tag){case 26:Dl||Tl(n,t),Ul(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Dl||Tl(n,t);var r=jl,o=Bl;_d(n.type)&&(jl=n.stateNode,Bl=!1),Ul(e,t,n),Ud(n.stateNode),jl=r,Bl=o;break;case 5:Dl||Tl(n,t);case 6:if(r=jl,o=Bl,jl=null,Ul(e,t,n),Bl=o,null!==(jl=r))if(Bl)try{(9===jl.nodeType?jl.body:"HTML"===jl.nodeName?jl.ownerDocument.body:jl).removeChild(n.stateNode)}catch(e){Su(n,t,e)}else try{jl.removeChild(n.stateNode)}catch(e){Su(n,t,e)}break;case 18:null!==jl&&(Bl?(Cd(9===(e=jl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Wp(e)):Cd(jl,n.stateNode));break;case 4:r=jl,o=Bl,jl=n.stateNode.containerInfo,Bl=!0,Ul(e,t,n),jl=r,Bl=o;break;case 0:case 11:case 14:case 15:bl(2,n,t),Dl||bl(4,n,t),Ul(e,t,n);break;case 1:Dl||(Tl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&xl(n,t,r)),Ul(e,t,n);break;case 21:Ul(e,t,n);break;case 22:Dl=(r=Dl)||null!==n.memoizedState,Ul(e,t,n),Dl=r;break;default:Ul(e,t,n)}}function Vl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Wp(e)}catch(e){Su(t,t.return,e)}}}function Hl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Wp(e)}catch(e){Su(t,t.return,e)}}function $l(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Pl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Pl),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Iu.bind(null,e,t);t.then(r,r)}})}function Gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(_d(l.type)){jl=l.stateNode,Bl=!1;break e}break;case 5:jl=l.stateNode,Bl=!1;break e;case 3:case 4:jl=l.stateNode.containerInfo,Bl=!0;break e}l=l.return}if(null===jl)throw Error(i(160));zl(a,s,o),jl=null,Bl=!1,null!==(a=o.alternate)&&(a.return=null),o.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)ql(t,e),t=t.sibling}var Wl=null;function ql(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gl(t,e),Yl(e),4&r&&(bl(3,e,e.return),vl(3,e),bl(5,e,e.return));break;case 1:Gl(t,e),Yl(e),512&r&&(Dl||null===n||Tl(n,n.return)),64&r&&Ol&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var o=Wl;if(Gl(t,e),Yl(e),512&r&&(Dl||null===n||Tl(n,n.return)),4&r){var a=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(a=o.getElementsByTagName("title")[0])||a[Ke]||a[He]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=o.createElement(r),o.head.insertBefore(a,o.querySelector("head > title"))),hd(a,r,n),a[He]=e,nt(a),r=a;break e;case"link":var s=op("link","href",o).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(a=o.createElement(r),r,n),o.head.appendChild(a);break;case"meta":if(s=op("meta","content",o).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(a=o.createElement(r),r,n),o.head.appendChild(a);break;default:throw Error(i(468,r))}a[He]=e,nt(a),r=a}e.stateNode=r}else ip(o,e.type,e.stateNode);else e.stateNode=Zd(o,r,e.memoizedProps);else a!==r?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===r?ip(o,e.type,e.stateNode):Zd(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Sl(e,e.memoizedProps,n.memoizedProps)}break;case 27:Gl(t,e),Yl(e),512&r&&(Dl||null===n||Tl(n,n.return)),null!==n&&4&r&&Sl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Gl(t,e),Yl(e),512&r&&(Dl||null===n||Tl(n,n.return)),32&e.flags){o=e.stateNode;try{At(o,"")}catch(t){Su(e,e.return,t)}}4&r&&null!=e.stateNode&&Sl(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(Rl=!0);break;case 6:if(Gl(t,e),Yl(e),4&r){if(null===e.stateNode)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Su(e,e.return,t)}}break;case 3:if(rp=null,o=Wl,Wl=Hd(t.containerInfo),Gl(t,e),Wl=o,Yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wp(t.containerInfo)}catch(t){Su(e,e.return,t)}Rl&&(Rl=!1,Ql(e));break;case 4:r=Wl,Wl=Hd(e.stateNode.containerInfo),Gl(t,e),Yl(e),Wl=r;break;case 12:default:Gl(t,e),Yl(e);break;case 31:case 19:Gl(t,e),Yl(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,$l(e,r)));break;case 13:Gl(t,e),Yl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Pc=ue()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,$l(e,r)));break;case 22:o=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Ol,d=Dl;if(Ol=u||o,Dl=d||c,Gl(t,e),Dl=d,Ol=u,Yl(e),8192&r)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||c||Ol||Dl||Xl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,o)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var p=c.memoizedProps.style,f=null!=p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==f||"boolean"==typeof f?"":(""+f).trim()}}catch(e){Su(c,c.return,e)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=o?"":c.memoizedProps}catch(e){Su(c,c.return,e)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;o?Id(h,!0):Id(c.stateNode,!1)}catch(e){Su(c,c.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,$l(e,n))));case 30:case 21:}}function Yl(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Al(r)){n=r;break}r=r.return}if(null==n)throw Error(i(160));switch(n.tag){case 27:var o=n.stateNode;Cl(e,Nl(e),o);break;case 5:var a=n.stateNode;32&n.flags&&(At(a,""),n.flags&=-33),Cl(e,Nl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;_l(e,Nl(e),s);break;default:throw Error(i(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ql(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ql(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Kl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ml(e,t.alternate,t),t=t.sibling}function Xl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bl(4,t,t.return),Xl(t);break;case 1:Tl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&xl(t,t.return,n),Xl(t);break;case 27:Ud(t.stateNode);case 26:case 5:Tl(t,t.return),Xl(t);break;case 22:null===t.memoizedState&&Xl(t);break;default:Xl(t)}e=e.sibling}}function Jl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Jl(o,i,n),vl(4,i);break;case 1:if(Jl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){Su(r,r.return,e)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)_i(l[o],s)}catch(e){Su(r,r.return,e)}}n&&64&a&&El(i),wl(i,i.return);break;case 27:Il(i);case 26:case 5:Jl(o,i,n),n&&null===r&&4&a&&kl(i),wl(i,i.return);break;case 12:Jl(o,i,n);break;case 31:Jl(o,i,n),n&&4&a&&Vl(o,i);break;case 13:Jl(o,i,n),n&&4&a&&Hl(o,i);break;case 22:null===i.memoizedState&&Jl(o,i,n),wl(i,i.return);break;case 30:break;default:Jl(o,i,n)}t=t.sibling}}function Zl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ho(n))}function ec(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ho(e))}function tc(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)nc(e,t,n,r),t=t.sibling}function nc(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tc(e,t,n,r),2048&o&&vl(9,t);break;case 1:case 31:case 13:default:tc(e,t,n,r);break;case 3:tc(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ho(e)));break;case 12:if(2048&o){tc(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){Su(t,t.return,e)}}else tc(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?tc(e,t,n,r):oc(e,t):2&i._visibility?tc(e,t,n,r):(i._visibility|=2,rc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Zl(a,t);break;case 24:tc(e,t,n,r),2048&o&&ec(t.alternate,t)}}function rc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:rc(i,a,s,l,o),vl(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?rc(i,a,s,l,o):oc(i,a):(u._visibility|=2,rc(i,a,s,l,o)),o&&2048&c&&Zl(a.alternate,a);break;case 24:rc(i,a,s,l,o),o&&2048&c&&ec(a.alternate,a);break;default:rc(i,a,s,l,o)}t=t.sibling}}function oc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:oc(n,r),2048&o&&Zl(r.alternate,r);break;case 24:oc(n,r),2048&o&&ec(r.alternate,r);break;default:oc(n,r)}t=t.sibling}}var ic=8192;function ac(e,t,n){if(e.subtreeFlags&ic)for(e=e.child;null!==e;)sc(e,t,n),e=e.sibling}function sc(e,t,n){switch(e.tag){case 26:ac(e,t,n),e.flags&ic&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Yd(r.href),i=t.querySelector(Qd(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=lp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void nt(i);i=t.ownerDocument||t,r=Kd(r),(o=zd.get(o))&&tp(r,o),nt(i=i.createElement("link"));var a=i;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),hd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=lp.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Wl,e.memoizedState,e.memoizedProps);break;case 5:default:ac(e,t,n);break;case 3:case 4:var r=Wl;Wl=Hd(e.stateNode.containerInfo),ac(e,t,n),Wl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ic,ic=16777216,ac(e,t,n),ic=r):ac(e,t,n))}}function lc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ll=r,pc(r,e)}lc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)uc(e),e=e.sibling}function uc(e){switch(e.tag){case 0:case 11:case 15:cc(e),2048&e.flags&&bl(9,e,e.return);break;case 3:case 12:default:cc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,dc(e)):cc(e)}}function dc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ll=r,pc(r,e)}lc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:bl(8,t,t.return),dc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function pc(e,t){for(;null!==Ll;){var n=Ll;switch(n.tag){case 0:case 11:case 15:bl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ho(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Ll=r;else e:for(n=e;null!==Ll;){var o=(r=Ll).sibling,i=r.return;if(Fl(r),r===n){Ll=null;break e}if(null!==o){o.return=i,Ll=o;break e}Ll=i}}}var fc={getCacheForType:function(e){var t=Lo(zo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Lo(zo).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,mc=0,gc=null,yc=null,vc=0,bc=0,Ec=null,xc=!1,wc=!1,Tc=!1,kc=0,Sc=0,Ac=0,Nc=0,_c=0,Cc=0,Ic=0,Oc=null,Dc=null,Rc=!1,Pc=0,Lc=0,Mc=1/0,Fc=null,jc=null,Bc=0,Uc=null,zc=null,Vc=0,Hc=0,$c=null,Gc=null,Wc=0,qc=null;function Yc(){return 2&mc&&0!==vc?vc&-vc:null!==M.T?$u():Ue()}function Qc(){if(0===Cc)if(536870912&vc&&!ho)Cc=536870912;else{var e=Ae;!(3932160&(Ae<<=1))&&(Ae=262144),Cc=e}return null!==(e=Li.current)&&(e.flags|=32),Cc}function Kc(e,t,n){(e!==gc||2!==bc&&9!==bc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,vc,Cc,!1)),Pe(e,n),2&mc&&e===gc||(e===gc&&(!(2&mc)&&(Nc|=n),4===Sc&&eu(e,vc,Cc,!1)),Fu(e))}function Xc(e,t,n){if(6&mc)throw Error(i(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ie(e,t),o=r?function(e,t){var n=mc;mc|=2;var r=au(),o=su();gc!==e||vc!==t?(Fc=null,Mc=ue()+500,ru(e,t)):wc=Ie(e,t);e:for(;;)try{if(0!==bc&&null!==yc){t=yc;var a=Ec;t:switch(bc){case 1:bc=0,Ec=null,hu(e,t,a,1);break;case 2:case 9:if(oi(a)){bc=0,Ec=null,fu(t);break}t=function(){2!==bc&&9!==bc||gc!==e||(bc=7),Fu(e)},a.then(t,t);break e;case 3:bc=7;break e;case 4:bc=5;break e;case 7:oi(a)?(bc=0,Ec=null,fu(t)):(bc=0,Ec=null,hu(e,t,a,7));break;case 5:var s=null;switch(yc.tag){case 26:s=yc.memoizedState;case 5:case 27:var l=yc;if(s?ap(s):l.stateNode.complete){bc=0,Ec=null;var c=l.sibling;if(null!==c)yc=c;else{var u=l.return;null!==u?(yc=u,mu(u)):yc=null}break t}}bc=0,Ec=null,hu(e,t,a,5);break;case 6:bc=0,Ec=null,hu(e,t,a,6);break;case 8:nu(),Sc=6;break e;default:throw Error(i(462))}}du();break}catch(t){ou(e,t)}return No=Ao=null,M.H=r,M.A=o,mc=n,null!==yc?0:(gc=null,vc=0,Dr(),Sc)}(e,t):cu(e,t,!0),a=r;;){if(0===o){wc&&!r&&eu(e,t,0,!1);break}if(n=e.current.alternate,!a||Zc(n)){if(2===o){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=Oc;var c=l.current.memoizedState.isDehydrated;if(c&&(ru(l,s).flags|=256),2!==(s=cu(l,s,!1))){if(Tc&&!c){l.errorRecoveryDisabledLanes|=a,Nc|=a,o=4;break e}a=Dc,Dc=o,null!==a&&(null===Dc?Dc=a:Dc.push.apply(Dc,a))}o=s}if(a=!1,2!==o)continue}}if(1===o){ru(e,0),eu(e,t,0,!0);break}e:{switch(r=e,a=o){case 0:case 1:throw Error(i(345));case 4:if((4194048&t)!==t)break;case 6:eu(r,t,Cc,!xc);break e;case 2:Dc=null;break;case 3:case 5:break;default:throw Error(i(329))}if((62914560&t)===t&&10<(o=Pc+300-ue())){if(eu(r,t,Cc,!xc),0!==Ce(r,0,!0))break e;Vc=t,r.timeoutHandle=Td(Jc.bind(null,r,n,Dc,Fc,Rc,t,Cc,Nc,Ic,xc,a,"Throttled",-0,0),o)}else Jc(r,n,Dc,Fc,Rc,t,Cc,Nc,Ic,xc,a,null,-0,0)}break}o=cu(e,t,!1),a=!1}Fu(e)}function Jc(e,t,n,r,o,i,a,s,l,c,u,d,p,f){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){sc(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pt});var h=(62914560&i)===i?Pc-ue():(4194048&i)===i?Lc-ue():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&up(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&up(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===sp&&(sp=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&md(a)){for(a=0,s=o.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&md(d)&&(a+=u*((l=l.responseEnd)<s?1:(s-c)/(l-c)))}if(--r,t+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&up(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return Vc=i,e.cancelPendingCommit=h(yu.bind(null,e,t,i,n,r,o,a,s,l,u,d,null,p,f)),void eu(e,i,a,!c)}yu(e,t,i,n,r,o,a,s,l)}function Zc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!er(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eu(e,t,n,r){t&=~_c,t&=~Nc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-we(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Le(e,n,t)}function tu(){return!!(6&mc)||(ju(0,!1),!1)}function nu(){if(null!==yc){if(0===bc)var e=yc.return;else No=Ao=null,ca(e=yc),ui=null,di=0,e=yc;for(;null!==e;)yl(e.alternate,e),e=e.return;yc=null}}function ru(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,kd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Vc=0,nu(),gc=e,yc=n=Vr(e.current,null),vc=t,bc=0,Ec=null,xc=!1,wc=Ie(e,t),Tc=!1,Ic=Cc=_c=Nc=Ac=Sc=0,Dc=Oc=null,Rc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-we(r),i=1<<o;t|=e[o],r&=~i}return kc=t,Dr(),n}function ou(e,t){Gi=null,M.H=ys,t===ei||t===ni?(t=li(),bc=3):t===ti?(t=li(),bc=4):bc=t===Ps?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,Ec=t,null===yc&&(Sc=1,Cs(e,Kr(t,e.current)))}function iu(){var e=Li.current;return null===e||((4194048&vc)===vc?null===Mi:!!((62914560&vc)===vc||536870912&vc)&&e===Mi)}function au(){var e=M.H;return M.H=ys,null===e?ys:e}function su(){var e=M.A;return M.A=fc,e}function lu(){Sc=4,xc||(4194048&vc)!==vc&&null!==Li.current||(wc=!0),!(134217727&Ac)&&!(134217727&Nc)||null===gc||eu(gc,vc,Cc,!1)}function cu(e,t,n){var r=mc;mc|=2;var o=au(),i=su();gc===e&&vc===t||(Fc=null,ru(e,t)),t=!1;var a=Sc;e:for(;;)try{if(0!==bc&&null!==yc){var s=yc,l=Ec;switch(bc){case 8:nu(),a=6;break e;case 3:case 2:case 9:case 6:null===Li.current&&(t=!0);var c=bc;if(bc=0,Ec=null,hu(e,s,l,c),n&&wc){a=0;break e}break;default:c=bc,bc=0,Ec=null,hu(e,s,l,c)}}uu(),a=Sc;break}catch(t){ou(e,t)}return t&&e.shellSuspendCounter++,No=Ao=null,mc=r,M.H=o,M.A=i,null===yc&&(gc=null,vc=0,Dr()),a}function uu(){for(;null!==yc;)pu(yc)}function du(){for(;null!==yc&&!le();)pu(yc)}function pu(e){var t=ll(e.alternate,e,kc);e.memoizedProps=e.pendingProps,null===t?mu(e):yc=t}function fu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=qs(n,t,t.pendingProps,t.type,void 0,vc);break;case 11:t=qs(n,t,t.pendingProps,t.type.render,t.ref,vc);break;case 5:ca(t);default:yl(n,t),t=ll(n,t=yc=Hr(t,kc),kc)}e.memoizedProps=e.pendingProps,null===t?mu(e):yc=t}function hu(e,t,n,r){No=Ao=null,ca(t),ui=null,di=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Do(t,n,o,!0),null!==(n=Li.current)){switch(n.tag){case 31:case 13:return null===Mi?lu():null===n.alternate&&0===Sc&&(Sc=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===ri?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Au(e,r,o)),!1;case 22:return n.flags|=65536,r===ri?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Au(e,r,o)),!1}throw Error(i(435,n.tag))}return Au(e,r,o),lu(),!1}if(ho)return null!==(t=Li.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==yo&&ko(Kr(e=Error(i(422),{cause:r}),n))):(r!==yo&&ko(Kr(t=Error(i(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=Kr(r,n),ki(e,o=Os(e.stateNode,r,o)),4!==Sc&&(Sc=2)),!1;var a=Error(i(520),{cause:r});if(a=Kr(a,n),null===Oc?Oc=[a]:Oc.push(a),4!==Sc&&(Sc=2),null===t)return!0;r=Kr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,ki(n,e=Os(n.stateNode,r,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==jc&&jc.has(a))))return n.flags|=65536,o&=-o,n.lanes|=o,Rs(o=Ds(o),e,n,r),ki(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,vc))return Sc=1,Cs(e,Kr(n,e.current)),void(yc=null)}catch(t){if(null!==o)throw yc=o,t;return Sc=1,Cs(e,Kr(n,e.current)),void(yc=null)}32768&t.flags?(ho||1===r?e=!0:wc||536870912&vc?e=!1:(xc=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=Li.current)&&13===r.tag&&(r.flags|=16384))),gu(t,e)):mu(t)}function mu(e){var t=e;do{if(32768&t.flags)return void gu(t,xc);e=t.return;var n=ml(t.alternate,t,kc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===Sc&&(Sc=5)}function gu(e,t){do{var n=gl(e.alternate,e);if(null!==n)return n.flags&=32767,void(yc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yc=e);yc=e=n}while(null!==e);Sc=6,yc=null}function yu(e,t,n,r,o,a,s,l,c){e.cancelPendingCommit=null;do{wu()}while(0!==Bc);if(6&mc)throw Error(i(327));if(null!==t){if(t===e.current)throw Error(i(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-we(n),d=1<<u;s[u]=0,l[u]=-1;var p=c[u];if(null!==p)for(c[u]=null,u=0;u<p.length;u++){var f=p[u];null!==f&&(f.lane&=-536870913)}n&=~d}0!==r&&Le(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Or,s,l,c),e===gc&&(yc=gc=null,vc=0),zc=t,Uc=e,Vc=n,Hc=a,$c=o,Gc=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(he,function(){return Tu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=M.T,M.T=null,o=F.p,F.p=2,s=mc,mc|=4;try{!function(e,t){if(e=e.containerInfo,gd=xp,ar(e=ir(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==a||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===o&&(l=s),f===a&&++d===r&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},xp=!1,Ll=t;null!==Ll;)if(e=(t=Ll).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ll=e;else for(;null!==Ll;){switch(a=(t=Ll).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(o=e[n]).ref.impl=o.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,o=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var m=Ss(n.type,o);e=r.getSnapshotBeforeUpdate(m,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Su(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Od(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(i(163))}if(null!==(e=t.sibling)){e.return=t.return,Ll=e;break}Ll=t.return}}(e,t)}finally{mc=s,F.p=o,M.T=r}}Bc=1,vu(),bu(),Eu()}}function vu(){if(1===Bc){Bc=0;var e=Uc,t=zc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=M.T,M.T=null;var r=F.p;F.p=2;var o=mc;mc|=4;try{ql(t,e);var i=yd,a=ir(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&or(s.ownerDocument.documentElement,s)){if(null!==l&&ar(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),h=s.textContent.length,m=Math.min(l.start,h),g=void 0===l.end?m:Math.min(l.end,h);!f.extend&&m>g&&(a=g,g=m,m=a);var y=rr(s,m),v=rr(s,g);if(y&&v&&(1!==f.rangeCount||f.anchorNode!==y.node||f.anchorOffset!==y.offset||f.focusNode!==v.node||f.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),f.removeAllRanges(),m>g?(f.addRange(b),f.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),f.addRange(b))}}}}for(d=[],f=s;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var E=d[s];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}xp=!!gd,yd=gd=null}finally{mc=o,F.p=r,M.T=n}}e.current=t,Bc=2}}function bu(){if(2===Bc){Bc=0;var e=Uc,t=zc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=M.T,M.T=null;var r=F.p;F.p=2;var o=mc;mc|=4;try{Ml(e,t.alternate,t)}finally{mc=o,F.p=r,M.T=n}}Bc=3}}function Eu(){if(4===Bc||3===Bc){Bc=0,ce();var e=Uc,t=zc,n=Vc,r=Gc;10256&t.subtreeFlags||10256&t.flags?Bc=5:(Bc=0,zc=Uc=null,xu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(jc=null),Be(n),t=t.stateNode,Ee&&"function"==typeof Ee.onCommitFiberRoot)try{Ee.onCommitFiberRoot(be,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=M.T,o=F.p,F.p=2,M.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{M.T=t,F.p=o}}3&Vc&&wu(),Fu(e),o=e.pendingLanes,261930&n&&42&o?e===qc?Wc++:(Wc=0,qc=e):Wc=0,ju(0,!1)}}function xu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ho(t)))}function wu(){return vu(),bu(),Eu(),Tu()}function Tu(){if(5!==Bc)return!1;var e=Uc,t=Hc;Hc=0;var n=Be(Vc),r=M.T,o=F.p;try{F.p=32>n?32:n,M.T=null,n=$c,$c=null;var a=Uc,s=Vc;if(Bc=0,zc=Uc=null,Vc=0,6&mc)throw Error(i(331));var l=mc;if(mc|=4,uc(a.current),nc(a,a.current,s,n),mc=l,ju(0,!1),Ee&&"function"==typeof Ee.onPostCommitFiberRoot)try{Ee.onPostCommitFiberRoot(be,a)}catch(e){}return!0}finally{F.p=o,M.T=r,xu(e,t)}}function ku(e,t,n){t=Kr(n,t),null!==(e=wi(e,t=Os(e.stateNode,t,2),2))&&(Pe(e,2),Fu(e))}function Su(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===jc||!jc.has(r))){e=Kr(n,e),null!==(r=wi(t,n=Ds(2),2))&&(Rs(n,r,t,e),Pe(r,2),Fu(r));break}}t=t.return}}function Au(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(Tc=!0,o.add(n),e=Nu.bind(null,e,t,n),t.then(e,e))}function Nu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,gc===e&&(vc&n)===n&&(4===Sc||3===Sc&&(62914560&vc)===vc&&300>ue()-Pc?!(2&mc)&&ru(e,0):_c|=n,Ic===vc&&(Ic=0)),Fu(e)}function _u(e,t){0===t&&(t=De()),null!==(e=Lr(e,t))&&(Pe(e,t),Fu(e))}function Cu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_u(e,n)}function Iu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),_u(e,n)}var Ou=null,Du=null,Ru=!1,Pu=!1,Lu=!1,Mu=0;function Fu(e){e!==Du&&null===e.next&&(null===Du?Ou=Du=e:Du=Du.next=e),Pu=!0,Ru||(Ru=!0,Ad(function(){6&mc?ae(pe,Bu):Uu()}))}function ju(e,t){if(!Lu&&Pu){Lu=!0;do{for(var n=!1,r=Ou;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-we(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Hu(r,i))}else i=vc,!(3&(i=Ce(r,r===gc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ie(r,i)||(n=!0,Hu(r,i));r=r.next}}while(n);Lu=!1}}function Bu(){Uu()}function Uu(){Pu=Ru=!1;var e=0;0!==Mu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==wd&&(wd=e,!0);return wd=null,!1}()&&(e=Mu);for(var t=ue(),n=null,r=Ou;null!==r;){var o=r.next,i=zu(r,t);0===i?(r.next=null,null===n?Ou=o:n.next=o,null===o&&(Du=n)):(n=r,(0!==e||3&i)&&(Pu=!0)),r=o}0!==Bc&&5!==Bc||ju(e,!1),0!==Mu&&(Mu=0)}function zu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-we(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=Oe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=vc,n=Ce(e,e===(t=gc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===bc||9===bc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ie(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),Be(n)){case 2:case 8:n=fe;break;case 32:default:n=he;break;case 268435456:n=ge}return r=Vu.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function Vu(e,t){if(0!==Bc&&5!==Bc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(wu()&&e.callbackNode!==n)return null;var r=vc;return 0===(r=Ce(e,e===gc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Xc(e,r,t),zu(e,ue()),null!=e.callbackNode&&e.callbackNode===n?Vu.bind(null,e):null)}function Hu(e,t){if(wu())return null;Xc(e,t,!0)}function $u(){if(0===Mu){var e=Wo;0===e&&(e=Se,!(261888&(Se<<=1))&&(Se=256)),Mu=e}return Mu}function Gu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Rt(""+e)}function Wu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var qu=0;qu<Ar.length;qu++){var Yu=Ar[qu];Nr(Yu.toLowerCase(),"on"+(Yu[0].toUpperCase()+Yu.slice(1)))}Nr(vr,"onAnimationEnd"),Nr(br,"onAnimationIteration"),Nr(Er,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(xr,"onTransitionRun"),Nr(wr,"onTransitionStart"),Nr(Tr,"onTransitionCancel"),Nr(kr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),it("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),it("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),it("onBeforeInput",["compositionend","keypress","textInput","paste"]),it("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="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(" "),Ku=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qu));function Xu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(e){_r(e)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(e){_r(e)}o.currentTarget=null,i=l}}}}function Ju(e,t){var n=t[We];void 0===n&&(n=t[We]=new Set);var r=e+"__bubble";n.has(r)||(nd(t,e,2,!1),n.add(r))}function Zu(e,t,n){var r=0;t&&(r|=4),nd(n,e,r,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[ed]){e[ed]=!0,rt.forEach(function(t){"selectionchange"!==t&&(Ku.has(t)||Zu(t,!1,e),Zu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ed]||(t[ed]=!0,Zu("selectionchange",!1,t))}}function nd(e,t,n,r){switch(_p(t)){case 2:var o=wp;break;case 8:o=Tp;break;default:o=kp}n=o.bind(null,t,n,e),o=void 0,!$t||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rd(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&a.stateNode.containerInfo===o)return;a=a.return}for(;null!==l;){if(null===(a=Je(l)))return;if(5===(c=a.tag)||6===c||26===c||27===c){r=i=a;continue e}l=l.parentNode}}r=r.return}zt(function(){var r=i,o=Mt(n),a=[];e:{var l=Sr.get(e);if(void 0!==l){var c=on,u=e;switch(e){case"keypress":if(0===Kt(n))break e;case"keydown":case"keyup":c=En;break;case"focusin":u="focus",c=dn;break;case"focusout":u="blur",c=dn;break;case"beforeblur":case"afterblur":c=dn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=un;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=wn;break;case vr:case br:case Er:c=pn;break;case kr:c=Tn;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=kn;break;case"copy":case"cut":case"paste":c=fn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=xn;break;case"toggle":case"beforetoggle":c=Sn}var d=!!(4&t),p=!d&&("scroll"===e||"scrollend"===e),f=d?null!==l?l+"Capture":null:l;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===f||null!=(g=Vt(m,f))&&d.push(od(m,g,h)),p)break;m=m.return}0<d.length&&(l=new c(l,u,null,n,o),a.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Lt||!(u=n.relatedTarget||n.fromElement)||!Je(u)&&!u[Ge])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Je(u):null)&&(p=s(u),d=u.tag,u!==p||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=cn,g="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,g="onPointerLeave",f="onPointerEnter",m="pointer"),p=null==c?l:et(c),h=null==u?l:et(u),(l=new d(g,m+"leave",c,n,o)).target=p,l.relatedTarget=h,g=null,Je(o)===r&&((d=new d(f,m+"enter",u,n,o)).target=h,d.relatedTarget=p,g=d),p=g,c&&u)e:{for(d=ad,m=u,h=0,g=f=c;g;g=d(g))h++;g=0;for(var y=m;y;y=d(y))g++;for(;0<h-g;)f=d(f),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(f===m||null!==m&&f===m.alternate){d=f;break e}f=d(f),m=d(m)}d=null}else d=null;null!==c&&sd(a,l,c,d,!1),null!==u&&null!==p&&sd(a,p,u,d,!0)}if("select"===(c=(l=r?et(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var v=Hn;else if(Fn(l))if($n)v=Zn;else{v=Xn;var b=Kn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&It(r.elementType)&&(v=Hn):v=Jn;switch(v&&(v=v(e,r))?jn(a,v,n,o):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&wt(l,"number",l.value)),b=r?et(r):window,e){case"focusin":(Fn(b)||"true"===b.contentEditable)&&(lr=b,cr=r,ur=null);break;case"focusout":ur=cr=lr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,pr(a,n,o);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":pr(a,n,o)}var E;if(Nn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Ln?Rn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(In&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==x?"onCompositionEnd"===x&&Ln&&(E=Qt()):(qt="value"in(Wt=o)?Wt.value:Wt.textContent,Ln=!0)),0<(b=id(r,x)).length&&(x=new hn(x,e,null,n,o),a.push({event:x,listeners:b}),E?x.data=E:null!==(E=Pn(n))&&(x.data=E))),(E=Cn?function(e,t){switch(e){case"compositionend":return Pn(t);case"keypress":return 32!==t.which?null:(Dn=!0,On);case"textInput":return(e=t.data)===On&&Dn?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Nn&&Rn(e,t)?(e=Qt(),Yt=qt=Wt=null,Ln=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(x=id(r,"onBeforeInput")).length&&(b=new hn("onBeforeInput","beforeinput",null,n,o),a.push({event:b,listeners:x}),b.data=E)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Gu((o[$e]||null).action),a=r.submitter;a&&null!==(t=(t=a[$e]||null)?Gu(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new on("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Mu){var e=a?Wu(o,a):new FormData(o);rs(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?Wu(o,a):new FormData(o),rs(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(a,e,r,n,o)}Xu(a,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function id(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Vt(e,n))&&r.unshift(od(e,o,i)),null!=(o=Vt(e,t))&&r.push(od(e,o,i))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sd(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,o?null!=(c=Vt(n,i))&&a.unshift(od(n,c,l)):o||null!=(c=Vt(n,i))&&a.push(od(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ld=/\r\n?/g,cd=/\u0000|\uFFFD/g;function ud(e){return("string"==typeof e?e:""+e).replace(ld,"\n").replace(cd,"")}function dd(e,t){return t=ud(t),ud(e)===t}function pd(e,t,n,r,o,a){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||At(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&At(e,""+r);break;case"className":dt(e,"class",r);break;case"tabIndex":dt(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":dt(e,n,r);break;case"style":Ct(e,r,a);break;case"data":if("object"!==t){dt(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Rt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===n?("input"!==t&&pd(e,t,"name",o.name,o,null),pd(e,t,"formEncType",o.formEncType,o,null),pd(e,t,"formMethod",o.formMethod,o,null),pd(e,t,"formTarget",o.formTarget,o,null)):(pd(e,t,"encType",o.encType,o,null),pd(e,t,"method",o.method,o,null),pd(e,t,"target",o.target,o,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Rt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Pt);break;case"onScroll":null!=r&&Ju("scroll",e);break;case"onScrollEnd":null!=r&&Ju("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Rt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Ju("beforetoggle",e),Ju("toggle",e),ut(e,"popover",r);break;case"xlinkActuate":pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":pt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":pt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":pt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":pt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":ut(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&ut(e,n=Ot.get(n)||n,r)}}function fd(e,t,n,r,o,a){switch(n){case"style":Ct(e,r,a);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(i(60));e.innerHTML=n}}break;case"children":"string"==typeof r?At(e,r):("number"==typeof r||"bigint"==typeof r)&&At(e,""+r);break;case"onScroll":null!=r&&Ju("scroll",e);break;case"onScrollEnd":null!=r&&Ju("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Pt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ot.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(a=null!=(a=e[$e]||null)?a[n]:null)&&e.removeEventListener(t,a,o),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):ut(e,n,r):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ju("error",e),Ju("load",e);var r,o=!1,a=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":o=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:pd(e,t,r,s,n,null)}}return a&&pd(e,t,"srcSet",n.srcSet,n,null),void(o&&pd(e,t,"src",n.src,n,null));case"input":Ju("invalid",e);var l=r=s=a=null,c=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":a=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(i(137,t));break;default:pd(e,t,o,d,n,null)}}return void xt(e,r,l,c,u,s,a,!1);case"select":for(a in Ju("invalid",e),o=s=r=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:pd(e,t,a,l,n,null)}return t=r,n=s,e.multiple=!!o,void(null!=t?Tt(e,!!o,t,!1):null!=n&&Tt(e,!!o,n,!0));case"textarea":for(s in Ju("invalid",e),r=a=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":a=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(i(91));break;default:pd(e,t,s,l,n,null)}return void St(e,o,a,r);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(o=n[c]))if("selected"===c)e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o;else pd(e,t,c,o,n,null);return;case"dialog":Ju("beforetoggle",e),Ju("toggle",e),Ju("cancel",e),Ju("close",e);break;case"iframe":case"object":Ju("load",e);break;case"video":case"audio":for(o=0;o<Qu.length;o++)Ju(Qu[o],e);break;case"image":Ju("error",e),Ju("load",e);break;case"details":Ju("toggle",e);break;case"embed":case"source":case"link":Ju("error",e),Ju("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:pd(e,t,u,o,n,null)}return;default:if(It(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(o=n[d])&&fd(e,t,d,o,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(o=n[l])&&pd(e,t,l,o,n,null))}function md(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var gd=null,yd=null;function vd(e){return 9===e.nodeType?e:e.ownerDocument}function bd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ed(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function xd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wd=null;var Td="function"==typeof setTimeout?setTimeout:void 0,kd="function"==typeof clearTimeout?clearTimeout:void 0,Sd="function"==typeof Promise?Promise:void 0,Ad="function"==typeof queueMicrotask?queueMicrotask:void 0!==Sd?function(e){return Sd.resolve(null).then(e).catch(Nd)}:Td;function Nd(e){setTimeout(function(){throw e})}function _d(e){return"head"===e}function Cd(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Wp(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Ud(e.ownerDocument.documentElement);else if("head"===n){Ud(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Ke]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=a}}else"body"===n&&Ud(e.ownerDocument.body);n=o}while(n);Wp(t)}function Id(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Od(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Od(n),Xe(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Dd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}function Rd(e){return"$?"===e.data||"$~"===e.data}function Pd(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ld(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Md=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ld(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function jd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Bd(e,t,n){switch(t=vd(n),e){case"html":if(!(e=t.documentElement))throw Error(i(452));return e;case"head":if(!(e=t.head))throw Error(i(453));return e;case"body":if(!(e=t.body))throw Error(i(454));return e;default:throw Error(i(451))}}function Ud(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xe(e)}var zd=new Map,Vd=new Set;function Hd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var $d=F.d;F.d={f:function(){var e=$d.f(),t=tu();return e||t},r:function(e){var t=Ze(e);null!==t&&5===t.tag&&"form"===t.type?is(t):$d.r(e)},D:function(e){$d.D(e),Wd("dns-prefetch",e,null)},C:function(e,t){$d.C(e,t),Wd("preconnect",e,t)},L:function(e,t,n){$d.L(e,t,n);var r=Gd;if(r&&e&&t){var o='link[rel="preload"][as="'+bt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+bt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+bt(n.imageSizes)+'"]')):o+='[href="'+bt(e)+'"]';var i=o;switch(t){case"style":i=Yd(e);break;case"script":i=Xd(e)}zd.has(i)||(e=h({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),zd.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Qd(i))||"script"===t&&r.querySelector(Jd(i))||(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}},m:function(e,t){$d.m(e,t);var n=Gd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+bt(r)+'"][href="'+bt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Xd(e)}if(!zd.has(i)&&(e=h({rel:"modulepreload",href:e},t),zd.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Jd(i)))return}hd(r=n.createElement("link"),"link",e),nt(r),n.head.appendChild(r)}}},X:function(e,t){$d.X(e,t);var n=Gd;if(n&&e){var r=tt(n).hoistableScripts,o=Xd(e),i=r.get(o);i||((i=n.querySelector(Jd(o)))||(e=h({src:e,async:!0},t),(t=zd.get(o))&&np(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){$d.S(e,t,n);var r=Gd;if(r&&e){var o=tt(r).hoistableStyles,i=Yd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Qd(i)))s.loading=5;else{e=h({rel:"stylesheet",href:e,"data-precedence":t},n),(n=zd.get(i))&&tp(e,n);var l=a=r.createElement("link");nt(l),hd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ep(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){$d.M(e,t);var n=Gd;if(n&&e){var r=tt(n).hoistableScripts,o=Xd(e),i=r.get(o);i||((i=n.querySelector(Jd(o)))||(e=h({src:e,async:!0,type:"module"},t),(t=zd.get(o))&&np(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Gd="undefined"==typeof document?null:document;function Wd(e,t,n){var r=Gd;if(r&&"string"==typeof t&&t){var o=bt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Vd.has(o)||(Vd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}}function qd(e,t,n,r){var o,a,s,l,c=(c=Y.current)?Hd(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Yd(n.href),(r=(n=tt(c).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Yd(n.href);var u=tt(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Qd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),zd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},zd.set(e,n),u||(o=c,a=e,s=n,l=d.state,o.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=o.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),hd(a,"link",s),nt(a),o.head.appendChild(a))))),t&&null===r)throw Error(i(528,""));return d}if(t&&null!==r)throw Error(i(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Xd(n),(r=(n=tt(c).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Yd(e){return'href="'+bt(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function Kd(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Xd(e){return'[src="'+bt(e)+'"]'}function Jd(e){return"script[async]"+e}function Zd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+bt(n.href)+'"]');if(r)return t.instance=r,nt(r),r;var o=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return nt(r=(e.ownerDocument||e).createElement("style")),hd(r,"style",o),ep(r,n.precedence,e),t.instance=r;case"stylesheet":o=Yd(n.href);var a=e.querySelector(Qd(o));if(a)return t.state.loading|=4,t.instance=a,nt(a),a;r=Kd(n),(o=zd.get(o))&&tp(r,o),nt(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),hd(a,"link",r),t.state.loading|=4,ep(a,n.precedence,e),t.instance=a;case"script":return a=Xd(n.src),(o=e.querySelector(Jd(a)))?(t.instance=o,nt(o),o):(r=n,(o=zd.get(a))&&np(r=h({},n),o),nt(o=(e=e.ownerDocument||e).createElement("script")),hd(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(i(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,ep(r,n.precedence,e));return t.instance}function ep(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function tp(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function np(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var rp=null;function op(e,t,n){if(null===rp){var r=new Map,o=rp=new Map;o.set(n,r)}else(r=(o=rp).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ke]||i[He]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function ip(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function ap(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var sp=0;function lp(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)up(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var cp=null;function up(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,cp=new Map,t.forEach(dp,e),cp=null,lp.call(e))}function dp(e,t){if(!(4&t.state.loading)){var n=cp.get(e);if(n)var r=n.get(null);else{n=new Map,cp.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=lp.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var pp={$$typeof:T,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function fp(e,t,n,r,o,i,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function hp(e,t,n,r,o,i,a,s,l,c,u,d){return e=new fp(e,t,n,a,l,c,u,d,s),t=1,!0===i&&(t|=24),i=Ur(3,null,null,t),e.current=i,i.stateNode=e,(t=Vo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},bi(i),e}function mp(e){return e?e=jr:jr}function gp(e,t,n,r,o,i){o=mp(o),null===r.context?r.context=o:r.pendingContext=o,(r=xi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=wi(e,r,t))&&(Kc(n,0,t),Ti(n,e,t))}function yp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vp(e,t){yp(e,t),(e=e.alternate)&&yp(e,t)}function bp(e){if(13===e.tag||31===e.tag){var t=Lr(e,67108864);null!==t&&Kc(t,0,67108864),vp(e,67108864)}}function Ep(e){if(13===e.tag||31===e.tag){var t=Yc(),n=Lr(e,t=je(t));null!==n&&Kc(n,0,t),vp(e,t)}}var xp=!0;function wp(e,t,n,r){var o=M.T;M.T=null;var i=F.p;try{F.p=2,kp(e,t,n,r)}finally{F.p=i,M.T=o}}function Tp(e,t,n,r){var o=M.T;M.T=null;var i=F.p;try{F.p=8,kp(e,t,n,r)}finally{F.p=i,M.T=o}}function kp(e,t,n,r){if(xp){var o=Sp(r);if(null===o)rd(e,t,r,Ap,n),Fp(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ip=jp(Ip,e,t,n,r,o),!0;case"dragenter":return Op=jp(Op,e,t,n,r,o),!0;case"mouseover":return Dp=jp(Dp,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rp.set(i,jp(Rp.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pp.set(i,jp(Pp.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Fp(e,r),4&t&&-1<Mp.indexOf(e)){for(;null!==o;){var i=Ze(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=_e(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-we(a);s.entanglements[1]|=l,a&=~l}Fu(i),!(6&mc)&&(Mc=ue()+500,ju(0,!1))}}break;case 31:case 13:null!==(s=Lr(i,2))&&Kc(s,0,2),tu(),vp(i,2)}if(null===(i=Sp(r))&&rd(e,t,r,Ap,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function Sp(e){return Np(e=Mt(e))}var Ap=null;function Np(e){if(Ap=null,null!==(e=Je(e))){var t=s(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(31===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ap=e,null}function _p(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(de()){case pe:return 2;case fe:return 8;case he:case me:return 32;case ge:return 268435456;default:return 32}default:return 32}}var Cp=!1,Ip=null,Op=null,Dp=null,Rp=new Map,Pp=new Map,Lp=[],Mp="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".split(" ");function Fp(e,t){switch(e){case"focusin":case"focusout":Ip=null;break;case"dragenter":case"dragleave":Op=null;break;case"mouseover":case"mouseout":Dp=null;break;case"pointerover":case"pointerout":Rp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pp.delete(t.pointerId)}}function jp(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Ze(t))&&bp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Bp(e){var t=Je(e.target);if(null!==t){var n=s(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void ze(e.priority,function(){Ep(n)})}else if(31===t){if(null!==(t=u(n)))return e.blockedOn=t,void ze(e.priority,function(){Ep(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Up(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sp(e.nativeEvent);if(null!==n)return null!==(t=Ze(n))&&bp(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Lt=r,n.target.dispatchEvent(r),Lt=null,t.shift()}return!0}function zp(e,t,n){Up(e)&&n.delete(t)}function Vp(){Cp=!1,null!==Ip&&Up(Ip)&&(Ip=null),null!==Op&&Up(Op)&&(Op=null),null!==Dp&&Up(Dp)&&(Dp=null),Rp.forEach(zp),Pp.forEach(zp)}function Hp(e,t){e.blockedOn===t&&(e.blockedOn=null,Cp||(Cp=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Vp)))}var $p=null;function Gp(e){$p!==e&&($p=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){$p===e&&($p=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if("function"!=typeof r){if(null===Np(r||n))continue;break}var i=Ze(n);null!==i&&(e.splice(t,3),t-=3,rs(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Wp(e){function t(t){return Hp(t,e)}null!==Ip&&Hp(Ip,e),null!==Op&&Hp(Op,e),null!==Dp&&Hp(Dp,e),Rp.forEach(t),Pp.forEach(t);for(var n=0;n<Lp.length;n++){var r=Lp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Lp.length&&null===(n=Lp[0]).blockedOn;)Bp(n),null===n.blockedOn&&Lp.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[$e]||null;if("function"==typeof i)a||Gp(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[$e]||null)s=a.formAction;else if(null!==Np(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Gp(n)}}}function qp(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Yp(e){this._internalRoot=e}function Qp(e){this._internalRoot=e}Qp.prototype.render=Yp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));gp(t.current,Yc(),e,t,null,null)},Qp.prototype.unmount=Yp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;gp(e.current,2,null,e,null,null),tu(),t[Ge]=null}},Qp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ue();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lp.length&&0!==t&&t<Lp[n].priority;n++);Lp.splice(n,0,e),0===n&&Bp(e)}};var Kp=r.version;if("19.2.1"!==Kp)throw Error(i(527,Kp,"19.2.1"));F.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=s(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return p(o),e;if(a===r)return p(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,c=o.child;c;){if(c===n){l=!0,n=o,r=a;break}if(c===r){l=!0,r=o,n=a;break}c=c.sibling}if(!l){for(c=a.child;c;){if(c===n){l=!0,n=a,r=o;break}if(c===r){l=!0,r=a,n=o;break}c=c.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?f(e):null)?null:e.stateNode};var Xp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jp.isDisabled&&Jp.supportsFiber)try{be=Jp.inject(Xp),Ee=Jp}catch(e){}}t.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r="",o=As,s=Ns,l=_s;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=hp(e,1,!1,null,0,n,r,null,o,s,l,qp),e[Ge]=t.current,td(e),new Yp(t)}}),a=n.cw(function(e,t){var n=d();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},a=Symbol.for("react.portal");var s=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(r(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,i.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&i.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=l(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,a="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?i.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:a}):"script"===n&&i.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:a,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&i.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else i.d.m(e)},t.requestFormReset=function(e){i.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},t.useFormStatus=function(){return s.H.useHostTransitionStatus()},t.version="19.2.1"}),s=n.cw(function(e,t){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=i()}),l=n.cw(function(e,t){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=a()}),c=n.cw(function(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o}),u=n.cw(function(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function b(){}function E(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=E.prototype=new b;x.constructor=E,g(x,v.prototype),x.isPureReactComponent=!0;var w=Array.isArray;function T(){}var k={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function A(e,t,r){var o=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==o?o:null,props:r}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function I(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(s){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0;break;case p:return I((u=e._init)(e._payload),t,o,i,a)}}if(u)return a=a(e),u=""===i?"."+C(e,0):i,w(a)?(o="",null!=u&&(o=u.replace(_,"$&/")+"/"),I(a,t,o,"",function(e){return e})):null!=a&&(N(a)&&(l=a,c=o+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+u,a=A(l.type,c,l.props)),t.push(a)),1;u=0;var d,f=""===i?".":i+":";if(w(e))for(var m=0;m<e.length;m++)u+=I(i=e[m],t,o,s=f+C(i,m),a);else if("function"==typeof(m=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(i=e.next()).done;)u+=I(i=i.value,t,o,s=f+C(i,m++),a);else if("object"===s){if("function"==typeof e.then)return I(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(T,T):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,o,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function O(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",function(e){return t.call(n,e,o++)}),r}function D(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},P={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=f,t.Children=P,t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=E,t.StrictMode=i,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!S.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return A(e.type,o,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return A(e,i,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=N,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),o=k.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(T,R)}catch(e){R(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),k.T=t}},t.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},t.use=function(e){return k.H.use(e)},t.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},t.useCallback=function(e,t){return k.H.useCallback(e,t)},t.useContext=function(e){return k.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return k.H.useEffect(e,t)},t.useEffectEvent=function(e){return k.H.useEffectEvent(e)},t.useId=function(){return k.H.useId()},t.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.H.useMemo(e,t)},t.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},t.useRef=function(e){return k.H.useRef(e)},t.useState=function(e){return k.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return k.H.useTransition()},t.version="19.2.1"}),d=n.cw(function(e,t){e.exports=u()}),p=n.cw(function(e,t){e.exports=c()}),f=n.cw(function(e,t){e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,d())}),h=n.cw(function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,E="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,x(e),!m)if(null!==r(c))m=!0,k||(k=!0,T());else{var t=r(u);null!==t&&D(w,t.startTime-e)}}var T,k=!1,S=-1,A=5,N=-1;function _(){return!!y||!(t.unstable_now()-N<A)}function C(){if(y=!1,k){var e=t.unstable_now();N=e;var n=!0;try{e:{m=!1,g&&(g=!1,b(S),S=-1),h=!0;var i=f;try{t:{for(x(e),p=r(c);null!==p&&!(p.expirationTime>e&&_());){var a=p.callback;if("function"==typeof a){p.callback=null,f=p.priorityLevel;var s=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){p.callback=s,x(e),n=!0;break t}p===r(c)&&o(c),x(e)}else o(c);p=r(c)}if(null!==p)n=!0;else{var l=r(u);null!==l&&D(w,l.startTime-e),n=!1}}break e}finally{p=null,f=i,h=!1}n=void 0}}finally{n?T():k=!1}}}if("function"==typeof E)T=function(){E(C)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,O=I.port2;I.port1.onmessage=C,T=function(){O.postMessage(null)}}else T=function(){v(C,0)};function D(e,n){S=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(b(S),S=-1):g=!0,D(w,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,k||(k=!0,T()))),e},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}),m=n.cw(function(e,t){e.exports=h()}),g=n.cw(function(e,t){const n=Symbol("SemVer ANY");class r{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return s(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(e.value,t).test(this.value):""===e.operator?""===e.value||new u(this.value,t).test(e.semver):(!(t=o(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(s(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(s(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=r;const o=Y(),{safeRe:i,t:a}=Q(),s=E(),l=G(),c=v(),u=y()}),y=n.cw(function(e,t){const n=/\s+/g;class r{constructor(e,t){if(t=i(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&b(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+e,n=o.get(t);if(n)return n;const r=this.options.loose,i=r?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(i,O(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],d),s("comparator trim",e),e=e.replace(c[u.TILDETRIM],p),s("tilde trim",e),e=e.replace(c[u.CARETTRIM],f),s("caret trim",e);let l=e.split(" ").map(e=>x(e,this.options)).join(" ").split(/\s+/).map(e=>I(e,this.options));r&&(l=l.filter(e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),s("range list",l);const g=new Map,v=l.map(e=>new a(e,this.options));for(const e of v){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");const b=[...g.values()];return o.set(t,b),b}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>E(n,t)&&e.set.some(e=>E(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(D(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const o=new(q()),i=Y(),a=g(),s=G(),l=v(),{safeRe:c,t:u,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:f}=Q(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=$(),y=e=>"<0.0.0-0"===e.value,b=e=>""===e.value,E=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every(e=>o.intersects(e,t)),o=r.pop();return n},x=(e,t)=>(e=e.replace(c[u.BUILD],""),s("comp",e,t),e=S(e,t),s("caret",e),e=T(e,t),s("tildes",e),e=N(e,t),s("xrange",e),e=C(e,t),s("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,T=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(" "),k=(e,t)=>{const n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,(t,n,r,o,i)=>{let a;return s("tilde",e,t,n,r,o,i),w(n)?a="":w(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:w(o)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${n}.${r}.${o}-${i} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,s("tilde return",a),a})},S=(e,t)=>e.trim().split(/\s+/).map(e=>A(e,t)).join(" "),A=(e,t)=>{s("caret",e,t);const n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,o,i,a)=>{let l;return s("caret",e,t,n,o,i,a),w(n)?l="":w(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(i)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===n?"0"===o?`>=${n}.${o}.${i}-${a} <${n}.${o}.${+i+1}-0`:`>=${n}.${o}.${i}-${a} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${i}-${a} <${+n+1}.0.0-0`):(s("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${i}${r} <${n}.${o}.${+i+1}-0`:`>=${n}.${o}.${i}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${i} <${+n+1}.0.0-0`),s("caret return",l),l})},N=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>_(e,t)).join(" ")),_=(e,t)=>{e=e.trim();const n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,o,i,a,l)=>{s("xRange",e,n,r,o,i,a,l);const c=w(o),u=c||w(i),d=u||w(a),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),a=0,">"===r?(r=">=",u?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),"<"===r&&(l="-0"),n=`${r+o}.${i}.${a}${l}`):u?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:d&&(n=`>=${o}.${i}.0${l} <${o}.${+i+1}.0-0`),s("xRange return",n),n})},C=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),I=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),O=e=>(t,n,r,o,i,a,s,l,c,u,d,p)=>`${n=w(r)?"":w(o)?`>=${r}.0.0${e?"-0":""}`:w(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=w(c)?"":w(u)?`<${+c+1}.0.0-0`:w(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),D=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(s(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}}),v=n.cw(function(e,t){const n=G(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:o}=$(),{safeRe:i,t:a}=Q(),s=Y(),{compareIdentifiers:l}=W();class c{constructor(e,t){if(t=s(t),e instanceof c){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>r)throw new TypeError(`version is longer than ${r} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const l=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!l)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof c||(e=new c(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return l(r,o)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("build compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return l(r,o)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[a.PRERELEASELOOSE]:i[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c}),b=n.cw(function(e,t){const n=L();e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}}),E=n.cw(function(e,t){const n=A(),r=P(),o=N(),i=_(),a=I(),s=O();e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return n(e,l,c);case"!=":return r(e,l,c);case">":return o(e,l,c);case">=":return i(e,l,c);case"<":return a(e,l,c);case"<=":return s(e,l,c);default:throw new TypeError(`Invalid operator: ${t}`)}}}),x=n.cw(function(e,t){const n=v(),r=L(),{safeRe:o,t:i}=Q();e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let a=null;if((t=t||{}).rtl){const n=t.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];let r;for(;(r=n.exec(e))&&(!a||a.index+a[0].length!==e.length);)a&&r.index+r[0].length===a.index+a[0].length||(a=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}else a=e.match(t.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);if(null===a)return null;const s=a[2],l=a[3]||"0",c=a[4]||"0",u=t.includePrerelease&&a[5]?`-${a[5]}`:"",d=t.includePrerelease&&a[6]?`+${a[6]}`:"";return r(`${s}.${l}.${c}${u}${d}`,t)}}),w=n.cw(function(e,t){const n=v();e.exports=(e,t,r)=>{const o=new n(e,r),i=new n(t,r);return o.compare(i)||o.compareBuild(i)}}),T=n.cw(function(e,t){const n=k();e.exports=(e,t)=>n(e,t,!0)}),k=n.cw(function(e,t){const n=v();e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))}),S=n.cw(function(e,t){const n=L();e.exports=(e,t)=>{const r=n(e,null,!0),o=n(t,null,!0),i=r.compare(o);if(0===i)return null;const a=i>0,s=a?r:o,l=a?o:r,c=!!s.prerelease.length;if(!!l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}const u=c?"pre":"";return r.major!==o.major?u+"major":r.minor!==o.minor?u+"minor":r.patch!==o.patch?u+"patch":"prerelease"}}),A=n.cw(function(e,t){const n=k();e.exports=(e,t,r)=>0===n(e,t,r)}),N=n.cw(function(e,t){const n=k();e.exports=(e,t,r)=>n(e,t,r)>0}),_=n.cw(function(e,t){const n=k();e.exports=(e,t,r)=>n(e,t,r)>=0}),C=n.cw(function(e,t){const n=v();e.exports=(e,t,r,o,i)=>{"string"==typeof r&&(i=o,o=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,o,i).version}catch(e){return null}}}),I=n.cw(function(e,t){const n=k();e.exports=(e,t,r)=>n(e,t,r)<0}),O=n.cw(function(e,t){const n=k();e.exports=(e,t,r)=>n(e,t,r)<=0}),D=n.cw(function(e,t){const n=v();e.exports=(e,t)=>new n(e,t).major}),R=n.cw(function(e,t){const n=v();e.exports=(e,t)=>new n(e,t).minor}),P=n.cw(function(e,t){const n=k();e.exports=(e,t,r)=>0!==n(e,t,r)}),L=n.cw(function(e,t){const n=v();e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}}),M=n.cw(function(e,t){const n=v();e.exports=(e,t)=>new n(e,t).patch}),F=n.cw(function(e,t){const n=L();e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}}),j=n.cw(function(e,t){const n=k();e.exports=(e,t,r)=>n(t,e,r)}),B=n.cw(function(e,t){const n=w();e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))}),U=n.cw(function(e,t){const n=y();e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}}),z=n.cw(function(e,t){const n=w();e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))}),V=n.cw(function(e,t){const n=L();e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}}),H=n.cw(function(e,t){const n=Q(),r=$(),o=(v(),W()),i=(L(),V(),b(),C(),S(),D(),R(),M(),F(),k(),j(),T(),w(),z(),B(),N(),I()),a=(A(),P(),_());O(),E(),x(),g(),y(),U(),ie(),Z(),ee(),te(),ae(),ne(),K(),J(),X(),re(),oe();e.exports={lt:i,RO:a,...void n.re,...void n.src,...void n.t,...void r.SEMVER_SPEC_VERSION,...void r.RELEASE_TYPES,...void o.compareIdentifiers,...void o.rcompareIdentifiers}}),$=n.cw(function(e,t){const n=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),G=()=>n(272),W=n.cw(function(e,t){const n=/^[0-9]+$/,r=(e,t)=>{if("number"==typeof e&&"number"==typeof t)return e===t?0:e<t?-1:1;const r=n.test(e),o=n.test(t);return r&&o&&(e=+e,t=+t),e===t?0:r&&!o?-1:o&&!r?1:e<t?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}}),q=()=>n(794),Y=()=>n(587),Q=n.cw(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=$(),i=G(),a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[p,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=d++;i(e,o,t),u[e]=o,l[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),h("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${p}+`),h("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),h("FULL",`^${l[u.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),h("LOOSE",`^${l[u.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),h("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),h("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),h("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),h("COERCERTL",l[u.COERCE],!0),h("COERCERTLFULL",l[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}),K=n.cw(function(e,t){const n=ne();e.exports=(e,t,r)=>n(e,t,">",r)}),X=n.cw(function(e,t){const n=y();e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))}),J=n.cw(function(e,t){const n=ne();e.exports=(e,t,r)=>n(e,t,"<",r)}),Z=n.cw(function(e,t){const n=v(),r=y();e.exports=(e,t,o)=>{let i=null,a=null,s=null;try{s=new r(t,o)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(i&&-1!==a.compare(e)||(i=e,a=new n(i,o)))}),i}}),ee=n.cw(function(e,t){const n=v(),r=y();e.exports=(e,t,o)=>{let i=null,a=null,s=null;try{s=new r(t,o)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(i&&1!==a.compare(e)||(i=e,a=new n(i,o)))}),i}}),te=n.cw(function(e,t){const n=v(),r=y(),o=N();e.exports=(e,t)=>{e=new r(e,t);let i=new n("0.0.0");if(e.test(i))return i;if(i=new n("0.0.0-0"),e.test(i))return i;i=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let a=null;r.forEach(e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!a||i&&!o(i,a)||(i=a)}return i&&e.test(i)?i:null}}),ne=n.cw(function(e,t){const n=v(),r=g(),{ANY:o}=r,i=y(),a=U(),s=N(),l=I(),c=O(),u=_();e.exports=(e,t,d,p)=>{let f,h,m,g,y;switch(e=new n(e,p),t=new i(t,p),d){case">":f=s,h=c,m=l,g=">",y=">=";break;case"<":f=l,h=u,m=s,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const i=t.set[n];let a=null,s=null;if(i.forEach(e=>{e.semver===o&&(e=new r(">=0.0.0")),a=a||e,s=s||e,f(e.semver,a.semver,p)?a=e:m(e.semver,s.semver,p)&&(s=e)}),a.operator===g||a.operator===y)return!1;if((!s.operator||s.operator===g)&&h(e,s.semver))return!1;if(s.operator===y&&m(e,s.semver))return!1}return!0}}),re=n.cw(function(e,t){const n=U(),r=k();e.exports=(e,t,o)=>{const i=[];let a=null,s=null;const l=e.sort((e,t)=>r(e,t,o));for(const e of l){n(e,t,o)?(s=e,a||(a=e)):(s&&i.push([a,s]),s=null,a=null)}a&&i.push([a,null]);const c=[];for(const[e,t]of i)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return u.length<d.length?u:t}}),oe=n.cw(function(e,t){const n=y(),r=g(),{ANY:o}=r,i=U(),a=k(),s=[new r(">=0.0.0-0")],l=[new r(">=0.0.0")],c=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?s:l}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=l}const r=new Set;let c,p,f,h,m,g,y;for(const t of e)">"===t.operator||">="===t.operator?c=u(c,t,n):"<"===t.operator||"<="===t.operator?p=d(p,t,n):r.add(t.semver);if(r.size>1)return null;if(c&&p){if(f=a(c.semver,p.semver,n),f>0)return null;if(0===f&&(">="!==c.operator||"<="!==p.operator))return null}for(const e of r){if(c&&!i(e,String(c),n))return null;if(p&&!i(e,String(p),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}let v=!(!p||n.includePrerelease||!p.semver.prerelease.length)&&p.semver,b=!(!c||n.includePrerelease||!c.semver.prerelease.length)&&c.semver;v&&1===v.prerelease.length&&"<"===p.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,c)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if(h=u(c,e,n),h===e&&h!==c)return!1}else if(">="===c.operator&&!i(c.semver,String(e),n))return!1;if(p)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(m=d(p,e,n),m===e&&m!==p)return!1}else if("<="===p.operator&&!i(p.semver,String(e),n))return!1;if(!e.operator&&(p||c)&&0!==f)return!1}return!(c&&g&&!p&&0!==f)&&(!(p&&y&&!c&&0!==f)&&(!b&&!v))},u=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=c(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}}),ie=n.cw(function(e,t){const n=y();e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))}),ae=n.cw(function(e,t){const n=y();e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}}),se=n.cw(function(e,t){var n=[];function r(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function o(e,t){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],c=t.base?l[0]+t.base:l[0],u=o[c]||0,d="".concat(c," ").concat(u);o[c]=u+1;var p=r(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)n[p].references++,n[p].updater(f);else{var h=i(f,t);t.byIndex=s,n.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,t){var i=o(e=e||[],t=t||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=r(i[a]);n[s].references--}for(var l=o(e,t),c=0;c<i.length;c++){var u=r(i[c]);0===n[u].references&&(n[u].updater(),n.splice(u,1))}i=l}}}),le=n.cw(function(e,t){var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}}),ce=n.cw(function(e,t){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}),ue=n.cw(function(e,t){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}}),de=n.cw(function(e,t){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}),pe=n.cw(function(e,t){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}),fe=n.cw(function(e,t){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}}),n}}),he=()=>n(426),me=n.cw(function(e,t){var n=d();var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,a=n.useLayoutEffect,s=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return a(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),i(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c}),ge=n.cw(function(e,t){var n=d(),r=ve();var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=n.useRef,s=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=l(function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,a=n)}var i,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,u]);var f=i(e,d[0],d[1]);return s(function(){p.hasValue=!0,p.value=f},[f]),c(f),f}}),ye=n.cw(function(e,t){var n=d();var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=n.useRef,a=n.useEffect,s=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=i(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s(function(){function e(e){if(!a){if(a=!0,o=e,e=c(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return i=t}return i=e}if(t=i,r(o,e))return t;var n=c(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,i=n)}var o,i,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,n,c,u]);var f=o(e,d[0],d[1]);return a(function(){p.hasValue=!0,p.value=f},[f]),l(f),f}}),ve=n.cw(function(e,t){e.exports=me()}),be=n.cw(function(e,t){e.exports=ge()}),Ee=n.cw(function(e,t){e.exports=ye()}),xe={};n.r(xe),n.d(xe,{boolean:()=>lH,booleanish:()=>cH,commaOrSpaceSeparated:()=>hH,commaSeparated:()=>fH,number:()=>dH,overloadedBoolean:()=>uH,spaceSeparated:()=>pH});var we={};n.r(we),n.d(we,{attentionMarkers:()=>YG,contentInitial:()=>VG,disable:()=>QG,document:()=>zG,flow:()=>$G,flowInitial:()=>HG,insideSpan:()=>qG,string:()=>GG,text:()=>WG});var Te={};n.r(Te),n.d(Te,{boolean:()=>Aq,booleanish:()=>Nq,commaOrSpaceSeparated:()=>Dq,commaSeparated:()=>Oq,number:()=>Cq,overloadedBoolean:()=>_q,spaceSeparated:()=>Iq});var ke={};function Se(){return Se.c||(Se.c=n.t(d(),2))}n.r(ke),n.d(ke,{boolean:()=>AY,booleanish:()=>NY,commaOrSpaceSeparated:()=>DY,commaSeparated:()=>OY,number:()=>CY,overloadedBoolean:()=>_Y,spaceSeparated:()=>IY}),p(),d(),l(),s();const Ae={1:{file:"@apollo/client/utilities/internal/checkDocument.js",condition:'doc && doc.kind === "Document"',message:'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'},2:{file:"@apollo/client/utilities/internal/checkDocument.js",message:'Schema type definitions not allowed in queries. Found: "%s"'},3:{file:"@apollo/client/utilities/internal/checkDocument.js",condition:"operations.length <= 1",message:"Ambiguous GraphQL document: contains %s operations"},4:{file:"@apollo/client/utilities/internal/checkDocument.js",condition:"operations.length == 1 && operations[0].operation === expectedType",message:"Running a %s requires a graphql %s, but a %s was used instead."},5:{file:"@apollo/client/utilities/internal/checkDocument.js",message:'`%s` is a forbidden field alias name in the selection set for field `%s` in %s "%s".'},6:{file:"@apollo/client/utilities/internal/getFragmentDefinition.js",condition:'doc.kind === "Document"',message:'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'},7:{file:"@apollo/client/utilities/internal/getFragmentDefinition.js",condition:"doc.definitions.length <= 1",message:"Fragment must have exactly one definition."},8:{file:"@apollo/client/utilities/internal/getFragmentDefinition.js",condition:'fragmentDef.kind === "FragmentDefinition"',message:"Must be a fragment definition."},9:{file:"@apollo/client/utilities/internal/getFragmentFromSelection.js",condition:"fragment",message:"No fragment named %s"},10:{file:"@apollo/client/utilities/internal/getFragmentQueryDocument.js",message:"Found a %s operation%s. No operations are allowed when using a fragment as a query. Only fragments are allowed."},11:{file:"@apollo/client/utilities/internal/getFragmentQueryDocument.js",condition:"fragments.length === 1",message:"Found %s fragments. `fragmentName` must be provided when there is not exactly 1 fragment."},12:{file:"@apollo/client/utilities/internal/getMainDefinition.js",message:"Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."},13:{file:"@apollo/client/utilities/internal/getQueryDefinition.js",condition:'queryDef && queryDef.operation === "query"',message:"Must contain a query definition."},15:{file:"@apollo/client/utilities/internal/shouldInclude.js",condition:"evaledValue !== void 0",message:"Invalid variable referenced in @%s directive."},16:{file:"@apollo/client/utilities/internal/shouldInclude.js",condition:"directiveArguments && directiveArguments.length === 1",message:"Incorrect number of arguments for the @%s directive."},17:{file:"@apollo/client/utilities/internal/shouldInclude.js",condition:'ifArgument.name && ifArgument.name.value === "if"',message:"Invalid argument for the @%s directive."},18:{file:"@apollo/client/utilities/internal/shouldInclude.js",condition:'ifValue &&\n    (ifValue.kind === "Variable" || ifValue.kind === "BooleanValue")',message:"Argument for the @%s directive must be a variable or a boolean value."},19:{file:"@apollo/client/utilities/internal/valueToObjectRepresentation.js",message:'The inline argument "%s" of kind "%s"is not supported. Use variables instead of inline arguments to overcome this limitation.'},20:{file:"@apollo/client/utilities/graphql/DocumentTransform.js",condition:"Array.isArray(cacheKeys)",message:"`getCacheKey` must return an array or undefined"},21:{file:"@apollo/client/testing/core/mocking/mockLink.js",condition:"max > min",message:"realisticDelay: `min` must be less than `max`"},22:{file:"@apollo/client/testing/core/mocking/mockLink.js",condition:"queryWithoutClientOnlyDirectives",message:"query is required"},23:{file:"@apollo/client/testing/core/mocking/mockLink.js",condition:"serverQuery",message:"Cannot mock a client-only query. Mocked responses should contain at least one non-client field."},24:{file:"@apollo/client/testing/core/mocking/mockLink.js",condition:"(mock.maxUsageCount ?? 1) > 0",message:"Mocked response `maxUsageCount` must be greater than 0. Given %s"},25:{file:"@apollo/client/react/ssr/prerenderStatic.js",condition:"renderCount <= maxRerenders",message:"Exceeded maximum rerender count of %d.\nThis either means you have very deep `useQuery` waterfalls in your application\nand need to increase the `maxRerender` option to `prerenderStatic`, or that\nyou have an infinite render loop in your application."},26:{file:"@apollo/client/react/ssr/prerenderStatic.js",condition:"!signal?.aborted",message:"The operation was aborted before it could be attempted."},27:{file:"@apollo/client/react/internal/cache/QueryReference.js",condition:"!queryRef || QUERY_REFERENCE_SYMBOL in queryRef",message:"Expected a QueryRef object, but got something else instead."},28:{file:"@apollo/client/react/hooks/useApolloClient.js",condition:"!!client",message:'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'},29:{file:"@apollo/client/react/hooks/useLazyQuery.js",condition:"resultRef.current",message:"useLazyQuery: '%s' cannot be called before executing the query."},30:{file:"@apollo/client/react/hooks/useLazyQuery.js",condition:"!calledDuringRender()",message:"useLazyQuery: 'execute' should not be called during render. To start a query during render, use the 'useQuery' hook."},31:{file:"@apollo/client/react/hooks/useLoadableQuery.js",condition:"!calledDuringRender()",message:"useLoadableQuery: 'loadQuery' should not be called during render. To start a query during render, use the 'useBackgroundQuery' hook."},32:{file:"@apollo/client/react/hooks/useLoadableQuery.js",condition:"internalQueryRef",message:"The query has not been loaded. Please load the query."},33:{file:"@apollo/client/react/hooks/useSubscription.js",condition:"!optionsRef.current.skip",message:"A subscription that is skipped cannot be restarted."},35:{file:"@apollo/client/react/hooks/internal/validateSuspenseHookOptions.js",condition:"supportedFetchPolicies.includes(fetchPolicy)",message:"The fetch policy `%s` is not supported with suspense."},37:{file:"@apollo/client/react/context/ApolloContext.js",condition:'"createContext" in React',message:'Invoking `getApolloContext` in an environment where `React.createContext` is not available.\nThe Apollo Client functionality you are trying to use is only available in React Client Components.\nPlease make sure to add "use client" at the top of your file.\nFor more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components'},38:{file:"@apollo/client/react/context/ApolloProvider.js",condition:"context.client",message:'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'},39:{file:"@apollo/client/masking/maskDefinition.js",condition:"fragment",message:"Could not find fragment with name '%s'."},41:{file:"@apollo/client/masking/maskFragment.js",condition:"fragments.length === 1",message:"Found %s fragments. `fragmentName` must be provided when there is not exactly 1 fragment."},42:{file:"@apollo/client/masking/maskFragment.js",condition:"!!fragment",message:'Could not find fragment with name "%s".'},43:{file:"@apollo/client/masking/maskOperation.js",condition:"definition",message:"Expected a parsed GraphQL document with a query, mutation, or subscription."},47:{file:"@apollo/client/local-state/LocalState.js",condition:'hasDirectives(["client"], document)',message:"Expected document to contain `@client` fields."},48:{file:"@apollo/client/local-state/LocalState.js",condition:'hasDirectives(["client"], document)',message:"Expected document to contain `@client` fields."},49:{file:"@apollo/client/local-state/LocalState.js",condition:"fragment",message:"No fragment named %s"},55:{file:"@apollo/client/local-state/LocalState.js",message:"Could not resolve __typename on object %o returned from resolver '%s'. '__typename' needs to be returned to properly resolve child fields."},56:{file:"@apollo/client/local-state/LocalState.js",condition:"fragment",message:"No fragment named %s"},57:{file:"@apollo/client/local-state/LocalState.js",condition:"cache.fragmentMatches",message:"The configured cache does not support fragment matching which will lead to incorrect results when executing local resolvers. Please use a cache that implements `fragmetMatches`."},59:{file:"@apollo/client/link/persisted-queries/index.js",condition:'options &&\n    (typeof options.sha256 === "function" ||\n        typeof options.generateHash === "function")',message:'Missing/invalid "sha256" or "generateHash" function. Please configure one using the "createPersistedQueryLink(options)" options parameter.'},60:{file:"@apollo/client/link/persisted-queries/index.js",condition:"forward",message:"PersistedQueryLink cannot be the last link in the chain."},61:{file:"@apollo/client/link/http/checkFetcher.js",condition:'fetcher || typeof fetch !== "undefined"',message:"\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "},62:{file:"@apollo/client/link/http/parseAndCheckHttpResponse.js",condition:'response.body && typeof response.body.getReader === "function"',message:"Unknown type for `response.body`. Please use a `fetch` implementation that is WhatWG-compliant and that uses WhatWG ReadableStreams for `body`."},65:{file:"@apollo/client/link/core/ApolloLink.js",message:"request is not implemented"},66:{file:"@apollo/client/incremental/handlers/graphql17Alpha9.js",condition:"pending",message:"Could not find pending chunk for incremental value. Please file an issue for the Apollo Client team to investigate."},67:{file:"@apollo/client/incremental/handlers/notImplemented.js",condition:'!hasDirectives(["defer", "stream"], request.query)',message:"`@defer` and `@stream` are not supported without specifying an incremental handler. Please pass a handler as the `incrementalHandler` option to the `ApolloClient` constructor."},68:{file:"@apollo/client/core/ApolloClient.js",condition:"options.cache",message:"To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"},69:{file:"@apollo/client/core/ApolloClient.js",condition:"options.link",message:"To initialize Apollo Client, you must specify a 'link' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"},72:{file:"@apollo/client/core/ApolloClient.js",condition:'options.fetchPolicy !== "cache-and-network"',message:"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."},73:{file:"@apollo/client/core/ApolloClient.js",condition:'options.fetchPolicy !== "standby"',message:"The standby fetchPolicy does not work with client.query, because standby does not fetch. Consider using a different fetchPolicy, such as cache-first or network-only."},74:{file:"@apollo/client/core/ApolloClient.js",condition:"options.query",message:"query option is required. You must specify your GraphQL document in the query option."},75:{file:"@apollo/client/core/ApolloClient.js",condition:'options.query.kind === "Document"',message:'You must wrap the query string in a "gql" tag.'},76:{file:"@apollo/client/core/ApolloClient.js",condition:"!options.returnPartialData",message:"returnPartialData option only supported on watchQuery."},77:{file:"@apollo/client/core/ApolloClient.js",condition:"!options.pollInterval",message:"pollInterval option only supported on watchQuery."},78:{file:"@apollo/client/core/ApolloClient.js",condition:"!options.notifyOnNetworkStatusChange",message:"notifyOnNetworkStatusChange option only supported on watchQuery."},79:{file:"@apollo/client/core/ApolloClient.js",condition:"optionsWithDefaults.mutation",message:"The `mutation` option is required. Please provide a GraphQL document in the `mutation` option."},80:{file:"@apollo/client/core/ApolloClient.js",condition:'optionsWithDefaults.fetchPolicy === "network-only" ||\n    optionsWithDefaults.fetchPolicy === "no-cache"',message:"Mutations only support 'network-only' or 'no-cache' fetch policies. The default 'network-only' behavior automatically writes mutation results to the cache. Passing 'no-cache' skips the cache write."},82:{file:"@apollo/client/core/ObservableQuery.js",condition:'fetchPolicy === "standby"',message:"The `variablesUnknown` option can only be used together with a `standby` fetch policy."},84:{file:"@apollo/client/core/ObservableQuery.js",condition:'this.options.fetchPolicy !== "cache-only"',message:"Cannot execute `fetchMore` for 'cache-only' query '%s'. Please use a different fetch policy."},85:{file:"@apollo/client/core/ObservableQuery.js",condition:"updateQuery",message:"You must provide an `updateQuery` function when using `fetchMore` with a `no-cache` fetch policy."},90:{file:"@apollo/client/core/QueryManager.js",message:"QueryManager stopped while query was in flight"},91:{file:"@apollo/client/core/QueryManager.js",condition:"this.localState",message:"Mutation '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."},92:{file:"@apollo/client/core/QueryManager.js",message:"Store reset while query was in flight (not completed in link chain)"},95:{file:"@apollo/client/core/QueryManager.js",condition:"!this.getDocumentInfo(query).hasClientExports || this.localState",message:"Subscription '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."},96:{file:"@apollo/client/core/QueryManager.js",condition:"this.localState",message:"%s '%s' contains `@client` fields but local state has not been configured."},97:{file:"@apollo/client/core/QueryManager.js",condition:"!hasIncrementalDirective",message:"%s '%s' contains `@client` and `@defer` directives. These cannot be used together."},98:{file:"@apollo/client/core/QueryManager.js",condition:"this.localState",message:"Query '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."},100:{file:"@apollo/client/core/QueryManager.js",condition:"this.localState",message:"Query '%s' contains `@client` fields but local state has not been configured."},101:{file:"@apollo/client/core/QueryManager.js",condition:"didEmitValue",message:"The link chain completed without emitting a value. This is likely unintentional and should be updated to emit a value before completing."},105:{file:"@apollo/client/cache/inmemory/entityStore.js",condition:'typeof dataId === "string"',message:"store.merge expects a string ID"},108:{file:"@apollo/client/cache/inmemory/key-extractor.js",condition:"extracted !== void 0",message:"Missing field '%s' while extracting keyFields from %s"},109:{file:"@apollo/client/cache/inmemory/policies.js",condition:"!old || old === which",message:"Cannot change root %s __typename more than once"},112:{file:"@apollo/client/cache/inmemory/policies.js",message:"Cannot automatically merge arrays"},113:{file:"@apollo/client/cache/inmemory/readFromStore.js",message:"No fragment named %s"},114:{file:"@apollo/client/cache/inmemory/readFromStore.js",condition:"!isReference(value)",message:"Missing selection set for object of type %s returned for query field %s"},115:{file:"@apollo/client/cache/inmemory/writeToStore.js",message:"Could not identify object %s"},117:{file:"@apollo/client/cache/inmemory/writeToStore.js",message:"No fragment named %s"}},Ne={81:{file:"@apollo/client/core/ApolloClient.js",message:"In client.refetchQueries, Promise.all promise rejected with error %o"},88:{file:"@apollo/client/core/ObservableQuery.js",message:"Missing cache result fields: %o"}},_e={},Ce={36:{file:"@apollo/client/react/hooks/internal/validateSuspenseHookOptions.js",message:"Using `returnPartialData` with a `no-cache` fetch policy has no effect. To read partial data from the cache, consider using an alternate fetch policy."},40:{file:"@apollo/client/masking/maskDefinition.js",message:"Accessing unmasked field on %s at path '%s'. This field will not be available when masking is enabled. Please read the field from the fragment instead."},44:{file:"@apollo/client/masking/utils.js",message:"@unmask 'mode' argument does not support variables."},45:{file:"@apollo/client/masking/utils.js",message:"@unmask 'mode' argument must be of type string."},46:{file:"@apollo/client/masking/utils.js",message:"@unmask 'mode' argument does not recognize value '%s'."},50:{file:"@apollo/client/local-state/LocalState.js",message:"The '%s' field resolves the value from the cache, for example from a 'read' function, but a 'no-cache' fetch policy was used. The field value has been set to `null`. Either define a local resolver or use a fetch policy that uses the cache to ensure the field is resolved correctly."},51:{file:"@apollo/client/local-state/LocalState.js",message:"Could not find a resolver for the '%s' field nor does the cache resolve the field. The field value has been set to `null`. Either define a resolver for the field or ensure the cache can resolve the value, for example, by adding a 'read' function to a field policy in 'InMemoryCache'."},52:{file:"@apollo/client/local-state/LocalState.js",message:"The '%s' resolver returned `undefined` instead of a value. This is likely a bug in the resolver. If you didn't mean to return a value, return `null` instead."},53:{file:"@apollo/client/local-state/LocalState.js",message:"The '%s' field had no cached value and only forced resolvers were run. The value was set to `null`."},54:{file:"@apollo/client/local-state/LocalState.js",message:"The '%s' field on object %o returned `undefined` instead of a value. The parent resolver did not include the property in the returned value and there was no resolver defined for the field."},58:{file:"@apollo/client/link/ws/index.js",message:"`WebSocketLink` uses the deprecated and unmaintained `subscriptions-transport-ws` library. This link is no longer maintained and will be removed in a future major version of Apollo Client. We recommend switching to `GraphQLWsLink` which uses the `graphql-ws` library to send GraphQL operations through WebSocket connections (https://the-guild.dev/graphql/ws)."},63:{file:"@apollo/client/link/core/ApolloLink.js",message:"[ApolloLink.split]: The test function returned a non-boolean value which could result in subtle bugs (e.g. such as using an `async` function which always returns a truthy value). Got `%o`."},64:{file:"@apollo/client/link/core/ApolloLink.js",message:"The terminating link provided to `ApolloLink.execute` called `forward` instead of handling the request. This results in an observable that immediately completes and does not emit a value. Please provide a terminating link that properly handles the request.\n\nIf you are using a split link, ensure each branch contains a terminating link that handles the request."},70:{file:"@apollo/client/core/ApolloClient.js",message:"`refetchOn` was set on query '%s' but no `RefetchEventManager` is configured on this `ApolloClient` instance. This option has no effect until a RefetchEventManager is connected to this client. Pass a `RefetchEventManager` instance to the `refetchEventManager` option on the `ApolloClient` constructor."},71:{file:"@apollo/client/core/ApolloClient.js",message:"`refetchOn` references the '%s' event on query '%s' but no source is configured for it on the `RefetchEventManager`. This event will never fire. Add a source for the event to the `sources` option or call `setEventSource` on the refetch event manager."},83:{file:"@apollo/client/core/ObservableQuery.js",message:"Called refetch(%o) for query %o, which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"},87:{file:"@apollo/client/core/ObservableQuery.js",message:"Cannot poll on 'cache-only' query '%s' and as such, polling is disabled. Please use a different fetch policy."},89:{file:"@apollo/client/core/QueryInfo.js",message:"The network result for query %s was written to the cache, but reading it back returned a partial result.\n\nA `read` or `merge` function left missing fields after this write. Because the cache result is incomplete, Apollo Client cannot apply it to the network result. The raw network result was returned instead, and doesn't include any transformed values returned from `read` functions.\n\nTo address this problem (which is not a bug in Apollo Client), check the `read` and `merge` functions for the fields in this query. A `read` or `merge` function that leaves missing fields leaves the cache unable to fulfill the query's data requirements.\n\n  missing fields: %o\n  network result: %o\n  cache result: %o\n\nFor more information, please refer to the documentation:\n\n  * Customizing cache field behavior: https://go.apollo.dev/c/cache-field-behavior\n"},93:{file:"@apollo/client/core/QueryManager.js",message:'Unknown query named "%s" requested in refetchQueries options.include array'},94:{file:"@apollo/client/core/QueryManager.js",message:"Unknown anonymous query requested in refetchQueries options.include array"},99:{file:"@apollo/client/core/QueryManager.js",message:'[%s]: Fragments masked by data masking are inaccessible when using fetch policy "no-cache". Please add `@unmask` to each fragment spread to access the data.'},102:{file:"@apollo/client/core/RefetchEventManager.js",message:"Connected an `ApolloClient` instance to a `RefetchEventManager` that was already connected to a different `ApolloClient`. The previous client has been disconnected and will no longer receive refetch events from this manager."},103:{file:"@apollo/client/core/RefetchEventManager.js",message:"Received '%s' event but an `ApolloClient` instance is not connected to the `RefetchEventManager`. No queries will refetch. Pass the manager to the `refetchEventManager` option on the `ApolloClient` constructor."},104:{file:"@apollo/client/core/RefetchEventManager.js",message:"Received '%s' event but no source is configured for it on the `RefetchEventManager`. No queries will refetch. Add the event to the `sources` option or call `setEventSource`."},106:{file:"@apollo/client/cache/inmemory/entityStore.js",message:"cache.modify: You are trying to write a Reference that is not part of the store: %o\nPlease make sure to set the `mergeIntoStore` parameter to `true` when creating a Reference that is not part of the store yet:\n`toReference(object, true)`"},107:{file:"@apollo/client/cache/inmemory/entityStore.js",message:"cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\nPlease convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."},110:{file:"@apollo/client/cache/inmemory/policies.js",message:"Inferring subtype %s of supertype %s"},111:{file:"@apollo/client/cache/inmemory/policies.js",message:"Undefined 'from' passed to readField with arguments %s"},118:{file:"@apollo/client/cache/inmemory/writeToStore.js",message:"Cache data may be lost when replacing the %s field of a %s object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), %sdefine a custom merge function for the %s field, so InMemoryCache can safely merge these objects:\n\n  existing: %o\n  incoming: %o\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"},119:{file:"@apollo/client/cache/core/cache.js",message:"Could not identify object passed to `from` for '%s' fragment, either because the object is non-normalized or the key fields are missing. If you are masking this object, please ensure the key fields are requested by the parent object."}},Ie={14:{file:"@apollo/client/utilities/internal/removeDirectivesFromDocument.js",message:"Could not find operation or fragment"},34:{file:"@apollo/client/react/hooks/useSyncExternalStore.js",message:"The result of getSnapshot should be cached to avoid an infinite loop"},86:{file:"@apollo/client/core/ObservableQuery.js",message:"Unhandled GraphQL subscription error"},116:{file:"@apollo/client/cache/inmemory/writeToStore.js",message:"Missing field '%s' while writing result %o"}};function Oe(e){try{return e()}catch{}}const De=Oe(()=>globalThis)||Oe(()=>window)||Oe(()=>self)||Oe(()=>n.g)||Oe(function(){return Oe.constructor("return this")()}),Re=Symbol.for("ApolloErrorMessageHandler_4.2.12");function Pe(...e){var t;t=Le,De[Re]=t;for(const t of e)Object.assign(Le,t);return Le}const Le=(e,t)=>{if("number"==typeof e){const t=De[Re][e];if(!e||!t?.message)return;e=t.message}return t.reduce((e,t)=>e.replace(/%[sdfo]/,String(t)),String(e))};var Me=function(e,t){return Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Me(e,t)};function Fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var je=function(){return je=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},je.apply(this,arguments)};function Be(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ue(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function ze(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function Ve(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function $e(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Ge(e){return this instanceof Ge?(this.v=e,this):new Ge(e)}function We(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=o[e](t)).value instanceof Ge?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function qe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Ve(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,o,(t=e[n](t)).done,t.value)})}}}Object.create;function Ye(e){return"function"==typeof e}function Qe(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ke=Qe(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}});function Xe(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Je=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=Ve(i),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var l=this.initialTeardown;if(Ye(l))try{l()}catch(e){o=e instanceof Ke?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Ve(c),d=u.next();!d.done;d=u.next()){var p=d.value;try{tt(p)}catch(e){o=null!=o?o:[],e instanceof Ke?o=$e($e([],He(o)),He(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(o)throw new Ke(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)tt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Xe(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Xe(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),Ze=Je.EMPTY;function et(e){return e instanceof Je||e&&"closed"in e&&Ye(e.remove)&&Ye(e.add)&&Ye(e.unsubscribe)}function tt(e){Ye(e)?e():e.unsubscribe()}var nt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},rt={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=rt.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,$e([e,t],He(n))):setTimeout.apply(void 0,$e([e,t],He(n)))},clearTimeout:function(e){var t=rt.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ot(e){rt.setTimeout(function(){var t=nt.onUnhandledError;if(!t)throw e;t(e)})}function it(){}var at=st("C",void 0,void 0);function st(e,t,n){return{kind:e,value:t,error:n}}var lt=null;function ct(e){if(nt.useDeprecatedSynchronousErrorHandling){var t=!lt;if(t&&(lt={errorThrown:!1,error:null}),e(),t){var n=lt,r=n.errorThrown,o=n.error;if(lt=null,r)throw o}}else e()}var ut=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,et(t)&&t.add(n)):n.destination=yt,n}return Fe(t,e),t.create=function(e,t,n){return new ht(e,t,n)},t.prototype.next=function(e){this.isStopped?gt(function(e){return st("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?gt(st("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?gt(at,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Je),dt=Function.prototype.bind;function pt(e,t){return dt.call(e,t)}var ft=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){mt(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){mt(e)}else mt(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){mt(e)}},e}(),ht=function(e){function t(t,n,r){var o,i,a=e.call(this)||this;Ye(t)||!t?o={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&nt.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},o={next:t.next&&pt(t.next,i),error:t.error&&pt(t.error,i),complete:t.complete&&pt(t.complete,i)}):o=t;return a.destination=new ft(o),a}return Fe(t,e),t}(ut);function mt(e){var t;nt.useDeprecatedSynchronousErrorHandling?(t=e,nt.useDeprecatedSynchronousErrorHandling&&lt&&(lt.errorThrown=!0,lt.error=t)):ot(e)}function gt(e,t){var n=nt.onStoppedNotification;n&&rt.setTimeout(function(){return n(e,t)})}var yt={closed:!0,next:it,error:function(e){throw e},complete:it},vt="function"==typeof Symbol&&Symbol.observable||"@@observable";function bt(e){return e}function Et(e){return 0===e.length?bt:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var xt=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,o=this,i=(r=e)&&r instanceof ut||function(e){return e&&Ye(e.next)&&Ye(e.error)&&Ye(e.complete)}(r)&&et(r)?e:new ht(e,t,n);return ct(function(){var e=o,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=wt(t))(function(t,r){var o=new ht({next:function(t){try{e(t)}catch(e){r(e),o.unsubscribe()}},error:r,complete:t});n.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[vt]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Et(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=wt(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function wt(e){var t;return null!==(t=null!=e?e:nt.Promise)&&void 0!==t?t:Promise}var Tt=new xt(function(e){return e.complete()});function kt(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}function St(e,t){if(!Boolean(e))throw new Error(t)}function At(e){return Nt(e,[])}function Nt(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:Nt(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(Nt(e[r],t));1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`);return"["+o.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map(([e,n])=>e+": "+Nt(n,t));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}class _t{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Ct{constructor(e,t,n,r,o,i){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const It={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},Ot=new Set(Object.keys(It));function Dt(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&Ot.has(t)}var Rt,Pt;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Rt||(Rt={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(Pt||(Pt={}));const Lt=Object.freeze({});function Mt(e,t,n=It){const r=new Map;for(const e of Object.values(Pt))r.set(e,jt(t,e));let o,i,a,s=Array.isArray(e),l=[e],c=-1,u=[],d=e;const p=[],f=[];do{c++;const e=c===l.length,y=e&&0!==u.length;if(e){if(i=0===f.length?void 0:p[p.length-1],d=a,a=f.pop(),y)if(s){d=d.slice();let e=0;for(const[t,n]of u){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d={...d};for(const[e,t]of u)d[e]=t}c=o.index,l=o.keys,u=o.edits,s=o.inArray,o=o.prev}else if(a){if(i=s?c:l[c],d=a[i],null==d)continue;p.push(i)}let v;if(!Array.isArray(d)){var h,m;Dt(d)||St(!1,`Invalid AST Node: ${At(d)}.`);const n=e?null===(h=r.get(d.kind))||void 0===h?void 0:h.leave:null===(m=r.get(d.kind))||void 0===m?void 0:m.enter;if(v=null==n?void 0:n.call(t,d,i,a,p,f),v===Lt)break;if(!1===v){if(!e){p.pop();continue}}else if(void 0!==v&&(u.push([i,v]),!e)){if(!Dt(v)){p.pop();continue}d=v}}var g;if(void 0===v&&y&&u.push([i,d]),e)p.pop();else o={inArray:s,index:c,keys:l,edits:u,prev:o},s=Array.isArray(d),l=s?d:null!==(g=n[d.kind])&&void 0!==g?g:[],c=-1,u=[],a&&f.push(a),a=d}while(void 0!==o);return 0!==u.length?u[u.length-1][1]:e}function Ft(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(Pt)){let o=!1;const i=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:s}=jt(e[t],r);o||(o=null!=n||null!=s),i[t]=n,a[t]=s}if(!o)continue;const s={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var o;const s=null===(o=i[a])||void 0===o?void 0:o.apply(e[a],n);if(!1===s)t[a]=r;else if(s===Lt)t[a]=Lt;else if(void 0!==s)return s}},leave(...n){const r=n[0];for(let i=0;i<e.length;i++)if(null===t[i]){var o;const r=null===(o=a[i])||void 0===o?void 0:o.apply(e[i],n);if(r===Lt)t[i]=Lt;else if(void 0!==r&&!1!==r)return r}else t[i]===r&&(t[i]=null)}};n[r]=s}return n}function jt(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}const Bt=new Map;function Ut(e){const t=Bt.get(e)||1;return Bt.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}const zt="Invariant Violation";class Vt extends Error{constructor(e=zt){super(e),this.name=zt,Object.setPrototypeOf(this,Vt.prototype)}}const Ht=["debug","log","warn","error","silent"];let $t=Ht.indexOf("silent");function Gt(e,...t){if(!e)throw qt(...t)}function Wt(e){return function(t,...n){if(Ht.indexOf(e)>=$t){const r=console[e]||console.log;if("number"==typeof t){const e=t;(t=Kt(e))||(t=Xt(e,n),n=[])}r(t,...n)}}}function qt(e,...t){return new Vt(Kt(e,t)||Xt(e,t))}Gt.debug=Wt("debug"),Gt.log=Wt("log"),Gt.warn=Wt("warn"),Gt.error=Wt("error");const Yt=Symbol.for("ApolloErrorMessageHandler_4.2.12");function Qt(e){if("string"==typeof e)return e;try{return function(e,t=0){const n=Ut("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?n:t,t).split(JSON.stringify(n)).join("<undefined>")}(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function Kt(e,t=[]){if(e)return De[Yt]&&De[Yt](e,t.map(Qt))}function Xt(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,Qt(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:"4.2.12",message:e,args:t.map(Qt)}))}`}const Jt=Symbol.for("apollo.cacheSize"),Zt={...De[Jt]},en=()=>Object.create(null),{forEach:tn,slice:nn}=Array.prototype,{hasOwnProperty:rn}=Object.prototype;class on{constructor(e=!0,t=en){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return tn.call(e,e=>t=t.getChildTrie(e)),rn.call(t,"data")?t.data:t.data=this.makeData(nn.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),o=r&&r.get(n);o&&(t=o.removeArray(nn.call(e,1)),o.data||o.weak||o.strong&&o.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let n=t.get(e);return n||t.set(e,n=new on(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}function an(){}const sn=an,ln="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},cn="undefined"!=typeof WeakMap?WeakMap:Map,un="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:an,unregister:an}};class dn{constructor(e=1/0,t=sn){this.max=e,this.dispose=t,this.map=new cn,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new ln(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new un(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function pn(){}class fn{constructor(e=1/0,t=pn){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}const hn=new WeakSet;function mn(e){e.size<=(e.max||-1)||hn.has(e)||(hn.add(e),setTimeout(()=>{e.clean(),hn.delete(e)},100))}const gn=function(e,t){const n=new dn(e,t);return n.set=function(e,t){const n=dn.prototype.set.call(this,e,t);return mn(this),n},n},yn=function(e,t){const n=new fn(e,t);return n.set=function(e,t){const n=fn.prototype.set.call(this,e,t);return mn(this),n},n};function vn(e,{max:t,makeCacheKey:n=e=>e}){const r=new on(!0),o=new gn(t);return(...t)=>{const i=r.lookupArray(n(t)),a=o.get(i);if(a){if(a.error)throw a.error;return a.result}const s=o.set(i,{});try{return s.result=e(...t)}catch(e){throw s.error=e,e}}}const bn=vn((e,t)=>{Gt(e&&"Document"===e.kind,1);const n=e.definitions.filter(e=>"OperationDefinition"===e.kind);t&&Gt(1==n.length&&n[0].operation===t,4,t,t,n[0].operation),Mt(e,{Field(t,r,o,i){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let r=e,o=[];for(const e of i)r=r[e],r.kind===Pt.FIELD&&o.push(r.alias?.value||r.name.value);throw o.splice(-1,1,t.name.value),qt(5,t.alias.value,o.join("."),n[0].operation,kt(e,"(anonymous)"))}}})},{max:Zt.checkDocument||2e3});function En(e){return bn(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}class xn{static empty(){return new xn(()=>Tt)}static from(e){if(0===e.length)return xn.empty();const[t,...n]=e;return t.concat(...n)}static split(e,t,n=new xn((e,t)=>t(e))){const r=new xn((r,o)=>{const i=e(r);return i?t.request(r,o):n.request(r,o)});return Object.assign(r,{left:t,right:n})}static execute(e,t,n){return e.request(function(e,{client:t}){const n={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:kt(e.query),operationType:En(e.query).operation};let r={...e.context};const o=()=>Object.freeze({...r});return Object.defineProperty(n,"setContext",{enumerable:!1,value:e=>{r="function"==typeof e?{...r,...e(o())}:{...r,...e}}}),Object.defineProperty(n,"getContext",{enumerable:!1,value:o}),Object.defineProperty(n,"client",{enumerable:!1,value:t}),n}(t,n),()=>Tt)}static concat(...e){return xn.from(e)}constructor(e){e&&(this.request=e)}split(e,t,n){return this.concat(xn.split(e,t,n))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){const n=new xn((n,r)=>e.request(n,e=>t.request(e,r)));return Object.assign(n,{left:e,right:t})}request(e,t){throw qt(65)}left;right}const{toString:wn,hasOwnProperty:Tn}=Object.prototype,kn=Function.prototype.toString,Sn=new Map;function An(e,t){try{return _n(e,t)}finally{Sn.clear()}}const Nn=An;function _n(e,t){if(e===t)return!0;const n=wn.call(e);if(n!==wn.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Dn(e,t))return!0;const n=Cn(e),r=Cn(t),o=n.length;if(o!==r.length)return!1;for(let e=0;e<o;++e)if(!Tn.call(t,n[e]))return!1;for(let r=0;r<o;++r){const o=n[r];if(!_n(e[o],t[o]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Dn(e,t))return!0;const r=e.entries(),o="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,i]=e.value;if(!t.has(n))return!1;if(o&&!_n(i,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=kn.call(e);return n===kn.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,On)}}return!1}function Cn(e){return Object.keys(e).filter(In,e)}function In(e){return void 0!==this[e]}const On="{ [native code] }";function Dn(e,t){let n=Sn.get(e);if(n){if(n.has(t))return!0}else Sn.set(e,n=new Set);return n.add(t),!1}const Rn=()=>Object.create(null),{forEach:Pn,slice:Ln}=Array.prototype,{hasOwnProperty:Mn}=Object.prototype;class Fn{constructor(e=!0,t=Rn){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return Pn.call(e,e=>t=t.getChildTrie(e)),Mn.call(t,"data")?t.data:t.data=this.makeData(Ln.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=this.weakness&&jn(e[n])?t.weak:t.strong;t=r&&r.get(e[n])}return t&&t.data}getChildTrie(e){const t=this.weakness&&jn(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let n=t.get(e);return n||t.set(e,n=new Fn(this.weakness,this.makeData)),n}}function jn(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}let Bn=null;const Un={};let zn=1;function Vn(e){try{return e()}catch(e){}}const Hn="@wry/context:Slot",$n=Vn(()=>globalThis)||Vn(()=>n.g)||Object.create(null),Gn=$n[Hn]||Array[Hn]||function(e){try{Object.defineProperty($n,Hn,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",zn++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Bn;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Un)break;return e!==Bn&&(Bn.slots[this.id]=t),!0}return Bn&&(Bn.slots[this.id]=Un),!1}getValue(){if(this.hasValue())return Bn.slots[this.id]}withValue(e,t,n,r){const o={__proto__:null,[this.id]:e},i=Bn;Bn={parent:i,slots:o};try{return t.apply(r,n)}finally{Bn=i}}static bind(e){const t=Bn;return function(){const n=Bn;try{return Bn=t,e.apply(this,arguments)}finally{Bn=n}}}static noContext(e,t,n){if(!Bn)return e.apply(n,t);{const r=Bn;try{return Bn=null,e.apply(n,t)}finally{Bn=r}}}}),{bind:Wn,noContext:qn}=Gn;const Yn=new Gn;const{hasOwnProperty:Qn}=Object.prototype,Kn=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function Xn(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const Jn=[];function Zn(e,t){if(!e)throw new Error(t||"assertion failure")}function er(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function tr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function nr(e){return e.slice(0)}class rr{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++rr.count}peek(){if(1===this.value.length&&!ar(this))return or(this),this.value[0]}recompute(e){return Zn(!this.recomputing,"already recomputing"),or(this),ar(this)?function(e,t){fr(e),Yn.withValue(e,ir,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Xn(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,ar(e))return;lr(e)}(e);return tr(e.value)}(this,e):tr(this.value)}setDirty(){this.dirty||(this.dirty=!0,sr(this),Xn(this))}dispose(){this.setDirty(),fr(this),cr(this,(e,t)=>{e.setDirty(),hr(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=Jn.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Kn(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),Jn.push(this.deps),this.deps=null)}}function or(e){const t=Yn.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),ar(e)?ur(t,e):dr(t,e),t}function ir(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=nr(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!er(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function ar(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function sr(e){cr(e,ur)}function lr(e){cr(e,dr)}function cr(e,t){const n=e.parents.size;if(n){const r=Kn(e.parents);for(let o=0;o<n;++o)t(r[o],e)}}function ur(e,t){Zn(e.childValues.has(t)),Zn(ar(t));const n=!ar(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Jn.pop()||new Set;e.dirtyChildren.add(t),n&&sr(e)}function dr(e,t){Zn(e.childValues.has(t)),Zn(!ar(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,nr(t.value)):er(n,t.value)||e.setDirty(),pr(e,t),ar(e)||lr(e)}function pr(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Jn.length<100&&Jn.push(n),e.dirtyChildren=null))}function fr(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{hr(e,n)}),e.forgetDeps(),Zn(null===e.dirtyChildren)}function hr(e,t){t.parents.delete(e),e.childValues.delete(t),pr(e,t)}rr.count=0;const mr={setDirty:!0,dispose:!0,forget:!0};function gr(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=Yn.getValue();if(r){let o=t.get(e);o||t.set(e,o=new Set),r.dependOn(o),"function"==typeof n&&(Xn(o),o.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const o=n&&Qn.call(mr,n)?n:"setDirty";Kn(r).forEach(e=>e[o]()),t.delete(e),Xn(r)}},r}let yr;function vr(...e){return(yr||(yr=new Fn("function"==typeof WeakMap))).lookupArray(e)}const br=new Set;function Er(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=vr,normalizeResult:o,subscribe:i,cache:a=fn}=Object.create(null)){const s="function"==typeof a?new a(t,e=>e.dispose()):a,l=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new rr(e)),a.normalizeResult=o,a.subscribe=i,a.forget=()=>s.delete(t));const l=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),br.add(s),Yn.hasValue()||(br.forEach(e=>e.clean()),br.clear()),l};function c(e){const t=e&&s.get(e);t&&t.setDirty()}function u(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:o,subscribe:i,cache:s}),l.dirtyKey=c,l.dirty=function(){c(r.apply(null,arguments))},l.peekKey=u,l.peek=function(){return u(r.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}function xr(e){return e}class wr{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new wr(xr,{cache:!1})}static split(e,t,n=wr.identity()){return Object.assign(new wr(r=>(e(r)?t:n).transformDocument(r),{cache:!1}),{left:t,right:n})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){const e=new on;this.performWork=Er(wr.prototype.performWork.bind(this),{makeCacheKey:t=>{const n=this.getCacheKey(t);if(n)return Gt(Array.isArray(n),20),e.lookupArray(n)},max:Zt["documentTransform.cache"],cache:dn})}}performWork(e){return bn(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;const t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new wr(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}const Tr={kind:Pt.FIELD,name:{kind:Pt.NAME,value:"__typename"}},kr=Object.assign(function(e){return Mt(e,{SelectionSet:{enter(e,t,n){if(n&&n.kind===Pt.OPERATION_DEFINITION)return;const{selections:r}=e;if(!r)return;if(r.some(e=>e.kind===Pt.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))return;const o=n;return o.kind===Pt.FIELD&&o.directives&&o.directives.some(e=>"export"===e.name.value)?void 0:{...e,selections:[...r,Tr]}}}})},{added:e=>e===Tr});const Sr=Object.assign(function(e){return JSON.stringify(e,Nr)},{reset(){Ar=new yn(Zt.canonicalStringify||1e3)}});let Ar;function Nr(e,t){if(t&&"object"==typeof t){const e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){const n=Object.keys(t);if(n.every(_r))return t;const r=JSON.stringify(n);let o=Ar.get(r);if(!o){n.sort();const e=JSON.stringify(n);o=Ar.get(e)||n,Ar.set(r,o),Ar.set(e,o)}const i=Object.create(e);return o.forEach(e=>{i[e]=t[e]}),i}}return t}function _r(e,t,n){return 0===t||n[t-1]<=e}function Cr(e){return 9===e||32===e}function Ir(e){return e>=48&&e<=57}function Or(e){return e>=97&&e<=122||e>=65&&e<=90}function Dr(e){return Or(e)||95===e}function Rr(e){return Or(e)||Ir(e)||95===e}function Pr(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t<e.length;++t){var i;const a=e[t],s=Lr(a);s!==a.length&&(r=null!==(i=r)&&void 0!==i?i:t,o=t,0!==t&&s<n&&(n=s))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,o+1)}function Lr(e){let t=0;for(;t<e.length&&Cr(e.charCodeAt(t));)++t;return t}Sr.reset();const Mr=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Fr(e){return jr[e.charCodeAt(0)]}const jr=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function Br(e){return Mt(e,Ur)}const Ur={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>zr(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Gr(e.variableDefinitions)?Hr("(\n",zr(e.variableDefinitions,"\n"),"\n)"):Hr("(",zr(e.variableDefinitions,", "),")"),n=Hr("",e.description,"\n")+zr([e.operation,zr([e.name,t]),zr(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:o})=>Hr("",o,"\n")+e+": "+t+Hr(" = ",n)+Hr(" ",zr(r," "))},SelectionSet:{leave:({selections:e})=>Vr(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const i=Hr("",e,": ")+t;let a=i+Hr("(",zr(n,", "),")");return a.length>80&&(a=i+Hr("(\n",$r(zr(n,"\n")),"\n)")),zr([a,zr(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Hr(" ",zr(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>zr(["...",Hr("on ",e),zr(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o,description:i})=>Hr("",i,"\n")+`fragment ${e}${Hr("(",zr(n,", "),")")} `+`on ${t} ${Hr("",zr(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=1===r.length,i=r.length>1&&r.slice(1).every(e=>0===e.length||Cr(e.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),c=s||l,u=!(null!=t&&t.minimize)&&(!o||e.length>70||c||i||a);let d="";const p=o&&Cr(e.charCodeAt(0));return(u&&!p||i)&&(d+="\n"),d+=n,(u||c)&&(d+="\n"),'"""'+d+'"""'}(e):`"${e.replace(Mr,Fr)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+zr(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+zr(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Hr("(",zr(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Hr("",e,"\n")+zr(["schema",zr(t," "),Vr(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Hr("",e,"\n")+zr(["scalar",t,zr(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>Hr("",e,"\n")+zr(["type",t,Hr("implements ",zr(n," & ")),zr(r," "),Vr(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>Hr("",e,"\n")+t+(Gr(n)?Hr("(\n",$r(zr(n,"\n")),"\n)"):Hr("(",zr(n,", "),")"))+": "+r+Hr(" ",zr(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>Hr("",e,"\n")+zr([t+": "+n,Hr("= ",r),zr(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>Hr("",e,"\n")+zr(["interface",t,Hr("implements ",zr(n," & ")),zr(r," "),Vr(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Hr("",e,"\n")+zr(["union",t,zr(n," "),Hr("= ",zr(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Hr("",e,"\n")+zr(["enum",t,zr(n," "),Vr(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Hr("",e,"\n")+zr([t,zr(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Hr("",e,"\n")+zr(["input",t,zr(n," "),Vr(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>Hr("",e,"\n")+"directive @"+t+(Gr(n)?Hr("(\n",$r(zr(n,"\n")),"\n)"):Hr("(",zr(n,", "),")"))+(r?" repeatable":"")+" on "+zr(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>zr(["extend schema",zr(e," "),Vr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>zr(["extend scalar",e,zr(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>zr(["extend type",e,Hr("implements ",zr(t," & ")),zr(n," "),Vr(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>zr(["extend interface",e,Hr("implements ",zr(t," & ")),zr(n," "),Vr(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>zr(["extend union",e,zr(t," "),Hr("= ",zr(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>zr(["extend enum",e,zr(t," "),Vr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>zr(["extend input",e,zr(t," "),Vr(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>zr([e,Hr(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>zr([e,Hr(".",t),Hr("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>zr(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>zr(["@",e,Hr("(",t,":)")])}};function zr(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function Vr(e){return Hr("{\n",$r(zr(e,"\n")),"\n}")}function Hr(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function $r(e){return Hr("  ",e.replace(/\n/g,"\n  "))}function Gr(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}let Wr;const qr=Object.assign(e=>{let t=Wr.get(e);return t||(t=Br(e),Wr.set(e,t)),t},{reset(){Wr=new gn(Zt.print||2e3)}});function Yr(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Qr(e){return function(t){if(function(e){return Ye(null==e?void 0:e.lift)}(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function Kr(e,t,n,r,o){return new Xr(e,t,n,r,o)}qr.reset();var Xr=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t)||this;return s.onFinalize=i,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return Fe(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(ut);function Jr(e,t){return Qr(function(n,r){var o=0;n.subscribe(Kr(r,function(n){r.next(e.call(t,n,o++))}))})}function Zr(e,t,n){var r=Ye(e)||t||n?{next:e,error:t,complete:n}:e;return r?Qr(function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var o=!0;e.subscribe(Kr(t,function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)},function(){var e;o=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()},function(e){var n;o=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)},function(){var e,t;o&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)}))}):bt}var eo=Qe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),to=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Fe(t,e),t.prototype.lift=function(e){var t=new no(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new eo},t.prototype.next=function(e){var t=this;ct(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=Ve(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;ct(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;ct(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,o=n.isStopped,i=n.observers;return r||o?Ze:(this.currentObservers=null,i.push(e),new Je(function(){t.currentObservers=null,Xe(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,o=t.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new xt;return e.source=this,e},t.create=function(e,t){return new no(e,t)},t}(xt),no=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return Fe(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Ze},t}(to),ro={now:function(){return(ro.delegate||Date).now()},delegate:void 0},oo=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ro);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=n,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,n),o}return Fe(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,o=n._buffer,i=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(o.push(t),!i&&o.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var a=n.now(),s=0,l=1;l<r.length&&r[l]<=a;l+=2)s=l;s&&r.splice(0,s+1)}},t}(to),io=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ao(e){return Ye(null==e?void 0:e.then)}function so(e){return Ye(e[vt])}function lo(e){return Symbol.asyncIterator&&Ye(null==e?void 0:e[Symbol.asyncIterator])}function co(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var uo="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function po(e){return Ye(null==e?void 0:e[uo])}function fo(e){return We(this,arguments,function(){var t,n,r;return ze(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Ge(t.read())];case 3:return n=o.sent(),r=n.value,n.done?[4,Ge(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Ge(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function ho(e){return Ye(null==e?void 0:e.getReader)}function mo(e){if(e instanceof xt)return e;if(null!=e){if(so(e))return o=e,new xt(function(e){var t=o[vt]();if(Ye(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(io(e))return r=e,new xt(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()});if(ao(e))return n=e,new xt(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,ot)});if(lo(e))return go(e);if(po(e))return t=e,new xt(function(e){var n,r;try{for(var o=Ve(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(e.next(a),e.closed)return}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}e.complete()});if(ho(e))return go(fo(e))}var t,n,r,o;throw co(e)}function go(e){return new xt(function(t){(function(e,t){var n,r,o,i;return Ue(this,void 0,void 0,function(){var a,s;return ze(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=qe(e),l.label=1;case 1:return[4,n.next()];case 2:if((r=l.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=l.sent(),o={error:s},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function yo(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new to}:t,r=e.resetOnError,o=void 0===r||r,i=e.resetOnComplete,a=void 0===i||i,s=e.resetOnRefCountZero,l=void 0===s||s;return function(e){var t,r,i,s=0,c=!1,u=!1,d=function(){null==r||r.unsubscribe(),r=void 0},p=function(){d(),t=i=void 0,c=u=!1},f=function(){var e=t;p(),null==e||e.unsubscribe()};return Qr(function(e,h){s++,u||c||d();var m=i=null!=i?i:n();h.add(function(){0!==--s||u||c||(r=vo(f,l))}),m.subscribe(h),!t&&s>0&&(t=new ht({next:function(e){return m.next(e)},error:function(e){u=!0,d(),r=vo(p,o,e),m.error(e)},complete:function(){c=!0,d(),r=vo(p,a),m.complete()}}),mo(e).subscribe(t))})(e)}}function vo(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0!==t){if(!1!==t){var o=new ht({next:function(){o.unsubscribe(),e()}});return mo(t.apply(void 0,$e([],He(n)))).subscribe(o)}}else e()}function bo(e,t,n){var r,o,i,a,s=!1;return e&&"object"==typeof e?(r=e.bufferSize,a=void 0===r?1/0:r,o=e.windowTime,t=void 0===o?1/0:o,s=void 0!==(i=e.refCount)&&i,n=e.scheduler):a=null!=e?e:1/0,yo({connector:function(){return new oo(a,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function Eo(e,t){return e===t}var xo=function(e){function t(t,n){return e.call(this)||this}return Fe(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(Je),wo={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=wo.delegate;return(null==o?void 0:o.setInterval)?o.setInterval.apply(o,$e([e,t],He(n))):setInterval.apply(void 0,$e([e,t],He(n)))},clearInterval:function(e){var t=wo.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},To=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return Fe(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),wo.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&wo.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Xe(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(xo),ko=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=ro.now,e}(),So=function(e){function t(t,n){void 0===n&&(n=ko.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return Fe(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(ko),Ao=new So(To);function No(e){return e&&Ye(e.schedule)}function _o(e,t,n){void 0===e&&(e=0),void 0===n&&(n=Ao);var r=-1;return null!=t&&(No(t)?n=t:r=t),new xt(function(t){var o,i=(o=e)instanceof Date&&!isNaN(o)?+e-n.now():e;i<0&&(i=0);var a=0;return n.schedule(function(){t.closed||(t.next(a++),0<=r?this.schedule(void 0,r):t.complete())},i)})}const Co=vn(function(e,t,n){return function(e,t){let n,r;function o(e){return e!==n&&(n=e,r=t(n)),r}return Object.assign(e.pipe(Jr(o),bo({bufferSize:1,refCount:!0})),{getCurrentResult:()=>o(e.getCurrentResult())})}(e,n)},{max:1,makeCacheKey:e=>e.slice(0,2)});function Io(e=[]){const t={};return e.forEach(e=>{t[e.name.value]=e}),t}function Oo(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}function Do(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{const n=e.name.value;if("function"==typeof t)return t(n);const r=t&&t[n];return Gt(r,9,n),r||null}default:return null}}function Ro(e){let t;bn(e);for(let n of e.definitions){if("OperationDefinition"===n.kind)return n;"FragmentDefinition"!==n.kind||t||(t=n)}if(t)return t;throw qt(12)}function Po(e){return"Field"===e.kind}function Lo(e){return e.alias?e.alias.value:e.name.value}function Mo({directives:e},t){return!e||!e.length||function(e){const t=[];e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;const n=e.arguments,r=e.name.value;Gt(n&&1===n.length,16,r);const o=n[0];Gt(o.name&&"if"===o.name.value,17,r);const i=o.value;Gt(i&&("Variable"===i.kind||"BooleanValue"===i.kind),18,r),t.push({directive:e,ifArgument:o})});return t}(e).every(({directive:e,ifArgument:n})=>{let r=!1;return"Variable"===n.value.kind?(r=t&&t[n.value.name.value],Gt(void 0!==r,15,e.name.value)):r=n.value.value,"skip"===e.name.value?!r:r})}function Fo(e,{data:t,...n},{data:r,...o},i){return An(n,o)&&jo(Ro(e).selectionSet,t,r,{fragmentMap:Io(Oo(e)),variables:i})}function jo(e,t,n,r){if(t===n)return!0;const o=new Set;return e.selections.every(e=>{if(o.has(e))return!0;if(o.add(e),!Mo(e,r.variables))return!0;if(Bo(e))return!0;if(Po(e)){const o=Lo(e),i=t&&t[o],a=n&&n[o],s=e.selectionSet;if(!s)return An(i,a);const l=Array.isArray(i),c=Array.isArray(a);if(l!==c)return!1;if(l&&c){const e=i.length;if(a.length!==e)return!1;for(let t=0;t<e;++t)if(!jo(s,i[t],a[t],r))return!1;return!0}return jo(s,i,a,r)}{const o=Do(e,r.fragmentMap);if(o)return!!Bo(o)||jo(o.selectionSet,t,n,r)}})}function Bo(e){return!!e.directives&&e.directives.some(Uo)}function Uo(e){return"nonreactive"===e.name.value}function zo(e,t){let n=t;const r=[];e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw qt(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(Gt(1===r.length,11,r.length),n=r[0].name.value);return{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}},...e.definitions]}}function Vo(...e){return vr.bind(null,...e)}class Ho{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){const t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;let n;return this.performTransaction(()=>n=e.update(this),t),n}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new on(!0);watchFragment(e){const{fragment:t,fragmentName:n,from:r}=e,o=this.getFragmentDoc(t,n),i=(Array.isArray(r)?r:[r]).map(e=>{const t=null==e?e:this.toCacheId(e);return t});if(!Array.isArray(r)){const t=this.watchSingleFragment(i[0],o,e);return null===r?t:Co(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}let a;function s(e){const t=e.reduce((e,t,n)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[n]=t.missing),e),{data:[],dataState:"complete",complete:!0});return An(a,t)||(a=t),a}if(0===i.length)return qo;let l=!1;const c=i.map(t=>this.watchSingleFragment(t,o,e)),u=function(e){return 0===e.length?Tt:new xt(t=>{const{length:n}=e,r=new Array(n),o=new Map;e.forEach((e,t)=>{o.has(e)||o.set(e,new Set),o.get(e).add(t)});let i,a=o.size,s=o.size;o.forEach((n,o)=>{let l=!1;const c=o.subscribe({next:a=>{n.forEach(e=>r[e]=a),l||(l=!0,s--),s||(i||=new Set(e.filter(e=>e.dirty)),i.delete(o),i.size||(t.next(r.slice()),i=void 0))},complete:()=>{a--,a||t.complete()},error:t.error.bind(t)});t.add(c)})})}(c).pipe(Jr(s),Zr({subscribe:()=>l=!0,unsubscribe:()=>l=!1}),bo({bufferSize:1,refCount:!0}));return Object.assign(u,{getCurrentResult:()=>{if(l&&a)return a;const e=c.map(e=>e.getCurrentResult());return s(e)}})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,n){if(null===e)return Go;const{optimistic:r=!0,variables:o}=n,i=[t,Sr({id:e,optimistic:r,variables:o})],a=this.fragmentWatches.lookupArray(i);if(!a.observable){let c,u=!1;function d(e){const r=e.result;return c&&Fo(t,{data:c.data},{data:r},n.variables)||(c={data:r,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(c.missing=e.missing.missing)),c}const p=new xt(n=>{u=!0;const a=this.watch({variables:o,returnPartialData:!0,id:e,query:t,optimistic:r,immediate:!0,callback:e=>{p.dirty=!0,this.onAfterBroadcast(()=>{n.next(d(e)),p.dirty=!1})}});return()=>{u=!1,a(),this.fragmentWatches.removeArray(i)}}).pipe((void 0===l&&(l=bt),s=null!=s?s:Eo,Qr(function(e,t){var n,r=!0;e.subscribe(Kr(t,function(e){var o=l(e);!r&&s(n,o)||(r=!1,n=o,t.next(e))}))})),yo({connector:()=>new oo(1),resetOnRefCountZero:()=>_o(0)}));a.observable=Object.assign(p,{dirty:!1,getCurrentResult:()=>u&&c?c:d(this.diff({id:e,query:t,returnPartialData:!0,optimistic:r,variables:o}))})}var s,l;return a.observable}getFragmentDoc=Er(zo,{max:Zt["cache.fragmentQueryDocuments"]||1e3,cache:dn,makeCacheKey:Vo(this)});readFragment(e,t=!!e.optimistic){const n=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:n,optimistic:t})}writeQuery({id:e,data:t,...n}){return this.write(Object.assign(n,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:n,...r}){const o=void 0!==r.from?this.toCacheId(r.from):r.id;return this.write(Object.assign(r,{query:this.getFragmentDoc(t,n),dataId:o,result:e}))}updateQuery(e,t){return this.batch({update(n){const r=n.readQuery(e),o=t(r);return null==o?r:(n.writeQuery({...e,data:o}),o)}})}updateFragment(e,t){return this.batch({update(n){const r=n.readFragment(e),o=t(r);return null==o?r:(n.writeFragment({...e,data:o}),o)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}const $o=Object.freeze({data:null,dataState:"complete",complete:!0}),Go=Object.assign(new xt(e=>{e.next($o)}),{dirty:!1,getCurrentResult:()=>$o}),Wo=Object.freeze({data:[],dataState:"complete",complete:!0}),qo=Object.assign(new xt(e=>{e.next(Wo)}),{getCurrentResult:()=>Wo});function Yo(e){return null!==e&&"object"==typeof e}const{hasOwnProperty:Qo}=Object.prototype,Ko=function(e,t,n){return this.merge(e[n],t[n])},Xo=e=>isNaN(+e)?{}:[];class Jo{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||Ko}merge(e,t,n={}){const r=n.atPath;if(r?.length){const[o,...i]=r;void 0===e&&(e=Xo(o));let a=e[o];void 0===a&&i.length&&(a=Xo(i[0]));const s=this.merge(a,t,{...n,atPath:i});return a!==s&&((e=this.shallowCopyForMerge(e))[o]=s),e}return Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),Yo(t)&&Yo(e)?(Object.keys(t).forEach(n=>{if(Qo.call(e,n)){const r=e[n];if(t[n]!==r){const o=this.reconciler(e,t,n);o!==r&&((e=this.shallowCopyForMerge(e))[n]=o)}}else(e=this.shallowCopyForMerge(e))[n]=t[n]}),e):t}isObject=Yo;pastCopies=new Set;shallowCopyForMerge(e){return Yo(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e))),e}}function Zo(e){return{__ref:String(e)}}function ei(...e){const t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(n=>{const r=e[n];void 0!==r&&(t[n]=r)})}),t}const ti=Array.isArray,{hasOwnProperty:ni}=Object.prototype;function ri({__typename:e,id:t,_id:n},r){if("string"==typeof e&&(r&&(r.keyObject=null!=t?{id:t}:null!=n?{_id:n}:void 0),null==t&&null!=n&&(t=n),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}const oi={dataIdFromObject:ri,resultCaching:!0};const ii=/^[_a-z][_0-9a-z]*/i;function ai(e){const t=e.match(ii);return t?t[0]:e}function si(e,t,n){return!!Yo(t)&&(ti(t)?t.every(t=>si(e,t,n)):e.selections.every(e=>{if(Po(e)&&Mo(e,n)){const r=Lo(e);return ni.call(t,r)&&(!e.selectionSet||si(e.selectionSet,t[r],n))}return!0}))}function li(e){return Yo(e)&&!Yr(e)&&!ti(e)}function ci(e,t){const n=Io(Oo(e));return{fragmentMap:n,lookupFragment(e){let r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}const ui={},di=()=>ui,pi={};class fi{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),ni.call(this.data,e)){const n=this.data[e];if(n&&ni.call(n,t))return n[t]}return"__typename"===t&&ni.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof yi?this.parent.get(e,t):void 0}lookup(e,t){return t&&this.group.depend(e,"__exists"),ni.call(this.data,e)?this.data[e]:this instanceof yi?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let n;Yr(e)&&(e=e.__ref),Yr(t)&&(t=t.__ref);const r="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(!o)return;Gt("string"==typeof n,105);const i=new Jo({reconciler:bi}).merge(r,o);if(this.data[n]=i,i!==r&&(delete this.refs[n],this.group.caching)){const e={};r||(e.__exists=1),Object.keys(o).forEach(t=>{if(!r||r[t]!==i[t]){e[t]=1;const n=ai(t);n===t||this.policies.hasKeyArgs(i.__typename,n)||(e[n]=1),void 0!==i[t]||this instanceof yi||delete i[t]}}),!e.__typename||r&&r.__typename||this.policies.rootTypenamesById[n]!==i.__typename||delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(n,e))}}modify(e,t,n){const r=this.lookup(e);if(r){const o={};let i=!1,a=!0;const s={DELETE:ui,INVALIDATE:pi,isReference:Yr,toReference:this.toReference,canRead:this.canRead,readField:(t,n)=>this.policies.readField("string"==typeof t?{fieldName:t,from:n||Zo(e)}:t,{store:this})};if(Object.keys(r).forEach(l=>{const c=ai(l);let u=r[l];if(void 0===u)return;const d="function"==typeof t?t:t[l]||(n?void 0:t[c]);if(d){let t=d===di?ui:d(u,{...s,fieldName:c,storeFieldName:l,storage:this.getStorage(e,l)});t===pi?this.group.dirty(e,l):(t===ui&&(t=void 0),t!==u&&(o[l]=t,i=!0,u=t))}void 0!==u&&(a=!1)}),i)return this.merge(e,o),a&&(this instanceof yi?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,n){const r=this.lookup(e);if(r){const o=this.getFieldValue(r,"__typename"),i=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,i?{[i]:di}:di,!!n)}return!1}evict(e,t){let n=!1;return e.id&&(ni.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof yi&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n}clear(){this.replace(null)}extract(){const e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{ni.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&ni.call(e,t)||this.delete(t)}),e){const{__META:t,...n}=e;Object.keys(n).forEach(e=>{this.merge(e,n[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){const t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof yi?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){const e=this.getRootIdSet(),t=this.toObject();e.forEach(n=>{ni.call(t,n)&&(Object.keys(this.findChildRefIds(n)).forEach(e.add,e),delete t[n])});const n=Object.keys(t);if(n.length){let e=this;for(;e instanceof yi;)e=e.parent;n.forEach(t=>e.delete(t))}return n}refs={};findChildRefIds(e){if(!ni.call(this.refs,e)){const t=this.refs[e]={},n=this.data[e];if(!n)return t;const r=new Set([n]);r.forEach(e=>{Yr(e)&&(t[e.__ref]=!0),Yo(e)&&Object.keys(e).forEach(t=>{const n=e[t];Yo(n)&&r.add(n)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>Yr(e)?this.get(e.__ref,t):e&&e[t];canRead=e=>Yr(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return Zo(e);if(Yr(e))return e;const[n]=this.policies.identify(e);if(n){const r=Zo(n);return t&&this.merge(n,e),r}};get supportsResultCaching(){return this.group.caching}}class hi{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?gr():null,this.keyMaker=new on}depend(e,t){if(this.d){this.d(mi(e,t));const n=ai(t);n!==t&&this.d(mi(e,n)),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(mi(e,t),"__exists"===t?"forget":"setDirty")}}function mi(e,t){return t+"#"+e}function gi(e,t){Ei(e)&&e.group.depend(t,"__exists")}fi.Root=class extends fi{constructor({policies:e,resultCaching:t=!0,seed:n}){super(e,new hi(t)),n&&this.replace(n)}stump=new vi(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new on;getStorage(){return this.storageTrie.lookupArray(arguments)}};class yi extends fi{id;parent;replay;group;constructor(e,t,n,r){super(t.policies,r),this.id=e,this.parent=t,this.replay=n,this.group=r,n(this)}addLayer(e,t){return new yi(e,this,t,this.group)}removeLayer(e){const t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{const n=this.data[e],r=t.lookup(e);r?n?n!==r&&Object.keys(n).forEach(t=>{An(n[t],r[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(r).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){const t=this.parent.findChildRefIds(e);return ni.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class vi extends yi{constructor(e){super("EntityStore.Stump",e,()=>{},new hi(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function bi(e,t,n){const r=e[n],o=t[n];return An(r,o)?r:o}function Ei(e){return!(!e||!e.supportsResultCaching)}const xi=new Gn;function wi(e){const t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";const n=t.arguments?.find(({name:e})=>"mode"===e.value);return n&&"value"in n.value&&"migrate"===n.value.value?"migrate":"unmask"}const Ti=Symbol.for("apollo.result.extensions"),ki=Symbol.for("apollo.result.streamInfo"),Si=Symbol.for("apollo.observableQuery.variablesUnknown");function Ai(e,t,n,r){if(n.kind===Pt.INT||n.kind===Pt.FLOAT)e[t.value]=Number(n.value);else if(n.kind===Pt.BOOLEAN||n.kind===Pt.STRING)e[t.value]=n.value;else if(n.kind===Pt.OBJECT){const o={};n.fields.map(e=>Ai(o,e.name,e.value,r)),e[t.value]=o}else if(n.kind===Pt.VARIABLE){const o=(r||{})[n.name.value];e[t.value]=o}else if(n.kind===Pt.LIST)e[t.value]=n.values.map(e=>{const n={};return Ai(n,t,e,r),n[t.value]});else if(n.kind===Pt.ENUM)e[t.value]=n.value;else{if(n.kind!==Pt.NULL)throw qt(19,t.value,n.kind);e[t.value]=null}}function Ni(e,t){if(e.arguments&&e.arguments.length){const n={};return e.arguments.forEach(({name:e,value:r})=>Ai(n,e,r,t)),n}return null}const _i=["connection","include","skip","client","rest","export","nonreactive","stream"];let Ci=Sr;const Ii=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){const e=n.connection.filter?n.connection.filter:[];e.sort();const r={};e.forEach(e=>{r[e]=t[e]});const o=Ci(r);if("{}"!==o)return`${n.connection.key}(${o})`}return n.connection.key}let r=e;if(t){const e=Ci(t);"{}"!==e&&(r+=`(${e})`)}return n&&Object.keys(n).forEach(e=>{-1===_i.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?r+=`@${e}(${Ci(n[e])})`:r+=`@${e}`)}),r},{setStringify(e){const t=Ci;return Ci=e,t}});function Oi(e){return Array.isArray(e)&&e.length>0}const Di={};function Ri(e){const t=JSON.stringify(e);return Di[t]||(Di[t]={})}function Pi(e){const t=Ri(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,n)=>{const r=(e,t)=>n.readField(t,e),o=n.keyObject=Mi(e,e=>{let o=Bi(n.storeObject,e,r);return void 0===o&&t!==n.storeObject&&ni.call(t,e[0])&&(o=Bi(t,e,ji)),Gt(void 0!==o,108,e.join("."),t),o});return`${n.typename}:${JSON.stringify(o)}`})}function Li(e){const t=Ri(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:n,variables:r,fieldName:o})=>{const i=Mi(e,e=>{const o=e[0],i=o.charAt(0);if("@"!==i){if("$"===i){const t=o.slice(1);if(r&&ni.call(r,t)){const n=e.slice(0);return n[0]=t,Bi(r,n)}return}if(t)return Bi(t,e)}else if(n&&Oi(n.directives)){const t=o.slice(1),i=n.directives.find(e=>e.name.value===t),a=i&&Ni(i,r);return a&&Bi(a,e.slice(1))}}),a=JSON.stringify(i);return(t||"{}"!==a)&&(o+=":"+a),o})}function Mi(e,t){const n=new Jo;return Fi(e).reduce((e,r)=>{let o=t(r);if(void 0!==o){for(let e=r.length-1;e>=0;--e)o={[r[e]]:o};e=n.merge(e,o)}return e},{})}function Fi(e){const t=Ri(e);if(!t.paths){const n=t.paths=[],r=[];e.forEach((t,o)=>{ti(t)?(Fi(t).forEach(e=>n.push(r.concat(e))),r.length=0):(r.push(t),ti(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function ji(e,t){return e[t]}function Bi(e,t,n){return n=n||ji,Ui(t.reduce(function e(t,r){return ti(t)?t.map(t=>e(t,r)):t&&n(t,r)},e))}function Ui(e){return Yo(e)?ti(e)?e.map(Ui):Mi(Object.keys(e).sort(),t=>Bi(e,t)):e}const zi=new Gn,Vi=new WeakMap;function Hi(e){let t=Vi.get(e);return t||Vi.set(e,t={vars:new Set,dep:gr()}),t}function $i(e){Hi(e).vars.forEach(t=>t.forgetCache(e))}function Gi(e){const t=new Set,n=new Set,r=function(i){if(arguments.length>0){if(e!==i){e=i,t.forEach(e=>{Hi(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});const o=Array.from(n);n.clear(),o.forEach(t=>t(e))}}else{const e=zi.getValue();e&&(o(e),Hi(e).dep(r))}return e};r.onNextChange=e=>(n.add(e),()=>{n.delete(e)});const o=r.attachCache=e=>(t.add(e),Hi(e).vars.add(r),r);return r.forgetCache=e=>t.delete(e),r}function Wi(e){return void 0!==e.args?e.args:e.field?Ni(e.field,e.variables):null}const qi=()=>{},Yi=(e,t)=>t.fieldName,Qi=(e,t,{mergeObjects:n})=>n(e,t),Ki=(e,t)=>t,Xi=(e,t,{streamFieldInfo:n,existingData:r})=>{if(!e&&!r)return t;const o=[],i=e??r,a=n?.isLastChunk?t.length:Math.max(i.length,t.length);for(let e=0;e<a;e++)o[e]=void 0===t[e]?i[e]:t[e];return o};class Ji{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:ri,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){const n=this,r=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];const o=t&&t.storeObject||e,i={...t,typename:r,storeObject:o,readField:t&&t.readField||((...e)=>{const t=ea(e,o);return n.readField(t,{store:n.cache.data,variables:t.variables})})};let a;const s=r&&this.getTypePolicy(r);let l=s&&s.keyFn||this.config.dataIdFromObject;return xi.withValue(!0,()=>{for(;l;){const t=l({...e,...o},i);if(!ti(t)){a=t;break}l=Pi(t)}}),a=a?String(a):void 0,i.keyObject?[a,i.keyObject]:[a]}addTypePolicies(e){Object.keys(e).forEach(t=>{const{queryType:n,mutationType:r,subscriptionType:o,...i}=e[t];n&&this.setRootTypename("Query",t),r&&this.setRootTypename("Mutation",t),o&&this.setRootTypename("Subscription",t),ni.call(this.toBeAdded,t)?this.toBeAdded[t].push(i):this.toBeAdded[t]=[i]})}updateTypePolicy(e,t,n){const r=this.getTypePolicy(e),{keyFields:o,fields:i}=t;function a(e,t){e.merge="function"==typeof t?t:!0===t?Qi:!1===t?Ki:e.merge}a(r,t.merge),r.keyFn=!1===o?qi:ti(o)?Pi(o):"function"==typeof o?o:r.keyFn,i&&Object.keys(i).forEach(t=>{let r=n[t];r&&r?.typename===e||(r=n[t]={typename:e});const o=i[t];if("function"==typeof o)r.read=o;else{const{keyArgs:e,read:t,merge:n}=o;r.keyFn=!1===e?Yi:ti(e)?Li(e):"function"==typeof e?e:r.keyFn,"function"==typeof t&&(r.read=t),a(r,n)}r.read&&r.merge&&(r.keyFn=r.keyFn||Yi)})}setRootTypename(e,t=e){const n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(Gt(!r||r===e,109,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);const n=e.match(ii);n&&n[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!ni.call(this.typePolicies,e)){const t=this.typePolicies[e]={};t.fields={};let n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,r)=>{if(t.test(e)){const e=this.supertypeMap.get(r);e&&e.forEach(e=>n.add(e))}})),n&&n.size&&n.forEach(e=>{const{fields:n,...r}=this.getTypePolicy(e);Object.assign(t,r),Object.assign(t.fields,n)})}const t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n}fragmentMatches(e,t,n,r){if(!e.typeCondition)return!0;if(!t)return!1;const o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o)){const i=this.getSupertypeSet(t,!0),a=[i],s=e=>{const t=this.getSupertypeSet(e,!1);t&&t.size&&a.indexOf(t)<0&&a.push(t)};let l=!(!n||!this.fuzzySubtypes.size),c=!1;for(let u=0;u<a.length;++u){const d=a[u];if(d.has(o))return i.has(o)||i.add(o),!0;d.forEach(s),l&&u===a.length-1&&si(e.selectionSet,n,r)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((e,n)=>{const r=t.match(e);r&&r[0]===t&&s(n)}))}}return!1}hasKeyArgs(e,t){const n=this.getFieldPolicy(e,t);return!(!n||!n.keyFn)}getStoreFieldName(e){const{typename:t,fieldName:n}=e,r=this.getFieldPolicy(t,n);let o,i=r&&r.keyFn;if(i&&t){const r={typename:t,fieldName:n,field:e.field||null,variables:e.variables},a=Wi(e);for(;i;){const e=i(a,r);if(!ti(e)){o=e||n;break}i=Li(e)}}return void 0===o&&(o=e.field?function(e,t){let n=null;e.directives&&(n={},e.directives.forEach(e=>{n[e.name.value]={},e.arguments&&e.arguments.forEach(({name:r,value:o})=>Ai(n[e.name.value],r,o,t))}));let r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(({name:e,value:n})=>Ai(r,e,n,t))),Ii(e.name.value,r,n)}(e.field,e.variables):Ii(n,Wi(e))),!1===o?n:n===ai(o)?o:n+":"+o}readField(e,t){const n=e.from;if(!n)return;if(!(e.field||e.fieldName))return;if(void 0===e.typename){const r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}const r=this.getStoreFieldName(e),o=ai(r),i=t.store.getFieldValue(n,r),a=this.getFieldPolicy(e.typename,o),s=a&&a.read;if(s){const o=Zi(this,n,e,t,t.store.getStorage(Yr(n)?n.__ref:n,r));return zi.withValue(this.cache,s,[i,o])}return i}getReadFunction(e,t){const n=this.getFieldPolicy(e,t);return n&&n.read}getMergeFunction(e,t,n){let r=this.getFieldPolicy(e,t),o=r&&r.merge;return!o&&n&&(r=this.getTypePolicy(n),o=r&&r.merge),o}runMergeFunction(e,t,{field:n,typename:r,merge:o,path:i},a,s){const l=e;if(o===Qi)return ta(a.store)(e,t);if(o===Ki)return t;a.overwrite&&(e=void 0);const c=a.extensions?.[ki]?.deref()?.peekArray(i);if(c){const{current:e,previous:n}=c;if(n&&An(n.incoming,t)&&An(n.streamFieldInfo,e))return n.result}const u=o(e,t,function(e,t,n,r,o,i){const a={...Zi(e,t,n,r,o),extensions:r.extensions,existingData:i},s=r.extensions;if(s&&ki in s){const{[ki]:e,...t}=s,r=e?.deref()?.peekArray(n.path);r&&(a.streamFieldInfo=r.current),a.extensions=0===Object.keys(t).length?void 0:t}return a}(this,void 0,{typename:r,fieldName:n.name.value,field:n,variables:a.variables,path:i},a,s||{},l));return c&&(c.previous={incoming:t,streamFieldInfo:c.current,result:u}),u}}function Zi(e,t,n,r,o){const i=e.getStoreFieldName(n),a=ai(i),s=n.variables||r.variables,{toReference:l,canRead:c}=r.store;return{args:Wi(n),field:n.field||null,fieldName:a,storeFieldName:i,variables:s,isReference:Yr,toReference:l,storage:o,cache:e.cache,canRead:c,readField:(...n)=>e.readField(ea(n,t,s),r),mergeObjects:ta(r.store)}}function ea(e,t,n){const{0:r,1:o,length:i}=e;let a;return"string"==typeof r?a={fieldName:r,from:i>1?o:t}:(a={...r},ni.call(a,"from")||(a.from=t)),void 0===a.variables&&(a.variables=n),a}function ta(e){return function(t,n){if(ti(t)||ti(n))throw qt(112);if(Yo(t)&&Yo(n)){const r=e.getFieldValue(t,"__typename"),o=e.getFieldValue(n,"__typename");if(r&&o&&r!==o)return n;if(Yr(t)&&li(n))return e.merge(t.__ref,n),t;if(li(t)&&Yr(n))return e.merge(t,n.__ref),n;if(li(t)&&li(n))return{...t,...n}}return n}}function na(e){const t={},n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(e=>{e.defaultValue&&Ai(t,e.variable.name,e.defaultValue)}),t}class ra extends Error{message;path;query;variables;constructor(e,t,n,r){if(super(e),this.message=e,this.path=t,this.query=n,this.variables=r,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=ra.prototype}missing}function oa(e){return[e.selectionSet,e.objectOrReference,e.context]}class ia{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=Er(e=>{const t=oa(e),n=this.executeSelectionSet.peek(...t);return n||(gi(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:Zt["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:oa,makeCacheKey(e,t,n){if(Ei(n.store))return n.store.makeCacheKey(e,Yr(t)?t.__ref:t,n.varString)}}),this.executeSubSelectedArray=Er(e=>(gi(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:Zt["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:n}){if(Ei(n.store))return n.store.makeCacheKey(e,t,n.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:n="ROOT_QUERY",variables:r,returnPartialData:o=!0}){const i=this.config.cache.policies;r=ei(na(function(e){const t=En(e);return Gt(t&&"query"===t.operation,13),t}(t)),r);const a=Zo(n),s=this.executeSelectionSet({selectionSet:Ro(t).selectionSet,objectOrReference:a,enclosingRef:a,context:{store:e,query:t,policies:i,variables:r,varString:Sr(r),...ci(t,this.config.fragments)}});let l;s.missing&&(l=new ra(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(s.missing),s.missing,t,r));const c=!l,{result:u}=s;return{result:c?u:o?0===Object.keys(u).length?null:u:null,complete:c,missing:l}}isFresh(e,t,n,r){if(Ei(r.store)&&this.knownResults.get(e)===n){const o=this.executeSelectionSet.peek(n,t,r);if(o&&e===o.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:n,context:r}){if(Yr(t)&&!r.policies.rootTypenamesById[t.__ref]&&!r.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};const{variables:o,policies:i,store:a}=r,s=a.getFieldValue(t,"__typename"),l=[];let c;const u=new Jo;function d(e,t){return e.missing&&(c=u.merge(c,{[t]:e.missing})),e.result}"string"!=typeof s||i.rootIdsByTypename[s]||l.push({__typename:s});const p=new Set(e.selections);p.forEach(e=>{if(Mo(e,o))if(Po(e)){let o=i.readField({fieldName:e.name.value,field:e,variables:r.variables,from:t},r);const a=Lo(e);void 0===o?kr.added(e)||(c=u.merge(c,{[a]:`Can't find field '${e.name.value}' on ${Yr(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):ti(o)?o.length>0&&(o=d(this.executeSubSelectedArray({field:e,array:o,enclosingRef:n,context:r}),a)):e.selectionSet&&null!=o&&(o=d(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:o,enclosingRef:Yr(o)?o:n,context:r}),a)),void 0!==o&&l.push({[a]:o})}else{const t=Do(e,r.lookupFragment);if(!t&&e.kind===Pt.FRAGMENT_SPREAD)throw qt(113,e.name.value);t&&i.fragmentMatches(t,s)&&t.selectionSet.selections.forEach(p.add,p)}});const f={result:function(e){let t=e[0]||{};const n=e.length;if(n>1){const r=new Jo;for(let o=1;o<n;++o)t=r.merge(t,e[o])}return t}(l),missing:c};return f.result&&this.knownResults.set(f.result,e),f}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:n,context:r}){let o,i=new Jo;function a(e,t){return e.missing&&(o=i.merge(o,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||r.store.canRead(e))),{result:t=t.map((t,o)=>null===t?null:ti(t)?a(this.executeSubSelectedArray({field:e,array:t,enclosingRef:n,context:r}),o):e.selectionSet?a(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:Yr(t)?t:n,context:r}),o):t),missing:o}}}function aa(e,t,n){const r=`${t}${n}`;let o=e.flavors.get(r);return o||e.flavors.set(r,o=e.clientOnly===t&&e.deferred===n?e:{...e,clientOnly:t,deferred:n}),o}class sa{cache;reader;fragments;constructor(e,t,n){this.cache=e,this.reader=t,this.fragments=n}writeToStore(e,{query:t,result:n,dataId:r,variables:o,overwrite:i,extensions:a}){const s=En(t),l=new Jo;o={...na(s),...o};const c={store:e,written:{},merge:(e,t)=>l.merge(e,t),variables:o,varString:Sr(o),...ci(t,this.fragments),overwrite:!!i,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:a},u=this.processSelectionSet({result:n||{},dataId:r,selectionSet:s.selectionSet,mergeTree:{map:new Map},context:c,path:[]});if(!Yr(u))throw qt(115,n);return c.incomingById.forEach(({storeObject:t,mergeTree:n,fieldNodeSet:r},o)=>{const i=Zo(o);if(n&&n.map.size){const e=this.applyMerges(n,i,t,c);if(Yr(e))return;t=e}e.merge(o,t)}),e.retain(u.__ref),u}processSelectionSet({dataId:e,result:t,selectionSet:n,context:r,mergeTree:o,path:i}){const{policies:a}=this.cache;let s={};const l=e&&a.rootTypenamesById[e]||fa(t,n,r.fragmentMap)||e&&r.store.get(e,"__typename");"string"==typeof l&&(s.__typename=l);const c=(...e)=>{const t=ea(e,s,r.variables);if(Yr(t.from)){const e=r.incomingById.get(t.from.__ref);if(e){const n=a.readField({...t,from:e.storeObject},r);if(void 0!==n)return n}}return a.readField(t,r)},u=new Set;this.flattenFields(n,t,r,l).forEach((e,n)=>{const r=Lo(n),d=t[r],p=[...i,n.name.value];if(u.add(n),void 0!==d){const t=a.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),r=ca(o,t);let i,u=this.processFieldValue(d,n,n.selectionSet?aa(e,!1,!1):e,r,p);n.selectionSet&&(Yr(u)||li(u))&&(i=c("__typename",u));const f=a.getMergeFunction(l,n.name.value,i);f?r.info={field:n,typename:l,merge:f,path:p}:e.extensions?.[ki]&&Array.isArray(u)&&function(e){return!!e.directives&&e.directives.some(e=>"stream"===e.name.value)}(n)?r.info={field:n,typename:l,merge:Xi,path:p}:pa(o,t),s=e.merge(s,{[t]:u})}else 0});try{const[o,i]=a.identify(t,{typename:l,selectionSet:n,fragmentMap:r.fragmentMap,storeObject:s,readField:c});e=e||o,i&&(s=r.merge(s,i))}catch(t){if(!e)throw t}if("string"==typeof e){const i=Zo(e),a=r.written[e]||(r.written[e]=[]);if(a.indexOf(n)>=0)return i;if(a.push(n),this.reader&&this.reader.isFresh(t,i,n,r))return i;const l=r.incomingById.get(e);return l?(l.storeObject=r.merge(l.storeObject,s),l.mergeTree=ua(l.mergeTree,o),u.forEach(e=>l.fieldNodeSet.add(e))):r.incomingById.set(e,{storeObject:s,mergeTree:da(o)?void 0:o,fieldNodeSet:u}),i}return s}processFieldValue(e,t,n,r,o){return t.selectionSet&&null!==e?ti(e)?e.map((e,i)=>{const a=this.processFieldValue(e,t,n,ca(r,i),[...o,i]);return pa(r,i),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r,path:o}):e}flattenFields(e,t,n,r=fa(t,e,n.fragmentMap)){const o=new Map,{policies:i}=this.cache,a=new on(!1);return function e(s,l){const c=a.lookup(s,l.clientOnly,l.deferred);c.visited||(c.visited=!0,s.selections.forEach(a=>{if(!Mo(a,n.variables))return;let{clientOnly:s,deferred:c}=l;if(s&&c||!Oi(a.directives)||a.directives.forEach(e=>{const t=e.name.value;if("client"===t&&(s=!0),"defer"===t){const t=Ni(e,n.variables);t&&!1===t.if||(c=!0)}}),Po(a)){const e=o.get(a);e&&(s=s&&e.clientOnly,c=c&&e.deferred),o.set(a,aa(n,s,c))}else{const o=Do(a,n.lookupFragment);if(!o&&a.kind===Pt.FRAGMENT_SPREAD)throw qt(117,a.name.value);o&&i.fragmentMatches(o,r,t,n.variables)&&e(o.selectionSet,aa(n,s,c))}}))}(e,n),o}applyMerges(e,t,n,r,o){if(e.map.size&&!Yr(n)){const i=ti(n)||!Yr(t)&&!li(t)?void 0:t,a=n;let s;i&&!o&&(o=[Yr(i)?i.__ref:i]);const l=(e,t)=>ti(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{const n=l(i,t),c=l(a,t);if(void 0===c)return;o&&o.push(t);const u=this.applyMerges(e,n,c,r,o);u!==c&&(s=s||new Map,s.set(t,u)),o&&Gt(o.pop()===t)}),s&&(n=ti(a)?a.slice(0):{...a},s.forEach((e,t)=>{n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,o&&r.store.getStorage(...o)):n}}const la=[];function ca({map:e},t){return e.has(t)||e.set(t,la.pop()||{map:new Map}),e.get(t)}function ua(e,t){if(e===t||!t||da(t))return e;if(!e||da(e))return t;const n=e.info&&t.info?{...e.info,...t.info}:e.info||t.info,r=e.map.size&&t.map.size,o={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){const n=new Set(t.map.keys());e.map.forEach((e,r)=>{o.map.set(r,ua(e,t.map.get(r))),n.delete(r)}),n.forEach(n=>{o.map.set(n,ua(t.map.get(n),e.map.get(n)))})}return o}function da(e){return!e||!(e.info||e.map.size)}function pa({map:e},t){const n=e.get(t);n&&da(n)&&(la.push(n),e.delete(t))}new Set;function fa(e,t,n){let r;for(const n of t.selections)if(Po(n)){if("__typename"===n.name.value)return e[Lo(n)]}else r?r.push(n):r=[n];if("string"==typeof e.__typename)return e.__typename;if(r)for(const t of r){const r=fa(e,Do(t,n).selectionSet,n);if("string"==typeof r)return r}}class ha extends Ho{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new wr(kr);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=Gi;constructor(e={}){super(),this.config=function(e){return ei(oi,e)}(e),this.policies=new Ji({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){const e=this.data=new fi.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){const{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new sa(this,this.storeReader=new ia({cache:this,fragments:e}),e),this.maybeBroadcastWatch=Er((e,t)=>this.broadcastWatch(e,t),{max:Zt["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{const t=e.optimistic?this.optimisticData:this.data;if(Ei(t)){const{optimistic:n,id:r,variables:o}=e;return t.makeCacheKey(e.query,e.callback,Sr({optimistic:n,id:r,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){const{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(ni.call(e,"id")&&!e.id)return!1;const t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;return this.watches.size||Hi(t=this).vars.forEach(e=>e.attachCache(t)),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&$i(this),this.maybeBroadcastWatch.forget(e)}}gc(e){Sr.reset(),qr.reset();const t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(Yr(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){}}evict(e){if(!e.id){if(ni.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),Sr.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),$i(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){const t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){const{update:t,optimistic:n=!0,removeOptimistic:r,onWatchUpdated:o}=e;let i;const a=e=>{const{data:n,optimisticData:r}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return i=t(this)}finally{--this.txCount,this.data=n,this.optimisticData=r}},s=new Set;return o&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(s.add(e),!1)}),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,a):!1===n?a(this.data):a(),"string"==typeof r&&(this.optimisticData=this.optimisticData.removeLayer(r)),o&&s.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){const n=o.call(this,e,t);return!1!==n&&s.delete(e),n}}),s.size&&s.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),i}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){const t=this.onAfterBroadcast,n=new Set;this.onAfterBroadcast=e=>{n.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),n.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){const{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){const{lastDiff:n}=e,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&An(n.result,r.result)||e.callback(e.lastDiff=r,n)}}function ma(e,t,n){const r=new Set(e),o=r.size;return Mt(t,{Directive(e){if(r.delete(e.name.value)&&(!n||!r.size))return Lt}}),n?!r.size:r.size<o}class ga{isIncrementalResult(e){return!1}prepareRequest(e){return Gt(!ma(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0}const ya=xn.execute;function va(e,t){return ei(e,t,t.variables&&{variables:ei({...e&&e.variables,...t.variables})})}function ba(e){return Mt(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}function Ea(e,t){var n=Ye(e)?e:function(){return e},r=function(e){return e.error(n())};return new xt(t?function(e){return t.schedule(r,0,e)}:r)}function xa(e,t,n,r,o){void 0===r&&(r=0),void 0===o&&(o=!1);var i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function wa(e,t,n){return void 0===n&&(n=1/0),Ye(t)?wa(function(n,r){return Jr(function(e,o){return t(n,e,r,o)})(mo(e(n,r)))},n):("number"==typeof t&&(n=t),Qr(function(t,r){return function(e,t,n,r,o,i,a,s){var l=[],c=0,u=0,d=!1,p=function(){!d||l.length||c||t.complete()},f=function(e){return c<r?h(e):l.push(e)},h=function(e){i&&t.next(e),c++;var s=!1;mo(n(e,u++)).subscribe(Kr(t,function(e){null==o||o(e),i?f(e):t.next(e)},function(){s=!0},void 0,function(){if(s)try{c--;for(var e=function(){var e=l.shift();a?xa(t,a,function(){return h(e)}):h(e)};l.length&&c<r;)e();p()}catch(e){t.error(e)}}))};return e.subscribe(Kr(t,f,function(){d=!0,p()})),function(){null==s||s()}}(t,r,e,n)}))}function Ta(e,t){return void 0===t&&(t=0),Qr(function(n,r){n.subscribe(Kr(r,function(n){return xa(r,e,function(){return r.next(n)},t)},function(){return xa(r,e,function(){return r.complete()},t)},function(n){return xa(r,e,function(){return r.error(n)},t)}))})}function ka(e,t){return void 0===t&&(t=0),Qr(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function Sa(e,t){if(!e)throw new Error("Iterable cannot be null");return new xt(function(n){xa(n,t,function(){var r=e[Symbol.asyncIterator]();xa(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function Aa(e,t){if(null!=e){if(so(e))return function(e,t){return mo(e).pipe(ka(t),Ta(t))}(e,t);if(io(e))return function(e,t){return new xt(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(ao(e))return function(e,t){return mo(e).pipe(ka(t),Ta(t))}(e,t);if(lo(e))return Sa(e,t);if(po(e))return function(e,t){return new xt(function(n){var r;return xa(n,t,function(){r=e[uo](),xa(n,t,function(){var e,t,o;try{t=(e=r.next()).value,o=e.done}catch(e){return void n.error(e)}o?n.complete():n.next(t)},0,!0)}),function(){return Ye(null==r?void 0:r.return)&&r.return()}})}(e,t);if(ho(e))return function(e,t){return Sa(fo(e),t)}(e,t)}throw co(e)}function Na(e,t){return t?Aa(e,t):mo(e)}var _a,Ca=Qe(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Ia(e){return e[e.length-1]}function Oa(e){return No(Ia(e))?e.pop():void 0}function Da(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Na(e,Oa(e))}function Ra(e){return Qr(function(t,n){var r,o=null,i=!1;o=t.subscribe(Kr(n,void 0,void 0,function(a){r=mo(e(a,Ra(e)(t))),o?(o.unsubscribe(),o=null,r.subscribe(n)):i=!0})),i&&(o.unsubscribe(),o=null,r.subscribe(n))})}function Pa(e,t){return Qr(function(n,r){var o=0;n.subscribe(Kr(r,function(n){return e.call(t,n,o++)&&r.next(n)}))})}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(_a||(_a={}));var La=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var n,r,o,i=e,a=i.kind,s=i.value,l=i.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(n=t.next)||void 0===n||n.call(t,s):"E"===a?null===(r=t.error)||void 0===r||r.call(t,l):null===(o=t.complete)||void 0===o||o.call(t)}(this,e)},e.prototype.do=function(e,t,n){var r=this,o=r.kind,i=r.value,a=r.error;return"N"===o?null==e?void 0:e(i):"E"===o?null==t?void 0:t(a):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return Ye(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,o="N"===t?Da(n):"E"===t?Ea(function(){return r}):"C"===t?Tt:0;if(!o)throw new TypeError("Unexpected notification kind "+t);return o},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function Ma(){return void 0===(e=1)&&(e=1/0),wa(bt,e);var e}function Fa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ma()(Na(e,Oa(e)))}function ja(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function Ba(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}function Ua(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}class za extends Error{static is(e){return ja(e,"CombinedGraphQLErrors")}static formatMessage=Ua;errors;data;extensions;constructor(e,t=e.errors||[]){super(za.formatMessage(t,{result:e,defaultFormatMessage:Ua})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",Ba(this),Object.setPrototypeOf(this,za.prototype)}}function Va(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class Ha extends Error{static is(e){return ja(e,"CombinedProtocolErrors")}static formatMessage=Va;errors;constructor(e){super(Ha.formatMessage(e,{defaultFormatMessage:Va})),this.name="CombinedProtocolErrors",this.errors=e,Ba(this),Object.setPrototypeOf(this,Ha.prototype)}}class $a extends Error{static is(e){return ja(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",Ba(this),Object.setPrototypeOf(this,$a.prototype)}}const Ga=Symbol();const Wa=new WeakSet;function qa(e,t,n){return xi.withValue(!0,()=>{const r=Ya(e,t,n,!1);return Object.isFrozen(e),r})}function Ya(e,t,n,r,o){const{knownChanged:i}=n,a=function(e,t){if(t.has(e))return t.get(e);const n=Array.isArray(e)?[]:{};return t.set(e,n),n}(e,n.mutableTargets);if(Array.isArray(e)){for(const[o,s]of Array.from(e.entries())){if(null===s){a[o]=null;continue}const e=Ya(s,t,n,r,void 0);i.has(e)&&i.add(a),a[o]=e}return i.has(a)?a:e}for(const s of t.selections){let t;if(r&&i.add(a),s.kind===Pt.FIELD){const o=Lo(s),l=s.selectionSet;if(t=a[o]||e[o],void 0===t)continue;if(l&&null!==t){const a=Ya(e[o],l,n,r,void 0);i.has(a)&&(t=a)}a[o]=t}if(s.kind!==Pt.INLINE_FRAGMENT||s.typeCondition&&!n.cache.fragmentMatches(s,e.__typename)||(t=Ya(e,s.selectionSet,n,r,o)),s.kind===Pt.FRAGMENT_SPREAD){const r=s.name.value,i=n.fragmentMap[r]||(n.fragmentMap[r]=n.cache.lookupFragment(r));Gt(i,39,r);const a=wi(s);"mask"!==a&&(t=Ya(e,i.selectionSet,n,"migrate"===a,o))}i.has(t)&&i.add(a)}return"__typename"in e&&!("__typename"in a)&&(a.__typename=e.__typename),Object.keys(a).length!==Object.keys(e).length&&i.add(a),i.has(a)?a:e}function Qa(e){return 7===e||8===e}function Ka(e){return!Qa(e)}function Xa(e){return!!e.errors?.length}function Ja(e,t=()=>{}){return n=>new xt(r=>{let o=t();return n.subscribe({next(t){let n;try{n=e(t,o)}catch(e){r.error(e)}void 0!==n&&r.next(n)},error(e){r.error(e)},complete(){r.complete()}})})}function Za(e){const t={data:e.data};return e.error&&(t.error=e.error),t}function es(e){let t=!1;return Mt(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value),t))return Lt}}}),t}function ts(e,t){bn(t);const n=ns(""),r=ns(""),o=e=>{for(let t,o=0;o<e.length&&(t=e[o]);++o)if(!ti(t)){if(t.kind===Pt.OPERATION_DEFINITION)return n(t.name&&t.name.value);if(t.kind===Pt.FRAGMENT_DEFINITION)return r(t.name.value)}return Gt.error(14),null};let i=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===Pt.OPERATION_DEFINITION&&++i;const a=function(e){const t=new Map,n=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))}),e=>{let r=t.get(e.name.value);return!r&&n.size&&n.forEach((t,n)=>{n(e)&&(r=t)}),r}}(e),s=e=>Oi(e)&&e.map(a).some(e=>e&&e.remove),l=new Map;let c=!1;const u={enter(e){if(s(e.directives))return c=!0,null}},d=Mt(t,{Field:u,InlineFragment:u,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,n,r,i){const a=o(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,n,r,i){if(s(e.directives))return c=!0,null;const a=o(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,n,r){l.set(JSON.stringify(r),e)},leave:(e,t,n,o)=>e===l.get(JSON.stringify(o))?e:i>0&&e.selectionSet.selections.every(e=>e.kind===Pt.FIELD&&"__typename"===e.name.value)?(r(e.name.value).removed=!0,c=!0,null):void 0},Directive:{leave(e){if(a(e))return c=!0,null}}});if(!c)return t;const p=e=>(e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{p(r(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),f=new Set;d.definitions.forEach(e=>{e.kind===Pt.OPERATION_DEFINITION?p(n(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{f.add(e)}):e.kind!==Pt.FRAGMENT_DEFINITION||0!==i||r(e.name.value).removed||f.add(e.name.value)}),f.forEach(e=>{p(r(e)).fragmentSpreads.forEach(e=>{f.add(e)})});const h={enter(e){if(t=e.name.value,!f.has(t)||r(t).removed)return null;var t}};return function(e){return rs(En(e)||function(e){Gt("Document"===e.kind,6),Gt(e.definitions.length<=1,7);const t=e.definitions[0];return Gt("FragmentDefinition"===t.kind,8),t}(e),Io(Oo(e)))?null:e}(Mt(d,{FragmentSpread:h,FragmentDefinition:h,OperationDefinition:{leave(e){if(e.variableDefinitions){const t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}))}function ns(e){const t=new Map;return function(n=e){let r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function rs(e,t){return!e||e.selectionSet.selections.every(e=>e.kind===Pt.FRAGMENT_SPREAD&&rs(t[e.name.value],t))}var os;!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e[e.streaming=9]="streaming"}(os||(os={}));var is=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return Fe(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(to);function as(e){return e.catch(()=>{}),e}const{assign:ss,hasOwnProperty:ls}=Object,cs={loading:!0,networkStatus:os.loading,data:void 0,dataState:"empty",partial:!0},us={loading:!1,networkStatus:os.ready,data:void 0,dataState:"empty",partial:!0};class ds{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:n=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:r="cache-first"}={}}=e.defaultOptions,{fetchPolicy:o=r,initialFetchPolicy:i=("standby"===o?r:o)}=t;t[Si]&&(Gt("standby"===o,82),this.variablesUnknown=!0),this.lastQuery=n,this.options={...t,initialFetchPolicy:i,fetchPolicy:o,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const a=En(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new is({query:this.query,variables:this.variables,result:cs,meta:{}});const e=this.subject.pipe(Zr({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),Ja(({query:e,variables:t,result:n,meta:r},o)=>{const{shouldEmit:i}=r;if(n===cs&&(o.previous=void 0,o.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===i)return;if(1===i)return l();const{previous:a,previousVariables:s}=o;if(a){const r=this.queryManager.getDocumentInfo(e),o=this.queryManager.dataMasking,i=o?r.nonReactiveQuery:e;if((o||r.hasNonreactiveDirective?Fo(i,a,n,t):An(a,n))&&An(s,t))return}if(3!==i||this.options.notifyOnNetworkStatusChange&&!An(a,n))return l();function l(){return o.previous=n,o.previousVariables=t,n}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new to,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;!this.queryManager.prioritizeCacheValues||"network-only"!==t&&"cache-and-network"!==t||(t="cache-first");const n=()=>{const e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?os.ready:os.loading,partial:!e.complete})};switch(t){case"cache-only":return{...n(),loading:!1,networkStatus:os.ready};case"cache-first":return n();case"cache-and-network":return{...n(),loading:!0,networkStatus:os.loading};case"standby":return us;default:return cs}}resubscribeCache(){const{variables:e,fetchPolicy:t}=this.options,n=this.query,r="standby"===t||"no-cache"===t||this.waitForNetworkResult,o=!ps({query:n,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((r||o)&&this.unsubscribeFromCache?.(),r||!o)return;const i={query:n,variables:e,optimistic:!0,watcher:this,callback:e=>{const t=this.queryManager.getDocumentInfo(n);if((t.hasClientExports||t.hasForcedResolvers)&&(i.lastDiff=void 0),i.lastOwnDiff===e)return;const{result:r}=this.subject.getValue();(e.complete||!r.error&&r!==cs&&r!==us)&&(An(r.data,e.result)||this.scheduleNotify())}},a=this.cache.watch(i);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:n,variables:e})}stableLastResult;getCurrentResult(){const{result:e}=this.subject.getValue();let t=e.networkStatus===os.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===cs&&(t=this.getInitialResult()),An(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){const{fetchPolicy:t}=this.options,n={pollInterval:0};return n.fetchPolicy="no-cache"===t?"no-cache":"network-only",e&&!An(this.variables,e)&&(n.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(n,{newNetworkStatus:os.refetch})}fetchMore({query:e,variables:t,context:n,errorPolicy:r,updateQuery:o}){Gt("cache-only"!==this.options.fetchPolicy,84,kt(this.query,"(anonymous)"));const i={...ei(this.options,{errorPolicy:"none"},{query:e,context:n,errorPolicy:r}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};i.query=this.transformDocument(i.query),this.lastQuery=e?this.transformDocument(this.options.query):i.query;let a=!1;const s="no-cache"!==this.options.fetchPolicy;s||Gt(o,85);const{finalize:l,pushNotification:c}=this.pushOperation(os.fetchMore);c({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});const{promise:u,operator:d}=fs(),{observable:p}=this.queryManager.fetchObservableWithInfo(i,{networkStatus:os.fetchMore,exposeExtensions:!0}),f=p.pipe(d,Pa(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{a=!1;const t=e.value,n=t[Ti];if(Qa(e.value.networkStatus)&&l(),s){const e=this.getCacheDiff();this.cache.batch({update:e=>{o?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:n},e=>o(e,{fetchMoreResult:t.data,variables:i.variables})):e.writeQuery({query:i.query,variables:i.variables,data:t.data,extensions:n})},onWatchUpdated:(n,r)=>{if(n.watcher===this&&!An(r.result,e.result)){a=!0;const e=this.getCurrentResult();Ka(t.networkStatus)&&c({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===os.error?os.ready:t.networkStatus,loading:!1,data:r.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{const e=this.getCurrentResult(),n=o(e.data,{fetchMoreResult:t.data,variables:i.variables});c({kind:"N",value:{...e,networkStatus:os.ready,loading:!1,data:n,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return as(u.then(e=>Za(this.maskResult(e))).finally(()=>{if(f.unsubscribe(),l(),s&&!a){const e=this.getCurrentResult();"streaming"===e.dataState?c({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:os.ready}}):c({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){const t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{const{updateQuery:n,onError:r}=e,{error:o}=t;o?r?r(o):Gt.error(86,o):n&&this.updateQuery((e,r)=>n(e,{subscriptionData:t,...r}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){const t=ei(this.options,e||{});ss(this.options,t),this.updatePolling()}async setVariables(e){return e=this.getVariablesWithDefaults(e),An(this.variables,e)?Za(this.getCurrentResult()):(this.options.variables=e,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:os.setVariables}):Za(this.getCurrentResult()))}updateQuery(e){const{queryManager:t}=this,{result:n,complete:r}=this.getCacheDiff({optimistic:!1}),o=e(n,{variables:this.variables,complete:!!r,previousData:n});o&&(this.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){const{fetchPolicy:n="cache-first",initialFetchPolicy:r=n}=t;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,n,{reason:e,options:t,observable:this,initialFetchPolicy:r}):t.fetchPolicy="variables-changed"===e?r:t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,n,r){const o=this.options.fetchPolicy;e.context??={};let i=!1;let{observable:a,fromLink:s}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:n,onCacheHit:()=>{i=!0},fetchQueryOperator:e=>new xt(n=>{try{return e.subscribe({next(e){i=!0,n.next(e)},error:e=>n.error(e),complete:()=>n.complete()})}finally{i||(u.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:l,variables:c,meta:{shouldEmit:3,fetchPolicy:o}}))}}),observableQuery:this});const{query:l,variables:c}=this,u={abort:()=>{p.unsubscribe()},query:l,variables:c};this.activeOperations.add(u);let d=t==os.refetch||t==os.setVariables;a=a.pipe(r,yo());const p=a.pipe(Zr({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?u.override=t:delete u.override},finalize:()=>this.activeOperations.delete(u)})).subscribe({next:e=>{const t={};d&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(d=!1,t.shouldEmit=1),this.input.next({...e,query:l,variables:c,meta:t})}});return{fromLink:s,subscription:p,observable:a}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;const{pollingInfo:e,options:{fetchPolicy:t,pollInterval:n}}=this,r=()=>{const{options:e}=this;return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(r())return void this.cancelPolling();if(e?.interval===n)return;(e||(this.pollingInfo={})).interval=n;const o=()=>{if(r())return this.cancelPolling();this.pollingInfo&&(Ka(this.networkStatus)||this.options.skipPollAttempt?.()?i():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:os.poll}).then(i,i))},i=()=>{const e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(o,e.interval))};i()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:n}=t||{};this.queryManager.obsQueries.add(this);const r=n===os.refetch||n===os.poll,o=this.variables,i=this.options.fetchPolicy,a=ei(this.options,e||{});this.variablesUnknown&&="standby"===a.fetchPolicy;const s=r?a:ss(this.options,a),l=this.transformDocument(s.query);this.lastQuery=l,e&&"variables"in e&&(s.variables=this.getVariablesWithDefaults(e.variables)),r||(this.updatePolling(),!e||!e.variables||An(e.variables,o)||"standby"===s.fetchPolicy||s.fetchPolicy!==i&&"function"!=typeof s.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",s),void 0===n&&(n=os.setVariables)));const c=this.networkStatus;n||(n=os.loading,c!==os.loading&&e?.variables&&!An(e.variables,o)&&(n=os.setVariables),"standby"===s.fetchPolicy&&(n=os.ready)),"standby"===s.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();const{promise:u,operator:d}=fs("standby"===s.fetchPolicy?{data:void 0}:void 0),{subscription:p,observable:f,fromLink:h}=this.fetch(s,n,l,d);r||!h&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=p);const m=Object.assign(as(u.then(e=>Za(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{const e=f.subscribe({}),t=()=>e.unsubscribe();return u.then(t,t),m}});return m}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){const t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){const e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}const{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){const e=this.getCacheDiff();An(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:os.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1;const{query:n,variables:r}=this,o=()=>{this.activeOperations.delete(i)},i={override:e,abort:()=>{t=!0,o()},query:n,variables:r};return this.activeOperations.add(i),{finalize:o,pushNotification:(e,o)=>{t||this.input.next({...e,query:n,variables:r,meta:{...o}})}}}calculateNetworkStatus(e){if(e===os.streaming)return e;const t=Array.from(this.activeOperations.values()).reverse().find(e=>ps(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){const e="cache-only"===this.options.fetchPolicy;this.setResult(e?us:cs,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=Ja(e=>{const{query:t,meta:n}=e;if("setResult"===e.source)return{query:t,variables:this.variables,result:e.value,meta:n};if("C"===e.kind)return;const r="resolvedVariables"in e?e.resolvedVariables:void 0;if(e.query!==this.query)return;if(!An(r,this.variables)){if(!An(e.variables,this.variables))return;r&&(this.options.variables=r,this.resubscribeCache())}const o=this.variables;let i;const a=this.subject.getValue();if("cache"===e.source){if(i=e.value,i.networkStatus===os.ready&&i.partial&&(!this.options.returnPartialData||a.result.networkStatus===os.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),i="E"===e.kind?{...ps(a,e)||r&&An(r,a.variables)?a.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:os.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===i.dataState&&(i.dataState="complete"),i.error&&(n.shouldEmit=1);else if("newNetworkStatus"===e.source){const t=ps(a,e)?a.result:this.getInitialResult(n.fetchPolicy),{resetError:r}=e.value,o=r?void 0:t.error,s=o?os.error:os.ready;i={...t,error:o,networkStatus:s}}return Gt(i),i.error||delete i.error,i.networkStatus=this.calculateNetworkStatus(i.networkStatus),i.loading=Ka(i.networkStatus),i=this.maskResult(i),void 0!==a.result.data&&i.data!==a.result.data&&An(i.data,a.result.data)&&(i.data=a.result.data),{query:t,variables:o,result:i,meta:n}});reobserveCacheFirst(){const{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(n,r){return this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(n,r):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function ps(e,t){return!!(e&&t&&e.query===t.query&&An(e.variables,t.variables))}function fs(e){let t,n,r=e;return{promise:new Promise((e,r)=>{t=e,n=r}),operator:Zr({next(e){if("E"===e.kind)return n(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(r=e.value)},finalize:()=>{if(r)t(r);else{const e="The operation was aborted.",t="AbortError";n("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(new Error(e),{name:t}))}}})}}const hs={},ms=new WeakMap;function gs(e,t){const n=e[t];"function"==typeof n&&(e[t]=function(){return ms.set(e,(ms.get(e)+1)%1e15),n.apply(this,arguments)})}const ys=new WeakMap;class vs{cache;queryManager;id;observableQuery;incremental;constructor(e,t){const n=this.cache=e.cache,r=(ys.get(e)||0)+1;ys.set(e,r),this.id=r+"",this.observableQuery=t,this.queryManager=e,ms.has(n)||(ms.set(n,0),gs(n,"evict"),gs(n,"modify"),gs(n,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){const{lastWrite:n}=this;return!(n&&n.dmCount===ms.get(this.cache)&&An(t,n.variables)&&An(e.data,n.result.data)&&e.extensions?.[ki]===n.result.extensions?.[ki])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,n){const{incrementalHandler:r}=this.queryManager;return r.isIncrementalResult(t)?(this.incremental||=r.startRequest({query:n}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:n,errorPolicy:r,cacheWriteBehavior:o}){const i={query:t,variables:n,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();const a=0===o,s=a?void 0:this.cache.diff(i);let l=this.maybeHandleIncrementalResult(s?.result,e,t);if(a)return l;if(bs(l,r)){let e=!1;this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)},update:r=>{if(this.shouldWrite(l,n))r.writeQuery({query:t,data:l.data,variables:n,overwrite:1===o,extensions:l.extensions}),e=!0,this.lastWrite={result:l,variables:n,dmCount:ms.get(this.cache)};else if(s&&s.complete)return void(l={...l,data:s.result});const a=r.diff(i);a.complete&&(l={...l,data:a.result})}})}else this.lastWrite=void 0;return l}markMutationResult(e,t,n=this.cache){const r=[],o=0===t.cacheWriteBehavior;let i=this.maybeHandleIncrementalResult(o?void 0:n.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(i={...i,errors:[]}),Xa(i)&&"none"===t.errorPolicy)return Promise.resolve(i);const a=()=>({...i,dataState:this.hasNext?"streaming":"complete"});if(!o&&bs(i,t.errorPolicy)){r.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:i.extensions});const{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{const n=t&&t.queryName;if(!n||!Object.hasOwnProperty.call(e,n))return;const o=e[n],{query:i,variables:s}=t,{result:l,complete:c}=t.getCacheDiff({optimistic:!1});if(c&&l){const e=o(l,{mutationResult:a(),queryName:i&&kt(i)||void 0,queryVariables:s});e&&r.push({result:e,dataId:"ROOT_QUERY",query:i,variables:s})}})}let s=t.refetchQueries;if("function"==typeof s&&(s=s(a())),r.length>0||(s||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){const e=[];if(this.queryManager.refetchQueries({updateCache:e=>{o||r.forEach(t=>e.write(t));const{update:n}=t;if(n){if(!o){const n=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});n.complete&&(i={...i,data:n.result})}this.hasNext||n(e,i,{context:t.context,variables:t.variables})}o||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:n})=>"__typename"===t?e:n})},include:s,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>i)}return Promise.resolve(i)}markMutationOptimistic(e,t){const n="function"==typeof e?e(t.variables,{IGNORE:hs}):e;return n!==hs&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:n},t,e)}catch(e){Gt.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:n,errorPolicy:r,cacheWriteBehavior:o}){0!==o&&(bs(e,r)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:n,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function bs(e,t="none"){const n="ignore"===t||"all"===t;let r=!Xa(e);return!r&&n&&e.data&&(r=!0),r}class Es{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){const t=new wr(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const n=e.documentTransform;this.documentTransform=n?t.concat(n).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches(qt(90))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:n,updateQueries:r,refetchQueries:o=[],awaitRefetchQueries:i=!1,update:a,onQueryUpdated:s,fetchPolicy:l,errorPolicy:c,keepRootFields:u,context:d}){const p=new vs(this);e=this.cache.transformForLink(this.transform(e));const{hasClientExports:f}=this.getDocumentInfo(e);t=this.getVariables(e,t),f&&(t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:d}));const h=this.mutationStore&&(this.mutationStore[p.id]={mutation:e,variables:t,loading:!0,error:null}),m=n&&p.markMutationOptimistic(n,{document:e,variables:t,cacheWriteBehavior:"no-cache"===l?0:2,errorPolicy:c,context:d,updateQueries:r,update:a,keepRootFields:u});return this.broadcastQueries(),new Promise((f,g)=>{const y={};return this.getObservableFromLink(e,{...d,optimisticResponse:m?n:void 0},t,l,{},!1).observable.pipe(xs(),wa(n=>{const f={...n};return Na(p.markMutationResult(f,{document:e,variables:t,cacheWriteBehavior:"no-cache"===l?0:2,errorPolicy:c,context:d,update:a,updateQueries:r,awaitRefetchQueries:i,refetchQueries:o,removeOptimistic:m?p.id:void 0,onQueryUpdated:s,keepRootFields:u}))})).pipe(Jr(e=>{if(Xa(e)&&"none"===c)throw new za(Ts(e));return h&&(h.loading=!1,h.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!p.hasNext){const n={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:y})};Xa(t)&&(n.error=new za(t)),Object.keys(t.extensions||{}).length&&(n.extensions=t.extensions),f(n)}},error:e=>(h&&(h.loading=!1,h.error=e),m&&this.cache.removeOptimistic(p.id),this.broadcastQueries(),"ignore"===c?f({data:void 0}):"all"===c?f({data:void 0,error:e}):void g(e))})})}fetchQuery(e,t){return bn(e.query,Rt.QUERY),(async()=>{return n=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(Ja(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return Za(e.value)}})),o="object"==typeof(r={defaultValue:{data:void 0}}),new Promise(function(e,t){var i,a=!1;n.subscribe({next:function(e){i=e,a=!0},error:t,complete:function(){a?e(i):o?e(r.defaultValue):t(new Ca)}})});var n,r,o})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new gn(Zt["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){const{transformCache:t}=this;if(!t.has(e)){const n=En(e),r={hasClientExports:ma(["client","export"],e,!0),hasForcedResolvers:es(e),hasNonreactiveDirective:ma(["nonreactive"],e),hasIncrementalDirective:ma(["defer"],e),nonReactiveQuery:ws(e),clientQuery:ma(["client"],e)?e:null,serverQuery:ts([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:na(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,r)}const n=t.get(e);if(n.violation)throw n.violation;return n}getVariables(e,t){const n=this.getDocumentInfo(e).defaultVars,r=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?n[e]:t]);return{...n,...Object.fromEntries(r)}}watchQuery(e){bn(e.query,Rt.QUERY);const t=this.transform(e.query);void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0);return new ds({queryManager:this,options:e,transformedQuery:t})}query(e){const t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(n=>({...n,data:this.maskOperation({document:t,data:n?.data,fetchPolicy:e.fetchPolicy})}))}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches(qt(92)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){const t=new Set,n=new Map,r=new Map,o=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)n.set(e,e),r.set(e,!1);else if(Yo(t=e)&&"Document"===t.kind&&Array.isArray(t.definitions)){const t=qr(this.transform(e));n.set(t,kt(e)),r.set(t,!1)}else Yo(e)&&e.query&&o.add(e);var t}),this.obsQueries.forEach(n=>{const o=qr(this.transform(n.options.query));if("all"===e)return void t.add(n);const{queryName:i,options:{fetchPolicy:a}}=n;"active"===e&&"standby"===a||("active"===e||i&&r.has(i)||o&&r.has(o))&&(t.add(n),i&&r.set(i,!0),o&&r.set(o,!0))}),o.size&&o.forEach(e=>{const n=new ds({queryManager:this,options:{...va(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(n)}),t}refetchObservableQueries(e=!1){const t=[];return this.getObservableQueries(e?"all":"active").forEach(n=>{const{fetchPolicy:r}=n.options;!e&&"standby"===r||"cache-only"===r||t.push(n.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let{query:t,variables:n}=e;const{fetchPolicy:r="cache-first",errorPolicy:o="none",context:i={},extensions:a={}}=e;let s;bn(t,Rt.SUBSCRIPTION),t=this.transform(t),n=this.getVariables(t,n);const l=(this.getDocumentInfo(t).hasClientExports?Na(this.localState.getExportedVariables({client:this.client,document:t,variables:n,context:i})):Da(n)).pipe(wa(e=>{const{observable:n,restart:l}=this.getObservableFromLink(t,i,e,r,a),c=new vs(this);return s=l,n.pipe(Jr(n=>{c.markSubscriptionResult(n,{document:t,variables:e,errorPolicy:o,cacheWriteBehavior:"no-cache"===r?0:2});const i={data:n.data??void 0};return Xa(n)?i.error=new za(n):function(e){return"extensions"in e&&Ha.is(e.extensions[Ga])}(n)&&(i.error=n.extensions[Ga],delete n.extensions[Ga]),n.extensions&&Object.keys(n.extensions).length&&(i.extensions=n.extensions),i.error&&"none"===o&&(i.data=void 0),"ignore"===o&&delete i.error,i}),Ra(e=>Da("ignore"===o?{data:void 0}:{data:void 0,error:e})),Pa(e=>!(!e.data&&!e.error)))}));return Object.assign(l,{restart:()=>s?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new on(!1);getObservableFromLink(e,t,n,r,o,i=t?.queryDeduplication??this.queryDeduplication){let a={};const{serverQuery:s,clientQuery:l,operationType:c,hasIncrementalDirective:u}=this.getDocumentInfo(e),d=kt(e),p={client:this.client};if(s){const{inFlightLinkObservables:h,link:m}=this;try{const g=this.incrementalHandler.prepareRequest({query:s,variables:n,context:{...this.defaultContext,...t,queryDeduplication:i},extensions:o});function y(e){return new xt(t=>{function n(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let r=n();return a.restart||=()=>{r.unsubscribe(),r=n()},()=>{r.unsubscribe(),a.restart=void 0}})}if(t=g.context,i){const v=qr(s),b=Sr(n);a=h.lookup(v,b),a.observable||(a.observable=ya(m,g,p).pipe(y,(f=()=>{h.peek(v,b)===a&&h.remove(v,b)},Qr(function(e,t){try{e.subscribe(t)}finally{t.add(f)}})),c===Rt.SUBSCRIPTION?yo():bo({refCount:!0})))}else a.observable=ya(m,g,p).pipe(y)}catch(E){a.observable=Ea(()=>E)}}else a.observable=Da({data:{}});var f;if(l){const{operation:x}=En(e);0,Gt(!u,97,x[0].toUpperCase()+x.slice(1),d??"(anonymous)"),a.observable=a.observable.pipe(wa(e=>Na(this.localState.execute({client:this.client,document:l,remoteResult:e,context:t,variables:n,fetchPolicy:r}))))}return{restart:()=>a.restart?.(),observable:a.observable.pipe(Ra(e=>{throw function(e){Wa.add(e)}(e=function(e){return function(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)}(e)?e:"string"==typeof e?new Error(e,{cause:e}):new $a(e)}(e)),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:n,observableQuery:r,exposeExtensions:o}){const{errorPolicy:i}=e,a=this.cache.transformForLink(e.query);return this.getObservableFromLink(a,e.context,e.variables,e.fetchPolicy).observable.pipe(Jr(s=>{const l=t.markQueryResult(s,{...e,document:a,cacheWriteBehavior:n}),c=Xa(l);if(c&&"none"===i)throw t.resetLastWrite(),r?.resetNotifications(),new za(Ts(l));const u={data:l.data,...t.hasNext?{loading:!0,networkStatus:os.streaming,dataState:"streaming",partial:!0}:{dataState:l.data?"complete":"empty",loading:!1,networkStatus:os.ready,partial:!l.data}};return o&&"extensions"in l&&(u[Ti]=l.extensions),c&&("none"===i&&(u.data=void 0,u.dataState="empty"),"ignore"!==i&&(u.error=new za(Ts(l)),"streaming"!==u.dataState&&(u.networkStatus=os.error))),u}),Ra(e=>{if("none"===i)throw t.resetLastWrite(),r?.resetNotifications(),e;const n={data:void 0,dataState:"empty",loading:!1,networkStatus:os.ready,partial:!0};return"ignore"!==i&&(n.error=e,n.networkStatus=os.error),Da(n)}))}fetchObservableWithInfo(e,{networkStatus:t=os.loading,query:n=e.query,fetchQueryOperator:r=e=>e,onCacheHit:o=()=>{},observableQuery:i,exposeExtensions:a}){const s=this.getVariables(n,e.variables);let{fetchPolicy:l="cache-first",errorPolicy:c="none",returnPartialData:u=!1,notifyOnNetworkStatusChange:d=!0,context:p={}}=e;!this.prioritizeCacheValues||"network-only"!==l&&"cache-and-network"!==l||(l="cache-first");const f=Object.assign({},e,{query:n,variables:s,fetchPolicy:l,errorPolicy:c,returnPartialData:u,notifyOnNetworkStatusChange:d,context:p}),h=new vs(this,i),m=n=>{f.variables=n;const s="no-cache"===l?0:t===os.refetch&&"merge"!==f.refetchWritePolicy?1:2,c=this.fetchQueryByPolicy(f,{queryInfo:h,cacheWriteBehavior:s,onCacheHit:o,observableQuery:i,exposeExtensions:a});return c.observable=c.observable.pipe(r),"standby"!==f.fetchPolicy&&i?.applyNextFetchPolicy("after-fetch",e),c},g=()=>{this.fetchCancelFns.delete(h.id)};this.fetchCancelFns.set(h.id,e=>{y.next({kind:"E",error:e,source:"network"})});const y=new to;let v,b;if(this.getDocumentInfo(f.query).hasClientExports)v=Na(this.localState.getExportedVariables({client:this.client,document:f.query,variables:f.variables,context:f.context})).pipe(wa(e=>m(e).observable)),b=!0;else{const e=m(f.variables);b=e.fromLink,v=e.observable}return{observable:new xt(e=>{e.add(g),v.subscribe(e),y.subscribe(e)}).pipe(yo()),fromLink:b}}refetchQueries({updateCache:e,include:t,optimistic:n=!1,removeOptimistic:r=(n?Ut("refetchQueries"):void 0),onQueryUpdated:o}){const i=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;const t=e.getCurrentResult();i.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});const a=new Map;if(e){const t=new Set;this.cache.batch({update:e,optimistic:n&&r||!1,removeOptimistic:r,onWatchUpdated(e,n,r){const s=e.watcher;if(s instanceof ds&&!t.has(s)){if(t.add(s),o){i.delete(s);let e=o(s,n,r);return!0===e&&(e=s.refetch().retain()),!1!==e&&a.set(s,e),e}null!==o&&"cache-only"!==s.options.fetchPolicy&&i.set(s,{oq:s,lastDiff:r,diff:n})}}})}return i.size&&i.forEach(({oq:e,lastDiff:t,diff:n})=>{let r;o&&(n||(n=e.getCacheDiff()),r=o(e,n,t)),o&&!0!==r||(r=e.refetch().retain()),!1!==r&&a.set(e,r)}),r&&this.cache.removeOptimistic(r),a}noCacheWarningsByCause=new WeakSet;maskOperation(e){const{document:t,data:n}=e;return this.dataMasking?function(e,t,n){const r=En(t);return Gt(r,43),null==e?e:qa(e,r.selectionSet,{operationType:r.operation,operationName:r.name?.value,fragmentMap:Io(Oo(t)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(n,t,this.cache):n}maskFragment(e){const{data:t,fragment:n,fragmentName:r}=e;return this.dataMasking?function(e,t,n,r){const o=t.definitions.filter(e=>e.kind===Pt.FRAGMENT_DEFINITION);void 0===r&&(Gt(1===o.length,41,o.length),r=o[0].name.value);const i=o.find(e=>e.name.value===r);return Gt(!!i,42,r),null==e||An(e,{})?e:qa(e,i.selectionSet,{operationType:"fragment",operationName:i.name.value,fragmentMap:Io(Oo(t)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(t,n,this.cache,r):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:n,errorPolicy:r,returnPartialData:o,context:i},{cacheWriteBehavior:a,onCacheHit:s,queryInfo:l,observableQuery:c,exposeExtensions:u}){const d=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),p=(a,l)=>{const c=a.result;const u=e=>(a.complete||o||(e=void 0),{data:e,dataState:a.complete?"complete":e?"partial":"empty",loading:Ka(l),networkStatus:l,partial:!a.complete}),d=e=>Da({kind:"N",value:u(e),resolvedVariables:t,source:"cache"});return(a.complete||o)&&this.getDocumentInfo(e).hasForcedResolvers?(s(),Na(this.localState.execute({client:this.client,document:e,remoteResult:c?{data:c}:void 0,context:i,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:n}).then(e=>({kind:"N",value:u(e.data||void 0),resolvedVariables:t,source:"cache"})))):"none"===r&&l===os.refetch&&a.missing?d(void 0):d(c||void 0)},f=()=>this.getResultsFromLink({query:e,variables:t,context:i,fetchPolicy:n,errorPolicy:r},{cacheWriteBehavior:a,queryInfo:l,observableQuery:c,exposeExtensions:u}).pipe(xs(),Qr(function(e,t){e.subscribe(Kr(t,function(e){t.next(La.createNext(e))},function(){t.next(La.createComplete()),t.complete()},function(e){t.next(La.createError(e)),t.complete()}))}),Jr(e=>({...e,resolvedVariables:t,source:"network"})));switch(n){default:case"cache-first":{const e=d();return e.complete?{fromLink:!1,observable:p(e,os.ready)}:o?{fromLink:!0,observable:Fa(p(e,os.loading),f())}:{fromLink:!0,observable:f()}}case"cache-and-network":{const e=d();return e.complete||o?{fromLink:!0,observable:Fa(p(e,os.loading),f())}:{fromLink:!0,observable:f()}}case"cache-only":return{fromLink:!1,observable:Fa(p(d(),os.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:f()};case"standby":return{fromLink:!1,observable:Tt}}}}function xs(){let e=!1;return Zr({next(){e=!0},complete(){Gt(e,101)}})}function ws(e){return Mt(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:Pt.DIRECTIVE,name:{kind:Pt.NAME,value:"nonreactive"}}]}}})}function Ts(e){if(null==e.extensions?.[ki])return e;const{extensions:{[ki]:t,...n},...r}=e;return Object.keys(n).length>0&&(r.extensions=n),r}class ks{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){const{cache:t,documentTransform:n,ssrMode:r=!1,ssrForceFetchDelay:o=0,queryDeduplication:i=!0,defaultOptions:a,defaultContext:s,assumeImmutableResults:l=t.assumeImmutableResults,localState:c,devtools:u,dataMasking:d,link:p,incrementalHandler:f=new ga,experiments:h=[],refetchEventManager:m}=e;this.link=p,this.cache=t,this.queryDeduplication=i,this.defaultOptions=a||{},this.devtoolsConfig={...u,enabled:u?.enabled??!1},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version="4.2.12",this.queryManager=new Es({client:this,defaultOptions:this.defaultOptions,defaultContext:s,documentTransform:n,queryDeduplication:i,ssrMode:r,dataMasking:!!d,clientOptions:e,incrementalHandler:f,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:c}),this.prioritizeCacheValues=r||o>0,o&&setTimeout(()=>{this.prioritizeCacheValues=!1},o),this.devtoolsConfig.enabled&&this.connectToDevTools(),h.forEach(t=>t.call(this,e)),this.refetchEventManager=m,this.refetchEventManager?.connect(this)}connectToDevTools(){if("undefined"==typeof window)return;const e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(e){const{refetchOn:t}=e;if(this.defaultOptions.watchQuery){const n=this.defaultOptions.watchQuery.refetchOn;let r;t&&"object"==typeof t&&("object"==typeof n?r={...n,...t}:null!=n&&(r=e=>{const r=t[e.source]??n;return"function"==typeof r?r(e):r})),e=va(this.defaultOptions.watchQuery,e),r&&(e.refetchOn=r)}return this.queryManager.watchQuery(e)}query=e=>(this.defaultOptions.query&&(e=va(this.defaultOptions.query,e)),this.queryManager.query(e));mutate=e=>{const t=va(ei({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return bn(t.mutation,Rt.MUTATION),this.queryManager.mutate(t)};subscribe(e){const t={},n=this.queryManager.startGraphQLSubscription(e),r=n.pipe(Jr(n=>({...n,data:this.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,cause:t})})));return Object.assign(r,{restart:n.restart})}readQuery(e,t=!!e.optimistic){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){const t=this.queryManager.dataMasking,n=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return n}readFragment(e,t=!!e.optimistic){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){const t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){const t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return ya(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){const t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((e,t)=>{n.push(t),r.push(e)});const o=Promise.all(r);return o.queries=n,o.results=r,o.catch(e=>{}),o}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new wr(ba);transform(e,t=!1){const n=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(n):n}}const Ss=Symbol.for("__APOLLO_CONTEXT__");function As(){Gt(!0,37);let e=u().createContext[Ss];return e||(Object.defineProperty(u().createContext,Ss,{value:e=u().createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}const Ns=({client:e,children:t})=>{const n=As(),r=u().useContext(n),o=u().useMemo(()=>({...r,client:e||r.client}),[r,e]);return Gt(o.client,38),u().createElement(n.Provider,{value:o},t)};function _s(e){return"object"==typeof e&&null!==e}function Cs(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const Is=/\r\n|[\n\r]/g;function Os(e,t){let n=0,r=1;for(const o of e.body.matchAll(Is)){if("number"==typeof o.index||Cs(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function Ds(e){return Rs(e.source,Os(e.source,e.start))}function Rs(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,a=t.line+i,s=1===t.line?n:0,l=t.column+s,c=`${e.name}:${a}:${l}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[o];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return c+Ps([[`${a} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return c+Ps([[a-1+" |",u[o-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,u[o+1]]])}function Ps(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class Ls extends Error{constructor(e,...t){var n,r,o;const{nodes:i,source:a,positions:s,path:l,originalError:c,extensions:u}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=c?c:void 0,this.nodes=Ms(Array.isArray(i)?i:i?[i]:void 0);const d=Ms(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==d||null===(r=d[0])||void 0===r?void 0:r.source,this.positions=null!=s?s:null==d?void 0:d.map(e=>e.start),this.locations=s&&a?s.map(e=>Os(a,e)):null==d?void 0:d.map(e=>Os(e.source,e.start));const p=_s(null==c?void 0:c.extensions)?null==c?void 0:c.extensions:void 0;this.extensions=null!==(o=null!=u?u:p)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ls):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+Ds(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+Rs(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Ms(e){return void 0===e||0===e.length?void 0:e}function Fs(e,t){const[n,r]=t?[e,t]:[void 0,e];let o=" Did you mean ";n&&(o+=n+" ");const i=r.map(e=>`"${e}"`);switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,5),s=a.pop();return o+a.join(", ")+", or "+s+"?"}function js(e){return e}const Bs=globalThis.process&&!0?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=At(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};function Us(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function zs(e,t,n){const r=Object.create(null);for(const o of e)r[t(o)]=n(o);return r}function Vs(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Hs(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let o=e.charCodeAt(n),i=t.charCodeAt(r);if(Ws(o)&&Ws(i)){let a=0;do{++n,a=10*a+o-$s,o=e.charCodeAt(n)}while(Ws(o)&&a>0);let s=0;do{++r,s=10*s+i-$s,i=t.charCodeAt(r)}while(Ws(i)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(o<i)return-1;if(o>i)return 1;++n,++r}}return e.length-t.length}const $s=48,Gs=57;function Ws(e){return!isNaN(e)&&$s<=e&&e<=Gs}function qs(e,t){const n=Object.create(null),r=new Ys(e),o=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,o);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{const r=n[e]-n[t];return 0!==r?r:Hs(e,t)})}class Ys{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Qs(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=Qs(n),o=this._inputArray;if(r.length<o.length){const e=r;r=o,o=e}const i=r.length,a=o.length;if(i-a>t)return;const s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=i;e++){const n=s[(e-1)%3],i=s[e%3];let l=i[0]=e;for(let t=1;t<=a;t++){const a=r[e-1]===o[t-1]?0:1;let c=Math.min(n[t]+1,i[t-1]+1,n[t-1]+a);if(e>1&&t>1&&r[e-1]===o[t-2]&&r[e-2]===o[t-1]){const n=s[(e-2)%3][t-2];c=Math.min(c,n+1)}c<l&&(l=c),i[t]=c}if(l>t)return}const l=s[i%3][a];return l<=t?l:void 0}}function Qs(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function Ks(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}function Xs(e,t){switch(e.kind){case Pt.NULL:return null;case Pt.INT:return parseInt(e.value,10);case Pt.FLOAT:return parseFloat(e.value);case Pt.STRING:case Pt.ENUM:case Pt.BOOLEAN:return e.value;case Pt.LIST:return e.values.map(e=>Xs(e,t));case Pt.OBJECT:return zs(e.fields,e=>e.name.value,e=>Xs(e.value,t));case Pt.VARIABLE:return null==t?void 0:t[e.name.value]}}function Js(e){if(null!=e||St(!1,"Must provide name."),"string"==typeof e||St(!1,"Expected name to be a string."),0===e.length)throw new Ls("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!Rr(e.charCodeAt(t)))throw new Ls(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!Dr(e.charCodeAt(0)))throw new Ls(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Zs(e){if("true"===e||"false"===e||"null"===e)throw new Ls(`Enum values cannot be named: ${e}`);return Js(e)}var el;function tl(e){return nl(e)||rl(e)||ol(e)||il(e)||al(e)||sl(e)||ll(e)||cl(e)}function nl(e){return Bs(e,kl)}function rl(e){return Bs(e,Sl)}function ol(e){return Bs(e,Rl)}function il(e){return Bs(e,Pl)}function al(e){return Bs(e,Ml)}function sl(e){return Bs(e,Bl)}function ll(e){return Bs(e,ml)}function cl(e){return Bs(e,gl)}function ul(e){return nl(e)||al(e)||sl(e)||yl(e)&&ul(e.ofType)}function dl(e){return nl(e)||rl(e)||ol(e)||il(e)||al(e)||yl(e)&&dl(e.ofType)}function pl(e){return nl(e)||al(e)}function fl(e){return rl(e)||ol(e)||il(e)}function hl(e){return ol(e)||il(e)}class ml{constructor(e){tl(e)||St(!1,`Expected ${At(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class gl{constructor(e){vl(e)||St(!1,`Expected ${At(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function yl(e){return ll(e)||cl(e)}function vl(e){return tl(e)&&!cl(e)}function bl(e){if(e)return cl(e)?e.ofType:e}function El(e){return nl(e)||rl(e)||ol(e)||il(e)||al(e)||sl(e)}function xl(e){if(e){let t=e;for(;yl(t);)t=t.ofType;return t}}function wl(e){return"function"==typeof e?e():e}function Tl(e){return"function"==typeof e?e():e}class kl{constructor(e){var t,n,r,o;const i=null!==(t=e.parseValue)&&void 0!==t?t:js;this.name=Js(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:js,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>i(Xs(e,t)),this.extensions=Ks(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(o=e.extensionASTNodes)&&void 0!==o?o:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||St(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${At(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||St(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||St(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Sl{constructor(e){var t;this.name=Js(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=Ks(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Nl(e),this._interfaces=()=>Al(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||St(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${At(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Il(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Al(e){var t;const n=wl(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||St(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Nl(e){const t=Tl(e.fields);return Cl(t)||St(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Vs(t,(t,n)=>{var r;Cl(t)||St(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||St(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${At(t.resolve)}.`);const o=null!==(r=t.args)&&void 0!==r?r:{};return Cl(o)||St(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:Js(n),description:t.description,type:t.type,args:_l(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:Ks(t.extensions),astNode:t.astNode}})}function _l(e){return Object.entries(e).map(([e,t])=>({name:Js(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Ks(t.extensions),astNode:t.astNode}))}function Cl(e){return _s(e)&&!Array.isArray(e)}function Il(e){return Vs(e,e=>({description:e.description,type:e.type,args:Ol(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Ol(e){return zs(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Dl(e){return cl(e.type)&&void 0===e.defaultValue}class Rl{constructor(e){var t;this.name=Js(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Ks(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Nl.bind(void 0,e),this._interfaces=Al.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||St(!1,`${this.name} must provide "resolveType" as a function, but got: ${At(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Il(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Pl{constructor(e){var t;this.name=Js(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Ks(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Ll.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||St(!1,`${this.name} must provide "resolveType" as a function, but got: ${At(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ll(e){const t=wl(e.types);return Array.isArray(t)||St(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Ml{constructor(e){var t;this.name=Js(e.name),this.description=e.description,this.extensions=Ks(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:jl(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=jl(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=Us(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));const t=this._valueLookup.get(e);if(void 0===t)throw new Ls(`Enum "${this.name}" cannot represent value: ${At(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=At(e);throw new Ls(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Fl(this,t))}const t=this.getValue(e);if(null==t)throw new Ls(`Value "${e}" does not exist in "${this.name}" enum.`+Fl(this,e));return t.value}parseLiteral(e,t){if(e.kind!==Pt.ENUM){const t=Br(e);throw new Ls(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Fl(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=Br(e);throw new Ls(`Value "${t}" does not exist in "${this.name}" enum.`+Fl(this,t),{nodes:e})}return n.value}toConfig(){const e=zs(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Fl(e,t){return Fs("the enum value",qs(t,e.getValues().map(e=>e.name)))}function jl(e,t){return Cl(t)||St(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(Cl(n)||St(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${At(n)}.`),{name:Zs(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:Ks(n.extensions),astNode:n.astNode}))}class Bl{constructor(e){var t,n;this.name=Js(e.name),this.description=e.description,this.extensions=Ks(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=Ul.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=Vs(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function Ul(e){const t=Tl(e.fields);return Cl(t)||St(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Vs(t,(t,n)=>(!("resolve"in t)||St(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:Js(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Ks(t.extensions),astNode:t.astNode}))}function zl(e){return cl(e.type)&&void 0===e.defaultValue}function Vl(e,t){return e===t||(cl(e)&&cl(t)||!(!ll(e)||!ll(t)))&&Vl(e.ofType,t.ofType)}function Hl(e,t,n){return t===n||(cl(n)?!!cl(t)&&Hl(e,t.ofType,n.ofType):cl(t)?Hl(e,t.ofType,n):ll(n)?!!ll(t)&&Hl(e,t.ofType,n.ofType):!ll(t)&&(hl(n)&&(ol(t)||rl(t))&&e.isSubType(n,t)))}function $l(e,t,n){return t===n||(hl(t)?hl(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!hl(n)&&e.isSubType(n,t))}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(el||(el={}));const Gl=2147483647,Wl=-2147483648,ql=new kl({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=ec(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new Ls(`Int cannot represent non-integer value: ${At(t)}`);if(n>Gl||n<Wl)throw new Ls("Int cannot represent non 32-bit signed integer value: "+At(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new Ls(`Int cannot represent non-integer value: ${At(e)}`);if(e>Gl||e<Wl)throw new Ls(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==Pt.INT)throw new Ls(`Int cannot represent non-integer value: ${Br(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>Gl||t<Wl)throw new Ls(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),Yl=new kl({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=ec(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new Ls(`Float cannot represent non numeric value: ${At(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new Ls(`Float cannot represent non numeric value: ${At(e)}`);return e},parseLiteral(e){if(e.kind!==Pt.FLOAT&&e.kind!==Pt.INT)throw new Ls(`Float cannot represent non numeric value: ${Br(e)}`,e);return parseFloat(e.value)}}),Ql=new kl({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=ec(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new Ls(`String cannot represent value: ${At(e)}`)},parseValue(e){if("string"!=typeof e)throw new Ls(`String cannot represent a non string value: ${At(e)}`);return e},parseLiteral(e){if(e.kind!==Pt.STRING)throw new Ls(`String cannot represent a non string value: ${Br(e)}`,{nodes:e});return e.value}}),Kl=new kl({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=ec(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new Ls(`Boolean cannot represent a non boolean value: ${At(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new Ls(`Boolean cannot represent a non boolean value: ${At(e)}`);return e},parseLiteral(e){if(e.kind!==Pt.BOOLEAN)throw new Ls(`Boolean cannot represent a non boolean value: ${Br(e)}`,{nodes:e});return e.value}}),Xl=new kl({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=ec(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new Ls(`ID cannot represent value: ${At(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new Ls(`ID cannot represent value: ${At(e)}`)},parseLiteral(e){if(e.kind!==Pt.STRING&&e.kind!==Pt.INT)throw new Ls("ID cannot represent a non-string and non-integer value: "+Br(e),{nodes:e});return e.value}}),Jl=Object.freeze([Ql,ql,Yl,Kl,Xl]);function Zl(e){return Jl.some(({name:t})=>e.name===t)}function ec(e){if(_s(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!_s(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function tc(e){return Bs(e,nc)}class nc{constructor(e){var t,n;this.name=Js(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=Ks(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||St(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};_s(r)&&!Array.isArray(r)||St(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=_l(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Ol(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const rc=new nc({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[el.FIELD,el.FRAGMENT_SPREAD,el.INLINE_FRAGMENT],args:{if:{type:new gl(Kl),description:"Included when true."}}}),oc=new nc({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[el.FIELD,el.FRAGMENT_SPREAD,el.INLINE_FRAGMENT],args:{if:{type:new gl(Kl),description:"Skipped when true."}}}),ic=new nc({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[el.FIELD_DEFINITION,el.ARGUMENT_DEFINITION,el.INPUT_FIELD_DEFINITION,el.ENUM_VALUE],args:{reason:{type:Ql,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:"No longer supported"}}}),ac=new nc({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[el.SCALAR],args:{url:{type:new gl(Ql),description:"The URL that specifies the behavior of this scalar."}}}),sc=new nc({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[el.INPUT_OBJECT],args:{}}),lc=Object.freeze([rc,oc,ic,ac,sc]);function cc(e){return lc.some(({name:t})=>t===e.name)}function uc(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function dc(e,t){if(cl(t)){const n=dc(e,t.ofType);return(null==n?void 0:n.kind)===Pt.NULL?null:n}if(null===e)return{kind:Pt.NULL};if(void 0===e)return null;if(ll(t)){const n=t.ofType;if(uc(e)){const t=[];for(const r of e){const e=dc(r,n);null!=e&&t.push(e)}return{kind:Pt.LIST,values:t}}return dc(e,n)}if(sl(t)){if(!_s(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=dc(e[r.name],r.type);t&&n.push({kind:Pt.OBJECT_FIELD,name:{kind:Pt.NAME,value:r.name},value:t})}return{kind:Pt.OBJECT,fields:n}}if(pl(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:Pt.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return pc.test(e)?{kind:Pt.INT,value:e}:{kind:Pt.FLOAT,value:e}}if("string"==typeof n)return al(t)?{kind:Pt.ENUM,value:n}:t===Xl&&pc.test(n)?{kind:Pt.INT,value:n}:{kind:Pt.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${At(n)}.`)}Cs(!1,"Unexpected input type: "+At(t))}const pc=/^-?(?:0|[1-9][0-9]*)$/,fc=new Sl({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Ql,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new gl(new ml(new gl(gc))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new gl(gc),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:gc,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:gc,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new gl(new ml(new gl(hc))),resolve:e=>e.getDirectives()}})}),hc=new Sl({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new gl(Ql),resolve:e=>e.name},description:{type:Ql,resolve:e=>e.description},isRepeatable:{type:new gl(Kl),resolve:e=>e.isRepeatable},locations:{type:new gl(new ml(new gl(mc))),resolve:e=>e.locations},args:{type:new gl(new ml(new gl(vc))),args:{includeDeprecated:{type:Kl,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),mc=new Ml({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:el.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:el.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:el.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:el.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:el.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:el.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:el.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:el.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:el.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:el.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:el.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:el.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:el.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:el.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:el.UNION,description:"Location adjacent to a union definition."},ENUM:{value:el.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:el.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:el.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:el.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),gc=new Sl({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new gl(xc),resolve:e=>nl(e)?Ec.SCALAR:rl(e)?Ec.OBJECT:ol(e)?Ec.INTERFACE:il(e)?Ec.UNION:al(e)?Ec.ENUM:sl(e)?Ec.INPUT_OBJECT:ll(e)?Ec.LIST:cl(e)?Ec.NON_NULL:void Cs(!1,`Unexpected type: "${At(e)}".`)},name:{type:Ql,resolve:e=>"name"in e?e.name:void 0},description:{type:Ql,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ql,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ml(new gl(yc)),args:{includeDeprecated:{type:Kl,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rl(e)||ol(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new ml(new gl(gc)),resolve(e){if(rl(e)||ol(e))return e.getInterfaces()}},possibleTypes:{type:new ml(new gl(gc)),resolve(e,t,n,{schema:r}){if(hl(e))return r.getPossibleTypes(e)}},enumValues:{type:new ml(new gl(bc)),args:{includeDeprecated:{type:Kl,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(al(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new ml(new gl(vc)),args:{includeDeprecated:{type:Kl,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(sl(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:gc,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Kl,resolve:e=>{if(sl(e))return e.isOneOf}}})}),yc=new Sl({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new gl(Ql),resolve:e=>e.name},description:{type:Ql,resolve:e=>e.description},args:{type:new gl(new ml(new gl(vc))),args:{includeDeprecated:{type:Kl,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new gl(gc),resolve:e=>e.type},isDeprecated:{type:new gl(Kl),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Ql,resolve:e=>e.deprecationReason}})}),vc=new Sl({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new gl(Ql),resolve:e=>e.name},description:{type:Ql,resolve:e=>e.description},type:{type:new gl(gc),resolve:e=>e.type},defaultValue:{type:Ql,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=dc(n,t);return r?Br(r):null}},isDeprecated:{type:new gl(Kl),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Ql,resolve:e=>e.deprecationReason}})}),bc=new Sl({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new gl(Ql),resolve:e=>e.name},description:{type:Ql,resolve:e=>e.description},isDeprecated:{type:new gl(Kl),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Ql,resolve:e=>e.deprecationReason}})});var Ec;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(Ec||(Ec={}));const xc=new Ml({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Ec.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Ec.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Ec.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Ec.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Ec.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Ec.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Ec.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Ec.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),wc={name:"__schema",type:new gl(fc),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Tc={name:"__type",type:gc,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new gl(Ql),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},kc={name:"__typename",type:new gl(Ql),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Sc=Object.freeze([fc,hc,mc,gc,yc,vc,bc,xc]);function Ac(e){return Sc.some(({name:t})=>e.name===t)}function Nc(e){return Bs(e,_c)}class _c{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,_s(e)||St(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||St(!1,`"types" must be Array if provided but got: ${At(e.types)}.`),!e.directives||Array.isArray(e.directives)||St(!1,`"directives" must be Array if provided but got: ${At(e.directives)}.`),this.description=e.description,this.extensions=Ks(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:lc;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),Cc(t,r);null!=this._queryType&&Cc(this._queryType,r),null!=this._mutationType&&Cc(this._mutationType,r),null!=this._subscriptionType&&Cc(this._subscriptionType,r);for(const e of this._directives)if(tc(e))for(const t of e.args)Cc(t.type,r);Cc(fc,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of r){if(null==e)continue;const t=e.name;if(t||St(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,ol(e)){for(const t of e.getInterfaces())if(ol(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(rl(e))for(const t of e.getInterfaces())if(ol(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case Rt.QUERY:return this.getQueryType();case Rt.MUTATION:return this.getMutationType();case Rt.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return il(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),il(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function Cc(e,t){const n=xl(e);if(!t.has(n))if(t.add(n),il(n))for(const e of n.getTypes())Cc(e,t);else if(rl(n)||ol(n)){for(const e of n.getInterfaces())Cc(e,t);for(const e of Object.values(n.getFields())){Cc(e.type,t);for(const n of e.args)Cc(n.type,t)}}else if(sl(n))for(const e of Object.values(n.getFields()))Cc(e.type,t);return t}function Ic(e){if(function(e){if(!Nc(e))throw new Error(`Expected ${At(e)} to be a GraphQL schema.`)}(e),e.__validationErrors)return e.__validationErrors;const t=new Dc(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!rl(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${At(n)}.`,null!==(r=Rc(t,Rt.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const o=t.getMutationType();var i;o&&!rl(o)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${At(o)}.`,null!==(i=Rc(t,Rt.MUTATION))&&void 0!==i?i:o.astNode);const a=t.getSubscriptionType();var s;a&&!rl(a)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${At(a)}.`,null!==(s=Rc(t,Rt.SUBSCRIPTION))&&void 0!==s?s:a.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(tc(n)){Pc(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args){var t;if(Pc(e,r),ul(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${At(r.type)}.`,r.astNode),Dl(r)&&null!=r.deprecationReason)e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Gc(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${At(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return o;function o(i){if(t[i.name])return;t[i.name]=!0,r[i.name]=n.length;const a=Object.values(i.getFields());for(const t of a)if(cl(t.type)&&sl(t.type.ofType)){const i=t.type.ofType,a=r[i.name];if(n.push(t),void 0===a)o(i);else{const t=n.slice(a),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${i.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[i.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))El(r)?(Ac(r)||Pc(e,r),rl(r)||ol(r)?(Lc(e,r),Mc(e,r)):il(r)?Bc(e,r):al(r)?Uc(e,r):sl(r)&&(zc(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${At(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Oc(e){const t=Ic(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}class Dc{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new Ls(e,{nodes:n}))}getErrors(){return this._errors}}function Rc(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function Pc(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Lc(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var r;if(Pc(e,a),!dl(a.type))e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${At(a.type)}.`,null===(r=a.astNode)||void 0===r?void 0:r.type);for(const n of a.args){const r=n.name;var o,i;if(Pc(e,n),!ul(n.type))e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${At(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type);if(Dl(n)&&null!=n.deprecationReason)e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[Gc(n.astNode),null===(i=n.astNode)||void 0===i?void 0:i.type])}}}function Mc(e,t){const n=Object.create(null);for(const r of t.getInterfaces())ol(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Hc(t,r)):(n[r.name]=!0,jc(e,t,r),Fc(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Hc(t,r)):e.reportError(`Type ${At(t)} must only implement Interface types, it cannot implement ${At(r)}.`,Hc(t,r))}function Fc(e,t,n){const r=t.getFields();for(const l of Object.values(n.getFields())){const c=l.name,u=r[c];if(u){var o,i;if(!Hl(e.schema,u.type,l.type))e.reportError(`Interface field ${n.name}.${c} expects type ${At(l.type)} but ${t.name}.${c} is type ${At(u.type)}.`,[null===(o=l.astNode)||void 0===o?void 0:o.type,null===(i=u.astNode)||void 0===i?void 0:i.type]);for(const r of l.args){const o=r.name,i=u.args.find(e=>e.name===o);var a,s;if(i){if(!Vl(r.type,i.type))e.reportError(`Interface field argument ${n.name}.${c}(${o}:) expects type ${At(r.type)} but ${t.name}.${c}(${o}:) is type ${At(i.type)}.`,[null===(a=r.astNode)||void 0===a?void 0:a.type,null===(s=i.astNode)||void 0===s?void 0:s.type])}else e.reportError(`Interface field argument ${n.name}.${c}(${o}:) expected but ${t.name}.${c} does not provide it.`,[r.astNode,u.astNode])}for(const r of u.args){const o=r.name;!l.args.find(e=>e.name===o)&&Dl(r)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${o} that is missing from the Interface field ${n.name}.${c}.`,[r.astNode,l.astNode])}}else e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes])}}function jc(e,t,n){const r=t.getInterfaces();for(const o of n.getInterfaces())r.includes(o)||e.reportError(o===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${o.name} because it is implemented by ${n.name}.`,[...Hc(n,o),...Hc(t,n)])}function Bc(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const o of n)r[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,$c(t,o.name)):(r[o.name]=!0,rl(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${At(o)}.`,$c(t,String(o))))}function Uc(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)Pc(e,t)}function zc(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const i of n){var r,o;if(Pc(e,i),!ul(i.type))e.reportError(`The type of ${t.name}.${i.name} must be Input Type but got: ${At(i.type)}.`,null===(r=i.astNode)||void 0===r?void 0:r.type);if(zl(i)&&null!=i.deprecationReason)e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[Gc(i.astNode),null===(o=i.astNode)||void 0===o?void 0:o.type]);t.isOneOf&&Vc(t,i,e)}}function Vc(e,t,n){var r;cl(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type);void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Hc(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function $c(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function Gc(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===ic.name)}function Wc(e,t){switch(t.kind){case Pt.LIST_TYPE:{const n=Wc(e,t.type);return n&&new ml(n)}case Pt.NON_NULL_TYPE:{const n=Wc(e,t.type);return n&&new gl(n)}case Pt.NAMED_TYPE:return e.getType(t.name.value)}}class qc{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:Yc,t&&(ul(t)&&this._inputTypeStack.push(t),fl(t)&&this._parentTypeStack.push(t),dl(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case Pt.SELECTION_SET:{const e=xl(this.getType());this._parentTypeStack.push(fl(e)?e:void 0);break}case Pt.FIELD:{const n=this.getParentType();let r,o;n&&(r=this._getFieldDef(t,n,e),r&&(o=r.type)),this._fieldDefStack.push(r),this._typeStack.push(dl(o)?o:void 0);break}case Pt.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case Pt.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(rl(n)?n:void 0);break}case Pt.INLINE_FRAGMENT:case Pt.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?Wc(t,n):xl(this.getType());this._typeStack.push(dl(r)?r:void 0);break}case Pt.VARIABLE_DEFINITION:{const n=Wc(t,e.type);this._inputTypeStack.push(ul(n)?n:void 0);break}case Pt.ARGUMENT:{var n;let t,r;const o=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();o&&(t=o.args.find(t=>t.name===e.name.value),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(ul(r)?r:void 0);break}case Pt.LIST:{const e=bl(this.getInputType()),t=ll(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ul(t)?t:void 0);break}case Pt.OBJECT_FIELD:{const t=xl(this.getInputType());let n,r;sl(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(ul(n)?n:void 0);break}case Pt.ENUM:{const t=xl(this.getInputType());let n;al(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case Pt.SELECTION_SET:this._parentTypeStack.pop();break;case Pt.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Pt.DIRECTIVE:this._directive=null;break;case Pt.OPERATION_DEFINITION:case Pt.INLINE_FRAGMENT:case Pt.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Pt.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Pt.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Pt.LIST:case Pt.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Pt.ENUM:this._enumValue=null}}}function Yc(e,t,n){const r=n.name.value;return r===wc.name&&e.getQueryType()===t?wc:r===Tc.name&&e.getQueryType()===t?Tc:r===kc.name&&fl(t)?kc:rl(t)||ol(t)?t.getFields()[r]:void 0}function Qc(e,t){return{enter(...n){const r=n[0];e.enter(r);const o=jt(t,r.kind).enter;if(o){const i=o.apply(t,n);return void 0!==i&&(e.leave(r),Dt(i)&&e.enter(i)),i}},leave(...n){const r=n[0],o=jt(t,r.kind).leave;let i;return o&&(i=o.apply(t,n)),e.leave(r),i}}}function Kc(e){return e.kind===Pt.OPERATION_DEFINITION||e.kind===Pt.FRAGMENT_DEFINITION}function Xc(e){return e.kind===Pt.SCHEMA_DEFINITION||Jc(e)||e.kind===Pt.DIRECTIVE_DEFINITION}function Jc(e){return e.kind===Pt.SCALAR_TYPE_DEFINITION||e.kind===Pt.OBJECT_TYPE_DEFINITION||e.kind===Pt.INTERFACE_TYPE_DEFINITION||e.kind===Pt.UNION_TYPE_DEFINITION||e.kind===Pt.ENUM_TYPE_DEFINITION||e.kind===Pt.INPUT_OBJECT_TYPE_DEFINITION}function Zc(e){return e.kind===Pt.SCHEMA_EXTENSION||eu(e)}function eu(e){return e.kind===Pt.SCALAR_TYPE_EXTENSION||e.kind===Pt.OBJECT_TYPE_EXTENSION||e.kind===Pt.INTERFACE_TYPE_EXTENSION||e.kind===Pt.UNION_TYPE_EXTENSION||e.kind===Pt.ENUM_TYPE_EXTENSION||e.kind===Pt.INPUT_OBJECT_TYPE_EXTENSION}function tu(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():lc;for(const e of r)t[e.name]=e.args.map(e=>e.name);const o=e.getDocument().definitions;for(const e of o)if(e.kind===Pt.DIRECTIVE_DEFINITION){var i;const n=null!==(i=e.arguments)&&void 0!==i?i:[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){const r=n.name.value,o=t[r];if(n.arguments&&o)for(const t of n.arguments){const n=t.name.value;if(!o.includes(n)){const i=qs(n,o);e.reportError(new Ls(`Unknown argument "${n}" on directive "@${r}".`+Fs(i),{nodes:t}))}}return!1}}}function nu(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():lc;for(const e of r)t[e.name]=e.locations;const o=e.getDocument().definitions;for(const e of o)e.kind===Pt.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,r,o,i,a){const s=n.name.value,l=t[s];if(!l)return void e.reportError(new Ls(`Unknown directive "@${s}".`,{nodes:n}));const c=function(e){const t=e[e.length-1];switch("kind"in t||Cs(!1),t.kind){case Pt.OPERATION_DEFINITION:return function(e){switch(e){case Rt.QUERY:return el.QUERY;case Rt.MUTATION:return el.MUTATION;case Rt.SUBSCRIPTION:return el.SUBSCRIPTION}}(t.operation);case Pt.FIELD:return el.FIELD;case Pt.FRAGMENT_SPREAD:return el.FRAGMENT_SPREAD;case Pt.INLINE_FRAGMENT:return el.INLINE_FRAGMENT;case Pt.FRAGMENT_DEFINITION:return el.FRAGMENT_DEFINITION;case Pt.VARIABLE_DEFINITION:return el.VARIABLE_DEFINITION;case Pt.SCHEMA_DEFINITION:case Pt.SCHEMA_EXTENSION:return el.SCHEMA;case Pt.SCALAR_TYPE_DEFINITION:case Pt.SCALAR_TYPE_EXTENSION:return el.SCALAR;case Pt.OBJECT_TYPE_DEFINITION:case Pt.OBJECT_TYPE_EXTENSION:return el.OBJECT;case Pt.FIELD_DEFINITION:return el.FIELD_DEFINITION;case Pt.INTERFACE_TYPE_DEFINITION:case Pt.INTERFACE_TYPE_EXTENSION:return el.INTERFACE;case Pt.UNION_TYPE_DEFINITION:case Pt.UNION_TYPE_EXTENSION:return el.UNION;case Pt.ENUM_TYPE_DEFINITION:case Pt.ENUM_TYPE_EXTENSION:return el.ENUM;case Pt.ENUM_VALUE_DEFINITION:return el.ENUM_VALUE;case Pt.INPUT_OBJECT_TYPE_DEFINITION:case Pt.INPUT_OBJECT_TYPE_EXTENSION:return el.INPUT_OBJECT;case Pt.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||Cs(!1),t.kind===Pt.INPUT_OBJECT_TYPE_DEFINITION?el.INPUT_FIELD_DEFINITION:el.ARGUMENT_DEFINITION}default:Cs(!1,"Unexpected kind: "+At(t.kind))}}(a);c&&!l.includes(c)&&e.reportError(new Ls(`Directive "@${s}" may not be used on ${c}.`,{nodes:n}))}}}function ru(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const t of e.getDocument().definitions)Jc(t)&&(r[t.name.value]=!0);const o=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,i,a,s,l){const c=t.name.value;if(!n[c]&&!r[c]){var u;const n=null!==(u=l[2])&&void 0!==u?u:a,r=null!=n&&("kind"in(d=n)&&(Xc(d)||Zc(d)));if(r&&ou.includes(c))return;const i=qs(c,r?ou.concat(o):o);e.reportError(new Ls(`Unknown type "${c}".`+Fs(i),{nodes:t}))}var d}}}const ou=[...Jl,...Sc].map(e=>e.name);function iu(e){switch(e.kind){case Pt.OBJECT:return{...e,fields:(t=e.fields,t.map(e=>({...e,value:iu(e.value)})).sort((e,t)=>Hs(e.name.value,t.name.value)))};case Pt.LIST:return{...e,values:e.values.map(iu)};case Pt.INT:case Pt.FLOAT:case Pt.STRING:case Pt.BOOLEAN:case Pt.NULL:case Pt.ENUM:case Pt.VARIABLE:return e}var t}function au(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+au(t)).join(" and "):e}function su(e,t,n,r,o,i,a,s){if(r.has(a,s,i))return;r.add(a,s,i);const l=e.getFragment(s);if(!l)return;const[c,u]=hu(e,n,l);if(a!==c){cu(e,t,n,r,o,i,a,c);for(const s of u)su(e,t,n,r,o,i,a,s)}}function lu(e,t,n,r,o,i,a,s){if(a===s)return;if(o.has(a,s,i))return;o.add(a,s,i);const l=e.getFragment(a),c=e.getFragment(s);if(!l||!c)return;const[u,d]=hu(e,n,l),[p,f]=hu(e,n,c);cu(e,t,n,r,o,i,u,p);for(const s of f)lu(e,t,n,r,o,i,a,s);for(const a of d)lu(e,t,n,r,o,i,a,s)}function cu(e,t,n,r,o,i,a,s){for(const[l,c]of Object.entries(a)){const a=s[l];if(a)for(const s of c)for(const c of a){const a=uu(e,n,r,o,i,l,s,c);a&&t.push(a)}}}function uu(e,t,n,r,o,i,a,s){const[l,c,u]=a,[d,p,f]=s,h=o||l!==d&&rl(l)&&rl(d);if(!h){const e=c.name.value,t=p.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[c],[p]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const o=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{const t=e.value,n=o.get(e.name.value);return void 0!==n&&du(t)===du(n)})}(c,p))return[[i,"they have differing arguments"],[c],[p]]}const m=null==u?void 0:u.type,g=null==f?void 0:f.type;if(m&&g&&pu(m,g))return[[i,`they return conflicting types "${At(m)}" and "${At(g)}"`],[c],[p]];const y=c.selectionSet,v=p.selectionSet;if(y&&v){const o=function(e,t,n,r,o,i,a,s,l){const c=[],[u,d]=fu(e,t,i,a),[p,f]=fu(e,t,s,l);cu(e,c,t,n,r,o,u,p);for(const i of f)su(e,c,t,n,r,o,u,i);for(const i of d)su(e,c,t,n,r,o,p,i);for(const i of d)for(const a of f)lu(e,c,t,n,r,o,i,a);return c}(e,t,n,r,h,xl(m),y,xl(g),v);return function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(o,i,c,p)}}function du(e){return Br(iu(e))}function pu(e,t){return ll(e)?!ll(t)||pu(e.ofType,t.ofType):!!ll(t)||(cl(e)?!cl(t)||pu(e.ofType,t.ofType):!!cl(t)||!(!pl(e)&&!pl(t))&&e!==t)}function fu(e,t,n,r){const o=t.get(r);if(o)return o;const i=Object.create(null),a=Object.create(null);mu(e,n,r,i,a);const s=[i,Object.keys(a)];return t.set(r,s),s}function hu(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const o=Wc(e.getSchema(),n.typeCondition);return fu(e,t,o,n.selectionSet)}function mu(e,t,n,r,o){for(const i of n.selections)switch(i.kind){case Pt.FIELD:{const e=i.name.value;let n;(rl(t)||ol(t))&&(n=t.getFields()[e]);const o=i.alias?i.alias.value:e;r[o]||(r[o]=[]),r[o].push([t,i,n]);break}case Pt.FRAGMENT_SPREAD:o[i.name.value]=!0;break;case Pt.INLINE_FRAGMENT:{const n=i.typeCondition,a=n?Wc(e.getSchema(),n):t;mu(e,a,i.selectionSet,r,o);break}}}class gu{constructor(){this._data=new Map}has(e,t,n){var r;const o=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==o&&(!!n||n===o)}add(e,t,n){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class yu{constructor(){this._orderedPairSet=new gu}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}}const vu={[Pt.SCALAR_TYPE_DEFINITION]:Pt.SCALAR_TYPE_EXTENSION,[Pt.OBJECT_TYPE_DEFINITION]:Pt.OBJECT_TYPE_EXTENSION,[Pt.INTERFACE_TYPE_DEFINITION]:Pt.INTERFACE_TYPE_EXTENSION,[Pt.UNION_TYPE_DEFINITION]:Pt.UNION_TYPE_EXTENSION,[Pt.ENUM_TYPE_DEFINITION]:Pt.ENUM_TYPE_EXTENSION,[Pt.INPUT_OBJECT_TYPE_DEFINITION]:Pt.INPUT_OBJECT_TYPE_EXTENSION};function bu(e){var t;const n=Object.create(null),r=e.getSchema(),o=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:lc;for(const e of o)n[e.name]=Us(e.args.filter(Dl),e=>e.name);const i=e.getDocument().definitions;for(const e of i)if(e.kind===Pt.DIRECTIVE_DEFINITION){var a;const t=null!==(a=e.arguments)&&void 0!==a?a:[];n[e.name.value]=Us(t.filter(Eu),e=>e.name.value)}return{Directive:{leave(t){const r=t.name.value,o=n[r];if(o){var i;const n=null!==(i=t.arguments)&&void 0!==i?i:[],a=new Set(n.map(e=>e.name.value));for(const[n,i]of Object.entries(o))if(!a.has(n)){const o=tl(i.type)?At(i.type):Br(i.type);e.reportError(new Ls(`Directive "@${r}" argument "${n}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}}}}function Eu(e){return e.type.kind===Pt.NON_NULL_TYPE&&null==e.defaultValue}function xu(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function wu(e,t,n){return{prev:e,key:t,typename:n}}function Tu(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function ku(e,t,n=Su){return Au(e,t,n,void 0)}function Su(e,t,n){let r="Invalid value "+At(t);throw e.length>0&&(r+=` at "value${xu(e)}"`),n.message=r+": "+n.message,n}function Au(e,t,n,r){if(cl(t))return null!=e?Au(e,t.ofType,n,r):void n(Tu(r),e,new Ls(`Expected non-nullable type "${At(t)}" not to be null.`));if(null==e)return null;if(ll(t)){const o=t.ofType;return uc(e)?Array.from(e,(e,t)=>{const i=wu(r,t,void 0);return Au(e,o,n,i)}):[Au(e,o,n,r)]}if(sl(t)){if(!_s(e)||Array.isArray(e))return void n(Tu(r),e,new Ls(`Expected type "${t.name}" to be an object.`));const o={},i=t.getFields();for(const a of Object.values(i)){const i=e[a.name];if(void 0!==i)o[a.name]=Au(i,a.type,n,wu(r,a.name,t.name));else if(void 0!==a.defaultValue)o[a.name]=a.defaultValue;else if(cl(a.type)){const t=At(a.type);n(Tu(r),e,new Ls(`Field "${a.name}" of required type "${t}" was not provided.`))}}for(const o of Object.keys(e))if(!i[o]){const i=qs(o,Object.keys(t.getFields()));n(Tu(r),e,new Ls(`Field "${o}" is not defined by type "${t.name}".`+Fs(i)))}if(t.isOneOf){const i=Object.keys(o);1!==i.length&&n(Tu(r),e,new Ls(`Exactly one key must be specified for OneOf type "${t.name}".`));const a=i[0],s=o[a];null===s&&n(Tu(r).concat(a),s,new Ls(`Field "${a}" must be non-null.`))}return o}if(pl(t)){let o;try{o=t.parseValue(e)}catch(o){return void n(Tu(r),e,o instanceof Ls?o:new Ls(`Expected type "${t.name}". `+o.message,{originalError:o}))}return void 0===o&&n(Tu(r),e,new Ls(`Expected type "${t.name}".`)),o}Cs(!1,"Unexpected input type: "+At(t))}function Nu(e,t,n){if(e){if(e.kind===Pt.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const o=n[r];if(null===o&&cl(t))return;return o}if(cl(t)){if(e.kind===Pt.NULL)return;return Nu(e,t.ofType,n)}if(e.kind===Pt.NULL)return null;if(ll(t)){const r=t.ofType;if(e.kind===Pt.LIST){const t=[];for(const o of e.values)if(_u(o,n)){if(cl(r))return;t.push(null)}else{const e=Nu(o,r,n);if(void 0===e)return;t.push(e)}return t}const o=Nu(e,r,n);if(void 0===o)return;return[o]}if(sl(t)){if(e.kind!==Pt.OBJECT)return;const r=Object.create(null),o=Us(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=o[e.name];if(!t||_u(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(cl(e.type))return;continue}const i=Nu(t.value,e.type,n);if(void 0===i)return;r[e.name]=i}if(t.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if(pl(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}Cs(!1,"Unexpected input type: "+At(t))}}function _u(e,t){return e.kind===Pt.VARIABLE&&(null==t||void 0===t[e.name.value])}function Cu(e,t,n,r){const o=[],i=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const o={};for(const i of t){const t=i.variable.name.value,a=Wc(e,i.type);if(!ul(a)){const e=Br(i.type);r(new Ls(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:i.type}));continue}if(!Du(n,t)){if(i.defaultValue)o[t]=Nu(i.defaultValue,a);else if(cl(a)){const e=At(a);r(new Ls(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:i}))}continue}const s=n[t];if(null===s&&cl(a)){const e=At(a);r(new Ls(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:i}));continue}o[t]=ku(s,a,(e,n,o)=>{let a=`Variable "$${t}" got invalid value `+At(n);e.length>0&&(a+=` at "${t}${xu(e)}"`),r(new Ls(a+"; "+o.message,{nodes:i,originalError:o}))})}return o}(e,t,n,e=>{if(null!=i&&o.length>=i)throw new Ls("Too many errors processing variables, error limit reached. Execution aborted.");o.push(e)});if(0===o.length)return{coerced:r}}catch(e){o.push(e)}return{errors:o}}function Iu(e,t,n){var r;const o={},i=Us(null!==(r=t.arguments)&&void 0!==r?r:[],e=>e.name.value);for(const r of e.args){const e=r.name,a=r.type,s=i[e];if(!s){if(void 0!==r.defaultValue)o[e]=r.defaultValue;else if(cl(a))throw new Ls(`Argument "${e}" of required type "${At(a)}" was not provided.`,{nodes:t});continue}const l=s.value;let c=l.kind===Pt.NULL;if(l.kind===Pt.VARIABLE){const t=l.name.value;if(null==n||!Du(n,t)){if(void 0!==r.defaultValue)o[e]=r.defaultValue;else if(cl(a))throw new Ls(`Argument "${e}" of required type "${At(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}c=null==n[t]}if(c&&cl(a))throw new Ls(`Argument "${e}" of non-null type "${At(a)}" must not be null.`,{nodes:l});const u=Nu(l,a,n);if(void 0===u)throw new Ls(`Argument "${e}" has invalid value ${Br(l)}.`,{nodes:l});o[e]=u}return o}function Ou(e,t,n){var r;const o=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(o)return Iu(e,o,n)}function Du(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ru(e,t,n,r,o){const i=new Map;return Pu(e,t,n,r,o,i,new Set),i}function Pu(e,t,n,r,o,i,a){for(const s of o.selections)switch(s.kind){case Pt.FIELD:{if(!Lu(n,s))continue;const e=Fu(s),t=i.get(e);void 0!==t?t.push(s):i.set(e,[s]);break}case Pt.INLINE_FRAGMENT:if(!Lu(n,s)||!Mu(e,s,r))continue;Pu(e,t,n,r,s.selectionSet,i,a);break;case Pt.FRAGMENT_SPREAD:{const o=s.name.value;if(a.has(o)||!Lu(n,s))continue;a.add(o);const l=t[o];if(!l||!Mu(e,l,r))continue;Pu(e,t,n,r,l.selectionSet,i,a);break}}}function Lu(e,t){const n=Ou(oc,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=Ou(rc,t,e);return!1!==(null==r?void 0:r.if)}function Mu(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=Wc(e,r);return o===n||!!hl(o)&&e.isSubType(o,n)}function Fu(e){return e.alias?e.alias.value:e.name.value}function ju(e,t){const n=new Map;for(const r of e){const e=t(r),o=n.get(e);void 0===o?n.set(e,[r]):o.push(r)}return n}function Bu(e){return{Field:t,Directive:t};function t(t){var n;const r=ju(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value);for(const[t,n]of r)n.length>1&&e.reportError(new Ls(`There can be only one argument named "${t}".`,{nodes:n.map(e=>e.name)}))}}function Uu(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():lc;for(const e of r)t[e.name]=!e.isRepeatable;const o=e.getDocument().definitions;for(const e of o)e.kind===Pt.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const i=Object.create(null),a=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===Pt.SCHEMA_DEFINITION||n.kind===Pt.SCHEMA_EXTENSION)r=i;else if(Jc(n)||eu(n)){const e=n.name.value;r=a[e],void 0===r&&(a[e]=r=Object.create(null))}else r=Object.create(null);for(const o of n.directives){const n=o.name.value;t[n]&&(r[n]?e.reportError(new Ls(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],o]})):r[n]=o)}}}}function zu(e,t){return!!(rl(e)||ol(e)||sl(e))&&null!=e.getFields()[t]}function Vu(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||Cs(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new Ls(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function Hu(e,t){const n=e.getInputType();if(!n)return;const r=xl(n);if(!pl(r)){const r=At(n);return void e.reportError(new Ls(`Expected value of type "${r}", found ${Br(t)}.`,{nodes:t}))}try{if(void 0===r.parseLiteral(t,void 0)){const r=At(n);e.reportError(new Ls(`Expected value of type "${r}", found ${Br(t)}.`,{nodes:t}))}}catch(r){const o=At(n);r instanceof Ls?e.reportError(r):e.reportError(new Ls(`Expected value of type "${o}", found ${Br(t)}; `+r.message,{nodes:t,originalError:r}))}}function $u(e,t,n,r,o){if(cl(r)&&!cl(t)){if(!(null!=n&&n.kind!==Pt.NULL)&&!(void 0!==o))return!1;return Hl(e,t,r.ofType)}return Hl(e,t,r)}const Gu=Object.freeze([function(e){function t(n,r=Object.create(null),o=0){if(n.kind===Pt.FRAGMENT_SPREAD){const i=n.name.value;if(!0===r[i])return!1;const a=e.getFragment(i);if(!a)return!1;try{return r[i]=!0,t(a,r,o)}finally{r[i]=void 0}}if(n.kind===Pt.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++o>=3)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,o))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new Ls("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}]),Wu=Object.freeze([function(e){return{Document(t){for(const n of t.definitions)if(!Kc(n)){const t=n.kind===Pt.SCHEMA_DEFINITION||n.kind===Pt.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new Ls(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}},function(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new Ls(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}},function(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===Pt.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new Ls("This anonymous operation must be the only defined operation.",{nodes:n}))}}},function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const o=t.name?t.name.value:null,i=Object.create(null),a=e.getDocument(),s=Object.create(null);for(const e of a.definitions)e.kind===Pt.FRAGMENT_DEFINITION&&(s[e.name.value]=e);const l=Ru(n,s,i,r,t.selectionSet);if(l.size>1){const t=[...l.values()].slice(1).flat();e.reportError(new Ls(null!=o?`Subscription "${o}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of l.values()){t[0].name.value.startsWith("__")&&e.reportError(new Ls(null!=o?`Subscription "${o}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}},ru,function(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=Wc(e.getSchema(),n);if(t&&!fl(t)){const t=Br(n);e.reportError(new Ls(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=Wc(e.getSchema(),t.typeCondition);if(n&&!fl(n)){const n=Br(t.typeCondition);e.reportError(new Ls(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}},function(e){return{VariableDefinition(t){const n=Wc(e.getSchema(),t.type);if(void 0!==n&&!ul(n)){const n=t.variable.name.value,r=Br(t.type);e.reportError(new Ls(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}},function(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(pl(xl(n))){if(r){const o=t.name.value,i=At(n);e.reportError(new Ls(`Field "${o}" must not have a selection since type "${i}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=t.name.value,o=At(n);e.reportError(new Ls(`Field "${r}" of type "${o}" must have at least one field selected.`,{nodes:t}))}}else{const r=t.name.value,o=At(n);e.reportError(new Ls(`Field "${r}" of type "${o}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}},function(e){return{Field(t){const n=e.getParentType();if(n){if(!e.getFieldDef()){const r=e.getSchema(),o=t.name.value;let i=Fs("to use an inline fragment on",function(e,t,n){if(!hl(t))return[];const r=new Set,o=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),o[a.name]=1;for(const e of a.getInterfaces()){var i;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(i=o[e.name])&&void 0!==i?i:0)+1)}}return[...r].sort((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:ol(t)&&e.isSubType(t,n)?-1:ol(n)&&e.isSubType(n,t)?1:Hs(t.name,n.name)}).map(e=>e.name)}(r,n,o));""===i&&(i=Fs(function(e,t){if(rl(e)||ol(e)){return qs(t,Object.keys(e.getFields()))}return[]}(n,o))),e.reportError(new Ls(`Cannot query field "${o}" on type "${n.name}".`+i,{nodes:t}))}}}}},function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new Ls(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}},function(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new Ls(`Unknown fragment "${n}".`,{nodes:t.name}))}}},function(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new Ls(`Fragment "${n}" is never used.`,{nodes:t}))}}}}},function(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(fl(n)&&fl(r)&&!$l(e.getSchema(),n,r)){const o=At(r),i=At(n);e.reportError(new Ls(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=function(e,t){const n=e.getFragment(t);if(n){const t=Wc(e.getSchema(),n.typeCondition);if(fl(t))return t}}(e,n),o=e.getParentType();if(r&&o&&!$l(e.getSchema(),r,o)){const i=At(o),a=At(r);e.reportError(new Ls(`Fragment "${n}" cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}}}},function(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(i){if(t[i.name.value])return;const a=i.name.value;t[a]=!0;const s=e.getFragmentSpreads(i.selectionSet);if(0!==s.length){r[a]=n.length;for(const t of s){const i=t.name.value,a=r[i];if(n.push(t),void 0===a){const t=e.getFragment(i);t&&o(t)}else{const t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new Ls(`Cannot spread fragment "${i}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}}},function(e){return{OperationDefinition(t){var n;const r=ju(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value);for(const[t,n]of r)n.length>1&&e.reportError(new Ls(`There can be only one variable named "$${t}".`,{nodes:n.map(e=>e.variable.name)}))}}},function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:o}of r){const r=o.name.value;!0!==t[r]&&e.reportError(new Ls(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}},function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)r[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==r[t]&&e.reportError(new Ls(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}},nu,Uu,function(e){return{...tu(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),o=e.getParentType();if(!n&&r&&o){const n=t.name.value,i=qs(n,r.args.map(e=>e.name));e.reportError(new Ls(`Unknown argument "${n}" on field "${o.name}.${r.name}".`+Fs(i),{nodes:t}))}}}},Bu,function(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!ll(bl(e.getParentInputType())))return Hu(e,t),!1},ObjectValue(t){const n=xl(e.getInputType());if(!sl(n))return Hu(e,t),!1;const r=Us(t.fields,e=>e.name.value);for(const o of Object.values(n.getFields())){if(!r[o.name]&&zl(o)){const r=At(o.type);e.reportError(new Ls(`Field "${n.name}.${o.name}" of required type "${r}" was not provided.`,{nodes:t}))}}n.isOneOf&&function(e,t,n,r){var o;const i=Object.keys(r);if(1!==i.length)return void e.reportError(new Ls(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const a=null===(o=r[i[0]])||void 0===o?void 0:o.value;a&&a.kind!==Pt.NULL||e.reportError(new Ls(`Field "${n.name}.${i[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){const n=xl(e.getParentInputType());if(!e.getInputType()&&sl(n)){const r=qs(t.name.value,Object.keys(n.getFields()));e.reportError(new Ls(`Field "${t.name.value}" is not defined by type "${n.name}".`+Fs(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();cl(n)&&e.reportError(new Ls(`Expected value of type "${At(n)}", found ${Br(t)}.`,{nodes:t}))},EnumValue:t=>Hu(e,t),IntValue:t=>Hu(e,t),FloatValue:t=>Hu(e,t),StringValue:t=>Hu(e,t),BooleanValue:t=>Hu(e,t)}},function(e){return{...bu(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const o=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const n of r.args)if(!o.has(n.name)&&Dl(n)){const o=At(n.type);e.reportError(new Ls(`Field "${r.name}" argument "${n.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}}},function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:n,type:o,defaultValue:i,parentType:a}of r){const r=n.name.value,s=t[r];if(s&&o){const t=e.getSchema(),l=Wc(t,s.type);if(l&&!$u(t,l,s.defaultValue,o,i)){const t=At(l),i=At(o);e.reportError(new Ls(`Variable "$${r}" of type "${t}" used in position expecting type "${i}".`,{nodes:[s,n]}))}sl(a)&&a.isOneOf&&vl(l)&&e.reportError(new Ls(`Variable "$${r}" is of type "${l}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[s,n]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}},function(e){const t=new gu,n=new yu,r=new Map;return{SelectionSet(o){const i=function(e,t,n,r,o,i){const a=[],[s,l]=fu(e,t,o,i);if(function(e,t,n,r,o,i){for(const[a,s]of Object.entries(i))if(s.length>1)for(let i=0;i<s.length;i++)for(let l=i+1;l<s.length;l++){const c=uu(e,n,r,o,!1,a,s[i],s[l]);c&&t.push(c)}}(e,a,t,n,r,s),0!==l.length)for(let o=0;o<l.length;o++){su(e,a,t,n,r,!1,s,l[o]);for(let i=o+1;i<l.length;i++)lu(e,a,t,n,r,!1,l[o],l[i])}return a}(e,r,t,n,e.getParentType(),o);for(const[[t,n],r,o]of i){const i=au(n);e.reportError(new Ls(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}},Vu,...Gu]),qu=Object.freeze([function(e){var t,n,r;const o=e.getSchema(),i=null!==(t=null!==(n=null!==(r=null==o?void 0:o.astNode)&&void 0!==r?r:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){i?e.reportError(new Ls("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new Ls("Must provide only one schema definition.",{nodes:t})),++a)}}},function(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const i=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of i){const o=t.operation,i=n[o];r[o]?e.reportError(new Ls(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t})):i?e.reportError(new Ls(`There can be only one ${o} type in schema.`,{nodes:[i,t]})):n[o]=t}return!1}},function(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const o=r.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new Ls(`There can be only one type named "${o}".`,{nodes:[t[o],r.name]})):t[o]=r.name,!1;e.reportError(new Ls(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}},function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(t){var o;const i=t.name.value;r[i]||(r[i]=Object.create(null));const a=null!==(o=t.values)&&void 0!==o?o:[],s=r[i];for(const t of a){const r=t.name.value,o=n[i];al(o)&&o.getValue(r)?e.reportError(new Ls(`Enum value "${i}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new Ls(`Enum value "${i}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}},function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(t){var o;const i=t.name.value;r[i]||(r[i]=Object.create(null));const a=null!==(o=t.fields)&&void 0!==o?o:[],s=r[i];for(const t of a){const r=t.name.value;zu(n[i],r)?e.reportError(new Ls(`Field "${i}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new Ls(`Field "${i}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}},function(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,o=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of o){var i;n(`${r}.${e.name.value}`,null!==(i=e.arguments)&&void 0!==i?i:[])}return!1}function n(t,n){const r=ju(n,e=>e.name.value);for(const[n,o]of r)o.length>1&&e.reportError(new Ls(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:o.map(e=>e.name)}));return!1}},function(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const o=r.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new Ls(`There can be only one directive named "@${o}".`,{nodes:[t[o],r.name]})):t[o]=r.name,!1;e.reportError(new Ls(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}},ru,nu,Uu,function(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)Jc(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const o=r.name.value,i=n[o],a=null==t?void 0:t.getType(o);let s;if(i?s=vu[i.kind]:a&&(s=function(e){if(nl(e))return Pt.SCALAR_TYPE_EXTENSION;if(rl(e))return Pt.OBJECT_TYPE_EXTENSION;if(ol(e))return Pt.INTERFACE_TYPE_EXTENSION;if(il(e))return Pt.UNION_TYPE_EXTENSION;if(al(e))return Pt.ENUM_TYPE_EXTENSION;if(sl(e))return Pt.INPUT_OBJECT_TYPE_EXTENSION;Cs(!1,"Unexpected type: "+At(e))}(a)),s){if(s!==r.kind){const t=function(e){switch(e){case Pt.SCALAR_TYPE_EXTENSION:return"scalar";case Pt.OBJECT_TYPE_EXTENSION:return"object";case Pt.INTERFACE_TYPE_EXTENSION:return"interface";case Pt.UNION_TYPE_EXTENSION:return"union";case Pt.ENUM_TYPE_EXTENSION:return"enum";case Pt.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Cs(!1,"Unexpected kind: "+At(e))}}(r.kind);e.reportError(new Ls(`Cannot extend non-${t} type "${o}".`,{nodes:i?[i,r]:r}))}}else{const i=qs(o,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new Ls(`Cannot extend type "${o}" because it is not defined.`+Fs(i),{nodes:r.name}))}}},tu,Bu,Vu,bu]);class Yu{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===Pt.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===Pt.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let o;for(;o=r.pop();)for(const e of this.getFragmentSpreads(o)){const o=e.name.value;if(!0!==n[o]){n[o]=!0;const e=this.getFragment(o);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class Qu extends Yu{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Ku extends Yu{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new qc(this._schema);Mt(e,Qc(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function Xu(e,t,n=qu){const r=[],o=new Qu(e,t,e=>{r.push(e)});return Mt(e,Ft(n.map(e=>e(o)))),r}function Ju(e){return"function"==typeof(null==e?void 0:e.then)}function Zu(e){return Promise.all(Object.values(e)).then(t=>{const n=Object.create(null);for(const[r,o]of Object.keys(e).entries())n[o]=t[r];return n})}class ed extends Error{constructor(e){super("Unexpected error value: "+At(e)),this.name="NonErrorThrown",this.thrownValue=e}}function td(e,t,n){var r;const o=(i=e)instanceof Error?i:new ed(i);var i,a;return a=o,Array.isArray(a.path)?o:new Ls(o.message,{nodes:null!==(r=o.nodes)&&void 0!==r?r:t,source:o.source,positions:o.positions,path:n,originalError:o})}const nd=function(e){let t;return function(n,r,o){void 0===t&&(t=new WeakMap);let i=t.get(n);void 0===i&&(i=new WeakMap,t.set(n,i));let a=i.get(r);void 0===a&&(a=new WeakMap,i.set(r,a));let s=a.get(o);return void 0===s&&(s=e(n,r,o),a.set(o,s)),s}}((e,t,n)=>function(e,t,n,r,o){const i=new Map,a=new Set;for(const s of o)s.selectionSet&&Pu(e,t,n,r,s.selectionSet,i,a);return i}(e.schema,e.fragments,e.variableValues,t,n));function rd(e){arguments.length<2||St(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:o}=e;id(t,n,r);const i=ad(e);if(!("schema"in i))return{errors:i};try{const{operation:e}=i,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new Ls(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const o=Ru(e.schema,e.fragments,e.variableValues,r,t.selectionSet),i=void 0;switch(t.operation){case Rt.QUERY:return sd(e,r,n,i,o);case Rt.MUTATION:return function(e,t,n,r,o){return function(e,t,n){let r=n;for(const n of e)r=Ju(r)?r.then(e=>t(e,n)):t(r,n);return r}(o.entries(),(o,[i,a])=>{const s=wu(r,i,t.name),l=ld(e,t,n,a,s);return void 0===l?o:Ju(l)?l.then(e=>(o[i]=e,o)):(o[i]=l,o)},Object.create(null))}(e,r,n,i,o);case Rt.SUBSCRIPTION:return sd(e,r,n,i,o)}}(i,e,o);return Ju(t)?t.then(e=>od(e,i.errors),e=>(i.errors.push(e),od(null,i.errors))):od(t,i.errors)}catch(e){return i.errors.push(e),od(null,i.errors)}}function od(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function id(e,t,n){t||St(!1,"Must provide document."),Oc(e),null==n||_s(n)||St(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function ad(e){var t,n,r;const{schema:o,document:i,rootValue:a,contextValue:s,variableValues:l,operationName:c,fieldResolver:u,typeResolver:d,subscribeFieldResolver:p,options:f}=e;let h;const m=Object.create(null);for(const e of i.definitions)switch(e.kind){case Pt.OPERATION_DEFINITION:if(null==c){if(void 0!==h)return[new Ls("Must provide operation name if query contains multiple operations.")];h=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===c&&(h=e);break;case Pt.FRAGMENT_DEFINITION:m[e.name.value]=e}if(!h)return null!=c?[new Ls(`Unknown operation named "${c}".`)]:[new Ls("Must provide an operation.")];const g=Cu(o,null!==(n=h.variableDefinitions)&&void 0!==n?n:[],null!=l?l:{},{maxErrors:null!==(r=null==f?void 0:f.maxCoercionErrors)&&void 0!==r?r:50});return g.errors?g.errors:{schema:o,fragments:m,rootValue:a,contextValue:s,operation:h,variableValues:g.coerced,fieldResolver:null!=u?u:gd,typeResolver:null!=d?d:md,subscribeFieldResolver:null!=p?p:gd,errors:[]}}function sd(e,t,n,r,o){const i=Object.create(null);let a=!1;try{for(const[s,l]of o.entries()){const o=ld(e,t,n,l,wu(r,s,t.name));void 0!==o&&(i[s]=o,Ju(o)&&(a=!0))}}catch(e){if(a)return Zu(i).finally(()=>{throw e});throw e}return a?Zu(i):i}function ld(e,t,n,r,o){var i;const a=yd(e.schema,t,r[0]);if(!a)return;const s=a.type,l=null!==(i=a.resolve)&&void 0!==i?i:e.fieldResolver,c=cd(e,a,r,t,o);try{const t=Iu(a,r[0],e.variableValues),i=l(n,t,e.contextValue,c);let u;return u=Ju(i)?i.then(t=>dd(e,s,r,c,o,t)):dd(e,s,r,c,o,i),Ju(u)?u.then(void 0,t=>ud(td(t,r,Tu(o)),s,e)):u}catch(t){return ud(td(t,r,Tu(o)),s,e)}}function cd(e,t,n,r,o){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:o,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function ud(e,t,n){if(cl(t))throw e;return n.errors.push(e),null}function dd(e,t,n,r,o,i){if(i instanceof Error)throw i;if(cl(t)){const a=dd(e,t.ofType,n,r,o,i);if(null===a)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==i?null:ll(t)?function(e,t,n,r,o,i){if(!uc(i))throw new Ls(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=t.ofType;let s=!1;const l=Array.from(i,(t,i)=>{const l=wu(o,i,void 0);try{let o;return o=Ju(t)?t.then(t=>dd(e,a,n,r,l,t)):dd(e,a,n,r,l,t),Ju(o)?(s=!0,o.then(void 0,t=>ud(td(t,n,Tu(l)),a,e))):o}catch(t){return ud(td(t,n,Tu(l)),a,e)}});return s?Promise.all(l):l}(e,t,n,r,o,i):pl(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${At(e)}.serialize(${At(t)})\` to return non-nullable value, returned: ${At(n)}`);return n}(t,i):hl(t)?function(e,t,n,r,o,i){var a;const s=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,l=e.contextValue,c=s(i,l,r,t);if(Ju(c))return c.then(a=>fd(e,pd(a,e,t,n,r,i),n,r,o,i));return fd(e,pd(c,e,t,n,r,i),n,r,o,i)}(e,t,n,r,o,i):rl(t)?fd(e,t,n,r,o,i):void Cs(!1,"Cannot complete value of unexpected output type: "+At(t))}function pd(e,t,n,r,o,i){if(null==e)throw new Ls(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(rl(e))throw new Ls("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new Ls(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${At(i)}, received "${At(e)}".`);const a=t.schema.getType(e);if(null==a)throw new Ls(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!rl(a))throw new Ls(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new Ls(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function fd(e,t,n,r,o,i){const a=nd(e,t,n);if(t.isTypeOf){const s=t.isTypeOf(i,e.contextValue,r);if(Ju(s))return s.then(r=>{if(!r)throw hd(t,i,n);return sd(e,t,i,o,a)});if(!s)throw hd(t,i,n)}return sd(e,t,i,o,a)}function hd(e,t,n){return new Ls(`Expected value of type "${e.name}" but got: ${At(t)}.`,{nodes:n})}const md=function(e,t,n,r){if(_s(e)&&"string"==typeof e.__typename)return e.__typename;const o=n.schema.getPossibleTypes(r),i=[];for(let r=0;r<o.length;r++){const a=o[r];if(a.isTypeOf){const o=a.isTypeOf(e,t,n);if(Ju(o))i[r]=o;else if(o)return i.length&&Promise.allSettled(i).catch(()=>{}),a.name}}return i.length?Promise.all(i).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return o[t].name}):void 0},gd=function(e,t,n,r){if(_s(e)||"function"==typeof e){const o=e[r.fieldName];return"function"==typeof o?e[r.fieldName](t,n,r):o}};function yd(e,t,n){const r=n.name.value;return r===wc.name&&e.getQueryType()===t?wc:r===Tc.name&&e.getQueryType()===t?Tc:r===kc.name?kc:t.getFields()[r]}var vd,bd;function Ed(e){const t=t=>e((e=>e.matches?vd.Dark:vd.Light)(t));return window.matchMedia(bd.Dark).addEventListener("change",t),()=>window.matchMedia(bd.Dark).removeEventListener("change",t)}!function(e){e.Light="light",e.Dark="dark"}(vd||(vd={})),function(e){e.Light="(prefers-color-scheme: light)",e.Dark="(prefers-color-scheme: dark)"}(bd||(bd={}));const xd=Gi(window.matchMedia(bd.Dark).matches?vd.Dark:vd.Light);function wd(e,t,n){return new Ls(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Td;!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(Td||(Td={}));class kd{constructor(e){const t=new Ct(Td.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==Td.EOF)do{if(e.next)e=e.next;else{const t=Od(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===Td.COMMENT);return e}}function Sd(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ad(e,t){return Nd(e.charCodeAt(t))&&_d(e.charCodeAt(t+1))}function Nd(e){return e>=55296&&e<=56319}function _d(e){return e>=56320&&e<=57343}function Cd(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return Td.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Id(e,t,n,r,o){const i=e.line,a=1+n-e.lineStart;return new Ct(t,n,r,i,a,o)}function Od(e,t){const n=e.source.body,r=n.length;let o=t;for(;o<r;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return Dd(e,o);case 33:return Id(e,Td.BANG,o,o+1);case 36:return Id(e,Td.DOLLAR,o,o+1);case 38:return Id(e,Td.AMP,o,o+1);case 40:return Id(e,Td.PAREN_L,o,o+1);case 41:return Id(e,Td.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return Id(e,Td.SPREAD,o,o+3);break;case 58:return Id(e,Td.COLON,o,o+1);case 61:return Id(e,Td.EQUALS,o,o+1);case 64:return Id(e,Td.AT,o,o+1);case 91:return Id(e,Td.BRACKET_L,o,o+1);case 93:return Id(e,Td.BRACKET_R,o,o+1);case 123:return Id(e,Td.BRACE_L,o,o+1);case 124:return Id(e,Td.PIPE,o,o+1);case 125:return Id(e,Td.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?zd(e,o):Ld(e,o)}if(Ir(t)||45===t)return Rd(e,o,t);if(Dr(t))return Vd(e,o);throw wd(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Sd(t)||Ad(n,o)?`Unexpected character: ${Cd(e,o)}.`:`Invalid character: ${Cd(e,o)}.`)}return Id(e,Td.EOF,r,r)}function Dd(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const e=n.charCodeAt(o);if(10===e||13===e)break;if(Sd(e))++o;else{if(!Ad(n,o))break;o+=2}}return Id(e,Td.COMMENT,t,o,n.slice(t+1,o))}function Rd(e,t,n){const r=e.source.body;let o=t,i=n,a=!1;if(45===i&&(i=r.charCodeAt(++o)),48===i){if(i=r.charCodeAt(++o),Ir(i))throw wd(e.source,o,`Invalid number, unexpected digit after 0: ${Cd(e,o)}.`)}else o=Pd(e,o,i),i=r.charCodeAt(o);if(46===i&&(a=!0,i=r.charCodeAt(++o),o=Pd(e,o,i),i=r.charCodeAt(o)),69!==i&&101!==i||(a=!0,i=r.charCodeAt(++o),43!==i&&45!==i||(i=r.charCodeAt(++o)),o=Pd(e,o,i),i=r.charCodeAt(o)),46===i||Dr(i))throw wd(e.source,o,`Invalid number, expected digit but got: ${Cd(e,o)}.`);return Id(e,a?Td.FLOAT:Td.INT,t,o,r.slice(t,o))}function Pd(e,t,n){if(!Ir(n))throw wd(e.source,t,`Invalid number, expected digit but got: ${Cd(e,t)}.`);const r=e.source.body;let o=t+1;for(;Ir(r.charCodeAt(o));)++o;return o}function Ld(e,t){const n=e.source.body,r=n.length;let o=t+1,i=o,a="";for(;o<r;){const r=n.charCodeAt(o);if(34===r)return a+=n.slice(i,o),Id(e,Td.STRING,t,o+1,a);if(92===r){a+=n.slice(i,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?Md(e,o):Fd(e,o):Ud(e,o);a+=t.value,o+=t.size,i=o;continue}if(10===r||13===r)break;if(Sd(r))++o;else{if(!Ad(n,o))throw wd(e.source,o,`Invalid character within String: ${Cd(e,o)}.`);o+=2}}throw wd(e.source,o,"Unterminated string.")}function Md(e,t){const n=e.source.body;let r=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!Sd(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|Bd(e),r<0)break}throw wd(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function Fd(e,t){const n=e.source.body,r=jd(n,t+2);if(Sd(r))return{value:String.fromCodePoint(r),size:6};if(Nd(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=jd(n,t+8);if(_d(e))return{value:String.fromCodePoint(r,e),size:12}}throw wd(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function jd(e,t){return Bd(e.charCodeAt(t))<<12|Bd(e.charCodeAt(t+1))<<8|Bd(e.charCodeAt(t+2))<<4|Bd(e.charCodeAt(t+3))}function Bd(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ud(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw wd(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function zd(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,i=t+3,a=i,s="";const l=[];for(;i<r;){const r=n.charCodeAt(i);if(34===r&&34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)){s+=n.slice(a,i),l.push(s);const r=Id(e,Td.BLOCK_STRING,t,i+3,Pr(l).join("\n"));return e.line+=l.length-1,e.lineStart=o,r}if(92!==r||34!==n.charCodeAt(i+1)||34!==n.charCodeAt(i+2)||34!==n.charCodeAt(i+3))if(10!==r&&13!==r)if(Sd(r))++i;else{if(!Ad(n,i))throw wd(e.source,i,`Invalid character within String: ${Cd(e,i)}.`);i+=2}else s+=n.slice(a,i),l.push(s),13===r&&10===n.charCodeAt(i+1)?i+=2:++i,s="",a=i,o=i;else s+=n.slice(a,i),a=i+1,i+=4}throw wd(e.source,i,"Unterminated string.")}function Vd(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){if(!Rr(n.charCodeAt(o)))break;++o}return Id(e,Td.NAME,t,o,n.slice(t,o))}class Hd{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||St(!1,`Body must be a string. Received: ${At(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||St(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||St(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function $d(e,t){const n=new Gd(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}class Gd{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=function(e){return Bs(e,Hd)}(e)?e:new Hd(e);this._lexer=new kd(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(Td.NAME);return this.node(e,{kind:Pt.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Pt.DOCUMENT,definitions:this.many(Td.SOF,this.parseDefinition,Td.EOF)})}parseDefinition(){if(this.peek(Td.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===Td.BRACE_L)throw wd(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===Td.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw wd(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(Td.BRACE_L))return this.node(e,{kind:Pt.OPERATION_DEFINITION,operation:Rt.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(Td.NAME)&&(r=this.parseName()),this.node(e,{kind:Pt.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(Td.NAME);switch(e.value){case"query":return Rt.QUERY;case"mutation":return Rt.MUTATION;case"subscription":return Rt.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(Td.PAREN_L,this.parseVariableDefinition,Td.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Pt.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(Td.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Td.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(Td.DOLLAR),this.node(e,{kind:Pt.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Pt.SELECTION_SET,selections:this.many(Td.BRACE_L,this.parseSelection,Td.BRACE_R)})}parseSelection(){return this.peek(Td.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(Td.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:Pt.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Td.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Td.PAREN_L,t,Td.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(Td.COLON),this.node(t,{kind:Pt.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(Td.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(Td.NAME)?this.node(e,{kind:Pt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Pt.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:Pt.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:Pt.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case Td.BRACKET_L:return this.parseList(e);case Td.BRACE_L:return this.parseObject(e);case Td.INT:return this.advanceLexer(),this.node(t,{kind:Pt.INT,value:t.value});case Td.FLOAT:return this.advanceLexer(),this.node(t,{kind:Pt.FLOAT,value:t.value});case Td.STRING:case Td.BLOCK_STRING:return this.parseStringLiteral();case Td.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:Pt.BOOLEAN,value:!0});case"false":return this.node(t,{kind:Pt.BOOLEAN,value:!1});case"null":return this.node(t,{kind:Pt.NULL});default:return this.node(t,{kind:Pt.ENUM,value:t.value})}case Td.DOLLAR:if(e){if(this.expectToken(Td.DOLLAR),this._lexer.token.kind===Td.NAME){const e=this._lexer.token.value;throw wd(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:Pt.STRING,value:e.value,block:e.kind===Td.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:Pt.LIST,values:this.any(Td.BRACKET_L,()=>this.parseValueLiteral(e),Td.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:Pt.OBJECT,fields:this.any(Td.BRACE_L,()=>this.parseObjectField(e),Td.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(Td.COLON),this.node(t,{kind:Pt.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(Td.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(Td.AT),this.node(t,{kind:Pt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(Td.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(Td.BRACKET_R),t=this.node(e,{kind:Pt.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(Td.BANG)?this.node(e,{kind:Pt.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:Pt.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Td.STRING)||this.peek(Td.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(Td.BRACE_L,this.parseOperationTypeDefinition,Td.BRACE_R);return this.node(e,{kind:Pt.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(Td.COLON);const n=this.parseNamedType();return this.node(e,{kind:Pt.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:Pt.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:Pt.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Td.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Td.BRACE_L,this.parseFieldDefinition,Td.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Td.COLON);const o=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(e,{kind:Pt.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:i})}parseArgumentDefs(){return this.optionalMany(Td.PAREN_L,this.parseInputValueDef,Td.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Td.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(Td.EQUALS)&&(o=this.parseConstValueLiteral());const i=this.parseConstDirectives();return this.node(e,{kind:Pt.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:o,directives:i})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:Pt.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:Pt.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(Td.EQUALS)?this.delimitedMany(Td.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:Pt.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(Td.BRACE_L,this.parseEnumValueDefinition,Td.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:Pt.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw wd(this._lexer.source,this._lexer.token.start,`${Wd(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:Pt.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(Td.BRACE_L,this.parseInputValueDef,Td.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===Td.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(Td.BRACE_L,this.parseOperationTypeDefinition,Td.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:Pt.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:Pt.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:Pt.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:Pt.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Pt.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Pt.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Pt.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Td.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const i=this.parseDirectiveLocations();return this.node(e,{kind:Pt.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:i})}parseDirectiveLocations(){return this.delimitedMany(Td.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(el,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(Td.AT),n=this.parseName();let r,o;return!t&&this.expectOptionalToken(Td.DOT)&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(Td.PAREN_L)&&(o=this.parseName(),this.expectToken(Td.COLON),this.expectToken(Td.PAREN_R)),t?o?this.node(e,{kind:Pt.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:o}):this.node(e,{kind:Pt.DIRECTIVE_COORDINATE,name:n}):r?o?this.node(e,{kind:Pt.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:o}):this.node(e,{kind:Pt.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:Pt.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new _t(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw wd(this._lexer.source,t.start,`Expected ${qd(e)}, found ${Wd(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==Td.NAME||t.value!==e)throw wd(this._lexer.source,t.start,`Expected "${e}", found ${Wd(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===Td.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return wd(this._lexer.source,t.start,`Unexpected ${Wd(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==Td.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw wd(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Wd(e){const t=e.value;return qd(e.kind)+(null!=t?` "${t}"`:"")}function qd(e){return function(e){return e===Td.BANG||e===Td.DOLLAR||e===Td.AMP||e===Td.PAREN_L||e===Td.PAREN_R||e===Td.DOT||e===Td.SPREAD||e===Td.COLON||e===Td.EQUALS||e===Td.AT||e===Td.BRACKET_L||e===Td.BRACKET_R||e===Td.BRACE_L||e===Td.PIPE||e===Td.BRACE_R}(e)?`"${e}"`:e}var Yd=new Map,Qd=new Map,Kd=!0,Xd=!1;function Jd(e){return e.replace(/[\s,]+/g," ").trim()}function Zd(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,o=Jd((a=e.loc).source.body.substring(a.start,a.end)),i=Qd.get(r);i&&!i.has(o)?Kd&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||Qd.set(r,i=new Set),i.add(o),t.has(o)||(t.add(o),n.push(e))}else n.push(e);var a}),je(je({},e),{definitions:n})}function ep(e){var t=Jd(e);if(!Yd.has(t)){var n=$d(e,{experimentalFragmentVariables:Xd,allowLegacyFragmentVariables:Xd});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Yd.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Zd(n)))}return Yd.get(t)}function tp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),ep(r)}var np,rp=tp,op=function(){Yd.clear(),Qd.clear()},ip=function(){Kd=!1},ap=function(){Xd=!0},sp=function(){Xd=!1};(np=tp||(tp={})).gql=rp,np.resetCaches=op,np.disableFragmentWarnings=ip,np.enableExperimentalFragmentVariables=ap,np.disableExperimentalFragmentVariables=sp,tp.default=tp;const lp=tp;var cp,up=1,dp={};function pp(e){return e in dp&&(delete dp[e],!0)}var fp=function(e){var t=up++;return dp[t]=!0,cp||(cp=Promise.resolve()),cp.then(function(){return pp(t)&&e()}),t},hp=function(e){pp(e)},mp=fp,gp=hp,yp={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=yp.delegate;return((null==n?void 0:n.setImmediate)||mp).apply(void 0,$e([],He(e)))},clearImmediate:function(e){var t=yp.delegate;return((null==t?void 0:t.clearImmediate)||gp)(e)},delegate:void 0},vp=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return Fe(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=yp.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){var o;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i=t.actions;null!=n&&(null===(o=i[i.length-1])||void 0===o?void 0:o.id)!==n&&(yp.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(To),bp=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fe(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(So))(vp);const Ep=Symbol.for("apollo.skipToken"),xp=Symbol.for("apollo.hook.wrappers");function wp(e,t,n){const r=[n.queryManager,e.startsWith("use")?u().useContext(As()):void 0];let o=t;for(const t of r){const n=t?.[xp]?.[e];n&&(o=n(o))}return o}function Tp(e,t){const n=u().useRef(void 0);return n.current&&An(n.current.deps,t)||(n.current={value:e(),deps:t}),n.current.value}function kp(e){const t=u().useContext(As()),n=e||t.client;return Gt(!!n,28),n}const Sp="function"==typeof Oe(()=>window.document.createElement);const Ap=Se().useSyncExternalStore,Np="ReactNative"==Oe(()=>navigator.product),_p=Oe(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,Cp=(Sp||Np)&&!_p,Ip=Ap||((e,t,n)=>{const r=t();const[{inst:o},i]=u().useState({inst:{value:r,getSnapshot:t}});return Cp?u().useLayoutEffect(()=>{Object.assign(o,{value:r,getSnapshot:t}),Op(o)&&i({inst:o})},[e,r,t]):Object.assign(o,{value:r,getSnapshot:t}),u().useEffect(()=>(Op(o)&&i({inst:o}),e(function(){Op(o)&&i({inst:o})})),[e]),r});function Op({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}const Dp=Symbol(),Rp=function(e,...[t]){return wp("useQuery",Pp,kp("object"==typeof t?t.client:void 0))(e,t)};function Pp(e,t={}){const n=kp("object"==typeof t?t.client:void 0),{ssr:r}="object"==typeof t?t:{},o=function(e,t,n){return Tp(()=>{if(t===Ep){const t={...va(n,{query:e,fetchPolicy:"standby"}),[Si]:!0};return t[Lp]=!0,t}const r=va(n,{...t,query:e});return t.skip&&(r.initialFetchPolicy=t.initialFetchPolicy||t.fetchPolicy,r.fetchPolicy="standby"),r},[e,t,n])}(e,t,n.defaultOptions.watchQuery);function i(t){const r=n.watchQuery(o);return{client:n,query:e,observable:r,resultData:{current:r.getCurrentResult(),previousData:t?.resultData.current.data,variables:r.variables}}}let[a,s]=u().useState(i);n===a.client&&e===a.query||s(a=i(a));const{observable:l,resultData:c}=a;!function(e,t){e.fetchPolicy||(e.fetchPolicy=t.options.initialFetchPolicy)}(o,l),function(e,t,n){if(t[Dp]&&!An(t[Dp],n)){t[Dp][Lp]&&!n.initialFetchPolicy&&(n.initialFetchPolicy=n.fetchPolicy),!function(e,t){return e.query!==t.query||!An(e.variables,t.variables)||e.fetchPolicy!==t.fetchPolicy&&("standby"===t.fetchPolicy||"standby"===e.fetchPolicy)}(t[Dp],n)?t.applyOptions(n):t.reobserve(n);const r=t.getCurrentResult();An(r.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=r,e.variables=t.variables}t[Dp]=n}(c,l,o);const d=function(e,t,n){const r=e.options.fetchPolicy;return Ip(u().useCallback(n=>{const r=e.pipe(Ta(bp)).subscribe(r=>{const o=t.current;An(o,r)&&An(t.variables,e.variables)||(t.variables=e.variables,o.data&&!An(o.data,r.data)&&(t.previousData=o.data),t.current=r,n())});return()=>{setTimeout(()=>r.unsubscribe())}},[e,t]),()=>t.current,()=>"standby"!==r&&!1===n||"no-cache"===r?Rp.ssrDisabledResult:t.current)}(l,c,r),p=u().useMemo(()=>({refetch:l.refetch.bind(l),fetchMore:l.fetchMore.bind(l),updateQuery:l.updateQuery.bind(l),startPolling:l.startPolling.bind(l),stopPolling:l.stopPolling.bind(l),subscribeToMore:l.subscribeToMore.bind(l)}),[l]),f=c.previousData;return u().useMemo(()=>{const{partial:e,...t}=d;return{...t,client:n,observable:l,variables:l.variables,previousData:f,...p}},[d,n,l,f,p])}const Lp=Symbol();function Mp(e){return Ip(u().useCallback(t=>e.onNextChange(function n(){t(),e.onNextChange(n)}),[e]),e,e)}Rp.ssrDisabledResult={loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:os.loading,partial:!0};const Fp=(0,u().createContext)(null),jp={didCatch:!1,error:null};class Bp extends u().Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=jp}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(jp)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(jp))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=(0,u().createElement)(n,e);else{if(void 0===r)throw i;a=r}}return(0,u().createElement)(Fp.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}var Up;!function(e){e.Cache="cache",e.Queries="queries",e.Mutations="mutations",e.Explorer="explorer",e.Memory="memory"}(Up||(Up={}));const zp=Gi(Up.Queries);function Vp(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Vp(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hp(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Vp(e))&&(r&&(r+=" "),r+=t);return r}const $p=Hp;function Gp({className:e,...t}){return(0,c().jsx)("ul",{...t,className:$p(e,"overflow-y-auto flex flex-col gap-1 list-none")})}const Wp=e=>{const t=Kp(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),qp(n,t)||Qp(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},qp=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qp(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},Yp=/^\[(.+)\]$/,Qp=e=>{if(Yp.test(e)){const t=Yp.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Kp=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ef(Object.entries(e.classGroups),n).forEach(([e,n])=>{Xp(n,r,e,t)}),r},Xp=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Jp(t,e)).classGroupId=n)}if("function"==typeof e)return Zp(e)?void Xp(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Xp(o,Jp(t,e),n,r)})})},Jp=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Zp=e=>e.isThemeGetter,ef=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,tf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},nf=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},rf=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},of=/\s+/;function af(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=sf(e))&&(r&&(r+=" "),r+=t);return r}const sf=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=sf(e[r]))&&(n&&(n+=" "),n+=t);return n};function lf(e,...t){let n,r,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:tf(e.cacheSize),parseClassName:nf(e),...Wp(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(of);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let p=Boolean(d),f=r(p?u.substring(0,d):u);if(!f){if(!p){s=t+(s.length>0?" "+s:s);continue}if(f=r(u),!f){s=t+(s.length>0?" "+s:s);continue}p=!1}const h=rf(l).join(":"),m=c?h+"!":h,g=m+f;if(i.includes(g))continue;i.push(g);const y=o(f,p);for(let e=0;e<y.length;++e){const t=y[e];i.push(m+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(af.apply(null,arguments))}}const cf=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},uf=/^\[(?:([a-z-]+):)?(.+)\]$/i,df=/^\d+\/\d+$/,pf=new Set(["px","full","screen"]),ff=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hf=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vf=e=>Ef(e)||pf.has(e)||df.test(e),bf=e=>Rf(e,"length",Pf),Ef=e=>Boolean(e)&&!Number.isNaN(Number(e)),xf=e=>Rf(e,"number",Ef),wf=e=>Boolean(e)&&Number.isInteger(Number(e)),Tf=e=>e.endsWith("%")&&Ef(e.slice(0,-1)),kf=e=>uf.test(e),Sf=e=>ff.test(e),Af=new Set(["length","size","percentage"]),Nf=e=>Rf(e,Af,Lf),_f=e=>Rf(e,"position",Lf),Cf=new Set(["image","url"]),If=e=>Rf(e,Cf,Ff),Of=e=>Rf(e,"",Mf),Df=()=>!0,Rf=(e,t,n)=>{const r=uf.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Pf=e=>hf.test(e)&&!mf.test(e),Lf=()=>!1,Mf=e=>gf.test(e),Ff=e=>yf.test(e),jf=(Symbol.toStringTag,()=>{const e=cf("colors"),t=cf("spacing"),n=cf("blur"),r=cf("brightness"),o=cf("borderColor"),i=cf("borderRadius"),a=cf("borderSpacing"),s=cf("borderWidth"),l=cf("contrast"),c=cf("grayscale"),u=cf("hueRotate"),d=cf("invert"),p=cf("gap"),f=cf("gradientColorStops"),h=cf("gradientColorStopPositions"),m=cf("inset"),g=cf("margin"),y=cf("opacity"),v=cf("padding"),b=cf("saturate"),E=cf("scale"),x=cf("sepia"),w=cf("skew"),T=cf("space"),k=cf("translate"),S=()=>["auto",kf,t],A=()=>[kf,t],N=()=>["",vf,bf],_=()=>["auto",Ef,kf],C=()=>["","0",kf],I=()=>[Ef,kf];return{cacheSize:500,separator:":",theme:{colors:[Df],spacing:[vf,bf],blur:["none","",Sf,kf],brightness:I(),borderColor:[e],borderRadius:["none","","full",Sf,kf],borderSpacing:A(),borderWidth:N(),contrast:I(),grayscale:C(),hueRotate:I(),invert:C(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Tf,bf],inset:S(),margin:S(),opacity:I(),padding:A(),saturate:I(),scale:I(),sepia:C(),skew:I(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",kf]}],container:["container"],columns:[{columns:[Sf]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",kf]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wf,kf]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",kf]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",wf,kf]}],"grid-cols":[{"grid-cols":[Df]}],"col-start-end":[{col:["auto",{span:["full",wf,kf]},kf]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Df]}],"row-start-end":[{row:["auto",{span:[wf,kf]},kf]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",kf]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",kf]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",kf,t]}],"min-w":[{"min-w":[kf,t,"min","max","fit"]}],"max-w":[{"max-w":[kf,t,"none","full","min","max","fit","prose",{screen:[Sf]},Sf]}],h:[{h:[kf,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[kf,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[kf,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[kf,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Sf,bf]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xf]}],"font-family":[{font:[Df]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",kf]}],"line-clamp":[{"line-clamp":["none",Ef,xf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",vf,kf]}],"list-image":[{"list-image":["none",kf]}],"list-style-type":[{list:["none","disc","decimal",kf]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",vf,bf]}],"underline-offset":[{"underline-offset":["auto",vf,kf]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",kf]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",kf]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",_f]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nf]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},If]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[vf,kf]}],"outline-w":[{outline:[vf,bf]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[vf,bf]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Sf,Of]}],"shadow-color":[{shadow:[Df]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Sf,kf]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",kf]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",kf]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",kf]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[wf,kf]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",kf]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",kf]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",kf]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[vf,bf,xf]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),Bf=lf(jf);function Uf({className:e,children:t,selected:n,onClick:r}){return(0,c().jsx)("li",{tabIndex:0,className:Bf(e,"text-sm text-primary dark:text-primary-dark","transition-colors duration-200","border-2 border-transparent flex items-center rounded-md cursor-pointer py-2 px-4","focus-visible:outline-none","focus-visible:border-focused focus-visible:dark:border-focused-dark",n?"font-semibold bg-neutral dark:bg-neutral-dark":"hover:bg-button-secondaryHover hover:dark:bg-button-secondaryHover-dark"),onClick:r,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||e.currentTarget.click()},children:(0,c().jsx)("div",{className:"overflow-hidden whitespace-nowrap text-ellipsis w-full",children:t})})}var zf;function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vf.apply(null,arguments)}const Hf=function(e){return u().createElement("svg",Vf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),zf||(zf=u().createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.504 10.69a7.031 7.031 0 1 1 12.992-5.38 7.031 7.031 0 0 1-12.992 5.38m9.662-5.857a.5.5 0 0 1 0 .707L8.707 8l2.46 2.458a.5.5 0 0 1-.708.707L8 8.707l-2.459 2.458a.5.5 0 1 1-.707-.707L7.293 8l-2.46-2.46a.5.5 0 1 1 .708-.707L8 7.293l2.459-2.46a.5.5 0 0 1 .707 0",clipRule:"evenodd"})))};var $f;function Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gf.apply(null,arguments)}const Wf=function(e){return u().createElement("svg",Gf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),$f||($f=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M8 5.656V8l2.93 2.93M1.437 8a6.563 6.563 0 1 0 13.125 0A6.563 6.563 0 0 0 1.438 8"})))};const qf=(0,u().createContext)(null);qf.displayName="PanelGroupContext";const Yf="data-panel-group",Qf="data-panel-group-direction",Kf="data-panel-group-id",Xf="data-panel",Jf="data-panel-collapsible",Zf="data-panel-id",eh="data-panel-size",th="data-resize-handle",nh="data-resize-handle-active",rh="data-panel-resize-handle-enabled",oh="data-panel-resize-handle-id",ih="data-resize-handle-state",ah=u().useLayoutEffect,sh=Se()["useId".toString()],lh="function"==typeof sh?sh:()=>null;let ch=0;function uh(e=null){const t=lh(),n=(0,u().useRef)(e||t||null);return null===n.current&&(n.current=""+ch++),null!=e?e:n.current}function dh({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:i,id:a,maxSize:s,minSize:l,onCollapse:c,onExpand:d,onResize:p,order:f,style:h,tagName:m="div",...g}){const y=(0,u().useContext)(qf);if(null===y)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:v,expandPanel:b,getPanelSize:E,getPanelStyle:x,groupId:w,isPanelCollapsed:T,reevaluatePanelConstraints:k,registerPanel:S,resizePanel:A,unregisterPanel:N}=y,_=uh(a),C=(0,u().useRef)({callbacks:{onCollapse:c,onExpand:d,onResize:p},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:s,minSize:l},id:_,idIsFromProps:void 0!==a,order:f});(0,u().useRef)({didLogMissingDefaultSizeWarning:!1}),ah(()=>{const{callbacks:e,constraints:t}=C.current,i={...t};C.current.id=_,C.current.idIsFromProps=void 0!==a,C.current.order=f,e.onCollapse=c,e.onExpand=d,e.onResize=p,t.collapsedSize=n,t.collapsible=r,t.defaultSize=o,t.maxSize=s,t.minSize=l,i.collapsedSize===t.collapsedSize&&i.collapsible===t.collapsible&&i.maxSize===t.maxSize&&i.minSize===t.minSize||k(C.current,i)}),ah(()=>{const e=C.current;return S(e),()=>{N(e)}},[f,_,S,N]),(0,u().useImperativeHandle)(i,()=>({collapse:()=>{v(C.current)},expand:e=>{b(C.current,e)},getId:()=>_,getSize:()=>E(C.current),isCollapsed:()=>T(C.current),isExpanded:()=>!T(C.current),resize:e=>{A(C.current,e)}}),[v,b,E,T,_,A]);const I=x(C.current,o);return(0,u().createElement)(m,{...g,children:e,className:t,id:_,style:{...I,...h},[Kf]:w,[Xf]:"",[Jf]:r||void 0,[Zf]:_,[eh]:parseFloat(""+I.flexGrow).toFixed(1)})}const ph=(0,u().forwardRef)((e,t)=>(0,u().createElement)(dh,{...e,forwardedRef:t}));let fh;dh.displayName="Panel",ph.displayName="forwardRef(Panel)";let hh=null,mh=!0,gh=null,yh=-1,vh=null;function bh(e,t,n){var r,o;if(!mh)return;const i=function(e,t,n){const r=0!==(t&Oh),o=0!==(t&Dh),i=0!==(t&Rh),a=0!==(t&Ph);if(gh)return gh({exceedsHorizontalMaximum:o,exceedsHorizontalMinimum:r,exceedsVerticalMaximum:a,exceedsVerticalMinimum:i,intersectsHorizontalDragHandle:"horizontal"===e||"intersection"===e,intersectsVerticalDragHandle:"vertical"===e||"intersection"===e,isPointerDown:n});if(t){if(r)return i?"se-resize":a?"ne-resize":"e-resize";if(o)return i?"sw-resize":a?"nw-resize":"w-resize";if(i)return"s-resize";if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t,n);if(hh!==i){if(hh=i,null===vh){vh=document.createElement("style");const e=fh;e&&vh.setAttribute("nonce",e),document.head.appendChild(vh)}var a;if(yh>=0)null===(a=vh.sheet)||void 0===a||a.removeRule(yh);yh=null!==(r=null===(o=vh.sheet)||void 0===o?void 0:o.insertRule(`*{cursor: ${i} !important;}`))&&void 0!==r?r:-1}}function Eh(e){return"keydown"===e.type}function xh(e){return e.type.startsWith("pointer")}function wh(e){return e.type.startsWith("mouse")}function Th(e){if(xh(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(wh(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function kh(e,t,n){return n?e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y:e.x<=t.x+t.width&&e.x+e.width>=t.x&&e.y<=t.y+t.height&&e.y+e.height>=t.y}const Sh=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Ah(e){const t=getComputedStyle(e);return"fixed"===t.position||(!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=Ih(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||(+t.opacity<1||("transform"in t&&"none"!==t.transform||("webkitTransform"in t&&"none"!==t.webkitTransform||("mixBlendMode"in t&&"normal"!==t.mixBlendMode||("filter"in t&&"none"!==t.filter||("webkitFilter"in t&&"none"!==t.webkitFilter||("isolation"in t&&"isolate"===t.isolation||(!!Sh.test(t.willChange)||"touch"===t.webkitOverflowScrolling)))))))))}function Nh(e){let t=e.length;for(;t--;){const n=e[t];if(Xh(n,"Missing node"),Ah(n))return n}return null}function _h(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ch(e){const t=[];for(;e;)t.push(e),e=Ih(e);return t}function Ih(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Oh=1,Dh=2,Rh=4,Ph=8,Lh="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let Mh=[],Fh=!1,jh=new Map,Bh=new Map;const Uh=new Set;function zh(e){const{target:t}=e,{x:n,y:r}=Th(e);Fh=!0,Gh({target:t,x:n,y:r}),Qh(),Mh.length>0&&(Kh("down",e),qh(),e.preventDefault(),$h(t)||e.stopImmediatePropagation())}function Vh(e){const{x:t,y:n}=Th(e);if(Fh&&"pointerleave"!==e.type&&0===e.buttons&&(Fh=!1,Kh("up",e)),!Fh){const{target:r}=e;Gh({target:r,x:t,y:n})}Kh("move",e),qh(),Mh.length>0&&e.preventDefault()}function Hh(e){const{target:t}=e,{x:n,y:r}=Th(e);Bh.clear(),Fh=!1,Mh.length>0&&(e.preventDefault(),$h(t)||e.stopImmediatePropagation()),Kh("up",e),Gh({target:t,x:n,y:r}),qh(),Qh()}function $h(e){let t=e;for(;t;){if(t.hasAttribute(th))return!0;t=t.parentElement}return!1}function Gh({target:e,x:t,y:n}){Mh.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Uh.forEach(e=>{const{element:o,hitAreaMargins:i}=e,a=o.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=Lh?i.coarse:i.fine;if(t>=l-d&&t<=c+d&&n>=u-d&&n<=s+d){if(null!==r&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Ch(e),b:Ch(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;Xh(r,"Stacking order can only be calculated for elements with a common ancestor");const o=_h(Nh(n.a)),i=_h(Nh(n.b));if(o===i){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let o=e.length;for(;o--;){const n=e[o];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(o-i)}(r,o)>0){let e=r,t=!1;for(;e&&!e.contains(o);){if(kh(e.getBoundingClientRect(),a,!0)){t=!0;break}e=e.parentElement}if(t)return}Mh.push(e)}})}function Wh(e,t){Bh.set(e,t)}function qh(){let e=!1,t=!1;Mh.forEach(n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0});let n=0;Bh.forEach(e=>{n|=e}),e&&t?bh("intersection",n,Fh):e?bh("horizontal",n,Fh):t?bh("vertical",n,Fh):null!==vh&&(document.head.removeChild(vh),hh=null,vh=null,yh=-1)}let Yh;function Qh(){var e;null===(e=Yh)||void 0===e||e.abort(),Yh=new AbortController;const t={capture:!0,signal:Yh.signal};Uh.size&&(Fh?(Mh.length>0&&jh.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",Hh,t),r.addEventListener("pointerleave",Vh,t),r.addEventListener("pointermove",Vh,t))}),jh.forEach((e,n)=>{const{body:r}=n;r.addEventListener("pointerup",Hh,t),r.addEventListener("pointercancel",Hh,t)})):jh.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",zh,t),r.addEventListener("pointermove",Vh,t))}))}function Kh(e,t){Uh.forEach(n=>{const{setResizeHandlerState:r}=n,o=Mh.includes(n);r(e,o,t)})}function Xh(e,t){if(!e)throw console.error(t),Error(t)}function Jh(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Zh(e,t,n=10){return 0===Jh(e,t,n)}function em(e,t,n){return 0===Jh(e,t,n)}function tm({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];Xh(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:i,maxSize:a=100,minSize:s=0}=r;if(Jh(n,s)<0)if(i){n=Jh(n,(o+s)/2)<0?o:s}else n=s;return n=Math.min(a,n),n=parseFloat(n.toFixed(10))}function nm({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:i}){if(em(e,0))return t;const a=[...t],[s,l]=r;Xh(null!=s,"Invalid first pivot index"),Xh(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===i){{const r=e<0?l:s,o=n[r];Xh(o,`Panel constraints not found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:c=0}=o;if(a){const n=t[r];if(Xh(null!=n,`Previous layout not found for panel index ${r}`),em(n,i)){const t=c-n;Jh(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,o=n[r];Xh(o,`No panel constraints found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:c=0}=o;if(a){const n=t[r];if(Xh(null!=n,`Previous layout not found for panel index ${r}`),em(n,c)){const t=n-i;Jh(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let o=e<0?l:s,i=0;for(;;){const e=t[o];Xh(null!=e,`Previous layout not found for panel index ${o}`);if(i+=tm({panelConstraints:n,panelIndex:o,size:100})-e,o+=r,o<0||o>=n.length)break}const a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const o=Math.abs(e)-Math.abs(c),i=t[r];Xh(null!=i,`Previous layout not found for panel index ${r}`);const s=tm({panelConstraints:n,panelIndex:r,size:i-o});if(!em(i,s)&&(c+=i-s,a[r]=s,c.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!em(e[r],t[r],n))return!1;return!0}(o,a))return o;{const r=e<0?l:s,o=t[r];Xh(null!=o,`Previous layout not found for panel index ${r}`);const i=o+c,u=tm({panelConstraints:n,panelIndex:r,size:i});if(a[r]=u,!em(u,i)){let t=i-u;let r=e<0?l:s;for(;r>=0&&r<n.length;){const o=a[r];Xh(null!=o,`Previous layout not found for panel index ${r}`);const i=tm({panelConstraints:n,panelIndex:r,size:o+t});if(em(o,i)||(t-=i-o,a[r]=i),em(t,0))break;e>0?r--:r++}}}return em(a.reduce((e,t)=>t+e,0),100)?a:o}function rm({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,i=0,a=0;const s=n[0];Xh(null!=s,"No pivot index found"),t.forEach((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:c=0}=n;t===s?(r=c,o=l):(i+=c,a+=l)});return{valueMax:Math.min(o,100-i),valueMin:Math.max(r,100-a),valueNow:e[s]}}function om(e,t=document){return Array.from(t.querySelectorAll(`[${oh}][data-panel-group-id="${e}"]`))}function im(e,t,n=document){const r=om(e,n).findIndex(e=>e.getAttribute(oh)===t);return null!=r?r:null}function am(e,t,n){const r=im(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function sm(e,t=document){if(((n=t)instanceof HTMLElement||"object"==typeof n&&null!==n&&"tagName"in n&&"getAttribute"in n)&&t.dataset.panelGroupId==e)return t;var n;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function lm(e,t=document){const n=t.querySelector(`[${oh}="${e}"]`);return n||null}function cm({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:i,setLayout:a}){(0,u().useRef)({didWarnAboutMissingResizeHandle:!1}),ah(()=>{if(!i)return;const e=om(n,i);for(let t=0;t<o.length-1;t++){const{valueMax:n,valueMin:i,valueNow:a}=rm({layout:r,panelsArray:o,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=o[t];Xh(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(i)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,r,o,i]),(0,u().useEffect)(()=>{if(!i)return;const e=t.current;Xh(e,"Eager values not found");const{panelDataArray:o}=e;Xh(null!=sm(n,i),`No group found for id "${n}"`);const s=om(n,i);Xh(s,`No resize handles found for group id "${n}"`);const l=s.map(e=>{const t=e.getAttribute(oh);Xh(t,"Resize handle element has no handle id attribute");const[s,l]=function(e,t,n,r=document){var o,i,a,s;const l=lm(t,r),c=om(e,r),u=l?c.indexOf(l):-1;return[null!==(o=null===(i=n[u])||void 0===i?void 0:i.id)&&void 0!==o?o:null,null!==(a=null===(s=n[u+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(n,t,o,i);if(null==s||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=o.findIndex(e=>e.id===s);if(l>=0){const e=o[l];Xh(e,`No panel data found for index ${l}`);const s=r[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=s&&u){const e=nm({delta:em(s,c)?d-c:c-s,initialLayout:r,panelConstraints:o.map(e=>e.constraints),pivotIndices:am(n,t,i),prevLayout:r,trigger:"keyboard"});r!==e&&a(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}});return()=>{l.forEach(e=>e())}},[i,e,t,n,r,o,a])}function um(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function dm(e,t){const n="horizontal"===e,{x:r,y:o}=Th(t);return n?r:o}function pm(e,t,n,r,o,i){if(Eh(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=o?o:10;let i=0;switch(e.key){case"ArrowDown":i=t?0:r;break;case"ArrowLeft":i=t?-r:0;break;case"ArrowRight":i=t?r:0;break;case"ArrowUp":i=t?0:-r;break;case"End":i=100;break;case"Home":i=-100}return i}return null==r?0:function(e,t,n,r,o){const i="horizontal"===n,a=lm(t,o);Xh(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute(Kf);Xh(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=dm(n,e),u=sm(s,o);Xh(u,`No group element found for id "${s}"`);const d=u.getBoundingClientRect();return(c-l)/(i?d.width:d.height)*100}(e,t,n,r,i)}function fm(e,t,n){t.forEach((t,r)=>{const o=e[r];Xh(o,`Panel data not found for index ${r}`);const{callbacks:i,constraints:a,id:s}=o,{collapsedSize:l=0,collapsible:c}=a,u=n[s];if(null==u||t!==u){n[s]=t;const{onCollapse:e,onExpand:r,onResize:o}=i;o&&o(t,u),c&&(e||r)&&(!r||null!=u&&!Zh(u,l)||Zh(t,l)||r(),!e||null!=u&&Zh(u,l)||!Zh(t,l)||e())}})}function hm(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function mm(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function gm(e){return`react-resizable-panels:${e}`}function ym(e){return e.map(e=>{const{constraints:t,id:n,idIsFromProps:r,order:o}=e;return r?n:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function vm(e,t){try{const n=gm(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function bm(e,t,n,r,o){var i;const a=gm(e),s=ym(t),l=null!==(i=vm(e,o))&&void 0!==i?i:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function Em({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!em(r,100)&&n.length>0)for(let e=0;e<t.length;e++){const t=n[e];Xh(null!=t,`No layout data found for index ${e}`);const o=100/r*t;n[e]=o}let o=0;for(let e=0;e<t.length;e++){const r=n[e];Xh(null!=r,`No layout data found for index ${e}`);const i=tm({panelConstraints:t,panelIndex:e,size:r});r!=i&&(o+=r-i,n[e]=i)}if(!em(o,0))for(let e=0;e<t.length;e++){const r=n[e];Xh(null!=r,`No layout data found for index ${e}`);const i=tm({panelConstraints:t,panelIndex:e,size:r+o});if(r!==i&&(o-=i-r,n[e]=i,em(o,0)))break}return n}const xm={getItem:e=>(mm(xm),xm.getItem(e)),setItem:(e,t)=>{mm(xm),xm.setItem(e,t)}},wm={};function Tm({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:i=null,onLayout:a=null,keyboardResizeBy:s=null,storage:l=xm,style:c,tagName:d="div",...p}){const f=uh(i),h=(0,u().useRef)(null),[m,g]=(0,u().useState)(null),[y,v]=(0,u().useState)([]),b=function(){const[e,t]=(0,u().useState)(0);return(0,u().useCallback)(()=>t(e=>e+1),[])}(),E=(0,u().useRef)({}),x=(0,u().useRef)(new Map),w=(0,u().useRef)(0),T=(0,u().useRef)({autoSaveId:e,direction:r,dragState:m,id:f,keyboardResizeBy:s,onLayout:a,storage:l}),k=(0,u().useRef)({layout:y,panelDataArray:[],panelDataArrayChanged:!1});(0,u().useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,u().useImperativeHandle)(o,()=>({getId:()=>T.current.id,getLayout:()=>{const{layout:e}=k.current;return e},setLayout:e=>{const{onLayout:t}=T.current,{layout:n,panelDataArray:r}=k.current,o=Em({layout:e,panelConstraints:r.map(e=>e.constraints)});um(n,o)||(v(o),k.current.layout=o,t&&t(o),fm(r,o,E.current))}}),[]),ah(()=>{T.current.autoSaveId=e,T.current.direction=r,T.current.dragState=m,T.current.id=f,T.current.onLayout=a,T.current.storage=l}),cm({committedValuesRef:T,eagerValuesRef:k,groupId:f,layout:y,panelDataArray:k.current.panelDataArray,setLayout:v,panelGroupElement:h.current}),(0,u().useEffect)(()=>{const{panelDataArray:t}=k.current;if(e){if(0===y.length||y.length!==t.length)return;let n=wm[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(bm,100),wm[e]=n);const r=[...t],o=new Map(x.current);n(e,r,o,y,l)}},[e,y,l]),(0,u().useEffect)(()=>{});const S=(0,u().useCallback)(e=>{const{onLayout:t}=T.current,{layout:n,panelDataArray:r}=k.current;if(e.constraints.collapsible){const o=r.map(e=>e.constraints),{collapsedSize:i=0,panelSize:a,pivotIndices:s}=Am(r,e,n);if(Xh(null!=a,`Panel size not found for panel "${e.id}"`),!Zh(a,i)){x.current.set(e.id,a);const l=nm({delta:Sm(r,e)===r.length-1?a-i:i-a,initialLayout:n,panelConstraints:o,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});hm(n,l)||(v(l),k.current.layout=l,t&&t(l),fm(r,l,E.current))}}},[]),A=(0,u().useCallback)((e,t)=>{const{onLayout:n}=T.current,{layout:r,panelDataArray:o}=k.current;if(e.constraints.collapsible){const i=o.map(e=>e.constraints),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=Am(o,e,r),u=null!=t?t:l;if(Zh(s,a)){const t=x.current.get(e.id),a=null!=t&&t>=u?t:u,l=nm({delta:Sm(o,e)===o.length-1?s-a:a-s,initialLayout:r,panelConstraints:i,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});hm(r,l)||(v(l),k.current.layout=l,n&&n(l),fm(o,l,E.current))}}},[]),N=(0,u().useCallback)(e=>{const{layout:t,panelDataArray:n}=k.current,{panelSize:r}=Am(n,e,t);return Xh(null!=r,`Panel size not found for panel "${e.id}"`),r},[]),_=(0,u().useCallback)((e,t)=>{const{panelDataArray:n}=k.current,r=Sm(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:i=3}){const a=n[o];let s;return s=null==a?null!=e?e.toFixed(i):"1":1===r.length?"1":a.toFixed(i),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:m,layout:y,panelData:n,panelIndex:r})},[m,y]),C=(0,u().useCallback)(e=>{const{layout:t,panelDataArray:n}=k.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=Am(n,e,t);return Xh(null!=i,`Panel size not found for panel "${e.id}"`),!0===o&&Zh(i,r)},[]),I=(0,u().useCallback)(e=>{const{layout:t,panelDataArray:n}=k.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=Am(n,e,t);return Xh(null!=i,`Panel size not found for panel "${e.id}"`),!o||Jh(i,r)>0},[]),O=(0,u().useCallback)(e=>{const{panelDataArray:t}=k.current;t.push(e),t.sort((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),k.current.panelDataArrayChanged=!0,b()},[b]);ah(()=>{if(k.current.panelDataArrayChanged){k.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=T.current,{layout:r,panelDataArray:o}=k.current;let i=null;if(e){const t=function(e,t,n){var r,o;return null!==(o=(null!==(r=vm(e,n))&&void 0!==r?r:{})[ym(t)])&&void 0!==o?o:null}(e,o,n);t&&(x.current=new Map(Object.entries(t.expandToSizes)),i=t.layout)}null==i&&(i=function({panelDataArray:e}){const t=Array(e.length),n=e.map(e=>e.constraints);let r=0,o=100;for(let i=0;i<e.length;i++){const e=n[i];Xh(e,`Panel constraints not found for index ${i}`);const{defaultSize:a}=e;null!=a&&(r++,t[i]=a,o-=a)}for(let i=0;i<e.length;i++){const a=n[i];Xh(a,`Panel constraints not found for index ${i}`);const{defaultSize:s}=a;if(null!=s)continue;const l=o/(e.length-r);r++,t[i]=l,o-=l}return t}({panelDataArray:o}));const a=Em({layout:i,panelConstraints:o.map(e=>e.constraints)});um(r,a)||(v(a),k.current.layout=a,t&&t(a),fm(o,a,E.current))}}),ah(()=>{const e=k.current;return()=>{e.layout=[]}},[]);const D=(0,u().useCallback)(e=>{let t=!1;const n=h.current;if(n){"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0)}return function(n){n.preventDefault();const r=h.current;if(!r)return()=>null;const{direction:o,dragState:i,id:a,keyboardResizeBy:s,onLayout:l}=T.current,{layout:c,panelDataArray:u}=k.current,{initialLayout:d}=null!=i?i:{},p=am(a,e,r);let f=pm(n,e,o,i,s,r);const m="horizontal"===o;m&&t&&(f=-f);const g=nm({delta:f,initialLayout:null!=d?d:c,panelConstraints:u.map(e=>e.constraints),pivotIndices:p,prevLayout:c,trigger:Eh(n)?"keyboard":"mouse-or-touch"}),y=!hm(c,g);(xh(n)||wh(n))&&w.current!=f&&(w.current=f,Wh(e,y||0===f?0:m?f<0?Oh:Dh:f<0?Rh:Ph)),y&&(v(g),k.current.layout=g,l&&l(g),fm(u,g,E.current))}},[]),R=(0,u().useCallback)((e,t)=>{const{onLayout:n}=T.current,{layout:r,panelDataArray:o}=k.current,i=o.map(e=>e.constraints),{panelSize:a,pivotIndices:s}=Am(o,e,r);Xh(null!=a,`Panel size not found for panel "${e.id}"`);const l=nm({delta:Sm(o,e)===o.length-1?a-t:t-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});hm(r,l)||(v(l),k.current.layout=l,n&&n(l),fm(o,l,E.current))},[]),P=(0,u().useCallback)((e,t)=>{const{layout:n,panelDataArray:r}=k.current,{collapsedSize:o=0,collapsible:i}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=Am(r,e,n);null!=u&&(i&&s&&Zh(u,o)?Zh(o,a)||R(e,a):u<c?R(e,c):u>l&&R(e,l))},[R]),L=(0,u().useCallback)((e,t)=>{const{direction:n}=T.current,{layout:r}=k.current;if(!h.current)return;const o=lm(e,h.current);Xh(o,`Drag handle element not found for id "${e}"`);const i=dm(n,t);g({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})},[]),M=(0,u().useCallback)(()=>{g(null)},[]),F=(0,u().useCallback)(e=>{const{panelDataArray:t}=k.current,n=Sm(t,e);n>=0&&(t.splice(n,1),delete E.current[e.id],k.current.panelDataArrayChanged=!0,b())},[b]),j=(0,u().useMemo)(()=>({collapsePanel:S,direction:r,dragState:m,expandPanel:A,getPanelSize:N,getPanelStyle:_,groupId:f,isPanelCollapsed:C,isPanelExpanded:I,reevaluatePanelConstraints:P,registerPanel:O,registerResizeHandle:D,resizePanel:R,startDragging:L,stopDragging:M,unregisterPanel:F,panelGroupElement:h.current}),[S,m,r,A,N,_,f,C,I,P,O,D,R,L,M,F]),B={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return(0,u().createElement)(qf.Provider,{value:j},(0,u().createElement)(d,{...p,children:t,className:n,id:i,ref:h,style:{...B,...c},[Yf]:"",[Qf]:r,[Kf]:f}))}const km=(0,u().forwardRef)((e,t)=>(0,u().createElement)(Tm,{...e,forwardedRef:t}));function Sm(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function Am(e,t,n){const r=Sm(e,t),o=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:o}}function Nm({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:i,onClick:a,onDragging:s,onFocus:l,onPointerDown:c,onPointerUp:d,style:p={},tabIndex:f=0,tagName:h="div",...m}){var g,y;const v=(0,u().useRef)(null),b=(0,u().useRef)({onClick:a,onDragging:s,onPointerDown:c,onPointerUp:d});(0,u().useEffect)(()=>{b.current.onClick=a,b.current.onDragging=s,b.current.onPointerDown=c,b.current.onPointerUp=d});const E=(0,u().useContext)(qf);if(null===E)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:x,groupId:w,registerResizeHandle:T,startDragging:k,stopDragging:S,panelGroupElement:A}=E,N=uh(o),[_,C]=(0,u().useState)("inactive"),[I,O]=(0,u().useState)(!1),[D,R]=(0,u().useState)(null),P=(0,u().useRef)({state:_});ah(()=>{P.current.state=_}),(0,u().useEffect)(()=>{if(n)R(null);else{const e=T(N);R(()=>e)}},[n,N,T]);const L=null!==(g=null==r?void 0:r.coarse)&&void 0!==g?g:15,M=null!==(y=null==r?void 0:r.fine)&&void 0!==y?y:5;(0,u().useEffect)(()=>{if(n||null==D)return;const e=v.current;Xh(e,"Element ref not attached");let t=!1;return function(e,t,n,r,o){var i;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=null!==(i=jh.get(a))&&void 0!==i?i:0;return jh.set(a,l+1),Uh.add(s),Qh(),function(){var t;Bh.delete(e),Uh.delete(s);const n=null!==(t=jh.get(a))&&void 0!==t?t:1;if(jh.set(a,n-1),Qh(),1===n&&jh.delete(a),Mh.includes(s)){const e=Mh.indexOf(s);e>=0&&Mh.splice(e,1),qh(),o("up",!0,null)}}}(N,e,x,{coarse:L,fine:M},(e,n,r)=>{if(n)switch(e){case"down":{C("drag"),t=!1,Xh(r,'Expected event to be defined for "down" action'),k(N,r);const{onDragging:e,onPointerDown:n}=b.current;null==e||e(!0),null==n||n();break}case"move":{const{state:e}=P.current;t=!0,"drag"!==e&&C("hover"),Xh(r,'Expected event to be defined for "move" action'),D(r);break}case"up":{C("hover"),S();const{onClick:e,onDragging:n,onPointerUp:r}=b.current;null==n||n(!1),null==r||r(),t||null==e||e();break}}else C("inactive")})},[L,x,n,M,T,N,D,k,S]),function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){(0,u().useEffect)(()=>{if(e||null==n||null==r)return;const o=lm(t,r);if(null==o)return;const i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=o.getAttribute(Kf);Xh(n,`No group element found for id "${n}"`);const i=om(n,r),a=im(n,t,r);Xh(null!==a,`No resize element found for id "${t}"`),i[e.shiftKey?a>0?a-1:i.length-1:a+1<i.length?a+1:0].focus();break}}};return o.addEventListener("keydown",i),()=>{o.removeEventListener("keydown",i)}},[r,e,t,n])}({disabled:n,handleId:N,resizeHandler:D,panelGroupElement:A});return(0,u().createElement)(h,{...m,children:e,className:t,id:o,onBlur:()=>{O(!1),null==i||i()},onFocus:()=>{O(!0),null==l||l()},ref:v,role:"separator",style:{touchAction:"none",userSelect:"none",...p},tabIndex:f,[Qf]:x,[Kf]:w,[th]:"",[nh]:"drag"===_?"pointer":I?"keyboard":void 0,[rh]:!n,[oh]:N,[ih]:_})}Tm.displayName="PanelGroup",km.displayName="forwardRef(PanelGroup)",Nm.displayName="PanelResizeHandle";const _m=({children:e})=>(0,c().jsx)(km,{direction:"horizontal","data-testid":"layout",autoSaveId:"layout",className:"flex",children:e});_m.Sidebar=({className:e,children:t})=>(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(ph,{id:"sidebar",defaultSize:25,minSize:10,className:$p(e,"h-full p-4"),tagName:"aside",children:t}),(0,c().jsx)(Nm,{className:"border-r border-primary dark:border-primary-dark",disabled:!1})]}),_m.Main=({className:e,children:t})=>(0,c().jsx)(ph,{id:"content",defaultSize:70,minSize:30,"data-testid":"main",className:$p(e,"bg-primary dark:bg-primary-dark p-4"),children:t});const Cm="https://explorer.embed.apollographql.com",Im=({embeddedExplorerIFrame:e,message:t})=>{e.contentWindow?.postMessage(t,Cm)};var Om;function Dm(){return Dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dm.apply(null,arguments)}const Rm=function(e){return u().createElement("svg",Dm({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Om||(Om=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.604 3.025A.4.4 0 0 0 4 3.369v9.262a.4.4 0 0 0 .604.344l7.815-4.631a.4.4 0 0 0 0-.688z"})))};function Pm(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Lm(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Pm(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Pm(e[t],null)}}}}function Mm(...e){return u().useCallback(Lm(...e),e)}var Fm=Symbol.for("react.lazy"),jm=Se()[" use ".trim().toString()];function Bm(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Fm&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Um(e){const t=Vm(e),n=u().forwardRef((e,n)=>{let{children:r,...o}=e;Bm(r)&&"function"==typeof jm&&(r=jm(r._payload));const i=u().Children.toArray(r),a=i.find(Wm);if(a){const e=a.props.children,r=i.map(t=>t===a?u().Children.count(e)>1?u().Children.only(null):u().isValidElement(e)?e.props.children:null:t);return(0,c().jsx)(t,{...o,ref:n,children:u().isValidElement(e)?u().cloneElement(e,void 0,r):null})}return(0,c().jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var zm=Um("Slot");function Vm(e){const t=u().forwardRef((e,t)=>{let{children:n,...r}=e;if(Bm(n)&&"function"==typeof jm&&(n=jm(n._payload)),u().isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==u().Fragment&&(o.ref=t?Lm(t,e):e),u().cloneElement(n,o)}return u().Children.count(n)>1?u().Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hm=Symbol("radix.slottable");function $m(e){const t=({children:e})=>(0,c().jsx)(c().Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Hm,t}var Gm=$m("Slottable");function Wm(e){return u().isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Hm}const qm=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Ym=Hp,Qm=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return Ym(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const a=qm(t)||qm(r);return o[e][a]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...s}[t]):{...i,...s}[t]===n})?[...e,n,r]:e},[]);return Ym(e,a,l,null==n?void 0:n.class,null==n?void 0:n.className)},Km=Qm(["border-2","inline-block","rounded-full","animate-spin"],{variants:{variant:{default:["border-info","border-b-primary","border-l-primary","dark:border-info-dark","dark:border-b-primary-dark","dark:border-l-primary-dark"],neutral:["border-current","border-b-transparent","border-b-transparent"]},size:{tiny:["size-3"],xs:["size-4"],sm:["size-6"],md:["size-8"],lg:["size-10"]}},defaultVariants:{variant:"default",size:"md"}});function Xm({className:e,size:t,variant:n}){return(0,c().jsx)("div",{className:Bf(Km({size:t,variant:n}),e)})}const Jm=Qm(["flex","items-center","flex","gap-2","outline-none","focus:ring-3","focus:ring-offset-3","focus:ring-offset-primary","focus:dark:ring-offset-primary-dark","focus:ring-focused","focus:dark:ring-focused-dark","disabled:bg-button-disabled","disabled:dark:bg-button-disabled-dark","disabled:text-disabled","disabled:dark:text-disabled-dark","disabled:cursor-not-allowed","transition-colors","duration-200"],{variants:{variant:{hidden:["text-primary","dark:text-primary-dark","hover:bg-button-secondaryHover","hover:dark:bg-button-secondaryHover-dark","active:bg-button-secondarySelected","active:dark:bg-button-secondarySelected-dark"],primary:["text-white","bg-button-primary","dark:bg-button-primary-dark","hover:bg-button-primaryHover","hover:dark:bg-button-primaryHover-dark","active:bg-selected","active:dark:bg-selected-dark"],secondary:["text-primary","dark:text-primary-dark","border","bg-button-secondary","dark:bg-button-secondary-dark","border-primary","dark:border-primary-dark","hover:bg-button-secondaryHover","hover:dark:bg-button-secondaryHover-dark","active:bg-selected","active:dark:bg-selected-dark"]},size:{xs:["p-2","rounded","text-sm","font-semibold","has-[>svg:only-child]:p-1.5"],sm:["py-2","px-3","rounded","text-sm","font-semibold","has-[>svg:only-child]:p-2"],md:["py-2","px-3","rounded-lg","text-md","font-semibold","has-[>svg:only-child]:p-3"]}}}),Zm=Qm([],{variants:{size:{xs:["w-3"],sm:["w-4"],md:["w-4"]}}}),eg=(0,u().forwardRef)(function({asChild:e,className:t,children:n,variant:r,size:o,icon:i,loading:a,loadingText:s,...l},d){const p=e?zm:"button",f=a?s??n:n;return(0,c().jsxs)(p,{...l,ref:d,className:Bf(Jm({variant:r,size:o}),t),disabled:a||l.disabled,children:[a?(0,c().jsx)(Xm,{size:"xs"}):(0,u().isValidElement)(i)&&(0,u().cloneElement)(i,{"aria-hidden":!0,className:Bf(Zm({size:o}),i.props.className)}),e?(0,c().jsx)(Gm,{children:f}):f&&(0,u().isValidElement)(i)?(0,c().jsx)("span",{children:f}):f]})}),tg=({operation:e,variables:t,explorerRef:n})=>(0,c().jsx)(eg,{variant:"secondary",size:"sm",className:"ml-auto",icon:(0,c().jsx)(Rm,{}),onClick:()=>{n.current?.postMessage({name:"SetOperation",operation:e,variables:JSON.stringify(t)}),zp(Up.Explorer)},children:"Run in Explorer"});"undefined"==typeof window||!window.document||window.document.createElement;function ng(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function rg(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>u().createContext(e));return function(n){const r=n?.[e]||t;return u().useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=u().createContext(r),i=n.length;n=[...n,r];const a=t=>{const{scope:n,children:r,...a}=t,s=n?.[e]?.[i]||o,l=u().useMemo(()=>a,Object.values(a));return(0,c().jsx)(s.Provider,{value:l,children:r})};return a.displayName=t+"Provider",[a,function(n,a){const s=a?.[e]?.[i]||o,l=u().useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},og(r,...t)]}function og(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return u().useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function ig(e){const t=ag(e),n=u().forwardRef((e,n)=>{const{children:r,...o}=e,i=u().Children.toArray(r),a=i.find(lg);if(a){const e=a.props.children,r=i.map(t=>t===a?u().Children.count(e)>1?u().Children.only(null):u().isValidElement(e)?e.props.children:null:t);return(0,c().jsx)(t,{...o,ref:n,children:u().isValidElement(e)?u().cloneElement(e,void 0,r):null})}return(0,c().jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ag(e){const t=u().forwardRef((e,t)=>{const{children:n,...r}=e;if(u().isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==u().Fragment&&(o.ref=t?Lm(t,e):e),u().cloneElement(n,o)}return u().Children.count(n)>1?u().Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sg=Symbol("radix.slottable");function lg(e){return u().isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===sg}function cg(e){const t=e+"CollectionProvider",[n,r]=rg(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=u().useRef(null),i=u().useRef(new Map).current;return(0,c().jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};a.displayName=t;const s=e+"CollectionSlot",l=ig(s),d=u().forwardRef((e,t)=>{const{scope:n,children:r}=e,o=Mm(t,i(s,n).collectionRef);return(0,c().jsx)(l,{ref:o,children:r})});d.displayName=s;const p=e+"CollectionItemSlot",f="data-radix-collection-item",h=ig(p),m=u().forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,a=u().useRef(null),s=Mm(t,a),l=i(p,n);return u().useEffect(()=>(l.itemMap.set(a,{ref:a,...o}),()=>{l.itemMap.delete(a)})),(0,c().jsx)(h,{[f]:"",ref:s,children:r})});return m.displayName=p,[{Provider:a,Slot:d,ItemSlot:m},function(t){const n=i(e+"CollectionConsumer",t);return u().useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var ug=new WeakMap;Map;function dg(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,r=pg(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return-1===n?void 0:e[n]}function pg(e){return e!=e||0===e?0:Math.trunc(e)}var fg=globalThis?.document?u().useLayoutEffect:()=>{},hg=Se()[" useId ".trim().toString()]||(()=>{}),mg=0;function gg(e){const[t,n]=u().useState(hg());return fg(()=>{e||n(e=>e??String(mg++))},[e]),e||(t?`radix-${t}`:"")}function yg(e){const t=vg(e),n=u().forwardRef((e,n)=>{const{children:r,...o}=e,i=u().Children.toArray(r),a=i.find(Eg);if(a){const e=a.props.children,r=i.map(t=>t===a?u().Children.count(e)>1?u().Children.only(null):u().isValidElement(e)?e.props.children:null:t);return(0,c().jsx)(t,{...o,ref:n,children:u().isValidElement(e)?u().cloneElement(e,void 0,r):null})}return(0,c().jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function vg(e){const t=u().forwardRef((e,t)=>{const{children:n,...r}=e;if(u().isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==u().Fragment&&(o.ref=t?Lm(t,e):e),u().cloneElement(n,o)}return u().Children.count(n)>1?u().Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bg=Symbol("radix.slottable");function Eg(e){return u().isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===bg}var xg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=yg(`Primitive.${t}`),r=u().forwardRef((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c().jsx)(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wg(e){const t=u().useRef(e);return u().useEffect(()=>{t.current=e}),u().useMemo(()=>(...e)=>t.current?.(...e),[])}var Tg=Se()[" useInsertionEffect ".trim().toString()]||fg;function kg({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=function({defaultProp:e,onChange:t}){const[n,r]=u().useState(e),o=u().useRef(n),i=u().useRef(t);return Tg(()=>{i.current=t},[t]),u().useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o;{const t=u().useRef(void 0!==e);u().useEffect(()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}const c=u().useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&a.current?.(n)}else i(t)},[s,e,i,a]);return[l,c]}Symbol("RADIX:SYNC_STATE");var Sg=u().createContext(void 0);function Ag(e){const t=u().useContext(Sg);return e||t||"ltr"}var Ng="rovingFocusGroup.onEntryFocus",_g={bubbles:!1,cancelable:!0},Cg="RovingFocusGroup",[Ig,Og,Dg]=cg(Cg),[Rg,Pg]=rg(Cg,[Dg]),[Lg,Mg]=Rg(Cg),Fg=u().forwardRef((e,t)=>(0,c().jsx)(Ig.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c().jsx)(Ig.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c().jsx)(jg,{...e,ref:t})})}));Fg.displayName=Cg;var jg=u().forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...f}=e,h=u().useRef(null),m=Mm(t,h),g=Ag(i),[y,v]=kg({prop:a,defaultProp:s??null,onChange:l,caller:Cg}),[b,E]=u().useState(!1),x=wg(d),w=Og(n),T=u().useRef(!1),[k,S]=u().useState(0);return u().useEffect(()=>{const e=h.current;if(e)return e.addEventListener(Ng,x),()=>e.removeEventListener(Ng,x)},[x]),(0,c().jsx)(Lg,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:y,onItemFocus:u().useCallback(e=>v(e),[v]),onItemShiftTab:u().useCallback(()=>E(!0),[]),onFocusableItemAdd:u().useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:u().useCallback(()=>S(e=>e-1),[]),children:(0,c().jsx)(xg.div,{tabIndex:b||0===k?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:ng(e.onMouseDown,()=>{T.current=!0}),onFocus:ng(e.onFocus,e=>{const t=!T.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(Ng,_g);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter(e=>e.focusable);Vg([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),p)}}T.current=!1}),onBlur:ng(e.onBlur,()=>E(!1))})})}),Bg="RovingFocusGroupItem",Ug=u().forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...s}=e,l=gg(),d=i||l,p=Mg(Bg,n),f=p.currentTabStopId===d,h=Og(n),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:y}=p;return u().useEffect(()=>{if(r)return m(),()=>g()},[r,m,g]),(0,c().jsx)(Ig.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:(0,c().jsx)(xg.span,{tabIndex:f?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:ng(e.onMouseDown,e=>{r?p.onItemFocus(d):e.preventDefault()}),onFocus:ng(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:ng(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:zg[r]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=p.loop?(r=i+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>Vg(o))}var n,r}),children:"function"==typeof a?a({isCurrentTabStop:f,hasTabStop:null!=y}):a})})});Ug.displayName=Bg;var zg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Vg(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Hg=Fg,$g=Ug;var Gg=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=u().useState(),r=u().useRef(null),o=u().useRef(e),i=u().useRef("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return u().useReducer((e,n)=>t[e][n]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u().useEffect(()=>{const e=Wg(r.current);i.current="mounted"===s?e:"none"},[s]),fg(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Wg(t);if(e)l("MOUNT");else if("none"===a||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),fg(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=Wg(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&a&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(i.current=Wg(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u().useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):u().Children.only(n),i=Mm(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?u().cloneElement(o,{ref:i}):null};function Wg(e){return e?.animationName||"none"}Gg.displayName="Presence";var qg="Tabs",[Yg,Qg]=rg(qg,[Pg]),Kg=Pg(),[Xg,Jg]=Yg(qg),Zg=u().forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=e,d=Ag(s),[p,f]=kg({prop:r,onChange:o,defaultProp:i??"",caller:qg});return(0,c().jsx)(Xg,{scope:n,baseId:gg(),value:p,onValueChange:f,orientation:a,dir:d,activationMode:l,children:(0,c().jsx)(xg.div,{dir:d,"data-orientation":a,...u,ref:t})})});Zg.displayName=qg;var ey="TabsList",ty=u().forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Jg(ey,n),a=Kg(n);return(0,c().jsx)(Hg,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:(0,c().jsx)(xg.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});ty.displayName=ey;var ny="TabsTrigger",ry=u().forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Jg(ny,n),s=Kg(n),l=ay(a.baseId,r),u=sy(a.baseId,r),d=r===a.value;return(0,c().jsx)($g,{asChild:!0,...s,focusable:!o,active:d,children:(0,c().jsx)(xg.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...i,ref:t,onMouseDown:ng(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:ng(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:ng(e.onFocus,()=>{const e="manual"!==a.activationMode;d||o||!e||a.onValueChange(r)})})})});ry.displayName=ny;var oy="TabsContent",iy=u().forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=Jg(oy,n),l=ay(s.baseId,r),d=sy(s.baseId,r),p=r===s.value,f=u().useRef(p);return u().useEffect(()=>{const e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c().jsx)(Gg,{present:o||p,children:({present:n})=>(0,c().jsx)(xg.div,{"data-state":p?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:d,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:n&&i})})});function ay(e,t){return`${e}-trigger-${t}`}function sy(e,t){return`${e}-content-${t}`}iy.displayName=oy;var ly=Zg,cy=ty,uy=ry,dy=iy;function py({children:e,className:t,defaultValue:n,value:r,onChange:o}){return(0,c().jsx)(ly,{className:$p(t,"flex data-orientation-horizontal:flex-col"),defaultValue:n,value:r,onValueChange:e=>o?.(e),children:e})}py.Content=function({className:e,children:t,forceMount:n,value:r}){return(0,c().jsx)(dy,{className:$p(e,"data-state-inactive:hidden"),forceMount:n,value:r,children:t})},py.List=function({className:e,children:t}){return(0,c().jsx)(cy,{className:Hp(e,"flex shrink-0 items-center gap-6 border-b border-b-primary dark:border-b-primary-dark overflow-x-auto"),children:t})},py.Trigger=function({children:e,value:t}){return(0,c().jsx)(uy,{className:"py-2 text-md text-secondary dark:text-secondary-dark data-state-active:font-semibold data-state-active:text-primary dark:data-state-active:text-primary-dark border-y-4 border-y-transparent data-state-active:border-b-neutral dark:data-state-active:border-b-neutral-dark whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focused focus-visible:dark:ring-focused-dark",value:t,children:e})};var fy,hy,my,gy,yy,vy,by,Ey=Object.create,xy=Object.defineProperty,wy=Object.defineProperties,Ty=Object.getOwnPropertyDescriptor,ky=Object.getOwnPropertyDescriptors,Sy=Object.getOwnPropertyNames,Ay=Object.getOwnPropertySymbols,Ny=Object.getPrototypeOf,_y=Object.prototype.hasOwnProperty,Cy=Object.prototype.propertyIsEnumerable,Iy=(e,t,n)=>t in e?xy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oy=(e,t)=>{for(var n in t||(t={}))_y.call(t,n)&&Iy(e,n,t[n]);if(Ay)for(var n of Ay(t))Cy.call(t,n)&&Iy(e,n,t[n]);return e},Dy=(e,t)=>wy(e,ky(t)),Ry=(e,t)=>{var n={};for(var r in e)_y.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ay)for(var r of Ay(e))t.indexOf(r)<0&&Cy.call(e,r)&&(n[r]=e[r]);return n},Py=(fy={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach(function(t,r){o[r]=e(t,n)}),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=i[s])}var c=o[e];return o[e]=a,r.languages.DFS(r.languages,function(t,n){n===c&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var l=t[s],c=r.util.type(l);"Object"!==c||i[a(l)]?"Array"!==c||i[a(l)]||(i[a(l)]=!0,e(l,n,s,i)):(i[a(l)]=!0,e(l,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var m=f[h],g=m.inside,y=!!m.lookbehind,v=!!m.greedy,b=m.alias;if(v&&!m.pattern.global){var E=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,E+"g")}for(var x=m.pattern||m,w=s.next,T=u;w!==t.tail&&!(d&&T>=d.reach);T+=w.value.length,w=w.next){var k=w.value;if(t.length>e.length)return;if(!(k instanceof o)){var S,A=1;if(v){if(!(S=i(x,T,e,y))||S.index>=e.length)break;var N=S.index,_=S.index+S[0].length,C=T;for(C+=w.value.length;N>=C;)C+=(w=w.next).value.length;if(T=C-=w.value.length,w.value instanceof o)continue;for(var I=w;I!==t.tail&&(C<_||"string"==typeof I.value);I=I.next)A++,C+=I.value.length;A--,k=e.slice(T,C),S.index-=T}else if(!(S=i(x,0,k,y)))continue;N=S.index;var O=S[0],D=k.slice(0,N),R=k.slice(N+O.length),P=T+k.length;d&&P>d.reach&&(d.reach=P);var L=w.prev;if(D&&(L=l(t,L,D),T+=D.length),c(t,L,A),w=l(t,L,new o(p,g?r.tokenize(O,g):O,b,O)),R&&l(t,w,R),A>1){var M={cause:p+","+h,reach:P};a(e,t,n,w.prev,T,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach(function(t){o+=e(t,n)}),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var l in i.attributes)s+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return hy||(0,fy[Sy(fy)[0]])((hy={exports:{}}).exports,hy),hy.exports}),Ly=((e,t,n)=>(n=null!=e?Ey(Ny(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Sy(t))_y.call(e,o)||o===n||xy(e,o,{get:()=>t[o],enumerable:!(r=Ty(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:xy(n,"default",{value:e,enumerable:!0}),e)))(Py());Ly.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Ly.languages.markup.tag.inside["attr-value"].inside.entity=Ly.languages.markup.entity,Ly.languages.markup.doctype.inside["internal-subset"].inside=Ly.languages.markup,Ly.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Ly.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Ly.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:Ly.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Ly.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Ly.languages.markup.tag,"addAttribute",{value:function(e,t){Ly.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Ly.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Ly.languages.html=Ly.languages.markup,Ly.languages.mathml=Ly.languages.markup,Ly.languages.svg=Ly.languages.markup,Ly.languages.xml=Ly.languages.extend("markup",{}),Ly.languages.ssml=Ly.languages.xml,Ly.languages.atom=Ly.languages.xml,Ly.languages.rss=Ly.languages.xml,my=Ly,gy={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},vy="(?:[^\\\\-]|"+(yy=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",vy=RegExp(vy+"-"+vy),by={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},my.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:vy,inside:{escape:yy,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":gy,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:yy}},"special-escape":gy,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":by}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:yy,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":by}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},Ly.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Ly.languages.javascript=Ly.languages.extend("clike",{"class-name":[Ly.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Ly.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Ly.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Ly.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Ly.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Ly.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Ly.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Ly.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Ly.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Ly.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Ly.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Ly.languages.markup&&(Ly.languages.markup.tag.addInlined("script","javascript"),Ly.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Ly.languages.js=Ly.languages.javascript,Ly.languages.actionscript=Ly.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Ly.languages.actionscript["class-name"].alias="function",delete Ly.languages.actionscript.parameter,delete Ly.languages.actionscript["literal-property"],Ly.languages.markup&&Ly.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Ly.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(Ly),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach(function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var s=0,l=a.length;s<l;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),r(a[s]);else r(a)}})}}),t.addSupport(["java","javascript","php"],t)}(Ly),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Ly),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(Ly),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+i+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Ly),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e}),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Ly),Ly.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Ly.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Ly.hooks.add("after-tokenize",function(e){if("graphql"===e.language)for(var t=e.tokens.filter(function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type}),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var i=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=u(0);"variable"===a.type&&(f(a,"variable-input"),o.push(a.content))}n=i+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<o.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=o.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0===--o)return i}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}}),Ly.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,a){var l=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),c=0,u={},d=(l=s(l.map(function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+a.toUpperCase()+"_"+r+"___")););return u[n]=e,n}).join(""),n,a),Object.keys(u));return c=0,function t(n){for(var i=0;i<n.length;i++){if(c>=d.length)return;var a,l,p,f,h,m,g,y=n[i];"string"==typeof y||"string"==typeof y.content?(a=d[c],-1!==(g=(m="string"==typeof y?y:y.content).indexOf(a))&&(++c,l=m.substring(0,g),h=u[a],p=void 0,(f={})["interpolation-punctuation"]=o,3===(f=e.tokenize(h,f)).length&&((p=[1,1]).push.apply(p,s(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,h),f=m.substring(g+a.length),h=[],l&&h.push(l),h.push(p),f&&(t(m=[f]),h.push.apply(h,m)),"string"==typeof y?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):y.content=h)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(a,l,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",function(t){t.language in c&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,s,c=n[r];"string"!=typeof c&&(i=c.content,Array.isArray(i)?"template-string"===c.type?(c=i[1],3===i.length&&"string"!=typeof c&&"embedded-code"===c.type&&(a=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(i[1]=l(a,s,c))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)})}(Ly),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Ly),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Ly),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Ly),Ly.languages.n4js=Ly.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Ly.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Ly.languages.n4jsd=Ly.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Ly),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=s(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)})}(Ly),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(Ly),Ly.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Ly.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Ly.languages.swift}),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Ly),Ly.languages.c=Ly.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Ly.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Ly.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Ly.languages.c.string],char:Ly.languages.c.char,comment:Ly.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Ly.languages.c}}}}),Ly.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Ly.languages.c.boolean,Ly.languages.objectivec=Ly.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Ly.languages.objectivec["class-name"],Ly.languages.objc=Ly.languages.objectivec,Ly.languages.reason=Ly.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),Ly.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete Ly.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Ly),Ly.languages.go=Ly.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Ly.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Ly.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Ly),Ly.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Ly.languages.python["string-interpolation"].inside.interpolation.inside.rest=Ly.languages.python,Ly.languages.py=Ly.languages.python,Ly.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Ly.languages.webmanifest=Ly.languages.json;((e,t)=>{for(var n in t)xy(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>Fy,duotoneDark:()=>jy,duotoneLight:()=>By,github:()=>Uy,gruvboxMaterialDark:()=>rv,gruvboxMaterialLight:()=>ov,jettwaveDark:()=>Zy,jettwaveLight:()=>ev,nightOwl:()=>zy,nightOwlLight:()=>Vy,oceanicNext:()=>Gy,okaidia:()=>Wy,oneDark:()=>tv,oneLight:()=>nv,palenight:()=>qy,shadesOfPurple:()=>Yy,synthwave84:()=>Qy,ultramin:()=>Ky,vsDark:()=>Xy,vsLight:()=>Jy});var My,Fy={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},jy={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},By={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Uy={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},zy={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},Vy={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Hy="#c5a5c5",$y="#8dc891",Gy={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Hy}},{types:["attr-value"],style:{color:$y}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:$y}},{types:["punctuation"],style:{color:$y}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Hy}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Wy={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},qy={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Yy={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Qy={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Ky={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Xy={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Jy={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Zy={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},ev={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},tv={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},nv={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},rv={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},ov={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},iv=/\r\n|\r|\n/,av=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},sv=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},lv=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,s=[];const l=[s];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,c=t[a];const u=n[a][i];if("string"==typeof u?(c=a>0?c:["plain"],e=u):(c=sv(c,u.type),u.alias&&(c=sv(c,u.alias)),e=u.content),"string"!=typeof e){a++,t.push(c),n.push(e),r.push(0),o.push(e.length);continue}const d=e.split(iv),p=d.length;s.push({types:c,content:d[0]});for(let e=1;e<p;e++)av(s),l.push(s=[]),s.push({types:c,content:d[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return av(s),l},cv=(e,t)=>{const{plain:n}=e,r=e.styles.reduce((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach(t=>{const n=Oy(Oy({},e[t]),o);e[t]=n}),e},{});return r.root=n,r.plain=Dy(Oy({},n),{backgroundColor:void 0}),r},uv=({children:e,language:t,code:n,theme:r,prism:o})=>{const i=t.toLowerCase(),a=cv(r,i),s=(e=>(0,u().useCallback)(t=>{var n=t,{className:r,style:o,line:i}=n,a=Ry(n,["className","style","line"]);const s=Dy(Oy({},a),{className:$p("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=Oy(Oy({},s.style||{}),o)),s},[e]))(a),l=(e=>{const t=(0,u().useCallback)(({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map(t=>e[t]))},[e]);return(0,u().useCallback)(e=>{var n=e,{token:r,className:o,style:i}=n,a=Ry(n,["token","className","style"]);const s=Dy(Oy({},a),{className:$p("token",...r.types,o),children:r.content,style:t(r)});return null!=i&&(s.style=Oy(Oy({},s.style||{}),i)),s},[t])})(a),c=(({prism:e,code:t,grammar:n,language:r})=>(0,u().useMemo)(()=>{if(null==n)return lv([t]);const o={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",o),lv(o.tokens)},[t,n,r,e]))({prism:o,language:i,code:n,grammar:o.languages[i]});return e({tokens:c,className:`prism-code language-${i}`,style:null!=a?a.root:{},getLineProps:s,getTokenProps:l})},dv=e=>(0,u().createElement)(uv,Dy(Oy({},e),{prism:e.prism||Ly,theme:e.theme||Xy,code:e.code,language:e.language}));function pv(){return pv.c||(pv.c=n.n(r()))}function fv(){return fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fv.apply(null,arguments)}e(),r();const hv=function(e){return u().createElement("svg",fv({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),My||(My=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M10.969 3.313v-1.72a.625.625 0 0 0-.625-.624h-8.75a.625.625 0 0 0-.625.625v8.75a.625.625 0 0 0 .625.625h1.719M5.03 5.656a.625.625 0 0 1 .625-.625h8.75a.625.625 0 0 1 .625.625v8.75a.625.625 0 0 1-.625.625h-8.75a.625.625 0 0 1-.625-.625z"})))};function mv({text:e,...t}){return(0,c().jsx)(eg,{...t,asChild:!1,onClick:n=>{pv()()(e),t.onClick?.(n)},"aria-label":"Copy",variant:"hidden",icon:(0,c().jsx)(hv,{})})}const{code:gv}=e().colors.tokens,yv=({code:e,className:t,copyable:n=!0,language:r})=>{const o=Mp(xd),i=(0,u().useMemo)(()=>(e=>{const t=e===vd.Dark;return{plain:{color:"currentColor"},styles:[{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["selector","attr-name","char","builtin","inserted"],style:{color:t?gv.d.dark:gv.d.base}},{types:["comment","prolog","doctype","cdata"],style:{color:t?gv.b.dark:gv.b.base,fontWeight:"bold"}},{types:["scalar","attr-value"],style:{color:t?gv.c.dark:gv.c.base}},{types:["url","attr-value"],style:{color:t?gv.g.dark:gv.g.base}},{types:["punctuation","constant"],style:{color:t?gv.a.dark:gv.a.base}},{types:["property","tag","boolean","number","symbol"],style:{color:t?gv.c.dark:gv.c.base}},{types:["class-name"],style:{color:t?gv.a.dark:gv.a.base}},{types:["property","function"],style:{color:t?gv.d.dark:gv.d.base}},{types:["atrule","attr-value","keyword"],style:{color:"inherit",background:"transparent"}},{types:["atrule","attr-value","keyword"],style:{color:t?gv.b.dark:gv.b.base}},{types:["string"],style:{color:t?gv.g.dark:gv.g.base}},{types:["regex","important","variable","description","comment","prolog","doctype","cdata"],style:{color:t?gv.f.dark:gv.f.base}}]}})(o),[o]);return(0,c().jsxs)("div",{className:Hp(t,"flex gap-1 items-start bg-secondary dark:bg-secondary-dark p-4 rounded-lg relative border border-primary dark:border-primary-dark overflow-auto text-sm"),children:[(0,c().jsx)(dv,{language:r,theme:i,code:e,children:({className:e,style:t,tokens:n,getLineProps:r,getTokenProps:o})=>(0,c().jsx)("pre",{className:Hp(e,"flex-1 h-full overflow-auto"),style:t,children:(0,c().jsx)("code",{className:"block",children:n.map((e,t)=>(0,u().createElement)("div",{...r({line:e,key:t}),key:t},e.map((e,t)=>(0,u().createElement)("span",{...o({token:e,key:t}),key:t}))))})})}),n&&(0,c().jsx)(mv,{text:e,size:"sm",className:"sticky top-0"})]})};function vv({children:e}){return(0,c().jsx)(_m.Main,{className:Hp("grid gap-x-6 gap-y-2 !overflow-y-auto !overflow-x-hidden [grid-template-areas:'header'_'content'_'tabs'] [grid-template-columns:minmax(0,1fr)] [grid-template-rows:auto_auto_minmax(0,1fr)]","xl:[grid-template-areas:'header_tabs'_'content_tabs'] xl:[grid-template-columns:minmax(0,1fr)_350px] xl:[grid-template-rows:auto_minmax(0,1fr)]"),children:e})}function bv({className:e}){return(0,c().jsxs)("div",{className:Hp(e,"max-w-96 text-center"),children:[(0,c().jsx)("h1",{className:"text-md font-semibold font-body text-heading dark:text-heading-dark",children:"👋 Welcome to Apollo Client Devtools"}),(0,c().jsx)("div",{children:"Start interacting with your interface to see data reflected in this space"})]})}var Ev;function xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xv.apply(null,arguments)}vv.Content=function({children:e}){return(0,c().jsx)("div",{className:"[grid-area:content] overflow-auto flex flex-col",children:e})},vv.Header=function({children:e}){return(0,c().jsx)("div",{className:"flex items-center justify-between [grid-area:header]",children:e})},vv.QueryString=function({code:e}){return(0,c().jsx)("div",{"data-testid":"query",className:"flex-1 min-h-28 max-h-[500px] lg:max-h-none overflow-auto",children:(0,c().jsx)(yv,{language:"graphql",code:e,className:"max-h-full"})})},vv.Tabs=function({children:e,defaultValue:t,value:n,onChange:r}){return(0,c().jsx)(py,{className:"[grid-area:tabs] lg:overflow-hidden lg:-my-2",defaultValue:t,value:n,onChange:r,children:e})},vv.TabContent=function({children:e,value:t}){return(0,c().jsx)(py.Content,{className:"text-sm py-4 lg:flex-1 lg:overflow-auto",value:t,children:e})},vv.Title=function({className:e,children:t}){return(0,c().jsx)("h1",{"data-testid":"title",className:Bf("font-code font-medium text-2xl text-heading dark:text-heading-dark",e),children:t})};const wv=function(e){return u().createElement("svg",xv({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17"},e),Ev||(Ev=u().createElement("circle",{cx:8.015,cy:8.228,r:4,fill:"currentColor"})))},Tv=Qm(["inline-flex","items-center","font-body","font-normal","text-md","gap-2"],{variants:{variant:{rounded:["py-1","px-3","rounded-[100px]","border","border-primary","bg-primary","dark:border-primary-dark","dark:bg-primary-dark"],hidden:[]}}}),kv=Qm(["size-4"],{variants:{color:{blue:["text-icon-info","text-icon-info-dark"],gray:["text-icon-secondary","dark:text-icon-secondary-dark"],green:["text-icon-success","dark:text-icon-success-dark"],navy:["text-icon-disabled","dark:text-icon-disabled-dark"],purple:["text-icon-beta","dark:text-icon-beta-dark"],red:["text-icon-error","dark:text-icon-error-dark"],yellow:["text-icon-change","dark:text-icon-change-dark"]}}});function Sv({className:e,children:t,color:n,variant:r,icon:o=(0,c().jsx)(wv,{})}){return(0,c().jsxs)("span",{className:Bf(Tv({variant:r}),e),children:[(0,u().cloneElement)(o,{className:Bf(kv({color:n}),o.props.className)}),t]})}const Av="undefined"!=typeof document?d().useLayoutEffect:()=>{};var Nv;const _v=null!==(Nv=d().useInsertionEffect)&&void 0!==Nv?Nv:Av;function Cv(e){const t=(0,u().useRef)(null);return _v(()=>{t.current=e},[e]),(0,u().useCallback)((...e)=>{const n=t.current;return null==n?void 0:n(...e)},[])}function Iv(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ov(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Dv(e){let t=(0,u().useRef)({isFocused:!1,observer:null});Av(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=Cv(t=>{null==e||e(t)});return(0,u().useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{if(t.current.isFocused=!1,r.disabled){let t=Iv(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Rv=!1;function Pv(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function Lv(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Mv(e){let t=null;return()=>(null==t&&(t=e()),t)}const Fv=Mv(function(){return Lv(/^Mac/i)}),jv=Mv(function(){return Lv(/^iPhone/i)}),Bv=Mv(function(){return Lv(/^iPad/i)||Fv()&&navigator.maxTouchPoints>1}),Uv=Mv(function(){return jv()||Bv()}),zv=(Mv(function(){return Fv()||Uv()}),Mv(function(){return Pv(/AppleWebKit/i)&&!zv()}),Mv(function(){return Pv(/Chrome/i)})),Vv=Mv(function(){return Pv(/Android/i)});Mv(function(){return Pv(/Firefox/i)});const Hv=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},$v=e=>{if(e&&"window"in e&&e.window===e)return e;return Hv(e).defaultView||window};function Gv(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}let Wv=null,qv=new Set,Yv=new Map,Qv=!1,Kv=!1;const Xv={Tab:!0,Escape:!0};function Jv(e,t){for(let n of qv)n(e,t)}function Zv(e){Qv=!0,function(e){return!(e.metaKey||!Fv()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Wv="keyboard",Jv("keyboard",e))}function eb(e){Wv="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Qv=!0,Jv("pointer",e))}function tb(e){var t;(""===(t=e).pointerType&&t.isTrusted||(Vv()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(Qv=!0,Wv="virtual")}function nb(e){e.target!==window&&e.target!==document&&!Rv&&e.isTrusted&&(Qv||Kv||(Wv="virtual",Jv("virtual",e)),Qv=!1,Kv=!1)}function rb(){Rv||(Qv=!1,Kv=!0)}function ob(e){if("undefined"==typeof window||"undefined"==typeof document||Yv.get($v(e)))return;const t=$v(e),n=Hv(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Qv=!0,r.apply(this,arguments)},n.addEventListener("keydown",Zv,!0),n.addEventListener("keyup",Zv,!0),n.addEventListener("click",tb,!0),t.addEventListener("focus",nb,!0),t.addEventListener("blur",rb,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",eb,!0),n.addEventListener("pointermove",eb,!0),n.addEventListener("pointerup",eb,!0)),t.addEventListener("beforeunload",()=>{ib(e)},{once:!0}),Yv.set(t,{focus:r})}const ib=(e,t)=>{const n=$v(e),r=Hv(e);t&&r.removeEventListener("DOMContentLoaded",t),Yv.has(n)&&(n.HTMLElement.prototype.focus=Yv.get(n).focus,r.removeEventListener("keydown",Zv,!0),r.removeEventListener("keyup",Zv,!0),r.removeEventListener("click",tb,!0),n.removeEventListener("focus",nb,!0),n.removeEventListener("blur",rb,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",eb,!0),r.removeEventListener("pointermove",eb,!0),r.removeEventListener("pointerup",eb,!0)),Yv.delete(n))};function ab(){return"pointer"!==Wv}"undefined"!=typeof document&&function(e){const t=Hv(e);let n;"loading"!==t.readyState?ob(e):(n=()=>{ob(e)},t.addEventListener("DOMContentLoaded",n))}();const sb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function lb(e,t,n){ob(),(0,u().useEffect)(()=>{let t=(t,r)=>{(function(e,t,n){let r=Hv(null==n?void 0:n.target);const o="undefined"!=typeof window?$v(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?$v(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?$v(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?$v(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!sb.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!Xv[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(ab())};return qv.add(t),()=>{qv.delete(t)}},t)}let cb=!1;function ub(){return cb}function db(e,t){if(!ub())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:Gv(n)?n.host:n.parentNode}return!1}const pb=(e=document)=>{var t;if(!ub())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function fb(e){return ub()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function hb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=(0,u().useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),a=Dv(i),s=(0,u().useCallback)(e=>{const t=Hv(e.target),r=t?pb(t):pb();e.target===e.currentTarget&&r===fb(e.nativeEvent)&&(n&&n(e),o&&o(!0),a(e))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:t||!r&&!o?void 0:i}}}function mb(){let e=(0,u().useRef)(new Map),t=(0,u().useCallback)((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,u().useCallback)((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)},[]),r=(0,u().useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,u().useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function gb(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,u().useRef)({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=mb(),l=(0,u().useCallback)(e=>{e.currentTarget.contains(e.target)&&i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,s(),n&&n(e),o&&o(!1))},[n,o,i,s]),c=Dv(l),d=(0,u().useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;const t=Hv(e.target),n=pb(t);if(!i.current.isFocusWithin&&n===fb(e.nativeEvent)){r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,c(e);let n=e.currentTarget;a(t,"focus",e=>{if(i.current.isFocusWithin&&!db(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Ov(r,n);let o=Iv(r);l(o)}},{capture:!0})}},[r,o,c,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:l}}}function yb(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,u().useRef)({isFocused:!1,isFocusVisible:t||ab()}),[i,a]=(0,u().useState)(!1),[s,l]=(0,u().useState)(()=>o.current.isFocused&&o.current.isFocusVisible),c=(0,u().useCallback)(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,u().useCallback)(e=>{o.current.isFocused=e,a(e),c()},[c]);lb(e=>{o.current.isFocusVisible=e,c()},[],{isTextInput:n});let{focusProps:p}=hb({isDisabled:r,onFocusChange:d}),{focusWithinProps:f}=gb({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:r?f:p}}let vb=!1,bb=0;function Eb(e){"touch"===e.pointerType&&(vb=!0,setTimeout(()=>{vb=!1},50))}function xb(){if("undefined"!=typeof document)return 0===bb&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",Eb),bb++,()=>{bb--,bb>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",Eb)}}function wb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=(0,u().useState)(!1),s=(0,u().useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,u().useEffect)(xb,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=mb(),{hoverProps:d,triggerHoverEnd:p}=(0,u().useMemo)(()=>{let e=(e,t)=>{let o=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&o&&(s.isHovered=!1,c(),r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),a(!1))},i={};return"undefined"!=typeof PointerEvent&&(i.onPointerEnter=r=>{vb&&"mouse"===r.pointerType||((r,i)=>{if(s.pointerType=i,o||"touch"===i||s.isHovered||!r.currentTarget.contains(r.target))return;s.isHovered=!0;let c=r.currentTarget;s.target=c,l(Hv(r.target),"pointerover",t=>{s.isHovered&&s.target&&!db(s.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:c,pointerType:i}),n&&n(!0),a(!0)})(r,r.pointerType)},i.onPointerLeave=t=>{!o&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:i,triggerHoverEnd:e}},[t,n,r,o,s,l,c]);return(0,u().useEffect)(()=>{o&&p({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:d,isHovered:i}}var Tb=Object.defineProperty,kb=(e,t,n)=>(((e,t,n)=>{t in e?Tb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Sb=new class{constructor(){kb(this,"current",this.detect()),kb(this,"handoffState","pending"),kb(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function Ab(e){var t;return Sb.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function Nb(e){var t,n;return Sb.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}function _b(e){var t,n;return null!=(n=null==(t=Nb(e))?void 0:t.activeElement)?n:null}function Cb(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function Ib(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return Cb(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=Ib();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Ob(){let[e]=(0,u().useState)(Ib);return(0,u().useEffect)(()=>()=>e.dispose(),[e]),e}let Db=(e,t)=>{Sb.isServer?(0,u().useEffect)(e,t):(0,u().useLayoutEffect)(e,t)};function Rb(e){let t=(0,u().useRef)(e);return Db(()=>{t.current=e},[e]),t}let Pb=function(e){let t=Rb(e);return u().useCallback((...e)=>t.current(...e),[t])};function Lb({disabled:e=!1}={}){let t=(0,u().useRef)(null),[n,r]=(0,u().useState)(!1),o=Ob(),i=Pb(()=>{t.current=null,r(!1),o.dispose()}),a=Pb(e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=Ab(e.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}},!1),o.addEventListener(n,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:i,onClick:i}}}function Mb(e){return(0,u().useMemo)(()=>e,Object.values(e))}let Fb=Symbol();function jb(e,t=!0){return Object.assign(e,{[Fb]:t})}function Bb(...e){let t=(0,u().useRef)(e);(0,u().useEffect)(()=>{t.current=e},[e]);let n=Pb(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[Fb]))?void 0:n}var Ub,zb;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Ub=null==process?void 0:process.env)?void 0:Ub.NODE_ENV)&&void 0===(null==(zb=null==Element?void 0:Element.prototype)?void 0:zb.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Vb,Hb=((Vb=Hb||{})[Vb.None=0]="None",Vb[Vb.Closed=1]="Closed",Vb[Vb.Enter=2]="Enter",Vb[Vb.Leave=4]="Leave",Vb);function $b(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Gb(e,t,n,r){let[o,i]=(0,u().useState)(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=(0,u().useState)(e),r=(0,u().useCallback)(e=>n(e),[]),o=(0,u().useCallback)(e=>n(t=>t|e),[]),i=(0,u().useCallback)(e=>(t&e)===e,[t]),a=(0,u().useCallback)(e=>n(t=>t&~e),[]),s=(0,u().useCallback)(e=>n(t=>t^e),[]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(e&&o?3:0),c=(0,u().useRef)(!1),d=(0,u().useRef)(!1),p=Ob();return Db(()=>{var o;if(e)return n&&i(!0),t?(null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=Ib();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(function(e,t){var n,r;let o=Ib();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===a.length?(t(),o.dispose):(Promise.allSettled(a.map(e=>e.finished)).then(()=>{i||t()}),o.dispose)}(e,r))})}),i.dispose}(t,{inFlight:c,prepare(){d.current?d.current=!1:d.current=c.current,c.current=!0,!d.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){d.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var e;d.current&&function(e){var t,n;return(null!=(n=null==(t=e.getAnimations)?void 0:t.call(e))?n:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)}(t)||(c.current=!1,l(7),n||i(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&s(3))},[e,n,t,p]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}let Wb=(0,u().createContext)(()=>{});function qb({value:e,children:t}){return u().createElement(Wb.Provider,{value:e},t)}let Yb=(0,u().createContext)(null);Yb.displayName="OpenClosedContext";var Qb=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Qb||{});function Kb(){return(0,u().useContext)(Yb)}function Xb({value:e,children:t}){return u().createElement(Yb.Provider,{value:e},t)}function Jb({children:e}){return u().createElement(Yb.Provider,{value:null},e)}function Zb(e){return function(e){return"object"==typeof e&&null!==e&&"nodeType"in e}(e)&&"tagName"in e}function eE(e){return Zb(e)&&"accessKey"in e}function tE(e){return Zb(e)&&"tabIndex"in e}function nE(e){return eE(e)&&"FIELDSET"===e.nodeName}function rE(e){return eE(e)&&"LEGEND"===e.nodeName}function oE(e){let t=e.parentElement,n=null;for(;t&&!nE(t);)rE(t)&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(rE(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}function iE(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,iE),r}function aE(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var sE,lE=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(lE||{}),cE=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(cE||{});function uE(){let e=function(){let e=(0,u().useRef)([]),t=(0,u().useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return(...n)=>{if(!n.every(e=>null==e))return e.current=n,t}}();return(0,u().useCallback)(t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:pE;let l=fE(t,e);if(i)return dE(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return dE(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return iE(e?0:1,{0:()=>null,1:()=>dE({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return dE(l,n,r,a,s)}({mergeRefs:e,...t}),[e])}function dE(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=yE(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let p={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){p["data-headlessui-state"]=n.join(" ");for(let e of n)p[`data-${e}`]=""}}if(bE(i)&&(Object.keys(gE(l)).length>0||Object.keys(gE(p)).length>0)){if(!(!(0,u().isValidElement)(d)||Array.isArray(d)&&d.length>1||function(e){return bE(e.type)}(d))){let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>aE(t(...e),l.className):aE(t,l.className),r=n?{className:n}:{},i=fE(d.props,gE(yE(l,["ref"])));for(let e in p)e in i&&delete p[e];return(0,u().cloneElement)(d,Object.assign({},i,p,c,{ref:o(vE(d),c.ref)},r))}if(Object.keys(gE(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(gE(l)).concat(Object.keys(gE(p))).map(e=>`  - ${e}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join("\n")].join("\n"))}return(0,u().createElement)(i,Object.assign({},yE(l,["ref"]),!bE(i)&&c,!bE(i)&&p),d)}function pE(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function fE(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function hE(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function mE(e){var t;return Object.assign((0,u().forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function gE(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function yE(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function vE(e){return u().version.split(".")[0]>="19"?e.props.ref:e.ref}function bE(e){return e===u().Fragment||e===Symbol.for("react.fragment")}let EE=null!=(sE=u().startTransition)?sE:function(e){e()};var xE=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(xE||{}),wE=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(wE||{}),TE=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.SetButtonElement=4]="SetButtonElement",e[e.SetPanelElement=5]="SetPanelElement",e))(TE||{});let kE={0:e=>({...e,disclosureState:iE(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},SE=(0,u().createContext)(null);function AE(e){let t=(0,u().useContext)(SE);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,AE),t}return t}SE.displayName="DisclosureContext";let NE=(0,u().createContext)(null);function _E(e){let t=(0,u().useContext)(NE);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_E),t}return t}NE.displayName="DisclosureAPIContext";let CE=(0,u().createContext)(null);function IE(e,t){return iE(t.type,kE,e,t)}CE.displayName="DisclosurePanelContext";let OE=u().Fragment;let DE=lE.RenderStrategy|lE.Static;let RE=mE(function(e,t){let{defaultOpen:n=!1,...r}=e,o=(0,u().useRef)(null),i=Bb(t,jb(e=>{o.current=e},void 0===e.as||bE(e.as))),a=(0,u().useReducer)(IE,{disclosureState:n?0:1,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:s,buttonId:l},c]=a,d=Pb(e=>{c({type:1});let t=Ab(o.current);if(!t||!l)return;let n=e?tE(e)?e:"current"in e&&tE(e.current)?e.current:t.getElementById(l):t.getElementById(l);null==n||n.focus()}),p=(0,u().useMemo)(()=>({close:d}),[d]),f=Mb({open:0===s,close:d}),h={ref:i},m=uE();return u().createElement(SE.Provider,{value:a},u().createElement(NE.Provider,{value:p},u().createElement(qb,{value:d},u().createElement(Xb,{value:iE(s,{0:Qb.Open,1:Qb.Closed})},m({ourProps:h,theirProps:r,slot:f,defaultTag:OE,name:"Disclosure"})))))}),PE=mE(function(e,t){let n=(0,u().useId)(),{id:r=`headlessui-disclosure-button-${n}`,disabled:o=!1,autoFocus:i=!1,...a}=e,[s,l]=AE("Disclosure.Button"),c=(0,u().useContext)(CE),d=null!==c&&c===s.panelId,p=Bb((0,u().useRef)(null),t,Pb(e=>{if(!d)return l({type:4,element:e})}));(0,u().useEffect)(()=>{if(!d)return l({type:2,buttonId:r}),()=>{l({type:2,buttonId:null})}},[r,l,d]);let f=Pb(e=>{var t;if(d){if(1===s.disclosureState)return;switch(e.key){case xE.Space:case xE.Enter:e.preventDefault(),e.stopPropagation(),l({type:0}),null==(t=s.buttonElement)||t.focus()}}else switch(e.key){case xE.Space:case xE.Enter:e.preventDefault(),e.stopPropagation(),l({type:0})}}),h=Pb(e=>{if(e.key===xE.Space)e.preventDefault()}),m=Pb(e=>{var t;oE(e.currentTarget)||o||(d?(l({type:0}),null==(t=s.buttonElement)||t.focus()):l({type:0}))}),{isFocusVisible:g,focusProps:y}=yb({autoFocus:i}),{isHovered:v,hoverProps:b}=wb({isDisabled:o}),{pressed:E,pressProps:x}=Lb({disabled:o}),w=Mb({open:0===s.disclosureState,hover:v,active:E,disabled:o,focus:g,autofocus:i}),T=function(e,t){return(0,u().useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0},[e.type,e.as,t])}(e,s.buttonElement),k=hE(d?{ref:p,type:T,disabled:o||void 0,autoFocus:i,onKeyDown:f,onClick:m}:{ref:p,id:r,type:T,"aria-expanded":0===s.disclosureState,"aria-controls":s.panelElement?s.panelId:void 0,disabled:o||void 0,autoFocus:i,onKeyDown:f,onKeyUp:h,onClick:m},y,b,x);return uE()({ourProps:k,theirProps:a,slot:w,defaultTag:"button",name:"Disclosure.Button"})}),LE=mE(function(e,t){let n=(0,u().useId)(),{id:r=`headlessui-disclosure-panel-${n}`,transition:o=!1,...i}=e,[a,s]=AE("Disclosure.Panel"),{close:l}=_E("Disclosure.Panel"),[c,d]=(0,u().useState)(null),p=Bb(t,Pb(e=>{EE(()=>s({type:5,element:e}))}),d);(0,u().useEffect)(()=>(s({type:3,panelId:r}),()=>{s({type:3,panelId:null})}),[r,s]);let f=Kb(),[h,m]=Gb(o,c,null!==f?(f&Qb.Open)===Qb.Open:0===a.disclosureState),g=Mb({open:0===a.disclosureState,close:l}),y={ref:p,id:r,...$b(m)},v=uE();return u().createElement(Jb,null,u().createElement(CE.Provider,{value:a.panelId},v({ourProps:y,theirProps:i,slot:g,defaultTag:"div",features:DE,visible:h,name:"Disclosure.Panel"})))}),ME=Object.assign(RE,{Button:PE,Panel:LE});const FE=(0,u().createContext)({variant:"error"});function jE({children:e,variant:t}){const n=(0,u().useMemo)(()=>({variant:t}),[t]);return(0,c().jsx)(FE.Provider,{value:n,children:e})}var BE;function UE(){return UE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UE.apply(null,arguments)}const zE=function(e){return u().createElement("svg",UE({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),BE||(BE=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m4 6 4 4 4-4"})))};var VE;function HE(){return HE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HE.apply(null,arguments)}const $E=function(e){return u().createElement("svg",HE({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),VE||(VE=u().createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.256 16.035a10.547 10.547 0 1 1 19.487-8.072 10.547 10.547 0 0 1-19.487 8.072M16.749 7.25a.75.75 0 0 1 0 1.06L13.061 12l3.688 3.688a.75.75 0 0 1-1.06 1.061L12 13.06l-3.688 3.688a.75.75 0 1 1-1.061-1.06l3.688-3.689-3.688-3.688A.75.75 0 0 1 8.31 7.25L12 10.938l3.688-3.688a.75.75 0 0 1 1.061 0",clipRule:"evenodd"})))},GE=Qm(["px-4","py-3","border-l-4","rounded","flex","gap-2","items-start"],{variants:{variant:{error:["border-l-error","dark:border-l-error-dark","bg-error","dark:bg-error-dark","text-error","dark:text-error-dark"]}}}),WE={error:$E},qE=(0,u().forwardRef)(({as:e="div",children:t,className:n,variant:r,...o},i)=>{const a=WE[r];return(0,c().jsxs)(e,{...o,ref:i,className:Bf(GE({variant:r}),n),children:[(0,c().jsx)(a,{className:"size-6"}),(0,c().jsx)("div",{className:"flex-1 font-body text-md font-normal",children:t})]})});const YE=(0,u().forwardRef)((e,t)=>(0,c().jsx)(qE,{ref:t,...e,as:"button"}));function QE(){let e=(0,u().useRef)(!1);return Db(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function KE(){let e=function(){let e="undefined"==typeof document;return Se().useSyncExternalStore(()=>()=>{},()=>!1,()=>!e)}(),[t,n]=u().useState(Sb.isHandoffComplete);return t&&!1===Sb.isHandoffComplete&&n(!1),u().useEffect(()=>{!0!==t&&n(!0)},[t]),u().useEffect(()=>Sb.handoff(),[]),!e&&t}function XE(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!bE(null!=(t=e.as)?t:rx)||1===u().Children.count(e.children)}let JE=(0,u().createContext)(null);JE.displayName="TransitionContext";var ZE=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ZE||{});let ex=(0,u().createContext)(null);function tx(e){return"children"in e?tx(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function nx(e,t){let n=Rb(e),r=(0,u().useRef)([]),o=QE(),i=Ob(),a=Pb((e,t=cE.Hidden)=>{let a=r.current.findIndex(({el:t})=>t===e);-1!==a&&(iE(t,{[cE.Unmount](){r.current.splice(a,1)},[cE.Hidden](){r.current[a].state="hidden"}}),i.microTask(()=>{var e;!tx(r)&&o.current&&(null==(e=n.current)||e.call(n))}))}),s=Pb(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,cE.Unmount)}),l=(0,u().useRef)([]),c=(0,u().useRef)(Promise.resolve()),d=(0,u().useRef)({enter:[],leave:[]}),p=Pb((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(d.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?c.current=c.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),f=Pb((e,t,n)=>{Promise.all(d.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>n(t))});return(0,u().useMemo)(()=>({children:r,register:s,unregister:a,onStart:p,onStop:f,wait:c,chains:d}),[s,a,r,p,f,d,c])}ex.displayName="NestingContext";let rx=u().Fragment,ox=lE.RenderStrategy;let ix=mE(function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=(0,u().useRef)(null),s=Bb(...XE(e)?[a,t]:null===t?[]:[t]);KE();let l=Kb();if(void 0===n&&null!==l&&(n=(l&Qb.Open)===Qb.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=(0,u().useState)(n?"visible":"hidden"),p=nx(()=>{n||d("hidden")}),[f,h]=(0,u().useState)(!0),m=(0,u().useRef)([n]);Db(()=>{!1!==f&&m.current[m.current.length-1]!==n&&(m.current.push(n),h(!1))},[m,n]);let g=(0,u().useMemo)(()=>({show:n,appear:r,initial:f}),[n,r,f]);Db(()=>{n?d("visible"):!tx(p)&&null!==a.current&&d("hidden")},[n,p]);let y={unmount:o},v=Pb(()=>{var t;f&&h(!1),null==(t=e.beforeEnter)||t.call(e)}),b=Pb(()=>{var t;f&&h(!1),null==(t=e.beforeLeave)||t.call(e)}),E=uE();return u().createElement(ex.Provider,{value:p},u().createElement(JE.Provider,{value:g},E({ourProps:{...y,as:u().Fragment,children:u().createElement(ax,{ref:s,...y,...i,beforeEnter:v,beforeLeave:b})},theirProps:{},defaultTag:u().Fragment,features:ox,visible:"visible"===c,name:"Transition"})))}),ax=mE(function(e,t){var n,r;let{transition:o=!0,beforeEnter:i,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:d,enterTo:p,entered:f,leave:h,leaveFrom:m,leaveTo:g,...y}=e,[v,b]=(0,u().useState)(null),E=(0,u().useRef)(null),x=XE(e),w=Bb(...x?[E,t,b]:null===t?[]:[t]),T=null==(n=y.unmount)||n?cE.Unmount:cE.Hidden,{show:k,appear:S,initial:A}=function(){let e=(0,u().useContext)(JE);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[N,_]=(0,u().useState)(k?"visible":"hidden"),C=function(){let e=(0,u().useContext)(ex);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:I,unregister:O}=C;Db(()=>I(E),[I,E]),Db(()=>{if(T===cE.Hidden&&E.current)return k&&"visible"!==N?void _("visible"):iE(N,{hidden:()=>O(E),visible:()=>I(E)})},[N,E,I,O,k,T]);let D=KE();Db(()=>{if(x&&D&&"visible"===N&&null===E.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,N,D,x]);let R=A&&!S,P=S&&k&&A,L=(0,u().useRef)(!1),M=nx(()=>{L.current||(_("hidden"),O(E))},C),F=Pb(e=>{L.current=!0;let t=e?"enter":"leave";M.onStart(E,t,e=>{"enter"===e?null==i||i():"leave"===e&&(null==s||s())})}),j=Pb(e=>{let t=e?"enter":"leave";L.current=!1,M.onStop(E,t,e=>{"enter"===e?null==a||a():"leave"===e&&(null==l||l())}),"leave"===t&&!tx(M)&&(_("hidden"),O(E))});(0,u().useEffect)(()=>{x&&o||(F(k),j(k))},[k,x,o]);let B=!(!o||!x||!D||R),[,U]=Gb(B,v,k,{start:F,end:j}),z=gE({ref:w,className:(null==(r=aE(y.className,P&&c,P&&d,U.enter&&c,U.enter&&U.closed&&d,U.enter&&!U.closed&&p,U.leave&&h,U.leave&&!U.closed&&m,U.leave&&U.closed&&g,!U.transition&&k&&f))?void 0:r.trim())||void 0,...$b(U)}),V=0;"visible"===N&&(V|=Qb.Open),"hidden"===N&&(V|=Qb.Closed),k&&"hidden"===N&&(V|=Qb.Opening),!k&&"visible"===N&&(V|=Qb.Closing);let H=uE();return u().createElement(ex.Provider,{value:M},u().createElement(Xb,{value:V},H({ourProps:z,theirProps:y,defaultTag:rx,features:ox,visible:"visible"===N,name:"Transition.Child"})))}),sx=mE(function(e,t){let n=null!==(0,u().useContext)(JE),r=null!==Kb();return u().createElement(u().Fragment,null,!n&&r?u().createElement(ix,{ref:t,...e}):u().createElement(ax,{ref:t,...e}))}),lx=Object.assign(ix,{Child:sx,Root:ix});function cx({children:e,className:t,variant:n}){return(0,c().jsx)(jE,{variant:n,children:(0,c().jsx)(ME,{defaultOpen:!0,children:(0,c().jsx)("div",{className:Bf("flex flex-col gap-2",t),children:e})})})}cx.Button=function({children:e}){const{variant:t}=(0,u().useContext)(FE);return(0,c().jsx)(PE,{className:"w-full",as:YE,variant:t,children:({open:t})=>(0,c().jsxs)("div",{className:"flex justify-between items-center",children:[(0,c().jsx)("span",{children:e}),(0,c().jsx)(zE,{className:$p("w-4 transition-transform",{"rotate-180":t})})]})})},cx.Panel=function({children:e}){return(0,c().jsx)(lx,{enter:"transition duration-100 ease-out",enterFrom:"transform opacity-0",enterTo:"transform opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform opacity-100",leaveTo:"transform opacity-0",children:(0,c().jsx)(LE,{className:"px-6 py-3 rounded bg-error dark:bg-error-dark",children:e})})};var ux,dx="dismissableLayer.update",px="dismissableLayer.pointerDownOutside",fx="dismissableLayer.focusOutside",hx=u().createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mx=u().forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,d=u().useContext(hx),[p,f]=u().useState(null),h=p?.ownerDocument??globalThis?.document,[,m]=u().useState({}),g=Mm(t,e=>f(e)),y=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(v),E=p?y.indexOf(p):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,w=E>=b,T=function(e,t=globalThis?.document){const n=wg(e),r=u().useRef(!1),o=u().useRef(()=>{});return u().useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){vx(px,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));w&&!n&&(o?.(e),a?.(e),e.defaultPrevented||s?.())},h),k=function(e,t=globalThis?.document){const n=wg(e),r=u().useRef(!1);return u().useEffect(()=>{const e=e=>{if(e.target&&!r.current){vx(fx,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(i?.(e),a?.(e),e.defaultPrevented||s?.())},h);return function(e,t=globalThis?.document){const n=wg(e);u().useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{E===d.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},h),u().useEffect(()=>{if(p)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(ux=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),yx(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=ux)}},[p,h,n,d]),u().useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),yx())},[p,d]),u().useEffect(()=>{const e=()=>m({});return document.addEventListener(dx,e),()=>document.removeEventListener(dx,e)},[]),(0,c().jsx)(xg.div,{...l,ref:g,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:ng(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ng(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ng(e.onPointerDownCapture,T.onPointerDownCapture)})});mx.displayName="DismissableLayer";var gx=u().forwardRef((e,t)=>{const n=u().useContext(hx),r=u().useRef(null),o=Mm(t,r);return u().useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c().jsx)(xg.div,{...e,ref:o})});function yx(){const e=new CustomEvent(dx);document.dispatchEvent(e)}function vx(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&a().flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}gx.displayName="DismissableLayerBranch";const bx=["top","right","bottom","left"],Ex=Math.min,xx=Math.max,wx=Math.round,Tx=Math.floor,kx=e=>({x:e,y:e}),Sx={left:"right",right:"left",bottom:"top",top:"bottom"},Ax={start:"end",end:"start"};function Nx(e,t,n){return xx(e,Ex(t,n))}function _x(e,t){return"function"==typeof e?e(t):e}function Cx(e){return e.split("-")[0]}function Ix(e){return e.split("-")[1]}function Ox(e){return"x"===e?"y":"x"}function Dx(e){return"y"===e?"height":"width"}const Rx=new Set(["top","bottom"]);function Px(e){return Rx.has(Cx(e))?"y":"x"}function Lx(e){return Ox(Px(e))}function Mx(e){return e.replace(/start|end/g,e=>Ax[e])}const Fx=["left","right"],jx=["right","left"],Bx=["top","bottom"],Ux=["bottom","top"];function zx(e,t,n,r){const o=Ix(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?jx:Fx:t?Fx:jx;case"left":case"right":return t?Bx:Ux;default:return[]}}(Cx(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Mx)))),i}function Vx(e){return e.replace(/left|right|bottom|top/g,e=>Sx[e])}function Hx(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $x(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Gx(e,t,n){let{reference:r,floating:o}=e;const i=Px(t),a=Lx(t),s=Dx(a),l=Cx(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Ix(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function Wx(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=_x(t,e),h=Hx(f),m=s[p?"floating"===d?"reference":"floating":d],g=$x(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},E=$x(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-E.top+h.top)/b.y,bottom:(E.bottom-g.bottom+h.bottom)/b.y,left:(g.left-E.left+h.left)/b.x,right:(E.right-g.right+h.right)/b.x}}function qx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yx(e){return bx.some(t=>e[t]>=0)}const Qx=new Set(["left","top"]);function Kx(){return"undefined"!=typeof window}function Xx(e){return ew(e)?(e.nodeName||"").toLowerCase():"#document"}function Jx(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Zx(e){var t;return null==(t=(ew(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ew(e){return!!Kx()&&(e instanceof Node||e instanceof Jx(e).Node)}function tw(e){return!!Kx()&&(e instanceof Element||e instanceof Jx(e).Element)}function nw(e){return!!Kx()&&(e instanceof HTMLElement||e instanceof Jx(e).HTMLElement)}function rw(e){return!(!Kx()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Jx(e).ShadowRoot)}const ow=new Set(["inline","contents"]);function iw(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=yw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ow.has(o)}const aw=new Set(["table","td","th"]);function sw(e){return aw.has(Xx(e))}const lw=[":popover-open",":modal"];function cw(e){return lw.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const uw=["transform","translate","scale","rotate","perspective"],dw=["transform","translate","scale","rotate","perspective","filter"],pw=["paint","layout","strict","content"];function fw(e){const t=hw(),n=tw(e)?yw(e):e;return uw.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||dw.some(e=>(n.willChange||"").includes(e))||pw.some(e=>(n.contain||"").includes(e))}function hw(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const mw=new Set(["html","body","#document"]);function gw(e){return mw.has(Xx(e))}function yw(e){return Jx(e).getComputedStyle(e)}function vw(e){return tw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bw(e){if("html"===Xx(e))return e;const t=e.assignedSlot||e.parentNode||rw(e)&&e.host||Zx(e);return rw(t)?t.host:t}function Ew(e){const t=bw(e);return gw(t)?e.ownerDocument?e.ownerDocument.body:e.body:nw(t)&&iw(t)?t:Ew(t)}function xw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ew(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Jx(o);if(i){const e=ww(a);return t.concat(a,a.visualViewport||[],iw(o)?o:[],e&&n?xw(e):[])}return t.concat(o,xw(o,[],n))}function ww(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tw(e){const t=yw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=nw(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=wx(n)!==i||wx(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function kw(e){return tw(e)?e:e.contextElement}function Sw(e){const t=kw(e);if(!nw(t))return kx(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tw(t);let a=(i?wx(n.width):n.width)/r,s=(i?wx(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Aw=kx(0);function Nw(e){const t=Jx(e);return hw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Aw}function _w(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=kw(e);let a=kx(1);t&&(r?tw(r)&&(a=Sw(r)):a=Sw(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Jx(e))&&t}(i,n,r)?Nw(i):kx(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Jx(i),t=r&&tw(r)?Jx(r):r;let n=e,o=ww(n);for(;o&&r&&t!==n;){const e=Sw(o),t=o.getBoundingClientRect(),r=yw(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Jx(o),o=ww(n)}}return $x({width:u,height:d,x:l,y:c})}function Cw(e,t){const n=vw(e).scrollLeft;return t?t.left+n:_w(Zx(e)).left+n}function Iw(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Cw(e,n),y:n.top+t.scrollTop}}const Ow=new Set(["absolute","fixed"]);function Dw(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Jx(e),r=Zx(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=hw();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=Cw(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Zx(e),n=vw(e),r=e.ownerDocument.body,o=xx(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=xx(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Cw(e);const s=-n.scrollTop;return"rtl"===yw(r).direction&&(a+=xx(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Zx(e));else if(tw(t))r=function(e,t){const n=_w(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=nw(e)?Sw(e):kx(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Nw(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $x(r)}function Rw(e,t){const n=bw(e);return!(n===t||!tw(n)||gw(n))&&("fixed"===yw(n).position||Rw(n,t))}function Pw(e,t,n){const r=nw(t),o=Zx(t),i="fixed"===n,a=_w(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=kx(0);function c(){l.x=Cw(o)}if(r||!r&&!i)if(("body"!==Xx(t)||iw(o))&&(s=vw(t)),r){const e=_w(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?kx(0):Iw(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function Lw(e){return"static"===yw(e).position}function Mw(e,t){if(!nw(e)||"fixed"===yw(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Zx(e)===n&&(n=n.ownerDocument.body),n}function Fw(e,t){const n=Jx(e);if(cw(e))return n;if(!nw(e)){let t=bw(e);for(;t&&!gw(t);){if(tw(t)&&!Lw(t))return t;t=bw(t)}return n}let r=Mw(e,t);for(;r&&sw(r)&&Lw(r);)r=Mw(r,t);return r&&gw(r)&&Lw(r)&&!fw(r)?n:r||function(e){let t=bw(e);for(;nw(t)&&!gw(t);){if(fw(t))return t;if(cw(t))return null;t=bw(t)}return null}(e)||n}const jw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Zx(r),s=!!t&&cw(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=kx(1);const u=kx(0),d=nw(r);if((d||!d&&!i)&&(("body"!==Xx(r)||iw(a))&&(l=vw(r)),nw(r))){const e=_w(r);c=Sw(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?kx(0):Iw(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:Zx,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?cw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=xw(e,[],!1).filter(e=>tw(e)&&"body"!==Xx(e)),o=null;const i="fixed"===yw(e).position;let a=i?bw(e):e;for(;tw(a)&&!gw(a);){const t=yw(a),n=fw(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Ow.has(o.position)||iw(a)&&!n&&Rw(e,a))?r=r.filter(e=>e!==a):o=t,a=bw(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Dw(t,n,o);return e.top=xx(r.top,e.top),e.right=Ex(r.right,e.right),e.bottom=Ex(r.bottom,e.bottom),e.left=xx(r.left,e.left),e},Dw(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Fw,getElementRects:async function(e){const t=this.getOffsetParent||Fw,n=this.getDimensions,r=await n(e.floating);return{reference:Pw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Tw(e);return{width:t,height:n}},getScale:Sw,isElement:tw,isRTL:function(e){return"rtl"===yw(e).direction}};function Bw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uw(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=kw(e),u=o||i?[...c?xw(c):[],...xw(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=Zx(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const h={rootMargin:-Tx(d)+"px "+-Tx(o.clientWidth-(u+p))+"px "+-Tx(o.clientHeight-(d+f))+"px "+-Tx(u)+"px",threshold:xx(0,Ex(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Bw(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let m=l?_w(e):null;return l&&function t(){const r=_w(e);m&&!Bw(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const zw=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Cx(n),s=Ix(n),l="y"===Px(n),c=Qx.has(a)?-1:1,u=i&&l?-1:1,d=_x(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Vw=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_x(e,t),c={x:n,y:r},u=await Wx(t,l),d=Px(Cx(o)),p=Ox(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=Nx(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=Nx(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:i,[d]:a}}}}}},Hw=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=_x(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=Cx(o),v=Px(s),b=Cx(s)===s,E=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=p||(b||!m?[Vx(s)]:function(e){const t=Vx(e);return[Mx(e),t,Mx(t)]}(s)),w="none"!==h;!p&&w&&x.push(...zx(s,m,h,E));const T=[s,...x],k=await Wx(t,g),S=[];let A=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Ix(e),o=Lx(e),i=Dx(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Vx(a)),[a,Vx(a)]}(o,a,E);S.push(k[e[0]],k[e[1]])}if(A=[...A,{placement:o,overflows:S}],!S.every(e=>e<=0)){var N,_;const e=((null==(N=i.flip)?void 0:N.index)||0)+1,t=T[e];if(t){if(!("alignment"===d&&v!==Px(t))||A.every(e=>Px(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:A},reset:{placement:t}}}let n=null==(_=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:_.placement;if(!n)switch(f){case"bestFit":{var C;const e=null==(C=A.filter(e=>{if(w){const t=Px(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},$w=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=_x(e,t),u=await Wx(t,c),d=Cx(o),p=Ix(o),f="y"===Px(o),{width:h,height:m}=i.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const v=m-u.top-u.bottom,b=h-u.left-u.right,E=Ex(m-u[g],v),x=Ex(h-u[y],b),w=!t.middlewareData.shift;let T=E,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(T=v),w&&!p){const e=xx(u.left,0),t=xx(u.right,0),n=xx(u.top,0),r=xx(u.bottom,0);f?k=h-2*(0!==e||0!==t?e+t:xx(u.left,u.right)):T=m-2*(0!==n||0!==r?n+r:xx(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:T});const S=await a.getDimensions(s.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},Gw=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_x(e,t);switch(r){case"referenceHidden":{const e=qx(await Wx(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Yx(e)}}}case"escaped":{const e=qx(await Wx(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Yx(e)}}}default:return{}}}}},Ww=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=_x(e,t)||{};if(null==c)return{};const d=Hx(u),p={x:n,y:r},f=Lx(o),h=Dx(f),m=await a.getDimensions(c),g="y"===f,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",E=i.reference[h]+i.reference[f]-p[f]-i.floating[h],x=p[f]-i.reference[f],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let T=w?w[b]:0;T&&await(null==a.isElement?void 0:a.isElement(w))||(T=s.floating[b]||i.floating[h]);const k=E/2-x/2,S=T/2-m[h]/2-1,A=Ex(d[y],S),N=Ex(d[v],S),_=A,C=T-m[h]-N,I=T/2-m[h]/2+k,O=Nx(_,I,C),D=!l.arrow&&null!=Ix(o)&&I!==O&&i.reference[h]/2-(I<_?A:N)-m[h]/2<0,R=D?I<_?I-_:I-C:0;return{[f]:p[f]+R,data:{[f]:O,centerOffset:I-O-R,...D&&{alignmentOffset:R}},reset:D}}}),qw=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=_x(e,t),u={x:n,y:r},d=Px(o),p=Ox(d);let f=u[p],h=u[d];const m=_x(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+g.mainAxis,n=i.reference[p]+i.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var y,v;const e="y"===p?"width":"height",t=Qx.has(Cx(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[p]:f,[d]:h}}}},Yw=(e,t,n)=>{const r=new Map,o={platform:jw,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Gx(c,r,l),p=r,f={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y,data:v,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,f={...f,[i]:{...f[i],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Gx(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var Qw="undefined"!=typeof document?u().useLayoutEffect:function(){};function Kw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!Kw(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Kw(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Xw(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jw(e,t){const n=Xw(e);return Math.round(t*n)/n}function Zw(e){const t=u().useRef(e);return Qw(()=>{t.current=e}),t}const eT=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Ww({element:n.current,padding:r}).fn(t):{}:n?Ww({element:n,padding:r}).fn(t):{};var o}}),tT=(e,t)=>({...Vw(e),options:[e,t]}),nT=(e,t)=>({...qw(e),options:[e,t]}),rT=(e,t)=>({...Hw(e),options:[e,t]}),oT=(e,t)=>({...$w(e),options:[e,t]}),iT=(e,t)=>({...Gw(e),options:[e,t]}),aT=(e,t)=>({...eT(e),options:[e,t]});var sT=u().forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return(0,c().jsx)(xg.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,c().jsx)("polygon",{points:"0,0 30,0 15,10"})})});sT.displayName="Arrow";var lT=sT;var cT="Popper",[uT,dT]=rg(cT),[pT,fT]=uT(cT),hT=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u().useState(null);return(0,c().jsx)(pT,{scope:t,anchor:r,onAnchorChange:o,children:n})};hT.displayName=cT;var mT="PopperAnchor",gT=u().forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=fT(mT,n),a=u().useRef(null),s=Mm(t,a),l=u().useRef(null);return u().useEffect(()=>{const e=l.current;l.current=r?.current||a.current,e!==l.current&&i.onAnchorChange(l.current)}),r?null:(0,c().jsx)(xg.div,{...o,ref:s})});gT.displayName=mT;var yT="PopperContent",[vT,bT]=uT(yT),ET=u().forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:y,...v}=e,b=fT(yT,n),[E,x]=u().useState(null),w=Mm(t,e=>x(e)),[T,k]=u().useState(null),S=function(e){const[t,n]=u().useState(void 0);return fg(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(T),A=S?.width??0,N=S?.height??0,_=r+("center"!==i?"-"+i:""),C="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(p)?p:[p],O=I.length>0,D={padding:C,boundary:I.filter(kT),altBoundary:O},{refs:R,floatingStyles:P,placement:L,isPositioned:M,middlewareData:F}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[p,f]=u().useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=u().useState(r);Kw(h,r)||m(r);const[g,y]=u().useState(null),[v,b]=u().useState(null),E=u().useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),x=u().useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),w=i||g,T=s||v,k=u().useRef(null),S=u().useRef(null),A=u().useRef(p),N=null!=c,_=Zw(c),C=Zw(o),I=Zw(d),O=u().useCallback(()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:h};C.current&&(e.platform=C.current),Yw(k.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==I.current};D.current&&!Kw(A.current,t)&&(A.current=t,a().flushSync(()=>{f(t)}))})},[h,t,n,C,I]);Qw(()=>{!1===d&&A.current.isPositioned&&(A.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[d]);const D=u().useRef(!1);Qw(()=>(D.current=!0,()=>{D.current=!1}),[]),Qw(()=>{if(w&&(k.current=w),T&&(S.current=T),w&&T){if(_.current)return _.current(w,T,O);O()}},[w,T,O,_,N]);const R=u().useMemo(()=>({reference:k,floating:S,setReference:E,setFloating:x}),[E,x]),P=u().useMemo(()=>({reference:w,floating:T}),[w,T]),L=u().useMemo(()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=Jw(P.floating,p.x),r=Jw(P.floating,p.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Xw(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,P.floating,p.x,p.y]);return u().useMemo(()=>({...p,update:O,refs:R,elements:P,floatingStyles:L}),[p,O,R,P,L])}({strategy:"fixed",placement:_,whileElementsMounted:(...e)=>Uw(...e,{animationFrame:"always"===g}),elements:{reference:b.anchor},middleware:[(j={mainAxis:o+N,alignmentAxis:s},{...zw(j),options:[j,B]}),d&&tT({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?nT():void 0,...D}),d&&rT({...D}),oT({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),T&&aT({element:T,padding:l}),ST({arrowWidth:A,arrowHeight:N}),m&&iT({strategy:"referenceHidden",...D})]});var j,B;const[U,z]=AT(L),V=wg(y);fg(()=>{M&&V?.()},[M,V]);const H=F.arrow?.x,$=F.arrow?.y,G=0!==F.arrow?.centerOffset,[W,q]=u().useState();return fg(()=>{E&&q(window.getComputedStyle(E).zIndex)},[E]),(0,c().jsx)("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:M?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c().jsx)(vT,{scope:n,placedSide:U,onArrowChange:k,arrowX:H,arrowY:$,shouldHideArrow:G,children:(0,c().jsx)(xg.div,{"data-side":U,"data-align":z,...v,ref:w,style:{...v.style,animation:M?void 0:"none"}})})})});ET.displayName=yT;var xT="PopperArrow",wT={top:"bottom",right:"left",bottom:"top",left:"right"},TT=u().forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=bT(xT,n),i=wT[o.placedSide];return(0,c().jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,c().jsx)(lT,{...r,ref:t,style:{...r.style,display:"block"}})})});function kT(e){return null!==e}TT.displayName=xT;var ST=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=AT(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,p=(o.arrow?.y??0)+s/2;let f="",h="";return"bottom"===l?(f=i?u:`${d}px`,h=-s+"px"):"top"===l?(f=i?u:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(f=-s+"px",h=i?u:`${p}px`):"left"===l&&(f=`${r.floating.width+s}px`,h=i?u:`${p}px`),{data:{x:f,y:h}}}});function AT(e){const[t,n="center"]=e.split("-");return[t,n]}var NT=hT,_T=gT,CT=ET,IT=TT,OT=u().forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=u().useState(!1);fg(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?a().createPortal((0,c().jsx)(xg.div,{...r,ref:t}),s):null});OT.displayName="Portal";var DT=Symbol("radix.slottable");function RT(e){const t=({children:e})=>(0,c().jsx)(c().Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=DT,t}var PT=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),LT=u().forwardRef((e,t)=>(0,c().jsx)(xg.span,{...e,ref:t,style:{...PT,...e.style}}));LT.displayName="VisuallyHidden";var MT=LT,[FT,jT]=rg("Tooltip",[dT]),BT=dT(),UT="TooltipProvider",zT=700,VT="tooltip.open",[HT,$T]=FT(UT),GT=e=>{const{__scopeTooltip:t,delayDuration:n=zT,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,a=u().useRef(!0),s=u().useRef(!1),l=u().useRef(0);return u().useEffect(()=>{const e=l.current;return()=>window.clearTimeout(e)},[]),(0,c().jsx)(HT,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:u().useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:u().useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:u().useCallback(e=>{s.current=e},[]),disableHoverableContent:o,children:i})};GT.displayName=UT;var WT="Tooltip",[qT,YT]=FT(WT),QT=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=$T(WT,e.__scopeTooltip),d=BT(t),[p,f]=u().useState(null),h=gg(),m=u().useRef(0),g=a??l.disableHoverableContent,y=s??l.delayDuration,v=u().useRef(!1),[b,E]=kg({prop:r,defaultProp:o??!1,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(VT))):l.onClose(),i?.(e)},caller:WT}),x=u().useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),w=u().useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,E(!0)},[E]),T=u().useCallback(()=>{window.clearTimeout(m.current),m.current=0,E(!1)},[E]),k=u().useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,E(!0),m.current=0},y)},[y,E]);return u().useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,c().jsx)(NT,{...d,children:(0,c().jsx)(qT,{scope:t,contentId:h,open:b,stateAttribute:x,trigger:p,onTriggerChange:f,onTriggerEnter:u().useCallback(()=>{l.isOpenDelayedRef.current?k():w()},[l.isOpenDelayedRef,k,w]),onTriggerLeave:u().useCallback(()=>{g?T():(window.clearTimeout(m.current),m.current=0)},[T,g]),onOpen:w,onClose:T,disableHoverableContent:g,children:n})})};QT.displayName=WT;var KT="TooltipTrigger",XT=u().forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=YT(KT,n),i=$T(KT,n),a=BT(n),s=Mm(t,u().useRef(null),o.onTriggerChange),l=u().useRef(!1),d=u().useRef(!1),p=u().useCallback(()=>l.current=!1,[]);return u().useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),(0,c().jsx)(_T,{asChild:!0,...a,children:(0,c().jsx)(xg.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:s,onPointerMove:ng(e.onPointerMove,e=>{"touch"!==e.pointerType&&(d.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),d.current=!0))}),onPointerLeave:ng(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ng(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ng(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:ng(e.onBlur,o.onClose),onClick:ng(e.onClick,o.onClose)})})});XT.displayName=KT;var JT="TooltipPortal",[ZT,ek]=FT(JT,{forceMount:void 0}),tk=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=YT(JT,t);return(0,c().jsx)(ZT,{scope:t,forceMount:n,children:(0,c().jsx)(Gg,{present:n||i.open,children:(0,c().jsx)(OT,{asChild:!0,container:o,children:r})})})};tk.displayName=JT;var nk="TooltipContent",rk=u().forwardRef((e,t)=>{const n=ek(nk,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=YT(nk,e.__scopeTooltip);return(0,c().jsx)(Gg,{present:r||a.open,children:a.disableHoverableContent?(0,c().jsx)(lk,{side:o,...i,ref:t}):(0,c().jsx)(ok,{side:o,...i,ref:t})})}),ok=u().forwardRef((e,t)=>{const n=YT(nk,e.__scopeTooltip),r=$T(nk,e.__scopeTooltip),o=u().useRef(null),i=Mm(t,o),[a,s]=u().useState(null),{trigger:l,onClose:d}=n,p=o.current,{onPointerInTransitChange:f}=r,h=u().useCallback(()=>{s(null),f(!1)},[f]),m=u().useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);s(i),f(!0)},[f]);return u().useEffect(()=>()=>h(),[h]),u().useEffect(()=>{if(l&&p){const e=e=>m(e,p),t=e=>m(e,l);return l.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[l,p,m,h]),u().useEffect(()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||p?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e],s=t[i],l=a.x,c=a.y,u=s.x,d=s.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(o=!o)}return o}(n,a);r?h():o&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,p,a,d,h]),(0,c().jsx)(lk,{...e,ref:i})}),[ik,ak]=FT(WT,{isInside:!1}),sk=RT("TooltipContent"),lk=u().forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=YT(nk,n),d=BT(n),{onClose:p}=l;return u().useEffect(()=>(document.addEventListener(VT,p),()=>document.removeEventListener(VT,p)),[p]),u().useEffect(()=>{if(l.trigger){const e=e=>{const t=e.target;t?.contains(l.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,p]),(0,c().jsx)(mx,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,c().jsxs)(CT,{"data-state":l.stateAttribute,...d,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,c().jsx)(sk,{children:r}),(0,c().jsx)(ik,{scope:n,isInside:!0,children:(0,c().jsx)(MT,{id:l.contentId,role:"tooltip",children:o||r})})]})})});rk.displayName=nk;var ck="TooltipArrow",uk=u().forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=BT(n);return ak(ck,n).isInside?null:(0,c().jsx)(IT,{...o,...r,ref:t})});uk.displayName=ck;var dk=GT,pk=QT,fk=XT,hk=tk,mk=rk;function gk({content:e,children:t,delayDuration:n,side:r="bottom"}){return(0,c().jsxs)(pk,{delayDuration:n,children:[(0,c().jsx)(fk,{asChild:!0,children:t}),(0,c().jsx)(hk,{children:(0,c().jsx)(mk,{sideOffset:4,className:"shadow-popovers border rounded bg-black dark:bg-black-dark border-black dark:border-black-dark py-1 px-2 text-white dark:text-white-dark text-sm font-body max-w-72",side:r,children:e})})]})}function yk({children:e}){return(0,c().jsx)("li",{className:"border-l-2 border-l-warning dark:border-l-warning-dark px-4 font-code text-sm font-normal text-error dark:text-error-dark",children:e})}const vk=(0,u().createContext)({collapsed:1,displayObjectSize:!0,renderers:{}}),bk=()=>(0,u().useContext)(vk);function Ek({children:e,collapsed:t,getTypeOf:n,renderers:r,displayObjectSize:o}){const i=bk(),a={collapsed:t,displayObjectSize:o,getTypeOf:n??i.getTypeOf,renderers:{...i.renderers,...r}},s=(0,u().useRef)(a);return An(a,s.current)||(s.current=a),(0,c().jsx)(vk.Provider,{value:s.current,children:e})}function xk(){return Mp(xd)===vd.Dark?"dark":"base"}function wk(e){const t=function(e){const t=xk();return(0,u().useMemo)(()=>Object.fromEntries(Object.entries(e).map(([e,n])=>[e,n[t]])),[t,e])}(e);return(0,u().useMemo)(()=>Object.fromEntries(Object.entries(t).map(([e,t])=>[`--ov-${e}-color`,t])),[t])}function Tk(e,t,n=(e,t)=>({...e,...t})){return function(r){const o=bk(),i=(0,u().useRef)(r);An(r,i.current)||(i.current=r);const a=(0,u().useCallback)(e=>(0,c().jsx)(t,{...n(i.current,e)}),[]),s=o.renderers[e];return s?(0,c().jsx)(s,{...r,DefaultRender:a}):(0,c().jsx)(t,{...r})}}function kk(e,t){return Tk(e,t,(e,t)=>({...e,...t,depth:e.depth,path:e.path,context:{...e.context,...t.context}}))}function Sk(e){const{context:t,depth:n,value:r,path:o,objectKey:i,...a}=e;return a}const Ak=kk("bigint",({className:e,value:t,...n})=>(0,c().jsxs)("span",{...Sk(n),className:Hp("text-[var(--ov-typeBigint-color,var(--ov-typeNumber-color))]",e),children:[String(t),"n"]})),Nk=kk("boolean",({className:e,value:t,...n})=>(0,c().jsx)("span",{...Sk(n),className:$p("text-[var(--ov-typeBoolean-color)]",e),children:String(t)})),_k=kk("function",({className:e,value:t,...n})=>(0,c().jsx)("span",{...Sk(n),className:$p("text-[var(--ov-typeFunction-color)]",e),children:t.toString()})),Ck=kk("number",({className:e,value:t,path:n,context:r,...o})=>(0,c().jsx)("span",{...Sk(o),className:Hp({"text-[var(--ov-typeInt-color,var(--ov-typeNumber-color))]":Number.isInteger(t),"text-[var(--ov-typeFloat-color,var(--ov-typeNumber-color))]":!Number.isInteger(t),"text-[var(--ov-typeNaN-color,var(--ov-typeNumber-color))]":Number.isNaN(t)},e),children:t})),Ik=kk("string",({className:e,value:t,...n})=>(0,c().jsxs)("span",{...Sk(n),className:$p("text-[var(--ov-typeString-color)]",e),children:[(0,c().jsx)(Ok,{}),t,(0,c().jsx)(Ok,{})]}));function Ok(){return(0,c().jsx)("span",{className:"text-[var(--ov-quote-color,var(--ov-typeString-color))]",children:'"'})}const Dk=kk("symbol",({className:e,value:t,...n})=>(0,c().jsx)("span",{...Sk(n),className:$p("text-[var(--ov-typeSymbol-color)]",e),children:t.toString()})),Rk=kk("undefined",({className:e,...t})=>(0,c().jsx)("span",{...Sk(t),className:Hp("text-[var(--ov-typeUndefined-color)]",e),children:"undefined"}));function Pk({label:e="item",pluralLabel:t=`${e}s`,className:n,size:r}){return(0,c().jsxs)("span",{className:$p("text-[var(--ov-info-color)]",n),children:[r," ",1===r?e:t]})}const Lk=Tk("objectKey",({className:e,value:t,softWrapCharacters:n})=>{const r=new Set(n),o=n?new RegExp(`(${n.join("|")})`):null;return(0,c().jsx)("span",{className:Hp("text-[var(--ov-objectKey-color)]",e),children:o?t.split(o).map((e,t)=>(0,c().jsxs)(u().Fragment,{children:[e,r.has(e)&&(0,c().jsx)("wbr",{})]},t)):t})},(e,t)=>({...e,...t,value:e.value}));function Mk({children:e}){return(0,c().jsx)("span",{className:"text-[var(--ov-punctuation-color)]",children:e})}function Fk({className:e,collapsed:t}){return(0,c().jsx)(zE,{className:Hp("block size-[--ov-arrow-size] transition-transform ease-out absolute -left-[2ch] top-1/2 -translate-y-1/2 text-[var(--ov-arrow-color,var(--ov-punctuation-color))]",{"-rotate-90":t},e)})}function jk({children:e,collapsible:t,collapsed:n,onClick:r}){const o=t?"button":"span";return(0,c().jsx)(o,{"aria-label":t?n?"Expand":"Collapse":void 0,className:Hp("inline-block align-middle relative",{"cursor-pointer":t}),onClick:t?r:void 0,children:(0,c().jsxs)("span",{className:"inline-flex items-center text-left",children:[t&&(0,c().jsx)(Fk,{collapsed:!!n}),(0,c().jsxs)("span",{children:[e,(0,c().jsx)(Mk,{children:":"})]})]})})}function Bk(){return(0,c().jsx)("span",{className:"inline-block align-middle text-[var(--ov-bracket-color,var(--ov-punctuation-color))]",children:"["})}function Uk(){return(0,c().jsx)("span",{className:"inline-block align-middle text-[var(--ov-bracket-color,var(--ov-punctuation-color))]",children:"]"})}const zk=Tk("collapsedArray",e=>(0,c().jsxs)("span",{...e,children:[(0,c().jsx)(Bk,{}),(0,c().jsx)("span",{className:"text-[var(--ov-ellipsis-color,var(--ov-punctuation-color))]",children:"..."}),(0,c().jsx)(Uk,{})]}));function Vk(){return(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(Bk,{}),(0,c().jsx)(Uk,{})]})}function Hk({context:e,depth:t,displayObjectSize:n,value:r,path:o}){const i=function(e,t){const n=bk();return t??n[e]}("displayObjectSize",n);return"function"==typeof i?i({context:e,defaultDisplayObjectSize:!0,depth:t,value:r,path:o}):"number"==typeof i?t>=i:i}const $k=Tk("arrayValue",({collapsed:e,onToggleCollapsed:t,getCollapsedElement:n=({value:e,onToggleCollapsed:t})=>e.length>0?(0,c().jsx)(zk,{...r,className:"cursor-pointer",onClick:t}):(0,c().jsx)(Vk,{}),...r})=>{const{displayObjectSize:o,value:i,depth:a,context:s,path:l}=r,u=Hk({displayObjectSize:o,depth:a,value:i,context:s,path:l});return e?(0,c().jsxs)("span",{className:"inline-block align-middle",children:[n({value:i,onToggleCollapsed:t}),(0,c().jsx)(Mk,{children:","})," ",u&&(0,c().jsx)(Pk,{className:"italic",size:i.length})]}):(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(sS,{className:"align-middle",...r}),(0,c().jsx)(Mk,{children:","})]})});function Gk({children:e,collapsible:t=!0,...n}){const{depth:r,context:o,value:i,path:a}=n,s=bk(),[l,d]=(0,u().useState)(()=>0===i.length||("function"==typeof s.collapsed?s.collapsed({value:i,context:o,depth:r,defaultCollapsed:r>0,path:a}):"boolean"==typeof s.collapsed?s.collapsed:r>=s.collapsed));function p(){i.length>0&&t&&d(e=>!e)}return(0,c().jsxs)("div",{...Sk(n),children:[(0,c().jsx)(jk,{collapsible:i.length>0&&t,collapsed:l,onClick:p,children:e})," ",(0,c().jsx)($k,{...n,collapsed:t&&l,onToggleCollapsed:p})]})}function Wk(){return(0,c().jsx)("span",{className:"inline-block align-middle text-[var(--ov-brace-color,var(--ov-punctuation-color))]",children:"}"})}function qk(){return(0,c().jsx)("span",{className:"inline-block align-middle text-[var(--ov-brace-color,var(--ov-punctuation-color))]",children:"{"})}const Yk=Tk("collapsedObject",e=>(0,c().jsxs)("span",{...e,children:[(0,c().jsx)(qk,{}),(0,c().jsx)("span",{className:"text-[var(--ov-ellipsis-color,var(--ov-punctuation-color))]",children:"..."}),(0,c().jsx)(Wk,{})]}));function Qk(){return(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(qk,{}),(0,c().jsx)(Wk,{})]})}const Kk=Tk("objectValue",({collapsed:e,onToggleCollapsed:t,getCollapsedElement:n=({value:e,onToggleCollapsed:t})=>Object.keys(e).length>0?(0,c().jsx)(Yk,{...r,className:"cursor-pointer",onClick:t}):(0,c().jsx)(Qk,{}),...r})=>{const{displayObjectSize:o,value:i,depth:a,context:s,path:l}=r,u=Hk({displayObjectSize:o,depth:a,value:i,context:s,path:l});return e?(0,c().jsxs)("span",{className:"inline-block align-middle",children:[n({value:i,onToggleCollapsed:t}),(0,c().jsx)(Mk,{children:","})," ",u&&(0,c().jsx)(Pk,{className:"italic",size:Object.keys(i).length,label:"key"})]}):(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(sS,{className:"align-middle",...r}),(0,c().jsx)(Mk,{children:","})]})},(e,t)=>({...e,...t,context:{...e.context,...t.context},depth:e.depth,path:e.path}));function Xk({children:e,collapsible:t=!0,...n}){const{context:r,depth:o,value:i,path:a,...s}=n,l=bk(),d=Object.keys(i).length,[p,f]=(0,u().useState)(()=>0===d||("function"==typeof l.collapsed?l.collapsed({value:i,context:r,depth:o,defaultCollapsed:o>0,path:a}):"boolean"==typeof l.collapsed?l.collapsed:o>=l.collapsed));function h(){d>0&&t&&f(e=>!e)}return(0,c().jsxs)("div",{...s,children:[(0,c().jsx)(jk,{collapsible:d>0&&t,collapsed:p,onClick:h,children:e})," ",(0,c().jsx)(Kk,{...n,collapsed:t&&p,onToggleCollapsed:h})]})}const Jk=Tk("objectPair",e=>{const{value:t,objectKey:n,...r}=e;return Array.isArray(t)?(0,c().jsx)(Gk,{...r,value:t,children:(0,c().jsx)(Lk,{context:e.context,value:n})}):"object"==typeof t&&null!==t?(0,c().jsx)(Xk,{...r,value:t,children:(0,c().jsx)(Lk,{context:e.context,value:n})}):(0,c().jsxs)("div",{...r,children:[(0,c().jsx)(jk,{collapsible:!1,children:(0,c().jsx)(Lk,{context:e.context,value:n})})," ",(0,c().jsx)(sS,{className:"align-middle",...e}),(0,c().jsx)(Mk,{children:","})]})},(e,t)=>({...e,...t,depth:e.depth})),Zk=kk("object",({context:e,className:t,depth:n,value:r,path:o,displayObjectSize:i,...a})=>{const s=Hk({displayObjectSize:i,depth:n,value:r,context:e,path:o}),l=function(e){try{return Object.getPrototypeOf(e).constructor.name}catch(e){return"<Blocked>"}}(r);return(0,c().jsxs)("span",{...Sk(a),className:Hp("align-middle",t),children:["Object"!==l&&(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)("span",{className:"italic inline-block align-middle text-[var(--ov-constructorName-color,var(--ov-info-color))]",children:l})," "]}),Object.keys(r).length>0?(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(qk,{})," ",s&&(0,c().jsx)(Pk,{label:"key",className:"inline-block align-middle italic",size:Object.keys(r).length}),(0,c().jsx)("div",{className:"pl-[3ch] border-l border-l-[var(--ov-indentGuide-color)] border-dashed",children:Object.entries(r).map(([t,r],i)=>(0,c().jsx)(Jk,{context:e,depth:n+1,objectKey:t,value:r,path:o.concat(t)},i))}),(0,c().jsx)(Wk,{})]}):(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(Qk,{})," ",s&&(0,c().jsx)(Pk,{label:"key",className:"inline-block align-middle italic",size:0})]})]})});const eS=kk("null",({className:e,...t})=>(0,c().jsx)("span",{...Sk(t),className:Hp("text-[var(--ov-typeNull-color)]",e),children:"null"})),tS=Tk("arrayIndex",({className:e,index:t})=>(0,c().jsx)("span",{className:$p("text-[var(--ov-arrayIndex-color,var(--ov-objectKey-color))]",e),children:t}),(e,t)=>({...e,...t,index:e.index})),nS=Tk("arrayItem",e=>{const{value:t,index:n,...r}=e;return Array.isArray(t)?(0,c().jsx)(Gk,{...r,value:t,children:(0,c().jsx)(tS,{context:e.context,index:n})}):"object"==typeof t&&null!==t?(0,c().jsx)(Xk,{...r,value:t,children:(0,c().jsx)(tS,{context:e.context,index:n})}):(0,c().jsxs)("div",{...r,children:[(0,c().jsx)(jk,{collapsible:!1,children:(0,c().jsx)(tS,{context:e.context,index:n})})," ",(0,c().jsx)(sS,{className:"align-middle",...e}),(0,c().jsx)(Mk,{children:","})]})},(e,t)=>({...e,...t,index:e.index,path:e.path,depth:e.depth})),rS=Tk("sparseArrayEmptyItem",({label:e="empty",length:t})=>(0,c().jsxs)("span",{className:"text-[var(--ov-sparseArrayEmptyItem-color,var(--ov-punctuation-color))] text-sm",children:[e," × ",t]}),(e,t)=>({...e,...t,length:e.length})),oS=kk("array",({className:e,context:t,depth:n,value:r,path:o,displayObjectSize:i,...a})=>{const s=Hk({displayObjectSize:i,depth:n,value:r,context:t,path:o}),l=Object.keys(r),[d,p]=r.length>l.length?function(e){const t=Object.keys(e).map(Number),n=new Map,r=[];t.forEach((o,i)=>{if(r[o]=e[o],0===o)return;const a=t[i-1]??-1,s=o-1;a!==s&&(r[s]=void 0,n.set(o-1,o-a-1))});const o=e.length-1,i=t.at(-1);i!==o&&(r[o]=void 0,n.set(o,e.length-i));return[r,n]}(r):[r];return(0,c().jsx)("span",{...Sk(a),className:Hp("align-middle",e),children:r.length>0?(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(Bk,{})," ",s&&(0,c().jsx)(Pk,{className:"inline-block align-middle italic",size:r.length}),(0,c().jsx)("div",{className:"pl-[3ch] border-l border-l-[var(--ov-indentGuide-color)] border-dashed",children:d.map((e,r)=>p?.has(r)?(0,c().jsxs)(u().Fragment,{children:[(0,c().jsx)(rS,{length:p.get(r)},r),(0,c().jsx)(Mk,{children:","})]},r):(0,c().jsx)(nS,{context:t,depth:n+1,index:r,value:e,path:o.concat(r)},r))}),(0,c().jsx)(Uk,{})]}):(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(Vk,{})," ",s&&(0,c().jsx)(Pk,{className:"inline-block align-middle italic",size:0})]})})});function iS({type:e,...t}){const n=bk().renderers[e],r=(0,u().useRef)(t);An(r.current,t)||(r.current=t);const o=(0,u().useCallback)(e=>(0,c().jsx)(sS,{...r.current,...e,context:{...r.current.context,...e.context}}),[]);return n?(0,c().jsx)(n,{...t,DefaultRender:o}):null}const aS=Tk("anyValue",({value:e,type:t,...n})=>{switch(t){case"array":return(0,c().jsx)(oS,{...n,value:e});case"bigint":return(0,c().jsx)(Ak,{...n,value:e});case"boolean":return(0,c().jsx)(Nk,{...n,value:e});case"function":return(0,c().jsx)(_k,{...n,value:e});case"number":return(0,c().jsx)(Ck,{...n,value:e});case"null":return(0,c().jsx)(eS,{...n});case"string":return(0,c().jsx)(Ik,{...n,value:e});case"symbol":return(0,c().jsx)(Dk,{...n,value:e});case"undefined":return(0,c().jsx)(Rk,{...n});case"object":return(0,c().jsx)(Zk,{...n,value:e});default:return(0,c().jsx)(iS,{...n,type:t,value:e})}},(e,t)=>({...e,...t,type:e.type}));const sS=({value:e,...t})=>{const n=bk(),r=n.getTypeOf?.(e)??function(e){return"object"==typeof e?null===e?"null":Array.isArray(e)?"array":"object":typeof e}(e);return(0,c().jsx)(aS,{...t,type:r,value:e})},{border:lS,code:cS,icon:uS,text:dS}=e().colors.tokens,pS={arrow:uS.primary,constructorName:cS.e,ellipsis:dS.secondary,indentGuide:lS.primary,info:cS.e,punctuation:cS.a,objectKey:cS.d,typeBoolean:cS.c,typeFunction:cS.f,typeNumber:cS.c,typeNull:dS.secondary,typeString:cS.g,typeSymbol:cS.e,typeUndefined:dS.secondary},fS={indentGuide:{base:"transparent",dark:"transparent"},objectKey:dS.error},hS=Qm(["font-code"],{variants:{size:{base:["[--ov-arrow-size:1rem]"],sm:["text-xs","[--ov-arrow-size:0.75rem]"]}}});function mS({className:e,getTypeOf:t,collapsed:n=1,displayObjectSize:r=!0,builtinRenderers:o,customRenderers:i,value:a,tagName:s="div",theme:l,size:u="base"}){const d=wk({...pS,...l});return(0,c().jsx)(s,{style:d,className:Bf(hS({size:u}),e),children:(0,c().jsx)(Ek,{collapsed:n,displayObjectSize:r,getTypeOf:t,renderers:{...o,...i},children:(0,c().jsx)(sS,{context:{},depth:0,value:a,path:[]})})})}function gS({error:e,prefix:t}){return(0,c().jsxs)(yk,{children:[(0,c().jsxs)("div",{children:[t&&`${t}:`," ",e.name,": ",e.message]}),e.stack&&(0,c().jsx)("div",{className:"mt-3",children:(0,c().jsx)(mS,{className:"mt-4",value:e.stack.split("\n").slice(1),displayObjectSize:!1,size:"sm",theme:fS})})]})}function yS({error:e}){const{networkError:t,graphQLErrors:n,protocolErrors:r,clientErrors:o}=e;return(0,c().jsx)(cx.Panel,{children:(0,c().jsxs)("ul",{className:"flex flex-col gap-4",children:[t&&(0,c().jsx)(gS,{error:t,prefix:"[Network]"}),n.map((e,t)=>{const{__typename:n,message:r,...o}=e;return(0,c().jsxs)(yk,{children:[(0,c().jsxs)("div",{children:["[GraphQL]: ",r]}),(0,c().jsx)(mS,{className:"mt-4",value:o,displayObjectSize:2,collapsed:2,size:"sm",theme:fS})]},`gql-${t}`)}),r.map((e,t)=>(0,c().jsxs)(yk,{children:["[Protocol]: ",e]},`protocol-${t}`)),o.map((e,t)=>(0,c().jsxs)(yk,{children:["[Client]: ",e]},`client-${t}`))]})})}function vS(e){return"object"==typeof e&&null!==e&&"source"in e&&"apollo-client-devtools"===e.source}gS.fragments={error:tp`
    fragment SerializedErrorAlertDisclosureItem_error on ErrorLike {
      message
      name
      stack
    }
  `},yS.fragments={error:tp`
    fragment ApolloErrorAlertDisclosurePanel_error on SerializedApolloError {
      networkError {
        ...SerializedErrorAlertDisclosureItem_error
      }
      clientErrors
      graphQLErrors {
        message
        path
        extensions
      }
      protocolErrors
    }

    ${gS.fragments.error}
  `};const bS=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError].reduce((e,t)=>e.set(t.name,t),new Map);function ES({name:e,message:t,stack:n}){const r=new(e?bS.get(e)??Error:Error)(t);return e&&r.name!==e&&(r.name=e),n&&(r.stack=n),r}function xS(e,t={}){const{jsonSerialize:n}=t,r=new Set;return{addListener(t){function n({data:e}){if(r.has(e.id))return r.delete(e.id);t(e)}return e.addEventListener("message",n),()=>{e.removeEventListener("message",n)}},postMessage(t){r.add(t.id),setTimeout(()=>r.delete(t.id),10),e.postMessage(n?JSON.parse(JSON.stringify(t)):t,"*")}}}function wS(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";return new Array(10).fill(null).map(()=>e[Math.floor(62*Math.random())]).join("")}function TS(e){let t=null;const n=new Map;function r(e){if(!function(e){return vS(e)&&"actor"===e.type}(e))return;const t=n.get(e.message.type);if(t)for(const n of t)n(e.message)}return{on:(o,i,a={})=>{let s=n.get(o);s||(s=new Set,n.set(o,s)),s.add(i),t||(t=e.addListener(r));const l=()=>{s.delete(i),0===s.size&&n.delete(o),0===n.size&&t&&(t(),t=null)};return a.signal&&a.signal.addEventListener("abort",l,{once:!0}),l},send:t=>{e.postMessage({id:wS(),source:"apollo-client-devtools",type:"actor",message:t})}}}let kS=null;const SS=e=>kS||=function(e){return TS(xS(e))}(e);function AS(e,t){const n=(0,u().useRef)(t);(0,u().useLayoutEffect)(()=>{n.current=t}),(0,u().useEffect)(()=>SS(window).on(e,e=>{n.current(e)}),[e])}var NS;function _S(){return _S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_S.apply(null,arguments)}const CS=function(e){return u().createElement("svg",_S({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),NS||(NS=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m10.638 10.637 4.393 4.394M1.42 8.848a5.665 5.665 0 1 0 10.428-4.432A5.665 5.665 0 0 0 1.42 8.848"})))};function IS({autoFocus:e,className:t,placeholder:n="Search",onChange:r,value:o}){return(0,c().jsxs)("div",{className:Hp(t,"flex items-center relative"),children:[(0,c().jsx)(CS,{className:"absolute left-4 z-10 text-icon-secondary dark:text-icon-secondary-dark w-4"}),(0,c().jsx)("input",{autoFocus:e,onChange:e=>r(e.target.value),placeholder:n,value:o,type:"text",className:Hp("h-10 w-full border-2 bg-input rounded-md pl-11 pr-4 dark:bg-input-dark border-primary dark:border-primary-dark placeholder:text-placeholder placeholder:dark:text-placeholder-dark","focus:border-focused focus:dark:border-focused-dark focus:outline-none focus:border-2","disabled:bg-disabled disabled:dark:bg-disabled-dark disabled:text-disabled disabled:dark:text-disabled disabled:border-secondary disabled:dark:border-secondary-dark disabled:placeholder:text-disabled disabled:dark:placeholder:text-disabled-dark disabled:cursor-not-allowed")})]})}const OS=({searchTerm:e,value:t})=>{const n=new RegExp(e,"i").exec(t);return n?(0,c().jsxs)("span",{children:[t.slice(0,n.index),(0,c().jsx)("span",{className:"bg-searchHighlight dark:bg-searchHighlight-dark text-inverted dark:text-inverted-dark",children:n[0]}),t.slice(n.index+e.length)]}):(0,c().jsx)(c().Fragment,{children:t})};function DS(){return(0,c().jsx)("div",{className:"w-full flex items-center justify-center h-full",children:(0,c().jsx)(Xm,{size:"lg"})})}function RS(e){return e?.some(e=>"EXTENSION_INVALIDATED"===e.extensions?.code)??!1}const PS=[/^Store reset/];function LS(e){return za.is(e)?RS(e.errors):PS.some(t=>t.test(e.message))}class MS{registry={};constructor(...e){this.resetCaches(),e.length&&this.register(...e)}register(...e){const t=new Map;return e.forEach(e=>{Oo(e).forEach(e=>{t.set(e.name.value,e)})}),t.forEach((e,t)=>{e!==this.registry[t]&&(this.registry[t]=e,this.invalidate(t))}),this}invalidate(e){}resetCaches(){const e=MS.prototype;this.invalidate=(this.lookup=Er(e.lookup.bind(this),{makeCacheKey:e=>e,max:Zt["fragmentRegistry.lookup"]||1e3})).dirty,this.transform=Er(e.transform.bind(this),{makeCacheKey:Vo(this),cache:dn,max:Zt["fragmentRegistry.transform"]||2e3}),this.findFragmentSpreads=Er(e.findFragmentSpreads.bind(this),{makeCacheKey:Vo(this),cache:dn,max:Zt["fragmentRegistry.findFragmentSpreads"]||4e3})}lookup(e){return this.registry[e]||null}transform(e){const t=new Map;Oo(e).forEach(e=>{t.set(e.name.value,e)});const n=new Set,r=e=>{t.has(e)||n.add(e)},o=e=>Object.keys(this.findFragmentSpreads(e)).forEach(r);o(e);const i=[],a={};if(n.forEach(e=>{const n=t.get(e);if(n)o(a[e]=n);else{i.push(e);const t=this.lookup(e);t&&o(a[e]=t)}}),i.length){const t=[];i.forEach(e=>{const n=a[e];n&&t.push(n)}),t.length&&(e={...e,definitions:e.definitions.concat(t)})}return e}findFragmentSpreads(e){const t={};return Mt(e,{FragmentSpread(e){t[e.name.value]=e}}),t}}const FS=function(...e){return new MS(...e)}();function jS({error:e}){return(0,c().jsx)(cx.Panel,{children:(0,c().jsx)("ul",{className:"flex flex-col gap-4",children:e.errors.map((e,t)=>{const{__typename:n,message:r,...o}=e;return(0,c().jsxs)(yk,{children:[(0,c().jsxs)("div",{children:["[GraphQL]: ",r]}),(0,c().jsx)(mS,{className:"mt-4",value:o,displayObjectSize:2,collapsed:2,size:"sm",theme:fS})]},t)})})})}function BS({error:e}){return(0,c().jsx)(cx.Panel,{children:(0,c().jsx)("ul",{className:"flex flex-col gap-4",children:e.errors.map((e,t)=>(0,c().jsxs)(yk,{children:["[Protocol]: ",e.message]},t))})})}function US({error:e}){return"SerializedCombinedGraphQLErrors"===e.__typename?(0,c().jsx)(jS,{error:e}):"SerializedCombinedProtocolErrors"===e.__typename?(0,c().jsx)(BS,{error:e}):(0,c().jsx)(cx.Panel,{children:(0,c().jsx)("ul",{children:(0,c().jsx)(gS,{error:e})})})}function zS(){const e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0;if(e.__xstate__)return e.__xstate__}FS.register(lp`
  fragment CombinedGraphQLErrorsAlertDisclosurePanel_error on SerializedCombinedGraphQLErrors {
    errors {
      message
      path
      extensions
    }
  }
`),FS.register(lp`
  fragment CombinedProtocolErrorsAlertDisclosurePanel_error on SerializedCombinedProtocolErrors {
    errors {
      message
    }
  }
`),FS.register(tp`
  fragment SerializedErrorAlertDisclosurePanel_error on ErrorLike {
    ...CombinedGraphQLErrorsAlertDisclosurePanel_error
    ...CombinedProtocolErrorsAlertDisclosurePanel_error
    ...SerializedErrorAlertDisclosureItem_error
  }

  ${gS.fragments.error}
`);const VS=e=>{if("undefined"==typeof window)return;const t=zS();t&&t.register(e)};class HS{constructor(e){this._process=e,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(e){const t={value:e,next:null};if(this._current)return this._last.next=t,void(this._last=t);this._current=t,this._last=t,this._active&&this.flush()}flush(){for(;this._current;){const e=this._current;this._process(e.value),this._current=e.next}this._last=null}}const $S="xstate.init",GS="xstate.stop";function WS(e,t){return{type:`xstate.done.state.${e}`,output:t}}function qS(e,t){return{type:`xstate.error.actor.${e}`,error:t,actorId:e}}function YS(e){return{type:$S,input:e}}function QS(e){setTimeout(()=>{throw e})}const KS="function"==typeof Symbol&&Symbol.observable||"@@observable";function XS(e,t){const n=ZS(e),r=ZS(t);return"string"==typeof r?"string"==typeof n&&r===n:"string"==typeof n?n in r:Object.keys(n).every(e=>e in r&&XS(n[e],r[e]))}function JS(e){if(oA(e))return e;const t=[];let n="";for(let r=0;r<e.length;r++){switch(e.charCodeAt(r)){case 92:n+=e[r+1],r++;continue;case 46:t.push(n),n="";continue}n+=e[r]}return t.push(n),t}function ZS(e){if((t=e)&&"object"==typeof t&&"machine"in t&&"value"in t)return e.value;var t;if("string"!=typeof e)return e;return function(e){if(1===e.length)return e[0];const t={};let n=t;for(let t=0;t<e.length-1;t++)if(t===e.length-2)n[e[t]]=e[t+1];else{const r=n;n={},r[e[t]]=n}return t}(JS(e))}function eA(e,t){const n={},r=Object.keys(e);for(let o=0;o<r.length;o++){const i=r[o];n[i]=t(e[i],i,e,o)}return n}function tA(e){return oA(e)?e:[e]}function nA(e){return void 0===e?[]:tA(e)}function rA(e,t,n,r){return"function"==typeof e?e({context:t,event:n,self:r}):e}function oA(e){return Array.isArray(e)}function iA(e){return tA(e).map(e=>void 0===e||"string"==typeof e?{target:e}:e)}function aA(e){if(void 0!==e&&""!==e)return nA(e)}function sA(e,t,n){const r="object"==typeof e,o=r?e:void 0;return{next:(r?e.next:e)?.bind(o),error:(r?e.error:t)?.bind(o),complete:(r?e.complete:n)?.bind(o)}}function lA(e,t){return`${t}.${e}`}function cA(e,t){const n=t.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return e.implementations.actors[t];const[,r,o]=n,i=e.getStateNodeById(o).config.invoke;return(Array.isArray(i)?i[r]:i).src}function uA(e,t){return`${e.sessionId}.${t}`}let dA=0;let pA=!1;let fA=function(e){return e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped",e}({});const hA={clock:{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class mA{constructor(e,t){this.logic=e,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new HS(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=fA.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const n={...hA,...t},{clock:r,logger:o,parent:i,syncSnapshot:a,id:s,systemId:l,inspect:c}=n;this.system=i?i.system:function(e,t){const n=new Map,r=new Map,o=new WeakMap,i=new Set,a={},{clock:s,logger:l}=t,c={schedule:(e,t,n,r,o=Math.random().toString(36).slice(2))=>{const i={source:e,target:t,event:n,delay:r,id:o,startedAt:Date.now()},l=uA(e,o);u._snapshot._scheduledEvents[l]=i;const c=s.setTimeout(()=>{delete a[l],delete u._snapshot._scheduledEvents[l],u._relay(e,t,n)},r);a[l]=c},cancel:(e,t)=>{const n=uA(e,t),r=a[n];delete a[n],delete u._snapshot._scheduledEvents[n],void 0!==r&&s.clearTimeout(r)},cancelAll:e=>{for(const t in u._snapshot._scheduledEvents){const n=u._snapshot._scheduledEvents[t];n.source===e&&c.cancel(e,n.id)}}},u={_snapshot:{_scheduledEvents:(t?.snapshot&&t.snapshot.scheduler)??{}},_bookId:()=>"x:"+dA++,_register:(e,t)=>(n.set(e,t),e),_unregister:e=>{n.delete(e.sessionId);const t=o.get(e);void 0!==t&&(r.delete(t),o.delete(e))},get:e=>r.get(e),getAll:()=>Object.fromEntries(r.entries()),_set:(e,t)=>{const n=r.get(e);if(n&&n!==t)throw new Error(`Actor with system ID '${e}' already exists.`);r.set(e,t),o.set(t,e)},inspect:e=>{const t=sA(e);return i.add(t),{unsubscribe(){i.delete(t)}}},_sendInspectionEvent:t=>{if(!i.size)return;const n={...t,rootId:e.sessionId};i.forEach(e=>e.next?.(n))},_relay:(e,t,n)=>{u._sendInspectionEvent({type:"@xstate.event",sourceRef:e,actorRef:t,event:n}),t._send(n)},scheduler:c,getSnapshot:()=>({_scheduledEvents:{...u._snapshot._scheduledEvents}}),start:()=>{const e=u._snapshot._scheduledEvents;u._snapshot._scheduledEvents={};for(const t in e){const{source:n,target:r,event:o,delay:i,id:a}=e[t];c.schedule(n,r,o,i,a)}},_clock:s,_logger:l};return u}(this,{clock:r,logger:o}),c&&!i&&this.system.inspect(sA(c)),this.sessionId=this.system._bookId(),this.id=s??this.sessionId,this.logger=t?.logger??this.system._logger,this.clock=t?.clock??this.system._clock,this._parent=i,this._syncSnapshot=a,this.options=n,this.src=n.src??e,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:e=>{this._deferred.push(e)},system:this.system,stopChild:e=>{if(e._parent!==this)throw new Error(`Cannot stop child actor ${e.id} of ${this.id} because it is not a child`);e._stop()},emit:e=>{const t=this.eventListeners.get(e.type),n=this.eventListeners.get("*");if(!t&&!n)return;const r=[...t?t.values():[],...n?n.values():[]];for(const t of r)try{t(e)}catch(e){QS(e)}},actionExecutor:e=>{const t=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:e.type,params:e.params}}),!e.exec)return;const t=pA;try{pA=!0,e.exec(e.info,e.params)}finally{pA=t}};this._processingStatus===fA.Running?t():this._deferred.push(t)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),l&&(this.systemId=l,this.system._set(l,this)),this._initState(t?.snapshot??t?.state),l&&"active"!==this._snapshot.status&&this.system._unregister(this)}_initState(e){try{this._snapshot=e?this.logic.restoreSnapshot?this.logic.restoreSnapshot(e,this._actorScope):e:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(e){this._snapshot={status:"error",output:void 0,error:e}}}update(e,t){let n;for(this._snapshot=e;n=this._deferred.shift();)try{n()}catch(t){this._deferred.length=0,this._snapshot={...e,status:"error",error:t}}switch(this._snapshot.status){case"active":for(const t of this.observers)try{t.next?.(e)}catch(e){QS(e)}break;case"done":for(const t of this.observers)try{t.next?.(e)}catch(e){QS(e)}this._stopProcedure(),this._complete(),this._doneEvent=(r=this.id,o=this._snapshot.output,{type:`xstate.done.actor.${r}`,output:o,actorId:r}),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error)}var r,o;this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:t,snapshot:e})}subscribe(e,t,n){const r=sA(e,t,n);if(this._processingStatus!==fA.Stopped)this.observers.add(r);else switch(this._snapshot.status){case"done":try{r.complete?.()}catch(e){QS(e)}break;case"error":{const e=this._snapshot.error;if(r.error)try{r.error(e)}catch(e){QS(e)}else QS(e);break}}return{unsubscribe:()=>{this.observers.delete(r)}}}on(e,t){let n=this.eventListeners.get(e);n||(n=new Set,this.eventListeners.set(e,n));const r=t.bind(void 0);return n.add(r),{unsubscribe:()=>{n.delete(r)}}}start(){if(this._processingStatus===fA.Running)return this;this._syncSnapshot&&this.subscribe({next:e=>{"active"===e.status&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:e})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=fA.Running;const e=YS(this.options.input);this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:e});switch(this._snapshot.status){case"done":return this.update(this._snapshot,e),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(e){return this._snapshot={...this._snapshot,status:"error",error:e},this._error(e),this}return this.update(this._snapshot,e),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(e){let t,n;try{t=this.logic.transition(this._snapshot,e,this._actorScope)}catch(e){n={err:e}}if(n){const{err:e}=n;return this._snapshot={...this._snapshot,status:"error",error:e},void this._error(e)}this.update(t,e),e.type===GS&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===fA.Stopped?this:(this.mailbox.clear(),this._processingStatus===fA.NotStarted?(this._processingStatus=fA.Stopped,this):(this.mailbox.enqueue({type:GS}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(const e of this.observers)try{e.complete?.()}catch(e){QS(e)}this.observers.clear()}_reportError(e){if(!this.observers.size)return void(this._parent||QS(e));let t=!1;for(const n of this.observers){const r=n.error;t||=!r;try{r?.(e)}catch(e){QS(e)}}this.observers.clear(),t&&QS(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,qS(this.id,e))}_stopProcedure(){return this._processingStatus!==fA.Running||(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new HS(this._process.bind(this)),this._processingStatus=fA.Stopped,this.system._unregister(this)),this}_send(e){this._processingStatus!==fA.Stopped&&this.mailbox.enqueue(e)}send(e){this.system._relay(void 0,this,e)}attachDevTools(){const{devTools:e}=this.options;if(e){("function"==typeof e?e:VS)(this)}}toJSON(){return{xstate$$type:1,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[KS](){return this}getSnapshot(){return this._snapshot}}function gA(e,...[t]){return new mA(e,t)}function yA(e,t,n,r,{sendId:o}){return[t,{sendId:"function"==typeof o?o(n,r):o},void 0]}function vA(e,t){e.defer(()=>{e.system.scheduler.cancel(e.self,t.sendId)})}function bA(e){function t(e,t){}return t.type="xstate.cancel",t.sendId=e,t.resolve=yA,t.execute=vA,t}function EA(e,t,n,r,{id:o,systemId:i,src:a,input:s,syncSnapshot:l}){const c="string"==typeof a?cA(t.machine,a):a,u="function"==typeof o?o(n):o;let d,p;return c&&(p="function"==typeof s?s({context:t.context,event:n.event,self:e.self}):s,d=gA(c,{id:u,src:a,parent:e.self,syncSnapshot:l,systemId:i,input:p})),[vN(t,{children:{...t.children,[u]:d}}),{id:o,systemId:i,actorRef:d,src:a,input:p},void 0]}function xA(e,{actorRef:t}){t&&e.defer(()=>{t._processingStatus!==fA.Stopped&&t.start()})}function wA(...[e,{id:t,systemId:n,input:r,syncSnapshot:o=!1}={}]){function i(e,t){}return i.type="xstate.spawnChild",i.id=t,i.systemId=n,i.src=e,i.input=r,i.syncSnapshot=o,i.resolve=EA,i.execute=xA,i}function TA(e,t,n,r,{actorRef:o}){const i="function"==typeof o?o(n,r):o,a="string"==typeof i?t.children[i]:i;let s=t.children;return a&&(s={...s},delete s[a.id]),[vN(t,{children:s}),a,void 0]}function kA(e,t){t&&(e.system._unregister(t),t._processingStatus===fA.Running?e.defer(()=>{e.stopChild(t)}):e.stopChild(t))}function SA(e){function t(e,t){}return t.type="xstate.stopChild",t.actorRef=e,t.resolve=TA,t.execute=kA,t}function AA(e,{context:t,event:n},{guards:r}){return!NA(r[0],t,n,e)}function NA(e,t,n,r){const{machine:o}=r,i="function"==typeof e,a=i?e:o.implementations.guards["string"==typeof e?e:e.type];if(!i&&!a)throw new Error(`Guard '${"string"==typeof e?e:e.type}' is not implemented.'.`);if("function"!=typeof a)return NA(a,t,n,r);const s={context:t,event:n},l=i||"string"==typeof e?void 0:"params"in e?"function"==typeof e.params?e.params({context:t,event:n}):e.params:void 0;if(!("check"in a))return a(s,l);return a.check(r,s,a)}const _A=e=>"atomic"===e.type||"final"===e.type;function CA(e){return Object.values(e.states).filter(e=>"history"!==e.type)}function IA(e,t){const n=[];if(t===e)return n;let r=e.parent;for(;r&&r!==t;)n.push(r),r=r.parent;return n}function OA(e){const t=new Set(e),n=RA(t);for(const e of t)if("compound"!==e.type||n.get(e)&&n.get(e).length){if("parallel"===e.type)for(const n of CA(e))if("history"!==n.type&&!t.has(n)){const e=zA(n);for(const n of e)t.add(n)}}else zA(e).forEach(e=>t.add(e));for(const e of t){let n=e.parent;for(;n;)t.add(n),n=n.parent}return t}function DA(e,t){const n=t.get(e);if(!n)return{};if("compound"===e.type){const e=n[0];if(!e)return{};if(_A(e))return e.key}const r={};for(const e of n)r[e.key]=DA(e,t);return r}function RA(e){const t=new Map;for(const n of e)t.has(n)||t.set(n,[]),n.parent&&(t.has(n.parent)||t.set(n.parent,[]),t.get(n.parent).push(n));return t}function PA(e,t){return DA(e,RA(OA(t)))}function LA(e,t){return"compound"===t.type?CA(t).some(t=>"final"===t.type&&e.has(t)):"parallel"===t.type?CA(t).every(t=>LA(e,t)):"final"===t.type}const MA=e=>"#"===e[0];function FA(e){const t=e.config.after;if(!t)return[];const n=Object.keys(t).flatMap(n=>{const r=t[n],o="string"==typeof r?{target:r}:r,i=Number.isNaN(+n)?n:+n,a=(t=>{const n=(r=t,o=e.id,{type:`xstate.after.${r}.${o}`});var r,o;const i=n.type;return e.entry.push(TN(n,{id:i,delay:t})),e.exit.push(bA(i)),i})(i);return nA(o).map(e=>({...e,event:a,delay:i}))});return n.map(t=>{const{delay:n}=t;return{...jA(e,t.event,t),delay:n}})}function jA(e,t,n){const r=aA(n.target),o=n.reenter??!1,i=function(e,t){if(void 0===t)return;return t.map(t=>{if("string"!=typeof t)return t;if(MA(t))return e.machine.getStateNodeById(t);const n="."===t[0];if(n&&!e.parent)return $A(e,t.slice(1));const r=n?e.key+t:t;if(!e.parent)throw new Error(`Invalid target: "${t}" is not a valid target from the root node. Did you mean ".${t}"?`);try{return $A(e.parent,r)}catch(t){throw new Error(`Invalid transition definition for state node '${e.id}':\n${t.message}`)}})}(e,r),a={...n,actions:nA(n.actions),guard:n.guard,target:i,source:e,reenter:o,eventType:t,toJSON:()=>({...a,source:`#${e.id}`,target:i?i.map(e=>`#${e.id}`):void 0})};return a}function BA(e){const t=aA(e.config.target);return t?{target:t.map(t=>"string"==typeof t?$A(e.parent,t):t)}:e.parent.initial}function UA(e){return"history"===e.type}function zA(e){const t=VA(e);for(const n of t)for(const r of IA(n,e))t.add(r);return t}function VA(e){const t=new Set;return function e(n){if(!t.has(n))if(t.add(n),"compound"===n.type)e(n.initial.target[0]);else if("parallel"===n.type)for(const t of CA(n))e(t)}(e),t}function HA(e,t){if(MA(t))return e.machine.getStateNodeById(t);if(!e.states)throw new Error(`Unable to retrieve child state '${t}' from '${e.id}'; no child states exist.`);const n=e.states[t];if(!n)throw new Error(`Child state '${t}' does not exist on '${e.id}'`);return n}function $A(e,t){if("string"==typeof t&&MA(t))try{return e.machine.getStateNodeById(t)}catch{}const n=JS(t).slice();let r=e;for(;n.length;){const e=n.shift();if(!e.length)break;r=HA(r,e)}return r}function GA(e,t){if("string"==typeof t){const n=e.states[t];if(!n)throw new Error(`State '${t}' does not exist on '${e.id}'`);return[e,n]}const n=Object.keys(t),r=n.map(t=>HA(e,t)).filter(Boolean);return[e.machine.root,e].concat(r,n.reduce((n,r)=>{const o=HA(e,r);if(!o)return n;const i=GA(o,t[r]);return n.concat(i)},[]))}function WA(e,t,n,r){return"string"==typeof t?function(e,t,n,r){const o=HA(e,t).next(n,r);return o&&o.length?o:e.next(n,r)}(e,t,n,r):1===Object.keys(t).length?function(e,t,n,r){const o=Object.keys(t),i=WA(HA(e,o[0]),t[o[0]],n,r);return i&&i.length?i:e.next(n,r)}(e,t,n,r):function(e,t,n,r){const o=[];for(const i of Object.keys(t)){const a=t[i];if(!a)continue;const s=WA(HA(e,i),a,n,r);s&&o.push(...s)}return o.length?o:e.next(n,r)}(e,t,n,r)}function qA(e){return Object.keys(e.states).map(t=>e.states[t]).filter(e=>"history"===e.type)}function YA(e,t){let n=e;for(;n.parent&&n.parent!==t;)n=n.parent;return n.parent===t}function QA(e,t){const n=new Set(e),r=new Set(t);for(const e of n)if(r.has(e))return!0;for(const e of r)if(n.has(e))return!0;return!1}function KA(e,t,n){const r=new Set;for(const o of e){let e=!1;const i=new Set;for(const a of r)if(QA(ZA([o],t,n),ZA([a],t,n))){if(!YA(o.source,a.source)){e=!0;break}i.add(a)}if(!e){for(const e of i)r.delete(e);r.add(o)}}return Array.from(r)}function XA(e,t){if(!e.target)return[];const n=new Set;for(const r of e.target)if(UA(r))if(t[r.id])for(const e of t[r.id])n.add(e);else for(const e of XA(BA(r),t))n.add(e);else n.add(r);return[...n]}function JA(e,t){const n=XA(e,t);if(!n)return;if(!e.reenter&&n.every(t=>t===e.source||YA(t,e.source)))return e.source;const r=function(e){const[t,...n]=e;for(const e of IA(t,void 0))if(n.every(t=>YA(t,e)))return e}(n.concat(e.source));return r||(e.reenter?void 0:e.source.machine.root)}function ZA(e,t,n){const r=new Set;for(const o of e)if(o.target?.length){const e=JA(o,n);o.reenter&&o.source===e&&r.add(e);for(const n of t)YA(n,e)&&r.add(n)}return[...r]}function eN(e,t,n,r,o,i){if(!e.length)return t;const a=new Set(t._nodes);let s=t.historyValue;const l=KA(e,a,s);let c=t;o||([c,s]=function(e,t,n,r,o,i,a){let s=e;const l=ZA(r,o,i);let c;l.sort((e,t)=>t.order-e.order);for(const e of l)for(const t of qA(e)){let n;n="deep"===t.history?t=>_A(t)&&YA(t,e):t=>t.parent===e,c??={...i},c[t.id]=Array.from(o).filter(n)}for(const e of l)s=sN(s,t,n,[...e.exit,...e.invoke.map(e=>SA(e.id))],a,void 0),o.delete(e);return[s,c||i]}(c,r,n,l,a,s,i,n.actionExecutor)),c=sN(c,r,n,l.flatMap(e=>e.actions),i,void 0),c=function(e,t,n,r,o,i,a,s){let l=e;const c=new Set,u=new Set;(function(e,t,n,r){for(const o of e){const e=JA(o,t);for(const i of o.target||[])UA(i)||o.source===i&&o.source===e&&!o.reenter||(r.add(i),n.add(i)),nN(i,t,n,r);const i=XA(o,t);for(const a of i){const i=IA(a,e);"parallel"===e?.type&&i.push(e),rN(r,t,n,i,!o.source.parent&&o.reenter?void 0:e)}}})(r,a,u,c),s&&u.add(e.machine.root);const d=new Set;for(const e of[...c].sort((e,t)=>e.order-t.order)){o.add(e);const r=[];r.push(...e.entry);for(const t of e.invoke)r.push(wA(t.src,{...t,syncSnapshot:!!t.onSnapshot}));if(u.has(e)){const t=e.initial.actions;r.push(...t)}if(l=sN(l,t,n,r,i,e.invoke.map(e=>e.id)),"final"===e.type){const r=e.parent;let a="parallel"===r?.type?r:r?.parent,s=a||e;for("compound"===r?.type&&i.push(WS(r.id,void 0!==e.output?rA(e.output,l.context,t,n.self):void 0));"parallel"===a?.type&&!d.has(a)&&LA(o,a);)d.add(a),i.push(WS(a.id)),s=a,a=a.parent;if(a)continue;l=vN(l,{status:"done",output:tN(l,t,n,l.machine.root,s)})}}return l}(c,r,n,l,a,i,s,o);const u=[...a];"done"===c.status&&(c=sN(c,r,n,u.sort((e,t)=>t.order-e.order).flatMap(e=>e.exit),i,void 0));try{return s===t.historyValue&&function(e,t){if(e.length!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(t._nodes,a)?c:vN(c,{_nodes:u,historyValue:s})}catch(e){throw e}}function tN(e,t,n,r,o){if(void 0===r.output)return;const i=WS(o.id,void 0!==o.output&&o.parent?rA(o.output,e.context,t,n.self):void 0);return rA(r.output,e.context,i,n.self)}function nN(e,t,n,r){if(UA(e))if(t[e.id]){const o=t[e.id];for(const e of o)r.add(e),nN(e,t,n,r);for(const i of o)oN(i,e.parent,r,t,n)}else{const o=BA(e);for(const i of o.target)r.add(i),o===e.parent?.initial&&n.add(e.parent),nN(i,t,n,r);for(const i of o.target)oN(i,e.parent,r,t,n)}else if("compound"===e.type){const[o]=e.initial.target;UA(o)||(r.add(o),n.add(o)),nN(o,t,n,r),oN(o,e,r,t,n)}else if("parallel"===e.type)for(const o of CA(e).filter(e=>!UA(e)))[...r].some(e=>YA(e,o))||(UA(o)||(r.add(o),n.add(o)),nN(o,t,n,r))}function rN(e,t,n,r,o){for(const i of r)if(o&&!YA(i,o)||e.add(i),"parallel"===i.type)for(const r of CA(i).filter(e=>!UA(e)))[...e].some(e=>YA(e,r))||(e.add(r),nN(r,t,n,e))}function oN(e,t,n,r,o){rN(n,r,o,IA(e,t))}function iN(e,t){return e.implementations.actions[t]}function aN(e,t,n,r,o,i){const{machine:a}=e;let s=e;for(const e of r){const r="function"==typeof e,l=r?e:iN(a,"string"==typeof e?e:e.type),c={context:s.context,event:t,self:n.self,system:n.system},u=r||"string"==typeof e?void 0:"params"in e?"function"==typeof e.params?e.params({context:s.context,event:t}):e.params:void 0;if(!l||!("resolve"in l)){n.actionExecutor({type:"string"==typeof e?e:"object"==typeof e?e.type:e.name||"(anonymous)",info:c,params:u,exec:l});continue}const d=l,[p,f,h]=d.resolve(n,s,c,u,l,o);s=p,"retryResolve"in d&&i?.push([d,f]),"execute"in d&&n.actionExecutor({type:d.type,info:c,params:f,exec:d.execute.bind(null,n,f)}),h&&(s=aN(s,t,n,h,o,i))}return s}function sN(e,t,n,r,o,i){const a=i?[]:void 0,s=aN(e,t,n,r,{internalQueue:o,deferredActorIds:i},a);return a?.forEach(([e,t])=>{e.retryResolve(n,s,t)}),s}function lN(e,t,n,r){let o=e;const i=[];function a(e,t,r){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:t,snapshot:e,_transitions:r}),i.push(e)}if(t.type===GS)return o=vN(cN(o,t,n),{status:"stopped"}),a(o,t,[]),{snapshot:o,microstates:i};let s=t;if(s.type!==$S){const t=s,l=function(e){return e.type.startsWith("xstate.error.actor")}(t),c=uN(t,o);if(l&&!c.length)return o=vN(e,{status:"error",error:t.error}),a(o,t,[]),{snapshot:o,microstates:i};o=eN(c,e,n,s,!1,r),a(o,t,c)}let l=!0;for(;"active"===o.status;){let e=l?dN(o,s):[];const t=e.length?o:void 0;if(!e.length){if(!r.length)break;s=r.shift(),e=uN(s,o)}o=eN(e,o,n,s,!1,r),l=o!==t,a(o,s,e)}return"active"!==o.status&&cN(o,s,n),{snapshot:o,microstates:i}}function cN(e,t,n){return sN(e,t,n,Object.values(e.children).map(e=>SA(e)),[],void 0)}function uN(e,t){return t.machine.getTransitionData(t,e)}function dN(e,t){const n=new Set,r=e._nodes.filter(_A);for(const o of r)e:for(const r of[o].concat(IA(o,void 0)))if(r.always)for(const o of r.always)if(void 0===o.guard||NA(o.guard,e.context,t,e)){n.add(o);break e}return KA(Array.from(n),new Set(e._nodes),e.historyValue)}const pN=function(e){return XS(e,this.value)},fN=function(e){return this.tags.has(e)},hN=function(e){const t=this.machine.getTransitionData(this,e);return!!t?.length&&t.some(e=>void 0!==e.target||e.actions.length)},mN=function(){const{_nodes:e,tags:t,machine:n,getMeta:r,toJSON:o,can:i,hasTag:a,matches:s,...l}=this;return{...l,tags:Array.from(t)}},gN=function(){return this._nodes.reduce((e,t)=>(void 0!==t.meta&&(e[t.id]=t.meta),e),{})};function yN(e,t){return{status:e.status,output:e.output,error:e.error,machine:t,context:e.context,_nodes:e._nodes,value:PA(t.root,e._nodes),tags:new Set(e._nodes.flatMap(e=>e.tags)),children:e.children,historyValue:e.historyValue||{},matches:pN,hasTag:fN,can:hN,getMeta:gN,toJSON:mN}}function vN(e,t={}){return yN({...e,...t},e.machine)}function bN(e){if("object"!=typeof e||null===e)return{};const t={};for(const n in e){const r=e[n];Array.isArray(r)&&(t[n]=r.map(e=>({id:e.id})))}return t}function EN(e){let t;for(const n in e){const r=e[n];if(r&&"object"==typeof r)if("sessionId"in r&&"send"in r&&"ref"in r)t??=Array.isArray(e)?e.slice():{...e},t[n]={xstate$$type:1,id:r.id};else{const o=EN(r);o!==r&&(t??=Array.isArray(e)?e.slice():{...e},t[n]=o)}}return t??e}function xN(e,t,n,r,{event:o,id:i,delay:a},{internalQueue:s}){const l=t.machine.implementations.delays;if("string"==typeof o)throw new Error(`Only event objects may be used with raise; use raise({ type: "${o}" }) instead`);const c="function"==typeof o?o(n,r):o;let u;if("string"==typeof a){const e=l&&l[a];u="function"==typeof e?e(n,r):e}else u="function"==typeof a?a(n,r):a;return"number"!=typeof u&&s.push(c),[t,{event:c,id:i,delay:u},void 0]}function wN(e,t){const{event:n,delay:r,id:o}=t;"number"!=typeof r||e.defer(()=>{const t=e.self;e.system.scheduler.schedule(t,t,n,r,o)})}function TN(e,t){function n(e,t){}return n.type="xstate.raise",n.event=e,n.id=t?.id,n.delay=t?.delay,n.resolve=xN,n.execute=wN,n}function kN(e,{machine:t,context:n},r,o){return(i,a)=>{const s=((i,a)=>{if("string"==typeof i){const s=cA(t,i);if(!s)throw new Error(`Actor logic '${i}' not implemented in machine '${t.id}'`);const l=gA(s,{id:a?.id,parent:e.self,syncSnapshot:a?.syncSnapshot,input:"function"==typeof a?.input?a.input({context:n,event:r,self:e.self}):a?.input,src:i,systemId:a?.systemId});return o[l.id]=l,l}return gA(i,{id:a?.id,parent:e.self,syncSnapshot:a?.syncSnapshot,input:a?.input,src:i,systemId:a?.systemId})})(i,a);return o[s.id]=s,e.defer(()=>{s._processingStatus!==fA.Stopped&&s.start()}),s}}function SN(e,t,n,r,{assignment:o}){if(!t.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const i={},a={context:t.context,event:n.event,spawn:kN(e,t,n.event,i),self:e.self,system:e.system};let s={};if("function"==typeof o)s=o(a,r);else for(const e of Object.keys(o)){const t=o[e];s[e]="function"==typeof t?t(a,r):t}return[vN(t,{context:Object.assign({},t.context,s),children:Object.keys(i).length?{...t.children,...i}:t.children}),void 0,void 0]}function AN(e){function t(e,t){}return t.type="xstate.assign",t.assignment=e,t.resolve=SN,t}const NN=new WeakMap;function _N(e,t,n){let r=NN.get(e);return r?t in r||(r[t]=n()):(r={[t]:n()},NN.set(e,r)),r[t]}const CN={},IN=e=>"string"==typeof e?{type:e}:"function"==typeof e?"resolve"in e?{type:e.type}:{type:e.name}:e;class ON{constructor(e,t){if(this.config=e,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=t._parent,this.key=t._key,this.machine=t._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join("."),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?eA(this.config.states,(e,t)=>new ON(e,{_parent:this,_key:t,_machine:this.machine})):CN,"compound"===this.type&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=!0===this.config.history?"shallow":this.config.history||!1,this.entry=nA(this.config.entry).slice(),this.exit=nA(this.config.exit).slice(),this.meta=this.config.meta,this.output="final"!==this.type&&this.parent?void 0:this.config.output,this.tags=nA(e.tags).slice()}_initialize(){this.transitions=function(e){const t=new Map;if(e.config.on)for(const n of Object.keys(e.config.on)){if(""===n)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const r=e.config.on[n];t.set(n,iA(r).map(t=>jA(e,n,t)))}if(e.config.onDone){const n=`xstate.done.state.${e.id}`;t.set(n,iA(e.config.onDone).map(t=>jA(e,n,t)))}for(const n of e.invoke){if(n.onDone){const r=`xstate.done.actor.${n.id}`;t.set(r,iA(n.onDone).map(t=>jA(e,r,t)))}if(n.onError){const r=`xstate.error.actor.${n.id}`;t.set(r,iA(n.onError).map(t=>jA(e,r,t)))}if(n.onSnapshot){const r=`xstate.snapshot.${n.id}`;t.set(r,iA(n.onSnapshot).map(t=>jA(e,r,t)))}}for(const n of e.after){let e=t.get(n.eventType);e||(e=[],t.set(n.eventType,e)),e.push(n)}return t}(this),this.config.always&&(this.always=iA(this.config.always).map(e=>jA(this,"",e))),Object.keys(this.states).forEach(e=>{this.states[e]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(IN),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(IN),eventType:null})}:void 0,history:this.history,states:eA(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(IN)})),entry:this.entry.map(IN),exit:this.exit.map(IN),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return _N(this,"invoke",()=>nA(this.config.invoke).map((e,t)=>{const{src:n,systemId:r}=e,o=e.id??lA(this.id,t),i="string"==typeof n?n:`xstate.invoke.${lA(this.id,t)}`;return{...e,src:i,id:o,systemId:r,toJSON(){const{onDone:t,onError:n,...r}=e;return{...r,type:"xstate.invoke",src:i,id:o}}}}))}get on(){return _N(this,"on",()=>[...this.transitions].flatMap(([e,t])=>t.map(t=>[e,t])).reduce((e,[t,n])=>(e[t]=e[t]||[],e[t].push(n),e),{}))}get after(){return _N(this,"delayedTransitions",()=>FA(this))}get initial(){return _N(this,"initial",()=>function(e,t){const n="string"==typeof t?e.states[t]:t?e.states[t.target]:void 0;if(!n&&t)throw new Error(`Initial state node "${t}" not found on parent state node #${e.id}`);const r={source:e,actions:t&&"string"!=typeof t?nA(t.actions):[],eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...r,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return r}(this,this.config.initial))}next(e,t){const n=t.type,r=[];let o;const i=_N(this,`candidates-${n}`,()=>function(e,t){const n=e.transitions.get(t)||[...e.transitions.keys()].filter(e=>{if("*"===e)return!0;if(!e.endsWith(".*"))return!1;const n=e.split("."),r=t.split(".");for(let e=0;e<n.length;e++){const t=n[e],o=r[e];if("*"===t)return e===n.length-1;if(t!==o)return!1}return!0}).sort((e,t)=>t.length-e.length).flatMap(t=>e.transitions.get(t));return n}(this,n));for(const a of i){const{guard:i}=a,s=e.context;let l=!1;try{l=!i||NA(i,s,t,e)}catch(e){const t="string"==typeof i?i:"object"==typeof i?i.type:void 0;throw new Error(`Unable to evaluate guard ${t?`'${t}' `:""}in transition for event '${n}' in state node '${this.id}':\n${e.message}`)}if(l){r.push(...a.actions),o=a;break}}return o?[o]:void 0}get events(){return _N(this,"events",()=>{const{states:e}=this,t=new Set(this.ownEvents);if(e)for(const n of Object.keys(e)){const r=e[n];if(r.states)for(const e of r.events)t.add(`${e}`)}return Array.from(t)})}get ownEvents(){const e=new Set([...this.transitions.keys()].filter(e=>this.transitions.get(e).some(e=>!(!e.target&&!e.actions.length&&!e.reenter))));return Array.from(e)}}class DN{constructor(e,t){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=e.id||"(machine)",this.implementations={actors:t?.actors??{},actions:t?.actions??{},delays:t?.delays??{},guards:t?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new ON(e,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(e){const{actions:t,guards:n,actors:r,delays:o}=this.implementations;return new DN(this.config,{actions:{...t,...e.actions},guards:{...n,...e.guards},actors:{...r,...e.actors},delays:{...o,...e.delays}})}resolveState(e){const t=(n=this.root,r=e.value,PA(n,[...OA(GA(n,r))]));var n,r;const o=OA(GA(this.root,t));return yN({_nodes:[...o],context:e.context||{},children:{},status:LA(o,this.root)?"done":e.status||"active",output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,t,n){return lN(e,t,n,[]).snapshot}microstep(e,t,n){return lN(e,t,n,[]).microstates}getTransitionData(e,t){return WA(this.root,e.value,e,t)||[]}getPreInitialState(e,t,n){const{context:r}=this.config,o=yN({context:"function"!=typeof r&&r?r:{},_nodes:[this.root],children:{},status:"active"},this);if("function"==typeof r){return sN(o,t,e,[AN(({spawn:e,event:t,self:n})=>r({spawn:e,input:t.input,self:n}))],n,void 0)}return o}getInitialSnapshot(e,t){const n=YS(t),r=[],o=this.getPreInitialState(e,n,r),i=eN([{target:[...VA(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],o,e,n,!0,r),{snapshot:a}=lN(i,n,e,r);return a}start(e){Object.values(e.children).forEach(e=>{"active"===e.getSnapshot().status&&e.start()})}getStateNodeById(e){const t=JS(e),n=t.slice(1),r=MA(t[0])?t[0].slice(1):t[0],o=this.idMap.get(r);if(!o)throw new Error(`Child state node '#${r}' does not exist on machine '${this.id}'`);return $A(o,n)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,t){return function(e,t){const{_nodes:n,tags:r,machine:o,children:i,context:a,can:s,hasTag:l,matches:c,getMeta:u,toJSON:d,...p}=e,f={};for(const e in i){const n=i[e];f[e]={snapshot:n.getPersistedSnapshot(t),src:n.src,systemId:n.systemId,syncSnapshot:n._syncSnapshot}}return{...p,context:EN(a),children:f,historyValue:bN(p.historyValue)}}(e,t)}restoreSnapshot(e,t){const n={},r=e.children;function o(e,t){if(t instanceof ON)return t;try{return e.machine.getStateNodeById(t.id)}catch{}}Object.keys(r).forEach(e=>{const o=r[e],i=o.snapshot,a=o.src,s="string"==typeof a?cA(this,a):a;if(!s)return;const l=gA(s,{id:e,parent:t.self,syncSnapshot:o.syncSnapshot,snapshot:i,src:a,systemId:o.systemId});n[e]=l});const i=function(e,t){if(!t||"object"!=typeof t)return{};const n={};for(const r in t){const i=t[r];for(const t of i){const i=o(e,t);i&&(n[r]??=[],n[r].push(i))}}return n}(this.root,e.historyValue),a=yN({...e,children:n,_nodes:Array.from(OA(GA(this.root,e.value))),historyValue:i},this),s=new Set;return function e(t,n){if(!s.has(t)){s.add(t);for(const r in t){const o=t[r];if(o&&"object"==typeof o){if("xstate$$type"in o&&1===o.xstate$$type){t[r]=n[o.id];continue}e(o,n)}}}}(a.context,n),a}}function RN(e,t,n,r,{event:o}){return[t,{event:"function"==typeof o?o(n,r):o},void 0]}function PN(e,{event:t}){e.defer(()=>e.emit(t))}function LN(e){function t(e,t){}return t.type="xstate.emit",t.event=e,t.resolve=RN,t.execute=PN,t}let MN=function(e){return e.Parent="#_parent",e.Internal="#_internal",e}({});function FN(e,t,n,r,{to:o,event:i,id:a,delay:s},l){const c=t.machine.implementations.delays;if("string"==typeof i)throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${i}" }) instead`);const u="function"==typeof i?i(n,r):i;let d;if("string"==typeof s){const e=c&&c[s];d="function"==typeof e?e(n,r):e}else d="function"==typeof s?s(n,r):s;const p="function"==typeof o?o(n,r):o;let f;if("string"==typeof p){if(f=p===MN.Parent?e.self._parent:p===MN.Internal?e.self:p.startsWith("#_")?t.children[p.slice(2)]:l.deferredActorIds?.includes(p)?p:t.children[p],!f)throw new Error(`Unable to send event to actor '${p}' from machine '${t.machine.id}'.`)}else f=p||e.self;return[t,{to:f,targetId:"string"==typeof p?p:void 0,event:u,id:a,delay:d},void 0]}function jN(e,t,n){"string"==typeof n.to&&(n.to=t.children[n.to])}function BN(e,t){e.defer(()=>{const{to:n,event:r,delay:o,id:i}=t;"number"!=typeof o?e.system._relay(e.self,n,"xstate.error"===r.type?qS(e.self.id,r.data):r):e.system.scheduler.schedule(e.self,n,r,o,i)})}function UN(e,t,n){function r(e,t){}return r.type="xstate.sendTo",r.to=e,r.event=t,r.id=n?.id,r.delay=n?.delay,r.resolve=FN,r.retryResolve=jN,r.execute=BN,r}function zN(e,t,n,r,{collect:o}){const i=[],a=function(e){i.push(e)};return a.assign=(...e)=>{i.push(AN(...e))},a.cancel=(...e)=>{i.push(bA(...e))},a.raise=(...e)=>{i.push(TN(...e))},a.sendTo=(...e)=>{i.push(UN(...e))},a.sendParent=(...e)=>{i.push(function(e,t){return UN(MN.Parent,e,t)}(...e))},a.spawnChild=(...e)=>{i.push(wA(...e))},a.stopChild=(...e)=>{i.push(SA(...e))},a.emit=(...e)=>{i.push(LN(...e))},o({context:n.context,event:n.event,enqueue:a,check:e=>NA(e,t.context,n.event,t),self:e.self,system:e.system},r),[t,void 0,i]}function VN(e){function t(e,t){}return t.type="xstate.enqueueActions",t.collect=e,t.resolve=zN,t}function HN(e,t,n,r,{value:o,label:i}){return[t,{value:"function"==typeof o?o(n,r):o,label:i},void 0]}function $N({logger:e},{value:t,label:n}){n?e(n,t):e(t)}function GN(e=({context:e,event:t})=>({context:e,event:t}),t){function n(e,t){}return n.type="xstate.log",n.value=e,n.label=t,n.resolve=HN,n.execute=$N,n}function WN({schemas:e,actors:t,actions:n,guards:r,delays:o}){return{assign:AN,sendTo:UN,raise:TN,log:GN,cancel:bA,stopChild:SA,enqueueActions:VN,emit:LN,spawnChild:wA,createStateConfig:e=>e,createAction:e=>e,createMachine:i=>function(e,t){return new DN(e,t)}({...i,schemas:e},{actors:t,actions:n,guards:r,delays:o}),extend:i=>WN({schemas:e,actors:t,actions:{...n,...i.actions},guards:{...r,...i.guards},delays:{...o,...i.delays}})}}var qN;function YN(){return YN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YN.apply(null,arguments)}const QN=function(e){return u().createElement("svg",YN({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),qN||(qN=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M15.031.968 5.6 14.443a1.376 1.376 0 0 1-2.23.036l-2.4-3.198"})))};var KN;function XN(){return XN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XN.apply(null,arguments)}const JN=function(e){return u().createElement("svg",XN({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),KN||(KN=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m5.188 10.812 5.625-5.625m0 5.625L5.187 5.187M.97 7.999A7.031 7.031 0 1 0 15.03 8 7.031 7.031 0 0 0 .97 8"})))},ZN=(0,u().createContext)({});function e_(e){const t=(0,u().useRef)(null);return null===t.current&&(t.current=e()),t.current}const t_="undefined"!=typeof window,n_=t_?u().useLayoutEffect:u().useEffect,r_=(0,u().createContext)(null);function o_(e){return"object"==typeof e&&null!==e}function i_(e){return o_(e)&&"offsetHeight"in e}const a_=(0,u().createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function s_(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l_(...e){return u().useCallback(function(...e){return t=>{let n=!1;const r=e.map(e=>{const r=s_(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():s_(e[t],null)}}}}(...e),e)}class c_ extends u().Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=i_(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function u_({children:e,isPresent:t,anchorX:n,root:r}){const o=(0,u().useId)(),i=(0,u().useRef)(null),a=(0,u().useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,u().useContext)(a_),l=l_(i,e?.ref);return(0,u().useInsertionEffect)(()=>{const{width:e,height:l,top:c,left:u,right:d}=a.current;if(t||!i.current||!e||!l)return;const p="left"===n?`left: ${u}`:`right: ${d}`;i.current.dataset.motionPopId=o;const f=document.createElement("style");s&&(f.nonce=s);const h=r??document.head;return h.appendChild(f),f.sheet&&f.sheet.insertRule(`\n          [data-motion-pop-id="${o}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${l}px !important;\n            ${p}px !important;\n            top: ${c}px !important;\n          }\n        `),()=>{h.contains(f)&&h.removeChild(f)}},[t]),(0,c().jsx)(c_,{isPresent:t,childRef:i,sizeRef:a,children:u().cloneElement(e,{ref:l})})}const d_=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a,anchorX:s,root:l})=>{const d=e_(p_),p=(0,u().useId)();let f=!0,h=(0,u().useMemo)(()=>(f=!1,{id:p,initial:t,isPresent:n,custom:o,onExitComplete:e=>{d.set(e,!0);for(const e of d.values())if(!e)return;r&&r()},register:e=>(d.set(e,!1),()=>d.delete(e))}),[n,d,r]);return i&&f&&(h={...h}),(0,u().useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),u().useEffect(()=>{!n&&!d.size&&r&&r()},[n]),"popLayout"===a&&(e=(0,c().jsx)(u_,{isPresent:n,anchorX:s,root:l,children:e})),(0,c().jsx)(r_.Provider,{value:h,children:e})};function p_(){return new Map}function f_(e=!0){const t=(0,u().useContext)(r_);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=(0,u().useId)();(0,u().useEffect)(()=>{if(e)return o(i)},[e]);const a=(0,u().useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const h_=e=>e.key||"";function m_(e){const t=[];return u().Children.forEach(e,e=>{(0,u().isValidElement)(e)&&t.push(e)}),t}const g_=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1,anchorX:s="left",root:l})=>{const[d,p]=f_(a),f=(0,u().useMemo)(()=>m_(e),[e]),h=a&&!d?[]:f.map(h_),m=(0,u().useRef)(!0),g=(0,u().useRef)(f),y=e_(()=>new Map),[v,b]=(0,u().useState)(f),[E,x]=(0,u().useState)(f);n_(()=>{m.current=!1,g.current=f;for(let e=0;e<E.length;e++){const t=h_(E[e]);h.includes(t)?y.delete(t):!0!==y.get(t)&&y.set(t,!1)}},[E,h.length,h.join("-")]);const w=[];if(f!==v){let e=[...f];for(let t=0;t<E.length;t++){const n=E[t],r=h_(n);h.includes(r)||(e.splice(t,0,n),w.push(n))}return"wait"===i&&w.length&&(e=w),x(m_(e)),b(f),null}const{forceRender:T}=(0,u().useContext)(ZN);return(0,c().jsx)(c().Fragment,{children:E.map(e=>{const u=h_(e),v=!(a&&!d)&&(f===E||h.includes(u));return(0,c().jsx)(d_,{isPresent:v,initial:!(m.current&&!n)&&void 0,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:v?void 0:()=>{if(!y.has(u))return;y.set(u,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(T?.(),x(g.current),a&&p?.(),r&&r())},anchorX:s,children:e},u)})})},y_=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],v_=(()=>new Set(y_))(),b_=e=>180*e/Math.PI,E_=e=>{const t=b_(Math.atan2(e[1],e[0]));return w_(t)},x_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:E_,rotateZ:E_,skewX:e=>b_(Math.atan(e[1])),skewY:e=>b_(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},w_=e=>((e%=360)<0&&(e+=360),e),T_=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),k_=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),S_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:T_,scaleY:k_,scale:e=>(T_(e)+k_(e))/2,rotateX:e=>w_(b_(Math.atan2(e[6],e[5]))),rotateY:e=>w_(b_(Math.atan2(-e[2],e[0]))),rotateZ:E_,rotate:E_,skewX:e=>b_(Math.atan(e[4])),skewY:e=>b_(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function A_(e){return e.includes("scale")?1:0}function N_(e,t){if(!e||"none"===e)return A_(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=S_,o=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=x_,o=t}if(!o)return A_(t);const i=r[t],a=o[1].split(",").map(__);return"function"==typeof i?i(a):a[i]}function __(e){return parseFloat(e.trim())}const C_=e=>t=>"string"==typeof t&&t.startsWith(e),I_=C_("--"),O_=C_("var(--"),D_=e=>!!O_(e)&&R_.test(e.split("/*")[0].trim()),R_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function P_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}const L_=(e,t,n)=>e+(t-e)*n;function M_(e){return void 0===e||1===e}function F_({scale:e,scaleX:t,scaleY:n}){return!M_(e)||!M_(t)||!M_(n)}function j_(e){return F_(e)||B_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function B_(e){return U_(e.x)||U_(e.y)}function U_(e){return e&&"0%"!==e}function z_(e,t,n){return n+t*(e-n)}function V_(e,t,n,r,o){return void 0!==o&&(e=z_(e,o,r)),z_(e,n,r)+t}function H_(e,t=0,n=1,r,o){e.min=V_(e.min,t,n,r,o),e.max=V_(e.max,t,n,r,o)}function $_(e,{x:t,y:n}){H_(e.x,t.translate,t.scale,t.originPoint),H_(e.y,n.translate,n.scale,n.originPoint)}const G_=.999999999999,W_=1.0000000000001;function q_(e,t){e.min=e.min+t,e.max=e.max+t}function Y_(e,t,n,r,o=.5){H_(e,t,n,L_(e.min,e.max,o),r)}function Q_(e,t){Y_(e.x,t.x,t.scaleX,t.scale,t.originX),Y_(e.y,t.y,t.scaleY,t.scale,t.originY)}function K_(e,t){return P_(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const X_=new Set(["width","height","top","left","right","bottom",...y_]),J_=(e,t,n)=>n>t?t:n<e?e:n,Z_={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eC={...Z_,transform:e=>J_(0,1,e)},tC={...Z_,default:1},nC=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),rC=nC("deg"),oC=nC("%"),iC=nC("px"),aC=nC("vh"),sC=nC("vw"),lC=(()=>({...oC,parse:e=>oC.parse(e)/100,transform:e=>oC.transform(100*e)}))(),cC=e=>t=>t.test(e),uC=[Z_,iC,oC,rC,sC,aC,{test:e=>"auto"===e,parse:e=>e}],dC=e=>uC.find(cC(e));const pC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hC(e,t,n=1){const[r,o]=function(e){const t=fC.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return pC(e)?parseFloat(e):e}return D_(o)?hC(o,t,n+1):o}const mC=e=>e===Z_||e===iC,gC=new Set(["x","y","z"]),yC=y_.filter(e=>!gC.has(e));const vC={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>N_(t,"x"),y:(e,{transform:t})=>N_(t,"y")};vC.translateX=vC.x,vC.translateY=vC.y;const bC=e=>e,EC={},xC=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],wC={value:null,addProjectionMetrics:null};function TC(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=xC.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,o=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){a.has(t)&&(u.schedule(t),e()),l++,t(s)}const u={schedule:(e,t=!1,i=!1)=>{const s=i&&o?n:r;return t&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{s=e,o?i=!0:(o=!0,[n,r]=[r,n],n.forEach(c),t&&wC.value&&wC.value.frameloop[t].push(l),l=0,n.clear(),o=!1,i&&(i=!1,u.process(e)))}};return u}(i,t?n:void 0),e),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:p,render:f,postRender:h}=a,m=()=>{const i=EC.useManualTiming?o.timestamp:performance.now();n=!1,EC.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1)),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),p.process(o),f.process(o),h.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:xC.reduce((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(m)),s.schedule(t,i,a)),t},{}),cancel:e=>{for(let t=0;t<xC.length;t++)a[xC[t]].cancel(e)},state:o,steps:a}}const{schedule:kC,cancel:SC,state:AC,steps:NC}=TC("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:bC,!0),_C=new Set;let CC=!1,IC=!1,OC=!1;function DC(){if(IC){const e=Array.from(_C).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return yC.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}IC=!1,CC=!1,_C.forEach(e=>e.complete(OC)),_C.clear()}function RC(){_C.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(IC=!0)})}class PC{constructor(e,t,n,r,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(_C.add(this),CC||(CC=!0,kC.read(RC),kC.resolveKeyframes(DC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const o=r?.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),_C.delete(this)}cancel(){"scheduled"===this.state&&(_C.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const LC=e=>/^0[^.\s]+$/u.test(e);function MC(e){return"number"==typeof e?0===e:null===e||("none"===e||"0"===e||LC(e))}const FC=e=>Math.round(1e5*e)/1e5,jC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const BC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,UC=(e,t)=>n=>Boolean("string"==typeof n&&BC.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),zC=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,a,s]=r.match(jC);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},VC={...Z_,transform:e=>Math.round((e=>J_(0,255,e))(e))},HC={test:UC("rgb","red"),parse:zC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+VC.transform(e)+", "+VC.transform(t)+", "+VC.transform(n)+", "+FC(eC.transform(r))+")"};const $C={test:UC("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:HC.transform},GC={test:UC("hsl","hue"),parse:zC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+oC.transform(FC(t))+", "+oC.transform(FC(n))+", "+FC(eC.transform(r))+")"},WC={test:e=>HC.test(e)||$C.test(e)||GC.test(e),parse:e=>HC.test(e)?HC.parse(e):GC.test(e)?GC.parse(e):$C.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?HC.transform(e):GC.transform(e),getAnimatableNone:e=>{const t=WC.parse(e);return t.alpha=0,WC.transform(t)}},qC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const YC="number",QC="color",KC=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function XC(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(KC,e=>(WC.test(e)?(r.color.push(i),o.push(QC),n.push(WC.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(YC),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:a,indexes:r,types:o}}function JC(e){return XC(e).values}function ZC(e){const{split:t,types:n}=XC(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===YC?FC(e[i]):t===QC?WC.transform(e[i]):e[i]}return o}}const eI=e=>"number"==typeof e?0:WC.test(e)?WC.getAnimatableNone(e):e;const tI={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(jC)?.length||0)+(e.match(qC)?.length||0)>0},parse:JC,createTransformer:ZC,getAnimatableNone:function(e){const t=JC(e);return ZC(e)(t.map(eI))}},nI=new Set(["brightness","contrast","saturate","opacity"]);function rI(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(jC)||[];if(!r)return e;const o=n.replace(r,"");let i=nI.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const oI=/\b([a-z-]*)\(.*?\)/gu,iI={...tI,getAnimatableNone:e=>{const t=e.match(oI);return t?t.map(rI).join(" "):e}},aI={...Z_,transform:Math.round},sI={borderWidth:iC,borderTopWidth:iC,borderRightWidth:iC,borderBottomWidth:iC,borderLeftWidth:iC,borderRadius:iC,radius:iC,borderTopLeftRadius:iC,borderTopRightRadius:iC,borderBottomRightRadius:iC,borderBottomLeftRadius:iC,width:iC,maxWidth:iC,height:iC,maxHeight:iC,top:iC,right:iC,bottom:iC,left:iC,padding:iC,paddingTop:iC,paddingRight:iC,paddingBottom:iC,paddingLeft:iC,margin:iC,marginTop:iC,marginRight:iC,marginBottom:iC,marginLeft:iC,backgroundPositionX:iC,backgroundPositionY:iC,...{rotate:rC,rotateX:rC,rotateY:rC,rotateZ:rC,scale:tC,scaleX:tC,scaleY:tC,scaleZ:tC,skew:rC,skewX:rC,skewY:rC,distance:iC,translateX:iC,translateY:iC,translateZ:iC,x:iC,y:iC,z:iC,perspective:iC,transformPerspective:iC,opacity:eC,originX:lC,originY:lC,originZ:iC},zIndex:aI,fillOpacity:eC,strokeOpacity:eC,numOctaves:aI},lI={...sI,color:WC,backgroundColor:WC,outlineColor:WC,fill:WC,stroke:WC,borderColor:WC,borderTopColor:WC,borderRightColor:WC,borderBottomColor:WC,borderLeftColor:WC,filter:iI,WebkitFilter:iI},cI=e=>lI[e];function uI(e,t){let n=cI(e);return n!==iI&&(n=tI),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const dI=new Set(["auto","none","0"]);class pI extends PC{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),D_(r))){const o=hC(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!X_.has(n)||2!==e.length)return;const[r,o]=e,i=dC(r),a=dC(o);if(i!==a)if(mC(i)&&mC(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else vC[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||MC(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!dI.has(t)&&XC(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=uI(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=vC[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const o=n.length-1,i=n[o];n[o]=vC[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}const fI=e=>Boolean(e&&e.getVelocity);let hI;function mI(){hI=void 0}const gI={now:()=>(void 0===hI&&gI.set(AC.isProcessing||EC.useManualTiming?AC.timestamp:performance.now()),hI),set:e=>{hI=e,queueMicrotask(mI)}};function yI(e,t){-1===e.indexOf(t)&&e.push(t)}function vI(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class bI{constructor(){this.subscriptions=[]}add(e){return yI(this.subscriptions,e),()=>vI(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function EI(e,t){return t?e*(1e3/t):0}const xI={current:void 0};class wI{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=gI.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=gI.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new bI);const n=this.events[e].add(t);return"change"===e?()=>{n(),kC.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return xI.current&&xI.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=gI.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return EI(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function TI(e,t){return new wI(e,t)}const kI=[...uC,WC,tI],{schedule:SI,cancel:AI}=TC(queueMicrotask,!1),NI={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},_I={};for(const e in NI)_I[e]={isEnabled:t=>NI[e].some(e=>!!t[e])};const CI=()=>({x:{min:0,max:0},y:{min:0,max:0}}),II={current:null},OI={current:!1};const DI=new WeakMap;function RI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function PI(e){return"string"==typeof e||Array.isArray(e)}const LI=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],MI=["initial",...LI];function FI(e){return RI(e.animate)||MI.some(t=>PI(e[t]))}function jI(e){return Boolean(FI(e)||e.variants)}function BI(e){const t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function UI(e,t,n,r){if("function"==typeof t){const[o,i]=BI(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=BI(r);t=t(void 0!==n?n:e.custom,o,i)}return t}const zI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class VI{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=PC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=gI.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,kC.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=FI(t),this.isVariantNode=jI(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&fI(t)&&t.set(s[e])}}mount(e){this.current=e,DI.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),OI.current||function(){if(OI.current=!0,t_)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>II.current=e.matches;e.addEventListener("change",t),t()}else II.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||II.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),SC(this.notifyUpdate),SC(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=v_.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&kC.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in _I){const t=_I[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<zI.length;t++){const n=zI[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(fI(o))e.addValue(r,o);else if(fI(i))e.addValue(r,TI(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,TI(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=TI(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var r;return null!=n&&("string"==typeof n&&(pC(n)||LC(n))?n=parseFloat(n):(r=n,!kI.find(cC(r))&&tI.test(t)&&(n=uI(e,t))),this.setBaseTarget(e,fI(n)?n.get():n)),fI(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"==typeof t||"object"==typeof t){const r=UI(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&void 0!==n)return n;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||fI(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new bI),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){SI.render(this.render)}}class HI extends VI{constructor(){super(...arguments),this.KeyframeResolver=pI}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;fI(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}const $I=(e,t)=>t&&"number"==typeof e?t.transform(e):e,GI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WI=y_.length;function qI(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(v_.has(e))a=!0;else if(I_(e))o[e]=n;else{const t=$I(n,sI[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<WI;i++){const a=y_[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=$I(s,sI[a]);l||(o=!1,r+=`${GI[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}function YI(e,{style:t,vars:n},r,o){const i=e.style;let a;for(a in t)i[a]=t[a];for(a in o?.applyProjectionStyles(i,r),n)i.setProperty(a,n[a])}const QI={};function KI(e,{layout:t,layoutId:n}){return v_.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!QI[e]||"opacity"===e)}function XI(e,t,n){const{style:r}=e,o={};for(const i in r)(fI(r[i])||t.style&&fI(t.style[i])||KI(i,e)||void 0!==n?.getValue(i)?.liveStyle)&&(o[i]=r[i]);return o}class JI extends HI{constructor(){super(...arguments),this.type="html",this.renderInstance=YI}readValueFromInstance(e,t){if(v_.has(t))return this.projection?.isProjecting?A_(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return N_(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),o=(I_(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return K_(e,t)}build(e,t,n){qI(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return XI(e,t,n)}}const ZI=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eO={offset:"stroke-dashoffset",array:"stroke-dasharray"},tO={offset:"strokeDashoffset",array:"strokeDasharray"};function nO(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(qI(e,s,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==o&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?eO:tO;e[i.offset]=iC.transform(-r);const a=iC.transform(t),s=iC.transform(n);e[i.array]=`${a} ${s}`}(d,o,i,a,!1)}const rO=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),oO=e=>"string"==typeof e&&"svg"===e.toLowerCase();function iO(e,t,n){const r=XI(e,t,n);for(const n in e)if(fI(e[n])||fI(t[n])){r[-1!==y_.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}class aO extends HI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=CI}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(v_.has(t)){const e=cI(t);return e&&e.default||0}return t=rO.has(t)?t:ZI(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return iO(e,t,n)}build(e,t,n){nO(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){YI(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(rO.has(n)?n:ZI(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=oO(e.tagName),super.mount(e)}}const sO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function lO(e){return"string"==typeof e&&!e.includes("-")&&!!(sO.indexOf(e)>-1||/[A-Z]/u.test(e))}const cO=(e,t)=>lO(e)?new aO(t):new JI(t,{allowProjection:e!==u().Fragment}),uO=(0,u().createContext)({strict:!1}),dO=(0,u().createContext)({});function pO(e){const{initial:t,animate:n}=function(e,t){if(FI(e)){const{initial:t,animate:n}=e;return{initial:!1===t||PI(t)?t:void 0,animate:PI(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,u().useContext)(dO));return(0,u().useMemo)(()=>({initial:t,animate:n}),[fO(t),fO(n)])}function fO(e){return Array.isArray(e)?e.join(" "):e}const hO=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mO(e,t,n){for(const r in t)fI(t[r])||KI(r,n)||(e[r]=t[r])}function gO(e,t){const n={};return mO(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,u().useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return qI(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}function yO(e,t){const n={},r=gO(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const vO=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}});function bO(e,t,n,r){const o=(0,u().useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return nO(n,t,oO(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};mO(t,e.style,e),o.style={...t,...o.style}}return o}const EO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xO(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||EO.has(e)}let wO=e=>!xO(e);try{"function"==typeof(TO=require("@emotion/is-prop-valid").default)&&(wO=e=>e.startsWith("on")?!xO(e):TO(e))}catch{}var TO;function kO(e,t,n,{latestValues:r},o,i=!1){const a=(lO(e)?bO:yO)(t,r,o,e),s=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(wO(o)||!0===n&&xO(o)||!t&&!xO(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(t,"string"==typeof e,i),l=e!==u().Fragment?{...s,...a,ref:n}:{},{children:c}=t,d=(0,u().useMemo)(()=>fI(c)?c.get():c,[c]);return(0,u().createElement)(e,{...l,children:d})}function SO(e){return fI(e)?e.get():e}function AO(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=SO(i[e]);let{initial:a,animate:s}=e;const l=FI(e),c=jI(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!RI(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=UI(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const NO=e=>(t,n)=>{const r=(0,u().useContext)(dO),o=(0,u().useContext)(r_),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:AO(n,r,o,e),renderState:t()}}(e,t,r,o);return n?i():e_(i)},_O=NO({scrapeMotionValuesFromProps:XI,createRenderState:hO}),CO=NO({scrapeMotionValuesFromProps:iO,createRenderState:vO});const IO=Symbol.for("motionComponentSymbol");function OO(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function DO(e,t,n){return(0,u().useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):OO(n)&&(n.current=r))},[t])}const RO="data-"+ZI("framerAppearId"),PO=(0,u().createContext)({});function LO(e,t,n,r,o){const{visualElement:i}=(0,u().useContext)(dO),a=(0,u().useContext)(uO),s=(0,u().useContext)(r_),l=(0,u().useContext)(a_).reducedMotion,c=(0,u().useRef)(null);r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const d=c.current,p=(0,u().useContext)(PO);!d||d.projection||!o||"html"!==d.type&&"svg"!==d.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:MO(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&OO(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}(c.current,n,o,p);const f=(0,u().useRef)(!1);(0,u().useInsertionEffect)(()=>{d&&f.current&&d.update(n,s)});const h=n[RO],m=(0,u().useRef)(Boolean(h)&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return n_(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,u().useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),m.current=!1),d.enteringChildren=void 0)}),d}function MO(e){if(e)return!1!==e.options.allowProjection?e.projection:MO(e.parent)}function FO(e,{forwardMotionProps:t=!1}={},n,r){n&&function(e){for(const t in e)_I[t]={..._I[t],...e[t]}}(n);const o=lO(e)?CO:_O;function i(n,i){let a;const s={...(0,u().useContext)(a_),...n,layoutId:jO(n)},{isStatic:l}=s,d=pO(n),p=o(n,l);if(!l&&t_){!function(){(0,u().useContext)(uO).strict;0}();const t=function(e){const{drag:t,layout:n}=_I;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(s);a=t.MeasureLayout,d.visualElement=LO(e,p,s,r,t.ProjectionNode)}return(0,c().jsxs)(dO.Provider,{value:d,children:[a&&d.visualElement?(0,c().jsx)(a,{visualElement:d.visualElement,...s}):null,kO(e,n,DO(p,d.visualElement,i),p,l,t)]})}i.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const a=(0,u().forwardRef)(i);return a[IO]=e,a}function jO({layoutId:e}){const t=(0,u().useContext)(ZN).id;return t&&void 0!==e?t+"-"+e:e}function BO(e,t){if("undefined"==typeof Proxy)return FO;const n=new Map,r=(n,r)=>FO(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(o,i)=>"create"===i?r:(n.has(i)||n.set(i,FO(i,void 0,e,t)),n.get(i))})}function UO(e,t,n){const r=e.getProps();return UI(r,t,void 0!==n?n:r.custom,e)}function zO(e,t){return e?.[t]??e?.default??e}const VO=e=>Array.isArray(e);function HO(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,TI(n))}function $O(e){return VO(e)?e[e.length-1]||0:e}function GO(e,t){const n=e.getValue("willChange");if(r=n,Boolean(fI(r)&&r.add))return n.add(t);if(!n&&EC.WillChange){const n=new EC.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function WO(e){return e.props[RO]}function qO(e){e.duration=0,e.type="keyframes"}const YO=(e,t)=>n=>t(e(n)),QO=(...e)=>e.reduce(YO),KO=e=>1e3*e,XO=e=>e/1e3,JO={layout:0,mainThread:0,waapi:0};function ZO(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eD(e,t){return n=>n>0?t:e}const tD=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},nD=[$C,HC,GC];function rD(e){const t=(n=e,nD.find(e=>e.test(n)));var n;if(Boolean(t),!Boolean(t))return!1;let r=t.parse(e);return t===GC&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=ZO(s,r,e+1/3),i=ZO(s,r,e),a=ZO(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const oD=(e,t)=>{const n=rD(e),r=rD(t);if(!n||!r)return eD(e,t);const o={...n};return e=>(o.red=tD(n.red,r.red,e),o.green=tD(n.green,r.green,e),o.blue=tD(n.blue,r.blue,e),o.alpha=L_(n.alpha,r.alpha,e),HC.transform(o))},iD=new Set(["none","hidden"]);function aD(e,t){return n=>L_(e,t,n)}function sD(e){return"number"==typeof e?aD:"string"==typeof e?D_(e)?eD:WC.test(e)?oD:uD:Array.isArray(e)?lD:"object"==typeof e?WC.test(e)?oD:cD:eD}function lD(e,t){const n=[...e],r=n.length,o=e.map((e,n)=>sD(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function cD(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=sD(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const uD=(e,t)=>{const n=tI.createTransformer(t),r=XC(e),o=XC(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?iD.has(e)&&!o.values.length||iD.has(t)&&!r.values.length?function(e,t){return iD.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):QO(lD(function(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][r[i]],s=e.values[a]??0;n[o]=s,r[i]++}return n}(r,o),o.values),n):eD(e,t)};function dD(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return L_(e,t,n);return sD(e)(e,t)}const pD=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>kC.update(t,e),stop:()=>SC(t),now:()=>AC.isProcessing?AC.timestamp:gI.now()}},fD=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=Math.round(1e4*e(t/(o-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function hD(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function mD(e,t,n){const r=Math.max(t-5,0);return EI(n-e(r),t-r)}const gD=100,yD=10,vD=1,bD=0,ED=800,xD=.3,wD=.3,TD={granular:.01,default:2},kD={granular:.005,default:.5},SD=.01,AD=10,ND=.05,_D=1,CD=.001;function ID({duration:e=ED,bounce:t=xD,velocity:n=bD,mass:r=vD}){let o,i;KO(AD);let a=1-t;a=J_(ND,_D,a),e=J_(SD,AD,XO(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=DD(t,a),l=Math.exp(-o);return CD-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=DD(Math.pow(t,2),a);return(-o(t)+CD>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<OD;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=KO(e),isNaN(s))return{stiffness:gD,damping:yD,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const OD=12;function DD(e,t){return e*Math.sqrt(1-t*t)}const RD=["duration","bounce"],PD=["stiffness","damping","mass"];function LD(e,t){return t.some(t=>void 0!==e[t])}function MD(e=wD,t=xD){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:bD,stiffness:gD,damping:yD,mass:vD,isResolvedFromDuration:!1,...e};if(!LD(e,PD)&&LD(e,RD))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*J_(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:vD,stiffness:o,damping:i}}else{const n=ID(e);t={...t,...n,mass:vD},t.isResolvedFromDuration=!0}return t}({...n,velocity:-XO(n.velocity||0)}),h=p||0,m=c/(2*Math.sqrt(l*u)),g=a-i,y=XO(Math.sqrt(l/u)),v=Math.abs(g)<5;let b;if(r||(r=v?TD.granular:TD.default),o||(o=v?kD.granular:kD.default),m<1){const e=DD(y,m);b=t=>{const n=Math.exp(-m*y*t);return a-n*((h+m*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)b=e=>a-Math.exp(-y*e)*(g+(h+y*g)*e);else{const e=y*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*y*t),r=Math.min(e*t,300);return a-n*((h+m*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const E={calculatedDuration:f&&d||null,next:e=>{const t=b(e);if(f)s.done=e>=d;else{let n=0===e?h:0;m<1&&(n=0===e?KO(h):mD(b,e,t));const i=Math.abs(n)<=r,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(hD(E),2e4),t=fD(t=>E.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return E}function FD({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const y=e=>-h*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let E,x;const w=e=>{var t;(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(E=e,x=MD({keyframes:[p.value,f(p.value)],velocity:mD(v,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==E||(t=!0,b(e),w(e)),void 0!==E&&e>=E?x.next(e-E):(!t&&b(e),p)}}}MD.applyToOptions=e=>{const t=function(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(hD(r),2e4);return{type:"keyframes",ease:e=>r.next(o*e).value/t,duration:XO(o)}}(e,100,MD);return e.ease=t.ease,e.duration=KO(t.duration),e.type="keyframes",e};const jD=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function BD(e,t,n,r){if(e===t&&n===r)return bC;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=jD(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:jD(o(e),t,r)}const UD=BD(.42,0,1,1),zD=BD(0,0,.58,1),VD=BD(.42,0,.58,1),HD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$D=e=>t=>1-e(1-t),GD=BD(.33,1.53,.69,.99),WD=$D(GD),qD=HD(WD),YD=e=>(e*=2)<1?.5*WD(e):.5*(2-Math.pow(2,-10*(e-1))),QD=e=>1-Math.sin(Math.acos(e)),KD=$D(QD),XD=HD(QD),JD=e=>Array.isArray(e)&&"number"==typeof e[0],ZD={linear:bC,easeIn:UD,easeInOut:VD,easeOut:zD,circIn:QD,circInOut:XD,circOut:KD,backIn:WD,backInOut:qD,backOut:GD,anticipate:YD},eR=e=>{if(JD(e)){e.length;const[t,n,r,o]=e;return BD(t,n,r,o)}return"string"==typeof e?ZD[e]:e},tR=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};function nR(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(t.length,1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||EC.mix||dD,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||bC:t;i=QO(e,i)}r.push(i)}return r}(t,r,o),l=s.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=tR(e[r],e[r+1],n);return s[r](o)};return n?t=>c(J_(e[0],e[i-1],t)):c}function rR(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=tR(0,t,r);e.push(L_(n,1,o))}}(t,e.length-1),t}function oR({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(eR):eR(r),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:rR(t),e),s=nR(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||VD).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const iR=e=>null!==e;function aR(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(iR),a=o<0||t&&"loop"!==n&&t%2==1?0:i.length-1;return a&&void 0!==r?r:i[a]}const sR={decay:FD,inertia:FD,tween:oR,keyframes:oR,spring:MD};function lR(e){"string"==typeof e.type&&(e.type=sR[e.type])}class cR{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const uR=e=>e/100;class dR extends cR{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==gI.now()&&this.tick(gI.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},JO.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;lR(e);const{type:t=oR,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=e;let{keyframes:a}=e;const s=t||oR;s!==oR&&"number"!=typeof a[0]&&(this.mixKeyframes=QO(uR,dD(a[0],a[1])),a=[0,100]);const l=s({...e,keyframes:a});"mirror"===o&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-i})),null===l.calculatedDuration&&(l.calculatedDuration=hD(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:p,type:f,onUpdate:h,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,b=n;if(u){const e=Math.min(this.currentTime,r)/a;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,u+1);Boolean(t%2)&&("reverse"===d?(n=1-n,p&&(n-=p/a)):"mirror"===d&&(b=i)),v=J_(0,1,n)*a}const E=y?{done:!1,value:c[0]}:b.next(v);o&&(E.value=o(E.value));let{done:x}=E;y||null===s||(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return w&&f!==FD&&(E.value=aR(c,this.options,m,this.speed)),h&&h(E.value),w&&this.finish(),E}then(e,t){return this.finished.then(e,t)}get duration(){return XO(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+XO(e)}get time(){return XO(this.currentTime)}set time(e){e=KO(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(gI.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=XO(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=pD,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(gI.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,JO.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function pR(e){let t;return()=>(void 0===t&&(t=e()),t)}const fR=pR(()=>void 0!==window.ScrollTimeline),hR={};function mR(e,t){const n=pR(e);return()=>hR[t]??n()}const gR=mR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),yR=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,vR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yR([0,.65,.55,1]),circOut:yR([.55,0,1,.45]),backIn:yR([.31,.01,.66,-.59]),backOut:yR([.33,1.53,.69,.99])};function bR(e,t){return e?"function"==typeof e?gR()?fD(e,t):"ease-out":JD(e)?yR(e):Array.isArray(e)?e.map(e=>bR(e,t)||vR.easeOut):vR[e]:void 0}function ER(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=bR(s,o);Array.isArray(d)&&(u.easing=d),wC.value&&JO.waapi++;const p={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"};c&&(p.pseudoElement=c);const f=e.animate(u,p);return wC.value&&f.finished.finally(()=>{JO.waapi--}),f}function xR(e){return"function"==typeof e&&"applyToOptions"in e}class wR extends cR{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=Boolean(o),this.allowFlatten=i,this.options=e,e.type;const l=function({type:e,...t}){return xR(e)&&gR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=ER(t,n,r,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=aR(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return XO(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+XO(e)}get time(){return XO(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=KO(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&fR()?(this.animation.timeline=e,bC):t(this)}}const TR={anticipate:YD,backInOut:qD,circInOut:XD};function kR(e){"string"==typeof e.ease&&e.ease in TR&&(e.ease=TR[e.ease])}class SR extends wR{constructor(e){kR(e),lR(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:o,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const a=new dR({...i,autoplay:!1}),s=KO(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}const AR=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!tI.test(e)&&"0"!==e||e.startsWith("url(")));const NR=new Set(["opacity","clipPath","filter","transform"]),_R=pR(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class CR extends cR{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",keyframes:a,name:s,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gI.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,name:s,motionValue:l,element:c,...u},p=c?.KeyframeResolver||PC;this.keyframeResolver=new p(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:o,type:i,velocity:a,delay:s,isHandoff:l,onUpdate:c}=n;this.resolvedAt=gI.now(),function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=AR(o,t),s=AR(i,t);return!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||xR(n))&&r)}(e,o,i,a)||(!EC.instantAnimations&&s||c?.(aR(e,n,t)),e[0]=e[e.length-1],qO(n),n.repeat=0);const u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e,s=t?.owner?.current;if(!(s instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return _R()&&n&&NR.has(n)&&("transform"!==n||!c)&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}(u)?new SR({...u,element:u.motionValue.owner.current}):new dR(u);d.finished.then(()=>this.notifyFinished()).catch(bC),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),OC=!0,RC(),DC(),OC=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const IR=e=>null!==e;const OR={type:"spring",stiffness:500,damping:25,restSpeed:10},DR={type:"keyframes",duration:.8},RR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PR=(e,{keyframes:t})=>t.length>2?DR:v_.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:OR:RR;const LR=(e,t,n,r={},o,i)=>a=>{const s=zO(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=KO(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||Object.assign(u,PR(e,u)),u.duration&&(u.duration=KO(u.duration)),u.repeatDelay&&(u.repeatDelay=KO(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(qO(u),0===u.delay&&(d=!0)),(EC.instantAnimations||EC.skipAnimations)&&(d=!0,qO(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!i&&void 0!==t.get()){const e=function(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(IR),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}(u.keyframes,s);if(void 0!==e)return void kC.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new dR(u):new CR(u)};function MR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function FR(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=t;r&&(i=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t,e.latestValues[t]??null),o=s[t];if(void 0===o||c&&MR(c,t))continue;const a={delay:n,...zO(i||{},t)},u=r.get();if(void 0!==u&&!r.isAnimating&&!Array.isArray(o)&&o===u&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){const n=WO(e);if(n){const e=window.MotionHandoffAnimation(n,t,kC);null!==e&&(a.startTime=e,d=!0)}}GO(e,t),r.start(LR(t,r,o,e.shouldReduceMotion&&X_.has(t)?{type:!1}:a,e,d));const p=r.animation;p&&l.push(p)}return a&&Promise.all(l).then(()=>{kC.update(()=>{a&&function(e,t){const n=UO(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)HO(e,t,$O(i[t]))}(e,a)})}),l}function jR(e,t,n,r=0,o=1){const i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*r;return"function"==typeof n?n(i,a):1===o?i*r:s-i*r}function BR(e,t,n={}){const r=UO(e,t,"exit"===n.type?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(FR(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=0,i=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(BR(l,t,{...a,delay:n+("function"==typeof r?0:r)+jR(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,i,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then(()=>t())}return Promise.all([i(),a(n.delay)])}function UR(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const zR=MI.length;function VR(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&VR(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<zR;n++){const r=MI[n],o=e.props[r];(PI(o)||!1===o)&&(t[r]=o)}return t}const HR=[...LI].reverse(),$R=LI.length;function GR(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>BR(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=BR(e,t,n);else{const o="function"==typeof t?UO(e,t,n.custom):t;r=Promise.all(FR(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}function WR(e){let t=GR(e),n=QR(),r=!0;const o=t=>(n,r)=>{const o=UO(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function i(i){const{props:a}=e,s=VR(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<$R;t++){const p=HR[t],f=n[p],h=void 0!==a[p]?a[p]:s[p],m=PI(h),g=p===i?f.isActive:null;!1===g&&(d=t);let y=h===s[p]&&h!==a[p]&&m;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...u},!f.isActive&&null===g||!h&&!f.prevProp||RI(h)||"boolean"==typeof h)continue;const v=qR(f.prevProp,h);let b=v||p===i&&f.isActive&&!y&&m||t>d&&m,E=!1;const x=Array.isArray(h)?h:[h];let w=x.reduce(o(p),{});!1===g&&(w={});const{prevResolvedValues:T={}}=f,k={...T,...w},S=t=>{b=!0,c.has(t)&&(E=!0,c.delete(t)),f.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in k){const t=w[e],n=T[e];if(u.hasOwnProperty(e))continue;let r=!1;r=VO(t)&&VO(n)?!UR(t,n):t!==n,r?null!=t?S(e):c.add(e):void 0!==t&&c.has(e)?S(e):f.protectedKeys[e]=!0}f.prevProp=h,f.prevResolvedValues=w,f.isActive&&(u={...u,...w}),r&&e.blockInitialAnimation&&(b=!1);const A=y&&v;b&&(!A||E)&&l.push(...x.map(t=>{const n={type:p};if("string"==typeof t&&r&&!A&&e.manuallyAnimateOnMount&&e.parent){const{parent:r}=e,o=UO(r,t);if(r.enteringChildren&&o){const{delayChildren:t}=o.transition||{};n.delay=jR(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){const t={};if("boolean"!=typeof a.initial){const n=UO(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;const o=i(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=QR()}}}function qR(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!UR(t,e)}function YR(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function QR(){return{animate:YR(!0),whileInView:YR(),whileHover:YR(),whileTap:YR(),whileDrag:YR(),whileFocus:YR(),exit:YR()}}class KR{constructor(e){this.isMounted=!1,this.node=e}update(){}}let XR=0;const JR={animation:{Feature:class extends KR{constructor(e){super(e),e.animationState||(e.animationState=WR(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();RI(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends KR{constructor(){super(...arguments),this.id=XR++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}},ZR={x:!1,y:!1};function eP(){return ZR.x||ZR.y}function tP(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const nP=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rP(e){return{point:{x:e.pageX,y:e.pageY}}}function oP(e,t,n,r){return tP(e,t,(e=>t=>nP(t)&&e(t,rP(t)))(n),r)}function iP(e){return e.max-e.min}function aP(e,t,n,r=.5){e.origin=r,e.originPoint=L_(t.min,t.max,e.origin),e.scale=iP(n)/iP(t),e.translate=L_(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function sP(e,t,n,r){aP(e.x,t.x,n.x,r?r.originX:void 0),aP(e.y,t.y,n.y,r?r.originY:void 0)}function lP(e,t,n){e.min=n.min+t.min,e.max=e.min+iP(t)}function cP(e,t,n){e.min=t.min-n.min,e.max=e.min+iP(t)}function uP(e,t,n){cP(e.x,t.x,n.x),cP(e.y,t.y,n.y)}function dP(e){return[e("x"),e("y")]}const pP=({current:e})=>e?e.ownerDocument.defaultView:null,fP=(e,t)=>Math.abs(e-t);class hP{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=yP(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=fP(e.x,t.x),r=fP(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=AC;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=mP(t,this.transformPagePoint),kC.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=yP("pointercancel"===e.type?this.lastMoveEventInfo:mP(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!nP(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const a=mP(rP(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=AC;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,yP(a,this.history)),this.removeListeners=QO(oP(this.contextWindow,"pointermove",this.handlePointerMove),oP(this.contextWindow,"pointerup",this.handlePointerUp),oP(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),SC(this.updatePoint)}}function mP(e,t){return t?{point:t(e.point)}:e}function gP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yP({point:e},t){return{point:e,delta:gP(e,bP(t)),offset:gP(e,vP(t)),velocity:EP(t,.1)}}function vP(e){return e[0]}function bP(e){return e[e.length-1]}function EP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=bP(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>KO(t)));)n--;if(!r)return{x:0,y:0};const i=XO(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function xP(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function wP(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function TP(e,t,n){return{min:kP(e,t),max:kP(e,n)}}function kP(e,t){return"number"==typeof e?e:e[t]||0}const SP=new WeakMap;class AP{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new hP(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rP(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?ZR[i]?null:(ZR[i]=!0,()=>{ZR[i]=!1}):ZR.x||ZR.y?null:(ZR.x=ZR.y=!0,()=>{ZR.x=ZR.y=!1}),!this.openDragLock))return;var i;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dP(e=>{let t=this.getAxisMotionValue(e).get()||0;if(oC.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=iP(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&kC.postRender(()=>o(e,t)),GO(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>dP(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:pP(this.visualElement)})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&kC.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!NP(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?L_(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?L_(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&OO(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:xP(e.x,n,o),y:xP(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:TP(e,"left","right"),y:TP(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&dP(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!OO(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=K_(e,n),{scroll:o}=t;return o&&(q_(r.x,o.offset.x),q_(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:wP(e.x,t.x),y:wP(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=P_(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=dP(a=>{if(!NP(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return GO(this.visualElement,e),n.start(LR(e,n,0,t,this.visualElement,!1))}stopAnimation(){dP(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){dP(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){dP(t=>{const{drag:n}=this.getProps();if(!NP(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-L_(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!OO(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};dP(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=iP(e),o=iP(t);return o>r?n=tR(t.min,t.max-r,e.min):r>o&&(n=tR(e.min,e.max-o,t.min)),J_(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),dP(t=>{if(!NP(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(L_(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;SP.set(this.visualElement,this);const e=oP(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();OO(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),kC.read(t);const o=tP(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(dP(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function NP(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const _P=e=>(t,n)=>{e&&kC.postRender(()=>e(t,n))};const CP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function IP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const OP={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!iC.test(e))return e;e=parseFloat(e)}return`${IP(e,t.target.x)}% ${IP(e,t.target.y)}%`}},DP={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=tI.parse(e);if(o.length>5)return r;const i=tI.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=L_(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};let RP=!1;class PP extends u().Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;!function(e){for(const t in e)QI[t]=e[t],I_(t)&&(QI[t].isCSSVariable=!0)}(MP),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),RP&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),CP.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,{projection:i}=n;return i?(i.isPresent=o,RP=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==o?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||kC.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),SI.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;RP=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function LP(e){const[t,n]=f_(),r=(0,u().useContext)(ZN);return(0,c().jsx)(PP,{...e,layoutGroup:r,switchLayoutGroup:(0,u().useContext)(PO),isPresent:t,safeToRemove:n})}const MP={borderRadius:{...OP,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:OP,borderTopRightRadius:OP,borderBottomLeftRadius:OP,borderBottomRightRadius:OP,boxShadow:DP};function FP(e){return o_(e)&&"ownerSVGElement"in e}const jP=(e,t)=>e.depth-t.depth;class BP{constructor(){this.children=[],this.isDirty=!1}add(e){yI(this.children,e),this.isDirty=!0}remove(e){vI(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(jP),this.isDirty=!1,this.children.forEach(e)}}function UP(e,t){const n=gI.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(SC(r),e(i-t))};return kC.setup(r,!0),()=>SC(r)}const zP=["TopLeft","TopRight","BottomLeft","BottomRight"],VP=zP.length,HP=e=>"string"==typeof e?parseFloat(e):e,$P=e=>"number"==typeof e||iC.test(e);function GP(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const WP=YP(0,.5,KD),qP=YP(.5,.95,bC);function YP(e,t,n){return r=>r<e?0:r>t?1:n(tR(e,t,r))}function QP(e,t){e.min=t.min,e.max=t.max}function KP(e,t){QP(e.x,t.x),QP(e.y,t.y)}function XP(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function JP(e,t,n,r,o){return e=z_(e-=t,1/n,r),void 0!==o&&(e=z_(e,1/o,r)),e}function ZP(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){oC.test(t)&&(t=parseFloat(t),t=L_(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=L_(i.min,i.max,r);e===i&&(s-=t),e.min=JP(e.min,t,n,s,o),e.max=JP(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const eL=["x","scaleX","originX"],tL=["y","scaleY","originY"];function nL(e,t,n,r){ZP(e.x,t,eL,n?n.x:void 0,r?r.x:void 0),ZP(e.y,t,tL,n?n.y:void 0,r?r.y:void 0)}function rL(e){return 0===e.translate&&1===e.scale}function oL(e){return rL(e.x)&&rL(e.y)}function iL(e,t){return e.min===t.min&&e.max===t.max}function aL(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sL(e,t){return aL(e.x,t.x)&&aL(e.y,t.y)}function lL(e){return iP(e.x)/iP(e.y)}function cL(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class uL{constructor(){this.members=[]}add(e){yI(this.members,e),e.scheduleRender()}remove(e){if(vI(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const dL={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},pL=["","X","Y","Z"];let fL=0;function hL(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=WO(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",kC,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&mL(r)}function gL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=t?.()){this.id=fL++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,wC.value&&(dL.nodes=dL.calculatedTargetDeltas=dL.calculatedProjections=0),this.nodes.forEach(bL),this.nodes.forEach(AL),this.nodes.forEach(NL),this.nodes.forEach(EL),wC.addProjectionMetrics&&wC.addProjectionMetrics(dL)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new BP)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new bI),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=FP(t)&&!(FP(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:r,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||r)&&(this.isLayoutDirty=!0),e){let n,r=0;const o=()=>this.root.updateBlockedByResize=!1;kC.read(()=>{r=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=UP(o,250),CP.hasAnimatedSinceResize&&(CP.hasAnimatedSinceResize=!1,this.nodes.forEach(SL)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||RL,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!sL(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...zO(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||SL(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),SC(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_L),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&mL(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(wL);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(TL);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(kL),this.nodes.forEach(yL),this.nodes.forEach(vL)):this.nodes.forEach(TL),this.clearAllSnapshots();const e=gI.now();AC.delta=J_(0,1e3/60,e-AC.timestamp),AC.timestamp=e,AC.isProcessing=!0,NC.update.process(AC),NC.preRender.process(AC),NC.render.process(AC),AC.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,SI.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xL),this.sharedNodes.forEach(CL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,kC.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){kC.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iP(this.snapshot.measuredBox.x)||iP(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!oL(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||j_(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),ML((r=n).x),ML(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(jL))){const{scroll:e}=this.root;e&&(q_(t.x,e.offset.x),q_(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(KP(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&KP(t,e),q_(t.x,o.offset.x),q_(t.y,o.offset.y))}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};KP(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Q_(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),j_(r.latestValues)&&Q_(n,r.latestValues)}return j_(this.latestValues)&&Q_(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};KP(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!j_(n.latestValues))continue;F_(n.latestValues)&&n.updateSnapshot();const r=CI();KP(r,n.measurePageBox()),nL(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return j_(this.latestValues)&&nL(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==AC.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){const t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:o}=this.options;if(!this.layout||!r&&!o)return;this.resolvedRelativeTargetAt=AC.timestamp;const i=this.getClosestProjectingParent();var a,s,l;(i&&this.linkedParentVersion!==i.layoutVersion&&!i.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(i&&i.layout?this.createRelativeTarget(i,this.layout.layoutBox,i.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,lP(a.x,s.x,l.x),lP(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):KP(this.target,this.layout.layoutBox),$_(this.target,this.targetDelta)):KP(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,i&&Boolean(i.resumingFrom)===Boolean(this.resumingFrom)&&!i.options.layoutScroll&&i.target&&1!==this.animationProgress?this.createRelativeTarget(i,this.target,i.target):this.relativeParent=this.relativeTarget=void 0),wC.value&&dL.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!F_(this.parent.latestValues)&&!B_(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},uP(this.relativeTargetOrigin,t,n),KP(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const e=this.getLead(),t=Boolean(this.resumingFrom)||this!==e;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===AC.timestamp&&(n=!1),n)return;const{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!o)return;KP(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Q_(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,$_(e,a)),r&&j_(i.latestValues)&&Q_(e,i.latestValues))}t.x<W_&&t.x>G_&&(t.x=1),t.y<W_&&t.y>G_&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,t),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:s}=e;s?(this.projectionDelta&&this.prevProjectionDelta?(XP(this.prevProjectionDelta.x,this.projectionDelta.x),XP(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sP(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&cL(this.projectionDelta.x,this.prevProjectionDelta.x)&&cL(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),wC.value&&dL.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(DL));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,p,f,h;IL(i.x,e.x,n),IL(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(uP(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,p=this.relativeTargetOrigin,f=a,h=n,OL(l.x,p.x,f.x,h),OL(l.y,p.y,f.y,h),d&&function(e,t){return iL(e.x,t.x)&&iL(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),KP(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=L_(0,n.opacity??1,WP(r)),e.opacityExit=L_(t.opacity??1,0,qP(r))):i&&(e.opacity=L_(t.opacity??1,n.opacity??1,r));for(let o=0;o<VP;o++){const i=`border${zP[o]}Radius`;let a=GP(t,i),s=GP(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||$P(a)===$P(s)?(e[i]=Math.max(L_(HP(a),HP(s),r),0),(oC.test(s)||oC.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=L_(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(SC(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kC.update(()=>{CP.hasAnimatedSinceResize=!0,JO.layout++,this.motionValue||(this.motionValue=TI(0)),this.currentAnimation=function(e,t,n){const r=fI(e)?e:TI(e);return r.start(LR("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{JO.layout--},onComplete:()=>{JO.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&FL(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=iP(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=iP(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}KP(t,n),Q_(t,o),sP(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new uL);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){const{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&hL("z",e,r,this.animationValues);for(let t=0;t<pL.length;t++)hL(`rotate${pL[t]}`,e,r,this.animationValues),hL(`skew${pL[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=SO(t?.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=SO(t?.pointerEvents)||""),void(this.hasProjected&&!j_(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const o=r.animationValues||r.latestValues;this.applyTransformsToTarget();let i=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=n?.z||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);n&&(i=n(o,i)),e.transform=i;const{x:a,y:s}=this.projectionDelta;e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:e.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const t in QI){if(void 0===o[t])continue;const{correct:n,applyTo:a,isCSSVariable:s}=QI[t],l="none"===i?o[t]:n(o[t],r);if(a){const t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?SO(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(wL),this.root.sharedNodes.clear()}}}function yL(e){e.updateLayout()}function vL(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;"size"===o?dP(e=>{const r=i?t.measuredBox[e]:t.layoutBox[e],o=iP(r);r.min=n[e].min,r.max=r.min+o}):FL(o,t.layoutBox,n)&&dP(r=>{const o=i?t.measuredBox[r]:t.layoutBox[r],a=iP(n[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};sP(a,n,t.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?sP(s,e.applyTransform(r,!0),t.measuredBox):sP(s,n,t.layoutBox);const l=!oL(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};uP(a,t.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};uP(s,n,i.layoutBox),sL(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function bL(e){wC.value&&dL.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function EL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xL(e){e.clearSnapshot()}function wL(e){e.clearMeasurements()}function TL(e){e.isLayoutDirty=!1}function kL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function SL(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function AL(e){e.resolveTargetDelta()}function NL(e){e.calcProjection()}function _L(e){e.resetSkewAndRotation()}function CL(e){e.removeLeadSnapshot()}function IL(e,t,n){e.translate=L_(t.translate,0,n),e.scale=L_(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function OL(e,t,n,r){e.min=L_(t.min,n.min,r),e.max=L_(t.max,n.max,r)}function DL(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const RL={duration:.45,ease:[.4,0,.1,1]},PL=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),LL=PL("applewebkit/")&&!PL("chrome/")?Math.round:bC;function ML(e){e.min=LL(e.min),e.max=LL(e.max)}function FL(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=lL(t),o=lL(n),i=.2,!(Math.abs(r-o)<=i));var r,o,i}function jL(e){return e!==e.root&&e.scroll?.wasRoot}const BL=gL({attachResizeListener:(e,t)=>tP(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),UL={current:void 0},zL=gL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!UL.current){const e=new BL({});e.mount(window),e.setOptions({layoutScroll:!0}),UL.current=e}return UL.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),VL={pan:{Feature:class extends KR{constructor(){super(...arguments),this.removePointerDownListener=bC}onPointerDown(e){this.session=new hP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pP(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:_P(e),onStart:_P(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&kC.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=oP(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends KR{constructor(e){super(e),this.removeGroupControls=bC,this.removeListeners=bC,this.controls=new AP(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bC}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:zL,MeasureLayout:LP}};function HL(e,t){const n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function $L(e){return!("touch"===e.pointerType||eP())}function GL(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&kC.postRender(()=>o(t,rP(t)))}const WL=(e,t)=>!!t&&(e===t||WL(e,t.parentElement)),qL=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const YL=new WeakSet;function QL(e){return t=>{"Enter"===t.key&&e(t)}}function KL(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function XL(e){return nP(e)&&!eP()}function JL(e,t,n={}){const[r,o,i]=HL(e,n),a=e=>{const r=e.currentTarget;if(!XL(e))return;YL.add(r);const i=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),YL.has(r)&&YL.delete(r),XL(e)&&"function"==typeof i&&i(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||WL(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),i_(e)&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=QL(()=>{if(YL.has(n))return;KL(n,"down");const e=QL(()=>{KL(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>KL(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,o)),t=e,qL.has(t.tagName)||-1!==t.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}function ZL(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&kC.postRender(()=>o(t,rP(t)))}const eM=new WeakMap,tM=new WeakMap,nM=e=>{const t=eM.get(e.target);t&&t(e)},rM=e=>{e.forEach(nM)};function oM(e,t,n){const r=function({root:e,...t}){const n=e||document;tM.has(n)||tM.set(n,{});const r=tM.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(rM,{root:e,...t})),r[o]}(t);return eM.set(e,n),r.observe(e),()=>{eM.delete(e),r.unobserve(e)}}const iM={some:0,all:1};const aM=BO({...JR,...{inView:{Feature:class extends KR{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:iM[r]};return oM(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends KR{mount(){const{current:e}=this.node;e&&(this.unmount=JL(e,(e,t)=>(ZL(this.node,t,"Start"),(e,{success:t})=>ZL(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends KR{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=QO(tP(this.node.current,"focus",()=>this.onFocus()),tP(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends KR{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=HL(e,n),a=e=>{if(!$L(e))return;const{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;const i=e=>{$L(e)&&(r(e),n.removeEventListener("pointerleave",i))};n.addEventListener("pointerleave",i,o)};return r.forEach(e=>{e.addEventListener("pointerenter",a,o)}),i}(e,(e,t)=>(GL(this.node,t,"Start"),e=>GL(this.node,e,"End"))))}unmount(){}}}},...VL,...{layout:{ProjectionNode:zL,MeasureLayout:LP}}},cO),sM=Gi(null);function lM(){const e=Mp(sM);return(0,c().jsx)(g_,{children:e&&(0,c().jsxs)(aM.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",bounce:.15},className:$p("w-dvw flex items-center gap-4 fixed z-10 bottom-0 px-4 py-3 h-11",{"bg-secondary dark:bg-secondary-dark":"loading"===e.type,"bg-success dark:bg-success-dark":"success"===e.type,"bg-error dark:bg-error-dark":"error"===e.type}),children:["loading"===e.type&&(0,c().jsx)(Xm,{size:"xs"}),"success"===e.type&&(0,c().jsx)(QN,{className:"w-4"}),"error"===e.type&&(0,c().jsx)(JN,{className:"w-4"}),(0,c().jsx)("div",{className:"text-sm font-body flex-1",children:e.content})]},"banner")})}lM.show=e=>{sM(e)},lM.close=()=>{sM(null)};ve(),be();function cM(e,t){return e===t}function uM(e,t,n=cM){const r=(0,u().useCallback)(t=>{if(!e)return()=>{};const{unsubscribe:n}=e.subscribe(t);return n},[e]),o=(0,u().useCallback)(()=>e?.getSnapshot(),[e]);return(0,ge().useSyncExternalStoreWithSelector)(r,o,o,t,n)}const dM=WN({types:{},delays:{connectTimeout:1e4},actions:{notifyWaitingForConnection:()=>{lM.show({type:"loading",content:"Waiting for client to connect..."})},notifyNotFound:()=>{lM.show({type:"error",content:"Client not found"})}}}).createMachine({initial:"disconnected",states:{disconnected:{after:{connectTimeout:{target:"notFound"}}},retrying:{entry:["notifyWaitingForConnection"],after:{connectTimeout:{target:"notFound"}}},notFound:{on:{"reconnect.retry":"retrying"},entry:["notifyNotFound"]}}});const pM="xstate.observable.next",fM="xstate.observable.error",hM="xstate.observable.complete";new WeakMap;gM=void 0,mM=e=>{};var mM,gM;const yM=function(e){const t={config:e,transition:(e,t)=>{if("active"!==e.status)return e;switch(t.type){case pM:return{...e,context:t.data};case fM:return{...e,status:"error",error:t.data,input:void 0,_subscription:void 0};case hM:return{...e,status:"done",input:void 0,_subscription:void 0};case GS:return e._subscription.unsubscribe(),{...e,status:"stopped",input:void 0,_subscription:void 0};default:return e}},getInitialSnapshot:(e,t)=>({status:"active",output:void 0,error:void 0,context:void 0,input:t,_subscription:void 0}),start:(t,{self:n,system:r,emit:o})=>{"done"!==t.status&&(t._subscription=e({input:t.input,system:r,self:n,emit:o}).subscribe({next:e=>{r._relay(n,n,{type:pM,data:e})},error:e=>{r._relay(n,n,{type:fM,data:e})},complete:()=>{r._relay(n,n,{type:hM})}}))},getPersistedSnapshot:({_subscription:e,...t})=>t,restoreSnapshot:e=>({...e,_subscription:void 0})};return t}(({input:e})=>{let t;function n(){return e.watchQuery({query:tp`
            query ClientCount {
              clients {
                id
              }
            }
          `,fetchPolicy:"cache-only"}).pipe(Jr(({data:e,dataState:t})=>"complete"===t?e.clients.length:0))}return{subscribe:r=>{t=n().subscribe(r);const o=e.onClearStore(async()=>{t.unsubscribe(),t=n().subscribe(r)});return{unsubscribe:()=>{o(),t.unsubscribe()}}}}}),vM=WN({types:{},delays:{connectTimeout:1e4},actions:{closeBanner:lM.close,notifyDisconnected:()=>{lM.show({type:"loading",content:"No client connected. Waiting for client to connect..."})},notifyConnected:()=>{lM.show({type:"success",content:"Connected!"})},notifyRestart:()=>{lM.show({type:"error",content:"Could not communicate with the client. The extension might have been updated in the background. Please close and reopen the devtools and restart the page."})},renderUI:()=>{throw new Error("Provide implementation")},resetStore:()=>{throw new Error("Provide implementation")}},guards:{contextValid:({context:e})=>!1!==e.listening},actors:{reconnect:dM,clientCount:yM}}).createMachine({id:"devtools",type:"parallel",invoke:{id:"clientCount",src:"clientCount",input:({context:e})=>e.client,onSnapshot:{actions:AN({registeredClients:({event:e})=>e.snapshot.context??0})}},context:({input:e})=>({modals:{},port:void 0,registeredClients:0,client:e.client}),on:{"reconnect.*":{actions:UN("reconnect",({event:e})=>e)},"emit.*":{actions:LN(({event:e})=>({...e,type:e.type.replace("emit.","")}))}},states:{initialization:{initial:"uninitialized",on:{"port.changed":[{actions:[AN(({event:e})=>({port:e.port,listening:e.listening}))]}]},states:{uninitialized:{on:{initializePanel:{actions:[AN(({event:e})=>e.initialContext)],target:"initializing"}}},initializing:{entry:"renderUI",always:[{guard:"contextValid",target:"ok"},{target:"error"}]},error:{always:[{guard:"contextValid",target:"ok"}],on:{}},ok:{always:{guard:function(e){function t(e,t){return!1}return t.check=AA,t.guards=[e],t}("contextValid"),target:"error"},on:{}}}},connection:{initial:"disconnected",on:{"client.setCount":{actions:[AN({registeredClients:({event:e})=>e.count})]}},states:{connected:{entry:["notifyConnected"],on:{extensionInvalidated:"invalidated"},after:{2500:{actions:"closeBanner"}},always:{guard:({context:e})=>0===e.registeredClients,target:"disconnected"}},disconnected:{entry:["notifyDisconnected","resetStore"],on:{extensionInvalidated:"invalidated"},invoke:{id:"reconnect",src:"reconnect"},always:{guard:({context:e})=>e.registeredClients>0,target:"connected"}},invalidated:{entry:["notifyRestart"]}}}}}),bM=(0,u().createContext)(null);function EM(){const e=(0,u().useContext)(bM);if(!e)throw new Error("DevToolsMachineContext not found");return(0,u().useMemo)(()=>({send:e.send.bind(e),on:e.on.bind(e)}),[e])}function xM(e,t){const n=(0,u().useContext)(bM);if(!n)throw new Error("DevToolsMachineContext not found");return uM(n,e,t)}function wM(){return xM(e=>"invalidated"===e.value.connection)}function TM({variables:e}){return(0,c().jsx)(mS,{value:e,displayObjectSize:!1,collapsed:!1})}var kM;!function(e){e.Variables="Variables",e.CachedData="CachedData",e.Options="Options"}(kM||(kM={}));const SM=tp`
    query GetQueries($clientId: ID!) {
      client(id: $clientId) {
        id
        queries {
          items {
            id
            name
            queryString
            variables
            cachedData
            options
            networkStatus
            pollInterval
            ... on ClientV3WatchedQuery {
              error {
                ...ApolloErrorAlertDisclosurePanel_error
              }
            }
            ... on ClientV4WatchedQuery {
              error {
                ...SerializedErrorAlertDisclosurePanel_error
              }
            }
          }
        }
      }
    }

    ${yS.fragments.error}
  `,AM=[],NM=({clientId:e,explorerRef:t})=>{const[n,r]=(0,u().useState)("1"),[o,i]=(0,u().useState)(""),a=wM(),{error:s,data:l,startPolling:d,stopPolling:p,networkStatus:f}=Rp(SM,{variables:{clientId:e},skip:null==e,pollInterval:a?0:500,fetchPolicy:a?"cache-only":"cache-first"});if(s&&!LS(s))throw s;const h=l?.client?.queries.items??AM,m=h.find(e=>e.id===n),[g,y]=(0,u().useState)(kM.Variables),v=JSON.stringify(g===kM.Variables?m?.variables??{}:g===kM.Options?m?.options??{}:m?.cachedData??{}),b=m?.pollInterval;AS("panelHidden",()=>p()),AS("panelShown",()=>d(500)),!m&&h.length>0&&r(h[0].id);const E=(0,u().useMemo)(()=>{if(!o)return h;const e=new RegExp(o,"i");return h.filter(t=>t.name&&e.test(t.name))},[o,h]);return(0,c().jsxs)(_m,{children:[(0,c().jsxs)(_m.Sidebar,{children:[(0,c().jsx)(IS,{className:"mb-4",placeholder:"Search queries",onChange:i,value:o}),(0,c().jsx)(Gp,{className:"h-full",children:E.map(({name:e,id:t,networkStatus:i,pollInterval:a})=>(0,c().jsx)(Uf,{onClick:()=>r(t),selected:n===t,className:"font-code",children:(0,c().jsxs)("div",{className:"w-full flex items-center justify-between gap-2",children:[(0,c().jsx)("span",{className:"flex-1 overflow-hidden text-ellipsis",children:o&&e?(0,c().jsx)(OS,{searchTerm:o,value:e}):e}),(0,c().jsx)(IM,{networkStatus:i,pollInterval:a})]})},`${e}-${t}`))})]}),f===os.loading?(0,c().jsx)(_m.Main,{children:(0,c().jsx)(DS,{})}):(0,c().jsxs)(vv,{children:[m?(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)(vv.Header,{children:[(0,c().jsxs)(vv.Title,{className:"flex gap-6 items-center",children:[m.name,Ka(m.networkStatus)&&m.networkStatus!==os.poll?(0,c().jsx)(c().Fragment,{children:(0,c().jsx)(Sv,{color:"blue",variant:"rounded",icon:(0,c().jsx)(Xm,{size:"xs"}),children:CM(m.networkStatus)})}):"number"==typeof b?(0,c().jsx)(Sv,{color:0===b?"red":"green",variant:"rounded",icon:m.networkStatus===os.poll?(0,c().jsx)(Xm,{size:"xs"}):void 0,children:0===b?"Stopped polling":(0,c().jsxs)("span",{children:["Polling"," ",(0,c().jsxs)("span",{className:"text-sm",children:["(",m.pollInterval," ms)"]})]})}):null]}),(0,c().jsx)(tg,{operation:m.queryString,variables:m.variables??void 0,explorerRef:t})]}),(0,c().jsxs)(vv.Content,{children:[m.error&&(0,c().jsxs)(cx,{className:"mb-2",variant:"error",children:[(0,c().jsx)(cx.Button,{children:"Query completed with errors"}),"SerializedApolloError"===m.error.__typename?(0,c().jsx)(yS,{error:m.error}):(0,c().jsx)(US,{error:m.error})]}),(0,c().jsx)(vv.QueryString,{code:m.queryString})]})]}):(0,c().jsx)(bv,{className:"m-auto mt-20"}),(0,c().jsxs)(vv.Tabs,{value:g,onChange:e=>y(e),children:[(0,c().jsxs)(py.List,{children:[(0,c().jsx)(py.Trigger,{value:kM.Variables,children:"Variables"}),(0,c().jsx)(py.Trigger,{value:kM.CachedData,children:"Cached Data"}),(0,c().jsx)(py.Trigger,{value:kM.Options,children:"Options"}),(0,c().jsx)(mv,{className:"ml-auto relative right-[6px]",size:"sm",text:v})]}),(0,c().jsx)(vv.TabContent,{value:kM.Variables,children:(0,c().jsx)(TM,{variables:m?.variables})}),(0,c().jsx)(vv.TabContent,{value:kM.CachedData,children:(0,c().jsx)(mS,{value:m?.cachedData})}),(0,c().jsx)(vv.TabContent,{value:kM.Options,children:(0,c().jsx)(mS,{value:m?.options,displayObjectSize:!1,collapsed:!1})})]})]})]})},_M={[os.loading]:"Loading",[os.setVariables]:"Changing variables",[os.fetchMore]:"Loading next",[os.refetch]:"Refetching",[os.poll]:"Polling",[os.error]:"Error",[os.ready]:"Ready",[os.streaming]:"Streaming"};function CM(e){return _M[e]}const IM=({networkStatus:e,pollInterval:t})=>Ka(e)?(0,c().jsx)(Xm,{size:"xs",className:"shrink-0"}):e===os.error?(0,c().jsx)(Hf,{className:"size-4 text-icon-error dark:text-icon-error-dark shrink-0"}):e===os.ready&&t?(0,c().jsx)(gk,{content:`Polling (${t} ms)`,children:(0,c().jsx)("span",{children:(0,c().jsx)(Wf,{className:"size-4 shrink-0"})})}):null,OM=tp`
    query GetMutations($id: ID!) {
      client(id: $id) {
        id
        mutations {
          total
          items {
            id
            name
            mutationString
            variables
            loading
            ... on ClientV3Mutation {
              error {
                ...SerializedErrorAlertDisclosurePanel_error
                ...ApolloErrorAlertDisclosurePanel_error
              }
            }
            ... on ClientV4Mutation {
              error {
                ...SerializedErrorAlertDisclosurePanel_error
              }
            }
          }
        }
      }
    }

    ${yS.fragments.error}
  `,DM=[],RM=({clientId:e,explorerRef:t})=>{const[n,r]=(0,u().useState)(0),[o,i]=(0,u().useState)(""),a=wM(),{data:s,error:l,networkStatus:d,startPolling:p,stopPolling:f}=Rp(OM,{variables:{id:e},skip:null==e,pollInterval:a?0:500,fetchPolicy:a?"cache-only":"cache-first"});if(l&&!LS(l))throw l;AS("panelHidden",()=>f()),AS("panelShown",()=>p(500));const h=s?.client?.mutations?.items??DM,m=h.find(e=>Number(e.id)===n);!m&&h.length>0&&r(0);const g=(0,u().useMemo)(()=>{if(!o)return h;const e=new RegExp(o,"i");return h.filter(({name:t})=>t&&e.test(t))},[o,h]);return(0,c().jsxs)(_m,{children:[(0,c().jsxs)(_m.Sidebar,{children:[(0,c().jsx)(IS,{className:"mb-4",placeholder:"Search mutations",onChange:i,value:o}),(0,c().jsx)(Gp,{className:"h-full",children:g.map(({name:e,id:t,loading:i,error:a})=>(0,c().jsx)(Uf,{className:"font-code",onClick:()=>r(Number(t)),selected:n===Number(t),children:(0,c().jsxs)("div",{className:"w-full flex items-center justify-between gap-2",children:[(0,c().jsx)("span",{className:"flex-1 overflow-hidden text-ellipsis",children:o&&e?(0,c().jsx)(OS,{searchTerm:o,value:e}):e}),i?(0,c().jsx)(Xm,{size:"xs",className:"shrink-0"}):a?(0,c().jsx)(Hf,{className:"size-4 text-icon-error dark:text-icon-error-dark"}):null]})},`${e}-${t}`))})]}),d===os.loading?(0,c().jsx)(_m.Main,{children:(0,c().jsx)(DS,{})}):(0,c().jsxs)(vv,{children:[m?(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)(vv.Header,{children:[(0,c().jsxs)(vv.Title,{className:"flex gap-6 items-center",children:[m.name,m.loading?(0,c().jsx)(Sv,{color:"blue",variant:"rounded",icon:(0,c().jsx)(Xm,{size:"xs"}),children:"Loading"}):null]}),(0,c().jsx)(tg,{operation:m.mutationString,variables:m.variables??void 0,explorerRef:t})]}),(0,c().jsxs)(vv.Content,{children:[m.error&&(0,c().jsxs)(cx,{className:"mb-2",variant:"error",children:[(0,c().jsx)(cx.Button,{children:"Mutation completed with errors"}),"SerializedApolloError"===m.error.__typename?(0,c().jsx)(yS,{error:m.error}):(0,c().jsx)(US,{error:m.error})]}),(0,c().jsx)(vv.QueryString,{code:m.mutationString})]})]}):(0,c().jsx)(bv,{className:"m-auto mt-20"}),(0,c().jsxs)(vv.Tabs,{defaultValue:"variables",children:[(0,c().jsxs)(py.List,{children:[(0,c().jsx)(py.Trigger,{value:"variables",children:"Variables"}),(0,c().jsx)(mv,{text:JSON.stringify(m?.variables??{}),size:"sm",className:"ml-auto relative right-[6px]"})]}),(0,c().jsx)(vv.TabContent,{value:"variables",children:(0,c().jsx)(TM,{variables:m?.variables})})]})]})]})};function PM(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",o=t.directiveIsRepeatable?"isRepeatable":"",i=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}const s=t.oneOf?"isOneOf":"";return`\n    query IntrospectionQuery {\n      __schema {\n        ${i}\n        queryType { name kind }\n        mutationType { name kind }\n        subscriptionType { name kind }\n        types {\n          ...FullType\n        }\n        directives {\n          name\n          ${n}\n          ${o}\n          locations\n          args${a("(includeDeprecated: true)")} {\n            ...InputValue\n          }\n        }\n      }\n    }\n\n    fragment FullType on __Type {\n      kind\n      name\n      ${n}\n      ${r}\n      ${s}\n      fields(includeDeprecated: true) {\n        name\n        ${n}\n        args${a("(includeDeprecated: true)")} {\n          ...InputValue\n        }\n        type {\n          ...TypeRef\n        }\n        isDeprecated\n        deprecationReason\n      }\n      inputFields${a("(includeDeprecated: true)")} {\n        ...InputValue\n      }\n      interfaces {\n        ...TypeRef\n      }\n      enumValues(includeDeprecated: true) {\n        name\n        ${n}\n        isDeprecated\n        deprecationReason\n      }\n      possibleTypes {\n        ...TypeRef\n      }\n    }\n\n    fragment InputValue on __InputValue {\n      name\n      ${n}\n      type { ...TypeRef }\n      defaultValue\n      ${a("isDeprecated")}\n      ${a("deprecationReason")}\n    }\n\n    fragment TypeRef on __Type {\n      kind\n      name\n      ofType {\n        kind\n        name\n        ofType {\n          kind\n          name\n          ofType {\n            kind\n            name\n            ofType {\n              kind\n              name\n              ofType {\n                kind\n                name\n                ofType {\n                  kind\n                  name\n                  ofType {\n                    kind\n                    name\n                    ofType {\n                      kind\n                      name\n                      ofType {\n                        kind\n                        name\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  `}const LM=({children:e,className:t})=>(0,c().jsx)("div",{"data-testid":"layout",className:Hp(t,"flex-1 flex flex-col"),children:e});LM.Main=({children:e,className:t})=>(0,c().jsx)("main",{className:Hp(t,"flex-1"),children:e});const MM=u().forwardRef(({size:e="medium",...t},n)=>{const r={large:90,medium:64,small:48,xsmall:32,"2xsmall":16}[e],[o]=u().useState(()=>Date.now()),i=-o%1e3;return(0,c().jsxs)("svg",{ref:n,role:"progressbar",viewBox:"0 0 100 100",style:{width:r,height:r},...t,children:[(0,c().jsx)("circle",{strokeWidth:"8",className:"stroke-silver-500 dark:stroke-navy-400/60",fill:"transparent",r:"41",cx:"50",cy:"50"}),(0,c().jsx)("g",{transform:"translate(50 50)",children:(0,c().jsx)("circle",{className:"animate-spin will-change-transform fill-brand-nebula dark:fill-brand-nebula-dark",style:{animationDelay:`${i}ms`},r:"10",cx:"40",cy:"0"})})]})}),FM=({className:e})=>(0,c().jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 274 210",className:e,children:[(0,c().jsx)("defs",{children:(0,c().jsx)("path",{id:"a",d:"M.305.332H27.95v23.297H.305z"})}),(0,c().jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,c().jsx)("path",{fill:"#444",d:"M20.849 209.683C7.639 188.617 0 163.7 0 137 0 61.337 61.337 0 137 0s137 61.337 137 137c0 26.7-7.638 51.617-20.849 72.683C218.266 191.978 178.798 182 137 182s-81.266 9.978-116.151 27.683z",opacity:".02"}),(0,c().jsx)("path",{fill:"#E5358D",d:"M111 140.5l5.5 12.5 6.1-2.5-5.3-12.7z"}),(0,c().jsx)("path",{fill:"#A7A7A7",d:"M158 116.5l8.5 20L151 143l-8.5-20z"}),(0,c().jsx)("path",{fill:"#44444D",d:"M150.955 144.734a2.038 2.038 0 0 1-1.877-1.223l-3.837-8.913a1.991 1.991 0 0 1 1.083-2.625c1.041-.432 2.232.045 2.67 1.064l3.041 7.068 8.685-3.61c1.04-.433 2.233.045 2.67 1.063a1.991 1.991 0 0 1-1.082 2.625l-10.56 4.393c-.26.107-.53.158-.793.158"}),(0,c().jsxs)("g",{transform:"translate(140.31 114.753)",children:[(0,c().jsx)("mask",{id:"b",fill:"#fff",children:(0,c().jsx)("use",{xlinkHref:"#a"})}),(0,c().jsx)("path",{fill:"#44444D",d:"M25.914 23.63a2.038 2.038 0 0 1-1.877-1.223L16.529 4.96 5.012 9.749l1.641 3.813a1.991 1.991 0 0 1-1.082 2.625c-1.036.432-2.232-.045-2.67-1.064L.466 9.466a1.97 1.97 0 0 1-.012-1.533 2.017 2.017 0 0 1 1.095-1.092L16.819.49c1.035-.432 2.23.046 2.668 1.064l8.302 19.29a1.99 1.99 0 0 1-1.082 2.626c-.26.107-.53.158-.793.158",mask:"url(#b)"})]}),(0,c().jsx)("path",{fill:"#44444D",d:"M143.664 143.903a2.038 2.038 0 0 1-1.877-1.222 1.99 1.99 0 0 1 1.081-2.625l5.884-2.447c1.042-.432 2.233.046 2.67 1.064a1.99 1.99 0 0 1-1.081 2.625l-5.884 2.447c-.26.107-.53.158-.793.158M116.394 155.242a2.038 2.038 0 0 1-1.877-1.222l-5.485-12.737a1.98 1.98 0 0 1-.012-1.533 2.016 2.016 0 0 1 1.096-1.092l33.154-13.786c1.037-.432 2.232.045 2.67 1.064a1.989 1.989 0 0 1-1.083 2.624l-31.279 13.006 3.897 9.049 14.64-6.087c1.038-.431 2.232.046 2.67 1.064a1.99 1.99 0 0 1-1.083 2.624l-16.515 6.868c-.26.107-.529.158-.793.158M110.226 155.41a2.038 2.038 0 0 1-1.877-1.223l-3.188-7.403a1.99 1.99 0 0 1 1.083-2.625c1.037-.431 2.231.045 2.67 1.063l3.187 7.404a1.99 1.99 0 0 1-1.081 2.625c-.26.107-.529.158-.794.158M110.66 136.52a2.038 2.038 0 0 1-1.877-1.223 1.99 1.99 0 0 1 1.08-2.625l8.631-3.588a2.05 2.05 0 0 1 2.67 1.063 1.991 1.991 0 0 1-1.082 2.625l-8.63 3.59c-.26.107-.529.158-.793.158"}),(0,c().jsx)("path",{fill:"#44444D",d:"M117.198 139.89a2.038 2.038 0 0 1-1.877-1.222l-2.224-5.165a1.991 1.991 0 0 1 1.082-2.625c1.039-.431 2.231.044 2.67 1.064l2.224 5.165a1.99 1.99 0 0 1-1.081 2.625c-.26.108-.529.159-.794.159M140.997 144.157c0 1.495-1.235 2.711-2.759 2.711-1.524 0-2.76-1.216-2.76-2.711 0-1.498 1.236-2.712 2.76-2.712 1.524 0 2.759 1.214 2.759 2.712M127.413 177.668c-.208 0-.42-.031-.628-.099a1.995 1.995 0 0 1-1.31-2.522l8.343-25.29c.347-1.05 1.493-1.629 2.566-1.287a1.994 1.994 0 0 1 1.308 2.522l-8.342 25.291a2.036 2.036 0 0 1-1.937 1.385M149.061 177.668c-.86 0-1.658-.539-1.937-1.385l-8.34-25.29a1.994 1.994 0 0 1 1.309-2.523 2.04 2.04 0 0 1 2.565 1.288l8.341 25.29a1.995 1.995 0 0 1-1.31 2.521c-.208.068-.42.1-.628.1M138.238 177.667c-1.125 0-2.037-.896-2.037-2.002v-17.259c0-1.105.912-2.002 2.037-2.002 1.126 0 2.037.897 2.037 2.002v17.259c0 1.106-.911 2.002-2.037 2.002"}),(0,c().jsx)("path",{stroke:"#E6E6E6",strokeLinecap:"round",strokeWidth:"3",d:"M149 126.4l5.6-2.4"}),(0,c().jsx)("path",{stroke:"#44444D",strokeLinecap:"round",strokeWidth:"3",d:"M125 140.9l16-6.6M119.3 142.63l2.888 7.133"}),(0,c().jsxs)("g",{stroke:"#DEDFE3",strokeWidth:"3",transform:"rotate(-22 232.896 -144.262)",children:[(0,c().jsx)("circle",{cx:"13",cy:"7",r:"7"}),(0,c().jsx)("path",{strokeLinecap:"round",d:"M0 7h26"})]}),(0,c().jsxs)("g",{stroke:"#DEDFE3",strokeWidth:"3",transform:"rotate(22 -199.123 637.319)",children:[(0,c().jsx)("circle",{cx:"13",cy:"7",r:"7"}),(0,c().jsx)("path",{strokeLinecap:"round",d:"M0 7h26"})]}),(0,c().jsx)("path",{stroke:"#DEDFE3",strokeLinejoin:"round",strokeWidth:"3",d:"M172.341 55.193c4.86.904 9.975-1.276 12.587-5.8 2.613-4.526 1.943-10.045-1.27-13.802A11.98 11.98 0 0 1 187.465 37c5.74 3.314 7.706 10.653 4.392 16.392-3.313 5.74-10.652 7.706-16.392 4.393a11.98 11.98 0 0 1-3.123-2.592z"}),(0,c().jsx)("circle",{cx:"48",cy:"163",r:"4",stroke:"#DEDFE3",strokeWidth:"3"}),(0,c().jsx)("circle",{cx:"135.5",cy:"89.5",r:"2.5",fill:"#5168C2"}),(0,c().jsx)("circle",{cx:"98.5",cy:"37.5",r:"2.5",fill:"#5168C2"}),(0,c().jsx)("circle",{cx:"41.5",cy:"77.5",r:"2.5",fill:"#5168C2"}),(0,c().jsx)("circle",{cx:"24.5",cy:"118.5",r:"2.5",fill:"#5168C2"}),(0,c().jsx)("circle",{cx:"232.5",cy:"74.5",r:"2.5",fill:"#5168C2"}),(0,c().jsx)("circle",{cx:"191.5",cy:"158.5",r:"2.5",fill:"#5168C2"}),(0,c().jsxs)("g",{fill:"#DEDFE3",transform:"translate(185 95)",children:[(0,c().jsx)("rect",{width:"3",height:"9",x:"3",rx:"1.5"}),(0,c().jsx)("rect",{width:"9",height:"3",y:"3",rx:"1.5"})]}),(0,c().jsxs)("g",{fill:"#DEDFE3",transform:"translate(243 170)",children:[(0,c().jsx)("rect",{width:"3",height:"9",x:"3",rx:"1.5"}),(0,c().jsx)("rect",{width:"9",height:"3",y:"3",rx:"1.5"})]}),(0,c().jsxs)("g",{fill:"#DEDFE3",transform:"translate(70 119)",children:[(0,c().jsx)("rect",{width:"3",height:"9",x:"3",rx:"1.5"}),(0,c().jsx)("rect",{width:"9",height:"3",y:"3",rx:"1.5"})]}),(0,c().jsxs)("g",{fill:"#DEDFE3",transform:"translate(138 22)",children:[(0,c().jsx)("rect",{width:"3",height:"9",x:"3",rx:"1.5"}),(0,c().jsx)("rect",{width:"9",height:"3",y:"3",rx:"1.5"})]})]})]});function jM(e,t,n,r){let o=Rb(n);(0,u().useEffect)(()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}class BM extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var UM,zM,VM,HM=Object.defineProperty,$M=(e,t,n)=>(((e,t,n)=>{t in e?HM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),GM=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},WM=(e,t,n)=>(GM(e,t,"read from private field"),n?n.call(e):t.get(e)),qM=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},YM=(e,t,n,r)=>(GM(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class QM{constructor(e){qM(this,UM,{}),qM(this,zM,new BM(()=>new Set)),qM(this,VM,new Set),$M(this,"disposables",Ib()),YM(this,UM,e),Sb.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return WM(this,UM)}subscribe(e,t){if(Sb.isServer)return()=>{};let n={selector:e,callback:t,current:e(WM(this,UM))};return WM(this,VM).add(n),this.disposables.add(()=>{WM(this,VM).delete(n)})}on(e,t){return Sb.isServer?()=>{}:(WM(this,zM).get(e).add(t),this.disposables.add(()=>{WM(this,zM).get(e).delete(t)}))}send(e){let t=this.reduce(WM(this,UM),e);if(t!==WM(this,UM)){YM(this,UM,t);for(let e of WM(this,VM)){let t=e.selector(WM(this,UM));KM(e.current,t)||(e.current=t,e.callback(t))}for(let t of WM(this,zM).get(e.type))t(WM(this,UM),e)}}}function KM(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&XM(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&XM(e.entries(),t.entries()):!(!JM(e)||!JM(t))&&XM(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function XM(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function JM(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}UM=new WeakMap,zM=new WeakMap,VM=new WeakMap;var ZM=Object.defineProperty,eF=(e,t,n)=>(((e,t,n)=>{t in e?ZM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),tF=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(tF||{});let nF={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class rF extends QM{constructor(){super(...arguments),eF(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),eF(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new rF({stack:[]})}reduce(e,t){return iE(t.type,nF,e,t)}}const oF=new BM(()=>rF.new());function iF(e,t,n=KM){return(0,ye().useSyncExternalStoreWithSelector)(Pb(t=>e.subscribe(aF,t)),Pb(()=>e.state),Pb(()=>e.state),Pb(t),n)}function aF(e){return e}function sF(e,t){let n=(0,u().useId)(),r=oF.get(t),[o,i]=iF(r,(0,u().useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return Db(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!i||o)}Ee();let lF=new Map,cF=new Map;function uF(e){var t;let n=null!=(t=cF.get(e))?t:0;return cF.set(e,n+1),0!==n||(lF.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>dF(e)}function dF(e){var t;let n=null!=(t=cF.get(e))?t:1;if(1===n?cF.delete(e):cF.set(e,n-1),1!==n)return;let r=lF.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,lF.delete(e))}let pF=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),fF=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var hF,mF=((hF=mF||{})[hF.First=1]="First",hF[hF.Previous=2]="Previous",hF[hF.Next=4]="Next",hF[hF.Last=8]="Last",hF[hF.WrapAround=16]="WrapAround",hF[hF.NoScroll=32]="NoScroll",hF[hF.AutoFocus=64]="AutoFocus",hF),gF=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(gF||{}),yF=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(yF||{});function vF(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(pF)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var bF=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(bF||{});function EF(e,t=0){var n;return e!==(null==(n=Ab(e))?void 0:n.body)&&iE(t,{0:()=>e.matches(pF),1(){let t=e;for(;null!==t;){if(t.matches(pF))return!0;t=t.parentElement}return!1}})}var xF=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(xF||{});function wF(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let TF=["textarea","input"].join(",");function kF(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?Nb(e[0]):document:Nb(e),a=Array.isArray(e)?n?function(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(fF)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):vF(e);o.length>0&&a.length>1&&(a=a.filter(e=>!o.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:null==i?void 0:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==_b(s));return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,TF))&&n}(s)&&s.select(),2}function SF(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function AF(){return SF()||/Android/gi.test(window.navigator.userAgent)}function NF(e,t,n,r){let o=Rb(n);(0,u().useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function _F(e,t,n,r){let o=Rb(n);(0,u().useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function CF(e,t,n){let r=Rb(n),o=(0,u().useCallback)(function(e,n){if(e.defaultPrevented)return;let o=n(e);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(o)||e.composed&&e.composedPath().includes(t)))return;return!EF(o,bF.Loose)&&-1!==o.tabIndex&&e.preventDefault(),r.current(e,o)},[r,t]),i=(0,u().useRef)(null);NF(e,"pointerdown",e=>{var t,n;AF()||(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),NF(e,"pointerup",e=>{if(AF()||!i.current)return;let t=i.current;return i.current=null,o(e,()=>t)},!0);let a=(0,u().useRef)({x:0,y:0});NF(e,"touchstart",e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY},!0),NF(e,"touchend",e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=30||Math.abs(n-a.current.y)>=30))return o(e,()=>tE(e.target)?e.target:null)},!0),_F(e,"blur",e=>o(e,()=>function(e){return eE(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null),!0)}function IF(...e){return(0,u().useMemo)(()=>Ab(...e),[...e])}var OF=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(OF||{});let DF=mE(function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":!(2&~r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}};return uE()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})});let RF=(0,u().createContext)(null);function PF({children:e,node:t}){let[n,r]=(0,u().useState)(null),o=LF(null!=t?t:n);return u().createElement(RF.Provider,{value:o},e,null===o&&u().createElement(DF,{features:OF.Hidden,ref:e=>{var t,n;if(e)for(let o of null!=(n=null==(t=Ab(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(o!==document.body&&o!==document.head&&Zb(o)&&null!=o&&o.contains(e)){r(o);break}}}))}function LF(e=null){var t;return null!=(t=(0,u().useContext)(RF))?t:e}function MF(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function FF(){return SF()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=Ib();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",t=>{if(tE(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),a=e.querySelector(o);tE(a)&&!r(a)&&(i=a)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),tE(e.target)&&function(e){return Zb(e)&&"style"in e}(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(tE(e.target)){if(function(e){return eE(e)&&"INPUT"===e.nodeName}(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),t.add(()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function jF(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let BF=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach(e=>e()))}}}(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Ib(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=jF(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=jF(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta:()=>e.computedMeta},n=[FF(),MF(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach(({before:e})=>null==e?void 0:e(t)),n.forEach(({after:e})=>null==e?void 0:e(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function UF(e,t,n=()=>({containers:[]})){let r=function(e){return(0,u().useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}(BF),o=t?r.get(t):void 0,i=!!o&&o.count>0;return Db(()=>{if(t&&e)return BF.dispatch("PUSH",t,n),()=>BF.dispatch("POP",t,n)},[e,t]),i}BF.subscribe(()=>{let e=BF.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&BF.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&BF.dispatch("TEARDOWN",n)}});let zF=(0,u().createContext)(!1);function VF(e){return u().createElement(zF.Provider,{value:e.force},e.children)}let HF=(0,u().createContext)(void 0);let $F=(0,u().createContext)(null);function GF(){let e=(0,u().useContext)($F);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,GF),e}return e}$F.displayName="DescriptionContext";let WF=mE(function(e,t){let n=(0,u().useId)(),r=(0,u().useContext)(HF),{id:o=`headlessui-description-${n}`,...i}=e,a=GF(),s=Bb(t);Db(()=>a.register(o),[o,a.register]);let l=Mb({...a.slot,disabled:r||!1}),c={ref:s,...a.props,id:o};return uE()({ourProps:c,theirProps:i,slot:l,defaultTag:"p",name:a.name||"Description"})}),qF=Object.assign(WF,{});function YF(e){let t=Pb(e),n=(0,u().useRef)(!1);(0,u().useEffect)(()=>(n.current=!1,()=>{n.current=!0,Cb(()=>{n.current&&t()})}),[t])}var QF=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(QF||{});function KF(e,t){let n=(0,u().useRef)([]),r=Pb(e);(0,u().useEffect)(()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}},[r,...t])}let XF=[];function JF(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)Zb(n.current)&&t.add(n.current);return t}!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){if(!tE(e.target)||e.target===document.body||XF[0]===e.target)return;let t=e.target;t=t.closest(pF),XF.unshift(null!=t?t:e.target),XF=XF.filter(e=>null!=e&&e.isConnected),XF.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var ZF=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(ZF||{});let ej=mE(function(e,t){let n=(0,u().useRef)(null),r=Bb(n,t),{initialFocus:o,initialFocusFallback:i,containers:a,features:s=15,...l}=e;KE()||(s=0);let c=IF(n.current);!function(e,{ownerDocument:t}){let n=!!(8&e),r=function(e=!0){let t=(0,u().useRef)(XF.slice());return KF(([e],[n])=>{!0===n&&!1===e&&Cb(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=XF.slice())},[e,XF,t]),Pb(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(n);KF(()=>{n||function(e){return _b(e)===e}(null==t?void 0:t.body)&&wF(r())},[n]),YF(()=>{n&&wF(r())})}(s,{ownerDocument:c});let d=function(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=(0,u().useRef)(null),a=sF(!!(1&e),"focus-trap#initial-focus"),s=QE();return KF(()=>{if(0===e)return;if(!a)return void(null!=o&&o.current&&wF(o.current));let l=n.current;l&&Cb(()=>{if(!s.current)return;let n=null==t?void 0:t.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===n)return void(i.current=n)}else if(l.contains(n))return void(i.current=n);if(null!=r&&r.current)wF(r.current);else{if(16&e){if(kF(l,mF.First|mF.AutoFocus)!==gF.Error)return}else if(kF(l,mF.First)!==gF.Error)return;if(null!=o&&o.current&&(wF(o.current),(null==t?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=null==t?void 0:t.activeElement})},[o,a,e]),i}(s,{ownerDocument:c,container:n,initialFocus:o,initialFocusFallback:i});!function(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=QE(),a=!!(4&e);jM(null==t?void 0:t.defaultView,"focus",e=>{if(!a||!i.current)return;let t=JF(r);eE(n.current)&&t.add(n.current);let s=o.current;if(!s)return;let l=e.target;eE(l)?nj(t,l)?(o.current=l,wF(l)):(e.preventDefault(),e.stopPropagation(),wF(s)):wF(o.current)},!0)}(s,{ownerDocument:c,container:n,containers:a,previousActiveElement:d});let p=function(){let e=(0,u().useRef)(0);return _F(!0,"keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}(),f=Pb(e=>{if(!eE(n.current))return;let t=n.current;iE(p.current,{[QF.Forwards]:()=>{kF(t,mF.First,{skipElements:[e.relatedTarget,i]})},[QF.Backwards]:()=>{kF(t,mF.Last,{skipElements:[e.relatedTarget,i]})}})}),h=sF(!!(2&s),"focus-trap#tab-lock"),m=Ob(),g=(0,u().useRef)(!1),y={ref:r,onKeyDown(e){"Tab"==e.key&&(g.current=!0,m.requestAnimationFrame(()=>{g.current=!1}))},onBlur(e){if(!(4&s))return;let t=JF(a);eE(n.current)&&t.add(n.current);let r=e.relatedTarget;tE(r)&&"true"!==r.dataset.headlessuiFocusGuard&&(nj(t,r)||(g.current?kF(n.current,iE(p.current,{[QF.Forwards]:()=>mF.Next,[QF.Backwards]:()=>mF.Previous})|mF.WrapAround,{relativeTo:e.target}):tE(e.target)&&wF(e.target)))}},v=uE();return u().createElement(u().Fragment,null,h&&u().createElement(DF,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:OF.Focusable}),v({ourProps:y,theirProps:l,defaultTag:"div",name:"FocusTrap"}),h&&u().createElement(DF,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:OF.Focusable}))}),tj=Object.assign(ej,{features:ZF});function nj(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function rj(e){let t=(0,u().useContext)(zF),n=(0,u().useContext)(sj),[r,o]=(0,u().useState)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(Sb.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)});return(0,u().useEffect)(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,u().useEffect)(()=>{t||null!==n&&o(n.current)},[n,o,t]),r}let oj=u().Fragment,ij=mE(function(e,t){let{ownerDocument:n=null,...r}=e,o=(0,u().useRef)(null),i=Bb(jb(e=>{o.current=e}),t),s=IF(o.current),l=rj(null!=n?n:s),c=(0,u().useContext)(lj),d=Ob(),p=uE();return YF(()=>{var e;l&&l.childNodes.length<=0&&(null==(e=l.parentElement)||e.removeChild(l))}),l?(0,a().createPortal)(u().createElement("div",{"data-headlessui-portal":"",ref:e=>{d.dispose(),c&&e&&d.add(c.register(e))}},p({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:oj,name:"Portal"})),l):null});let aj=u().Fragment,sj=(0,u().createContext)(null);let lj=(0,u().createContext)(null);let cj=mE(function(e,t){let n=Bb(t),{enabled:r=!0,ownerDocument:o,...i}=e,a=uE();return r?u().createElement(ij,{...i,ownerDocument:o,ref:n}):a({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:oj,name:"Portal"})}),uj=mE(function(e,t){let{target:n,...r}=e,o={ref:Bb(t)},i=uE();return u().createElement(sj.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:aj,name:"Popover.Group"}))}),dj=Object.assign(cj,{Group:uj});var pj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pj||{}),fj=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(fj||{});let hj={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},mj=(0,u().createContext)(null);function gj(e){let t=(0,u().useContext)(mj);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,gj),t}return t}function yj(e,t){return iE(t.type,hj,e,t)}mj.displayName="DialogContext";let vj=mE(function(e,t){let n=(0,u().useId)(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:a,role:s="dialog",autoFocus:l=!0,__demoMode:c=!1,unmount:d=!1,...p}=e,f=(0,u().useRef)(!1);s="dialog"===s||"alertdialog"===s?s:(f.current||(f.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let h=Kb();void 0===o&&null!==h&&(o=(h&Qb.Open)===Qb.Open);let m=(0,u().useRef)(null),g=Bb(m,t),y=IF(m.current),v=o?0:1,[b,E]=(0,u().useReducer)(yj,{titleId:null,descriptionId:null,panelRef:(0,u().createRef)()}),x=Pb(()=>i(!1)),w=Pb(e=>E({type:0,id:e})),T=!!KE()&&0===v,[k,S]=function(){let e=(0,u().useContext)(lj),t=(0,u().useRef)([]),n=Pb(n=>(t.current.push(n),e&&e.register(n),()=>r(n))),r=Pb(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),o=(0,u().useMemo)(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,(0,u().useMemo)(()=>function({children:e}){return u().createElement(lj.Provider,{value:o},e)},[o])]}(),A={get current(){var e;return null!=(e=b.panelRef.current)?e:m.current}},N=LF(),{resolveContainers:_}=function({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Pb(()=>{var r,o;let i=Ab(n),a=[];for(let t of e)null!==t&&(Zb(t)?a.push(t):"current"in t&&Zb(t.current)&&a.push(t.current));if(null!=t&&t.current)for(let e of t.current)a.push(e);for(let e of null!=(r=null==i?void 0:i.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&Zb(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(o=null==n?void 0:n.getRootNode())?void 0:o.host))||a.some(t=>e.contains(t))||a.push(e));return a});return{resolveContainers:r,contains:Pb(e=>r().some(t=>t.contains(e)))}}({mainTreeNode:N,portals:k,defaultContainers:[A]}),C=null!==h&&(h&Qb.Closing)===Qb.Closing;!function(e,{allowed:t,disallowed:n}={}){let r=sF(e,"inert-others");Db(()=>{var e,o;if(!r)return;let i=Ib();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(uF(t));let a=null!=(o=null==t?void 0:t())?o:[];for(let e of a){if(!e)continue;let t=Ab(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some(t=>e.contains(t))||i.add(uF(e));n=n.parentElement}}return i.dispose},[r,t,n])}(!c&&!C&&T,{allowed:Pb(()=>{var e,t;return[null!=(t=null==(e=m.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:Pb(()=>{var e;return[null!=(e=null==N?void 0:N.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let I=oF.get(null);Db(()=>{if(T)return I.actions.push(r),()=>I.actions.pop(r)},[I,r,T]);let O=iF(I,(0,u().useCallback)(e=>I.selectors.isTop(e,r),[I,r]));CF(O,_,e=>{e.preventDefault(),x()}),function(e,t=("undefined"!=typeof document?document.defaultView:null),n){let r=sF(e,"escape");jM(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===xE.Escape&&n(e))})}(O,null==y?void 0:y.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),x()}),function(e,t,n=()=>[document.body]){UF(sF(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!c&&!C&&T,y,_),function(e,t,n){let r=Rb(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,u().useEffect)(()=>{if(!e)return;let n=null===t?null:eE(t)?t:t.current;if(!n)return;let o=Ib();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}return()=>o.dispose()},[t,r,e])}(T,m,x);let[D,R]=function(){let[e,t]=(0,u().useState)([]);return[e.length>0?e.join(" "):void 0,(0,u().useMemo)(()=>function(e){let n=Pb(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),r=(0,u().useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return u().createElement($F.Provider,{value:r},e.children)},[t])]}(),P=(0,u().useMemo)(()=>[{dialogState:v,close:x,setTitleId:w,unmount:d},b],[v,x,w,d,b]),L=Mb({open:0===v}),M={ref:g,id:r,role:s,tabIndex:-1,"aria-modal":c?void 0:0===v||void 0,"aria-labelledby":b.titleId,"aria-describedby":D,unmount:d},F=!function(){var e;let[t]=(0,u().useState)(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,u().useState)(null!=(e=null==t?void 0:t.matches)&&e);return Db(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}},[t]),n}(),j=ZF.None;T&&!c&&(j|=ZF.RestoreFocus,j|=ZF.TabLock,l&&(j|=ZF.AutoFocus),F&&(j|=ZF.InitialFocus));let B=uE();return u().createElement(Jb,null,u().createElement(VF,{force:!0},u().createElement(dj,null,u().createElement(mj.Provider,{value:P},u().createElement(uj,{target:m},u().createElement(VF,{force:!1},u().createElement(R,{slot:L},u().createElement(S,null,u().createElement(tj,{initialFocus:a,initialFocusFallback:m,containers:_,features:j},u().createElement(qb,{value:x},B({ourProps:M,theirProps:p,slot:L,defaultTag:bj,features:Ej,visible:0===v,name:"Dialog"})))))))))))}),bj="div",Ej=lE.RenderStrategy|lE.Static;let xj=mE(function(e,t){let{transition:n=!1,open:r,...o}=e,i=Kb(),a=e.hasOwnProperty("open")||null!==i,s=e.hasOwnProperty("onClose");if(!a&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&"boolean"!=typeof e.open)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return void 0===r&&!n||o.static?u().createElement(PF,null,u().createElement(vj,{ref:t,open:r,...o})):u().createElement(PF,null,u().createElement(lx,{show:r,transition:n,unmount:o.unmount},u().createElement(vj,{ref:t,...o})))}),wj=mE(function(e,t){let n=(0,u().useId)(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:a,unmount:s},l]=gj("Dialog.Panel"),c=Bb(t,l.panelRef),d=Mb({open:0===a}),p=Pb(e=>{e.stopPropagation()}),f={ref:c,id:r,onClick:p},h=o?sx:u().Fragment,m=o?{unmount:s}:{},g=uE();return u().createElement(h,{...m},g({ourProps:f,theirProps:i,slot:d,defaultTag:"div",name:"Dialog.Panel"}))}),Tj=(mE(function(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:i}]=gj("Dialog.Backdrop"),a=Mb({open:0===o}),s={ref:t,"aria-hidden":!0},l=n?sx:u().Fragment,c=n?{unmount:i}:{},d=uE();return u().createElement(l,{...c},d({ourProps:s,theirProps:r,slot:a,defaultTag:"div",name:"Dialog.Backdrop"}))}),mE(function(e,t){let n=(0,u().useId)(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:a}]=gj("Dialog.Title"),s=Bb(t);(0,u().useEffect)(()=>(a(r),()=>a(null)),[r,a]);let l=Mb({open:0===i}),c={ref:s,id:r};return uE()({ourProps:c,theirProps:o,slot:l,defaultTag:"h2",name:"Dialog.Title"})})),kj=Object.assign(xj,{Panel:wj,Title:Tj,Description:qF});function Sj(){}function Aj({className:e,children:t,open:n,onClose:r=Sj,size:o}){return(0,c().jsx)(lx,{show:n,as:u().Fragment,children:(0,c().jsxs)(kj,{onClose:r,children:[(0,c().jsx)(sx,{as:u().Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,c().jsx)("div",{className:"fixed inset-0 bg-black-300/50"})}),(0,c().jsx)("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto",children:(0,c().jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,c().jsx)(sx,{as:u().Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,c().jsx)(wj,{className:Hp("relative transform overflow-hidden rounded-lg bg-primary dark:bg-primary-dark shadow-modal transition-all",{"w-modal-sm":"sm"===o,"w-modal-md":"md"===o,"w-modal-lg":"lg"===o,"w-modal-xl":"xl"===o}),children:(0,c().jsx)("div",{className:Hp(e,"flex flex-col"),children:t})})})})})]})})}function Nj({className:e,children:t}){return(0,c().jsx)("div",{className:$p("flex gap-2 items-center",e),children:t})}function _j({className:e,label:t,size:n,type:r="text",...o}){return(0,c().jsxs)("div",{className:Hp(e,"flex flex-col gap-2"),children:[t&&(0,c().jsx)("label",{className:"text-heading dark:text-heading-dark font-medium font-heading text-md",htmlFor:o.name,children:t}),(0,c().jsx)("input",{...o,type:r,className:Hp("border-2 bg-input dark:bg-input-dark border-primary dark:border-primary-dark placeholder:text-placeholder placeholder:dark:text-placeholder-dark","focus:border-focused focus:dark:border-focused-dark focus:outline-none focus:border-2","disabled:bg-disabled disabled:dark:bg-disabled-dark disabled:text-disabled disabled:dark:text-disabled disabled:border-secondary disabled:dark:border-secondary-dark disabled:placeholder:text-disabled disabled:dark:placeholder:text-disabled-dark disabled:cursor-not-allowed",{"rounded-lg py-2 px-3":"md"===n,"rounded py-1 px-3":"sm"===n})})]})}Aj.Body=function({className:e,children:t}){return(0,c().jsx)("div",{className:Hp(e,"text-md flex-1 px-6 py-4 first:pt-6 last:pb-6"),children:t})},Aj.Description=function({className:e,children:t}){return(0,c().jsx)("p",{className:Bf("text-secondary dark:text-secondary-dark text-md font-normal",e),children:t})},Aj.Footer=function({className:e,children:t}){return(0,c().jsx)("footer",{className:Hp(e,"flex px-6 pt-4 pb-6 justify-end has-[>:nth-child(2)]:justify-between"),children:t})},Aj.Header=function({className:e,children:t}){return(0,c().jsx)("header",{className:Hp(e,"flex flex-col pt-6 px-6 pb-4 gap-2"),children:t})},Aj.Title=function({className:e,children:t}){return(0,c().jsx)(Tj,{as:"h3",className:Hp(e,"text-heading dark:text-heading-dark text-xl font-medium font-heading"),children:t})};const Cj=({onClose:e,graphRef:t,setGraphRef:n,setNewGraphRefLoading:r,newGraphRefLoading:o,postMessage:i,wasTriggeredByIntrospectionFailure:a})=>{const[s,l]=(0,u().useState)(),[d,p]=(0,u().useState)();return(0,c().jsxs)(Aj,{open:!0,onClose:e,size:"lg",className:"min-h-[422px]",children:[(0,c().jsxs)(Aj.Header,{className:Hp("flex-col",{hidden:o}),children:[(0,c().jsx)(FM,{className:"w-[125px] h-[100px] m-auto"}),(0,c().jsx)(Aj.Title,{children:a?"We could not introspect your schema.":"Choose another graph to populate the Explorer."})]}),(0,c().jsx)(Aj.Body,{className:"flex flex-col",children:o?(0,c().jsx)("div",{className:"flex flex-1 items-center justify-center",children:(0,c().jsx)(MM,{})}):(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:[a?"Would you like to use a schema registered in Apollo Studio to populate Explorer? ":"","To continue, log in and authorize to use your Studio account."," ",(0,c().jsx)("strong",{className:"font-semibold",children:"You must enable popups on your browser to use this feature."})]}),(0,c().jsxs)("div",{className:"flex gap-2 justify-between mt-6 [@media(max-width:500px)]:flex-col",children:[(0,c().jsx)(_j,{autoFocus:!0,label:"Graph id",size:"sm",placeholder:"acephei",value:s,onChange:e=>l(e.target.value)}),(0,c().jsx)(_j,{label:"Graph variant",size:"sm",name:"value",placeholder:"current",value:d,onChange:e=>p(e.target.value)})]})]})}),(0,c().jsx)(Aj.Footer,{className:Hp({hidden:o}),children:(0,c().jsxs)(Nj,{children:[(0,c().jsx)(eg,{type:"button",variant:"secondary",size:"md",onClick:e,children:"Cancel"}),(0,c().jsx)(eg,{variant:"primary",size:"md",disabled:!s||!d,onClick:()=>{const e=`${s}@${d}`;s&&d&&e!==t&&(r(!0),(e=>{const t=window.localStorage.getItem("apolloStudioEmbeddedExplorerEncodedApiKey"),n=t?JSON.parse(t):{};return Object.keys(n).some(t=>{const n=t.split(":");return n[n.length-1]===e})})(e)?n(e):i({name:"DevTools_AuthenticateWithGraphRef",graphRef:e}))},children:"Authorize"})]})})]})},Ij=SS(window);var Oj;function Dj({operation:e,operationName:t,variables:n,fetchPolicy:r,isSubscription:o,clientId:i}){return new xt(a=>{Ij.send({type:"explorerRequest",payload:{clientId:i,operation:tp(e),operationName:t,variables:n,fetchPolicy:r}});const s=Ij.on("explorerResponse",e=>{const{payload:n}=e;if(n.operationName===t)if(a.next(n.response),o){const e=t=>{t.data.name.startsWith("ExplorerSubscriptionTermination")&&(Ij.send({type:"explorerSubscriptionTermination"}),a.complete(),window.removeEventListener("message",e),s())};window.addEventListener("message",e)}else a.complete(),s()})})}!function(e){e.NoCache="no-cache",e.CacheOnly="cache-only"}(Oj||(Oj={}));const Rj=({clientId:e,isVisible:t,explorerRef:n})=>{const[r,o]=(0,u().useState)(),[i,a]=(0,u().useState)(!1),s=t&&i,[l,d]=(0,u().useState)(!1);(0,u().useEffect)(()=>{r&&(e=>{window.localStorage.setItem("explorerGraphRef",e)})(r)},[r]);const[p,f]=(0,u().useState)(Oj.NoCache),h=(0,u().useCallback)(e=>{g.current.promise.then(t=>{Im({embeddedExplorerIFrame:t,message:e})})},[]);(0,u().useImperativeHandle)(n,()=>({postMessage:h}),[h]);const m=Mp(xd),g=(0,u().useRef)(Promise.withResolvers());const y=(0,u().useRef)({clientId:null}),v=(0,u().useEffectEvent)(()=>{if(!e)return;if(y.current.clientId===e)return;y.current={clientId:e};Dj({clientId:e,operation:PM(),operationName:"IntrospectionQuery",variables:void 0,isSubscription:!1,fetchPolicy:Oj.NoCache}).subscribe({next:e=>{if(e.error||e.errors){const t=window.localStorage.getItem("explorerGraphRef");t?o(t):setTimeout(()=>{a("triggeredByIntrospectionFailure")},100),h({name:"SchemaError",errors:e.errors,error:e.error?.message})}else h({name:"SchemaResponse",schema:e.data})}})});(0,u().useEffect)(()=>{e&&t&&v()},[e,t]),(0,u().useEffect)(()=>{if(e){const t=t=>{const n="ExplorerRequest"===t.data.name,r="ExplorerSubscriptionRequest"===t.data.name;if((n||r)&&t.data.operation){const o=Dj({clientId:e,operation:t.data.operation,operationName:t.data.operationName,variables:t.data.variables??void 0,fetchPolicy:p,isSubscription:r}),i=t.data.operationId;o.subscribe(e=>{h({name:n?"ExplorerResponse":"ExplorerSubscriptionResponse",operationId:i,response:e})})}};return window.addEventListener("message",t),()=>window.removeEventListener("message",t)}},[e,p,h]);const b=(0,u().useMemo)(()=>`${Cm}?sendRequestsFrom=parent&shouldPersistState=false&showHeadersAndEnvVars=false&shouldShowGlobalHeader=false&parentSupportsSubscriptions=true&theme=${m}${r?`&graphRef=${r}`:""}`,[m,r]);return(0,c().jsxs)(LM,{children:[(0,c().jsxs)("div",{className:"py-2 px-4 flex items-center border-b border-primary dark:border-primary-dark",children:[(0,c().jsxs)("label",{htmlFor:"loadFromCache",className:"flex items-center mr-8 text-sm",children:[(0,c().jsx)("input",{id:"loadFromCache",className:"mr-3",type:"checkbox",name:"loadFromCache",checked:p===Oj.CacheOnly,onChange:()=>f(e=>e===Oj.CacheOnly?Oj.NoCache:Oj.CacheOnly)}),"Load from cache"]}),r&&(0,c().jsx)(eg,{onClick:()=>{a("triggeredManually")},variant:"hidden",size:"xs",children:"Choose a different Studio graph"})]}),(0,c().jsxs)(LM.Main,{className:"flex",children:[(0,c().jsx)("iframe",{id:"embedded-explorer",className:"w-dvw h-full border-none",src:b,ref:function(e){function t(t){"ExplorerListeningForHandshake"===t.data.name&&(g.current.resolve(e),(({graphRef:e,embeddedExplorerIFrame:t})=>{Im({message:{name:"HandshakeResponse",graphRef:e},embeddedExplorerIFrame:t})})({embeddedExplorerIFrame:e,graphRef:r}));(({event:e,embeddedExplorerIFrame:t,setGraphRef:n,closeGraphRefModal:r,onAuthHandshakeReceived:o})=>{const{data:i}=e;if("SetPartialAuthenticationTokenForParent"===i.name){const e=window.localStorage.getItem("apolloStudioEmbeddedExplorerEncodedApiKey"),t=e?JSON.parse(e):{};t[i.localStorageKey]=i.partialToken,window.localStorage.setItem("apolloStudioEmbeddedExplorerEncodedApiKey",JSON.stringify(t)),n(i.graphRef),r()}if("ExplorerListeningForPartialToken"===i.name&&i.localStorageKey){const e=window.localStorage.getItem("apolloStudioEmbeddedExplorerEncodedApiKey"),n=e?JSON.parse(e):{};n&&n[i.localStorageKey]&&(o(),Im({embeddedExplorerIFrame:t,message:{name:"PartialAuthenticationTokenResponse",partialToken:n[i.localStorageKey]}}))}})({embeddedExplorerIFrame:e,event:t,setGraphRef:o,closeGraphRefModal:()=>a(!1),onAuthHandshakeReceived:()=>{d(!1),a(!1)}})}return window.addEventListener("message",t),()=>window.removeEventListener("message",t)}}),s&&(0,c().jsx)(Cj,{graphRef:r,setGraphRef:o,postMessage:h,onClose:()=>a(!1),setNewGraphRefLoading:d,newGraphRefLoading:l,wasTriggeredByIntrospectionFailure:"triggeredByIntrospectionFailure"===i})]})]})};var Pj;function Lj(){return Lj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lj.apply(null,arguments)}const Mj=function(e){return u().createElement("svg",Lj({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},e),Pj||(Pj=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h-9m0 0 4.25-4.25M1.5 6l4.25 4.25"})))};var Fj;function jj(){return jj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jj.apply(null,arguments)}const Bj=function(e){return u().createElement("svg",jj({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},e),Fj||(Fj=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.5 6h9m0 0L6.25 1.75M10.5 6l-4.25 4.25"})))};var Uj;function zj(){return zj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zj.apply(null,arguments)}const Vj=function(e){return u().createElement("svg",zj({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Uj||(Uj=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3.028 12.972a7.03 7.03 0 1 1 9.944-9.944m-9.944 9.944a7.03 7.03 0 0 0 9.944 0 7.03 7.03 0 0 0 0-9.944m-9.944 9.944 9.944-9.944"})))};var Hj;function $j(){return $j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$j.apply(null,arguments)}const Gj=function(e){return u().createElement("svg",$j({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Hj||(Hj=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M14 8H2m0 0 5.667-5.667M2 8l5.667 5.667"})))};function Wj(e){return wp("useFragment",qj,kp(e.client))(e)}function qj(e){const t=kp(e.client),{from:n,...r}=e,{cache:o}=t,i=Tp(()=>{const e=(Array.isArray(n)?n:[n]).map(e=>"string"==typeof e?e:null===e?null:o.identify(e));return Array.isArray(n)?e:e[0]},[o,n]),a=Tp(()=>({...r,from:i}),[r,i]),s=u().useMemo(()=>t.watchFragment(a),[t,a]),l=u().useCallback(()=>null===n?Yj:s.getCurrentResult(),[n,s]);return Ip(u().useCallback(e=>{let t=0;const n=s.subscribe({next:()=>{clearTimeout(t),t=setTimeout(e)}});return()=>{n.unsubscribe(),clearTimeout(t)}},[s]),l,l)}const Yj=Object.freeze({data:{},dataState:"partial",complete:!1});class Qj{oldValue;newValue;constructor(e,t){this.oldValue=e,this.newValue=t}}class Kj{value;constructor(e){this.value=e}}class Xj{value;constructor(e){this.value=e}}function Jj(e,t){if(e!==t){if(Array.isArray(e)){if(!Array.isArray(t))return new Qj(e,t);const n=[];for(let r=0;r<Math.max(e.length,t.length);r++)if(Object.hasOwn(e,r)&&Object.hasOwn(t,r)){const o=Jj(e[r],t[r]);void 0!==o&&(n[r]=o)}else Object.hasOwn(e,r)?n[r]=new Xj(e[r]):n[r]=new Kj(t[r]);return 0===n.length?void 0:n}if(Zj(e)){if(!Zj(t))return new Qj(e,t);const n=new Set([...Object.keys(e),...Object.keys(t)]),r={};for(const o of n)if(Object.hasOwn(e,o)&&Object.hasOwn(t,o)){const n=Jj(e[o],t[o]);void 0!==n&&(r[o]=n)}else Object.hasOwn(e,o)?r[o]=new Xj(e[o]):r[o]=new Kj(t[o]);return 0===Object.keys(r).length?void 0:r}return new Qj(e,t)}}function Zj(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function eB({diff:e}){return(0,c().jsx)(mS,{value:e,getTypeOf:e=>{if(e instanceof Qj)return"Changed"},customRenderers:{Changed:sB},builtinRenderers:{arrayItem:iB,arrayIndex:aB,collapsedArray:aB,collapsedObject:aB,objectPair:iB,string:aB,boolean:aB,number:aB,null:aB,undefined:aB,objectKey:oB,sparseArrayEmptyItem:lB}})}const{border:tB,text:nB}=e().colors.tokens;function rB(){const e=function(){const e=xk();return(0,u().useCallback)(t=>Object.fromEntries(Object.entries(t).filter(([,e])=>e).map(([t,n])=>[`--ov-${t}-color`,n[e]])),[e])}();return(0,u().useCallback)(({indentGuide:t,textColor:n,punctuation:r})=>e({arrow:r,indentGuide:t,typeNumber:n,typeBoolean:n,typeString:n,objectKey:n,punctuation:r,ellipsis:r}),[e])}function oB({DefaultRender:e,...t}){const n=(0,u().useCallback)(t=>(0,c().jsx)(e,{...t,softWrapCharacters:["{",":",","]}),[e]);return(0,c().jsx)(aB,{...t,DefaultRender:n})}function iB({value:t,DefaultRender:n}){const r=rB();return t instanceof Kj?(0,c().jsx)(n,{className:"bg-successSelected dark:bg-successSelected-dark",value:t.value,style:r({indentGuide:{base:tB.success.base,dark:e().colors.primitives.green[200]},textColor:nB.success,punctuation:nB.neutral})}):t instanceof Xj?(0,c().jsx)(n,{className:"bg-errorSelected dark:bg-errorSelected-dark",value:t.value,style:r({indentGuide:tB.error,textColor:nB.error,punctuation:nB.neutral}),context:{mode:"deleted"}}):t instanceof Qj?(0,c().jsx)(n,{collapsible:!1}):(0,c().jsx)(n,{})}function aB({className:e,context:t,DefaultRender:n}){return(0,c().jsx)(n,{className:Hp({"line-through":"deleted"===t?.mode},e)})}function sB({value:e,DefaultRender:t}){const n=rB();return(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(t,{className:"bg-errorSelected dark:bg-errorSelected-dark",value:e.oldValue,context:{mode:"deleted"},style:n({textColor:nB.error,punctuation:nB.neutral})}),(0,c().jsx)("span",{className:"text-[var(--ov-punctuation-color)]",children:" => "}),(0,c().jsx)(t,{className:"bg-successSelected dark:bg-successSelected-dark",value:e.newValue,style:n({textColor:nB.success,punctuation:nB.neutral})})]})}function lB({DefaultRender:e}){return(0,c().jsx)(e,{label:"unchanged"})}function cB(){return cB.c||(cB.c=n.t(f(),2))}function uB(e){return null!==e&&"object"==typeof e}f();var dB=Object.prototype.hasOwnProperty;function pB(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new hB,o=1;o<n;++o)t=r.merge(t,e[o]);return t}var fB=function(e,t,n){return this.merge(e[n],t[n])},hB=function(){function e(e){void 0===e&&(e=fB),this.reconciler=e,this.isObject=uB,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return uB(t)&&uB(e)?(Object.keys(t).forEach(function(o){if(dB.call(e,o)){var i=e[o];if(t[o]!==i){var a=n.reconciler.apply(n,$e([e,t,o],r,!1));a!==i&&((e=n.shallowCopyForMerge(e))[o]=a)}}else(e=n.shallowCopyForMerge(e))[o]=t[o]}),e):t},e.prototype.shallowCopyForMerge=function(e){return uB(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):je({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}(),mB="Invariant Violation",gB=Object.setPrototypeOf,yB=void 0===gB?function(e,t){return e.__proto__=t,e}:gB,vB=function(e){function t(n){void 0===n&&(n=mB);var r=e.call(this,"number"==typeof n?mB+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=mB,yB(r,t.prototype),r}return Fe(t,e),t}(Error);function bB(e,t){if(!e)throw new vB(t)}var EB=["debug","log","warn","error","silent"],xB=EB.indexOf("log");function wB(e){return function(){if(EB.indexOf(e)>=xB)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=wB("debug"),e.log=wB("log"),e.warn=wB("warn"),e.error=wB("error")}(bB||(bB={}));var TB="3.14.1";function kB(e){try{return e()}catch(e){}}const SB=kB(function(){return globalThis})||kB(function(){return window})||kB(function(){return self})||kB(function(){return n.g})||kB(function(){return kB.constructor("return this")()});var AB=new Map;function NB(e,t){void 0===t&&(t=0);var n,r,o=(n="stringifyForDisplay",r=AB.get(n)||1,AB.set(n,r+1),"".concat(n,":").concat(r,":").concat(Math.random().toString(36).slice(2)));return JSON.stringify(e,function(e,t){return void 0===t?o:t},t).split(JSON.stringify(o)).join("<undefined>")}function _B(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var o=t;(t=DB(o))||(t=RB(o,n),n=[])}e.apply(void 0,[t].concat(n))}}var CB=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||bB(e,DB(t,n)||RB(t,n))},{debug:_B(bB.debug),log:_B(bB.log),warn:_B(bB.warn),error:_B(bB.error)});var IB=Symbol.for("ApolloErrorMessageHandler_"+TB);function OB(e){if("string"==typeof e)return e;try{return NB(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function DB(e,t){if(void 0===t&&(t=[]),e)return SB[IB]&&SB[IB](e,t.map(OB))}function RB(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:TB,message:e,args:t.map(OB)})))}globalThis.__DEV__;var PB="ReactNative"==kB(function(){return navigator.product}),LB=("function"==typeof WeakMap&&(PB&&n.g.HermesInternal),"function"==typeof Symbol&&"function"==typeof Symbol.for),MB=(LB&&Symbol.asyncIterator,"function"==typeof kB(function(){return window.document.createElement})),FB=kB(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,jB=(MB||PB)&&!FB,BB=LB?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function UB(){CB("createContext"in cB(),69);var e=f().createContext[BB];return e||(Object.defineProperty(f().createContext,BB,{value:e=f().createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}function zB(e){var t=f().useContext(UB()),n=e||t.client;return CB(!!n,78),n}var VB=!1,HB=cB().useSyncExternalStore||function(e,t,n){var r=t();!1===globalThis.__DEV__||VB||r===t()||(VB=!0,!1!==globalThis.__DEV__&&CB.error(91));var o=f().useState({inst:{value:r,getSnapshot:t}}),i=o[0].inst,a=o[1];return jB?f().useLayoutEffect(function(){Object.assign(i,{value:r,getSnapshot:t}),$B(i)&&a({inst:i})},[e,r,t]):Object.assign(i,{value:r,getSnapshot:t}),f().useEffect(function(){return $B(i)&&a({inst:i}),e(function(){$B(i)&&a({inst:i})})},[e]),r};function $B(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(e){return!0}}var GB,WB=Symbol.for("apollo.hook.wrappers");var qB=Symbol.for("apollo.deprecations"),YB=Symbol.for("apollo.deprecations.slot"),QB=SB,KB=null!==(GB=QB[YB])&&void 0!==GB?GB:QB[YB]=new Gn;function XB(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return KB.withValue.apply(KB,$e([Array.isArray(e)?e:[e]],t,!1))}function JB(e,t,n,r){void 0===r&&(r="Please remove this option."),function(e,t){(function(e){return QB[qB]||(KB.getValue()||[]).includes(e)})(e)||t()}(t,function(){t in e&&!1!==globalThis.__DEV__&&CB.warn(103,n,t,r)})}function ZB(e){return(t="useFragment",n=eU,r=zB(e.client),o=r.queryManager,i=o&&o[WB],(a=i&&i[t])?a(n):n)(e);var t,n,r,o,i,a}function eU(e){!1!==globalThis.__DEV__&&function(e,t,n,r){void 0===r&&(r="Please remove this option.");var o=f().useRef(!1);!1!==globalThis.__DEV__&&t in e&&!o.current&&(JB(e,t,n,r),o.current=!0)}(e,"canonizeResults","useFragment");var t,n,r,o=zB(e.client),i=o.cache,a=e.from,s=Be(e,["from"]),l=f().useMemo(function(){return"string"==typeof a?a:null===a?null:i.identify(a)},[i,a]),c=(t=function(){return je(je({},s),{from:l})},n=[s,l],(r=f().useRef(void 0)).current&&An(r.current.deps,n)||(r.current={value:t(),deps:n}),r.current.value),u=f().useMemo(function(){var e=c.fragment,t=c.fragmentName,n=c.from,r=c.optimistic,i=void 0===r||r;if(null===n)return{result:tU({result:{},complete:!1})};var a=o.cache,s=XB("canonizeResults",function(){return a.diff(je(je({},c),{returnPartialData:!0,id:n,query:a.getFragmentDoc(e,t),optimistic:i}))});return{result:tU(je(je({},s),{result:o.queryManager.maskFragment({fragment:e,fragmentName:t,data:s.result})}))}},[o,c]),d=f().useCallback(function(){return u.result},[u]);return HB(f().useCallback(function(e){var t=0,n=XB("canonizeResults",function(){return null===c.from?null:o.watchFragment(c).subscribe({next:function(n){Nn(n,u.result)||(u.result=n,clearTimeout(t),t=setTimeout(e))}})});return function(){null==n||n.unsubscribe(),clearTimeout(t)}},[o,c,u]),d,d)}function tU(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=pB(e.missing.map(function(e){return e.missing}))),t}const nU=Qm(["rounded-sm","py-0.5","px-1","uppercase","font-bold","text-xs"],{variants:{variant:{info:["bg-info","text-info","dark:bg-info-dark","dark:text-info-dark"],success:["bg-success","text-success","dark:bg-success-dark","dark:text-success-dark"],error:["bg-error","text-error","dark:bg-error-dark","dark:text-error-dark"],beta:["bg-beta","text-beta","dark:bg-beta-dark","dark:text-beta-dark"],warning:["bg-warning","text-warning","dark:bg-warning-dark","dark:text-warning-dark"],neutral:["bg-neutral","text-neutral","dark:bg-neutral-dark","dark:text-neutral-dark"],primary:["bg-primary","text-primary","dark:bg-primary-dark","dark:text-primary-dark"],brand:["bg-primary","text-primary","dark:bg-primary-dark","dark:text-primary-dark","border","border-brand-horizon"]}}}),rU=(0,u().forwardRef)(({className:e,children:t,variant:n,...r},o)=>(0,c().jsx)("span",{...r,className:Bf(nU({variant:n}),e),ref:o,children:t}));function oU({document:e}){const t=Ro(e),n=t.kind===Pt.OPERATION_DEFINITION?t.operation:"fragment";return(0,c().jsx)(gk,{content:n.slice(0,1).toUpperCase()+n.slice(1),delayDuration:1e3,children:(0,c().jsx)(rU,{variant:"info",className:"font-code shrink-0 size-5 inline-flex items-center justify-center",children:n.at(0)?.toUpperCase()})})}const iU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function aU(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const sU={date:aU({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:aU({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:aU({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},lU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function cU(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function uU(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,e=>e.test(a)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,e=>e.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(a.length)}}}var dU;const pU={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=iU[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:sU,formatRelative:(e,t,n,r)=>lU[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:cU({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:cU({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:cU({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:cU({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:cU({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(dU={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(dU.matchPattern);if(!n)return null;const r=n[0],o=e.match(dU.parsePattern);if(!o)return null;let i=dU.valueCallback?dU.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:uU({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:uU({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:uU({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:uU({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:uU({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};let fU={};function hU(){return fU}Math.pow(10,8);const mU=6048e5,gU=Symbol.for("constructDateFrom");function yU(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&gU in e?e[gU](t):e instanceof Date?new e.constructor(t):new Date(t)}function vU(e,t){return yU(t||e,e)}function bU(e){const t=vU(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function EU(e,t){const n=vU(e,t?.in);return n.setHours(0,0,0,0),n}function xU(e,t,n){const[r,o]=function(e,...t){const n=yU.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}(n?.in,e,t),i=EU(r),a=EU(o),s=+i-bU(i),l=+a-bU(a);return Math.round((s-l)/864e5)}function wU(e,t){const n=vU(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function TU(e,t){const n=vU(e,t?.in);return xU(n,wU(n))+1}function kU(e,t){const n=hU(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=vU(e,t?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function SU(e,t){return kU(e,{...t,weekStartsOn:1})}function AU(e,t){const n=vU(e,t?.in),r=n.getFullYear(),o=yU(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=SU(o),a=yU(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=SU(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function NU(e,t){const n=AU(e,t),r=yU(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),SU(r)}function _U(e,t){const n=vU(e,t?.in),r=+SU(n)-+NU(n);return Math.round(r/mU)+1}function CU(e,t){const n=vU(e,t?.in),r=n.getFullYear(),o=hU(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=yU(t?.in||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=kU(a,t),l=yU(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=kU(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function IU(e,t){const n=hU(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=CU(e,t),i=yU(t?.in||e,0);i.setFullYear(o,0,r),i.setHours(0,0,0,0);return kU(i,t)}function OU(e,t){const n=vU(e,t?.in),r=+kU(n,t)-+IU(n,t);return Math.round(r/mU)+1}function DU(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const RU={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return DU("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):DU(n+1,2)},d:(e,t)=>DU(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>DU(e.getHours()%12||12,t.length),H:(e,t)=>DU(e.getHours(),t.length),m:(e,t)=>DU(e.getMinutes(),t.length),s:(e,t)=>DU(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return DU(Math.trunc(r*Math.pow(10,n-3)),t.length)}},PU="midnight",LU="noon",MU="morning",FU="afternoon",jU="evening",BU="night",UU={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return RU.y(e,t)},Y:function(e,t,n,r){const o=CU(e,r),i=o>0?o:1-o;if("YY"===t){return DU(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):DU(i,t.length)},R:function(e,t){return DU(AU(e),t.length)},u:function(e,t){return DU(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return DU(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return DU(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return RU.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return DU(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=OU(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):DU(o,t.length)},I:function(e,t,n){const r=_U(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):DU(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):RU.d(e,t)},D:function(e,t,n){const r=TU(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):DU(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return DU(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return DU(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return DU(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?LU:0===r?PU:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?jU:r>=12?FU:r>=4?MU:BU,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return RU.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):RU.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):DU(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):DU(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):RU.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):RU.s(e,t)},S:function(e,t){return RU.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return VU(r);case"XXXX":case"XX":return HU(r);default:return HU(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return VU(r);case"xxxx":case"xx":return HU(r);default:return HU(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zU(r,":");default:return"GMT"+HU(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zU(r,":");default:return"GMT"+HU(r,":")}},t:function(e,t,n){return DU(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return DU(+e,t.length)}};function zU(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+DU(i,2)}function VU(e,t){if(e%60==0){return(e>0?"-":"+")+DU(Math.abs(e)/60,2)}return HU(e,t)}function HU(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+DU(Math.trunc(r/60),2)+t+DU(r%60,2)}const $U=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},GU=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},WU={p:GU,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return $U(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",$U(r,t)).replace("{{time}}",GU(o,t))}},qU=/^D+$/,YU=/^Y+$/,QU=["D","DD","YY","YYYY"];function KU(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function XU(e){return!(!KU(e)&&"number"!=typeof e||isNaN(+vU(e)))}const JU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ez=/^'([^]*?)'?$/,tz=/''/g,nz=/[a-zA-Z]/;function rz(e,t,n){const r=hU(),o=n?.locale??r.locale??pU,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=vU(e,n?.in);if(!XU(s))throw new RangeError("Invalid time value");let l=t.match(ZU).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,WU[t])(e,o.formatLong)}return e}).join("").match(JU).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:oz(e)};if(UU[t])return{isToken:!0,value:e};if(t.match(nz))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return YU.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return qU.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),QU.includes(e))throw new RangeError(r)}(i,t,String(e));return(0,UU[i[0]])(s,i,o.localize,c)}).join("")}function oz(e){const t=e.match(ez);return t?t[1].replace(tz,"'"):e}const iz=tp`
  fragment DirectCacheWriteListItem_cacheWrite on DirectCacheWrite {
    writeOptions: options
    timestamp
  }
`;function az({cacheWrite:e}){const{data:t,complete:n}=ZB({fragment:iz,from:e});if(!n)return null;const{timestamp:r,writeOptions:o}=t,i=kt(o.query,"(anonymous)");return(0,c().jsxs)("div",{className:"flex flex-col gap-1",children:[(0,c().jsxs)("span",{className:"font-code inline-flex items-center gap-2",children:[(0,c().jsx)(oU,{document:o.query}),(0,c().jsxs)("span",{className:"overflow-hidden text-ellipsis",children:["cache.",(0,c().jsx)("span",{className:"text-code-e dark:text-code-e-dark",children:"write"}),"(",(0,c().jsxs)("span",{className:"text-code-d dark:text-code-d-dark",title:i,children:[i,")"]})]})]}),(0,c().jsx)("span",{className:"text-xs text-secondary dark:text-secondary-dark",children:rz(new Date(r),"MMM do, yyyy pp")})]})}FS.register(iz);const sz=tp`
  fragment WriteQueryListItem_cacheWrite on WriteQueryCacheWrite {
    writeQueryOptions: options
    timestamp
  }
`;function lz({cacheWrite:e}){const{data:t,complete:n}=ZB({fragment:sz,from:e});if(!n)return null;const{timestamp:r,writeQueryOptions:o}=t,i=kt(o.query,"(anonymous)");return(0,c().jsxs)("div",{className:"flex flex-col gap-1",children:[(0,c().jsxs)("span",{className:"font-code inline-flex items-center gap-2",children:[(0,c().jsx)(oU,{document:o.query}),(0,c().jsxs)("span",{className:"overflow-hidden text-ellipsis",children:["cache.",(0,c().jsx)("span",{className:"text-code-e dark:text-code-e-dark",children:"writeQuery"}),"(",(0,c().jsx)("span",{className:"text-code-d dark:text-code-d-dark",title:i,children:i}),")"]})]}),(0,c().jsx)("span",{className:"text-xs text-secondary dark:text-secondary-dark",children:rz(new Date(r),"MMM do, yyyy pp")})]})}FS.register(sz);const cz=tp`
  fragment WriteFragmentListItem_cacheWrite on WriteFragmentCacheWrite {
    writeFragmentOptions: options
    timestamp
  }
`;function uz({cacheWrite:e}){const{data:t,complete:n}=ZB({fragment:cz,from:e});if(!n)return null;const{timestamp:r,writeFragmentOptions:o}=t,{fragment:i,fragmentName:a}=o,s=i.definitions.filter(e=>e.kind===Pt.FRAGMENT_DEFINITION),l=a??s[0].name.value;return(0,c().jsxs)("div",{className:"flex flex-col gap-1",children:[(0,c().jsxs)("span",{className:"font-code inline-flex items-center gap-2",children:[(0,c().jsx)(oU,{document:i}),(0,c().jsxs)("span",{className:"overflow-hidden text-ellipsis",children:["cache.",(0,c().jsx)("span",{className:"text-code-e dark:text-code-e-dark",children:"writeFragment"}),"(",(0,c().jsx)("span",{className:"text-code-d dark:text-code-d-dark",title:l,children:l}),")"]})]}),(0,c().jsx)("span",{className:"text-xs text-secondary dark:text-secondary-dark",children:rz(new Date(r),"MMM do, yyyy pp")})]})}FS.register(cz);const dz=tp`
  fragment CacheModifyListItem_cacheWrite on CacheModifyWrite {
    modifyOptions: options
    timestamp
  }
`;function pz({cacheWrite:e}){const{data:t,complete:n}=ZB({fragment:dz,from:e});if(!n)return null;const{timestamp:r,modifyOptions:o}=t,i=o.id??"ROOT_QUERY";return(0,c().jsxs)("div",{className:"flex flex-col gap-1",children:[(0,c().jsxs)("span",{className:"overflow-hidden text-ellipsis",children:["cache.",(0,c().jsx)("span",{className:"text-code-e dark:text-code-e-dark",children:"modify"}),"(",(0,c().jsx)("span",{className:"text-code-d dark:text-code-d-dark",title:i,children:i}),")"]}),(0,c().jsx)("span",{className:"text-xs text-secondary dark:text-secondary-dark",children:rz(new Date(r),"MMM do, yyyy pp")})]})}function fz({className:e,isRecording:t}){return(0,c().jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:af("block",t?"text-icon-error dark:text-icon-error-dark":"text-icon-primary dark:text-icon-primary-dark",e),viewBox:"0 0 16 16",children:[(0,c().jsx)("circle",{cx:8,cy:8,r:7,strokeWidth:2,fill:"transparent",stroke:"currentColor"}),t?(0,c().jsx)("rect",{x:5,y:5,rx:1,ry:1,width:6,height:6,fill:"currentColor"}):(0,c().jsx)("circle",{cx:8,cy:8,r:4,fill:"currentColor"})]})}function hz({isRecording:e,onClick:t,label:n=(e?"Stop recording":"Record"),size:r}){return(0,c().jsx)(gk,{content:n,children:(0,c().jsx)(eg,{"aria-label":n,size:r,onClick:t,icon:(0,c().jsx)(fz,{isRecording:e}),variant:"hidden"})})}FS.register(dz);const mz=tp`
  fragment CacheWritesPanelFragment on CacheWrite {
    id
    ...DirectCacheWriteView_cacheWrite @nonreactive
    ...WriteFragmentView_cacheWrite @nonreactive
    ...WriteQueryView_cacheWrite @nonreactive
    ...CacheModifyView_cacheWrite @nonreactive
    ...CacheWritesListView_cacheWrites @nonreactive
  }
`;FS.register(mz);const gz=(0,u().memo)(({client:e,cacheWrites:t,isRecording:n,onToggleRecord:r})=>{const{data:o,complete:i}=Wj({fragment:mz,fragmentName:"CacheWritesPanelFragment",from:t}),[a,s]=(0,u().useState)(null);if(!i)return null;const l=o.find(e=>e.id===a),d=()=>s(null);return(0,c().jsx)(ph,{id:"cacheWrites",className:"flex flex-col grow basis-1/2",minSize:10,defaultSize:25,children:"DirectCacheWrite"===l?.__typename?(0,c().jsx)(kz,{cacheWrite:l,onNavigateBack:d}):"WriteFragmentCacheWrite"===l?.__typename?(0,c().jsx)(Az,{cacheWrite:l,onNavigateBack:d}):"CacheModifyWrite"===l?.__typename?(0,c().jsx)(xz,{cacheWrite:l,onNavigateBack:d}):l?(0,c().jsx)(_z,{cacheWrite:l,onNavigateBack:d}):(0,c().jsx)(vz,{client:e,cacheWrites:o,onSelect:s,isRecording:n,onToggleRecord:r})})}),yz=tp`
  fragment CacheWritesListView_cacheWrites on CacheWrite {
    id
    ...CacheModifyListItem_cacheWrite
    ...DirectCacheWriteListItem_cacheWrite
    ...WriteQueryListItem_cacheWrite
    ...WriteFragmentListItem_cacheWrite
  }
`;function vz({client:e,cacheWrites:t,isRecording:n,onSelect:r,onToggleRecord:o}){const{data:i,complete:a}=Wj({fragment:yz,fragmentName:"CacheWritesListView_cacheWrites",from:t}),s=kp();if(!a)return null;const l=[...i].reverse();return(0,c().jsxs)("div",{className:"flex flex-col grow !overflow-auto",children:[(0,c().jsxs)("section",{className:"flex items-center justify-between border-b border-b-primary dark:border-b-primary-dark py-2 px-4",children:[(0,c().jsxs)("h2",{className:"grow font-medium text-md text-heading dark:text-heading-dark",children:["Cache writes (",t.length,")"]}),(0,c().jsxs)("div",{className:"flex items-center gap-2",children:[(0,c().jsx)(hz,{isRecording:n,onClick:o,size:"sm"}),(0,c().jsx)(gk,{content:"Clear",children:(0,c().jsx)(eg,{"aria-label":"Clear",size:"sm",variant:"hidden",onClick:()=>{const{cache:t}=s;e&&t.modify({id:t.identify(e),fields:{cacheWrites:()=>[]}})},icon:(0,c().jsx)(Vj,{})})})]})]}),(0,c().jsx)(Gp,{className:"p-4",children:l.length>0?l.map(e=>(0,c().jsx)(Uf,{onClick:()=>r(e.id),children:"DirectCacheWrite"===e.__typename?(0,c().jsx)(az,{cacheWrite:e}):"WriteQueryCacheWrite"===e.__typename?(0,c().jsx)(lz,{cacheWrite:e}):"WriteFragmentCacheWrite"===e.__typename?(0,c().jsx)(uz,{cacheWrite:e}):(0,c().jsx)(pz,{cacheWrite:e})},e.id)):(0,c().jsx)(bz,{isRecording:n})})]})}function bz({isRecording:e}){return(0,c().jsx)("div",{className:"flex justify-center items-center mt-20",children:(0,c().jsx)("div",{className:"text-left",children:!e&&(0,c().jsxs)(c().Fragment,{children:["Press record"," ",(0,c().jsx)(fz,{className:"inline-block size-4 relative -top-0.5"})," to start listening for cache writes."]})})})}FS.register(yz);const Ez=tp`
  fragment CacheModifyView_cacheWrite on CacheModifyWrite {
    id
    diff
    modifyOptions: options
  }
`;function xz({cacheWrite:e,onNavigateBack:t}){const{data:n,complete:r}=Wj({fragment:Ez,from:e});if(!r)return null;const{diff:o,modifyOptions:i}=n;return(0,c().jsxs)(Oz,{children:[(0,c().jsx)(Dz,{title:i.id??"(unknown)",onNavigateBack:t}),(0,c().jsxs)(Rz,{children:[(0,c().jsxs)(Cz,{children:[(0,c().jsx)(Iz,{children:"Diff"}),null===o?(0,c().jsx)("span",{className:"text-secondary dark:text-secondary-dark italic",children:"Unchanged"}):(0,c().jsx)(eB,{diff:o})]}),(0,c().jsxs)(Cz,{children:[(0,c().jsx)(Iz,{children:"Options"}),(0,c().jsx)(wz,{options:i})]})]})]})}function wz({options:e}){return(0,c().jsxs)("div",{children:[(0,c().jsxs)("span",{className:"font-code inline-block align-bottom",children:["cache",(0,c().jsx)("span",{className:"text-code-a dark:text-code-a-dark",children:"."}),(0,c().jsx)("span",{className:"text-code-e dark:text-code-e-dark",children:"modify"}),"("]}),(0,c().jsx)(mS,{value:e,displayObjectSize:!1,collapsed:!1,tagName:"span",builtinRenderers:{string:({context:e,value:t,DefaultRender:n})=>"fields"===e?.option?(0,c().jsx)("span",{className:"text-[var(--ov-typeFunction-color)]",children:t}):(0,c().jsx)(n,{}),objectPair:({objectKey:e,DefaultRender:t})=>"fields"===e?(0,c().jsx)(t,{context:{option:e}}):(0,c().jsx)(t,{})}}),(0,c().jsx)("span",{className:"font-code inline-block align-bottom",children:")"})]})}FS.register(Ez);const Tz=tp`
  fragment DirectCacheWriteView_cacheWrite on DirectCacheWrite {
    id
    diff
    writeOptions: options
  }
`;function kz({cacheWrite:e,onNavigateBack:t}){const{data:n,complete:r}=Wj({fragment:Tz,from:e});if(!r)return null;const{query:o,result:i,variables:a}=n.writeOptions;return(0,c().jsxs)(Oz,{children:[(0,c().jsx)(Dz,{title:kt(o,"(anonymous)"),onNavigateBack:t}),(0,c().jsxs)(Rz,{children:[(0,c().jsx)(yv,{className:"shrink-0 max-h-96",language:"graphql",code:qr(o)}),(0,c().jsx)(Pz,{diff:n.diff}),(0,c().jsx)(Lz,{api:"cache.write",document:o,collapsed:({value:e,defaultCollapsed:t})=>e!==a&&e!==i&&t,options:n.writeOptions})]})]})}FS.register(Tz);const Sz=tp`
  fragment WriteFragmentView_cacheWrite on WriteFragmentCacheWrite {
    id
    diff
    writeFragmentOptions: options
  }
`;function Az({cacheWrite:e,onNavigateBack:t}){const{data:n,complete:r}=Wj({fragment:Sz,from:e});if(!r)return null;const{fragment:o,fragmentName:i,data:a,variables:s}=n.writeFragmentOptions,l=o.definitions.filter(e=>e.kind===Pt.FRAGMENT_DEFINITION);return(0,c().jsxs)(Oz,{children:[(0,c().jsx)(Dz,{title:i??l[0].name.value,onNavigateBack:t}),(0,c().jsxs)(Rz,{children:[(0,c().jsx)(yv,{className:"shrink-0 max-h-96",language:"graphql",code:qr(o)}),(0,c().jsx)(Pz,{diff:n.diff}),(0,c().jsx)(Lz,{api:"cache.writeFragment",document:o,collapsed:({value:e,defaultCollapsed:t})=>e!==s&&e!==a&&t,options:n.writeFragmentOptions})]})]})}FS.register(Sz);const Nz=tp`
  fragment WriteQueryView_cacheWrite on WriteQueryCacheWrite {
    id
    diff
    writeQueryOptions: options
  }
`;function _z({cacheWrite:e,onNavigateBack:t}){const{data:n,complete:r}=Wj({fragment:Nz,from:e});if(!r)return null;const{query:o,data:i,variables:a}=n.writeQueryOptions;return(0,c().jsxs)(Oz,{children:[(0,c().jsx)(Dz,{title:kt(o,"(anonymous)"),onNavigateBack:t}),(0,c().jsxs)(Rz,{children:[(0,c().jsx)(yv,{className:"shrink-0 max-h-96",language:"graphql",code:qr(o)}),(0,c().jsx)(Pz,{diff:n.diff}),(0,c().jsx)(Lz,{api:"cache.writeQuery",document:o,collapsed:({value:e,defaultCollapsed:t})=>e!==a&&e!==i&&t,options:n.writeQueryOptions})]})]})}function Cz({children:e}){return(0,c().jsx)("div",{className:"flex flex-col gap-2",children:e})}function Iz({children:e}){return(0,c().jsx)("h3",{className:"text-md text-heading dark:text-heading-dark",children:e})}function Oz({children:e}){return(0,c().jsx)("div",{className:"grow overflow-hidden flex flex-col",children:e})}function Dz({title:e,onNavigateBack:t}){return(0,c().jsxs)("section",{className:"flex items-center gap-2 border-b border-b-primary dark:border-b-primary-dark py-2 px-4",children:[(0,c().jsx)(gk,{content:"Back",children:(0,c().jsx)(eg,{"aria-label":"Back",variant:"hidden",size:"sm",icon:(0,c().jsx)(Gj,{}),onClick:t})}),(0,c().jsx)("h2",{className:"grow font-medium text-md text-heading dark:text-heading-dark font-code",children:e})]})}function Rz({children:e}){return(0,c().jsx)("div",{className:"grow overflow-auto flex flex-col gap-4 p-4",children:e})}function Pz({diff:e}){return(0,c().jsxs)(Cz,{children:[(0,c().jsx)(Iz,{children:"Diff"}),null===e?(0,c().jsx)("span",{className:"text-secondary dark:text-secondary-dark italic",children:"Unchanged"}):(0,c().jsx)(eB,{diff:e})]})}function Lz({api:e,collapsed:t,document:n,options:r}){return(0,c().jsxs)(Cz,{children:[(0,c().jsx)(Iz,{children:"Options"}),(0,c().jsxs)("div",{children:[(0,c().jsxs)("span",{className:"font-code inline-block align-bottom",children:[e?.split(".").map((e,t,n)=>t===n.length-1?(0,c().jsx)("span",{className:"text-code-e dark:text-code-e-dark",children:e},t):(0,c().jsxs)(u().Fragment,{children:[(0,c().jsx)("span",{children:e}),(0,c().jsx)("span",{children:"."})]},t)),"("]}),(0,c().jsx)(mS,{value:r,displayObjectSize:!1,tagName:"span",collapsed:t,builtinRenderers:{array:({depth:e,DefaultRender:t})=>(0,c().jsx)(t,{displayObjectSize:e>1}),objectValue:({collapsed:e,depth:t,value:r,onToggleCollapsed:o,DefaultRender:i})=>{if(r===n){const t=qr(n);return(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("span",{className:"inline-block align-middle",children:[(0,c().jsx)("span",{className:"text-code-d dark:text-code-d-dark",children:"gql"}),(0,c().jsx)("span",{children:"`"})]}),e?(0,c().jsx)("span",{onClick:o,className:"text-code-a dark:text-code-a-dark cursor-pointer",children:"..."}):(0,c().jsx)(yv,{language:"graphql",code:t,className:"![background:none] !border-none !text-md !p-0 !pl-[3ch]",copyable:!1}),(0,c().jsx)("span",{children:"`"})]})}return(0,c().jsx)(i,{displayObjectSize:t>1})},arrayValue:({depth:e,DefaultRender:t})=>(0,c().jsx)(t,{displayObjectSize:e>1})}}),(0,c().jsx)("span",{className:"font-code inline-block align-bottom",children:")"})]})]})}FS.register(Nz);const{Sidebar:Mz,Main:Fz}=_m,jz=tp`
  query GetCache($id: ID!) {
    client(id: $id) {
      id
      cache
      cacheWrites @nonreactive {
        ...CacheWritesPanelFragment
      }
    }
  }
`;const Bz=new class{stack=[];currentIndex=0;listeners=new Set;constructor(e){this.stack.push(e)}getCurrent=()=>this.stack[this.currentIndex];go=e=>{const t=this.currentIndex;this.currentIndex=Math.min(Math.max(0,this.currentIndex+e),this.stack.length-1),this.currentIndex!==t&&this.listeners.forEach(e=>{e(this.getCurrent())})};back=()=>{this.go(-1)};forward=()=>{this.go(1)};canGoBack=()=>this.currentIndex>0;canGoForward=()=>this.currentIndex<this.stack.length-1;push=e=>{this.stack.splice(this.currentIndex+1),this.stack.push(e),this.forward()};listen=e=>(this.listeners.add(e),()=>this.listeners.delete(e))}("ROOT_QUERY"),Uz={};function zz({clientId:e,isRecordingCacheWrites:t,onToggleRecordCacheWrites:n}){const[r,o]=(0,u().useState)(""),i=(0,u().useSyncExternalStore)(Bz.listen,Bz.getCurrent),a=wM(),{networkStatus:s,data:l,error:d,startPolling:p,stopPolling:f}=Rp(jz,{variables:{id:e},skip:null==e,pollInterval:500,fetchPolicy:a?"cache-only":"cache-first"});if(d&&!LS(d))throw d;AS("panelHidden",()=>f()),AS("panelShown",()=>p(500));const h=l?.client?.cache??Uz,m=(0,u().useMemo)(()=>r?function(e,t){const n=new RegExp(t,"i");return Object.entries(e).reduce((e,[t,r])=>(n.test(t)&&(e[t]=r),e),{})}(h,r):h,[h,r]),g=l?.client,y=Object.keys(h).length>0,v=h[i],b=function(e={}){const t=[];["ROOT_QUERY","ROOT_MUTATION","ROOT_SUBSCRIPTION"].forEach(n=>{e[n]&&t.push(n)});const n=Object.keys(e).filter(e=>!e.startsWith("ROOT_")).sort();return[...t,...n]}(m),E=g?.cacheWrites??[];return(0,c().jsxs)(_m,{children:[(0,c().jsxs)(Mz,{className:"flex flex-col h-full",children:[(0,c().jsx)(IS,{className:"mb-4",placeholder:"Search cache",onChange:o,value:r}),(0,c().jsx)(Gp,{className:"h-full",children:b.map(e=>(0,c().jsx)(Uf,{onClick:()=>Bz.push(e),selected:e===i,className:"font-code",children:r?(0,c().jsx)(OS,{searchTerm:r,value:e}):e},e))})]}),(0,c().jsx)(Fz,{className:"!p-0",children:(0,c().jsxs)(km,{direction:"horizontal",autoSaveId:"cacheLayout",children:[(0,c().jsxs)(ph,{id:"cacheData",minSize:25,className:"!overflow-auto flex flex-col p-4","data-testid":"main-content",children:[y?(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("div",{className:"flex items-start justify-between",children:[(0,c().jsxs)(Nj,{children:[(0,c().jsx)(gk,{content:"Go back",delayDuration:500,children:(0,c().jsx)(eg,{"aria-label":"Go back",icon:(0,c().jsx)(Mj,{}),size:"xs",variant:"secondary",disabled:!Bz.canGoBack(),onClick:()=>Bz.back()})}),(0,c().jsx)(gk,{content:"Go forward",delayDuration:500,children:(0,c().jsx)(eg,{"aria-label":"Go forward",icon:(0,c().jsx)(Bj,{}),size:"xs",variant:"secondary",disabled:!Bz.canGoForward(),onClick:()=>Bz.forward()})})]}),(0,c().jsx)(mv,{size:"sm",text:JSON.stringify(v),className:$p({invisible:!v})})]}),(0,c().jsxs)("div",{className:"my-2",children:[(0,c().jsx)("div",{className:"text-xs font-bold uppercase",children:"Cache ID"}),(0,c().jsx)("h1",{className:"font-code font-medium text-xl text-heading dark:text-heading-dark break-all","data-testid":"cache-id",children:i})]})]}):null,s===os.loading?(0,c().jsx)(DS,{}):v?(0,c().jsx)(Vz,{value:v}):y?(0,c().jsx)(qE,{variant:"error",className:"mt-4",children:"This cache entry was either removed from the cache or does not exist."}):(0,c().jsx)(bv,{className:"m-auto mt-20"})]}),(0,c().jsx)(Nm,{className:"border-r border-primary dark:border-primary-dark",disabled:!1}),(0,c().jsx)(gz,{client:l?.client,cacheWrites:E,isRecording:t,onToggleRecord:n})]})})]})}const Vz=(0,u().memo)(({value:e})=>(0,c().jsx)(mS,{value:e,builtinRenderers:{string:Hz}}));function Hz({path:e,value:t,DefaultRender:n}){const r=e.at(-1);return(0,c().jsx)(n,{className:$p({"hover:underline hover:cursor-pointer":"__ref"===r}),onClick:()=>{"__ref"===r&&Bz.push(t)}})}var $z;function Gz(){return Gz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gz.apply(null,arguments)}const Wz=function(e){return u().createElement("svg",Gz({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),$z||($z=u().createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},u().createElement("path",{d:"M7.091 2.024a1.223 1.223 0 0 0 1.818 0l.59-.649a1.224 1.224 0 0 1 2.132.883l-.044.875a1.223 1.223 0 0 0 1.282 1.284l.875-.045a1.225 1.225 0 0 1 .88 2.132l-.65.587a1.225 1.225 0 0 0 0 1.818l.65.588a1.224 1.224 0 0 1-.882 2.131l-.875-.044a1.223 1.223 0 0 0-1.285 1.285l.044.875a1.224 1.224 0 0 1-2.126.881l-.588-.65a1.225 1.225 0 0 0-1.818 0l-.59.65a1.224 1.224 0 0 1-2.129-.88l.045-.875a1.224 1.224 0 0 0-1.285-1.285l-.875.044A1.223 1.223 0 0 1 1.375 9.5l.65-.588a1.225 1.225 0 0 0 0-1.818l-.65-.59a1.224 1.224 0 0 1 .88-2.129l.876.044a1.224 1.224 0 0 0 1.286-1.287l-.042-.876a1.224 1.224 0 0 1 2.129-.881z"}),u().createElement("path",{d:"M5.187 8a2.812 2.812 0 1 0 5.625 0 2.812 2.812 0 0 0-5.625 0"}))))};var qz;function Yz(){return Yz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yz.apply(null,arguments)}const Qz=function(e){return u().createElement("svg",Yz({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},e),qz||(qz=u().createElement("path",{fill:"currentColor",d:"M6 .14a6 6 0 0 0-1.86 11.705h.14a.5.5 0 0 0 .486-.305.5.5 0 0 0 .044-.225v-.65a.25.25 0 0 0-.095-.165.25.25 0 0 0-.205-.05c-1.345.29-1.63-.55-1.645-.605A2.3 2.3 0 0 0 2 8.75l-.075-.055a.4.4 0 0 1 .19-.035.74.74 0 0 1 .57.44 1.5 1.5 0 0 0 2 .58.27.27 0 0 0 .15-.18 1 1 0 0 1 .28-.61.25.25 0 0 0 .075-.265.25.25 0 0 0-.21-.175c-1.185-.135-2.4-.55-2.4-2.595a2 2 0 0 1 .53-1.39.25.25 0 0 0 .045-.26A1.78 1.78 0 0 1 3.16 3c.462.083.895.28 1.26.575a.24.24 0 0 0 .21.03 5.33 5.33 0 0 1 2.745 0 .23.23 0 0 0 .205-.03A2.8 2.8 0 0 1 8.84 3a1.77 1.77 0 0 1 0 1.19.24.24 0 0 0 .05.26 2 2 0 0 1 .525 1.375c0 2.05-1.215 2.46-2.405 2.59a.25.25 0 0 0-.21.175.25.25 0 0 0 .075.26 1.12 1.12 0 0 1 .305.875v1.59a.53.53 0 0 0 .185.41.59.59 0 0 0 .53.095A6 6 0 0 0 6 .14"})))};var Kz=n(815),Xz=n.n(Kz);const Jz=new on(!0),Zz={autoRecordCacheWrites:!1,cacheWriteLimit:500};function eV(e){const t=Jz.lookup(e);return t.promise||(t.promise=function(e){if("status"in e)return e;const t=e;return t.status="pending",t.then(e=>{if("pending"===t.status){const n=t;n.status="fulfilled",n.value=e}},e=>{if("pending"===t.status){const n=t;n.status="rejected",n.reason=e}}),e}(Xz().storage.local.get(e).then(t=>t[e]))),t.promise}async function tV(e,t){await Xz().storage.local.set({[e]:t});Jz.lookup(e).promise=function(e){const t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}(t)}function nV(e){const[,t]=(0,u().useReducer)(e=>e+1,0),n=(0,u().useCallback)(async n=>{await tV(e,n),t()},[e]);return[(0,u().use)(eV(e))??Zz[e],n]}const rV=(0,u().forwardRef)((e,t)=>(0,c().jsx)("a",{target:"_blank",rel:"noopener noreferrer",...e,ref:t}));var oV;function iV(){return iV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iV.apply(null,arguments)}const aV=function(e){return u().createElement("svg",iV({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},e),oV||(oV=u().createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.675 3.075a.78.78 0 0 0-1.1 0l-4.95 4.95-2.2-2.2a.778.778 0 0 0-1.1 1.1l2.75 2.75a.78.78 0 0 0 1.1 0l5.5-5.5a.78.78 0 0 0 0-1.1",clipRule:"evenodd"})))};function sV({label:e,...t}){const{checked:n,disabled:r}=t;return(0,c().jsxs)("label",{htmlFor:t.id,className:"cursor-pointer inline-flex items-center align-top relative",children:[(0,c().jsx)("input",{...t,checked:n,disabled:r,type:"checkbox",className:"border-0 [clip:rect(0px,0px,0px,0px)] size-px -m-px p-0 hidden whitespace-nowrap absolute"}),(0,c().jsx)("span",{"aria-hidden":!0,"data-state":n?"checked":"unchecked",className:af("inline-flex size-4 items-center justify-center gap-3 shrink-0 rounded border-[2px] border-deselected dark:border-deselected-dark text-white","data-state-checked:bg-selected dark:data-state-checked:bg-selected-dark data-state-checked:border-bg-selected dark:data-state-checked:border-bg-selected-dark data-state-checked:text-icon-white","focus:border-bg-selected dark:focus:border-bg-selected-dark","focus:data-state-checked:border-selected dark:focus:data-state-checked:border-selected-dark focus:data-state-checked:bg-selected dark:focus:data-state-checked:bg-selected-dark","disabled:border-disabled dark:disabled:border-disabled-dark disabled:text-white","disabled:data-state-checked:border-bg-selected dark:disabled:data-state-checked:border-bg-selected-dark disabled:data-state-checked:text-white disabled:data-state-checked:opacity-40"),children:n&&(0,c().jsx)(aV,{className:"size-3"})}),e&&(0,c().jsx)("span",{className:af("text-primary dark:text-primary-dark font-body font-normal text-md select-none ms-2",r&&"text-disabled dark:text-disabled-dark"),children:e})]})}function lV({open:e=!1,onOpen:t}){return(0,c().jsxs)(Aj,{open:e,onClose:t,size:"md",children:[(0,c().jsxs)(Aj.Header,{children:[(0,c().jsx)(Aj.Title,{children:"Settings"}),(0,c().jsxs)(Aj.Description,{children:["Devtools version:"," ",(0,c().jsx)(rV,{className:"font-code",href:"https://github.com/apollographql/apollo-client-devtools/releases/tag/apollo-client-devtools@4.26.3",children:"4.26.3"})]})]}),(0,c().jsx)(Aj.Body,{className:"flex flex-col gap-4",children:(0,c().jsxs)(u().Suspense,{fallback:(0,c().jsx)("div",{className:"flex flex-1 items-center justify-center",children:(0,c().jsx)(Xm,{})}),children:[(0,c().jsx)(cV,{}),(0,c().jsx)(uV,{})]})}),(0,c().jsx)(Aj.Footer,{children:(0,c().jsx)(eg,{variant:"primary",size:"md",onClick:()=>t(!1),children:"Close"})})]})}function cV(){const[e,t]=nV("cacheWriteLimit");return(0,c().jsx)(_j,{label:"Cache write history size",size:"sm",placeholder:"Enter a max",type:"number",defaultValue:e,min:0,step:10,onBlur:e=>{const{value:n}=e.target;""===n?(e.target.value=String(Zz.cacheWriteLimit),t(Zz.cacheWriteLimit)):t(Number(n))}})}function uV(){const[e,t]=nV("autoRecordCacheWrites");return(0,c().jsx)(sV,{label:"Auto-record cache writes",checked:e,onChange:e=>t(e.target.checked)})}var dV,pV;function fV(){return fV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fV.apply(null,arguments)}const hV=function(e){return u().createElement("svg",fV({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 441 441"},e),dV||(dV=u().createElement("path",{fill:"currentColor",d:"m315.708 281.197-10.062-28.595-13.251-37.652-9.586-27.249-12.548-35.661-14.577-41.421h-70.705l-11.286 32.074-10.063 28.595-49.974 142.015h46.633l14.629-41.453h70.718l-12.549-35.662h-45.672L197 208.94l20.021-56.9 3.309-9.418 3.31 9.418 56.72 161.23.013.033h46.632z"})),pV||(pV=u().createElement("path",{fill:"currentColor",d:"M412.554 112.354a8.996 8.996 0 0 0-12.252-3.416 8.994 8.994 0 0 0-3.416 12.252A202.438 202.438 0 1 1 18.767 238.032a202.44 202.44 0 0 1 155.295-214.66 202.44 202.44 0 0 1 140.257 17.7 27.521 27.521 0 1 0 9.38-15.388 220.434 220.434 0 1 0 88.855 86.671z"})))};var mV;function gV(){return gV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gV.apply(null,arguments)}const yV=function(e){return u().createElement("svg",gV({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),mV||(mV=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m4 10 4-4 4 4"})))};function vV({children:e,className:t,...n}){return(0,c().jsx)(ME,{...n,children:(0,c().jsx)("div",{className:t,children:e})})}vV.Button=function({children:e}){return(0,c().jsx)(PE,{className:$p("bg-primary dark:bg-primary-dark border border-primary dark:border-primary-dark py-3 px-2 hover:bg-secondary hover:dark:bg-secondary-dark transition-colors text-left w-full font-heading text-heading dark:text-heading-dark font-medium text-md flex gap-2 items-center","rounded-t ui-not-open:rounded-b"),children:({open:t})=>(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(yV,{className:$p("w-4 transition-transform",{"rotate-180":t})}),(0,c().jsx)("span",{children:e})]})})},vV.Panel=function({className:e,children:t}){return(0,c().jsx)(lx,{enter:"transition duration-100 ease-out",enterFrom:"transform opacity-0",enterTo:"transform opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform opacity-100",leaveTo:"transform opacity-0",children:(0,c().jsx)(LE,{className:Bf(e,"border border-t-0 border-primary dark:border-primary-dark rounded-b p-4"),children:t})})};const bV=(0,u().forwardRef)(function({className:e,repository:t="apollo-client-devtools",children:n,...r},o){return(0,c().jsx)(rV,{...r,ref:o,className:e,href:`https://github.com/apollographql/${t}/issues`,children:n})});function EV(){return(0,c().jsxs)(rV,{href:"https://www.apollographql.com/docs/react/api/core/ApolloClient#apolloclientoptions-connecttodevtools",children:[(0,c().jsx)("code",{children:"connectToDevTools"})," option"]})}function xV({open:e,onRetry:t}){return(0,c().jsxs)(Aj,{open:e,size:"xl",children:[(0,c().jsxs)(Aj.Header,{children:[(0,c().jsx)(Aj.Title,{children:"Could not find client"}),(0,c().jsxs)(Aj.Description,{children:["An Apollo Client instance was not found, either because an Apollo Client instance was never created, or because it could not be discovered. You can often solve this issue by setting the"," ",(0,c().jsx)(EV,{})," in your ",(0,c().jsx)("code",{children:"ApolloClient"})," ","instance to ",(0,c().jsx)("code",{children:"true"}),"."]}),(0,c().jsxs)(Aj.Description,{children:["If you've already set the ",(0,c().jsx)(EV,{}),", please try one of the following suggestions or click the ",(0,c().jsx)("code",{children:"Retry"})," ","button to look for the client again."]}),(0,c().jsxs)(Aj.Description,{children:["Please ",(0,c().jsx)(bV,{children:"create an issue"})," if you have followed the suggestions and continue to see this message. This could be a bug with Apollo Client Devtools."]})]}),(0,c().jsx)(Aj.Body,{children:(0,c().jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[(0,c().jsxs)(vV,{children:[(0,c().jsx)(vV.Button,{children:"I'm running my application in development mode"}),(0,c().jsxs)(vV.Panel,{children:[(0,c().jsxs)("p",{children:["By default, Apollo Client connects to Apollo Client Devtools in development mode. It detects the current environment using the"," ",(0,c().jsx)("code",{children:"globalThis.__DEV__"})," variable."," "]}),(0,c().jsxs)("p",{className:"mt-4",children:["You may need to tweak your bundler settings to set"," ",(0,c().jsx)("code",{children:"globalThis.__DEV__"})," correctly. See the"," ",(0,c().jsx)(rV,{href:"https://www.apollographql.com/docs/react/development-testing/reducing-bundle-size/",children:'"Reducing bundle size"'})," ","article for examples on configuring your bundler."]}),(0,c().jsxs)("p",{className:"mt-4",children:["Alternatively, set the ",(0,c().jsx)(EV,{})," to"," ",(0,c().jsx)("code",{children:"true"})," in your Apollo Client instance."]})]})]}),(0,c().jsxs)(vV,{children:[(0,c().jsx)(vV.Button,{children:"I'm running my application in production mode"}),(0,c().jsxs)(vV.Panel,{children:["By default, Apollo Client only connects to Apollo Client Devtools in development mode. To use Apollo Client Devtools for your production application, set the ",(0,c().jsx)(EV,{})," to"," ",(0,c().jsx)("code",{children:"true"})," in your Apollo Client instance."]})]}),(0,c().jsxs)(vV,{children:[(0,c().jsx)(vV.Button,{children:"My Apollo Client instance is created in an iframe"}),(0,c().jsxs)(vV.Panel,{children:["Apollo Client Devtools does not currently support clients created in iframes. Please follow"," ",(0,c().jsx)(rV,{href:"https://github.com/apollographql/apollo-client-devtools/discussions/380",children:"this discussion"})," ","for updates on this feature."]})]}),(0,c().jsxs)(vV,{children:[(0,c().jsx)(vV.Button,{children:"I'm using Apollo's Next.js RSC integration"}),(0,c().jsxs)(vV.Panel,{children:[(0,c().jsxs)("p",{children:["Apollo Client Devtools checks for the presence of the"," ",(0,c().jsx)("code",{children:"window.__APOLLO_CLIENT__"})," variable for up to 10 seconds after a page load before giving up. When using Apollo's"," ",(0,c().jsx)(rV,{href:"https://github.com/apollographql/apollo-client-nextjs",children:"Next.js RSC integration"}),", it is possible that Apollo Client Devtools will be unable to connect to the client when the first loaded page does not render any client components and no other client components are loaded within the first 10 seconds of the page load."]}),(0,c().jsx)("p",{className:"mt-4",children:'Click the "Retry" button below to try connecting to the Apollo Client instance after a client component loads.'})]})]}),(0,c().jsxs)(vV,{children:[(0,c().jsxs)(vV.Button,{children:["I have set ",(0,c().jsx)("code",{children:"connectToDevTools"})," to ",(0,c().jsx)("code",{children:"true"})]}),(0,c().jsxs)(vV.Panel,{children:[(0,c().jsxs)("p",{children:["Apollo Client Devtools relies on the presence of a global"," ",(0,c().jsx)("code",{children:"window.__APOLLO_CLIENT__"})," variable set from the Apollo Client instance. Check your browser console for"," ",(0,c().jsx)("code",{children:"window.__APOLLO_CLIENT__"})," to see if this variable is set."]}),(0,c().jsxs)("p",{className:"mt-4",children:["If the value is ",(0,c().jsx)("code",{children:"undefined"}),", this is most likely a bug with Apollo Client. Please open a"," ",(0,c().jsx)(bV,{repository:"apollo-client",children:"GitHub issue"})," ","in the Apollo Client repository to get help from the Apollo Client maintainers."]})]})]}),(0,c().jsxs)(vV,{children:[(0,c().jsxs)(vV.Button,{children:[(0,c().jsx)("code",{children:"window.__APOLLO_CLIENT__"})," references my client instance"]}),(0,c().jsxs)(vV.Panel,{children:[(0,c().jsxs)("p",{children:["Occasionally the Apollo Client instance was set correctly on",(0,c().jsx)("code",{children:"window"}),", but the Apollo Client Devtools could not find it in time. Apollo Client Devtools checks for the presence of the ",(0,c().jsx)("code",{children:"window.__APOLLO_CLIENT__"})," variable for up to 10 seconds before giving up."]}),(0,c().jsxs)("p",{className:"mt-4",children:["Apollo Client Devtools exposes a global"," ",(0,c().jsx)("code",{children:"window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__"})," variable that you can use to check if the client was discovered. Check your browser console for the"," ",(0,c().jsx)("code",{children:"window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__.ApolloClient"})," ","variable to see if it references your Apollo Client instance. If this value is ",(0,c().jsx)("code",{children:"undefined"}),', this likely indicates your client was not discovered in time. Click the "Retry" button below to try connecting to your Apollo Client instance again.']}),(0,c().jsx)("p",{className:"mt-4",children:"For best results, ensure your client is created within the first 10 seconds of your application loading."})]})]}),(0,c().jsxs)(vV,{children:[(0,c().jsx)(vV.Button,{children:"I've exhausted all other options"}),(0,c().jsxs)(vV.Panel,{children:["This could be a bug with Apollo Client Devtools. Please create a"," ",(0,c().jsx)(bV,{children:"GitHub issue"})," to get help from the Apollo Client maintainers."]})]})]})}),(0,c().jsx)(Aj.Footer,{children:(0,c().jsx)(eg,{size:"md",variant:"primary",onClick:t,children:"Retry"})})]})}function wV({open:e}){return(0,c().jsxs)(Aj,{open:e,size:"xl",children:[(0,c().jsx)(Aj.Header,{children:(0,c().jsx)(Aj.Title,{children:"Error"})}),(0,c().jsx)(Aj.Body,{children:(0,c().jsxs)(Aj.Description,{children:["An unknown error occured. ",(0,c().jsx)("br",{}),"If this error persists, please open an issue on GitHub."]})}),(0,c().jsx)(Aj.Footer,{children:(0,c().jsx)(eg,{asChild:!0,size:"md",variant:"secondary",icon:(0,c().jsx)(Qz,{}),children:(0,c().jsx)(bV,{className:"no-underline",children:(0,c().jsx)("span",{children:"Create an issue"})})})})]})}function TV(){const{send:e}=EM(),t=xM(e=>!1===e.context.listening),n=uM(xM(e=>e.children.reconnect),e=>"active"===e?.status&&"notFound"===e.value),r=xM(e=>"error"===e.value.initialization),o=[(0,c().jsx)(wV,{open:t},"portNotOpen"),(0,c().jsx)(xV,{open:n,onRetry:()=>e({type:"reconnect.retry"})},"clientNotFound"),(0,c().jsx)(wV,{open:r},"unknownError")];let i=!1;return(0,c().jsx)(c().Fragment,{children:o.map(e=>{if(e.props.open){if(i)return(0,u().cloneElement)(e,{open:!1});i=!0}return e})})}var kV,SV="HoverCard",[AV,NV]=rg(SV,[dT]),_V=dT(),[CV,IV]=AV(SV),OV=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:a=700,closeDelay:s=300}=e,l=_V(t),d=u().useRef(0),p=u().useRef(0),f=u().useRef(!1),h=u().useRef(!1),[m,g]=kg({prop:r,defaultProp:o??!1,onChange:i,caller:SV}),y=u().useCallback(()=>{clearTimeout(p.current),d.current=window.setTimeout(()=>g(!0),a)},[a,g]),v=u().useCallback(()=>{clearTimeout(d.current),f.current||h.current||(p.current=window.setTimeout(()=>g(!1),s))},[s,g]),b=u().useCallback(()=>g(!1),[g]);return u().useEffect(()=>()=>{clearTimeout(d.current),clearTimeout(p.current)},[]),(0,c().jsx)(CV,{scope:t,open:m,onOpenChange:g,onOpen:y,onClose:v,onDismiss:b,hasSelectionRef:f,isPointerDownOnContentRef:h,children:(0,c().jsx)(NT,{...l,children:n})})};OV.displayName=SV;var DV="HoverCardTrigger",RV=u().forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=IV(DV,n),i=_V(n);return(0,c().jsx)(_T,{asChild:!0,...i,children:(0,c().jsx)(xg.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:ng(e.onPointerEnter,VV(o.onOpen)),onPointerLeave:ng(e.onPointerLeave,VV(o.onClose)),onFocus:ng(e.onFocus,o.onOpen),onBlur:ng(e.onBlur,o.onClose),onTouchStart:ng(e.onTouchStart,e=>e.preventDefault())})})});RV.displayName=DV;var PV="HoverCardPortal",[LV,MV]=AV(PV,{forceMount:void 0}),FV=e=>{const{__scopeHoverCard:t,forceMount:n,children:r,container:o}=e,i=IV(PV,t);return(0,c().jsx)(LV,{scope:t,forceMount:n,children:(0,c().jsx)(Gg,{present:n||i.open,children:(0,c().jsx)(OT,{asChild:!0,container:o,children:r})})})};FV.displayName=PV;var jV="HoverCardContent",BV=u().forwardRef((e,t)=>{const n=MV(jV,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=IV(jV,e.__scopeHoverCard);return(0,c().jsx)(Gg,{present:r||i.open,children:(0,c().jsx)(UV,{"data-state":i.open?"open":"closed",...o,onPointerEnter:ng(e.onPointerEnter,VV(i.onOpen)),onPointerLeave:ng(e.onPointerLeave,VV(i.onClose)),ref:t})})});BV.displayName=jV;var UV=u().forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...s}=e,l=IV(jV,n),d=_V(n),p=u().useRef(null),f=Mm(t,p),[h,m]=u().useState(!1);return u().useEffect(()=>{if(h){const e=document.body;return kV=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=kV,e.style.webkitUserSelect=kV}}},[h]),u().useEffect(()=>{if(p.current){const e=()=>{m(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{""!==document.getSelection()?.toString()&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),u().useEffect(()=>{if(p.current){(function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(p.current).forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,c().jsx)(mx,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:ng(i,e=>{e.preventDefault()}),onDismiss:l.onDismiss,children:(0,c().jsx)(CT,{...d,...s,onPointerDown:ng(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&m(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:f,style:{...s.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),zV=u().forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=_V(n);return(0,c().jsx)(IT,{...o,...r,ref:t})});function VV(e){return t=>"touch"===t.pointerType?void 0:e()}zV.displayName="HoverCardArrow";var HV=OV,$V=RV,GV=FV,WV=BV,qV=zV;function YV(e){return(0,c().jsx)(HV,{...e})}function QV(){}function KV(){}YV.Content=function({className:e,children:t}){return(0,c().jsx)(GV,{children:(0,c().jsxs)(WV,{collisionPadding:20,sideOffset:2,className:Bf("bg-primary dark:bg-primary-dark border border-primary dark:border-primary-dark rounded-lg px-4 py-3 shadow-popovers text-sm max-w-md overflow-auto max-h-[var(--radix-popper-available-height)] isolate",e),children:[t,(0,c().jsx)(qV,{asChild:!0,children:(0,c().jsx)("div",{className:Bf("w-[12px] h-[12px] relative -top-px","before:absolute before:border-y-[12px] before:border-x-[12px] before:border-transparent","before:border-t-primary before:dark:border-t-primary-dark","after:absolute after:border-y-[10px] after:border-x-[10px] after:border-transparent","after:border-t-arrow-primary after:dark:border-t-arrow-primary-dark after:left-0.5")})})]})})},YV.Trigger=function({asChild:e,children:t}){return(0,c().jsx)($V,{asChild:e,children:t})};const XV=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JV=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZV={};function eH(e,t){return((t||ZV).jsx?JV:XV).test(e)}const tH=/[ \t\n\f\r]/g;function nH(e){return""===e.replace(tH,"")}class rH{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function oH(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new rH(n,r,t)}function iH(e){return e.toLowerCase()}rH.prototype.property={},rH.prototype.normal={},rH.prototype.space=null;class aH{constructor(e,t){this.property=e,this.attribute=t}}aH.prototype.space=null,aH.prototype.boolean=!1,aH.prototype.booleanish=!1,aH.prototype.overloadedBoolean=!1,aH.prototype.number=!1,aH.prototype.commaSeparated=!1,aH.prototype.spaceSeparated=!1,aH.prototype.commaOrSpaceSeparated=!1,aH.prototype.mustUseProperty=!1,aH.prototype.defined=!1;let sH=0;const lH=mH(),cH=mH(),uH=mH(),dH=mH(),pH=mH(),fH=mH(),hH=mH();function mH(){return 2**++sH}const gH=Object.keys(xe);class yH extends aH{constructor(e,t,n,r){let o=-1;if(super(e,t),vH(this,"space",r),"number"==typeof n)for(;++o<gH.length;){const e=gH[o];vH(this,gH[o],(n&xe[e])===xe[e])}}}function vH(e,t,n){n&&(e[t]=n)}yH.prototype.defined=!0;const bH={}.hasOwnProperty;function EH(e){const t={},n={};let r;for(r in e.properties)if(bH.call(e.properties,r)){const o=e.properties[r],i=new yH(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[iH(r)]=r,n[iH(i.attribute)]=r}return new rH(t,n,e.space)}const xH=EH({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),wH=EH({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function TH(e,t){return t in e?e[t]:t}function kH(e,t){return TH(e,t.toLowerCase())}const SH=EH({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:kH,properties:{xmlns:null,xmlnsXLink:null}}),AH=EH({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:cH,ariaAutoComplete:null,ariaBusy:cH,ariaChecked:cH,ariaColCount:dH,ariaColIndex:dH,ariaColSpan:dH,ariaControls:pH,ariaCurrent:null,ariaDescribedBy:pH,ariaDetails:null,ariaDisabled:cH,ariaDropEffect:pH,ariaErrorMessage:null,ariaExpanded:cH,ariaFlowTo:pH,ariaGrabbed:cH,ariaHasPopup:null,ariaHidden:cH,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pH,ariaLevel:dH,ariaLive:null,ariaModal:cH,ariaMultiLine:cH,ariaMultiSelectable:cH,ariaOrientation:null,ariaOwns:pH,ariaPlaceholder:null,ariaPosInSet:dH,ariaPressed:cH,ariaReadOnly:cH,ariaRelevant:null,ariaRequired:cH,ariaRoleDescription:pH,ariaRowCount:dH,ariaRowIndex:dH,ariaRowSpan:dH,ariaSelected:cH,ariaSetSize:dH,ariaSort:null,ariaValueMax:dH,ariaValueMin:dH,ariaValueNow:dH,ariaValueText:null,role:null}}),NH=EH({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:kH,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fH,acceptCharset:pH,accessKey:pH,action:null,allow:null,allowFullScreen:lH,allowPaymentRequest:lH,allowUserMedia:lH,alt:null,as:null,async:lH,autoCapitalize:null,autoComplete:pH,autoFocus:lH,autoPlay:lH,blocking:pH,capture:null,charSet:null,checked:lH,cite:null,className:pH,cols:dH,colSpan:null,content:null,contentEditable:cH,controls:lH,controlsList:pH,coords:dH|fH,crossOrigin:null,data:null,dateTime:null,decoding:null,default:lH,defer:lH,dir:null,dirName:null,disabled:lH,download:uH,draggable:cH,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:lH,formTarget:null,headers:pH,height:dH,hidden:lH,high:dH,href:null,hrefLang:null,htmlFor:pH,httpEquiv:pH,id:null,imageSizes:null,imageSrcSet:null,inert:lH,inputMode:null,integrity:null,is:null,isMap:lH,itemId:null,itemProp:pH,itemRef:pH,itemScope:lH,itemType:pH,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:lH,low:dH,manifest:null,max:null,maxLength:dH,media:null,method:null,min:null,minLength:dH,multiple:lH,muted:lH,name:null,nonce:null,noModule:lH,noValidate:lH,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:lH,optimum:dH,pattern:null,ping:pH,placeholder:null,playsInline:lH,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:lH,referrerPolicy:null,rel:pH,required:lH,reversed:lH,rows:dH,rowSpan:dH,sandbox:pH,scope:null,scoped:lH,seamless:lH,selected:lH,shadowRootClonable:lH,shadowRootDelegatesFocus:lH,shadowRootMode:null,shape:null,size:dH,sizes:null,slot:null,span:dH,spellCheck:cH,src:null,srcDoc:null,srcLang:null,srcSet:null,start:dH,step:null,style:null,tabIndex:dH,target:null,title:null,translate:null,type:null,typeMustMatch:lH,useMap:null,value:cH,width:dH,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pH,axis:null,background:null,bgColor:null,border:dH,borderColor:null,bottomMargin:dH,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:lH,declare:lH,event:null,face:null,frame:null,frameBorder:null,hSpace:dH,leftMargin:dH,link:null,longDesc:null,lowSrc:null,marginHeight:dH,marginWidth:dH,noResize:lH,noHref:lH,noShade:lH,noWrap:lH,object:null,profile:null,prompt:null,rev:null,rightMargin:dH,rules:null,scheme:null,scrolling:cH,standby:null,summary:null,text:null,topMargin:dH,valueType:null,version:null,vAlign:null,vLink:null,vSpace:dH,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:lH,disableRemotePlayback:lH,prefix:null,property:null,results:dH,security:null,unselectable:null}}),_H=EH({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:TH,properties:{about:hH,accentHeight:dH,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:dH,amplitude:dH,arabicForm:null,ascent:dH,attributeName:null,attributeType:null,azimuth:dH,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:dH,by:null,calcMode:null,capHeight:dH,className:pH,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:dH,diffuseConstant:dH,direction:null,display:null,dur:null,divisor:dH,dominantBaseline:null,download:lH,dx:null,dy:null,edgeMode:null,editable:null,elevation:dH,enableBackground:null,end:null,event:null,exponent:dH,externalResourcesRequired:null,fill:null,fillOpacity:dH,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fH,g2:fH,glyphName:fH,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:dH,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:dH,horizOriginX:dH,horizOriginY:dH,id:null,ideographic:dH,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:dH,k:dH,k1:dH,k2:dH,k3:dH,k4:dH,kernelMatrix:hH,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:dH,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:dH,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:dH,overlineThickness:dH,paintOrder:null,panose1:null,path:null,pathLength:dH,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pH,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:dH,pointsAtY:dH,pointsAtZ:dH,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hH,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hH,rev:hH,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hH,requiredFeatures:hH,requiredFonts:hH,requiredFormats:hH,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:dH,specularExponent:dH,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:dH,strikethroughThickness:dH,string:null,stroke:null,strokeDashArray:hH,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:dH,strokeOpacity:dH,strokeWidth:null,style:null,surfaceScale:dH,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hH,tabIndex:dH,tableValues:null,target:null,targetX:dH,targetY:dH,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hH,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:dH,underlineThickness:dH,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:dH,values:null,vAlphabetic:dH,vMathematical:dH,vectorEffect:null,vHanging:dH,vIdeographic:dH,version:null,vertAdvY:dH,vertOriginX:dH,vertOriginY:dH,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:dH,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),CH=oH([wH,xH,SH,AH,NH],"html"),IH=oH([wH,xH,SH,AH,_H],"svg"),OH=/^data[-\w.:]+$/i,DH=/-[a-z]/g,RH=/[A-Z]/g;function PH(e){return"-"+e.toLowerCase()}function LH(e){return e.charAt(1).toUpperCase()}const MH={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};fe();const FH=fe().default||fe(),jH=UH("end"),BH=UH("start");function UH(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function zH(e){return e&&"object"==typeof e?"position"in e||"type"in e?HH(e.position):"start"in e||"end"in e?HH(e):"line"in e||"column"in e?VH(e):"":""}function VH(e){return $H(e&&e.line)+":"+$H(e&&e.column)}function HH(e){return VH(e&&e.start)+"-"+VH(e&&e.end)}function $H(e){return e&&"number"==typeof e?e:1}class GH extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=zH(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}GH.prototype.file="",GH.prototype.name="",GH.prototype.reason="",GH.prototype.message="",GH.prototype.stack="",GH.prototype.column=void 0,GH.prototype.line=void 0,GH.prototype.ancestors=void 0,GH.prototype.cause=void 0,GH.prototype.fatal=void 0,GH.prototype.place=void 0,GH.prototype.ruleId=void 0,GH.prototype.source=void 0;const WH={}.hasOwnProperty,qH=new Map,YH=/[A-Z]/g,QH=/-([a-z])/g,KH=new Set(["table","tbody","thead","tfoot","tr"]),XH=new Set(["td","th"]),JH="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ZH(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),s=BH(n);return t(r,o,i,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?IH:CH,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=e$(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function e$(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=IH,e.schema=o);e.ancestors.push(t);const i=i$(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&WH.call(t.properties,o)){const i=o$(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&XH.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=r$(e,t);KH.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&nH(t.value):nH(t));var t}));return t$(e,a,i,t),n$(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}a$(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=IH,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:i$(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];QV(t.type);const o=t.expression;QV(o.type);const i=o.properties[0];QV(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else a$(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];QV(t.type),i=e.evaluater.evaluateExpression(t.expression)}else a$(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=r$(e,t);return t$(e,a,i,t),n$(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);a$(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return n$(r,r$(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function t$(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function n$(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function r$(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:qH;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const s=e$(e,i,a);void 0!==s&&n.push(s)}return n}function o$(e,t,n){const r=function(e,t){const n=iH(t);let r=t,o=aH;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&OH.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(DH,LH);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!DH.test(e)){let n=e.replace(RH,PH);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=yH}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){const n={};try{FH(t,r)}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new GH("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=JH+"#cannot-parse-style-attribute",r}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(QH,l$)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)WH.call(e,n)&&(t[s$(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?MH[r.property]||r.property:r.attribute,n]}}function i$(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=eH(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=eH(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return WH.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);a$(e)}function a$(e,t){const n=new GH("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=JH+"#cannot-handle-mdx-estrees-without-createevaluater",n}function s$(e){let t=e.replace(YH,c$);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function l$(e,t){return t.toUpperCase()}function c$(e){return"-"+e.toLowerCase()}const u$={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},d$={};function p$(e,t){const n=t||d$;return f$(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function f$(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return h$(e.children,t,n)}return Array.isArray(e)?h$(e,t,n):""}function h$(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=f$(e[o],t,n);return r.join("")}function m$(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function g$(e,t){return e.length>0?(m$(e,e.length,0,t),e):t}class y${constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&v$(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),v$(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),v$(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);v$(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);v$(this.left,t.reverse())}}}function v$(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function b$(e){const t={};let n,r,o,i,a,s,l,c=-1;const u=new y$(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,E$(u,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--&&(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},u.get(r)[1].start),a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return m$(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function E$(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,p=-1,f=n,h=0,m=0;const g=[m];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return c}const x$={}.hasOwnProperty;function w$(e){const t={};let n=-1;for(;++n<e.length;)T$(t,e[n]);return t}function T$(e,t){let n;for(n in t){const r=(x$.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){x$.call(r,i)||(r[i]=[]);const e=o[i];k$(r[i],Array.isArray(e)?e:e?[e]:[])}}}function k$(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);m$(e,0,0,r)}const S$=F$(/[A-Za-z]/),A$=F$(/[\dA-Za-z]/),N$=F$(/[#-'*+\--9=?A-Z^-~]/);function _$(e){return null!==e&&(e<32||127===e)}const C$=F$(/\d/),I$=F$(/[\dA-Fa-f]/),O$=F$(/[!-/:-@[-`{-~]/);function D$(e){return null!==e&&e<-2}function R$(e){return null!==e&&(e<0||32===e)}function P$(e){return-2===e||-1===e||32===e}const L$=F$(/\p{P}|\p{S}/u),M$=F$(/\s/);function F$(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function j$(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(P$(r))return e.enter(n),a(r);return t(r)};function a(r){return P$(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const B$={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),j$(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):D$(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const U$={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return m$(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(z$,u,d)(o)}function u(e){return r&&v(),y(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(z$,f,h)(n)}function f(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:r}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):D$(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;m$(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},z$={tokenize:function(e,t,n){return j$(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const V$={tokenize:function(e,t,n){return function(t){return P$(t)?j$(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||D$(e)?t(e):n(e)}},partial:!0};const H$={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):D$(t)?e.check($$,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return b$(e),e}},$$={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j$(e,o,"linePrefix")};function o(o){if(null===o||D$(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};const G$={tokenize:function(e){const t=this,n=e.attempt(V$,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,j$(e,e.attempt(this.parser.constructs.flow,r,e.attempt(H$,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const W$={resolveAll:K$()},q$=Q$("string"),Y$=Q$("text");function Q$(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:K$("text"===e?X$:void 0)}}function K$(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function X$(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function J$(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}function Z$(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],s=[],l=!0;const c={consume:function(e){D$(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,E()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=h(),u.events.push(["exit",t,u]),t},attempt:v(function(e,t){b(e,t.from)}),check:v(y),interrupt:v(y,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(f(e),t)},now:h,defineSkip:function(e){o[e.line]=e.column,E()},write:function(e){if(a=g$(a,e),m(),null!==a[a.length-1])return[];return b(t,0),u.events=J$(i,u.events,u),u.events}};let d,p=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function f(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function h(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function m(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,d=e,p=p(e)}function y(e,t){t.restore()}function v(e,t){return function(n,o,i){let a,d,p,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,d=0,0===e.length?i:g(e[d])}function g(e){return function(n){f=function(){const e=h(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(s);return{restore:a,from:o};function a(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,s=i,E()}}(),p=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return v(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,y,v)(n)}}function y(t){return l=!0,e(p,f),o}function v(e){return l=!0,f.restore(),++d<a.length?g(a[d]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&m$(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function E(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const eG={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||D$(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),P$(t)?j$(e,i,"whitespace")(t):i(t))}}};const tG={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:C$(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(eG,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return C$(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(V$,r.interrupt?n:c,e.attempt(nG,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return P$(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(V$,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j$(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!P$(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(rG,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,j$(e,e.attempt(tG,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},nG={tokenize:function(e,t,n){const r=this;return j$(e,function(e){const o=r.events[r.events.length-1];return!P$(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},rG={tokenize:function(e,t,n){const r=this;return j$(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0};const oG={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return P$(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(P$(t))return j$(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(oG,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function iG(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||_$(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||D$(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!R$(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||_$(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function aG(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):D$(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||D$(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!P$(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function sG(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):D$(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j$(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||D$(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function lG(e,t){let n;return function r(o){if(D$(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(P$(o))return j$(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function cG(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const uG={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return aG.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=cG(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return R$(t)?lG(e,s)(t):s(t)}function s(t){return iG(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(dG,c,c)(t)}function c(t){return P$(t)?j$(e,u,"whitespace")(t):u(t)}function u(i){return null===i||D$(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},dG={tokenize:function(e,t,n){return function(t){return R$(t)?lG(e,r)(t):n(t)};function r(t){return sG(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return P$(t)?j$(e,i,"whitespace")(t):i(t)}function i(e){return null===e||D$(e)?t(e):n(e)}},partial:!0};const pG={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),j$(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):D$(t)?e.attempt(fG,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||D$(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},fG={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):D$(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):j$(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):D$(e)?o(e):n(e)}},partial:!0};const hG={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||R$(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||D$(n)?(e.exit("atxHeading"),t(n)):P$(n)?j$(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||R$(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},m$(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const mG={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),P$(t)?j$(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||D$(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const gG=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],yG=["pre","script","style","textarea"],vG={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,f):63===s?(e.consume(s),o=3,r.interrupt?t:P):S$(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,p):S$(i)?(e.consume(i),o=4,r.interrupt?t:P):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:P):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:A:p):n(o)}function f(t){return S$(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||R$(s)){const l=47===s,c=a.toLowerCase();return l||i||!yG.includes(c)?gG.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):A(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):A(s))}return 45===s||A$(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:A):n(o)}function g(t){return P$(t)?(e.consume(t),g):k(t)}function y(t){return 47===t?(e.consume(t),k):58===t||95===t||S$(t)?(e.consume(t),v):P$(t)?(e.consume(t),y):k(t)}function v(t){return 45===t||46===t||58===t||95===t||A$(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),E):P$(t)?(e.consume(t),b):y(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):P$(t)?(e.consume(t),E):w(t)}function x(t){return t===l?(e.consume(t),l=null,T):null===t||D$(t)?n(t):(e.consume(t),x)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||R$(t)?b(t):(e.consume(t),w)}function T(e){return 47===e||62===e||P$(e)?y(e):n(e)}function k(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||D$(t)?A(t):P$(t)?(e.consume(t),S):n(t)}function A(t){return 45===t&&2===o?(e.consume(t),I):60===t&&1===o?(e.consume(t),O):62===t&&4===o?(e.consume(t),L):63===t&&3===o?(e.consume(t),P):93===t&&5===o?(e.consume(t),R):!D$(t)||6!==o&&7!==o?null===t||D$(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(bG,M,N)(t))}function N(t){return e.check(EG,_,M)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||D$(t)?N(t):(e.enter("htmlFlowData"),A(t))}function I(t){return 45===t?(e.consume(t),P):A(t)}function O(t){return 47===t?(e.consume(t),a="",D):A(t)}function D(t){if(62===t){const n=a.toLowerCase();return yG.includes(n)?(e.consume(t),L):A(t)}return S$(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),D):A(t)}function R(t){return 93===t?(e.consume(t),P):A(t)}function P(t){return 62===t?(e.consume(t),L):45===t&&2===o?(e.consume(t),P):A(t)}function L(t){return null===t||D$(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),L)}function M(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},bG={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(V$,t,n)}},partial:!0},EG={tokenize:function(e,t,n){const r=this;return function(t){if(D$(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const xG={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},wG={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),P$(t)?j$(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),P$(t)?j$(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||D$(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),P$(t)?j$(e,c,"whitespace")(t):c(t))}function c(n){return null===n||D$(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(xG,f,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||D$(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):P$(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),j$(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||D$(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||D$(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&P$(t)?j$(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||D$(t)?e.check(xG,f,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||D$(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const TG=document.createElement("i");function kG(e){const t="&"+e+";";TG.innerHTML=t;const n=TG.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const SG={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=A$,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=I$,c):(e.enter("characterReferenceValue"),o=7,i=C$,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==A$||kG(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),c):n(s)}}};const AG={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return O$(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const NG={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),j$(e,t,"linePrefix")}}};const _G={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(cG(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(CG,c,i?c:u)(t):91===t?e.attempt(IG,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(OG,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",l,t],["enter",c,t]],i=g$(i,e.slice(r+1,r+s+3)),i=g$(i,[["enter",u,t]]),i=g$(i,J$(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=g$(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=g$(i,e.slice(o+1)),i=g$(i,[["exit",l,t]]),m$(e,r,e.length,i),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},CG={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return R$(t)?lG(e,o)(t):o(t)}function o(t){return 41===t?c(t):iG(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return R$(t)?lG(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?sG(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return R$(t)?lG(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},IG={tokenize:function(e,t,n){const r=this;return function(t){return aG.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(cG(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},OG={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const DG={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:_G.resolveAll};function RG(e){return null===e||R$(e)||M$(e)?1:L$(e)?2:void 0}const PG={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=RG(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=RG(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,o,i,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);LG(d,-s),LG(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=g$(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=g$(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=g$(l,J$(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=g$(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=g$(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,m$(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function LG(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const MG={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return S$(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||A$(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||A$(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||_$(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):N$(t)?(e.consume(t),l):n(t)}function c(e){return A$(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||A$(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const FG={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),E):63===t?(e.consume(t),v):S$(t)?(e.consume(t),T):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):S$(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):D$(t)?(a=u,D(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?O(e):45===e?d(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):D$(t)?(a=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?O(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?O(t):D$(t)?(a=y,D(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):D$(t)?(a=v,D(t)):(e.consume(t),v)}function b(e){return 62===e?O(e):v(e)}function E(t){return S$(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||A$(t)?(e.consume(t),x):w(t)}function w(t){return D$(t)?(a=w,D(t)):P$(t)?(e.consume(t),w):O(t)}function T(t){return 45===t||A$(t)?(e.consume(t),T):47===t||62===t||R$(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),O):58===t||95===t||S$(t)?(e.consume(t),S):D$(t)?(a=k,D(t)):P$(t)?(e.consume(t),k):O(t)}function S(t){return 45===t||46===t||58===t||95===t||A$(t)?(e.consume(t),S):A(t)}function A(t){return 61===t?(e.consume(t),N):D$(t)?(a=A,D(t)):P$(t)?(e.consume(t),A):k(t)}function N(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,_):D$(t)?(a=N,D(t)):P$(t)?(e.consume(t),N):(e.consume(t),C)}function _(t){return t===o?(e.consume(t),o=void 0,I):null===t?n(t):D$(t)?(a=_,D(t)):(e.consume(t),_)}function C(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||R$(t)?k(t):(e.consume(t),C)}function I(e){return 47===e||62===e||R$(e)?k(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return P$(t)?j$(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),a(t)}}};const jG={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:_G.resolveAll};const BG={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return D$(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const UG={name:"codeText",tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):D$(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||D$(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};const zG={42:tG,43:tG,45:tG,48:tG,49:tG,50:tG,51:tG,52:tG,53:tG,54:tG,55:tG,56:tG,57:tG,62:oG},VG={91:uG},HG={[-2]:pG,[-1]:pG,32:pG},$G={35:hG,42:eG,45:[mG,eG],60:vG,61:mG,95:eG,96:wG,126:wG},GG={38:SG,92:AG},WG={[-5]:NG,[-4]:NG,[-3]:NG,33:DG,38:SG,42:PG,60:[MG,FG],91:jG,92:[BG,AG],93:_G,95:PG,96:UG},qG={null:[PG,W$]},YG={null:[42,95]},QG={null:[]};const KG=/[\0\t\n\r]/g;function XG(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const JG=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ZG(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return XG(n.slice(t?2:1),t?16:10)}return kG(n)||e}const eW={}.hasOwnProperty;function tW(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ee),autolinkProtocol:S,autolinkEmail:S,atxHeading:i(K),blockQuote:i(G),characterEscape:S,characterReference:S,codeFenced:i(W),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(W,a),codeText:i(q,a),codeTextData:S,data:S,codeFlowValue:S,definition:i(Y),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(Q),hardBreakEscape:i(X),hardBreakTrailing:i(X),htmlFlow:i(J,a),htmlFlowData:S,htmlText:i(J,a),htmlTextData:S,image:i(Z),label:a,link:i(ee),listItem:i(ne),listItemValue:p,listOrdered:i(te,d),listUnordered:i(te),paragraph:i(re),reference:B,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(K),strong:i(oe),thematicBreak:i(ae)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:$,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:V,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:A,codeIndented:l(y),codeText:l(O),codeTextData:A,data:A,definition:l(),definitionDestinationString:E,definitionLabelString:v,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(_),hardBreakTrailing:l(_),htmlFlow:l(C),htmlFlowData:A,htmlText:l(I),htmlTextData:A,image:l(R),label:L,labelText:P,lineEnding:N,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:M,resourceTitleString:F,resource:j,setextHeading:l(k),setextHeadingLineSequence:T,setextHeadingText:w,strong:l(),thematicBreak:l()}};rW(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];eW.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||iW).call(i,void 0,e[0])}for(r.position={start:nW(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nW(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:nW(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+zH({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||iW).call(this,e,r[0])}n.position.end=nW(e.end)}function u(){return p$(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=cG(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function E(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function T(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:nW(e.start),end:void 0},t.push(n)),this.stack.push(n)}function A(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=nW(e.end)}function N(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=nW(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),A.call(this,e))}function _(){this.data.atHardBreak=!0}function C(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(JG,ZG)}(t),n.identifier=cG(t).toLowerCase()}function L(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=cG(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function V(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=XG(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=kG(t)}const o=this.stack.pop();o.value+=r,o.position.end=nW(e.end)}function H(e){A.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function $(e){A.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function G(){return{type:"blockquote",children:[]}}function W(){return{type:"code",lang:null,meta:null,value:""}}function q(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function K(){return{type:"heading",depth:0,children:[]}}function X(){return{type:"break"}}function J(){return{type:"html",value:""}}function Z(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function te(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ne(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function re(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(n)(function(e){for(;!b$(e););return e}(function(e){const t={defined:[],lazy:{},constructs:w$([we,...(e||{}).extensions||[]]),content:n(B$),document:n(U$),flow:n(G$),string:n(q$),text:n(Y$)};return t;function n(e){return function(n){return Z$(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,c,u,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(KG.lastIndex=u,l=KG.exec(o),d=l&&void 0!==l.index?l.index:o.length,p=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function nW(e){return{line:e.line,column:e.column,offset:e.offset}}function rW(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?rW(e,r):oW(e,r)}}function oW(e,t){let n;for(n in t)if(eW.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function iW(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+zH({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+zH({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+zH({start:t.start,end:t.end})+") is still open")}function aW(e){const t=this;t.parser=function(n){return tW(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const sW="object"==typeof self?self:globalThis,lW=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new sW[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new sW[i](a),o)};return r})(new Map,e)(0),cW="",{toString:uW}={},{keys:dW}=Object,pW=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=uW.call(e).slice(8,-1);switch(n){case"Array":return[1,cW];case"Object":return[2,cW];case"Date":return[3,cW];case"RegExp":return[4,cW];case"Map":return[5,cW];case"Set":return[6,cW];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},fW=([e,t])=>0===e&&("function"===t||"symbol"===t),hW=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=pW(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),o([s,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,r.toString()],r);case"Boolean":case"Number":case"String":return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=o([a,n],r);for(const t of dW(r))!e&&fW(pW(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!fW(pW(n))&&!fW(pW(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&fW(pW(n))||t.push(i(n));return n}}const{message:l}=r;return o([a,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},mW="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?lW(hW(e,t)):structuredClone(e):(e,t)=>lW(hW(e,t));function gW(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&A$(e.charCodeAt(n+1))&&A$(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function yW(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function vW(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const bW=function(e){if(null==e)return xW;if("function"==typeof e)return EW(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bW(e[n]);return EW(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return EW(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return EW(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function EW(e){return function(t,n,r){return Boolean(wW(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function xW(){return!0}function wW(e){return null!==e&&"object"==typeof e&&"type"in e}const TW=[],kW=!0,SW=!1;function AW(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=bW(o),a=r?-1:1;!function e(o,s,l){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=TW;if((!t||i(o,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[kW,e];return null==e?TW:[e]}(n(o,l)),p[0]===SW))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===SW)return c;u="number"==typeof c[1]?c[1]:u+a}}return p}}(e,void 0,[])()}function NW(e,t,n,r){let o,i,a;"function"==typeof t&&"function"!=typeof n?(i=void 0,a=t,o=n):(i=t,a=n,o=r),AW(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}function _W(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function CW(e){const t=e.spread;return t??e.children.length>1}function IW(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(OW(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(OW(t.slice(o),o>0,!1)),i.join("")}function OW(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const DW={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=gW(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _W(e,t);const o={src:gW(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:gW(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _W(e,t);const o={href:gW(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:gW(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=CW(n[r])}return t}(n):CW(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=BH(t.children[1]),a=jH(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:IW(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:RW,yaml:RW,definition:RW,footnoteDefinition:RW};function RW(){}const PW={}.hasOwnProperty,LW={};function MW(e,t){e.position&&(t.position=function(e){const t=BH(e),n=jH(e);if(t&&n)return{start:t,end:n}}(e))}function FW(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,mW(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function jW(e,t){const n=t.data||{},r=!("value"in t)||PW.call(n,"hProperties")||PW.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function BW(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function UW(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function zW(e,t){const n=function(e,t){const n=t||LW,r=new Map,o=new Map,i=new Map,a={...DW,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=UW(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=UW(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:FW,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(PW.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=mW(n);return r.children=s.all(e),r}return mW(e)}return(s.options.unknownHandler||jW)(s,e,t)},options:n,patch:MW,wrap:BW};return NW(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||yW,r=e.options.footnoteBackLabel||vW,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=gW(a.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(a);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...mW(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function VW(e,t){return e&&"run"in e?async function(n,r){const o=zW(n,{file:r,...t});await e.run(o,r)}:function(n,r){return zW(n,{file:r,...t||e})}}function HW(e){if(e)throw e}function $W(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function GW(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}o();const WW={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');qW(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(qW(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){qW(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)qW(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){qW(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function qW(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const YW={cwd:function(){return"/"}};function QW(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function KW(e){if("string"==typeof e)e=new URL(e);else if(!QW(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const XW=["history","path","basename","stem","extname","dirname"];class JW{constructor(e){let t;t=e?QW(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=YW.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<XW.length;){const e=XW[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)XW.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?WW.basename(this.path):void 0}set basename(e){eq(e,"basename"),ZW(e,"basename"),this.path=WW.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?WW.dirname(this.path):void 0}set dirname(e){tq(this.basename,"dirname"),this.path=WW.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?WW.extname(this.path):void 0}set extname(e){if(ZW(e,"extname"),tq(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=WW.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){QW(e)&&(e=KW(e)),eq(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?WW.basename(this.path,this.extname):void 0}set stem(e){eq(e,"stem"),ZW(e,"stem"),this.path=WW.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new GH(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function ZW(e,t){if(e&&e.includes(WW.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+WW.sep+"`")}function eq(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function tq(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const nq=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,t);const o=Object.getOwnPropertyNames(n);for(const e of o){const t=Object.getOwnPropertyDescriptor(n,e);t&&Object.defineProperty(r,e,t)}return r},rq={}.hasOwnProperty;class oq extends nq{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=GW()}copy(){const e=new oq;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(o()(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(lq("data",this.frozen),this.namespace[e]=t,this):rq.call(this.namespace,e)&&this.namespace[e]||void 0:e?(lq("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=dq(e),n=this.parser||this.Parser;return aq("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),aq("process",this.parser||this.Parser),sq("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=dq(e),a=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),aq("processSync",this.parser||this.Parser),sq("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,HW(e),t=r}),uq("processSync","process",n),t}run(e,t,n){cq(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=dq(t);r.run(e,a,function(t,r,a){const s=r||e;t?i(t):o?o(s):n(void 0,s,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){HW(e),n=t,r=!0}),uq("runSync","run",r),n}stringify(e,t){this.freeze();const n=dq(t),r=this.compiler||this.Compiler;return sq("stringify",r),cq(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(lq("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):a(e)}return this;function i(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=o()(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function l(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t;const s=n[i][1];$W(s)&&$W(r)&&(r=o()(!0,s,r)),n[i]=[e,r,...a]}}}}const iq=(new oq).freeze();function aq(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function sq(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function lq(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function cq(e){if(!$W(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function uq(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function dq(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new JW(e)}const pq=[],fq={allowDangerousHtml:!0},hq=/^(https?|ircs?|mailto|xmpp)$/i,mq=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function gq(e){const t=yq(e),n=vq(e);return bq(t.runSync(t.parse(n),n),e)}function yq(e){const t=e.rehypePlugins||pq,n=e.remarkPlugins||pq,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...fq}:fq;return iq().use(aW).use(n).use(VW,r).use(t)}function vq(e){const t=e.children||"",n=new JW;return"string"==typeof t&&(n.value=t),n}function bq(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Eq;for(const e of mq)Object.hasOwn(t,e.from)&&KV((e.from,e.to&&e.to,e.id));return NW(e,function(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return a?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in u$)if(Object.hasOwn(u$,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=u$[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,o)),a&&o&&"number"==typeof t)return s&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}),ZH(e,{Fragment:c().Fragment,components:o,ignoreInvalidStyle:!0,jsx:c().jsx,jsxs:c().jsxs,passKeys:!0,passNode:!0})}function Eq(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||hq.test(e.slice(0,t))?e:""}class xq{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function wq(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new xq(n,r,t)}function Tq(e){return e.toLowerCase()}xq.prototype.property={},xq.prototype.normal={},xq.prototype.space=null;class kq{constructor(e,t){this.property=e,this.attribute=t}}kq.prototype.space=null,kq.prototype.boolean=!1,kq.prototype.booleanish=!1,kq.prototype.overloadedBoolean=!1,kq.prototype.number=!1,kq.prototype.commaSeparated=!1,kq.prototype.spaceSeparated=!1,kq.prototype.commaOrSpaceSeparated=!1,kq.prototype.mustUseProperty=!1,kq.prototype.defined=!1;let Sq=0;const Aq=Rq(),Nq=Rq(),_q=Rq(),Cq=Rq(),Iq=Rq(),Oq=Rq(),Dq=Rq();function Rq(){return 2**++Sq}const Pq=Object.keys(Te);class Lq extends kq{constructor(e,t,n,r){let o=-1;if(super(e,t),Mq(this,"space",r),"number"==typeof n)for(;++o<Pq.length;){const e=Pq[o];Mq(this,Pq[o],(n&Te[e])===Te[e])}}}function Mq(e,t,n){n&&(e[t]=n)}Lq.prototype.defined=!0;const Fq={}.hasOwnProperty;function jq(e){const t={},n={};let r;for(r in e.properties)if(Fq.call(e.properties,r)){const o=e.properties[r],i=new Lq(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Tq(r)]=r,n[Tq(i.attribute)]=r}return new xq(t,n,e.space)}const Bq=jq({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Uq=jq({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function zq(e,t){return t in e?e[t]:t}function Vq(e,t){return zq(e,t.toLowerCase())}const Hq=jq({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Vq,properties:{xmlns:null,xmlnsXLink:null}}),$q=jq({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Nq,ariaAutoComplete:null,ariaBusy:Nq,ariaChecked:Nq,ariaColCount:Cq,ariaColIndex:Cq,ariaColSpan:Cq,ariaControls:Iq,ariaCurrent:null,ariaDescribedBy:Iq,ariaDetails:null,ariaDisabled:Nq,ariaDropEffect:Iq,ariaErrorMessage:null,ariaExpanded:Nq,ariaFlowTo:Iq,ariaGrabbed:Nq,ariaHasPopup:null,ariaHidden:Nq,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Iq,ariaLevel:Cq,ariaLive:null,ariaModal:Nq,ariaMultiLine:Nq,ariaMultiSelectable:Nq,ariaOrientation:null,ariaOwns:Iq,ariaPlaceholder:null,ariaPosInSet:Cq,ariaPressed:Nq,ariaReadOnly:Nq,ariaRelevant:null,ariaRequired:Nq,ariaRoleDescription:Iq,ariaRowCount:Cq,ariaRowIndex:Cq,ariaRowSpan:Cq,ariaSelected:Nq,ariaSetSize:Cq,ariaSort:null,ariaValueMax:Cq,ariaValueMin:Cq,ariaValueNow:Cq,ariaValueText:null,role:null}}),Gq=jq({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Vq,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Oq,acceptCharset:Iq,accessKey:Iq,action:null,allow:null,allowFullScreen:Aq,allowPaymentRequest:Aq,allowUserMedia:Aq,alt:null,as:null,async:Aq,autoCapitalize:null,autoComplete:Iq,autoFocus:Aq,autoPlay:Aq,blocking:Iq,capture:null,charSet:null,checked:Aq,cite:null,className:Iq,cols:Cq,colSpan:null,content:null,contentEditable:Nq,controls:Aq,controlsList:Iq,coords:Cq|Oq,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Aq,defer:Aq,dir:null,dirName:null,disabled:Aq,download:_q,draggable:Nq,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Aq,formTarget:null,headers:Iq,height:Cq,hidden:Aq,high:Cq,href:null,hrefLang:null,htmlFor:Iq,httpEquiv:Iq,id:null,imageSizes:null,imageSrcSet:null,inert:Aq,inputMode:null,integrity:null,is:null,isMap:Aq,itemId:null,itemProp:Iq,itemRef:Iq,itemScope:Aq,itemType:Iq,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Aq,low:Cq,manifest:null,max:null,maxLength:Cq,media:null,method:null,min:null,minLength:Cq,multiple:Aq,muted:Aq,name:null,nonce:null,noModule:Aq,noValidate:Aq,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Aq,optimum:Cq,pattern:null,ping:Iq,placeholder:null,playsInline:Aq,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Aq,referrerPolicy:null,rel:Iq,required:Aq,reversed:Aq,rows:Cq,rowSpan:Cq,sandbox:Iq,scope:null,scoped:Aq,seamless:Aq,selected:Aq,shadowRootClonable:Aq,shadowRootDelegatesFocus:Aq,shadowRootMode:null,shape:null,size:Cq,sizes:null,slot:null,span:Cq,spellCheck:Nq,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Cq,step:null,style:null,tabIndex:Cq,target:null,title:null,translate:null,type:null,typeMustMatch:Aq,useMap:null,value:Nq,width:Cq,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Iq,axis:null,background:null,bgColor:null,border:Cq,borderColor:null,bottomMargin:Cq,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Aq,declare:Aq,event:null,face:null,frame:null,frameBorder:null,hSpace:Cq,leftMargin:Cq,link:null,longDesc:null,lowSrc:null,marginHeight:Cq,marginWidth:Cq,noResize:Aq,noHref:Aq,noShade:Aq,noWrap:Aq,object:null,profile:null,prompt:null,rev:null,rightMargin:Cq,rules:null,scheme:null,scrolling:Nq,standby:null,summary:null,text:null,topMargin:Cq,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Cq,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Aq,disableRemotePlayback:Aq,prefix:null,property:null,results:Cq,security:null,unselectable:null}}),Wq=jq({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:zq,properties:{about:Dq,accentHeight:Cq,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Cq,amplitude:Cq,arabicForm:null,ascent:Cq,attributeName:null,attributeType:null,azimuth:Cq,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Cq,by:null,calcMode:null,capHeight:Cq,className:Iq,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Cq,diffuseConstant:Cq,direction:null,display:null,dur:null,divisor:Cq,dominantBaseline:null,download:Aq,dx:null,dy:null,edgeMode:null,editable:null,elevation:Cq,enableBackground:null,end:null,event:null,exponent:Cq,externalResourcesRequired:null,fill:null,fillOpacity:Cq,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Oq,g2:Oq,glyphName:Oq,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Cq,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Cq,horizOriginX:Cq,horizOriginY:Cq,id:null,ideographic:Cq,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Cq,k:Cq,k1:Cq,k2:Cq,k3:Cq,k4:Cq,kernelMatrix:Dq,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Cq,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Cq,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Cq,overlineThickness:Cq,paintOrder:null,panose1:null,path:null,pathLength:Cq,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Iq,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Cq,pointsAtY:Cq,pointsAtZ:Cq,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dq,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dq,rev:Dq,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dq,requiredFeatures:Dq,requiredFonts:Dq,requiredFormats:Dq,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Cq,specularExponent:Cq,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Cq,strikethroughThickness:Cq,string:null,stroke:null,strokeDashArray:Dq,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Cq,strokeOpacity:Cq,strokeWidth:null,style:null,surfaceScale:Cq,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dq,tabIndex:Cq,tableValues:null,target:null,targetX:Cq,targetY:Cq,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dq,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Cq,underlineThickness:Cq,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Cq,values:null,vAlphabetic:Cq,vMathematical:Cq,vectorEffect:null,vHanging:Cq,vIdeographic:Cq,version:null,vertAdvY:Cq,vertOriginX:Cq,vertOriginY:Cq,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Cq,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),qq=wq([Uq,Bq,Hq,$q,Gq],"html"),Yq=wq([Uq,Bq,Hq,$q,Wq],"svg");function Qq(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);const e=n.slice(o,r).trim();!e&&i||t.push(e),o=r+1,r=n.indexOf(",",o)}return t}const Kq=/[#.]/g;const Xq=/^data[-\w.:]+$/i,Jq=/-[a-z]/g,Zq=/[A-Z]/g;function eY(e,t){const n=Tq(t);let r=t,o=kq;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Xq.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Jq,nY);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Jq.test(e)){let n=e.replace(Zq,tY);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Lq}return new o(r,t)}function tY(e){return"-"+e.toLowerCase()}function nY(e){return e.charAt(1).toUpperCase()}function rY(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const oY=new Set(["button","menu","reset","submit"]),iY={}.hasOwnProperty;function aY(e,t,n){const r=n&&function(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}(n);return function(n,o,...i){let a,s=-1;if(null==n){a={type:"root",children:[]};const e=o;i.unshift(e)}else if(a=function(e,t){const n=e||"",r={};let o,i,a=0;for(;a<n.length;){Kq.lastIndex=a;const e=Kq.exec(n),t=n.slice(a,e?e.index:n.length);t&&(o?"#"===o?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:i=t,a+=t.length),e&&(o=e[0],a++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}(n,t),a.tagName=a.tagName.toLowerCase(),r&&iY.call(r,a.tagName)&&(a.tagName=r[a.tagName]),function(e,t){if(null==e||"object"!=typeof e||Array.isArray(e))return!1;if("input"===t||!e.type||"string"!=typeof e.type)return!0;if("children"in e&&Array.isArray(e.children))return!1;if("button"===t)return oY.has(e.type.toLowerCase());return!("value"in e)}(o,a.tagName)){let t;for(t in o)iY.call(o,t)&&sY(e,a.properties,t,o[t])}else i.unshift(o);for(;++s<i.length;)lY(a.children,i[s]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function sY(e,t,n,r){const o=eY(e,n);let i,a=-1;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;i=r}else i="boolean"==typeof r?r:"string"==typeof r?o.spaceSeparated?rY(r):o.commaSeparated?Qq(r):o.commaOrSpaceSeparated?rY(Qq(r).join(" ")):cY(o,o.property,r):Array.isArray(r)?r.concat():"style"===o.property?function(e){const t=[];let n;for(n in e)iY.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(i)){const e=[];for(;++a<i.length;){const t=cY(o,o.property,i[a]);e[a]=t}i=e}if("className"===o.property&&Array.isArray(t.className)){const e=i;i=t.className.concat(e)}t[o.property]=i}}function lY(e,t){let n=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)lY(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?lY(e,t.children):e.push(t)}}function cY(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||Tq(n)===Tq(t)))return!0}return n}const uY=aY(qq,"div"),dY=aY(Yq,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),pY=/\r?\n|\r/g;const fY={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},hY={}.hasOwnProperty,mY=Object.prototype;function gY(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},vY(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:yY(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];for(pY.lastIndex=0;pY.test(t);)n.push(pY.lastIndex);return n.push(t.length+1),{toPoint:function(e){let t=-1;if("number"==typeof e&&e>-1&&e<n[n.length-1])for(;++t<n.length;)if(n[t]>e)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}},toOffset:function(e){const t=e&&e.line,r=e&&e.column;if("number"==typeof t&&"number"==typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){const e=(n[t-2]||0)+r-1||0;if(e>-1&&e<n[n.length-1])return e}}}}(t),o=r.toPoint(0),i=r.toPoint(t.length);n.position={start:o,end:i}}return n}case"#documentType":return n={type:"doctype"},vY(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},vY(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===fY.svg?Yq:qq;let r=-1;const o={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;hY.call(mY,n)||(o[n]=e.value)}const i="svg"===e.schema.space?dY:uY,a=i(t.tagName,o,yY(e,t.childNodes));if(vY(e,t,a),"template"===a.tagName){const n=t,r=n.sourceCodeLocation,o=r&&r.startTag&&bY(r.startTag),i=r&&r.endTag&&bY(r.endTag),s=gY(e,n.content);o&&i&&e.file&&(s.position={start:o.end,end:i.start}),a.content=s}return e.schema=n,a}(e,t),n}}function yY(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=gY(e,t[n]);r.push(o)}return r}function vY(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=bY(n);if("element"===t.type){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const r={};let o;if(n.attrs)for(o in n.attrs)hY.call(n.attrs,o)&&(r[eY(e.schema,o).property]=bY(n.attrs[o]));n.startTag;const i=bY(n.startTag),a=n.endTag?bY(n.endTag):void 0,s={opening:i};a&&(s.closing=a),s.properties=r,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function bY(e){const t=EY({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=EY({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function EY(e){return e.line&&e.column?e:void 0}class xY{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function wY(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new xY(n,r,t)}function TY(e){return e.toLowerCase()}xY.prototype.property={},xY.prototype.normal={},xY.prototype.space=null;class kY{constructor(e,t){this.property=e,this.attribute=t}}kY.prototype.space=null,kY.prototype.boolean=!1,kY.prototype.booleanish=!1,kY.prototype.overloadedBoolean=!1,kY.prototype.number=!1,kY.prototype.commaSeparated=!1,kY.prototype.spaceSeparated=!1,kY.prototype.commaOrSpaceSeparated=!1,kY.prototype.mustUseProperty=!1,kY.prototype.defined=!1;let SY=0;const AY=RY(),NY=RY(),_Y=RY(),CY=RY(),IY=RY(),OY=RY(),DY=RY();function RY(){return 2**++SY}const PY=Object.keys(ke);class LY extends kY{constructor(e,t,n,r){let o=-1;if(super(e,t),MY(this,"space",r),"number"==typeof n)for(;++o<PY.length;){const e=PY[o];MY(this,PY[o],(n&ke[e])===ke[e])}}}function MY(e,t,n){n&&(e[t]=n)}LY.prototype.defined=!0;const FY={}.hasOwnProperty;function jY(e){const t={},n={};let r;for(r in e.properties)if(FY.call(e.properties,r)){const o=e.properties[r],i=new LY(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[TY(r)]=r,n[TY(i.attribute)]=r}return new xY(t,n,e.space)}const BY=jY({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),UY=jY({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function zY(e,t){return t in e?e[t]:t}function VY(e,t){return zY(e,t.toLowerCase())}const HY=jY({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:VY,properties:{xmlns:null,xmlnsXLink:null}}),$Y=jY({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:NY,ariaAutoComplete:null,ariaBusy:NY,ariaChecked:NY,ariaColCount:CY,ariaColIndex:CY,ariaColSpan:CY,ariaControls:IY,ariaCurrent:null,ariaDescribedBy:IY,ariaDetails:null,ariaDisabled:NY,ariaDropEffect:IY,ariaErrorMessage:null,ariaExpanded:NY,ariaFlowTo:IY,ariaGrabbed:NY,ariaHasPopup:null,ariaHidden:NY,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:IY,ariaLevel:CY,ariaLive:null,ariaModal:NY,ariaMultiLine:NY,ariaMultiSelectable:NY,ariaOrientation:null,ariaOwns:IY,ariaPlaceholder:null,ariaPosInSet:CY,ariaPressed:NY,ariaReadOnly:NY,ariaRelevant:null,ariaRequired:NY,ariaRoleDescription:IY,ariaRowCount:CY,ariaRowIndex:CY,ariaRowSpan:CY,ariaSelected:NY,ariaSetSize:CY,ariaSort:null,ariaValueMax:CY,ariaValueMin:CY,ariaValueNow:CY,ariaValueText:null,role:null}}),GY=jY({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:VY,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:OY,acceptCharset:IY,accessKey:IY,action:null,allow:null,allowFullScreen:AY,allowPaymentRequest:AY,allowUserMedia:AY,alt:null,as:null,async:AY,autoCapitalize:null,autoComplete:IY,autoFocus:AY,autoPlay:AY,blocking:IY,capture:null,charSet:null,checked:AY,cite:null,className:IY,cols:CY,colSpan:null,content:null,contentEditable:NY,controls:AY,controlsList:IY,coords:CY|OY,crossOrigin:null,data:null,dateTime:null,decoding:null,default:AY,defer:AY,dir:null,dirName:null,disabled:AY,download:_Y,draggable:NY,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:AY,formTarget:null,headers:IY,height:CY,hidden:AY,high:CY,href:null,hrefLang:null,htmlFor:IY,httpEquiv:IY,id:null,imageSizes:null,imageSrcSet:null,inert:AY,inputMode:null,integrity:null,is:null,isMap:AY,itemId:null,itemProp:IY,itemRef:IY,itemScope:AY,itemType:IY,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:AY,low:CY,manifest:null,max:null,maxLength:CY,media:null,method:null,min:null,minLength:CY,multiple:AY,muted:AY,name:null,nonce:null,noModule:AY,noValidate:AY,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:AY,optimum:CY,pattern:null,ping:IY,placeholder:null,playsInline:AY,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:AY,referrerPolicy:null,rel:IY,required:AY,reversed:AY,rows:CY,rowSpan:CY,sandbox:IY,scope:null,scoped:AY,seamless:AY,selected:AY,shadowRootClonable:AY,shadowRootDelegatesFocus:AY,shadowRootMode:null,shape:null,size:CY,sizes:null,slot:null,span:CY,spellCheck:NY,src:null,srcDoc:null,srcLang:null,srcSet:null,start:CY,step:null,style:null,tabIndex:CY,target:null,title:null,translate:null,type:null,typeMustMatch:AY,useMap:null,value:NY,width:CY,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:IY,axis:null,background:null,bgColor:null,border:CY,borderColor:null,bottomMargin:CY,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:AY,declare:AY,event:null,face:null,frame:null,frameBorder:null,hSpace:CY,leftMargin:CY,link:null,longDesc:null,lowSrc:null,marginHeight:CY,marginWidth:CY,noResize:AY,noHref:AY,noShade:AY,noWrap:AY,object:null,profile:null,prompt:null,rev:null,rightMargin:CY,rules:null,scheme:null,scrolling:NY,standby:null,summary:null,text:null,topMargin:CY,valueType:null,version:null,vAlign:null,vLink:null,vSpace:CY,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:AY,disableRemotePlayback:AY,prefix:null,property:null,results:CY,security:null,unselectable:null}}),WY=jY({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:zY,properties:{about:DY,accentHeight:CY,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:CY,amplitude:CY,arabicForm:null,ascent:CY,attributeName:null,attributeType:null,azimuth:CY,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:CY,by:null,calcMode:null,capHeight:CY,className:IY,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:CY,diffuseConstant:CY,direction:null,display:null,dur:null,divisor:CY,dominantBaseline:null,download:AY,dx:null,dy:null,edgeMode:null,editable:null,elevation:CY,enableBackground:null,end:null,event:null,exponent:CY,externalResourcesRequired:null,fill:null,fillOpacity:CY,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:OY,g2:OY,glyphName:OY,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:CY,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:CY,horizOriginX:CY,horizOriginY:CY,id:null,ideographic:CY,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:CY,k:CY,k1:CY,k2:CY,k3:CY,k4:CY,kernelMatrix:DY,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:CY,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:CY,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:CY,overlineThickness:CY,paintOrder:null,panose1:null,path:null,pathLength:CY,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:IY,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:CY,pointsAtY:CY,pointsAtZ:CY,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:DY,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:DY,rev:DY,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:DY,requiredFeatures:DY,requiredFonts:DY,requiredFormats:DY,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:CY,specularExponent:CY,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:CY,strikethroughThickness:CY,string:null,stroke:null,strokeDashArray:DY,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:CY,strokeOpacity:CY,strokeWidth:null,style:null,surfaceScale:CY,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:DY,tabIndex:CY,tableValues:null,target:null,targetX:CY,targetY:CY,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:DY,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:CY,underlineThickness:CY,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:CY,values:null,vAlphabetic:CY,vMathematical:CY,vectorEffect:null,vHanging:CY,vIdeographic:CY,version:null,vertAdvY:CY,vertOriginX:CY,vertOriginY:CY,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:CY,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),qY=wY([UY,BY,HY,$Y,GY],"html"),YY=wY([UY,BY,HY,$Y,WY],"svg"),QY=/^data[-\w.:]+$/i,KY=/-[a-z]/g,XY=/[A-Z]/g;function JY(e){return"-"+e.toLowerCase()}function ZY(e){return e.charAt(1).toUpperCase()}const eQ={}.hasOwnProperty;function tQ(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&eQ.call(t,e)){const n=String(t[e]);o=eQ.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const nQ={},rQ={}.hasOwnProperty,oQ=tQ("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=aQ(e.children,n,t),sQ(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=YY);const o=[];let i;if(e.properties)for(i in e.properties)if("children"!==i&&rQ.call(e.properties,i)){const t=iQ(r,i,e.properties[i]);t&&o.push(t)}const a=r.space;const s={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:fY[a],childNodes:[],parentNode:null};s.childNodes=aQ(e.children,s,r),sQ(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=aQ(e.children,n,t),sQ(e,n),n}(e.content,r));return s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return sQ(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return sQ(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return sQ(e,t),t}}});function iQ(e,t,n){const r=function(e,t){const n=TY(t);let r=t,o=kY;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&QY.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(KY,ZY);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!KY.test(e)){let n=e.replace(XY,JY);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=LY}return new o(r,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim());const o={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=o.name.indexOf(":");e<0?o.prefix="":(o.name=o.name.slice(e+1),o.prefix=r.attribute.slice(0,e)),o.namespace=fY[r.space]}return o}function aQ(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const i=oQ(e[r],n);i.parentNode=t,o.push(i)}return o}function sQ(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const lQ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],cQ=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);var uQ;!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"}(uQ||(uQ={}));const dQ="--",pQ="[CDATA[",fQ="doctype",hQ="script",mQ="public",gQ="system";function yQ(e){return e>=55296&&e<=57343}function vQ(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function bQ(e){return e>=64976&&e<=65007||cQ.has(e)}var EQ;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(EQ||(EQ={}));class xQ{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:o}=this,i=r+t,a=o+t;return{code:e,startLine:n,endLine:n,startCol:i,endCol:i,startOffset:a,endOffset:a}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,uQ.EOF;return this._err(EQ.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++){if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,uQ.EOF;const n=this.html.charCodeAt(t);return n===uQ.CARRIAGE_RETURN?uQ.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,uQ.EOF;let e=this.html.charCodeAt(this.pos);if(e===uQ.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,uQ.LINE_FEED;if(e===uQ.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,yQ(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===uQ.LINE_FEED||e===uQ.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){vQ(e)?this._err(EQ.controlCharacterInInputStream):bQ(e)&&this._err(EQ.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var wQ,TQ;function kQ(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(wQ||(wQ={}));const SQ=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);TQ=String.fromCodePoint;function AQ(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=SQ.get(e))&&void 0!==t?t:e}var NQ;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(NQ||(NQ={}));var _Q,CQ,IQ;function OQ(e){return e>=NQ.ZERO&&e<=NQ.NINE}function DQ(e){return e>=NQ.UPPER_A&&e<=NQ.UPPER_F||e>=NQ.LOWER_A&&e<=NQ.LOWER_F}function RQ(e){return e===NQ.EQUALS||function(e){return e>=NQ.UPPER_A&&e<=NQ.UPPER_Z||e>=NQ.LOWER_A&&e<=NQ.LOWER_Z||OQ(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(_Q||(_Q={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(CQ||(CQ={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(IQ||(IQ={}));class PQ{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=CQ.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=IQ.Strict}startEntity(e){this.decodeMode=e,this.state=CQ.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case CQ.EntityStart:return e.charCodeAt(t)===NQ.NUM?(this.state=CQ.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=CQ.NamedEntity,this.stateNamedEntity(e,t));case CQ.NumericStart:return this.stateNumericStart(e,t);case CQ.NumericDecimal:return this.stateNumericDecimal(e,t);case CQ.NumericHex:return this.stateNumericHex(e,t);case CQ.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===NQ.LOWER_X?(this.state=CQ.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=CQ.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const o=n-t;this.result=this.result*Math.pow(r,o)+Number.parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!OQ(r)&&!DQ(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!OQ(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===NQ.SEMI)this.consumed+=1;else if(this.decodeMode===IQ.Strict)return 0;return this.emitCodePoint(AQ(this.result),this.consumed),this.errors&&(e!==NQ.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],o=(r&_Q.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const i=e.charCodeAt(t);if(this.treeIndex=LQ(n,r,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return 0===this.result||this.decodeMode===IQ.Attribute&&(0===o||RQ(i))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&_Q.VALUE_LENGTH)>>14,0!==o){if(i===NQ.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==IQ.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&_Q.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~_Q.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case CQ.NamedEntity:return 0===this.result||this.decodeMode===IQ.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case CQ.NumericDecimal:return this.emitNumericEntity(0,2);case CQ.NumericHex:return this.emitNumericEntity(0,3);case CQ.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case CQ.EntityStart:return 0}}}function LQ(e,t,n,r){const o=(t&_Q.BRANCH_LENGTH)>>7,i=t&_Q.JUMP_TABLE;if(0===o)return 0!==i&&r===i?n:-1;if(i){const t=r-i;return t<0||t>=o?-1:e[n+t]-1}let a=n,s=a+o-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(n<r)a=t+1;else{if(!(n>r))return e[t+o];s=t-1}}return-1}const MQ=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)));var FQ,jQ,BQ,UQ,zQ;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(FQ||(FQ={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(jQ||(jQ={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(BQ||(BQ={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(UQ||(UQ={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(zQ||(zQ={}));const VQ=new Map([[UQ.A,zQ.A],[UQ.ADDRESS,zQ.ADDRESS],[UQ.ANNOTATION_XML,zQ.ANNOTATION_XML],[UQ.APPLET,zQ.APPLET],[UQ.AREA,zQ.AREA],[UQ.ARTICLE,zQ.ARTICLE],[UQ.ASIDE,zQ.ASIDE],[UQ.B,zQ.B],[UQ.BASE,zQ.BASE],[UQ.BASEFONT,zQ.BASEFONT],[UQ.BGSOUND,zQ.BGSOUND],[UQ.BIG,zQ.BIG],[UQ.BLOCKQUOTE,zQ.BLOCKQUOTE],[UQ.BODY,zQ.BODY],[UQ.BR,zQ.BR],[UQ.BUTTON,zQ.BUTTON],[UQ.CAPTION,zQ.CAPTION],[UQ.CENTER,zQ.CENTER],[UQ.CODE,zQ.CODE],[UQ.COL,zQ.COL],[UQ.COLGROUP,zQ.COLGROUP],[UQ.DD,zQ.DD],[UQ.DESC,zQ.DESC],[UQ.DETAILS,zQ.DETAILS],[UQ.DIALOG,zQ.DIALOG],[UQ.DIR,zQ.DIR],[UQ.DIV,zQ.DIV],[UQ.DL,zQ.DL],[UQ.DT,zQ.DT],[UQ.EM,zQ.EM],[UQ.EMBED,zQ.EMBED],[UQ.FIELDSET,zQ.FIELDSET],[UQ.FIGCAPTION,zQ.FIGCAPTION],[UQ.FIGURE,zQ.FIGURE],[UQ.FONT,zQ.FONT],[UQ.FOOTER,zQ.FOOTER],[UQ.FOREIGN_OBJECT,zQ.FOREIGN_OBJECT],[UQ.FORM,zQ.FORM],[UQ.FRAME,zQ.FRAME],[UQ.FRAMESET,zQ.FRAMESET],[UQ.H1,zQ.H1],[UQ.H2,zQ.H2],[UQ.H3,zQ.H3],[UQ.H4,zQ.H4],[UQ.H5,zQ.H5],[UQ.H6,zQ.H6],[UQ.HEAD,zQ.HEAD],[UQ.HEADER,zQ.HEADER],[UQ.HGROUP,zQ.HGROUP],[UQ.HR,zQ.HR],[UQ.HTML,zQ.HTML],[UQ.I,zQ.I],[UQ.IMG,zQ.IMG],[UQ.IMAGE,zQ.IMAGE],[UQ.INPUT,zQ.INPUT],[UQ.IFRAME,zQ.IFRAME],[UQ.KEYGEN,zQ.KEYGEN],[UQ.LABEL,zQ.LABEL],[UQ.LI,zQ.LI],[UQ.LINK,zQ.LINK],[UQ.LISTING,zQ.LISTING],[UQ.MAIN,zQ.MAIN],[UQ.MALIGNMARK,zQ.MALIGNMARK],[UQ.MARQUEE,zQ.MARQUEE],[UQ.MATH,zQ.MATH],[UQ.MENU,zQ.MENU],[UQ.META,zQ.META],[UQ.MGLYPH,zQ.MGLYPH],[UQ.MI,zQ.MI],[UQ.MO,zQ.MO],[UQ.MN,zQ.MN],[UQ.MS,zQ.MS],[UQ.MTEXT,zQ.MTEXT],[UQ.NAV,zQ.NAV],[UQ.NOBR,zQ.NOBR],[UQ.NOFRAMES,zQ.NOFRAMES],[UQ.NOEMBED,zQ.NOEMBED],[UQ.NOSCRIPT,zQ.NOSCRIPT],[UQ.OBJECT,zQ.OBJECT],[UQ.OL,zQ.OL],[UQ.OPTGROUP,zQ.OPTGROUP],[UQ.OPTION,zQ.OPTION],[UQ.P,zQ.P],[UQ.PARAM,zQ.PARAM],[UQ.PLAINTEXT,zQ.PLAINTEXT],[UQ.PRE,zQ.PRE],[UQ.RB,zQ.RB],[UQ.RP,zQ.RP],[UQ.RT,zQ.RT],[UQ.RTC,zQ.RTC],[UQ.RUBY,zQ.RUBY],[UQ.S,zQ.S],[UQ.SCRIPT,zQ.SCRIPT],[UQ.SEARCH,zQ.SEARCH],[UQ.SECTION,zQ.SECTION],[UQ.SELECT,zQ.SELECT],[UQ.SOURCE,zQ.SOURCE],[UQ.SMALL,zQ.SMALL],[UQ.SPAN,zQ.SPAN],[UQ.STRIKE,zQ.STRIKE],[UQ.STRONG,zQ.STRONG],[UQ.STYLE,zQ.STYLE],[UQ.SUB,zQ.SUB],[UQ.SUMMARY,zQ.SUMMARY],[UQ.SUP,zQ.SUP],[UQ.TABLE,zQ.TABLE],[UQ.TBODY,zQ.TBODY],[UQ.TEMPLATE,zQ.TEMPLATE],[UQ.TEXTAREA,zQ.TEXTAREA],[UQ.TFOOT,zQ.TFOOT],[UQ.TD,zQ.TD],[UQ.TH,zQ.TH],[UQ.THEAD,zQ.THEAD],[UQ.TITLE,zQ.TITLE],[UQ.TR,zQ.TR],[UQ.TRACK,zQ.TRACK],[UQ.TT,zQ.TT],[UQ.U,zQ.U],[UQ.UL,zQ.UL],[UQ.SVG,zQ.SVG],[UQ.VAR,zQ.VAR],[UQ.WBR,zQ.WBR],[UQ.XMP,zQ.XMP]]);function HQ(e){var t;return null!==(t=VQ.get(e))&&void 0!==t?t:zQ.UNKNOWN}const $Q=zQ,GQ={[FQ.HTML]:new Set([$Q.ADDRESS,$Q.APPLET,$Q.AREA,$Q.ARTICLE,$Q.ASIDE,$Q.BASE,$Q.BASEFONT,$Q.BGSOUND,$Q.BLOCKQUOTE,$Q.BODY,$Q.BR,$Q.BUTTON,$Q.CAPTION,$Q.CENTER,$Q.COL,$Q.COLGROUP,$Q.DD,$Q.DETAILS,$Q.DIR,$Q.DIV,$Q.DL,$Q.DT,$Q.EMBED,$Q.FIELDSET,$Q.FIGCAPTION,$Q.FIGURE,$Q.FOOTER,$Q.FORM,$Q.FRAME,$Q.FRAMESET,$Q.H1,$Q.H2,$Q.H3,$Q.H4,$Q.H5,$Q.H6,$Q.HEAD,$Q.HEADER,$Q.HGROUP,$Q.HR,$Q.HTML,$Q.IFRAME,$Q.IMG,$Q.INPUT,$Q.LI,$Q.LINK,$Q.LISTING,$Q.MAIN,$Q.MARQUEE,$Q.MENU,$Q.META,$Q.NAV,$Q.NOEMBED,$Q.NOFRAMES,$Q.NOSCRIPT,$Q.OBJECT,$Q.OL,$Q.P,$Q.PARAM,$Q.PLAINTEXT,$Q.PRE,$Q.SCRIPT,$Q.SECTION,$Q.SELECT,$Q.SOURCE,$Q.STYLE,$Q.SUMMARY,$Q.TABLE,$Q.TBODY,$Q.TD,$Q.TEMPLATE,$Q.TEXTAREA,$Q.TFOOT,$Q.TH,$Q.THEAD,$Q.TITLE,$Q.TR,$Q.TRACK,$Q.UL,$Q.WBR,$Q.XMP]),[FQ.MATHML]:new Set([$Q.MI,$Q.MO,$Q.MN,$Q.MS,$Q.MTEXT,$Q.ANNOTATION_XML]),[FQ.SVG]:new Set([$Q.TITLE,$Q.FOREIGN_OBJECT,$Q.DESC]),[FQ.XLINK]:new Set,[FQ.XML]:new Set,[FQ.XMLNS]:new Set},WQ=new Set([$Q.H1,$Q.H2,$Q.H3,$Q.H4,$Q.H5,$Q.H6]);new Set([UQ.STYLE,UQ.SCRIPT,UQ.XMP,UQ.IFRAME,UQ.NOEMBED,UQ.NOFRAMES,UQ.PLAINTEXT]);var qQ;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(qQ||(qQ={}));const YQ={DATA:qQ.DATA,RCDATA:qQ.RCDATA,RAWTEXT:qQ.RAWTEXT,SCRIPT_DATA:qQ.SCRIPT_DATA,PLAINTEXT:qQ.PLAINTEXT,CDATA_SECTION:qQ.CDATA_SECTION};function QQ(e){return e>=uQ.LATIN_CAPITAL_A&&e<=uQ.LATIN_CAPITAL_Z}function KQ(e){return function(e){return e>=uQ.LATIN_SMALL_A&&e<=uQ.LATIN_SMALL_Z}(e)||QQ(e)}function XQ(e){return KQ(e)||function(e){return e>=uQ.DIGIT_0&&e<=uQ.DIGIT_9}(e)}function JQ(e){return e+32}function ZQ(e){return e===uQ.SPACE||e===uQ.LINE_FEED||e===uQ.TABULATION||e===uQ.FORM_FEED}function eK(e){return ZQ(e)||e===uQ.SOLIDUS||e===uQ.GREATER_THAN_SIGN}class tK{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=qQ.DATA,this.returnState=qQ.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new xQ(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new PQ(MQ,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(EQ.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(EQ.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===uQ.NULL?EQ.nullCharacterReference:e>1114111?EQ.characterReferenceOutsideUnicodeRange:yQ(e)?EQ.surrogateCharacterReference:bQ(e)?EQ.noncharacterCharacterReference:vQ(e)||e===uQ.CARRIAGE_RETURN?EQ.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:wQ.START_TAG,tagName:"",tagID:zQ.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:wQ.END_TAG,tagName:"",tagID:zQ.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:wQ.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:wQ.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===kQ(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(EQ.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=HQ(e.tagName),e.type===wQ.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(EQ.endTagWithAttributes),e.selfClosing&&this._err(EQ.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case wQ.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case wQ.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case wQ.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:wQ.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=ZQ(e)?wQ.WHITESPACE_CHARACTER:e===uQ.NULL?wQ.NULL_CHARACTER:wQ.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(wQ.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=qQ.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?IQ.Attribute:IQ.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===qQ.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===qQ.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===qQ.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case qQ.DATA:this._stateData(e);break;case qQ.RCDATA:this._stateRcdata(e);break;case qQ.RAWTEXT:this._stateRawtext(e);break;case qQ.SCRIPT_DATA:this._stateScriptData(e);break;case qQ.PLAINTEXT:this._statePlaintext(e);break;case qQ.TAG_OPEN:this._stateTagOpen(e);break;case qQ.END_TAG_OPEN:this._stateEndTagOpen(e);break;case qQ.TAG_NAME:this._stateTagName(e);break;case qQ.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case qQ.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case qQ.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case qQ.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case qQ.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case qQ.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case qQ.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case qQ.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case qQ.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case qQ.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case qQ.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case qQ.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case qQ.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case qQ.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case qQ.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case qQ.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case qQ.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case qQ.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case qQ.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case qQ.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case qQ.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case qQ.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case qQ.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case qQ.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case qQ.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case qQ.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case qQ.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case qQ.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case qQ.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case qQ.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case qQ.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case qQ.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case qQ.BOGUS_COMMENT:this._stateBogusComment(e);break;case qQ.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case qQ.COMMENT_START:this._stateCommentStart(e);break;case qQ.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case qQ.COMMENT:this._stateComment(e);break;case qQ.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case qQ.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case qQ.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case qQ.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case qQ.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case qQ.COMMENT_END:this._stateCommentEnd(e);break;case qQ.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case qQ.DOCTYPE:this._stateDoctype(e);break;case qQ.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case qQ.DOCTYPE_NAME:this._stateDoctypeName(e);break;case qQ.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case qQ.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case qQ.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case qQ.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case qQ.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case qQ.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case qQ.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case qQ.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case qQ.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case qQ.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case qQ.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case qQ.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case qQ.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case qQ.CDATA_SECTION:this._stateCdataSection(e);break;case qQ.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case qQ.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case qQ.CHARACTER_REFERENCE:this._stateCharacterReference();break;case qQ.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case uQ.LESS_THAN_SIGN:this.state=qQ.TAG_OPEN;break;case uQ.AMPERSAND:this._startCharacterReference();break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this._emitCodePoint(e);break;case uQ.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case uQ.AMPERSAND:this._startCharacterReference();break;case uQ.LESS_THAN_SIGN:this.state=qQ.RCDATA_LESS_THAN_SIGN;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this._emitChars("�");break;case uQ.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case uQ.LESS_THAN_SIGN:this.state=qQ.RAWTEXT_LESS_THAN_SIGN;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this._emitChars("�");break;case uQ.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case uQ.LESS_THAN_SIGN:this.state=qQ.SCRIPT_DATA_LESS_THAN_SIGN;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this._emitChars("�");break;case uQ.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this._emitChars("�");break;case uQ.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(KQ(e))this._createStartTagToken(),this.state=qQ.TAG_NAME,this._stateTagName(e);else switch(e){case uQ.EXCLAMATION_MARK:this.state=qQ.MARKUP_DECLARATION_OPEN;break;case uQ.SOLIDUS:this.state=qQ.END_TAG_OPEN;break;case uQ.QUESTION_MARK:this._err(EQ.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=qQ.BOGUS_COMMENT,this._stateBogusComment(e);break;case uQ.EOF:this._err(EQ.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(EQ.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=qQ.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(KQ(e))this._createEndTagToken(),this.state=qQ.TAG_NAME,this._stateTagName(e);else switch(e){case uQ.GREATER_THAN_SIGN:this._err(EQ.missingEndTagName),this.state=qQ.DATA;break;case uQ.EOF:this._err(EQ.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(EQ.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=qQ.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:this.state=qQ.BEFORE_ATTRIBUTE_NAME;break;case uQ.SOLIDUS:this.state=qQ.SELF_CLOSING_START_TAG;break;case uQ.GREATER_THAN_SIGN:this.state=qQ.DATA,this.emitCurrentTagToken();break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),t.tagName+="�";break;case uQ.EOF:this._err(EQ.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(QQ(e)?JQ(e):e)}}_stateRcdataLessThanSign(e){e===uQ.SOLIDUS?this.state=qQ.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=qQ.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){KQ(e)?(this.state=qQ.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=qQ.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=qQ.BEFORE_ATTRIBUTE_NAME,!1;case uQ.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=qQ.SELF_CLOSING_START_TAG,!1;case uQ.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=qQ.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=qQ.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===uQ.SOLIDUS?this.state=qQ.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=qQ.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){KQ(e)?(this.state=qQ.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=qQ.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=qQ.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case uQ.SOLIDUS:this.state=qQ.SCRIPT_DATA_END_TAG_OPEN;break;case uQ.EXCLAMATION_MARK:this.state=qQ.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=qQ.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){KQ(e)?(this.state=qQ.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=qQ.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=qQ.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===uQ.HYPHEN_MINUS?(this.state=qQ.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=qQ.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===uQ.HYPHEN_MINUS?(this.state=qQ.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=qQ.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case uQ.HYPHEN_MINUS:this.state=qQ.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case uQ.LESS_THAN_SIGN:this.state=qQ.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this._emitChars("�");break;case uQ.EOF:this._err(EQ.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case uQ.HYPHEN_MINUS:this.state=qQ.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case uQ.LESS_THAN_SIGN:this.state=qQ.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this.state=qQ.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case uQ.EOF:this._err(EQ.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=qQ.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case uQ.HYPHEN_MINUS:this._emitChars("-");break;case uQ.LESS_THAN_SIGN:this.state=qQ.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case uQ.GREATER_THAN_SIGN:this.state=qQ.SCRIPT_DATA,this._emitChars(">");break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this.state=qQ.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case uQ.EOF:this._err(EQ.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=qQ.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===uQ.SOLIDUS?this.state=qQ.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:KQ(e)?(this._emitChars("<"),this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=qQ.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){KQ(e)?(this.state=qQ.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=qQ.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=qQ.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(hQ,!1)&&eK(this.preprocessor.peek(hQ.length))){this._emitCodePoint(e);for(let e=0;e<hQ.length;e++)this._emitCodePoint(this._consume());this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=qQ.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case uQ.HYPHEN_MINUS:this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case uQ.LESS_THAN_SIGN:this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this._emitChars("�");break;case uQ.EOF:this._err(EQ.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case uQ.HYPHEN_MINUS:this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case uQ.LESS_THAN_SIGN:this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case uQ.EOF:this._err(EQ.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case uQ.HYPHEN_MINUS:this._emitChars("-");break;case uQ.LESS_THAN_SIGN:this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case uQ.GREATER_THAN_SIGN:this.state=qQ.SCRIPT_DATA,this._emitChars(">");break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case uQ.EOF:this._err(EQ.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===uQ.SOLIDUS?(this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(hQ,!1)&&eK(this.preprocessor.peek(hQ.length))){this._emitCodePoint(e);for(let e=0;e<hQ.length;e++)this._emitCodePoint(this._consume());this.state=qQ.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=qQ.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:break;case uQ.SOLIDUS:case uQ.GREATER_THAN_SIGN:case uQ.EOF:this.state=qQ.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case uQ.EQUALS_SIGN:this._err(EQ.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=qQ.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=qQ.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:case uQ.SOLIDUS:case uQ.GREATER_THAN_SIGN:case uQ.EOF:this._leaveAttrName(),this.state=qQ.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case uQ.EQUALS_SIGN:this._leaveAttrName(),this.state=qQ.BEFORE_ATTRIBUTE_VALUE;break;case uQ.QUOTATION_MARK:case uQ.APOSTROPHE:case uQ.LESS_THAN_SIGN:this._err(EQ.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(QQ(e)?JQ(e):e)}}_stateAfterAttributeName(e){switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:break;case uQ.SOLIDUS:this.state=qQ.SELF_CLOSING_START_TAG;break;case uQ.EQUALS_SIGN:this.state=qQ.BEFORE_ATTRIBUTE_VALUE;break;case uQ.GREATER_THAN_SIGN:this.state=qQ.DATA,this.emitCurrentTagToken();break;case uQ.EOF:this._err(EQ.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=qQ.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:break;case uQ.QUOTATION_MARK:this.state=qQ.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case uQ.APOSTROPHE:this.state=qQ.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case uQ.GREATER_THAN_SIGN:this._err(EQ.missingAttributeValue),this.state=qQ.DATA,this.emitCurrentTagToken();break;default:this.state=qQ.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case uQ.QUOTATION_MARK:this.state=qQ.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case uQ.AMPERSAND:this._startCharacterReference();break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this.currentAttr.value+="�";break;case uQ.EOF:this._err(EQ.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case uQ.APOSTROPHE:this.state=qQ.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case uQ.AMPERSAND:this._startCharacterReference();break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this.currentAttr.value+="�";break;case uQ.EOF:this._err(EQ.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:this._leaveAttrValue(),this.state=qQ.BEFORE_ATTRIBUTE_NAME;break;case uQ.AMPERSAND:this._startCharacterReference();break;case uQ.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=qQ.DATA,this.emitCurrentTagToken();break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this.currentAttr.value+="�";break;case uQ.QUOTATION_MARK:case uQ.APOSTROPHE:case uQ.LESS_THAN_SIGN:case uQ.EQUALS_SIGN:case uQ.GRAVE_ACCENT:this._err(EQ.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case uQ.EOF:this._err(EQ.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:this._leaveAttrValue(),this.state=qQ.BEFORE_ATTRIBUTE_NAME;break;case uQ.SOLIDUS:this._leaveAttrValue(),this.state=qQ.SELF_CLOSING_START_TAG;break;case uQ.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=qQ.DATA,this.emitCurrentTagToken();break;case uQ.EOF:this._err(EQ.eofInTag),this._emitEOFToken();break;default:this._err(EQ.missingWhitespaceBetweenAttributes),this.state=qQ.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case uQ.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=qQ.DATA,this.emitCurrentTagToken();break;case uQ.EOF:this._err(EQ.eofInTag),this._emitEOFToken();break;default:this._err(EQ.unexpectedSolidusInTag),this.state=qQ.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case uQ.GREATER_THAN_SIGN:this.state=qQ.DATA,this.emitCurrentComment(t);break;case uQ.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(dQ,!0)?(this._createCommentToken(dQ.length+1),this.state=qQ.COMMENT_START):this._consumeSequenceIfMatch(fQ,!1)?(this.currentLocation=this.getCurrentLocation(fQ.length+1),this.state=qQ.DOCTYPE):this._consumeSequenceIfMatch(pQ,!0)?this.inForeignNode?this.state=qQ.CDATA_SECTION:(this._err(EQ.cdataInHtmlContent),this._createCommentToken(pQ.length+1),this.currentToken.data="[CDATA[",this.state=qQ.BOGUS_COMMENT):this._ensureHibernation()||(this._err(EQ.incorrectlyOpenedComment),this._createCommentToken(2),this.state=qQ.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case uQ.HYPHEN_MINUS:this.state=qQ.COMMENT_START_DASH;break;case uQ.GREATER_THAN_SIGN:{this._err(EQ.abruptClosingOfEmptyComment),this.state=qQ.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=qQ.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case uQ.HYPHEN_MINUS:this.state=qQ.COMMENT_END;break;case uQ.GREATER_THAN_SIGN:this._err(EQ.abruptClosingOfEmptyComment),this.state=qQ.DATA,this.emitCurrentComment(t);break;case uQ.EOF:this._err(EQ.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=qQ.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case uQ.HYPHEN_MINUS:this.state=qQ.COMMENT_END_DASH;break;case uQ.LESS_THAN_SIGN:t.data+="<",this.state=qQ.COMMENT_LESS_THAN_SIGN;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),t.data+="�";break;case uQ.EOF:this._err(EQ.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case uQ.EXCLAMATION_MARK:t.data+="!",this.state=qQ.COMMENT_LESS_THAN_SIGN_BANG;break;case uQ.LESS_THAN_SIGN:t.data+="<";break;default:this.state=qQ.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===uQ.HYPHEN_MINUS?this.state=qQ.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=qQ.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===uQ.HYPHEN_MINUS?this.state=qQ.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=qQ.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==uQ.GREATER_THAN_SIGN&&e!==uQ.EOF&&this._err(EQ.nestedComment),this.state=qQ.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case uQ.HYPHEN_MINUS:this.state=qQ.COMMENT_END;break;case uQ.EOF:this._err(EQ.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=qQ.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case uQ.GREATER_THAN_SIGN:this.state=qQ.DATA,this.emitCurrentComment(t);break;case uQ.EXCLAMATION_MARK:this.state=qQ.COMMENT_END_BANG;break;case uQ.HYPHEN_MINUS:t.data+="-";break;case uQ.EOF:this._err(EQ.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=qQ.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case uQ.HYPHEN_MINUS:t.data+="--!",this.state=qQ.COMMENT_END_DASH;break;case uQ.GREATER_THAN_SIGN:this._err(EQ.incorrectlyClosedComment),this.state=qQ.DATA,this.emitCurrentComment(t);break;case uQ.EOF:this._err(EQ.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=qQ.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:this.state=qQ.BEFORE_DOCTYPE_NAME;break;case uQ.GREATER_THAN_SIGN:this.state=qQ.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case uQ.EOF:{this._err(EQ.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(EQ.missingWhitespaceBeforeDoctypeName),this.state=qQ.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(QQ(e))this._createDoctypeToken(String.fromCharCode(JQ(e))),this.state=qQ.DOCTYPE_NAME;else switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=qQ.DOCTYPE_NAME;break;case uQ.GREATER_THAN_SIGN:{this._err(EQ.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=qQ.DATA;break}case uQ.EOF:{this._err(EQ.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=qQ.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:this.state=qQ.AFTER_DOCTYPE_NAME;break;case uQ.GREATER_THAN_SIGN:this.state=qQ.DATA,this.emitCurrentDoctype(t);break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),t.name+="�";break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(QQ(e)?JQ(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:break;case uQ.GREATER_THAN_SIGN:this.state=qQ.DATA,this.emitCurrentDoctype(t);break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(mQ,!1)?this.state=qQ.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(gQ,!1)?this.state=qQ.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(EQ.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=qQ.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:this.state=qQ.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case uQ.QUOTATION_MARK:this._err(EQ.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=qQ.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case uQ.APOSTROPHE:this._err(EQ.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=qQ.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case uQ.GREATER_THAN_SIGN:this._err(EQ.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=qQ.DATA,this.emitCurrentDoctype(t);break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(EQ.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=qQ.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:break;case uQ.QUOTATION_MARK:t.publicId="",this.state=qQ.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case uQ.APOSTROPHE:t.publicId="",this.state=qQ.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case uQ.GREATER_THAN_SIGN:this._err(EQ.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=qQ.DATA,this.emitCurrentDoctype(t);break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(EQ.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=qQ.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case uQ.QUOTATION_MARK:this.state=qQ.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),t.publicId+="�";break;case uQ.GREATER_THAN_SIGN:this._err(EQ.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=qQ.DATA;break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case uQ.APOSTROPHE:this.state=qQ.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),t.publicId+="�";break;case uQ.GREATER_THAN_SIGN:this._err(EQ.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=qQ.DATA;break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:this.state=qQ.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case uQ.GREATER_THAN_SIGN:this.state=qQ.DATA,this.emitCurrentDoctype(t);break;case uQ.QUOTATION_MARK:this._err(EQ.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=qQ.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case uQ.APOSTROPHE:this._err(EQ.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=qQ.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(EQ.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=qQ.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:break;case uQ.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=qQ.DATA;break;case uQ.QUOTATION_MARK:t.systemId="",this.state=qQ.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case uQ.APOSTROPHE:t.systemId="",this.state=qQ.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(EQ.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=qQ.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:this.state=qQ.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case uQ.QUOTATION_MARK:this._err(EQ.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=qQ.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case uQ.APOSTROPHE:this._err(EQ.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=qQ.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case uQ.GREATER_THAN_SIGN:this._err(EQ.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=qQ.DATA,this.emitCurrentDoctype(t);break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(EQ.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=qQ.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:break;case uQ.QUOTATION_MARK:t.systemId="",this.state=qQ.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case uQ.APOSTROPHE:t.systemId="",this.state=qQ.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case uQ.GREATER_THAN_SIGN:this._err(EQ.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=qQ.DATA,this.emitCurrentDoctype(t);break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(EQ.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=qQ.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case uQ.QUOTATION_MARK:this.state=qQ.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),t.systemId+="�";break;case uQ.GREATER_THAN_SIGN:this._err(EQ.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=qQ.DATA;break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case uQ.APOSTROPHE:this.state=qQ.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter),t.systemId+="�";break;case uQ.GREATER_THAN_SIGN:this._err(EQ.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=qQ.DATA;break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case uQ.SPACE:case uQ.LINE_FEED:case uQ.TABULATION:case uQ.FORM_FEED:break;case uQ.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=qQ.DATA;break;case uQ.EOF:this._err(EQ.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(EQ.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=qQ.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case uQ.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=qQ.DATA;break;case uQ.NULL:this._err(EQ.unexpectedNullCharacter);break;case uQ.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case uQ.RIGHT_SQUARE_BRACKET:this.state=qQ.CDATA_SECTION_BRACKET;break;case uQ.EOF:this._err(EQ.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===uQ.RIGHT_SQUARE_BRACKET?this.state=qQ.CDATA_SECTION_END:(this._emitChars("]"),this.state=qQ.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case uQ.GREATER_THAN_SIGN:this.state=qQ.DATA;break;case uQ.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=qQ.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(uQ.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&XQ(this.preprocessor.peek(1))?qQ.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){XQ(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===uQ.SEMICOLON&&this._err(EQ.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const nK=new Set([zQ.DD,zQ.DT,zQ.LI,zQ.OPTGROUP,zQ.OPTION,zQ.P,zQ.RB,zQ.RP,zQ.RT,zQ.RTC]),rK=new Set([...nK,zQ.CAPTION,zQ.COLGROUP,zQ.TBODY,zQ.TD,zQ.TFOOT,zQ.TH,zQ.THEAD,zQ.TR]),oK=new Set([zQ.APPLET,zQ.CAPTION,zQ.HTML,zQ.MARQUEE,zQ.OBJECT,zQ.TABLE,zQ.TD,zQ.TEMPLATE,zQ.TH]),iK=new Set([...oK,zQ.OL,zQ.UL]),aK=new Set([...oK,zQ.BUTTON]),sK=new Set([zQ.ANNOTATION_XML,zQ.MI,zQ.MN,zQ.MO,zQ.MS,zQ.MTEXT]),lK=new Set([zQ.DESC,zQ.FOREIGN_OBJECT,zQ.TITLE]),cK=new Set([zQ.TR,zQ.TEMPLATE,zQ.HTML]),uK=new Set([zQ.TBODY,zQ.TFOOT,zQ.THEAD,zQ.TEMPLATE,zQ.HTML]),dK=new Set([zQ.TABLE,zQ.TEMPLATE,zQ.HTML]),pK=new Set([zQ.TD,zQ.TH]);class fK{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=zQ.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===zQ.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===FQ.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==FQ.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(WQ,FQ.HTML)}popUntilTableCellPopped(){this.popUntilPopped(pK,FQ.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(dK,FQ.HTML)}clearBackToTableBodyContext(){this.clearBackTo(uK,FQ.HTML)}clearBackToTableRowContext(){this.clearBackTo(cK,FQ.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===zQ.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===zQ.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case FQ.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case FQ.SVG:if(lK.has(r))return!1;break;case FQ.MATHML:if(sK.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,oK)}hasInListItemScope(e){return this.hasInDynamicScope(e,iK)}hasInButtonScope(e){return this.hasInDynamicScope(e,aK)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case FQ.HTML:if(WQ.has(t))return!0;if(oK.has(t))return!1;break;case FQ.SVG:if(lK.has(t))return!1;break;case FQ.MATHML:if(sK.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===FQ.HTML)switch(this.tagIDs[t]){case e:return!0;case zQ.TABLE:case zQ.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===FQ.HTML)switch(this.tagIDs[e]){case zQ.TBODY:case zQ.THEAD:case zQ.TFOOT:return!0;case zQ.TABLE:case zQ.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===FQ.HTML)switch(this.tagIDs[t]){case e:return!0;case zQ.OPTION:case zQ.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&nK.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&rK.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&rK.has(this.currentTagId);)this.pop()}}var hK;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(hK||(hK={}));const mK={type:hK.Marker};class gK{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,o=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===hK.Marker)break;const{element:a}=t;if(this.treeAdapter.getTagName(a)===o&&this.treeAdapter.getNamespaceURI(a)===i){const t=this.treeAdapter.getAttrList(a);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map(e=>[e.name,e.value]));let o=0;for(let e=0;e<n.length;e++){const t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(o+=1,o>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(mK)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:hK.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:hK.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(mK);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===hK.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===hK.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===hK.Element&&t.element===e)}}const yK={createDocument:()=>({nodeName:"#document",mode:BQ.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const o=e.childNodes.find(e=>"#documentType"===e.nodeName);if(o)o.name=t,o.publicId=n,o.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};yK.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(yK.isTextNode(n))return void(n.value+=t)}yK.appendChild(e,yK.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&yK.isTextNode(r)?r.value+=t:yK.insertBefore(e,yK.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},vK="html",bK=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],EK=[...bK,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],xK=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),wK=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],TK=[...wK,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function kK(e,t){return t.some(t=>e.startsWith(t))}const SK="text/html",AK="application/xhtml+xml",NK=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),_K=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:FQ.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:FQ.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:FQ.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:FQ.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:FQ.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:FQ.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:FQ.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:FQ.XML}],["xml:space",{prefix:"xml",name:"space",namespace:FQ.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:FQ.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:FQ.XMLNS}]]),CK=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),IK=new Set([zQ.B,zQ.BIG,zQ.BLOCKQUOTE,zQ.BODY,zQ.BR,zQ.CENTER,zQ.CODE,zQ.DD,zQ.DIV,zQ.DL,zQ.DT,zQ.EM,zQ.EMBED,zQ.H1,zQ.H2,zQ.H3,zQ.H4,zQ.H5,zQ.H6,zQ.HEAD,zQ.HR,zQ.I,zQ.IMG,zQ.LI,zQ.LISTING,zQ.MENU,zQ.META,zQ.NOBR,zQ.OL,zQ.P,zQ.PRE,zQ.RUBY,zQ.S,zQ.SMALL,zQ.SPAN,zQ.STRONG,zQ.STRIKE,zQ.SUB,zQ.SUP,zQ.TABLE,zQ.TT,zQ.U,zQ.UL,zQ.VAR]);function OK(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function DK(e){for(let t=0;t<e.attrs.length;t++){const n=NK.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function RK(e){for(let t=0;t<e.attrs.length;t++){const n=_K.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function PK(e,t,n,r){return(!r||r===FQ.HTML)&&function(e,t,n){if(t===FQ.MATHML&&e===zQ.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===jQ.ENCODING){const t=n[e].value.toLowerCase();return t===SK||t===AK}return t===FQ.SVG&&(e===zQ.FOREIGN_OBJECT||e===zQ.DESC||e===zQ.TITLE)}(e,t,n)||(!r||r===FQ.MATHML)&&function(e,t){return t===FQ.MATHML&&(e===zQ.MI||e===zQ.MO||e===zQ.MN||e===zQ.MS||e===zQ.MTEXT)}(e,t)}var LK;!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(LK||(LK={}));const MK={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},FK=new Set([zQ.TABLE,zQ.TBODY,zQ.TFOOT,zQ.THEAD,zQ.TR]),jK={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:yK,onParseError:null};class BK{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=LK.INITIAL,this.originalInsertionMode=LK.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...jK,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new tK(this.options,this),this.activeFormattingElements=new gK(this.treeAdapter),this.fragmentContextID=n?HQ(this.treeAdapter.getTagName(n)):zQ.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new fK(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...jK,...t};null!=e||(e=n.treeAdapter.createElement(UQ.TEMPLATE,FQ.HTML,[]));const r=n.treeAdapter.createElement("documentmock",FQ.HTML,[]),o=new this(n,r,e);return o.fragmentContextID===zQ.TEMPLATE&&o.tmplInsertionModeStack.unshift(LK.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const o=null!==(r=e.location)&&void 0!==r?r:MK,i={code:t,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:n?o.startLine:o.endLine,endCol:n?o.startCol:o.endCol,endOffset:n?o.startOffset:o.endOffset};this.onParseError(i)}onItemPush(e,t,n){var r,o;null===(o=(r=this.treeAdapter).onItemPush)||void 0===o||o.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===FQ.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,FQ.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=LK.TEXT}switchToPlaintextParsing(){this.insertionMode=LK.TEXT,this.originalInsertionMode=LK.IN_BODY,this.tokenizer.state=YQ.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===UQ.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===FQ.HTML)switch(this.fragmentContextID){case zQ.TITLE:case zQ.TEXTAREA:this.tokenizer.state=YQ.RCDATA;break;case zQ.STYLE:case zQ.XMP:case zQ.IFRAME:case zQ.NOEMBED:case zQ.NOFRAMES:case zQ.NOSCRIPT:this.tokenizer.state=YQ.RAWTEXT;break;case zQ.SCRIPT:this.tokenizer.state=YQ.SCRIPT_DATA;break;case zQ.PLAINTEXT:this.tokenizer.state=YQ.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,FQ.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,FQ.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(UQ.HTML,FQ.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,zQ.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),o=n?r.lastIndexOf(n):r.length,i=r[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),o=t.type===wQ.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==zQ.SVG||this.treeAdapter.getTagName(t)!==UQ.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==FQ.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===zQ.MGLYPH||e.tagID===zQ.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,FQ.HTML))}_processToken(e){switch(e.type){case wQ.CHARACTER:this.onCharacter(e);break;case wQ.NULL_CHARACTER:this.onNullCharacter(e);break;case wQ.COMMENT:this.onComment(e);break;case wQ.DOCTYPE:this.onDoctype(e);break;case wQ.START_TAG:this._processStartTag(e);break;case wQ.END_TAG:this.onEndTag(e);break;case wQ.EOF:this.onEof(e);break;case wQ.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return PK(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(e=>e.type===hK.Marker||this.openElements.contains(e.element));for(let n=-1===t?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=LK.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(zQ.P),this.openElements.popUntilTagNamePopped(zQ.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case zQ.TR:return void(this.insertionMode=LK.IN_ROW);case zQ.TBODY:case zQ.THEAD:case zQ.TFOOT:return void(this.insertionMode=LK.IN_TABLE_BODY);case zQ.CAPTION:return void(this.insertionMode=LK.IN_CAPTION);case zQ.COLGROUP:return void(this.insertionMode=LK.IN_COLUMN_GROUP);case zQ.TABLE:return void(this.insertionMode=LK.IN_TABLE);case zQ.BODY:return void(this.insertionMode=LK.IN_BODY);case zQ.FRAMESET:return void(this.insertionMode=LK.IN_FRAMESET);case zQ.SELECT:return void this._resetInsertionModeForSelect(e);case zQ.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case zQ.HTML:return void(this.insertionMode=this.headElement?LK.AFTER_HEAD:LK.BEFORE_HEAD);case zQ.TD:case zQ.TH:if(e>0)return void(this.insertionMode=LK.IN_CELL);break;case zQ.HEAD:if(e>0)return void(this.insertionMode=LK.IN_HEAD)}this.insertionMode=LK.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===zQ.TEMPLATE)break;if(e===zQ.TABLE)return void(this.insertionMode=LK.IN_SELECT_IN_TABLE)}this.insertionMode=LK.IN_SELECT}_isElementCausesFosterParenting(e){return FK.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case zQ.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===FQ.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case zQ.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return GQ[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case LK.INITIAL:QK(this,e);break;case LK.BEFORE_HTML:KK(this,e);break;case LK.BEFORE_HEAD:XK(this,e);break;case LK.IN_HEAD:eX(this,e);break;case LK.IN_HEAD_NO_SCRIPT:tX(this,e);break;case LK.AFTER_HEAD:nX(this,e);break;case LK.IN_BODY:case LK.IN_CAPTION:case LK.IN_CELL:case LK.IN_TEMPLATE:iX(this,e);break;case LK.TEXT:case LK.IN_SELECT:case LK.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case LK.IN_TABLE:case LK.IN_TABLE_BODY:case LK.IN_ROW:hX(this,e);break;case LK.IN_TABLE_TEXT:bX(this,e);break;case LK.IN_COLUMN_GROUP:TX(this,e);break;case LK.AFTER_BODY:DX(this,e);break;case LK.AFTER_AFTER_BODY:RX(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars="�",e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case LK.INITIAL:QK(this,e);break;case LK.BEFORE_HTML:KK(this,e);break;case LK.BEFORE_HEAD:XK(this,e);break;case LK.IN_HEAD:eX(this,e);break;case LK.IN_HEAD_NO_SCRIPT:tX(this,e);break;case LK.AFTER_HEAD:nX(this,e);break;case LK.TEXT:this._insertCharacters(e);break;case LK.IN_TABLE:case LK.IN_TABLE_BODY:case LK.IN_ROW:hX(this,e);break;case LK.IN_COLUMN_GROUP:TX(this,e);break;case LK.AFTER_BODY:DX(this,e);break;case LK.AFTER_AFTER_BODY:RX(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)qK(this,e);else switch(this.insertionMode){case LK.INITIAL:case LK.BEFORE_HTML:case LK.BEFORE_HEAD:case LK.IN_HEAD:case LK.IN_HEAD_NO_SCRIPT:case LK.AFTER_HEAD:case LK.IN_BODY:case LK.IN_TABLE:case LK.IN_CAPTION:case LK.IN_COLUMN_GROUP:case LK.IN_TABLE_BODY:case LK.IN_ROW:case LK.IN_CELL:case LK.IN_SELECT:case LK.IN_SELECT_IN_TABLE:case LK.IN_TEMPLATE:case LK.IN_FRAMESET:case LK.AFTER_FRAMESET:qK(this,e);break;case LK.IN_TABLE_TEXT:EX(this,e);break;case LK.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case LK.AFTER_AFTER_BODY:case LK.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case LK.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?BQ.QUIRKS:function(e){if(e.name!==vK)return BQ.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return BQ.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),xK.has(n))return BQ.QUIRKS;let e=null===t?EK:bK;if(kK(n,e))return BQ.QUIRKS;if(e=null===t?wK:TK,kK(n,e))return BQ.LIMITED_QUIRKS}return BQ.NO_QUIRKS}(t);(function(e){return e.name===vK&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,EQ.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=LK.BEFORE_HTML}(this,e);break;case LK.BEFORE_HEAD:case LK.IN_HEAD:case LK.IN_HEAD_NO_SCRIPT:case LK.AFTER_HEAD:this._err(e,EQ.misplacedDoctype);break;case LK.IN_TABLE_TEXT:EX(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,EQ.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===zQ.FONT&&e.attrs.some(({name:e})=>e===jQ.COLOR||e===jQ.SIZE||e===jQ.FACE)||IK.has(t)}(t))PX(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===FQ.MATHML?OK(t):r===FQ.SVG&&(!function(e){const t=CK.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=HQ(e.tagName))}(t),DK(t)),RK(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case LK.INITIAL:QK(this,e);break;case LK.BEFORE_HTML:!function(e,t){t.tagID===zQ.HTML?(e._insertElement(t,FQ.HTML),e.insertionMode=LK.BEFORE_HEAD):KK(e,t)}(this,e);break;case LK.BEFORE_HEAD:!function(e,t){switch(t.tagID){case zQ.HTML:uX(e,t);break;case zQ.HEAD:e._insertElement(t,FQ.HTML),e.headElement=e.openElements.current,e.insertionMode=LK.IN_HEAD;break;default:XK(e,t)}}(this,e);break;case LK.IN_HEAD:JK(this,e);break;case LK.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case zQ.HTML:uX(e,t);break;case zQ.BASEFONT:case zQ.BGSOUND:case zQ.HEAD:case zQ.LINK:case zQ.META:case zQ.NOFRAMES:case zQ.STYLE:JK(e,t);break;case zQ.NOSCRIPT:e._err(t,EQ.nestedNoscriptInHead);break;default:tX(e,t)}}(this,e);break;case LK.AFTER_HEAD:!function(e,t){switch(t.tagID){case zQ.HTML:uX(e,t);break;case zQ.BODY:e._insertElement(t,FQ.HTML),e.framesetOk=!1,e.insertionMode=LK.IN_BODY;break;case zQ.FRAMESET:e._insertElement(t,FQ.HTML),e.insertionMode=LK.IN_FRAMESET;break;case zQ.BASE:case zQ.BASEFONT:case zQ.BGSOUND:case zQ.LINK:case zQ.META:case zQ.NOFRAMES:case zQ.SCRIPT:case zQ.STYLE:case zQ.TEMPLATE:case zQ.TITLE:e._err(t,EQ.abandonedHeadElementChild),e.openElements.push(e.headElement,zQ.HEAD),JK(e,t),e.openElements.remove(e.headElement);break;case zQ.HEAD:e._err(t,EQ.misplacedStartTagForHeadElement);break;default:nX(e,t)}}(this,e);break;case LK.IN_BODY:uX(this,e);break;case LK.IN_TABLE:mX(this,e);break;case LK.IN_TABLE_TEXT:EX(this,e);break;case LK.IN_CAPTION:!function(e,t){const n=t.tagID;xX.has(n)?e.openElements.hasInTableScope(zQ.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(zQ.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=LK.IN_TABLE,mX(e,t)):uX(e,t)}(this,e);break;case LK.IN_COLUMN_GROUP:wX(this,e);break;case LK.IN_TABLE_BODY:kX(this,e);break;case LK.IN_ROW:AX(this,e);break;case LK.IN_CELL:!function(e,t){const n=t.tagID;xX.has(n)?(e.openElements.hasInTableScope(zQ.TD)||e.openElements.hasInTableScope(zQ.TH))&&(e._closeTableCell(),AX(e,t)):uX(e,t)}(this,e);break;case LK.IN_SELECT:_X(this,e);break;case LK.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===zQ.CAPTION||n===zQ.TABLE||n===zQ.TBODY||n===zQ.TFOOT||n===zQ.THEAD||n===zQ.TR||n===zQ.TD||n===zQ.TH?(e.openElements.popUntilTagNamePopped(zQ.SELECT),e._resetInsertionMode(),e._processStartTag(t)):_X(e,t)}(this,e);break;case LK.IN_TEMPLATE:!function(e,t){switch(t.tagID){case zQ.BASE:case zQ.BASEFONT:case zQ.BGSOUND:case zQ.LINK:case zQ.META:case zQ.NOFRAMES:case zQ.SCRIPT:case zQ.STYLE:case zQ.TEMPLATE:case zQ.TITLE:JK(e,t);break;case zQ.CAPTION:case zQ.COLGROUP:case zQ.TBODY:case zQ.TFOOT:case zQ.THEAD:e.tmplInsertionModeStack[0]=LK.IN_TABLE,e.insertionMode=LK.IN_TABLE,mX(e,t);break;case zQ.COL:e.tmplInsertionModeStack[0]=LK.IN_COLUMN_GROUP,e.insertionMode=LK.IN_COLUMN_GROUP,wX(e,t);break;case zQ.TR:e.tmplInsertionModeStack[0]=LK.IN_TABLE_BODY,e.insertionMode=LK.IN_TABLE_BODY,kX(e,t);break;case zQ.TD:case zQ.TH:e.tmplInsertionModeStack[0]=LK.IN_ROW,e.insertionMode=LK.IN_ROW,AX(e,t);break;default:e.tmplInsertionModeStack[0]=LK.IN_BODY,e.insertionMode=LK.IN_BODY,uX(e,t)}}(this,e);break;case LK.AFTER_BODY:!function(e,t){t.tagID===zQ.HTML?uX(e,t):DX(e,t)}(this,e);break;case LK.IN_FRAMESET:!function(e,t){switch(t.tagID){case zQ.HTML:uX(e,t);break;case zQ.FRAMESET:e._insertElement(t,FQ.HTML);break;case zQ.FRAME:e._appendElement(t,FQ.HTML),t.ackSelfClosing=!0;break;case zQ.NOFRAMES:JK(e,t)}}(this,e);break;case LK.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case zQ.HTML:uX(e,t);break;case zQ.NOFRAMES:JK(e,t)}}(this,e);break;case LK.AFTER_AFTER_BODY:!function(e,t){t.tagID===zQ.HTML?uX(e,t):RX(e,t)}(this,e);break;case LK.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case zQ.HTML:uX(e,t);break;case zQ.NOFRAMES:JK(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===zQ.P||t.tagID===zQ.BR)return PX(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===FQ.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case LK.INITIAL:QK(this,e);break;case LK.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==zQ.HTML&&n!==zQ.HEAD&&n!==zQ.BODY&&n!==zQ.BR||KK(e,t)}(this,e);break;case LK.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===zQ.HEAD||n===zQ.BODY||n===zQ.HTML||n===zQ.BR?XK(e,t):e._err(t,EQ.endTagWithoutMatchingOpenElement)}(this,e);break;case LK.IN_HEAD:!function(e,t){switch(t.tagID){case zQ.HEAD:e.openElements.pop(),e.insertionMode=LK.AFTER_HEAD;break;case zQ.BODY:case zQ.BR:case zQ.HTML:eX(e,t);break;case zQ.TEMPLATE:ZK(e,t);break;default:e._err(t,EQ.endTagWithoutMatchingOpenElement)}}(this,e);break;case LK.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case zQ.NOSCRIPT:e.openElements.pop(),e.insertionMode=LK.IN_HEAD;break;case zQ.BR:tX(e,t);break;default:e._err(t,EQ.endTagWithoutMatchingOpenElement)}}(this,e);break;case LK.AFTER_HEAD:!function(e,t){switch(t.tagID){case zQ.BODY:case zQ.HTML:case zQ.BR:nX(e,t);break;case zQ.TEMPLATE:ZK(e,t);break;default:e._err(t,EQ.endTagWithoutMatchingOpenElement)}}(this,e);break;case LK.IN_BODY:pX(this,e);break;case LK.TEXT:!function(e,t){var n;t.tagID===zQ.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case LK.IN_TABLE:gX(this,e);break;case LK.IN_TABLE_TEXT:EX(this,e);break;case LK.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case zQ.CAPTION:case zQ.TABLE:e.openElements.hasInTableScope(zQ.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(zQ.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=LK.IN_TABLE,n===zQ.TABLE&&gX(e,t));break;case zQ.BODY:case zQ.COL:case zQ.COLGROUP:case zQ.HTML:case zQ.TBODY:case zQ.TD:case zQ.TFOOT:case zQ.TH:case zQ.THEAD:case zQ.TR:break;default:pX(e,t)}}(this,e);break;case LK.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case zQ.COLGROUP:e.openElements.currentTagId===zQ.COLGROUP&&(e.openElements.pop(),e.insertionMode=LK.IN_TABLE);break;case zQ.TEMPLATE:ZK(e,t);break;case zQ.COL:break;default:TX(e,t)}}(this,e);break;case LK.IN_TABLE_BODY:SX(this,e);break;case LK.IN_ROW:NX(this,e);break;case LK.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case zQ.TD:case zQ.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=LK.IN_ROW);break;case zQ.TABLE:case zQ.TBODY:case zQ.TFOOT:case zQ.THEAD:case zQ.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),NX(e,t));break;case zQ.BODY:case zQ.CAPTION:case zQ.COL:case zQ.COLGROUP:case zQ.HTML:break;default:pX(e,t)}}(this,e);break;case LK.IN_SELECT:CX(this,e);break;case LK.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===zQ.CAPTION||n===zQ.TABLE||n===zQ.TBODY||n===zQ.TFOOT||n===zQ.THEAD||n===zQ.TR||n===zQ.TD||n===zQ.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(zQ.SELECT),e._resetInsertionMode(),e.onEndTag(t)):CX(e,t)}(this,e);break;case LK.IN_TEMPLATE:!function(e,t){t.tagID===zQ.TEMPLATE&&ZK(e,t)}(this,e);break;case LK.AFTER_BODY:OX(this,e);break;case LK.IN_FRAMESET:!function(e,t){t.tagID!==zQ.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===zQ.FRAMESET||(e.insertionMode=LK.AFTER_FRAMESET))}(this,e);break;case LK.AFTER_FRAMESET:!function(e,t){t.tagID===zQ.HTML&&(e.insertionMode=LK.AFTER_AFTER_FRAMESET)}(this,e);break;case LK.AFTER_AFTER_BODY:RX(this,e)}}onEof(e){switch(this.insertionMode){case LK.INITIAL:QK(this,e);break;case LK.BEFORE_HTML:KK(this,e);break;case LK.BEFORE_HEAD:XK(this,e);break;case LK.IN_HEAD:eX(this,e);break;case LK.IN_HEAD_NO_SCRIPT:tX(this,e);break;case LK.AFTER_HEAD:nX(this,e);break;case LK.IN_BODY:case LK.IN_TABLE:case LK.IN_CAPTION:case LK.IN_COLUMN_GROUP:case LK.IN_TABLE_BODY:case LK.IN_ROW:case LK.IN_CELL:case LK.IN_SELECT:case LK.IN_SELECT_IN_TABLE:fX(this,e);break;case LK.TEXT:!function(e,t){e._err(t,EQ.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case LK.IN_TABLE_TEXT:EX(this,e);break;case LK.IN_TEMPLATE:IX(this,e);break;case LK.AFTER_BODY:case LK.IN_FRAMESET:case LK.AFTER_FRAMESET:case LK.AFTER_AFTER_BODY:case LK.AFTER_AFTER_FRAMESET:YK(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===uQ.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case LK.IN_HEAD:case LK.IN_HEAD_NO_SCRIPT:case LK.AFTER_HEAD:case LK.TEXT:case LK.IN_COLUMN_GROUP:case LK.IN_SELECT:case LK.IN_SELECT_IN_TABLE:case LK.IN_FRAMESET:case LK.AFTER_FRAMESET:this._insertCharacters(e);break;case LK.IN_BODY:case LK.IN_CAPTION:case LK.IN_CELL:case LK.IN_TEMPLATE:case LK.AFTER_BODY:case LK.AFTER_AFTER_BODY:case LK.AFTER_AFTER_FRAMESET:oX(this,e);break;case LK.IN_TABLE:case LK.IN_TABLE_BODY:case LK.IN_ROW:hX(this,e);break;case LK.IN_TABLE_TEXT:vX(this,e)}}}function UK(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):dX(e,t),n}function zK(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function VK(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let i=0,a=o;a!==n;i++,a=o){o=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&i>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=HK(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function HK(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function $K(e,t,n){const r=HQ(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);r===zQ.TEMPLATE&&o===FQ.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function GK(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,i=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,o.tagID)}function WK(e,t){for(let n=0;n<8;n++){const n=UK(e,t);if(!n)break;const r=zK(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const o=VK(e,r,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),i&&$K(e,i,o),GK(e,r,n)}}function qK(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function YK(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function QK(e,t){e._err(t,EQ.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,BQ.QUIRKS),e.insertionMode=LK.BEFORE_HTML,e._processToken(t)}function KK(e,t){e._insertFakeRootElement(),e.insertionMode=LK.BEFORE_HEAD,e._processToken(t)}function XK(e,t){e._insertFakeElement(UQ.HEAD,zQ.HEAD),e.headElement=e.openElements.current,e.insertionMode=LK.IN_HEAD,e._processToken(t)}function JK(e,t){switch(t.tagID){case zQ.HTML:uX(e,t);break;case zQ.BASE:case zQ.BASEFONT:case zQ.BGSOUND:case zQ.LINK:case zQ.META:e._appendElement(t,FQ.HTML),t.ackSelfClosing=!0;break;case zQ.TITLE:e._switchToTextParsing(t,YQ.RCDATA);break;case zQ.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,YQ.RAWTEXT):(e._insertElement(t,FQ.HTML),e.insertionMode=LK.IN_HEAD_NO_SCRIPT);break;case zQ.NOFRAMES:case zQ.STYLE:e._switchToTextParsing(t,YQ.RAWTEXT);break;case zQ.SCRIPT:e._switchToTextParsing(t,YQ.SCRIPT_DATA);break;case zQ.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=LK.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(LK.IN_TEMPLATE);break;case zQ.HEAD:e._err(t,EQ.misplacedStartTagForHeadElement);break;default:eX(e,t)}}function ZK(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==zQ.TEMPLATE&&e._err(t,EQ.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(zQ.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,EQ.endTagWithoutMatchingOpenElement)}function eX(e,t){e.openElements.pop(),e.insertionMode=LK.AFTER_HEAD,e._processToken(t)}function tX(e,t){const n=t.type===wQ.EOF?EQ.openElementsLeftAfterEof:EQ.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=LK.IN_HEAD,e._processToken(t)}function nX(e,t){e._insertFakeElement(UQ.BODY,zQ.BODY),e.insertionMode=LK.IN_BODY,rX(e,t)}function rX(e,t){switch(t.type){case wQ.CHARACTER:iX(e,t);break;case wQ.WHITESPACE_CHARACTER:oX(e,t);break;case wQ.COMMENT:qK(e,t);break;case wQ.START_TAG:uX(e,t);break;case wQ.END_TAG:pX(e,t);break;case wQ.EOF:fX(e,t)}}function oX(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function iX(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function aX(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,FQ.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function sX(e){const t=kQ(e,jQ.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function lX(e,t){e._switchToTextParsing(t,YQ.RAWTEXT)}function cX(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,FQ.HTML)}function uX(e,t){switch(t.tagID){case zQ.I:case zQ.S:case zQ.B:case zQ.U:case zQ.EM:case zQ.TT:case zQ.BIG:case zQ.CODE:case zQ.FONT:case zQ.SMALL:case zQ.STRIKE:case zQ.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,FQ.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case zQ.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(UQ.A);n&&(WK(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,FQ.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case zQ.H1:case zQ.H2:case zQ.H3:case zQ.H4:case zQ.H5:case zQ.H6:!function(e,t){e.openElements.hasInButtonScope(zQ.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&WQ.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,FQ.HTML)}(e,t);break;case zQ.P:case zQ.DL:case zQ.OL:case zQ.UL:case zQ.DIV:case zQ.DIR:case zQ.NAV:case zQ.MAIN:case zQ.MENU:case zQ.ASIDE:case zQ.CENTER:case zQ.FIGURE:case zQ.FOOTER:case zQ.HEADER:case zQ.HGROUP:case zQ.DIALOG:case zQ.DETAILS:case zQ.ADDRESS:case zQ.ARTICLE:case zQ.SEARCH:case zQ.SECTION:case zQ.SUMMARY:case zQ.FIELDSET:case zQ.BLOCKQUOTE:case zQ.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(zQ.P)&&e._closePElement(),e._insertElement(t,FQ.HTML)}(e,t);break;case zQ.LI:case zQ.DD:case zQ.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.tagIDs[t];if(n===zQ.LI&&r===zQ.LI||(n===zQ.DD||n===zQ.DT)&&(r===zQ.DD||r===zQ.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==zQ.ADDRESS&&r!==zQ.DIV&&r!==zQ.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(zQ.P)&&e._closePElement(),e._insertElement(t,FQ.HTML)}(e,t);break;case zQ.BR:case zQ.IMG:case zQ.WBR:case zQ.AREA:case zQ.EMBED:case zQ.KEYGEN:aX(e,t);break;case zQ.HR:!function(e,t){e.openElements.hasInButtonScope(zQ.P)&&e._closePElement(),e._appendElement(t,FQ.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case zQ.RB:case zQ.RTC:!function(e,t){e.openElements.hasInScope(zQ.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,FQ.HTML)}(e,t);break;case zQ.RT:case zQ.RP:!function(e,t){e.openElements.hasInScope(zQ.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(zQ.RTC),e._insertElement(t,FQ.HTML)}(e,t);break;case zQ.PRE:case zQ.LISTING:!function(e,t){e.openElements.hasInButtonScope(zQ.P)&&e._closePElement(),e._insertElement(t,FQ.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case zQ.XMP:!function(e,t){e.openElements.hasInButtonScope(zQ.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,YQ.RAWTEXT)}(e,t);break;case zQ.SVG:!function(e,t){e._reconstructActiveFormattingElements(),DK(t),RK(t),t.selfClosing?e._appendElement(t,FQ.SVG):e._insertElement(t,FQ.SVG),t.ackSelfClosing=!0}(e,t);break;case zQ.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case zQ.BASE:case zQ.LINK:case zQ.META:case zQ.STYLE:case zQ.TITLE:case zQ.SCRIPT:case zQ.BGSOUND:case zQ.BASEFONT:case zQ.TEMPLATE:JK(e,t);break;case zQ.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case zQ.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(zQ.P)&&e._closePElement(),e._insertElement(t,FQ.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case zQ.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(zQ.NOBR)&&(WK(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,FQ.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case zQ.MATH:!function(e,t){e._reconstructActiveFormattingElements(),OK(t),RK(t),t.selfClosing?e._appendElement(t,FQ.MATHML):e._insertElement(t,FQ.MATHML),t.ackSelfClosing=!0}(e,t);break;case zQ.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==BQ.QUIRKS&&e.openElements.hasInButtonScope(zQ.P)&&e._closePElement(),e._insertElement(t,FQ.HTML),e.framesetOk=!1,e.insertionMode=LK.IN_TABLE}(e,t);break;case zQ.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,FQ.HTML),sX(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case zQ.PARAM:case zQ.TRACK:case zQ.SOURCE:!function(e,t){e._appendElement(t,FQ.HTML),t.ackSelfClosing=!0}(e,t);break;case zQ.IMAGE:!function(e,t){t.tagName=UQ.IMG,t.tagID=zQ.IMG,aX(e,t)}(e,t);break;case zQ.BUTTON:!function(e,t){e.openElements.hasInScope(zQ.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(zQ.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,FQ.HTML),e.framesetOk=!1}(e,t);break;case zQ.APPLET:case zQ.OBJECT:case zQ.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,FQ.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case zQ.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,YQ.RAWTEXT)}(e,t);break;case zQ.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,FQ.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===LK.IN_TABLE||e.insertionMode===LK.IN_CAPTION||e.insertionMode===LK.IN_TABLE_BODY||e.insertionMode===LK.IN_ROW||e.insertionMode===LK.IN_CELL?LK.IN_SELECT_IN_TABLE:LK.IN_SELECT}(e,t);break;case zQ.OPTION:case zQ.OPTGROUP:!function(e,t){e.openElements.currentTagId===zQ.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,FQ.HTML)}(e,t);break;case zQ.NOEMBED:case zQ.NOFRAMES:lX(e,t);break;case zQ.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,FQ.HTML),e.insertionMode=LK.IN_FRAMESET)}(e,t);break;case zQ.TEXTAREA:!function(e,t){e._insertElement(t,FQ.HTML),e.skipNextNewLine=!0,e.tokenizer.state=YQ.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=LK.TEXT}(e,t);break;case zQ.NOSCRIPT:e.options.scriptingEnabled?lX(e,t):cX(e,t);break;case zQ.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(zQ.P)&&e._closePElement(),e._insertElement(t,FQ.HTML),e.tokenizer.state=YQ.PLAINTEXT}(e,t);break;case zQ.COL:case zQ.TH:case zQ.TD:case zQ.TR:case zQ.HEAD:case zQ.FRAME:case zQ.TBODY:case zQ.TFOOT:case zQ.THEAD:case zQ.CAPTION:case zQ.COLGROUP:break;default:cX(e,t)}}function dX(e,t){const n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const o=e.openElements.items[t],i=e.openElements.tagIDs[t];if(r===i&&(r!==zQ.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(o,i))break}}function pX(e,t){switch(t.tagID){case zQ.A:case zQ.B:case zQ.I:case zQ.S:case zQ.U:case zQ.EM:case zQ.TT:case zQ.BIG:case zQ.CODE:case zQ.FONT:case zQ.NOBR:case zQ.SMALL:case zQ.STRIKE:case zQ.STRONG:WK(e,t);break;case zQ.P:!function(e){e.openElements.hasInButtonScope(zQ.P)||e._insertFakeElement(UQ.P,zQ.P),e._closePElement()}(e);break;case zQ.DL:case zQ.UL:case zQ.OL:case zQ.DIR:case zQ.DIV:case zQ.NAV:case zQ.PRE:case zQ.MAIN:case zQ.MENU:case zQ.ASIDE:case zQ.BUTTON:case zQ.CENTER:case zQ.FIGURE:case zQ.FOOTER:case zQ.HEADER:case zQ.HGROUP:case zQ.DIALOG:case zQ.ADDRESS:case zQ.ARTICLE:case zQ.DETAILS:case zQ.SEARCH:case zQ.SECTION:case zQ.SUMMARY:case zQ.LISTING:case zQ.FIELDSET:case zQ.BLOCKQUOTE:case zQ.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case zQ.LI:!function(e){e.openElements.hasInListItemScope(zQ.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(zQ.LI),e.openElements.popUntilTagNamePopped(zQ.LI))}(e);break;case zQ.DD:case zQ.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case zQ.H1:case zQ.H2:case zQ.H3:case zQ.H4:case zQ.H5:case zQ.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case zQ.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(UQ.BR,zQ.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case zQ.BODY:!function(e,t){if(e.openElements.hasInScope(zQ.BODY)&&(e.insertionMode=LK.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case zQ.HTML:!function(e,t){e.openElements.hasInScope(zQ.BODY)&&(e.insertionMode=LK.AFTER_BODY,OX(e,t))}(e,t);break;case zQ.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(zQ.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(zQ.FORM):n&&e.openElements.remove(n))}(e);break;case zQ.APPLET:case zQ.OBJECT:case zQ.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case zQ.TEMPLATE:ZK(e,t);break;default:dX(e,t)}}function fX(e,t){e.tmplInsertionModeStack.length>0?IX(e,t):YK(e,t)}function hX(e,t){if(void 0!==e.openElements.currentTagId&&FK.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=LK.IN_TABLE_TEXT,t.type){case wQ.CHARACTER:bX(e,t);break;case wQ.WHITESPACE_CHARACTER:vX(e,t)}else yX(e,t)}function mX(e,t){switch(t.tagID){case zQ.TD:case zQ.TH:case zQ.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(UQ.TBODY,zQ.TBODY),e.insertionMode=LK.IN_TABLE_BODY,kX(e,t)}(e,t);break;case zQ.STYLE:case zQ.SCRIPT:case zQ.TEMPLATE:JK(e,t);break;case zQ.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(UQ.COLGROUP,zQ.COLGROUP),e.insertionMode=LK.IN_COLUMN_GROUP,wX(e,t)}(e,t);break;case zQ.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,FQ.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case zQ.TABLE:!function(e,t){e.openElements.hasInTableScope(zQ.TABLE)&&(e.openElements.popUntilTagNamePopped(zQ.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case zQ.TBODY:case zQ.TFOOT:case zQ.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,FQ.HTML),e.insertionMode=LK.IN_TABLE_BODY}(e,t);break;case zQ.INPUT:!function(e,t){sX(t)?e._appendElement(t,FQ.HTML):yX(e,t),t.ackSelfClosing=!0}(e,t);break;case zQ.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,FQ.HTML),e.insertionMode=LK.IN_CAPTION}(e,t);break;case zQ.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,FQ.HTML),e.insertionMode=LK.IN_COLUMN_GROUP}(e,t);break;default:yX(e,t)}}function gX(e,t){switch(t.tagID){case zQ.TABLE:e.openElements.hasInTableScope(zQ.TABLE)&&(e.openElements.popUntilTagNamePopped(zQ.TABLE),e._resetInsertionMode());break;case zQ.TEMPLATE:ZK(e,t);break;case zQ.BODY:case zQ.CAPTION:case zQ.COL:case zQ.COLGROUP:case zQ.HTML:case zQ.TBODY:case zQ.TD:case zQ.TFOOT:case zQ.TH:case zQ.THEAD:case zQ.TR:break;default:yX(e,t)}}function yX(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,rX(e,t),e.fosterParentingEnabled=n}function vX(e,t){e.pendingCharacterTokens.push(t)}function bX(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function EX(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)yX(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const xX=new Set([zQ.CAPTION,zQ.COL,zQ.COLGROUP,zQ.TBODY,zQ.TD,zQ.TFOOT,zQ.TH,zQ.THEAD,zQ.TR]);function wX(e,t){switch(t.tagID){case zQ.HTML:uX(e,t);break;case zQ.COL:e._appendElement(t,FQ.HTML),t.ackSelfClosing=!0;break;case zQ.TEMPLATE:JK(e,t);break;default:TX(e,t)}}function TX(e,t){e.openElements.currentTagId===zQ.COLGROUP&&(e.openElements.pop(),e.insertionMode=LK.IN_TABLE,e._processToken(t))}function kX(e,t){switch(t.tagID){case zQ.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,FQ.HTML),e.insertionMode=LK.IN_ROW;break;case zQ.TH:case zQ.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(UQ.TR,zQ.TR),e.insertionMode=LK.IN_ROW,AX(e,t);break;case zQ.CAPTION:case zQ.COL:case zQ.COLGROUP:case zQ.TBODY:case zQ.TFOOT:case zQ.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=LK.IN_TABLE,mX(e,t));break;default:mX(e,t)}}function SX(e,t){const n=t.tagID;switch(t.tagID){case zQ.TBODY:case zQ.TFOOT:case zQ.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=LK.IN_TABLE);break;case zQ.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=LK.IN_TABLE,gX(e,t));break;case zQ.BODY:case zQ.CAPTION:case zQ.COL:case zQ.COLGROUP:case zQ.HTML:case zQ.TD:case zQ.TH:case zQ.TR:break;default:gX(e,t)}}function AX(e,t){switch(t.tagID){case zQ.TH:case zQ.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,FQ.HTML),e.insertionMode=LK.IN_CELL,e.activeFormattingElements.insertMarker();break;case zQ.CAPTION:case zQ.COL:case zQ.COLGROUP:case zQ.TBODY:case zQ.TFOOT:case zQ.THEAD:case zQ.TR:e.openElements.hasInTableScope(zQ.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=LK.IN_TABLE_BODY,kX(e,t));break;default:mX(e,t)}}function NX(e,t){switch(t.tagID){case zQ.TR:e.openElements.hasInTableScope(zQ.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=LK.IN_TABLE_BODY);break;case zQ.TABLE:e.openElements.hasInTableScope(zQ.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=LK.IN_TABLE_BODY,SX(e,t));break;case zQ.TBODY:case zQ.TFOOT:case zQ.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(zQ.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=LK.IN_TABLE_BODY,SX(e,t));break;case zQ.BODY:case zQ.CAPTION:case zQ.COL:case zQ.COLGROUP:case zQ.HTML:case zQ.TD:case zQ.TH:break;default:gX(e,t)}}function _X(e,t){switch(t.tagID){case zQ.HTML:uX(e,t);break;case zQ.OPTION:e.openElements.currentTagId===zQ.OPTION&&e.openElements.pop(),e._insertElement(t,FQ.HTML);break;case zQ.OPTGROUP:e.openElements.currentTagId===zQ.OPTION&&e.openElements.pop(),e.openElements.currentTagId===zQ.OPTGROUP&&e.openElements.pop(),e._insertElement(t,FQ.HTML);break;case zQ.HR:e.openElements.currentTagId===zQ.OPTION&&e.openElements.pop(),e.openElements.currentTagId===zQ.OPTGROUP&&e.openElements.pop(),e._appendElement(t,FQ.HTML),t.ackSelfClosing=!0;break;case zQ.INPUT:case zQ.KEYGEN:case zQ.TEXTAREA:case zQ.SELECT:e.openElements.hasInSelectScope(zQ.SELECT)&&(e.openElements.popUntilTagNamePopped(zQ.SELECT),e._resetInsertionMode(),t.tagID!==zQ.SELECT&&e._processStartTag(t));break;case zQ.SCRIPT:case zQ.TEMPLATE:JK(e,t)}}function CX(e,t){switch(t.tagID){case zQ.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===zQ.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===zQ.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===zQ.OPTGROUP&&e.openElements.pop();break;case zQ.OPTION:e.openElements.currentTagId===zQ.OPTION&&e.openElements.pop();break;case zQ.SELECT:e.openElements.hasInSelectScope(zQ.SELECT)&&(e.openElements.popUntilTagNamePopped(zQ.SELECT),e._resetInsertionMode());break;case zQ.TEMPLATE:ZK(e,t)}}function IX(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(zQ.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):YK(e,t)}function OX(e,t){var n;if(t.tagID===zQ.HTML){if(e.fragmentContext||(e.insertionMode=LK.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===zQ.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else DX(e,t)}function DX(e,t){e.insertionMode=LK.IN_BODY,rX(e,t)}function RX(e,t){e.insertionMode=LK.IN_BODY,rX(e,t)}function PX(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==FQ.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}new Set([UQ.AREA,UQ.BASE,UQ.BASEFONT,UQ.BGSOUND,UQ.BR,UQ.COL,UQ.EMBED,UQ.FRAME,UQ.HR,UQ.IMG,UQ.INPUT,UQ.KEYGEN,UQ.LINK,UQ.META,UQ.PARAM,UQ.SOURCE,UQ.TRACK,UQ.WBR]);const LX=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),MX={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function FX(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=tQ("type",{handlers:{root:BX,element:UX,text:zX,comment:$X,doctype:VX,raw:GX},unknown:WX}),o={parser:n?new BK(MX):BK.getFragmentParser(void 0,MX),handle(e){r(e,o)},stitches:!1,options:t||{}};r(e,o),qX(o,BH());const i=function(e,t){const n=t||{};return gY({file:n.file||void 0,location:!1,schema:"svg"===n.space?Yq:qq,verbose:n.verbose||!1},e)}(n?o.parser.document:o.parser.getFragment(),{file:o.options.file});return o.stitches&&NW(i,"comment",function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}}),"root"===i.type&&1===i.children.length&&i.children[0].type===e.type?i.children[0]:i}function jX(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function BX(e,t){jX(e.children,t)}function UX(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===YQ.PLAINTEXT)return;qX(t,BH(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:fY.html;o===fY.html&&"svg"===n&&(o=fY.svg);const i=function(e,t){const n=(t||nQ).space;return oQ(e,"svg"===n?YY:qY)}({...e,children:[]},{space:o===fY.svg?"svg":"html"}),a={type:wQ.START_TAG,tagName:n,tagID:HQ(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:QX(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),jX(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&lQ.includes(n))return;if(t.parser.tokenizer.state===YQ.PLAINTEXT)return;qX(t,jH(e));const r={type:wQ.END_TAG,tagName:n,tagID:HQ(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:QX(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==YQ.RCDATA&&t.parser.tokenizer.state!==YQ.RAWTEXT&&t.parser.tokenizer.state!==YQ.SCRIPT_DATA||(t.parser.tokenizer.state=YQ.DATA)}(e,t)}function zX(e,t){const n={type:wQ.CHARACTER,chars:e.value,location:QX(e)};qX(t,BH(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function VX(e,t){const n={type:wQ.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:QX(e)};qX(t,BH(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function HX(e,t){t.stitches=!0;const n=function(e){return mW("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=FX({type:"root",children:e.children},t.options);n.children=r.children}$X({type:"comment",value:{stitch:n}},t)}function $X(e,t){const n=e.value,r={type:wQ.COMMENT,data:n,location:QX(e)};qX(t,BH(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function GX(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,YX(t,BH(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function WX(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw LX.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}HX(n,t)}function qX(e,t){YX(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=YQ.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function YX(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function QX(e){const t=BH(e)||{line:void 0,column:void 0,offset:void 0},n=jH(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function KX(e){return function(t,n){return FX(t,{...e,file:n})}}function XX(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function JX(e,t,n){const r=bW((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([ZX(e[0]),eJ(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)AW(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function ZX(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function eJ(e){return"function"==typeof e?e:function(){return e}}const tJ="phrasing",nJ=["autolink","link","image","label"];function rJ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function oJ(e){this.config.enter.autolinkProtocol.call(this,e)}function iJ(e){this.config.exit.autolinkProtocol.call(this,e)}function aJ(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function sJ(e){this.config.exit.autolinkEmail.call(this,e)}function lJ(e){this.exit(e)}function cJ(e){JX(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,uJ],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,dJ]],{ignore:["link","linkReference"]})}function uJ(e,t,n,r,o){let i="";if(!pJ(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=XX(e,"(");let i=XX(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function dJ(e,t,n,r){return!(!pJ(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function pJ(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||M$(n)||L$(n))&&(!t||47!==n)}function fJ(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function hJ(){this.buffer()}function mJ(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=cG(this.sliceSerialize(e)).toLowerCase()}function gJ(e){this.exit(e)}function yJ(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vJ(){this.buffer()}function bJ(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=cG(this.sliceSerialize(e)).toLowerCase()}function EJ(e){this.exit(e)}function xJ(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{...o.current(),before:i,after:"]"})),s(),a(),i+=o.move("]"),i}function wJ(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return i+=o.move(n.safe(n.associationId(e),{...o.current(),before:i,after:"]"})),s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(n.indentLines(n.containerFlow(e,o.current()),TJ)),a(),i}function TJ(e,t,n){return 0===t?e:(n?"":"    ")+e}xJ.peek=function(){return"["};const kJ=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function SJ(e){this.enter({type:"delete",children:[]},e)}function AJ(e){this.exit(e)}function NJ(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function _J(e){return null==e?"":String(e)}function CJ(e){return e.length}function IJ(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function OJ(e,t,n){return">"+(n?"":" ")+e}function DJ(e,t){return RJ(e,t.inConstruct,!0)&&!RJ(e,t.notInConstruct,!1)}function RJ(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function PJ(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&DJ(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function LJ(e,t,n){return(n?"":"    ")+e}function MJ(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function FJ(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(o);return s+=a.move(n.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o),i(),s}function jJ(e){return e.value||""}function BJ(e,t,n,r){const o=MJ(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function UJ(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function zJ(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function VJ(e,t){const n=p$(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function HJ(e,t,n,r){const o=MJ(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(VJ(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function $J(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function GJ(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function WJ(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}NJ.peek=function(){return"~"},FJ.peek=function(e,t,n){return n.options.emphasis||"*"},jJ.peek=function(){return"<"},BJ.peek=function(){return"!"},UJ.peek=function(){return"!"},zJ.peek=function(){return"`"},HJ.peek=function(e,t,n){return VJ(e,n)?"<":"["},$J.peek=function(){return"["};const qJ=bW(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function YJ(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r);let s=a.move(o+o);return s+=a.move(n.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o+o),i(),s}YJ.peek=function(e,t,n){return n.options.strong||"*"};const QJ={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),OJ);return o(),a},break:PJ,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,LJ);return e(),t}const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const o=MJ(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),a(),c},emphasis:FJ,hardBreak:PJ,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return NW(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,!1}),Boolean((!e.depth||e.depth<3)&&p$(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:jJ,image:BJ,imageReference:UJ,inlineCode:zJ,link:HJ,linkReference:$J,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):GJ(n);const s=e.ordered?"."===a?")":".":function(e){const t=GJ(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),WJ(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||GJ(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e});return l(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some(function(e){return qJ(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:YJ,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(WJ(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function KJ(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function XJ(e){this.exit(e),this.data.inTable=void 0}function JJ(e){this.enter({type:"tableRow",children:[]},e)}function ZJ(e){this.exit(e)}function eZ(e){this.enter({type:"tableCell",children:[]},e)}function tZ(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nZ));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function nZ(e,t){return"|"===t?t:e}function rZ(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=QJ.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=l(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=s([l(e,n,r)]);return o.slice(0,o.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||CJ,o=[],i=[],a=[],s=[];let l=0,c=-1;for(;++c<e.length;){const n=[],o=[];let u=-1;for(e[c].length>l&&(l=e[c].length);++u<e[c].length;){const i=_J(e[c][u]);if(!1!==t.alignDelimiters){const e=r(i);o[u]=e,(void 0===s[u]||e>s[u])&&(s[u]=e)}n.push(i)}i[c]=n,a[c]=o}let u=-1;if("object"==typeof n&&"length"in n)for(;++u<l;)o[u]=IJ(n[u]);else{const e=IJ(n);for(;++u<l;)o[u]=e}u=-1;const d=[],p=[];for(;++u<l;){const e=o[u];let n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let i=!1===t.alignDelimiters?1:Math.max(1,s[u]-n.length-r.length);const a=n+"-".repeat(i)+r;!1!==t.alignDelimiters&&(i=n.length+i+r.length,i>s[u]&&(s[u]=i),p[u]=i),d[u]=a}i.splice(1,0,d),a.splice(1,0,p),c=-1;const f=[];for(;++c<i.length;){const e=i[c],n=a[c];u=-1;const r=[];for(;++u<l;){const i=e[u]||"";let a="",c="";if(!1!==t.alignDelimiters){const e=s[u]-(n[u]||0),t=o[u];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),c=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),c=a):c=" ".repeat(e)}!1===t.delimiterStart||u||r.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===i||!1===t.delimiterStart&&!u||r.push(" "),!1!==t.alignDelimiters&&r.push(a),r.push(i),!1!==t.alignDelimiters&&r.push(c),!1!==t.padding&&r.push(" "),!1===t.delimiterEnd&&u===l-1||r.push("|")}f.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function l(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return s(),i}}function oZ(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function iZ(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function aZ(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let l=QJ.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}const sZ={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},lZ={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(uZ,l,s)(t):null===t||R$(t)||M$(t)||45!==t&&L$(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},cZ={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(uZ,t,i)(a):null===a||R$(a)||M$(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},uZ={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||R$(a)||M$(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||R$(e)||M$(e)?t(e):r(e)}function i(e){return S$(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):S$(t)?(e.consume(t),a):n(t)}},partial:!0},dZ={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return A$(e)?n(e):t(e)}},partial:!0},pZ={tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!yZ.call(r,r.previous)||xZ(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(sZ,e.attempt(lZ,e.attempt(cZ,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:yZ},fZ={tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&vZ.call(r,r.previous)&&!xZ(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(S$(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||_$(t)||R$(t)||M$(t)||L$(t)?n(t):e.attempt(lZ,e.attempt(cZ,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:vZ},hZ={tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!EZ(t)||!bZ.call(r,r.previous)||xZ(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return EZ(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(dZ,c,l)(t):45===t||95===t||A$(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),o=!0,s}function c(a){return i&&o&&S$(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:bZ},mZ={};let gZ=48;for(;gZ<123;)mZ[gZ]=hZ,gZ++,58===gZ?gZ=65:91===gZ&&(gZ=97);function yZ(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||R$(e)}function vZ(e){return!S$(e)}function bZ(e){return!(47===e||EZ(e))}function EZ(e){return 43===e||45===e||46===e||95===e||A$(e)}function xZ(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}mZ[43]=hZ,mZ[45]=hZ,mZ[46]=hZ,mZ[95]=hZ,mZ[72]=[hZ,fZ],mZ[104]=[hZ,fZ],mZ[87]=[hZ,pZ],mZ[119]=[hZ,pZ];const wZ={tokenize:function(e,t,n){const r=this;return j$(e,function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function TZ(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=cG(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function kZ(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...l),e}function SZ(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||R$(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(cG(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return R$(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function AZ(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||R$(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=cG(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return R$(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),j$(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function NZ(e,t,n){return e.check(V$,t,e.attempt(wZ,t,n))}function _Z(e){e.exit("gfmFootnoteDefinition")}function CZ(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=RG(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=RG(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&m$(a,a.length,0,J$(s,e.slice(r+1,n),t)),m$(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),m$(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class IZ{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function OZ(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function DZ(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?E:s;if(i===E&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):D$(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):P$(t)?j$(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||R$(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,P$(t)?j$(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):b(t)}function f(t){return P$(t)?j$(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||D$(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return P$(t)?j$(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?p(n):(null===n||D$(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function E(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||D$(n)?(e.exit("tableRow"),t(n)):P$(n)?j$(e,x,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||R$(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?T:w)}function T(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function RZ(e,t){let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new IZ;for(;++i<e.length;){const f=e[i],h=f[1];"enter"===f[0]?"tableHead"===h.type?(u=!1,0!==d&&(LZ(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],o=PZ(p,t,l,s,void 0,o)),l=c,c=[l[1],i,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],o=PZ(p,t,l,s,void 0,o),l=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==l[1]?(c[0]=c[1],o=PZ(p,t,l,s,i,o)):0!==c[1]&&(o=PZ(p,t,c,s,i,o)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&LZ(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=OZ(t.events,i))}return e}function PZ(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},MZ(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=MZ(t.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=MZ(t.events,n[2]),i=MZ(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},MZ(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function LZ(e,t,n,r,o){const i=[],a=MZ(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function MZ(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const FZ={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return R$(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return D$(r)?t(r):P$(r)?e.check({tokenize:jZ},t,n)(r):n(r)}}};function jZ(e,t,n){return j$(e,function(e){return null===e?n(e):t(e)},"whitespace")}const BZ={};function UZ(e){const t=e||BZ,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return w$([{text:mZ},{document:{91:{tokenize:AZ,continuation:{tokenize:NZ},exit:_Z}},text:{91:{tokenize:SZ},93:{add:"after",tokenize:TZ,resolveTo:kZ}}},CZ(e),{flow:{null:{tokenize:DZ,resolveAll:RZ}}},{text:{91:FZ}}])}(t)),o.push([{transforms:[cJ],enter:{literalAutolink:rJ,literalAutolinkEmail:oJ,literalAutolinkHttp:oJ,literalAutolinkWww:oJ},exit:{literalAutolink:lJ,literalAutolinkEmail:sJ,literalAutolinkHttp:iJ,literalAutolinkWww:aJ}},{enter:{gfmFootnoteDefinition:fJ,gfmFootnoteDefinitionLabelString:hJ,gfmFootnoteCall:yJ,gfmFootnoteCallString:vJ},exit:{gfmFootnoteDefinition:gJ,gfmFootnoteDefinitionLabelString:mJ,gfmFootnoteCall:EJ,gfmFootnoteCallString:bJ}},{canContainEols:["delete"],enter:{strikethrough:SJ},exit:{strikethrough:AJ}},{enter:{table:KJ,tableData:eZ,tableHeader:eZ,tableRow:JJ},exit:{codeText:tZ,table:XJ,tableData:ZJ,tableHeader:ZJ,tableRow:ZJ}},{exit:{taskListCheckValueChecked:oZ,taskListCheckValueUnchecked:oZ,paragraph:iZ}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:tJ,notInConstruct:nJ},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:tJ,notInConstruct:nJ},{character:":",before:"[ps]",after:"\\/",inConstruct:tJ,notInConstruct:nJ}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:wJ,footnoteReference:xJ}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:kJ}],handlers:{delete:NJ}},rZ(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:aZ}}]}}(t))}const zZ={},VZ=new Set(["mention","mentions"]),HZ=new Set(["acceded","deedeed","defaced","effaced","fabaceae"]),$Z="[\\da-z][-\\da-z]{0,38}",GZ="(?:\\.git[\\w-]|\\.(?!git)|[\\w-])+",WZ="("+$Z+")\\/("+GZ+")",qZ=new RegExp("^https?:\\/\\/github\\.com\\/"+WZ+"\\/(commit|compare|issues|pull)\\/([a-f\\d]+(?:\\.{3}[a-f\\d]+)?\\/?(?=[#?]|$))","i"),YZ=new RegExp("(?:^|/(?:repos/)?)"+WZ+"(?=\\.git|[\\/#@]|$)","i"),QZ=new RegExp("("+$Z+")(?:\\/("+GZ+"))?(?:#([1-9]\\d*)|@([a-f\\d]{7,40}))","gi"),KZ=new RegExp("@("+$Z+"(?:\\/"+$Z+")?)","gi");function XZ(e){const t="https://github.com";if("mention"===e.type)return[t,e.user].join("/");const{project:n,user:r}=e;return"commit"===e.type?[t,r,n,"commit",e.hash].join("/"):"issue"===e.type?[t,r,n,"issues",e.no].join("/"):[t,r,n,"compare",e.base+"..."+e.compare].join("/")}function JZ(e){const t=e||zZ,n=t.buildUrl||XZ;return function(e,r){const o=t.repository||void r.cwd;if(!o)throw new Error("Unexpected missing `repository` in `options`");const i=YZ.exec(o);if(!i)throw new Error("Unexpected invalid `repository`, expected for example `user/project`");const a={project:i[2],user:i[1]};JX(e,[[QZ,function(e,t,r,o,i,s){if(/[^\t\n\r (@[{]/.test(s.input.charAt(s.index-1))||/\w/.test(s.input.charAt(s.index+e.length)))return!1;const l=r||a.project,c=n(o?{no:o,project:l,type:"issue",user:t}:{hash:i,project:l,type:"commit",user:t});if(!c)return!1;const u=[];let d="";l!==a.project?d+=t+"/"+l:t!==a.user&&(d+=t);o?d+="#"+o:(d+="@",u.push({type:"inlineCode",value:ZZ(i)}));return u.unshift({type:"text",value:d}),{type:"link",title:null,url:c,children:u}}],[KZ,function(e,r,o){if(/[\w`]/.test(o.input.charAt(o.index-1))||/[/\w`]/.test(o.input.charAt(o.index+e.length))||VZ.has(r))return!1;const i=n({type:"mention",user:r});if(!i)return!1;let a={type:"text",value:e};!1!==t.mentionStrong&&(a={type:"strong",children:[a]});return{type:"link",title:null,url:i,children:[a]}}],[/(?:#|\bgh-)([1-9]\d*)/gi,function(e,t,r){if(/\w/.test(r.input.charAt(r.index-1))||/\w/.test(r.input.charAt(r.index+e.length)))return!1;const o=n({no:t,type:"issue",...a});return!!o&&{type:"link",title:null,url:o,children:[{type:"text",value:e}]}}],[/\b([a-f\d]{7,40})\.{3}([a-f\d]{7,40})\b/gi,function(e,t,r,o){if(/[^\t\n\r (@[{]/.test(o.input.charAt(o.index-1))||/\w/.test(o.input.charAt(o.index+e.length))||HZ.has(e))return!1;const i=n({base:t,compare:r,type:"compare",...a});return!!i&&{type:"link",title:null,url:i,children:[{type:"inlineCode",value:ZZ(t)+"..."+ZZ(r)}]}}],[/\b[a-f\d]{7,40}\b/gi,function(e,t){if(/[^\t\n\r (@[{.]/.test(t.input.charAt(t.index-1))||"."===t.input.charAt(t.index-1)&&"."!==t.input.charAt(t.index-2)||/\w/.test(t.input.charAt(t.index+e.length))||HZ.has(e))return!1;const r=n({hash:e,type:"commit",...a});return!!r&&{type:"link",title:null,url:r,children:[{type:"inlineCode",value:ZZ(e)}]}}]],{ignore:["link","linkReference"]}),NW(e,"link",function(e){const t=function(e){const t=qZ.exec(e.url);if(!t||1!==e.children.length||"text"!==e.children[0].type||p$(e)!==e.url||"commit"===t[3]&&(t[4].length<4||t[4].length>40)||"compare"===t[3]&&!/^[a-f\d]{4,40}\.{3}[a-f\d]{4,40}$/.test(t[4])||("issues"===t[3]||"pull"===t[3])&&/[a-f]/i.test(t[4])||t[2].length>=100)return;let n=t[4];if("compare"===t[3]){const[e,t]=n.split("...");n=ZZ(e)+"..."+ZZ(t)}else n=ZZ(n);return{comment:"#"===e.url.charAt(t[0].length)&&t[0].length+1<e.url.length,page:t[3],project:t[2],reference:n,user:t[1]}}(e);if(!t)return;const n=t.comment?" (comment)":"";let r;r=t.project!==a.project||"compare"===t.page&&t.user!==a.user?t.user+"/"+t.project:t.user===a.user?"":t.user;const o=[];"issues"===t.page||"pull"===t.page?(r+="#",o.push({type:"text",value:r+t.reference+n})):(r&&o.push({type:"text",value:r+"@"}),o.push({type:"inlineCode",value:t.reference}),t.comment&&o.push({type:"text",value:n})),e.children=o})}}function ZZ(e){return e.slice(0,7)}function e0({level:e,className:t,children:n}){const r=`h${e}`;return(0,c().jsx)(r,{className:Bf("font-heading text-heading dark:text-heading-dark font-medium mt-4 first:mt-0 mb-2",t),children:n})}const t0={h1:({children:e})=>(0,c().jsx)(e0,{level:2,className:"text-lg",children:e}),h2:({children:e})=>(0,c().jsx)(e0,{level:2,className:"text-lg",children:e}),h3:({children:e})=>(0,c().jsx)(e0,{level:3,className:"text-md",children:e}),h4:({children:e})=>(0,c().jsx)(e0,{level:4,className:"text-sm",children:e}),ul:({children:e})=>(0,c().jsx)("ul",{className:"list-disc pl-4 flex flex-col gap-2",children:e}),p:({children:e})=>(0,c().jsx)("p",{className:"mt-2 first:mt-0",children:e}),a:({node:e,...t})=>(0,c().jsx)(rV,{href:"#",...t,className:"font-semibold underline-offset-4 underline"}),pre:({children:e})=>e,details:({children:e})=>(0,c().jsx)("details",{className:"mt-2 first:mt-0 cursor-pointer",children:e}),summary:({children:e})=>(0,c().jsx)("summary",{className:"[&>:is(h1,h2,h3,h4,h5,h6)]:inline has-[h1,h2,h3,h4,h5,h6]:mb-2",children:e}),code:({children:e,className:t})=>{const n=t?.replace("language-","");return void 0===n?(0,c().jsx)("code",{children:e}):(0,c().jsx)(yv,{className:"mt-2 first:mt-0",code:e,language:n,copyable:!1})}};function n0({className:e,children:t,componentOverrides:n}){return(0,c().jsx)("div",{className:Bf("flex flex-col",e),children:(0,c().jsx)(gq,{components:{...t0,...n},remarkPlugins:[UZ,[JZ,{repository:"apollographql/apollo-client"}]],rehypePlugins:[KX],children:t})})}var r0,o0;function i0(){return i0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i0.apply(null,arguments)}const a0=function(e){return u().createElement("svg",i0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 13"},e),r0||(r0=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.728h-3m3 0L6 6.228m4.5-4.5v3"})),o0||(o0=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",d:"M10.5 6.728v3a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h3"})))};var s0;function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(null,arguments)}const c0=function(e){return u().createElement("svg",l0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),s0||(s0=u().createElement("path",{fill:"currentColor",d:"M8 .187a8 8 0 0 0-2.48 15.606h.187a.67.67 0 0 0 .647-.406.7.7 0 0 0 .06-.3v-.867a.33.33 0 0 0-.127-.22.33.33 0 0 0-.274-.067c-1.793.387-2.173-.733-2.193-.806a3.1 3.1 0 0 0-1.153-1.46l-.1-.074a.5.5 0 0 1 .253-.046.99.99 0 0 1 .76.586 2 2 0 0 0 2.667.774.35.35 0 0 0 .2-.24c.027-.306.159-.594.373-.814a.33.33 0 0 0 .1-.353.33.33 0 0 0-.28-.233c-1.58-.18-3.2-.734-3.2-3.46a2.67 2.67 0 0 1 .707-1.854.33.33 0 0 0 .06-.346A2.37 2.37 0 0 1 4.213 4c.616.11 1.194.374 1.68.767a.32.32 0 0 0 .28.04 7.1 7.1 0 0 1 3.66 0 .3.3 0 0 0 .274-.04A3.7 3.7 0 0 1 11.787 4a2.36 2.36 0 0 1 0 1.587.32.32 0 0 0 .066.346c.458.5.709 1.156.7 1.834 0 2.733-1.62 3.28-3.206 3.453a.33.33 0 0 0-.28.233.33.33 0 0 0 .1.347 1.5 1.5 0 0 1 .406 1.167v2.12a.7.7 0 0 0 .247.546.79.79 0 0 0 .707.127A8 8 0 0 0 8 .187"})))};var u0;function d0(){return d0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d0.apply(null,arguments)}const p0=function(e){return u().createElement("svg",d0({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),u0||(u0=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.719 4.719a1.875 1.875 0 1 1 0-3.75 1.875 1.875 0 0 1 0 3.75m0 0v6.562m0 0a1.875 1.875 0 1 1 0 3.75 1.875 1.875 0 0 1 0-3.75M11.28 4.72a1.875 1.875 0 1 1 0-3.75 1.875 1.875 0 0 1 0 3.75m0 0a3.75 3.75 0 0 1-3.75 3.75H4.72"})))};H();const f0=/^0.0.0-pr-(?<prNumber>\d+)-(?<timestamp>\d+)$/,h0=/^(?<year>\d{4})(?<month>\d{2})(?<day>\d{2})(?<hour>\d{2})(?<minutes>\d{2})(?<seconds>\d{2})$/;function m0(e){return e.startsWith("0.0.0")}function g0(e){const t=f0.exec(e);return{prNumber:t.groups.prNumber,timestamp:t.groups.timestamp}}function y0(e){if((0,H().RO)(e,"4.0.0")){return`https://github.com/apollographql/apollo-client/releases/tag/${encodeURIComponent(`@apollo/client@${e}`)}`}return m0(e)?`https://github.com/apollographql/apollo-client/pull/${g0(e).prNumber}`:`https://github.com/apollographql/apollo-client/releases/tag/v${e}`}function v0(e,t){switch(t.type){case"load":return{status:"pending",data:null,error:null};case"success":return{status:"success",data:t.payload,error:null};case"failed":return{status:"error",data:null,error:t.error};default:return e}}function b0(e,t){const[n,r]=(0,u().useReducer)(v0,{status:"pending",data:null,error:null});return(0,u().useEffect)(()=>{let n=!1;return r({type:"load"}),async function(e,t){if(t?.cache&&E0.has(e))return E0.get(e);const n=await fetch(`https://api.github.com${e}`,{headers:{Accept:"application/vnd.github+json","X-GitHub-Api-Version":"2022-11-28"}}),r=await n.json();if(n.ok)return t?.cache&&E0.set(e,r),r;throw new Error(r.message)}(e,{cache:t?.cache}).then(e=>!n&&r({type:"success",payload:e}),e=>!n&&r({type:"failed",error:e})),()=>{n=!0}},[e,t?.cache]),n}const E0=new Map;function x0({children:e,version:t}){return(0,c().jsxs)(YV,{openDelay:0,children:[(0,c().jsx)(YV.Trigger,{asChild:!0,children:e}),(0,c().jsx)(YV.Content,{children:m0(t)?(0,c().jsx)(w0,{version:t}):(0,c().jsx)(T0,{version:t})})]})}function w0({version:e}){const t=g0(e),{status:n,data:r}=b0(`/repos/apollographql/apollo-client/pulls/${t.prNumber}`,{cache:!0});return"pending"===n?(0,c().jsx)(A0,{}):"error"===n?(0,c().jsx)(S0,{message:"Error: Could not load pull request from GitHub"}):(0,c().jsxs)("div",{className:"flex flex-col gap-8",children:[(0,c().jsxs)("header",{className:"flex flex-col gap-1 bg-primary dark:bg-primary-dark",children:[(0,c().jsxs)("h1",{className:"text-md text-heading dark:text-heading-dark font-heading font-medium flex items-center gap-2",children:[(0,c().jsx)(c0,{className:"size-4"}),(0,c().jsx)("span",{className:"whitespace-nowrap",children:e}),(0,c().jsx)(rU,{variant:"info",children:"Snapshot"})]}),t&&(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("div",{className:"flex gap-1 items-center text-xs font-bold uppercase text-secondary dark:text-secondary-dark",children:["Published ",k0((o=t.timestamp,Date.parse(o.replace(h0,"$<year>-$<month>-$<day>T$<hour>:$<minutes>:$<seconds>.000Z"))))]}),(0,c().jsxs)(rV,{className:"flex gap-1 items-center mt-2",href:`https://github.com/apollographql/apollo-client/pull/${t.prNumber}`,children:["View pull request in GitHub ",(0,c().jsx)(a0,{className:"size-3"})]})]})]}),(0,c().jsxs)("section",{children:[(0,c().jsxs)("div",{className:"mb-2",children:[(0,c().jsxs)(rV,{href:r.user.html_url,children:["@",r.user.login]})," ","opened"," ",(0,c().jsxs)(rV,{href:r.html_url,children:["#",r.number]})," ","on ",k0(Date.parse(r.created_at)),":"]}),(0,c().jsx)("h2",{className:"text-lg text-heading dark:text-heading-dark font-medium mb-2",children:(0,c().jsx)(n0,{children:r.title})}),(0,c().jsx)("div",{className:"flex mt-2",children:r.merged?(0,c().jsxs)(Sv,{className:"text-sm",variant:"hidden",color:"purple",icon:(0,c().jsx)(p0,{}),children:["Merged ",k0(Date.parse(r.merged_at))," into"," ",(0,c().jsx)(rV,{href:`https://github.com/apollographql/apollo-client/commit/${r.merge_commit_sha}`,children:r.merge_commit_sha.slice(0,7)})]}):"closed"===r.state?(0,c().jsxs)(Sv,{className:"text-sm",variant:"hidden",color:"red",icon:(0,c().jsx)(p0,{}),children:["Closed ",k0(Date.parse(r.closed_at))]}):(0,c().jsx)(Sv,{className:"text-sm",variant:"hidden",color:"green",icon:(0,c().jsx)(p0,{}),children:"Open"})}),(0,c().jsx)(n0,{className:"[&:not(:empty)]:mt-6",children:r.body})]})]});var o}function T0({version:e}){const t=b0(`/repos/apollographql/apollo-client/releases/tags/${(0,H().RO)(e,"4.0.0")?`@apollo/client@${e}`:`v${e}`}`,{cache:!0}),n=b0("/repos/apollographql/apollo-client/releases/latest",{cache:!0});if("pending"===t.status||"pending"===n.status)return(0,c().jsx)(A0,{});if("error"===t.status||"error"===n.status)return(0,c().jsx)(S0,{message:"Error: Could not load release from GitHub"});const r=t.data;return(0,c().jsxs)("div",{className:"flex flex-col gap-8",children:[(0,c().jsxs)("header",{className:"flex flex-col gap-1 bg-primary dark:bg-primary-dark",children:[(0,c().jsxs)("h2",{className:"text-2xl text-heading dark:text-heading-dark font-heading font-medium flex items-center gap-2",children:[(0,c().jsx)(c0,{className:"size-6"}),r.name," ",r.prerelease?(0,c().jsx)(rU,{variant:"beta",children:"Pre-release"}):n.data.name===r.name?(0,c().jsx)(rU,{variant:"success",children:"Latest"}):(0,c().jsx)(rU,{variant:"warning",children:"Outdated"})]}),(0,c().jsxs)("div",{className:"flex gap-1 items-center text-xs font-bold uppercase text-secondary dark:text-secondary-dark",children:["Published ",k0(Date.parse(r.published_at))]}),(0,c().jsxs)(rV,{className:"flex gap-1 items-center mt-2",href:y0(e),children:["View release in GitHub ",(0,c().jsx)(a0,{className:"size-3"})]})]}),(0,c().jsx)(n0,{children:r.body})]})}function k0(e){return new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric"}).format(e)}function S0({message:e}){return(0,c().jsx)("div",{className:"flex min-w-80 min-h-80 items-center justify-center text-md font-semibold",children:e})}function A0(){return(0,c().jsx)("div",{className:"flex items-center justify-center min-w-80 min-h-80",children:(0,c().jsx)(Xm,{size:"lg"})})}function N0(e,[t,n]){return Math.min(n,Math.max(t,e))}var _0=0;function C0(){u().useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??I0()),document.body.insertAdjacentElement("beforeend",e[1]??I0()),_0++,()=>{1===_0&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),_0--}},[])}function I0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var O0="focusScope.autoFocusOnMount",D0="focusScope.autoFocusOnUnmount",R0={bubbles:!1,cancelable:!0},P0=u().forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=u().useState(null),d=wg(o),p=wg(i),f=u().useRef(null),h=Mm(t,e=>l(e)),m=u().useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u().useEffect(()=>{if(r){let e=function(e){if(m.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:j0(f.current,{select:!0})},t=function(e){if(m.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||j0(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&j0(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,m.paused]),u().useEffect(()=>{if(s){B0.add(m);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(O0,R0);s.addEventListener(O0,d),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(j0(r,{select:t}),document.activeElement!==n)return}((e=L0(s),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&j0(s))}return()=>{s.removeEventListener(O0,d),setTimeout(()=>{const e=new CustomEvent(D0,R0);s.addEventListener(D0,p),s.dispatchEvent(e),e.defaultPrevented||j0(t??document.body,{select:!0}),s.removeEventListener(D0,p),B0.remove(m)},0)}}var e},[s,d,p,m]);const g=u().useCallback(e=>{if(!n&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=L0(e),n=M0(t,e),r=M0(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&j0(i,{select:!0})):(e.preventDefault(),n&&j0(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,c().jsx)(xg.div,{tabIndex:-1,...a,ref:h,onKeyDown:g})});function L0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function M0(e,t){for(const n of e)if(!F0(n,{upTo:t}))return n}function F0(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function j0(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}P0.displayName="FocusScope";var B0=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=U0(e,t),e.unshift(t)},remove(t){e=U0(e,t),e[0]?.resume()}}}();function U0(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function z0(e){const t=V0(e),n=u().forwardRef((e,n)=>{const{children:r,...o}=e,i=u().Children.toArray(r),a=i.find($0);if(a){const e=a.props.children,r=i.map(t=>t===a?u().Children.count(e)>1?u().Children.only(null):u().isValidElement(e)?e.props.children:null:t);return(0,c().jsx)(t,{...o,ref:n,children:u().isValidElement(e)?u().cloneElement(e,void 0,r):null})}return(0,c().jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function V0(e){const t=u().forwardRef((e,t)=>{const{children:n,...r}=e;if(u().isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==u().Fragment&&(o.ref=t?Lm(t,e):e),u().cloneElement(n,o)}return u().Children.count(n)>1?u().Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var H0=Symbol("radix.slottable");function $0(e){return u().isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===H0}var G0=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},W0=new WeakMap,q0=new WeakMap,Y0={},Q0=0,K0=function(e){return e&&(e.host||K0(e.parentNode))},X0=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=K0(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Y0[n]||(Y0[n]=new WeakMap);var i=Y0[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(W0.get(e)||0)+1,c=(i.get(e)||0)+1;W0.set(e,l),i.set(e,c),a.push(e),1===l&&o&&q0.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),Q0++,function(){a.forEach(function(e){var t=W0.get(e)-1,o=i.get(e)-1;W0.set(e,t),i.set(e,o),t||(q0.has(e)||e.removeAttribute(r),q0.delete(e)),o||e.removeAttribute(n)}),--Q0||(W0=new WeakMap,W0=new WeakMap,q0=new WeakMap,Y0={})}},J0=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||G0(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),X0(r,o,n,"aria-hidden")):function(){return null}},Z0="right-scroll-bar-position",e1="width-before-scroll-bar";function t1(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var n1="undefined"!=typeof window?u().useLayoutEffect:u().useEffect,r1=new WeakMap;function o1(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach(function(e){return t1(e,t)})},(o=(0,u().useState)(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return n1(function(){var t=r1.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||t1(e,null)}),r.forEach(function(e){n.has(e)||t1(e,o)})}r1.set(i,e)},[e]),i}function i1(e){return e}function a1(e,t){void 0===t&&(t=i1);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}var s1=function(e){void 0===e&&(e={});var t=a1(null);return t.options=je({async:!0,ssr:!1},e),t}(),l1=function(){},c1=u().forwardRef(function(e,t){var n=u().useRef(null),r=u().useState({onScrollCapture:l1,onWheelCapture:l1,onTouchMoveCapture:l1}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,h=e.noRelative,m=e.noIsolation,g=e.inert,y=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,E=e.gapMode,x=Be(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,T=o1([n,t]),k=je(je({},x),o);return u().createElement(u().Fragment,null,d&&u().createElement(w,{sideCar:s1,removeScrollBar:c,shards:p,noRelative:h,noIsolation:m,inert:g,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:E}),a?u().cloneElement(u().Children.only(s),je(je({},k),{ref:T})):u().createElement(b,je({},k,{className:l,ref:T}),s))});c1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},c1.classNames={fullWidth:e1,zeroRight:Z0};var u1,d1=function(e){var t=e.sideCar,n=Be(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u().createElement(r,je({},n))};d1.isSideCarExport=!0;function p1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u1||n.nc;return t&&e.setAttribute("nonce",t),e}var f1=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=p1())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},h1=function(){var e,t=(e=f1(),function(t,n){u().useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},m1={left:0,top:0,right:0,gap:0},g1=function(e){return parseInt(e||"",10)||0},y1=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return m1;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[g1(n),g1(r),g1(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},v1=h1(),b1="data-scroll-locked",E1=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(b1,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Z0," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(e1," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Z0," .").concat(Z0," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(e1," .").concat(e1," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(b1,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},x1=function(){var e=parseInt(document.body.getAttribute(b1)||"0",10);return isFinite(e)?e:0},w1=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;u().useEffect(function(){return document.body.setAttribute(b1,(x1()+1).toString()),function(){var e=x1()-1;e<=0?document.body.removeAttribute(b1):document.body.setAttribute(b1,e.toString())}},[]);var i=u().useMemo(function(){return y1(o)},[o]);return u().createElement(v1,{styles:E1(i,!t,o,n?"":"!important")})},T1=!1;if("undefined"!=typeof window)try{var k1=Object.defineProperty({},"passive",{get:function(){return T1=!0,!0}});window.addEventListener("test",k1,k1),window.removeEventListener("test",k1,k1)}catch(e){T1=!1}var S1=!!T1&&{passive:!1},A1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},N1=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),_1(e,r)){var o=C1(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_1=function(e,t){return"v"===e?function(e){return A1(e,"overflowY")}(t):function(e){return A1(e,"overflowX")}(t)},C1=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},I1=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},O1=function(e){return[e.deltaX,e.deltaY]},D1=function(e){return e&&"current"in e?e.current:e},R1=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},P1=0,L1=[];function M1(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const F1=(j1=function(e){var t=u().useRef([]),n=u().useRef([0,0]),r=u().useRef(),o=u().useState(P1++)[0],i=u().useState(h1)[0],a=u().useRef(e);u().useEffect(function(){a.current=e},[e]),u().useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=$e([e.lockRef.current],(e.shards||[]).map(D1),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=u().useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=I1(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var h=N1(d,u);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=N1(d,u)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,p=0;do{if(!s)break;var f=C1(e,s),h=f[0],m=f[1]-f[2]-i*h;(h||m)&&_1(e,s)&&(d+=m,p+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&Math.abs(d)<1||!o&&a>d)||!u&&(o&&Math.abs(p)<1||!o&&-a>p))&&(c=!0),c}(m,t,e,"h"===m?l:c,!0)},[]),l=u().useCallback(function(e){var n=e;if(L1.length&&L1[L1.length-1]===i){var r="deltaY"in n?O1(n):I1(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(D1).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),c=u().useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:M1(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=u().useCallback(function(e){n.current=I1(e),r.current=void 0},[]),p=u().useCallback(function(t){c(t.type,O1(t),t.target,s(t,e.lockRef.current))},[]),f=u().useCallback(function(t){c(t.type,I1(t),t.target,s(t,e.lockRef.current))},[]);u().useEffect(function(){return L1.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,S1),document.addEventListener("touchmove",l,S1),document.addEventListener("touchstart",d,S1),function(){L1=L1.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,S1),document.removeEventListener("touchmove",l,S1),document.removeEventListener("touchstart",d,S1)}},[]);var h=e.removeScrollBar,m=e.inert;return u().createElement(u().Fragment,null,m?u().createElement(i,{styles:R1(o)}):null,h?u().createElement(w1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},s1.useMedium(j1),d1);var j1,B1=u().forwardRef(function(e,t){return u().createElement(c1,je({},e,{ref:t,sideCar:F1}))});B1.classNames=c1.classNames;const U1=B1;var z1=[" ","Enter","ArrowUp","ArrowDown"],V1=[" ","Enter"],H1="Select",[$1,G1,W1]=cg(H1),[q1,Y1]=rg(H1,[W1,dT]),Q1=dT(),[K1,X1]=q1(H1),[J1,Z1]=q1(H1),e2=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:d,name:p,autoComplete:f,disabled:h,required:m,form:g}=e,y=Q1(t),[v,b]=u().useState(null),[E,x]=u().useState(null),[w,T]=u().useState(!1),k=Ag(d),[S,A]=kg({prop:r,defaultProp:o??!1,onChange:i,caller:H1}),[N,_]=kg({prop:a,defaultProp:s,onChange:l,caller:H1}),C=u().useRef(null),I=!v||(g||!!v.closest("form")),[O,D]=u().useState(new Set),R=Array.from(O).map(e=>e.props.value).join(";");return(0,c().jsx)(NT,{...y,children:(0,c().jsxs)(K1,{required:m,scope:t,trigger:v,onTriggerChange:b,valueNode:E,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:T,contentId:gg(),value:N,onValueChange:_,open:S,onOpenChange:A,dir:k,triggerPointerDownPosRef:C,disabled:h,children:[(0,c().jsx)($1.Provider,{scope:t,children:(0,c().jsx)(J1,{scope:e.__scopeSelect,onNativeOptionAdd:u().useCallback(e=>{D(t=>new Set(t).add(e))},[]),onNativeOptionRemove:u().useCallback(e=>{D(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),I?(0,c().jsxs)(V2,{"aria-hidden":!0,required:m,tabIndex:-1,name:p,autoComplete:f,value:N,onChange:e=>_(e.target.value),disabled:h,form:g,children:[void 0===N?(0,c().jsx)("option",{value:""}):null,Array.from(O)]},R):null]})})};e2.displayName=H1;var t2="SelectTrigger",n2=u().forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Q1(n),a=X1(t2,n),s=a.disabled||r,l=Mm(t,a.onTriggerChange),d=G1(n),p=u().useRef("touch"),[f,h,m]=$2(e=>{const t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=G2(t,e,n);void 0!==r&&a.onValueChange(r.value)}),g=e=>{s||(a.onOpenChange(!0),m()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,c().jsx)(_T,{asChild:!0,...i,children:(0,c().jsx)(xg.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":H2(a.value)?"":void 0,...o,ref:l,onClick:ng(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&g(e)}),onPointerDown:ng(o.onPointerDown,e=>{p.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:ng(o.onKeyDown,e=>{const t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),t&&" "===e.key||z1.includes(e.key)&&(g(),e.preventDefault())})})})});n2.displayName=t2;var r2="SelectValue",o2=u().forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,l=X1(r2,n),{onValueNodeHasChildrenChange:u}=l,d=void 0!==i,p=Mm(t,l.onValueNodeChange);return fg(()=>{u(d)},[u,d]),(0,c().jsx)(xg.span,{...s,ref:p,style:{pointerEvents:"none"},children:H2(l.value)?(0,c().jsx)(c().Fragment,{children:a}):i})});o2.displayName=r2;var i2=u().forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return(0,c().jsx)(xg.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});i2.displayName="SelectIcon";var a2=e=>(0,c().jsx)(OT,{asChild:!0,...e});a2.displayName="SelectPortal";var s2="SelectContent",l2=u().forwardRef((e,t)=>{const n=X1(s2,e.__scopeSelect),[r,o]=u().useState();if(fg(()=>{o(new DocumentFragment)},[]),!n.open){const t=r;return t?a().createPortal((0,c().jsx)(u2,{scope:e.__scopeSelect,children:(0,c().jsx)($1.Slot,{scope:e.__scopeSelect,children:(0,c().jsx)("div",{children:e.children})})}),t):null}return(0,c().jsx)(f2,{...e,ref:t})});l2.displayName=s2;var c2=10,[u2,d2]=q1(s2),p2=z0("SelectContent.RemoveScroll"),f2=u().forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:d,alignOffset:p,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:y,avoidCollisions:v,...b}=e,E=X1(s2,n),[x,w]=u().useState(null),[T,k]=u().useState(null),S=Mm(t,e=>w(e)),[A,N]=u().useState(null),[_,C]=u().useState(null),I=G1(n),[O,D]=u().useState(!1),R=u().useRef(!1);u().useEffect(()=>{if(x)return J0(x)},[x]),C0();const P=u().useCallback(e=>{const[t,...n]=I().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),n?.focus(),document.activeElement!==o)return}},[I,T]),L=u().useCallback(()=>P([A,x]),[P,A,x]);u().useEffect(()=>{O&&L()},[O,L]);const{onOpenChange:M,triggerPointerDownPosRef:F}=E;u().useEffect(()=>{if(x){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||M(!1),document.removeEventListener("pointermove",t),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[x,M,F]),u().useEffect(()=>{const e=()=>M(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[M]);const[j,B]=$2(e=>{const t=I().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=G2(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),U=u().useCallback((e,t,n)=>{const r=!R.current&&!n;(void 0!==E.value&&E.value===t||r)&&(N(e),r&&(R.current=!0))},[E.value]),z=u().useCallback(()=>x?.focus(),[x]),V=u().useCallback((e,t,n)=>{const r=!R.current&&!n;(void 0!==E.value&&E.value===t||r)&&C(e)},[E.value]),H="popper"===r?m2:h2,$=H===m2?{side:s,sideOffset:l,align:d,alignOffset:p,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:y,avoidCollisions:v}:{};return(0,c().jsx)(u2,{scope:n,content:x,viewport:T,onViewportChange:k,itemRefCallback:U,selectedItem:A,onItemLeave:z,itemTextRefCallback:V,focusSelectedItem:L,selectedItemText:_,position:r,isPositioned:O,searchRef:j,children:(0,c().jsx)(U1,{as:p2,allowPinchZoom:!0,children:(0,c().jsx)(P0,{asChild:!0,trapped:E.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ng(o,e=>{E.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,c().jsx)(mx,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:(0,c().jsx)(H,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:e=>e.preventDefault(),...b,...$,onPlaced:()=>D(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:ng(b.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||B(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})});f2.displayName="SelectContentImpl";var h2=u().forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=X1(s2,n),a=d2(s2,n),[s,l]=u().useState(null),[d,p]=u().useState(null),f=Mm(t,e=>p(e)),h=G1(n),m=u().useRef(!1),g=u().useRef(!0),{viewport:y,selectedItem:v,selectedItemText:b,focusSelectedItem:E}=a,x=u().useCallback(()=>{if(i.trigger&&i.valueNode&&s&&d&&y&&v&&b){const e=i.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=b.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,l=e.width+a,c=Math.max(l,t.width),u=window.innerWidth-c2,d=N0(i,[c2,Math.max(c2,u-c)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,l=e.width+a,c=Math.max(l,t.width),u=window.innerWidth-c2,d=N0(i,[c2,Math.max(c2,u-c)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const a=h(),l=window.innerHeight-2*c2,c=y.scrollHeight,u=window.getComputedStyle(d),p=parseInt(u.borderTopWidth,10),f=parseInt(u.paddingTop,10),g=parseInt(u.borderBottomWidth,10),E=p+f+c+parseInt(u.paddingBottom,10)+g,x=Math.min(5*v.offsetHeight,E),w=window.getComputedStyle(y),T=parseInt(w.paddingTop,10),k=parseInt(w.paddingBottom,10),S=e.top+e.height/2-c2,A=l-S,N=v.offsetHeight/2,_=p+f+(v.offsetTop+N),C=E-_;if(_<=S){const e=a.length>0&&v===a[a.length-1].ref.current;s.style.bottom="0px";const t=d.clientHeight-y.offsetTop-y.offsetHeight,n=_+Math.max(A,N+(e?k:0)+t+g);s.style.height=n+"px"}else{const e=a.length>0&&v===a[0].ref.current;s.style.top="0px";const t=Math.max(S,p+y.offsetTop+(e?T:0)+N)+C;s.style.height=t+"px",y.scrollTop=_-S+y.offsetTop}s.style.margin=`${c2}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=l+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[h,i.trigger,i.valueNode,s,d,y,v,b,i.dir,r]);fg(()=>x(),[x]);const[w,T]=u().useState();fg(()=>{d&&T(window.getComputedStyle(d).zIndex)},[d]);const k=u().useCallback(e=>{e&&!0===g.current&&(x(),E?.(),g.current=!1)},[x,E]);return(0,c().jsx)(g2,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:k,children:(0,c().jsx)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:(0,c().jsx)(xg.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});h2.displayName="SelectItemAlignedPosition";var m2=u().forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=c2,...i}=e,a=Q1(n);return(0,c().jsx)(CT,{...a,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});m2.displayName="SelectPopperPosition";var[g2,y2]=q1(s2,{}),v2="SelectViewport",b2=u().forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=d2(v2,n),a=y2(v2,n),s=Mm(t,i.onViewportChange),l=u().useRef(0);return(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,c().jsx)($1.Slot,{scope:n,children:(0,c().jsx)(xg.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ng(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if(r?.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*c2,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop})})})]})});b2.displayName=v2;var E2="SelectGroup",[x2,w2]=q1(E2),T2=u().forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=gg();return(0,c().jsx)(x2,{scope:n,id:o,children:(0,c().jsx)(xg.div,{role:"group","aria-labelledby":o,...r,ref:t})})});T2.displayName=E2;var k2="SelectLabel",S2=u().forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=w2(k2,n);return(0,c().jsx)(xg.div,{id:o.id,...r,ref:t})});S2.displayName=k2;var A2="SelectItem",[N2,_2]=q1(A2),C2=u().forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=X1(A2,n),l=d2(A2,n),d=s.value===r,[p,f]=u().useState(i??""),[h,m]=u().useState(!1),g=Mm(t,e=>l.itemRefCallback?.(e,r,o)),y=gg(),v=u().useRef("touch"),b=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,c().jsx)(N2,{scope:n,value:r,disabled:o,textId:y,isSelected:d,onItemTextChange:u().useCallback(e=>{f(t=>t||(e?.textContent??"").trim())},[]),children:(0,c().jsx)($1.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:(0,c().jsx)(xg.div,{role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:g,onFocus:ng(a.onFocus,()=>m(!0)),onBlur:ng(a.onBlur,()=>m(!1)),onClick:ng(a.onClick,()=>{"mouse"!==v.current&&b()}),onPointerUp:ng(a.onPointerUp,()=>{"mouse"===v.current&&b()}),onPointerDown:ng(a.onPointerDown,e=>{v.current=e.pointerType}),onPointerMove:ng(a.onPointerMove,e=>{v.current=e.pointerType,o?l.onItemLeave?.():"mouse"===v.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ng(a.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:ng(a.onKeyDown,e=>{""!==l.searchRef?.current&&" "===e.key||(V1.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});C2.displayName=A2;var I2="SelectItemText",O2=u().forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=X1(I2,n),l=d2(I2,n),d=_2(I2,n),p=Z1(I2,n),[f,h]=u().useState(null),m=Mm(t,e=>h(e),d.onItemTextChange,e=>l.itemTextRefCallback?.(e,d.value,d.disabled)),g=f?.textContent,y=u().useMemo(()=>(0,c().jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:b}=p;return fg(()=>(v(y),()=>b(y)),[v,b,y]),(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(xg.span,{id:d.textId,...i,ref:m}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?a().createPortal(i.children,s.valueNode):null]})});O2.displayName=I2;var D2="SelectItemIndicator",R2=u().forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return _2(D2,n).isSelected?(0,c().jsx)(xg.span,{"aria-hidden":!0,...r,ref:t}):null});R2.displayName=D2;var P2="SelectScrollUpButton",L2=u().forwardRef((e,t)=>{const n=d2(P2,e.__scopeSelect),r=y2(P2,e.__scopeSelect),[o,i]=u().useState(!1),a=Mm(t,r.onScrollButtonChange);return fg(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,c().jsx)(j2,{...e,ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});L2.displayName=P2;var M2="SelectScrollDownButton",F2=u().forwardRef((e,t)=>{const n=d2(M2,e.__scopeSelect),r=y2(M2,e.__scopeSelect),[o,i]=u().useState(!1),a=Mm(t,r.onScrollButtonChange);return fg(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,c().jsx)(j2,{...e,ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});F2.displayName=M2;var j2=u().forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=d2("SelectScrollButton",n),a=u().useRef(null),s=G1(n),l=u().useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return u().useEffect(()=>()=>l(),[l]),fg(()=>{const e=s().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[s]),(0,c().jsx)(xg.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ng(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:ng(o.onPointerMove,()=>{i.onItemLeave?.(),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:ng(o.onPointerLeave,()=>{l()})})}),B2=u().forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return(0,c().jsx)(xg.div,{"aria-hidden":!0,...r,ref:t})});B2.displayName="SelectSeparator";var U2="SelectArrow",z2=u().forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Q1(n),i=X1(U2,n),a=d2(U2,n);return i.open&&"popper"===a.position?(0,c().jsx)(IT,{...o,...r,ref:t}):null});z2.displayName=U2;var V2=u().forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u().useRef(null),i=Mm(r,o),a=function(e){const t=u().useRef({value:e,previous:e});return u().useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return u().useEffect(()=>{const e=o.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(a!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[a,t]),(0,c().jsx)(xg.select,{...n,style:{...PT,...n.style},ref:i,defaultValue:t})});function H2(e){return""===e||void 0===e}function $2(e){const t=wg(e),n=u().useRef(""),r=u().useRef(0),o=u().useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),i=u().useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u().useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function G2(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,s=Math.max(o,0),a.map((e,t)=>a[(s+t)%a.length]));var a,s;1===r.length&&(i=i.filter(e=>e!==n));const l=i.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}V2.displayName="SelectBubbleInput";var W2=e2,q2=n2,Y2=o2,Q2=i2,K2=a2,X2=l2,J2=b2,Z2=C2,e3=O2,t3=L2,n3=F2;const r3=(0,u().forwardRef)(({children:e,disabled:t,value:n},r)=>(0,c().jsx)(Z2,{disabled:t,value:n,ref:r,className:$p("border-2 border-transparent py-2 px-4 rounded-md h-10 text-md bg-primary dark:bg-primary-dark outline-none","data-highlighted:bg-button-secondaryHover dark:data-highlighted:bg-button-secondaryHover-dark data-highlighted:cursor-pointer","data-state-checked:!bg-selected dark:data-state-checked:!bg-selected-dark data-state-checked:text-white data-state-checked:font-semibold"),children:(0,c().jsx)(e3,{children:e})})),o3=Qm(["group flex justify-between gap-4 items-center bg-input dark:bg-input-dark border border-primary dark:border-primary-dark","hover:border-hover dark:hover:border-hover-dark transition-colors ease-out","focus:border-focused dark:focus:border-focused-dark focus-visible:outline-none","disabled:bg-disabled dark:disabled:bg-disabled-dark disabled:border-disabled dark:disabled:border-disabled-dark disabled:text-disabled dark:disabled:text-disabled-dark"],{variants:{size:{sm:["py-1","px-3","rounded","h-8","text-sm"],md:["py-2","px-3","rounded-lg","h-10"],lg:["p-3","rounded-lg","h-12"]}}}),i3=Qm(["absolute","flex","items-center","justify-center","cursor-default","py-2","bg-primary","dark:bg-primary-dark","z-10","left-px","right-px"],{variants:{position:{top:["top-px","rounded-t-lg"],bottom:["bottom-px","rounded-b-lg"]}}}),a3=({align:e,children:t,className:n,defaultValue:r,disabled:o,name:i,onValueChange:a,placeholder:s,size:l="md",value:u})=>(0,c().jsxs)(W2,{name:i,value:u,defaultValue:r,onValueChange:a,children:[(0,c().jsxs)(q2,{disabled:o,className:Bf(o3({size:l}),n),children:[(0,c().jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:(0,c().jsx)(Y2,{placeholder:s??"Select..."})}),(0,c().jsx)(Q2,{className:"group-data-state-open:rotate-180 transition-transform",children:(0,c().jsx)(zE,{className:"w-4"})})]}),(0,c().jsx)(K2,{children:(0,c().jsxs)(X2,{align:e,sideOffset:6,position:"popper",className:"border border-primary bg-primary dark:bg-primary-dark dark:border-primary-dark shadow-dropdown overflow-hidden rounded-lg min-w-80 max-h-[--radix-select-content-available-height]",children:[(0,c().jsx)(t3,{className:i3({position:"top"}),children:(0,c().jsx)(yV,{className:"w-4"})}),(0,c().jsx)(J2,{className:"px-4 py-4",children:t}),(0,c().jsx)(n3,{className:i3({position:"bottom"}),children:(0,c().jsx)(zE,{className:"w-4"})})]})})]});a3.Option=r3;const s3=Qm(["border-0","border-primary","dark:border-primary-dark"],{variants:{orientation:{horizontal:["border-b","w-full"],vertical:["border-l","h-full"]}}}),l3=({className:e,orientation:t="horizontal"})=>(0,c().jsx)("hr",{"aria-orientation":t,className:Bf(s3({orientation:t}),e)});var c3,u3,d3,p3,f3,h3,m3,g3,y3,v3,b3,E3,x3,w3,T3,k3,S3;function A3(){return A3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A3.apply(null,arguments)}const N3=function(e){return u().createElement("svg",A3({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 160 82"},e),c3||(c3=u().createElement("circle",{cx:134.972,cy:6.789,r:.811,fill:"currentColor",stroke:"currentColor",strokeWidth:1.55})),u3||(u3=u().createElement("circle",{cx:158.244,cy:28.775,r:.811,fill:"currentColor",stroke:"currentColor",strokeWidth:.254})),d3||(d3=u().createElement("circle",{cx:1.756,cy:17.381,r:.811,fill:"currentColor",stroke:"currentColor",strokeWidth:.254})),p3||(p3=u().createElement("circle",{cx:22.496,cy:53.311,r:.811,fill:"currentColor",stroke:"currentColor",strokeWidth:.254})),f3||(f3=u().createElement("circle",{cx:130.664,cy:32.938,r:.811,fill:"currentColor",stroke:"currentColor",strokeWidth:.254})),h3||(h3=u().createElement("circle",{cx:114.664,cy:80.938,r:.811,fill:"currentColor",stroke:"currentColor",strokeWidth:.254})),m3||(m3=u().createElement("circle",{cx:34.664,cy:.938,r:.811,fill:"currentColor",stroke:"currentColor",strokeWidth:.254})),g3||(g3=u().createElement("circle",{cx:3.056,cy:63.868,r:.811,fill:"currentColor",stroke:"currentColor",strokeWidth:1.55})),y3||(y3=u().createElement("circle",{cx:23.667,cy:28.035,r:2.995,fill:"currentColor",stroke:"currentColor",strokeWidth:1.621})),v3||(v3=u().createElement("circle",{cx:130.9,cy:59.161,r:1.776,fill:"currentColor",stroke:"currentColor",strokeWidth:1.621})),b3||(b3=u().createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M93.61 45.203c-1.352 6.847-7.237 12-14.292 12-8.054 0-14.583-6.715-14.583-15 0-7.778 5.755-14.173 13.125-14.926"})),E3||(E3=u().createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M71.297 39.203a.74.74 0 0 1-.729-.75.74.74 0 0 1 .73-.75.74.74 0 0 1 .728.75.74.74 0 0 1-.729.75M72.027 46.72l.016-.019M77.86 42.22l.016-.019M77.86 27.203l4.958 4.5-1 5 8.5 2s3.627 6.79 3.145 6.52"})),x3||(x3=u().createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2.5,d:"m90.318 38.703-6 3.797V46M89.645 31.03c.299-.909.827-2.197 1.674-3.326 1.2-1.6 3.68 1.28 4.88 3.263.353.584-.085 1.237-.768 1.237H90.54c-.632 0-1.092-.576-.895-1.175ZM83.294 22.774c-.83-.618-1.828-1.446-1.61-1.706.065-.078.178-.093.268-.141.335-.183 1.249-.67 2.068-1.011.617-.256 1.06.279.923.932-.1.479-.182.967-.285 1.444-.134.629-.849.866-1.364.482Z"})),w3||(w3=u().createElement("path",{stroke:"currentColor",strokeWidth:2.5,d:"M80.073 51.68c-10.388 1.71-19.176.862-19.63-1.893-.243-1.477 1.96-3.202 5.655-4.749"})),T3||(T3=u().createElement("path",{stroke:"currentColor",strokeWidth:2.5,d:"M91.31 40.9c4.013.279 6.664 1.208 6.907 2.689.454 2.755-7.6 6.374-17.988 8.084l-1.226.202"})),k3||(k3=u().createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M60.818 19.203h-12v7M109.818 39.203v5M97.818 19.203h12v7M60.818 64.203h-12v-8M97.818 64.203h12v-8M48.818 37v4M48.818 45.01l.01-.011"})),S3||(S3=u().createElement("circle",{cx:48.818,cy:41,r:8.75,stroke:"currentColor",strokeWidth:2.5})))};function _3({children:e,className:t}){return(0,c().jsxs)("div",{className:Bf("flex flex-col gap-6 items-center max-w-2xl mx-auto",t),children:[(0,c().jsx)(N3,{className:"w-36"}),e]})}function C3({children:e}){return(0,c().jsx)("div",{className:"text-center",children:e})}var I3,O3;function D3(){return D3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D3.apply(null,arguments)}_3.Content=C3,_3.Details=function({error:e}){return(0,c().jsxs)("details",{className:"text-left w-full",children:[(0,c().jsx)("summary",{className:"text-center",children:"Error details"}),(0,c().jsx)(yv,{language:"plain",code:`${e.name}: ${e.message}\n\n${e.stack}`,className:"mt-2"})]})},_3.Body=function({children:e}){return(0,c().jsx)("p",{className:"mt-3 first:mt-0",children:e})},_3.Title=function({children:e}){return(0,c().jsx)("h1",{className:"font-heading text-xl font-medium",children:e})},_3.Content=C3;const R3=function(e){return u().createElement("svg",D3({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 17"},e),I3||(I3=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M14 2.228h-4m4 0-6 6m6-6v4"})),O3||(O3=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",d:"M14 8.894v4c0 .737-.597 1.333-1.333 1.333H3.333A1.333 1.333 0 0 1 2 12.894V3.561c0-.737.597-1.333 1.333-1.333h4"})))};var P3;function L3(){return L3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L3.apply(null,arguments)}const M3=function(e){return u().createElement("svg",L3({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),P3||(P3=u().createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M7.063 5.658h-.47a.88.88 0 0 0-.937.809v.78a.79.79 0 0 1-.417.672l-.989.569.989.568a.79.79 0 0 1 .417.672v.78a.88.88 0 0 0 .938.808h.468m1.875-5.658h.47a.88.88 0 0 1 .937.809v.78a.79.79 0 0 0 .417.672l.989.569-.989.568a.79.79 0 0 0-.417.672v.78a.88.88 0 0 1-.938.808h-.469m5.626 2.78a.94.94 0 0 1-.938.937H2.375a.937.937 0 0 1-.937-.937V1.908a.94.94 0 0 1 .937-.937h9.403c.245 0 .48.095.655.267l1.847 1.8a.94.94 0 0 1 .283.672z"})))};var F3;function j3(){return j3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j3.apply(null,arguments)}const B3=function(e){return u().createElement("svg",j3({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),F3||(F3=u().createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",clipRule:"evenodd"},u().createElement("path",{d:"M8 .667a7.334 7.334 0 1 1 0 14.667A7.334 7.334 0 0 1 8 .667"}),u().createElement("path",{d:"M13.5 8A5.5 5.5 0 0 0 8 2.5V8l3.877 3.901A5.48 5.48 0 0 0 13.5 8"}))))};var U3;function z3(){return z3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z3.apply(null,arguments)}const V3=function(e){return u().createElement("svg",z3({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),U3||(U3=u().createElement("g",{fill:"none",stroke:"currentColor"},u().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.406 10.813h-.469A.94.94 0 0 1 8 9.875V7.531a.47.47 0 0 0-.469-.468h-.468"}),u().createElement("path",{d:"M7.766 5.188a.234.234 0 1 1 0-.47m0 .47a.234.234 0 1 0 0-.47"}),u().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 15.031A7.032 7.032 0 1 0 8 .968a7.032 7.032 0 0 0 0 14.063"}))))};var H3;function $3(){return $3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$3.apply(null,arguments)}const G3=function(e){return u().createElement("svg",$3({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),H3||(H3=u().createElement("g",{fill:"none",stroke:"currentColor",strokeWidth:1.5},u().createElement("path",{d:"M12 19.031a.352.352 0 1 1 0-.703m0 .703a.352.352 0 1 0 0-.703"}),u().createElement("path",{strokeLinecap:"round",strokeMiterlimit:10,d:"M12 15.516V8.484"}),u().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.52 2.4a1.693 1.693 0 0 0-3.04 0L1.6 20.492a1.426 1.426 0 0 0 1.28 2.055h18.24a1.425 1.425 0 0 0 1.28-2.055z"}))))},W3={checkDocument:(0,c().jsx)(c().Fragment,{children:(0,c().jsxs)("p",{children:["Cache size for the"," ",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/utilities/internal/checkDocument.ts",children:(0,c().jsx)("code",{children:"checkDocument"})})," ","function that traverses GraphQL documents and throws an error if the document is invalid."]})}),print:(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:["Cache size for the"," ",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/print.ts",children:(0,c().jsx)("code",{children:"print"})})," ","function."]}),(0,c().jsxs)("p",{children:["It is called with transformed ",(0,c().jsx)("code",{children:"DocumentNode"}),"s."]}),(0,c().jsxs)("p",{children:["This method is called to transform a GraphQL query AST parsed by"," ",(0,c().jsx)("code",{children:"gql"})," back into a GraphQL string."]})]}),parser:(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:["Cache size for the"," ",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/react/parser/index.ts",children:(0,c().jsx)("code",{children:"parser"})})," ","function."]}),(0,c().jsxs)("p",{children:["It is called with user-provided ",(0,c().jsx)("code",{children:"DocumentNode"}),"s."]})]}),canonicalStringify:(0,c().jsxs)("p",{children:["Cache used by"," ",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/utilities/common/canonicalStringify.ts",children:(0,c().jsx)("code",{children:"canonicalStringify"})})]}),"PersistedQueryLink.persistedQueryHashes":(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:["A cache inside of",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/link/persisted-queries/index.ts",children:(0,c().jsx)("code",{children:"PersistedQueryLink"})}),"."]}),(0,c().jsxs)("p",{children:["It is called with transformed ",(0,c().jsx)("code",{children:"DocumentNode"}),"s."]})]}),"removeTypenameFromVariables.getVariableDefinitions":(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:["Cache used in",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/link/remove-typename/removeTypenameFromVariables.ts",children:(0,c().jsx)("code",{children:"removeTypenameFromVariables"})}),"."]}),(0,c().jsxs)("p",{children:["This function is called transformed ",(0,c().jsx)("code",{children:"DocumentNode"}),"s."]})]}),"queryManager.getDocumentInfo":(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:["A cache inside of"," ",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/core/QueryManager.ts",children:(0,c().jsx)("code",{children:"QueryManager"})}),"."]}),(0,c().jsxs)("p",{children:["It is called with transformed ",(0,c().jsx)("code",{children:"DocumentNode"}),"s."]})]}),"documentTransform.cache":(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:["Cache size for the cache of",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/DocumentTransform.ts",children:(0,c().jsx)("code",{children:"DocumentTransform"})})," ","instances with the ",(0,c().jsx)("code",{children:"cache"})," option set to ",(0,c().jsx)("code",{children:"true"}),"."]}),(0,c().jsxs)("p",{children:["Can be called with user-defined or already-transformed"," ",(0,c().jsx)("code",{children:"DocumentNode"}),"s."]})]}),"fragmentRegistry.lookup":(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:["A cache inside of",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts",children:(0,c().jsx)("code",{children:"FragmentRegistry"})}),"."]}),(0,c().jsx)("p",{children:"This function is called with fragment names in the form of a string."})]}),"fragmentRegistry.findFragmentSpreads":(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:["Cache size for the ",(0,c().jsx)("code",{children:"findFragmentSpreads"})," method of",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts",children:(0,c().jsx)("code",{children:"FragmentRegistry"})}),"."]}),(0,c().jsxs)("p",{children:["This function is called with transformed ",(0,c().jsx)("code",{children:"DocumentNode"}),"s, as well as recursively with every fragment spread referenced within that, or a fragment referenced by a fragment spread."]})]}),"fragmentRegistry.transform":(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:["A cache inside of",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts",children:(0,c().jsx)("code",{children:"FragmentRegistry"})}),"."]}),(0,c().jsxs)("p",{children:["Can be called with user-defined or already-transformed"," ",(0,c().jsx)("code",{children:"DocumentNode"}),"s."]})]}),"cache.fragmentQueryDocuments":(0,c().jsxs)(c().Fragment,{children:[(0,c().jsxs)("p",{children:["Cache size for the ",(0,c().jsx)("code",{children:"getFragmentDoc"})," method of",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/cache/core/cache.ts",children:(0,c().jsx)("code",{children:"ApolloCache"})}),"."]}),(0,c().jsx)("p",{children:"This function is called with user-provided fragment definitions."})]}),"inMemoryCache.executeSelectionSet":(0,c().jsxs)("p",{children:["Cache size for the ",(0,c().jsx)("code",{children:"executeSelectionSet"})," method on"," ",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/readFromStore.ts",children:(0,c().jsx)("code",{children:"StoreReader"})}),"."]}),"inMemoryCache.executeSubSelectedArray":(0,c().jsxs)("p",{children:["Cache size for the ",(0,c().jsx)("code",{children:"executeSubSelectedArray"})," method on"," ",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/readFromStore.ts",children:(0,c().jsx)("code",{children:"StoreReader"})}),"."]}),"inMemoryCache.maybeBroadcastWatch":(0,c().jsxs)("p",{children:["Cache size for the ",(0,c().jsx)("code",{children:"maybeBroadcastWatch"})," method on"," ",(0,c().jsx)(Y3,{href:"https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/inMemoryCache.ts",children:(0,c().jsx)("code",{children:"InMemoryCache"})}),"."]})};function q3({cacheSize:e}){if(null===e.size||null===e.limit)return null;const t=W3[e.key],n=e.size/e.limit*100;return(0,c().jsxs)("div",{className:"border border-primary dark:border-primary-dark rounded p-4 flex flex-col gap-4 min-w-[300px]",children:[(0,c().jsxs)("h2",{className:"text-heading dark:text-heading-dark text-sm font-code flex gap-2 items-center",children:[(0,c().jsx)("code",{children:e.key}),t&&(0,c().jsx)(gk,{content:(0,c().jsx)("div",{className:"flex flex-col gap-2",children:t}),children:(0,c().jsx)("span",{children:(0,c().jsx)(V3,{className:"text-icon-primary dark:text-icon-primary-dark size-4"})})})]}),(0,c().jsxs)("div",{className:"flex gap-6 items-end",children:[(0,c().jsxs)("div",{className:"flex flex-col gap-3",children:[(0,c().jsx)("span",{className:"uppercase text-secondary dark:text-secondary-dark text-xs font-bold",children:"Size"}),(0,c().jsx)("span",{className:"font-code",children:e.size})]}),(0,c().jsxs)("div",{className:"flex flex-col gap-3",children:[(0,c().jsx)("span",{className:"uppercase text-secondary dark:text-secondary-dark text-xs font-bold",children:"Limit"}),(0,c().jsx)("span",{className:"font-code",children:e.limit})]}),(0,c().jsxs)("div",{className:$p("text-3xl text-right flex-1 font-code flex gap-2 items-center justify-end",{"text-error dark:text-error-dark":n>=90,"text-warning dark:text-warning-dark":n>=70&&n<90}),children:[n>70?(0,c().jsx)(G3,{className:"text-current size-6"}):null,n>0&&n<1?"0.0"===n.toFixed(1)?"<0.1":n.toFixed(1):Math.floor(n),"%"]})]})]})}function Y3({children:e,href:t}){return(0,c().jsxs)(rV,{href:t,className:"inline-flex items-center gap-1",children:[e,(0,c().jsx)(a0,{className:"size-3"})]})}const Q3=tp`
  query MemoryInternalsQuery($clientId: ID!) {
    client(id: $clientId) {
      id
      version
      memoryInternals {
        raw
        caches {
          print {
            ...CacheSizeFields
          }
          ... on ClientV3MemoryInternalsCaches {
            parser {
              ...CacheSizeFields
            }
          }
          canonicalStringify {
            ...CacheSizeFields
          }
          links {
            ... on PersistedQueryLinkCacheSizes {
              persistedQueryHashes {
                ...CacheSizeFields
              }
            }
            ... on RemoveTypenameFromVariablesLinkCacheSizes {
              getVariableDefinitions {
                ...CacheSizeFields
              }
            }
          }
          queryManager {
            getDocumentInfo {
              ...CacheSizeFields
            }
            documentTransforms {
              cache {
                ...CacheSizeFields
              }
            }
          }
          fragmentRegistry {
            lookup {
              ...CacheSizeFields
            }
            findFragmentSpreads {
              ...CacheSizeFields
            }
            transform {
              ...CacheSizeFields
            }
          }
          cache {
            fragmentQueryDocuments {
              ...CacheSizeFields
            }
          }
          addTypenameDocumentTransform {
            cache {
              ...CacheSizeFields
            }
          }
          inMemoryCache {
            maybeBroadcastWatch {
              ...CacheSizeFields
            }
            executeSelectionSet {
              ...CacheSizeFields
            }
            executeSubSelectedArray {
              ...CacheSizeFields
            }
          }
        }
      }
    }
  }

  fragment CacheSizeFields on CacheSize {
    key
    size
    limit
  }
`;function K3({clientId:e}){const[t,n]=(0,u().useState)("chart"),r=wM(),{data:o,networkStatus:i,error:a}=Rp(Q3,{variables:{clientId:e},skip:!e,pollInterval:r?0:500,fetchPolicy:r?"cache-only":"cache-first"});if(a&&!LS(a))throw a;const s=o?.client?.memoryInternals,l=s?.caches,d=o?.client?.version;return i===os.loading?(0,c().jsx)(X3,{children:(0,c().jsx)(DS,{})}):d&&(0,H().lt)(d,"3.9.0")?(0,c().jsx)(X3,{children:(0,c().jsx)(_3,{className:"mt-8",children:(0,c().jsxs)(_3.Content,{children:[(0,c().jsx)(_3.Title,{children:"Memory management not available"}),(0,c().jsxs)(_3.Body,{children:["Memory management is available in Apollo Client"," ",(0,c().jsxs)(rV,{href:"https://github.com/apollographql/apollo-client/releases/tag/v3.9.0",className:"font-medium inline-flex items-center gap-2",children:["3.9.0",(0,c().jsx)(R3,{className:"size-4"})]})," ","or greater. Please upgrade your Apollo Client version to use this feature."]})]})})}):l?(0,c().jsxs)(LM,{className:"p-4 gap-6",children:[(0,c().jsxs)("div",{className:"flex gap-2 justify-between items-start",children:[(0,c().jsxs)("header",{className:"flex flex-col gap-2",children:[(0,c().jsx)("h1",{className:"font-medium text-2xl text-heading dark:text-heading-dark",children:"Memoization cache"}),(0,c().jsxs)("p",{className:"text-secondary dark:text-secondary-dark",children:["Learn how Apollo Client manages memory and how to set custom memoization cache size limits in the"," ",(0,c().jsxs)("a",{href:"https://www.apollographql.com/docs/react/caching/memory-management/",className:"font-medium underline inline-flex items-center gap-2",target:"_blank",rel:"noopener noreferer noreferrer",children:["docs",(0,c().jsx)(R3,{className:"size-4"})]}),"."]})]}),(0,c().jsxs)(Nj,{children:[(0,c().jsx)(gk,{content:"View dashboard",children:(0,c().jsx)(eg,{icon:(0,c().jsx)(B3,{className:"size-4"}),size:"md",variant:"chart"===t?"primary":"secondary",onClick:()=>n("chart")})}),(0,c().jsx)(gk,{content:"View raw",children:(0,c().jsx)(eg,{icon:(0,c().jsx)(M3,{className:"size-4"}),size:"md",variant:"raw"===t?"primary":"secondary",onClick:()=>n("raw")})})]})]}),(0,c().jsx)(LM.Main,{className:"flex flex-col gap-4 overflow-auto",children:"chart"===t?(0,c().jsxs)("div",{className:"grid grid-cols-1 md:flex md:flex-wrap gap-4",children:[(0,c().jsx)(q3,{cacheSize:l.cache.fragmentQueryDocuments}),(0,c().jsx)(q3,{cacheSize:l.fragmentRegistry.findFragmentSpreads}),(0,c().jsx)(q3,{cacheSize:l.fragmentRegistry.lookup}),(0,c().jsx)(q3,{cacheSize:l.fragmentRegistry.transform}),(0,c().jsx)(q3,{cacheSize:l.inMemoryCache.executeSelectionSet}),(0,c().jsx)(q3,{cacheSize:l.inMemoryCache.executeSubSelectedArray}),(0,c().jsx)(q3,{cacheSize:l.inMemoryCache.maybeBroadcastWatch}),(0,c().jsx)(q3,{cacheSize:l.queryManager.getDocumentInfo}),(0,c().jsx)(q3,{cacheSize:l.canonicalStringify}),"parser"in l&&(0,c().jsx)(q3,{cacheSize:l.parser}),(0,c().jsx)(q3,{cacheSize:l.print}),l.queryManager.documentTransforms?.map(({cache:e},t)=>(0,c().jsx)(q3,{cacheSize:e},t)),l.links.map((e,t)=>(0,c().jsx)(q3,{cacheSize:"PersistedQueryLinkCacheSizes"===e.__typename?e.persistedQueryHashes:e.getVariableDefinitions},t))]}):"raw"===t?(0,c().jsx)(mS,{value:s.raw,collapsed:!1}):null})]}):(0,c().jsx)(X3,{children:(0,c().jsx)(_3,{className:"mt-8",children:(0,c().jsxs)(_3.Content,{children:[(0,c().jsx)(_3.Title,{children:"Unable to get memory internals"}),(0,c().jsx)(_3.Body,{children:"Could not get memory internals for the client. This could be a result of running your application in production mode since access to memory internals is only available in development builds."})]})})})}function X3({children:e}){return(0,c().jsxs)(LM,{className:"p-4 gap-4",children:[(0,c().jsxs)("header",{className:"flex flex-col gap-2",children:[(0,c().jsx)("h1",{className:"font-medium text-2xl text-heading dark:text-heading-dark",children:"Memoization cache"}),(0,c().jsxs)("p",{className:"text-secondary dark:text-secondary-dark",children:["Learn how Apollo Client manages memory and how to set custom cache size limits in the"," ",(0,c().jsxs)(rV,{href:"https://www.apollographql.com/docs/react/caching/memory-management/",className:"font-medium underline inline-flex items-center gap-2",children:["docs",(0,c().jsx)(R3,{className:"size-4"})]}),"."]})]}),(0,c().jsx)(LM.Main,{className:"flex flex-col gap-4 overflow-hidden",children:e})]})}const J3=Sp?u().useLayoutEffect:u().useEffect;function Z3(e,...[t={}]){const n=kp(t.client),{skip:r,fetchPolicy:o,errorPolicy:i,shouldResubscribe:a,context:s,extensions:l,ignoreResults:c}=t,d=Tp(()=>t.variables,[t.variables]),p=()=>function(e,t,n,r,o,i,a){const s={query:t,variables:n,fetchPolicy:r,errorPolicy:o,context:i,extensions:a},l={...s,client:e,completed:!1,result:{loading:!0,data:void 0,error:void 0},setResult(e){l.result=e}};return Object.assign(e.subscribe(s),{__:l})}(n,e,d,o,i,s,l);let[f,h]=u().useState(t.skip?null:p);const m=u().useRef(p);J3(()=>{m.current=p}),r?f&&h(f=null):f&&(n===f.__.client&&e===f.__.query&&o===f.__.fetchPolicy&&i===f.__.errorPolicy&&An(d,f.__.variables)||!1===("function"==typeof a?!!a(t):a))||h(f=p());const g=u().useRef(t);u().useEffect(()=>{g.current=t});const y=!r&&!c,v=u().useMemo(()=>({loading:y,error:void 0,data:void 0}),[y]),b=u().useRef(c);J3(()=>{b.current=c});const E=Ip(u().useCallback(e=>{if(!f)return()=>{};let t=!1;const n=f.__.client,r=f.subscribe({next(r){if(t)return;const o={loading:!1,data:r.data,error:r.error};f.__.setResult(o),b.current||e(),o.error?g.current.onError?.(o.error):g.current.onData&&g.current.onData({client:n,data:o})},complete(){f.__.completed=!0,!t&&g.current.onComplete&&g.current.onComplete()}});return()=>{t=!0,setTimeout(()=>r.unsubscribe())}},[f]),()=>!f||r||c?v:f.__.result,()=>v),x=u().useCallback(()=>{Gt(!g.current.skip,33),f?.__.completed?h(m.current()):f?.restart()},[f,h,g,m]);return u().useMemo(()=>({...E,restart:x}),[E,x])}const e4=tp`
  subscription CacheWritesSubscription($clientId: ID!) {
    cacheWritten(clientId: $clientId) {
      id
      ...CacheWritesPanelFragment
    }
  }
`;function t4({client:e}){return Z3(e4,{variables:{clientId:e.id},ignoreResults:!0,onData:({client:{cache:t},data:{data:n}})=>{n&&t.writeFragment({id:t.identify(e),fragment:tp`
          fragment ClientWriteSubscriptionFragment on Client {
            cacheWrites {
              ...CacheWritesPanelFragment
            }
          }
        `,data:{__typename:e.__typename,cacheWrites:[n.cacheWritten]}})}}),null}const n4=tp`
  query AppQuery {
    clients {
      id
      name
    }
  }
`,r4=tp`
  query ClientQuery($id: ID!) {
    client(id: $id) {
      id
      version
      queries {
        total
      }
      mutations {
        total
      }
    }
  }
`,o4=[],i4=()=>{const e=wM(),[t]=nV("autoRecordCacheWrites"),{send:n}=EM(),{data:r,refetch:o}=Rp(n4);AS("registerClient",()=>{o()}),AS("clientTerminated",e=>{Z6(e.clientId)}),AS("pageNavigated",()=>{n({type:"client.setCount",count:0})});const[i,a]=(0,u().useState)(t),[s,l]=(0,u().useState)(!1),[d,p]=(0,u().useState)(r?.clients[0]?.id),f=Mp(zp),h=(0,u().useRef)(null),{data:m,startPolling:g,stopPolling:y}=Rp(r4,d?{errorPolicy:"none",variables:{id:d},pollInterval:e?0:500,fetchPolicy:e?"cache-only":"cache-first"}:Ep),v=m?.client,b=r?.clients??o4,E=b.map(e=>e.id);return AS("panelHidden",()=>y()),AS("panelShown",()=>g(500)),(d&&!E.includes(d)||!d&&E.length>0)&&p(E[0]),(0,c().jsxs)(c().Fragment,{children:[(0,c().jsx)(lV,{open:s,onOpen:l}),(0,c().jsx)(TV,{}),(0,c().jsx)(lM,{}),v&&i&&(0,c().jsx)(t4,{client:v}),(0,c().jsxs)(py,{value:f,onChange:e=>zp(e),className:"flex flex-col h-screen bg-primary dark:bg-primary-dark",children:[(0,c().jsxs)("div",{className:"flex items-center border-b border-b-primary dark:border-b-primary-dark gap-4 px-4",children:[(0,c().jsx)(rV,{href:"https://go.apollo.dev/c/docs",title:"Apollo Client developer documentation",className:"block",children:(0,c().jsx)(hV,{role:"img",width:"24",height:"24",fill:"currentColor",className:"text-icon-primary dark:text-icon-primary-dark"})}),(0,c().jsx)(l3,{orientation:"vertical"}),(0,c().jsxs)(py.List,{className:"-mb-px",children:[(0,c().jsxs)(py.Trigger,{value:Up.Queries,children:["Queries (",v?.queries.total??0,")"]}),(0,c().jsxs)(py.Trigger,{value:Up.Mutations,children:["Mutations (",v?.mutations.total??0,")"]}),(0,c().jsx)(py.Trigger,{value:Up.Cache,children:"Cache"}),(0,c().jsx)(py.Trigger,{value:Up.Memory,children:"Memoization cache"}),(0,c().jsx)(py.Trigger,{value:Up.Explorer,children:"Explorer"})]}),(0,c().jsxs)("div",{className:"ml-auto flex-1 justify-end flex items-center gap-2 h-full",children:[v?.version&&(0,c().jsx)(x0,{version:v.version,children:(0,c().jsx)(rV,{className:"no-underline",href:y0(v.version),children:(0,c().jsxs)(rU,{variant:"info",className:"cursor-pointer",children:["Apollo Client ",(0,c().jsx)("span",{className:"lowercase",children:"v"}),v.version]})})}),b.length>1&&(0,c().jsx)(a3,{size:"sm",className:"w-60 ml-2",value:d,onValueChange:p,children:b.map(e=>(0,c().jsx)(a3.Option,{value:e.id,children:e.name??`Apollo client ${e.id}`},e.id))}),(0,c().jsx)(l3,{orientation:"vertical",className:"mx-2"}),(0,c().jsxs)(Nj,{children:[(0,c().jsx)(gk,{content:"Report an issue",children:(0,c().jsx)(eg,{"aria-label":"Report an issue",variant:"hidden",size:"sm",icon:(0,c().jsx)(Qz,{}),asChild:!0,children:(0,c().jsx)(bV,{})})}),(0,c().jsx)(gk,{content:"Settings",children:(0,c().jsx)(eg,{"aria-label":"Settings",size:"sm",variant:"hidden",onClick:()=>l(!0),icon:(0,c().jsx)(Wz,{})})})]})]})]}),(0,c().jsx)(py.Content,{className:"flex flex-col flex-1",value:Up.Explorer,forceMount:!0,children:(0,c().jsx)(Rj,{clientId:d,isVisible:f===Up.Explorer,explorerRef:h})}),(0,c().jsx)(py.Content,{className:"flex-1 overflow-hidden",value:Up.Queries,children:(0,c().jsx)(a4,{children:(0,c().jsx)(NM,{clientId:d,explorerRef:h})})}),(0,c().jsx)(py.Content,{className:"flex-1 overflow-hidden",value:Up.Mutations,children:(0,c().jsx)(a4,{children:(0,c().jsx)(RM,{clientId:d,explorerRef:h})})}),(0,c().jsx)(py.Content,{className:"flex-1 overflow-hidden",value:Up.Cache,children:(0,c().jsx)(a4,{children:(0,c().jsx)(zz,{clientId:d,isRecordingCacheWrites:i,onToggleRecordCacheWrites:()=>a(e=>!e)})})}),(0,c().jsx)(py.Content,{className:"flex flex-1 overflow-hidden",value:Up.Memory,children:(0,c().jsx)(a4,{children:(0,c().jsx)(K3,{clientId:d})})})]})]})};function a4({children:e}){return(0,c().jsx)(Bp,{fallbackRender:({error:e})=>(0,c().jsx)(_m,{children:(0,c().jsx)(_m.Main,{className:"!overflow-y-auto",children:(0,c().jsxs)(_3,{children:[(0,c().jsxs)(_3.Content,{children:[(0,c().jsx)(_3.Title,{children:"We've run into an unexpected error"}),(0,c().jsxs)(_3.Body,{children:["Please try closing and reopening the browser devtools and refreshing the page. If the issue persists, please"," ",(0,c().jsx)(bV,{children:"open an issue"})," to help us diagnose the error."]})]}),(0,c().jsx)(_3.Details,{error:e})]})})}),children:e})}Symbol("SKIP_RESPONSE");function s4(e){return{timeout:3e4,withTimeout(e){return{...this,timeout:e}},withSignal(e){return{...this,signal:e}},request(t,...n){const{signal:r}=this;return r?.aborted?Promise.reject(c4(r)):new Promise((o,i)=>{const a=wS(),s=setTimeout(()=>{l(),i(new Error("RPC_MESSAGE_TIMEOUT"))},this.timeout),l=e.addListener(e=>{function t(){clearTimeout(s),l()}if(function(e){return vS(e)&&"postMessageError"===e.type}(e)&&e.sourceId===a)return i(ES(e.error)),t();(function(e){return vS(e)&&"rpcResponse"===e.type})(e)&&e.sourceId===a&&("error"in e?i(ES(e.error)):o(e.result),t())});r&&r.addEventListener("abort",()=>{clearTimeout(s),l(),i(c4(r))}),e.postMessage({source:"apollo-client-devtools",type:"rpcRequest",id:a,name:t,params:n})})},stream(t,...n){const r=wS(),{signal:o}=this;let i;function a(){i(),e.postMessage({source:"apollo-client-devtools",type:"rpcTerminateStream",id:wS(),streamId:r})}return new ReadableStream({start:s=>{if(o?.aborted)return s.close();i=e.addListener(e=>{if(l4(e)&&e.streamId===r)return i(),s.close();(function(e){return vS(e)&&"rpcStreamChunk"===e.type})(e)&&e.streamId===r&&s.enqueue(e.value)}),e.postMessage({source:"apollo-client-devtools",type:"rpcStartStream",id:r,name:t,params:n}),o&&o.addEventListener("abort",()=>{a(),s.close()},{once:!0})},cancel:a})}}}function l4(e){return vS(e)&&"rpcTerminateStream"===e.type}function c4(e){const{reason:t}=e;return t instanceof DOMException?t:new DOMException(t,"AbortError")}let u4=null;function d4(e,t,n){var r,o,i,a;const s=[],l=Object.create(null),c=[];let u;const d=[];for(const e of t.definitions)if(e.kind===Pt.SCHEMA_DEFINITION)u=e;else if(e.kind===Pt.SCHEMA_EXTENSION)d.push(e);else if(Jc(e))s.push(e);else if(eu(e)){const t=e.name.value,n=l[t];l[t]=n?n.concat([e]):[e]}else e.kind===Pt.DIRECTIVE_DEFINITION&&c.push(e);if(0===Object.keys(l).length&&0===s.length&&0===c.length&&0===d.length&&null==u)return e;const p=Object.create(null);for(const t of e.types)p[t.name]=y(t);for(const e of s){var f;const t=e.name.value;p[t]=null!==(f=p4[t])&&void 0!==f?f:C(e)}const h={query:e.query&&g(e.query),mutation:e.mutation&&g(e.mutation),subscription:e.subscription&&g(e.subscription),...u&&E([u]),...E(d)};return{description:null===(r=u)||void 0===r||null===(o=r.description)||void 0===o?void 0:o.value,...h,types:Object.values(p),directives:[...e.directives.map(function(e){const t=e.toConfig();return new nc({...t,args:Vs(t.args,b)})}),...c.map(function(e){var t;return new nc({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:k(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!==(i=u)&&void 0!==i?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a};function m(e){return ll(e)?new ml(m(e.ofType)):cl(e)?new gl(m(e.ofType)):g(e)}function g(e){return p[e.name]}function y(e){return Ac(e)||Zl(e)?e:nl(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];let o=n.specifiedByURL;for(const e of r){var i;o=null!==(i=h4(e))&&void 0!==i?i:o}return new kl({...n,specifiedByURL:o,extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):rl(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new Sl({...n,interfaces:()=>[...e.getInterfaces().map(g),...N(r)],fields:()=>({...Vs(n.fields,v),...T(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):ol(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new Rl({...n,interfaces:()=>[...e.getInterfaces().map(g),...N(r)],fields:()=>({...Vs(n.fields,v),...T(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):il(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new Pl({...n,types:()=>[...e.getTypes().map(g),..._(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):al(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[e.name])&&void 0!==t?t:[];return new Ml({...n,values:{...n.values,...A(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):sl(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new Bl({...n,fields:()=>({...Vs(n.fields,e=>({...e,type:m(e.type)})),...S(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):void Cs(!1,"Unexpected type: "+At(e))}function v(e){return{...e,type:m(e.type),args:e.args&&Vs(e.args,b)}}function b(e){return{...e,type:m(e.type)}}function E(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=x(n.type)}return t}function x(e){var t;const n=e.name.value,r=null!==(t=p4[n])&&void 0!==t?t:p[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function w(e){return e.kind===Pt.LIST_TYPE?new ml(w(e.type)):e.kind===Pt.NON_NULL_TYPE?new gl(w(e.type)):x(e)}function T(e){const t=Object.create(null);for(const o of e){var n;const e=null!==(n=o.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:w(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:k(n.arguments),deprecationReason:f4(n),astNode:n}}}return t}function k(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=w(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:Nu(e.defaultValue,t),deprecationReason:f4(e),astNode:e}}return n}function S(e){const t=Object.create(null);for(const o of e){var n;const e=null!==(n=o.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=w(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:Nu(n.defaultValue,e),deprecationReason:f4(n),astNode:n}}}return t}function A(e){const t=Object.create(null);for(const o of e){var n;const e=null!==(n=o.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:f4(n),astNode:n}}}return t}function N(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(x))&&void 0!==t?t:[]})}function _(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(x))&&void 0!==t?t:[]})}function C(e){var t;const n=e.name.value,r=null!==(t=l[n])&&void 0!==t?t:[];switch(e.kind){case Pt.OBJECT_TYPE_DEFINITION:{var o;const t=[e,...r];return new Sl({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>N(t),fields:()=>T(t),astNode:e,extensionASTNodes:r})}case Pt.INTERFACE_TYPE_DEFINITION:{var i;const t=[e,...r];return new Rl({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>N(t),fields:()=>T(t),astNode:e,extensionASTNodes:r})}case Pt.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new Ml({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:A(t),astNode:e,extensionASTNodes:r})}case Pt.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new Pl({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>_(t),astNode:e,extensionASTNodes:r})}case Pt.SCALAR_TYPE_DEFINITION:var c;return new kl({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,specifiedByURL:h4(e),astNode:e,extensionASTNodes:r});case Pt.INPUT_OBJECT_TYPE_DEFINITION:{var u;const t=[e,...r];return new Bl({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,fields:()=>S(t),astNode:e,extensionASTNodes:r,isOneOf:(d=e,Boolean(Ou(sc,d)))})}}var d}}const p4=Us([...Jl,...Sc],e=>e.name);function f4(e){const t=Ou(ic,e);return null==t?void 0:t.reason}function h4(e){const t=Ou(ac,e);return null==t?void 0:t.url}function m4(e,t){null!=e&&e.kind===Pt.DOCUMENT||St(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=Xu(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}(e);const n=d4({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const r=[...n.directives,...lc.filter(e=>n.directives.every(t=>t.name!==e.name))];return new _c({...n,directives:r})}let g4={};function y4(){g4={}}function v4(e){const t=e.name?.value;if(null!=t)switch(b4(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(const n of e.values)b4(n,t,n.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields)for(const n of e.fields)if(b4(n,t,n.name.value),C4(n)&&n.arguments)for(const e of n.arguments)b4(e,t,n.name.value,e.name.value)}}function b4(e,t,n,r){const o=I4(e);if("string"!=typeof o||0===o.length)return;const i=[t];n&&(i.push(n),r&&i.push(r));const a=i.join(".");g4[a]||(g4[a]=[]),g4[a].push(o)}function E4(e){return"\n# "+e.replace(/\n/g,"\n# ")}function x4(e,t){return e?e.filter(e=>e).join(t||""):""}function w4(e){return e?.some(e=>e.includes("\n"))??!1}function T4(e){return(t,n,r,o,i)=>{const a=[],s=o.reduce((e,t)=>(["fields","arguments","values"].includes(t)&&e.name&&a.push(e.name.value),e[t]),i[0]),l=[...a,s?.name?.value].filter(Boolean).join("."),c=[];return t.kind.includes("Definition")&&g4[l]&&c.push(...g4[l]),x4([...c.map(E4),t.description,e(t,n,r,o,i)],"\n")}}function k4(e){return e&&`  ${e.replace(/\n/g,"\n  ")}`}function S4(e){return e&&0!==e.length?`{\n${k4(x4(e,"\n"))}\n}`:""}function A4(e,t,n){return t?e+t+(n||""):""}const N4={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>x4(e.definitions,"\n\n")},OperationDefinition:{leave:e=>{const t=A4("(",x4(e.variableDefinitions,", "),")");return x4([e.operation,x4([e.name,t]),x4(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+A4(" = ",n)+A4(" ",x4(r," "))},SelectionSet:{leave:({selections:e})=>S4(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const i=A4("",e,": ")+t;let a=i+A4("(",x4(n,", "),")");return a.length>80&&(a=i+A4("(\n",k4(x4(n,"\n")),"\n)")),x4([a,x4(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+A4(" ",x4(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>x4(["...",A4("on ",e),x4(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${A4("(",x4(n,", "),")")} on ${t} ${A4("",x4(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t=!1){const n=e.replace(/\\/g,"\\\\").replace(/"""/g,'\\"""');return" "!==e[0]&&"\t"!==e[0]||-1!==e.indexOf("\n")?`"""\n${t?n:k4(n)}\n"""`:`"""${n.replace(/"$/,'"\n')}"""`}(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+x4(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+x4(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+A4("(",x4(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>x4(["schema",x4(e," "),S4(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>x4(["scalar",e,x4(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>x4(["type",e,A4("implements ",x4(t," & ")),x4(n," "),S4(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(w4(t)?A4("(\n",k4(x4(t,"\n")),"\n)"):A4("(",x4(t,", "),")"))+": "+n+A4(" ",x4(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>x4([e+": "+t,A4("= ",n),x4(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>x4(["interface",e,A4("implements ",x4(t," & ")),x4(n," "),S4(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>x4(["union",e,x4(t," "),A4("= ",x4(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>x4(["enum",e,x4(t," "),S4(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>x4([e,x4(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>x4(["input",e,x4(t," "),S4(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(w4(t)?A4("(\n",k4(x4(t,"\n")),"\n)"):A4("(",x4(t,", "),")"))+(n?" repeatable":"")+" on "+x4(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>x4(["extend schema",x4(e," "),S4(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>x4(["extend scalar",e,x4(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>x4(["extend type",e,A4("implements ",x4(t," & ")),x4(n," "),S4(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>x4(["extend interface",e,A4("implements ",x4(t," & ")),x4(n," "),S4(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>x4(["extend union",e,x4(t," "),A4("= ",x4(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>x4(["extend enum",e,x4(t," "),S4(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>x4(["extend input",e,x4(t," "),S4(n)]," ")}},_4=Object.keys(N4).reduce((e,t)=>({...e,[t]:{leave:T4(N4[t].leave)}}),{});function C4(e){return"FieldDefinition"===e.kind}function I4(e){const t=function(e){const t=e.loc;if(!t)return;const n=[];let r=t.startToken.prev;for(;null!=r&&r.kind===Td.COMMENT&&null!=r.next&&null!=r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){const e=String(r.value);n.push(e),r=r.prev}return n.length>0?n.reverse().join("\n"):void 0}(e);if(void 0!==t)return function(e){const t=e.split(/\r\n|[\n\r]/g),n=function(e){let t=null;for(let n=1;n<e.length;n++){const r=e[n],o=O4(r);if(o!==r.length&&((null===t||o<t)&&(t=o,0===t)))break}return null===t?0:t}(t);if(0!==n)for(let e=1;e<t.length;e++)t[e]=t[e].slice(n);for(;t.length>0&&D4(t[0]);)t.shift();for(;t.length>0&&D4(t[t.length-1]);)t.pop();return t.join("\n")}(`\n${t}`)}function O4(e){let t=0;for(;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function D4(e){return O4(e)===e.length}function R4(e){return P4(e,[])}function P4(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(e instanceof Error)return"AggregateError"===e.name?L4(e)+"\n"+M4(e.errors,t):L4(e);if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:P4(t,n)}else if(Array.isArray(e))return M4(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>3)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map(([e,n])=>e+": "+P4(n,t));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function L4(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message};\n ${e.stack}`}function M4(e,t){if(0===e.length)return"[]";if(t.length>3)return"[Array]";const n=e.length,r=[];for(let o=0;o<n;++o)r.push(P4(e[o],t));return"["+r.join(", ")+"]"}function F4(e){if(cl(e)){const t=F4(e.ofType);if(t.kind===Pt.NON_NULL_TYPE)throw new Error(`Invalid type node ${R4(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Pt.NON_NULL_TYPE,type:t}}return ll(e)?{kind:Pt.LIST_TYPE,type:F4(e.ofType)}:{kind:Pt.NAMED_TYPE,name:{kind:Pt.NAME,value:e.name}}}function j4(e){if(null===e)return{kind:Pt.NULL};if(void 0===e)return null;if(Array.isArray(e)){const t=[];for(const n of e){const e=j4(n);null!=e&&t.push(e)}return{kind:Pt.LIST,values:t}}if("object"==typeof e){if(e?.toJSON)return j4(e.toJSON());const t=[];for(const n in e){const r=j4(e[n]);r&&t.push({kind:Pt.OBJECT_FIELD,name:{kind:Pt.NAME,value:n},value:r})}return{kind:Pt.OBJECT,fields:t}}if("boolean"==typeof e)return{kind:Pt.BOOLEAN,value:e};if("bigint"==typeof e)return{kind:Pt.INT,value:String(e)};if("number"==typeof e&&isFinite(e)){const t=String(e);return B4.test(t)?{kind:Pt.INT,value:t}:{kind:Pt.FLOAT,value:t}}if("string"==typeof e)return{kind:Pt.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}const B4=/^-?(?:0|[1-9][0-9]*)$/;function U4(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function z4(e,t){if(cl(t)){const n=z4(e,t.ofType);return n?.kind===Pt.NULL?null:n}if(null===e)return{kind:Pt.NULL};if(void 0===e)return null;if(ll(t)){const n=t.ofType;if(function(e){return null!=e&&"object"==typeof e&&Symbol.iterator in e}(e)){const t=[];for(const r of e){const e=z4(r,n);null!=e&&t.push(e)}return{kind:Pt.LIST,values:t}}return z4(e,n)}if(sl(t)){if(!function(e){return"object"==typeof e&&null!==e}(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=z4(e[r.name],r.type);t&&n.push({kind:Pt.OBJECT_FIELD,name:{kind:Pt.NAME,value:r.name},value:t})}return{kind:Pt.OBJECT,fields:n}}if(pl(t)){if(al(t)){const n=t.getValues();for(const t of n){if(t.value===e){e=t.name;break}if(t.name===e){e=t.name;break}}return{kind:Pt.ENUM,value:e}}if(null==(e=t.serialize(e)))return null;if("ID"===t.name&&"string"==typeof e&&V4.test(e))return{kind:Pt.INT,value:e}}return j4(e)}const V4=/^-?(?:0|[1-9][0-9]*)$/,H4=e=>{if("default"in e){if(!e.default)return;if("value"in e.default)return j4(e.default.value)??void 0;return z4(Xs(e.default.literal),e.type)??void 0}return void 0!==e.defaultValue?z4(e.defaultValue,e.type)??void 0:void 0};function $4(e){return e.astNode?.description?{...e.astNode.description,block:!0}:e.description?{kind:Pt.STRING,value:e.description,block:!0}:void 0}const G4=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});const W4=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions","coordinate"];function q4(e,t){!t?.originalError||t.originalError instanceof Error||!function(e){return null!=e&&"object"==typeof e&&Object.keys(e).every(e=>W4.includes(e))}(t.originalError)||(t.originalError=q4(t.originalError.message,t.originalError));const n=Ls,r=G4.major>=16?new n(e,t):new n(e,t?.nodes,t?.source,t?.positions,t?.path,t?.originalError,t?.extensions);return t?.coordinate&&null==r.coordinate&&Object.defineProperties(r,{coordinate:{value:t.coordinate,enumerable:!0,configurable:!0}}),r}function Y4(e,t,n={}){const r={},o=(t.arguments??[]).reduce((e,t)=>({...e,[t.name.value]:t}),{});for(const i of e.args){const e=o[i.name];if(!e){if("default"in i&&i.default)r[i.name]="value"in i.default?i.default.value:Xs(i.default.literal);else if(void 0!==i.defaultValue)r[i.name]=i.defaultValue;else if(cl(i.type))throw q4(`Argument "${i.name}" of required type "${R4(i.type)}" was not provided.`,{nodes:[t]});continue}const a=e.value;let s=a.kind===Pt.NULL;if(a.kind===Pt.VARIABLE){const e=a.name.value;if(null==n||!U4(n,e)){if(void 0!==i.defaultValue)r[i.name]=i.defaultValue;else if(cl(i.type))throw q4(`Argument "${i.name}" of required type "${R4(i.type)}" was provided the variable "$${e}" which was not provided a runtime value.`,{nodes:[a]});continue}s=null==n[e]}if(s&&cl(i.type))throw q4(`Argument "${i.name}" of non-null type "${R4(i.type)}" must not be null.`,{nodes:[a]});const l=Nu(a,i.type,n);if(void 0===l)throw q4(`Argument "${i.name}" has invalid value ${Br(a)}.`,{nodes:[a]});r[i.name]=l}return r}function Q4(e){const t=new WeakMap;return function(n){const r=t.get(n);if(void 0===r){const r=e(n);return t.set(n,r),r}return r}}function K4(e,t=["directives"]){const n=function(e,t,n=["directives"]){const r={};if(e.extensions){let t=e.extensions;for(const e of n)t=t?.[e];if(null!=t)for(const e in t){const n=t[e],o=e;if(Array.isArray(n))for(const e of n){let t=r[o];t||(t=[],r[o]=t),t.push(e)}else{let e=r[o];e||(e=[],r[o]=e),e.push(n)}}}const o=Q4(e=>JSON.stringify(e)),i=[];e.astNode&&i.push(e.astNode),e.extensionASTNodes&&i.push(...e.extensionASTNodes);for(const e of i)if(e.directives?.length)for(const n of e.directives){const e=n.name.value;let a=r[e];a||(a=[],r[e]=a);const s=t?.getDirective(e);let l={};if(s&&(l=Y4(s,n)),n.arguments)for(const e of n.arguments){const t=e.name.value;if(null==l[t]){const n=s?.args.find(e=>e.name===t);n&&(l[t]=Nu(e.value,n.type))}null==l[t]&&(l[t]=Xs(e.value))}if(i.length>0&&a.length>0){const e=o(l);if(a.some(t=>o(t)===e))continue}a.push(l)}return r}(e,void 0,t);return Object.entries(n).map(([e,t])=>t?.map(t=>({name:e,args:t}))).flat(1/0).filter(Boolean)}function X4(e){let t;return"alias"in e&&(t=e.alias?.value),null==t&&"name"in e&&(t=e.name?.value),null==t&&(t=e.kind),t}function J4(e,t,n){const r=X4(e),o=X4(t);return"function"==typeof n?n(r,o):function(e,t){return String(e)<String(t)?-1:String(e)>String(t)?1:0}(r,o)}function Z4(e){return null!=e}Q4(function(e){const t=e5(e);return new Set([...t].map(e=>e.name))});const e5=Q4(function(e){const t=t5(e);return new Set(t.values())}),t5=Q4(function(e){const t=new Map,n=e.getQueryType();n&&t.set("query",n);const r=e.getMutationType();r&&t.set("mutation",r);const o=e.getSubscriptionType();return o&&t.set("subscription",o),t});function n5(e,t={}){const n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),o=function(e,t){const n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];null!=e.astNode&&r.push(e.astNode);if(null!=e.extensionASTNodes)for(const t of e.extensionASTNodes)r.push(t);for(const e of r)if(e.operationTypes)for(const t of e.operationTypes)n.set(t.operation,t);const o=t5(e);for(const[e,t]of n){const r=o.get(e);if(null!=r){const o=F4(r);null!=t?t.type=o:n.set(e,{kind:Pt.OPERATION_TYPE_DEFINITION,operation:e,type:o})}}const i=[...n.values()].filter(Z4),a=o5(e,e,t);if(!i.length&&!a.length)return null;const s={kind:i.length?Pt.SCHEMA_DEFINITION:Pt.SCHEMA_EXTENSION,operationTypes:i,directives:a},l=$4(e);l&&(s.description=l);return s}(e,n),i=null!=o?[o]:[],a=e.getDirectives();for(const t of a)cc(t)||i.push(r5(t,e,n));for(const t in r){const o=r[t],a=Zl(o),s=Ac(o);if(!a&&!s)if(rl(o))i.push(a5(o,e,n));else if(ol(o))i.push(s5(o,e,n));else if(il(o))i.push(l5(o,e,n));else if(sl(o))i.push(c5(o,e,n));else if(al(o))i.push(u5(o,e,n));else{if(!nl(o))throw new Error(`Unknown type ${o}.`);i.push(d5(o,e,n))}}return{kind:Pt.DOCUMENT,definitions:i}}function r5(e,t,n){return{kind:Pt.DIRECTIVE_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},arguments:e.args?.map(e=>i5(e,t,n)),repeatable:e.isRepeatable,locations:e.locations?.map(e=>({kind:Pt.NAME,value:e}))||[]}}function o5(e,t,n){let r=[];const o=K4(e,n);let i;null!=o&&(i=h5(t,o));let a=null,s=null,l=null;if(null!=i&&(r=i.filter(e=>lc.every(t=>t.name!==e.name.value)),a=i.find(e=>"deprecated"===e.name.value),s=i.find(e=>"specifiedBy"===e.name.value),l=i.find(e=>"oneOf"===e.name.value)),null!=e.deprecationReason&&null==a&&(a=f5("deprecated",{reason:e.deprecationReason},ic)),null!=e.specifiedByUrl||null!=e.specifiedByURL&&null==s){s=f5("specifiedBy",{url:e.specifiedByUrl||e.specifiedByURL})}return e.isOneOf&&null==l&&(l=f5("oneOf")),null!=a&&r.push(a),null!=s&&r.push(s),null!=l&&r.push(l),r}function i5(e,t,n){return{kind:Pt.INPUT_VALUE_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},type:F4(e.type),defaultValue:H4(e),directives:o5(e,t,n)}}function a5(e,t,n){return{kind:Pt.OBJECT_TYPE_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},fields:Object.values(e.getFields()).map(e=>p5(e,t,n)),interfaces:Object.values(e.getInterfaces()).map(e=>F4(e)),directives:o5(e,t,n)}}function s5(e,t,n){const r={kind:Pt.INTERFACE_TYPE_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},fields:Object.values(e.getFields()).map(e=>p5(e,t,n)),directives:o5(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(e=>F4(e))),r}function l5(e,t,n){return{kind:Pt.UNION_TYPE_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},directives:o5(e,t,n),types:e.getTypes().map(e=>F4(e))}}function c5(e,t,n){return{kind:Pt.INPUT_OBJECT_TYPE_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},fields:Object.values(e.getFields()).map(e=>function(e,t,n){return{kind:Pt.INPUT_VALUE_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},type:F4(e.type),directives:o5(e,t,n),defaultValue:H4(e)}}(e,t,n)),directives:o5(e,t,n)}}function u5(e,t,n){return{kind:Pt.ENUM_TYPE_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},values:Object.values(e.getValues()).map(e=>function(e,t,n){return{kind:Pt.ENUM_VALUE_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},directives:o5(e,t,n)}}(e,t,n)),directives:o5(e,t,n)}}function d5(e,t,n){const r=h5(t,K4(e,n)),o=e.specifiedByUrl||e.specifiedByURL;if(o&&!r.some(e=>"specifiedBy"===e.name.value)){const e={url:o};r.push(f5("specifiedBy",e))}return{kind:Pt.SCALAR_TYPE_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},directives:r}}function p5(e,t,n){return{kind:Pt.FIELD_DEFINITION,description:$4(e),name:{kind:Pt.NAME,value:e.name},arguments:e.args.map(e=>i5(e,t,n)),type:F4(e.type),directives:o5(e,t,n)}}function f5(e,t,n){const r=[];for(const e in t){const o=t[e];let i;if(null!=n){const t=n.args.find(t=>t.name===e);t&&(i=z4(o,t.type))}null==i&&(i=j4(o)),null!=i&&r.push({kind:Pt.ARGUMENT,name:{kind:Pt.NAME,value:e},value:i})}return{kind:Pt.DIRECTIVE,name:{kind:Pt.NAME,value:e},arguments:r}}function h5(e,t){const n=[];for(const{name:r,args:o}of t){const t=e?.getDirective(r);n.push(f5(r,o,t))}return n}function m5(e){return e.as??e.url.name}function g5(e,t){if(e.url.name&&t===`@${e.url.name}`)return function(e){const t=m5(e);return t&&`@${t}`}(e).substring(1);const n=e.imports.find(e=>e.name===t),r=n?.as??n?.name??function(e,t){if(e?.length)return t.startsWith("@")?`@${e}__${t.substring(1)}`:`${e}__${t}`;return t}(m5(e),t);return r.startsWith("@")?r.substring(1):r}function y5(e){let t,n,r=[];for(const o of e)switch(o.name.value){case"url":o.value.kind===Pt.STRING&&(t=x5(o.value.value));break;case"import":r=b5(o.value);break;case"as":o.value.kind===Pt.STRING&&(n=o.value.value??void 0)}if(void 0!==t)return{url:t,as:n,imports:r}}function v5(e){const t=e.find(({name:e,value:t})=>"feature"===e.value&&t.kind===Pt.STRING);if(t){return{url:x5(t.value.value),imports:[]}}}function b5(e){if(e.kind===Pt.LIST){return e.values.map(e=>{let t;if(e.kind===Pt.STRING)t={name:e.value};else if(e.kind===Pt.OBJECT){let n,r="";for(const t of e.fields)"name"===t.name.value?t.value.kind===Pt.STRING&&(r=t.value.value):"as"===t.name.value&&t.value.kind===Pt.STRING&&(n=t.value.value);t={name:r,as:n}}return t}).filter(e=>void 0!==e)}return[]}const E5=/v(\d{1,3})\.(\d{1,4})/i;function x5(e){const t=new URL(e),n=t.pathname.split("/").filter(Boolean),r=n[n.length-1];if(r){if(E5.test(r)){const e=n[n.length-2];return{identity:t.origin+(e?`/${n.slice(0,n.length-1).join("/")}`:""),name:e??null,version:r}}return{identity:`${t.origin}/${n.join("/")}`,name:r,version:null}}return{identity:t.origin,name:null,version:null}}function w5(e,t,n){return!!(t?.[e.name.value]?.repeatable??n?.has(e.name.value))}function T5(e,t){return t.some(({value:t})=>t===e.value)}function k5(e,t){const n=[];for(const r of[...t,...e]){const e=n.findIndex(e=>e.name.value===r.name.value);if(-1===e)n.push(r);else{const t=n[e];if("ListValue"===t.value.kind){const e=t.value.values,n=r.value.values;t.value={...t.value,values:O5(e,n,(e,t)=>{const n=e.value;return!n||!t.some(e=>e.value===n)})}}else t.value=r.value}}return n}const S5=(e,t)=>{if(e.kind===t.kind)switch(e.kind){case Pt.LIST:return e.values.length===t.values.length&&e.values.every(e=>t.values.find(t=>S5(e,t)));case Pt.VARIABLE:case Pt.NULL:return!0;case Pt.OBJECT:return e.fields.length===t.fields.length&&e.fields.every(e=>t.fields.find(t=>e.name.value===t.name.value&&S5(e.value,t.value)));default:return e.value===t.value}return!1},A5=e=>"link"===e.name.value,N5=e=>{const t=A5(e)?e.arguments?.find(e=>"url"===e.name.value)?.value:void 0;return"StringValue"===t?.kind?t.value:void 0},_5=(e,t)=>!!(e.name.value===t.name.value&&(e.arguments===t.arguments||e.arguments?.length===t.arguments?.length&&e.arguments?.every(e=>t.arguments?.find(t=>((e,t)=>e.name.value===t.name.value&&e.value.kind===t.value.kind&&S5(e.value,t.value))(e,t)))));function C5(e=[],t=[],n,r){const o=n&&n.reverseDirectives,i=o?e:t,a=o?t:e,s=[];for(const e of[...i,...a])if(w5(e,r,n?.repeatableLinkImports)){s.find(t=>_5(e,t))||s.push(e)}else{const t=s.findIndex(t=>t.name.value===e.name.value);if(-1===t)s.push(e);else{if(A5(e)&&A5(s[t])){const n=N5(e),r=N5(s[t]);if(n&&r&&n!==r){s.push(e);continue}}const n=k5(e.arguments??[],s[t].arguments??[]);s[t]={...s[t],arguments:0===n.length?void 0:n}}}return s}function I5(e,t){return t?{...e,arguments:O5(t.arguments||[],e.arguments||[],(e,t)=>!T5(e.name,t.map(e=>e.name))),locations:[...t.locations,...e.locations.filter(e=>!T5(e,t.locations))]}:e}function O5(e,t,n){return e.concat(t.filter(t=>n(t,e)))}function D5(e,t,n,r){if(n?.consistentEnumMerge){const n=[];e&&n.push(...e),e=t,t=n}const o=new Map;if(e)for(const t of e)o.set(t.name.value,t);if(t)for(const e of t){const t=e.name.value;if(o.has(t)){const n=o.get(t);n.description=e.description||n.description,n.directives=C5(e.directives,n.directives,r)}else o.set(t,e)}const i=[...o.values()];return n&&n.sort&&i.sort(J4),i}function R5(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n?.convertExtensions||"EnumTypeDefinition"===e.kind||"EnumTypeDefinition"===t.kind?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:C5(e.directives,t.directives,n,r),values:D5(e.values,t.values,n)}:n?.convertExtensions?{...e,kind:Pt.ENUM_TYPE_DEFINITION}:e}function P5(e,t,n){const r=function(e,t){return e.reduce((e,n)=>{const r=e.findIndex(e=>e.name.value===n.name.value);return-1===r?e.concat([n]):(t?.reverseArguments||(e[r]=n),e)},[])}([...t,...e].filter(Z4),n);return n&&n.sort&&r.sort(J4),r}function L5(e){let t=e;for(;t.kind===Pt.LIST_TYPE||"NonNullType"===t.kind;)t=t.type;return t}function M5(e){return e.kind!==Pt.NAMED_TYPE}function F5(e){return e.kind===Pt.LIST_TYPE}function j5(e){return e.kind===Pt.NON_NULL_TYPE}function B5(e){return F5(e)?`[${B5(e.type)}]`:j5(e)?`${B5(e.type)}!`:e.name.value}var U5;function z5(e,t){return null==e&&null==t?U5.A_EQUALS_B:null==e?U5.A_SMALLER_THAN_B:null==t?U5.A_GREATER_THAN_B:e<t?U5.A_SMALLER_THAN_B:e>t?U5.A_GREATER_THAN_B:U5.A_EQUALS_B}function V5(e,t){const n=e.findIndex(e=>e.name.value===t.name.value);return[n>-1?e[n]:null,n]}function H5(e,t,n,r,o){const i=[];if(null!=n&&i.push(...n),null!=t)for(const n of t){const[t,a]=V5(i,n);if(t&&!r?.ignoreFieldConflicts){const s=r?.onFieldTypeConflict&&r.onFieldTypeConflict(t,n,e,r?.throwOnConflict)||$5(e,t,n,r?.throwOnConflict);s.arguments=P5(n.arguments||[],t.arguments||[],r),s.directives=C5(n.directives,t.directives,r,o),s.description=n.description||t.description,i[a]=s}else i.push(n)}if(r&&r.sort&&i.sort(J4),r&&r.exclusions){const t=r.exclusions;return i.filter(n=>!t.includes(`${e.name.value}.${n.name.value}`))}return i}function $5(e,t,n,r=!1){const o=B5(t.type),i=B5(n.type);if(o!==i){const a=L5(t.type),s=L5(n.type);if(a.name.value!==s.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${a.name.value}", but you tried to override with "${s.name.value}"`);if(!G5(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${o}' to '${i}'`)}return j5(n.type)&&!j5(t.type)&&(t.type=n.type),t}function G5(e,t,n=!1){if(!M5(e)&&!M5(t))return e.toString()===t.toString();if(j5(t)){return G5(j5(e)?e.type:e,t.type)}return j5(e)?G5(t,e,n):!!F5(e)&&(F5(t)&&G5(e.type,t.type)||j5(t)&&G5(e,t.type))}function W5(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n?.convertExtensions||"InputObjectTypeDefinition"===e.kind||"InputObjectTypeDefinition"===t.kind?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:H5(e,e.fields,t.fields,n),directives:C5(e.directives,t.directives,n,r)}}catch(t){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${t.message}`)}return n?.convertExtensions?{...e,kind:Pt.INPUT_OBJECT_TYPE_DEFINITION}:e}function q5(e=[],t=[],n={}){const r=[...t,...e.filter(e=>{return n=e,!t.find(e=>e.name.value===n.name.value);var n})];return n&&n.sort&&r.sort(J4),r}function Y5(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n?.convertExtensions||"InterfaceTypeDefinition"===e.kind||"InterfaceTypeDefinition"===t.kind?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:H5(e,e.fields,t.fields,n,r),directives:C5(e.directives,t.directives,n,r),interfaces:e.interfaces?q5(e.interfaces,t.interfaces,n):void 0}}catch(t){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${t.message}`)}return n?.convertExtensions?{...e,kind:Pt.INTERFACE_TYPE_DEFINITION}:e}function Q5(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n?.convertExtensions||"ScalarTypeDefinition"===e.kind||"ScalarTypeDefinition"===t.kind?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:C5(e.directives,t.directives,n,r)}:n?.convertExtensions?{...e,kind:Pt.SCALAR_TYPE_DEFINITION}:e}!function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"}(U5||(U5={}));const K5={query:"Query",mutation:"Mutation",subscription:"Subscription"};function X5(e=[],t=[]){const n=[];for(const r in K5){const o=e.find(e=>e.operation===r)||t.find(e=>e.operation===r);o&&n.push(o)}return n}function J5(e,t,n,r){return t?{kind:e.kind===Pt.SCHEMA_DEFINITION||t.kind===Pt.SCHEMA_DEFINITION?Pt.SCHEMA_DEFINITION:Pt.SCHEMA_EXTENSION,description:e.description||t.description,directives:C5(e.directives,t.directives,n,r),operationTypes:X5(e.operationTypes,t.operationTypes)}:n?.convertExtensions?{...e,kind:Pt.SCHEMA_DEFINITION}:e}function Z5(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n?.convertExtensions||"ObjectTypeDefinition"===e.kind||"ObjectTypeDefinition"===t.kind?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:H5(e,e.fields,t.fields,n,r),directives:C5(e.directives,t.directives,n,r),interfaces:q5(e.interfaces,t.interfaces,n)}}catch(t){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${t.message}`)}return n?.convertExtensions?{...e,kind:Pt.OBJECT_TYPE_DEFINITION}:e}function e6(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:C5(e.directives,t.directives,n,r),kind:n?.convertExtensions||"UnionTypeDefinition"===e.kind||"UnionTypeDefinition"===t.kind?Pt.UNION_TYPE_DEFINITION:Pt.UNION_TYPE_EXTENSION,loc:e.loc,types:q5(e.types,t.types,n)}:n?.convertExtensions?{...e,kind:Pt.UNION_TYPE_DEFINITION}:e}const t6="SCHEMA_DEF_SYMBOL";function n6(e){return"name"in e}function r6(e,t,n={}){const r=n;for(const o of e)if(n6(o)){const e=o.name?.value;if(t?.commentDescriptions&&v4(o),null==e)continue;if(t?.exclusions?.includes(e+".*")||t?.exclusions?.includes(e))delete r[e];else switch(o.kind){case Pt.OBJECT_TYPE_DEFINITION:case Pt.OBJECT_TYPE_EXTENSION:r[e]=Z5(o,r[e],t,n);break;case Pt.ENUM_TYPE_DEFINITION:case Pt.ENUM_TYPE_EXTENSION:r[e]=R5(o,r[e],t,n);break;case Pt.UNION_TYPE_DEFINITION:case Pt.UNION_TYPE_EXTENSION:r[e]=e6(o,r[e],t,n);break;case Pt.SCALAR_TYPE_DEFINITION:case Pt.SCALAR_TYPE_EXTENSION:r[e]=Q5(o,r[e],t,n);break;case Pt.INPUT_OBJECT_TYPE_DEFINITION:case Pt.INPUT_OBJECT_TYPE_EXTENSION:r[e]=W5(o,r[e],t,n);break;case Pt.INTERFACE_TYPE_DEFINITION:case Pt.INTERFACE_TYPE_EXTENSION:r[e]=Y5(o,r[e],t,n);break;case Pt.DIRECTIVE_DEFINITION:if(r[e]){e in{}&&(o6(r[e])||(r[e]=void 0))}r[e]=I5(o,r[e])}}else o.kind!==Pt.SCHEMA_DEFINITION&&o.kind!==Pt.SCHEMA_EXTENSION||(r[t6]=J5(o,r[t6],t,n));return r}function o6(e){return null!=e&&"object"==typeof e&&"kind"in e&&"string"==typeof e.kind}function i6(e,t){y4();const n={kind:Pt.DOCUMENT,definitions:s6(e,{useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1,...t})};let r;return r=t?.commentDescriptions?Mt(n,_4):n,y4(),r}function a6(e,t,n=[],r=[],o=new Set,i=new Set){const a=e=>{i.add(e)};if(e&&!o.has(e))if(o.add(e),"function"==typeof e)a6(e(),t,n,r,o,i);else if(Array.isArray(e))for(const a of e)a6(a,t,n,r,o,i);else if(Nc(e)){a6(n5(e,t).definitions,t,n,r,o,i)}else if("string"==typeof e||function(e){return e instanceof Hd}(e)){a6($d(e,t).definitions,t,n,r,o,i)}else if("object"==typeof e&&(Kc(l=e)||Xc(l)||Zc(l))){const t=function(e){let t=[];for(const n of e.definitions)if(n.kind===Pt.SCHEMA_EXTENSION||n.kind===Pt.SCHEMA_DEFINITION){const e=n.directives?.filter(e=>"link"===e.name.value),r=e?.map(e=>y5(e.arguments??[])).filter(e=>void 0!==e)??[];t=t.concat(r);const o=n.directives?.filter(({name:e})=>"core"===e.value),i=o?.map(e=>v5(e.arguments??[])).filter(e=>void 0!==e);i&&(t=t.concat(...i))}return t}({definitions:[e],kind:Pt.DOCUMENT}),o="https://specs.apollo.dev/federation",i="https://specs.apollo.dev/link",s=t.find(e=>e.url.identity===o);s&&(a(g5(s,"@composeDirective")),a(g5(s,"@key")));const l=t.find(e=>e.url.identity===i);l&&a(g5(l,"@link")),e.kind===Pt.DIRECTIVE_DEFINITION?n.push(e):r.push(e)}else{if(!(s=e)||"object"!=typeof s||!("kind"in s)||s.kind!==Pt.DOCUMENT)throw new Error("typeDefs must contain only strings, documents, schemas, or functions, got "+typeof e);a6(e.definitions,t,n,r,o,i)}var s,l;return{allDirectives:n,allNodes:r,repeatableLinkImports:i}}function s6(e,t){y4();const{allDirectives:n,allNodes:r,repeatableLinkImports:o}=a6(e,t),i=r6(n,t);t.repeatableLinkImports=o;const a=r6(r,t,i);if(t?.useSchemaDefinition){const e=a[t6]||{kind:Pt.SCHEMA_DEFINITION,operationTypes:[]},t=e.operationTypes||[];for(const e in K5){if(!t.find(t=>t.operation===e)){const n=a[K5[e]];null!=n&&null!=n.name&&t.push({kind:Pt.OPERATION_TYPE_DEFINITION,type:{kind:Pt.NAMED_TYPE,name:n.name},operation:e})}}null!=e?.operationTypes?.length&&e.operationTypes.length>0&&(a[t6]=e)}t?.forceSchemaDefinition&&!a[t6]?.operationTypes?.length&&(a[t6]={kind:Pt.SCHEMA_DEFINITION,operationTypes:[{kind:Pt.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Pt.NAMED_TYPE,name:{kind:Pt.NAME,value:"Query"}}}]});const s=Object.values(a);if(t?.sort){const e="function"==typeof t.sort?t.sort:z5;s.sort((t,n)=>e(t.name?.value,n.name?.value))}return s}function l6(e,t=!1,n=!1,r=!1,o=!1){if(0===e.length)return;if(1===e.length)return e[0];let i,a=!0;const s=e.every(e=>{if(Array.isArray(e)){if(void 0===i)return i=e.length,!0;if(i===e.length)return!0}else a=!1;return!1});if(r&&s)return new Array(i).fill(null).map((i,a)=>l6(e.map(e=>e[a]),t,n,r,o));if(a)return e.flat(1);let l,c;t&&(c=e.find(e=>c6(e)),c&&(null==l&&(l={}),Object.setPrototypeOf(l,Object.create(Object.getPrototypeOf(c)))));for(const i of e)if(void 0!==i)if(c6(i)){if(null==l&&(l={}),c){const e=Object.getPrototypeOf(l),t=Object.getPrototypeOf(i);if(t)for(const n of Object.getOwnPropertyNames(t)){const r=Object.getOwnPropertyDescriptor(t,n);Z4(r)&&Object.defineProperty(e,n,r)}}for(const e in i)e in l&&void 0!==i[e]?l[e]=l6([l[e],i[e]],t,n,r,o):l[e]=i[e];if(o&&null!=l)for(const e of Object.getOwnPropertySymbols(i)){const t=Object.getOwnPropertyDescriptor(i,e);t.enumerable||Object.defineProperty(l,e,t)}}else l=Array.isArray(i)&&Array.isArray(l)?l6([l,i],t,n,r):i;return l}function c6(e){return e&&"object"==typeof e&&!Array.isArray(e)}function u6(e,t){if(!e||Array.isArray(e)&&0===e.length)return{};if(!Array.isArray(e))return e;if(1===e.length)return e[0]||{};const n=new Array;for(let t of e)Array.isArray(t)&&(t=u6(t)),"object"==typeof t&&t&&n.push(t);const r=l6(n,!0);if(t?.exclusions)for(const e of t.exclusions){const[t,n]=e.split(".");["__proto__","constructor","prototype"].includes(t)||["__proto__","constructor","prototype"].includes(n)||(n&&"*"!==n?r[t]&&delete r[t][n]:delete r[t])}return r}function d6(e,t){e&&t&&t!==e.extensions&&(e.extensions?e.extensions=l6([e.extensions,t],!1,!0):e.extensions=t)}function p6(e,t){d6(e,t.schemaExtensions);for(const[n,r]of Object.entries(t.types||{})){const t=e.getType(n);if(t)if(d6(t,r.extensions),"object"===r.type||"interface"===r.type)for(const[e,n]of Object.entries(r.fields)){const r=t.getFields()[e];if(r){d6(r,n.extensions);for(const[e,t]of Object.entries(n.arguments))d6(r.args.find(t=>t.name===e),t)}}else if("input"===r.type)for(const[e,n]of Object.entries(r.fields)){d6(t.getFields()[e],n.extensions)}else if("enum"===r.type)for(const[e,n]of Object.entries(r.values)){d6(t.getValue(e),n)}}return e}const f6=e=>Array.isArray(e)?e:e?[e]:[];function h6(e,t){const n=e.getTypeMap();for(const e in n){const r=n[e];if(!xl(r).name.startsWith("__"))if(rl(r)){const e=r.getFields();for(const n in e){const r=e[n];for(const e of r.args)e.defaultValue=t(e.type,e.defaultValue)}}else if(sl(r)){const e=r.getFields();for(const n in e){const r=e[n];r.defaultValue=t(r.type,r.defaultValue)}}}}function m6(e,t,n=null,r=null){if(null==t)return t;const o=bl(e);if(pl(o))return null!=n?n(o,t):t;if(ll(o))return f6(t).map(e=>m6(o.ofType,e,n,r));if(sl(o)){const e=o.getFields(),i={};for(const o in t){const a=e[o];null!=a&&(i[o]=m6(a.type,t[o],n,r))}return null!=r?r(o,i):i}}function g6(e,t){return m6(e,t,(e,t)=>{try{return e.serialize(t)}catch{return t}})}function y6(e,t){return m6(e,t,(e,t)=>{try{return e.parseValue(t)}catch{return t}})}function v6(e){return function(e,t){const n=Object.create(null);for(const t in e){const r=e[t];if(null==r||t.startsWith("__"))continue;const o=r.name;o.startsWith("__")||(null==n[o]?n[o]=r:console.warn(`Duplicate schema type name ${o} found; keeping the existing one found in the schema`))}for(const t in n){const r=n[t];e[t]=r}for(const e of t)e.args=e.args.filter(e=>(e.type=l(e.type),null!==e.type));for(const t in e){const o=e[t];!t.startsWith("__")&&t in n&&null!=o&&r(o)}for(const t in e)t.startsWith("__")||t in n||delete e[t];function r(e){if(rl(e))return o(e),void i(e);if(ol(e))return o(e),void("getInterfaces"in e&&i(e));if(il(e))s(e);else if(sl(e))a(e);else if(!pl(e))throw new Error(`Unexpected schema type: ${e}`)}function o(e){const t=e.getFields();for(const[e,n]of Object.entries(t))n.args.map(e=>(e.type=l(e.type),null===e.type?null:e)).filter(Boolean),n.type=l(n.type),null===n.type&&delete t[e]}function i(e){if("getInterfaces"in e){const t=e.getInterfaces();t.push(...t.splice(0).map(e=>l(e)).filter(Boolean))}}function a(e){const t=e.getFields();for(const[e,n]of Object.entries(t))n.type=l(n.type),null===n.type&&delete t[e]}function s(e){const t=e.getTypes();t.push(...t.splice(0).map(e=>l(e)).filter(Boolean))}function l(t){if(ll(t)){const e=l(t.ofType);return null!=e?new ml(e):null}if(cl(t)){const e=l(t.ofType);return null!=e?new gl(e):null}if(El(t)){const n=e[t.name];if(n&&t!==n)return n}return t}}(e.getTypeMap(),e.getDirectives()),e}function b6(e,t){const n=e.getTypeMap();for(const e in n){const r=n[e];if(!xl(r).name.startsWith("__")&&rl(r)){const n=r.getFields();for(const r in n){t(n[r],e,r)}}}}function E6(e,t){if(t){const n=e[t.name];if(rl(n))return n}}var x6;function w6(e,t){const n=Object.create(null);for(const t in e)n[t]=e[t];const r=Object.create(null);for(const e in n){const t=n[e];if(null==t||e.startsWith("__"))continue;const o=t.name;o.startsWith("__")||(null==r[o]?r[o]=t:console.warn(`Duplicate schema type name ${o} found; keeping the existing one found in the schema`))}for(const e in r)r[e]=a(r[e]);const o=t.map(e=>function(e){if(cc(e))return e;const t=e.toConfig();return t.args=i(t.args),new nc(t)}(e));return{typeMap:r,directives:o};function i(e){const t={};for(const n in e){const r=e[n],o=c(r.type);null!=o&&(r.type=o,t[n]=r)}return t}function a(e){if(rl(e)){const t=e.toConfig(),n={...t,fields:()=>s(t.fields),interfaces:()=>l(t.interfaces)};return new Sl(n)}if(ol(e)){const t=e.toConfig(),n={...t,fields:()=>s(t.fields)};return"interfaces"in n&&(n.interfaces=()=>l(t.interfaces)),new Rl(n)}if(il(e)){const t=e.toConfig(),n={...t,types:()=>l(t.types)};return new Pl(n)}if(sl(e)){const t=e.toConfig(),n={...t,fields:()=>function(e){const t={};for(const n in e){const r=e[n],o=c(r.type);null!=o&&(r.type=o,t[n]=r)}return t}(t.fields)};return new Bl(n)}if(al(e)){const t=e.toConfig();return new Ml(t)}if(nl(e)){if(Zl(e))return e;const t=e.toConfig();return new kl(t)}throw new Error(`Unexpected schema type: ${e}`)}function s(e){const t={};for(const n in e){const r=e[n],o=c(r.type);null!=o&&r.args&&(r.type=o,r.args=i(r.args),t[n]=r)}return t}function l(e){const t=[];for(const n of e){const e=c(n);null!=e&&t.push(e)}return t}function c(e){if(ll(e)){const t=c(e.ofType);return null!=t?new ml(t):null}if(cl(e)){const t=c(e.ofType);return null!=t?new gl(t):null}if(El(e)){let t=n[e.name];return void 0===t&&(t=function(e){if("getFields"in e){const t=e.getFields();for(const e in t)return"_fake"===t[e].name}return!1}(e)?function(e){switch(e.name){case ql.name:return ql;case Yl.name:return Yl;case Ql.name:return Ql;case Kl.name:return Kl;case Xl.name:return Xl;default:return e}}(e):a(e),r[t.name]=n[e.name]=t),null!=t?r[t.name]:null}return null}}function T6(e,t={}){const n=C6(_6(S6(A6(function(e,t,n){const r=function(e){const t=e[x6.ENUM_VALUE];return null!=t?t:null}(n);if(!r)return e;return S6(e,t,{[x6.ENUM_TYPE]:e=>{const n=e.toConfig(),o=n.values,i={};for(const n in o){const a=o[n],s=r(a,e.name,t,n);if(void 0===s)i[n]=a;else if(Array.isArray(s)){const[e,t]=s;i[e]=void 0===t?a:t}else null!==s&&(i[n]=s)}return R6(new Ml({...n,values:i}))}},e=>al(e))}(S6(A6(e.getTypeMap(),e,g6),e,t,e=>pl(e)),e,t),e,y6),e,t,e=>!pl(e)),e,t),e,t),r=function(e,t,n){const r=function(e){const t=e[x6.DIRECTIVE];return null!=t?t:null}(n);if(null==r)return e.slice();const o=[];for(const n of e){const e=r(n,t);void 0===e?o.push(n):null!==e&&o.push(e)}return o}(e.getDirectives(),e,t),{typeMap:o,directives:i}=w6(n,r);return new _c({...e.toConfig(),query:E6(o,E6(n,e.getQueryType())),mutation:E6(o,E6(n,e.getMutationType())),subscription:E6(o,E6(n,e.getSubscriptionType())),types:Object.values(o),directives:i})}!function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"}(x6||(x6={}));const k6=["String","ID","Int","Float","Boolean"];function S6(e,t,n,r=()=>!0){const o={};for(const i in e)if(!i.startsWith("__")&&!k6.includes(i)){const a=e[i];if(null==a||!r(a)){o[i]=a;continue}const s=I6(t,n,i);if(null==s){o[i]=a;continue}const l=s(a,t);if(void 0===l){o[i]=a;continue}o[i]=l}return o}function A6(e,t,n){const r=C6(e,t,{[x6.ARGUMENT]:t=>{if(void 0===t.defaultValue)return t;const r=N6(e,t.type);return null!=r?{...t,defaultValue:n(r,t.defaultValue)}:void 0}});return _6(r,t,{[x6.INPUT_OBJECT_FIELD]:e=>{if(void 0===e.defaultValue)return e;const t=N6(r,e.type);return null!=t?{...e,defaultValue:n(t,e.defaultValue)}:void 0}})}function N6(e,t){if(ll(t)){const n=N6(e,t.ofType);return null!=n?new ml(n):null}if(cl(t)){const n=N6(e,t.ofType);return null!=n?new gl(n):null}if(El(t)){const n=e[t.name];return null!=n?n:null}return null}function _6(e,t,n){const r={};for(const o in e)if(!o.startsWith("__")){const i=e[o];if(!rl(i)&&!ol(i)&&!sl(i)){r[o]=i;continue}const a=O6(t,n,o);if(null==a){r[o]=i;continue}const s=i.toConfig(),l=s.fields,c={};for(const e in l){const n=l[e],r=a(n,e,o,t);if(void 0===r)c[e]=n;else if(Array.isArray(r)){const[e,t]=r;null!=t.astNode&&(t.astNode={...t.astNode,name:{...t.astNode.name,value:e}}),c[e]=void 0===t?n:t}else null!==r&&(c[e]=r)}rl(i)?r[o]=R6(new Sl({...s,fields:c})):ol(i)?r[o]=R6(new Rl({...s,fields:c})):r[o]=R6(new Bl({...s,fields:c}))}return r}function C6(e,t,n){const r={};for(const o in e)if(!o.startsWith("__")){const i=e[o];if(!rl(i)&&!ol(i)){r[o]=i;continue}const a=D6(n);if(null==a){r[o]=i;continue}const s=i.toConfig(),l=s.fields,c={};for(const e in l){const n=l[e],r=n.args;if(null==r){c[e]=n;continue}const i=Object.keys(r);if(!i.length){c[e]=n;continue}const s={};for(const n of i){const i=r[n],l=a(i,e,o,t);if(void 0===l)s[n]=i;else if(Array.isArray(l)){const[e,t]=l;s[e]=t}else null!==l&&(s[n]=l)}c[e]={...n,args:s}}rl(i)?r[o]=new Sl({...s,fields:c}):ol(i)?r[o]=new Rl({...s,fields:c}):r[o]=new Bl({...s,fields:c})}return r}function I6(e,t,n){const r=function(e,t){const n=e.getType(t),r=[x6.TYPE];return rl(n)?(r.push(x6.COMPOSITE_TYPE,x6.OBJECT_TYPE),t===e.getQueryType()?.name?r.push(x6.ROOT_OBJECT,x6.QUERY):t===e.getMutationType()?.name?r.push(x6.ROOT_OBJECT,x6.MUTATION):t===e.getSubscriptionType()?.name&&r.push(x6.ROOT_OBJECT,x6.SUBSCRIPTION)):sl(n)?r.push(x6.INPUT_OBJECT_TYPE):ol(n)?r.push(x6.COMPOSITE_TYPE,x6.ABSTRACT_TYPE,x6.INTERFACE_TYPE):il(n)?r.push(x6.COMPOSITE_TYPE,x6.ABSTRACT_TYPE,x6.UNION_TYPE):al(n)?r.push(x6.ENUM_TYPE):nl(n)&&r.push(x6.SCALAR_TYPE),r}(e,n);let o;const i=[...r];for(;!o&&i.length>0;){o=t[i.pop()]}return null!=o?o:null}function O6(e,t,n){const r=function(e,t){const n=e.getType(t),r=[x6.FIELD];return rl(n)?(r.push(x6.COMPOSITE_FIELD,x6.OBJECT_FIELD),t===e.getQueryType()?.name?r.push(x6.ROOT_FIELD,x6.QUERY_ROOT_FIELD):t===e.getMutationType()?.name?r.push(x6.ROOT_FIELD,x6.MUTATION_ROOT_FIELD):t===e.getSubscriptionType()?.name&&r.push(x6.ROOT_FIELD,x6.SUBSCRIPTION_ROOT_FIELD)):ol(n)?r.push(x6.COMPOSITE_FIELD,x6.INTERFACE_FIELD):sl(n)&&r.push(x6.INPUT_OBJECT_FIELD),r}(e,n);let o;const i=[...r];for(;!o&&i.length>0;){o=t[i.pop()]}return o??null}function D6(e){const t=e[x6.ARGUMENT];return null!=t?t:null}function R6(e){if(rl(e)){const t=e.toConfig();if(null!=t.astNode){const e=[];for(const n in t.fields){const r=t.fields[n];null!=r.astNode&&e.push(r.astNode)}t.astNode={...t.astNode,kind:Pt.OBJECT_TYPE_DEFINITION,fields:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map(e=>({...e,kind:Pt.OBJECT_TYPE_EXTENSION,fields:void 0}))),new Sl(t)}if(ol(e)){const t=e.toConfig();if(null!=t.astNode){const e=[];for(const n in t.fields){const r=t.fields[n];null!=r.astNode&&e.push(r.astNode)}t.astNode={...t.astNode,kind:Pt.INTERFACE_TYPE_DEFINITION,fields:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map(e=>({...e,kind:Pt.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new Rl(t)}if(sl(e)){const t=e.toConfig();if(null!=t.astNode){const e=[];for(const n in t.fields){const r=t.fields[n];null!=r.astNode&&e.push(r.astNode)}t.astNode={...t.astNode,kind:Pt.INPUT_OBJECT_TYPE_DEFINITION,fields:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map(e=>({...e,kind:Pt.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new Bl(t)}if(al(e)){const t=e.toConfig();if(null!=t.astNode){const e=[];for(const n in t.values){const r=t.values[n];null!=r.astNode&&e.push(r.astNode)}t.astNode={...t.astNode,values:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map(e=>({...e,values:void 0}))),new Ml(t)}return e}function P6({schema:e,resolvers:t,defaultFieldResolver:n,resolverValidationOptions:r={},inheritResolversFromInterfaces:o=!1,updateResolversInPlace:i=!1}){const{requireResolversToMatchSchema:a="error",requireResolversForResolveType:s}=r,l=o?function(e,t){const n={},r=e.getTypeMap();for(const e in r){const o=r[e];if("getInterfaces"in o){n[e]={};for(const r of o.getInterfaces())if(t[r.name])for(const o in t[r.name])"__isTypeOf"!==o&&o.startsWith("__")||(n[e][o]=t[r.name][o]);const r=t[e];n[e]={...n[e],...r}}else{const r=t[e];null!=r&&(n[e]=r)}}return n}(e,t):t;for(const t in l){const n=l[t];if("object"!==typeof n)throw new Error(`"${t}" defined in resolvers, but has invalid value "${n}". The resolver's value must be of type object.`);const r=e.getType(t);if(null==r){const e=`"${t}" defined in resolvers, but not in schema`;if(a&&"error"!==a){"warn"===a&&console.warn(e);continue}throw new Error(e)}if(Zl(r))for(const e in n)e.startsWith("__")?M6(r,e.substring(2),n[e]):M6(r,e,n[e]);else if(al(r)){const e=r.getValues();for(const t in n)if(!t.startsWith("__")&&!e.some(e=>e.name===t)&&a&&"ignore"!==a){const e=`${r.name}.${t} was defined in resolvers, but not present within ${r.name}`;if("error"===a)throw new Error(e);console.warn(e)}}else if(il(r)){for(const e in n)if(!e.startsWith("__")&&a&&"ignore"!==a){const t=`${r.name}.${e} was defined in resolvers, but ${r.name} is not an object or interface type`;if("error"===a)throw new Error(t);console.warn(t)}}else if(rl(r)||ol(r))for(const e in n)if(!e.startsWith("__")){if(null==r.getFields()[e]){if(a&&"ignore"!==a){const n=`${t}.${e} defined in resolvers, but not in schema`;if("error"===a)throw new Error(n);console.error(n)}}else{const r=n[e];if("function"!=typeof r&&"object"!=typeof r)throw new Error(`Resolver ${t}.${e} must be object or function`)}}}return e=i?function(e,t,n){const r=e.getTypeMap();for(const n in t){const o=e.getType(n),i=t[n];if(nl(o))for(const e in i)e.startsWith("__")?M6(o,e.substring(2),i[e]):"astNode"===e&&null!=o.astNode?o.astNode={...o.astNode,description:i?.astNode?.description??o.astNode.description,directives:(o.astNode.directives??[]).concat(i?.astNode?.directives??[])}:"extensionASTNodes"===e&&null!=o.extensionASTNodes?o.extensionASTNodes=o.extensionASTNodes.concat(i?.extensionASTNodes??[]):"extensions"===e&&null!=o.extensions&&null!=i.extensions?o.extensions=Object.assign(Object.create(null),o.extensions,i.extensions):M6(o,e,i[e]);else if(al(o)){const e=o.toConfig(),t=e.values;for(const n in i)n.startsWith("__")?e[n.substring(2)]=i[n]:"astNode"===n&&null!=e.astNode?e.astNode={...e.astNode,description:i?.astNode?.description??e.astNode.description,directives:(e.astNode.directives??[]).concat(i?.astNode?.directives??[])}:"extensionASTNodes"===n&&null!=e.extensionASTNodes?e.extensionASTNodes=e.extensionASTNodes.concat(i?.extensionASTNodes??[]):"extensions"===n&&null!=o.extensions&&null!=i.extensions?o.extensions=Object.assign(Object.create(null),o.extensions,i.extensions):t[n]&&(t[n].value=i[n]);r[n]=new Ml(e)}else if(il(o))for(const e in i)e.startsWith("__")&&(o[e.substring(2)]=i[e]);else if(rl(o)||ol(o))for(const e in i){if(e.startsWith("__")){o[e.substring(2)]=i[e];continue}const t=o.getFields()[e];if(null!=t){const n=i[e];"function"==typeof n?t.resolve=n.bind(i):F6(t,n)}}}h6(e,g6),v6(e),h6(e,y6),null!=n&&b6(e,e=>{e.resolve||(e.resolve=n)});return e}(e,l,n):function(e,t,n){e=T6(e,{[x6.SCALAR_TYPE]:e=>{const n=e.toConfig(),r=t[e.name];if(!Zl(e)&&null!=r){const t=["parseValue","coerceInputValue"].some(e=>e in r||`__${e}`in r),o=["parseLiteral","coerceInputLiteral"].some(e=>e in r||`__${e}`in r);for(const t in r)t.startsWith("__")?M6(n,t.substring(2),r[t]):"astNode"===t&&null!=n.astNode?n.astNode={...n.astNode,description:r?.astNode?.description??n.astNode.description,directives:(n.astNode.directives??[]).concat(r?.astNode?.directives??[])}:"extensionASTNodes"===t&&null!=n.extensionASTNodes?n.extensionASTNodes=n.extensionASTNodes.concat(r?.extensionASTNodes??[]):"extensions"===t&&null!=n.extensions&&null!=r.extensions?n.extensions=Object.assign(Object.create(null),e.extensions,r.extensions):M6(n,t,r[t]);return t&&!o&&delete n.parseLiteral,new kl(n)}},[x6.ENUM_TYPE]:e=>{const n=t[e.name],r=e.toConfig(),o=r.values;if(null!=n){for(const t in n)t.startsWith("__")?r[t.substring(2)]=n[t]:"astNode"===t&&null!=r.astNode?r.astNode={...r.astNode,description:n?.astNode?.description??r.astNode.description,directives:(r.astNode.directives??[]).concat(n?.astNode?.directives??[])}:"extensionASTNodes"===t&&null!=r.extensionASTNodes?r.extensionASTNodes=r.extensionASTNodes.concat(n?.extensionASTNodes??[]):"extensions"===t&&null!=r.extensions&&null!=n.extensions?r.extensions=Object.assign(Object.create(null),e.extensions,n.extensions):o[t]&&(o[t].value=n[t]);return new Ml(r)}},[x6.UNION_TYPE]:e=>{const n=t[e.name];if(null!=n){const t=e.toConfig();return n.__resolveType&&(t.resolveType=n.__resolveType),new Pl(t)}},[x6.OBJECT_TYPE]:e=>{const n=t[e.name];if(null!=n){const t=e.toConfig();return n.__isTypeOf&&(t.isTypeOf=n.__isTypeOf),new Sl(t)}},[x6.INTERFACE_TYPE]:e=>{const n=t[e.name];if(null!=n){const t=e.toConfig();return n.__resolveType&&(t.resolveType=n.__resolveType),new Rl(t)}},[x6.COMPOSITE_FIELD]:(e,n,r)=>{const o=t[r];if(null!=o){const t=o[n];if(null!=t){const n={...e};return"function"==typeof t?n.resolve=t.bind(o):F6(n,t),n}}}}),null!=n&&(e=T6(e,{[x6.OBJECT_FIELD]:e=>({...e,resolve:null!=e.resolve?e.resolve:n})}));return e}(e,l,n),s&&"ignore"!==s&&function(e,t){T6(e,{[x6.ABSTRACT_TYPE]:e=>{if(!e.resolveType){const n=`Type "${e.name}" is missing a "__resolveType" resolver. Pass 'ignore' into "resolverValidationOptions.requireResolversForResolveType" to disable this error.`;if("error"===t)throw new Error(n);"warn"===t&&console.warn(n)}}})}(e,s),e}const L6={serialize:"coerceOutputValue",parseValue:"coerceInputValue"};function M6(e,t,n){e[t]=n;const r=L6[t];r&&(e[r]=n)}function F6(e,t){for(const n in t)e[n]=t[n]}function j6(e,t,n,r,o){if(!n.resolve){const n=`Resolver missing for "${r}.${o}".\nTo disable this validator, use:\n  resolverValidationOptions: {\n    ${e}: 'ignore'\n  }`;if("error"===t)throw new Error(n);return void("warn"===t&&console.warn(n))}if("function"!=typeof n.resolve)throw new Error(`Resolver "${r}.${o}" must be a function`)}function B6({typeDefs:e,resolvers:t={},resolverValidationOptions:n={},inheritResolversFromInterfaces:r=!1,updateResolversInPlace:o=!1,schemaExtensions:i,defaultFieldResolver:a,...s}){if("object"!=typeof n)throw new Error("Expected `resolverValidationOptions` to be an object");if(!e)throw new Error("Must provide typeDefs");let l;if(Nc(e))l=e;else if(s?.commentDescriptions){const t=i6(e,{...s,commentDescriptions:!0});l=m4($d(t,{noLocation:null==(c=s)?void 0:c.noLocation,allowLegacyFragmentVariables:null==c?void 0:c.allowLegacyFragmentVariables}),{assumeValidSDL:null==c?void 0:c.assumeValidSDL,assumeValid:null==c?void 0:c.assumeValid})}else{l=m4(i6(e,s),s)}var c;if(l=P6({schema:l,resolvers:u6(t),resolverValidationOptions:n,inheritResolversFromInterfaces:r,updateResolversInPlace:o,defaultFieldResolver:a}),Object.keys(n).length>0&&function(e,t={}){const{requireResolversForArgs:n,requireResolversForNonScalar:r,requireResolversForAllFields:o}=t;if(o&&(n||r))throw new TypeError("requireResolversForAllFields takes precedence over the more specific assertions. Please configure either requireResolversForAllFields or requireResolversForArgs / requireResolversForNonScalar, but not a combination of them.");b6(e,(e,t,i)=>{o&&j6("requireResolversForAllFields",o,e,t,i),n&&e.args.length>0&&j6("requireResolversForArgs",n,e,t,i),"ignore"===r||nl(xl(e.type))||j6("requireResolversForNonScalar",r,e,t,i)})}(l,n),i)for(const e of f6(i))p6(l,e);return l}const U6=({cache:e})=>Jj(e.before,e.after);function z6(e){const t=e.withTimeout(1e4),n=async(...e)=>{try{return await t.request(...e)}catch(e){throw(n=e)instanceof Error&&n.message.toLowerCase().includes("extension context invalidated")?new Ls(e.message,{extensions:{code:"EXTENSION_INVALIDATED"}}):e}var n};return{Query:{clients:()=>n("getClients"),client:(e,{id:t})=>n("getClient",t)},Subscription:{cacheWritten:{resolve:e=>({...e,id:wS()}),subscribe:(e,n,r)=>t.withSignal(r.abortSignal).stream("cacheWrite",n.clientId)}},CacheWrite:{__resolveType:e=>"writeQuery"===e.type?"WriteQueryCacheWrite":"writeFragment"===e.type?"WriteFragmentCacheWrite":"modify"===e.type?"CacheModifyWrite":"DirectCacheWrite"},DirectCacheWrite:{diff:U6},WriteFragmentCacheWrite:{diff:U6},WriteQueryCacheWrite:{diff:U6},CacheModifyWrite:{diff:U6},GraphQLDocument:{string:Br,ast:e=>e},Client:{__resolveType:e=>(0,H().RO)(e.version,"4.0.0")?"ClientV4":"ClientV3"},ClientV3:{cache:e=>n("getCache",e.id),cacheWrites:()=>[],queries:e=>e,mutations:e=>e,memoryInternals:async e=>{const t=await n("getV3MemoryInternals",e.id);if(!t)return null;const{sizes:r,limits:o}=t;return{raw:t,caches:{...$6(t),parser:V6("parser",r.parser,o)}}}},ClientV4:{cache:e=>n("getCache",e.id),cacheWrites:()=>[],queries:e=>e,mutations:e=>e,memoryInternals:async e=>{const t=await n("getV4MemoryInternals",e.id);return t?{raw:t,caches:$6(t)}:null}},ClientQueries:{__resolveType:e=>(0,H().RO)(e.version,"4.0.0")?"ClientV4Queries":"ClientV3Queries"},ClientMutations:{__resolveType:e=>(0,H().RO)(e.version,"4.0.0")?"ClientV4Mutations":"ClientV3Mutations"},ClientV3Queries:{total:e=>e.queryCount,items:async e=>(await n("getV3Queries",e.id)).map(e=>({id:e.id,name:kt(e.document),queryString:Br(e.document),variables:e.variables??null,cachedData:e.cachedData??null,options:e.options??null,networkStatus:e.networkStatus,error:e.error,pollInterval:e.pollInterval}))},ClientV4Queries:{total:e=>e.queryCount,items:async e=>(await n("getV4Queries",e.id)).map(e=>({id:e.id,name:kt(e.document),queryString:Br(e.document),variables:e.variables??null,cachedData:e.cachedData??null,options:e.options??null,networkStatus:e.networkStatus,error:e.error,pollInterval:e.pollInterval}))},ClientV3Mutations:{total:e=>e.mutationCount,items:async e=>(await n("getV3Mutations",e.id)).map((e,t)=>({id:String(t),name:kt(e.document),mutationString:Br(e.document),variables:e.variables??null,loading:e.loading,error:e.error}))},ClientV3MutationError:{__resolveType:e=>"ApolloError"===e.name?"SerializedApolloError":"SerializedError"},ClientV4Mutations:{total:e=>e.mutationCount,items:async e=>(await n("getV4Mutations",e.id)).map((e,t)=>({id:String(t),name:kt(e.document),loading:e.loading,mutationString:Br(e.document),variables:e.variables??null,error:e.error}))},ErrorLike:{__resolveType:e=>{switch(e.name){case"CombinedGraphQLErrors":return"SerializedCombinedGraphQLErrors";case"CombinedProtocolErrors":return"SerializedCombinedProtocolErrors";case"LocalStateError":return"SerializedLocalStateError";case"ServerError":return"SerializedServerError";case"ServerParserError":return"SerializedServerParseError";case"UnconventionalError":return"SerializedUnconventionalError";default:return"SerializedError"}}}}}function V6(e,t,n){return{key:e,size:t??null,limit:n[e]??null}}function H6(e,t){return e.map(({cache:e})=>({cache:V6("documentTransform.cache",e,t)}))}function $6(e){const{sizes:t,limits:n}=e;return{print:V6("print",t.print,n),canonicalStringify:V6("canonicalStringify",t.canonicalStringify,n),links:t.links.map(e=>function(e,t){return"object"==typeof(n=e)&&null!==n&&"PersistedQueryLink"in n?{__typename:"PersistedQueryLinkCacheSizes",persistedQueryHashes:V6("PersistedQueryLink.persistedQueryHashes",e.PersistedQueryLink.persistedQueryHashes,t)}:function(e){return"object"==typeof e&&null!==e&&"removeTypenameFromVariables"in e}(e)?{__typename:"RemoveTypenameFromVariablesLinkCacheSizes",getVariableDefinitions:V6("removeTypenameFromVariables.getVariableDefinitions",e.removeTypenameFromVariables.getVariableDefinitions,t)}:null;var n}(e,n)).filter(Boolean),queryManager:{getDocumentInfo:V6("queryManager.getDocumentInfo",t.queryManager.getDocumentInfo,n),documentTransforms:H6(t.queryManager.documentTransforms,n)},fragmentRegistry:{lookup:V6("fragmentRegistry.lookup",t.fragmentRegistry?.lookup,n),findFragmentSpreads:V6("fragmentRegistry.findFragmentSpreads",t.fragmentRegistry?.findFragmentSpreads,n),transform:V6("fragmentRegistry.transform",t.fragmentRegistry?.transform,n)},cache:{fragmentQueryDocuments:V6("cache.fragmentQueryDocuments",t.cache?.fragmentQueryDocuments,n)},addTypenameDocumentTransform:t.addTypenameDocumentTransform?H6(t.addTypenameDocumentTransform,n):null,inMemoryCache:{maybeBroadcastWatch:V6("inMemoryCache.maybeBroadcastWatch",t.inMemoryCache?.maybeBroadcastWatch,n),executeSelectionSet:V6("inMemoryCache.executeSelectionSet",t.inMemoryCache?.executeSelectionSet,n),executeSubSelectedArray:V6("inMemoryCache.executeSubSelectedArray",t.inMemoryCache?.executeSubSelectedArray,n)}}}const G6=JSON.parse('{"v":{"CacheWrite":["CacheModifyWrite","DirectCacheWrite","WriteFragmentCacheWrite","WriteQueryCacheWrite"],"Client":["ClientV3","ClientV4"],"ClientMutation":["ClientV3Mutation","ClientV4Mutation"],"ClientMutations":["ClientV3Mutations","ClientV4Mutations"],"ClientQueries":["ClientV3Queries","ClientV4Queries"],"ClientV3MutationError":["SerializedApolloError","SerializedError"],"ClientWatchedQuery":["ClientV3WatchedQuery","ClientV4WatchedQuery"],"ErrorLike":["SerializedCombinedGraphQLErrors","SerializedCombinedProtocolErrors","SerializedError","SerializedLocalStateError","SerializedServerError","SerializedServerParseError","SerializedUnconventionalError"],"LinkCacheSize":["PersistedQueryLinkCacheSizes","RemoveTypenameFromVariablesLinkCacheSizes"],"MemoryInternals":["ClientV3MemoryInternals","ClientV4MemoryInternals"],"MemoryInternalsCaches":["ClientV3MemoryInternalsCaches","ClientV4MemoryInternalsCaches"]}}');function W6(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function q6(e){arguments.length<2||St(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await async function(...e){const t=function(e){const t=e[0];if(t&&"document"in t)return t;return{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:o}=t;id(n,r,o);const i=ad(t);if(!("schema"in i))return{errors:i};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:o,rootValue:i}=e,a=t.getSubscriptionType();if(null==a)throw new Ls("Schema is not configured to execute subscription operation.",{nodes:r});const s=Ru(t,n,o,a,r.selectionSet),[l,c]=[...s.entries()][0],u=yd(t,a,c[0]);if(!u){const e=c[0].name.value;throw new Ls(`The subscription field "${e}" is not defined.`,{nodes:c})}const d=wu(void 0,l,a.name),p=cd(e,u,c,a,d);try{var f;const t=Iu(u,c[0],o),n=e.contextValue,r=null!==(f=u.subscribe)&&void 0!==f?f:e.subscribeFieldResolver,a=await r(i,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw td(e,c,Tu(d))}}(i);if(!W6(e))throw new Error(`Subscription field must return Async Iterable. Received: ${At(e)}.`);return e}catch(e){if(e instanceof Ls)return{errors:[e]};throw e}}(e);if(!W6(t))return t;return function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t,t=>rd({...e,rootValue:t}))}Pe(Ne,Ie,_e,Ce),Pe(Ae);const Y6=function(e){return B6({typeDefs:'"Represents JSON cache data"\nscalar Cache\n\n"Represents data for a specific query"\nscalar QueryData\n\n"Represents variables for a query"\nscalar Variables\n\n"Represents options for a query"\nscalar QueryOptions\n\nscalar CacheModifyOptions\nscalar DirectCacheWriteOptions\nscalar WriteQueryOptions\nscalar WriteFragmentOptions\n\nscalar DateTime\n\nscalar JSON\nscalar Diff\nscalar DocumentNode\nscalar GraphQLErrorPath\n\ntype Query {\n  clients: [Client!]!\n  client(id: ID!): Client\n}\n\ntype Subscription {\n  cacheWritten(clientId: ID!): CacheWrite!\n}\n\ninterface CacheWrite {\n  id: ID!\n  diff: Diff\n  timestamp: DateTime!\n}\n\n"Calls to cache.write(...)"\ntype DirectCacheWrite implements CacheWrite {\n  id: ID!\n  diff: Diff\n  options: DirectCacheWriteOptions!\n  timestamp: DateTime!\n}\n\n"Calls to cache.writeQuery(...)"\ntype WriteQueryCacheWrite implements CacheWrite {\n  id: ID!\n  diff: Diff\n  options: WriteQueryOptions!\n  timestamp: DateTime!\n}\n\n"Calls to cache.writeFragment(...)"\ntype WriteFragmentCacheWrite implements CacheWrite {\n  id: ID!\n  diff: Diff\n  options: WriteFragmentOptions!\n  timestamp: DateTime!\n}\n\n"Calls to cache.modify(...)"\ntype CacheModifyWrite implements CacheWrite {\n  id: ID!\n  diff: Diff\n  options: CacheModifyOptions!\n  timestamp: DateTime!\n}\n\ntype GraphQLDocument {\n  string: String!\n  ast: DocumentNode!\n}\n\ntype BaseCacheSizes {\n  fragmentQueryDocuments: CacheSize!\n}\n\ntype CacheSize {\n  key: String!\n  limit: Int\n  size: Int\n}\n\ninterface Client {\n  id: String!\n  name: String\n  version: String!\n  cache: Cache!\n  queries: ClientQueries!\n  mutations: ClientMutations!\n  memoryInternals: MemoryInternals\n  cacheWrites: [CacheWrite!]!\n}\n\ninterface ClientQueries {\n  total: Int!\n  items: [ClientWatchedQuery!]!\n}\n\ninterface ClientMutations {\n  total: Int!\n  items: [ClientMutation!]!\n}\n\ntype ClientV3 implements Client {\n  id: String!\n  name: String\n  version: String!\n  queries: ClientV3Queries!\n  mutations: ClientV3Mutations!\n  cache: Cache!\n  memoryInternals: ClientV3MemoryInternals\n  cacheWrites: [CacheWrite!]!\n}\n\ntype ClientV4 implements Client {\n  id: String!\n  name: String\n  version: String!\n  cache: Cache!\n  mutations: ClientV4Mutations!\n  queries: ClientV4Queries!\n  memoryInternals: ClientV4MemoryInternals\n  cacheWrites: [CacheWrite!]!\n}\n\ntype ClientV3Queries implements ClientQueries {\n  total: Int!\n  items: [ClientV3WatchedQuery!]!\n}\n\ntype ClientV4Queries implements ClientQueries {\n  total: Int!\n  items: [ClientV4WatchedQuery!]!\n}\n\ntype ClientV3Mutations implements ClientMutations {\n  total: Int!\n  items: [ClientV3Mutation!]!\n}\n\ntype ClientV4Mutations implements ClientMutations {\n  total: Int!\n  items: [ClientV4Mutation!]!\n}\n\ntype DocumentTransformCacheSizes {\n  cache: CacheSize!\n}\n\ntype FragmentRegistryCacheSizes {\n  lookup: CacheSize!\n  findFragmentSpreads: CacheSize!\n  transform: CacheSize!\n}\n\ntype InMemoryCacheSizes {\n  maybeBroadcastWatch: CacheSize!\n  executeSelectionSet: CacheSize!\n  executeSubSelectedArray: CacheSize!\n}\n\nunion LinkCacheSize =\n  | PersistedQueryLinkCacheSizes\n  | RemoveTypenameFromVariablesLinkCacheSizes\n\ninterface MemoryInternals {\n  raw: JSON\n  caches: MemoryInternalsCaches\n}\n\ninterface MemoryInternalsCaches {\n  print: CacheSize!\n  canonicalStringify: CacheSize!\n  links: [LinkCacheSize!]!\n  queryManager: QueryManagerCacheSizes!\n  fragmentRegistry: FragmentRegistryCacheSizes!\n  cache: BaseCacheSizes!\n  addTypenameDocumentTransform: [DocumentTransformCacheSizes!]\n  inMemoryCache: InMemoryCacheSizes!\n}\n\ntype ClientV3MemoryInternals implements MemoryInternals {\n  raw: JSON\n  caches: ClientV3MemoryInternalsCaches!\n}\n\ntype ClientV4MemoryInternals implements MemoryInternals {\n  raw: JSON\n  caches: ClientV4MemoryInternalsCaches!\n}\n\ntype ClientV3MemoryInternalsCaches implements MemoryInternalsCaches {\n  print: CacheSize!\n  parser: CacheSize!\n  canonicalStringify: CacheSize!\n  links: [LinkCacheSize!]!\n  queryManager: QueryManagerCacheSizes!\n  fragmentRegistry: FragmentRegistryCacheSizes!\n  cache: BaseCacheSizes!\n  addTypenameDocumentTransform: [DocumentTransformCacheSizes!]\n  inMemoryCache: InMemoryCacheSizes!\n}\n\ntype ClientV4MemoryInternalsCaches implements MemoryInternalsCaches {\n  print: CacheSize!\n  canonicalStringify: CacheSize!\n  links: [LinkCacheSize!]!\n  queryManager: QueryManagerCacheSizes!\n  fragmentRegistry: FragmentRegistryCacheSizes!\n  cache: BaseCacheSizes!\n  addTypenameDocumentTransform: [DocumentTransformCacheSizes!]\n  inMemoryCache: InMemoryCacheSizes!\n}\n\ntype QueryManagerCacheSizes {\n  getDocumentInfo: CacheSize!\n  documentTransforms: [DocumentTransformCacheSizes!]\n}\n\ntype PersistedQueryLinkCacheSizes {\n  persistedQueryHashes: CacheSize!\n}\n\ntype RemoveTypenameFromVariablesLinkCacheSizes {\n  getVariableDefinitions: CacheSize!\n}\n\ninterface ClientMutation {\n  id: ID!\n  name: String\n  mutationString: String!\n  variables: Variables\n  loading: Boolean!\n}\n\ntype ClientV3Mutation implements ClientMutation {\n  id: ID!\n  name: String\n  mutationString: String!\n  variables: Variables\n  loading: Boolean!\n  error: ClientV3MutationError\n}\n\ntype ClientV4Mutation implements ClientMutation {\n  id: ID!\n  name: String\n  mutationString: String!\n  variables: Variables\n  loading: Boolean!\n  error: ErrorLike\n}\n\nunion ClientV3MutationError = SerializedError | SerializedApolloError\n\ntype ClientV3WatchedQueries {\n  count: Int!\n  queries: [ClientV3WatchedQuery!]!\n}\n\ninterface ClientWatchedQuery {\n  id: ID!\n  name: String\n  queryString: String!\n  cachedData: QueryData\n  variables: Variables\n  options: QueryOptions\n  networkStatus: Int!\n  pollInterval: Int\n}\n\ntype ClientV3WatchedQuery implements ClientWatchedQuery {\n  id: ID!\n  name: String\n  queryString: String!\n  cachedData: QueryData\n  variables: Variables\n  options: QueryOptions\n  networkStatus: Int!\n  error: SerializedApolloError\n  pollInterval: Int\n}\n\ntype ClientV4WatchedQuery implements ClientWatchedQuery {\n  id: ID!\n  name: String\n  queryString: String!\n  cachedData: QueryData\n  variables: Variables\n  options: QueryOptions\n  networkStatus: Int!\n  error: ErrorLike\n  pollInterval: Int\n}\n\ninterface ErrorLike {\n  message: String!\n  name: String!\n  stack: String\n}\n\ntype SerializedApolloError {\n  message: String!\n  clientErrors: [String!]!\n  name: String!\n  networkError: SerializedError\n  graphQLErrors: [SerializedGraphQLError!]!\n  protocolErrors: [String!]!\n}\n\ntype SerializedCombinedGraphQLErrors implements ErrorLike {\n  message: String!\n  name: String!\n  stack: String\n  errors: [SerializedGraphQLError!]!\n  data: QueryData\n  extensions: JSON\n}\n\ntype SerializedCombinedProtocolErrors implements ErrorLike {\n  message: String!\n  name: String!\n  stack: String\n  errors: [SerializedGraphQLError!]!\n}\n\ntype SerializedLocalStateError implements ErrorLike {\n  message: String!\n  name: String!\n  stack: String\n  path: GraphQLErrorPath\n  cause: SerializedError\n}\n\ntype SerializedServerError implements ErrorLike {\n  message: String!\n  name: String!\n  stack: String\n  bodyText: String!\n  statusCode: Int!\n}\n\ntype SerializedServerParseError implements ErrorLike {\n  message: String!\n  name: String!\n  stack: String\n  bodyText: String!\n  statusCode: Int!\n}\n\ntype SerializedUnconventionalError implements ErrorLike {\n  message: String!\n  name: String!\n  stack: String\n  cause: JSON\n}\n\ntype SerializedError implements ErrorLike {\n  message: String!\n  name: String!\n  stack: String\n}\n\ntype SerializedGraphQLError {\n  message: String!\n  locations: [GraphQLErrorSourceLocation!]\n  path: GraphQLErrorPath\n  extensions: JSON\n}\n\ntype GraphQLErrorSourceLocation {\n  line: Int!\n  column: Int!\n}\n',resolvers:z6(e)})}(u4||=s4(xS(window))),Q6=new class extends xn{schema;rootValue;context;validate;constructor(e){super(),this.schema=e.schema,this.rootValue=e.rootValue,this.context=e.context,this.validate=!!e.validate}request(e){return new xt(t=>{new Promise(t=>t("function"==typeof this.context?this.context(e):this.context)).then(t=>{if(this.validate){const t=function(e,t,n=Wu,r,o=new qc(e)){var i;const a=null!==(i=null==r?void 0:r.maxErrors)&&void 0!==i?i:100;t||St(!1,"Must provide document."),Oc(e);const s=Object.freeze({}),l=[],c=new Ku(e,t,o,e=>{if(l.length>=a)throw l.push(new Ls("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),u=Ft(n.map(e=>e(c)));try{Mt(t,Qc(o,u))}catch(e){if(e!==s)throw e}return l}(this.schema,e.query);if(t.length>0)return{errors:t}}return rd({schema:this.schema,document:e.query,rootValue:this.rootValue,contextValue:t,variableValues:e.variables,operationName:e.operationName})}).then(e=>{t.closed||(t.next(e),t.complete())}).catch(e=>{t.closed||t.error(e)})})}}({schema:Y6}),K6=new xn((e,t)=>t(e).pipe(Zr(e=>{RS(e.errors)&&n8.send({type:"extensionInvalidated"})}))),X6=xn.split(e=>e.operationType===Rt.SUBSCRIPTION,new class extends xn{schema;constructor(e){super(),this.schema=e.schema}request(e){return new xt(t=>{const n=new AbortController;return q6({schema:this.schema,document:e.query,operationName:e.operationName,variableValues:e.variables,contextValue:{abortSignal:n.signal}}).then(async e=>{if(n=e,"function"==typeof n?.[Symbol.asyncIterator])for await(const n of e)t.next(n);else t.next(e);var n;t.complete()}),()=>{n.abort()}})}}({schema:Y6}),xn.from([K6,Q6])),J6=new ks({cache:new ha({fragments:FS,possibleTypes:G6.v,typePolicies:{ClientWatchedQuery:{fields:{name:e=>e??"(anonymous)"}},ClientMutation:{fields:{name:e=>e??"(anonymous)"}},Client:{fields:{cache:{merge:!1},memoryInternals:{merge:!1},cacheWrites:{read:e=>e??[],merge:(e=[],t)=>{const n=function(e){const t=Jz.lookup(e).promise;return t&&"fulfilled"===t.status?t.value:(t||eV(e),Zz[e])}("cacheWriteLimit");return e.concat(t).slice(-n)}}}},ClientQueries:{keyFields:!1,merge:!0},ClientMutations:{keyFields:!1,merge:!0},ErrorLike:{keyFields:!1},SerializedApolloError:{keyFields:!1},SerializedGraphQLError:{keyFields:!1}}}),link:X6}),Z6=e=>{J6.cache.modify({id:"ROOT_QUERY",fields:{clients:(t,{readField:n})=>t.filter(t=>n("id",t)!==e)}})},e8=({actor:e})=>((0,u().useEffect)(()=>Ed(e=>xd(e))),(0,c().jsx)(dk,{delayDuration:0,children:(0,c().jsx)(Ns,{client:J6,children:(0,c().jsx)(bM.Provider,{value:e,children:(0,c().jsx)(u().Suspense,{children:(0,c().jsx)(i4,{})})})})}));function t8(){}const n8=gA(vM.provide({actions:{resetStore:async({self:e})=>{await J6.clearStore().catch(t8),e.send({type:"emit.store.didReset"})},renderUI(){(0,i().createRoot)(document.getElementById("devtools")).render((0,c().jsx)(e8,{actor:n8}))}}}),{input:{client:J6},id:"devtools",inspect:e=>{}});n8.start();se(),de(),le(),ue(),ce(),pe();var r8=n(469),o8={};o8.styleTagTransform=function e(){return e.c||(e.c=n.n(pe()))}()(),o8.setAttributes=function e(){return e.c||(e.c=n.n(ue()))}()(),o8.insert=function e(){return e.c||(e.c=n.n(le()))}()().bind(null,"head"),o8.domAPI=function e(){return e.c||(e.c=n.n(de()))}()(),o8.insertStyleElement=function e(){return e.c||(e.c=n.n(ce()))}()();(function e(){return e.c||(e.c=n.n(se()))})()()(r8.A,o8);r8.A&&r8.A.locals&&r8.A.locals;((e,t)=>{for(const n of t)e.on(n,e=>n8.send(e))})(SS(window),["initializePanel","port.changed"])})()})();